@atlaskit/editor-core 193.19.11 → 193.20.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,17 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 193.20.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#98647](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98647)
8
+ [`19eb20751225`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/19eb20751225) -
9
+ [ux] [ED-23248] -
10
+
11
+ **@atlaskit/editor-core**: Added optional profilecardProvider to Mention plugin in universal
12
+ composable editor **@atlaskit/editor-plugin-mentions**: Made mentions render with profile cards
13
+ on click if the feature flag: `platform.editor.mentions-in-editor-popup-on-click` is turned on
14
+
3
15
  ## 193.19.11
4
16
 
5
17
  ### Patch 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$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$mention3, _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,7 +124,8 @@ 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
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
128
129
  }], Boolean(props.mentionProvider)).maybeAdd(_emoji.emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([_table.tablesPlugin, {
129
130
  tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
130
131
  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.19.11";
8
+ var version = exports.version = "193.20.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$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$mention3, _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,7 +113,8 @@ 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
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
117
118
  }], Boolean(props.mentionProvider)).maybeAdd(emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
118
119
  tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
119
120
  tableResizingEnabled: ['full-page', 'full-width'].includes(appearance || ''),
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "193.19.11";
2
+ export const version = "193.20.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$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$mention3, _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,7 +116,8 @@ 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
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
120
121
  }], Boolean(props.mentionProvider)).maybeAdd(emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
121
122
  tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
122
123
  tableResizingEnabled: ['full-page', 'full-width'].includes(appearance || ''),
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "193.19.11";
2
+ export var version = "193.20.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "193.19.11",
3
+ "version": "193.20.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -108,6 +108,7 @@
108
108
  "@atlaskit/select": "^17.9.0",
109
109
  "@atlaskit/smart-card": "^26.69.0",
110
110
  "@atlaskit/synchrony-test-helpers": "^2.4.0",
111
+ "@atlaskit/toggle": "^13.1.0",
111
112
  "@atlaskit/util-data-test": "^17.9.0",
112
113
  "@atlaskit/visual-regression": "*",
113
114
  "@atlassian/adf-schema-json": "^1.14.0",
@@ -122,7 +123,7 @@
122
123
  "@testing-library/user-event": "^14.4.3",
123
124
  "@types/diff": "^5.0.2",
124
125
  "@types/is-number": "^7.0.0",
125
- "clipboard-polyfill": "2.4.3",
126
+ "clipboard-polyfill": "4.0.1",
126
127
  "diff": "^4.0.1",
127
128
  "enzyme": "^3.10.0",
128
129
  "fetch-mock": "^8.0.0",
@@ -348,6 +349,10 @@
348
349
  },
349
350
  "platform.confluence.frontend.narrow-full-page-editor-toolbar": {
350
351
  "type": "boolean"
352
+ },
353
+ "platform.editor.mentions-in-editor-popup-on-click": {
354
+ "type": "boolean",
355
+ "referenceOnly": "true"
351
356
  }
352
357
  },
353
358
  "stricter": {