@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-extension
|
|
2
2
|
|
|
3
|
+
## 15.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
|
|
8
|
+
Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
|
|
9
|
+
|
|
10
|
+
Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
|
|
11
|
+
|
|
12
|
+
Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
|
|
13
|
+
|
|
14
|
+
```diff
|
|
15
|
+
- "typesVersions": {
|
|
16
|
+
- ">=4.5 <4.9": {
|
|
17
|
+
- "*": [
|
|
18
|
+
- "dist/types-ts4.5/*",
|
|
19
|
+
- "dist/types-ts4.5/index.d.ts"
|
|
20
|
+
- ]
|
|
21
|
+
- }
|
|
22
|
+
- },
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
|
|
29
|
+
## 14.1.15
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- Updated dependencies
|
|
34
|
+
|
|
3
35
|
## 14.1.14
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/extensionPlugin.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/extensionPlugin.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/extensionPlugin.d.ts"
|
|
17
10
|
}
|
|
@@ -6,12 +6,5 @@
|
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.compiled.css"
|
|
8
8
|
],
|
|
9
|
-
"types": "../dist/types/entry-points/extensionPluginType.d.ts"
|
|
10
|
-
"typesVersions": {
|
|
11
|
-
">=4.5 <5.9": {
|
|
12
|
-
"*": [
|
|
13
|
-
"../dist/types-ts4.5/entry-points/extensionPluginType.d.ts"
|
|
14
|
-
]
|
|
15
|
-
}
|
|
16
|
-
}
|
|
9
|
+
"types": "../dist/types/entry-points/extensionPluginType.d.ts"
|
|
17
10
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,48 +21,48 @@
|
|
|
21
21
|
],
|
|
22
22
|
"atlaskit:src": "src/index.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@atlaskit/adf-schema": "^
|
|
25
|
-
"@atlaskit/adf-utils": "^
|
|
26
|
-
"@atlaskit/analytics-next": "^
|
|
27
|
-
"@atlaskit/avatar": "^
|
|
28
|
-
"@atlaskit/browser-apis": "^0.0
|
|
29
|
-
"@atlaskit/button": "^
|
|
30
|
-
"@atlaskit/checkbox": "^
|
|
31
|
-
"@atlaskit/datetime-picker": "^
|
|
32
|
-
"@atlaskit/editor-json-transformer": "^
|
|
33
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
34
|
-
"@atlaskit/editor-plugin-connectivity": "^
|
|
35
|
-
"@atlaskit/editor-plugin-context-identifier": "^
|
|
36
|
-
"@atlaskit/editor-plugin-context-panel": "^
|
|
37
|
-
"@atlaskit/editor-plugin-copy-button": "^
|
|
38
|
-
"@atlaskit/editor-plugin-decorations": "^
|
|
39
|
-
"@atlaskit/editor-plugin-feature-flags": "^
|
|
40
|
-
"@atlaskit/editor-plugin-mentions": "^
|
|
41
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
42
|
-
"@atlaskit/editor-plugin-width": "^
|
|
43
|
-
"@atlaskit/editor-prosemirror": "^
|
|
44
|
-
"@atlaskit/editor-shared-styles": "^
|
|
45
|
-
"@atlaskit/editor-tables": "^
|
|
46
|
-
"@atlaskit/empty-state": "^
|
|
47
|
-
"@atlaskit/form": "^
|
|
48
|
-
"@atlaskit/heading": "^
|
|
49
|
-
"@atlaskit/icon": "^
|
|
50
|
-
"@atlaskit/link": "^
|
|
51
|
-
"@atlaskit/mention": "^
|
|
52
|
-
"@atlaskit/platform-feature-flags": "^
|
|
53
|
-
"@atlaskit/primitives": "^
|
|
54
|
-
"@atlaskit/radio": "^
|
|
55
|
-
"@atlaskit/section-message": "^
|
|
56
|
-
"@atlaskit/select": "^
|
|
57
|
-
"@atlaskit/smart-user-picker": "^
|
|
58
|
-
"@atlaskit/spinner": "^
|
|
59
|
-
"@atlaskit/tabs": "^
|
|
60
|
-
"@atlaskit/textarea": "^
|
|
61
|
-
"@atlaskit/textfield": "^
|
|
62
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
63
|
-
"@atlaskit/toggle": "^
|
|
64
|
-
"@atlaskit/tokens": "^
|
|
65
|
-
"@atlaskit/tooltip": "^
|
|
24
|
+
"@atlaskit/adf-schema": "^55.0.0",
|
|
25
|
+
"@atlaskit/adf-utils": "^20.0.0",
|
|
26
|
+
"@atlaskit/analytics-next": "^12.0.0",
|
|
27
|
+
"@atlaskit/avatar": "^26.0.0",
|
|
28
|
+
"@atlaskit/browser-apis": "^1.0.0",
|
|
29
|
+
"@atlaskit/button": "^24.0.0",
|
|
30
|
+
"@atlaskit/checkbox": "^18.0.0",
|
|
31
|
+
"@atlaskit/datetime-picker": "^18.0.0",
|
|
32
|
+
"@atlaskit/editor-json-transformer": "^9.0.0",
|
|
33
|
+
"@atlaskit/editor-plugin-analytics": "^12.0.0",
|
|
34
|
+
"@atlaskit/editor-plugin-connectivity": "^12.0.0",
|
|
35
|
+
"@atlaskit/editor-plugin-context-identifier": "^12.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-context-panel": "^14.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-copy-button": "^12.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-decorations": "^12.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-feature-flags": "^11.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-mentions": "^14.0.0",
|
|
41
|
+
"@atlaskit/editor-plugin-toolbar": "^9.0.0",
|
|
42
|
+
"@atlaskit/editor-plugin-width": "^13.0.0",
|
|
43
|
+
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
44
|
+
"@atlaskit/editor-shared-styles": "^4.0.0",
|
|
45
|
+
"@atlaskit/editor-tables": "^3.0.0",
|
|
46
|
+
"@atlaskit/empty-state": "^11.0.0",
|
|
47
|
+
"@atlaskit/form": "^16.0.0",
|
|
48
|
+
"@atlaskit/heading": "^6.0.0",
|
|
49
|
+
"@atlaskit/icon": "^36.0.0",
|
|
50
|
+
"@atlaskit/link": "^4.0.0",
|
|
51
|
+
"@atlaskit/mention": "^27.0.0",
|
|
52
|
+
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
53
|
+
"@atlaskit/primitives": "^20.0.0",
|
|
54
|
+
"@atlaskit/radio": "^9.0.0",
|
|
55
|
+
"@atlaskit/section-message": "^9.0.0",
|
|
56
|
+
"@atlaskit/select": "^22.0.0",
|
|
57
|
+
"@atlaskit/smart-user-picker": "^11.0.0",
|
|
58
|
+
"@atlaskit/spinner": "^20.0.0",
|
|
59
|
+
"@atlaskit/tabs": "^20.0.0",
|
|
60
|
+
"@atlaskit/textarea": "^9.0.0",
|
|
61
|
+
"@atlaskit/textfield": "^9.0.0",
|
|
62
|
+
"@atlaskit/tmp-editor-statsig": "^104.0.0",
|
|
63
|
+
"@atlaskit/toggle": "^17.0.0",
|
|
64
|
+
"@atlaskit/tokens": "^14.0.0",
|
|
65
|
+
"@atlaskit/tooltip": "^23.0.0",
|
|
66
66
|
"@babel/runtime": "^7.0.0",
|
|
67
67
|
"@emotion/react": "^11.7.1",
|
|
68
68
|
"bind-event-listener": "^3.0.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"uuid": "^3.1.0"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
|
-
"@atlaskit/editor-common": "^
|
|
76
|
+
"@atlaskit/editor-common": "^116.0.0",
|
|
77
77
|
"react": "^18.2.0",
|
|
78
78
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
79
79
|
},
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { UpdateExtension } from '@atlaskit/editor-common/extensions';
|
|
3
|
-
import type { MacroProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
5
|
-
import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
|
|
6
|
-
import type { Fragment, Mark, Node as PmNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
7
|
-
import { type Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
8
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
9
|
-
import type { InsertOrReplaceExtensionType } from '../extensionPluginType';
|
|
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
|
-
export declare const editExtension: (macroProvider: MacroProvider | null | undefined, applyChangeToContextPanel: ApplyChangeHandler | undefined, editorAnalyticsAPI: EditorAnalyticsAPI | undefined, updateExtension?: Promise<UpdateExtension<object> | void>) => Command;
|
|
13
|
-
type Props = {
|
|
14
|
-
applyChangeToContextPanel: ApplyChangeHandler | undefined;
|
|
15
|
-
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
16
|
-
editorViewRef: Record<'current', EditorView | null>;
|
|
17
|
-
};
|
|
18
|
-
export declare const createEditSelectedExtensionAction: ({ editorViewRef, editorAnalyticsAPI, applyChangeToContextPanel }: Props) => () => boolean;
|
|
19
|
-
export declare const insertOrReplaceExtension: ({ editorView, action, attrs, content, position, size, tr, }: InsertOrReplaceExtensionType) => Transaction;
|
|
20
|
-
export declare const insertOrReplaceBodiedExtension: ({ editorView, action, attrs, content, position, size, tr, }: InsertOrReplaceExtensionType) => Transaction;
|
|
21
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
2
|
-
import type { EditorAnalyticsAPI, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { Parameters, TransformAfter, TransformBefore } from '@atlaskit/editor-common/extensions';
|
|
4
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
5
|
-
import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
|
|
6
|
-
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
7
|
-
import { type EditorState, type Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
8
|
-
import type { ExtensionState, RejectSave } from '../extensionPluginType';
|
|
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;
|
|
16
|
-
export declare const removeSelectedNodeWithAnalytics: (state: EditorState, tr: Transaction, analyticsApi?: EditorAnalyticsAPI, inputMethod?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB) => Transaction;
|
|
17
|
-
export declare const checkAndRemoveExtensionNode: (state: EditorState, tr: Transaction, analyticsApi?: EditorAnalyticsAPI, inputMethod?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB) => Transaction;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { extensionPlugin } from '../extensionPlugin';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { CreateExtensionAPI, ExtensionPlugin, ExtensionPluginOptions, InsertOrReplaceExtensionType, RunMacroAutoConvert, RejectSave, ExtensionPluginDependencies, ExtensionState, ExtensionAction, ExtensionPluginActions, } from '../extensionPluginType';
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import type { ADFEntity } from '@atlaskit/adf-utils/types';
|
|
2
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
|
-
import type { GetPMNodeHeight } from '@atlaskit/editor-common/extensibility';
|
|
4
|
-
import type { ExtensionAPI, ExtensionHandlers, ExtensionParams, ExtensionProvider, Parameters, TransformAfter, TransformBefore, UpdateExtension } from '@atlaskit/editor-common/extensions';
|
|
5
|
-
import type { MacroProvider } from '@atlaskit/editor-common/provider-factory';
|
|
6
|
-
import type { EditorAppearance, LongPressSelectionPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
7
|
-
import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
8
|
-
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
9
|
-
import type { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity';
|
|
10
|
-
import type { ContextIdentifierPlugin } from '@atlaskit/editor-plugin-context-identifier';
|
|
11
|
-
import type { ApplyChangeHandler, ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
|
|
12
|
-
import type { CopyButtonPlugin } from '@atlaskit/editor-plugin-copy-button';
|
|
13
|
-
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
14
|
-
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
15
|
-
import type { MentionsPlugin } from '@atlaskit/editor-plugin-mentions';
|
|
16
|
-
import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar';
|
|
17
|
-
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
18
|
-
import type { Fragment, Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
19
|
-
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
20
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
21
|
-
import type { forceAutoSave } from './editor-commands/commands';
|
|
22
|
-
export type RejectSave = (reason?: any) => void;
|
|
23
|
-
export type ExtensionState<T extends Parameters = Parameters> = {
|
|
24
|
-
autoSaveReject?: RejectSave;
|
|
25
|
-
autoSaveResolve?: () => void;
|
|
26
|
-
element?: HTMLElement;
|
|
27
|
-
extensionProvider?: ExtensionProvider<T>;
|
|
28
|
-
localId?: string;
|
|
29
|
-
positions?: Record<number, number>;
|
|
30
|
-
processParametersAfter?: TransformAfter<T>;
|
|
31
|
-
processParametersBefore?: TransformBefore<T>;
|
|
32
|
-
showContextPanel: boolean;
|
|
33
|
-
showEditButton: boolean;
|
|
34
|
-
updateExtension?: Promise<UpdateExtension<T> | void>;
|
|
35
|
-
};
|
|
36
|
-
export type ExtensionAction<T extends Parameters = Parameters> = {
|
|
37
|
-
data: Partial<ExtensionState<T>>;
|
|
38
|
-
type: 'UPDATE_STATE';
|
|
39
|
-
};
|
|
40
|
-
interface CreateExtensionAPIOptions {
|
|
41
|
-
applyChange: ApplyChangeHandler | undefined;
|
|
42
|
-
editInLegacyMacroBrowser?: () => void;
|
|
43
|
-
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
44
|
-
editorView: EditorView;
|
|
45
|
-
}
|
|
46
|
-
export type CreateExtensionAPI = (options: CreateExtensionAPIOptions) => ExtensionAPI;
|
|
47
|
-
export interface ExtensionPluginOptions extends LongPressSelectionPluginOptions {
|
|
48
|
-
__rendererExtensionOptions?: {
|
|
49
|
-
isAllowedToUseRendererView: (node: ADFEntity) => boolean;
|
|
50
|
-
rendererExtensionHandlers?: ExtensionHandlers;
|
|
51
|
-
showUpdated1PBodiedExtensionUI: (node: ADFEntity) => boolean;
|
|
52
|
-
};
|
|
53
|
-
appearance?: EditorAppearance;
|
|
54
|
-
breakoutEnabled?: boolean;
|
|
55
|
-
extensionHandlers?: ExtensionHandlers;
|
|
56
|
-
/**
|
|
57
|
-
* Helps optimize layout shift while rendering by setting minimum heights before the extension content loads.
|
|
58
|
-
*/
|
|
59
|
-
getExtensionHeight?: GetPMNodeHeight;
|
|
60
|
-
/**
|
|
61
|
-
* Returns the ADF content of the unsupported content extension.
|
|
62
|
-
* Which will be copied to the clipboard when the copy button is clicked.
|
|
63
|
-
*/
|
|
64
|
-
getUnsupportedContent?: (node: ExtensionParams<Parameters>) => JSONDocNode | undefined;
|
|
65
|
-
}
|
|
66
|
-
type InsertMacroFromMacroBrowser = (macroProvider: MacroProvider, macroNode?: PmNode, isEditing?: boolean) => (view: EditorView) => Promise<boolean>;
|
|
67
|
-
export type RunMacroAutoConvert = (state: EditorState, text: string) => PmNode | null;
|
|
68
|
-
export type InsertOrReplaceExtensionType = {
|
|
69
|
-
action: 'insert' | 'replace';
|
|
70
|
-
attrs: object;
|
|
71
|
-
content: Fragment;
|
|
72
|
-
editorView: EditorView;
|
|
73
|
-
position: number;
|
|
74
|
-
size: number;
|
|
75
|
-
tr: Transaction;
|
|
76
|
-
};
|
|
77
|
-
type InsertOrReplaceExtensionAction = ({ editorView, action, attrs, content, position, size, tr, }: InsertOrReplaceExtensionType) => Transaction;
|
|
78
|
-
export type ExtensionPluginDependencies = [
|
|
79
|
-
OptionalPlugin<AnalyticsPlugin>,
|
|
80
|
-
OptionalPlugin<FeatureFlagsPlugin>,
|
|
81
|
-
WidthPlugin,
|
|
82
|
-
DecorationsPlugin,
|
|
83
|
-
OptionalPlugin<ContextPanelPlugin>,
|
|
84
|
-
OptionalPlugin<ContextIdentifierPlugin>,
|
|
85
|
-
OptionalPlugin<ConnectivityPlugin>,
|
|
86
|
-
OptionalPlugin<ToolbarPlugin>,
|
|
87
|
-
OptionalPlugin<MentionsPlugin>,
|
|
88
|
-
OptionalPlugin<CopyButtonPlugin>
|
|
89
|
-
];
|
|
90
|
-
export type ExtensionPluginActions = {
|
|
91
|
-
api: () => ExtensionAPI;
|
|
92
|
-
editSelectedExtension: () => boolean;
|
|
93
|
-
forceAutoSave: typeof forceAutoSave;
|
|
94
|
-
insertMacroFromMacroBrowser: InsertMacroFromMacroBrowser;
|
|
95
|
-
insertOrReplaceBodiedExtension: InsertOrReplaceExtensionAction;
|
|
96
|
-
insertOrReplaceExtension: InsertOrReplaceExtensionAction;
|
|
97
|
-
runMacroAutoConvert: RunMacroAutoConvert;
|
|
98
|
-
};
|
|
99
|
-
export type ExtensionPlugin = NextEditorPlugin<'extension', {
|
|
100
|
-
actions: ExtensionPluginActions;
|
|
101
|
-
dependencies: ExtensionPluginDependencies;
|
|
102
|
-
pluginConfiguration: ExtensionPluginOptions | undefined;
|
|
103
|
-
sharedState: {
|
|
104
|
-
extensionProvider?: ExtensionState['extensionProvider'];
|
|
105
|
-
processParametersAfter?: ExtensionState['processParametersAfter'];
|
|
106
|
-
showContextPanel: boolean | undefined;
|
|
107
|
-
} | undefined;
|
|
108
|
-
}>;
|
|
109
|
-
export {};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export type { CreateExtensionAPI, ExtensionPlugin, ExtensionPluginOptions, InsertOrReplaceExtensionType, RunMacroAutoConvert, RejectSave, ExtensionPluginDependencies, ExtensionState, ExtensionAction, ExtensionPluginActions, } from './extensionPluginType';
|
|
2
|
-
export { extensionPlugin } from './extensionPlugin';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ExtensionNodeView } from '@atlaskit/editor-common/extensibility';
|
|
2
|
-
import { type NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
|
|
3
|
-
export declare function lazyExtensionNodeView(nodeName: string, ...params: Parameters<typeof ExtensionNodeView>): NodeViewConstructor;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { MacroProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import type { CreateExtensionAPI } from '../extensionPluginType';
|
|
5
|
-
interface EditInLegacyMacroBrowserArgs {
|
|
6
|
-
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
7
|
-
macroProvider?: MacroProvider;
|
|
8
|
-
view: EditorView;
|
|
9
|
-
}
|
|
10
|
-
export declare const getEditInLegacyMacroBrowser: ({ view, macroProvider, editorAnalyticsAPI, }: EditInLegacyMacroBrowserArgs) => () => void;
|
|
11
|
-
export declare const createExtensionAPI: CreateExtensionAPI;
|
|
12
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { MacroAttributes, MacroProvider, Providers } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
-
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
5
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
|
-
export declare const insertMacroFromMacroBrowser: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (macroProvider: MacroProvider, macroNode?: PmNode, isEditing?: boolean) => (view: EditorView) => Promise<boolean>;
|
|
7
|
-
export declare const resolveMacro: (macro?: MacroAttributes, state?: EditorState, optionalAttrs?: object) => PmNode | null;
|
|
8
|
-
export declare const runMacroAutoConvert: (state: EditorState, text: string) => PmNode | null;
|
|
9
|
-
export declare const setMacroProvider: (provider: Providers["macroProvider"]) => (view: EditorView) => Promise<boolean>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
|
-
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
|
-
export declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory) => SafePlugin;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl';
|
|
2
|
-
import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
|
-
import type { GetPMNodeHeight } from '@atlaskit/editor-common/extensibility';
|
|
4
|
-
import type { ExtensionHandlers, ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
5
|
-
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
6
|
-
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
7
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
8
|
-
import type { EditorAppearance, ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
9
|
-
import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
|
|
10
|
-
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
11
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
12
|
-
import type { ExtensionPlugin, ExtensionPluginOptions, ExtensionState } from '../extensionPluginType';
|
|
13
|
-
export declare const createExtensionProviderHandler: (view: EditorView) => (name: string, provider?: Promise<ExtensionProvider>) => Promise<void>;
|
|
14
|
-
export declare const handleUpdate: ({ view, prevState, domAtPos, extensionHandlers, applyChange, }: {
|
|
15
|
-
applyChange: ApplyChangeHandler | undefined;
|
|
16
|
-
domAtPos: EditorView["domAtPos"];
|
|
17
|
-
extensionHandlers: ExtensionHandlers;
|
|
18
|
-
prevState: EditorState;
|
|
19
|
-
view: EditorView;
|
|
20
|
-
}) => true | undefined;
|
|
21
|
-
export declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginInjectionApi: ExtractInjectionAPI<ExtensionPlugin> | undefined, useLongPressSelection?: boolean, options?: {
|
|
22
|
-
appearance?: EditorAppearance;
|
|
23
|
-
getExtensionHeight?: GetPMNodeHeight;
|
|
24
|
-
}, featureFlags?: FeatureFlags, __rendererExtensionOptions?: ExtensionPluginOptions["__rendererExtensionOptions"], intl?: IntlShape) => SafePlugin<ExtensionState>;
|
|
@@ -1,7 +0,0 @@
|
|
|
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,29 +0,0 @@
|
|
|
1
|
-
import type { AttributeSpec, DOMOutputSpec, Node as PMNode, TagParseRule } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
export declare const bodiedExtensionSpecWithFixedToDOM: () => {
|
|
4
|
-
atom?: boolean;
|
|
5
|
-
attrs?: {
|
|
6
|
-
[name: string]: AttributeSpec;
|
|
7
|
-
};
|
|
8
|
-
code?: boolean;
|
|
9
|
-
content?: string;
|
|
10
|
-
defining?: boolean;
|
|
11
|
-
definingAsContext?: boolean;
|
|
12
|
-
definingForContent?: boolean;
|
|
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;
|
|
20
|
-
isolating?: boolean;
|
|
21
|
-
leafText?: (node: PMNode) => string;
|
|
22
|
-
linebreakReplacement?: boolean;
|
|
23
|
-
marks?: string;
|
|
24
|
-
parseDOM?: readonly TagParseRule[];
|
|
25
|
-
selectable?: boolean;
|
|
26
|
-
toDebugString?: (node: PMNode) => string;
|
|
27
|
-
toDOM: (node: PMNode) => DOMOutputSpec;
|
|
28
|
-
whitespace?: "pre" | "normal";
|
|
29
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl';
|
|
2
|
-
import { type ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
3
|
-
import type { Command, FloatingToolbarHandler, PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
|
-
import type { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity';
|
|
6
|
-
import type { ContextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
|
|
7
|
-
import type { CopyButtonPlugin } from '@atlaskit/editor-plugin-copy-button';
|
|
8
|
-
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
9
|
-
import type { MentionsPlugin } from '@atlaskit/editor-plugin-mentions';
|
|
10
|
-
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
11
|
-
import type { ExtensionPluginOptions } from '../extensionPluginType';
|
|
12
|
-
/**
|
|
13
|
-
* Creates a function that copies the text content of the unsupported content extension to the clipboard
|
|
14
|
-
* if the current selected extension is an unsupported content extension.
|
|
15
|
-
*/
|
|
16
|
-
export declare const createOnClickCopyButton: ({ formatMessage, extensionApi, extensionProvider, getUnsupportedContent, state, locale, }: {
|
|
17
|
-
extensionApi: GetToolbarConfigProps["extensionApi"];
|
|
18
|
-
extensionProvider?: ExtensionProvider;
|
|
19
|
-
formatMessage: IntlShape["formatMessage"];
|
|
20
|
-
getUnsupportedContent?: ExtensionPluginOptions["getUnsupportedContent"];
|
|
21
|
-
locale: string;
|
|
22
|
-
state: EditorState;
|
|
23
|
-
}) => Command | undefined;
|
|
24
|
-
interface GetToolbarConfigProps {
|
|
25
|
-
breakoutEnabled: boolean | undefined;
|
|
26
|
-
extensionApi?: PublicPluginAPI<[
|
|
27
|
-
ContextPanelPlugin,
|
|
28
|
-
AnalyticsPlugin,
|
|
29
|
-
DecorationsPlugin,
|
|
30
|
-
ConnectivityPlugin,
|
|
31
|
-
MentionsPlugin,
|
|
32
|
-
CopyButtonPlugin
|
|
33
|
-
]> | undefined;
|
|
34
|
-
getUnsupportedContent?: ExtensionPluginOptions['getUnsupportedContent'];
|
|
35
|
-
}
|
|
36
|
-
export declare const getToolbarConfig: ({ breakoutEnabled, extensionApi, getUnsupportedContent, }: GetToolbarConfigProps) => FloatingToolbarHandler;
|
|
37
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { ExtensionProvider, UpdateExtension } from '@atlaskit/editor-common/extensions';
|
|
2
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
export declare const updateEditButton: (view: EditorView, extensionProvider: ExtensionProvider) => Promise<UpdateExtension<any> | undefined>;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
2
|
-
import { type JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
3
|
-
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
|
-
import type { MentionsPlugin } from '@atlaskit/editor-plugin-mentions';
|
|
5
|
-
import type { Mark, Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
6
|
-
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
7
|
-
import type { ContentNodeWithPos, DomAtPos, NodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
8
|
-
export declare const getSelectedExtension: (state: EditorState, searchParent?: boolean) => ContentNodeWithPos | undefined;
|
|
9
|
-
export declare const findExtensionWithLocalId: (state: EditorState, localId?: string) => NodeWithPos | undefined;
|
|
10
|
-
export declare const getSelectedDomElement: (schema: Schema, domAtPos: DomAtPos, selectedExtensionNode: NodeWithPos) => HTMLElement;
|
|
11
|
-
export declare const getDataConsumerMark: (newNode: PMNode) => Mark | undefined;
|
|
12
|
-
export declare const getNodeTypesReferenced: (ids: string[], state: EditorState) => string[];
|
|
13
|
-
export declare const findNodePosWithLocalId: (state: EditorState, localId: string) => NodeWithPos | undefined;
|
|
14
|
-
export interface Position {
|
|
15
|
-
bottom?: number;
|
|
16
|
-
left?: number;
|
|
17
|
-
right?: number;
|
|
18
|
-
top?: number;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* copying ADF from the unsupported content extension as text to clipboard
|
|
22
|
-
*/
|
|
23
|
-
export declare const copyUnsupportedContentToClipboard: ({ locale, schema, unsupportedContent, api, }: {
|
|
24
|
-
api?: PublicPluginAPI<[
|
|
25
|
-
MentionsPlugin
|
|
26
|
-
]>;
|
|
27
|
-
locale?: string;
|
|
28
|
-
schema: Schema;
|
|
29
|
-
unsupportedContent?: JSONDocNode;
|
|
30
|
-
}) => Promise<void>;
|
|
31
|
-
export declare const onCopyFailed: ({ error, extensionApi, state, }: {
|
|
32
|
-
error: Error;
|
|
33
|
-
extensionApi?: PublicPluginAPI<[
|
|
34
|
-
AnalyticsPlugin
|
|
35
|
-
]>;
|
|
36
|
-
state: EditorState;
|
|
37
|
-
}) => void;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { WithAnalyticsEventsProps, WithContextProps } from '@atlaskit/analytics-next';
|
|
3
|
-
import type { ExtensionManifest, FieldDefinition, OnSaveCallback, OnSaveCallbackAsync, Parameters } from '@atlaskit/editor-common/extensions';
|
|
4
|
-
import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
|
-
import type { ExtensionPlugin, RejectSave } from '../../extensionPluginType';
|
|
6
|
-
declare const result: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
7
|
-
api: ExtractInjectionAPI<ExtensionPlugin> | undefined;
|
|
8
|
-
autoSaveReject?: RejectSave;
|
|
9
|
-
autoSaveTrigger?: () => void;
|
|
10
|
-
closeOnEsc?: boolean;
|
|
11
|
-
disableFields?: boolean;
|
|
12
|
-
errorMessage: string | null;
|
|
13
|
-
extensionManifest?: ExtensionManifest;
|
|
14
|
-
featureFlags?: FeatureFlags;
|
|
15
|
-
fields?: FieldDefinition[];
|
|
16
|
-
isLoading?: boolean;
|
|
17
|
-
onCancel: () => void | Promise<void>;
|
|
18
|
-
onChange: OnSaveCallback | OnSaveCallbackAsync;
|
|
19
|
-
parameters?: Parameters;
|
|
20
|
-
showHeader?: boolean;
|
|
21
|
-
usingObjectSidebarPanel?: boolean;
|
|
22
|
-
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & WithContextProps, 'ref'> & React.RefAttributes<any>>;
|
|
23
|
-
export default result;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ExtensionKey, ExtensionProvider, ExtensionType, Parameters } from '@atlaskit/editor-common/extensions';
|
|
3
|
-
import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { ExtensionPlugin, RejectSave } from '../../extensionPluginType';
|
|
5
|
-
export type PublicProps = {
|
|
6
|
-
api: ExtractInjectionAPI<ExtensionPlugin> | undefined;
|
|
7
|
-
autoSaveReject?: RejectSave;
|
|
8
|
-
autoSaveTrigger?: () => void;
|
|
9
|
-
closeOnEsc?: boolean;
|
|
10
|
-
extensionKey: ExtensionKey;
|
|
11
|
-
extensionParameters?: Parameters;
|
|
12
|
-
extensionProvider: ExtensionProvider;
|
|
13
|
-
extensionType: ExtensionType;
|
|
14
|
-
featureFlags?: FeatureFlags;
|
|
15
|
-
nodeKey: string;
|
|
16
|
-
onCancel: () => void | Promise<void>;
|
|
17
|
-
onChange: (data: Parameters) => void | Promise<void>;
|
|
18
|
-
parameters?: Parameters;
|
|
19
|
-
showHeader?: boolean;
|
|
20
|
-
usingObjectSidebarPanel?: boolean;
|
|
21
|
-
};
|
|
22
|
-
export default function FieldsLoader({ extensionType, extensionKey, nodeKey, extensionProvider, extensionParameters, parameters, autoSaveTrigger, autoSaveReject, closeOnEsc, showHeader, featureFlags, onChange, onCancel, api, usingObjectSidebarPanel, }: PublicProps): React.JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ExtensionManifest } from '@atlaskit/editor-common/extensions';
|
|
3
|
-
type DescriptionSummaryProps = {
|
|
4
|
-
extensionManifest: ExtensionManifest;
|
|
5
|
-
};
|
|
6
|
-
export declare function DescriptionSummary({ extensionManifest, }: DescriptionSummaryProps): React.JSX.Element;
|
|
7
|
-
export {};
|