@atlaskit/editor-plugin-card 6.0.1 → 6.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 +21 -0
- package/dist/cjs/nodeviews/genericCard.js +7 -0
- package/dist/cjs/nodeviews/inlineCard.js +17 -6
- package/dist/cjs/pm-plugins/main.js +4 -2
- package/dist/cjs/ui/HyperlinkToolbarAppearanceDropdown.js +2 -1
- package/dist/cjs/ui/toolbar.js +25 -10
- package/dist/es2019/nodeviews/genericCard.js +7 -0
- package/dist/es2019/nodeviews/inlineCard.js +17 -6
- package/dist/es2019/pm-plugins/main.js +4 -2
- package/dist/es2019/ui/HyperlinkToolbarAppearanceDropdown.js +2 -1
- package/dist/es2019/ui/toolbar.js +23 -10
- package/dist/esm/nodeviews/genericCard.js +7 -0
- package/dist/esm/nodeviews/inlineCard.js +17 -6
- package/dist/esm/pm-plugins/main.js +4 -2
- package/dist/esm/ui/HyperlinkToolbarAppearanceDropdown.js +2 -1
- package/dist/esm/ui/toolbar.js +25 -10
- package/dist/types/nodeviews/genericCard.d.ts +9 -0
- package/dist/types/nodeviews/inlineCard.d.ts +6 -1
- package/dist/types/types/index.d.ts +4 -0
- package/dist/types-ts4.5/nodeviews/genericCard.d.ts +9 -0
- package/dist/types-ts4.5/nodeviews/inlineCard.d.ts +6 -1
- package/dist/types-ts4.5/types/index.d.ts +4 -0
- package/package.json +10 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 6.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#151988](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/151988)
|
|
8
|
+
[`40cc12e3c4d9a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/40cc12e3c4d9a) -
|
|
9
|
+
[ux] Add optional CompetitorPrompt component for experiment
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 6.0.2
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#154277](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/154277)
|
|
20
|
+
[`84e1566863396`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/84e1566863396) -
|
|
21
|
+
[ux] ED-27809 Update edit button for datasource link toolbars so users can update search query
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 6.0.1
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -81,6 +81,13 @@ var WithClickHandler = function WithClickHandler(_ref) {
|
|
|
81
81
|
onClick: allowNavigation ? undefined : onClick
|
|
82
82
|
}));
|
|
83
83
|
};
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @param SmartCardComponent
|
|
88
|
+
* @param UnsupportedComponent
|
|
89
|
+
* @example
|
|
90
|
+
*/
|
|
84
91
|
function Card(SmartCardComponent, UnsupportedComponent) {
|
|
85
92
|
return /*#__PURE__*/function (_React$Component) {
|
|
86
93
|
function _class() {
|
|
@@ -154,6 +154,12 @@ var useSharedState = (0, _hooks.sharedPluginStateHookMigratorFactory)(function (
|
|
|
154
154
|
selection: selectionState === null || selectionState === void 0 ? void 0 : selectionState.selection
|
|
155
155
|
};
|
|
156
156
|
});
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @param props
|
|
161
|
+
* @example
|
|
162
|
+
*/
|
|
157
163
|
function InlineCardNodeView(props) {
|
|
158
164
|
var useAlternativePreloader = props.useAlternativePreloader,
|
|
159
165
|
node = props.node,
|
|
@@ -166,7 +172,8 @@ function InlineCardNodeView(props) {
|
|
|
166
172
|
pluginInjectionApi = props.pluginInjectionApi,
|
|
167
173
|
onClickCallback = props.onClickCallback,
|
|
168
174
|
__livePage = props.__livePage,
|
|
169
|
-
isPageSSRed = props.isPageSSRed
|
|
175
|
+
isPageSSRed = props.isPageSSRed,
|
|
176
|
+
CompetitorPrompt = props.CompetitorPrompt;
|
|
170
177
|
var _useState = (0, _react.useState)(false),
|
|
171
178
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
172
179
|
isOverlayHovered = _useState2[0],
|
|
@@ -175,6 +182,10 @@ function InlineCardNodeView(props) {
|
|
|
175
182
|
mode = _useSharedState.mode,
|
|
176
183
|
selection = _useSharedState.selection;
|
|
177
184
|
var floatingToolbarNode = selection instanceof _state.NodeSelection && selection.node;
|
|
185
|
+
var url = node.attrs.url;
|
|
186
|
+
var CompetitorPromptComponent = CompetitorPrompt && url ? /*#__PURE__*/_react.default.createElement(CompetitorPrompt, {
|
|
187
|
+
sourceUrl: url
|
|
188
|
+
}) : null;
|
|
178
189
|
if (__livePage && (0, _platformFeatureFlags.fg)('linking_platform_smart_links_in_live_pages')) {
|
|
179
190
|
var showHoverPreview = floatingToolbarNode !== node;
|
|
180
191
|
var livePagesHoverCardFadeInDelay = 800;
|
|
@@ -192,7 +203,7 @@ function InlineCardNodeView(props) {
|
|
|
192
203
|
},
|
|
193
204
|
isPageSSRed: isPageSSRed
|
|
194
205
|
});
|
|
195
|
-
return mode === 'view' ? inlineCard : /*#__PURE__*/_react.default.createElement(_ConfigureOverlay.default, {
|
|
206
|
+
return mode === 'view' ? inlineCard : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ConfigureOverlay.default, {
|
|
196
207
|
targetElementPos: getPos(),
|
|
197
208
|
view: view,
|
|
198
209
|
isHoveredCallback: setIsOverlayHovered,
|
|
@@ -201,13 +212,13 @@ function InlineCardNodeView(props) {
|
|
|
201
212
|
(0, _link.handleNavigation)({
|
|
202
213
|
fireAnalyticsEvent: pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions.fireAnalyticsEvent,
|
|
203
214
|
onClickCallback: onClickCallback,
|
|
204
|
-
url:
|
|
215
|
+
url: url,
|
|
205
216
|
event: event
|
|
206
217
|
});
|
|
207
218
|
}
|
|
208
|
-
}, inlineCard);
|
|
219
|
+
}, inlineCard), (0, _platformFeatureFlags.fg)('prompt_whiteboard_competitor_link_gate') && CompetitorPromptComponent);
|
|
209
220
|
}
|
|
210
|
-
return /*#__PURE__*/_react.default.createElement(WrappedInlineCardWithAwareness, (0, _extends2.default)({
|
|
221
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(WrappedInlineCardWithAwareness, (0, _extends2.default)({
|
|
211
222
|
node: node,
|
|
212
223
|
view: view,
|
|
213
224
|
getPos: getPos,
|
|
@@ -219,7 +230,7 @@ function InlineCardNodeView(props) {
|
|
|
219
230
|
appearance: "inline"
|
|
220
231
|
// Ignored via go/ees005
|
|
221
232
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
222
|
-
}, enableInlineUpgradeFeatures && (0, _utils.getAwarenessProps)(view.state, getPos, allowEmbeds, allowBlockCards, !(0, _experiments.editorExperiment)('live_pages_graceful_edit', 'control') ? true : mode === 'view')));
|
|
233
|
+
}, enableInlineUpgradeFeatures && (0, _utils.getAwarenessProps)(view.state, getPos, allowEmbeds, allowBlockCards, !(0, _experiments.editorExperiment)('live_pages_graceful_edit', 'control') ? true : mode === 'view'))), (0, _platformFeatureFlags.fg)('prompt_whiteboard_competitor_link_gate') && CompetitorPromptComponent);
|
|
223
234
|
}
|
|
224
235
|
var inlineCardNodeView = exports.inlineCardNodeView = function inlineCardNodeView(_ref2) {
|
|
225
236
|
var inlineCardViewProducer = _ref2.inlineCardViewProducer;
|
|
@@ -68,7 +68,8 @@ var createPlugin = exports.createPlugin = function createPlugin(options, pluginI
|
|
|
68
68
|
allowBlockCards = options.allowBlockCards,
|
|
69
69
|
onClickCallback = options.onClickCallback,
|
|
70
70
|
__livePage = options.__livePage,
|
|
71
|
-
isPageSSRed = options.isPageSSRed
|
|
71
|
+
isPageSSRed = options.isPageSSRed,
|
|
72
|
+
CompetitorPrompt = options.CompetitorPrompt;
|
|
72
73
|
var enableInlineUpgradeFeatures = !!showUpgradeDiscoverability;
|
|
73
74
|
var inlineCardViewProducer = (0, _reactNodeView.getInlineNodeViewProducer)(_objectSpread({
|
|
74
75
|
pmPluginFactoryParams: pmPluginFactoryParams,
|
|
@@ -82,7 +83,8 @@ var createPlugin = exports.createPlugin = function createPlugin(options, pluginI
|
|
|
82
83
|
pluginInjectionApi: pluginInjectionApi,
|
|
83
84
|
onClickCallback: onClickCallback,
|
|
84
85
|
__livePage: __livePage,
|
|
85
|
-
isPageSSRed: isPageSSRed
|
|
86
|
+
isPageSSRed: isPageSSRed,
|
|
87
|
+
CompetitorPrompt: CompetitorPrompt
|
|
86
88
|
}
|
|
87
89
|
}, __livePage && (0, _platformFeatureFlags.fg)('linking_platform_smart_links_in_live_pages') && {
|
|
88
90
|
extraNodeViewProps: {
|
|
@@ -14,6 +14,7 @@ var _card = require("@atlaskit/editor-common/card");
|
|
|
14
14
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
15
15
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
16
16
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-down"));
|
|
17
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
18
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
18
19
|
var _LinkToolbarAppearanceDropdown = require("./LinkToolbarAppearanceDropdown");
|
|
19
20
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -148,7 +149,7 @@ var CustomHyperlinkDropdown = function CustomHyperlinkDropdown(props) {
|
|
|
148
149
|
return null;
|
|
149
150
|
}
|
|
150
151
|
var dispatchCommand = function dispatchCommand(fn) {
|
|
151
|
-
fn && fn(editorView && editorView.state, editorView && editorView.dispatch);
|
|
152
|
+
fn && fn(editorView && editorView.state, editorView && editorView.dispatch, (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_9') ? editorView : undefined);
|
|
152
153
|
// Refocus the view to ensure the editor has focus
|
|
153
154
|
if (editorView && !editorView.hasFocus()) {
|
|
154
155
|
editorView.focus();
|
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -325,6 +325,30 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
325
325
|
type: 'separator'
|
|
326
326
|
}] : [];
|
|
327
327
|
var openLinkInputMethod = (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_analytics') ? _analytics.INPUT_METHOD.FLOATING_TB : _analytics.INPUT_METHOD.TOOLBAR;
|
|
328
|
+
var editButtonItems = cardOptions.allowDatasource && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_9') ? [{
|
|
329
|
+
type: 'custom',
|
|
330
|
+
fallback: [],
|
|
331
|
+
render: function render(editorView) {
|
|
332
|
+
return /*#__PURE__*/_react.default.createElement(_EditToolbarButton.EditToolbarButton, {
|
|
333
|
+
key: "edit-toolbar-item",
|
|
334
|
+
url: url,
|
|
335
|
+
intl: intl,
|
|
336
|
+
editorAnalyticsApi: editorAnalyticsApi,
|
|
337
|
+
editorView: editorView,
|
|
338
|
+
onLinkEditClick: (0, _EditLinkToolbar.getEditLinkCallback)(editorAnalyticsApi, true),
|
|
339
|
+
currentAppearance: currentAppearance
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
}] : [{
|
|
343
|
+
id: 'editor.link.edit',
|
|
344
|
+
type: 'button',
|
|
345
|
+
selected: false,
|
|
346
|
+
metadata: metadata,
|
|
347
|
+
title: intl.formatMessage(_messages.linkToolbarMessages.editLink),
|
|
348
|
+
icon: _edit.default,
|
|
349
|
+
testId: 'link-toolbar-edit-link-button',
|
|
350
|
+
onClick: (0, _EditLinkToolbar.getEditLinkCallback)(editorAnalyticsApi, true)
|
|
351
|
+
}];
|
|
328
352
|
var toolbarItems = (0, _experiments.editorExperiment)('platform_editor_controls', 'control') ? [].concat(editItems, commentItems, [_objectSpread({
|
|
329
353
|
id: 'editor.link.openLink',
|
|
330
354
|
type: 'button',
|
|
@@ -363,16 +387,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
363
387
|
onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, false),
|
|
364
388
|
title: intl.formatMessage(_messages.default.remove),
|
|
365
389
|
onClick: withToolbarMetadata(removeCard(editorAnalyticsApi))
|
|
366
|
-
}]) : [{
|
|
367
|
-
id: 'editor.link.edit',
|
|
368
|
-
type: 'button',
|
|
369
|
-
selected: false,
|
|
370
|
-
metadata: metadata,
|
|
371
|
-
title: intl.formatMessage(_messages.linkToolbarMessages.editLink),
|
|
372
|
-
icon: _edit.default,
|
|
373
|
-
testId: 'link-toolbar-edit-link-button',
|
|
374
|
-
onClick: (0, _EditLinkToolbar.getEditLinkCallback)(editorAnalyticsApi, true)
|
|
375
|
-
}].concat((0, _toConsumableArray2.default)((0, _platformFeatureFlags.fg)('platform_editor_controls_patch_6') ? [] : [{
|
|
390
|
+
}]) : [].concat(editButtonItems, (0, _toConsumableArray2.default)((0, _platformFeatureFlags.fg)('platform_editor_controls_patch_6') ? [] : [{
|
|
376
391
|
type: 'separator'
|
|
377
392
|
}]), (0, _toConsumableArray2.default)(getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi)), [_objectSpread({
|
|
378
393
|
id: 'editor.link.openLink',
|
|
@@ -67,6 +67,13 @@ const WithClickHandler = ({
|
|
|
67
67
|
onClick: allowNavigation ? undefined : onClick
|
|
68
68
|
}));
|
|
69
69
|
};
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @param SmartCardComponent
|
|
74
|
+
* @param UnsupportedComponent
|
|
75
|
+
* @example
|
|
76
|
+
*/
|
|
70
77
|
export function Card(SmartCardComponent, UnsupportedComponent) {
|
|
71
78
|
return class extends React.Component {
|
|
72
79
|
constructor(...args) {
|
|
@@ -148,6 +148,12 @@ const useSharedState = sharedPluginStateHookMigratorFactory(pluginInjectionApi =
|
|
|
148
148
|
selection: selectionState === null || selectionState === void 0 ? void 0 : selectionState.selection
|
|
149
149
|
};
|
|
150
150
|
});
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @param props
|
|
155
|
+
* @example
|
|
156
|
+
*/
|
|
151
157
|
export function InlineCardNodeView(props) {
|
|
152
158
|
const {
|
|
153
159
|
useAlternativePreloader,
|
|
@@ -161,7 +167,8 @@ export function InlineCardNodeView(props) {
|
|
|
161
167
|
pluginInjectionApi,
|
|
162
168
|
onClickCallback,
|
|
163
169
|
__livePage,
|
|
164
|
-
isPageSSRed
|
|
170
|
+
isPageSSRed,
|
|
171
|
+
CompetitorPrompt
|
|
165
172
|
} = props;
|
|
166
173
|
const [isOverlayHovered, setIsOverlayHovered] = useState(false);
|
|
167
174
|
const {
|
|
@@ -169,6 +176,10 @@ export function InlineCardNodeView(props) {
|
|
|
169
176
|
selection
|
|
170
177
|
} = useSharedState(pluginInjectionApi);
|
|
171
178
|
const floatingToolbarNode = selection instanceof NodeSelection && selection.node;
|
|
179
|
+
const url = node.attrs.url;
|
|
180
|
+
const CompetitorPromptComponent = CompetitorPrompt && url ? /*#__PURE__*/React.createElement(CompetitorPrompt, {
|
|
181
|
+
sourceUrl: url
|
|
182
|
+
}) : null;
|
|
172
183
|
if (__livePage && fg('linking_platform_smart_links_in_live_pages')) {
|
|
173
184
|
const showHoverPreview = floatingToolbarNode !== node;
|
|
174
185
|
const livePagesHoverCardFadeInDelay = 800;
|
|
@@ -186,7 +197,7 @@ export function InlineCardNodeView(props) {
|
|
|
186
197
|
},
|
|
187
198
|
isPageSSRed: isPageSSRed
|
|
188
199
|
});
|
|
189
|
-
return mode === 'view' ? inlineCard : /*#__PURE__*/React.createElement(OverlayWrapper, {
|
|
200
|
+
return mode === 'view' ? inlineCard : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(OverlayWrapper, {
|
|
190
201
|
targetElementPos: getPos(),
|
|
191
202
|
view: view,
|
|
192
203
|
isHoveredCallback: setIsOverlayHovered,
|
|
@@ -195,13 +206,13 @@ export function InlineCardNodeView(props) {
|
|
|
195
206
|
handleNavigation({
|
|
196
207
|
fireAnalyticsEvent: pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions.fireAnalyticsEvent,
|
|
197
208
|
onClickCallback,
|
|
198
|
-
url
|
|
209
|
+
url,
|
|
199
210
|
event
|
|
200
211
|
});
|
|
201
212
|
}
|
|
202
|
-
}, inlineCard);
|
|
213
|
+
}, inlineCard), fg('prompt_whiteboard_competitor_link_gate') && CompetitorPromptComponent);
|
|
203
214
|
}
|
|
204
|
-
return /*#__PURE__*/React.createElement(WrappedInlineCardWithAwareness, _extends({
|
|
215
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(WrappedInlineCardWithAwareness, _extends({
|
|
205
216
|
node: node,
|
|
206
217
|
view: view,
|
|
207
218
|
getPos: getPos,
|
|
@@ -213,7 +224,7 @@ export function InlineCardNodeView(props) {
|
|
|
213
224
|
appearance: "inline"
|
|
214
225
|
// Ignored via go/ees005
|
|
215
226
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
216
|
-
}, enableInlineUpgradeFeatures && getAwarenessProps(view.state, getPos, allowEmbeds, allowBlockCards, !editorExperiment('live_pages_graceful_edit', 'control') ? true : mode === 'view')));
|
|
227
|
+
}, enableInlineUpgradeFeatures && getAwarenessProps(view.state, getPos, allowEmbeds, allowBlockCards, !editorExperiment('live_pages_graceful_edit', 'control') ? true : mode === 'view'))), fg('prompt_whiteboard_competitor_link_gate') && CompetitorPromptComponent);
|
|
217
228
|
}
|
|
218
229
|
export const inlineCardNodeView = ({
|
|
219
230
|
inlineCardViewProducer
|
|
@@ -58,7 +58,8 @@ export const createPlugin = (options, pluginInjectionApi) => pmPluginFactoryPara
|
|
|
58
58
|
onClickCallback,
|
|
59
59
|
// @ts-ignore Temporary solution to check for Live Page editor.
|
|
60
60
|
__livePage,
|
|
61
|
-
isPageSSRed
|
|
61
|
+
isPageSSRed,
|
|
62
|
+
CompetitorPrompt
|
|
62
63
|
} = options;
|
|
63
64
|
const enableInlineUpgradeFeatures = !!showUpgradeDiscoverability;
|
|
64
65
|
const inlineCardViewProducer = getInlineNodeViewProducer({
|
|
@@ -73,7 +74,8 @@ export const createPlugin = (options, pluginInjectionApi) => pmPluginFactoryPara
|
|
|
73
74
|
pluginInjectionApi,
|
|
74
75
|
onClickCallback,
|
|
75
76
|
__livePage,
|
|
76
|
-
isPageSSRed
|
|
77
|
+
isPageSSRed,
|
|
78
|
+
CompetitorPrompt
|
|
77
79
|
},
|
|
78
80
|
...(__livePage && fg('linking_platform_smart_links_in_live_pages') && {
|
|
79
81
|
extraNodeViewProps: {
|
|
@@ -3,6 +3,7 @@ import { appearancePropsMap } from '@atlaskit/editor-common/card';
|
|
|
3
3
|
import { FloatingToolbarButton as Button, FloatingToolbarSeparator as Separator } from '@atlaskit/editor-common/ui';
|
|
4
4
|
import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlaskit/editor-common/ui-menu';
|
|
5
5
|
import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import { Flex } from '@atlaskit/primitives/compiled';
|
|
7
8
|
import { LinkAppearanceMenu } from './LinkToolbarAppearanceDropdown';
|
|
8
9
|
const CustomHyperlinkDropdown = props => {
|
|
@@ -68,7 +69,7 @@ const CustomHyperlinkDropdown = props => {
|
|
|
68
69
|
return null;
|
|
69
70
|
}
|
|
70
71
|
const dispatchCommand = fn => {
|
|
71
|
-
fn && fn(editorView && editorView.state, editorView && editorView.dispatch);
|
|
72
|
+
fn && fn(editorView && editorView.state, editorView && editorView.dispatch, fg('platform_editor_controls_patch_9') ? editorView : undefined);
|
|
72
73
|
// Refocus the view to ensure the editor has focus
|
|
73
74
|
if (editorView && !editorView.hasFocus()) {
|
|
74
75
|
editorView.focus();
|
|
@@ -319,6 +319,28 @@ const generateToolbarItems = (state, intl, providerFactory, cardOptions, lpLinkP
|
|
|
319
319
|
type: 'separator'
|
|
320
320
|
}] : [];
|
|
321
321
|
const openLinkInputMethod = fg('platform_editor_controls_patch_analytics') ? INPUT_METHOD.FLOATING_TB : INPUT_METHOD.TOOLBAR;
|
|
322
|
+
const editButtonItems = cardOptions.allowDatasource && fg('platform_editor_controls_patch_9') ? [{
|
|
323
|
+
type: 'custom',
|
|
324
|
+
fallback: [],
|
|
325
|
+
render: editorView => /*#__PURE__*/React.createElement(EditToolbarButton, {
|
|
326
|
+
key: "edit-toolbar-item",
|
|
327
|
+
url: url,
|
|
328
|
+
intl: intl,
|
|
329
|
+
editorAnalyticsApi: editorAnalyticsApi,
|
|
330
|
+
editorView: editorView,
|
|
331
|
+
onLinkEditClick: getEditLinkCallback(editorAnalyticsApi, true),
|
|
332
|
+
currentAppearance: currentAppearance
|
|
333
|
+
})
|
|
334
|
+
}] : [{
|
|
335
|
+
id: 'editor.link.edit',
|
|
336
|
+
type: 'button',
|
|
337
|
+
selected: false,
|
|
338
|
+
metadata: metadata,
|
|
339
|
+
title: intl.formatMessage(linkToolbarMessages.editLink),
|
|
340
|
+
icon: EditIcon,
|
|
341
|
+
testId: 'link-toolbar-edit-link-button',
|
|
342
|
+
onClick: getEditLinkCallback(editorAnalyticsApi, true)
|
|
343
|
+
}];
|
|
322
344
|
const toolbarItems = editorExperiment('platform_editor_controls', 'control') ? [...editItems, ...commentItems, {
|
|
323
345
|
id: 'editor.link.openLink',
|
|
324
346
|
type: 'button',
|
|
@@ -358,16 +380,7 @@ const generateToolbarItems = (state, intl, providerFactory, cardOptions, lpLinkP
|
|
|
358
380
|
onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, false),
|
|
359
381
|
title: intl.formatMessage(commonMessages.remove),
|
|
360
382
|
onClick: withToolbarMetadata(removeCard(editorAnalyticsApi))
|
|
361
|
-
}] : [{
|
|
362
|
-
id: 'editor.link.edit',
|
|
363
|
-
type: 'button',
|
|
364
|
-
selected: false,
|
|
365
|
-
metadata: metadata,
|
|
366
|
-
title: intl.formatMessage(linkToolbarMessages.editLink),
|
|
367
|
-
icon: EditIcon,
|
|
368
|
-
testId: 'link-toolbar-edit-link-button',
|
|
369
|
-
onClick: getEditLinkCallback(editorAnalyticsApi, true)
|
|
370
|
-
}, ...(fg('platform_editor_controls_patch_6') ? [] : [{
|
|
383
|
+
}] : [...editButtonItems, ...(fg('platform_editor_controls_patch_6') ? [] : [{
|
|
371
384
|
type: 'separator'
|
|
372
385
|
}]), ...getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi), {
|
|
373
386
|
id: 'editor.link.openLink',
|
|
@@ -71,6 +71,13 @@ var WithClickHandler = function WithClickHandler(_ref) {
|
|
|
71
71
|
onClick: allowNavigation ? undefined : onClick
|
|
72
72
|
}));
|
|
73
73
|
};
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @param SmartCardComponent
|
|
78
|
+
* @param UnsupportedComponent
|
|
79
|
+
* @example
|
|
80
|
+
*/
|
|
74
81
|
export function Card(SmartCardComponent, UnsupportedComponent) {
|
|
75
82
|
return /*#__PURE__*/function (_React$Component) {
|
|
76
83
|
function _class() {
|
|
@@ -142,6 +142,12 @@ var useSharedState = sharedPluginStateHookMigratorFactory(function (pluginInject
|
|
|
142
142
|
selection: selectionState === null || selectionState === void 0 ? void 0 : selectionState.selection
|
|
143
143
|
};
|
|
144
144
|
});
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* @param props
|
|
149
|
+
* @example
|
|
150
|
+
*/
|
|
145
151
|
export function InlineCardNodeView(props) {
|
|
146
152
|
var useAlternativePreloader = props.useAlternativePreloader,
|
|
147
153
|
node = props.node,
|
|
@@ -154,7 +160,8 @@ export function InlineCardNodeView(props) {
|
|
|
154
160
|
pluginInjectionApi = props.pluginInjectionApi,
|
|
155
161
|
onClickCallback = props.onClickCallback,
|
|
156
162
|
__livePage = props.__livePage,
|
|
157
|
-
isPageSSRed = props.isPageSSRed
|
|
163
|
+
isPageSSRed = props.isPageSSRed,
|
|
164
|
+
CompetitorPrompt = props.CompetitorPrompt;
|
|
158
165
|
var _useState = useState(false),
|
|
159
166
|
_useState2 = _slicedToArray(_useState, 2),
|
|
160
167
|
isOverlayHovered = _useState2[0],
|
|
@@ -163,6 +170,10 @@ export function InlineCardNodeView(props) {
|
|
|
163
170
|
mode = _useSharedState.mode,
|
|
164
171
|
selection = _useSharedState.selection;
|
|
165
172
|
var floatingToolbarNode = selection instanceof NodeSelection && selection.node;
|
|
173
|
+
var url = node.attrs.url;
|
|
174
|
+
var CompetitorPromptComponent = CompetitorPrompt && url ? /*#__PURE__*/React.createElement(CompetitorPrompt, {
|
|
175
|
+
sourceUrl: url
|
|
176
|
+
}) : null;
|
|
166
177
|
if (__livePage && fg('linking_platform_smart_links_in_live_pages')) {
|
|
167
178
|
var showHoverPreview = floatingToolbarNode !== node;
|
|
168
179
|
var livePagesHoverCardFadeInDelay = 800;
|
|
@@ -180,7 +191,7 @@ export function InlineCardNodeView(props) {
|
|
|
180
191
|
},
|
|
181
192
|
isPageSSRed: isPageSSRed
|
|
182
193
|
});
|
|
183
|
-
return mode === 'view' ? inlineCard : /*#__PURE__*/React.createElement(OverlayWrapper, {
|
|
194
|
+
return mode === 'view' ? inlineCard : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(OverlayWrapper, {
|
|
184
195
|
targetElementPos: getPos(),
|
|
185
196
|
view: view,
|
|
186
197
|
isHoveredCallback: setIsOverlayHovered,
|
|
@@ -189,13 +200,13 @@ export function InlineCardNodeView(props) {
|
|
|
189
200
|
handleNavigation({
|
|
190
201
|
fireAnalyticsEvent: pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions.fireAnalyticsEvent,
|
|
191
202
|
onClickCallback: onClickCallback,
|
|
192
|
-
url:
|
|
203
|
+
url: url,
|
|
193
204
|
event: event
|
|
194
205
|
});
|
|
195
206
|
}
|
|
196
|
-
}, inlineCard);
|
|
207
|
+
}, inlineCard), fg('prompt_whiteboard_competitor_link_gate') && CompetitorPromptComponent);
|
|
197
208
|
}
|
|
198
|
-
return /*#__PURE__*/React.createElement(WrappedInlineCardWithAwareness, _extends({
|
|
209
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(WrappedInlineCardWithAwareness, _extends({
|
|
199
210
|
node: node,
|
|
200
211
|
view: view,
|
|
201
212
|
getPos: getPos,
|
|
@@ -207,7 +218,7 @@ export function InlineCardNodeView(props) {
|
|
|
207
218
|
appearance: "inline"
|
|
208
219
|
// Ignored via go/ees005
|
|
209
220
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
210
|
-
}, enableInlineUpgradeFeatures && getAwarenessProps(view.state, getPos, allowEmbeds, allowBlockCards, !editorExperiment('live_pages_graceful_edit', 'control') ? true : mode === 'view')));
|
|
221
|
+
}, enableInlineUpgradeFeatures && getAwarenessProps(view.state, getPos, allowEmbeds, allowBlockCards, !editorExperiment('live_pages_graceful_edit', 'control') ? true : mode === 'view'))), fg('prompt_whiteboard_competitor_link_gate') && CompetitorPromptComponent);
|
|
211
222
|
}
|
|
212
223
|
export var inlineCardNodeView = function inlineCardNodeView(_ref2) {
|
|
213
224
|
var inlineCardViewProducer = _ref2.inlineCardViewProducer;
|
|
@@ -61,7 +61,8 @@ export var createPlugin = function createPlugin(options, pluginInjectionApi) {
|
|
|
61
61
|
allowBlockCards = options.allowBlockCards,
|
|
62
62
|
onClickCallback = options.onClickCallback,
|
|
63
63
|
__livePage = options.__livePage,
|
|
64
|
-
isPageSSRed = options.isPageSSRed
|
|
64
|
+
isPageSSRed = options.isPageSSRed,
|
|
65
|
+
CompetitorPrompt = options.CompetitorPrompt;
|
|
65
66
|
var enableInlineUpgradeFeatures = !!showUpgradeDiscoverability;
|
|
66
67
|
var inlineCardViewProducer = getInlineNodeViewProducer(_objectSpread({
|
|
67
68
|
pmPluginFactoryParams: pmPluginFactoryParams,
|
|
@@ -75,7 +76,8 @@ export var createPlugin = function createPlugin(options, pluginInjectionApi) {
|
|
|
75
76
|
pluginInjectionApi: pluginInjectionApi,
|
|
76
77
|
onClickCallback: onClickCallback,
|
|
77
78
|
__livePage: __livePage,
|
|
78
|
-
isPageSSRed: isPageSSRed
|
|
79
|
+
isPageSSRed: isPageSSRed,
|
|
80
|
+
CompetitorPrompt: CompetitorPrompt
|
|
79
81
|
}
|
|
80
82
|
}, __livePage && fg('linking_platform_smart_links_in_live_pages') && {
|
|
81
83
|
extraNodeViewProps: {
|
|
@@ -6,6 +6,7 @@ import { appearancePropsMap } from '@atlaskit/editor-common/card';
|
|
|
6
6
|
import { FloatingToolbarButton as Button, FloatingToolbarSeparator as Separator } from '@atlaskit/editor-common/ui';
|
|
7
7
|
import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlaskit/editor-common/ui-menu';
|
|
8
8
|
import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
10
|
import { Flex } from '@atlaskit/primitives/compiled';
|
|
10
11
|
import { LinkAppearanceMenu } from './LinkToolbarAppearanceDropdown';
|
|
11
12
|
var CustomHyperlinkDropdown = function CustomHyperlinkDropdown(props) {
|
|
@@ -138,7 +139,7 @@ var CustomHyperlinkDropdown = function CustomHyperlinkDropdown(props) {
|
|
|
138
139
|
return null;
|
|
139
140
|
}
|
|
140
141
|
var dispatchCommand = function dispatchCommand(fn) {
|
|
141
|
-
fn && fn(editorView && editorView.state, editorView && editorView.dispatch);
|
|
142
|
+
fn && fn(editorView && editorView.state, editorView && editorView.dispatch, fg('platform_editor_controls_patch_9') ? editorView : undefined);
|
|
142
143
|
// Refocus the view to ensure the editor has focus
|
|
143
144
|
if (editorView && !editorView.hasFocus()) {
|
|
144
145
|
editorView.focus();
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -315,6 +315,30 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
315
315
|
type: 'separator'
|
|
316
316
|
}] : [];
|
|
317
317
|
var openLinkInputMethod = fg('platform_editor_controls_patch_analytics') ? INPUT_METHOD.FLOATING_TB : INPUT_METHOD.TOOLBAR;
|
|
318
|
+
var editButtonItems = cardOptions.allowDatasource && fg('platform_editor_controls_patch_9') ? [{
|
|
319
|
+
type: 'custom',
|
|
320
|
+
fallback: [],
|
|
321
|
+
render: function render(editorView) {
|
|
322
|
+
return /*#__PURE__*/React.createElement(EditToolbarButton, {
|
|
323
|
+
key: "edit-toolbar-item",
|
|
324
|
+
url: url,
|
|
325
|
+
intl: intl,
|
|
326
|
+
editorAnalyticsApi: editorAnalyticsApi,
|
|
327
|
+
editorView: editorView,
|
|
328
|
+
onLinkEditClick: getEditLinkCallback(editorAnalyticsApi, true),
|
|
329
|
+
currentAppearance: currentAppearance
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
}] : [{
|
|
333
|
+
id: 'editor.link.edit',
|
|
334
|
+
type: 'button',
|
|
335
|
+
selected: false,
|
|
336
|
+
metadata: metadata,
|
|
337
|
+
title: intl.formatMessage(linkToolbarMessages.editLink),
|
|
338
|
+
icon: EditIcon,
|
|
339
|
+
testId: 'link-toolbar-edit-link-button',
|
|
340
|
+
onClick: getEditLinkCallback(editorAnalyticsApi, true)
|
|
341
|
+
}];
|
|
318
342
|
var toolbarItems = editorExperiment('platform_editor_controls', 'control') ? [].concat(editItems, commentItems, [_objectSpread({
|
|
319
343
|
id: 'editor.link.openLink',
|
|
320
344
|
type: 'button',
|
|
@@ -353,16 +377,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
353
377
|
onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, false),
|
|
354
378
|
title: intl.formatMessage(commonMessages.remove),
|
|
355
379
|
onClick: withToolbarMetadata(removeCard(editorAnalyticsApi))
|
|
356
|
-
}]) : [{
|
|
357
|
-
id: 'editor.link.edit',
|
|
358
|
-
type: 'button',
|
|
359
|
-
selected: false,
|
|
360
|
-
metadata: metadata,
|
|
361
|
-
title: intl.formatMessage(linkToolbarMessages.editLink),
|
|
362
|
-
icon: EditIcon,
|
|
363
|
-
testId: 'link-toolbar-edit-link-button',
|
|
364
|
-
onClick: getEditLinkCallback(editorAnalyticsApi, true)
|
|
365
|
-
}].concat(_toConsumableArray(fg('platform_editor_controls_patch_6') ? [] : [{
|
|
380
|
+
}]) : [].concat(editButtonItems, _toConsumableArray(fg('platform_editor_controls_patch_6') ? [] : [{
|
|
366
381
|
type: 'separator'
|
|
367
382
|
}]), _toConsumableArray(getUnlinkButtonGroup(state, intl, node, inlineCard, editorAnalyticsApi)), [_objectSpread({
|
|
368
383
|
id: 'editor.link.openLink',
|
|
@@ -46,7 +46,16 @@ export interface SmartCardProps extends CardProps {
|
|
|
46
46
|
allowBlockCards?: boolean;
|
|
47
47
|
enableInlineUpgradeFeatures?: boolean;
|
|
48
48
|
isPageSSRed?: boolean;
|
|
49
|
+
CompetitorPrompt?: React.ComponentType<{
|
|
50
|
+
sourceUrl: string;
|
|
51
|
+
}>;
|
|
49
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @param SmartCardComponent
|
|
56
|
+
* @param UnsupportedComponent
|
|
57
|
+
* @example
|
|
58
|
+
*/
|
|
50
59
|
export declare function Card(SmartCardComponent: React.ComponentType<React.PropsWithChildren<SmartCardProps & {
|
|
51
60
|
id?: string;
|
|
52
61
|
}>>, UnsupportedComponent: React.ComponentType<React.PropsWithChildren<unknown>>): React.ComponentType<React.PropsWithChildren<CardProps>>;
|
|
@@ -5,7 +5,12 @@ import type { Decoration, EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
5
5
|
import type { SmartCardProps } from './genericCard';
|
|
6
6
|
import { type InlineCardWithAwarenessProps } from './inlineCardWithAwareness';
|
|
7
7
|
export declare const InlineCard: React.MemoExoticComponent<({ node, cardContext, actionOptions, useAlternativePreloader, view, getPos, onClick, onResolve: onRes, isHovered, showHoverPreview, hoverPreviewOptions, isPageSSRed, }: SmartCardProps) => React.JSX.Element | null>;
|
|
8
|
-
export type InlineCardNodeViewProps = Pick<SmartCardProps, 'useAlternativePreloader' | 'actionOptions' | 'allowEmbeds' | 'allowBlockCards' | 'enableInlineUpgradeFeatures' | 'pluginInjectionApi' | 'onClickCallback' | '__livePage' | 'isPageSSRed'>;
|
|
8
|
+
export type InlineCardNodeViewProps = Pick<SmartCardProps, 'useAlternativePreloader' | 'actionOptions' | 'allowEmbeds' | 'allowBlockCards' | 'enableInlineUpgradeFeatures' | 'pluginInjectionApi' | 'onClickCallback' | '__livePage' | 'isPageSSRed' | 'CompetitorPrompt'>;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param props
|
|
12
|
+
* @example
|
|
13
|
+
*/
|
|
9
14
|
export declare function InlineCardNodeView(props: InlineNodeViewComponentProps & InlineCardNodeViewProps & InlineCardWithAwarenessProps): React.JSX.Element;
|
|
10
15
|
export interface InlineCardNodeViewProperties {
|
|
11
16
|
inlineCardViewProducer: ReturnType<typeof getInlineNodeViewProducer>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { RichMediaAttributes } from '@atlaskit/adf-schema';
|
|
2
3
|
import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
4
|
import type { ACTION } from '@atlaskit/editor-common/analytics';
|
|
@@ -108,6 +109,9 @@ export type CardPluginOptions = CardOptions & {
|
|
|
108
109
|
disableFloatingToolbar?: boolean;
|
|
109
110
|
onClickCallback?: OnClickCallback;
|
|
110
111
|
isPageSSRed?: boolean;
|
|
112
|
+
CompetitorPrompt?: React.ComponentType<{
|
|
113
|
+
sourceUrl: string;
|
|
114
|
+
}>;
|
|
111
115
|
};
|
|
112
116
|
export type SetProvider = {
|
|
113
117
|
type: 'SET_PROVIDER';
|
|
@@ -46,7 +46,16 @@ export interface SmartCardProps extends CardProps {
|
|
|
46
46
|
allowBlockCards?: boolean;
|
|
47
47
|
enableInlineUpgradeFeatures?: boolean;
|
|
48
48
|
isPageSSRed?: boolean;
|
|
49
|
+
CompetitorPrompt?: React.ComponentType<{
|
|
50
|
+
sourceUrl: string;
|
|
51
|
+
}>;
|
|
49
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @param SmartCardComponent
|
|
56
|
+
* @param UnsupportedComponent
|
|
57
|
+
* @example
|
|
58
|
+
*/
|
|
50
59
|
export declare function Card(SmartCardComponent: React.ComponentType<React.PropsWithChildren<SmartCardProps & {
|
|
51
60
|
id?: string;
|
|
52
61
|
}>>, UnsupportedComponent: React.ComponentType<React.PropsWithChildren<unknown>>): React.ComponentType<React.PropsWithChildren<CardProps>>;
|
|
@@ -5,7 +5,12 @@ import type { Decoration, EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
5
5
|
import type { SmartCardProps } from './genericCard';
|
|
6
6
|
import { type InlineCardWithAwarenessProps } from './inlineCardWithAwareness';
|
|
7
7
|
export declare const InlineCard: React.MemoExoticComponent<({ node, cardContext, actionOptions, useAlternativePreloader, view, getPos, onClick, onResolve: onRes, isHovered, showHoverPreview, hoverPreviewOptions, isPageSSRed, }: SmartCardProps) => React.JSX.Element | null>;
|
|
8
|
-
export type InlineCardNodeViewProps = Pick<SmartCardProps, 'useAlternativePreloader' | 'actionOptions' | 'allowEmbeds' | 'allowBlockCards' | 'enableInlineUpgradeFeatures' | 'pluginInjectionApi' | 'onClickCallback' | '__livePage' | 'isPageSSRed'>;
|
|
8
|
+
export type InlineCardNodeViewProps = Pick<SmartCardProps, 'useAlternativePreloader' | 'actionOptions' | 'allowEmbeds' | 'allowBlockCards' | 'enableInlineUpgradeFeatures' | 'pluginInjectionApi' | 'onClickCallback' | '__livePage' | 'isPageSSRed' | 'CompetitorPrompt'>;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param props
|
|
12
|
+
* @example
|
|
13
|
+
*/
|
|
9
14
|
export declare function InlineCardNodeView(props: InlineNodeViewComponentProps & InlineCardNodeViewProps & InlineCardWithAwarenessProps): React.JSX.Element;
|
|
10
15
|
export interface InlineCardNodeViewProperties {
|
|
11
16
|
inlineCardViewProducer: ReturnType<typeof getInlineNodeViewProducer>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { RichMediaAttributes } from '@atlaskit/adf-schema';
|
|
2
3
|
import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
4
|
import type { ACTION } from '@atlaskit/editor-common/analytics';
|
|
@@ -108,6 +109,9 @@ export type CardPluginOptions = CardOptions & {
|
|
|
108
109
|
disableFloatingToolbar?: boolean;
|
|
109
110
|
onClickCallback?: OnClickCallback;
|
|
110
111
|
isPageSSRed?: boolean;
|
|
112
|
+
CompetitorPrompt?: React.ComponentType<{
|
|
113
|
+
sourceUrl: string;
|
|
114
|
+
}>;
|
|
111
115
|
};
|
|
112
116
|
export type SetProvider = {
|
|
113
117
|
type: 'SET_PROVIDER';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "6.0
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
38
38
|
"@atlaskit/button": "^23.0.0",
|
|
39
39
|
"@atlaskit/custom-steps": "^0.11.0",
|
|
40
|
-
"@atlaskit/editor-common": "^105.
|
|
40
|
+
"@atlaskit/editor-common": "^105.5.0",
|
|
41
41
|
"@atlaskit/editor-plugin-analytics": "^2.3.0",
|
|
42
42
|
"@atlaskit/editor-plugin-base": "^3.0.0",
|
|
43
43
|
"@atlaskit/editor-plugin-connectivity": "^2.0.0",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"@atlaskit/menu": "^5.0.0",
|
|
61
61
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
62
62
|
"@atlaskit/primitives": "^14.7.0",
|
|
63
|
-
"@atlaskit/smart-card": "^38.
|
|
63
|
+
"@atlaskit/smart-card": "^38.1.0",
|
|
64
64
|
"@atlaskit/theme": "^18.0.0",
|
|
65
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
65
|
+
"@atlaskit/tmp-editor-statsig": "^4.22.0",
|
|
66
66
|
"@atlaskit/tokens": "^4.8.0",
|
|
67
67
|
"@babel/runtime": "^7.0.0",
|
|
68
68
|
"@emotion/react": "^11.7.1",
|
|
@@ -140,6 +140,9 @@
|
|
|
140
140
|
"platform_editor_controls_patch_6": {
|
|
141
141
|
"type": "boolean"
|
|
142
142
|
},
|
|
143
|
+
"platform_editor_controls_patch_9": {
|
|
144
|
+
"type": "boolean"
|
|
145
|
+
},
|
|
143
146
|
"platform_editor_controls_patch_analytics": {
|
|
144
147
|
"type": "boolean"
|
|
145
148
|
},
|
|
@@ -151,6 +154,9 @@
|
|
|
151
154
|
},
|
|
152
155
|
"platform_editor_controls_patch_8": {
|
|
153
156
|
"type": "boolean"
|
|
157
|
+
},
|
|
158
|
+
"prompt_whiteboard_competitor_link_gate": {
|
|
159
|
+
"type": "boolean"
|
|
154
160
|
}
|
|
155
161
|
},
|
|
156
162
|
"stricter": {
|