@atlaskit/editor-plugin-card 3.4.5 → 4.1.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,30 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 4.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#150349](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/150349)
8
+ [`3930014486c26`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3930014486c26) -
9
+ Clean up FF that disables inline smart-card overlay in view mode
10
+
11
+ ## 4.0.0
12
+
13
+ ### Major Changes
14
+
15
+ - [#149599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/149599)
16
+ [`9c110fa4b038c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9c110fa4b038c) -
17
+ The hyperlink floating toolbar no longer includes a settings button by default, now requires card
18
+ plugin to be provided to include the settings button in the hyperlink floating toolbar (via ff
19
+ cleanup platform.editor.card.inject-settings-button).
20
+
21
+ Upgrade requires only checking compatible versions of `@atlaskit/editor-plugin-card` and
22
+ `@atlaskit/editor-plugin-hyperlink` as both packages are affected by feature flag change.
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies
27
+
3
28
  ## 3.4.5
4
29
 
5
30
  ### Patch Changes
@@ -162,7 +162,7 @@ function InlineCardNodeView(props) {
162
162
  useAlternativePreloader: useAlternativePreloader,
163
163
  pluginInjectionApi: pluginInjectionApi,
164
164
  onClickCallback: onClickCallback
165
- }, enableInlineUpgradeFeatures && (0, _utils.getAwarenessProps)(view.state, getPos, allowEmbeds, allowBlockCards, (0, _platformFeatureFlags.fg)('linking_platform_disable_live_view_inline_overlay') && (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view')));
165
+ }, enableInlineUpgradeFeatures && (0, _utils.getAwarenessProps)(view.state, getPos, allowEmbeds, allowBlockCards, (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view')));
166
166
  }
167
167
  var inlineCardNodeView = exports.inlineCardNodeView = function inlineCardNodeView(_ref2) {
168
168
  var inlineCardViewProducer = _ref2.inlineCardViewProducer;
@@ -5,7 +5,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.visitCardLink = exports.shouldRenderToolbarPulse = exports.removeCard = exports.openLinkSettings = exports.getStartingToolbarItems = exports.getSettingsButtonGroup = exports.getSettingsButton = exports.getHyperlinkToolbarSettingsButton = exports.getEndingToolbarItems = exports.floatingToolbar = void 0;
8
+ exports.visitCardLink = exports.shouldRenderToolbarPulse = exports.removeCard = exports.openLinkSettings = exports.getStartingToolbarItems = exports.getSettingsButton = exports.getEndingToolbarItems = exports.floatingToolbar = void 0;
9
9
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
11
  var _react = _interopRequireDefault(require("react"));
@@ -270,7 +270,9 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
270
270
  }]
271
271
  }, {
272
272
  type: 'separator'
273
- }], (0, _toConsumableArray2.default)(getSettingsButtonGroup(intl, editorAnalyticsApi, cardOptions.userPreferencesLink)), [{
273
+ }, getSettingsButton(intl, editorAnalyticsApi, cardOptions.userPreferencesLink), {
274
+ type: 'separator'
275
+ }, {
274
276
  id: 'editor.link.delete',
275
277
  focusEditoronEnter: true,
276
278
  type: 'button',
@@ -368,31 +370,17 @@ var getUnlinkButtonGroup = function getUnlinkButtonGroup(state, intl, node, inli
368
370
  type: 'separator'
369
371
  }] : [];
370
372
  };
371
- var getHyperlinkToolbarSettingsButton = exports.getHyperlinkToolbarSettingsButton = function getHyperlinkToolbarSettingsButton(intl, editorAnalyticsApi, userPreferencesLink) {
372
- return {
373
- id: 'editor.link.settings',
374
- type: 'button',
375
- icon: _settings.default,
376
- title: intl.formatMessage(_messages.linkToolbarMessages.settingsLink),
377
- onClick: (0, _platformFeatureFlags.fg)('platform.editor.card.inject-settings-button') ? openLinkSettings(editorAnalyticsApi, userPreferencesLink) : openLinkSettings(editorAnalyticsApi, undefined),
378
- href: (0, _platformFeatureFlags.fg)('platform.editor.card.inject-settings-button') ? userPreferencesLink || (0, _link.getLinkPreferencesURLFromENV)() : (0, _link.getLinkPreferencesURLFromENV)(),
379
- target: '_blank'
380
- };
381
- };
382
373
  var getSettingsButton = exports.getSettingsButton = function getSettingsButton(intl, editorAnalyticsApi, userPreferencesLink) {
383
374
  return {
384
375
  id: 'editor.link.settings',
385
376
  type: 'button',
386
377
  icon: _settings.default,
387
378
  title: intl.formatMessage(_messages.linkToolbarMessages.settingsLink),
388
- onClick: (0, _platformFeatureFlags.fg)('platform.editor.card.inject-settings-button') ? openLinkSettings(editorAnalyticsApi, userPreferencesLink) : openLinkSettings(editorAnalyticsApi, undefined)
379
+ onClick: openLinkSettings(editorAnalyticsApi, userPreferencesLink),
380
+ href: userPreferencesLink || (0, _link.getLinkPreferencesURLFromENV)(),
381
+ target: '_blank'
389
382
  };
390
383
  };
391
- var getSettingsButtonGroup = exports.getSettingsButtonGroup = function getSettingsButtonGroup(intl, editorAnalyticsApi, userPreferencesLink) {
392
- return [getSettingsButton(intl, editorAnalyticsApi, userPreferencesLink), {
393
- type: 'separator'
394
- }];
395
- };
396
384
  var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl, editorAnalyticsApi, node, hoverDecoration, datasourceId, state, cardOptions, currentAppearance) {
397
385
  var _node$attrs3;
398
386
  var toolbarItems = [];
@@ -490,7 +478,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
490
478
  type: 'separator'
491
479
  });
492
480
  }
493
- toolbarItems.push.apply(toolbarItems, [{
481
+ toolbarItems.push({
494
482
  type: 'copy-button',
495
483
  supportsViewMode: true,
496
484
  items: [{
@@ -500,7 +488,9 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
500
488
  }]
501
489
  }, {
502
490
  type: 'separator'
503
- }].concat((0, _toConsumableArray2.default)(getSettingsButtonGroup(intl, editorAnalyticsApi, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.userPreferencesLink)), [{
491
+ }, getSettingsButton(intl, editorAnalyticsApi, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.userPreferencesLink), {
492
+ type: 'separator'
493
+ }, {
504
494
  id: 'editor.link.delete',
505
495
  focusEditoronEnter: true,
506
496
  type: 'button',
@@ -512,7 +502,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
512
502
  onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, false),
513
503
  title: intl.formatMessage(_messages.default.remove),
514
504
  onClick: withToolbarMetadata(removeCard(editorAnalyticsApi))
515
- }]));
505
+ });
516
506
  return toolbarItems;
517
507
  };
518
508
  var shouldRenderToolbarPulse = exports.shouldRenderToolbarPulse = function shouldRenderToolbarPulse(embedEnabled, appearance, status, isDiscoverabilityEnabled) {
@@ -585,17 +575,15 @@ var getStartingToolbarItems = exports.getStartingToolbarItems = function getStar
585
575
  };
586
576
  var getEndingToolbarItems = exports.getEndingToolbarItems = function getEndingToolbarItems(options, api) {
587
577
  return function (intl, link) {
588
- if ((0, _platformFeatureFlags.fg)('platform.editor.card.inject-settings-button')) {
589
- /**
590
- * Require either provider to be supplied (controls link preferences)
591
- * Or explicit user preferences config in order to enable button
592
- */
593
- if (options.provider || options.userPreferencesLink) {
594
- var _api$analytics3;
595
- return [{
596
- type: 'separator'
597
- }, getHyperlinkToolbarSettingsButton(intl, api === null || api === void 0 || (_api$analytics3 = api.analytics) === null || _api$analytics3 === void 0 ? void 0 : _api$analytics3.actions, options.userPreferencesLink)];
598
- }
578
+ /**
579
+ * Require either provider to be supplied (controls link preferences)
580
+ * Or explicit user preferences config in order to enable button
581
+ */
582
+ if (options.provider || options.userPreferencesLink) {
583
+ var _api$analytics3;
584
+ return [{
585
+ type: 'separator'
586
+ }, getSettingsButton(intl, api === null || api === void 0 || (_api$analytics3 = api.analytics) === null || _api$analytics3 === void 0 ? void 0 : _api$analytics3.actions, options.userPreferencesLink)];
599
587
  }
600
588
  return [];
601
589
  };
@@ -151,7 +151,7 @@ export function InlineCardNodeView(props) {
151
151
  useAlternativePreloader: useAlternativePreloader,
152
152
  pluginInjectionApi: pluginInjectionApi,
153
153
  onClickCallback: onClickCallback
154
- }, enableInlineUpgradeFeatures && getAwarenessProps(view.state, getPos, allowEmbeds, allowBlockCards, fg('linking_platform_disable_live_view_inline_overlay') && (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view')));
154
+ }, enableInlineUpgradeFeatures && getAwarenessProps(view.state, getPos, allowEmbeds, allowBlockCards, (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view')));
155
155
  }
156
156
  export const inlineCardNodeView = ({
157
157
  inlineCardViewProducer
@@ -262,7 +262,9 @@ const generateToolbarItems = (state, intl, providerFactory, cardOptions, lpLinkP
262
262
  }]
263
263
  }, {
264
264
  type: 'separator'
265
- }, ...getSettingsButtonGroup(intl, editorAnalyticsApi, cardOptions.userPreferencesLink), {
265
+ }, getSettingsButton(intl, editorAnalyticsApi, cardOptions.userPreferencesLink), {
266
+ type: 'separator'
267
+ }, {
266
268
  id: 'editor.link.delete',
267
269
  focusEditoronEnter: true,
268
270
  type: 'button',
@@ -355,31 +357,17 @@ const getUnlinkButtonGroup = (state, intl, node, inlineCard, editorAnalyticsApi)
355
357
  type: 'separator'
356
358
  }] : [];
357
359
  };
358
- export const getHyperlinkToolbarSettingsButton = (intl, editorAnalyticsApi, userPreferencesLink) => {
359
- return {
360
- id: 'editor.link.settings',
361
- type: 'button',
362
- icon: CogIcon,
363
- title: intl.formatMessage(linkToolbarMessages.settingsLink),
364
- onClick: fg('platform.editor.card.inject-settings-button') ? openLinkSettings(editorAnalyticsApi, userPreferencesLink) : openLinkSettings(editorAnalyticsApi, undefined),
365
- href: fg('platform.editor.card.inject-settings-button') ? userPreferencesLink || getLinkPreferencesURLFromENV() : getLinkPreferencesURLFromENV(),
366
- target: '_blank'
367
- };
368
- };
369
360
  export const getSettingsButton = (intl, editorAnalyticsApi, userPreferencesLink) => {
370
361
  return {
371
362
  id: 'editor.link.settings',
372
363
  type: 'button',
373
364
  icon: CogIcon,
374
365
  title: intl.formatMessage(linkToolbarMessages.settingsLink),
375
- onClick: fg('platform.editor.card.inject-settings-button') ? openLinkSettings(editorAnalyticsApi, userPreferencesLink) : openLinkSettings(editorAnalyticsApi, undefined)
366
+ onClick: openLinkSettings(editorAnalyticsApi, userPreferencesLink),
367
+ href: userPreferencesLink || getLinkPreferencesURLFromENV(),
368
+ target: '_blank'
376
369
  };
377
370
  };
378
- export const getSettingsButtonGroup = (intl, editorAnalyticsApi, userPreferencesLink) => {
379
- return [getSettingsButton(intl, editorAnalyticsApi, userPreferencesLink), {
380
- type: 'separator'
381
- }];
382
- };
383
371
  const getDatasourceButtonGroup = (metadata, intl, editorAnalyticsApi, node, hoverDecoration, datasourceId, state, cardOptions, currentAppearance) => {
384
372
  var _node$attrs3;
385
373
  const toolbarItems = [];
@@ -487,7 +475,9 @@ const getDatasourceButtonGroup = (metadata, intl, editorAnalyticsApi, node, hove
487
475
  }]
488
476
  }, {
489
477
  type: 'separator'
490
- }, ...getSettingsButtonGroup(intl, editorAnalyticsApi, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.userPreferencesLink), {
478
+ }, getSettingsButton(intl, editorAnalyticsApi, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.userPreferencesLink), {
479
+ type: 'separator'
480
+ }, {
491
481
  id: 'editor.link.delete',
492
482
  focusEditoronEnter: true,
493
483
  type: 'button',
@@ -569,17 +559,15 @@ export const getStartingToolbarItems = (options, api) => {
569
559
  };
570
560
  };
571
561
  export const getEndingToolbarItems = (options, api) => (intl, link) => {
572
- if (fg('platform.editor.card.inject-settings-button')) {
573
- /**
574
- * Require either provider to be supplied (controls link preferences)
575
- * Or explicit user preferences config in order to enable button
576
- */
577
- if (options.provider || options.userPreferencesLink) {
578
- var _api$analytics3;
579
- return [{
580
- type: 'separator'
581
- }, getHyperlinkToolbarSettingsButton(intl, api === null || api === void 0 ? void 0 : (_api$analytics3 = api.analytics) === null || _api$analytics3 === void 0 ? void 0 : _api$analytics3.actions, options.userPreferencesLink)];
582
- }
562
+ /**
563
+ * Require either provider to be supplied (controls link preferences)
564
+ * Or explicit user preferences config in order to enable button
565
+ */
566
+ if (options.provider || options.userPreferencesLink) {
567
+ var _api$analytics3;
568
+ return [{
569
+ type: 'separator'
570
+ }, getSettingsButton(intl, api === null || api === void 0 ? void 0 : (_api$analytics3 = api.analytics) === null || _api$analytics3 === void 0 ? void 0 : _api$analytics3.actions, options.userPreferencesLink)];
583
571
  }
584
572
  return [];
585
573
  };
@@ -150,7 +150,7 @@ export function InlineCardNodeView(props) {
150
150
  useAlternativePreloader: useAlternativePreloader,
151
151
  pluginInjectionApi: pluginInjectionApi,
152
152
  onClickCallback: onClickCallback
153
- }, enableInlineUpgradeFeatures && getAwarenessProps(view.state, getPos, allowEmbeds, allowBlockCards, fg('linking_platform_disable_live_view_inline_overlay') && (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view')));
153
+ }, enableInlineUpgradeFeatures && getAwarenessProps(view.state, getPos, allowEmbeds, allowBlockCards, (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view')));
154
154
  }
155
155
  export var inlineCardNodeView = function inlineCardNodeView(_ref2) {
156
156
  var inlineCardViewProducer = _ref2.inlineCardViewProducer;
@@ -260,7 +260,9 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
260
260
  }]
261
261
  }, {
262
262
  type: 'separator'
263
- }], _toConsumableArray(getSettingsButtonGroup(intl, editorAnalyticsApi, cardOptions.userPreferencesLink)), [{
263
+ }, getSettingsButton(intl, editorAnalyticsApi, cardOptions.userPreferencesLink), {
264
+ type: 'separator'
265
+ }, {
264
266
  id: 'editor.link.delete',
265
267
  focusEditoronEnter: true,
266
268
  type: 'button',
@@ -358,31 +360,17 @@ var getUnlinkButtonGroup = function getUnlinkButtonGroup(state, intl, node, inli
358
360
  type: 'separator'
359
361
  }] : [];
360
362
  };
361
- export var getHyperlinkToolbarSettingsButton = function getHyperlinkToolbarSettingsButton(intl, editorAnalyticsApi, userPreferencesLink) {
362
- return {
363
- id: 'editor.link.settings',
364
- type: 'button',
365
- icon: CogIcon,
366
- title: intl.formatMessage(linkToolbarMessages.settingsLink),
367
- onClick: fg('platform.editor.card.inject-settings-button') ? openLinkSettings(editorAnalyticsApi, userPreferencesLink) : openLinkSettings(editorAnalyticsApi, undefined),
368
- href: fg('platform.editor.card.inject-settings-button') ? userPreferencesLink || getLinkPreferencesURLFromENV() : getLinkPreferencesURLFromENV(),
369
- target: '_blank'
370
- };
371
- };
372
363
  export var getSettingsButton = function getSettingsButton(intl, editorAnalyticsApi, userPreferencesLink) {
373
364
  return {
374
365
  id: 'editor.link.settings',
375
366
  type: 'button',
376
367
  icon: CogIcon,
377
368
  title: intl.formatMessage(linkToolbarMessages.settingsLink),
378
- onClick: fg('platform.editor.card.inject-settings-button') ? openLinkSettings(editorAnalyticsApi, userPreferencesLink) : openLinkSettings(editorAnalyticsApi, undefined)
369
+ onClick: openLinkSettings(editorAnalyticsApi, userPreferencesLink),
370
+ href: userPreferencesLink || getLinkPreferencesURLFromENV(),
371
+ target: '_blank'
379
372
  };
380
373
  };
381
- export var getSettingsButtonGroup = function getSettingsButtonGroup(intl, editorAnalyticsApi, userPreferencesLink) {
382
- return [getSettingsButton(intl, editorAnalyticsApi, userPreferencesLink), {
383
- type: 'separator'
384
- }];
385
- };
386
374
  var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl, editorAnalyticsApi, node, hoverDecoration, datasourceId, state, cardOptions, currentAppearance) {
387
375
  var _node$attrs3;
388
376
  var toolbarItems = [];
@@ -480,7 +468,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
480
468
  type: 'separator'
481
469
  });
482
470
  }
483
- toolbarItems.push.apply(toolbarItems, [{
471
+ toolbarItems.push({
484
472
  type: 'copy-button',
485
473
  supportsViewMode: true,
486
474
  items: [{
@@ -490,7 +478,9 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
490
478
  }]
491
479
  }, {
492
480
  type: 'separator'
493
- }].concat(_toConsumableArray(getSettingsButtonGroup(intl, editorAnalyticsApi, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.userPreferencesLink)), [{
481
+ }, getSettingsButton(intl, editorAnalyticsApi, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.userPreferencesLink), {
482
+ type: 'separator'
483
+ }, {
494
484
  id: 'editor.link.delete',
495
485
  focusEditoronEnter: true,
496
486
  type: 'button',
@@ -502,7 +492,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
502
492
  onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, false),
503
493
  title: intl.formatMessage(commonMessages.remove),
504
494
  onClick: withToolbarMetadata(removeCard(editorAnalyticsApi))
505
- }]));
495
+ });
506
496
  return toolbarItems;
507
497
  };
508
498
  export var shouldRenderToolbarPulse = function shouldRenderToolbarPulse(embedEnabled, appearance, status, isDiscoverabilityEnabled) {
@@ -575,17 +565,15 @@ export var getStartingToolbarItems = function getStartingToolbarItems(options, a
575
565
  };
576
566
  export var getEndingToolbarItems = function getEndingToolbarItems(options, api) {
577
567
  return function (intl, link) {
578
- if (fg('platform.editor.card.inject-settings-button')) {
579
- /**
580
- * Require either provider to be supplied (controls link preferences)
581
- * Or explicit user preferences config in order to enable button
582
- */
583
- if (options.provider || options.userPreferencesLink) {
584
- var _api$analytics3;
585
- return [{
586
- type: 'separator'
587
- }, getHyperlinkToolbarSettingsButton(intl, api === null || api === void 0 || (_api$analytics3 = api.analytics) === null || _api$analytics3 === void 0 ? void 0 : _api$analytics3.actions, options.userPreferencesLink)];
588
- }
568
+ /**
569
+ * Require either provider to be supplied (controls link preferences)
570
+ * Or explicit user preferences config in order to enable button
571
+ */
572
+ if (options.provider || options.userPreferencesLink) {
573
+ var _api$analytics3;
574
+ return [{
575
+ type: 'separator'
576
+ }, getSettingsButton(intl, api === null || api === void 0 || (_api$analytics3 = api.analytics) === null || _api$analytics3 === void 0 ? void 0 : _api$analytics3.actions, options.userPreferencesLink)];
589
577
  }
590
578
  return [];
591
579
  };
@@ -8,9 +8,7 @@ export declare const removeCard: (editorAnalyticsApi: EditorAnalyticsAPI | undef
8
8
  export declare const visitCardLink: (editorAnalyticsApi: EditorAnalyticsAPI | undefined) => Command;
9
9
  export declare const openLinkSettings: (editorAnalyticsApi: EditorAnalyticsAPI | undefined, userPreferencesLink: string | undefined) => Command;
10
10
  export declare const floatingToolbar: (cardOptions: CardOptions, lpLinkPicker: boolean, linkPickerOptions?: LinkPickerOptions, pluginInjectionApi?: ExtractInjectionAPI<typeof cardPlugin>, disableFloatingToolbar?: boolean) => FloatingToolbarHandler;
11
- export declare const getHyperlinkToolbarSettingsButton: (intl: IntlShape, editorAnalyticsApi: EditorAnalyticsAPI | undefined, userPreferencesLink?: string) => FloatingToolbarItem<Command>;
12
- export declare const getSettingsButton: (intl: IntlShape, editorAnalyticsApi: EditorAnalyticsAPI | undefined, userPreferencesLink: string | undefined) => FloatingToolbarItem<Command>;
13
- export declare const getSettingsButtonGroup: (intl: IntlShape, editorAnalyticsApi: EditorAnalyticsAPI | undefined, userPreferencesLink: string | undefined) => FloatingToolbarItem<Command>[];
11
+ export declare const getSettingsButton: (intl: IntlShape, editorAnalyticsApi: EditorAnalyticsAPI | undefined, userPreferencesLink?: string) => FloatingToolbarItem<Command>;
14
12
  export declare const shouldRenderToolbarPulse: (embedEnabled: boolean, appearance: string, status: string, isDiscoverabilityEnabled: boolean) => boolean;
15
13
  export declare const getStartingToolbarItems: (options: CardPluginOptions, api?: ExtractInjectionAPI<typeof cardPlugin> | undefined) => (intl: IntlShape, link: string, onEditLink: Command, metadata: {
16
14
  url: string;
@@ -8,9 +8,7 @@ export declare const removeCard: (editorAnalyticsApi: EditorAnalyticsAPI | undef
8
8
  export declare const visitCardLink: (editorAnalyticsApi: EditorAnalyticsAPI | undefined) => Command;
9
9
  export declare const openLinkSettings: (editorAnalyticsApi: EditorAnalyticsAPI | undefined, userPreferencesLink: string | undefined) => Command;
10
10
  export declare const floatingToolbar: (cardOptions: CardOptions, lpLinkPicker: boolean, linkPickerOptions?: LinkPickerOptions, pluginInjectionApi?: ExtractInjectionAPI<typeof cardPlugin>, disableFloatingToolbar?: boolean) => FloatingToolbarHandler;
11
- export declare const getHyperlinkToolbarSettingsButton: (intl: IntlShape, editorAnalyticsApi: EditorAnalyticsAPI | undefined, userPreferencesLink?: string) => FloatingToolbarItem<Command>;
12
- export declare const getSettingsButton: (intl: IntlShape, editorAnalyticsApi: EditorAnalyticsAPI | undefined, userPreferencesLink: string | undefined) => FloatingToolbarItem<Command>;
13
- export declare const getSettingsButtonGroup: (intl: IntlShape, editorAnalyticsApi: EditorAnalyticsAPI | undefined, userPreferencesLink: string | undefined) => FloatingToolbarItem<Command>[];
11
+ export declare const getSettingsButton: (intl: IntlShape, editorAnalyticsApi: EditorAnalyticsAPI | undefined, userPreferencesLink?: string) => FloatingToolbarItem<Command>;
14
12
  export declare const shouldRenderToolbarPulse: (embedEnabled: boolean, appearance: string, status: string, isDiscoverabilityEnabled: boolean) => boolean;
15
13
  export declare const getStartingToolbarItems: (options: CardPluginOptions, api?: ExtractInjectionAPI<typeof cardPlugin> | undefined) => (intl: IntlShape, link: string, onEditLink: Command, metadata: {
16
14
  url: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "3.4.5",
3
+ "version": "4.1.0",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -46,18 +46,18 @@
46
46
  "@atlaskit/editor-prosemirror": "6.0.0",
47
47
  "@atlaskit/editor-shared-styles": "^3.0.0",
48
48
  "@atlaskit/frontend-utilities": "^2.7.0",
49
- "@atlaskit/icon": "^22.20.0",
49
+ "@atlaskit/icon": "^22.22.0",
50
50
  "@atlaskit/link-analytics": "^8.5.0",
51
51
  "@atlaskit/link-client-extension": "^2.4.0",
52
- "@atlaskit/link-datasource": "^3.4.0",
52
+ "@atlaskit/link-datasource": "^3.5.0",
53
53
  "@atlaskit/linking-common": "^5.11.0",
54
54
  "@atlaskit/linking-types": "^9.0.0",
55
55
  "@atlaskit/menu": "2.12.7",
56
56
  "@atlaskit/platform-feature-flags": "^0.3.0",
57
57
  "@atlaskit/primitives": "^12.2.0",
58
- "@atlaskit/smart-card": "^29.0.0",
58
+ "@atlaskit/smart-card": "^29.1.0",
59
59
  "@atlaskit/theme": "^13.0.0",
60
- "@atlaskit/tmp-editor-statsig": "^2.2.0",
60
+ "@atlaskit/tmp-editor-statsig": "^2.3.0",
61
61
  "@atlaskit/tokens": "^2.0.0",
62
62
  "@babel/runtime": "^7.0.0",
63
63
  "@emotion/react": "^11.7.1",
@@ -120,9 +120,6 @@
120
120
  "platform.linking-platform.datasource-word_wrap": {
121
121
  "type": "boolean"
122
122
  },
123
- "platform.editor.card.inject-settings-button": {
124
- "type": "boolean"
125
- },
126
123
  "linking-platform-contenteditable-false-live-view": {
127
124
  "type": "boolean"
128
125
  },
@@ -135,9 +132,6 @@
135
132
  "platform_linking_enable_transaction_filtering": {
136
133
  "type": "boolean"
137
134
  },
138
- "linking_platform_disable_live_view_inline_overlay": {
139
- "type": "boolean"
140
- },
141
135
  "linking_platform_smart_links_in_live_pages": {
142
136
  "type": "boolean"
143
137
  },