@atlaskit/editor-plugin-analytics 1.8.2 → 1.8.3
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 +8 -0
- package/dist/cjs/consts.js +2 -2
- package/dist/cjs/plugin.js +4 -4
- package/dist/es2019/consts.js +1 -1
- package/dist/es2019/plugin.js +2 -2
- package/dist/esm/consts.js +1 -1
- package/dist/esm/plugin.js +2 -2
- package/dist/types/consts.d.ts +1 -1
- package/dist/types-ts4.5/consts.d.ts +1 -1
- package/package.json +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-analytics
|
|
2
2
|
|
|
3
|
+
## 1.8.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#136143](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/136143)
|
|
8
|
+
[`851c2575d214e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/851c2575d214e) -
|
|
9
|
+
Use optimised entry-points for analytics packages to reduce bundle size.
|
|
10
|
+
|
|
3
11
|
## 1.8.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/consts.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.editorAnalyticsChannel = exports.analyticsEventKey = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _types = require("@atlaskit/analytics-listeners/types");
|
|
8
8
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
9
9
|
var analyticsEventKey = exports.analyticsEventKey = _utils.analyticsEventKey;
|
|
10
|
-
var editorAnalyticsChannel = exports.editorAnalyticsChannel =
|
|
10
|
+
var editorAnalyticsChannel = exports.editorAnalyticsChannel = _types.FabricChannel.editor;
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -10,8 +10,8 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
var _react = require("react");
|
|
12
12
|
var _steps = require("@atlaskit/adf-schema/steps");
|
|
13
|
-
var
|
|
14
|
-
var
|
|
13
|
+
var _types = require("@atlaskit/analytics-listeners/types");
|
|
14
|
+
var _useAnalyticsEvents2 = require("@atlaskit/analytics-next/useAnalyticsEvents");
|
|
15
15
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
16
16
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
17
17
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
@@ -127,7 +127,7 @@ var analyticsPlugin = exports.analyticsPlugin = function analyticsPlugin(_ref3)
|
|
|
127
127
|
},
|
|
128
128
|
actions: {
|
|
129
129
|
attachAnalyticsEvent: function attachAnalyticsEvent(payload) {
|
|
130
|
-
var channel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
130
|
+
var channel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _types.FabricChannel.editor;
|
|
131
131
|
return function (tr) {
|
|
132
132
|
var _api$analytics$shared, _api$analytics;
|
|
133
133
|
var _ref5 = (_api$analytics$shared = api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.sharedState.currentState()) !== null && _api$analytics$shared !== void 0 ? _api$analytics$shared : {},
|
|
@@ -158,7 +158,7 @@ var analyticsPlugin = exports.analyticsPlugin = function analyticsPlugin(_ref3)
|
|
|
158
158
|
},
|
|
159
159
|
usePluginHook: function usePluginHook(_ref7) {
|
|
160
160
|
var editorView = _ref7.editorView;
|
|
161
|
-
var _useAnalyticsEvents = (0,
|
|
161
|
+
var _useAnalyticsEvents = (0, _useAnalyticsEvents2.useAnalyticsEvents)(),
|
|
162
162
|
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
163
163
|
(0, _react.useLayoutEffect)(function () {
|
|
164
164
|
var dispatch = editorView.dispatch,
|
package/dist/es2019/consts.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FabricChannel } from '@atlaskit/analytics-listeners';
|
|
1
|
+
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
2
2
|
import { analyticsEventKey as key } from '@atlaskit/editor-common/utils';
|
|
3
3
|
export const analyticsEventKey = key;
|
|
4
4
|
export const editorAnalyticsChannel = FabricChannel.editor;
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useLayoutEffect } from 'react';
|
|
2
2
|
import { AnalyticsStep } from '@atlaskit/adf-schema/steps';
|
|
3
|
-
import { FabricChannel } from '@atlaskit/analytics-listeners';
|
|
4
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
3
|
+
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
4
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
5
5
|
import { ACTION, EVENT_TYPE, fireAnalyticsEvent, getAnalyticsEventsFromTransaction } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
7
7
|
import { isPerformanceAPIAvailable, measureRender } from '@atlaskit/editor-common/utils';
|
package/dist/esm/consts.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FabricChannel } from '@atlaskit/analytics-listeners';
|
|
1
|
+
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
2
2
|
import { analyticsEventKey as key } from '@atlaskit/editor-common/utils';
|
|
3
3
|
export var analyticsEventKey = key;
|
|
4
4
|
export var editorAnalyticsChannel = FabricChannel.editor;
|
package/dist/esm/plugin.js
CHANGED
|
@@ -7,8 +7,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
7
7
|
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; }
|
|
8
8
|
import { useLayoutEffect } from 'react';
|
|
9
9
|
import { AnalyticsStep } from '@atlaskit/adf-schema/steps';
|
|
10
|
-
import { FabricChannel } from '@atlaskit/analytics-listeners';
|
|
11
|
-
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
10
|
+
import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
11
|
+
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
12
12
|
import { ACTION, EVENT_TYPE, fireAnalyticsEvent as _fireAnalyticsEvent, getAnalyticsEventsFromTransaction } from '@atlaskit/editor-common/analytics';
|
|
13
13
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
14
14
|
import { isPerformanceAPIAvailable, measureRender } from '@atlaskit/editor-common/utils';
|
package/dist/types/consts.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-analytics",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.3",
|
|
4
4
|
"description": "Analytics plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
"atlassian": {
|
|
11
11
|
"team": "Editor: Lego",
|
|
12
12
|
"singleton": true,
|
|
13
|
-
"releaseModel": "continuous",
|
|
14
13
|
"runReact18": true
|
|
15
14
|
},
|
|
16
15
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
@@ -35,7 +34,7 @@
|
|
|
35
34
|
"@atlaskit/adf-schema": "^40.9.0",
|
|
36
35
|
"@atlaskit/analytics-listeners": "^8.11.0",
|
|
37
36
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
38
|
-
"@atlaskit/editor-common": "^88.
|
|
37
|
+
"@atlaskit/editor-common": "^88.6.0",
|
|
39
38
|
"@atlaskit/editor-plugin-feature-flags": "^1.2.0",
|
|
40
39
|
"@atlaskit/editor-prosemirror": "5.0.1",
|
|
41
40
|
"@atlaskit/editor-tables": "^2.8.0",
|