@atlaskit/editor-core 197.9.0 → 197.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 197.9.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#143310](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/143310)
8
+ [`f55df006dcd59`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f55df006dcd59) -
9
+ ED-24822 - Add padding to panels with no icon and unhide drag handle in first bodied node
10
+ - Updated dependencies
11
+
12
+ ## 197.9.1
13
+
14
+ ### Patch Changes
15
+
16
+ - [#143311](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/143311)
17
+ [`994ae05bb80fc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/994ae05bb80fc) -
18
+ ED-24709: FF platform.editor.media.preview-in-full-page clean up
19
+ - Updated dependencies
20
+
3
21
  ## 197.9.0
4
22
 
5
23
  ### Minor Changes
@@ -55,7 +55,6 @@ var _table = require("@atlaskit/editor-plugins/table");
55
55
  var _tasksAndDecisions = require("@atlaskit/editor-plugins/tasks-and-decisions");
56
56
  var _textColor = require("@atlaskit/editor-plugins/text-color");
57
57
  var _toolbarListsIndentation = require("@atlaskit/editor-plugins/toolbar-lists-indentation");
58
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
59
58
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
60
59
  var _isFullPage = require("../utils/is-full-page");
61
60
  var _versionWrapper = require("../version-wrapper");
@@ -128,7 +127,7 @@ function createUniversalPresetInternal(_ref) {
128
127
  allowMediaSingleEditable: true,
129
128
  allowRemoteDimensionsFetch: true,
130
129
  allowMarkingUploadsAsIncomplete: false,
131
- allowImagePreview: isFullPage && (0, _platformFeatureFlags.fg)('platform.editor.media.preview-in-full-page'),
130
+ allowImagePreview: isFullPage,
132
131
  fullWidthEnabled: appearance === 'full-width',
133
132
  editorAppearance: appearance,
134
133
  uploadErrorHandler: props.uploadErrorHandler,
@@ -13,5 +13,5 @@ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
13
13
  var _templateObject; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
14
14
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation due to mixin usage
15
15
  var panelStyles = exports.panelStyles = function panelStyles() {
16
- return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.ProseMirror {\n\t\t.", " {\n\t\t\tcursor: pointer;\n\n\t\t\t/* Danger when top level node */\n\t\t\t&.danger {\n\t\t\t\tbox-shadow: 0 0 0 ", "px ", ";\n\t\t\t\tbackground-color: ", " !important;\n\n\t\t\t\t.", " {\n\t\t\t\t\tcolor: ", " !important;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tcursor: text;\n\t\t}\n\n\t\t/* Danger when nested node */\n\t\t.danger .", " {\n\t\t\t&[data-panel-type] {\n\t\t\t\tbackground-color: ", ";\n\n\t\t\t\t.", " {\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t", ";\n\t}\n\n\t.", ".", ":not(.danger) {\n\t\t", "\n\t}\n\n\t", ";\n\n\t/* Don't want extra padding for inline editor (nested) */\n\t", ";\n"])), _panel.PanelSharedCssClassName.prefix, _editorSharedStyles.akEditorSelectedBorderSize, _editorSharedStyles.akEditorDeleteBorder, "var(--ds-background-danger, ".concat(_editorSharedStyles.akEditorDeleteBackground, ")"), _panel.PanelSharedCssClassName.icon, "var(--ds-icon-danger, ".concat(_editorSharedStyles.akEditorDeleteIconColor, ")"), _panel.PanelSharedCssClassName.content, _panel.PanelSharedCssClassName.prefix, "var(--ds-blanket-danger, ".concat(_editorSharedStyles.akEditorDeleteBackgroundWithOpacity, ")"), _panel.PanelSharedCssClassName.icon, "var(--ds-icon-danger, ".concat(_editorSharedStyles.akEditorDeleteIconColor, ")"), (0, _panel.panelSharedStyles)(), _panel.PanelSharedCssClassName.prefix, _editorSharedStyles.akEditorSelectedNodeClassName, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow, _editorSharedStyles.SelectionStyle.Blanket]), (0, _experiments.editorExperiment)('nested-dnd', true) && ".ak-editor-content-area.appearance-full-page .ProseMirror .ak-editor-panel .".concat(_panel.PanelSharedCssClassName.icon, " {\n\t\t\tpadding-right: ", "var(--ds-space-150, 12px)", ";\n\t\t}"), (0, _experiments.editorExperiment)('nested-dnd', true) && ".ak-editor-content-area .ak-editor-content-area .ProseMirror .ak-editor-panel .".concat(_panel.PanelSharedCssClassName.icon, " {\n\t\tpadding-right: ", "var(--ds-space-100, 8px)", ";\n\t}"));
16
+ return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.ProseMirror {\n\t\t.", " {\n\t\t\tcursor: pointer;\n\n\t\t\t/* Danger when top level node */\n\t\t\t&.danger {\n\t\t\t\tbox-shadow: 0 0 0 ", "px ", ";\n\t\t\t\tbackground-color: ", " !important;\n\n\t\t\t\t.", " {\n\t\t\t\t\tcolor: ", " !important;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tcursor: text;\n\t\t}\n\n\t\t/* Danger when nested node */\n\t\t.danger .", " {\n\t\t\t&[data-panel-type] {\n\t\t\t\tbackground-color: ", ";\n\n\t\t\t\t.", " {\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t", ";\n\t}\n\n\t.", ".", ":not(.danger) {\n\t\t", "\n\t}\n\n\t", ";\n\n\t/* Don't want extra padding for inline editor (nested) */\n\t", ";\n"])), _panel.PanelSharedCssClassName.prefix, _editorSharedStyles.akEditorSelectedBorderSize, _editorSharedStyles.akEditorDeleteBorder, "var(--ds-background-danger, ".concat(_editorSharedStyles.akEditorDeleteBackground, ")"), _panel.PanelSharedCssClassName.icon, "var(--ds-icon-danger, ".concat(_editorSharedStyles.akEditorDeleteIconColor, ")"), _panel.PanelSharedCssClassName.content, _panel.PanelSharedCssClassName.prefix, "var(--ds-blanket-danger, ".concat(_editorSharedStyles.akEditorDeleteBackgroundWithOpacity, ")"), _panel.PanelSharedCssClassName.icon, "var(--ds-icon-danger, ".concat(_editorSharedStyles.akEditorDeleteIconColor, ")"), (0, _panel.panelSharedStyles)(), _panel.PanelSharedCssClassName.prefix, _editorSharedStyles.akEditorSelectedNodeClassName, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.BoxShadow, _editorSharedStyles.SelectionStyle.Blanket]), (0, _experiments.editorExperiment)('nested-dnd', true) && ".ak-editor-content-area.appearance-full-page .ProseMirror {\n\t\t.ak-editor-panel .".concat(_panel.PanelSharedCssClassName.icon, " {\n\t\t\tpadding-right: ", "var(--ds-space-150, 12px)", ";\n\t\t}\n\n\t\t.ak-editor-panel.").concat(_panel.PanelSharedCssClassName.noIcon, " {\n\t\t\tpadding-left: ", "var(--ds-space-250, 20px)", ";\n\t\t\tpadding-right: ", "var(--ds-space-250, 20px)", ";\n\t\t}\n\t}"), (0, _experiments.editorExperiment)('nested-dnd', true) && ".ak-editor-content-area .ak-editor-content-area .ProseMirror {\n\t\t.ak-editor-panel .".concat(_panel.PanelSharedCssClassName.icon, " {\n\t\t\tpadding-right: ", "var(--ds-space-100, 8px)", ";\n\t\t}\n\t\t.ak-editor-panel.").concat(_panel.PanelSharedCssClassName.noIcon, " {\n\t\t\tpadding-right: ", "var(--ds-space-150, 12px)", ";\n\t\t\tpadding-left: ", "var(--ds-space-150, 12px)", ";\n\n\t\t}\n\t}"));
17
17
  };
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "197.9.0";
8
+ var version = exports.version = "197.9.2";
@@ -45,7 +45,6 @@ import { tablesPlugin } from '@atlaskit/editor-plugins/table';
45
45
  import { tasksAndDecisionsPlugin } from '@atlaskit/editor-plugins/tasks-and-decisions';
46
46
  import { textColorPlugin } from '@atlaskit/editor-plugins/text-color';
47
47
  import { toolbarListsIndentationPlugin } from '@atlaskit/editor-plugins/toolbar-lists-indentation';
48
- import { fg } from '@atlaskit/platform-feature-flags';
49
48
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
50
49
  import { isFullPage as fullPageCheck } from '../utils/is-full-page';
51
50
  import { version as coreVersion } from '../version-wrapper';
@@ -119,7 +118,7 @@ export default function createUniversalPresetInternal({
119
118
  allowMediaSingleEditable: true,
120
119
  allowRemoteDimensionsFetch: true,
121
120
  allowMarkingUploadsAsIncomplete: false,
122
- allowImagePreview: isFullPage && fg('platform.editor.media.preview-in-full-page'),
121
+ allowImagePreview: isFullPage,
123
122
  fullWidthEnabled: appearance === 'full-width',
124
123
  editorAppearance: appearance,
125
124
  uploadErrorHandler: props.uploadErrorHandler,
@@ -42,12 +42,26 @@ export const panelStyles = () => css`
42
42
  ${getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket])}
