@atlaskit/editor-core 194.3.6 → 194.3.9

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,15 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 194.3.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [#121871](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/121871)
8
+ [`61163aa3e3a70`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/61163aa3e3a70) -
9
+ ED-24145: Turned on table drag and drop in comment editor
10
+ - [`3b20c735bc9ee`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3b20c735bc9ee) -
11
+ [ux] Insert full-width table in comment editor when table resizing is enabled.
12
+
3
13
  ## 194.3.6
4
14
 
5
15
  ### Patch Changes
@@ -130,14 +130,19 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
130
130
  }], Boolean(props.mentionProvider)).maybeAdd(_emoji.emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([_table.tablesPlugin, {
131
131
  tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
132
132
  tableResizingEnabled: isFullPage || isComment && (0, _platformFeatureFlags.fg)('platform_editor_table_support_in_comment'),
133
- dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && isFullPage,
133
+ dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && isFullPage ||
134
+ // eslint-disable-next-line @atlaskit/platform/no-preconditioning
135
+ isComment && (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) &&
136
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
137
+ (0, _platformFeatureFlags.fg)('platform_editor_table_support_in_comment'),
134
138
  isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && isFullPage,
135
139
  allowContextualMenu: !isMobile,
136
140
  fullWidthEnabled: appearance === 'full-width',
137
141
  wasFullWidthEnabled: prevAppearance && prevAppearance === 'full-width',
138
142
  getEditorFeatureFlags: getEditorFeatureFlags,
139
143
  isTableAlignmentEnabled: (0, _platformFeatureFlags.fg)('platform.editor.table.allow-table-alignment') && isFullPage,
140
- isNewColumnResizingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableNewColumnResizing) && isFullPage
144
+ isNewColumnResizingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableNewColumnResizing) && isFullPage,
145
+ isCommentEditor: isComment
141
146
  }], Boolean(props.allowTables)).maybeAdd([_tasksAndDecisions.tasksAndDecisionsPlugin, {
142
147
  allowNestedTasks: props.allowNestedTasks,
143
148
  consumeTabs: isFullPage,
@@ -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 = "194.3.6";
8
+ var version = exports.version = "194.3.9";
@@ -119,14 +119,19 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
119
119
  }], Boolean(props.mentionProvider)).maybeAdd(emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
120
120
  tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
121
121
  tableResizingEnabled: isFullPage || isComment && fg('platform_editor_table_support_in_comment'),
122
- dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && isFullPage,
122
+ dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && isFullPage ||
123
+ // eslint-disable-next-line @atlaskit/platform/no-preconditioning
124
+ isComment && (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) &&
125
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
126
+ fg('platform_editor_table_support_in_comment'),
123
127
  isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && isFullPage,
124
128
  allowContextualMenu: !isMobile,
125
129
  fullWidthEnabled: appearance === 'full-width',
126
130
  wasFullWidthEnabled: prevAppearance && prevAppearance === 'full-width',
127
131
  getEditorFeatureFlags,
128
132
  isTableAlignmentEnabled: fg('platform.editor.table.allow-table-alignment') && isFullPage,
129
- isNewColumnResizingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableNewColumnResizing) && isFullPage
133
+ isNewColumnResizingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableNewColumnResizing) && isFullPage,
134
+ isCommentEditor: isComment
130
135
  }], Boolean(props.allowTables)).maybeAdd([tasksAndDecisionsPlugin, {
131
136
  allowNestedTasks: props.allowNestedTasks,
132
137
  consumeTabs: isFullPage,
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "194.3.6";
2
+ export const version = "194.3.9";
@@ -122,14 +122,19 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
122
122
  }], Boolean(props.mentionProvider)).maybeAdd(emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
123
123
  tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
124
124
  tableResizingEnabled: isFullPage || isComment && fg('platform_editor_table_support_in_comment'),
125
- dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && isFullPage,
125
+ dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && isFullPage ||
126
+ // eslint-disable-next-line @atlaskit/platform/no-preconditioning
127
+ isComment && (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) &&
128
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
129
+ fg('platform_editor_table_support_in_comment'),
126
130
  isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && isFullPage,
127
131
  allowContextualMenu: !isMobile,
128
132
  fullWidthEnabled: appearance === 'full-width',
129
133
  wasFullWidthEnabled: prevAppearance && prevAppearance === 'full-width',
130
134
  getEditorFeatureFlags: getEditorFeatureFlags,
131
135
  isTableAlignmentEnabled: fg('platform.editor.table.allow-table-alignment') && isFullPage,
132
- isNewColumnResizingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableNewColumnResizing) && isFullPage
136
+ isNewColumnResizingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableNewColumnResizing) && isFullPage,
137
+ isCommentEditor: isComment
133
138
  }], Boolean(props.allowTables)).maybeAdd([tasksAndDecisionsPlugin, {
134
139
  allowNestedTasks: props.allowNestedTasks,
135
140
  consumeTabs: isFullPage,
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "194.3.6";
2
+ export var version = "194.3.9";
@@ -3626,6 +3626,8 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
3626
3626
  };
3627
3627
  commands: {
3628
3628
  showLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").ShowLinkToolbar;
3629
+ updateLink: (href: string, text: string) => import("@atlaskit/editor-common/types").EditorCommand;
3630
+ removeLink: () => import("@atlaskit/editor-common/types").EditorCommand;
3629
3631
  };
3630
3632
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
3631
3633
  }, import("@atlaskit/editor-common/types").HyperlinkPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
@@ -862,6 +862,8 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
862
862
  };
