Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch to block-editor-tools #62

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions components/add-more-button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ export default function AddMoreButton({
}: AddMoreButtonProps) {
if ((limit === 0 || (limit > 1 && limit > minimumCount))) {
return (
/* @ts-ignore */
<PanelRow>
{/* @ts-ignore */}
<Button
isSecondary
onClick={addNew}
Expand Down
2 changes: 2 additions & 0 deletions components/ajax-autocomplete/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ export default function AjaxAutocomplete({
};

return (
/* @ts-ignore */
<Downshift
onChange={handlePostSelect}
itemToString={(item) => (item ? item.label : '')}
Expand Down Expand Up @@ -214,6 +215,7 @@ export default function AjaxAutocomplete({
<span role="alert" aria-busy className="screen-reader-text">
{__('Working', 'fm-gutenberg')}
</span>
{/* @ts-ignore */}
<Spinner />
</div>
) : null
Expand Down
31 changes: 0 additions & 31 deletions components/audio-picker/README.md

This file was deleted.

35 changes: 0 additions & 35 deletions components/audio-picker/index.tsx

This file was deleted.

22 changes: 0 additions & 22 deletions components/audio-picker/preview.tsx

This file was deleted.

1 change: 1 addition & 0 deletions components/autocomplete/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export default function Autocomplete({
));

return (
/* @ts-ignore */
<PanelRow>
<div className="fm-gutenberg-flex__column">
{description && !descriptionAfterElement ? (
Expand Down
2 changes: 2 additions & 0 deletions components/checkbox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ export default function Checkbox({
};

return (
/* @ts-ignore */
<PanelRow>
{/* @ts-ignore */}
<CheckboxControl
label={label}
onChange={updateValue}
Expand Down
2 changes: 2 additions & 0 deletions components/checkboxes-field/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export default function Checkboxes({

const uniqueId = uuidv4();
return (
/* @ts-ignore */
<PanelRow>
<div style={{ flexDirection: 'column' }}>
<label htmlFor={`checkboxes-${uniqueId}`}>
Expand All @@ -68,6 +69,7 @@ export default function Checkboxes({
} = option;

return (
/* @ts-ignore */
<CheckboxControl
label={optionLabel}
value={optionValue}
Expand Down
1 change: 1 addition & 0 deletions components/collapsible-metabox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ function CollapsibleMetabox({
const [collapsed, setCollapsed] = useState(false);
return (
<div className="fm-gutenberg-normal-metabox-container__metabox">
{/* @ts-ignore */}
<Button isLink onClick={() => setCollapsed(!collapsed)}>
<h2>
{field.title}
Expand Down
4 changes: 4 additions & 0 deletions components/color-picker-field/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ export default function ColorPickerField({
};

return (
/* @ts-ignore */
<PanelRow>
<div className="fm-gutenberg-flex__column fm-gutenberg-popup-wrap">
<label htmlFor={`${name}_${index}`}>{label}</label>
<div id={`${name}_${index}`}>
{/* @ts-ignore */}
<Button
id={`${name}_${index}`}
className="fm-gutenberg-color-preview"
Expand All @@ -48,13 +50,15 @@ export default function ColorPickerField({
</Button>
{showPicker ? (
<div className="fm-gutenberg-popup">
{/* @ts-ignore */}
<Button
aria-label={__('Close', 'fm-gutenberg')}
onClick={() => setShowPicker(false)}
className="fm-gutenberg-popup__close"
>
x
</Button>
{/* @ts-ignore */}
<ColorPicker
color={initialvalue}
// @ts-expect-error see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/64541
Expand Down
86 changes: 0 additions & 86 deletions components/csv-uploader/README.md

This file was deleted.

Loading