43
43
  }
44
44
 
45
- ${editorExperiment('nested-dnd', true) && `.ak-editor-content-area.appearance-full-page .ProseMirror .ak-editor-panel .${PanelSharedCssClassName.icon} {
45
+ ${editorExperiment('nested-dnd', true) && `.ak-editor-content-area.appearance-full-page .ProseMirror {
46
+ .ak-editor-panel .${PanelSharedCssClassName.icon} {
46
47
  padding-right: ${"var(--ds-space-150, 12px)"};
47
- }`};
48
+ }
49
+
50
+ .ak-editor-panel.${PanelSharedCssClassName.noIcon} {
51
+ padding-left: ${"var(--ds-space-250, 20px)"};
52
+ padding-right: ${"var(--ds-space-250, 20px)"};
53
+ }
54
+ }`};
48
55
 
49
56
  /* Don't want extra padding for inline editor (nested) */
50
- ${editorExperiment('nested-dnd', true) && `.ak-editor-content-area .ak-editor-content-area .ProseMirror .ak-editor-panel .${PanelSharedCssClassName.icon} {
51
- padding-right: ${"var(--ds-space-100, 8px)"};
57
+ ${editorExperiment('nested-dnd', true) && `.ak-editor-content-area .ak-editor-content-area .ProseMirror {
58
+ .ak-editor-panel .${PanelSharedCssClassName.icon} {
59
+ padding-right: ${"var(--ds-space-100, 8px)"};
60
+ }
61
+ .ak-editor-panel.${PanelSharedCssClassName.noIcon} {
62
+ padding-right: ${"var(--ds-space-150, 12px)"};
63
+ padding-left: ${"var(--ds-space-150, 12px)"};
64
+
65
+ }
52
66
  }`};
53
67
  `;
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "197.9.0";
2
+ export const version = "197.9.2";
@@ -49,7 +49,6 @@ import { tablesPlugin } from '@atlaskit/editor-plugins/table';
49
49
  import { tasksAndDecisionsPlugin } from '@atlaskit/editor-plugins/tasks-and-decisions';
50
50
  import { textColorPlugin } from '@atlaskit/editor-plugins/text-color';
51
51
  import { toolbarListsIndentationPlugin } from '@atlaskit/editor-plugins/toolbar-lists-indentation';
52
- import { fg } from '@atlaskit/platform-feature-flags';
53
52
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
54
53
  import { isFullPage as fullPageCheck } from '../utils/is-full-page';
55
54
  import { version as coreVersion } from '../version-wrapper';
@@ -121,7 +120,7 @@ export default function createUniversalPresetInternal(_ref) {
121
120
  allowMediaSingleEditable: true,
122
121
  allowRemoteDimensionsFetch: true,
123
122
  allowMarkingUploadsAsIncomplete: false,
124
- allowImagePreview: isFullPage && fg('platform.editor.media.preview-in-full-page'),
123
+ allowImagePreview: isFullPage,
125
124
  fullWidthEnabled: appearance === 'full-width',
126
125
  editorAppearance: appearance,
127
126
  uploadErrorHandler: props.uploadErrorHandler,
@@ -7,5 +7,5 @@ import { akEditorDeleteBackground, akEditorDeleteBackgroundWithOpacity, akEditor
7
7
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
8
8
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation due to mixin usage
9
9
  export var panelStyles = function panelStyles() {
10
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\t.", " {\n\t\t\tcursor: pointer;\n\n\t\t\t/* Danger when top level node */\n\t\t\t&.danger {\n\t\t\t\tbox-shadow: 0 0 0 ", "px ", ";\n\t\t\t\tbackground-color: ", " !important;\n\n\t\t\t\t.", " {\n\t\t\t\t\tcolor: ", " !important;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tcursor: text;\n\t\t}\n\n\t\t/* Danger when nested node */\n\t\t.danger .", " {\n\t\t\t&[data-panel-type] {\n\t\t\t\tbackground-color: ", ";\n\n\t\t\t\t.", " {\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t", ";\n\t}\n\n\t.", ".", ":not(.danger) {\n\t\t", "\n\t}\n\n\t", ";\n\n\t/* Don't want extra padding for inline editor (nested) */\n\t", ";\n"])), PanelSharedCssClassName.prefix, akEditorSelectedBorderSize, akEditorDeleteBorder, "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), PanelSharedCssClassName.icon, "var(--ds-icon-danger, ".concat(akEditorDeleteIconColor, ")"), PanelSharedCssClassName.content, PanelSharedCssClassName.prefix, "var(--ds-blanket-danger, ".concat(akEditorDeleteBackgroundWithOpacity, ")"), PanelSharedCssClassName.icon, "var(--ds-icon-danger, ".concat(akEditorDeleteIconColor, ")"), panelSharedStyles(), PanelSharedCssClassName.prefix, akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket]), editorExperiment('nested-dnd', true) && ".ak-editor-content-area.appearance-full-page .ProseMirror .ak-editor-panel .".concat(PanelSharedCssClassName.icon, " {\n\t\t\tpadding-right: ", "var(--ds-space-150, 12px)", ";\n\t\t}"), editorExperiment('nested-dnd', true) && ".ak-editor-content-area .ak-editor-content-area .ProseMirror .ak-editor-panel .".concat(PanelSharedCssClassName.icon, " {\n\t\tpadding-right: ", "var(--ds-space-100, 8px)", ";\n\t}"));
10
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\t.", " {\n\t\t\tcursor: pointer;\n\n\t\t\t/* Danger when top level node */\n\t\t\t&.danger {\n\t\t\t\tbox-shadow: 0 0 0 ", "px ", ";\n\t\t\t\tbackground-color: ", " !important;\n\n\t\t\t\t.", " {\n\t\t\t\t\tcolor: ", " !important;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tcursor: text;\n\t\t}\n\n\t\t/* Danger when nested node */\n\t\t.danger .", " {\n\t\t\t&[data-panel-type] {\n\t\t\t\tbackground-color: ", ";\n\n\t\t\t\t.", " {\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t", ";\n\t}\n\n\t.", ".", ":not(.danger) {\n\t\t", "\n\t}\n\n\t", ";\n\n\t/* Don't want extra padding for inline editor (nested) */\n\t", ";\n"])), PanelSharedCssClassName.prefix, akEditorSelectedBorderSize, akEditorDeleteBorder, "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), PanelSharedCssClassName.icon, "var(--ds-icon-danger, ".concat(akEditorDeleteIconColor, ")"), PanelSharedCssClassName.content, PanelSharedCssClassName.prefix, "var(--ds-blanket-danger, ".concat(akEditorDeleteBackgroundWithOpacity, ")"), PanelSharedCssClassName.icon, "var(--ds-icon-danger, ".concat(akEditorDeleteIconColor, ")"), panelSharedStyles(), PanelSharedCssClassName.prefix, akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket]), editorExperiment('nested-dnd', true) && ".ak-editor-content-area.appearance-full-page .ProseMirror {\n\t\t.ak-editor-panel .".concat(PanelSharedCssClassName.icon, " {\n\t\t\tpadding-right: ", "var(--ds-space-150, 12px)", ";\n\t\t}\n\n\t\t.ak-editor-panel.").concat(PanelSharedCssClassName.noIcon, " {\n\t\t\tpadding-left: ", "var(--ds-space-250, 20px)", ";\n\t\t\tpadding-right: ", "var(--ds-space-250, 20px)", ";\n\t\t}\n\t}"), editorExperiment('nested-dnd', true) && ".ak-editor-content-area .ak-editor-content-area .ProseMirror {\n\t\t.ak-editor-panel .".concat(PanelSharedCssClassName.icon, " {\n\t\t\tpadding-right: ", "var(--ds-space-100, 8px)", ";\n\t\t}\n\t\t.ak-editor-panel.").concat(PanelSharedCssClassName.noIcon, " {\n\t\t\tpadding-right: ", "var(--ds-space-150, 12px)", ";\n\t\t\tpadding-left: ", "var(--ds-space-150, 12px)", ";\n\n\t\t}\n\t}"));
11
11
  };
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "197.9.0";
2
+ export var version = "197.9.2";
@@ -3411,6 +3411,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
3411
3411
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
3412
3412
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
3413
3413
  sharedState: import("@atlaskit/editor-plugin-media-insert").MediaInsertPluginState;
3414
+ commands: {
3415
+ showMediaInsertPopup: import("@atlaskit/editor-common/types").EditorCommand;
3416
+ };
3414
3417
  }, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
3415
3418
  pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
3416
3419
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -702,7 +702,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
702
702
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
703
703
  sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
704
704
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
705
- sharedState: import("@atlaskit/editor-plugin-focus").FocusState;
705
+ sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
706
706
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
707
707
  pluginConfiguration: import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined;
708
708
  actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
@@ -811,7 +811,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
811
811
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"unsupportedContent", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"placeholder", {
812
812
  pluginConfiguration: PlaceholderPluginOptions | undefined;
813
813
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
814
- sharedState: import("@atlaskit/editor-plugin-focus").FocusState;
814
+ sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
815
815
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
816
816
  sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
817
817
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
@@ -1503,7 +1503,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
1503
1503
  }, import("@atlaskit/editor-plugins/context-identifier").PluginConfiguration | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
1504
1504
  sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
1505
1505
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
1506
- sharedState: import("@atlaskit/editor-plugin-focus").FocusState;
1506
+ sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
1507
1507
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clipboard", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"paste", {
1508
1508
  pluginConfiguration: PastePluginOptions;
1509
1509
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
@@ -2204,7 +2204,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
2204
2204
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
2205
2205
  sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
2206
2206
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
2207
- sharedState: import("@atlaskit/editor-plugin-focus").FocusState;
2207
+ sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
2208
2208
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
2209
2209
  pluginConfiguration: import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined;
2210
2210
  actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
@@ -3198,7 +3198,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
3198
3198
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
3199
3199
  sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
3200
3200
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
3201
- sharedState: import("@atlaskit/editor-plugin-focus").FocusState;
3201
+ sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
3202
3202
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
3203
3203
  pluginConfiguration: import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined;
3204
3204
  actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
@@ -3307,7 +3307,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
3307
3307
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"unsupportedContent", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"placeholder", {
3308
3308
  pluginConfiguration: PlaceholderPluginOptions | undefined;
3309
3309
  dependencies: [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
3310
- sharedState: import("@atlaskit/editor-plugin-focus").FocusState;
3310
+ sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
3311
3311
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
3312
3312
  sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
3313
3313
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
@@ -3999,7 +3999,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
3999
3999
  }, import("@atlaskit/editor-plugins/context-identifier").PluginConfiguration | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
4000
4000
  sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
4001
4001
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
4002
- sharedState: import("@atlaskit/editor-plugin-focus").FocusState;
4002
+ sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
4003
4003
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clipboard", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"paste", {
4004
4004
  pluginConfiguration: PastePluginOptions;
4005
4005
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
@@ -4700,7 +4700,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
4700
4700
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
4701
4701
  sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
4702
4702
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
4703
- sharedState: import("@atlaskit/editor-plugin-focus").FocusState;
4703
+ sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
4704
4704
  }, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
4705
4705
  pluginConfiguration: import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined;
4706
4706
  actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
@@ -3462,6 +3462,9 @@ export default function createUniversalPresetInternal({ appearance, props, featu
3462
3462
  sharedState: FeatureFlags;
3463
3463
  }, FeatureFlags>>];
3464
3464
  sharedState: import("@atlaskit/editor-plugins/media-insert").MediaInsertPluginState;
3465
+ commands: {
3466
+ showMediaInsertPopup: import("@atlaskit/editor-common/types").EditorCommand;
3467
+ };
3465
3468
  }, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
3466
3469
  pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
3467
3470
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -3411,6 +3411,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
3411
3411
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
3412
3412
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
3413
3413
  sharedState: import("@atlaskit/editor-plugin-media-insert").MediaInsertPluginState;
3414
+ commands: {
3415
+ showMediaInsertPopup: import("@atlaskit/editor-common/types").EditorCommand;
3416
+ };
3414
3417
  }, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
3415
3418
  pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
3416
3419
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
@@ -4186,6 +4186,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
4186
4186
  }, import("@atlaskit/editor-common/types").FeatureFlags>>
