@atlaskit/editor-core 197.7.0 → 197.7.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.
Files changed (62) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/afm-cc/tsconfig.json +0 -3
  3. package/afm-jira/tsconfig.json +0 -3
  4. package/dist/cjs/create-editor/ReactEditorView.js +11 -2
  5. package/dist/cjs/editor.js +7 -0
  6. package/dist/cjs/ui/Addon/Dropdown/styles.js +2 -4
  7. package/dist/cjs/ui/Appearance/Comment/Comment.js +2 -4
  8. package/dist/cjs/ui/ChromeCollapsed/styles.js +3 -5
  9. package/dist/cjs/ui/ContentStyles/ai-panels.js +2 -3
  10. package/dist/cjs/ui/ContentStyles/code-block.js +1 -2
  11. package/dist/cjs/ui/ContentStyles/expand.js +5 -6
  12. package/dist/cjs/ui/ContentStyles/extension.js +1 -2
  13. package/dist/cjs/ui/ContentStyles/index.js +2 -3
  14. package/dist/cjs/ui/ContentStyles/layout.js +1 -2
  15. package/dist/cjs/ui/ContentStyles/media.js +1 -2
  16. package/dist/cjs/ui/ContextPanel/index.js +1 -2
  17. package/dist/cjs/ui/ToolbarFeedback/styles.js +5 -7
  18. package/dist/cjs/ui/WithFlash/index.js +3 -4
  19. package/dist/cjs/version-wrapper.js +1 -1
  20. package/dist/es2019/create-editor/ReactEditorView.js +12 -3
  21. package/dist/es2019/editor.js +7 -0
  22. package/dist/es2019/ui/Addon/Dropdown/styles.js +2 -4
  23. package/dist/es2019/ui/Appearance/Comment/Comment.js +2 -4
  24. package/dist/es2019/ui/ChromeCollapsed/styles.js +3 -5
  25. package/dist/es2019/ui/ContentStyles/ai-panels.js +4 -5
  26. package/dist/es2019/ui/ContentStyles/code-block.js +1 -2
  27. package/dist/es2019/ui/ContentStyles/expand.js +7 -8
  28. package/dist/es2019/ui/ContentStyles/extension.js +4 -5
  29. package/dist/es2019/ui/ContentStyles/index.js +4 -5
  30. package/dist/es2019/ui/ContentStyles/layout.js +2 -3
  31. package/dist/es2019/ui/ContentStyles/media.js +6 -7
  32. package/dist/es2019/ui/ContextPanel/index.js +1 -2
  33. package/dist/es2019/ui/ToolbarFeedback/styles.js +5 -7
  34. package/dist/es2019/ui/WithFlash/index.js +3 -4
  35. package/dist/es2019/version-wrapper.js +1 -1
  36. package/dist/esm/create-editor/ReactEditorView.js +12 -3
  37. package/dist/esm/editor.js +7 -0
  38. package/dist/esm/ui/Addon/Dropdown/styles.js +2 -4
  39. package/dist/esm/ui/Appearance/Comment/Comment.js +2 -4
  40. package/dist/esm/ui/ChromeCollapsed/styles.js +3 -5
  41. package/dist/esm/ui/ContentStyles/ai-panels.js +2 -3
  42. package/dist/esm/ui/ContentStyles/code-block.js +1 -2
  43. package/dist/esm/ui/ContentStyles/expand.js +6 -7
  44. package/dist/esm/ui/ContentStyles/extension.js +1 -2
  45. package/dist/esm/ui/ContentStyles/index.js +2 -3
  46. package/dist/esm/ui/ContentStyles/layout.js +1 -2
  47. package/dist/esm/ui/ContentStyles/media.js +1 -2
  48. package/dist/esm/ui/ContextPanel/index.js +1 -2
  49. package/dist/esm/ui/ToolbarFeedback/styles.js +5 -7
  50. package/dist/esm/ui/WithFlash/index.js +3 -4
  51. package/dist/esm/version-wrapper.js +1 -1
  52. package/dist/types/create-editor/create-universal-preset.d.ts +11 -11
  53. package/dist/types/editor.d.ts +7 -0
  54. package/dist/types/presets/default.d.ts +10 -10
  55. package/dist/types/presets/universal.d.ts +11 -11
  56. package/dist/types/presets/useUniversalPreset.d.ts +11 -11
  57. package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +11 -11
  58. package/dist/types-ts4.5/editor.d.ts +7 -0
  59. package/dist/types-ts4.5/presets/default.d.ts +10 -10
  60. package/dist/types-ts4.5/presets/universal.d.ts +11 -11
  61. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +11 -11
  62. package/package.json +17 -10
