@atlaskit/editor-core 172.1.1 → 172.2.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.
- package/CHANGELOG.md +30 -0
- package/dist/cjs/analytics-api/api.js +38 -0
- package/dist/cjs/analytics-api/attach-payload-into-transaction.js +36 -0
- package/dist/cjs/analytics-api/editor-state-context.js +96 -0
- package/dist/cjs/analytics-api/map-attributes.js +30 -0
- package/dist/cjs/create-editor/ReactEditorView.js +47 -6
- package/dist/cjs/create-editor/ReactEditorViewContext.js +2 -6
- package/dist/cjs/create-editor/create-plugins-list.js +12 -3
- package/dist/cjs/event-dispatcher/index.js +12 -81
- package/dist/cjs/insert-api/api.js +48 -0
- package/dist/cjs/insert-api/insert-content-handlers.js +101 -0
- package/dist/cjs/insert-api/insert-node-helpers.js +157 -0
- package/dist/cjs/{plugins/analytics/types/avatar.js → insert-api/types.js} +0 -0
- package/dist/cjs/keymaps/index.js +437 -288
- package/dist/cjs/messages.js +8 -125
- package/dist/cjs/plugins/analytics/index.js +26 -26
- package/dist/cjs/plugins/analytics/types/enums.js +49 -344
- package/dist/cjs/plugins/analytics/types/extension-events.js +19 -26
- package/dist/cjs/plugins/analytics/types/general-events.js +25 -34
- package/dist/cjs/plugins/analytics/types/index.js +10 -56
- package/dist/cjs/plugins/analytics/types/inline-comment-events.js +7 -8
- package/dist/cjs/plugins/analytics/types/node-events.js +13 -20
- package/dist/cjs/plugins/analytics/types/smart-links.js +8 -14
- package/dist/cjs/plugins/analytics/types/toolbar-button.js +7 -20
- package/dist/cjs/plugins/analytics/utils.js +37 -127
- package/dist/cjs/plugins/expand/utils.js +18 -45
- package/dist/cjs/plugins/extension/actions.js +10 -30
- package/dist/cjs/plugins/extension/ui/Extension/styles.js +18 -8
- package/dist/cjs/plugins/insert-block/index.js +1 -0
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +31 -22
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/messages.js +6 -170
- package/dist/cjs/plugins/layout/styles.js +14 -6
- package/dist/cjs/plugins/layout/utils.js +25 -66
- package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +10 -0
- package/dist/cjs/plugins/paste/handlers.js +19 -15
- package/dist/cjs/plugins/paste/util/index.js +30 -1
- package/dist/cjs/plugins/selection/gap-cursor/selection.js +23 -188
- package/dist/cjs/plugins/selection/gap-cursor/utils/is-ignored.js +7 -8
- package/dist/cjs/plugins/selection/gap-cursor/utils/is-valid-target-node.js +7 -8
- package/dist/cjs/plugins/selection/gap-cursor/utils.js +6 -6
- package/dist/cjs/plugins/selection/gap-cursor-selection.js +1 -1
- package/dist/cjs/plugins/selection/types.js +9 -11
- package/dist/cjs/plugins/selection/utils.js +2 -2
- package/dist/cjs/plugins/table/commands/go-to-next-cell.js +40 -38
- package/dist/cjs/plugins/table/commands/insert.js +57 -49
- package/dist/cjs/plugins/table/commands/selection.js +302 -218
- package/dist/cjs/plugins/table/commands-with-analytics.js +241 -219
- package/dist/cjs/plugins/table/event-handlers.js +60 -60
- package/dist/cjs/plugins/table/index.js +64 -20
- package/dist/cjs/plugins/table/nodeviews/TableComponent.js +20 -22
- package/dist/cjs/plugins/table/nodeviews/table.js +19 -11
- package/dist/cjs/plugins/table/nodeviews/tableCell.js +11 -13
- package/dist/cjs/plugins/table/nodeviews/update-overflow-shadows.js +25 -25
- package/dist/cjs/plugins/table/pm-plugins/keymap.js +15 -13
- package/dist/cjs/plugins/table/pm-plugins/main.js +8 -8
- package/dist/cjs/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.js +4 -8
- package/dist/cjs/plugins/table/pm-plugins/sticky-headers/plugin.js +2 -1
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/event-handlers.js +7 -10
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/plugin.js +2 -2
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/dom.js +30 -28
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/misc.js +4 -7
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/resize-state.js +3 -2
- package/dist/cjs/plugins/table/pm-plugins/table-selection-keymap.js +3 -3
- package/dist/cjs/plugins/table/toolbar.js +74 -72
- package/dist/cjs/plugins/table/transforms/column-width.js +41 -38
- package/dist/cjs/plugins/table/transforms/replace-table.js +4 -4
- package/dist/cjs/plugins/table/ui/FloatingContextualButton/index.js +2 -4
- package/dist/cjs/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +25 -21
- package/dist/cjs/plugins/table/ui/FloatingContextualMenu/index.js +6 -2
- package/dist/cjs/plugins/table/ui/FloatingDeleteButton/index.js +7 -4
- package/dist/cjs/plugins/table/ui/FloatingInsertButton/index.js +12 -11
- package/dist/cjs/plugins/table/ui/LayoutButton/index.js +2 -2
- package/dist/cjs/plugins/table/ui/TableFloatingControls/index.js +4 -6
- package/dist/cjs/plugins/table/ui/common-styles.js +3 -3
- package/dist/cjs/plugins/table/utils/analytics.js +26 -1
- package/dist/cjs/plugins/table/utils/index.js +0 -6
- package/dist/cjs/selection-api/api.js +34 -0
- package/dist/cjs/types/browser.js +1 -2
- package/dist/cjs/ui/ColorPalette/Color/index.js +2 -106
- package/dist/cjs/ui/ColorPalette/Palettes/cellBackgroundColorPalette.js +2 -21
- package/dist/cjs/ui/ColorPalette/Palettes/common.js +7 -25
- package/dist/cjs/ui/ColorPalette/Palettes/paletteMessages.js +2 -114
- package/dist/cjs/ui/ColorPalette/Palettes/panelBackgroundPalette.js +12 -152
- package/dist/cjs/ui/ColorPalette/Palettes/statusColorPalette.js +13 -61
- package/dist/cjs/ui/ColorPalette/Palettes/textColorPalette.js +12 -34
- package/dist/cjs/ui/ColorPalette/index.js +2 -76
- package/dist/cjs/ui/Dropdown/index.js +3 -119
- package/dist/cjs/ui/DropdownMenu/index.js +3 -286
- package/dist/cjs/ui/Toolbar/types.js +19 -33
- package/dist/cjs/ui/ToolbarButton/index.js +8 -120
- package/dist/cjs/ui/WithPluginState/index.js +1 -3
- package/dist/cjs/ui/styles.js +35 -27
- package/dist/cjs/ui/with-outer-listeners.js +4 -152
- package/dist/cjs/utils/dom.js +46 -123
- package/dist/cjs/utils/index.js +40 -42
- package/dist/cjs/utils/node-width.js +7 -79
- package/dist/cjs/utils/nodes.js +57 -124
- package/dist/cjs/utils/plugin-state-factory.js +7 -107
- package/dist/cjs/utils/selection.js +11 -62
- package/dist/cjs/utils/slice.js +28 -68
- package/dist/cjs/utils/step.js +18 -46
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/analytics-api/api.js +30 -0
- package/dist/es2019/analytics-api/attach-payload-into-transaction.js +25 -0
- package/dist/es2019/analytics-api/editor-state-context.js +85 -0
- package/dist/es2019/analytics-api/map-attributes.js +14 -0
- package/dist/es2019/create-editor/ReactEditorView.js +33 -4
- package/dist/es2019/create-editor/ReactEditorViewContext.js +1 -2
- package/dist/es2019/create-editor/create-plugins-list.js +13 -4
- package/dist/es2019/event-dispatcher/index.js +1 -60
- package/dist/es2019/insert-api/api.js +43 -0
- package/dist/es2019/insert-api/insert-content-handlers.js +85 -0
- package/dist/es2019/insert-api/insert-node-helpers.js +149 -0
- package/dist/es2019/{plugins/analytics/types/avatar.js → insert-api/types.js} +0 -0
- package/dist/es2019/keymaps/index.js +1 -186
- package/dist/es2019/messages.js +2 -123
- package/dist/es2019/plugins/analytics/index.js +1 -1
- package/dist/es2019/plugins/analytics/types/enums.js +1 -336
- package/dist/es2019/plugins/analytics/types/extension-events.js +1 -22
- package/dist/es2019/plugins/analytics/types/general-events.js +1 -30
- package/dist/es2019/plugins/analytics/types/index.js +1 -6
- package/dist/es2019/plugins/analytics/types/inline-comment-events.js +1 -7
- package/dist/es2019/plugins/analytics/types/node-events.js +1 -18
- package/dist/es2019/plugins/analytics/types/smart-links.js +1 -12
- package/dist/es2019/plugins/analytics/types/toolbar-button.js +1 -19
- package/dist/es2019/plugins/analytics/utils.js +12 -113
- package/dist/es2019/plugins/expand/utils.js +1 -36
- package/dist/es2019/plugins/extension/actions.js +1 -26
- package/dist/es2019/plugins/extension/ui/Extension/styles.js +2 -3
- package/dist/es2019/plugins/insert-block/index.js +1 -0
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +22 -12
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/messages.js +1 -168
- package/dist/es2019/plugins/layout/styles.js +2 -3
- package/dist/es2019/plugins/layout/utils.js +1 -54
- package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +10 -0
- package/dist/es2019/plugins/paste/handlers.js +8 -4
- package/dist/es2019/plugins/paste/util/index.js +23 -0
- package/dist/es2019/plugins/selection/gap-cursor/selection.js +1 -136
- package/dist/es2019/plugins/selection/gap-cursor/utils/is-ignored.js +1 -5
- package/dist/es2019/plugins/selection/gap-cursor/utils/is-valid-target-node.js +1 -4
- package/dist/es2019/plugins/selection/gap-cursor/utils.js +4 -4
- package/dist/es2019/plugins/selection/gap-cursor-selection.js +1 -1
- package/dist/es2019/plugins/selection/types.js +2 -9
- package/dist/es2019/plugins/selection/utils.js +1 -1
- package/dist/es2019/plugins/table/commands/go-to-next-cell.js +4 -4
- package/dist/es2019/plugins/table/commands/insert.js +26 -24
- package/dist/es2019/plugins/table/commands/selection.js +109 -51
- package/dist/es2019/plugins/table/commands-with-analytics.js +39 -38
- package/dist/es2019/plugins/table/event-handlers.js +6 -7
- package/dist/es2019/plugins/table/index.js +56 -16
- package/dist/es2019/plugins/table/nodeviews/TableComponent.js +11 -12
- package/dist/es2019/plugins/table/nodeviews/table.js +18 -8
- package/dist/es2019/plugins/table/nodeviews/tableCell.js +2 -3
- package/dist/es2019/plugins/table/nodeviews/update-overflow-shadows.js +3 -4
- package/dist/es2019/plugins/table/pm-plugins/keymap.js +13 -12
- package/dist/es2019/plugins/table/pm-plugins/main.js +8 -8
- package/dist/es2019/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.js +4 -6
- package/dist/es2019/plugins/table/pm-plugins/sticky-headers/plugin.js +2 -2
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/event-handlers.js +7 -8
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/plugin.js +2 -2
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/dom.js +2 -2
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/misc.js +4 -4
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/resize-state.js +3 -2
- package/dist/es2019/plugins/table/pm-plugins/table-selection-keymap.js +3 -3
- package/dist/es2019/plugins/table/toolbar.js +24 -24
- package/dist/es2019/plugins/table/transforms/column-width.js +3 -2
- package/dist/es2019/plugins/table/transforms/replace-table.js +4 -4
- package/dist/es2019/plugins/table/ui/FloatingContextualButton/index.js +2 -2
- package/dist/es2019/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +19 -16
- package/dist/es2019/plugins/table/ui/FloatingContextualMenu/index.js +6 -2
- package/dist/es2019/plugins/table/ui/FloatingDeleteButton/index.js +8 -4
- package/dist/es2019/plugins/table/ui/FloatingInsertButton/index.js +9 -6
- package/dist/es2019/plugins/table/ui/LayoutButton/index.js +2 -2
- package/dist/es2019/plugins/table/ui/TableFloatingControls/index.js +2 -3
- package/dist/es2019/plugins/table/ui/common-styles.js +1 -1
- package/dist/es2019/plugins/table/utils/analytics.js +16 -1
- package/dist/es2019/plugins/table/utils/index.js +1 -1
- package/dist/es2019/selection-api/api.js +22 -0
- package/dist/es2019/types/browser.js +0 -1
- package/dist/es2019/ui/ColorPalette/Color/index.js +1 -66
- package/dist/es2019/ui/ColorPalette/Palettes/cellBackgroundColorPalette.js +1 -14
- package/dist/es2019/ui/ColorPalette/Palettes/common.js +1 -20
- package/dist/es2019/ui/ColorPalette/Palettes/paletteMessages.js +2 -113
- package/dist/es2019/ui/ColorPalette/Palettes/panelBackgroundPalette.js +1 -137
- package/dist/es2019/ui/ColorPalette/Palettes/statusColorPalette.js +1 -51
- package/dist/es2019/ui/ColorPalette/Palettes/textColorPalette.js +1 -25
- package/dist/es2019/ui/ColorPalette/index.js +2 -62
- package/dist/es2019/ui/Dropdown/index.js +2 -84
- package/dist/es2019/ui/DropdownMenu/index.js +2 -244
- package/dist/es2019/ui/Toolbar/types.js +1 -30
- package/dist/es2019/ui/ToolbarButton/index.js +2 -94
- package/dist/es2019/ui/WithPluginState/index.js +1 -1
- package/dist/es2019/ui/styles.js +9 -47
- package/dist/es2019/ui/with-outer-listeners.js +2 -104
- package/dist/es2019/utils/dom.js +1 -113
- package/dist/es2019/utils/index.js +2 -21
- package/dist/es2019/utils/node-width.js +1 -75
- package/dist/es2019/utils/nodes.js +1 -88
- package/dist/es2019/utils/plugin-state-factory.js +1 -107
- package/dist/es2019/utils/selection.js +2 -52
- package/dist/es2019/utils/slice.js +1 -56
- package/dist/es2019/utils/step.js +1 -35
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/analytics-api/api.js +27 -0
- package/dist/esm/analytics-api/attach-payload-into-transaction.js +22 -0
- package/dist/esm/analytics-api/editor-state-context.js +81 -0
- package/dist/esm/analytics-api/map-attributes.js +20 -0
- package/dist/esm/create-editor/ReactEditorView.js +44 -6
- package/dist/esm/create-editor/ReactEditorViewContext.js +1 -2
- package/dist/esm/create-editor/create-plugins-list.js +15 -4
- package/dist/esm/event-dispatcher/index.js +1 -74
- package/dist/esm/insert-api/api.js +37 -0
- package/dist/esm/insert-api/insert-content-handlers.js +88 -0
- package/dist/esm/insert-api/insert-node-helpers.js +138 -0
- package/dist/{es2019/plugins/analytics/types/config-panel-events.js → esm/insert-api/types.js} +0 -0
- package/dist/esm/keymaps/index.js +1 -184
- package/dist/esm/messages.js +2 -123
- package/dist/esm/plugins/analytics/index.js +1 -1
- package/dist/esm/plugins/analytics/types/enums.js +1 -336
- package/dist/esm/plugins/analytics/types/extension-events.js +1 -22
- package/dist/esm/plugins/analytics/types/general-events.js +1 -30
- package/dist/esm/plugins/analytics/types/index.js +1 -6
- package/dist/esm/plugins/analytics/types/inline-comment-events.js +1 -7
- package/dist/esm/plugins/analytics/types/node-events.js +1 -18
- package/dist/esm/plugins/analytics/types/smart-links.js +1 -12
- package/dist/esm/plugins/analytics/types/toolbar-button.js +1 -19
- package/dist/esm/plugins/analytics/utils.js +12 -113
- package/dist/esm/plugins/expand/utils.js +1 -34
- package/dist/esm/plugins/extension/actions.js +1 -24
- package/dist/esm/plugins/extension/ui/Extension/styles.js +2 -3
- package/dist/esm/plugins/insert-block/index.js +1 -0
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +22 -12
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/messages.js +1 -168
- package/dist/esm/plugins/layout/styles.js +2 -3
- package/dist/esm/plugins/layout/utils.js +1 -58
- package/dist/esm/plugins/media/nodeviews/mediaSingle.js +10 -0
- package/dist/esm/plugins/paste/handlers.js +8 -4
- package/dist/esm/plugins/paste/util/index.js +23 -0
- package/dist/esm/plugins/selection/gap-cursor/selection.js +1 -176
- package/dist/esm/plugins/selection/gap-cursor/utils/is-ignored.js +1 -5
- package/dist/esm/plugins/selection/gap-cursor/utils/is-valid-target-node.js +1 -4
- package/dist/esm/plugins/selection/gap-cursor/utils.js +4 -4
- package/dist/esm/plugins/selection/gap-cursor-selection.js +1 -1
- package/dist/esm/plugins/selection/types.js +2 -9
- package/dist/esm/plugins/selection/utils.js +1 -1
- package/dist/esm/plugins/table/commands/go-to-next-cell.js +34 -32
- package/dist/esm/plugins/table/commands/insert.js +57 -49
- package/dist/esm/plugins/table/commands/selection.js +303 -215
- package/dist/esm/plugins/table/commands-with-analytics.js +241 -220
- package/dist/esm/plugins/table/event-handlers.js +60 -59
- package/dist/esm/plugins/table/index.js +62 -18
- package/dist/esm/plugins/table/nodeviews/TableComponent.js +20 -21
- package/dist/esm/plugins/table/nodeviews/table.js +19 -9
- package/dist/esm/plugins/table/nodeviews/tableCell.js +11 -12
- package/dist/esm/plugins/table/nodeviews/update-overflow-shadows.js +25 -24
- package/dist/esm/plugins/table/pm-plugins/keymap.js +14 -13
- package/dist/esm/plugins/table/pm-plugins/main.js +8 -8
- package/dist/esm/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.js +4 -6
- package/dist/esm/plugins/table/pm-plugins/sticky-headers/plugin.js +2 -1
- package/dist/esm/plugins/table/pm-plugins/table-resizing/event-handlers.js +7 -8
- package/dist/esm/plugins/table/pm-plugins/table-resizing/plugin.js +2 -2
- package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/dom.js +30 -28
- package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/misc.js +4 -4
- package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/resize-state.js +3 -2
- package/dist/esm/plugins/table/pm-plugins/table-selection-keymap.js +3 -3
- package/dist/esm/plugins/table/toolbar.js +75 -73
- package/dist/esm/plugins/table/transforms/column-width.js +41 -38
- package/dist/esm/plugins/table/transforms/replace-table.js +4 -4
- package/dist/esm/plugins/table/ui/FloatingContextualButton/index.js +2 -2
- package/dist/esm/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +25 -21
- package/dist/esm/plugins/table/ui/FloatingContextualMenu/index.js +6 -2
- package/dist/esm/plugins/table/ui/FloatingDeleteButton/index.js +6 -4
- package/dist/esm/plugins/table/ui/FloatingInsertButton/index.js +9 -6
- package/dist/esm/plugins/table/ui/LayoutButton/index.js +2 -2
- package/dist/esm/plugins/table/ui/TableFloatingControls/index.js +4 -5
- package/dist/esm/plugins/table/ui/common-styles.js +1 -1
- package/dist/esm/plugins/table/utils/analytics.js +22 -1
- package/dist/esm/plugins/table/utils/index.js +1 -1
- package/dist/esm/selection-api/api.js +23 -0
- package/dist/esm/types/browser.js +0 -1
- package/dist/esm/ui/ColorPalette/Color/index.js +1 -93
- package/dist/esm/ui/ColorPalette/Palettes/cellBackgroundColorPalette.js +1 -14
- package/dist/esm/ui/ColorPalette/Palettes/common.js +1 -19
- package/dist/esm/ui/ColorPalette/Palettes/paletteMessages.js +2 -113
- package/dist/esm/ui/ColorPalette/Palettes/panelBackgroundPalette.js +1 -147
- package/dist/esm/ui/ColorPalette/Palettes/statusColorPalette.js +1 -51
- package/dist/esm/ui/ColorPalette/Palettes/textColorPalette.js +1 -25
- package/dist/esm/ui/ColorPalette/index.js +2 -64
- package/dist/esm/ui/Dropdown/index.js +2 -106
- package/dist/esm/ui/DropdownMenu/index.js +2 -265
- package/dist/esm/ui/Toolbar/types.js +1 -30
- package/dist/esm/ui/ToolbarButton/index.js +2 -102
- package/dist/esm/ui/WithPluginState/index.js +1 -1
- package/dist/esm/ui/styles.js +17 -20
- package/dist/esm/ui/with-outer-listeners.js +2 -139
- package/dist/esm/utils/dom.js +1 -113
- package/dist/esm/utils/index.js +5 -23
- package/dist/esm/utils/node-width.js +1 -73
- package/dist/esm/utils/nodes.js +1 -100
- package/dist/esm/utils/plugin-state-factory.js +1 -106
- package/dist/esm/utils/selection.js +2 -50
- package/dist/esm/utils/slice.js +1 -59
- package/dist/esm/utils/step.js +1 -37
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/actions/index.d.ts +2 -16
- package/dist/types/analytics-api/api.d.ts +9 -0
- package/dist/types/analytics-api/attach-payload-into-transaction.d.ts +10 -0
- package/dist/types/analytics-api/editor-state-context.d.ts +9 -0
- package/dist/types/analytics-api/map-attributes.d.ts +2 -0
- package/dist/types/create-editor/ReactEditorView.d.ts +1 -0
- package/dist/types/create-editor/ReactEditorViewContext.d.ts +1 -7
- package/dist/types/create-editor/create-plugins-list.d.ts +5 -1
- package/dist/types/event-dispatcher/index.d.ts +2 -19
- package/dist/types/insert-api/api.d.ts +9 -0
- package/dist/types/insert-api/insert-content-handlers.d.ts +9 -0
- package/dist/types/insert-api/insert-node-helpers.d.ts +30 -0
- package/dist/types/insert-api/types.d.ts +16 -0
- package/dist/types/keymaps/index.d.ts +2 -89
- package/dist/types/labs/next/presets/cxhtml.d.ts +1 -1
- package/dist/types/labs/next/presets/mobile.d.ts +1 -1
- package/dist/types/messages.d.ts +2 -124
- package/dist/types/plugins/analytics/index.d.ts +2 -2
- package/dist/types/plugins/analytics/types/dispatch-analytics-event.d.ts +1 -2
- package/dist/types/plugins/analytics/types/enums.d.ts +1 -313
- package/dist/types/plugins/analytics/types/events.d.ts +1 -111
- package/dist/types/plugins/analytics/types/experimental-events.d.ts +1 -17
- package/dist/types/plugins/analytics/types/extension-events.d.ts +2 -43
- package/dist/types/plugins/analytics/types/general-events.d.ts +2 -179
- package/dist/types/plugins/analytics/types/index.d.ts +4 -14
- package/dist/types/plugins/analytics/types/inline-comment-events.d.ts +2 -17
- package/dist/types/plugins/analytics/types/link-tool-bar-events.d.ts +1 -76
- package/dist/types/plugins/analytics/types/media-events.d.ts +1 -16
- package/dist/types/plugins/analytics/types/node-events.d.ts +2 -56
- package/dist/types/plugins/analytics/types/selection-events.d.ts +1 -18
- package/dist/types/plugins/analytics/types/smart-links.d.ts +2 -13
- package/dist/types/plugins/analytics/types/toolbar-button.d.ts +2 -22
- package/dist/types/plugins/analytics/types/type-ahead.d.ts +1 -27
- package/dist/types/plugins/analytics/utils.d.ts +3 -8
- package/dist/types/plugins/annotation/pm-plugins/plugin-factory.d.ts +1 -1
- package/dist/types/plugins/card/pm-plugins/util/state.d.ts +1 -1
- package/dist/types/plugins/code-bidi-warning/pm-plugins/plugin-factory.d.ts +1 -1
- package/dist/types/plugins/context-panel/types.d.ts +1 -3
- package/dist/types/plugins/expand/pm-plugins/plugin-factory.d.ts +1 -1
- package/dist/types/plugins/expand/utils.d.ts +1 -5
- package/dist/types/plugins/extension/actions.d.ts +2 -6
- package/dist/types/plugins/extension/commands.d.ts +7 -7
- package/dist/types/plugins/extension/plugin-factory.d.ts +2 -2
- package/dist/types/plugins/extension/ui/Extension/styles.d.ts +2 -2
- package/dist/types/plugins/find-replace/commands.d.ts +7 -7
- package/dist/types/plugins/find-replace/plugin.d.ts +1 -1
- package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-factory.d.ts +1 -1
- package/dist/types/plugins/floating-toolbar/types.d.ts +1 -153
- package/dist/types/plugins/floating-toolbar/ui/Button.d.ts +2 -1
- package/dist/types/plugins/floating-toolbar/ui/Select.d.ts +2 -12
- package/dist/types/plugins/floating-toolbar/ui/types.d.ts +1 -20
- package/dist/types/plugins/insert-block/index.d.ts +2 -0
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/messages.d.ts +1 -167
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/types.d.ts +3 -1
- package/dist/types/plugins/layout/styles.d.ts +2 -2
- package/dist/types/plugins/layout/utils.d.ts +1 -15
- package/dist/types/plugins/media/commands/linking.d.ts +3 -3
- package/dist/types/plugins/media/nodeviews/mediaNodeView/index.d.ts +1 -1
- package/dist/types/plugins/media/nodeviews/mediaSingle.d.ts +1 -1
- package/dist/types/plugins/media/pm-plugins/alt-text/commands.d.ts +2 -2
- package/dist/types/plugins/media/pm-plugins/alt-text/index.d.ts +1 -1
- package/dist/types/plugins/media/pm-plugins/linking/index.d.ts +1 -1
- package/dist/types/plugins/mobile-dimensions/commands.d.ts +4 -4
- package/dist/types/plugins/mobile-dimensions/plugin-factory.d.ts +1 -1
- package/dist/types/plugins/paste/util/index.d.ts +2 -1
- package/dist/types/plugins/selection/commands.d.ts +1 -1
- package/dist/types/plugins/selection/gap-cursor/selection.d.ts +1 -40
- package/dist/types/plugins/selection/gap-cursor/utils/is-ignored.d.ts +1 -2
- package/dist/types/plugins/selection/gap-cursor/utils/is-valid-target-node.d.ts +1 -2
- package/dist/types/plugins/selection/gap-cursor-selection.d.ts +1 -1
- package/dist/types/plugins/selection/plugin-factory.d.ts +1 -1
- package/dist/types/plugins/selection/types.d.ts +4 -19
- package/dist/types/plugins/table/commands/go-to-next-cell.d.ts +3 -2
- package/dist/types/plugins/table/commands/hover.d.ts +7 -7
- package/dist/types/plugins/table/commands/insert.d.ts +5 -4
- package/dist/types/plugins/table/commands/misc.d.ts +8 -8
- package/dist/types/plugins/table/commands/selection.d.ts +4 -3
- package/dist/types/plugins/table/commands/toggle.d.ts +1 -1
- package/dist/types/plugins/table/commands-with-analytics.d.ts +21 -19
- package/dist/types/plugins/table/event-handlers.d.ts +4 -2
- package/dist/types/plugins/table/index.d.ts +7 -0
- package/dist/types/plugins/table/nodeviews/TableComponent.d.ts +4 -2
- package/dist/types/plugins/table/nodeviews/table.d.ts +2 -1
- package/dist/types/plugins/table/nodeviews/tableCell.d.ts +2 -1
- package/dist/types/plugins/table/nodeviews/types.d.ts +3 -0
- package/dist/types/plugins/table/nodeviews/update-overflow-shadows.d.ts +2 -1
- package/dist/types/plugins/table/pm-plugins/keymap.d.ts +3 -1
- package/dist/types/plugins/table/pm-plugins/main.d.ts +4 -2
- package/dist/types/plugins/table/pm-plugins/plugin-factory.d.ts +1 -1
- package/dist/types/plugins/table/pm-plugins/sticky-headers/commands.d.ts +2 -2
- package/dist/types/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.d.ts +2 -1
- package/dist/types/plugins/table/pm-plugins/sticky-headers/plugin-state.d.ts +1 -1
- package/dist/types/plugins/table/pm-plugins/sticky-headers/plugin.d.ts +2 -1
- package/dist/types/plugins/table/pm-plugins/table-resizing/commands.d.ts +4 -4
- package/dist/types/plugins/table/pm-plugins/table-resizing/event-handlers.d.ts +3 -1
- package/dist/types/plugins/table/pm-plugins/table-resizing/plugin-factory.d.ts +2 -2
- package/dist/types/plugins/table/pm-plugins/table-resizing/plugin.d.ts +3 -1
- package/dist/types/plugins/table/pm-plugins/table-resizing/utils/dom.d.ts +2 -1
- package/dist/types/plugins/table/pm-plugins/table-resizing/utils/misc.d.ts +3 -1
- package/dist/types/plugins/table/pm-plugins/table-resizing/utils/resize-state.d.ts +2 -1
- package/dist/types/plugins/table/pm-plugins/table-selection-keymap.d.ts +2 -1
- package/dist/types/plugins/table/toolbar.d.ts +5 -3
- package/dist/types/plugins/table/transforms/column-width.d.ts +2 -1
- package/dist/types/plugins/table/transforms/replace-table.d.ts +3 -2
- package/dist/types/plugins/table/types.d.ts +3 -1
- package/dist/types/plugins/table/ui/FloatingContextualButton/index.d.ts +1 -1
- package/dist/types/plugins/table/ui/FloatingContextualMenu/ContextualMenu.d.ts +4 -0
- package/dist/types/plugins/table/ui/FloatingContextualMenu/index.d.ts +5 -1
- package/dist/types/plugins/table/ui/FloatingDeleteButton/index.d.ts +2 -0
- package/dist/types/plugins/table/ui/FloatingInsertButton/index.d.ts +5 -1
- package/dist/types/plugins/table/ui/LayoutButton/index.d.ts +2 -0
- package/dist/types/plugins/table/ui/TableFloatingControls/index.d.ts +2 -0
- package/dist/types/plugins/table/utils/analytics.d.ts +3 -0
- package/dist/types/plugins/table/utils/index.d.ts +1 -1
- package/dist/types/plugins/type-ahead/types.d.ts +2 -50
- package/dist/types/plugins/width/index.d.ts +3 -6
- package/dist/types/selection-api/api.d.ts +11 -0
- package/dist/types/types/browser.d.ts +1 -10
- package/dist/types/types/editor-appearance.d.ts +1 -1
- package/dist/types/types/editor-plugin.d.ts +1 -59
- package/dist/types/types/editor-react-context.d.ts +1 -6
- package/dist/types/types/empty-state-handler.d.ts +1 -7
- package/dist/types/types/feature-flags.d.ts +1 -343
- package/dist/types/types/pm-config.d.ts +1 -14
- package/dist/types/types/pm-plugin.d.ts +1 -27
- package/dist/types/types/ui-components.d.ts +1 -22
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +118 -118
- package/dist/types/ui/ColorPalette/Color/index.d.ts +1 -19
- package/dist/types/ui/ColorPalette/Palettes/cellBackgroundColorPalette.d.ts +1 -2
- package/dist/types/ui/ColorPalette/Palettes/common.d.ts +1 -1
- package/dist/types/ui/ColorPalette/Palettes/paletteMessages.d.ts +2 -113
- package/dist/types/ui/ColorPalette/Palettes/panelBackgroundPalette.d.ts +1 -3
- package/dist/types/ui/ColorPalette/Palettes/statusColorPalette.d.ts +1 -3
- package/dist/types/ui/ColorPalette/Palettes/textColorPalette.d.ts +1 -3
- package/dist/types/ui/ColorPalette/Palettes/type.d.ts +1 -8
- package/dist/types/ui/ColorPalette/index.d.ts +2 -23
- package/dist/types/ui/ColorPickerButton/index.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
- package/dist/types/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types/ui/Dropdown/index.d.ts +2 -33
- package/dist/types/ui/DropdownMenu/index.d.ts +2 -18
- package/dist/types/ui/DropdownMenu/types.d.ts +1 -43
- package/dist/types/ui/Toolbar/types.d.ts +2 -30
- package/dist/types/ui/ToolbarButton/index.d.ts +3 -52
- package/dist/types/ui/styles.d.ts +3 -3
- package/dist/types/ui/with-outer-listeners.d.ts +2 -10
- package/dist/types/utils/document-logger.d.ts +2 -7
- package/dist/types/utils/dom.d.ts +2 -26
- package/dist/types/utils/index.d.ts +3 -6
- package/dist/types/utils/node-width.d.ts +1 -7
- package/dist/types/utils/nodes.d.ts +1 -35
- package/dist/types/utils/performance/plugin-performance-report.d.ts +2 -25
- package/dist/types/utils/plugin-state-factory.d.ts +2 -16
- package/dist/types/utils/selection.d.ts +3 -6
- package/dist/types/utils/slice.d.ts +2 -11
- package/dist/types/utils/step.d.ts +1 -15
- package/package.json +8 -9
- package/dist/cjs/plugins/analytics/types/config-panel-events.js +0 -5
- package/dist/cjs/plugins/analytics/types/cut-copy-events.js +0 -5
- package/dist/cjs/plugins/analytics/types/date-events.js +0 -5
- package/dist/cjs/plugins/analytics/types/element-browser-events.js +0 -5
- package/dist/cjs/plugins/analytics/types/find-replace-events.js +0 -5
- package/dist/cjs/plugins/analytics/types/format-events.js +0 -24
- package/dist/cjs/plugins/analytics/types/insert-events.js +0 -51
- package/dist/cjs/plugins/analytics/types/list-events.js +0 -25
- package/dist/cjs/plugins/analytics/types/paste-events.js +0 -55
- package/dist/cjs/plugins/analytics/types/substitute-events.js +0 -24
- package/dist/cjs/plugins/analytics/types/table-events.js +0 -43
- package/dist/cjs/plugins/analytics/types/utils.js +0 -27
- package/dist/cjs/ui/ColorPalette/Color/styles.js +0 -21
- package/dist/cjs/ui/ColorPalette/Palettes/getColorMessage.js +0 -17
- package/dist/cjs/ui/ColorPalette/styles.js +0 -19
- package/dist/cjs/ui/DropList/index.js +0 -215
- package/dist/cjs/ui/Layer/index.js +0 -245
- package/dist/cjs/ui/Layer/internal/helpers.js +0 -70
- package/dist/cjs/ui/ToolbarButton/styles.js +0 -26
- package/dist/es2019/plugins/analytics/types/cut-copy-events.js +0 -1
- package/dist/es2019/plugins/analytics/types/date-events.js +0 -1
- package/dist/es2019/plugins/analytics/types/element-browser-events.js +0 -1
- package/dist/es2019/plugins/analytics/types/find-replace-events.js +0 -1
- package/dist/es2019/plugins/analytics/types/format-events.js +0 -16
- package/dist/es2019/plugins/analytics/types/insert-events.js +0 -41
- package/dist/es2019/plugins/analytics/types/list-events.js +0 -17
- package/dist/es2019/plugins/analytics/types/paste-events.js +0 -46
- package/dist/es2019/plugins/analytics/types/substitute-events.js +0 -16
- package/dist/es2019/plugins/analytics/types/table-events.js +0 -34
- package/dist/es2019/plugins/analytics/types/utils.js +0 -19
- package/dist/es2019/ui/ColorPalette/Color/styles.js +0 -24
- package/dist/es2019/ui/ColorPalette/Palettes/getColorMessage.js +0 -14
- package/dist/es2019/ui/ColorPalette/styles.js +0 -7
- package/dist/es2019/ui/DropList/index.js +0 -186
- package/dist/es2019/ui/Layer/index.js +0 -195
- package/dist/es2019/ui/Layer/internal/helpers.js +0 -62
- package/dist/es2019/ui/ToolbarButton/styles.js +0 -12
- package/dist/esm/plugins/analytics/types/avatar.js +0 -1
- package/dist/esm/plugins/analytics/types/config-panel-events.js +0 -1
- package/dist/esm/plugins/analytics/types/cut-copy-events.js +0 -1
- package/dist/esm/plugins/analytics/types/date-events.js +0 -1
- package/dist/esm/plugins/analytics/types/element-browser-events.js +0 -1
- package/dist/esm/plugins/analytics/types/find-replace-events.js +0 -1
- package/dist/esm/plugins/analytics/types/format-events.js +0 -16
- package/dist/esm/plugins/analytics/types/insert-events.js +0 -41
- package/dist/esm/plugins/analytics/types/list-events.js +0 -17
- package/dist/esm/plugins/analytics/types/paste-events.js +0 -46
- package/dist/esm/plugins/analytics/types/substitute-events.js +0 -16
- package/dist/esm/plugins/analytics/types/table-events.js +0 -34
- package/dist/esm/plugins/analytics/types/utils.js +0 -19
- package/dist/esm/ui/ColorPalette/Color/styles.js +0 -8
- package/dist/esm/ui/ColorPalette/Palettes/getColorMessage.js +0 -10
- package/dist/esm/ui/ColorPalette/styles.js +0 -7
- package/dist/esm/ui/DropList/index.js +0 -203
- package/dist/esm/ui/Layer/index.js +0 -228
- package/dist/esm/ui/Layer/internal/helpers.js +0 -62
- package/dist/esm/ui/ToolbarButton/styles.js +0 -12
- package/dist/types/plugins/analytics/types/avatar.d.ts +0 -5
- package/dist/types/plugins/analytics/types/config-panel-events.d.ts +0 -17
- package/dist/types/plugins/analytics/types/cut-copy-events.d.ts +0 -12
- package/dist/types/plugins/analytics/types/date-events.d.ts +0 -17
- package/dist/types/plugins/analytics/types/element-browser-events.d.ts +0 -11
- package/dist/types/plugins/analytics/types/find-replace-events.d.ts +0 -23
- package/dist/types/plugins/analytics/types/format-events.d.ts +0 -49
- package/dist/types/plugins/analytics/types/insert-events.d.ts +0 -128
- package/dist/types/plugins/analytics/types/list-events.d.ts +0 -52
- package/dist/types/plugins/analytics/types/paste-events.d.ts +0 -39
- package/dist/types/plugins/analytics/types/substitute-events.d.ts +0 -26
- package/dist/types/plugins/analytics/types/table-events.d.ts +0 -94
- package/dist/types/plugins/analytics/types/utils.d.ts +0 -45
- package/dist/types/ui/ColorPalette/Color/styles.d.ts +0 -2
- package/dist/types/ui/ColorPalette/Palettes/getColorMessage.d.ts +0 -2
- package/dist/types/ui/ColorPalette/styles.d.ts +0 -1
- package/dist/types/ui/DropList/index.d.ts +0 -22
- package/dist/types/ui/Layer/index.d.ts +0 -47
- package/dist/types/ui/Layer/internal/helpers.d.ts +0 -5
- package/dist/types/ui/ToolbarButton/styles.d.ts +0 -4
|
@@ -1,313 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
OPERATIONAL = "operational",
|
|
3
|
-
SCREEN = "screen",
|
|
4
|
-
TRACK = "track",
|
|
5
|
-
UI = "ui"
|
|
6
|
-
}
|
|
7
|
-
export declare enum ACTION {
|
|
8
|
-
ACTIVATED = "activated",
|
|
9
|
-
ADDED = "added",
|
|
10
|
-
BROWSER_FREEZE = "browserFreeze",
|
|
11
|
-
CHANGED_BACKGROUND_COLOR = "changedBackgroundColor",
|
|
12
|
-
CHANGED_ICON = "changedIcon",
|
|
13
|
-
CHANGED_FULL_WIDTH_MODE = "changedFullWidthMode",
|
|
14
|
-
CHANGED_LAYOUT = "changedLayout",
|
|
15
|
-
CHANGED_REPLACEMENT_TEXT = "changedReplacementText",
|
|
16
|
-
CHANGED_TYPE = "changedType",
|
|
17
|
-
CHANGED_URL = "changedUrl",
|
|
18
|
-
CLEARED = "cleared",
|
|
19
|
-
CLICKED = "clicked",
|
|
20
|
-
CLOSED = "closed",
|
|
21
|
-
COMMITTED = "committed",
|
|
22
|
-
CONVERTED = "converted",
|
|
23
|
-
COPIED = "copied",
|
|
24
|
-
CUT = "cut",
|
|
25
|
-
DEACTIVATED = "deactivated",
|
|
26
|
-
DECREMENTED = "decremented",
|
|
27
|
-
DELETED = "deleted",
|
|
28
|
-
DISCARDED_INVALID_STEPS_FROM_TRANSACTION = "discardedInvalidStepsFromTransaction",
|
|
29
|
-
DISMISSED = "dismissed",
|
|
30
|
-
DISPATCHED_INVALID_TRANSACTION = "dispatchedInvalidTransaction",
|
|
31
|
-
DISPATCHED_VALID_TRANSACTION = "dispatchedValidTransaction",
|
|
32
|
-
EDITED = "edited",
|
|
33
|
-
EDITOR_CRASHED = "unhandledErrorCaught",
|
|
34
|
-
EDITOR_CRASHED_ADDITIONAL_INFORMATION = "unhandledErrorCaughtAdditionalInfo",
|
|
35
|
-
EDITOR_MOUNTED = "mounted",
|
|
36
|
-
EDITOR_TTI = "tti",
|
|
37
|
-
EDITOR_CONTENT_RETRIEVAL_PERFORMED = "contentRetrievalPerformed",
|
|
38
|
-
RE_RENDERED = "reRendered",
|
|
39
|
-
ENTERED = "entered",
|
|
40
|
-
ERRORED = "errored",
|
|
41
|
-
EXPOSED = "exposed",
|
|
42
|
-
FAILED_TO_UNMOUNT = "failedToUnmount",
|
|
43
|
-
FIND_NEXT_PERFORMED = "findNextPerformed",
|
|
44
|
-
FIND_PERFORMED = "findPerformed",
|
|
45
|
-
FIND_PREV_PERFORMED = "findPrevPerformed",
|
|
46
|
-
FORMATTED = "formatted",
|
|
47
|
-
HELP_OPENED = "helpOpened",
|
|
48
|
-
HIGHLIGHTED = "highlighted",
|
|
49
|
-
INCREMENTED = "incremented",
|
|
50
|
-
INDENTED = "indented",
|
|
51
|
-
INITIALISED = "initialised",
|
|
52
|
-
INPUT_PERF_SAMPLING = "inputPerfSampling",
|
|
53
|
-
INPUT_PERF_SAMPLING_AVG = "inputPerfSamplingAvg",
|
|
54
|
-
INSERTED = "inserted",
|
|
55
|
-
INVALID_DOCUMENT_ENCOUNTERED = "invalidDocumentEncountered",
|
|
56
|
-
INVOKED = "invoked",
|
|
57
|
-
LANGUAGE_SELECTED = "languageSelected",
|
|
58
|
-
LIST_ITEM_JOINED = "listItemJoined",
|
|
59
|
-
MATCHED = "matched",
|
|
60
|
-
MEDIA_LINK_TRANSFORMED = "mediaLinkTransformed",
|
|
61
|
-
NODE_CONTENT_SANITIZED = "nodeContentSanitized",
|
|
62
|
-
OPENED = "opened",
|
|
63
|
-
OUTDENTED = "outdented",
|
|
64
|
-
PASTED = "pasted",
|
|
65
|
-
PASTED_AS_PLAIN = "pastedAsPlain",
|
|
66
|
-
PASTED_TIMED = "pastedTimed",
|
|
67
|
-
PROSEMIRROR_RENDERED = "proseMirrorRendered",
|
|
68
|
-
REACT_NODEVIEW_RENDERED = "reactNodeViewRendered",
|
|
69
|
-
REPLACED_ALL = "replacedAll",
|
|
70
|
-
REPLACED_ONE = "replacedOne",
|
|
71
|
-
RESOLVED = "resolved",
|
|
72
|
-
SELECTED = "selected",
|
|
73
|
-
SHOWN = "shown",
|
|
74
|
-
SLOW_INPUT = "slowInput",
|
|
75
|
-
STARTED = "started",
|
|
76
|
-
STOPPED = "stopped",
|
|
77
|
-
SUBSTITUTED = "autoSubstituted",
|
|
78
|
-
SYNCHRONY_DISCONNECTED = "synchronyDisconnected",
|
|
79
|
-
SYNCHRONY_ENTITY_ERROR = "synchronyEntityError",
|
|
80
|
-
SYNCHRONY_ERROR = "synchronyError",
|
|
81
|
-
TEXT_LINK_MARK_TRANSFORMED = "textLinkMarkTransformed",
|
|
82
|
-
DEDUPE_MARKS_TRANSFORMED = "dedupeMarksTransformed",
|
|
83
|
-
NODES_MISSING_CONTENT_TRANSFORMED = "nodesMissingContentTransformed",
|
|
84
|
-
INDENTATION_MARKS_TRANSFORMED = "indentationMarksTransformed",
|
|
85
|
-
TOGGLE_EXPAND = "toggleExpand",
|
|
86
|
-
TRANSACTION_DISPATCHED = "transactionDispatched",
|
|
87
|
-
TRANSACTION_MUTATED_AFTER_DISPATCH = "transactionMutatedAfterDispatched",
|
|
88
|
-
TYPING_FINISHED = "typingFinished",
|
|
89
|
-
TYPING_STARTED = "typingStarted",
|
|
90
|
-
UNLINK = "unlinked",
|
|
91
|
-
UNSUPPORTED_CONTENT_ENCOUNTERED = "unsupportedContentEncountered",
|
|
92
|
-
UPDATED = "updated",
|
|
93
|
-
UPLOAD_EXTERNAL_FAIL = "uploadExternalFailed",
|
|
94
|
-
VIEWED = "viewed",
|
|
95
|
-
VISITED = "visited",
|
|
96
|
-
WITH_PLUGIN_STATE_CALLED = "withPluginStateCalled",
|
|
97
|
-
RENDERED = "rendered",
|
|
98
|
-
ON_EDITOR_READY_CALLBACK = "onEditorReadyCallback",
|
|
99
|
-
ON_CHANGE_CALLBACK = "onChangeCalled",
|
|
100
|
-
NEW_COLLAB_SYNC_UP_ERROR_NO_STEPS = "newCollabSyncUpErrorNoSteps",
|
|
101
|
-
REMOVE_ICON = "removedIcon",
|
|
102
|
-
UFO_SESSION_COMPLETE = "ufoSessionComplete",
|
|
103
|
-
INVALID_PROSEMIRROR_DOCUMENT = "invalidProsemirrorDocument",
|
|
104
|
-
DOCUMENT_PROCESSING_ERROR = "documentProcessingError"
|
|
105
|
-
}
|
|
106
|
-
export declare enum INPUT_METHOD {
|
|
107
|
-
ASCII = "ascii",
|
|
108
|
-
AUTO = "auto",
|
|
109
|
-
AUTO_DETECT = "autoDetect",
|
|
110
|
-
BUTTON = "button",
|
|
111
|
-
BLUR = "blur",
|
|
112
|
-
CARD = "card",
|
|
113
|
-
CLIPBOARD = "clipboard",
|
|
114
|
-
CONFIG_PANEL = "configPanel",
|
|
115
|
-
CONTEXT_MENU = "contextMenu",
|
|
116
|
-
DRAG_AND_DROP = "dragAndDrop",
|
|
117
|
-
EXTERNAL = "external",
|
|
118
|
-
EXTENSION_API = "extensionApi",
|
|
119
|
-
FLOATING_TB = "floatingToolbar",
|
|
120
|
-
FORMATTING = "autoformatting",
|
|
121
|
-
INSERT_MENU = "insertMenu",
|
|
122
|
-
KEYBOARD = "keyboard",
|
|
123
|
-
MACRO_BROWSER = "macroBrowser",
|
|
124
|
-
MANUAL = "manual",
|
|
125
|
-
PICKER = "picker",
|
|
126
|
-
PICKER_CLOUD = "cloudPicker",
|
|
127
|
-
PREFILL = "prefill",
|
|
128
|
-
QUICK_INSERT = "quickInsert",
|
|
129
|
-
SHORTCUT = "shortcut",
|
|
130
|
-
TOOLBAR = "toolbar",
|
|
131
|
-
TYPEAHEAD = "typeAhead"
|
|
132
|
-
}
|
|
133
|
-
export declare enum TRIGGER_METHOD {
|
|
134
|
-
BUTTON = "button",
|
|
135
|
-
KEYBOARD = "keyboard",
|
|
136
|
-
SHORTCUT = "shortcut",
|
|
137
|
-
TOOLBAR = "toolbar"
|
|
138
|
-
}
|
|
139
|
-
export declare enum ACTION_SUBJECT {
|
|
140
|
-
TOOLBAR_BUTTON = "toolbarButton",
|
|
141
|
-
BUTTON = "button",
|
|
142
|
-
CONFIG_PANEL = "configPanel",
|
|
143
|
-
CONTENT_COMPONENT = "contentComponent",
|
|
144
|
-
DATE = "date",
|
|
145
|
-
DATE_SEGMENT = "dateSegment",
|
|
146
|
-
DOCUMENT = "document",
|
|
147
|
-
EDITOR = "editor",
|
|
148
|
-
ELEMENT_BROWSER = "elementBrowser",
|
|
149
|
-
EMBEDS = "embeds",
|
|
150
|
-
EXPAND = "expand",
|
|
151
|
-
EXTENSION = "extension",
|
|
152
|
-
FEATURE = "feature",
|
|
153
|
-
FEEDBACK_DIALOG = "feedbackDialog",
|
|
154
|
-
FIND_REPLACE_DIALOG = "findReplaceDialog",
|
|
155
|
-
FLOATING_CONTEXTUAL_BUTTON = "floatingContextualButton",
|
|
156
|
-
FLOATING_TOOLBAR_PLUGIN = "floatingToolbarPlugin",
|
|
157
|
-
HELP = "help",
|
|
158
|
-
LAYOUT = "layout",
|
|
159
|
-
LIST = "list",
|
|
160
|
-
MEDIA = "media",
|
|
161
|
-
MEDIA_SINGLE = "mediaSingle",
|
|
162
|
-
NESTED_EXPAND = "nestedExpand",
|
|
163
|
-
PANEL = "panel",
|
|
164
|
-
PICKER = "picker",
|
|
165
|
-
PLUS_MENU = "plusMenu",
|
|
166
|
-
PLUGIN_SLOT = "pluginSlot",
|
|
167
|
-
REACT_NODE_VIEW = "reactNodeView",
|
|
168
|
-
SELECTION = "selection",
|
|
169
|
-
SMART_LINK = "smartLink",
|
|
170
|
-
HYPERLINK = "hyperlink",
|
|
171
|
-
TABLE = "table",
|
|
172
|
-
TABLES_PLUGIN = "tablesPlugin",
|
|
173
|
-
TEXT = "text",
|
|
174
|
-
TOOLBAR = "toolbar",
|
|
175
|
-
TYPEAHEAD = "typeAhead",
|
|
176
|
-
TYPEAHEAD_ITEM = "typeAheadItem",
|
|
177
|
-
ANNOTATION = "annotation",
|
|
178
|
-
SEARCH_RESULT = "searchResult",
|
|
179
|
-
CREATE_LINK_INLINE_DIALOG = "createLinkInlineDialog",
|
|
180
|
-
CODE_BLOCK = "codeBlock",
|
|
181
|
-
REACT_EDITOR_VIEW = "reactEditorView"
|
|
182
|
-
}
|
|
183
|
-
export declare enum ACTION_SUBJECT_ID {
|
|
184
|
-
ACTION = "action",
|
|
185
|
-
ALL = "all",
|
|
186
|
-
ALT_TEXT = "altText",
|
|
187
|
-
ANNOTATE_BUTTON = "annotateButton",
|
|
188
|
-
AVATAR_GROUP_PLUGIN = "AvatarGroupInPlugin",
|
|
189
|
-
BLOCK_QUOTE = "blockQuote",
|
|
190
|
-
BUTTON_FEEDBACK = "feedbackButton",
|
|
191
|
-
BUTTON_HELP = "helpButton",
|
|
192
|
-
BUTTON_CATEGORY = "categoryButton",
|
|
193
|
-
CANCEL = "cancel",
|
|
194
|
-
CARD_BLOCK = "blockCard",
|
|
195
|
-
CAPTION = "caption",
|
|
196
|
-
CARD_INLINE = "inlineCard",
|
|
197
|
-
CELL = "cell",
|
|
198
|
-
CODE_BLOCK = "codeBlock",
|
|
199
|
-
DATE = "date",
|
|
200
|
-
DATE_DAY = "day",
|
|
201
|
-
DATE_MONTH = "month",
|
|
202
|
-
DATE_YEAR = "year",
|
|
203
|
-
DECISION = "decision",
|
|
204
|
-
DIVIDER = "divider",
|
|
205
|
-
EMOJI = "emoji",
|
|
206
|
-
EXPAND = "expand",
|
|
207
|
-
EXTENSION = "extension",
|
|
208
|
-
EXTENSION_API = "extensionApi",
|
|
209
|
-
EXTENSION_BLOCK = "extension",
|
|
210
|
-
EXTENSION_BODIED = "bodiedExtension",
|
|
211
|
-
EXTENSION_INLINE = "inlineExtension",
|
|
212
|
-
FORMAT_BLOCK_QUOTE = "blockQuote",
|
|
213
|
-
FORMAT_CLEAR = "clearFormatting",
|
|
214
|
-
FORMAT_CODE = "code",
|
|
215
|
-
FORMAT_COLOR = "color",
|
|
216
|
-
FORMAT_HEADING = "heading",
|
|
217
|
-
FORMAT_INDENT = "indentation",
|
|
218
|
-
FORMAT_ITALIC = "italic",
|
|
219
|
-
FORMAT_LIST_BULLET = "bulletedList",
|
|
220
|
-
FORMAT_LIST_NUMBER = "numberedList",
|
|
221
|
-
FORMAT_STRIKE = "strike",
|
|
222
|
-
FORMAT_STRONG = "strong",
|
|
223
|
-
FORMAT_SUB = "subscript",
|
|
224
|
-
FORMAT_SUPER = "superscript",
|
|
225
|
-
FORMAT_UNDERLINE = "underline",
|
|
226
|
-
HELP_QUICK_INSERT = "helpQuickInsert",
|
|
227
|
-
INLINE_COMMENT = "inlineComment",
|
|
228
|
-
LAYOUT = "layout",
|
|
229
|
-
RICH_MEDIA_LAYOUT = "richMediaLayout",
|
|
230
|
-
LINE_BREAK = "lineBreak",
|
|
231
|
-
LINK = "link",
|
|
232
|
-
LINK_PREVIEW = "linkPreview",
|
|
233
|
-
MEDIA = "media",
|
|
234
|
-
MEDIA_GROUP = "mediaGroup",
|
|
235
|
-
MEDIA_INLINE = "mediaInline",
|
|
236
|
-
MEDIA_SINGLE = "mediaSingle",
|
|
237
|
-
MEDIA_LINK = "mediaLink",
|
|
238
|
-
MENTION = "mention",
|
|
239
|
-
NESTED_EXPAND = "nestedExpand",
|
|
240
|
-
NODE = "node",
|
|
241
|
-
PANEL = "panel",
|
|
242
|
-
PASTE_BLOCK_CARD = "blockCard",
|
|
243
|
-
PASTE_BLOCKQUOTE = "blockQuote",
|
|
244
|
-
PASTE_BODIED_EXTENSION = "bodiedExtension",
|
|
245
|
-
PASTE_BULLET_LIST = "bulletList",
|
|
246
|
-
PASTE_CODE_BLOCK = "codeBlock",
|
|
247
|
-
PASTE_DECISION_LIST = "decisionList",
|
|
248
|
-
PASTE_EXPAND = "expand",
|
|
249
|
-
PASTE_EXTENSION = "extension",
|
|
250
|
-
PASTE_HEADING = "heading",
|
|
251
|
-
PASTE_MEDIA_GROUP = "mediaGroup",
|
|
252
|
-
PASTE_MEDIA_SINGLE = "mediaSingle",
|
|
253
|
-
PASTE_NESTED_EXPAND = "nestedExpand",
|
|
254
|
-
PASTE_ORDERED_LIST = "orderedList",
|
|
255
|
-
PASTE_PANEL = "panel",
|
|
256
|
-
PASTE_PARAGRAPH = "paragraph",
|
|
257
|
-
PASTE_RULE = "rule",
|
|
258
|
-
PASTE_TABLE = "table",
|
|
259
|
-
PASTE_TABLE_CELL = "tableCell",
|
|
260
|
-
PASTE_TABLE_HEADER = "tableHeader",
|
|
261
|
-
PASTE_TABLE_ROW = "tableRow",
|
|
262
|
-
PASTE_TASK_LIST = "taskList",
|
|
263
|
-
PICKER_COLOR = "colorPicker",
|
|
264
|
-
PICKER_CLOUD = "cloudPicker",
|
|
265
|
-
PICKER_EMOJI = "emojiPicker",
|
|
266
|
-
PRODUCT_NAME = "productName",
|
|
267
|
-
PLACEHOLDER_TEXT = "placeholderText",
|
|
268
|
-
PUNC = "punctuation",
|
|
269
|
-
RANGE = "range",
|
|
270
|
-
REACT_NODE_VIEW = "reactNodeView",
|
|
271
|
-
RESIZED = "resized",
|
|
272
|
-
SAVE = "save",
|
|
273
|
-
SECTION = "section",
|
|
274
|
-
SMART_LINK = "smartLink",
|
|
275
|
-
STATUS = "status",
|
|
276
|
-
SYMBOL = "symbol",
|
|
277
|
-
TABLE = "table",
|
|
278
|
-
TEXT = "text",
|
|
279
|
-
TYPEAHEAD_EMOJI = "emojiTypeAhead",
|
|
280
|
-
TYPEAHEAD_LINK = "linkTypeAhead",
|
|
281
|
-
TYPEAHEAD_MENTION = "mentionTypeAhead",
|
|
282
|
-
TYPEAHEAD_QUICK_INSERT = "quickInsertTypeAhead",
|
|
283
|
-
UNSUPPORTED_BLOCK = "unsupportedBlock",
|
|
284
|
-
UNSUPPORTED_INLINE = "unsupportedInline",
|
|
285
|
-
UNSUPPORTED_MARK = "unsupportedMark",
|
|
286
|
-
UNKNOWN_NODE = "unknownNode",
|
|
287
|
-
RECENT_ACTIVITIES = "recentActivities",
|
|
288
|
-
QUICK_SEARCH = "quickSearch",
|
|
289
|
-
LINK_SEARCH_INPUT = "linkSearchInput",
|
|
290
|
-
PRE_QUERY_SEARCH_RESULTS = "preQuerySearchResults",
|
|
291
|
-
POST_QUERY_SEARCH_RESULTS = "postQuerySearchResults",
|
|
292
|
-
EDIT_LINK = "editLink",
|
|
293
|
-
UNLINK = "unlink",
|
|
294
|
-
OPEN_LINK = "openLink",
|
|
295
|
-
GOTO_SMART_LINK_SETTINGS = "goToSmartLinkSettings",
|
|
296
|
-
EMBEDS = "embeds",
|
|
297
|
-
HYPERLINK = "hyperlink"
|
|
298
|
-
}
|
|
299
|
-
export declare enum FLOATING_CONTROLS_TITLE {
|
|
300
|
-
CODE_BLOCK = "codeBlockFloatingControls",
|
|
301
|
-
EXTENSION = "extensionFloatingControls",
|
|
302
|
-
HYPERLINK = "hyperlinkFloatingControls",
|
|
303
|
-
MEDIA = "mediaFloatingControls",
|
|
304
|
-
PANEL = "panelFloatingControls",
|
|
305
|
-
TABLE = "tableFloatingControls",
|
|
306
|
-
EXPAND = "expandToolbar"
|
|
307
|
-
}
|
|
308
|
-
export declare enum CONTENT_COMPONENT {
|
|
309
|
-
INLINE_COMMENT = "inlineComment",
|
|
310
|
-
FLOATING_CONTEXTUAL_BUTTON = "floatingContextualButton",
|
|
311
|
-
FLOATING_INSERT_BUTTON = "floatingInsertButton",
|
|
312
|
-
FLOATING_TOOLBAR = "floatingToolbar"
|
|
313
|
-
}
|
|
1
|
+
export { EVENT_TYPE, ACTION, INPUT_METHOD, TRIGGER_METHOD, ACTION_SUBJECT, ACTION_SUBJECT_ID, FLOATING_CONTROLS_TITLE, CONTENT_COMPONENT, } from '@atlaskit/editor-common/analytics';
|
|
@@ -1,111 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { Dispatch } from '../../../event-dispatcher';
|
|
3
|
-
import { GeneralEventPayload } from './general-events';
|
|
4
|
-
import { FormatEventPayload } from './format-events';
|
|
5
|
-
import { SubstituteEventPayload } from './substitute-events';
|
|
6
|
-
import { InsertEventPayload } from './insert-events';
|
|
7
|
-
import { NodeEventPayload } from './node-events';
|
|
8
|
-
import { MediaEventPayload } from './media-events';
|
|
9
|
-
import { TableEventPayload } from './table-events';
|
|
10
|
-
import { PasteEventPayload } from './paste-events';
|
|
11
|
-
import { CutCopyEventPayload } from './cut-copy-events';
|
|
12
|
-
import { ListEventPayload } from './list-events';
|
|
13
|
-
import { ExperimentalEventPayload } from './experimental-events';
|
|
14
|
-
import { FindReplaceEventPayload } from './find-replace-events';
|
|
15
|
-
import { ConfigPanelEventPayload } from './config-panel-events';
|
|
16
|
-
import { ElementBrowserEventPayload } from './element-browser-events';
|
|
17
|
-
import { TypeAheadPayload } from './type-ahead';
|
|
18
|
-
import { OperationalAEP, OperationalExposureAEP, TrackAEP } from './utils';
|
|
19
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, CONTENT_COMPONENT, FLOATING_CONTROLS_TITLE } from './enums';
|
|
20
|
-
import { SimplifiedNode } from '../../../utils/document-logger';
|
|
21
|
-
import { DateEventPayload } from './date-events';
|
|
22
|
-
import { SelectionEventPayload } from './selection-events';
|
|
23
|
-
import { CreateLinkInlineDialogEventPayload, UnlinkToolbarAEP, EditLinkToolbarAEP, OpenSettingsToolbarAEP } from './link-tool-bar-events';
|
|
24
|
-
import { ExtensionEventPayload } from './extension-events';
|
|
25
|
-
import type { UnsupportedContentPayload, UnsupportedContentTooltipPayload, UserBrowserExtensionResults } from '@atlaskit/editor-common/utils';
|
|
26
|
-
import { AvatarEventPayload } from './avatar';
|
|
27
|
-
import { NewCollabSyncUpErrorAttributes } from '@atlaskit/editor-common/types';
|
|
28
|
-
export declare type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload;
|
|
29
|
-
declare type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
|
|
30
|
-
previousColor: string;
|
|
31
|
-
newColor: string;
|
|
32
|
-
} | {
|
|
33
|
-
previousIcon: string;
|
|
34
|
-
newIcon: string;
|
|
35
|
-
} | {
|
|
36
|
-
icon: string;
|
|
37
|
-
}, undefined>;
|
|
38
|
-
export declare type AnalyticsEventPayloadWithChannel = {
|
|
39
|
-
channel: string;
|
|
40
|
-
payload: AnalyticsEventPayload;
|
|
41
|
-
};
|
|
42
|
-
export declare type AnalyticsDispatch = Dispatch<{
|
|
43
|
-
payload: AnalyticsEventPayload;
|
|
44
|
-
channel?: string;
|
|
45
|
-
}>;
|
|
46
|
-
export declare type FeatureExposureAEP = OperationalExposureAEP<ACTION.EXPOSED, ACTION_SUBJECT.FEATURE, undefined, {
|
|
47
|
-
flagKey: string;
|
|
48
|
-
value: string | boolean;
|
|
49
|
-
}>;
|
|
50
|
-
declare type InvalidTransactionErrorAEP = OperationalAEP<ACTION.DISPATCHED_INVALID_TRANSACTION, ACTION_SUBJECT.EDITOR, undefined, {
|
|
51
|
-
analyticsEventPayloads: AnalyticsEventPayloadWithChannel[];
|
|
52
|
-
invalidNodes: (SimplifiedNode | string)[];
|
|
53
|
-
}, undefined>;
|
|
54
|
-
declare type DispatchedValidTransactionAEP = OperationalAEP<ACTION.DISPATCHED_VALID_TRANSACTION, ACTION_SUBJECT.EDITOR, undefined, undefined, undefined>;
|
|
55
|
-
declare type InvalidTransactionStepErrorAEP = OperationalAEP<ACTION.DISCARDED_INVALID_STEPS_FROM_TRANSACTION, ACTION_SUBJECT.EDITOR, undefined, {
|
|
56
|
-
analyticsEventPayloads: AnalyticsEventPayloadWithChannel[];
|
|
57
|
-
}, undefined>;
|
|
58
|
-
export declare type TransactionEventPayload = DispatchedValidTransactionAEP;
|
|
59
|
-
declare type FailedToUnmountErrorAEP = OperationalAEP<ACTION.FAILED_TO_UNMOUNT, ACTION_SUBJECT.EDITOR, ACTION_SUBJECT_ID.REACT_NODE_VIEW, {
|
|
60
|
-
error: Error;
|
|
61
|
-
domNodes: {
|
|
62
|
-
container?: string;
|
|
63
|
-
child?: string;
|
|
64
|
-
};
|
|
65
|
-
}, undefined>;
|
|
66
|
-
declare type SynchronyErrorAEP = OperationalAEP<ACTION.SYNCHRONY_ERROR, ACTION_SUBJECT.EDITOR, undefined, {
|
|
67
|
-
error: Error;
|
|
68
|
-
docStructure?: string | SimplifiedNode;
|
|
69
|
-
browserExtensions?: UserBrowserExtensionResults;
|
|
70
|
-
}, undefined>;
|
|
71
|
-
declare type NewCollabSyncUpErrorAEP = OperationalAEP<ACTION.NEW_COLLAB_SYNC_UP_ERROR_NO_STEPS, ACTION_SUBJECT.EDITOR, undefined, NewCollabSyncUpErrorAttributes, undefined>;
|
|
72
|
-
declare type InvalidDocumentEncounteredAEP = OperationalAEP<ACTION.INVALID_DOCUMENT_ENCOUNTERED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
73
|
-
nodeType: string;
|
|
74
|
-
reason: string;
|
|
75
|
-
tableLocalId: string;
|
|
76
|
-
spanValue: number;
|
|
77
|
-
}, undefined>;
|
|
78
|
-
declare type SynchronyEntityErrorAEP = OperationalAEP<ACTION.SYNCHRONY_ENTITY_ERROR | ACTION.SYNCHRONY_DISCONNECTED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
79
|
-
onLine: boolean;
|
|
80
|
-
visibilityState: string;
|
|
81
|
-
}, undefined>;
|
|
82
|
-
declare type ContentComponentErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.CONTENT_COMPONENT, undefined, {
|
|
83
|
-
component: CONTENT_COMPONENT;
|
|
84
|
-
error: string;
|
|
85
|
-
errorStack?: string;
|
|
86
|
-
selection: {
|
|
87
|
-
[key: string]: string;
|
|
88
|
-
};
|
|
89
|
-
position: number;
|
|
90
|
-
docSize: number;
|
|
91
|
-
}, undefined>;
|
|
92
|
-
export declare type ErrorEventAttributes = {
|
|
93
|
-
error: Error;
|
|
94
|
-
errorInfo: React.ErrorInfo;
|
|
95
|
-
product?: string;
|
|
96
|
-
browserInfo?: string;
|
|
97
|
-
errorId?: string;
|
|
98
|
-
docStructure?: string | SimplifiedNode;
|
|
99
|
-
browserExtensions?: UserBrowserExtensionResults;
|
|
100
|
-
};
|
|
101
|
-
declare 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, undefined>;
|
|
102
|
-
declare type ComponentCrashAdditionalInfoErrorAEP = OperationalAEP<ACTION.EDITOR_CRASHED_ADDITIONAL_INFORMATION, ACTION_SUBJECT.EDITOR, undefined, {
|
|
103
|
-
errorStack: string;
|
|
104
|
-
errorId: string;
|
|
105
|
-
}, undefined>;
|
|
106
|
-
declare type SmartLinkErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.SMART_LINK, undefined, {
|
|
107
|
-
error: string;
|
|
108
|
-
errorStack?: string;
|
|
109
|
-
}, undefined>;
|
|
110
|
-
export declare type ErrorEventPayload = InvalidTransactionErrorAEP | InvalidTransactionStepErrorAEP | FailedToUnmountErrorAEP | SynchronyErrorAEP | InvalidDocumentEncounteredAEP | SynchronyEntityErrorAEP | ContentComponentErrorAEP | ComponentCrashErrorAEP | ComponentCrashAdditionalInfoErrorAEP | SmartLinkErrorAEP;
|
|
111
|
-
export {};
|
|
1
|
+
export type { AnalyticsDispatch, AnalyticsEventPayload, AnalyticsEventPayloadCallback, AnalyticsEventPayloadWithChannel, FeatureExposureAEP, TransactionEventPayload, ErrorEventAttributes, ErrorEventPayload, } from '@atlaskit/editor-common/analytics';
|
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { TrackAEP } from './utils';
|
|
3
|
-
declare type ExperimentalAEP<Action, ActionSubject, ActionSubjectId, Attributes> = TrackAEP<Action, ActionSubject, ActionSubjectId, Attributes & {
|
|
4
|
-
experiment: string;
|
|
5
|
-
experimentGroup: string;
|
|
6
|
-
}, undefined>;
|
|
7
|
-
export interface TextColorSelectedAttr {
|
|
8
|
-
color: string;
|
|
9
|
-
isNewColor: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare type TextColorSelectedAEP = ExperimentalAEP<ACTION.FORMATTED, ACTION_SUBJECT.TEXT, ACTION_SUBJECT_ID.FORMAT_COLOR, TextColorSelectedAttr>;
|
|
12
|
-
export interface TextColorShowPaletteToggleAttr {
|
|
13
|
-
noSelect: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare type TextColorShowPaletteToggleAEP = ExperimentalAEP<ACTION.OPENED | ACTION.CLOSED, ACTION_SUBJECT.TOOLBAR, ACTION_SUBJECT_ID.FORMAT_COLOR, TextColorShowPaletteToggleAttr>;
|
|
16
|
-
export declare type ExperimentalEventPayload = TextColorSelectedAEP | TextColorShowPaletteToggleAEP;
|
|
17
|
-
export {};
|
|
1
|
+
export type { TextColorSelectedAttr, TextColorSelectedAEP, TextColorShowPaletteToggleAttr, TextColorShowPaletteToggleAEP, ExperimentalEventPayload, } from '@atlaskit/editor-common/analytics';
|
|
@@ -1,43 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
4
|
-
export declare enum SELECTION_TYPE {
|
|
5
|
-
TEXT = "text",
|
|
6
|
-
NODE = "node",
|
|
7
|
-
CELL = "cell",
|
|
8
|
-
GAP_CURSOR = "gapCursor"
|
|
9
|
-
}
|
|
10
|
-
export declare enum GAP_CURSOR_POSITION {
|
|
11
|
-
LEFT = "left",
|
|
12
|
-
RIGHT = "right"
|
|
13
|
-
}
|
|
14
|
-
export declare enum TARGET_SELECTION_SOURCE {
|
|
15
|
-
CURRENT_SELECTION = "currentSelection",
|
|
16
|
-
HTML_ELEMENT = "htmlElement"
|
|
17
|
-
}
|
|
18
|
-
export declare type SelectionJson = {
|
|
19
|
-
type: SELECTION_TYPE;
|
|
20
|
-
anchor?: number;
|
|
21
|
-
head?: number;
|
|
22
|
-
side?: GAP_CURSOR_POSITION;
|
|
23
|
-
pos?: number;
|
|
24
|
-
};
|
|
25
|
-
export declare type ExtensionType = ACTION_SUBJECT_ID.EXTENSION_BLOCK | ACTION_SUBJECT_ID.EXTENSION_BODIED | ACTION_SUBJECT_ID.EXTENSION_INLINE;
|
|
26
|
-
declare type ExtensionUpdateAEP = TrackAEP<ACTION.UPDATED | ACTION.ERRORED, ACTION_SUBJECT.EXTENSION, ExtensionType, {
|
|
27
|
-
extensionType: string;
|
|
28
|
-
/**
|
|
29
|
-
* extensionkey follows this format:
|
|
30
|
-
* `${manifest.key}:${manifest.modules.nodes.name}`
|
|
31
|
-
* e.g: 'awesome:item', 'awesome:default', 'awesome:list'
|
|
32
|
-
*/
|
|
33
|
-
extensionKey: string;
|
|
34
|
-
layout?: ExtensionLayout;
|
|
35
|
-
localId?: string;
|
|
36
|
-
selection: SelectionJson;
|
|
37
|
-
targetSelectionSource: TARGET_SELECTION_SOURCE;
|
|
38
|
-
}, INPUT_METHOD.MACRO_BROWSER | INPUT_METHOD.CONFIG_PANEL | INPUT_METHOD.TOOLBAR>;
|
|
39
|
-
declare type ExtensionAPICalledPayload = TrackAEP<ACTION.INVOKED, ACTION_SUBJECT.EXTENSION, ACTION_SUBJECT_ID.EXTENSION_API, {
|
|
40
|
-
functionName: string;
|
|
41
|
-
}, INPUT_METHOD.EXTENSION_API>;
|
|
42
|
-
export declare type ExtensionEventPayload = ExtensionUpdateAEP | ExtensionAPICalledPayload;
|
|
43
|
-
export {};
|
|
1
|
+
export { SELECTION_TYPE, GAP_CURSOR_POSITION, TARGET_SELECTION_SOURCE, } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
export type { SelectionJson, ExtensionType, ExtensionEventPayload, } from '@atlaskit/editor-common/analytics';
|
|
@@ -1,179 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { PluginPerformanceReportData } from '../../../utils/performance/plugin-performance-report';
|
|
4
|
-
import { ShallowPropsDifference, PropsDifference } from '@atlaskit/editor-common/utils';
|
|
5
|
-
import { FeatureFlagKey } from '../../../types/feature-flags';
|
|
6
|
-
import { AnnotationAEP } from './inline-comment-events';
|
|
7
|
-
import { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
8
|
-
import { SEVERITY } from '@atlaskit/editor-common/utils';
|
|
9
|
-
import type { ADFEntityMark } from '@atlaskit/adf-utils/types';
|
|
10
|
-
export declare enum PLATFORMS {
|
|
11
|
-
NATIVE = "mobileNative",
|
|
12
|
-
HYBRID = "mobileHybrid",
|
|
13
|
-
WEB = "web"
|
|
14
|
-
}
|
|
15
|
-
export declare enum MODE {
|
|
16
|
-
RENDERER = "renderer",
|
|
17
|
-
EDITOR = "editor"
|
|
18
|
-
}
|
|
19
|
-
export declare enum FULL_WIDTH_MODE {
|
|
20
|
-
FIXED_WIDTH = "fixedWidth",
|
|
21
|
-
FULL_WIDTH = "fullWidth"
|
|
22
|
-
}
|
|
23
|
-
export declare enum BROWSER_FREEZE_INTERACTION_TYPE {
|
|
24
|
-
LOADING = "loading",
|
|
25
|
-
TYPING = "typing",
|
|
26
|
-
CLICKING = "clicking",
|
|
27
|
-
PASTING = "pasting"
|
|
28
|
-
}
|
|
29
|
-
declare type ButtonAEP<ActionSubjectID, Attributes> = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.BUTTON, ActionSubjectID, Attributes, undefined>;
|
|
30
|
-
declare type PickerAEP<ActionSubjectID, Attributes> = UIAEP<ACTION.OPENED, ACTION_SUBJECT.PICKER, ActionSubjectID, Attributes, undefined>;
|
|
31
|
-
declare type FeedbackAEP = UIAEP<ACTION.OPENED, ACTION_SUBJECT.FEEDBACK_DIALOG, undefined, {
|
|
32
|
-
inputMethod: INPUT_METHOD.QUICK_INSERT;
|
|
33
|
-
}, undefined>;
|
|
34
|
-
declare type EditorStartAEP = UIAEP<ACTION.STARTED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
35
|
-
platform: PLATFORMS.NATIVE | PLATFORMS.HYBRID | PLATFORMS.WEB;
|
|
36
|
-
featureFlags: FeatureFlagKey[];
|
|
37
|
-
}, undefined>;
|
|
38
|
-
declare type EditorPerfAEP = OperationalAEPWithObjectId<ACTION.EDITOR_MOUNTED | ACTION.PROSEMIRROR_RENDERED | ACTION.ON_EDITOR_READY_CALLBACK | ACTION.ON_CHANGE_CALLBACK, ACTION_SUBJECT.EDITOR, undefined, {
|
|
39
|
-
duration: number;
|
|
40
|
-
startTime: number;
|
|
41
|
-
nodes?: Record<string, number>;
|
|
42
|
-
ttfb?: number;
|
|
43
|
-
severity?: SEVERITY;
|
|
44
|
-
distortedDuration?: boolean;
|
|
45
|
-
}, undefined>;
|
|
46
|
-
declare type EditorTTIAEP = OperationalAEP<ACTION.EDITOR_TTI, ACTION_SUBJECT.EDITOR, undefined, {
|
|
47
|
-
tti: number;
|
|
48
|
-
ttiFromInvocation: number;
|
|
49
|
-
canceled: boolean;
|
|
50
|
-
ttiSeverity?: SEVERITY;
|
|
51
|
-
ttiFromInvocationSeverity?: SEVERITY;
|
|
52
|
-
}, undefined>;
|
|
53
|
-
declare type EditorContentRetrievalPerformedAEP = OperationalAEP<ACTION.EDITOR_CONTENT_RETRIEVAL_PERFORMED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
54
|
-
success: boolean;
|
|
55
|
-
errorInfo?: string;
|
|
56
|
-
errorStack?: string;
|
|
57
|
-
}, undefined>;
|
|
58
|
-
declare type EditorRenderedAEP<T> = OperationalAEP<ACTION.RE_RENDERED, ACTION_SUBJECT.EDITOR | ACTION_SUBJECT.REACT_EDITOR_VIEW, undefined, {
|
|
59
|
-
propsDifference: PropsDifference<T> | ShallowPropsDifference<T>;
|
|
60
|
-
count: number;
|
|
61
|
-
}, undefined>;
|
|
62
|
-
export declare type UfoSessionCompletePayloadAEP = OperationalAEP<ACTION.UFO_SESSION_COMPLETE, ACTION_SUBJECT.EDITOR, undefined, {
|
|
63
|
-
interval: number;
|
|
64
|
-
}, undefined>;
|
|
65
|
-
declare type BrowserFreezePayload = OperationalAEPWithObjectId<ACTION.BROWSER_FREEZE, ACTION_SUBJECT.EDITOR, undefined, {
|
|
66
|
-
freezeTime: number;
|
|
67
|
-
nodeSize: number;
|
|
68
|
-
participants: number;
|
|
69
|
-
nodeCount?: Record<string, number>;
|
|
70
|
-
interactionType?: BROWSER_FREEZE_INTERACTION_TYPE;
|
|
71
|
-
severity?: SEVERITY;
|
|
72
|
-
}, undefined>;
|
|
73
|
-
declare type SelectionAEP = TrackAEP<ACTION.MATCHED, ACTION_SUBJECT.SELECTION, undefined, undefined, undefined>;
|
|
74
|
-
declare type SlowInputAEP = OperationalAEPWithObjectId<ACTION.SLOW_INPUT, ACTION_SUBJECT.EDITOR, undefined, {
|
|
75
|
-
time: number;
|
|
76
|
-
nodeSize: number;
|
|
77
|
-
participants: number;
|
|
78
|
-
nodeCount?: Record<string, number>;
|
|
79
|
-
}, undefined>;
|
|
80
|
-
declare type InputPerfSamlingAEP = OperationalAEPWithObjectId<ACTION.INPUT_PERF_SAMPLING, ACTION_SUBJECT.EDITOR, undefined, {
|
|
81
|
-
time: number;
|
|
82
|
-
nodeSize: number;
|
|
83
|
-
participants: number;
|
|
84
|
-
nodeCount?: Record<string, number>;
|
|
85
|
-
severity?: SEVERITY;
|
|
86
|
-
}, undefined>;
|
|
87
|
-
declare type InputPerfSamplingAvgAEP = OperationalAEPWithObjectId<ACTION.INPUT_PERF_SAMPLING_AVG, ACTION_SUBJECT.EDITOR, undefined, {
|
|
88
|
-
mean: number;
|
|
89
|
-
median: number;
|
|
90
|
-
sampleSize: number;
|
|
91
|
-
participants: number;
|
|
92
|
-
nodeCount?: Record<string, number>;
|
|
93
|
-
nodeSize: number;
|
|
94
|
-
severity?: SEVERITY;
|
|
95
|
-
}, undefined>;
|
|
96
|
-
declare type DispatchedTransactionAEP = OperationalAEP<ACTION.TRANSACTION_DISPATCHED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
97
|
-
report: PluginPerformanceReportData;
|
|
98
|
-
participants: number;
|
|
99
|
-
}, undefined>;
|
|
100
|
-
declare type TransactionMutatedAEP = OperationalAEP<ACTION.TRANSACTION_MUTATED_AFTER_DISPATCH, ACTION_SUBJECT.EDITOR, undefined, {
|
|
101
|
-
pluginKey: string;
|
|
102
|
-
}, undefined>;
|
|
103
|
-
declare type WithPluginStateCalledAEP = OperationalAEP<ACTION.WITH_PLUGIN_STATE_CALLED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
104
|
-
plugin: string;
|
|
105
|
-
duration: number;
|
|
106
|
-
participants: number;
|
|
107
|
-
}, undefined>;
|
|
108
|
-
declare type ReactNodeViewRenderedAEP = OperationalAEP<ACTION.REACT_NODEVIEW_RENDERED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
109
|
-
node: string;
|
|
110
|
-
duration: number;
|
|
111
|
-
participants: number;
|
|
112
|
-
}, undefined>;
|
|
113
|
-
declare type UploadExternalFailedAEP = OperationalAEP<ACTION.UPLOAD_EXTERNAL_FAIL, ACTION_SUBJECT.EDITOR, undefined, undefined, undefined>;
|
|
114
|
-
declare type InvalidProsemirrorDocumentErrorAEP = OperationalAEP<ACTION.INVALID_PROSEMIRROR_DOCUMENT, ACTION_SUBJECT.EDITOR, undefined, {
|
|
115
|
-
errorStack?: string;
|
|
116
|
-
}, undefined>;
|
|
117
|
-
declare type DocumentProcessingErrorAEP = OperationalAEP<ACTION.DOCUMENT_PROCESSING_ERROR, ACTION_SUBJECT.EDITOR, undefined, {
|
|
118
|
-
errorStack?: string;
|
|
119
|
-
}, undefined>;
|
|
120
|
-
declare type EditorStopAEP = UIAEP<ACTION.STOPPED, ACTION_SUBJECT.EDITOR, ACTION_SUBJECT_ID.SAVE | ACTION_SUBJECT_ID.CANCEL, {
|
|
121
|
-
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT;
|
|
122
|
-
documentSize: number;
|
|
123
|
-
nodeCount?: {
|
|
124
|
-
tables: number;
|
|
125
|
-
headings: number;
|
|
126
|
-
lists: number;
|
|
127
|
-
mediaSingles: number;
|
|
128
|
-
mediaGroups: number;
|
|
129
|
-
panels: number;
|
|
130
|
-
extensions: number;
|
|
131
|
-
decisions: number;
|
|
132
|
-
actions: number;
|
|
133
|
-
codeBlocks: number;
|
|
134
|
-
};
|
|
135
|
-
}, undefined>;
|
|
136
|
-
declare type AnnotateButtonAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.MEDIA, ACTION_SUBJECT_ID.ANNOTATE_BUTTON, undefined, undefined>;
|
|
137
|
-
declare type ButtonHelpAEP = ButtonAEP<ACTION_SUBJECT_ID.BUTTON_HELP, {
|
|
138
|
-
inputMethod: INPUT_METHOD.SHORTCUT | INPUT_METHOD.TOOLBAR;
|
|
139
|
-
}>;
|
|
140
|
-
declare type ButtonFeedbackAEP = ButtonAEP<ACTION_SUBJECT_ID.BUTTON_FEEDBACK, undefined>;
|
|
141
|
-
declare type PickerEmojiAEP = PickerAEP<ACTION_SUBJECT_ID.PICKER_EMOJI, {
|
|
142
|
-
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD;
|
|
143
|
-
}>;
|
|
144
|
-
declare type PickerImageAEP = PickerAEP<ACTION_SUBJECT_ID.PICKER_CLOUD, {
|
|
145
|
-
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.INSERT_MENU;
|
|
146
|
-
}>;
|
|
147
|
-
declare type HelpQuickInsertAEP = UIAEP<ACTION.HELP_OPENED, ACTION_SUBJECT.HELP, ACTION_SUBJECT_ID.HELP_QUICK_INSERT, {
|
|
148
|
-
inputMethod: INPUT_METHOD.QUICK_INSERT;
|
|
149
|
-
}, undefined>;
|
|
150
|
-
declare type FullWidthModeAEP = TrackAEP<ACTION.CHANGED_FULL_WIDTH_MODE, ACTION_SUBJECT.EDITOR, undefined, {
|
|
151
|
-
previousMode: FULL_WIDTH_MODE;
|
|
152
|
-
newMode: FULL_WIDTH_MODE;
|
|
153
|
-
}, undefined>;
|
|
154
|
-
declare type ExpandToggleAEP = TrackAEP<ACTION.TOGGLE_EXPAND, ACTION_SUBJECT.EXPAND | ACTION_SUBJECT.NESTED_EXPAND, undefined, {
|
|
155
|
-
platform: PLATFORMS;
|
|
156
|
-
mode: MODE;
|
|
157
|
-
expanded: boolean;
|
|
158
|
-
}, undefined>;
|
|
159
|
-
export declare type ColorPickerAEP = TrackAEP<ACTION.UPDATED, ACTION_SUBJECT.PICKER, ACTION_SUBJECT_ID.PICKER_COLOR, {
|
|
160
|
-
color: string;
|
|
161
|
-
label?: string;
|
|
162
|
-
placement: string;
|
|
163
|
-
}, undefined>;
|
|
164
|
-
declare type RichMediaLayoutAEP = TrackAEP<ACTION.SELECTED, ACTION_SUBJECT.MEDIA_SINGLE | ACTION_SUBJECT.EMBEDS, ACTION_SUBJECT_ID.RICH_MEDIA_LAYOUT, {
|
|
165
|
-
previousLayoutType: RichMediaLayout;
|
|
166
|
-
currentLayoutType: RichMediaLayout;
|
|
167
|
-
}, undefined>;
|
|
168
|
-
declare type CodeBlockLanguageSelectedAEP = TrackAEP<ACTION.LANGUAGE_SELECTED, ACTION_SUBJECT.CODE_BLOCK, undefined, {
|
|
169
|
-
language: string;
|
|
170
|
-
}, undefined>;
|
|
171
|
-
declare type MediaLinkTransformedAEP = OperationalAEP<ACTION.MEDIA_LINK_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined, undefined>;
|
|
172
|
-
declare type TextLinkCodeMarkTransformedAEP = OperationalAEP<ACTION.TEXT_LINK_MARK_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined, undefined>;
|
|
173
|
-
declare type DedupeMarksTransformedAEP = OperationalAEP<ACTION.DEDUPE_MARKS_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
174
|
-
discardedMarks: ADFEntityMark[];
|
|
175
|
-
}, undefined>;
|
|
176
|
-
declare type IndentationMarksTransformedAEP = OperationalAEP<ACTION.INDENTATION_MARKS_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined, undefined>;
|
|
177
|
-
declare type NodesMissingContentTransformedAEP = OperationalAEP<ACTION.NODES_MISSING_CONTENT_TRANSFORMED, ACTION_SUBJECT.EDITOR, undefined, undefined, undefined>;
|
|
178
|
-
export declare 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;
|
|
179
|
-
export {};
|
|
1
|
+
export { PLATFORMS, MODE, FULL_WIDTH_MODE, BROWSER_FREEZE_INTERACTION_TYPE, } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
export type { UfoSessionCompletePayloadAEP, ColorPickerAEP, GeneralEventPayload, } from '@atlaskit/editor-common/analytics';
|