@atlaskit/editor-plugin-card 5.4.25 → 5.4.26
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 +9 -0
- package/dist/cjs/ui/toolbar.js +3 -3
- package/dist/es2019/ui/toolbar.js +3 -3
- package/dist/esm/ui/toolbar.js +3 -3
- package/package.json +10 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 5.4.26
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#149482](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/149482)
|
|
8
|
+
[`1f1f73876c3c8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1f1f73876c3c8) -
|
|
9
|
+
ED-27860 Add analytics for copy and delete button in floating toolbars
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 5.4.25
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -59,7 +59,7 @@ var removeCard = exports.removeCard = function removeCard(editorAnalyticsApi) {
|
|
|
59
59
|
actionSubject: _analytics.ACTION_SUBJECT.SMART_LINK,
|
|
60
60
|
actionSubjectId: type,
|
|
61
61
|
attributes: {
|
|
62
|
-
inputMethod: _analytics.INPUT_METHOD.TOOLBAR,
|
|
62
|
+
inputMethod: (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_analytics_2') ? _analytics.INPUT_METHOD.FLOATING_TB : _analytics.INPUT_METHOD.TOOLBAR,
|
|
63
63
|
displayMode: type
|
|
64
64
|
},
|
|
65
65
|
eventType: _analytics.EVENT_TYPE.TRACK
|
|
@@ -454,7 +454,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
454
454
|
onClick: function onClick() {
|
|
455
455
|
var _pluginInjectionApi$c2, _pluginInjectionApi$f;
|
|
456
456
|
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c2 = pluginInjectionApi.core) === null || _pluginInjectionApi$c2 === void 0 || _pluginInjectionApi$c2.actions.execute( // @ts-ignore
|
|
457
|
-
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$f = pluginInjectionApi.floatingToolbar) === null || _pluginInjectionApi$f === void 0 ? void 0 : _pluginInjectionApi$f.commands.copyNode(node.type));
|
|
457
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$f = pluginInjectionApi.floatingToolbar) === null || _pluginInjectionApi$f === void 0 ? void 0 : _pluginInjectionApi$f.commands.copyNode(node.type, _analytics.INPUT_METHOD.FLOATING_TB));
|
|
458
458
|
return true;
|
|
459
459
|
},
|
|
460
460
|
icon: /*#__PURE__*/_react.default.createElement(_copy.default, {
|
|
@@ -645,7 +645,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
|
|
|
645
645
|
onClick: function onClick() {
|
|
646
646
|
var _pluginInjectionApi$c3, _pluginInjectionApi$f2;
|
|
647
647
|
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c3 = pluginInjectionApi.core) === null || _pluginInjectionApi$c3 === void 0 || _pluginInjectionApi$c3.actions.execute( // @ts-ignore
|
|
648
|
-
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$f2 = pluginInjectionApi.floatingToolbar) === null || _pluginInjectionApi$f2 === void 0 ? void 0 : _pluginInjectionApi$f2.commands.copyNode(node.type));
|
|
648
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$f2 = pluginInjectionApi.floatingToolbar) === null || _pluginInjectionApi$f2 === void 0 ? void 0 : _pluginInjectionApi$f2.commands.copyNode(node.type, _analytics.INPUT_METHOD.FLOATING_TB));
|
|
649
649
|
return true;
|
|
650
650
|
},
|
|
651
651
|
onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, true, _editorSharedStyles.akEditorSelectedNodeClassName),
|
|
@@ -44,7 +44,7 @@ export const removeCard = editorAnalyticsApi => commandWithMetadata((state, disp
|
|
|
44
44
|
actionSubject: ACTION_SUBJECT.SMART_LINK,
|
|
45
45
|
actionSubjectId: type,
|
|
46
46
|
attributes: {
|
|
47
|
-
inputMethod: INPUT_METHOD.TOOLBAR,
|
|
47
|
+
inputMethod: fg('platform_editor_controls_patch_analytics_2') ? INPUT_METHOD.FLOATING_TB : INPUT_METHOD.TOOLBAR,
|
|
48
48
|
displayMode: type
|
|
49
49
|
},
|
|
50
50
|
eventType: EVENT_TYPE.TRACK
|
|
@@ -444,7 +444,7 @@ const generateToolbarItems = (state, intl, providerFactory, cardOptions, lpLinkP
|
|
|
444
444
|
onClick: () => {
|
|
445
445
|
var _pluginInjectionApi$c4, _pluginInjectionApi$f;
|
|
446
446
|
pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$c4 = pluginInjectionApi.core) === null || _pluginInjectionApi$c4 === void 0 ? void 0 : _pluginInjectionApi$c4.actions.execute( // @ts-ignore
|
|
447
|
-
pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$f = pluginInjectionApi.floatingToolbar) === null || _pluginInjectionApi$f === void 0 ? void 0 : _pluginInjectionApi$f.commands.copyNode(node.type));
|
|
447
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$f = pluginInjectionApi.floatingToolbar) === null || _pluginInjectionApi$f === void 0 ? void 0 : _pluginInjectionApi$f.commands.copyNode(node.type, INPUT_METHOD.FLOATING_TB));
|
|
448
448
|
return true;
|
|
449
449
|
},
|
|
450
450
|
icon: /*#__PURE__*/React.createElement(CopyIcon, {
|
|
@@ -637,7 +637,7 @@ const getDatasourceButtonGroup = (metadata, intl, editorAnalyticsApi, node, hove
|
|
|
637
637
|
onClick: () => {
|
|
638
638
|
var _pluginInjectionApi$c5, _pluginInjectionApi$f2;
|
|
639
639
|
pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$c5 = pluginInjectionApi.core) === null || _pluginInjectionApi$c5 === void 0 ? void 0 : _pluginInjectionApi$c5.actions.execute( // @ts-ignore
|
|
640
|
-
pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$f2 = pluginInjectionApi.floatingToolbar) === null || _pluginInjectionApi$f2 === void 0 ? void 0 : _pluginInjectionApi$f2.commands.copyNode(node.type));
|
|
640
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$f2 = pluginInjectionApi.floatingToolbar) === null || _pluginInjectionApi$f2 === void 0 ? void 0 : _pluginInjectionApi$f2.commands.copyNode(node.type, INPUT_METHOD.FLOATING_TB));
|
|
641
641
|
return true;
|
|
642
642
|
},
|
|
643
643
|
onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, true, akEditorSelectedNodeClassName),
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -49,7 +49,7 @@ export var removeCard = function removeCard(editorAnalyticsApi) {
|
|
|
49
49
|
actionSubject: ACTION_SUBJECT.SMART_LINK,
|
|
50
50
|
actionSubjectId: type,
|
|
51
51
|
attributes: {
|
|
52
|
-
inputMethod: INPUT_METHOD.TOOLBAR,
|
|
52
|
+
inputMethod: fg('platform_editor_controls_patch_analytics_2') ? INPUT_METHOD.FLOATING_TB : INPUT_METHOD.TOOLBAR,
|
|
53
53
|
displayMode: type
|
|
54
54
|
},
|
|
55
55
|
eventType: EVENT_TYPE.TRACK
|
|
@@ -444,7 +444,7 @@ var generateToolbarItems = function generateToolbarItems(state, intl, providerFa
|
|
|
444
444
|
onClick: function onClick() {
|
|
445
445
|
var _pluginInjectionApi$c2, _pluginInjectionApi$f;
|
|
446
446
|
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c2 = pluginInjectionApi.core) === null || _pluginInjectionApi$c2 === void 0 || _pluginInjectionApi$c2.actions.execute( // @ts-ignore
|
|
447
|
-
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$f = pluginInjectionApi.floatingToolbar) === null || _pluginInjectionApi$f === void 0 ? void 0 : _pluginInjectionApi$f.commands.copyNode(node.type));
|
|
447
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$f = pluginInjectionApi.floatingToolbar) === null || _pluginInjectionApi$f === void 0 ? void 0 : _pluginInjectionApi$f.commands.copyNode(node.type, INPUT_METHOD.FLOATING_TB));
|
|
448
448
|
return true;
|
|
449
449
|
},
|
|
450
450
|
icon: /*#__PURE__*/React.createElement(CopyIcon, {
|
|
@@ -635,7 +635,7 @@ var getDatasourceButtonGroup = function getDatasourceButtonGroup(metadata, intl,
|
|
|
635
635
|
onClick: function onClick() {
|
|
636
636
|
var _pluginInjectionApi$c3, _pluginInjectionApi$f2;
|
|
637
637
|
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c3 = pluginInjectionApi.core) === null || _pluginInjectionApi$c3 === void 0 || _pluginInjectionApi$c3.actions.execute( // @ts-ignore
|
|
638
|
-
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$f2 = pluginInjectionApi.floatingToolbar) === null || _pluginInjectionApi$f2 === void 0 ? void 0 : _pluginInjectionApi$f2.commands.copyNode(node.type));
|
|
638
|
+
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$f2 = pluginInjectionApi.floatingToolbar) === null || _pluginInjectionApi$f2 === void 0 ? void 0 : _pluginInjectionApi$f2.commands.copyNode(node.type, INPUT_METHOD.FLOATING_TB));
|
|
639
639
|
return true;
|
|
640
640
|
},
|
|
641
641
|
onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(node.type, true, akEditorSelectedNodeClassName),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.26",
|
|
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": "^
|
|
40
|
+
"@atlaskit/editor-common": "^104.0.0",
|
|
41
41
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
42
42
|
"@atlaskit/editor-plugin-base": "^2.3.0",
|
|
43
43
|
"@atlaskit/editor-plugin-connectivity": "^2.0.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/editor-plugin-editor-disabled": "^2.0.0",
|
|
46
46
|
"@atlaskit/editor-plugin-editor-viewmode": "^3.1.0",
|
|
47
47
|
"@atlaskit/editor-plugin-feature-flags": "^1.4.0",
|
|
48
|
-
"@atlaskit/editor-plugin-floating-toolbar": "^4.
|
|
48
|
+
"@atlaskit/editor-plugin-floating-toolbar": "^4.1.0",
|
|
49
49
|
"@atlaskit/editor-plugin-grid": "^2.0.0",
|
|
50
50
|
"@atlaskit/editor-plugin-width": "^3.0.0",
|
|
51
51
|
"@atlaskit/editor-prosemirror": "7.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": "^36.
|
|
63
|
+
"@atlaskit/smart-card": "^36.15.0",
|
|
64
64
|
"@atlaskit/theme": "^18.0.0",
|
|
65
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
65
|
+
"@atlaskit/tmp-editor-statsig": "^4.16.0",
|
|
66
66
|
"@atlaskit/tokens": "^4.8.0",
|
|
67
67
|
"@babel/runtime": "^7.0.0",
|
|
68
68
|
"@emotion/react": "^11.7.1",
|
|
@@ -140,10 +140,13 @@
|
|
|
140
140
|
"platform_editor_controls_patch_6": {
|
|
141
141
|
"type": "boolean"
|
|
142
142
|
},
|
|
143
|
-
"
|
|
143
|
+
"platform_editor_controls_patch_analytics": {
|
|
144
144
|
"type": "boolean"
|
|
145
145
|
},
|
|
146
|
-
"
|
|
146
|
+
"platform_editor_controls_patch_analytics_2": {
|
|
147
|
+
"type": "boolean"
|
|
148
|
+
},
|
|
149
|
+
"smart_link_editor_update_toolbar_open_link": {
|
|
147
150
|
"type": "boolean"
|
|
148
151
|
}
|
|
149
152
|
},
|