@atlaskit/editor-plugin-extension 6.1.6 → 6.1.7
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 +6 -0
- package/dist/types/editor-actions/actions.d.ts +2 -2
- package/dist/types/pm-plugins/macro/actions.d.ts +1 -1
- package/dist/types/pm-plugins/main.d.ts +2 -2
- package/dist/types/pm-plugins/plugin-factory.d.ts +1 -1
- package/dist/types/pm-plugins/toDOM-fixes/bodiedExtension.d.ts +18 -18
- package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +11 -11
- package/dist/types/ui/ConfigPanel/ConfigPanelLoader.d.ts +0 -1
- package/dist/types/ui/ConfigPanel/FieldMessages.d.ts +4 -4
- package/dist/types/ui/ConfigPanel/Fields/ColorPicker.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/Fields/CustomSelect.d.ts +6 -6
- package/dist/types/ui/ConfigPanel/Fields/Date.d.ts +4 -4
- package/dist/types/ui/ConfigPanel/Fields/DateRange.d.ts +4 -5
- package/dist/types/ui/ConfigPanel/FormErrorBoundary.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/Header/HeaderAfterIconElement.d.ts +3 -3
- package/dist/types/ui/ConfigPanel/Header/HeaderIcon.d.ts +3 -3
- package/dist/types/ui/ConfigPanel/Header.d.ts +0 -1
- package/dist/types/ui/ConfigPanel/LoadingState.d.ts +0 -1
- package/dist/types-ts4.5/editor-actions/actions.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/macro/actions.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/main.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/plugin-factory.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/toDOM-fixes/bodiedExtension.d.ts +18 -18
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanel.d.ts +11 -11
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanelLoader.d.ts +0 -1
- package/dist/types-ts4.5/ui/ConfigPanel/FieldMessages.d.ts +4 -4
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/ColorPicker.d.ts +1 -1
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/CustomSelect.d.ts +6 -6
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Date.d.ts +4 -4
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/DateRange.d.ts +4 -5
- package/dist/types-ts4.5/ui/ConfigPanel/FormErrorBoundary.d.ts +1 -1
- package/dist/types-ts4.5/ui/ConfigPanel/Header/HeaderAfterIconElement.d.ts +3 -3
- package/dist/types-ts4.5/ui/ConfigPanel/Header/HeaderIcon.d.ts +3 -3
- package/dist/types-ts4.5/ui/ConfigPanel/Header.d.ts +0 -1
- package/dist/types-ts4.5/ui/ConfigPanel/LoadingState.d.ts +0 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -7,8 +7,8 @@ import type { Fragment, Mark, Node as PmNode, Schema } from '@atlaskit/editor-pr
|
|
|
7
7
|
import { type Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
8
8
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
import type { InsertOrReplaceExtensionType } from '../extensionPluginType';
|
|
10
|
-
export declare const buildExtensionNode: <S extends Schema
|
|
11
|
-
export declare const performNodeUpdate: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (type:
|
|
10
|
+
export declare const buildExtensionNode: <S extends Schema>(type: "inlineExtension" | "extension" | "bodiedExtension" | "multiBodiedExtension", schema: S, attrs: object, content?: Fragment, marks?: readonly Mark[]) => PmNode;
|
|
11
|
+
export declare const performNodeUpdate: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (type: "inlineExtension" | "extension" | "bodiedExtension" | "multiBodiedExtension", newAttrs: object, content: Fragment, marks: readonly Mark[], shouldScrollIntoView: boolean) => Command;
|
|
12
12
|
export declare const editExtension: (macroProvider: MacroProvider | null | undefined, applyChangeToContextPanel: ApplyChangeHandler | undefined, editorAnalyticsAPI: EditorAnalyticsAPI | undefined, updateExtension?: Promise<UpdateExtension<object> | void>) => Command;
|
|
13
13
|
type Props = {
|
|
14
14
|
editorViewRef: Record<'current', EditorView | null>;
|
|
@@ -6,4 +6,4 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
6
6
|
export declare const insertMacroFromMacroBrowser: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (macroProvider: MacroProvider, macroNode?: PmNode, isEditing?: boolean) => (view: EditorView) => Promise<boolean>;
|
|
7
7
|
export declare const resolveMacro: (macro?: MacroAttributes, state?: EditorState, optionalAttrs?: object) => PmNode | null;
|
|
8
8
|
export declare const runMacroAutoConvert: (state: EditorState, text: string) => PmNode | null;
|
|
9
|
-
export declare const setMacroProvider: (provider: Providers[
|
|
9
|
+
export declare const setMacroProvider: (provider: Providers["macroProvider"]) => (view: EditorView) => Promise<boolean>;
|
|
@@ -13,11 +13,11 @@ export declare const createExtensionProviderHandler: (view: EditorView) => (name
|
|
|
13
13
|
export declare const handleUpdate: ({ view, prevState, domAtPos, extensionHandlers, applyChange, }: {
|
|
14
14
|
view: EditorView;
|
|
15
15
|
prevState: EditorState;
|
|
16
|
-
domAtPos: EditorView[
|
|
16
|
+
domAtPos: EditorView["domAtPos"];
|
|
17
17
|
extensionHandlers: ExtensionHandlers;
|
|
18
18
|
applyChange: ApplyChangeHandler | undefined;
|
|
19
19
|
}) => true | undefined;
|
|
20
20
|
export declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginInjectionApi: ExtractInjectionAPI<ExtensionPlugin> | undefined, useLongPressSelection?: boolean, options?: {
|
|
21
21
|
appearance?: EditorAppearance;
|
|
22
22
|
getExtensionHeight?: GetPMNodeHeight;
|
|
23
|
-
}, featureFlags?: FeatureFlags, __rendererExtensionOptions?: ExtensionPluginOptions[
|
|
23
|
+
}, featureFlags?: FeatureFlags, __rendererExtensionOptions?: ExtensionPluginOptions["__rendererExtensionOptions"]) => SafePlugin<import("../extensionPluginType").ExtensionState>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ExtensionState } from '../extensionPluginType';
|
|
2
2
|
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: ExtensionState | ((state: import("prosemirror-state").EditorState) => ExtensionState)) => import("prosemirror-state").SafeStateField<ExtensionState>;
|
|
3
|
-
export declare const createCommand: <A = import("../extensionPluginType").ExtensionAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: (
|
|
3
|
+
export declare const createCommand: <A = import("../extensionPluginType").ExtensionAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: (tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) => import("@atlaskit/editor-common/types").Command;
|
|
4
4
|
export declare const getPluginState: (state: import("prosemirror-state").EditorState) => ExtensionState;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import type { DOMOutputSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export declare const bodiedExtensionSpecWithFixedToDOM: () => {
|
|
3
3
|
toDOM: (node: PMNode) => DOMOutputSpec;
|
|
4
|
-
content?: string
|
|
5
|
-
marks?: string
|
|
6
|
-
group?: string
|
|
7
|
-
inline?: boolean
|
|
8
|
-
atom?: boolean
|
|
4
|
+
content?: string;
|
|
5
|
+
marks?: string;
|
|
6
|
+
group?: string;
|
|
7
|
+
inline?: boolean;
|
|
8
|
+
atom?: boolean;
|
|
9
9
|
attrs?: {
|
|
10
10
|
[name: string]: import("prosemirror-model").AttributeSpec;
|
|
11
|
-
}
|
|
12
|
-
selectable?: boolean
|
|
13
|
-
draggable?: boolean
|
|
14
|
-
code?: boolean
|
|
15
|
-
whitespace?: "pre" | "normal"
|
|
16
|
-
definingAsContext?: boolean
|
|
17
|
-
definingForContent?: boolean
|
|
18
|
-
defining?: boolean
|
|
19
|
-
isolating?: boolean
|
|
20
|
-
parseDOM?: readonly import("prosemirror-model").TagParseRule[]
|
|
21
|
-
toDebugString?: (
|
|
22
|
-
leafText?: (
|
|
23
|
-
linebreakReplacement?: boolean
|
|
11
|
+
};
|
|
12
|
+
selectable?: boolean;
|
|
13
|
+
draggable?: boolean;
|
|
14
|
+
code?: boolean;
|
|
15
|
+
whitespace?: "pre" | "normal";
|
|
16
|
+
definingAsContext?: boolean;
|
|
17
|
+
definingForContent?: boolean;
|
|
18
|
+
defining?: boolean;
|
|
19
|
+
isolating?: boolean;
|
|
20
|
+
parseDOM?: readonly import("prosemirror-model").TagParseRule[];
|
|
21
|
+
toDebugString?: (node: PMNode) => string;
|
|
22
|
+
leafText?: (node: PMNode) => string;
|
|
23
|
+
linebreakReplacement?: boolean;
|
|
24
24
|
};
|
|
@@ -4,20 +4,20 @@ import type { ExtensionManifest, FieldDefinition, OnSaveCallback, OnSaveCallback
|
|
|
4
4
|
import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { ExtensionPlugin, RejectSave } from '../../extensionPluginType';
|
|
6
6
|
declare const result: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
7
|
-
extensionManifest?: ExtensionManifest
|
|
8
|
-
fields?: FieldDefinition[]
|
|
9
|
-
parameters?: Parameters
|
|
10
|
-
autoSaveTrigger?: (
|
|
11
|
-
autoSaveReject?: RejectSave
|
|
12
|
-
showHeader?: boolean
|
|
13
|
-
closeOnEsc?: boolean
|
|
7
|
+
extensionManifest?: ExtensionManifest;
|
|
8
|
+
fields?: FieldDefinition[];
|
|
9
|
+
parameters?: Parameters;
|
|
10
|
+
autoSaveTrigger?: () => void;
|
|
11
|
+
autoSaveReject?: RejectSave;
|
|
12
|
+
showHeader?: boolean;
|
|
13
|
+
closeOnEsc?: boolean;
|
|
14
14
|
onChange: OnSaveCallback | OnSaveCallbackAsync;
|
|
15
15
|
onCancel: () => void | Promise<void>;
|
|
16
16
|
errorMessage: string | null;
|
|
17
|
-
isLoading?: boolean
|
|
18
|
-
featureFlags?: FeatureFlags
|
|
17
|
+
isLoading?: boolean;
|
|
18
|
+
featureFlags?: FeatureFlags;
|
|
19
19
|
api: ExtractInjectionAPI<ExtensionPlugin> | undefined;
|
|
20
|
-
usingObjectSidebarPanel?: boolean
|
|
21
|
-
disableFields?: boolean
|
|
20
|
+
usingObjectSidebarPanel?: boolean;
|
|
21
|
+
disableFields?: boolean;
|
|
22
22
|
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "ref"> & React.RefAttributes<any>>;
|
|
23
23
|
export default result;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
4
|
-
error?: string
|
|
5
|
-
description?: string
|
|
4
|
+
error?: string;
|
|
5
|
+
description?: string;
|
|
6
6
|
} & WrappedComponentProps>> & {
|
|
7
7
|
WrappedComponent: React.ComponentType<{
|
|
8
|
-
error?: string
|
|
9
|
-
description?: string
|
|
8
|
+
error?: string;
|
|
9
|
+
description?: string;
|
|
10
10
|
} & WrappedComponentProps>;
|
|
11
11
|
};
|
|
12
12
|
export default _default;
|
|
@@ -15,6 +15,6 @@ declare const ColorPickerField: ({ name, field, onFieldChange, featureFlags, }:
|
|
|
15
15
|
name: string;
|
|
16
16
|
field: ColorField;
|
|
17
17
|
onFieldChange: OnFieldChange;
|
|
18
|
-
featureFlags?: FeatureFlags
|
|
18
|
+
featureFlags?: FeatureFlags;
|
|
19
19
|
}) => jsx.JSX.Element;
|
|
20
20
|
export default ColorPickerField;
|
|
@@ -7,18 +7,18 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
|
7
7
|
field: CustomField;
|
|
8
8
|
extensionManifest: ExtensionManifest;
|
|
9
9
|
onFieldChange: OnFieldChange;
|
|
10
|
-
autoFocus?: boolean
|
|
11
|
-
placeholder?: string
|
|
12
|
-
parameters?: Parameters
|
|
10
|
+
autoFocus?: boolean;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
parameters?: Parameters;
|
|
13
13
|
} & WrappedComponentProps>> & {
|
|
14
14
|
WrappedComponent: React.ComponentType<{
|
|
15
15
|
name: string;
|
|
16
16
|
field: CustomField;
|
|
17
17
|
extensionManifest: ExtensionManifest;
|
|
18
18
|
onFieldChange: OnFieldChange;
|
|
19
|
-
autoFocus?: boolean
|
|
20
|
-
placeholder?: string
|
|
21
|
-
parameters?: Parameters
|
|
19
|
+
autoFocus?: boolean;
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
parameters?: Parameters;
|
|
22
22
|
} & WrappedComponentProps>;
|
|
23
23
|
};
|
|
24
24
|
export default _default;
|
|
@@ -5,16 +5,16 @@ import type { OnFieldChange } from '../types';
|
|
|
5
5
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
6
6
|
name: string;
|
|
7
7
|
field: DateField;
|
|
8
|
-
autoFocus?: boolean
|
|
8
|
+
autoFocus?: boolean;
|
|
9
9
|
onFieldChange: OnFieldChange;
|
|
10
|
-
placeholder?: string
|
|
10
|
+
placeholder?: string;
|
|
11
11
|
} & WrappedComponentProps>> & {
|
|
12
12
|
WrappedComponent: React.ComponentType<{
|
|
13
13
|
name: string;
|
|
14
14
|
field: DateField;
|
|
15
|
-
autoFocus?: boolean
|
|
15
|
+
autoFocus?: boolean;
|
|
16
16
|
onFieldChange: OnFieldChange;
|
|
17
|
-
placeholder?: string
|
|
17
|
+
placeholder?: string;
|
|
18
18
|
} & WrappedComponentProps>;
|
|
19
19
|
};
|
|
20
20
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
2
|
import type { DateRangeField } from '@atlaskit/editor-common/extensions';
|
|
4
3
|
import type { OnFieldChange } from '../types';
|
|
@@ -6,15 +5,15 @@ declare const _default: import("react").FC<import("react-intl-next").WithIntlPro
|
|
|
6
5
|
name: string;
|
|
7
6
|
field: DateRangeField;
|
|
8
7
|
onFieldChange: OnFieldChange;
|
|
9
|
-
autoFocus?: boolean
|
|
10
|
-
placeholder?: string
|
|
8
|
+
autoFocus?: boolean;
|
|
9
|
+
placeholder?: string;
|
|
11
10
|
} & WrappedComponentProps>> & {
|
|
12
11
|
WrappedComponent: import("react").ComponentType<{
|
|
13
12
|
name: string;
|
|
14
13
|
field: DateRangeField;
|
|
15
14
|
onFieldChange: OnFieldChange;
|
|
16
|
-
autoFocus?: boolean
|
|
17
|
-
placeholder?: string
|
|
15
|
+
autoFocus?: boolean;
|
|
16
|
+
placeholder?: string;
|
|
18
17
|
} & WrappedComponentProps>;
|
|
19
18
|
};
|
|
20
19
|
export default _default;
|
|
@@ -13,6 +13,6 @@ export declare const FormErrorBoundaryImpl: React.FC<import("react-intl-next").W
|
|
|
13
13
|
WrappedComponent: React.ComponentType<Props & WithAnalyticsEventsProps & WrappedComponentProps>;
|
|
14
14
|
};
|
|
15
15
|
export declare const FormErrorBoundary: React.ForwardRefExoticComponent<Omit<Omit<Omit<Props & WithAnalyticsEventsProps & WrappedComponentProps, "intl"> & {
|
|
16
|
-
forwardedRef?: React.Ref<any
|
|
16
|
+
forwardedRef?: React.Ref<any>;
|
|
17
17
|
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "ref"> & React.RefAttributes<any>>;
|
|
18
18
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const _default: (props: {
|
|
3
|
-
extensionProvider: import("@atlaskit/editor-common/extensions").ExtensionProvider
|
|
4
|
-
extensionType:
|
|
5
|
-
extensionKey:
|
|
3
|
+
extensionProvider: import("@atlaskit/editor-common/extensions").ExtensionProvider;
|
|
4
|
+
extensionType: import("@atlaskit/editor-common/extensions").ExtensionType;
|
|
5
|
+
extensionKey: import("@atlaskit/editor-common/extensions").ExtensionKey;
|
|
6
6
|
}) => React.JSX.Element | null;
|
|
7
7
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const _default: (props: {
|
|
3
|
-
extensionProvider: import("@atlaskit/editor-common/extensions").ExtensionProvider
|
|
4
|
-
extensionType:
|
|
5
|
-
extensionKey:
|
|
3
|
+
extensionProvider: import("@atlaskit/editor-common/extensions").ExtensionProvider;
|
|
4
|
+
extensionType: import("@atlaskit/editor-common/extensions").ExtensionType;
|
|
5
|
+
extensionKey: import("@atlaskit/editor-common/extensions").ExtensionKey;
|
|
6
6
|
}) => React.JSX.Element | null;
|
|
7
7
|
export default _default;
|
|
@@ -7,8 +7,8 @@ import type { Fragment, Mark, Node as PmNode, Schema } from '@atlaskit/editor-pr
|
|
|
7
7
|
import { type Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
8
8
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
import type { InsertOrReplaceExtensionType } from '../extensionPluginType';
|
|
10
|
-
export declare const buildExtensionNode: <S extends Schema
|
|
11
|
-
export declare const performNodeUpdate: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (type:
|
|
10
|
+
export declare const buildExtensionNode: <S extends Schema>(type: "inlineExtension" | "extension" | "bodiedExtension" | "multiBodiedExtension", schema: S, attrs: object, content?: Fragment, marks?: readonly Mark[]) => PmNode;
|
|
11
|
+
export declare const performNodeUpdate: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (type: "inlineExtension" | "extension" | "bodiedExtension" | "multiBodiedExtension", newAttrs: object, content: Fragment, marks: readonly Mark[], shouldScrollIntoView: boolean) => Command;
|
|
12
12
|
export declare const editExtension: (macroProvider: MacroProvider | null | undefined, applyChangeToContextPanel: ApplyChangeHandler | undefined, editorAnalyticsAPI: EditorAnalyticsAPI | undefined, updateExtension?: Promise<UpdateExtension<object> | void>) => Command;
|
|
13
13
|
type Props = {
|
|
14
14
|
editorViewRef: Record<'current', EditorView | null>;
|
|
@@ -6,4 +6,4 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
6
6
|
export declare const insertMacroFromMacroBrowser: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (macroProvider: MacroProvider, macroNode?: PmNode, isEditing?: boolean) => (view: EditorView) => Promise<boolean>;
|
|
7
7
|
export declare const resolveMacro: (macro?: MacroAttributes, state?: EditorState, optionalAttrs?: object) => PmNode | null;
|
|
8
8
|
export declare const runMacroAutoConvert: (state: EditorState, text: string) => PmNode | null;
|
|
9
|
-
export declare const setMacroProvider: (provider: Providers[
|
|
9
|
+
export declare const setMacroProvider: (provider: Providers["macroProvider"]) => (view: EditorView) => Promise<boolean>;
|
|
@@ -13,11 +13,11 @@ export declare const createExtensionProviderHandler: (view: EditorView) => (name
|
|
|
13
13
|
export declare const handleUpdate: ({ view, prevState, domAtPos, extensionHandlers, applyChange, }: {
|
|
14
14
|
view: EditorView;
|
|
15
15
|
prevState: EditorState;
|
|
16
|
-
domAtPos: EditorView[
|
|
16
|
+
domAtPos: EditorView["domAtPos"];
|
|
17
17
|
extensionHandlers: ExtensionHandlers;
|
|
18
18
|
applyChange: ApplyChangeHandler | undefined;
|
|
19
19
|
}) => true | undefined;
|
|
20
20
|
export declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginInjectionApi: ExtractInjectionAPI<ExtensionPlugin> | undefined, useLongPressSelection?: boolean, options?: {
|
|
21
21
|
appearance?: EditorAppearance;
|
|
22
22
|
getExtensionHeight?: GetPMNodeHeight;
|
|
23
|
-
}, featureFlags?: FeatureFlags, __rendererExtensionOptions?: ExtensionPluginOptions[
|
|
23
|
+
}, featureFlags?: FeatureFlags, __rendererExtensionOptions?: ExtensionPluginOptions["__rendererExtensionOptions"]) => SafePlugin<import("../extensionPluginType").ExtensionState>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ExtensionState } from '../extensionPluginType';
|
|
2
2
|
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: ExtensionState | ((state: import("prosemirror-state").EditorState) => ExtensionState)) => import("prosemirror-state").SafeStateField<ExtensionState>;
|
|
3
|
-
export declare const createCommand: <A = import("../extensionPluginType").ExtensionAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: (
|
|
3
|
+
export declare const createCommand: <A = import("../extensionPluginType").ExtensionAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: (tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) => import("@atlaskit/editor-common/types").Command;
|
|
4
4
|
export declare const getPluginState: (state: import("prosemirror-state").EditorState) => ExtensionState;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import type { DOMOutputSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export declare const bodiedExtensionSpecWithFixedToDOM: () => {
|
|
3
3
|
toDOM: (node: PMNode) => DOMOutputSpec;
|
|
4
|
-
content?: string
|
|
5
|
-
marks?: string
|
|
6
|
-
group?: string
|
|
7
|
-
inline?: boolean
|
|
8
|
-
atom?: boolean
|
|
4
|
+
content?: string;
|
|
5
|
+
marks?: string;
|
|
6
|
+
group?: string;
|
|
7
|
+
inline?: boolean;
|
|
8
|
+
atom?: boolean;
|
|
9
9
|
attrs?: {
|
|
10
10
|
[name: string]: import("prosemirror-model").AttributeSpec;
|
|
11
|
-
}
|
|
12
|
-
selectable?: boolean
|
|
13
|
-
draggable?: boolean
|
|
14
|
-
code?: boolean
|
|
15
|
-
whitespace?: "pre" | "normal"
|
|
16
|
-
definingAsContext?: boolean
|
|
17
|
-
definingForContent?: boolean
|
|
18
|
-
defining?: boolean
|
|
19
|
-
isolating?: boolean
|
|
20
|
-
parseDOM?: readonly import("prosemirror-model").TagParseRule[]
|
|
21
|
-
toDebugString?: (
|
|
22
|
-
leafText?: (
|
|
23
|
-
linebreakReplacement?: boolean
|
|
11
|
+
};
|
|
12
|
+
selectable?: boolean;
|
|
13
|
+
draggable?: boolean;
|
|
14
|
+
code?: boolean;
|
|
15
|
+
whitespace?: "pre" | "normal";
|
|
16
|
+
definingAsContext?: boolean;
|
|
17
|
+
definingForContent?: boolean;
|
|
18
|
+
defining?: boolean;
|
|
19
|
+
isolating?: boolean;
|
|
20
|
+
parseDOM?: readonly import("prosemirror-model").TagParseRule[];
|
|
21
|
+
toDebugString?: (node: PMNode) => string;
|
|
22
|
+
leafText?: (node: PMNode) => string;
|
|
23
|
+
linebreakReplacement?: boolean;
|
|
24
24
|
};
|
|
@@ -4,20 +4,20 @@ import type { ExtensionManifest, FieldDefinition, OnSaveCallback, OnSaveCallback
|
|
|
4
4
|
import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { ExtensionPlugin, RejectSave } from '../../extensionPluginType';
|
|
6
6
|
declare const result: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
7
|
-
extensionManifest?: ExtensionManifest
|
|
8
|
-
fields?: FieldDefinition[]
|
|
9
|
-
parameters?: Parameters
|
|
10
|
-
autoSaveTrigger?: (
|
|
11
|
-
autoSaveReject?: RejectSave
|
|
12
|
-
showHeader?: boolean
|
|
13
|
-
closeOnEsc?: boolean
|
|
7
|
+
extensionManifest?: ExtensionManifest;
|
|
8
|
+
fields?: FieldDefinition[];
|
|
9
|
+
parameters?: Parameters;
|
|
10
|
+
autoSaveTrigger?: () => void;
|
|
11
|
+
autoSaveReject?: RejectSave;
|
|
12
|
+
showHeader?: boolean;
|
|
13
|
+
closeOnEsc?: boolean;
|
|
14
14
|
onChange: OnSaveCallback | OnSaveCallbackAsync;
|
|
15
15
|
onCancel: () => void | Promise<void>;
|
|
16
16
|
errorMessage: string | null;
|
|
17
|
-
isLoading?: boolean
|
|
18
|
-
featureFlags?: FeatureFlags
|
|
17
|
+
isLoading?: boolean;
|
|
18
|
+
featureFlags?: FeatureFlags;
|
|
19
19
|
api: ExtractInjectionAPI<ExtensionPlugin> | undefined;
|
|
20
|
-
usingObjectSidebarPanel?: boolean
|
|
21
|
-
disableFields?: boolean
|
|
20
|
+
usingObjectSidebarPanel?: boolean;
|
|
21
|
+
disableFields?: boolean;
|
|
22
22
|
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "ref"> & React.RefAttributes<any>>;
|
|
23
23
|
export default result;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
4
|
-
error?: string
|
|
5
|
-
description?: string
|
|
4
|
+
error?: string;
|
|
5
|
+
description?: string;
|
|
6
6
|
} & WrappedComponentProps>> & {
|
|
7
7
|
WrappedComponent: React.ComponentType<{
|
|
8
|
-
error?: string
|
|
9
|
-
description?: string
|
|
8
|
+
error?: string;
|
|
9
|
+
description?: string;
|
|
10
10
|
} & WrappedComponentProps>;
|
|
11
11
|
};
|
|
12
12
|
export default _default;
|
|
@@ -15,6 +15,6 @@ declare const ColorPickerField: ({ name, field, onFieldChange, featureFlags, }:
|
|
|
15
15
|
name: string;
|
|
16
16
|
field: ColorField;
|
|
17
17
|
onFieldChange: OnFieldChange;
|
|
18
|
-
featureFlags?: FeatureFlags
|
|
18
|
+
featureFlags?: FeatureFlags;
|
|
19
19
|
}) => jsx.JSX.Element;
|
|
20
20
|
export default ColorPickerField;
|
|
@@ -7,18 +7,18 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
|
7
7
|
field: CustomField;
|
|
8
8
|
extensionManifest: ExtensionManifest;
|
|
9
9
|
onFieldChange: OnFieldChange;
|
|
10
|
-
autoFocus?: boolean
|
|
11
|
-
placeholder?: string
|
|
12
|
-
parameters?: Parameters
|
|
10
|
+
autoFocus?: boolean;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
parameters?: Parameters;
|
|
13
13
|
} & WrappedComponentProps>> & {
|
|
14
14
|
WrappedComponent: React.ComponentType<{
|
|
15
15
|
name: string;
|
|
16
16
|
field: CustomField;
|
|
17
17
|
extensionManifest: ExtensionManifest;
|
|
18
18
|
onFieldChange: OnFieldChange;
|
|
19
|
-
autoFocus?: boolean
|
|
20
|
-
placeholder?: string
|
|
21
|
-
parameters?: Parameters
|
|
19
|
+
autoFocus?: boolean;
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
parameters?: Parameters;
|
|
22
22
|
} & WrappedComponentProps>;
|
|
23
23
|
};
|
|
24
24
|
export default _default;
|
|
@@ -5,16 +5,16 @@ import type { OnFieldChange } from '../types';
|
|
|
5
5
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
6
6
|
name: string;
|
|
7
7
|
field: DateField;
|
|
8
|
-
autoFocus?: boolean
|
|
8
|
+
autoFocus?: boolean;
|
|
9
9
|
onFieldChange: OnFieldChange;
|
|
10
|
-
placeholder?: string
|
|
10
|
+
placeholder?: string;
|
|
11
11
|
} & WrappedComponentProps>> & {
|
|
12
12
|
WrappedComponent: React.ComponentType<{
|
|
13
13
|
name: string;
|
|
14
14
|
field: DateField;
|
|
15
|
-
autoFocus?: boolean
|
|
15
|
+
autoFocus?: boolean;
|
|
16
16
|
onFieldChange: OnFieldChange;
|
|
17
|
-
placeholder?: string
|
|
17
|
+
placeholder?: string;
|
|
18
18
|
} & WrappedComponentProps>;
|
|
19
19
|
};
|
|
20
20
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
2
|
import type { DateRangeField } from '@atlaskit/editor-common/extensions';
|
|
4
3
|
import type { OnFieldChange } from '../types';
|
|
@@ -6,15 +5,15 @@ declare const _default: import("react").FC<import("react-intl-next").WithIntlPro
|
|
|
6
5
|
name: string;
|
|
7
6
|
field: DateRangeField;
|
|
8
7
|
onFieldChange: OnFieldChange;
|
|
9
|
-
autoFocus?: boolean
|
|
10
|
-
placeholder?: string
|
|
8
|
+
autoFocus?: boolean;
|
|
9
|
+
placeholder?: string;
|
|
11
10
|
} & WrappedComponentProps>> & {
|
|
12
11
|
WrappedComponent: import("react").ComponentType<{
|
|
13
12
|
name: string;
|
|
14
13
|
field: DateRangeField;
|
|
15
14
|
onFieldChange: OnFieldChange;
|
|
16
|
-
autoFocus?: boolean
|
|
17
|
-
placeholder?: string
|
|
15
|
+
autoFocus?: boolean;
|
|
16
|
+
placeholder?: string;
|
|
18
17
|
} & WrappedComponentProps>;
|
|
19
18
|
};
|
|
20
19
|
export default _default;
|
|
@@ -13,6 +13,6 @@ export declare const FormErrorBoundaryImpl: React.FC<import("react-intl-next").W
|
|
|
13
13
|
WrappedComponent: React.ComponentType<Props & WithAnalyticsEventsProps & WrappedComponentProps>;
|
|
14
14
|
};
|
|
15
15
|
export declare const FormErrorBoundary: React.ForwardRefExoticComponent<Omit<Omit<Omit<Props & WithAnalyticsEventsProps & WrappedComponentProps, "intl"> & {
|
|
16
|
-
forwardedRef?: React.Ref<any
|
|
16
|
+
forwardedRef?: React.Ref<any>;
|
|
17
17
|
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "ref"> & React.RefAttributes<any>>;
|
|
18
18
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const _default: (props: {
|
|
3
|
-
extensionProvider: import("@atlaskit/editor-common/extensions").ExtensionProvider
|
|
4
|
-
extensionType:
|
|
5
|
-
extensionKey:
|
|
3
|
+
extensionProvider: import("@atlaskit/editor-common/extensions").ExtensionProvider;
|
|
4
|
+
extensionType: import("@atlaskit/editor-common/extensions").ExtensionType;
|
|
5
|
+
extensionKey: import("@atlaskit/editor-common/extensions").ExtensionKey;
|
|
6
6
|
}) => React.JSX.Element | null;
|
|
7
7
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const _default: (props: {
|
|
3
|
-
extensionProvider: import("@atlaskit/editor-common/extensions").ExtensionProvider
|
|
4
|
-
extensionType:
|
|
5
|
-
extensionKey:
|
|
3
|
+
extensionProvider: import("@atlaskit/editor-common/extensions").ExtensionProvider;
|
|
4
|
+
extensionType: import("@atlaskit/editor-common/extensions").ExtensionType;
|
|
5
|
+
extensionKey: import("@atlaskit/editor-common/extensions").ExtensionKey;
|
|
6
6
|
}) => React.JSX.Element | null;
|
|
7
7
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.7",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@atlaskit/adf-utils": "^19.21.0",
|
|
29
29
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
30
30
|
"@atlaskit/avatar": "^25.1.0",
|
|
31
|
-
"@atlaskit/button": "^23.
|
|
31
|
+
"@atlaskit/button": "^23.4.0",
|
|
32
32
|
"@atlaskit/checkbox": "^17.1.0",
|
|
33
33
|
"@atlaskit/datetime-picker": "^17.0.0",
|
|
34
34
|
"@atlaskit/editor-json-transformer": "^8.25.0",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
44
44
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
45
45
|
"@atlaskit/empty-state": "^10.1.0",
|
|
46
|
-
"@atlaskit/form": "^12.
|
|
46
|
+
"@atlaskit/form": "^12.1.0",
|
|
47
47
|
"@atlaskit/heading": "^5.2.0",
|
|
48
|
-
"@atlaskit/icon": "^27.
|
|
48
|
+
"@atlaskit/icon": "^27.12.0",
|
|
49
49
|
"@atlaskit/link": "^3.2.0",
|
|
50
50
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
51
51
|
"@atlaskit/primitives": "^14.11.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@atlaskit/textarea": "^8.0.0",
|
|
59
59
|
"@atlaskit/textfield": "^8.0.0",
|
|
60
60
|
"@atlaskit/theme": "^19.0.0",
|
|
61
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
61
|
+
"@atlaskit/tmp-editor-statsig": "^10.0.0",
|
|
62
62
|
"@atlaskit/toggle": "^15.1.0",
|
|
63
63
|
"@atlaskit/tokens": "^6.0.0",
|
|
64
64
|
"@atlaskit/tooltip": "^20.4.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"uuid": "^3.1.0"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"@atlaskit/editor-common": "^107.
|
|
75
|
+
"@atlaskit/editor-common": "^107.25.0",
|
|
76
76
|
"react": "^18.2.0",
|
|
77
77
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
78
78
|
},
|