@atlaskit/editor-core 98.5.1 → 98.6.0

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.
Files changed (144) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/es2015/plugins/analytics/index.js +1 -0
  3. package/dist/es2015/plugins/analytics/index.js.map +1 -1
  4. package/dist/es2015/plugins/analytics/plugin.d.ts +2 -1
  5. package/dist/es2015/plugins/analytics/plugin.js +10 -0
  6. package/dist/es2015/plugins/analytics/plugin.js.map +1 -1
  7. package/dist/es2015/plugins/analytics/types/enums.d.ts +63 -0
  8. package/dist/es2015/plugins/analytics/types/enums.js +1 -0
  9. package/dist/es2015/plugins/analytics/types/enums.js.map +1 -0
  10. package/dist/es2015/plugins/analytics/types/events.d.ts +20 -0
  11. package/dist/es2015/plugins/analytics/types/events.js +1 -0
  12. package/dist/es2015/plugins/analytics/types/events.js.map +1 -0
  13. package/dist/es2015/plugins/analytics/types/format-events.d.ts +46 -0
  14. package/dist/es2015/plugins/analytics/types/format-events.js +1 -0
  15. package/dist/es2015/plugins/analytics/types/format-events.js.map +1 -0
  16. package/dist/es2015/plugins/analytics/types/index.d.ts +5 -0
  17. package/dist/es2015/plugins/analytics/types/index.js +5 -0
  18. package/dist/es2015/plugins/analytics/types/index.js.map +1 -0
  19. package/dist/es2015/plugins/analytics/types/substitute-events.d.ts +25 -0
  20. package/dist/es2015/plugins/analytics/types/substitute-events.js +1 -0
  21. package/dist/es2015/plugins/analytics/types/substitute-events.js.map +1 -0
  22. package/dist/es2015/plugins/analytics/types/ui-events.d.ts +53 -0
  23. package/dist/es2015/plugins/analytics/types/ui-events.js +1 -0
  24. package/dist/es2015/plugins/analytics/types/ui-events.js.map +1 -0
  25. package/dist/es2015/plugins/block-type/types.d.ts +1 -1
  26. package/dist/es2015/plugins/emoji/index.js +9 -1
  27. package/dist/es2015/plugins/emoji/index.js.map +1 -1
  28. package/dist/es2015/plugins/emoji/pm-plugins/input-rules.js +9 -1
  29. package/dist/es2015/plugins/emoji/pm-plugins/input-rules.js.map +1 -1
  30. package/dist/es2015/plugins/extension/ui/Extension/Extension/styles.d.ts +1 -1
  31. package/dist/es2015/plugins/help-dialog/index.js +8 -0
  32. package/dist/es2015/plugins/help-dialog/index.js.map +1 -1
  33. package/dist/es2015/plugins/hyperlink/commands.d.ts +2 -1
  34. package/dist/es2015/plugins/hyperlink/commands.js +12 -2
  35. package/dist/es2015/plugins/hyperlink/commands.js.map +1 -1
  36. package/dist/es2015/plugins/hyperlink/index.js +9 -1
  37. package/dist/es2015/plugins/hyperlink/index.js.map +1 -1
  38. package/dist/es2015/plugins/hyperlink/pm-plugins/keymap.js +1 -1
  39. package/dist/es2015/plugins/hyperlink/pm-plugins/keymap.js.map +1 -1
  40. package/dist/es2015/plugins/insert-block/index.js +2 -2
  41. package/dist/es2015/plugins/insert-block/index.js.map +1 -1
  42. package/dist/es2015/plugins/insert-block/ui/ToolbarInsertBlock/index.d.ts +2 -0
  43. package/dist/es2015/plugins/insert-block/ui/ToolbarInsertBlock/index.js +28 -5
  44. package/dist/es2015/plugins/insert-block/ui/ToolbarInsertBlock/index.js.map +1 -1
  45. package/dist/es2015/plugins/media/index.js +9 -1
  46. package/dist/es2015/plugins/media/index.js.map +1 -1
  47. package/dist/es2015/plugins/mentions/commands/insert-mention-query.js +8 -1
  48. package/dist/es2015/plugins/mentions/commands/insert-mention-query.js.map +1 -1
  49. package/dist/es2015/plugins/mentions/index.js +21 -2
  50. package/dist/es2015/plugins/mentions/index.js.map +1 -1
  51. package/dist/es2015/plugins/quick-insert/index.js +14 -1
  52. package/dist/es2015/plugins/quick-insert/index.js.map +1 -1
  53. package/dist/es2015/plugins/rank.js +1 -0
  54. package/dist/es2015/plugins/rank.js.map +1 -1
  55. package/dist/es2015/plugins/save-on-enter/index.d.ts +2 -1
  56. package/dist/es2015/plugins/save-on-enter/index.js +17 -3
  57. package/dist/es2015/plugins/save-on-enter/index.js.map +1 -1
  58. package/dist/es2015/plugins/submit-editor/index.d.ts +2 -1
  59. package/dist/es2015/plugins/submit-editor/index.js +17 -3
  60. package/dist/es2015/plugins/submit-editor/index.js.map +1 -1
  61. package/dist/es2015/plugins/type-ahead/pm-plugins/main.d.ts +2 -1
  62. package/dist/es2015/plugins/type-ahead/pm-plugins/main.js +4 -2
  63. package/dist/es2015/plugins/type-ahead/pm-plugins/main.js.map +1 -1
  64. package/dist/es2015/plugins/type-ahead/types.d.ts +2 -1
  65. package/dist/es2015/ui/ToolbarFeedback/index.d.ts +4 -0
  66. package/dist/es2015/ui/ToolbarFeedback/index.js +15 -0
  67. package/dist/es2015/ui/ToolbarFeedback/index.js.map +1 -1
  68. package/dist/es2015/ui/WithHelpTrigger/index.js +14 -1
  69. package/dist/es2015/ui/WithHelpTrigger/index.js.map +1 -1
  70. package/dist/es5/plugins/analytics/index.js +1 -0
  71. package/dist/es5/plugins/analytics/index.js.map +1 -1
  72. package/dist/es5/plugins/analytics/plugin.d.ts +2 -1
  73. package/dist/es5/plugins/analytics/plugin.js +11 -0
  74. package/dist/es5/plugins/analytics/plugin.js.map +1 -1
  75. package/dist/es5/plugins/analytics/types/enums.d.ts +63 -0
  76. package/dist/es5/plugins/analytics/{types.js → types/enums.js} +1 -1
  77. package/dist/es5/plugins/analytics/types/enums.js.map +1 -0
  78. package/dist/es5/plugins/analytics/types/events.d.ts +20 -0
  79. package/dist/es5/plugins/analytics/types/events.js +3 -0
  80. package/dist/es5/plugins/analytics/types/events.js.map +1 -0
  81. package/dist/es5/plugins/analytics/types/format-events.d.ts +46 -0
  82. package/dist/es5/plugins/analytics/types/format-events.js +3 -0
  83. package/dist/es5/plugins/analytics/types/format-events.js.map +1 -0
  84. package/dist/es5/plugins/analytics/types/index.d.ts +5 -0
  85. package/dist/es5/plugins/analytics/types/index.js +8 -0
  86. package/dist/es5/plugins/analytics/types/index.js.map +1 -0
  87. package/dist/es5/plugins/analytics/types/substitute-events.d.ts +25 -0
  88. package/dist/es5/plugins/analytics/types/substitute-events.js +3 -0
  89. package/dist/es5/plugins/analytics/types/substitute-events.js.map +1 -0
  90. package/dist/es5/plugins/analytics/types/ui-events.d.ts +53 -0
  91. package/dist/es5/plugins/analytics/types/ui-events.js +3 -0
  92. package/dist/es5/plugins/analytics/types/ui-events.js.map +1 -0
  93. package/dist/es5/plugins/block-type/types.d.ts +1 -1
  94. package/dist/es5/plugins/emoji/index.js +9 -1
  95. package/dist/es5/plugins/emoji/index.js.map +1 -1
  96. package/dist/es5/plugins/emoji/pm-plugins/input-rules.js +9 -1
  97. package/dist/es5/plugins/emoji/pm-plugins/input-rules.js.map +1 -1
  98. package/dist/es5/plugins/extension/ui/Extension/Extension/styles.d.ts +1 -1
  99. package/dist/es5/plugins/help-dialog/index.js +8 -0
  100. package/dist/es5/plugins/help-dialog/index.js.map +1 -1
  101. package/dist/es5/plugins/hyperlink/commands.d.ts +2 -1
  102. package/dist/es5/plugins/hyperlink/commands.js +12 -2
  103. package/dist/es5/plugins/hyperlink/commands.js.map +1 -1
  104. package/dist/es5/plugins/hyperlink/index.js +9 -1
  105. package/dist/es5/plugins/hyperlink/index.js.map +1 -1
  106. package/dist/es5/plugins/hyperlink/pm-plugins/keymap.js +1 -1
  107. package/dist/es5/plugins/hyperlink/pm-plugins/keymap.js.map +1 -1
  108. package/dist/es5/plugins/insert-block/index.js +2 -2
  109. package/dist/es5/plugins/insert-block/index.js.map +1 -1
  110. package/dist/es5/plugins/insert-block/ui/ToolbarInsertBlock/index.d.ts +2 -0
  111. package/dist/es5/plugins/insert-block/ui/ToolbarInsertBlock/index.js +28 -5
  112. package/dist/es5/plugins/insert-block/ui/ToolbarInsertBlock/index.js.map +1 -1
  113. package/dist/es5/plugins/media/index.js +9 -1
  114. package/dist/es5/plugins/media/index.js.map +1 -1
  115. package/dist/es5/plugins/mentions/commands/insert-mention-query.js +8 -1
  116. package/dist/es5/plugins/mentions/commands/insert-mention-query.js.map +1 -1
  117. package/dist/es5/plugins/mentions/index.js +21 -2
  118. package/dist/es5/plugins/mentions/index.js.map +1 -1
  119. package/dist/es5/plugins/quick-insert/index.js +14 -1
  120. package/dist/es5/plugins/quick-insert/index.js.map +1 -1
  121. package/dist/es5/plugins/rank.js +1 -0
  122. package/dist/es5/plugins/rank.js.map +1 -1
  123. package/dist/es5/plugins/save-on-enter/index.d.ts +2 -1
  124. package/dist/es5/plugins/save-on-enter/index.js +17 -3
  125. package/dist/es5/plugins/save-on-enter/index.js.map +1 -1
  126. package/dist/es5/plugins/submit-editor/index.d.ts +2 -1
  127. package/dist/es5/plugins/submit-editor/index.js +17 -3
  128. package/dist/es5/plugins/submit-editor/index.js.map +1 -1
  129. package/dist/es5/plugins/type-ahead/pm-plugins/main.d.ts +2 -1
  130. package/dist/es5/plugins/type-ahead/pm-plugins/main.js +4 -2
  131. package/dist/es5/plugins/type-ahead/pm-plugins/main.js.map +1 -1
  132. package/dist/es5/plugins/type-ahead/types.d.ts +2 -1
  133. package/dist/es5/ui/ToolbarFeedback/index.d.ts +4 -0
  134. package/dist/es5/ui/ToolbarFeedback/index.js +15 -0
  135. package/dist/es5/ui/ToolbarFeedback/index.js.map +1 -1
  136. package/dist/es5/ui/WithHelpTrigger/index.js +14 -1
  137. package/dist/es5/ui/WithHelpTrigger/index.js.map +1 -1
  138. package/dist/package.json +1 -1
  139. package/package.json +3 -3
  140. package/dist/es2015/plugins/analytics/types.d.ts +0 -118
  141. package/dist/es2015/plugins/analytics/types.js +0 -1
  142. package/dist/es2015/plugins/analytics/types.js.map +0 -1
  143. package/dist/es5/plugins/analytics/types.d.ts +0 -118
  144. package/dist/es5/plugins/analytics/types.js.map +0 -1