4187
4187
  ];
4188
4188
  sharedState: import("@atlaskit/editor-plugin-media-insert").MediaInsertPluginState;
4189
+ commands: {
4190
+ showMediaInsertPopup: import("@atlaskit/editor-common/types").EditorCommand;
4191
+ };
4189
4192
  }, undefined> | undefined,
4190
4193
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
4191
4194
  pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
@@ -869,7 +869,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
869
869
  sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
870
870
  }, undefined>,
871
871
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
872
- sharedState: import("@atlaskit/editor-plugin-focus").FocusState;
872
+ sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
873
873
  }, undefined>,
874
874
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
875
875
  pluginConfiguration: import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined;
@@ -1004,7 +1004,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
1004
1004
  pluginConfiguration: PlaceholderPluginOptions | undefined;
1005
1005
  dependencies: [
1006
1006
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
1007
- sharedState: import("@atlaskit/editor-plugin-focus").FocusState;
1007
+ sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
1008
1008
  }, undefined>,
1009
1009
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
1010
1010
  sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
@@ -1829,7 +1829,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
1829
1829
  sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
1830
1830
  }, undefined>,
1831
1831
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
1832
- sharedState: import("@atlaskit/editor-plugin-focus").FocusState;
1832
+ sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
1833
1833
  }, undefined>,
