@atlaskit/editor-common 73.0.0 → 74.0.1
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 +17 -0
- package/analytics/package.json +2 -2
- package/card/package.json +2 -2
- package/collab/package.json +2 -2
- package/core-utils/package.json +2 -2
- package/dist/cjs/provider-helpers/combine-providers.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/provider-helpers/combine-providers.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/provider-helpers/combine-providers.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/__tests_external__/cases/fundamentals/test-cases/editor-is-present.d.ts +1 -1
- package/dist/types/__tests_external__/cases/fundamentals/test-cases/editor-typing.d.ts +1 -1
- package/dist/types/__tests_external__/page-objects/Editor.d.ts +2 -0
- package/dist/types/__tests_external__/page-objects/EditorSmartLink.d.ts +2 -0
- package/dist/types/__tests_external__/page-objects/Renderer.d.ts +2 -0
- package/dist/types/analytics/api.d.ts +1 -1
- package/dist/types/analytics/types/avatar.d.ts +2 -2
- package/dist/types/analytics/types/block.d.ts +3 -3
- package/dist/types/analytics/types/config-panel-events.d.ts +4 -4
- package/dist/types/analytics/types/cut-copy-events.d.ts +3 -3
- package/dist/types/analytics/types/date-events.d.ts +6 -6
- package/dist/types/analytics/types/dispatch-analytics-event.d.ts +1 -1
- package/dist/types/analytics/types/element-browser-events.d.ts +4 -4
- package/dist/types/analytics/types/events.d.ts +26 -26
- package/dist/types/analytics/types/experimental-events.d.ts +4 -4
- package/dist/types/analytics/types/extension-events.d.ts +5 -5
- package/dist/types/analytics/types/find-replace-events.d.ts +9 -9
- package/dist/types/analytics/types/format-events.d.ts +10 -10
- package/dist/types/analytics/types/general-events.d.ts +40 -40
- package/dist/types/analytics/types/inline-comment-events.d.ts +5 -5
- package/dist/types/analytics/types/insert-events.d.ts +23 -23
- package/dist/types/analytics/types/link-tool-bar-events.d.ts +14 -14
- package/dist/types/analytics/types/list-events.d.ts +11 -11
- package/dist/types/analytics/types/media-events.d.ts +12 -12
- package/dist/types/analytics/types/node-events.d.ts +11 -11
- package/dist/types/analytics/types/paste-events.d.ts +10 -10
- package/dist/types/analytics/types/performance-report.d.ts +1 -1
- package/dist/types/analytics/types/referentiality-events.d.ts +10 -10
- package/dist/types/analytics/types/selection-events.d.ts +6 -6
- package/dist/types/analytics/types/smart-links.d.ts +2 -2
- package/dist/types/analytics/types/substitute-events.d.ts +5 -5
- package/dist/types/analytics/types/table-events.d.ts +18 -18
- package/dist/types/analytics/types/toolbar-button.d.ts +2 -2
- package/dist/types/analytics/types/type-ahead.d.ts +8 -8
- package/dist/types/analytics/types/utils.d.ts +9 -9
- package/dist/types/card/utils.d.ts +2 -2
- package/dist/types/collab/types.d.ts +2 -2
- package/dist/types/event-dispatcher/index.d.ts +2 -2
- package/dist/types/extensions/combine-extension-providers.d.ts +1 -1
- package/dist/types/extensions/default-extension-provider.d.ts +1 -1
- package/dist/types/extensions/extension-handlers.d.ts +2 -2
- package/dist/types/extensions/manifest-helpers.d.ts +6 -5
- package/dist/types/extensions/module-helpers.d.ts +4 -4
- package/dist/types/extensions/types/extension-handler.d.ts +9 -9
- package/dist/types/extensions/types/extension-manifest-common.d.ts +4 -4
- package/dist/types/extensions/types/extension-manifest-toolbar-item.d.ts +11 -11
- package/dist/types/extensions/types/extension-manifest.d.ts +30 -30
- package/dist/types/extensions/types/extension-parameters.d.ts +2 -2
- package/dist/types/extensions/types/field-definitions.d.ts +12 -12
- package/dist/types/extensions/types/utils.d.ts +2 -2
- package/dist/types/hooks/useSharedPluginState.d.ts +2 -2
- package/dist/types/i18n/cs.d.ts +6 -6
- package/dist/types/i18n/da.d.ts +6 -6
- package/dist/types/i18n/de.d.ts +6 -6
- package/dist/types/i18n/en.d.ts +6 -6
- package/dist/types/i18n/en_GB.d.ts +6 -6
- package/dist/types/i18n/en_ZZ.d.ts +6 -6
- package/dist/types/i18n/es.d.ts +6 -6
- package/dist/types/i18n/et.d.ts +1 -1
- package/dist/types/i18n/fi.d.ts +6 -6
- package/dist/types/i18n/fr.d.ts +6 -6
- package/dist/types/i18n/hu.d.ts +6 -6
- package/dist/types/i18n/it.d.ts +6 -6
- package/dist/types/i18n/ja.d.ts +6 -6
- package/dist/types/i18n/ko.d.ts +6 -6
- package/dist/types/i18n/languages.d.ts +6 -6
- package/dist/types/i18n/nb.d.ts +6 -6
- package/dist/types/i18n/nl.d.ts +6 -6
- package/dist/types/i18n/pl.d.ts +6 -6
- package/dist/types/i18n/pt_BR.d.ts +6 -6
- package/dist/types/i18n/pt_PT.d.ts +1 -1
- package/dist/types/i18n/ru.d.ts +6 -6
- package/dist/types/i18n/sk.d.ts +1 -1
- package/dist/types/i18n/sv.d.ts +6 -6
- package/dist/types/i18n/th.d.ts +6 -6
- package/dist/types/i18n/tr.d.ts +6 -6
- package/dist/types/i18n/uk.d.ts +6 -6
- package/dist/types/i18n/vi.d.ts +6 -6
- package/dist/types/i18n/zh.d.ts +6 -6
- package/dist/types/i18n/zh_TW.d.ts +6 -6
- package/dist/types/node-width/index.d.ts +1 -1
- package/dist/types/normalize-feature-flags.d.ts +2 -2
- package/dist/types/preset/plugin-injection-api.d.ts +5 -5
- package/dist/types/provider-factory/autoformatting-provider.d.ts +3 -3
- package/dist/types/provider-factory/card-provider.d.ts +1 -1
- package/dist/types/provider-factory/image-upload-provider.d.ts +2 -2
- package/dist/types/provider-factory/macro-provider.d.ts +1 -1
- package/dist/types/provider-factory/media-provider.d.ts +1 -1
- package/dist/types/provider-factory/quick-insert-provider.d.ts +4 -4
- package/dist/types/provider-factory/search-provider.d.ts +1 -1
- package/dist/types/provider-factory/types.d.ts +3 -3
- package/dist/types/provider-factory/with-providers.d.ts +1 -1
- package/dist/types/provider-helpers/combine-providers.d.ts +4 -4
- package/dist/types/provider-helpers/promise-helpers.d.ts +2 -2
- package/dist/types/react-node-view/types.d.ts +6 -6
- package/dist/types/selection/gap-cursor/utils/is-ignored.d.ts +1 -1
- package/dist/types/selection/gap-cursor/utils/is-valid-target-node.d.ts +1 -1
- package/dist/types/selection/types.d.ts +1 -1
- package/dist/types/selection/utils.d.ts +2 -2
- package/dist/types/styles/shared/table.d.ts +1 -1
- package/dist/types/transforms/expand.d.ts +1 -1
- package/dist/types/types/annotation/emitter.d.ts +5 -5
- package/dist/types/types/annotation/index.d.ts +8 -8
- package/dist/types/types/collab.d.ts +2 -2
- package/dist/types/types/command.d.ts +3 -3
- package/dist/types/types/context-panel.d.ts +1 -1
- package/dist/types/types/copy-button.d.ts +2 -2
- package/dist/types/types/editor-actions.d.ts +2 -2
- package/dist/types/types/editor-appearance.d.ts +1 -1
- package/dist/types/types/editor-container-width.d.ts +2 -2
- package/dist/types/types/editor-plugin.d.ts +4 -4
- package/dist/types/types/editor-react-context.d.ts +1 -1
- package/dist/types/types/empty-state-handler.d.ts +2 -2
- package/dist/types/types/feature-flags.d.ts +3 -3
- package/dist/types/types/floating-toolbar.d.ts +26 -26
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/types/next-editor-plugin.d.ts +38 -38
- package/dist/types/types/plugin-factory.d.ts +3 -3
- package/dist/types/types/quick-insert.d.ts +5 -5
- package/dist/types/types/supported-browsers.d.ts +3 -3
- package/dist/types/types/toolbar.d.ts +2 -2
- package/dist/types/types/type-ahead.d.ts +7 -7
- package/dist/types/types/ui-components.d.ts +2 -2
- package/dist/types/ufo/experience-store.d.ts +2 -2
- package/dist/types/ui/BaseTheme/index.d.ts +2 -2
- package/dist/types/ui/Caption/index.d.ts +1 -1
- package/dist/types/ui/DropList/index.d.ts +1 -1
- package/dist/types/ui/ErrorBoundary/index.d.ts +1 -1
- package/dist/types/ui/EventHandlers/index.d.ts +5 -5
- package/dist/types/ui/Layer/index.d.ts +2 -2
- package/dist/types/ui/MediaSingle/index.d.ts +1 -1
- package/dist/types/ui/OverflowShadow/shadowObserver.d.ts +1 -1
- package/dist/types/ui/PortalProvider/index.d.ts +5 -5
- package/dist/types/ui/WidthProvider/index.d.ts +4 -4
- package/dist/types/ui/WithCreateAnalyticsEvent/index.d.ts +1 -1
- package/dist/types/ui/with-outer-listeners.d.ts +1 -1
- package/dist/types/ui-color/ColorPalette/Palettes/type.d.ts +2 -2
- package/dist/types/ui-menu/ArrowKeyNavigationProvider/types.d.ts +7 -7
- package/dist/types/ui-menu/ToolbarButton/index.d.ts +2 -2
- package/dist/types/ui-react/ReactEditorViewContext.d.ts +1 -1
- package/dist/types/ui-react/with-react-editor-view-outer-listeners.d.ts +2 -2
- package/dist/types/utils/analytics.d.ts +7 -7
- package/dist/types/utils/annotation/index.d.ts +1 -1
- package/dist/types/utils/browser-extensions.d.ts +6 -6
- package/dist/types/utils/collab.d.ts +1 -1
- package/dist/types/utils/compare-props.d.ts +8 -8
- package/dist/types/utils/compareNodes.d.ts +2 -2
- package/dist/types/utils/compose.d.ts +1 -1
- package/dist/types/utils/date.d.ts +1 -1
- package/dist/types/utils/dom.d.ts +1 -1
- package/dist/types/utils/error-reporter.d.ts +1 -1
- package/dist/types/utils/extension-handler.d.ts +2 -2
- package/dist/types/utils/imageLoader.d.ts +1 -1
- package/dist/types/utils/nodes.d.ts +2 -2
- package/dist/types/utils/performance/hooks/use-component-render-tracking/index.d.ts +3 -3
- package/dist/types/utils/plugin-state-factory.d.ts +3 -3
- package/dist/types/utils/profiler/render-count.d.ts +2 -2
- package/dist/types/utils/referentiality.d.ts +6 -6
- package/dist/types/utils/slice.d.ts +2 -2
- package/dist/types/utils/track-unsupported-content.d.ts +4 -4
- package/dist/types/utils/traversor.d.ts +1 -1
- package/dist/types/utils/types.d.ts +2 -2
- package/dist/types/utils/unsupportedContent/get-unsupported-content-level-data.d.ts +2 -2
- package/dist/types/utils/validate-using-spec.d.ts +3 -3
- package/dist/types/utils/validator.d.ts +1 -1
- package/dist/types/with-plugin-state/index.d.ts +6 -6
- package/dist/types/with-plugin-state/types.d.ts +3 -3
- package/emoji/package.json +2 -2
- package/error-boundary/package.json +2 -2
- package/event-dispatcher/package.json +2 -2
- package/extensions/package.json +2 -2
- package/hooks/package.json +2 -2
- package/icons/package.json +2 -2
- package/in-product/package.json +2 -2
- package/keymaps/package.json +2 -2
- package/mention/package.json +2 -2
- package/messages/package.json +2 -2
- package/node-width/package.json +2 -2
- package/normalize-feature-flags/package.json +2 -2
- package/package.json +47 -39
- package/panel/package.json +2 -2
- package/portal-provider/package.json +2 -2
- package/preset/package.json +2 -2
- package/provider-factory/package.json +2 -2
- package/provider-helpers/package.json +2 -2
- package/react-node-view/package.json +2 -2
- package/safe-plugin/package.json +2 -2
- package/selection/package.json +2 -2
- package/styles/package.json +2 -2
- package/transforms/package.json +2 -2
- package/type-ahead/package.json +2 -2
- package/types/package.json +2 -2
- package/ufo/package.json +2 -2
- package/ui/package.json +2 -2
- package/ui-color/package.json +2 -2
- package/ui-menu/package.json +2 -2
- package/ui-react/package.json +2 -2
- package/utils/package.json +2 -2
- package/validator/package.json +2 -2
- package/with-plugin-state/package.json +2 -2
|
@@ -25,16 +25,16 @@ export declare enum BROWSER_FREEZE_INTERACTION_TYPE {
|
|
|
25
25
|
CLICKING = "clicking",
|
|
26
26
|
PASTING = "pasting"
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
type ButtonAEP<ActionSubjectID, Attributes> = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.BUTTON, ActionSubjectID, Attributes, undefined>;
|
|
29
|
+
type PickerAEP<ActionSubjectID, Attributes> = UIAEP<ACTION.OPENED, ACTION_SUBJECT.PICKER, ActionSubjectID, Attributes, undefined>;
|
|
30
|
+
type FeedbackAEP = UIAEP<ACTION.OPENED, ACTION_SUBJECT.FEEDBACK_DIALOG, undefined, {
|
|
31
31
|
inputMethod: INPUT_METHOD.QUICK_INSERT;
|
|
32
32
|
}, undefined>;
|
|
33
|
-
|
|
33
|
+
type EditorStartAEP = UIAEP<ACTION.STARTED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
34
34
|
platform: PLATFORMS.NATIVE | PLATFORMS.HYBRID | PLATFORMS.WEB;
|
|
35
35
|
featureFlags: FeatureFlagKey[];
|
|
36
36
|
}, undefined>;
|
|
37
|
-
|
|
37
|
+
type EditorPerfAEP = OperationalAEPWithObjectId<ACTION.EDITOR_MOUNTED | ACTION.PROSEMIRROR_RENDERED | ACTION.ON_EDITOR_READY_CALLBACK | ACTION.ON_CHANGE_CALLBACK, ACTION_SUBJECT.EDITOR, undefined, {
|
|
38
38
|
duration: number;
|
|
39
39
|
startTime: number;
|
|
40
40
|
nodes?: Record<string, number>;
|
|
@@ -42,26 +42,26 @@ declare type EditorPerfAEP = OperationalAEPWithObjectId<ACTION.EDITOR_MOUNTED |
|
|
|
42
42
|
severity?: SEVERITY;
|
|
43
43
|
distortedDuration?: boolean;
|
|
44
44
|
}, undefined>;
|
|
45
|
-
|
|
45
|
+
type EditorTTIAEP = OperationalAEP<ACTION.EDITOR_TTI, ACTION_SUBJECT.EDITOR, undefined, {
|
|
46
46
|
tti: number;
|
|
47
47
|
ttiFromInvocation: number;
|
|
48
48
|
canceled: boolean;
|
|
49
49
|
ttiSeverity?: SEVERITY;
|
|
50
50
|
ttiFromInvocationSeverity?: SEVERITY;
|
|
51
51
|
}, undefined>;
|
|
52
|
-
|
|
52
|
+
type EditorContentRetrievalPerformedAEP = OperationalAEP<ACTION.EDITOR_CONTENT_RETRIEVAL_PERFORMED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
53
53
|
success: boolean;
|
|
54
54
|
errorInfo?: string;
|
|
55
55
|
errorStack?: string;
|
|
56
56
|
}, undefined>;
|
|
57
|
-
|
|
57
|
+
type EditorRenderedAEP<T> = OperationalAEP<ACTION.RE_RENDERED, ACTION_SUBJECT.EDITOR | ACTION_SUBJECT.REACT_EDITOR_VIEW, undefined, {
|
|
58
58
|
propsDifference: PropsDifference<T> | ShallowPropsDifference<T>;
|
|
59
59
|
count: number;
|
|
60
60
|
}, undefined>;
|
|
61
|
-
export
|
|
61
|
+
export type UfoSessionCompletePayloadAEP = OperationalAEP<ACTION.UFO_SESSION_COMPLETE, ACTION_SUBJECT.EDITOR, undefined, {
|
|
62
62
|
interval: number;
|
|
63
63
|
}, undefined>;
|
|
64
|
-
|
|
64
|
+
type BrowserFreezePayload = OperationalAEPWithObjectId<ACTION.BROWSER_FREEZE, ACTION_SUBJECT.EDITOR, undefined, {
|
|
65
65
|
freezeTime: number;
|
|
66
66
|
nodeSize: number;
|
|
67
67
|
participants: number;
|
|
@@ -69,21 +69,21 @@ declare type BrowserFreezePayload = OperationalAEPWithObjectId<ACTION.BROWSER_FR
|
|
|
69
69
|
interactionType?: BROWSER_FREEZE_INTERACTION_TYPE;
|
|
70
70
|
severity?: SEVERITY;
|
|
71
71
|
}, undefined>;
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
type SelectionAEP = TrackAEP<ACTION.MATCHED, ACTION_SUBJECT.SELECTION, undefined, undefined, undefined>;
|
|
73
|
+
type SlowInputAEP = OperationalAEPWithObjectId<ACTION.SLOW_INPUT, ACTION_SUBJECT.EDITOR, undefined, {
|
|
74
74
|
time: number;
|
|
75
75
|
nodeSize: number;
|
|
76
76
|
participants: number;
|
|
77
77
|
nodeCount?: Record<string, number>;
|
|
78
78
|
}, undefined>;
|
|
79
|
-
|
|
79
|
+
type InputPerfSamlingAEP = OperationalAEPWithObjectId<ACTION.INPUT_PERF_SAMPLING | ACTION.INPUT_PERF_SAMPLING_SINGLE_KEYPRESS | ACTION.INPUT_PERF_SAMPLING_RENDERED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
80
80
|
time: number;
|
|
81
81
|
nodeSize: number;
|
|
82
82
|
participants: number;
|
|
83
83
|
nodeCount?: Record<string, number>;
|
|
84
84
|
severity?: SEVERITY;
|
|
85
85
|
}, undefined>;
|
|
86
|
-
|
|
86
|
+
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, {
|
|
87
87
|
mean: number;
|
|
88
88
|
median: number;
|
|
89
89
|
sampleSize: number;
|
|
@@ -92,33 +92,33 @@ declare type InputPerfSamplingAvgAEP = OperationalAEPWithObjectId<ACTION.INPUT_P
|
|
|
92
92
|
nodeSize: number;
|
|
93
93
|
severity?: SEVERITY;
|
|
94
94
|
}, undefined>;
|
|
95
|
-
|
|
95
|
+
type DispatchedTransactionAEP = OperationalAEP<ACTION.TRANSACTION_DISPATCHED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
96
96
|
report: PluginPerformanceReportData;
|
|
97
97
|
participants: number;
|
|
98
98
|
}, undefined>;
|
|
99
|
-
|
|
99
|
+
type TransactionMutatedAEP = OperationalAEP<ACTION.TRANSACTION_MUTATED_AFTER_DISPATCH, ACTION_SUBJECT.EDITOR, undefined, {
|
|
100
100
|
pluginKey: string;
|
|
101
101
|
}, {
|
|
102
102
|
stack: string | undefined;
|
|
103
103
|
}>;
|
|
104
|
-
|
|
104
|
+
type WithPluginStateCalledAEP = OperationalAEP<ACTION.WITH_PLUGIN_STATE_CALLED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
105
105
|
plugin: string;
|
|
106
106
|
duration: number;
|
|
107
107
|
participants: number;
|
|
108
108
|
}, undefined>;
|
|
109
|
-
|
|
109
|
+
type ReactNodeViewRenderedAEP = OperationalAEP<ACTION.REACT_NODEVIEW_RENDERED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
110
110
|
node: string;
|
|
111
111
|
duration: number;
|
|
112
112
|
participants: number;
|
|
113
113
|
}, undefined>;
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
type UploadExternalFailedAEP = OperationalAEP<ACTION.UPLOAD_EXTERNAL_FAIL, ACTION_SUBJECT.EDITOR, undefined, undefined, undefined>;
|
|
115
|
+
type InvalidProsemirrorDocumentErrorAEP = OperationalAEP<ACTION.INVALID_PROSEMIRROR_DOCUMENT, ACTION_SUBJECT.EDITOR, undefined, {
|
|
116
116
|
errorStack?: string;
|
|
117
117
|
}, undefined>;
|
|
118
|
-
|
|
118
|
+
type DocumentProcessingErrorAEP = OperationalAEP<ACTION.DOCUMENT_PROCESSING_ERROR, ACTION_SUBJECT.EDITOR, undefined, undefined, {
|
|
119
119
|
errorStack?: string;
|
|
120
120
|
}>;
|
|
121
|
-
|
|
121
|
+
type EditorStopAEP = UIAEP<ACTION.STOPPED, ACTION_SUBJECT.EDITOR, ACTION_SUBJECT_ID.SAVE | ACTION_SUBJECT_ID.CANCEL, {
|
|
122
122
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT;
|
|
123
123
|
documentSize: number;
|
|
124
124
|
nodeCount?: {
|
|
@@ -134,44 +134,44 @@ declare type EditorStopAEP = UIAEP<ACTION.STOPPED, ACTION_SUBJECT.EDITOR, ACTION
|
|
|
134
134
|
codeBlocks: number;
|
|
135
135
|
};
|
|
136
136
|
}, undefined>;
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
type AnnotateButtonAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.MEDIA, ACTION_SUBJECT_ID.ANNOTATE_BUTTON, undefined, undefined>;
|
|
138
|
+
type ButtonHelpAEP = ButtonAEP<ACTION_SUBJECT_ID.BUTTON_HELP, {
|
|
139
139
|
inputMethod: INPUT_METHOD.SHORTCUT | INPUT_METHOD.TOOLBAR;
|
|
140
140
|
}>;
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
type ButtonFeedbackAEP = ButtonAEP<ACTION_SUBJECT_ID.BUTTON_FEEDBACK, undefined>;
|
|
142
|
+
type PickerEmojiAEP = PickerAEP<ACTION_SUBJECT_ID.PICKER_EMOJI, {
|
|
143
143
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD;
|
|
144
144
|
}>;
|
|
145
|
-
|
|
145
|
+
type PickerImageAEP = PickerAEP<ACTION_SUBJECT_ID.PICKER_CLOUD, {
|
|
146
146
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.INSERT_MENU;
|
|
147
147
|
}>;
|
|
148
|
-
|
|
148
|
+
type HelpQuickInsertAEP = UIAEP<ACTION.HELP_OPENED, ACTION_SUBJECT.HELP, ACTION_SUBJECT_ID.HELP_QUICK_INSERT, {
|
|
149
149
|
inputMethod: INPUT_METHOD.QUICK_INSERT;
|
|
150
150
|
}, undefined>;
|
|
151
|
-
|
|
151
|
+
type FullWidthModeAEP = TrackAEP<ACTION.CHANGED_FULL_WIDTH_MODE, ACTION_SUBJECT.EDITOR, undefined, {
|
|
152
152
|
previousMode: FULL_WIDTH_MODE;
|
|
153
153
|
newMode: FULL_WIDTH_MODE;
|
|
154
154
|
}, undefined>;
|
|
155
|
-
|
|
155
|
+
type ExpandToggleAEP = TrackAEP<ACTION.TOGGLE_EXPAND, ACTION_SUBJECT.EXPAND | ACTION_SUBJECT.NESTED_EXPAND, undefined, {
|
|
156
156
|
platform: PLATFORMS;
|
|
157
157
|
mode: MODE;
|
|
158
158
|
expanded: boolean;
|
|
159
159
|
}, undefined>;
|
|
160
|
-
export
|
|
160
|
+
export type ColorPickerAEP = TrackAEP<ACTION.UPDATED, ACTION_SUBJECT.PICKER, ACTION_SUBJECT_ID.PICKER_COLOR, {
|
|
161
161
|
color: string;
|
|
162
162
|
label?: string;
|
|
163
163
|
placement: string;
|
|
164
164
|
}, undefined>;
|
|
165
|
-
|
|
165
|
+
type RichMediaLayoutAEP = TrackAEP<ACTION.SELECTED, ACTION_SUBJECT.MEDIA_SINGLE | ACTION_SUBJECT.EMBEDS, ACTION_SUBJECT_ID.RICH_MEDIA_LAYOUT, {
|
|
166
166
|
previousLayoutType: RichMediaLayout;
|
|
167
167
|
currentLayoutType: RichMediaLayout;
|
|
168
168
|
}, undefined>;
|
|
169
|
-
|
|
169
|
+
type CodeBlockLanguageSelectedAEP = TrackAEP<ACTION.LANGUAGE_SELECTED, ACTION_SUBJECT.CODE_BLOCK, undefined, {
|
|
170
170
|
language: string;
|
|
171
171
|
}, undefined>;
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
172
|
+
type MediaLinkTransformedAEP = OperationalAEP<ACTION.MEDIA_LINK_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined, undefined>;
|
|
173
|
+
type TextLinkCodeMarkTransformedAEP = OperationalAEP<ACTION.TEXT_LINK_MARK_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined, undefined>;
|
|
174
|
+
type DedupeMarksTransformedAEP = OperationalAEP<ACTION.DEDUPE_MARKS_TRANSFORMED_V2, ACTION_SUBJECT.EDITOR, undefined,
|
|
175
175
|
/** UGC WARNING
|
|
176
176
|
*
|
|
177
177
|
* DO NOT include `mark` attributes - only the types
|
|
@@ -180,8 +180,8 @@ declare type DedupeMarksTransformedAEP = OperationalAEP<ACTION.DEDUPE_MARKS_TRAN
|
|
|
180
180
|
{
|
|
181
181
|
discardedMarkTypes: string[];
|
|
182
182
|
}, undefined>;
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
export
|
|
183
|
+
type IndentationMarksTransformedAEP = OperationalAEP<ACTION.INDENTATION_MARKS_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined, undefined>;
|
|
184
|
+
type NodesMissingContentTransformedAEP = OperationalAEP<ACTION.NODES_MISSING_CONTENT_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined, undefined>;
|
|
185
|
+
type InvalidMediaContentTransformedAEP = OperationalAEP<ACTION.INVALID_MEDIA_CONTENT_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined, undefined>;
|
|
186
|
+
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;
|
|
187
187
|
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, INPUT_METHOD } from './enums';
|
|
2
2
|
import { TrackAEP } from './utils';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
3
|
+
export type AnnotationActionType = ACTION.INSERTED | ACTION.CLOSED | ACTION.EDITED | ACTION.DELETED | ACTION.OPENED | ACTION.RESOLVED | ACTION.VIEWED;
|
|
4
|
+
export type AnnotationAEP = TrackAEP<AnnotationActionType, ACTION_SUBJECT.ANNOTATION, ACTION_SUBJECT_ID.INLINE_COMMENT, AnnotationAEPAttributes, undefined>;
|
|
5
|
+
export type AnnotationAEPAttributes = undefined | {} | AnnotationDraftAEPAttributes | AnnotationResolvedAEPAttributes;
|
|
6
|
+
export type AnnotationDraftAEPAttributes = {
|
|
7
7
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT;
|
|
8
8
|
overlap: number;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type AnnotationResolvedAEPAttributes = {
|
|
11
11
|
method: RESOLVE_METHOD;
|
|
12
12
|
};
|
|
13
13
|
export declare enum RESOLVE_METHOD {
|
|
@@ -32,24 +32,24 @@ export declare enum LINK_RESOURCE {
|
|
|
32
32
|
TWITTER = "twitterTweet",
|
|
33
33
|
OTHER = "other"
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
type InsertLineBreakAEP = TrackAEP<ACTION.INSERTED, ACTION_SUBJECT.TEXT, ACTION_SUBJECT_ID.LINE_BREAK, undefined, undefined>;
|
|
36
|
+
type InsertDividerAEP = InsertAEP<ACTION_SUBJECT_ID.DIVIDER, {
|
|
37
37
|
inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT;
|
|
38
38
|
}, undefined>;
|
|
39
|
-
|
|
39
|
+
type InsertPanelAEP = InsertAEP<ACTION_SUBJECT_ID.PANEL, {
|
|
40
40
|
inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU;
|
|
41
41
|
panelType: PanelType;
|
|
42
42
|
}, undefined>;
|
|
43
|
-
|
|
43
|
+
type InsertCodeBlockAEP = InsertAEP<ACTION_SUBJECT_ID.CODE_BLOCK, {
|
|
44
44
|
inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.INSERT_MENU;
|
|
45
45
|
}, undefined>;
|
|
46
|
-
|
|
46
|
+
type InsertTableAEP = InsertAEP<ACTION_SUBJECT_ID.TABLE, {
|
|
47
47
|
inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT;
|
|
48
48
|
}, undefined>;
|
|
49
|
-
|
|
49
|
+
type InsertExpandAEP = InsertAEP<ACTION_SUBJECT_ID.EXPAND | ACTION_SUBJECT_ID.NESTED_EXPAND, {
|
|
50
50
|
inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.INSERT_MENU;
|
|
51
51
|
}, undefined>;
|
|
52
|
-
|
|
52
|
+
type InsertActionDecisionAEP = InsertAEP<ACTION_SUBJECT_ID.DECISION | ACTION_SUBJECT_ID.ACTION, {
|
|
53
53
|
inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD;
|
|
54
54
|
containerAri?: string;
|
|
55
55
|
objectAri?: string;
|
|
@@ -59,55 +59,55 @@ declare type InsertActionDecisionAEP = InsertAEP<ACTION_SUBJECT_ID.DECISION | AC
|
|
|
59
59
|
position: number;
|
|
60
60
|
listSize: number;
|
|
61
61
|
}, undefined>;
|
|
62
|
-
|
|
62
|
+
type InsertEmojiAEP = InsertAEP<ACTION_SUBJECT_ID.EMOJI, {
|
|
63
63
|
inputMethod: INPUT_METHOD.TYPEAHEAD | INPUT_METHOD.PICKER | INPUT_METHOD.ASCII;
|
|
64
64
|
}, undefined>;
|
|
65
|
-
|
|
65
|
+
type InsertStatusAEP = InsertAEP<ACTION_SUBJECT_ID.STATUS, {
|
|
66
66
|
inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU;
|
|
67
67
|
}, undefined>;
|
|
68
|
-
export
|
|
69
|
-
|
|
68
|
+
export type InputMethodInsertMedia = INPUT_METHOD.CLIPBOARD | INPUT_METHOD.PICKER_CLOUD | INPUT_METHOD.DRAG_AND_DROP;
|
|
69
|
+
type InsertMediaSingleAEP = InsertAEP<ACTION_SUBJECT_ID.MEDIA, {
|
|
70
70
|
inputMethod: InputMethodInsertMedia;
|
|
71
71
|
fileExtension?: string;
|
|
72
72
|
type: ACTION_SUBJECT_ID.MEDIA_SINGLE | ACTION_SUBJECT_ID.MEDIA_GROUP;
|
|
73
73
|
}, undefined>;
|
|
74
|
-
|
|
74
|
+
type InsertMediaGroupAEP = InsertAEP<ACTION_SUBJECT_ID.MEDIA, {
|
|
75
75
|
inputMethod?: InputMethodInsertMedia;
|
|
76
76
|
fileExtension?: string;
|
|
77
77
|
type: ACTION_SUBJECT_ID.MEDIA_SINGLE | ACTION_SUBJECT_ID.MEDIA_GROUP;
|
|
78
78
|
}, undefined>;
|
|
79
|
-
|
|
79
|
+
type InsertMediaInlineAEP = InsertAEP<ACTION_SUBJECT_ID.MEDIA, {
|
|
80
80
|
inputMethod?: InputMethodInsertMedia;
|
|
81
81
|
fileExtension?: string;
|
|
82
82
|
type: ACTION_SUBJECT_ID.MEDIA_INLINE;
|
|
83
83
|
}, undefined>;
|
|
84
|
-
export
|
|
85
|
-
|
|
84
|
+
export type InputMethodInsertLink = INPUT_METHOD.TYPEAHEAD | INPUT_METHOD.CLIPBOARD | INPUT_METHOD.FORMATTING | INPUT_METHOD.AUTO_DETECT | INPUT_METHOD.MANUAL;
|
|
85
|
+
type InsertLinkAEP = InsertAEP<ACTION_SUBJECT_ID.LINK, {
|
|
86
86
|
inputMethod: InputMethodInsertLink;
|
|
87
87
|
fromCurrentDomain: boolean;
|
|
88
88
|
}, {
|
|
89
89
|
linkDomain: string;
|
|
90
90
|
}>;
|
|
91
|
-
|
|
91
|
+
type InsertLinkPreviewAEP = InsertAEP<ACTION_SUBJECT_ID.LINK_PREVIEW, {
|
|
92
92
|
status: LINK_STATUS.RESOLVED | LINK_STATUS.UNRESOLVED;
|
|
93
93
|
representation?: LINK_REPRESENTATION.TEXT | LINK_REPRESENTATION.INLINE_CARD | LINK_REPRESENTATION.INLINE_CARD | LINK_REPRESENTATION.BLOCK_CARD;
|
|
94
94
|
resourceType?: LINK_RESOURCE.JIRA | LINK_RESOURCE.CONFLUENCE | LINK_RESOURCE.BITBUCKET_PR | LINK_RESOURCE.BITBUCKET_REPO | LINK_RESOURCE.TRELLO_CARD | LINK_RESOURCE.TRELLO_BOARD | LINK_RESOURCE.STATUS_PAGE | LINK_RESOURCE.BOX | LINK_RESOURCE.DROPBOX | LINK_RESOURCE.OFFICE | LINK_RESOURCE.DRIVE | LINK_RESOURCE.YOUTUBE | LINK_RESOURCE.TWITTER | LINK_RESOURCE.OTHER;
|
|
95
95
|
}, undefined>;
|
|
96
|
-
|
|
96
|
+
type InsertMediaLinkAEP = InsertAEP<ACTION_SUBJECT_ID.MEDIA_LINK, {
|
|
97
97
|
inputMethod: INPUT_METHOD.TYPEAHEAD | INPUT_METHOD.MANUAL;
|
|
98
98
|
}, undefined>;
|
|
99
|
-
|
|
99
|
+
type InsertLayoutAEP = InsertAEP<ACTION_SUBJECT_ID.LAYOUT, {
|
|
100
100
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT;
|
|
101
101
|
}, undefined>;
|
|
102
|
-
|
|
102
|
+
type InsertDateAEP = InsertAEP<ACTION_SUBJECT_ID.DATE, {
|
|
103
103
|
inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU;
|
|
104
104
|
}, undefined>;
|
|
105
|
-
|
|
105
|
+
type InsertExtensionAEP = InsertAEP<ACTION_SUBJECT_ID.EXTENSION, {
|
|
106
106
|
extensionType: string;
|
|
107
107
|
key: string;
|
|
108
108
|
inputMethod: INPUT_METHOD.QUICK_INSERT;
|
|
109
109
|
}, any>;
|
|
110
|
-
|
|
110
|
+
type InsertNodeViaExtensionAPIAEP = InsertAEP<undefined, {
|
|
111
111
|
nodeType: string;
|
|
112
112
|
inputMethod: INPUT_METHOD.EXTENSION_API;
|
|
113
113
|
hasReferentiality: Boolean;
|
|
@@ -121,8 +121,8 @@ declare type InsertNodeViaExtensionAPIAEP = InsertAEP<undefined, {
|
|
|
121
121
|
*/
|
|
122
122
|
extensionKey?: string;
|
|
123
123
|
}, undefined>;
|
|
124
|
-
|
|
124
|
+
type InsertPlaceholderTextAEP = InsertAEP<ACTION_SUBJECT_ID.PLACEHOLDER_TEXT, {
|
|
125
125
|
inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU;
|
|
126
126
|
}, undefined>;
|
|
127
|
-
export
|
|
127
|
+
export type InsertEventPayload = InsertDividerAEP | InsertLineBreakAEP | InsertPanelAEP | InsertCodeBlockAEP | InsertTableAEP | InsertExpandAEP | InsertActionDecisionAEP | InsertEmojiAEP | InsertStatusAEP | InsertMediaSingleAEP | InsertMediaGroupAEP | InsertMediaInlineAEP | InsertLinkAEP | InsertLinkPreviewAEP | InsertMediaLinkAEP | InsertSmartLinkAEP | InsertLayoutAEP | InsertExtensionAEP | InsertNodeViaExtensionAPIAEP | InsertDateAEP | InsertPlaceholderTextAEP;
|
|
128
128
|
export {};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
|
|
2
2
|
import type { OperationalAEP, ScreenAEP, UIAEP } from './utils';
|
|
3
|
-
export
|
|
3
|
+
export type RecentActivitiesPerfAEP = OperationalAEP<ACTION.INVOKED, ACTION_SUBJECT.SEARCH_RESULT, ACTION_SUBJECT_ID.RECENT_ACTIVITIES, {
|
|
4
4
|
duration: number;
|
|
5
5
|
count: number;
|
|
6
6
|
errorCode?: number;
|
|
7
7
|
}, {
|
|
8
8
|
error?: string;
|
|
9
9
|
}>;
|
|
10
|
-
export
|
|
10
|
+
export type QuickSearchPerfAEP = OperationalAEP<ACTION.INVOKED, ACTION_SUBJECT.SEARCH_RESULT, ACTION_SUBJECT_ID.QUICK_SEARCH, {
|
|
11
11
|
duration: number;
|
|
12
12
|
count: number;
|
|
13
13
|
errorCode?: number;
|
|
14
14
|
}, {
|
|
15
15
|
error?: string;
|
|
16
16
|
}>;
|
|
17
|
-
export
|
|
18
|
-
export
|
|
17
|
+
export type OpenSettingsToolbarAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.BUTTON, ACTION_SUBJECT_ID.GOTO_SMART_LINK_SETTINGS, {}, undefined>;
|
|
18
|
+
export type ViewedCreateLinkInlineDialogAEP = ScreenAEP<ACTION.VIEWED, ACTION_SUBJECT.CREATE_LINK_INLINE_DIALOG, undefined, {
|
|
19
19
|
timesViewed: number;
|
|
20
20
|
searchSessionId: string;
|
|
21
21
|
trigger: string;
|
|
22
22
|
}, undefined>;
|
|
23
|
-
export
|
|
23
|
+
export type DismissedCreateLinkInlineDialogAEP = UIAEP<ACTION.DISMISSED, ACTION_SUBJECT.CREATE_LINK_INLINE_DIALOG, undefined, {
|
|
24
24
|
source: string;
|
|
25
25
|
searchSessionId: string;
|
|
26
26
|
trigger: string;
|
|
27
27
|
}, undefined>;
|
|
28
|
-
export
|
|
28
|
+
export type EnteredTextLinkSearchInputAEP = UIAEP<ACTION.ENTERED, ACTION_SUBJECT.TEXT, ACTION_SUBJECT_ID.LINK_SEARCH_INPUT, {
|
|
29
29
|
queryLength: number;
|
|
30
30
|
queryVersion: number;
|
|
31
31
|
queryHash: string;
|
|
@@ -35,7 +35,7 @@ export declare type EnteredTextLinkSearchInputAEP = UIAEP<ACTION.ENTERED, ACTION
|
|
|
35
35
|
}, {
|
|
36
36
|
query: string;
|
|
37
37
|
}>;
|
|
38
|
-
export
|
|
38
|
+
export type ShownPreQuerySearchResultsAEP = UIAEP<ACTION.SHOWN, ACTION_SUBJECT.SEARCH_RESULT, ACTION_SUBJECT_ID.PRE_QUERY_SEARCH_RESULTS, {
|
|
39
39
|
source: string;
|
|
40
40
|
preQueryRequestDurationMs: number;
|
|
41
41
|
searchSessionId: string;
|
|
@@ -45,7 +45,7 @@ export declare type ShownPreQuerySearchResultsAEP = UIAEP<ACTION.SHOWN, ACTION_S
|
|
|
45
45
|
resultType: string;
|
|
46
46
|
}>;
|
|
47
47
|
}, undefined>;
|
|
48
|
-
export
|
|
48
|
+
export type ShownPostQuerySearchResultsAEP = UIAEP<ACTION.SHOWN, ACTION_SUBJECT.SEARCH_RESULT, ACTION_SUBJECT_ID.POST_QUERY_SEARCH_RESULTS, {
|
|
49
49
|
source: string;
|
|
50
50
|
postQueryRequestDurationMs: number;
|
|
51
51
|
searchSessionId: string;
|
|
@@ -55,13 +55,13 @@ export declare type ShownPostQuerySearchResultsAEP = UIAEP<ACTION.SHOWN, ACTION_
|
|
|
55
55
|
resultType: string;
|
|
56
56
|
}>;
|
|
57
57
|
}, undefined>;
|
|
58
|
-
export
|
|
58
|
+
export type HighlightedSearchResultsAEP = UIAEP<ACTION.HIGHLIGHTED, ACTION_SUBJECT.SEARCH_RESULT, undefined, {
|
|
59
59
|
source: string;
|
|
60
60
|
searchSessionId: string;
|
|
61
61
|
selectedResultId: string;
|
|
62
62
|
selectedRelativePosition: number;
|
|
63
63
|
}, undefined>;
|
|
64
|
-
export
|
|
64
|
+
export type SelectedSearchResultsAEP = UIAEP<ACTION.SELECTED, ACTION_SUBJECT.SEARCH_RESULT, undefined, {
|
|
65
65
|
source: string;
|
|
66
66
|
searchSessionId: string;
|
|
67
67
|
trigger: string;
|
|
@@ -70,7 +70,7 @@ export declare type SelectedSearchResultsAEP = UIAEP<ACTION.SELECTED, ACTION_SUB
|
|
|
70
70
|
selectedRelativePosition: number;
|
|
71
71
|
prefetch: boolean;
|
|
72
72
|
}, undefined>;
|
|
73
|
-
export
|
|
74
|
-
export
|
|
75
|
-
export
|
|
76
|
-
export
|
|
73
|
+
export type EditLinkToolbarAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.SMART_LINK | ACTION_SUBJECT.HYPERLINK, ACTION_SUBJECT_ID.EDIT_LINK, {}, undefined>;
|
|
74
|
+
export type UnlinkToolbarAEP = UIAEP<ACTION.UNLINK, ACTION_SUBJECT.SMART_LINK | ACTION_SUBJECT.HYPERLINK, ACTION_SUBJECT_ID.CARD_INLINE | undefined, {}, undefined>;
|
|
75
|
+
export type CreateLinkInlineDialogEventPayload = QuickSearchPerfAEP | RecentActivitiesPerfAEP | ViewedCreateLinkInlineDialogAEP | EnteredTextLinkSearchInputAEP | ShownPreQuerySearchResultsAEP | ShownPostQuerySearchResultsAEP | HighlightedSearchResultsAEP | SelectedSearchResultsAEP | DismissedCreateLinkInlineDialogAEP;
|
|
76
|
+
export type CreateLinkInlineDialogActionType = ACTION.INVOKED | ACTION.VIEWED | ACTION.ENTERED | ACTION.SHOWN;
|
|
@@ -20,47 +20,47 @@ export declare enum JOIN_SCENARIOS_WHEN_TYPING_TO_INSERT_LIST {
|
|
|
20
20
|
export declare enum OUTDENT_SCENARIOS {
|
|
21
21
|
SPLIT_LIST = "splitList"
|
|
22
22
|
}
|
|
23
|
-
export
|
|
23
|
+
export type CommonListAnalyticsAttributes = {
|
|
24
24
|
itemIndexAtSelectionStart: number;
|
|
25
25
|
itemIndexAtSelectionEnd: number;
|
|
26
26
|
indentLevelAtSelectionStart: number;
|
|
27
27
|
indentLevelAtSelectionEnd: number;
|
|
28
28
|
itemsInSelection: number;
|
|
29
29
|
};
|
|
30
|
-
export
|
|
30
|
+
export type RestartListsAttributesForListOutdented = {
|
|
31
31
|
outdentScenario?: OUTDENT_SCENARIOS;
|
|
32
32
|
splitListStartNumber?: number;
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
type ListItemJoinedFormatAEP<Attributes> = TrackAEP<ACTION.LIST_ITEM_JOINED, ACTION_SUBJECT.LIST, ACTION_SUBJECT_ID.FORMAT_LIST_BULLET | ACTION_SUBJECT_ID.FORMAT_LIST_NUMBER, Attributes, undefined>;
|
|
35
|
+
type ListItemJoinedForwardAEP = ListItemJoinedFormatAEP<{
|
|
36
36
|
inputMethod: INPUT_METHOD.KEYBOARD;
|
|
37
37
|
direction: DELETE_DIRECTION.FORWARD;
|
|
38
38
|
scenario: LIST_TEXT_SCENARIOS.JOIN_PARAGRAPH_WITH_LIST | LIST_TEXT_SCENARIOS.JOIN_SIBLINGS | LIST_TEXT_SCENARIOS.JOIN_DESCENDANT_TO_PARENT | LIST_TEXT_SCENARIOS.JOIN_PARENT_SIBLING_TO_PARENT_CHILD | LIST_TEXT_SCENARIOS.JOIN_LIST_ITEM_WITH_PARAGRAPH;
|
|
39
39
|
}>;
|
|
40
|
-
|
|
40
|
+
type ListItemJoinedBackwardsAEP = ListItemJoinedFormatAEP<{
|
|
41
41
|
inputMethod: INPUT_METHOD.KEYBOARD;
|
|
42
42
|
direction: DELETE_DIRECTION.BACKWARD;
|
|
43
43
|
scenario: LIST_TEXT_SCENARIOS.JOIN_SIBLINGS | LIST_TEXT_SCENARIOS.JOIN_DESCENDANT_TO_PARENT | LIST_TEXT_SCENARIOS.JOIN_TO_SIBLING_DESCENDANT;
|
|
44
44
|
}>;
|
|
45
|
-
|
|
45
|
+
type ListConvertedTrackAEP = TrackAEP<ACTION.CONVERTED, ACTION_SUBJECT.LIST, ACTION_SUBJECT_ID.FORMAT_LIST_BULLET | ACTION_SUBJECT_ID.FORMAT_LIST_NUMBER | ACTION_SUBJECT_ID.TEXT, {
|
|
46
46
|
transformedFrom: ACTION_SUBJECT_ID.FORMAT_LIST_BULLET | ACTION_SUBJECT_ID.FORMAT_LIST_NUMBER;
|
|
47
47
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.KEYBOARD;
|
|
48
48
|
} & CommonListAnalyticsAttributes, undefined>;
|
|
49
|
-
|
|
49
|
+
type ListIndentedAEP = TrackAEP<ACTION.INDENTED, ACTION_SUBJECT.LIST, ACTION_SUBJECT_ID.FORMAT_LIST_BULLET | ACTION_SUBJECT_ID.FORMAT_LIST_NUMBER, {
|
|
50
50
|
inputMethod: INPUT_METHOD;
|
|
51
51
|
} & CommonListAnalyticsAttributes, undefined>;
|
|
52
|
-
|
|
52
|
+
type ListOutdentedAEP = TrackAEP<ACTION.OUTDENTED, ACTION_SUBJECT.LIST, ACTION_SUBJECT_ID.FORMAT_LIST_BULLET | ACTION_SUBJECT_ID.FORMAT_LIST_NUMBER, {
|
|
53
53
|
inputMethod: INPUT_METHOD;
|
|
54
54
|
} & CommonListAnalyticsAttributes & RestartListsAttributesForListOutdented, undefined>;
|
|
55
|
-
|
|
55
|
+
type ListInsertedAEP = TrackAEP<ACTION.INSERTED, ACTION_SUBJECT.LIST, ACTION_SUBJECT_ID.FORMAT_LIST_BULLET | ACTION_SUBJECT_ID.FORMAT_LIST_NUMBER, {
|
|
56
56
|
inputMethod: INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR | INPUT_METHOD.QUICK_INSERT;
|
|
57
57
|
listStartNumber?: number;
|
|
58
58
|
joinScenario?: JOIN_SCENARIOS_WHEN_TYPING_TO_INSERT_LIST;
|
|
59
59
|
}, undefined>;
|
|
60
|
-
|
|
60
|
+
type ListContentSanitizedAEP = TrackAEP<ACTION.NODE_CONTENT_SANITIZED, ACTION_SUBJECT.LIST, ACTION_SUBJECT_ID.FORMAT_LIST_BULLET | ACTION_SUBJECT_ID.FORMAT_LIST_NUMBER, {
|
|
61
61
|
inputMethod: INPUT_METHOD.FORMATTING;
|
|
62
62
|
nodeSanitized: string;
|
|
63
63
|
marksRemoved: string[];
|
|
64
64
|
}, undefined>;
|
|
65
|
-
export
|
|
65
|
+
export type ListEventPayload = ListItemJoinedForwardAEP | ListItemJoinedBackwardsAEP | ListConvertedTrackAEP | ListIndentedAEP | ListOutdentedAEP | ListInsertedAEP | ListContentSanitizedAEP;
|
|
66
66
|
export {};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
|
|
2
2
|
import type { TrackAEP, UIAEP } from './utils';
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
type MediaBorderActionType = ACTION.UPDATED | ACTION.ADDED | ACTION.DELETED;
|
|
4
|
+
export type MediaBorderTrackAction = TrackAEP<MediaBorderActionType, ACTION_SUBJECT.MEDIA, ACTION_SUBJECT_ID.BORDER, any, undefined>;
|
|
5
|
+
type MediaLinkActionType = ACTION.ADDED | ACTION.EDITED | ACTION.DELETED | ACTION.VISITED | ACTION.ERRORED;
|
|
6
|
+
export type MediaLinkAEP = TrackAEP<MediaLinkActionType, ACTION_SUBJECT.MEDIA, ACTION_SUBJECT_ID.LINK, any, undefined>;
|
|
7
|
+
type MediaCaptionActionType = ACTION.DELETED | ACTION.EDITED | ACTION.ADDED;
|
|
8
|
+
export type CaptionTrackAction = TrackAEP<MediaCaptionActionType, ACTION_SUBJECT.MEDIA_SINGLE, ACTION_SUBJECT_ID.CAPTION, any, undefined>;
|
|
9
|
+
type MediaAltTextAction = TrackAEP<ACTION.ADDED | ACTION.CLOSED | ACTION.EDITED | ACTION.CLEARED | ACTION.OPENED, ACTION_SUBJECT.MEDIA, ACTION_SUBJECT_ID.ALT_TEXT, undefined, undefined>;
|
|
10
|
+
type MediaUIAction = UIAEP<ACTION.EDITED, ACTION_SUBJECT.MEDIA_SINGLE | ACTION_SUBJECT.EMBEDS, ACTION_SUBJECT_ID.RESIZED, any, undefined>;
|
|
11
|
+
type MediaSwitchType = ACTION_SUBJECT_ID.MEDIA_INLINE | ACTION_SUBJECT_ID.MEDIA_GROUP;
|
|
12
|
+
type ChangeMediaAEP = TrackAEP<ACTION.CHANGED_TYPE, ACTION_SUBJECT.MEDIA, undefined, {
|
|
13
13
|
newType: MediaSwitchType;
|
|
14
14
|
previousType: MediaSwitchType;
|
|
15
15
|
}, undefined>;
|
|
16
|
-
export
|
|
17
|
-
export
|
|
16
|
+
export type MediaAltTextActionType = ACTION.ADDED | ACTION.CLOSED | ACTION.EDITED | ACTION.CLEARED | ACTION.OPENED;
|
|
17
|
+
export type MediaEventPayload = MediaLinkAEP | MediaAltTextAction | MediaUIAction | MediaBorderTrackAction | CaptionTrackAction | ChangeMediaAEP;
|
|
18
18
|
export {};
|
|
@@ -14,43 +14,43 @@ export declare enum SMART_LINK_TYPE {
|
|
|
14
14
|
BLOCK_CARD = "block",
|
|
15
15
|
URL = "url"
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
type DeletePanelAEP = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.PANEL, undefined, {
|
|
18
18
|
inputMethod: INPUT_METHOD.TOOLBAR;
|
|
19
19
|
}, undefined>;
|
|
20
|
-
|
|
20
|
+
type ChangePanelAEP = TrackAEP<ACTION.CHANGED_TYPE, ACTION_SUBJECT.PANEL, undefined, {
|
|
21
21
|
newType: PanelType;
|
|
22
22
|
previousType: PanelType;
|
|
23
23
|
}, undefined>;
|
|
24
|
-
|
|
24
|
+
type ChangeSmartLinkAEP = TrackAEP<ACTION.CHANGED_TYPE, ACTION_SUBJECT.SMART_LINK, undefined, {
|
|
25
25
|
newType: SMART_LINK_TYPE;
|
|
26
26
|
previousType: SMART_LINK_TYPE;
|
|
27
27
|
}, undefined>;
|
|
28
|
-
|
|
28
|
+
type VisitedSmartLink = TrackAEP<ACTION.VISITED, ACTION_SUBJECT.SMART_LINK, ACTION_SUBJECT_ID.CARD_BLOCK | ACTION_SUBJECT_ID.CARD_INLINE, {
|
|
29
29
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.CARD;
|
|
30
30
|
}, undefined>;
|
|
31
|
-
|
|
31
|
+
type VisitedHyperlink = TrackAEP<ACTION.VISITED, ACTION_SUBJECT.HYPERLINK, undefined, {
|
|
32
32
|
inputMethod: INPUT_METHOD.TOOLBAR;
|
|
33
33
|
}, undefined>;
|
|
34
|
-
|
|
34
|
+
type DeletedSmartLink = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.SMART_LINK, ACTION_SUBJECT_ID.CARD_BLOCK | ACTION_SUBJECT_ID.CARD_INLINE, {
|
|
35
35
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.CARD;
|
|
36
36
|
displayMode: ACTION_SUBJECT_ID.CARD_BLOCK | ACTION_SUBJECT_ID.CARD_INLINE;
|
|
37
37
|
}, undefined>;
|
|
38
|
-
|
|
38
|
+
type ChangedLayoutAEP = TrackAEP<ACTION.CHANGED_LAYOUT, ACTION_SUBJECT.LAYOUT, undefined, {
|
|
39
39
|
previousLayout: LAYOUT_TYPE;
|
|
40
40
|
newLayout: LAYOUT_TYPE;
|
|
41
41
|
}, undefined>;
|
|
42
|
-
|
|
42
|
+
type DeletedLayoutAEP = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.LAYOUT, undefined, {
|
|
43
43
|
layout: LAYOUT_TYPE;
|
|
44
44
|
}, undefined>;
|
|
45
|
-
|
|
45
|
+
type DeletedExpandAEP = TrackAEP<ACTION.DELETED, ACTION_SUBJECT.EXPAND | ACTION_SUBJECT.NESTED_EXPAND, undefined, {
|
|
46
46
|
inputMethod: INPUT_METHOD.TOOLBAR;
|
|
47
47
|
}, undefined>;
|
|
48
|
-
|
|
48
|
+
type UnsupportedContentAEP = TrackAEP<ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED, ACTION_SUBJECT.DOCUMENT, ACTION_SUBJECT_ID.UNSUPPORTED_BLOCK | ACTION_SUBJECT_ID.UNSUPPORTED_INLINE | ACTION_SUBJECT_ID.UNSUPPORTED_MARK, {
|
|
49
49
|
unsupportedNode: {
|
|
50
50
|
type: string;
|
|
51
51
|
parentType: string;
|
|
52
52
|
ancestry: string;
|
|
53
53
|
};
|
|
54
54
|
}, undefined>;
|
|
55
|
-
export
|
|
55
|
+
export type NodeEventPayload = ChangePanelAEP | DeletePanelAEP | DeletedSmartLink | VisitedSmartLink | VisitedHyperlink | ChangedLayoutAEP | DeletedLayoutAEP | DeletedExpandAEP | ChangeSmartLinkAEP | UnsupportedContentAEP;
|
|
56
56
|
export {};
|
|
@@ -3,19 +3,19 @@ import type { OperationalAEP, TrackAEP } from './utils';
|
|
|
3
3
|
export declare const PasteTypes: {
|
|
4
4
|
[type: string]: PasteType;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type PasteType = 'richText' | 'plain' | 'markdown' | 'binary';
|
|
7
7
|
export declare const PasteSources: {
|
|
8
8
|
[type: string]: PasteSource;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type PasteSource = 'fabric-editor' | 'apple-pages' | 'google-spreadsheets' | 'google-docs' | 'microsoft-excel' | 'microsoft-word' | 'dropbox-paper' | 'uncategorized';
|
|
11
11
|
export declare const PasteContents: {
|
|
12
12
|
[P in PasteContent]: P;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
+
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
|
+
type PasteBaseAEP<Action, Attributes, NonPrivacySafeAttributes> = TrackAEP<Action, ACTION_SUBJECT.DOCUMENT, PASTE_ACTION_SUBJECT_ID, Attributes, NonPrivacySafeAttributes>;
|
|
17
|
+
type PasteBaseOperationalAEP<Action, Attributes, NonPrivacySafeAttributes> = OperationalAEP<Action, ACTION_SUBJECT.EDITOR, PASTE_ACTION_SUBJECT_ID, Attributes, NonPrivacySafeAttributes>;
|
|
18
|
+
type PasteAEP = PasteBaseAEP<ACTION.PASTED, {
|
|
19
19
|
inputMethod: INPUT_METHOD.KEYBOARD;
|
|
20
20
|
type: PasteType;
|
|
21
21
|
content: PasteContent;
|
|
@@ -24,16 +24,16 @@ declare type PasteAEP = PasteBaseAEP<ACTION.PASTED, {
|
|
|
24
24
|
}, {
|
|
25
25
|
linkDomain?: string[];
|
|
26
26
|
} | undefined>;
|
|
27
|
-
|
|
27
|
+
type PasteAsPlainAEP = PasteBaseAEP<ACTION.PASTED_AS_PLAIN, {
|
|
28
28
|
inputMethod: string;
|
|
29
29
|
pasteSize: number;
|
|
30
30
|
linksInPasteCount: number;
|
|
31
31
|
}, undefined>;
|
|
32
|
-
|
|
32
|
+
type PastedTimedAEP = PasteBaseOperationalAEP<ACTION.PASTED_TIMED, {
|
|
33
33
|
pasteIntoNode: PASTE_ACTION_SUBJECT_ID;
|
|
34
34
|
content: Array<string>;
|
|
35
35
|
time: number;
|
|
36
36
|
distortedDuration: boolean;
|
|
37
37
|
}, undefined>;
|
|
38
|
-
export
|
|
38
|
+
export type PasteEventPayload = PasteAEP | PasteAsPlainAEP | PastedTimedAEP;
|
|
39
39
|
export {};
|