@@ -488,7 +488,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
488
488
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
489
489
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
490
490
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
491
- setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
491
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
492
492
  };
493
493
  }, undefined>>,
494
494
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
@@ -904,7 +904,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
904
904
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
905
905
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
906
906
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
907
- setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
907
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
908
908
  };
909
909
  }, undefined>>,
910
910
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
@@ -2085,7 +2085,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
2085
2085
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
2086
2086
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
2087
2087
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
2088
- setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
2088
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
2089
2089
  };
2090
2090
  }, undefined>>,
2091
2091
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
@@ -2880,7 +2880,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
2880
2880
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
2881
2881
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
2882
2882
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
2883
- setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
2883
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
2884
2884
  };
2885
2885
  }, undefined>>,
2886
2886
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
@@ -3918,7 +3918,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
3918
3918
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
3919
3919
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
3920
3920
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
3921
- setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
3921
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
3922
3922
  };
3923
3923
  }, undefined>>,
3924
3924
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
@@ -4442,7 +4442,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
4442
4442
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
4443
4443
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
4444
4444
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
4445
- setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
4445
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
4446
4446
  };
4447
4447
  }, undefined>>,
4448
4448
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
@@ -5338,7 +5338,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
5338
5338
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
5339
5339
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
5340
5340
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
5341
- setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
5341
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
5342
5342
  };
5343
5343
  }, undefined>>,
5344
5344
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
@@ -5757,7 +5757,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
5757
5757
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
5758
5758
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
5759
5759
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
5760
- setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
5760
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
5761
5761
  };
5762
5762
  }, undefined>>,
5763
5763
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
@@ -6459,7 +6459,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
6459
6459
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
6460
6460
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
6461
6461
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
6462
- setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
6462
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
6463
6463
  };
6464
6464
  }, undefined>>,
6465
6465
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
@@ -7152,7 +7152,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
7152
7152
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
7153
7153
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
7154
7154
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
7155
- setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
7155
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
7156
7156
  };
7157
7157
  }, undefined>>,
7158
7158
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
@@ -7568,7 +7568,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
7568
7568
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
7569
7569
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
7570
7570
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
7571
- setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
7571
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
7572
7572
  };
7573
7573
  }, undefined>>,
7574
7574
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
@@ -437,7 +437,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
437
437
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
438
438
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
439
439
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
440
- setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
440
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
441
441
  };
442
442
  }, undefined>>,
443
443
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
@@ -853,7 +853,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
853
853
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
854
854
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
855
855
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
856
- setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
856
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
857
857
  };
858
858
  }, undefined>>,
859
859
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
@@ -2034,7 +2034,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
2034
2034
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
2035
2035
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
2036
2036
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
2037
- setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
2037
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
2038
2038
  };
2039
2039
  }, undefined>>,
2040
2040
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
@@ -2829,7 +2829,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
2829
2829
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
2830
2830
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
2831
2831
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
2832
- setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
2832
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
2833
2833
  };
2834
2834
  }, undefined>>,
2835
2835
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
@@ -3867,7 +3867,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
3867
3867
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
3868
3868
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
3869
3869
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
3870
- setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
3870
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
3871
3871
  };
3872
3872
  }, undefined>>,
3873
3873
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
@@ -4391,7 +4391,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
4391
4391
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
4392
4392
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
4393
4393
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
4394
- setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
4394
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
4395
4395
  };
4396
4396
  }, undefined>>,
4397
4397
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
@@ -5287,7 +5287,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
5287
5287
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
5288
5288
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
5289
5289
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
5290
- setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
5290
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
5291
5291
  };
5292
5292
  }, undefined>>,
5293
5293
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
@@ -5706,7 +5706,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
5706
5706
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
5707
5707
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
5708
5708
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
5709
- setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
5709
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
5710
5710
  };
5711
5711
  }, undefined>>,
5712
5712
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
@@ -6408,7 +6408,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
6408
6408
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
6409
6409
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
6410
6410
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
6411
- setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
6411
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
6412
6412
  };
6413
6413
  }, undefined>>,
6414
6414
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
@@ -7101,7 +7101,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
7101
7101
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
7102
7102
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
7103
7103
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
7104
- setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
7104
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
7105
7105
  };
7106
7106
  }, undefined>>,
7107
7107
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
@@ -7517,7 +7517,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
7517
7517
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
7518
7518
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
7519
7519
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
7520
- setNodeDragged: (posNumber: number, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
7520
+ setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
7521
7521
  };
7522
7522
  }, undefined>>,
7523
7523
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "197.7.0",
3
+ "version": "197.7.2",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/button": "^20.1.0",
46
46
  "@atlaskit/editor-common": "^89.1.0",
