Skip to content

Commit

Permalink
Release 0.2.17
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jun 27, 2024
1 parent 1455892 commit bd29f94
Show file tree
Hide file tree
Showing 41 changed files with 4,561 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/main.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions build/src/components/AuthorsSelect.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare const _default: any;
export default _default;
//# sourceMappingURL=AuthorsSelect.d.ts.map
1 change: 1 addition & 0 deletions build/src/components/AuthorsSelect.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions build/src/components/SortableMultiValueElement.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React, { ReactElement } from 'react';
import { MultiValueProps } from 'react-select';
import { Option } from '../types';
declare const MultiValueElement: (props: MultiValueProps<Option>) => ReactElement;
export { MultiValueElement };
declare const _default: React.ComponentClass<import("react-select").CommonProps<Option, true> & {
children: React.ReactNode;
components: any;
cropWithEllipsis: boolean;
data: Option;
innerProps: any;
isFocused: boolean;
isDisabled: boolean;
removeProps: {
onTouchEnd: (event: any) => void;
onClick: (event: any) => void;
onMouseDown: (event: any) => void;
};
} & import("react-sortable-hoc").SortableElementProps, any>;
export default _default;
//# sourceMappingURL=SortableMultiValueElement.d.ts.map
1 change: 1 addition & 0 deletions build/src/components/SortableMultiValueElement.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions build/src/components/SortableSelectContainer.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React, { ReactElement } from 'react';
import { Props as AsyncCreatableSelectProps } from 'react-select/async-creatable';
import { Option } from '../types';
export declare const className = "authorship-select-container";
export declare const classNamePrefix = "authorship-select";
/**
* Returns the base author selector control.
*
* @param {AsyncCreatableSelectProps} props Component props.
* @returns {ReactElement} An element.
*/
declare const Select: (props: AsyncCreatableSelectProps<Option, true>) => ReactElement;
export { Select };
declare const _default: React.ComponentClass<import("react-select").Props<Option, true> & import("react-select/src/Async").AsyncProps<Option> & import("react-select/src/Creatable").CreatableProps<Option, true> & import("react-sortable-hoc").SortableContainerProps, any>;
export default _default;
//# sourceMappingURL=SortableSelectContainer.d.ts.map
1 change: 1 addition & 0 deletions build/src/components/SortableSelectContainer.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions build/src/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions build/src/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions build/src/plugin.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { ReactElement } from 'react';
export declare const name = "authorship";
export declare const settings: {
icon: any;
render(): ReactElement;
};
//# sourceMappingURL=plugin.d.ts.map
1 change: 1 addition & 0 deletions build/src/plugin.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions build/src/types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
export interface Option {
/**
* The option value.
*/
value: number;
/**
* The option label.
*/
label: string;
/**
* The option avatar.
*/
avatar: string | null;
}
export interface SortedOption {
/**
* The old index position.
*/
oldIndex: number;
/**
* The new index position.
*/
newIndex: number;
}
export interface authorshipDataFromWP {
authors: Option[];
}
//# sourceMappingURL=types.d.ts.map
1 change: 1 addition & 0 deletions build/src/types.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions build/src/utils/arrayMove.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* Moves an element in array from one position to another. Used as the sorting callback.
*
* @template T
* @param {T[]} array The affected array.
* @param {number} from The position of the element to move.
* @param {number} to The new position for the element.
* @returns {T[]} The updated array.
*/
export default function arrayMove<T>(array: T[], from: number, to: number): T[];
//# sourceMappingURL=arrayMove.d.ts.map
1 change: 1 addition & 0 deletions build/src/utils/arrayMove.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/style.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions lib/asset-loader/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true

[*.{js,ts,jsx,tsx,scss,php,xml}]
# Avoid trailing whitespace
trim_trailing_whitespace = true
# Set default charset for JS files
charset = utf-8
# Tab indentation
indent_style = tab

# Use 4-space indentation on composer.json
[{composer.json}]
indent_style = space
indent_size = 4

# Matches the exact files either package.json or .travis.yml
# and overrides them to use 2-space indentation
[{package.json,.travis.yml}]
indent_style = space
indent_size = 2
1 change: 1 addition & 0 deletions lib/asset-loader/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vendor/
19 changes: 19 additions & 0 deletions lib/asset-loader/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Travis CI Configuration File

branches:
only:
- main

# Tell Travis CI we're using PHP
language: php

php:
- 7.2
- 7.3
- 7.4

install: composer install

script:
- composer lint
- composer test
69 changes: 69 additions & 0 deletions lib/asset-loader/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Changelog

## v0.6.3

- Adds support for the composer installers v2 package

## v0.6.2

- Ensure that a version string is always set on an asset, even when the built file has a hash string in the file name. This ensures proper cache invalidation in sites using asset concatenation.

## v0.6.1

- Fix get_file_uri() when using symlinks

## v0.6.0

- **Breaking**: Remove deprecated `autoregister`, `autoenqueue`, and `register_assets` methods.
- Add filter `asset_loader_manifest_contents` to allow filtering of loaded asset manifest contents.

## v0.5.0

- Support enqueuing scripts in the page `<head>` by passing `'in-footer' => false` in options array.
- Introduce `get_active_manifest()` function to return the first available manifest in a list.

## v0.4.1

- Fix bug where admin namespace was not loaded.

## v0.4.0

- **Breaking**: Remove undocumented `Asset_Loader\is_development` method.
- **Breaking**: Remove undocumented `Asset_Loader\enqueue_assets` method.
- **New**: Introduce new `Asset_Loader\register_asset()` and `Asset_Loader\enqueue_asset()` public API.
- Assets should now be registered individually.
- If a bundle exports both a CSS and JS file, both files should be registered or enqueued individually.
- **Deprecate** `Asset_Loader\autoenqueue()` method. Use the new, singular `enqueue_asset()` instead.
- **Deprecate** `Asset_Loader\autoregister()` method. Use the new, singular `register_asset()` instead.
- **Deprecate** `Asset_Loader\register_assets()` method. Use the new, singular `register_asset()` instead.
- Refactor how SSL warning notice behavior gets triggered during asset registration.
- Change how version strings are determined when registering assets
- If asset is detected to be using a uniquely hashed filename, no version string is used.
- If an asset manifest is in use, assets are versioned based on a content hash of that manifest.
- If no other version information can be determined and the loader is running within[Altis](https://altis-dxp.com), the Altis revision constant is used to version registered assets.

## v0.3.4

- Added `composer/installers` as a dependency to permit custom installation paths when installing this package.

## v0.3.3

- Display admin notification about accepting Webpack's SSL certificate if `https://localhost` scripts encounter errors when loading.
- Derive script & style version string from file hash, not `filemtime`.

## v0.3.2

- Do not require plugin files if plugin is already active elsewhere in the project.

## v0.3.1

- Transfer plugin to `humanmade` GitHub organization

## v0.3.0

- Fix bug when loading plugin assets outside of `wp-content/plugins`
- Permit installation with `composer`.

## v0.2.0

- Initial release: introduce `autoregister()` and `autoenqueue()` public API.
Loading

0 comments on commit bd29f94

Please sign in to comment.