1834
1834
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clipboard", {}, undefined>,
1835
1835
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"paste", {
@@ -2678,7 +2678,7 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
2678
2678
  sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
2679
2679
  }, undefined>,
2680
2680
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
2681
- sharedState: import("@atlaskit/editor-plugin-focus").FocusState;
2681
+ sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
2682
2682
  }, undefined>,
2683
2683
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
2684
2684
  pluginConfiguration: import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined;
@@ -3907,7 +3907,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
3907
3907
  sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
3908
3908
  }, undefined>,
3909
3909
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
3910
- sharedState: import("@atlaskit/editor-plugin-focus").FocusState;
3910
+ sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
3911
3911
  }, undefined>,
3912
3912
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
3913
3913
  pluginConfiguration: import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined;
@@ -4042,7 +4042,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
4042
4042
  pluginConfiguration: PlaceholderPluginOptions | undefined;
4043
4043
  dependencies: [
4044
4044
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
4045
- sharedState: import("@atlaskit/editor-plugin-focus").FocusState;
4045
+ sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
4046
4046
  }, undefined>,
4047
4047
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"composition", {
4048
4048
  sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
@@ -4867,7 +4867,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
4867
4867
  sharedState: import("@atlaskit/editor-plugins/composition").CompositionState;
4868
4868
  }, undefined>,
