@atlaskit/editor-plugin-extension 11.0.0 → 11.0.2
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 +14 -0
- package/README.md +14 -1
- package/dist/cjs/ui/ConfigPanel/ConfigPanelLoader.js +3 -2
- package/dist/cjs/ui/ConfigPanel/ErrorMessage/ErrorImage.js +1 -1
- package/dist/cjs/ui/ConfigPanel/ErrorMessage/index.js +4 -1
- package/dist/cjs/ui/ConfigPanel/FieldMessages.js +4 -1
- package/dist/cjs/ui/ConfigPanel/Fields/Boolean.js +1 -1
- package/dist/cjs/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -1
- package/dist/cjs/ui/ConfigPanel/Fields/ColorPicker.js +1 -1
- package/dist/cjs/ui/ConfigPanel/Fields/CustomSelect.js +4 -1
- package/dist/cjs/ui/ConfigPanel/Fields/Date.js +4 -1
- package/dist/cjs/ui/ConfigPanel/Fields/DateRange.js +2 -1
- package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +4 -1
- package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +4 -1
- package/dist/cjs/ui/ConfigPanel/Fields/SelectItem.js +1 -1
- package/dist/cjs/ui/ConfigPanel/Fields/TabGroup.js +2 -0
- package/dist/cjs/ui/ConfigPanel/FormErrorBoundary.js +1 -1
- package/dist/cjs/ui/ConfigPanel/Header/HeaderAfterIconElement.js +2 -1
- package/dist/cjs/ui/ConfigPanel/Header/HeaderIcon.js +2 -1
- package/dist/cjs/ui/ConfigPanel/Header.js +2 -1
- package/dist/cjs/ui/ConfigPanel/LoadingState.js +2 -1
- package/dist/cjs/ui/ConfigPanel/NestedForms/RemovableField.js +4 -1
- package/dist/cjs/ui/ConfigPanel/utils.js +3 -1
- package/dist/cjs/ui/SaveIndicator/SaveIndicator.js +1 -1
- package/dist/es2019/ui/ConfigPanel/ConfigPanelLoader.js +3 -2
- package/dist/es2019/ui/ConfigPanel/ErrorMessage/ErrorImage.js +1 -1
- package/dist/es2019/ui/ConfigPanel/ErrorMessage/index.js +4 -1
- package/dist/es2019/ui/ConfigPanel/FieldMessages.js +4 -1
- package/dist/es2019/ui/ConfigPanel/Fields/Boolean.js +1 -1
- package/dist/es2019/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -1
- package/dist/es2019/ui/ConfigPanel/Fields/ColorPicker.js +1 -1
- package/dist/es2019/ui/ConfigPanel/Fields/CustomSelect.js +4 -1
- package/dist/es2019/ui/ConfigPanel/Fields/Date.js +4 -1
- package/dist/es2019/ui/ConfigPanel/Fields/DateRange.js +2 -1
- package/dist/es2019/ui/ConfigPanel/Fields/Expand.js +4 -1
- package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +4 -1
- package/dist/es2019/ui/ConfigPanel/Fields/SelectItem.js +1 -1
- package/dist/es2019/ui/ConfigPanel/Fields/TabGroup.js +2 -0
- package/dist/es2019/ui/ConfigPanel/FormErrorBoundary.js +2 -0
- package/dist/es2019/ui/ConfigPanel/Header/HeaderAfterIconElement.js +2 -1
- package/dist/es2019/ui/ConfigPanel/Header/HeaderIcon.js +2 -1
- package/dist/es2019/ui/ConfigPanel/Header.js +2 -1
- package/dist/es2019/ui/ConfigPanel/LoadingState.js +2 -1
- package/dist/es2019/ui/ConfigPanel/NestedForms/RemovableField.js +4 -1
- package/dist/es2019/ui/ConfigPanel/utils.js +3 -1
- package/dist/es2019/ui/SaveIndicator/SaveIndicator.js +1 -1
- package/dist/esm/ui/ConfigPanel/ConfigPanelLoader.js +3 -2
- package/dist/esm/ui/ConfigPanel/ErrorMessage/ErrorImage.js +1 -1
- package/dist/esm/ui/ConfigPanel/ErrorMessage/index.js +4 -1
- package/dist/esm/ui/ConfigPanel/FieldMessages.js +4 -1
- package/dist/esm/ui/ConfigPanel/Fields/Boolean.js +1 -1
- package/dist/esm/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -1
- package/dist/esm/ui/ConfigPanel/Fields/ColorPicker.js +1 -1
- package/dist/esm/ui/ConfigPanel/Fields/CustomSelect.js +4 -1
- package/dist/esm/ui/ConfigPanel/Fields/Date.js +4 -1
- package/dist/esm/ui/ConfigPanel/Fields/DateRange.js +2 -1
- package/dist/esm/ui/ConfigPanel/Fields/Expand.js +4 -1
- package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +4 -1
- package/dist/esm/ui/ConfigPanel/Fields/SelectItem.js +1 -1
- package/dist/esm/ui/ConfigPanel/Fields/TabGroup.js +2 -0
- package/dist/esm/ui/ConfigPanel/FormErrorBoundary.js +1 -1
- package/dist/esm/ui/ConfigPanel/Header/HeaderAfterIconElement.js +2 -1
- package/dist/esm/ui/ConfigPanel/Header/HeaderIcon.js +2 -1
- package/dist/esm/ui/ConfigPanel/Header.js +2 -1
- package/dist/esm/ui/ConfigPanel/LoadingState.js +2 -1
- package/dist/esm/ui/ConfigPanel/NestedForms/RemovableField.js +4 -1
- package/dist/esm/ui/ConfigPanel/utils.js +3 -1
- package/dist/esm/ui/SaveIndicator/SaveIndicator.js +1 -1
- package/dist/types/editor-commands/commands.d.ts +8 -7
- package/dist/types/nodeviews/lazyExtension.d.ts +2 -1
- package/dist/types/pm-plugins/macro/plugin.d.ts +1 -1
- package/dist/types/pm-plugins/main.d.ts +2 -2
- package/dist/types/pm-plugins/plugin-factory.d.ts +7 -4
- package/dist/types/pm-plugins/toDOM-fixes/bodiedExtension.d.ts +18 -17
- package/dist/types/pm-plugins/unique-id.d.ts +1 -1
- package/dist/types/pm-plugins/update-edit-button.d.ts +2 -2
- package/dist/types/pm-plugins/utils.d.ts +2 -2
- package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +2 -2
- package/dist/types/ui/ConfigPanel/ConfigPanelLoader.d.ts +3 -2
- package/dist/types/ui/ConfigPanel/ErrorMessage/index.d.ts +3 -3
- package/dist/types/ui/ConfigPanel/FieldMessages.d.ts +3 -3
- package/dist/types/ui/ConfigPanel/Fields/CustomSelect.d.ts +3 -3
- package/dist/types/ui/ConfigPanel/Fields/Date.d.ts +3 -3
- package/dist/types/ui/ConfigPanel/Fields/DateRange.d.ts +9 -4
- package/dist/types/ui/ConfigPanel/Fields/Expand.d.ts +3 -3
- package/dist/types/ui/ConfigPanel/Fields/Fieldset.d.ts +3 -3
- package/dist/types/ui/ConfigPanel/Fields/TabGroup.d.ts +2 -2
- package/dist/types/ui/ConfigPanel/FormErrorBoundary.d.ts +5 -5
- package/dist/types/ui/ConfigPanel/Header/HeaderAfterIconElement.d.ts +6 -5
- package/dist/types/ui/ConfigPanel/Header/HeaderIcon.d.ts +6 -5
- package/dist/types/ui/ConfigPanel/Header.d.ts +9 -4
- package/dist/types/ui/ConfigPanel/LoadingState.d.ts +2 -1
- package/dist/types/ui/ConfigPanel/NestedForms/RemovableField.d.ts +3 -3
- package/dist/types/ui/SaveIndicator/SaveIndicator.d.ts +1 -1
- package/dist/types-ts4.5/editor-commands/commands.d.ts +8 -7
- package/dist/types-ts4.5/nodeviews/lazyExtension.d.ts +2 -1
- package/dist/types-ts4.5/pm-plugins/macro/plugin.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 +7 -4
- package/dist/types-ts4.5/pm-plugins/toDOM-fixes/bodiedExtension.d.ts +18 -17
- package/dist/types-ts4.5/pm-plugins/unique-id.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/update-edit-button.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/utils.d.ts +2 -2
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanel.d.ts +2 -2
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanelLoader.d.ts +3 -2
- package/dist/types-ts4.5/ui/ConfigPanel/ErrorMessage/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/ConfigPanel/FieldMessages.d.ts +3 -3
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/CustomSelect.d.ts +3 -3
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Date.d.ts +3 -3
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/DateRange.d.ts +9 -4
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Expand.d.ts +3 -3
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/Fieldset.d.ts +3 -3
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/TabGroup.d.ts +2 -2
- package/dist/types-ts4.5/ui/ConfigPanel/FormErrorBoundary.d.ts +5 -5
- package/dist/types-ts4.5/ui/ConfigPanel/Header/HeaderAfterIconElement.d.ts +6 -5
- package/dist/types-ts4.5/ui/ConfigPanel/Header/HeaderIcon.d.ts +6 -5
- package/dist/types-ts4.5/ui/ConfigPanel/Header.d.ts +9 -4
- package/dist/types-ts4.5/ui/ConfigPanel/LoadingState.d.ts +2 -1
- package/dist/types-ts4.5/ui/ConfigPanel/NestedForms/RemovableField.d.ts +3 -3
- package/dist/types-ts4.5/ui/SaveIndicator/SaveIndicator.d.ts +1 -1
- package/example-utils/config-panel/ConfigPanelWithExtensionPicker.tsx +2 -2
- package/package.json +4 -4
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import Avatar from '@atlaskit/avatar';
|
|
8
8
|
var itemWrapperStyles = css({
|
|
@@ -130,7 +130,7 @@ var FormErrorBoundaryInner = /*#__PURE__*/function (_React$Component) {
|
|
|
130
130
|
}, intl.formatMessage(messages.errorBoundaryNote))));
|
|
131
131
|
}
|
|
132
132
|
}]);
|
|
133
|
-
}(React.Component);
|
|
133
|
+
}(React.Component); // eslint-disable-next-line @typescript-eslint/ban-types
|
|
134
134
|
export var FormErrorBoundaryImpl = injectIntl(FormErrorBoundaryInner);
|
|
135
135
|
export var FormErrorBoundary = withAnalyticsContext()(withAnalyticsEvents()(FormErrorBoundaryImpl));
|
|
136
136
|
FormErrorBoundary.displayName = 'FormErrorBoundary';
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
6
7
|
import { css, jsx } from '@emotion/react';
|
|
7
8
|
import { injectIntl } from 'react-intl-next';
|
|
8
9
|
import { messages } from '@atlaskit/editor-common/extensions';
|
|
@@ -62,4 +62,7 @@ var RemovableField = function RemovableField(_ref) {
|
|
|
62
62
|
label: intl.formatMessage(messages.removeField)
|
|
63
63
|
}))));
|
|
64
64
|
};
|
|
65
|
-
|
|
65
|
+
|
|
66
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
67
|
+
var _default_1 = injectIntl(RemovableField);
|
|
68
|
+
export default _default_1;
|
|
@@ -101,7 +101,9 @@ export var parseParamType = function parseParamType(paramValue, paramField
|
|
|
101
101
|
// Safety net
|
|
102
102
|
return null;
|
|
103
103
|
};
|
|
104
|
-
export var getLoggedParameters = function getLoggedParameters(macroKey, currentParams, macroFields
|
|
104
|
+
export var getLoggedParameters = function getLoggedParameters(macroKey, currentParams, macroFields
|
|
105
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
106
|
+
) {
|
|
105
107
|
// Get the parameters only defined in the allowlist of logged macro/parameter keys
|
|
106
108
|
return Object.keys(currentParams).filter(function (paramKey) {
|
|
107
109
|
var _ALLOWED_LOGGED_MACRO;
|
|
@@ -5,7 +5,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
5
5
|
*/
|
|
6
6
|
import { Fragment, useCallback, useEffect, useRef, useState } from 'react';
|
|
7
7
|
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import { FormattedMessage } from 'react-intl-next';
|
|
11
11
|
import { messages } from '@atlaskit/editor-common/extensions';
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import type { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
2
2
|
import type { EditorAnalyticsAPI, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { Parameters, TransformAfter, TransformBefore } from '@atlaskit/editor-common/extensions';
|
|
4
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
4
5
|
import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
|
|
5
6
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
6
7
|
import { type EditorState, type Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
7
8
|
import type { ExtensionState, RejectSave } from '../extensionPluginType';
|
|
8
|
-
export declare function updateState(state: Partial<ExtensionState>):
|
|
9
|
-
export declare function setEditingContextToContextPanel<T extends Parameters = Parameters>(processParametersBefore: TransformBefore<T>, processParametersAfter: TransformAfter<T>, applyChangeToContextPanel: ApplyChangeHandler | undefined):
|
|
10
|
-
export declare const clearEditingContext: (applyChangeToContextPanel: ApplyChangeHandler | undefined) =>
|
|
11
|
-
export declare const forceAutoSave: (applyChangeToContextPanel: ApplyChangeHandler | undefined) => (resolve: () => void, reject?: RejectSave) =>
|
|
12
|
-
export declare const updateExtensionLayout: (layout: ExtensionLayout, analyticsApi?: EditorAnalyticsAPI) =>
|
|
13
|
-
export declare const removeExtension: (editorAnalyticsAPI?: EditorAnalyticsAPI, inputMethod?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB) =>
|
|
14
|
-
export declare const removeDescendantNodes: (sourceNode?: PMNode) =>
|
|
9
|
+
export declare function updateState(state: Partial<ExtensionState>): Command;
|
|
10
|
+
export declare function setEditingContextToContextPanel<T extends Parameters = Parameters>(processParametersBefore: TransformBefore<T>, processParametersAfter: TransformAfter<T>, applyChangeToContextPanel: ApplyChangeHandler | undefined): Command;
|
|
11
|
+
export declare const clearEditingContext: (applyChangeToContextPanel: ApplyChangeHandler | undefined) => Command;
|
|
12
|
+
export declare const forceAutoSave: (applyChangeToContextPanel: ApplyChangeHandler | undefined) => (resolve: () => void, reject?: RejectSave) => Command;
|
|
13
|
+
export declare const updateExtensionLayout: (layout: ExtensionLayout, analyticsApi?: EditorAnalyticsAPI) => Command;
|
|
14
|
+
export declare const removeExtension: (editorAnalyticsAPI?: EditorAnalyticsAPI, inputMethod?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB) => Command;
|
|
15
|
+
export declare const removeDescendantNodes: (sourceNode?: PMNode) => Command;
|
|
15
16
|
export declare const removeSelectedNodeWithAnalytics: (state: EditorState, tr: Transaction, analyticsApi?: EditorAnalyticsAPI, inputMethod?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB) => Transaction;
|
|
16
17
|
export declare const checkAndRemoveExtensionNode: (state: EditorState, tr: Transaction, analyticsApi?: EditorAnalyticsAPI, inputMethod?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB) => Transaction;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { ExtensionNodeView } from '@atlaskit/editor-common/extensibility';
|
|
2
|
-
|
|
2
|
+
import { type NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
|
|
3
|
+
export declare function lazyExtensionNodeView(nodeName: string, ...params: Parameters<typeof ExtensionNodeView>): NodeViewConstructor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
2
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
|
-
export declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory) => SafePlugin
|
|
4
|
+
export declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory) => SafePlugin;
|
|
@@ -8,7 +8,7 @@ import type { EditorAppearance, ExtractInjectionAPI, FeatureFlags } from '@atlas
|
|
|
8
8
|
import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
|
|
9
9
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
10
10
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
11
|
-
import type { ExtensionPlugin, ExtensionPluginOptions } from '../extensionPluginType';
|
|
11
|
+
import type { ExtensionPlugin, ExtensionPluginOptions, ExtensionState } from '../extensionPluginType';
|
|
12
12
|
export declare const createExtensionProviderHandler: (view: EditorView) => (name: string, provider?: Promise<ExtensionProvider>) => Promise<void>;
|
|
13
13
|
export declare const handleUpdate: ({ view, prevState, domAtPos, extensionHandlers, applyChange, }: {
|
|
14
14
|
applyChange: ApplyChangeHandler | undefined;
|
|
@@ -20,4 +20,4 @@ export declare const handleUpdate: ({ view, prevState, domAtPos, extensionHandle
|
|
|
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["__rendererExtensionOptions"]) => SafePlugin<
|
|
23
|
+
}, featureFlags?: FeatureFlags, __rendererExtensionOptions?: ExtensionPluginOptions["__rendererExtensionOptions"]) => SafePlugin<ExtensionState>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { EditorState, SafeStateField, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
+
import type { ExtensionAction, ExtensionState } from '../extensionPluginType';
|
|
5
|
+
export declare const createPluginState: (dispatch: Dispatch, initialState: ExtensionState | ((state: EditorState) => ExtensionState)) => SafeStateField<ExtensionState>;
|
|
6
|
+
export declare const createCommand: <A = ExtensionAction>(action: A | ((state: Readonly<EditorState>) => false | A), transform?: (tr: Transaction, state: EditorState) => Transaction) => Command;
|
|
7
|
+
export declare const getPluginState: (state: EditorState) => ExtensionState;
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import type { DOMOutputSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import type { AttributeSpec, DOMOutputSpec, Node as PMNode, TagParseRule } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
3
|
export declare const bodiedExtensionSpecWithFixedToDOM: () => {
|
|
3
|
-
toDOM: (node: PMNode) => DOMOutputSpec;
|
|
4
|
-
content?: string;
|
|
5
|
-
marks?: string;
|
|
6
|
-
group?: string;
|
|
7
|
-
inline?: boolean;
|
|
8
4
|
atom?: boolean;
|
|
9
5
|
attrs?: {
|
|
10
|
-
[name: string]:
|
|
6
|
+
[name: string]: AttributeSpec;
|
|
11
7
|
};
|
|
12
|
-
selectable?: boolean;
|
|
13
|
-
draggable?: boolean;
|
|
14
8
|
code?: boolean;
|
|
15
|
-
|
|
9
|
+
content?: string;
|
|
10
|
+
defining?: boolean;
|
|
16
11
|
definingAsContext?: boolean;
|
|
17
12
|
definingForContent?: boolean;
|
|
18
|
-
|
|
13
|
+
disableDropCursor?: boolean | ((view: EditorView, pos: {
|
|
14
|
+
inside: number;
|
|
15
|
+
pos: number;
|
|
16
|
+
}, event: DragEvent) => boolean);
|
|
17
|
+
draggable?: boolean;
|
|
18
|
+
group?: string;
|
|
19
|
+
inline?: boolean;
|
|
19
20
|
isolating?: boolean;
|
|
20
|
-
parseDOM?: readonly import("prosemirror-model").TagParseRule[];
|
|
21
|
-
toDebugString?: (node: PMNode) => string;
|
|
22
21
|
leafText?: (node: PMNode) => string;
|
|
23
22
|
linebreakReplacement?: boolean;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
marks?: string;
|
|
24
|
+
parseDOM?: readonly TagParseRule[];
|
|
25
|
+
selectable?: boolean;
|
|
26
|
+
toDebugString?: (node: PMNode) => string;
|
|
27
|
+
toDOM: (node: PMNode) => DOMOutputSpec;
|
|
28
|
+
whitespace?: "pre" | "normal";
|
|
28
29
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
1
|
+
import type { ExtensionProvider, UpdateExtension } from '@atlaskit/editor-common/extensions';
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
export declare const updateEditButton: (view: EditorView, extensionProvider: ExtensionProvider) => Promise<
|
|
3
|
+
export declare const updateEditButton: (view: EditorView, extensionProvider: ExtensionProvider) => Promise<UpdateExtension<any> | undefined>;
|
|
@@ -4,8 +4,8 @@ import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
|
4
4
|
import type { MentionsPlugin } from '@atlaskit/editor-plugin-mentions';
|
|
5
5
|
import type { Mark, Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
6
6
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
7
|
-
import type { DomAtPos, NodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
8
|
-
export declare const getSelectedExtension: (state: EditorState, searchParent?: boolean) =>
|
|
7
|
+
import type { ContentNodeWithPos, DomAtPos, NodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
8
|
+
export declare const getSelectedExtension: (state: EditorState, searchParent?: boolean) => ContentNodeWithPos | undefined;
|
|
9
9
|
export declare const findExtensionWithLocalId: (state: EditorState, localId?: string) => NodeWithPos | undefined;
|
|
10
10
|
export declare const getSelectedDomElement: (schema: Schema, domAtPos: DomAtPos, selectedExtensionNode: NodeWithPos) => HTMLElement;
|
|
11
11
|
export declare const getDataConsumerMark: (newNode: PMNode) => Mark | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
2
|
+
import type { WithAnalyticsEventsProps, WithContextProps } from '@atlaskit/analytics-next';
|
|
3
3
|
import type { ExtensionManifest, FieldDefinition, OnSaveCallback, OnSaveCallbackAsync, Parameters } from '@atlaskit/editor-common/extensions';
|
|
4
4
|
import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { ExtensionPlugin, RejectSave } from '../../extensionPluginType';
|
|
@@ -19,5 +19,5 @@ declare const result: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
19
19
|
parameters?: Parameters;
|
|
20
20
|
showHeader?: boolean;
|
|
21
21
|
usingObjectSidebarPanel?: boolean;
|
|
22
|
-
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> &
|
|
22
|
+
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & WithContextProps, 'ref'> & React.RefAttributes<any>>;
|
|
23
23
|
export default result;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
1
2
|
import Loadable from 'react-loadable';
|
|
2
3
|
import type { PublicProps } from './ConfigPanelFieldsLoader';
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
4
|
+
declare const _default_1: ComponentType<PublicProps> & Loadable.LoadableComponent;
|
|
5
|
+
export default _default_1;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
type Props = {
|
|
4
4
|
errorMessage: string;
|
|
5
5
|
} & WrappedComponentProps;
|
|
6
|
-
declare const
|
|
6
|
+
declare const _default_1: React.FC<WithIntlProps<Props>> & {
|
|
7
7
|
WrappedComponent: React.ComponentType<Props>;
|
|
8
8
|
};
|
|
9
|
-
export default
|
|
9
|
+
export default _default_1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
-
declare const
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
declare const _default_1: React.FC<WithIntlProps<{
|
|
4
4
|
description?: string;
|
|
5
5
|
error?: string;
|
|
6
6
|
} & WrappedComponentProps>> & {
|
|
@@ -9,4 +9,4 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
|
9
9
|
error?: string;
|
|
10
10
|
} & WrappedComponentProps>;
|
|
11
11
|
};
|
|
12
|
-
export default
|
|
12
|
+
export default _default_1;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import type { CustomField, ExtensionManifest, Parameters } from '@atlaskit/editor-common/extensions';
|
|
4
4
|
import type { OnFieldChange } from '../types';
|
|
5
|
-
declare const
|
|
5
|
+
declare const _default_1: React.FC<WithIntlProps<{
|
|
6
6
|
autoFocus?: boolean;
|
|
7
7
|
extensionManifest: ExtensionManifest;
|
|
8
8
|
field: CustomField;
|
|
@@ -21,4 +21,4 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
|
21
21
|
placeholder?: string;
|
|
22
22
|
} & WrappedComponentProps>;
|
|
23
23
|
};
|
|
24
|
-
export default
|
|
24
|
+
export default _default_1;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import type { DateField } from '@atlaskit/editor-common/extensions';
|
|
4
4
|
import type { OnFieldChange } from '../types';
|
|
5
|
-
declare const
|
|
5
|
+
declare const _default_1: React.FC<WithIntlProps<{
|
|
6
6
|
autoFocus?: boolean;
|
|
7
7
|
field: DateField;
|
|
8
8
|
name: string;
|
|
@@ -17,4 +17,4 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
|
17
17
|
placeholder?: string;
|
|
18
18
|
} & WrappedComponentProps>;
|
|
19
19
|
};
|
|
20
|
-
export default
|
|
20
|
+
export default _default_1;
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ComponentType, type FC } from 'react';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
2
7
|
import type { DateRangeField } from '@atlaskit/editor-common/extensions';
|
|
3
8
|
import type { OnFieldChange } from '../types';
|
|
4
|
-
declare const
|
|
9
|
+
declare const _default_1: FC<WithIntlProps<{
|
|
5
10
|
autoFocus?: boolean;
|
|
6
11
|
field: DateRangeField;
|
|
7
12
|
name: string;
|
|
8
13
|
onFieldChange: OnFieldChange;
|
|
9
14
|
placeholder?: string;
|
|
10
15
|
} & WrappedComponentProps>> & {
|
|
11
|
-
WrappedComponent:
|
|
16
|
+
WrappedComponent: ComponentType<{
|
|
12
17
|
autoFocus?: boolean;
|
|
13
18
|
field: DateRangeField;
|
|
14
19
|
name: string;
|
|
@@ -16,4 +21,4 @@ declare const _default: import("react").FC<import("react-intl-next").WithIntlPro
|
|
|
16
21
|
placeholder?: string;
|
|
17
22
|
} & WrappedComponentProps>;
|
|
18
23
|
};
|
|
19
|
-
export default
|
|
24
|
+
export default _default_1;
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
7
7
|
import type { FieldDefinition } from '@atlaskit/editor-common/extensions';
|
|
8
8
|
type Props = {
|
|
9
9
|
children: React.ReactNode;
|
|
10
10
|
field: FieldDefinition;
|
|
11
11
|
isExpanded?: boolean;
|
|
12
12
|
} & WrappedComponentProps;
|
|
13
|
-
declare const
|
|
13
|
+
declare const _default_1: React.FC<WithIntlProps<Props>> & {
|
|
14
14
|
WrappedComponent: React.ComponentType<Props>;
|
|
15
15
|
};
|
|
16
|
-
export default
|
|
16
|
+
export default _default_1;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
7
7
|
import type { ExtensionManifest, Fieldset, Parameters } from '@atlaskit/editor-common/extensions';
|
|
8
8
|
import type { FormContentProps, OnFieldChange } from '../types';
|
|
9
9
|
type Props = {
|
|
@@ -16,7 +16,7 @@ type Props = {
|
|
|
16
16
|
onFieldChange: OnFieldChange;
|
|
17
17
|
parameters?: Parameters;
|
|
18
18
|
} & WrappedComponentProps;
|
|
19
|
-
declare const
|
|
19
|
+
declare const _default_1: React.FC<WithIntlProps<Props>> & {
|
|
20
20
|
WrappedComponent: React.ComponentType<Props>;
|
|
21
21
|
};
|
|
22
|
-
export default
|
|
22
|
+
export default _default_1;
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
7
7
|
import type { TabField, TabGroupField } from '@atlaskit/editor-common/extensions';
|
|
8
8
|
type Props = {
|
|
9
9
|
field: TabGroupField;
|
|
10
10
|
renderPanel: (tabField: TabField) => JSX.Element;
|
|
11
11
|
} & WrappedComponentProps;
|
|
12
|
-
declare const TabGroup: React.FC<
|
|
12
|
+
declare const TabGroup: React.FC<WithIntlProps<Props>> & {
|
|
13
13
|
WrappedComponent: React.ComponentType<Props>;
|
|
14
14
|
};
|
|
15
15
|
export default TabGroup;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
-
import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import type { WithAnalyticsEventsProps, WithContextProps } from '@atlaskit/analytics-next';
|
|
4
4
|
import type { FieldDefinition } from '@atlaskit/editor-common/extensions';
|
|
5
5
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
6
6
|
interface Props {
|
|
@@ -9,10 +9,10 @@ interface Props {
|
|
|
9
9
|
extensionKey: string;
|
|
10
10
|
fields: FieldDefinition[];
|
|
11
11
|
}
|
|
12
|
-
export declare const FormErrorBoundaryImpl: React.FC<
|
|
12
|
+
export declare const FormErrorBoundaryImpl: React.FC<WithIntlProps<Props & WithAnalyticsEventsProps & WrappedComponentProps>> & {
|
|
13
13
|
WrappedComponent: React.ComponentType<Props & WithAnalyticsEventsProps & WrappedComponentProps>;
|
|
14
14
|
};
|
|
15
|
-
export declare const FormErrorBoundary: React.ForwardRefExoticComponent<Omit<Omit<Omit<Props & WithAnalyticsEventsProps & WrappedComponentProps,
|
|
15
|
+
export declare const FormErrorBoundary: React.ForwardRefExoticComponent<Omit<Omit<Omit<Props & WithAnalyticsEventsProps & WrappedComponentProps, 'intl'> & {
|
|
16
16
|
forwardedRef?: React.Ref<any>;
|
|
17
|
-
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> &
|
|
17
|
+
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & WithContextProps, 'ref'> & React.RefAttributes<any>>;
|
|
18
18
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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;
|
|
6
7
|
}) => React.JSX.Element | null;
|
|
7
|
-
export default
|
|
8
|
+
export default _default_1;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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;
|
|
6
7
|
}) => React.JSX.Element | null;
|
|
7
|
-
export default
|
|
8
|
+
export default _default_1;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ComponentType, type FC } from 'react';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
2
7
|
import type { Icon } from '@atlaskit/editor-common/extensions';
|
|
3
8
|
import { type ExtensionDeprecationStatus } from '@atlaskit/editor-common/extensions';
|
|
4
9
|
type Props = {
|
|
@@ -11,7 +16,7 @@ type Props = {
|
|
|
11
16
|
summary?: string;
|
|
12
17
|
title: string;
|
|
13
18
|
} & WrappedComponentProps;
|
|
14
|
-
declare const
|
|
15
|
-
WrappedComponent:
|
|
19
|
+
declare const _default_1: FC<WithIntlProps<Props>> & {
|
|
20
|
+
WrappedComponent: ComponentType<Props>;
|
|
16
21
|
};
|
|
17
|
-
export default
|
|
22
|
+
export default _default_1;
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
+
import type { ReactNode } from 'react';
|
|
5
6
|
import { jsx } from '@emotion/react';
|
|
6
7
|
import type { LoadingComponentProps } from 'react-loadable';
|
|
7
|
-
declare const LoadingState: (props: Partial<LoadingComponentProps>) => string | number | boolean |
|
|
8
|
+
declare const LoadingState: (props: Partial<LoadingComponentProps>) => string | number | boolean | jsx.JSX.Element | Iterable<ReactNode> | null | undefined;
|
|
8
9
|
export default LoadingState;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
7
7
|
type Props = {
|
|
8
8
|
canRemoveField?: boolean;
|
|
9
9
|
children: React.ReactElement;
|
|
@@ -11,7 +11,7 @@ type Props = {
|
|
|
11
11
|
name: string;
|
|
12
12
|
onClickRemove?: (fieldName: string) => void;
|
|
13
13
|
} & WrappedComponentProps;
|
|
14
|
-
declare const
|
|
14
|
+
declare const _default_1: React.FC<WithIntlProps<Props>> & {
|
|
15
15
|
WrappedComponent: React.ComponentType<Props>;
|
|
16
16
|
};
|
|
17
|
-
export default
|
|
17
|
+
export default _default_1;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
2
|
import type { SaveIndicatorProps } from './types';
|
|
3
|
-
export declare const SaveIndicator: ({ children, duration, visible }: SaveIndicatorProps) => jsx.JSX.Element;
|
|
3
|
+
export declare const SaveIndicator: ({ children, duration, visible, }: SaveIndicatorProps) => jsx.JSX.Element;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import type { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
2
2
|
import type { EditorAnalyticsAPI, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { Parameters, TransformAfter, TransformBefore } from '@atlaskit/editor-common/extensions';
|
|
4
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
4
5
|
import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
|
|
5
6
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
6
7
|
import { type EditorState, type Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
7
8
|
import type { ExtensionState, RejectSave } from '../extensionPluginType';
|
|
8
|
-
export declare function updateState(state: Partial<ExtensionState>):
|
|
9
|
-
export declare function setEditingContextToContextPanel<T extends Parameters = Parameters>(processParametersBefore: TransformBefore<T>, processParametersAfter: TransformAfter<T>, applyChangeToContextPanel: ApplyChangeHandler | undefined):
|
|
10
|
-
export declare const clearEditingContext: (applyChangeToContextPanel: ApplyChangeHandler | undefined) =>
|
|
11
|
-
export declare const forceAutoSave: (applyChangeToContextPanel: ApplyChangeHandler | undefined) => (resolve: () => void, reject?: RejectSave) =>
|
|
12
|
-
export declare const updateExtensionLayout: (layout: ExtensionLayout, analyticsApi?: EditorAnalyticsAPI) =>
|
|
13
|
-
export declare const removeExtension: (editorAnalyticsAPI?: EditorAnalyticsAPI, inputMethod?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB) =>
|
|
14
|
-
export declare const removeDescendantNodes: (sourceNode?: PMNode) =>
|
|
9
|
+
export declare function updateState(state: Partial<ExtensionState>): Command;
|
|
10
|
+
export declare function setEditingContextToContextPanel<T extends Parameters = Parameters>(processParametersBefore: TransformBefore<T>, processParametersAfter: TransformAfter<T>, applyChangeToContextPanel: ApplyChangeHandler | undefined): Command;
|
|
11
|
+
export declare const clearEditingContext: (applyChangeToContextPanel: ApplyChangeHandler | undefined) => Command;
|
|
12
|
+
export declare const forceAutoSave: (applyChangeToContextPanel: ApplyChangeHandler | undefined) => (resolve: () => void, reject?: RejectSave) => Command;
|
|
13
|
+
export declare const updateExtensionLayout: (layout: ExtensionLayout, analyticsApi?: EditorAnalyticsAPI) => Command;
|
|
14
|
+
export declare const removeExtension: (editorAnalyticsAPI?: EditorAnalyticsAPI, inputMethod?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB) => Command;
|
|
15
|
+
export declare const removeDescendantNodes: (sourceNode?: PMNode) => Command;
|
|
15
16
|
export declare const removeSelectedNodeWithAnalytics: (state: EditorState, tr: Transaction, analyticsApi?: EditorAnalyticsAPI, inputMethod?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB) => Transaction;
|
|
16
17
|
export declare const checkAndRemoveExtensionNode: (state: EditorState, tr: Transaction, analyticsApi?: EditorAnalyticsAPI, inputMethod?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB) => Transaction;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { ExtensionNodeView } from '@atlaskit/editor-common/extensibility';
|
|
2
|
-
|
|
2
|
+
import { type NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
|
|
3
|
+
export declare function lazyExtensionNodeView(nodeName: string, ...params: Parameters<typeof ExtensionNodeView>): NodeViewConstructor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
2
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
|
-
export declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory) => SafePlugin
|
|
4
|
+
export declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory) => SafePlugin;
|
|
@@ -8,7 +8,7 @@ import type { EditorAppearance, ExtractInjectionAPI, FeatureFlags } from '@atlas
|
|
|
8
8
|
import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
|
|
9
9
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
10
10
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
11
|
-
import type { ExtensionPlugin, ExtensionPluginOptions } from '../extensionPluginType';
|
|
11
|
+
import type { ExtensionPlugin, ExtensionPluginOptions, ExtensionState } from '../extensionPluginType';
|
|
12
12
|
export declare const createExtensionProviderHandler: (view: EditorView) => (name: string, provider?: Promise<ExtensionProvider>) => Promise<void>;
|
|
13
13
|
export declare const handleUpdate: ({ view, prevState, domAtPos, extensionHandlers, applyChange, }: {
|
|
14
14
|
applyChange: ApplyChangeHandler | undefined;
|
|
@@ -20,4 +20,4 @@ export declare const handleUpdate: ({ view, prevState, domAtPos, extensionHandle
|
|
|
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["__rendererExtensionOptions"]) => SafePlugin<
|
|
23
|
+
}, featureFlags?: FeatureFlags, __rendererExtensionOptions?: ExtensionPluginOptions["__rendererExtensionOptions"]) => SafePlugin<ExtensionState>;
|