@atlaskit/editor-plugin-card 3.4.5 → 4.0.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 +17 -0
- package/dist/cjs/toolbar.js +21 -33
- package/dist/es2019/toolbar.js +18 -30
- package/dist/esm/toolbar.js +20 -32
- package/dist/types/toolbar.d.ts +1 -3
- package/dist/types-ts4.5/toolbar.d.ts +1 -3
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 4.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#149599](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/149599)
|
|
8
|
+
[`9c110fa4b038c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9c110fa4b038c) -
|
|
9
|
+
The hyperlink floating toolbar no longer includes a settings button by default, now requires card
|
|
10
|
+
plugin to be provided to include the settings button in the hyperlink floating toolbar (via ff
|
|
11
|
+
cleanup platform.editor.card.inject-settings-button).
|
|
12
|
+
|
|
13
|
+
Upgrade requires only checking compatible versions of `@atlaskit/editor-plugin-card` and
|
|
14
|
+
`@atlaskit/editor-plugin-hyperlink` as both packages are affected by feature flag change.
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 3.4.5
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/cjs/toolbar.js
CHANGED
|
@@ -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.
|
|
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
|
-
}
|
|
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:
|
|
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
|
|
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
|
-
}
|
|
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
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
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
|
};
|
package/dist/es2019/toolbar.js
CHANGED
|
@@ -262,7 +262,9 @@ const generateToolbarItems = (state, intl, providerFactory, cardOptions, lpLinkP
|
|
|
262
262
|
}]
|
|
263
263
|
}, {
|
|
264
264
|
type: 'separator'
|
|
265
|
-
},
|
|
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:
|
|
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
|
-
},
|
|
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
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
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
|
};
|
package/dist/esm/toolbar.js
CHANGED
|
@@ -260,7 +260,9 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
260
260
|
}]
|
|
261
261
|
}, {
|
|
262
262
|
type: 'separator'
|
|
263
|
-
}
|
|
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:
|
|
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
|
|
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
|
-
}
|
|
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
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
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
|
};
|
package/dist/types/toolbar.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
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.
|
|
49
|
+
"@atlaskit/icon": "^22.21.0",
|
|
50
50
|
"@atlaskit/link-analytics": "^8.5.0",
|
|
51
51
|
"@atlaskit/link-client-extension": "^2.4.0",
|
|
52
52
|
"@atlaskit/link-datasource": "^3.4.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@atlaskit/primitives": "^12.2.0",
|
|
58
58
|
"@atlaskit/smart-card": "^29.0.0",
|
|
59
59
|
"@atlaskit/theme": "^13.0.0",
|
|
60
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
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
|
},
|