@atlaskit/editor-common 76.26.6 → 76.26.7
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 +6 -0
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +0 -6
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/utils/document.js +2 -8
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +0 -6
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/utils/document.js +2 -8
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +0 -6
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/utils/document.js +2 -8
- package/dist/types/analytics/types/events.d.ts +10 -14
- package/dist/types/analytics/types/general-events.d.ts +20 -26
- package/dist/types/analytics/types/link-tool-bar-events.d.ts +0 -4
- package/dist/types/analytics/types/loom-events.d.ts +2 -2
- package/dist/types/analytics/types/paste-events.d.ts +2 -2
- package/dist/types/analytics/types/referentiality-events.d.ts +10 -10
- package/dist/types/analytics/types/table-events.d.ts +1 -1
- package/dist/types/analytics/types/type-ahead.d.ts +2 -2
- package/dist/types/analytics/types/utils.d.ts +9 -6
- package/dist/types-ts4.5/analytics/types/events.d.ts +10 -14
- package/dist/types-ts4.5/analytics/types/general-events.d.ts +20 -26
- package/dist/types-ts4.5/analytics/types/link-tool-bar-events.d.ts +0 -4
- package/dist/types-ts4.5/analytics/types/loom-events.d.ts +2 -2
- package/dist/types-ts4.5/analytics/types/paste-events.d.ts +2 -2
- package/dist/types-ts4.5/analytics/types/referentiality-events.d.ts +10 -10
- package/dist/types-ts4.5/analytics/types/table-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/type-ahead.d.ts +2 -2
- package/dist/types-ts4.5/analytics/types/utils.d.ts +9 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 76.26.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#59951](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59951) [`a42a17e8af1b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a42a17e8af1b) - ED-21106: Remove nonPrivacySafeAttributes from editor operational events
|
|
8
|
+
|
|
3
9
|
## 76.26.6
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -237,9 +237,6 @@ var HyperlinkLinkAddToolbar = exports.HyperlinkLinkAddToolbar = /*#__PURE__*/fun
|
|
|
237
237
|
count: -1,
|
|
238
238
|
errorCode: _context.t0.status
|
|
239
239
|
},
|
|
240
|
-
nonPrivacySafeAttributes: {
|
|
241
|
-
error: _context.t0.message
|
|
242
|
-
},
|
|
243
240
|
eventType: _analytics.EVENT_TYPE.OPERATIONAL
|
|
244
241
|
});
|
|
245
242
|
case 24:
|
|
@@ -733,9 +730,6 @@ var HyperlinkLinkAddToolbar = exports.HyperlinkLinkAddToolbar = /*#__PURE__*/fun
|
|
|
733
730
|
count: -1,
|
|
734
731
|
errorCode: _context5.t3.status
|
|
735
732
|
},
|
|
736
|
-
nonPrivacySafeAttributes: {
|
|
737
|
-
error: _context5.t3.message
|
|
738
|
-
},
|
|
739
733
|
eventType: _analytics.EVENT_TYPE.OPERATIONAL
|
|
740
734
|
});
|
|
741
735
|
return _context5.abrupt("return", []);
|
|
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
17
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
18
18
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
19
|
-
var packageVersion = "76.26.
|
|
19
|
+
var packageVersion = "76.26.7";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -24,7 +24,7 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
24
24
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
25
25
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "76.26.
|
|
27
|
+
var packageVersion = "76.26.7";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -217,10 +217,7 @@ function processRawValue(schema, value, providerFactory, sanitizePrivateContent,
|
|
|
217
217
|
dispatchAnalyticsEvent({
|
|
218
218
|
action: _analytics.ACTION.INVALID_PROSEMIRROR_DOCUMENT,
|
|
219
219
|
actionSubject: _analytics.ACTION_SUBJECT.EDITOR,
|
|
220
|
-
eventType: _analytics.EVENT_TYPE.OPERATIONAL
|
|
221
|
-
attributes: {
|
|
222
|
-
errorStack: err instanceof Error ? err.stack : String(err)
|
|
223
|
-
}
|
|
220
|
+
eventType: _analytics.EVENT_TYPE.OPERATIONAL
|
|
224
221
|
});
|
|
225
222
|
}
|
|
226
223
|
throw err;
|
|
@@ -234,10 +231,7 @@ function processRawValue(schema, value, providerFactory, sanitizePrivateContent,
|
|
|
234
231
|
dispatchAnalyticsEvent({
|
|
235
232
|
action: _analytics.ACTION.DOCUMENT_PROCESSING_ERROR,
|
|
236
233
|
actionSubject: _analytics.ACTION_SUBJECT.EDITOR,
|
|
237
|
-
eventType: _analytics.EVENT_TYPE.OPERATIONAL
|
|
238
|
-
nonPrivacySafeAttributes: {
|
|
239
|
-
errorStack: e instanceof Error ? e.stack : String(e)
|
|
240
|
-
}
|
|
234
|
+
eventType: _analytics.EVENT_TYPE.OPERATIONAL
|
|
241
235
|
});
|
|
242
236
|
}
|
|
243
237
|
|
|
@@ -226,9 +226,6 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
|
|
|
226
226
|
count: -1,
|
|
227
227
|
errorCode: err.status
|
|
228
228
|
},
|
|
229
|
-
nonPrivacySafeAttributes: {
|
|
230
|
-
error: err.message
|
|
231
|
-
},
|
|
232
229
|
eventType: EVENT_TYPE.OPERATIONAL
|
|
233
230
|
});
|
|
234
231
|
}
|
|
@@ -629,9 +626,6 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
|
|
|
629
626
|
count: -1,
|
|
630
627
|
errorCode: err.status
|
|
631
628
|
},
|
|
632
|
-
nonPrivacySafeAttributes: {
|
|
633
|
-
error: err.message
|
|
634
|
-
},
|
|
635
629
|
eventType: EVENT_TYPE.OPERATIONAL
|
|
636
630
|
});
|
|
637
631
|
return [];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
2
2
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
3
|
-
const packageVersion = "76.26.
|
|
3
|
+
const packageVersion = "76.26.7";
|
|
4
4
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
5
5
|
// Remove URL as it has UGC
|
|
6
6
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -9,7 +9,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
9
9
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
10
10
|
import Layer from '../Layer';
|
|
11
11
|
const packageName = "@atlaskit/editor-common";
|
|
12
|
-
const packageVersion = "76.26.
|
|
12
|
+
const packageVersion = "76.26.7";
|
|
13
13
|
const halfFocusRing = 1;
|
|
14
14
|
const dropOffset = '0, 8';
|
|
15
15
|
class DropList extends Component {
|
|
@@ -210,10 +210,7 @@ export function processRawValue(schema, value, providerFactory, sanitizePrivateC
|
|
|
210
210
|
dispatchAnalyticsEvent({
|
|
211
211
|
action: ACTION.INVALID_PROSEMIRROR_DOCUMENT,
|
|
212
212
|
actionSubject: ACTION_SUBJECT.EDITOR,
|
|
213
|
-
eventType: EVENT_TYPE.OPERATIONAL
|
|
214
|
-
attributes: {
|
|
215
|
-
errorStack: err instanceof Error ? err.stack : String(err)
|
|
216
|
-
}
|
|
213
|
+
eventType: EVENT_TYPE.OPERATIONAL
|
|
217
214
|
});
|
|
218
215
|
}
|
|
219
216
|
throw err;
|
|
@@ -227,10 +224,7 @@ export function processRawValue(schema, value, providerFactory, sanitizePrivateC
|
|
|
227
224
|
dispatchAnalyticsEvent({
|
|
228
225
|
action: ACTION.DOCUMENT_PROCESSING_ERROR,
|
|
229
226
|
actionSubject: ACTION_SUBJECT.EDITOR,
|
|
230
|
-
eventType: EVENT_TYPE.OPERATIONAL
|
|
231
|
-
nonPrivacySafeAttributes: {
|
|
232
|
-
errorStack: e instanceof Error ? e.stack : String(e)
|
|
233
|
-
}
|
|
227
|
+
eventType: EVENT_TYPE.OPERATIONAL
|
|
234
228
|
});
|
|
235
229
|
}
|
|
236
230
|
|
|
@@ -229,9 +229,6 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
229
229
|
count: -1,
|
|
230
230
|
errorCode: _context.t0.status
|
|
231
231
|
},
|
|
232
|
-
nonPrivacySafeAttributes: {
|
|
233
|
-
error: _context.t0.message
|
|
234
|
-
},
|
|
235
232
|
eventType: EVENT_TYPE.OPERATIONAL
|
|
236
233
|
});
|
|
237
234
|
case 24:
|
|
@@ -725,9 +722,6 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
725
722
|
count: -1,
|
|
726
723
|
errorCode: _context5.t3.status
|
|
727
724
|
},
|
|
728
|
-
nonPrivacySafeAttributes: {
|
|
729
|
-
error: _context5.t3.message
|
|
730
|
-
},
|
|
731
725
|
eventType: EVENT_TYPE.OPERATIONAL
|
|
732
726
|
});
|
|
733
727
|
return _context5.abrupt("return", []);
|
|
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
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; }
|
|
7
7
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
8
8
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
9
|
-
var packageVersion = "76.26.
|
|
9
|
+
var packageVersion = "76.26.7";
|
|
10
10
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
11
11
|
// Remove URL as it has UGC
|
|
12
12
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -19,7 +19,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
19
19
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
20
20
|
import Layer from '../Layer';
|
|
21
21
|
var packageName = "@atlaskit/editor-common";
|
|
22
|
-
var packageVersion = "76.26.
|
|
22
|
+
var packageVersion = "76.26.7";
|
|
23
23
|
var halfFocusRing = 1;
|
|
24
24
|
var dropOffset = '0, 8';
|
|
25
25
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -203,10 +203,7 @@ export function processRawValue(schema, value, providerFactory, sanitizePrivateC
|
|
|
203
203
|
dispatchAnalyticsEvent({
|
|
204
204
|
action: ACTION.INVALID_PROSEMIRROR_DOCUMENT,
|
|
205
205
|
actionSubject: ACTION_SUBJECT.EDITOR,
|
|
206
|
-
eventType: EVENT_TYPE.OPERATIONAL
|
|
207
|
-
attributes: {
|
|
208
|
-
errorStack: err instanceof Error ? err.stack : String(err)
|
|
209
|
-
}
|
|
206
|
+
eventType: EVENT_TYPE.OPERATIONAL
|
|
210
207
|
});
|
|
211
208
|
}
|
|
212
209
|
throw err;
|
|
@@ -220,10 +217,7 @@ export function processRawValue(schema, value, providerFactory, sanitizePrivateC
|
|
|
220
217
|
dispatchAnalyticsEvent({
|
|
221
218
|
action: ACTION.DOCUMENT_PROCESSING_ERROR,
|
|
222
219
|
actionSubject: ACTION_SUBJECT.EDITOR,
|
|
223
|
-
eventType: EVENT_TYPE.OPERATIONAL
|
|
224
|
-
nonPrivacySafeAttributes: {
|
|
225
|
-
errorStack: e instanceof Error ? e.stack : String(e)
|
|
226
|
-
}
|
|
220
|
+
eventType: EVENT_TYPE.OPERATIONAL
|
|
227
221
|
});
|
|
228
222
|
}
|
|
229
223
|
|
|
@@ -60,11 +60,11 @@ export type FeatureExposureAEP = OperationalExposureAEP<ACTION.EXPOSED, ACTION_S
|
|
|
60
60
|
type InvalidTransactionErrorAEP = OperationalAEP<ACTION.DISPATCHED_INVALID_TRANSACTION, ACTION_SUBJECT.EDITOR, undefined, {
|
|
61
61
|
analyticsEventPayloads: AnalyticsEventPayloadWithChannel[];
|
|
62
62
|
invalidNodes: (SimplifiedNode | string)[];
|
|
63
|
-
}
|
|
64
|
-
type DispatchedValidTransactionAEP = OperationalAEP<ACTION.DISPATCHED_VALID_TRANSACTION, ACTION_SUBJECT.EDITOR, undefined, undefined
|
|
63
|
+
}>;
|
|
64
|
+
type DispatchedValidTransactionAEP = OperationalAEP<ACTION.DISPATCHED_VALID_TRANSACTION, ACTION_SUBJECT.EDITOR, undefined, undefined>;
|
|
65
65
|
type InvalidTransactionStepErrorAEP = OperationalAEP<ACTION.DISCARDED_INVALID_STEPS_FROM_TRANSACTION, ACTION_SUBJECT.EDITOR, undefined, {
|
|
66
66
|
analyticsEventPayloads: AnalyticsEventPayloadWithChannel[];
|
|
67
|
-
}
|
|
67
|
+
}>;
|
|
68
68
|
export type TransactionEventPayload = DispatchedValidTransactionAEP;
|
|
69
69
|
type FailedToUnmountErrorAEP = OperationalAEP<ACTION.FAILED_TO_UNMOUNT, ACTION_SUBJECT.EDITOR, ACTION_SUBJECT_ID.REACT_NODE_VIEW, {
|
|
70
70
|
error: Error;
|
|
@@ -72,23 +72,23 @@ type FailedToUnmountErrorAEP = OperationalAEP<ACTION.FAILED_TO_UNMOUNT, ACTION_S
|
|
|
72
72
|
container?: string;
|
|
73
73
|
child?: string;
|
|
74
74
|
};
|
|
75
|
-
}
|
|
75
|
+
}>;
|
|
76
76
|
type SynchronyErrorAEP = OperationalAEP<ACTION.SYNCHRONY_ERROR, ACTION_SUBJECT.EDITOR, undefined, {
|
|
77
77
|
error: Error;
|
|
78
78
|
docStructure?: string | SimplifiedNode;
|
|
79
79
|
browserExtensions?: UserBrowserExtensionResults;
|
|
80
|
-
}
|
|
81
|
-
type NewCollabSyncUpErrorAEP = OperationalAEP<ACTION.NEW_COLLAB_SYNC_UP_ERROR_NO_STEPS, ACTION_SUBJECT.EDITOR, undefined, NewCollabSyncUpErrorAttributes
|
|
80
|
+
}>;
|
|
81
|
+
type NewCollabSyncUpErrorAEP = OperationalAEP<ACTION.NEW_COLLAB_SYNC_UP_ERROR_NO_STEPS, ACTION_SUBJECT.EDITOR, undefined, NewCollabSyncUpErrorAttributes>;
|
|
82
82
|
type InvalidDocumentEncounteredAEP = OperationalAEP<ACTION.INVALID_DOCUMENT_ENCOUNTERED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
83
83
|
nodeType: string;
|
|
84
84
|
reason: string;
|
|
85
85
|
tableLocalId: string;
|
|
86
86
|
spanValue: number;
|
|
87
|
-
}
|
|
87
|
+
}>;
|
|
88
88
|
type SynchronyEntityErrorAEP = OperationalAEP<ACTION.SYNCHRONY_ENTITY_ERROR | ACTION.SYNCHRONY_DISCONNECTED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
89
89
|
onLine: boolean;
|
|
90
90
|
visibilityState: string;
|
|
91
|
-
}
|
|
91
|
+
}>;
|
|
92
92
|
type ContentComponentErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.CONTENT_COMPONENT, undefined, {
|
|
93
93
|
component: CONTENT_COMPONENT;
|
|
94
94
|
error: string;
|
|
@@ -97,8 +97,6 @@ type ContentComponentErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.CO
|
|
|
97
97
|
};
|
|
98
98
|
position: number;
|
|
99
99
|
docSize: number;
|
|
100
|
-
}, {
|
|
101
|
-
errorStack?: string;
|
|
102
100
|
}>;
|
|
103
101
|
export type ErrorEventAttributes = {
|
|
104
102
|
error: Error;
|
|
@@ -111,16 +109,14 @@ export type ErrorEventAttributes = {
|
|
|
111
109
|
browserExtensions?: UserBrowserExtensionResults;
|
|
112
110
|
outdatedBrowser?: boolean;
|
|
113
111
|
};
|
|
114
|
-
type ComponentCrashErrorAEP = OperationalAEP<ACTION.EDITOR_CRASHED, ACTION_SUBJECT.FLOATING_CONTEXTUAL_BUTTON | ACTION_SUBJECT.PLUGIN_SLOT | ACTION_SUBJECT.REACT_NODE_VIEW | ACTION_SUBJECT.TABLES_PLUGIN | ACTION_SUBJECT.FLOATING_TOOLBAR_PLUGIN | ACTION_SUBJECT.EDITOR, ACTION_SUBJECT_ID | FLOATING_CONTROLS_TITLE, ErrorEventAttributes
|
|
112
|
+
type ComponentCrashErrorAEP = OperationalAEP<ACTION.EDITOR_CRASHED, ACTION_SUBJECT.FLOATING_CONTEXTUAL_BUTTON | ACTION_SUBJECT.PLUGIN_SLOT | ACTION_SUBJECT.REACT_NODE_VIEW | ACTION_SUBJECT.TABLES_PLUGIN | ACTION_SUBJECT.FLOATING_TOOLBAR_PLUGIN | ACTION_SUBJECT.EDITOR, ACTION_SUBJECT_ID | FLOATING_CONTROLS_TITLE, ErrorEventAttributes>;
|
|
115
113
|
type ComponentCrashAdditionalInfoErrorAEP = OperationalAEP<ACTION.EDITOR_CRASHED_ADDITIONAL_INFORMATION, ACTION_SUBJECT.EDITOR, undefined, {
|
|
116
114
|
errorId: string;
|
|
117
|
-
}, {
|
|
118
|
-
errorStack: string;
|
|
119
115
|
}>;
|
|
120
116
|
type SmartLinkErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.SMART_LINK, undefined, {
|
|
121
117
|
error: string;
|
|
122
118
|
errorStack?: string;
|
|
123
|
-
}
|
|
119
|
+
}>;
|
|
124
120
|
export type ErrorEventPayload = InvalidTransactionErrorAEP | InvalidTransactionStepErrorAEP | FailedToUnmountErrorAEP | SynchronyErrorAEP | InvalidDocumentEncounteredAEP | SynchronyEntityErrorAEP | ContentComponentErrorAEP | ComponentCrashErrorAEP | ComponentCrashAdditionalInfoErrorAEP | SmartLinkErrorAEP;
|
|
125
121
|
export type AnalyticsEventPayloadCallback = (state: EditorState) => AnalyticsEventPayload | undefined;
|
|
126
122
|
export type FireAnalyticsCallback = <T>(payload: FireAnalyticsEventPayload<T>) => void | undefined;
|
|
@@ -41,7 +41,7 @@ type EditorPerfAEP = OperationalAEPWithObjectId<ACTION.EDITOR_MOUNTED | ACTION.P
|
|
|
41
41
|
ttfb?: number;
|
|
42
42
|
severity?: SEVERITY;
|
|
43
43
|
distortedDuration?: boolean;
|
|
44
|
-
}
|
|
44
|
+
}>;
|
|
45
45
|
type EditorTTIAEP = OperationalAEP<ACTION.EDITOR_TTI, ACTION_SUBJECT.EDITOR, undefined, {
|
|
46
46
|
tti: number;
|
|
47
47
|
ttiFromInvocation: number;
|
|
@@ -49,38 +49,38 @@ type EditorTTIAEP = OperationalAEP<ACTION.EDITOR_TTI, ACTION_SUBJECT.EDITOR, und
|
|
|
49
49
|
ttiSeverity?: SEVERITY;
|
|
50
50
|
ttiFromInvocationSeverity?: SEVERITY;
|
|
51
51
|
distortedDuration: boolean;
|
|
52
|
-
}
|
|
52
|
+
}>;
|
|
53
53
|
type EditorContentRetrievalPerformedAEP = OperationalAEP<ACTION.EDITOR_CONTENT_RETRIEVAL_PERFORMED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
54
54
|
success: boolean;
|
|
55
55
|
errorInfo?: string;
|
|
56
56
|
errorStack?: string;
|
|
57
|
-
}
|
|
57
|
+
}>;
|
|
58
58
|
type EditorRenderedAEP<T> = OperationalAEP<ACTION.RE_RENDERED, ACTION_SUBJECT.EDITOR | ACTION_SUBJECT.REACT_EDITOR_VIEW, undefined, {
|
|
59
59
|
propsDifference: PropsDifference<T> | ShallowPropsDifference<T>;
|
|
60
60
|
count: number;
|
|
61
|
-
}
|
|
61
|
+
}>;
|
|
62
62
|
export type UfoSessionCompletePayloadAEP = OperationalAEP<ACTION.UFO_SESSION_COMPLETE, ACTION_SUBJECT.EDITOR, undefined, {
|
|
63
63
|
interval: number;
|
|
64
|
-
}
|
|
64
|
+
}>;
|
|
65
65
|
type BrowserFreezePayload = OperationalAEPWithObjectId<ACTION.BROWSER_FREEZE, ACTION_SUBJECT.EDITOR, undefined, {
|
|
66
66
|
freezeTime: number;
|
|
67
67
|
nodeSize: number;
|
|
68
68
|
nodeCount?: Record<string, number>;
|
|
69
69
|
interactionType?: BROWSER_FREEZE_INTERACTION_TYPE;
|
|
70
70
|
severity?: SEVERITY;
|
|
71
|
-
}
|
|
71
|
+
}>;
|
|
72
72
|
type SelectionAEP = TrackAEP<ACTION.MATCHED, ACTION_SUBJECT.SELECTION, undefined, undefined, undefined>;
|
|
73
73
|
type SlowInputAEP = OperationalAEPWithObjectId<ACTION.SLOW_INPUT, ACTION_SUBJECT.EDITOR, undefined, {
|
|
74
74
|
time: number;
|
|
75
75
|
nodeSize: number;
|
|
76
76
|
nodeCount?: Record<string, number>;
|
|
77
|
-
}
|
|
77
|
+
}>;
|
|
78
78
|
type InputPerfSamlingAEP = OperationalAEPWithObjectId<ACTION.INPUT_PERF_SAMPLING | ACTION.INPUT_PERF_SAMPLING_SINGLE_KEYPRESS | ACTION.INPUT_PERF_SAMPLING_RENDERED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
79
79
|
time: number;
|
|
80
80
|
nodeSize: number;
|
|
81
81
|
nodeCount?: Record<string, number>;
|
|
82
82
|
severity?: SEVERITY;
|
|
83
|
-
}
|
|
83
|
+
}>;
|
|
84
84
|
type InputPerfSamplingAvgAEP = OperationalAEPWithObjectId<ACTION.INPUT_PERF_SAMPLING_AVG | ACTION.INPUT_PERF_SAMPLING_SINGLE_KEYPRESS_AVG | ACTION.INPUT_PERF_SAMPLING_RENDERED_AVG, ACTION_SUBJECT.EDITOR, undefined, {
|
|
85
85
|
mean: number;
|
|
86
86
|
median: number;
|
|
@@ -88,31 +88,25 @@ type InputPerfSamplingAvgAEP = OperationalAEPWithObjectId<ACTION.INPUT_PERF_SAMP
|
|
|
88
88
|
nodeCount?: Record<string, number>;
|
|
89
89
|
nodeSize: number;
|
|
90
90
|
severity?: SEVERITY;
|
|
91
|
-
}
|
|
91
|
+
}>;
|
|
92
92
|
type DispatchedTransactionAEP = OperationalAEP<ACTION.TRANSACTION_DISPATCHED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
93
93
|
report: PluginPerformanceReportData;
|
|
94
94
|
participants: number;
|
|
95
|
-
}
|
|
95
|
+
}>;
|
|
96
96
|
type TransactionMutatedAEP = OperationalAEP<ACTION.TRANSACTION_MUTATED_AFTER_DISPATCH, ACTION_SUBJECT.EDITOR, undefined, {
|
|
97
97
|
pluginKey: string;
|
|
98
|
-
}, {
|
|
99
|
-
stack: string | undefined;
|
|
100
98
|
}>;
|
|
101
99
|
type WithPluginStateCalledAEP = OperationalAEP<ACTION.WITH_PLUGIN_STATE_CALLED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
102
100
|
plugin: string;
|
|
103
101
|
duration: number;
|
|
104
|
-
}
|
|
102
|
+
}>;
|
|
105
103
|
type ReactNodeViewRenderedAEP = OperationalAEP<ACTION.REACT_NODEVIEW_RENDERED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
106
104
|
node: string;
|
|
107
105
|
duration: number;
|
|
108
|
-
}, undefined>;
|
|
109
|
-
type UploadExternalFailedAEP = OperationalAEP<ACTION.UPLOAD_EXTERNAL_FAIL, ACTION_SUBJECT.EDITOR, undefined, undefined, undefined>;
|
|
110
|
-
type InvalidProsemirrorDocumentErrorAEP = OperationalAEP<ACTION.INVALID_PROSEMIRROR_DOCUMENT, ACTION_SUBJECT.EDITOR, undefined, {
|
|
111
|
-
errorStack?: string;
|
|
112
|
-
}, undefined>;
|
|
113
|
-
type DocumentProcessingErrorAEP = OperationalAEP<ACTION.DOCUMENT_PROCESSING_ERROR, ACTION_SUBJECT.EDITOR, undefined, undefined, {
|
|
114
|
-
errorStack?: string;
|
|
115
106
|
}>;
|
|
107
|
+
type UploadExternalFailedAEP = OperationalAEP<ACTION.UPLOAD_EXTERNAL_FAIL, ACTION_SUBJECT.EDITOR, undefined, undefined>;
|
|
108
|
+
type InvalidProsemirrorDocumentErrorAEP = OperationalAEP<ACTION.INVALID_PROSEMIRROR_DOCUMENT, ACTION_SUBJECT.EDITOR, undefined, undefined>;
|
|
109
|
+
type DocumentProcessingErrorAEP = OperationalAEP<ACTION.DOCUMENT_PROCESSING_ERROR, ACTION_SUBJECT.EDITOR, undefined, undefined>;
|
|
116
110
|
type EditorStopAEP = UIAEP<ACTION.STOPPED, ACTION_SUBJECT.EDITOR, ACTION_SUBJECT_ID.SAVE | ACTION_SUBJECT_ID.CANCEL, {
|
|
117
111
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT;
|
|
118
112
|
documentSize: number;
|
|
@@ -164,8 +158,8 @@ type RichMediaLayoutAEP = TrackAEP<ACTION.SELECTED, ACTION_SUBJECT.MEDIA_SINGLE
|
|
|
164
158
|
type CodeBlockLanguageSelectedAEP = TrackAEP<ACTION.LANGUAGE_SELECTED, ACTION_SUBJECT.CODE_BLOCK, undefined, {
|
|
165
159
|
language: string;
|
|
166
160
|
}, undefined>;
|
|
167
|
-
type MediaLinkTransformedAEP = OperationalAEP<ACTION.MEDIA_LINK_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined
|
|
168
|
-
type TextLinkCodeMarkTransformedAEP = OperationalAEP<ACTION.TEXT_LINK_MARK_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined
|
|
161
|
+
type MediaLinkTransformedAEP = OperationalAEP<ACTION.MEDIA_LINK_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined>;
|
|
162
|
+
type TextLinkCodeMarkTransformedAEP = OperationalAEP<ACTION.TEXT_LINK_MARK_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined>;
|
|
169
163
|
type DedupeMarksTransformedAEP = OperationalAEP<ACTION.DEDUPE_MARKS_TRANSFORMED_V2, ACTION_SUBJECT.EDITOR, undefined,
|
|
170
164
|
/** UGC WARNING
|
|
171
165
|
*
|
|
@@ -174,9 +168,9 @@ type DedupeMarksTransformedAEP = OperationalAEP<ACTION.DEDUPE_MARKS_TRANSFORMED_
|
|
|
174
168
|
*/
|
|
175
169
|
{
|
|
176
170
|
discardedMarkTypes: string[];
|
|
177
|
-
}
|
|
178
|
-
type IndentationMarksTransformedAEP = OperationalAEP<ACTION.INDENTATION_MARKS_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined
|
|
179
|
-
type NodesMissingContentTransformedAEP = OperationalAEP<ACTION.NODES_MISSING_CONTENT_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined
|
|
180
|
-
type InvalidMediaContentTransformedAEP = OperationalAEP<ACTION.INVALID_MEDIA_CONTENT_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined
|
|
171
|
+
}>;
|
|
172
|
+
type IndentationMarksTransformedAEP = OperationalAEP<ACTION.INDENTATION_MARKS_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined>;
|
|
173
|
+
type NodesMissingContentTransformedAEP = OperationalAEP<ACTION.NODES_MISSING_CONTENT_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined>;
|
|
174
|
+
type InvalidMediaContentTransformedAEP = OperationalAEP<ACTION.INVALID_MEDIA_CONTENT_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined>;
|
|
181
175
|
export type GeneralEventPayload<T = void> = AnnotateButtonAEP | AnnotationAEP | BrowserFreezePayload | ButtonFeedbackAEP | ButtonHelpAEP | ColorPickerAEP | DispatchedTransactionAEP | EditorPerfAEP | EditorRenderedAEP<T> | EditorStartAEP | EditorStopAEP | EditorTTIAEP | ExpandToggleAEP | FeedbackAEP | FullWidthModeAEP | HelpQuickInsertAEP | InputPerfSamlingAEP | InputPerfSamplingAvgAEP | PickerEmojiAEP | PickerImageAEP | ReactNodeViewRenderedAEP | RichMediaLayoutAEP | SelectionAEP | SlowInputAEP | TransactionMutatedAEP | UploadExternalFailedAEP | WithPluginStateCalledAEP | CodeBlockLanguageSelectedAEP | EditorContentRetrievalPerformedAEP | UfoSessionCompletePayloadAEP | MediaLinkTransformedAEP | TextLinkCodeMarkTransformedAEP | DedupeMarksTransformedAEP | IndentationMarksTransformedAEP | NodesMissingContentTransformedAEP | InvalidProsemirrorDocumentErrorAEP | DocumentProcessingErrorAEP | InvalidMediaContentTransformedAEP;
|
|
182
176
|
export {};
|
|
@@ -4,15 +4,11 @@ export type RecentActivitiesPerfAEP = OperationalAEP<ACTION.INVOKED, ACTION_SUBJ
|
|
|
4
4
|
duration: number;
|
|
5
5
|
count: number;
|
|
6
6
|
errorCode?: number;
|
|
7
|
-
}, {
|
|
8
|
-
error?: string;
|
|
9
7
|
}>;
|
|
10
8
|
export type QuickSearchPerfAEP = OperationalAEP<ACTION.INVOKED, ACTION_SUBJECT.SEARCH_RESULT, ACTION_SUBJECT_ID.QUICK_SEARCH, {
|
|
11
9
|
duration: number;
|
|
12
10
|
count: number;
|
|
13
11
|
errorCode?: number;
|
|
14
|
-
}, {
|
|
15
|
-
error?: string;
|
|
16
12
|
}>;
|
|
17
13
|
export type OpenSettingsToolbarAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.BUTTON, ACTION_SUBJECT_ID.GOTO_SMART_LINK_SETTINGS, {}, undefined>;
|
|
18
14
|
export type ViewedCreateLinkInlineDialogAEP = ScreenAEP<ACTION.VIEWED, ACTION_SUBJECT.CREATE_LINK_INLINE_DIALOG, undefined, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { SDKUnsupportedReasons } from '@loomhq/record-sdk';
|
|
2
2
|
import type { ACTION, ACTION_SUBJECT, INPUT_METHOD } from './enums';
|
|
3
3
|
import type { OperationalAEP, TrackAEP } from './utils';
|
|
4
|
-
type LoomInitialisedAEP = OperationalAEP<ACTION.INITIALISED, ACTION_SUBJECT.LOOM, undefined, undefined
|
|
4
|
+
type LoomInitialisedAEP = OperationalAEP<ACTION.INITIALISED, ACTION_SUBJECT.LOOM, undefined, undefined>;
|
|
5
5
|
type LoomDisabledAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.LOOM, undefined, {
|
|
6
6
|
error?: SDKUnsupportedReasons;
|
|
7
|
-
}
|
|
7
|
+
}>;
|
|
8
8
|
type RecordVideoAEP = TrackAEP<ACTION.RECORD_VIDEO, ACTION_SUBJECT.LOOM, undefined, {
|
|
9
9
|
inputMethod: INPUT_METHOD;
|
|
10
10
|
}, undefined>;
|
|
@@ -14,7 +14,7 @@ export declare const PasteContents: {
|
|
|
14
14
|
export type PasteContent = 'text' | 'url' | 'code' | 'mediaSingle' | 'mediaCard' | 'mediaGroup' | 'blockquote' | 'blockCard' | 'bodiedExtension' | 'bulletList' | 'codeBlock' | 'decisionList' | 'decisionItem' | 'extension' | 'heading' | 'layoutSection' | 'tableCells' | 'table' | 'expand' | 'nestedExpand' | 'orderedList' | 'panel' | 'rule' | 'tableHeader' | 'tableRow' | 'taskItem' | 'uncategorized' | 'mixed';
|
|
15
15
|
export type PASTE_ACTION_SUBJECT_ID = ACTION_SUBJECT_ID.PASTE_BLOCKQUOTE | ACTION_SUBJECT_ID.PASTE_BLOCK_CARD | ACTION_SUBJECT_ID.PASTE_BODIED_EXTENSION | ACTION_SUBJECT_ID.PASTE_BULLET_LIST | ACTION_SUBJECT_ID.PASTE_CODE_BLOCK | ACTION_SUBJECT_ID.PASTE_DECISION_LIST | ACTION_SUBJECT_ID.PASTE_EXTENSION | ACTION_SUBJECT_ID.PASTE_HEADING | ACTION_SUBJECT_ID.PASTE_MEDIA_GROUP | ACTION_SUBJECT_ID.PASTE_MEDIA_SINGLE | ACTION_SUBJECT_ID.PASTE_ORDERED_LIST | ACTION_SUBJECT_ID.PASTE_PANEL | ACTION_SUBJECT_ID.PASTE_PARAGRAPH | ACTION_SUBJECT_ID.PASTE_RULE | ACTION_SUBJECT_ID.PASTE_TABLE | ACTION_SUBJECT_ID.PASTE_TABLE_CELL | ACTION_SUBJECT_ID.PASTE_TABLE_HEADER | ACTION_SUBJECT_ID.PASTE_TABLE_ROW | ACTION_SUBJECT_ID.PASTE_TASK_LIST | ACTION_SUBJECT_ID.PASTE_EXPAND | ACTION_SUBJECT_ID.PASTE_NESTED_EXPAND;
|
|
16
16
|
type PasteBaseAEP<Action, Attributes, NonPrivacySafeAttributes> = TrackAEP<Action, ACTION_SUBJECT.DOCUMENT, PASTE_ACTION_SUBJECT_ID, Attributes, NonPrivacySafeAttributes>;
|
|
17
|
-
type PasteBaseOperationalAEP<Action, Attributes
|
|
17
|
+
type PasteBaseOperationalAEP<Action, Attributes> = OperationalAEP<Action, ACTION_SUBJECT.EDITOR, PASTE_ACTION_SUBJECT_ID, Attributes>;
|
|
18
18
|
type PasteAEP = PasteBaseAEP<ACTION.PASTED, {
|
|
19
19
|
inputMethod: INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
|
|
20
20
|
type: PasteType;
|
|
@@ -34,6 +34,6 @@ type PastedTimedAEP = PasteBaseOperationalAEP<ACTION.PASTED_TIMED, {
|
|
|
34
34
|
content: Array<string>;
|
|
35
35
|
time: number;
|
|
36
36
|
distortedDuration: boolean;
|
|
37
|
-
}
|
|
37
|
+
}>;
|
|
38
38
|
export type PasteEventPayload = PasteAEP | PasteAsPlainAEP | PastedTimedAEP;
|
|
39
39
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT
|
|
2
|
-
import { OperationalAEP } from './utils';
|
|
1
|
+
import type { ACTION, ACTION_SUBJECT } from './enums';
|
|
2
|
+
import type { OperationalAEP } from './utils';
|
|
3
3
|
export type InitialiseFragmentMarksAEP = OperationalAEP<ACTION.INITIALISED_FRAGMENT_MARK, ACTION_SUBJECT.DOCUMENT, undefined, {
|
|
4
4
|
duration: number;
|
|
5
5
|
docSize: number;
|
|
6
6
|
count: number;
|
|
7
|
-
}
|
|
7
|
+
}>;
|
|
8
8
|
export type ConnectedNodesAEP = OperationalAEP<ACTION.CONNECTED_NODES, ACTION_SUBJECT.DOCUMENT, undefined, {
|
|
9
9
|
actionType: string;
|
|
10
10
|
docSize: number;
|
|
@@ -12,34 +12,34 @@ export type ConnectedNodesAEP = OperationalAEP<ACTION.CONNECTED_NODES, ACTION_SU
|
|
|
12
12
|
sourceNodeType: string;
|
|
13
13
|
targetNodeType: string;
|
|
14
14
|
type: string;
|
|
15
|
-
}
|
|
15
|
+
}>;
|
|
16
16
|
export type DisconnectedSourceAEP = OperationalAEP<ACTION.DISCONNECTED_SOURCE, ACTION_SUBJECT.DOCUMENT, undefined, {
|
|
17
17
|
docSize: number;
|
|
18
18
|
duration: number;
|
|
19
19
|
targetNodeType: string;
|
|
20
|
-
}
|
|
20
|
+
}>;
|
|
21
21
|
export type DisconnectedTargetAEP = OperationalAEP<ACTION.DISCONNECTED_TARGET, ACTION_SUBJECT.DOCUMENT, undefined, {
|
|
22
22
|
docSize: number;
|
|
23
23
|
duration: number;
|
|
24
24
|
sourceNodeType: string;
|
|
25
25
|
targetNodeType: string;
|
|
26
|
-
}
|
|
26
|
+
}>;
|
|
27
27
|
export type GotConnectionsAEP = OperationalAEP<ACTION.GOT_CONNECTIONS, ACTION_SUBJECT.DOCUMENT, undefined, {
|
|
28
28
|
count: number;
|
|
29
29
|
docSize: number;
|
|
30
30
|
duration: number;
|
|
31
|
-
}
|
|
31
|
+
}>;
|
|
32
32
|
export type UpdatedFragmentMarkNameAEP = OperationalAEP<ACTION.UPDATED_FRAGMENT_MARK_NAME, ACTION_SUBJECT.DOCUMENT, undefined, {
|
|
33
33
|
duration: number;
|
|
34
34
|
nodeType: string;
|
|
35
|
-
}
|
|
35
|
+
}>;
|
|
36
36
|
export type UpdatedSourceAEP = OperationalAEP<ACTION.UPDATED_SOURCE, ACTION_SUBJECT.DOCUMENT, undefined, {
|
|
37
37
|
docSize: number;
|
|
38
38
|
duration: number;
|
|
39
39
|
newSourceNodeType: string;
|
|
40
40
|
oldSourceNodeType: string;
|
|
41
41
|
type: UPDATED_TYPE;
|
|
42
|
-
}
|
|
42
|
+
}>;
|
|
43
43
|
export type UPDATED_TYPE = 'update' | 'replaceAndUpdate';
|
|
44
44
|
export type UpdatedTargetAEP = OperationalAEP<ACTION.UPDATED_TARGET, ACTION_SUBJECT.DOCUMENT, undefined, {
|
|
45
45
|
docSize: number;
|
|
@@ -48,5 +48,5 @@ export type UpdatedTargetAEP = OperationalAEP<ACTION.UPDATED_TARGET, ACTION_SUBJ
|
|
|
48
48
|
oldTargetNodeType: string;
|
|
49
49
|
sourceNodeType: string;
|
|
50
50
|
type: UPDATED_TYPE;
|
|
51
|
-
}
|
|
51
|
+
}>;
|
|
52
52
|
export type ReferentialityEventPayload = InitialiseFragmentMarksAEP | ConnectedNodesAEP | DisconnectedSourceAEP | DisconnectedTargetAEP | GotConnectionsAEP | UpdatedFragmentMarkNameAEP | UpdatedSourceAEP | UpdatedTargetAEP;
|
|
@@ -138,7 +138,7 @@ type TableOverflowChangedAEP = TableAEP<TABLE_ACTION.OVERFLOW_CHANGED, {
|
|
|
138
138
|
} & OverflowStateInfo, undefined>;
|
|
139
139
|
type TableInitialOverflowCapturedAEP = TableAEP<TABLE_ACTION.INITIAL_OVERFLOW_CAPTURED, OverflowStateInfo, undefined>;
|
|
140
140
|
type TableResizedAEP = TableAEP<TABLE_ACTION.RESIZED, ResizedInfo, undefined>;
|
|
141
|
-
type TableResizePerfSamplingAEP = OperationalAEP<TABLE_ACTION.RESIZE_PERF_SAMPLING, ACTION_SUBJECT.TABLE, undefined, ResizePreviewInfo
|
|
141
|
+
type TableResizePerfSamplingAEP = OperationalAEP<TABLE_ACTION.RESIZE_PERF_SAMPLING, ACTION_SUBJECT.TABLE, undefined, ResizePreviewInfo>;
|
|
142
142
|
type TableRowOrColumnMovedAEP = TableAEP<TABLE_ACTION.ROW_OR_COLUMN_MOVED, {
|
|
143
143
|
type: 'row' | 'column';
|
|
144
144
|
}, undefined>;
|
|
@@ -5,11 +5,11 @@ type TypeAheadRenderedAEP = OperationalAEP<ACTION.RENDERED, ACTION_SUBJECT.TYPEA
|
|
|
5
5
|
time?: number;
|
|
6
6
|
items?: number;
|
|
7
7
|
initial?: boolean;
|
|
8
|
-
}
|
|
8
|
+
}>;
|
|
9
9
|
type TypeAheadItemViewedAEP = OperationalAEP<ACTION.VIEWED, ACTION_SUBJECT.TYPEAHEAD_ITEM, undefined, {
|
|
10
10
|
index?: number;
|
|
11
11
|
items?: number;
|
|
12
|
-
}
|
|
12
|
+
}>;
|
|
13
13
|
type TypeAheadAEP<ActionSubjectID, Attributes> = UIAEP<ACTION.INVOKED, ACTION_SUBJECT.TYPEAHEAD, ActionSubjectID, Attributes, undefined>;
|
|
14
14
|
type TypeAheadEmojiAEP = TypeAheadAEP<ACTION_SUBJECT_ID.TYPEAHEAD_EMOJI | TypeAheadAvailableNodes.EMOJI, {
|
|
15
15
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.KEYBOARD;
|
|
@@ -6,19 +6,22 @@ type AEP<Action, ActionSubject, ActionSubjectID, Attributes, NonPrivacySafeAttri
|
|
|
6
6
|
attributes?: Attributes & {
|
|
7
7
|
[key in keyof ImplicitAttributes]?: ImplicitAttributes[key];
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
} & ({
|
|
10
|
+
eventType: Exclude<EventType, EVENT_TYPE.OPERATIONAL>;
|
|
10
11
|
nonPrivacySafeAttributes?: NonPrivacySafeAttributes;
|
|
11
|
-
}
|
|
12
|
+
} | {
|
|
13
|
+
eventType: EVENT_TYPE.OPERATIONAL;
|
|
14
|
+
});
|
|
12
15
|
export type UIAEP<Action, ActionSubject, ActionSubjectID, Attributes, NonPrivacySafeAttributes> = AEP<Action, ActionSubject, ActionSubjectID, Attributes, NonPrivacySafeAttributes, EVENT_TYPE.UI>;
|
|
13
16
|
export type TrackAEP<Action, ActionSubject, ActionSubjectID, Attributes, NonPrivacySafeAttributes, ImplicitAttributes extends {} = {}> = AEP<Action, ActionSubject, ActionSubjectID, Attributes, NonPrivacySafeAttributes, EVENT_TYPE.TRACK, ImplicitAttributes>;
|
|
14
|
-
export type OperationalAEP<Action, ActionSubject, ActionSubjectID, Attributes
|
|
15
|
-
export type OperationalExposureAEP<Action, ActionSubject, ActionSubjectID, Attributes> = OperationalAEP<Action, ActionSubject, ActionSubjectID, Attributes
|
|
17
|
+
export type OperationalAEP<Action, ActionSubject, ActionSubjectID, Attributes> = AEP<Action, ActionSubject, ActionSubjectID, Attributes, undefined, EVENT_TYPE.OPERATIONAL>;
|
|
18
|
+
export type OperationalExposureAEP<Action, ActionSubject, ActionSubjectID, Attributes> = OperationalAEP<Action, ActionSubject, ActionSubjectID, Attributes> & {
|
|
16
19
|
source?: string;
|
|
17
20
|
tags?: string[];
|
|
18
21
|
};
|
|
19
|
-
export type OperationalAEPWithObjectId<Action, ActionSubject, ActionSubjectID, Attributes
|
|
22
|
+
export type OperationalAEPWithObjectId<Action, ActionSubject, ActionSubjectID, Attributes> = OperationalAEP<Action, ActionSubject, ActionSubjectID, Attributes & {
|
|
20
23
|
objectId?: string;
|
|
21
|
-
}
|
|
24
|
+
}>;
|
|
22
25
|
export type ScreenAEP<Action, ActionSubject, ActionSubjectID, Attributes, NonPrivacySafeAttributes> = AEP<Action, ActionSubject, ActionSubjectID, Attributes, NonPrivacySafeAttributes, EVENT_TYPE.SCREEN>;
|
|
23
26
|
export type TableAEP<Action, Attributes, NonPrivacySafeAttributes> = TrackAEP<Action, ACTION_SUBJECT.TABLE, null, Attributes, NonPrivacySafeAttributes>;
|
|
24
27
|
export declare enum SELECTION_TYPE {
|
|
@@ -60,11 +60,11 @@ export type FeatureExposureAEP = OperationalExposureAEP<ACTION.EXPOSED, ACTION_S
|
|
|
60
60
|
type InvalidTransactionErrorAEP = OperationalAEP<ACTION.DISPATCHED_INVALID_TRANSACTION, ACTION_SUBJECT.EDITOR, undefined, {
|
|
61
61
|
analyticsEventPayloads: AnalyticsEventPayloadWithChannel[];
|
|
62
62
|
invalidNodes: (SimplifiedNode | string)[];
|
|
63
|
-
}
|
|
64
|
-
type DispatchedValidTransactionAEP = OperationalAEP<ACTION.DISPATCHED_VALID_TRANSACTION, ACTION_SUBJECT.EDITOR, undefined, undefined
|
|
63
|
+
}>;
|
|
64
|
+
type DispatchedValidTransactionAEP = OperationalAEP<ACTION.DISPATCHED_VALID_TRANSACTION, ACTION_SUBJECT.EDITOR, undefined, undefined>;
|
|
65
65
|
type InvalidTransactionStepErrorAEP = OperationalAEP<ACTION.DISCARDED_INVALID_STEPS_FROM_TRANSACTION, ACTION_SUBJECT.EDITOR, undefined, {
|
|
66
66
|
analyticsEventPayloads: AnalyticsEventPayloadWithChannel[];
|
|
67
|
-
}
|
|
67
|
+
}>;
|
|
68
68
|
export type TransactionEventPayload = DispatchedValidTransactionAEP;
|
|
69
69
|
type FailedToUnmountErrorAEP = OperationalAEP<ACTION.FAILED_TO_UNMOUNT, ACTION_SUBJECT.EDITOR, ACTION_SUBJECT_ID.REACT_NODE_VIEW, {
|
|
70
70
|
error: Error;
|
|
@@ -72,23 +72,23 @@ type FailedToUnmountErrorAEP = OperationalAEP<ACTION.FAILED_TO_UNMOUNT, ACTION_S
|
|
|
72
72
|
container?: string;
|
|
73
73
|
child?: string;
|
|
74
74
|
};
|
|
75
|
-
}
|
|
75
|
+
}>;
|
|
76
76
|
type SynchronyErrorAEP = OperationalAEP<ACTION.SYNCHRONY_ERROR, ACTION_SUBJECT.EDITOR, undefined, {
|
|
77
77
|
error: Error;
|
|
78
78
|
docStructure?: string | SimplifiedNode;
|
|
79
79
|
browserExtensions?: UserBrowserExtensionResults;
|
|
80
|
-
}
|
|
81
|
-
type NewCollabSyncUpErrorAEP = OperationalAEP<ACTION.NEW_COLLAB_SYNC_UP_ERROR_NO_STEPS, ACTION_SUBJECT.EDITOR, undefined, NewCollabSyncUpErrorAttributes
|
|
80
|
+
}>;
|
|
81
|
+
type NewCollabSyncUpErrorAEP = OperationalAEP<ACTION.NEW_COLLAB_SYNC_UP_ERROR_NO_STEPS, ACTION_SUBJECT.EDITOR, undefined, NewCollabSyncUpErrorAttributes>;
|
|
82
82
|
type InvalidDocumentEncounteredAEP = OperationalAEP<ACTION.INVALID_DOCUMENT_ENCOUNTERED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
83
83
|
nodeType: string;
|
|
84
84
|
reason: string;
|
|
85
85
|
tableLocalId: string;
|
|
86
86
|
spanValue: number;
|
|
87
|
-
}
|
|
87
|
+
}>;
|
|
88
88
|
type SynchronyEntityErrorAEP = OperationalAEP<ACTION.SYNCHRONY_ENTITY_ERROR | ACTION.SYNCHRONY_DISCONNECTED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
89
89
|
onLine: boolean;
|
|
90
90
|
visibilityState: string;
|
|
91
|
-
}
|
|
91
|
+
}>;
|
|
92
92
|
type ContentComponentErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.CONTENT_COMPONENT, undefined, {
|
|
93
93
|
component: CONTENT_COMPONENT;
|
|
94
94
|
error: string;
|
|
@@ -97,8 +97,6 @@ type ContentComponentErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.CO
|
|
|
97
97
|
};
|
|
98
98
|
position: number;
|
|
99
99
|
docSize: number;
|
|
100
|
-
}, {
|
|
101
|
-
errorStack?: string;
|
|
102
100
|
}>;
|
|
103
101
|
export type ErrorEventAttributes = {
|
|
104
102
|
error: Error;
|
|
@@ -111,16 +109,14 @@ export type ErrorEventAttributes = {
|
|
|
111
109
|
browserExtensions?: UserBrowserExtensionResults;
|
|
112
110
|
outdatedBrowser?: boolean;
|
|
113
111
|
};
|
|
114
|
-
type ComponentCrashErrorAEP = OperationalAEP<ACTION.EDITOR_CRASHED, ACTION_SUBJECT.FLOATING_CONTEXTUAL_BUTTON | ACTION_SUBJECT.PLUGIN_SLOT | ACTION_SUBJECT.REACT_NODE_VIEW | ACTION_SUBJECT.TABLES_PLUGIN | ACTION_SUBJECT.FLOATING_TOOLBAR_PLUGIN | ACTION_SUBJECT.EDITOR, ACTION_SUBJECT_ID | FLOATING_CONTROLS_TITLE, ErrorEventAttributes
|
|
112
|
+
type ComponentCrashErrorAEP = OperationalAEP<ACTION.EDITOR_CRASHED, ACTION_SUBJECT.FLOATING_CONTEXTUAL_BUTTON | ACTION_SUBJECT.PLUGIN_SLOT | ACTION_SUBJECT.REACT_NODE_VIEW | ACTION_SUBJECT.TABLES_PLUGIN | ACTION_SUBJECT.FLOATING_TOOLBAR_PLUGIN | ACTION_SUBJECT.EDITOR, ACTION_SUBJECT_ID | FLOATING_CONTROLS_TITLE, ErrorEventAttributes>;
|
|
115
113
|
type ComponentCrashAdditionalInfoErrorAEP = OperationalAEP<ACTION.EDITOR_CRASHED_ADDITIONAL_INFORMATION, ACTION_SUBJECT.EDITOR, undefined, {
|
|
116
114
|
errorId: string;
|
|
117
|
-
}, {
|
|
118
|
-
errorStack: string;
|
|
119
115
|
}>;
|
|
120
116
|
type SmartLinkErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.SMART_LINK, undefined, {
|
|
121
117
|
error: string;
|
|
122
118
|
errorStack?: string;
|
|
123
|
-
}
|
|
119
|
+
}>;
|
|
124
120
|
export type ErrorEventPayload = InvalidTransactionErrorAEP | InvalidTransactionStepErrorAEP | FailedToUnmountErrorAEP | SynchronyErrorAEP | InvalidDocumentEncounteredAEP | SynchronyEntityErrorAEP | ContentComponentErrorAEP | ComponentCrashErrorAEP | ComponentCrashAdditionalInfoErrorAEP | SmartLinkErrorAEP;
|
|
125
121
|
export type AnalyticsEventPayloadCallback = (state: EditorState) => AnalyticsEventPayload | undefined;
|
|
126
122
|
export type FireAnalyticsCallback = <T>(payload: FireAnalyticsEventPayload<T>) => void | undefined;
|
|
@@ -41,7 +41,7 @@ type EditorPerfAEP = OperationalAEPWithObjectId<ACTION.EDITOR_MOUNTED | ACTION.P
|
|
|
41
41
|
ttfb?: number;
|
|
42
42
|
severity?: SEVERITY;
|
|
43
43
|
distortedDuration?: boolean;
|
|
44
|
-
}
|
|
44
|
+
}>;
|
|
45
45
|
type EditorTTIAEP = OperationalAEP<ACTION.EDITOR_TTI, ACTION_SUBJECT.EDITOR, undefined, {
|
|
46
46
|
tti: number;
|
|
47
47
|
ttiFromInvocation: number;
|
|
@@ -49,38 +49,38 @@ type EditorTTIAEP = OperationalAEP<ACTION.EDITOR_TTI, ACTION_SUBJECT.EDITOR, und
|
|
|
49
49
|
ttiSeverity?: SEVERITY;
|
|
50
50
|
ttiFromInvocationSeverity?: SEVERITY;
|
|
51
51
|
distortedDuration: boolean;
|
|
52
|
-
}
|
|
52
|
+
}>;
|
|
53
53
|
type EditorContentRetrievalPerformedAEP = OperationalAEP<ACTION.EDITOR_CONTENT_RETRIEVAL_PERFORMED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
54
54
|
success: boolean;
|
|
55
55
|
errorInfo?: string;
|
|
56
56
|
errorStack?: string;
|
|
57
|
-
}
|
|
57
|
+
}>;
|
|
58
58
|
type EditorRenderedAEP<T> = OperationalAEP<ACTION.RE_RENDERED, ACTION_SUBJECT.EDITOR | ACTION_SUBJECT.REACT_EDITOR_VIEW, undefined, {
|
|
59
59
|
propsDifference: PropsDifference<T> | ShallowPropsDifference<T>;
|
|
60
60
|
count: number;
|
|
61
|
-
}
|
|
61
|
+
}>;
|
|
62
62
|
export type UfoSessionCompletePayloadAEP = OperationalAEP<ACTION.UFO_SESSION_COMPLETE, ACTION_SUBJECT.EDITOR, undefined, {
|
|
63
63
|
interval: number;
|
|
64
|
-
}
|
|
64
|
+
}>;
|
|
65
65
|
type BrowserFreezePayload = OperationalAEPWithObjectId<ACTION.BROWSER_FREEZE, ACTION_SUBJECT.EDITOR, undefined, {
|
|
66
66
|
freezeTime: number;
|
|
67
67
|
nodeSize: number;
|
|
68
68
|
nodeCount?: Record<string, number>;
|
|
69
69
|
interactionType?: BROWSER_FREEZE_INTERACTION_TYPE;
|
|
70
70
|
severity?: SEVERITY;
|
|
71
|
-
}
|
|
71
|
+
}>;
|
|
72
72
|
type SelectionAEP = TrackAEP<ACTION.MATCHED, ACTION_SUBJECT.SELECTION, undefined, undefined, undefined>;
|
|
73
73
|
type SlowInputAEP = OperationalAEPWithObjectId<ACTION.SLOW_INPUT, ACTION_SUBJECT.EDITOR, undefined, {
|
|
74
74
|
time: number;
|
|
75
75
|
nodeSize: number;
|
|
76
76
|
nodeCount?: Record<string, number>;
|
|
77
|
-
}
|
|
77
|
+
}>;
|
|
78
78
|
type InputPerfSamlingAEP = OperationalAEPWithObjectId<ACTION.INPUT_PERF_SAMPLING | ACTION.INPUT_PERF_SAMPLING_SINGLE_KEYPRESS | ACTION.INPUT_PERF_SAMPLING_RENDERED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
79
79
|
time: number;
|
|
80
80
|
nodeSize: number;
|
|
81
81
|
nodeCount?: Record<string, number>;
|
|
82
82
|
severity?: SEVERITY;
|
|
83
|
-
}
|
|
83
|
+
}>;
|
|
84
84
|
type InputPerfSamplingAvgAEP = OperationalAEPWithObjectId<ACTION.INPUT_PERF_SAMPLING_AVG | ACTION.INPUT_PERF_SAMPLING_SINGLE_KEYPRESS_AVG | ACTION.INPUT_PERF_SAMPLING_RENDERED_AVG, ACTION_SUBJECT.EDITOR, undefined, {
|
|
85
85
|
mean: number;
|
|
86
86
|
median: number;
|
|
@@ -88,31 +88,25 @@ type InputPerfSamplingAvgAEP = OperationalAEPWithObjectId<ACTION.INPUT_PERF_SAMP
|
|
|
88
88
|
nodeCount?: Record<string, number>;
|
|
89
89
|
nodeSize: number;
|
|
90
90
|
severity?: SEVERITY;
|
|
91
|
-
}
|
|
91
|
+
}>;
|
|
92
92
|
type DispatchedTransactionAEP = OperationalAEP<ACTION.TRANSACTION_DISPATCHED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
93
93
|
report: PluginPerformanceReportData;
|
|
94
94
|
participants: number;
|
|
95
|
-
}
|
|
95
|
+
}>;
|
|
96
96
|
type TransactionMutatedAEP = OperationalAEP<ACTION.TRANSACTION_MUTATED_AFTER_DISPATCH, ACTION_SUBJECT.EDITOR, undefined, {
|
|
97
97
|
pluginKey: string;
|
|
98
|
-
}, {
|
|
99
|
-
stack: string | undefined;
|
|
100
98
|
}>;
|
|
101
99
|
type WithPluginStateCalledAEP = OperationalAEP<ACTION.WITH_PLUGIN_STATE_CALLED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
102
100
|
plugin: string;
|
|
103
101
|
duration: number;
|
|
104
|
-
}
|
|
102
|
+
}>;
|
|
105
103
|
type ReactNodeViewRenderedAEP = OperationalAEP<ACTION.REACT_NODEVIEW_RENDERED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
106
104
|
node: string;
|
|
107
105
|
duration: number;
|
|
108
|
-
}, undefined>;
|
|
109
|
-
type UploadExternalFailedAEP = OperationalAEP<ACTION.UPLOAD_EXTERNAL_FAIL, ACTION_SUBJECT.EDITOR, undefined, undefined, undefined>;
|
|
110
|
-
type InvalidProsemirrorDocumentErrorAEP = OperationalAEP<ACTION.INVALID_PROSEMIRROR_DOCUMENT, ACTION_SUBJECT.EDITOR, undefined, {
|
|
111
|
-
errorStack?: string;
|
|
112
|
-
}, undefined>;
|
|
113
|
-
type DocumentProcessingErrorAEP = OperationalAEP<ACTION.DOCUMENT_PROCESSING_ERROR, ACTION_SUBJECT.EDITOR, undefined, undefined, {
|
|
114
|
-
errorStack?: string;
|
|
115
106
|
}>;
|
|
107
|
+
type UploadExternalFailedAEP = OperationalAEP<ACTION.UPLOAD_EXTERNAL_FAIL, ACTION_SUBJECT.EDITOR, undefined, undefined>;
|
|
108
|
+
type InvalidProsemirrorDocumentErrorAEP = OperationalAEP<ACTION.INVALID_PROSEMIRROR_DOCUMENT, ACTION_SUBJECT.EDITOR, undefined, undefined>;
|
|
109
|
+
type DocumentProcessingErrorAEP = OperationalAEP<ACTION.DOCUMENT_PROCESSING_ERROR, ACTION_SUBJECT.EDITOR, undefined, undefined>;
|
|
116
110
|
type EditorStopAEP = UIAEP<ACTION.STOPPED, ACTION_SUBJECT.EDITOR, ACTION_SUBJECT_ID.SAVE | ACTION_SUBJECT_ID.CANCEL, {
|
|
117
111
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT;
|
|
118
112
|
documentSize: number;
|
|
@@ -164,8 +158,8 @@ type RichMediaLayoutAEP = TrackAEP<ACTION.SELECTED, ACTION_SUBJECT.MEDIA_SINGLE
|
|
|
164
158
|
type CodeBlockLanguageSelectedAEP = TrackAEP<ACTION.LANGUAGE_SELECTED, ACTION_SUBJECT.CODE_BLOCK, undefined, {
|
|
165
159
|
language: string;
|
|
166
160
|
}, undefined>;
|
|
167
|
-
type MediaLinkTransformedAEP = OperationalAEP<ACTION.MEDIA_LINK_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined
|
|
168
|
-
type TextLinkCodeMarkTransformedAEP = OperationalAEP<ACTION.TEXT_LINK_MARK_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined
|
|
161
|
+
type MediaLinkTransformedAEP = OperationalAEP<ACTION.MEDIA_LINK_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined>;
|
|
162
|
+
type TextLinkCodeMarkTransformedAEP = OperationalAEP<ACTION.TEXT_LINK_MARK_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined>;
|
|
169
163
|
type DedupeMarksTransformedAEP = OperationalAEP<ACTION.DEDUPE_MARKS_TRANSFORMED_V2, ACTION_SUBJECT.EDITOR, undefined,
|
|
170
164
|
/** UGC WARNING
|
|
171
165
|
*
|
|
@@ -174,9 +168,9 @@ type DedupeMarksTransformedAEP = OperationalAEP<ACTION.DEDUPE_MARKS_TRANSFORMED_
|
|
|
174
168
|
*/
|
|
175
169
|
{
|
|
176
170
|
discardedMarkTypes: string[];
|
|
177
|
-
}
|
|
178
|
-
type IndentationMarksTransformedAEP = OperationalAEP<ACTION.INDENTATION_MARKS_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined
|
|
179
|
-
type NodesMissingContentTransformedAEP = OperationalAEP<ACTION.NODES_MISSING_CONTENT_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined
|
|
180
|
-
type InvalidMediaContentTransformedAEP = OperationalAEP<ACTION.INVALID_MEDIA_CONTENT_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined
|
|
171
|
+
}>;
|
|
172
|
+
type IndentationMarksTransformedAEP = OperationalAEP<ACTION.INDENTATION_MARKS_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined>;
|
|
173
|
+
type NodesMissingContentTransformedAEP = OperationalAEP<ACTION.NODES_MISSING_CONTENT_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined>;
|
|
174
|
+
type InvalidMediaContentTransformedAEP = OperationalAEP<ACTION.INVALID_MEDIA_CONTENT_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined>;
|
|
181
175
|
export type GeneralEventPayload<T = void> = AnnotateButtonAEP | AnnotationAEP | BrowserFreezePayload | ButtonFeedbackAEP | ButtonHelpAEP | ColorPickerAEP | DispatchedTransactionAEP | EditorPerfAEP | EditorRenderedAEP<T> | EditorStartAEP | EditorStopAEP | EditorTTIAEP | ExpandToggleAEP | FeedbackAEP | FullWidthModeAEP | HelpQuickInsertAEP | InputPerfSamlingAEP | InputPerfSamplingAvgAEP | PickerEmojiAEP | PickerImageAEP | ReactNodeViewRenderedAEP | RichMediaLayoutAEP | SelectionAEP | SlowInputAEP | TransactionMutatedAEP | UploadExternalFailedAEP | WithPluginStateCalledAEP | CodeBlockLanguageSelectedAEP | EditorContentRetrievalPerformedAEP | UfoSessionCompletePayloadAEP | MediaLinkTransformedAEP | TextLinkCodeMarkTransformedAEP | DedupeMarksTransformedAEP | IndentationMarksTransformedAEP | NodesMissingContentTransformedAEP | InvalidProsemirrorDocumentErrorAEP | DocumentProcessingErrorAEP | InvalidMediaContentTransformedAEP;
|
|
182
176
|
export {};
|
|
@@ -4,15 +4,11 @@ export type RecentActivitiesPerfAEP = OperationalAEP<ACTION.INVOKED, ACTION_SUBJ
|
|
|
4
4
|
duration: number;
|
|
5
5
|
count: number;
|
|
6
6
|
errorCode?: number;
|
|
7
|
-
}, {
|
|
8
|
-
error?: string;
|
|
9
7
|
}>;
|
|
10
8
|
export type QuickSearchPerfAEP = OperationalAEP<ACTION.INVOKED, ACTION_SUBJECT.SEARCH_RESULT, ACTION_SUBJECT_ID.QUICK_SEARCH, {
|
|
11
9
|
duration: number;
|
|
12
10
|
count: number;
|
|
13
11
|
errorCode?: number;
|
|
14
|
-
}, {
|
|
15
|
-
error?: string;
|
|
16
12
|
}>;
|
|
17
13
|
export type OpenSettingsToolbarAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.BUTTON, ACTION_SUBJECT_ID.GOTO_SMART_LINK_SETTINGS, {}, undefined>;
|
|
18
14
|
export type ViewedCreateLinkInlineDialogAEP = ScreenAEP<ACTION.VIEWED, ACTION_SUBJECT.CREATE_LINK_INLINE_DIALOG, undefined, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { SDKUnsupportedReasons } from '@loomhq/record-sdk';
|
|
2
2
|
import type { ACTION, ACTION_SUBJECT, INPUT_METHOD } from './enums';
|
|
3
3
|
import type { OperationalAEP, TrackAEP } from './utils';
|
|
4
|
-
type LoomInitialisedAEP = OperationalAEP<ACTION.INITIALISED, ACTION_SUBJECT.LOOM, undefined, undefined
|
|
4
|
+
type LoomInitialisedAEP = OperationalAEP<ACTION.INITIALISED, ACTION_SUBJECT.LOOM, undefined, undefined>;
|
|
5
5
|
type LoomDisabledAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.LOOM, undefined, {
|
|
6
6
|
error?: SDKUnsupportedReasons;
|
|
7
|
-
}
|
|
7
|
+
}>;
|
|
8
8
|
type RecordVideoAEP = TrackAEP<ACTION.RECORD_VIDEO, ACTION_SUBJECT.LOOM, undefined, {
|
|
9
9
|
inputMethod: INPUT_METHOD;
|
|
10
10
|
}, undefined>;
|
|
@@ -14,7 +14,7 @@ export declare const PasteContents: {
|
|
|
14
14
|
export type PasteContent = 'text' | 'url' | 'code' | 'mediaSingle' | 'mediaCard' | 'mediaGroup' | 'blockquote' | 'blockCard' | 'bodiedExtension' | 'bulletList' | 'codeBlock' | 'decisionList' | 'decisionItem' | 'extension' | 'heading' | 'layoutSection' | 'tableCells' | 'table' | 'expand' | 'nestedExpand' | 'orderedList' | 'panel' | 'rule' | 'tableHeader' | 'tableRow' | 'taskItem' | 'uncategorized' | 'mixed';
|
|
15
15
|
export type PASTE_ACTION_SUBJECT_ID = ACTION_SUBJECT_ID.PASTE_BLOCKQUOTE | ACTION_SUBJECT_ID.PASTE_BLOCK_CARD | ACTION_SUBJECT_ID.PASTE_BODIED_EXTENSION | ACTION_SUBJECT_ID.PASTE_BULLET_LIST | ACTION_SUBJECT_ID.PASTE_CODE_BLOCK | ACTION_SUBJECT_ID.PASTE_DECISION_LIST | ACTION_SUBJECT_ID.PASTE_EXTENSION | ACTION_SUBJECT_ID.PASTE_HEADING | ACTION_SUBJECT_ID.PASTE_MEDIA_GROUP | ACTION_SUBJECT_ID.PASTE_MEDIA_SINGLE | ACTION_SUBJECT_ID.PASTE_ORDERED_LIST | ACTION_SUBJECT_ID.PASTE_PANEL | ACTION_SUBJECT_ID.PASTE_PARAGRAPH | ACTION_SUBJECT_ID.PASTE_RULE | ACTION_SUBJECT_ID.PASTE_TABLE | ACTION_SUBJECT_ID.PASTE_TABLE_CELL | ACTION_SUBJECT_ID.PASTE_TABLE_HEADER | ACTION_SUBJECT_ID.PASTE_TABLE_ROW | ACTION_SUBJECT_ID.PASTE_TASK_LIST | ACTION_SUBJECT_ID.PASTE_EXPAND | ACTION_SUBJECT_ID.PASTE_NESTED_EXPAND;
|
|
16
16
|
type PasteBaseAEP<Action, Attributes, NonPrivacySafeAttributes> = TrackAEP<Action, ACTION_SUBJECT.DOCUMENT, PASTE_ACTION_SUBJECT_ID, Attributes, NonPrivacySafeAttributes>;
|
|
17
|
-
type PasteBaseOperationalAEP<Action, Attributes
|
|
17
|
+
type PasteBaseOperationalAEP<Action, Attributes> = OperationalAEP<Action, ACTION_SUBJECT.EDITOR, PASTE_ACTION_SUBJECT_ID, Attributes>;
|
|
18
18
|
type PasteAEP = PasteBaseAEP<ACTION.PASTED, {
|
|
19
19
|
inputMethod: INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
|
|
20
20
|
type: PasteType;
|
|
@@ -34,6 +34,6 @@ type PastedTimedAEP = PasteBaseOperationalAEP<ACTION.PASTED_TIMED, {
|
|
|
34
34
|
content: Array<string>;
|
|
35
35
|
time: number;
|
|
36
36
|
distortedDuration: boolean;
|
|
37
|
-
}
|
|
37
|
+
}>;
|
|
38
38
|
export type PasteEventPayload = PasteAEP | PasteAsPlainAEP | PastedTimedAEP;
|
|
39
39
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT
|
|
2
|
-
import { OperationalAEP } from './utils';
|
|
1
|
+
import type { ACTION, ACTION_SUBJECT } from './enums';
|
|
2
|
+
import type { OperationalAEP } from './utils';
|
|
3
3
|
export type InitialiseFragmentMarksAEP = OperationalAEP<ACTION.INITIALISED_FRAGMENT_MARK, ACTION_SUBJECT.DOCUMENT, undefined, {
|
|
4
4
|
duration: number;
|
|
5
5
|
docSize: number;
|
|
6
6
|
count: number;
|
|
7
|
-
}
|
|
7
|
+
}>;
|
|
8
8
|
export type ConnectedNodesAEP = OperationalAEP<ACTION.CONNECTED_NODES, ACTION_SUBJECT.DOCUMENT, undefined, {
|
|
9
9
|
actionType: string;
|
|
10
10
|
docSize: number;
|
|
@@ -12,34 +12,34 @@ export type ConnectedNodesAEP = OperationalAEP<ACTION.CONNECTED_NODES, ACTION_SU
|
|
|
12
12
|
sourceNodeType: string;
|
|
13
13
|
targetNodeType: string;
|
|
14
14
|
type: string;
|
|
15
|
-
}
|
|
15
|
+
}>;
|
|
16
16
|
export type DisconnectedSourceAEP = OperationalAEP<ACTION.DISCONNECTED_SOURCE, ACTION_SUBJECT.DOCUMENT, undefined, {
|
|
17
17
|
docSize: number;
|
|
18
18
|
duration: number;
|
|
19
19
|
targetNodeType: string;
|
|
20
|
-
}
|
|
20
|
+
}>;
|
|
21
21
|
export type DisconnectedTargetAEP = OperationalAEP<ACTION.DISCONNECTED_TARGET, ACTION_SUBJECT.DOCUMENT, undefined, {
|
|
22
22
|
docSize: number;
|
|
23
23
|
duration: number;
|
|
24
24
|
sourceNodeType: string;
|
|
25
25
|
targetNodeType: string;
|
|
26
|
-
}
|
|
26
|
+
}>;
|
|
27
27
|
export type GotConnectionsAEP = OperationalAEP<ACTION.GOT_CONNECTIONS, ACTION_SUBJECT.DOCUMENT, undefined, {
|
|
28
28
|
count: number;
|
|
29
29
|
docSize: number;
|
|
30
30
|
duration: number;
|
|
31
|
-
}
|
|
31
|
+
}>;
|
|
32
32
|
export type UpdatedFragmentMarkNameAEP = OperationalAEP<ACTION.UPDATED_FRAGMENT_MARK_NAME, ACTION_SUBJECT.DOCUMENT, undefined, {
|
|
33
33
|
duration: number;
|
|
34
34
|
nodeType: string;
|
|
35
|
-
}
|
|
35
|
+
}>;
|
|
36
36
|
export type UpdatedSourceAEP = OperationalAEP<ACTION.UPDATED_SOURCE, ACTION_SUBJECT.DOCUMENT, undefined, {
|
|
37
37
|
docSize: number;
|
|
38
38
|
duration: number;
|
|
39
39
|
newSourceNodeType: string;
|
|
40
40
|
oldSourceNodeType: string;
|
|
41
41
|
type: UPDATED_TYPE;
|
|
42
|
-
}
|
|
42
|
+
}>;
|
|
43
43
|
export type UPDATED_TYPE = 'update' | 'replaceAndUpdate';
|
|
44
44
|
export type UpdatedTargetAEP = OperationalAEP<ACTION.UPDATED_TARGET, ACTION_SUBJECT.DOCUMENT, undefined, {
|
|
45
45
|
docSize: number;
|
|
@@ -48,5 +48,5 @@ export type UpdatedTargetAEP = OperationalAEP<ACTION.UPDATED_TARGET, ACTION_SUBJ
|
|
|
48
48
|
oldTargetNodeType: string;
|
|
49
49
|
sourceNodeType: string;
|
|
50
50
|
type: UPDATED_TYPE;
|
|
51
|
-
}
|
|
51
|
+
}>;
|
|
52
52
|
export type ReferentialityEventPayload = InitialiseFragmentMarksAEP | ConnectedNodesAEP | DisconnectedSourceAEP | DisconnectedTargetAEP | GotConnectionsAEP | UpdatedFragmentMarkNameAEP | UpdatedSourceAEP | UpdatedTargetAEP;
|
|
@@ -138,7 +138,7 @@ type TableOverflowChangedAEP = TableAEP<TABLE_ACTION.OVERFLOW_CHANGED, {
|
|
|
138
138
|
} & OverflowStateInfo, undefined>;
|
|
139
139
|
type TableInitialOverflowCapturedAEP = TableAEP<TABLE_ACTION.INITIAL_OVERFLOW_CAPTURED, OverflowStateInfo, undefined>;
|
|
140
140
|
type TableResizedAEP = TableAEP<TABLE_ACTION.RESIZED, ResizedInfo, undefined>;
|
|
141
|
-
type TableResizePerfSamplingAEP = OperationalAEP<TABLE_ACTION.RESIZE_PERF_SAMPLING, ACTION_SUBJECT.TABLE, undefined, ResizePreviewInfo
|
|
141
|
+
type TableResizePerfSamplingAEP = OperationalAEP<TABLE_ACTION.RESIZE_PERF_SAMPLING, ACTION_SUBJECT.TABLE, undefined, ResizePreviewInfo>;
|
|
142
142
|
type TableRowOrColumnMovedAEP = TableAEP<TABLE_ACTION.ROW_OR_COLUMN_MOVED, {
|
|
143
143
|
type: 'row' | 'column';
|
|
144
144
|
}, undefined>;
|
|
@@ -5,11 +5,11 @@ type TypeAheadRenderedAEP = OperationalAEP<ACTION.RENDERED, ACTION_SUBJECT.TYPEA
|
|
|
5
5
|
time?: number;
|
|
6
6
|
items?: number;
|
|
7
7
|
initial?: boolean;
|
|
8
|
-
}
|
|
8
|
+
}>;
|
|
9
9
|
type TypeAheadItemViewedAEP = OperationalAEP<ACTION.VIEWED, ACTION_SUBJECT.TYPEAHEAD_ITEM, undefined, {
|
|
10
10
|
index?: number;
|
|
11
11
|
items?: number;
|
|
12
|
-
}
|
|
12
|
+
}>;
|
|
13
13
|
type TypeAheadAEP<ActionSubjectID, Attributes> = UIAEP<ACTION.INVOKED, ACTION_SUBJECT.TYPEAHEAD, ActionSubjectID, Attributes, undefined>;
|
|
14
14
|
type TypeAheadEmojiAEP = TypeAheadAEP<ACTION_SUBJECT_ID.TYPEAHEAD_EMOJI | TypeAheadAvailableNodes.EMOJI, {
|
|
15
15
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.KEYBOARD;
|
|
@@ -6,19 +6,22 @@ type AEP<Action, ActionSubject, ActionSubjectID, Attributes, NonPrivacySafeAttri
|
|
|
6
6
|
attributes?: Attributes & {
|
|
7
7
|
[key in keyof ImplicitAttributes]?: ImplicitAttributes[key];
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
} & ({
|
|
10
|
+
eventType: Exclude<EventType, EVENT_TYPE.OPERATIONAL>;
|
|
10
11
|
nonPrivacySafeAttributes?: NonPrivacySafeAttributes;
|
|
11
|
-
}
|
|
12
|
+
} | {
|
|
13
|
+
eventType: EVENT_TYPE.OPERATIONAL;
|
|
14
|
+
});
|
|
12
15
|
export type UIAEP<Action, ActionSubject, ActionSubjectID, Attributes, NonPrivacySafeAttributes> = AEP<Action, ActionSubject, ActionSubjectID, Attributes, NonPrivacySafeAttributes, EVENT_TYPE.UI>;
|
|
13
16
|
export type TrackAEP<Action, ActionSubject, ActionSubjectID, Attributes, NonPrivacySafeAttributes, ImplicitAttributes extends {} = {}> = AEP<Action, ActionSubject, ActionSubjectID, Attributes, NonPrivacySafeAttributes, EVENT_TYPE.TRACK, ImplicitAttributes>;
|
|
14
|
-
export type OperationalAEP<Action, ActionSubject, ActionSubjectID, Attributes
|
|
15
|
-
export type OperationalExposureAEP<Action, ActionSubject, ActionSubjectID, Attributes> = OperationalAEP<Action, ActionSubject, ActionSubjectID, Attributes
|
|
17
|
+
export type OperationalAEP<Action, ActionSubject, ActionSubjectID, Attributes> = AEP<Action, ActionSubject, ActionSubjectID, Attributes, undefined, EVENT_TYPE.OPERATIONAL>;
|
|
18
|
+
export type OperationalExposureAEP<Action, ActionSubject, ActionSubjectID, Attributes> = OperationalAEP<Action, ActionSubject, ActionSubjectID, Attributes> & {
|
|
16
19
|
source?: string;
|
|
17
20
|
tags?: string[];
|
|
18
21
|
};
|
|
19
|
-
export type OperationalAEPWithObjectId<Action, ActionSubject, ActionSubjectID, Attributes
|
|
22
|
+
export type OperationalAEPWithObjectId<Action, ActionSubject, ActionSubjectID, Attributes> = OperationalAEP<Action, ActionSubject, ActionSubjectID, Attributes & {
|
|
20
23
|
objectId?: string;
|
|
21
|
-
}
|
|
24
|
+
}>;
|
|
22
25
|
export type ScreenAEP<Action, ActionSubject, ActionSubjectID, Attributes, NonPrivacySafeAttributes> = AEP<Action, ActionSubject, ActionSubjectID, Attributes, NonPrivacySafeAttributes, EVENT_TYPE.SCREEN>;
|
|
23
26
|
export type TableAEP<Action, Attributes, NonPrivacySafeAttributes> = TrackAEP<Action, ACTION_SUBJECT.TABLE, null, Attributes, NonPrivacySafeAttributes>;
|
|
24
27
|
export declare enum SELECTION_TYPE {
|
package/package.json
CHANGED