863
863
  commands: {
864
864
  showLinkToolbar: import("@atlaskit/editor-plugins/hyperlink").ShowLinkToolbar;
865
+ updateLink: (href: string, text: string) => import("@atlaskit/editor-common/types").EditorCommand;
866
+ removeLink: () => import("@atlaskit/editor-common/types").EditorCommand;
865
867
  };
866
868
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
867
869
  }, HyperlinkPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
@@ -2545,6 +2547,8 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
2545
2547
  };
2546
2548
  commands: {
2547
2549
  showLinkToolbar: import("@atlaskit/editor-plugins/hyperlink").ShowLinkToolbar;
2550
+ updateLink: (href: string, text: string) => import("@atlaskit/editor-common/types").EditorCommand;
2551
+ removeLink: () => import("@atlaskit/editor-common/types").EditorCommand;
2548
2552
  };
2549
2553
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
2550
2554
  }, HyperlinkPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
@@ -3643,6 +3643,8 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
3643
3643
  };
3644
3644
  commands: {
3645
3645
  showLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").ShowLinkToolbar;
3646
+ updateLink: (href: string, text: string) => import("@atlaskit/editor-common/types").EditorCommand;
3647
+ removeLink: () => import("@atlaskit/editor-common/types").EditorCommand;
3646
3648
  };
3647
3649
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
3648
3650
  }, import("@atlaskit/editor-common/types").HyperlinkPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selectionToolbar", {
@@ -3629,6 +3629,8 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
3629
3629
  };
3630
3630
  commands: {
3631
3631
  showLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").ShowLinkToolbar;
3632
+ updateLink: (href: string, text: string) => import("@atlaskit/editor-common/types").EditorCommand;
3633
+ removeLink: () => import("@atlaskit/editor-common/types").EditorCommand;
3632
3634
  };
3633
3635
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
3634
3636
  }, import("@atlaskit/editor-common/types").HyperlinkPluginOptions | undefined>, import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"selectionToolbar", {
@@ -4519,6 +4519,8 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
4519
4519
  };
4520
4520
  commands: {
4521
4521
  showLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").ShowLinkToolbar;
4522
+ updateLink: (href: string, text: string) => import("@atlaskit/editor-common/types").EditorCommand;
4523
+ removeLink: () => import("@atlaskit/editor-common/types").EditorCommand;
4522
4524
  };
4523
4525
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
4524
4526
  }, import("@atlaskit/editor-common/types").HyperlinkPluginOptions | undefined>,
@@ -1082,6 +1082,8 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
1082
1082
  };
1083
1083
  commands: {
1084
1084
  showLinkToolbar: import("@atlaskit/editor-plugins/hyperlink").ShowLinkToolbar;
1085
+ updateLink: (href: string, text: string) => import("@atlaskit/editor-common/types").EditorCommand;
1086
+ removeLink: () => import("@atlaskit/editor-common/types").EditorCommand;
1085
1087
  };
1086
1088
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
1087
1089
  }, HyperlinkPluginOptions | undefined>,
@@ -3181,6 +3183,8 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
3181
3183
  };
3182
3184
  commands: {
3183
3185
  showLinkToolbar: import("@atlaskit/editor-plugins/hyperlink").ShowLinkToolbar;
3186
+ updateLink: (href: string, text: string) => import("@atlaskit/editor-common/types").EditorCommand;
3187
+ removeLink: () => import("@atlaskit/editor-common/types").EditorCommand;
3184
3188
  };
3185
3189
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
3186
3190
  }, HyperlinkPluginOptions | undefined>,
@@ -4536,6 +4536,8 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
4536
4536
  };
4537
4537
  commands: {
4538
4538
  showLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").ShowLinkToolbar;
4539
+ updateLink: (href: string, text: string) => import("@atlaskit/editor-common/types").EditorCommand;
4540
+ removeLink: () => import("@atlaskit/editor-common/types").EditorCommand;
4539
4541
  };
4540
4542
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
4541
4543
  }, import("@atlaskit/editor-common/types").HyperlinkPluginOptions | undefined>,
@@ -4522,6 +4522,8 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
4522
4522
  };
4523
4523
  commands: {
4524
4524
  showLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").ShowLinkToolbar;
4525
+ updateLink: (href: string, text: string) => import("@atlaskit/editor-common/types").EditorCommand;
4526
+ removeLink: () => import("@atlaskit/editor-common/types").EditorCommand;
4525
4527
  };
4526
4528
  sharedState: import("@atlaskit/editor-common/link").HyperlinkState | undefined;
4527
4529
  }, import("@atlaskit/editor-common/types").HyperlinkPluginOptions | undefined>,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "194.3.6",
3
+ "version": "194.3.9",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -329,6 +329,10 @@
329
329
  "type": "boolean",
330
330
  "referenceOnly": true
331
331
  },
332
+ "react_18_color_picker_concurrent_mode": {
333
+ "type": "boolean",
334
+ "referenceOnly": true
335
+ },
332
336
  "linking-platform-contenteditable-false-live-view": {
333
337
  "type": "boolean",
334
338
  "referenceOnly": true