4869
4869
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
4870
- sharedState: import("@atlaskit/editor-plugin-focus").FocusState;
4870
+ sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
4871
4871
  }, undefined>,
4872
4872
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clipboard", {}, undefined>,
4873
4873
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"paste", {
@@ -5716,7 +5716,7 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
5716
5716
  sharedState: import("@atlaskit/editor-plugins/editor-disabled").EditorDisabledPluginState;
5717
5717
  }, undefined>,
5718
5718
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
5719
- sharedState: import("@atlaskit/editor-plugin-focus").FocusState;
5719
+ sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
5720
5720
  }, undefined>,
5721
5721
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
5722
5722
  pluginConfiguration: import("@atlaskit/editor-plugins/selection/types").SelectionPluginOptions | undefined;
@@ -4237,6 +4237,9 @@ export default function createUniversalPresetInternal({ appearance, props, featu
4237
4237
  }, FeatureFlags>>
4238
4238
  ];
4239
4239
  sharedState: import("@atlaskit/editor-plugins/media-insert").MediaInsertPluginState;
4240
+ commands: {
4241
+ showMediaInsertPopup: import("@atlaskit/editor-common/types").EditorCommand;
4242
+ };
4240
4243
  }, undefined> | undefined,
4241
4244
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
4242
4245
  pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
