@atlaskit/editor-plugin-extension 10.1.13 → 10.1.14
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,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-extension
|
|
2
2
|
|
|
3
|
+
## 10.1.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`b75fe85bfe1a4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b75fe85bfe1a4) -
|
|
8
|
+
[NO-ISSUE] Fixing analytics for extension copy button
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 10.1.13
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -304,9 +304,10 @@ var createOnClickCopyButton = exports.createOnClickCopyButton = function createO
|
|
|
304
304
|
extensionApi === null || extensionApi === void 0 || (_extensionApi$analyti = extensionApi.analytics) === null || _extensionApi$analyti === void 0 || _extensionApi$analyti.actions.fireAnalyticsEvent({
|
|
305
305
|
action: _analytics.ACTION.CLICKED,
|
|
306
306
|
actionSubject: _analytics.ACTION_SUBJECT.COPY_BUTTON,
|
|
307
|
-
actionSubjectId: node.type.name,
|
|
308
307
|
eventType: _analytics.EVENT_TYPE.UI,
|
|
308
|
+
actionSubjectId: _analytics.ACTION_SUBJECT_ID.EXTENSION,
|
|
309
309
|
attributes: {
|
|
310
|
+
extensionDynamicType: node.type.name,
|
|
310
311
|
extensionType: node.attrs.extensionType,
|
|
311
312
|
extensionKey: node.attrs.extensionKey
|
|
312
313
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { INPUT_METHOD, ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import { INPUT_METHOD, ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import { messages, NATIVE_EMBED_EXTENSION_TYPE } from '@atlaskit/editor-common/extensions';
|
|
4
4
|
import commonMessages from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { BODIED_EXT_MBE_MARGIN_TOP } from '@atlaskit/editor-common/styles';
|
|
@@ -306,9 +306,10 @@ export const createOnClickCopyButton = ({
|
|
|
306
306
|
extensionApi === null || extensionApi === void 0 ? void 0 : (_extensionApi$analyti = extensionApi.analytics) === null || _extensionApi$analyti === void 0 ? void 0 : _extensionApi$analyti.actions.fireAnalyticsEvent({
|
|
307
307
|
action: ACTION.CLICKED,
|
|
308
308
|
actionSubject: ACTION_SUBJECT.COPY_BUTTON,
|
|
309
|
-
actionSubjectId: node.type.name,
|
|
310
309
|
eventType: EVENT_TYPE.UI,
|
|
310
|
+
actionSubjectId: ACTION_SUBJECT_ID.EXTENSION,
|
|
311
311
|
attributes: {
|
|
312
|
+
extensionDynamicType: node.type.name,
|
|
312
313
|
extensionType: node.attrs.extensionType,
|
|
313
314
|
extensionKey: node.attrs.extensionKey
|
|
314
315
|
}
|
|
@@ -3,7 +3,7 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import { INPUT_METHOD, ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
6
|
+
import { INPUT_METHOD, ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
7
7
|
import { messages, NATIVE_EMBED_EXTENSION_TYPE } from '@atlaskit/editor-common/extensions';
|
|
8
8
|
import commonMessages from '@atlaskit/editor-common/messages';
|
|
9
9
|
import { BODIED_EXT_MBE_MARGIN_TOP } from '@atlaskit/editor-common/styles';
|
|
@@ -298,9 +298,10 @@ export var createOnClickCopyButton = function createOnClickCopyButton(_ref) {
|
|
|
298
298
|
extensionApi === null || extensionApi === void 0 || (_extensionApi$analyti = extensionApi.analytics) === null || _extensionApi$analyti === void 0 || _extensionApi$analyti.actions.fireAnalyticsEvent({
|
|
299
299
|
action: ACTION.CLICKED,
|
|
300
300
|
actionSubject: ACTION_SUBJECT.COPY_BUTTON,
|
|
301
|
-
actionSubjectId: node.type.name,
|
|
302
301
|
eventType: EVENT_TYPE.UI,
|
|
302
|
+
actionSubjectId: ACTION_SUBJECT_ID.EXTENSION,
|
|
303
303
|
attributes: {
|
|
304
|
+
extensionDynamicType: node.type.name,
|
|
304
305
|
extensionType: node.attrs.extensionType,
|
|
305
306
|
extensionKey: node.attrs.extensionKey
|
|
306
307
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.14",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"atlaskit:src": "src/index.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@atlaskit/adf-schema": "^52.
|
|
24
|
+
"@atlaskit/adf-schema": "^52.1.0",
|
|
25
25
|
"@atlaskit/adf-utils": "^19.27.0",
|
|
26
26
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
27
27
|
"@atlaskit/avatar": "^25.8.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@atlaskit/textarea": "^8.2.0",
|
|
59
59
|
"@atlaskit/textfield": "^8.2.0",
|
|
60
60
|
"@atlaskit/theme": "^21.0.0",
|
|
61
|
-
"@atlaskit/tmp-editor-statsig": "^32.
|
|
61
|
+
"@atlaskit/tmp-editor-statsig": "^32.3.0",
|
|
62
62
|
"@atlaskit/toggle": "^15.2.0",
|
|
63
63
|
"@atlaskit/tokens": "^11.0.0",
|
|
64
64
|
"@atlaskit/tooltip": "^20.14.0",
|