@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.
Files changed (34) hide show
  1. package/.eslintrc.js +12 -12
  2. package/CHANGELOG.md +224 -210
  3. package/LICENSE.md +6 -8
  4. package/dist/cjs/extension-api.js +6 -2
  5. package/dist/cjs/ui/ConfigPanel/ErrorMessage/ErrorImage.js +12 -4
  6. package/dist/cjs/ui/ConfigPanel/Fields/ColorPicker.js +1 -1
  7. package/dist/cjs/ui/ConfigPanel/FormContent.js +4 -1
  8. package/dist/cjs/ui/ConfigPanel/Header.js +1 -0
  9. package/dist/cjs/ui/ConfigPanel/NestedForms/RemovableField.js +3 -1
  10. package/dist/es2019/extension-api.js +7 -3
  11. package/dist/es2019/ui/ConfigPanel/ErrorMessage/ErrorImage.js +12 -4
  12. package/dist/es2019/ui/ConfigPanel/Fields/ColorPicker.js +1 -1
  13. package/dist/es2019/ui/ConfigPanel/FormContent.js +4 -1
  14. package/dist/es2019/ui/ConfigPanel/Header.js +1 -0
  15. package/dist/es2019/ui/ConfigPanel/NestedForms/RemovableField.js +3 -1
  16. package/dist/esm/extension-api.js +7 -3
  17. package/dist/esm/ui/ConfigPanel/ErrorMessage/ErrorImage.js +12 -4
  18. package/dist/esm/ui/ConfigPanel/Fields/ColorPicker.js +1 -1
  19. package/dist/esm/ui/ConfigPanel/FormContent.js +4 -1
  20. package/dist/esm/ui/ConfigPanel/Header.js +1 -0
  21. package/dist/esm/ui/ConfigPanel/NestedForms/RemovableField.js +3 -1
  22. package/dist/types/ui/ConfigPanel/Fields/UnhandledType.d.ts +1 -1
  23. package/dist/types/ui/SaveIndicator/SaveIndicator.d.ts +1 -1
  24. package/dist/types-ts4.5/ui/ConfigPanel/Fields/UnhandledType.d.ts +1 -1
  25. package/dist/types-ts4.5/ui/SaveIndicator/SaveIndicator.d.ts +1 -1
  26. package/example-utils/config-panel/ConfigPanelWithExtensionPicker.tsx +158 -172
  27. package/example-utils/config-panel/ConfigPanelWithProviders.tsx +37 -37
  28. package/example-utils/config-panel/ExtensionNodePicker.tsx +110 -121
  29. package/example-utils/config-panel/FieldTypePicker.tsx +49 -47
  30. package/example-utils/config-panel/example-manifest-all-fields.ts +63 -63
  31. package/example-utils/config-panel/example-manifest-individual-fields.ts +64 -64
  32. package/example-utils/config-panel/fields.ts +617 -619
  33. package/package.json +12 -14
  34. 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.1",
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.8.0",
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.8.0",
31
- "@atlaskit/button": "^17.14.0",
32
- "@atlaskit/checkbox": "^13.3.0",
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": "^80.4.0",
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.11.0",
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.1.0",
47
- "@atlaskit/icon": "^22.2.0",
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.2.0",
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.9.0",
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.48.0",
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 [API Extractor](https://api-extractor.com/).
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
- // (undocumented)
44
- applyChange: ApplyChangeHandler | undefined;
45
- // (undocumented)
46
- editInLegacyMacroBrowser?: () => void;
47
- // (undocumented)
48
- editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
49
- // (undocumented)
50
- editorView: EditorView;
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
- 'extension',
56
- {
57
- pluginConfiguration: ExtensionPluginOptions | undefined;
58
- dependencies: [
59
- OptionalPlugin<AnalyticsPlugin>,
60
- OptionalPlugin<FeatureFlagsPlugin>,
61
- WidthPlugin,
62
- DecorationsPlugin,
63
- OptionalPlugin<ContextPanelPlugin>,
64
- ];
65
- actions: {
66
- editSelectedExtension: () => boolean;
67
- api: () => ExtensionAPI;
68
- insertMacroFromMacroBrowser: InsertMacroFromMacroBrowser;
69
- runMacroAutoConvert: RunMacroAutoConvert;
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
- extends LongPressSelectionPluginOptions {
77
- // (undocumented)
78
- allowAutoSave?: boolean;
79
- // (undocumented)
80
- appearance?: EditorAppearance;
81
- // (undocumented)
82
- breakoutEnabled?: boolean;
83
- // (undocumented)
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
- macroProvider: MacroProvider,
90
- macroNode?: Node_2,
91
- isEditing?: boolean,
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
- "react": "^16.8.0"
106
+ "react": "^16.8.0"
112
107
  }
113
108
  ```
114
109