@@ -4186,6 +4186,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
4186
4186
  }, import("@atlaskit/editor-common/types").FeatureFlags>>
4187
4187
  ];
4188
4188
  sharedState: import("@atlaskit/editor-plugin-media-insert").MediaInsertPluginState;
4189
+ commands: {
4190
+ showMediaInsertPopup: import("@atlaskit/editor-common/types").EditorCommand;
4191
+ };
4189
4192
  }, undefined> | undefined,
4190
4193
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
4191
4194
  pluginConfiguration: import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "197.9.0",
3
+ "version": "197.9.2",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/analytics-next": "^10.1.0",
44
44
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
45
45
  "@atlaskit/button": "^20.1.0",
46
- "@atlaskit/editor-common": "^90.0.0",
46
+ "@atlaskit/editor-common": "^90.2.0",
47
47
  "@atlaskit/editor-json-transformer": "^8.18.0",
48
48
  "@atlaskit/editor-plugin-quick-insert": "1.4.1",
49
49
  "@atlaskit/editor-plugins": "^5.3.0",
@@ -56,7 +56,7 @@
56
56
  "@atlaskit/platform-feature-flags": "^0.3.0",
57
57
  "@atlaskit/task-decision": "^17.10.0",
58
58
  "@atlaskit/tmp-editor-statsig": "*",