47
47
  "@atlaskit/editor-json-transformer": "^8.18.0",
48
- "@atlaskit/editor-plugins": "^4.5.0",
48
+ "@atlaskit/editor-plugins": "^5.0.0",
49
49
  "@atlaskit/editor-prosemirror": "6.0.0",
50
50
  "@atlaskit/editor-shared-styles": "^2.13.0",
51
51
  "@atlaskit/emoji": "^67.7.0",
@@ -54,9 +54,8 @@
54
54
  "@atlaskit/mention": "^23.2.0",
55
55
  "@atlaskit/platform-feature-flags": "^0.3.0",
56
56
  "@atlaskit/task-decision": "^17.10.0",
57
- "@atlaskit/theme": "^13.0.0",
58
57
  "@atlaskit/tmp-editor-statsig": "*",
59
- "@atlaskit/tokens": "^1.59.0",
58
+ "@atlaskit/tokens": "^1.60.0",
60
59
  "@atlaskit/tooltip": "^18.7.0",
61
60
  "@atlaskit/width-detector": "^4.3.0",
62
61
  "@babel/runtime": "^7.0.0",
@@ -72,40 +71,41 @@
72
71
  "uuid": "^3.1.0"
73
72
  },
74
73
  "peerDependencies": {
75
- "@atlaskit/link-provider": "^1.12.0",
74
+ "@atlaskit/link-provider": "^1.16.0",
76
75
  "@atlaskit/media-core": "^34.3.0",
77
76
  "react": "^16.8.0 || ^17.0.0 || ~18.2.0",
78
77
  "react-dom": "^16.8.0 || ^17.0.0 || ~18.2.0",
79
78
  "react-intl-next": "npm:react-intl@^5.18.1"
80
79
  },
81
80
  "devDependencies": {
82
- "@af/editor-examples-helpers": "0.3.9",
81
+ "@af/editor-examples-helpers": "0.3.10",
83
82
  "@af/editor-libra": "*",
84
83
  "@af/visual-regression": "*",
85
84
  "@atlaskit/adf-utils": "^19.8.0",
86
85
  "@atlaskit/analytics-listeners": "^8.11.0",
87
- "@atlaskit/collab-provider": "9.40.2",
86
+ "@atlaskit/collab-provider": "9.40.3",
88
87
  "@atlaskit/editor-plugin-annotation": "1.19.6",
89
88
  "@atlaskit/editor-plugin-card": "^3.0.0",
90
89
  "@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
91
90
  "@atlaskit/editor-plugin-list": "^3.8.0",
92
91
  "@atlaskit/editor-plugin-paste": "^1.12.0",
93
92
  "@atlaskit/editor-test-helpers": "*",
94
- "@atlaskit/link-provider": "^1.15.0",
93
+ "@atlaskit/link-provider": "^1.16.0",
95
94
  "@atlaskit/logo": "^14.2.0",
96
95
  "@atlaskit/media-core": "^34.3.0",
97
96
  "@atlaskit/media-integration-test-helpers": "^3.1.0",
98
97
  "@atlaskit/media-test-helpers": "^34.2.0",
99
98
  "@atlaskit/modal-dialog": "^12.15.0",
100
99
  "@atlaskit/primitives": "^12.1.0",
101
- "@atlaskit/renderer": "^110.0.0",
100
+ "@atlaskit/renderer": "^110.1.0",
102
101
  "@atlaskit/smart-card": "^28.1.0",
103
102
  "@atlaskit/synchrony-test-helpers": "^2.5.0",
104
103
  "@atlaskit/toggle": "^13.4.0",
105
104
  "@atlaskit/util-data-test": "^17.9.0",
106
105
  "@atlaskit/visual-regression": "*",
107
106
  "@atlassian/adf-schema-json": "^1.22.0",
108
- "@atlassian/search-provider": "2.4.127",
107
+ "@atlassian/feature-flags-test-utils": "*",
108
+ "@atlassian/search-provider": "2.4.130",
109
109
  "@emotion/jest": "^11.8.0",
110
110
  "@storybook/addon-knobs": "^5.3.18",
111
111
  "@testing-library/react": "^12.1.5",
@@ -267,6 +267,13 @@
267
267
  },
268
268
  "editor_request_to_edit_task": {
269
269
  "type": "boolean"
270
+ },
271
+ "editor_load_conf_collab_docs_without_checks": {
272
+ "type": "boolean"
273
+ },
274
+ "platform_editor_nest_in_quotes_adf_change": {
275
+ "type": "boolean",
276
+ "referenceOnly": true
270
277
  }
271
278
  },
272
279
  "stricter": {