@atlaskit/editor-plugin-analytics 1.10.4 → 1.10.5
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/{plugin.js → analyticsPlugin.js} +5 -4
- package/dist/cjs/analyticsPluginType.js +5 -0
- package/dist/cjs/index.js +2 -2
- package/dist/es2019/{plugin.js → analyticsPlugin.js} +5 -4
- package/dist/es2019/analyticsPluginType.js +1 -0
- package/dist/es2019/index.js +1 -1
- package/dist/esm/{plugin.js → analyticsPlugin.js} +5 -4
- package/dist/esm/analyticsPluginType.js +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/types/analyticsPlugin.d.ts +13 -0
- package/dist/types/{plugin.d.ts → analyticsPluginType.d.ts} +2 -13
- package/dist/types/index.d.ts +3 -3
- package/dist/types-ts4.5/analyticsPlugin.d.ts +13 -0
- package/dist/types-ts4.5/{plugin.d.ts → analyticsPluginType.d.ts} +2 -13
- package/dist/types-ts4.5/index.d.ts +3 -3
- package/package.json +6 -3
- /package/dist/cjs/{analytics-api → pm-plugins/analytics-api}/attach-payload-into-transaction.js +0 -0
- /package/dist/cjs/{analytics-api → pm-plugins/analytics-api}/editor-state-context.js +0 -0
- /package/dist/cjs/{analytics-api → pm-plugins/analytics-api}/map-attributes.js +0 -0
- /package/dist/cjs/{consts.js → pm-plugins/consts.js} +0 -0
- /package/dist/cjs/{plugin-key.js → pm-plugins/plugin-key.js} +0 -0
- /package/dist/cjs/{undo-redo-input-source.js → pm-plugins/undo-redo-input-source.js} +0 -0
- /package/dist/es2019/{analytics-api → pm-plugins/analytics-api}/attach-payload-into-transaction.js +0 -0
- /package/dist/es2019/{analytics-api → pm-plugins/analytics-api}/editor-state-context.js +0 -0
- /package/dist/es2019/{analytics-api → pm-plugins/analytics-api}/map-attributes.js +0 -0
- /package/dist/es2019/{consts.js → pm-plugins/consts.js} +0 -0
- /package/dist/es2019/{plugin-key.js → pm-plugins/plugin-key.js} +0 -0
- /package/dist/es2019/{undo-redo-input-source.js → pm-plugins/undo-redo-input-source.js} +0 -0
- /package/dist/esm/{analytics-api → pm-plugins/analytics-api}/attach-payload-into-transaction.js +0 -0
- /package/dist/esm/{analytics-api → pm-plugins/analytics-api}/editor-state-context.js +0 -0
- /package/dist/esm/{analytics-api → pm-plugins/analytics-api}/map-attributes.js +0 -0
- /package/dist/esm/{consts.js → pm-plugins/consts.js} +0 -0
- /package/dist/esm/{plugin-key.js → pm-plugins/plugin-key.js} +0 -0
- /package/dist/esm/{undo-redo-input-source.js → pm-plugins/undo-redo-input-source.js} +0 -0
- /package/dist/types/{analytics-api → pm-plugins/analytics-api}/attach-payload-into-transaction.d.ts +0 -0
- /package/dist/types/{analytics-api → pm-plugins/analytics-api}/editor-state-context.d.ts +0 -0
- /package/dist/types/{analytics-api → pm-plugins/analytics-api}/map-attributes.d.ts +0 -0
- /package/dist/types/{consts.d.ts → pm-plugins/consts.d.ts} +0 -0
- /package/dist/types/{plugin-key.d.ts → pm-plugins/plugin-key.d.ts} +0 -0
- /package/dist/types/{undo-redo-input-source.d.ts → pm-plugins/undo-redo-input-source.d.ts} +0 -0
- /package/dist/types-ts4.5/{analytics-api → pm-plugins/analytics-api}/attach-payload-into-transaction.d.ts +0 -0
- /package/dist/types-ts4.5/{analytics-api → pm-plugins/analytics-api}/editor-state-context.d.ts +0 -0
- /package/dist/types-ts4.5/{analytics-api → pm-plugins/analytics-api}/map-attributes.d.ts +0 -0
- /package/dist/types-ts4.5/{consts.d.ts → pm-plugins/consts.d.ts} +0 -0
- /package/dist/types-ts4.5/{plugin-key.d.ts → pm-plugins/plugin-key.d.ts} +0 -0
- /package/dist/types-ts4.5/{undo-redo-input-source.d.ts → pm-plugins/undo-redo-input-source.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-analytics
|
|
2
2
|
|
|
3
|
+
## 1.10.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#167498](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/167498)
|
|
8
|
+
[`e275b9ee8b698`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e275b9ee8b698) -
|
|
9
|
+
ED-25805: refactors plugins to meet folder standards
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 1.10.4
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -15,10 +15,10 @@ var _analytics = require("@atlaskit/editor-common/analytics");
|
|
|
15
15
|
var _isPerformanceApiAvailable = require("@atlaskit/editor-common/is-performance-api-available");
|
|
16
16
|
var _measureRender = require("@atlaskit/editor-common/performance/measure-render");
|
|
17
17
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
18
|
-
var _attachPayloadIntoTransaction = require("./analytics-api/attach-payload-into-transaction");
|
|
19
|
-
var _consts = require("./consts");
|
|
20
|
-
var _pluginKey = require("./plugin-key");
|
|
21
|
-
var _undoRedoInputSource = require("./undo-redo-input-source");
|
|
18
|
+
var _attachPayloadIntoTransaction = require("./pm-plugins/analytics-api/attach-payload-into-transaction");
|
|
19
|
+
var _consts = require("./pm-plugins/consts");
|
|
20
|
+
var _pluginKey = require("./pm-plugins/plugin-key");
|
|
21
|
+
var _undoRedoInputSource = require("./pm-plugins/undo-redo-input-source");
|
|
22
22
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
23
23
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
24
24
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
@@ -96,6 +96,7 @@ function createPlugin(options, featureFlags) {
|
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
+
|
|
99
100
|
/**
|
|
100
101
|
* Analytics plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
101
102
|
* from `@atlaskit/editor-core`.
|
package/dist/cjs/index.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "analyticsPlugin", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return
|
|
9
|
+
return _analyticsPlugin.analyticsPlugin;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
var
|
|
12
|
+
var _analyticsPlugin = require("./analyticsPlugin");
|
|
@@ -5,10 +5,10 @@ import { ACTION, EVENT_TYPE, fireAnalyticsEvent, getAnalyticsEventsFromTransacti
|
|
|
5
5
|
import { isPerformanceAPIAvailable } from '@atlaskit/editor-common/is-performance-api-available';
|
|
6
6
|
import { measureRender } from '@atlaskit/editor-common/performance/measure-render';
|
|
7
7
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
8
|
-
import { createAttachPayloadIntoTransaction } from './analytics-api/attach-payload-into-transaction';
|
|
9
|
-
import { editorAnalyticsChannel } from './consts';
|
|
10
|
-
import { analyticsPluginKey } from './plugin-key';
|
|
11
|
-
import { generateUndoRedoInputSoucePayload } from './undo-redo-input-source';
|
|
8
|
+
import { createAttachPayloadIntoTransaction } from './pm-plugins/analytics-api/attach-payload-into-transaction';
|
|
9
|
+
import { editorAnalyticsChannel } from './pm-plugins/consts';
|
|
10
|
+
import { analyticsPluginKey } from './pm-plugins/plugin-key';
|
|
11
|
+
import { generateUndoRedoInputSoucePayload } from './pm-plugins/undo-redo-input-source';
|
|
12
12
|
function createPlugin(options, featureFlags) {
|
|
13
13
|
if (!options) {
|
|
14
14
|
return;
|
|
@@ -74,6 +74,7 @@ function createPlugin(options, featureFlags) {
|
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
|
+
|
|
77
78
|
/**
|
|
78
79
|
* Analytics plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
79
80
|
* from `@atlaskit/editor-core`.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/es2019/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { analyticsPlugin } from './
|
|
1
|
+
export { analyticsPlugin } from './analyticsPlugin';
|
|
@@ -12,10 +12,10 @@ import { ACTION, EVENT_TYPE, fireAnalyticsEvent as _fireAnalyticsEvent, getAnaly
|
|
|
12
12
|
import { isPerformanceAPIAvailable } from '@atlaskit/editor-common/is-performance-api-available';
|
|
13
13
|
import { measureRender } from '@atlaskit/editor-common/performance/measure-render';
|
|
14
14
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
15
|
-
import { createAttachPayloadIntoTransaction } from './analytics-api/attach-payload-into-transaction';
|
|
16
|
-
import { editorAnalyticsChannel } from './consts';
|
|
17
|
-
import { analyticsPluginKey } from './plugin-key';
|
|
18
|
-
import { generateUndoRedoInputSoucePayload } from './undo-redo-input-source';
|
|
15
|
+
import { createAttachPayloadIntoTransaction } from './pm-plugins/analytics-api/attach-payload-into-transaction';
|
|
16
|
+
import { editorAnalyticsChannel } from './pm-plugins/consts';
|
|
17
|
+
import { analyticsPluginKey } from './pm-plugins/plugin-key';
|
|
18
|
+
import { generateUndoRedoInputSoucePayload } from './pm-plugins/undo-redo-input-source';
|
|
19
19
|
function createPlugin(options, featureFlags) {
|
|
20
20
|
if (!options) {
|
|
21
21
|
return;
|
|
@@ -88,6 +88,7 @@ function createPlugin(options, featureFlags) {
|
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
|
+
|
|
91
92
|
/**
|
|
92
93
|
* Analytics plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
93
94
|
* from `@atlaskit/editor-core`.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { analyticsPlugin } from './
|
|
1
|
+
export { analyticsPlugin } from './analyticsPlugin';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import type { AnalyticsPlugin } from './analyticsPluginType';
|
|
3
|
+
/**
|
|
4
|
+
* Analytics plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
5
|
+
* from `@atlaskit/editor-core`.
|
|
6
|
+
*/
|
|
7
|
+
declare const analyticsPlugin: AnalyticsPlugin;
|
|
8
|
+
export declare function extendPayload({ payload, duration, distortedDuration, }: {
|
|
9
|
+
payload: AnalyticsEventPayload;
|
|
10
|
+
duration: number;
|
|
11
|
+
distortedDuration: boolean;
|
|
12
|
+
}): AnalyticsEventPayload;
|
|
13
|
+
export { analyticsPlugin };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
-
import type {
|
|
2
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { NextEditorPlugin, OptionalPlugin, PerformanceTracking } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
5
|
-
import type { CreateAttachPayloadIntoTransaction } from './analytics-api/attach-payload-into-transaction';
|
|
5
|
+
import type { CreateAttachPayloadIntoTransaction } from './pm-plugins/analytics-api/attach-payload-into-transaction';
|
|
6
6
|
export interface AnalyticsPluginOptions {
|
|
7
7
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
8
8
|
performanceTracking?: PerformanceTracking;
|
|
@@ -25,14 +25,3 @@ export type AnalyticsPlugin = NextEditorPlugin<'analytics', {
|
|
|
25
25
|
dependencies: [OptionalPlugin<FeatureFlagsPlugin>];
|
|
26
26
|
actions: EditorAnalyticsAPI;
|
|
27
27
|
}>;
|
|
28
|
-
/**
|
|
29
|
-
* Analytics plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
30
|
-
* from `@atlaskit/editor-core`.
|
|
31
|
-
*/
|
|
32
|
-
declare const analyticsPlugin: AnalyticsPlugin;
|
|
33
|
-
export declare function extendPayload({ payload, duration, distortedDuration, }: {
|
|
34
|
-
payload: AnalyticsEventPayload;
|
|
35
|
-
duration: number;
|
|
36
|
-
distortedDuration: boolean;
|
|
37
|
-
}): AnalyticsEventPayload;
|
|
38
|
-
export { analyticsPlugin };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { analyticsPlugin } from './
|
|
2
|
-
export type { AnalyticsPlugin, AnalyticsPluginOptions } from './
|
|
3
|
-
export type { CreateAttachPayloadIntoTransaction } from './analytics-api/attach-payload-into-transaction';
|
|
1
|
+
export { analyticsPlugin } from './analyticsPlugin';
|
|
2
|
+
export type { AnalyticsPlugin, AnalyticsPluginOptions } from './analyticsPluginType';
|
|
3
|
+
export type { CreateAttachPayloadIntoTransaction } from './pm-plugins/analytics-api/attach-payload-into-transaction';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import type { AnalyticsPlugin } from './analyticsPluginType';
|
|
3
|
+
/**
|
|
4
|
+
* Analytics plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
5
|
+
* from `@atlaskit/editor-core`.
|
|
6
|
+
*/
|
|
7
|
+
declare const analyticsPlugin: AnalyticsPlugin;
|
|
8
|
+
export declare function extendPayload({ payload, duration, distortedDuration, }: {
|
|
9
|
+
payload: AnalyticsEventPayload;
|
|
10
|
+
duration: number;
|
|
11
|
+
distortedDuration: boolean;
|
|
12
|
+
}): AnalyticsEventPayload;
|
|
13
|
+
export { analyticsPlugin };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
-
import type {
|
|
2
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { NextEditorPlugin, OptionalPlugin, PerformanceTracking } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
5
|
-
import type { CreateAttachPayloadIntoTransaction } from './analytics-api/attach-payload-into-transaction';
|
|
5
|
+
import type { CreateAttachPayloadIntoTransaction } from './pm-plugins/analytics-api/attach-payload-into-transaction';
|
|
6
6
|
export interface AnalyticsPluginOptions {
|
|
7
7
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
8
8
|
performanceTracking?: PerformanceTracking;
|
|
@@ -27,14 +27,3 @@ export type AnalyticsPlugin = NextEditorPlugin<'analytics', {
|
|
|
27
27
|
];
|
|
28
28
|
actions: EditorAnalyticsAPI;
|
|
29
29
|
}>;
|
|
30
|
-
/**
|
|
31
|
-
* Analytics plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
32
|
-
* from `@atlaskit/editor-core`.
|
|
33
|
-
*/
|
|
34
|
-
declare const analyticsPlugin: AnalyticsPlugin;
|
|
35
|
-
export declare function extendPayload({ payload, duration, distortedDuration, }: {
|
|
36
|
-
payload: AnalyticsEventPayload;
|
|
37
|
-
duration: number;
|
|
38
|
-
distortedDuration: boolean;
|
|
39
|
-
}): AnalyticsEventPayload;
|
|
40
|
-
export { analyticsPlugin };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { analyticsPlugin } from './
|
|
2
|
-
export type { AnalyticsPlugin, AnalyticsPluginOptions } from './
|
|
3
|
-
export type { CreateAttachPayloadIntoTransaction } from './analytics-api/attach-payload-into-transaction';
|
|
1
|
+
export { analyticsPlugin } from './analyticsPlugin';
|
|
2
|
+
export type { AnalyticsPlugin, AnalyticsPluginOptions } from './analyticsPluginType';
|
|
3
|
+
export type { CreateAttachPayloadIntoTransaction } from './pm-plugins/analytics-api/attach-payload-into-transaction';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-analytics",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.5",
|
|
4
4
|
"description": "Analytics plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^44.2.0",
|
|
35
|
-
"@atlaskit/analytics-listeners": "^8.
|
|
35
|
+
"@atlaskit/analytics-listeners": "^8.12.0",
|
|
36
36
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
37
|
-
"@atlaskit/editor-common": "^95.
|
|
37
|
+
"@atlaskit/editor-common": "^95.6.0",
|
|
38
38
|
"@atlaskit/editor-plugin-feature-flags": "^1.2.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
40
40
|
"@atlaskit/editor-tables": "^2.8.0",
|
|
@@ -45,6 +45,9 @@
|
|
|
45
45
|
},
|
|
46
46
|
"techstack": {
|
|
47
47
|
"@atlassian/frontend": {
|
|
48
|
+
"code-structure": [
|
|
49
|
+
"editor-plugin"
|
|
50
|
+
],
|
|
48
51
|
"import-structure": [
|
|
49
52
|
"atlassian-conventions"
|
|
50
53
|
],
|
/package/dist/cjs/{analytics-api → pm-plugins/analytics-api}/attach-payload-into-transaction.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/es2019/{analytics-api → pm-plugins/analytics-api}/attach-payload-into-transaction.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/esm/{analytics-api → pm-plugins/analytics-api}/attach-payload-into-transaction.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types/{analytics-api → pm-plugins/analytics-api}/attach-payload-into-transaction.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types-ts4.5/{analytics-api → pm-plugins/analytics-api}/editor-state-context.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types-ts4.5/{undo-redo-input-source.d.ts → pm-plugins/undo-redo-input-source.d.ts}
RENAMED
|
File without changes
|