@atlaskit/editor-plugin-extension 14.1.14 → 15.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/extensionPlugin/package.json +1 -8
- package/extensionPluginType/package.json +1 -8
- package/package.json +44 -44
- package/dist/types-ts4.5/editor-actions/actions.d.ts +0 -21
- package/dist/types-ts4.5/editor-commands/commands.d.ts +0 -17
- package/dist/types-ts4.5/entry-points/extensionPlugin.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/extensionPluginType.d.ts +0 -1
- package/dist/types-ts4.5/extensionPlugin.d.ts +0 -2
- package/dist/types-ts4.5/extensionPluginType.d.ts +0 -109
- package/dist/types-ts4.5/index.d.ts +0 -2
- package/dist/types-ts4.5/nodeviews/lazyExtension.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/extension-api.d.ts +0 -12
- package/dist/types-ts4.5/pm-plugins/keymap.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/macro/actions.d.ts +0 -9
- package/dist/types-ts4.5/pm-plugins/macro/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/macro/plugin.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/macro/types.d.ts +0 -4
- package/dist/types-ts4.5/pm-plugins/main.d.ts +0 -24
- package/dist/types-ts4.5/pm-plugins/plugin-factory.d.ts +0 -7
- package/dist/types-ts4.5/pm-plugins/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/reducer.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/toDOM-fixes/bodiedExtension.d.ts +0 -29
- package/dist/types-ts4.5/pm-plugins/toolbar.d.ts +0 -37
- package/dist/types-ts4.5/pm-plugins/unique-id.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/update-edit-button.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/utils.d.ts +0 -37
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanel.d.ts +0 -23
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanelFieldsLoader.d.ts +0 -22
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanelLoader.d.ts +0 -5
- package/dist/types-ts4.5/ui/ConfigPanel/DescriptionSummary.d.ts +0 -7
- package/dist/types-ts4.5/ui/ConfigPanel/ErrorMessage/ErrorImage.d.ts +0 -7
- package/dist/types-ts4.5/ui/ConfigPanel/ErrorMessage/index.d.ts +0 -9
- package/dist/types-ts4.5/ui/ConfigPanel/FieldMessages.d.ts +0 -12
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Boolean.d.ts +0 -8
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/CheckboxGroup.d.ts +0 -8
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/ColorPicker.d.ts +0 -20
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/CustomSelect.d.ts +0 -24
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Date.d.ts +0 -20
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/DateRange.d.ts +0 -24
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Enum.d.ts +0 -10
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Expand.d.ts +0 -16
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Fieldset.d.ts +0 -22
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Number.d.ts +0 -10
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/RadioGroup.d.ts +0 -8
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Select.d.ts +0 -11
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/SelectItem.d.ts +0 -8
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/String.d.ts +0 -10
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/TabGroup.d.ts +0 -15
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/UnhandledType.d.ts +0 -6
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/UserSelect.d.ts +0 -10
- package/dist/types-ts4.5/ui/ConfigPanel/FormContent.d.ts +0 -4
- package/dist/types-ts4.5/ui/ConfigPanel/FormErrorBoundary.d.ts +0 -18
- package/dist/types-ts4.5/ui/ConfigPanel/Header/HeaderAfterIconElement.d.ts +0 -8
- package/dist/types-ts4.5/ui/ConfigPanel/Header/HeaderIcon.d.ts +0 -8
- package/dist/types-ts4.5/ui/ConfigPanel/Header.d.ts +0 -22
- package/dist/types-ts4.5/ui/ConfigPanel/HelpLink.d.ts +0 -7
- package/dist/types-ts4.5/ui/ConfigPanel/LoadingState.d.ts +0 -9
- package/dist/types-ts4.5/ui/ConfigPanel/NestedForms/RemovableField.d.ts +0 -17
- package/dist/types-ts4.5/ui/ConfigPanel/constants.d.ts +0 -4
- package/dist/types-ts4.5/ui/ConfigPanel/transformers.d.ts +0 -9
- package/dist/types-ts4.5/ui/ConfigPanel/types.d.ts +0 -40
- package/dist/types-ts4.5/ui/ConfigPanel/use-abortable-effect/index.d.ts +0 -16
- package/dist/types-ts4.5/ui/ConfigPanel/use-state-from-promise/index.d.ts +0 -18
- package/dist/types-ts4.5/ui/ConfigPanel/utils.d.ts +0 -16
- package/dist/types-ts4.5/ui/ConfigPanel/withExtensionManifest.d.ts +0 -9
- package/dist/types-ts4.5/ui/SaveIndicator/SaveIndicator.d.ts +0 -3
- package/dist/types-ts4.5/ui/SaveIndicator/types.d.ts +0 -11
- package/dist/types-ts4.5/ui/context-panel.d.ts +0 -15
- package/dist/types-ts4.5/ui/useConfigPanelPluginHook.d.ts +0 -29
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
|
-
type Props = {
|
|
4
|
-
errorMessage: string;
|
|
5
|
-
} & WrappedComponentProps;
|
|
6
|
-
declare const _default_1: React.FC<WithIntlProps<Props>> & {
|
|
7
|
-
WrappedComponent: React.ComponentType<Props>;
|
|
8
|
-
};
|
|
9
|
-
export default _default_1;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
|
-
declare const _default_1: React.FC<WithIntlProps<{
|
|
4
|
-
description?: string;
|
|
5
|
-
error?: string;
|
|
6
|
-
} & WrappedComponentProps>> & {
|
|
7
|
-
WrappedComponent: React.ComponentType<{
|
|
8
|
-
description?: string;
|
|
9
|
-
error?: string;
|
|
10
|
-
} & WrappedComponentProps>;
|
|
11
|
-
};
|
|
12
|
-
export default _default_1;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx } from '@emotion/react';
|
|
2
|
-
import type { BooleanField } from '@atlaskit/editor-common/extensions';
|
|
3
|
-
import type { OnFieldChange } from '../types';
|
|
4
|
-
export default function Boolean({ name, field, onFieldChange, }: {
|
|
5
|
-
field: BooleanField;
|
|
6
|
-
name: string;
|
|
7
|
-
onFieldChange: OnFieldChange;
|
|
8
|
-
}): jsx.JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx } from '@emotion/react';
|
|
2
|
-
import type { EnumCheckboxField } from '@atlaskit/editor-common/extensions';
|
|
3
|
-
import type { OnFieldChange } from '../types';
|
|
4
|
-
export default function CheckboxGroup({ name, field, onFieldChange, }: {
|
|
5
|
-
field: EnumCheckboxField;
|
|
6
|
-
name: string;
|
|
7
|
-
onFieldChange: OnFieldChange;
|
|
8
|
-
}): jsx.JSX.Element;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { jsx } from '@emotion/react';
|
|
2
|
-
import type { ColorField } from '@atlaskit/editor-common/extensions';
|
|
3
|
-
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { PaletteColor } from '@atlaskit/editor-common/ui-color';
|
|
5
|
-
import type { OnFieldChange } from '../types';
|
|
6
|
-
export declare const colorPalette: PaletteColor[];
|
|
7
|
-
/**
|
|
8
|
-
* Extended chart colors.
|
|
9
|
-
* Decided here https://product-fabric.atlassian.net/wiki/spaces/EUXQ/pages/3477245015/Tokenising+table+charts+color
|
|
10
|
-
*/
|
|
11
|
-
export declare const extendedColorPalette: PaletteColor[];
|
|
12
|
-
export declare const EXPANDED_COLOR_PICKER_COLUMNS = 9;
|
|
13
|
-
export declare const ORIGINAL_COLOR_PICKER_COLUMNS = 5;
|
|
14
|
-
declare const ColorPickerField: ({ name, field, onFieldChange, featureFlags, }: {
|
|
15
|
-
featureFlags?: FeatureFlags;
|
|
16
|
-
field: ColorField;
|
|
17
|
-
name: string;
|
|
18
|
-
onFieldChange: OnFieldChange;
|
|
19
|
-
}) => jsx.JSX.Element;
|
|
20
|
-
export default ColorPickerField;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
|
-
import type { CustomField, ExtensionManifest, Parameters } from '@atlaskit/editor-common/extensions';
|
|
4
|
-
import type { OnFieldChange } from '../types';
|
|
5
|
-
declare const _default_1: React.FC<WithIntlProps<{
|
|
6
|
-
autoFocus?: boolean;
|
|
7
|
-
extensionManifest: ExtensionManifest;
|
|
8
|
-
field: CustomField;
|
|
9
|
-
name: string;
|
|
10
|
-
onFieldChange: OnFieldChange;
|
|
11
|
-
parameters?: Parameters;
|
|
12
|
-
placeholder?: string;
|
|
13
|
-
} & WrappedComponentProps>> & {
|
|
14
|
-
WrappedComponent: React.ComponentType<{
|
|
15
|
-
autoFocus?: boolean;
|
|
16
|
-
extensionManifest: ExtensionManifest;
|
|
17
|
-
field: CustomField;
|
|
18
|
-
name: string;
|
|
19
|
-
onFieldChange: OnFieldChange;
|
|
20
|
-
parameters?: Parameters;
|
|
21
|
-
placeholder?: string;
|
|
22
|
-
} & WrappedComponentProps>;
|
|
23
|
-
};
|
|
24
|
-
export default _default_1;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
|
-
import type { DateField } from '@atlaskit/editor-common/extensions';
|
|
4
|
-
import type { OnFieldChange } from '../types';
|
|
5
|
-
declare const _default_1: React.FC<WithIntlProps<{
|
|
6
|
-
autoFocus?: boolean;
|
|
7
|
-
field: DateField;
|
|
8
|
-
name: string;
|
|
9
|
-
onFieldChange: OnFieldChange;
|
|
10
|
-
placeholder?: string;
|
|
11
|
-
} & WrappedComponentProps>> & {
|
|
12
|
-
WrappedComponent: React.ComponentType<{
|
|
13
|
-
autoFocus?: boolean;
|
|
14
|
-
field: DateField;
|
|
15
|
-
name: string;
|
|
16
|
-
onFieldChange: OnFieldChange;
|
|
17
|
-
placeholder?: string;
|
|
18
|
-
} & WrappedComponentProps>;
|
|
19
|
-
};
|
|
20
|
-
export default _default_1;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ComponentType, type FC } from 'react';
|
|
6
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
7
|
-
import type { DateRangeField } from '@atlaskit/editor-common/extensions';
|
|
8
|
-
import type { OnFieldChange } from '../types';
|
|
9
|
-
declare const _default_1: FC<WithIntlProps<{
|
|
10
|
-
autoFocus?: boolean;
|
|
11
|
-
field: DateRangeField;
|
|
12
|
-
name: string;
|
|
13
|
-
onFieldChange: OnFieldChange;
|
|
14
|
-
placeholder?: string;
|
|
15
|
-
} & WrappedComponentProps>> & {
|
|
16
|
-
WrappedComponent: ComponentType<{
|
|
17
|
-
autoFocus?: boolean;
|
|
18
|
-
field: DateRangeField;
|
|
19
|
-
name: string;
|
|
20
|
-
onFieldChange: OnFieldChange;
|
|
21
|
-
placeholder?: string;
|
|
22
|
-
} & WrappedComponentProps>;
|
|
23
|
-
};
|
|
24
|
-
export default _default_1;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { EnumField } from '@atlaskit/editor-common/extensions';
|
|
3
|
-
import type { OnFieldChange } from '../types';
|
|
4
|
-
export default function Enum({ name, field, autoFocus, onFieldChange, fieldDefaultValue, }: {
|
|
5
|
-
autoFocus: boolean;
|
|
6
|
-
field: EnumField;
|
|
7
|
-
fieldDefaultValue?: string | string[];
|
|
8
|
-
name: string;
|
|
9
|
-
onFieldChange: OnFieldChange;
|
|
10
|
-
}): React.JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
7
|
-
import type { FieldDefinition } from '@atlaskit/editor-common/extensions';
|
|
8
|
-
type Props = {
|
|
9
|
-
children: React.ReactNode;
|
|
10
|
-
field: FieldDefinition;
|
|
11
|
-
isExpanded?: boolean;
|
|
12
|
-
} & WrappedComponentProps;
|
|
13
|
-
declare const _default_1: React.FC<WithIntlProps<Props>> & {
|
|
14
|
-
WrappedComponent: React.ComponentType<Props>;
|
|
15
|
-
};
|
|
16
|
-
export default _default_1;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
7
|
-
import type { ExtensionManifest, Fieldset, Parameters } from '@atlaskit/editor-common/extensions';
|
|
8
|
-
import type { FormContentProps, OnFieldChange } from '../types';
|
|
9
|
-
type Props = {
|
|
10
|
-
error?: string;
|
|
11
|
-
extensionManifest: ExtensionManifest;
|
|
12
|
-
field: Fieldset;
|
|
13
|
-
firstVisibleFieldName?: string;
|
|
14
|
-
formComponent: (props: FormContentProps) => JSX.Element;
|
|
15
|
-
name: string;
|
|
16
|
-
onFieldChange: OnFieldChange;
|
|
17
|
-
parameters?: Parameters;
|
|
18
|
-
} & WrappedComponentProps;
|
|
19
|
-
declare const _default_1: React.FC<WithIntlProps<Props>> & {
|
|
20
|
-
WrappedComponent: React.ComponentType<Props>;
|
|
21
|
-
};
|
|
22
|
-
export default _default_1;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { NumberField } from '@atlaskit/editor-common/extensions';
|
|
3
|
-
import type { OnFieldChange } from '../types';
|
|
4
|
-
export default function Number({ name, field, autoFocus, onFieldChange, placeholder, }: {
|
|
5
|
-
autoFocus?: boolean;
|
|
6
|
-
field: NumberField;
|
|
7
|
-
name: string;
|
|
8
|
-
onFieldChange: OnFieldChange;
|
|
9
|
-
placeholder?: string;
|
|
10
|
-
}): React.JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { EnumRadioField } from '@atlaskit/editor-common/extensions';
|
|
3
|
-
import type { OnFieldChange } from '../types';
|
|
4
|
-
export default function RadioField({ name, field, onFieldChange, }: {
|
|
5
|
-
field: EnumRadioField;
|
|
6
|
-
name: string;
|
|
7
|
-
onFieldChange: OnFieldChange;
|
|
8
|
-
}): React.JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { EnumSelectField } from '@atlaskit/editor-common/extensions';
|
|
3
|
-
import type { OnFieldChange } from '../types';
|
|
4
|
-
export default function SelectField({ name, field, onFieldChange, autoFocus, placeholder, fieldDefaultValue, }: {
|
|
5
|
-
autoFocus?: boolean;
|
|
6
|
-
field: EnumSelectField;
|
|
7
|
-
fieldDefaultValue?: string | string[];
|
|
8
|
-
name: string;
|
|
9
|
-
onFieldChange: OnFieldChange;
|
|
10
|
-
placeholder?: string;
|
|
11
|
-
}): React.JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
6
|
-
import type { Option } from '@atlaskit/editor-common/extensions';
|
|
7
|
-
import type { FormatOptionLabelMeta } from '@atlaskit/select';
|
|
8
|
-
export declare const formatOptionLabel: ({ label, icon, description }: Option, { context }: FormatOptionLabelMeta<Option>) => jsx.JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StringField } from '@atlaskit/editor-common/extensions';
|
|
3
|
-
import type { OnFieldChange } from '../types';
|
|
4
|
-
export default function String({ name, field, autoFocus, onFieldChange, placeholder, }: {
|
|
5
|
-
autoFocus?: boolean;
|
|
6
|
-
field: StringField;
|
|
7
|
-
name: string;
|
|
8
|
-
onFieldChange: OnFieldChange;
|
|
9
|
-
placeholder?: string;
|
|
10
|
-
}): React.JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
7
|
-
import type { TabField, TabGroupField } from '@atlaskit/editor-common/extensions';
|
|
8
|
-
type Props = {
|
|
9
|
-
field: TabGroupField;
|
|
10
|
-
renderPanel: (tabField: TabField) => JSX.Element;
|
|
11
|
-
} & WrappedComponentProps;
|
|
12
|
-
declare const TabGroup: React.FC<WithIntlProps<Props>> & {
|
|
13
|
-
WrappedComponent: React.ComponentType<Props>;
|
|
14
|
-
};
|
|
15
|
-
export default TabGroup;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ExtensionManifest, UserField } from '@atlaskit/editor-common/extensions';
|
|
3
|
-
import type { OnFieldChange } from '../types';
|
|
4
|
-
export default function UserSelect({ name, autoFocus, extensionManifest, field, onFieldChange, }: {
|
|
5
|
-
autoFocus?: boolean;
|
|
6
|
-
extensionManifest: ExtensionManifest;
|
|
7
|
-
field: UserField;
|
|
8
|
-
name: string;
|
|
9
|
-
onFieldChange: OnFieldChange;
|
|
10
|
-
}): React.JSX.Element;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { FieldComponentProps, FormContentProps } from './types';
|
|
3
|
-
export declare function FieldComponent({ field, parameters, parentName, extensionManifest, firstVisibleFieldName, onFieldChange, featureFlags, }: FieldComponentProps): React.JSX.Element;
|
|
4
|
-
export default function FormContent({ fields, parentName, parameters, extensionManifest, canRemoveFields, onClickRemove, onFieldChange, firstVisibleFieldName, contextIdentifierProvider, featureFlags, isDisabled, }: FormContentProps): React.JSX.Element;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
|
-
import type { WithAnalyticsEventsProps, WithContextProps } from '@atlaskit/analytics-next';
|
|
4
|
-
import type { FieldDefinition } from '@atlaskit/editor-common/extensions';
|
|
5
|
-
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
6
|
-
interface Props {
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
contextIdentifierProvider?: ContextIdentifierProvider;
|
|
9
|
-
extensionKey: string;
|
|
10
|
-
fields: FieldDefinition[];
|
|
11
|
-
}
|
|
12
|
-
export declare const FormErrorBoundaryImpl: React.FC<WithIntlProps<Props & WithAnalyticsEventsProps & WrappedComponentProps>> & {
|
|
13
|
-
WrappedComponent: React.ComponentType<Props & WithAnalyticsEventsProps & WrappedComponentProps>;
|
|
14
|
-
};
|
|
15
|
-
export declare const FormErrorBoundary: React.ForwardRefExoticComponent<Omit<Omit<Omit<Props & WithAnalyticsEventsProps & WrappedComponentProps, 'intl'> & {
|
|
16
|
-
forwardedRef?: React.Ref<any>;
|
|
17
|
-
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & WithContextProps, 'ref'> & React.RefAttributes<any>>;
|
|
18
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ExtensionKey, ExtensionProvider, ExtensionType } from '@atlaskit/editor-common/extensions';
|
|
3
|
-
declare const _default_1: (props: {
|
|
4
|
-
extensionKey: ExtensionKey;
|
|
5
|
-
extensionProvider: ExtensionProvider;
|
|
6
|
-
extensionType: ExtensionType;
|
|
7
|
-
}) => React.JSX.Element | null;
|
|
8
|
-
export default _default_1;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ExtensionKey, ExtensionProvider, ExtensionType } from '@atlaskit/editor-common/extensions';
|
|
3
|
-
declare const _default_1: (props: {
|
|
4
|
-
extensionKey: ExtensionKey;
|
|
5
|
-
extensionProvider: ExtensionProvider;
|
|
6
|
-
extensionType: ExtensionType;
|
|
7
|
-
}) => React.JSX.Element | null;
|
|
8
|
-
export default _default_1;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ComponentType, type FC } from 'react';
|
|
6
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
7
|
-
import type { Icon } from '@atlaskit/editor-common/extensions';
|
|
8
|
-
import { type ExtensionDeprecationStatus } from '@atlaskit/editor-common/extensions';
|
|
9
|
-
type Props = {
|
|
10
|
-
deprecation?: ExtensionDeprecationStatus;
|
|
11
|
-
description?: string;
|
|
12
|
-
documentationUrl?: string;
|
|
13
|
-
enableHelpCTA?: boolean;
|
|
14
|
-
icon: Icon;
|
|
15
|
-
onClose: () => void;
|
|
16
|
-
summary?: string;
|
|
17
|
-
title: string;
|
|
18
|
-
} & WrappedComponentProps;
|
|
19
|
-
declare const _default_1: FC<WithIntlProps<Props>> & {
|
|
20
|
-
WrappedComponent: ComponentType<Props>;
|
|
21
|
-
};
|
|
22
|
-
export default _default_1;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import type { ReactNode } from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
|
-
import type { LoadingComponentProps } from 'react-loadable';
|
|
8
|
-
declare const LoadingState: (props: Partial<LoadingComponentProps>) => string | number | boolean | jsx.JSX.Element | Iterable<ReactNode> | null | undefined;
|
|
9
|
-
export default LoadingState;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
7
|
-
type Props = {
|
|
8
|
-
canRemoveField?: boolean;
|
|
9
|
-
children: React.ReactElement;
|
|
10
|
-
className?: string;
|
|
11
|
-
name: string;
|
|
12
|
-
onClickRemove?: (fieldName: string) => void;
|
|
13
|
-
} & WrappedComponentProps;
|
|
14
|
-
declare const _default_1: React.FC<WithIntlProps<Props>> & {
|
|
15
|
-
WrappedComponent: React.ComponentType<Props>;
|
|
16
|
-
};
|
|
17
|
-
export default _default_1;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ExtensionManifest, FieldDefinition, Parameters, ParametersWithDuplicateFields } from '@atlaskit/editor-common/extensions';
|
|
2
|
-
interface SerializeOptions {
|
|
3
|
-
depth?: number;
|
|
4
|
-
parentType?: 'fieldset' | 'tab' | 'expand';
|
|
5
|
-
}
|
|
6
|
-
export declare const findDuplicateFields: (fields: FieldDefinition[]) => FieldDefinition | undefined;
|
|
7
|
-
export declare const serialize: (manifest: ExtensionManifest, data: Parameters, fields: FieldDefinition[], options?: SerializeOptions) => Promise<Parameters>;
|
|
8
|
-
export declare const deserialize: (manifest: ExtensionManifest, data: Parameters | ParametersWithDuplicateFields, fields: FieldDefinition[], depth?: number) => Promise<Parameters>;
|
|
9
|
-
export {};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { ExtensionManifest, FieldDefinition, Parameters } from '@atlaskit/editor-common/extensions';
|
|
2
|
-
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
4
|
-
export declare enum ValidationError {
|
|
5
|
-
Required = "required",
|
|
6
|
-
Invalid = "invalid"
|
|
7
|
-
}
|
|
8
|
-
export declare enum FieldTypeError {
|
|
9
|
-
isMultipleAndRadio = "isMultipleAndRadio"
|
|
10
|
-
}
|
|
11
|
-
export type Entry<T> = [
|
|
12
|
-
string,
|
|
13
|
-
T
|
|
14
|
-
];
|
|
15
|
-
export type OnFieldChange = (name: string, isDirty: boolean) => void;
|
|
16
|
-
export interface ValidationErrors {
|
|
17
|
-
[key: string]: any;
|
|
18
|
-
}
|
|
19
|
-
export interface FieldComponentProps {
|
|
20
|
-
extensionManifest: ExtensionManifest;
|
|
21
|
-
featureFlags?: FeatureFlags;
|
|
22
|
-
field: FieldDefinition;
|
|
23
|
-
firstVisibleFieldName?: string;
|
|
24
|
-
onFieldChange: OnFieldChange;
|
|
25
|
-
parameters: Parameters;
|
|
26
|
-
parentName?: string;
|
|
27
|
-
}
|
|
28
|
-
export interface FormContentProps {
|
|
29
|
-
canRemoveFields?: boolean;
|
|
30
|
-
contextIdentifierProvider?: ContextIdentifierProvider;
|
|
31
|
-
extensionManifest: ExtensionManifest;
|
|
32
|
-
featureFlags?: FeatureFlags;
|
|
33
|
-
fields: FieldDefinition[];
|
|
34
|
-
firstVisibleFieldName?: string;
|
|
35
|
-
isDisabled?: boolean;
|
|
36
|
-
onClickRemove?: (fieldName: string) => void;
|
|
37
|
-
onFieldChange: OnFieldChange;
|
|
38
|
-
parameters?: Parameters;
|
|
39
|
-
parentName?: string;
|
|
40
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
type AbortableEffectWithCancel = (signal: AbortSignal) => () => void;
|
|
3
|
-
type AbortableEffect = (signal: AbortSignal) => void;
|
|
4
|
-
/**
|
|
5
|
-
* Similar to useEffect but integrated with the AbortController to make it useful for async operations.
|
|
6
|
-
* On unmount, the abort function will be called and the signal will be passed down to the function so
|
|
7
|
-
* we get the chance to cancel any operation we want.
|
|
8
|
-
*
|
|
9
|
-
* Note: This hook follows the signature of useEffect so it can be linted if enabled through the
|
|
10
|
-
* `additionalHooks` config.
|
|
11
|
-
*
|
|
12
|
-
* @param callback
|
|
13
|
-
* @param deps
|
|
14
|
-
*/
|
|
15
|
-
export declare function useAbortableEffect(callback: AbortableEffectWithCancel | AbortableEffect, deps: React.DependencyList): void;
|
|
16
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
type AbortableEffect<T> = () => Promise<T> | undefined;
|
|
3
|
-
/**
|
|
4
|
-
* Similar to useState but deals with async values.
|
|
5
|
-
* Simply pass a promise and it will set the state when it resolves. It won't try to set if
|
|
6
|
-
* the component unmounts
|
|
7
|
-
*
|
|
8
|
-
* Note: This hook follows the signature of useEffect so it can be linted if enabled through the
|
|
9
|
-
* `additionalHooks` config.
|
|
10
|
-
*
|
|
11
|
-
* @param callback
|
|
12
|
-
* @param deps
|
|
13
|
-
*/
|
|
14
|
-
export declare function useStateFromPromise<S>(callback: AbortableEffect<S>, deps: React.DependencyList, initialValue?: S): [
|
|
15
|
-
S | undefined,
|
|
16
|
-
React.Dispatch<React.SetStateAction<S | undefined>>
|
|
17
|
-
];
|
|
18
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { FieldDefinition, Option, Parameters } from '@atlaskit/editor-common/extensions';
|
|
2
|
-
import type { GroupBase } from '@atlaskit/react-select';
|
|
3
|
-
import { ValidationError } from './types';
|
|
4
|
-
export declare const validate: <T>(field: Partial<FieldDefinition>, value: T) => ValidationError | undefined;
|
|
5
|
-
type ValidationProps = {
|
|
6
|
-
isMultiple?: boolean;
|
|
7
|
-
isRequired?: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare const validateRequired: <T>({ isRequired, isMultiple }: ValidationProps, value: T) => ValidationError | undefined;
|
|
10
|
-
export declare const getOptionFromValue: (options: Option[] | GroupBase<Option>[], value: string | string[] | undefined) => Option | Option[] | undefined;
|
|
11
|
-
export declare const getSafeParentedName: (name: string, parentName?: string) => string;
|
|
12
|
-
export declare const isDuplicateField: (key: string) => boolean;
|
|
13
|
-
export declare const getNameFromDuplicateField: (key: string) => string;
|
|
14
|
-
export declare const parseParamType: (paramValue: Parameters[string], paramField?: FieldDefinition) => any;
|
|
15
|
-
export declare const getLoggedParameters: (macroKey: string, currentParams: Parameters, macroFields?: FieldDefinition[]) => {};
|
|
16
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ExtensionKey, ExtensionManifest, ExtensionProvider, ExtensionType } from '@atlaskit/editor-common/extensions';
|
|
3
|
-
export declare function withExtensionManifest(WrappedComponent: React.ComponentType<{
|
|
4
|
-
extensionManifest: ExtensionManifest;
|
|
5
|
-
}>): (props: {
|
|
6
|
-
extensionKey: ExtensionKey;
|
|
7
|
-
extensionProvider: ExtensionProvider;
|
|
8
|
-
extensionType: ExtensionType;
|
|
9
|
-
}) => React.JSX.Element | null;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
interface SaveIndicatorRenderOptions {
|
|
3
|
-
onSaveEnded: () => void;
|
|
4
|
-
onSaveStarted: () => void;
|
|
5
|
-
}
|
|
6
|
-
export interface SaveIndicatorProps {
|
|
7
|
-
children: (options: SaveIndicatorRenderOptions) => ReactNode;
|
|
8
|
-
duration: number;
|
|
9
|
-
visible?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
3
|
-
import type { Node } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
-
import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
5
|
-
import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
6
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
-
import type { ExtensionPlugin } from '../extensionPluginType';
|
|
8
|
-
export declare const duplicateSelection: (selectionToDuplicate: Selection, doc: Node) => Selection | undefined;
|
|
9
|
-
export declare const getContextPanel: (getEditorView?: () => EditorView | undefined) => (api: ExtractInjectionAPI<ExtensionPlugin> | undefined, featureFlags?: FeatureFlags) => (state: EditorState) => React.JSX.Element | undefined;
|
|
10
|
-
interface Parameters {
|
|
11
|
-
[key: string]: unknown;
|
|
12
|
-
macroParams?: Record<string, unknown>;
|
|
13
|
-
}
|
|
14
|
-
export declare function onChangeAction(editorView: EditorView, updatedParameters: Parameters | undefined, oldParameters: Parameters | undefined, nodeWithPos: ContentNodeWithPos, onSaving?: () => void): Promise<void>;
|
|
15
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
3
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
5
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
|
-
import type { ExtensionPlugin } from '../extensionPluginType';
|
|
7
|
-
export declare function useConfigPanelPluginHook({ editorView, configPanelId, api, }: {
|
|
8
|
-
api?: ExtractInjectionAPI<ExtensionPlugin>;
|
|
9
|
-
configPanelId: string;
|
|
10
|
-
editorView: EditorView;
|
|
11
|
-
}): void;
|
|
12
|
-
export declare function hideConfigPanel(configPanelId: string, api: ExtractInjectionAPI<ExtensionPlugin> | undefined): void;
|
|
13
|
-
export declare function showConfigPanel({ api, configPanelId, editorView, extensionProvider, nodeWithPos, }: {
|
|
14
|
-
api: ExtractInjectionAPI<ExtensionPlugin> | undefined;
|
|
15
|
-
configPanelId: string;
|
|
16
|
-
editorView: EditorView;
|
|
17
|
-
extensionProvider: ExtensionProvider;
|
|
18
|
-
nodeWithPos: ContentNodeWithPos;
|
|
19
|
-
}): void;
|
|
20
|
-
export declare function startClosingConfigPanel({ api, editorView, }: {
|
|
21
|
-
api: ExtractInjectionAPI<ExtensionPlugin> | undefined;
|
|
22
|
-
editorView: EditorView;
|
|
23
|
-
}): Promise<void>;
|
|
24
|
-
export declare const getContextPanelBodyComponent: ({ api, editorView, extensionProvider, nodeWithPos, }: {
|
|
25
|
-
api: ExtractInjectionAPI<ExtensionPlugin> | undefined;
|
|
26
|
-
editorView: EditorView;
|
|
27
|
-
extensionProvider: ExtensionProvider;
|
|
28
|
-
nodeWithPos: ContentNodeWithPos;
|
|
29
|
-
}) => () => React.JSX.Element;
|