@atlaskit/editor-plugin-extension 1.5.1 → 1.5.3
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/.eslintrc.js +12 -12
- package/CHANGELOG.md +224 -210
- package/LICENSE.md +6 -8
- package/dist/cjs/extension-api.js +6 -2
- package/dist/cjs/ui/ConfigPanel/ErrorMessage/ErrorImage.js +12 -4
- package/dist/cjs/ui/ConfigPanel/Fields/ColorPicker.js +1 -1
- package/dist/cjs/ui/ConfigPanel/FormContent.js +4 -1
- package/dist/cjs/ui/ConfigPanel/Header.js +1 -0
- package/dist/cjs/ui/ConfigPanel/NestedForms/RemovableField.js +3 -1
- package/dist/es2019/extension-api.js +7 -3
- package/dist/es2019/ui/ConfigPanel/ErrorMessage/ErrorImage.js +12 -4
- package/dist/es2019/ui/ConfigPanel/Fields/ColorPicker.js +1 -1
- package/dist/es2019/ui/ConfigPanel/FormContent.js +4 -1
- package/dist/es2019/ui/ConfigPanel/Header.js +1 -0
- package/dist/es2019/ui/ConfigPanel/NestedForms/RemovableField.js +3 -1
- package/dist/esm/extension-api.js +7 -3
- package/dist/esm/ui/ConfigPanel/ErrorMessage/ErrorImage.js +12 -4
- package/dist/esm/ui/ConfigPanel/Fields/ColorPicker.js +1 -1
- package/dist/esm/ui/ConfigPanel/FormContent.js +4 -1
- package/dist/esm/ui/ConfigPanel/Header.js +1 -0
- package/dist/esm/ui/ConfigPanel/NestedForms/RemovableField.js +3 -1
- package/dist/types/ui/ConfigPanel/Fields/UnhandledType.d.ts +1 -1
- package/dist/types/ui/SaveIndicator/SaveIndicator.d.ts +1 -1
- package/dist/types-ts4.5/ui/ConfigPanel/Fields/UnhandledType.d.ts +1 -1
- package/dist/types-ts4.5/ui/SaveIndicator/SaveIndicator.d.ts +1 -1
- package/example-utils/config-panel/ConfigPanelWithExtensionPicker.tsx +158 -172
- package/example-utils/config-panel/ConfigPanelWithProviders.tsx +37 -37
- package/example-utils/config-panel/ExtensionNodePicker.tsx +110 -121
- package/example-utils/config-panel/FieldTypePicker.tsx +49 -47
- package/example-utils/config-panel/example-manifest-all-fields.ts +63 -63
- package/example-utils/config-panel/example-manifest-individual-fields.ts +64 -64
- package/example-utils/config-panel/fields.ts +617 -619
- package/package.json +12 -14
- package/report.api.md +42 -47
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
".": "./src/index.ts"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atlaskit/adf-schema": "^36.
|
|
27
|
+
"@atlaskit/adf-schema": "^36.10.7",
|
|
28
28
|
"@atlaskit/adf-utils": "^19.2.0",
|
|
29
29
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
30
|
-
"@atlaskit/avatar": "^21.
|
|
31
|
-
"@atlaskit/button": "^17.
|
|
32
|
-
"@atlaskit/checkbox": "^13.
|
|
30
|
+
"@atlaskit/avatar": "^21.9.0",
|
|
31
|
+
"@atlaskit/button": "^17.17.0",
|
|
32
|
+
"@atlaskit/checkbox": "^13.4.0",
|
|
33
33
|
"@atlaskit/datetime-picker": "^13.5.0",
|
|
34
|
-
"@atlaskit/editor-common": "^
|
|
34
|
+
"@atlaskit/editor-common": "^82.0.0",
|
|
35
35
|
"@atlaskit/editor-json-transformer": "^8.13.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^1.2.0",
|
|
37
37
|
"@atlaskit/editor-plugin-context-identifier": "^1.1.0",
|
|
@@ -40,16 +40,16 @@
|
|
|
40
40
|
"@atlaskit/editor-plugin-feature-flags": "^1.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-width": "^1.1.0",
|
|
42
42
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
43
|
-
"@atlaskit/editor-shared-styles": "^2.
|
|
43
|
+
"@atlaskit/editor-shared-styles": "^2.12.0",
|
|
44
44
|
"@atlaskit/editor-tables": "^2.7.0",
|
|
45
45
|
"@atlaskit/empty-state": "^7.8.0",
|
|
46
|
-
"@atlaskit/form": "^10.
|
|
47
|
-
"@atlaskit/icon": "^22.
|
|
46
|
+
"@atlaskit/form": "^10.3.0",
|
|
47
|
+
"@atlaskit/icon": "^22.3.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
49
|
-
"@atlaskit/primitives": "^6.
|
|
49
|
+
"@atlaskit/primitives": "^6.5.0",
|
|
50
50
|
"@atlaskit/radio": "^6.3.0",
|
|
51
51
|
"@atlaskit/section-message": "^6.5.0",
|
|
52
|
-
"@atlaskit/select": "^17.
|
|
52
|
+
"@atlaskit/select": "^17.10.0",
|
|
53
53
|
"@atlaskit/smart-user-picker": "^6.9.0",
|
|
54
54
|
"@atlaskit/spinner": "^16.1.0",
|
|
55
55
|
"@atlaskit/tabs": "^16.1.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@atlaskit/textfield": "^6.3.0",
|
|
58
58
|
"@atlaskit/theme": "^12.8.0",
|
|
59
59
|
"@atlaskit/toggle": "^13.1.0",
|
|
60
|
-
"@atlaskit/tokens": "^1.
|
|
60
|
+
"@atlaskit/tokens": "^1.49.0",
|
|
61
61
|
"@atlaskit/tooltip": "^18.4.0",
|
|
62
62
|
"@babel/runtime": "^7.0.0",
|
|
63
63
|
"@emotion/react": "^11.7.1",
|
|
@@ -72,7 +72,6 @@
|
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@atlaskit/editor-test-helpers": "^18.23.0",
|
|
75
|
-
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
76
75
|
"react-select": "^5.4.0",
|
|
77
76
|
"typescript": "~5.4.2"
|
|
78
77
|
},
|
|
@@ -106,7 +105,6 @@
|
|
|
106
105
|
]
|
|
107
106
|
}
|
|
108
107
|
},
|
|
109
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
|
|
110
108
|
"stricter": {
|
|
111
109
|
"no-unused-dependencies": {
|
|
112
110
|
"checkDevDependencies": true
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/editor-plugin-extension"
|
|
4
4
|
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
5
|
+
> Do not edit this file. This report is auto-generated using
|
|
6
|
+
> [API Extractor](https://api-extractor.com/).
|
|
6
7
|
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
8
|
|
|
8
9
|
### Table of contents
|
|
@@ -34,68 +35,62 @@ import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
|
34
35
|
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
35
36
|
|
|
36
37
|
// @public (undocumented)
|
|
37
|
-
export type CreateExtensionAPI = (
|
|
38
|
-
options: CreateExtensionAPIOptions,
|
|
39
|
-
) => ExtensionAPI;
|
|
38
|
+
export type CreateExtensionAPI = (options: CreateExtensionAPIOptions) => ExtensionAPI;
|
|
40
39
|
|
|
41
40
|
// @public (undocumented)
|
|
42
41
|
interface CreateExtensionAPIOptions {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
42
|
+
// (undocumented)
|
|
43
|
+
applyChange: ApplyChangeHandler | undefined;
|
|
44
|
+
// (undocumented)
|
|
45
|
+
editInLegacyMacroBrowser?: () => void;
|
|
46
|
+
// (undocumented)
|
|
47
|
+
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
48
|
+
// (undocumented)
|
|
49
|
+
editorView: EditorView;
|
|
51
50
|
}
|
|
52
51
|
|
|
53
52
|
// @public (undocumented)
|
|
54
53
|
export type ExtensionPlugin = NextEditorPlugin<
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
54
|
+
'extension',
|
|
55
|
+
{
|
|
56
|
+
pluginConfiguration: ExtensionPluginOptions | undefined;
|
|
57
|
+
dependencies: [
|
|
58
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
59
|
+
OptionalPlugin<FeatureFlagsPlugin>,
|
|
60
|
+
WidthPlugin,
|
|
61
|
+
DecorationsPlugin,
|
|
62
|
+
OptionalPlugin<ContextPanelPlugin>,
|
|
63
|
+
];
|
|
64
|
+
actions: {
|
|
65
|
+
editSelectedExtension: () => boolean;
|
|
66
|
+
api: () => ExtensionAPI;
|
|
67
|
+
insertMacroFromMacroBrowser: InsertMacroFromMacroBrowser;
|
|
68
|
+
runMacroAutoConvert: RunMacroAutoConvert;
|
|
69
|
+
};
|
|
70
|
+
}
|
|
72
71
|
>;
|
|
73
72
|
|
|
74
73
|
// @public (undocumented)
|
|
75
|
-
export interface ExtensionPluginOptions
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
extensionHandlers?: ExtensionHandlers;
|
|
74
|
+
export interface ExtensionPluginOptions extends LongPressSelectionPluginOptions {
|
|
75
|
+
// (undocumented)
|
|
76
|
+
allowAutoSave?: boolean;
|
|
77
|
+
// (undocumented)
|
|
78
|
+
appearance?: EditorAppearance;
|
|
79
|
+
// (undocumented)
|
|
80
|
+
breakoutEnabled?: boolean;
|
|
81
|
+
// (undocumented)
|
|
82
|
+
extensionHandlers?: ExtensionHandlers;
|
|
85
83
|
}
|
|
86
84
|
|
|
87
85
|
// @public (undocumented)
|
|
88
86
|
type InsertMacroFromMacroBrowser = (
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
87
|
+
macroProvider: MacroProvider,
|
|
88
|
+
macroNode?: Node_2,
|
|
89
|
+
isEditing?: boolean,
|
|
92
90
|
) => (view: EditorView) => Promise<boolean>;
|
|
93
91
|
|
|
94
92
|
// @public (undocumented)
|
|
95
|
-
export type RunMacroAutoConvert = (
|
|
96
|
-
state: EditorState,
|
|
97
|
-
text: string,
|
|
98
|
-
) => Node_2 | null;
|
|
93
|
+
export type RunMacroAutoConvert = (state: EditorState, text: string) => Node_2 | null;
|
|
99
94
|
|
|
100
95
|
// (No @packageDocumentation comment for this package)
|
|
101
96
|
```
|
|
@@ -108,7 +103,7 @@ export type RunMacroAutoConvert = (
|
|
|
108
103
|
|
|
109
104
|
```json
|
|
110
105
|
{
|
|
111
|
-
|
|
106
|
+
"react": "^16.8.0"
|
|
112
107
|
}
|
|
113
108
|
```
|
|
114
109
|
|