@atlaskit/editor-core 193.21.0 → 193.22.0

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,18 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 193.22.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#103099](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103099)
8
+ [`ab382e121799`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ab382e121799) -
9
+ [ux] [ED-23248] -
10
+
11
+ **@atlaskit/editor-core**: REVERT: Added optional profilecardProvider to Mention plugin in
12
+ universal composable editor **@atlaskit/editor-plugin-mentions**: REVERT: Made mentions render
13
+ with profile cards on click if the feature flag:
14
+ `platform.editor.mentions-in-editor-popup-on-click` is turned on
15
+
3
16
  ## 193.21.0
4
17
 
5
18
  ### Minor Changes
@@ -71,7 +71,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
71
71
  * @returns a full featured preset configured according to the provided props - basis for create-plugins-list
72
72
  */
73
73
  function createUniversalPreset(appearance, props, featureFlags, prevAppearance, createAnalyticsEvent) {
74
- var _featureFlags$lpLinkP, _props$media, _props$media2, _props$media3, _props$media4, _props$media5, _props$mention$insert, _props$mention, _props$mention2, _props$mention3, _props$collabEdit$EXP, _props$collabEdit, _props$linking, _props$linking2, _featureFlags$lpLinkP2, _props$linking3, _props$primaryToolbar;
74
+ var _featureFlags$lpLinkP, _props$media, _props$media2, _props$media3, _props$media4, _props$media5, _props$mention$insert, _props$mention, _props$mention2, _props$collabEdit$EXP, _props$collabEdit, _props$linking, _props$linking2, _featureFlags$lpLinkP2, _props$linking3, _props$primaryToolbar;
75
75
  var isMobile = appearance === 'mobile';
76
76
  var isComment = appearance === 'comment';
77
77
  var isChromeless = appearance === 'chromeless';
@@ -124,8 +124,7 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
124
124
  sanitizePrivateContent: props.sanitizePrivateContent,
125
125
  insertDisplayName: (_props$mention$insert = (_props$mention = props.mention) === null || _props$mention === void 0 ? void 0 : _props$mention.insertDisplayName) !== null && _props$mention$insert !== void 0 ? _props$mention$insert : props.mentionInsertDisplayName,
126
126
  allowZeroWidthSpaceAfter: !isMobile,
127
- HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent,
128
- profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider
127
+ HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent
129
128
  }], Boolean(props.mentionProvider)).maybeAdd(_emoji.emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([_table.tablesPlugin, {
130
129
  tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
131
130
  tableResizingEnabled: ['full-page', 'full-width'].includes(appearance || ''),
@@ -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 = "193.21.0";
8
+ var version = exports.version = "193.22.0";
@@ -59,7 +59,7 @@ import { createDefaultPreset } from './default';
59
59
  * @returns a full featured preset configured according to the provided props - basis for create-plugins-list
60
60
  */
61
61
  export default function createUniversalPreset(appearance, props, featureFlags, prevAppearance, createAnalyticsEvent) {
62
- var _featureFlags$lpLinkP, _props$media, _props$media2, _props$media3, _props$media4, _props$media5, _props$mention$insert, _props$mention, _props$mention2, _props$mention3, _props$collabEdit$EXP, _props$collabEdit, _props$linking, _props$linking2, _featureFlags$lpLinkP2, _props$linking3, _props$primaryToolbar;
62
+ var _featureFlags$lpLinkP, _props$media, _props$media2, _props$media3, _props$media4, _props$media5, _props$mention$insert, _props$mention, _props$mention2, _props$collabEdit$EXP, _props$collabEdit, _props$linking, _props$linking2, _featureFlags$lpLinkP2, _props$linking3, _props$primaryToolbar;
63
63
  const isMobile = appearance === 'mobile';
64
64
  const isComment = appearance === 'comment';
65
65
  const isChromeless = appearance === 'chromeless';
@@ -113,8 +113,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
113
113
  sanitizePrivateContent: props.sanitizePrivateContent,
114
114
  insertDisplayName: (_props$mention$insert = (_props$mention = props.mention) === null || _props$mention === void 0 ? void 0 : _props$mention.insertDisplayName) !== null && _props$mention$insert !== void 0 ? _props$mention$insert : props.mentionInsertDisplayName,
115
115
  allowZeroWidthSpaceAfter: !isMobile,
116
- HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent,
117
- profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider
116
+ HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent
118
117
  }], Boolean(props.mentionProvider)).maybeAdd(emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
119
118
  tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
120
119
  tableResizingEnabled: ['full-page', 'full-width'].includes(appearance || ''),
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "193.21.0";
2
+ export const version = "193.22.0";
@@ -63,7 +63,7 @@ import { createDefaultPreset } from './default';
63
63
  * @returns a full featured preset configured according to the provided props - basis for create-plugins-list
64
64
  */
65
65
  export default function createUniversalPreset(appearance, props, featureFlags, prevAppearance, createAnalyticsEvent) {
66
- var _featureFlags$lpLinkP, _props$media, _props$media2, _props$media3, _props$media4, _props$media5, _props$mention$insert, _props$mention, _props$mention2, _props$mention3, _props$collabEdit$EXP, _props$collabEdit, _props$linking, _props$linking2, _featureFlags$lpLinkP2, _props$linking3, _props$primaryToolbar;
66
+ var _featureFlags$lpLinkP, _props$media, _props$media2, _props$media3, _props$media4, _props$media5, _props$mention$insert, _props$mention, _props$mention2, _props$collabEdit$EXP, _props$collabEdit, _props$linking, _props$linking2, _featureFlags$lpLinkP2, _props$linking3, _props$primaryToolbar;
67
67
  var isMobile = appearance === 'mobile';
68
68
  var isComment = appearance === 'comment';
69
69
  var isChromeless = appearance === 'chromeless';
@@ -116,8 +116,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
116
116
  sanitizePrivateContent: props.sanitizePrivateContent,
117
117
  insertDisplayName: (_props$mention$insert = (_props$mention = props.mention) === null || _props$mention === void 0 ? void 0 : _props$mention.insertDisplayName) !== null && _props$mention$insert !== void 0 ? _props$mention$insert : props.mentionInsertDisplayName,
118
118
  allowZeroWidthSpaceAfter: !isMobile,
119
- HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent,
120
- profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider
119
+ HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent
121
120
  }], Boolean(props.mentionProvider)).maybeAdd(emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
122
121
  tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
123
122
  tableResizingEnabled: ['full-page', 'full-width'].includes(appearance || ''),
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "193.21.0";
2
+ export var version = "193.22.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "193.21.0",
3
+ "version": "193.22.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -106,9 +106,8 @@
106
106
  "@atlaskit/primitives": "^6.3.0",
107
107
  "@atlaskit/renderer": "^109.29.0",
108
108
  "@atlaskit/select": "^17.9.0",
109
- "@atlaskit/smart-card": "^26.69.0",
109
+ "@atlaskit/smart-card": "^26.71.0",
110
110
  "@atlaskit/synchrony-test-helpers": "^2.4.0",
111
- "@atlaskit/toggle": "^13.1.0",
112
111
  "@atlaskit/util-data-test": "^17.9.0",
113
112
  "@atlaskit/visual-regression": "*",
114
113
  "@atlassian/adf-schema-json": "^1.14.0",
@@ -349,10 +348,6 @@
349
348
  },
350
349
  "platform.confluence.frontend.narrow-full-page-editor-toolbar": {
351
350
  "type": "boolean"
352
- },
353
- "platform.editor.mentions-in-editor-popup-on-click": {
354
- "type": "boolean",
355
- "referenceOnly": "true"
356
351
  }
357
352
  },
358
353
  "stricter": {