@atlaskit/editor-plugin-extension 10.1.13 → 10.1.15

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,19 @@
1
1
  # @atlaskit/editor-plugin-extension
2
2
 
3
+ ## 10.1.15
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 10.1.14
10
+
11
+ ### Patch Changes
12
+
13
+ - [`b75fe85bfe1a4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b75fe85bfe1a4) -
14
+ [NO-ISSUE] Fixing analytics for extension copy button
15
+ - Updated dependencies
16
+
3
17
  ## 10.1.13
4
18
 
5
19
  ### 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.13",
3
+ "version": "10.1.15",
4
4
  "description": "editor-plugin-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -21,12 +21,12 @@
21
21
  ],
22
22
  "atlaskit:src": "src/index.ts",
23
23
  "dependencies": {
24
- "@atlaskit/adf-schema": "^52.0.0",
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",
28
28
  "@atlaskit/browser-apis": "^0.0.1",
29
- "@atlaskit/button": "^23.9.0",
29
+ "@atlaskit/button": "^23.10.0",
30
30
  "@atlaskit/checkbox": "^17.3.0",
31
31
  "@atlaskit/datetime-picker": "^17.5.0",
32
32
  "@atlaskit/editor-json-transformer": "^8.31.0",
@@ -52,13 +52,13 @@
52
52
  "@atlaskit/radio": "^8.4.0",
53
53
  "@atlaskit/section-message": "^8.12.0",
54
54
  "@atlaskit/select": "^21.7.0",
55
- "@atlaskit/smart-user-picker": "^9.0.0",
55
+ "@atlaskit/smart-user-picker": "^9.1.0",
56
56
  "@atlaskit/spinner": "^19.0.0",
57
57
  "@atlaskit/tabs": "^18.3.0",
58
58
  "@atlaskit/textarea": "^8.2.0",
59
59
  "@atlaskit/textfield": "^8.2.0",
60
- "@atlaskit/theme": "^21.0.0",
61
- "@atlaskit/tmp-editor-statsig": "^32.0.0",
60
+ "@atlaskit/theme": "^22.0.0",
61
+ "@atlaskit/tmp-editor-statsig": "^32.6.0",
62
62
  "@atlaskit/toggle": "^15.2.0",
63
63
  "@atlaskit/tokens": "^11.0.0",
64
64
  "@atlaskit/tooltip": "^20.14.0",
@@ -72,7 +72,7 @@
72
72
  "uuid": "^3.1.0"
73
73
  },
74
74
  "peerDependencies": {
75
- "@atlaskit/editor-common": "^111.20.0",
75
+ "@atlaskit/editor-common": "^111.23.0",
76
76
  "react": "^18.2.0",
77
77
  "react-intl-next": "npm:react-intl@^5.18.1"
78
78
  },