59
- "@atlaskit/tokens": "^1.60.0",
59
+ "@atlaskit/tokens": "^1.61.0",
60
60
  "@atlaskit/tooltip": "^18.7.0",
61
61
  "@atlaskit/width-detector": "^4.3.0",
62
62
  "@babel/runtime": "^7.0.0",
@@ -84,7 +84,7 @@
84
84
  "@af/visual-regression": "*",
85
85
  "@atlaskit/adf-utils": "^19.8.0",
86
86
  "@atlaskit/analytics-listeners": "^8.11.0",
87
- "@atlaskit/collab-provider": "9.40.4",
87
+ "@atlaskit/collab-provider": "9.40.5",
88
88
  "@atlaskit/editor-plugin-annotation": "1.19.7",
89
89
  "@atlaskit/editor-plugin-card": "^3.0.0",
90
90
  "@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
@@ -97,8 +97,8 @@
97
97
  "@atlaskit/media-integration-test-helpers": "^3.1.0",
98
98
  "@atlaskit/media-test-helpers": "^34.4.0",
99
99
  "@atlaskit/modal-dialog": "^12.16.0",
100
- "@atlaskit/primitives": "^12.1.0",
101
- "@atlaskit/renderer": "^110.3.0",
100
+ "@atlaskit/primitives": "^12.2.0",
101
+ "@atlaskit/renderer": "^110.4.0",
102
102
  "@atlaskit/smart-card": "^28.1.0",
103
103
  "@atlaskit/synchrony-test-helpers": "^2.5.0",
104
104
  "@atlaskit/toggle": "^13.4.0",
@@ -106,7 +106,7 @@
106
106
  "@atlaskit/visual-regression": "*",
107
107
  "@atlassian/adf-schema-json": "^1.22.0",
108
108
  "@atlassian/feature-flags-test-utils": "*",
109
- "@atlassian/search-provider": "2.4.136",
109
+ "@atlassian/search-provider": "2.4.138",
110
110
  "@emotion/jest": "^11.8.0",
111
111
  "@storybook/addon-knobs": "^5.3.18",
112
112
  "@testing-library/react": "^12.1.5",
@@ -174,9 +174,6 @@
174
174
  "type": "boolean",
175
175
  "referenceOnly": "true"
176
176
  },
177
- "platform.editor.media.preview-in-full-page": {
178
- "type": "boolean"
179
- },
180
177
  "platform.editor.inline_extension.extended_lcqdn": {
181
178
  "type": "boolean",
182
179
  "referenceOnly": "true"
package/.eslintrc.js DELETED
@@ -1,21 +0,0 @@
1
- module.exports = {
2
- rules: {
3
- '@typescript-eslint/no-explicit-any': 'error',
4
- '@atlaskit/design-system/ensure-design-token-usage/preview': [
5
- 'error',
6
- { domains: ['spacing'], shouldEnforceFallbacks: false },
7
- ],
8
- },
9
- overrides: [
10
- {
11
- files: [
12
- '**/__tests__/**/*.{js,ts,tsx}',
13
- 'examples/**/*.{js,ts,tsx}',
14
- '**/*.{test,spec}.{js,ts,tsx}',
15
- ],
16
- rules: {
17
- '@typescript-eslint/no-explicit-any': ['off'],
18
- },
19
- },
20
- ],
21
- };