@@ -1,118 +0,0 @@
1
- import { Dispatch } from '../../event-dispatcher';
2
- declare type AEP<Action, ActionSubject, ActionSubjectID, Attributes, EventType> = {
3
- action: Action;
4
- actionSubject: ActionSubject;
5
- actionSubjectId?: ActionSubjectID;
6
- attributes?: Attributes;
7
- eventType: EventType;
8
- };
9
- declare type UIAEP<Action, ActionSubject, ActionSubjectID, Attributes> = AEP<Action, ActionSubject, ActionSubjectID, Attributes, 'ui'>;
10
- declare type TrackAEP<Action, ActionSubject, ActionSubjectID, Attributes> = AEP<Action, ActionSubject, ActionSubjectID, Attributes, 'track'>;
11
- declare type ButtonAEP<ActionSubjectID, Attributes> = UIAEP<'clicked', 'button', ActionSubjectID, Attributes>;
12
- declare type PickerAEP<ActionSubjectID, Attributes> = UIAEP<'opened', 'picker', ActionSubjectID, Attributes>;
13
- declare type TypeAheadAEP<ActionSubjectID, Attributes> = UIAEP<'invoked', 'typeAhead', ActionSubjectID, Attributes>;
14
- declare type EditorStartAEP = UIAEP<'started', 'editor', undefined, {
15
- platform: 'mobileNative' | 'mobileHybrid' | 'web';
16
- }>;
17
- declare type EditorStopAEP = UIAEP<'stopped', 'editor', 'save' | 'cancel', {
18
- inputMethod: 'toolbar' | 'shortcut';
19
- documentSize: number;
20
- nodeCount?: {
21
- tables: number;
22
- headings: number;
23
- lists: number;
24
- mediaSingles: number;
25
- mediaGroups: number;
26
- panels: number;
27
- extensions: number;
28
- decisions: number;
29
- actions: number;
30
- codeBlocks: number;
31
- };
32
- }>;
33
- declare type ButtonHelpAEP = ButtonAEP<'helpButton', {
34
- inputMethod: 'shortcut' | 'toolbar';
35
- }>;
36
- declare type ButtonFeedbackAEP = ButtonAEP<'feedbackButton', undefined>;
37
- declare type PickerEmojiAEP = PickerAEP<'emojiPicker', {
38
- inputMethod: 'toolbar';
39
- }>;
40
- declare type PickerImageAEP = PickerAEP<'cloudPicker', {
41
- inputMethod: 'toolbar' | 'quickInsert';
42
- }>;
43
- declare type TypeAheadQuickInsertAEP = TypeAheadAEP<'quickInsertTypeAhead', {
44
- inputMethod: 'keyboard';
45
- }>;
46
- declare type TypeAheadEmojiAEP = TypeAheadAEP<'emojiTypeAhead', {
47
- inputMethod: 'quickInsert' | 'keyboard';
48
- }>;
49
- declare type TypeAheadLinkAEP = TypeAheadAEP<'linkTypeAhead', {
50
- inputMethod: 'toolbar' | 'quickInsert' | 'shortcut';
51
- }>;
52
- declare type TypeAheadMentionAEP = TypeAheadAEP<'mentionTypeAhead', {
53
- inputMethod: 'toolbar' | 'quickInsert' | 'keyboard';
54
- }>;
55
- declare type UIEventPayload = EditorStartAEP | EditorStopAEP | ButtonHelpAEP | ButtonFeedbackAEP | PickerEmojiAEP | PickerImageAEP | TypeAheadQuickInsertAEP | TypeAheadEmojiAEP | TypeAheadLinkAEP | TypeAheadMentionAEP;
56
- /** Text input and formatting events */
57
- declare type FormatAEP<ActionSubjectID, Attributes> = TrackAEP<'formatted', 'text', ActionSubjectID, Attributes>;
58
- declare type SubstituteAEP<ActionSubjectID, Attributes> = TrackAEP<'autoSubstituted', 'text', ActionSubjectID, Attributes>;
59
- declare type FormatBasicAEP = FormatAEP<'strong' | 'italic' | 'underline' | 'code' | 'strike', {
60
- inputMethod: 'toolbar' | 'shortcut' | 'autoformatting' | 'floatingToolbar';
61
- }>;
62
- declare type FormatSuperSubAEP = FormatAEP<'superscript' | 'subscript', {
63
- inputMethod: 'toolbar';
64
- }>;
65
- declare type FormatIndentationAEP = FormatAEP<'indentation', {
66
- inputMethod: 'toolbar' | 'keyboard';
67
- direction: 'indent' | 'outdent';
68
- previousIndentationLevel: number;
69
- newIndentLevel: number;
70
- indentType: 'paragraph' | 'list' | 'heading' | 'codeBlock';
71
- }>;
72
- declare type FormatHeadingAEP = FormatAEP<'heading', {
73
- inputMethod: 'toolbar' | 'shortcut' | 'autoformatting';
74
- newHeadlineLevel: 0 | 1 | 2 | 3 | 4 | 5 | 6;
75
- }>;
76
- declare type FormatBlockQuoteAEP = FormatAEP<'blockQuote', {
77
- inputMethod: 'toolbar' | 'keyboard' | 'autoformatting' | 'quickInsert';
78
- }>;
79
- declare type FormatClearAEP = FormatAEP<'clearFormatting', {
80
- inputMethod: 'toolbar' | 'shortcut';
81
- formattingCleared: string[];
82
- }>;
83
- declare type FormatColorAEP = FormatAEP<'color', {
84
- newColor: string;
85
- previousColor: string;
86
- }>;
87
- declare type FormatListAEP = FormatAEP<'numberedList' | 'bulletedList', {
88
- inputMethod: 'toolbar' | 'keyboard' | 'autoformatting' | 'quickInsert';
89
- }>;
90
- declare type SubstituteProductAEP = SubstituteAEP<'productName', {
91
- product: string;
92
- originalSpelling: string;
93
- }>;
94
- declare type SubstituteSymbolAEP = SubstituteAEP<'symbol', {
95
- symbol: 'rightArrow' | 'leftArrow';
96
- }>;
97
- declare type SubstitutePuncAEP = SubstituteAEP<'punctuation', {
98
- punctuation: 'emDash' | 'ellipsis' | 'singleQuote' | 'doubleQuote';
99
- }>;
100
- declare type FormatSubstitutionEventPayload = FormatBasicAEP | FormatSuperSubAEP | FormatIndentationAEP | FormatHeadingAEP | FormatBlockQuoteAEP | FormatClearAEP | FormatColorAEP | FormatListAEP | SubstituteProductAEP | SubstituteSymbolAEP | SubstitutePuncAEP;
101
- /** Insertion events */
102
- declare type InsertAEP<ActionSubjectID, Attributes> = TrackAEP<'inserted', 'document', ActionSubjectID, Attributes>;
103
- declare type InsertDividerAEP = InsertAEP<'divider', {
104
- inputMethod: 'quickInsert' | 'toolbar' | 'autoformatting';
105
- }>;
106
- declare type InsertPanelAEP = InsertAEP<'panel', {
107
- inputMethod: 'quickInsert' | 'toolbar';
108
- }>;
109
- declare type InsertCodeBlockAEP = InsertAEP<'codeBlock', {
110
- inputMethod: 'quickInsert' | 'toolbar' | 'autoformatting' | 'insertMenu';
111
- }>;
112
- declare type InsertEventPayload = InsertDividerAEP | InsertPanelAEP | InsertCodeBlockAEP;
113
- export declare type AnalyticsEventPayload = UIEventPayload | FormatSubstitutionEventPayload | InsertEventPayload;
114
- export declare type AnalyticsDispatch = Dispatch<{
115
- payload: AnalyticsEventPayload;
116
- channel?: string;
117
- }>;
118
- export {};
@@ -1 +0,0 @@
1
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/plugins/analytics/types.ts"],"names":[],"mappings":""}
@@ -1,118 +0,0 @@
1
- import { Dispatch } from '../../event-dispatcher';
2
- declare type AEP<Action, ActionSubject, ActionSubjectID, Attributes, EventType> = {
3
- action: Action;
4
- actionSubject: ActionSubject;
5
- actionSubjectId?: ActionSubjectID;
6
- attributes?: Attributes;
7
- eventType: EventType;
8
- };
9
- declare type UIAEP<Action, ActionSubject, ActionSubjectID, Attributes> = AEP<Action, ActionSubject, ActionSubjectID, Attributes, 'ui'>;
10
- declare type TrackAEP<Action, ActionSubject, ActionSubjectID, Attributes> = AEP<Action, ActionSubject, ActionSubjectID, Attributes, 'track'>;
11
- declare type ButtonAEP<ActionSubjectID, Attributes> = UIAEP<'clicked', 'button', ActionSubjectID, Attributes>;
12
- declare type PickerAEP<ActionSubjectID, Attributes> = UIAEP<'opened', 'picker', ActionSubjectID, Attributes>;
13
- declare type TypeAheadAEP<ActionSubjectID, Attributes> = UIAEP<'invoked', 'typeAhead', ActionSubjectID, Attributes>;
14
- declare type EditorStartAEP = UIAEP<'started', 'editor', undefined, {
15
- platform: 'mobileNative' | 'mobileHybrid' | 'web';
16
- }>;
17
- declare type EditorStopAEP = UIAEP<'stopped', 'editor', 'save' | 'cancel', {
18
- inputMethod: 'toolbar' | 'shortcut';
19
- documentSize: number;
20
- nodeCount?: {
21
- tables: number;
22
- headings: number;
23
- lists: number;
24
- mediaSingles: number;
25
- mediaGroups: number;
26
- panels: number;
27
- extensions: number;
28
- decisions: number;
29
- actions: number;
30
- codeBlocks: number;
31
- };
32
- }>;
33
- declare type ButtonHelpAEP = ButtonAEP<'helpButton', {
34
- inputMethod: 'shortcut' | 'toolbar';
35
- }>;
36
- declare type ButtonFeedbackAEP = ButtonAEP<'feedbackButton', undefined>;
37
- declare type PickerEmojiAEP = PickerAEP<'emojiPicker', {
38
- inputMethod: 'toolbar';
39
- }>;
40
- declare type PickerImageAEP = PickerAEP<'cloudPicker', {
41
- inputMethod: 'toolbar' | 'quickInsert';
42
- }>;
43
- declare type TypeAheadQuickInsertAEP = TypeAheadAEP<'quickInsertTypeAhead', {
44
- inputMethod: 'keyboard';
45
- }>;
46
- declare type TypeAheadEmojiAEP = TypeAheadAEP<'emojiTypeAhead', {
47
- inputMethod: 'quickInsert' | 'keyboard';
48
- }>;
49
- declare type TypeAheadLinkAEP = TypeAheadAEP<'linkTypeAhead', {
50
- inputMethod: 'toolbar' | 'quickInsert' | 'shortcut';
51
- }>;
52
- declare type TypeAheadMentionAEP = TypeAheadAEP<'mentionTypeAhead', {
53
- inputMethod: 'toolbar' | 'quickInsert' | 'keyboard';
54
- }>;
55
- declare type UIEventPayload = EditorStartAEP | EditorStopAEP | ButtonHelpAEP | ButtonFeedbackAEP | PickerEmojiAEP | PickerImageAEP | TypeAheadQuickInsertAEP | TypeAheadEmojiAEP | TypeAheadLinkAEP | TypeAheadMentionAEP;
56
- /** Text input and formatting events */
57
- declare type FormatAEP<ActionSubjectID, Attributes> = TrackAEP<'formatted', 'text', ActionSubjectID, Attributes>;
58
- declare type SubstituteAEP<ActionSubjectID, Attributes> = TrackAEP<'autoSubstituted', 'text', ActionSubjectID, Attributes>;
59
- declare type FormatBasicAEP = FormatAEP<'strong' | 'italic' | 'underline' | 'code' | 'strike', {
60
- inputMethod: 'toolbar' | 'shortcut' | 'autoformatting' | 'floatingToolbar';
61
- }>;
62
- declare type FormatSuperSubAEP = FormatAEP<'superscript' | 'subscript', {
63
- inputMethod: 'toolbar';
64
- }>;
65
- declare type FormatIndentationAEP = FormatAEP<'indentation', {
66
- inputMethod: 'toolbar' | 'keyboard';
67
- direction: 'indent' | 'outdent';
68
- previousIndentationLevel: number;
69
- newIndentLevel: number;
70
- indentType: 'paragraph' | 'list' | 'heading' | 'codeBlock';
71
- }>;
72
- declare type FormatHeadingAEP = FormatAEP<'heading', {
73
- inputMethod: 'toolbar' | 'shortcut' | 'autoformatting';
74
- newHeadlineLevel: 0 | 1 | 2 | 3 | 4 | 5 | 6;
75
- }>;
76
- declare type FormatBlockQuoteAEP = FormatAEP<'blockQuote', {
77
- inputMethod: 'toolbar' | 'keyboard' | 'autoformatting' | 'quickInsert';
78
- }>;
79
- declare type FormatClearAEP = FormatAEP<'clearFormatting', {
80
- inputMethod: 'toolbar' | 'shortcut';
81
- formattingCleared: string[];
82
- }>;
83
- declare type FormatColorAEP = FormatAEP<'color', {
84
- newColor: string;
85
- previousColor: string;
86
- }>;
87
- declare type FormatListAEP = FormatAEP<'numberedList' | 'bulletedList', {
88
- inputMethod: 'toolbar' | 'keyboard' | 'autoformatting' | 'quickInsert';
89
- }>;
90
- declare type SubstituteProductAEP = SubstituteAEP<'productName', {
91
- product: string;
92
- originalSpelling: string;
93
- }>;
94
- declare type SubstituteSymbolAEP = SubstituteAEP<'symbol', {
95
- symbol: 'rightArrow' | 'leftArrow';
96
- }>;
97
- declare type SubstitutePuncAEP = SubstituteAEP<'punctuation', {
98
- punctuation: 'emDash' | 'ellipsis' | 'singleQuote' | 'doubleQuote';
99
- }>;
100
- declare type FormatSubstitutionEventPayload = FormatBasicAEP | FormatSuperSubAEP | FormatIndentationAEP | FormatHeadingAEP | FormatBlockQuoteAEP | FormatClearAEP | FormatColorAEP | FormatListAEP | SubstituteProductAEP | SubstituteSymbolAEP | SubstitutePuncAEP;
101
- /** Insertion events */
102
- declare type InsertAEP<ActionSubjectID, Attributes> = TrackAEP<'inserted', 'document', ActionSubjectID, Attributes>;
103
- declare type InsertDividerAEP = InsertAEP<'divider', {
104
- inputMethod: 'quickInsert' | 'toolbar' | 'autoformatting';
105
- }>;
106
- declare type InsertPanelAEP = InsertAEP<'panel', {
107
- inputMethod: 'quickInsert' | 'toolbar';
108
- }>;
109
- declare type InsertCodeBlockAEP = InsertAEP<'codeBlock', {
110
- inputMethod: 'quickInsert' | 'toolbar' | 'autoformatting' | 'insertMenu';
111
- }>;
112
- declare type InsertEventPayload = InsertDividerAEP | InsertPanelAEP | InsertCodeBlockAEP;
113
- export declare type AnalyticsEventPayload = UIEventPayload | FormatSubstitutionEventPayload | InsertEventPayload;
114
- export declare type AnalyticsDispatch = Dispatch<{
115
- payload: AnalyticsEventPayload;
116
- channel?: string;
117
- }>;
118
- export {};
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/plugins/analytics/types.ts"],"names":[],"mappings":""}