@atlaskit/editor-common 73.0.0 → 74.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/analytics/package.json +2 -2
- package/card/package.json +2 -2
- package/collab/package.json +2 -2
- package/core-utils/package.json +2 -2
- package/dist/cjs/provider-helpers/combine-providers.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/provider-helpers/combine-providers.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/provider-helpers/combine-providers.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/__tests_external__/cases/fundamentals/test-cases/editor-is-present.d.ts +1 -1
- package/dist/types/__tests_external__/cases/fundamentals/test-cases/editor-typing.d.ts +1 -1
- package/dist/types/__tests_external__/page-objects/Editor.d.ts +2 -0
- package/dist/types/__tests_external__/page-objects/EditorSmartLink.d.ts +2 -0
- package/dist/types/__tests_external__/page-objects/Renderer.d.ts +2 -0
- package/dist/types/analytics/api.d.ts +1 -1
- package/dist/types/analytics/types/avatar.d.ts +2 -2
- package/dist/types/analytics/types/block.d.ts +3 -3
- package/dist/types/analytics/types/config-panel-events.d.ts +4 -4
- package/dist/types/analytics/types/cut-copy-events.d.ts +3 -3
- package/dist/types/analytics/types/date-events.d.ts +6 -6
- package/dist/types/analytics/types/dispatch-analytics-event.d.ts +1 -1
- package/dist/types/analytics/types/element-browser-events.d.ts +4 -4
- package/dist/types/analytics/types/events.d.ts +26 -26
- package/dist/types/analytics/types/experimental-events.d.ts +4 -4
- package/dist/types/analytics/types/extension-events.d.ts +5 -5
- package/dist/types/analytics/types/find-replace-events.d.ts +9 -9
- package/dist/types/analytics/types/format-events.d.ts +10 -10
- package/dist/types/analytics/types/general-events.d.ts +40 -40
- package/dist/types/analytics/types/inline-comment-events.d.ts +5 -5
- package/dist/types/analytics/types/insert-events.d.ts +23 -23
- package/dist/types/analytics/types/link-tool-bar-events.d.ts +14 -14
- package/dist/types/analytics/types/list-events.d.ts +11 -11
- package/dist/types/analytics/types/media-events.d.ts +12 -12
- package/dist/types/analytics/types/node-events.d.ts +11 -11
- package/dist/types/analytics/types/paste-events.d.ts +10 -10
- package/dist/types/analytics/types/performance-report.d.ts +1 -1
- package/dist/types/analytics/types/referentiality-events.d.ts +10 -10
- package/dist/types/analytics/types/selection-events.d.ts +6 -6
- package/dist/types/analytics/types/smart-links.d.ts +2 -2
- package/dist/types/analytics/types/substitute-events.d.ts +5 -5
- package/dist/types/analytics/types/table-events.d.ts +18 -18
- package/dist/types/analytics/types/toolbar-button.d.ts +2 -2
- package/dist/types/analytics/types/type-ahead.d.ts +8 -8
- package/dist/types/analytics/types/utils.d.ts +9 -9
- package/dist/types/card/utils.d.ts +2 -2
- package/dist/types/collab/types.d.ts +2 -2
- package/dist/types/event-dispatcher/index.d.ts +2 -2
- package/dist/types/extensions/combine-extension-providers.d.ts +1 -1
- package/dist/types/extensions/default-extension-provider.d.ts +1 -1
- package/dist/types/extensions/extension-handlers.d.ts +2 -2
- package/dist/types/extensions/manifest-helpers.d.ts +6 -5
- package/dist/types/extensions/module-helpers.d.ts +4 -4
- package/dist/types/extensions/types/extension-handler.d.ts +9 -9
- package/dist/types/extensions/types/extension-manifest-common.d.ts +4 -4
- package/dist/types/extensions/types/extension-manifest-toolbar-item.d.ts +11 -11
- package/dist/types/extensions/types/extension-manifest.d.ts +30 -30
- package/dist/types/extensions/types/extension-parameters.d.ts +2 -2
- package/dist/types/extensions/types/field-definitions.d.ts +12 -12
- package/dist/types/extensions/types/utils.d.ts +2 -2
- package/dist/types/hooks/useSharedPluginState.d.ts +2 -2
- package/dist/types/i18n/cs.d.ts +6 -6
- package/dist/types/i18n/da.d.ts +6 -6
- package/dist/types/i18n/de.d.ts +6 -6
- package/dist/types/i18n/en.d.ts +6 -6
- package/dist/types/i18n/en_GB.d.ts +6 -6
- package/dist/types/i18n/en_ZZ.d.ts +6 -6
- package/dist/types/i18n/es.d.ts +6 -6
- package/dist/types/i18n/et.d.ts +1 -1
- package/dist/types/i18n/fi.d.ts +6 -6
- package/dist/types/i18n/fr.d.ts +6 -6
- package/dist/types/i18n/hu.d.ts +6 -6
- package/dist/types/i18n/it.d.ts +6 -6
- package/dist/types/i18n/ja.d.ts +6 -6
- package/dist/types/i18n/ko.d.ts +6 -6
- package/dist/types/i18n/languages.d.ts +6 -6
- package/dist/types/i18n/nb.d.ts +6 -6
- package/dist/types/i18n/nl.d.ts +6 -6
- package/dist/types/i18n/pl.d.ts +6 -6
- package/dist/types/i18n/pt_BR.d.ts +6 -6
- package/dist/types/i18n/pt_PT.d.ts +1 -1
- package/dist/types/i18n/ru.d.ts +6 -6
- package/dist/types/i18n/sk.d.ts +1 -1
- package/dist/types/i18n/sv.d.ts +6 -6
- package/dist/types/i18n/th.d.ts +6 -6
- package/dist/types/i18n/tr.d.ts +6 -6
- package/dist/types/i18n/uk.d.ts +6 -6
- package/dist/types/i18n/vi.d.ts +6 -6
- package/dist/types/i18n/zh.d.ts +6 -6
- package/dist/types/i18n/zh_TW.d.ts +6 -6
- package/dist/types/node-width/index.d.ts +1 -1
- package/dist/types/normalize-feature-flags.d.ts +2 -2
- package/dist/types/preset/plugin-injection-api.d.ts +5 -5
- package/dist/types/provider-factory/autoformatting-provider.d.ts +3 -3
- package/dist/types/provider-factory/card-provider.d.ts +1 -1
- package/dist/types/provider-factory/image-upload-provider.d.ts +2 -2
- package/dist/types/provider-factory/macro-provider.d.ts +1 -1
- package/dist/types/provider-factory/media-provider.d.ts +1 -1
- package/dist/types/provider-factory/quick-insert-provider.d.ts +4 -4
- package/dist/types/provider-factory/search-provider.d.ts +1 -1
- package/dist/types/provider-factory/types.d.ts +3 -3
- package/dist/types/provider-factory/with-providers.d.ts +1 -1
- package/dist/types/provider-helpers/combine-providers.d.ts +4 -4
- package/dist/types/provider-helpers/promise-helpers.d.ts +2 -2
- package/dist/types/react-node-view/types.d.ts +6 -6
- package/dist/types/selection/gap-cursor/utils/is-ignored.d.ts +1 -1
- package/dist/types/selection/gap-cursor/utils/is-valid-target-node.d.ts +1 -1
- package/dist/types/selection/types.d.ts +1 -1
- package/dist/types/selection/utils.d.ts +2 -2
- package/dist/types/styles/shared/table.d.ts +1 -1
- package/dist/types/transforms/expand.d.ts +1 -1
- package/dist/types/types/annotation/emitter.d.ts +5 -5
- package/dist/types/types/annotation/index.d.ts +8 -8
- package/dist/types/types/collab.d.ts +2 -2
- package/dist/types/types/command.d.ts +3 -3
- package/dist/types/types/context-panel.d.ts +1 -1
- package/dist/types/types/copy-button.d.ts +2 -2
- package/dist/types/types/editor-actions.d.ts +2 -2
- package/dist/types/types/editor-appearance.d.ts +1 -1
- package/dist/types/types/editor-container-width.d.ts +2 -2
- package/dist/types/types/editor-plugin.d.ts +4 -4
- package/dist/types/types/editor-react-context.d.ts +1 -1
- package/dist/types/types/empty-state-handler.d.ts +2 -2
- package/dist/types/types/feature-flags.d.ts +3 -3
- package/dist/types/types/floating-toolbar.d.ts +26 -26
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/types/next-editor-plugin.d.ts +38 -38
- package/dist/types/types/plugin-factory.d.ts +3 -3
- package/dist/types/types/quick-insert.d.ts +5 -5
- package/dist/types/types/supported-browsers.d.ts +3 -3
- package/dist/types/types/toolbar.d.ts +2 -2
- package/dist/types/types/type-ahead.d.ts +7 -7
- package/dist/types/types/ui-components.d.ts +2 -2
- package/dist/types/ufo/experience-store.d.ts +2 -2
- package/dist/types/ui/BaseTheme/index.d.ts +2 -2
- package/dist/types/ui/Caption/index.d.ts +1 -1
- package/dist/types/ui/DropList/index.d.ts +1 -1
- package/dist/types/ui/ErrorBoundary/index.d.ts +1 -1
- package/dist/types/ui/EventHandlers/index.d.ts +5 -5
- package/dist/types/ui/Layer/index.d.ts +2 -2
- package/dist/types/ui/MediaSingle/index.d.ts +1 -1
- package/dist/types/ui/OverflowShadow/shadowObserver.d.ts +1 -1
- package/dist/types/ui/PortalProvider/index.d.ts +5 -5
- package/dist/types/ui/WidthProvider/index.d.ts +4 -4
- package/dist/types/ui/WithCreateAnalyticsEvent/index.d.ts +1 -1
- package/dist/types/ui/with-outer-listeners.d.ts +1 -1
- package/dist/types/ui-color/ColorPalette/Palettes/type.d.ts +2 -2
- package/dist/types/ui-menu/ArrowKeyNavigationProvider/types.d.ts +7 -7
- package/dist/types/ui-menu/ToolbarButton/index.d.ts +2 -2
- package/dist/types/ui-react/ReactEditorViewContext.d.ts +1 -1
- package/dist/types/ui-react/with-react-editor-view-outer-listeners.d.ts +2 -2
- package/dist/types/utils/analytics.d.ts +7 -7
- package/dist/types/utils/annotation/index.d.ts +1 -1
- package/dist/types/utils/browser-extensions.d.ts +6 -6
- package/dist/types/utils/collab.d.ts +1 -1
- package/dist/types/utils/compare-props.d.ts +8 -8
- package/dist/types/utils/compareNodes.d.ts +2 -2
- package/dist/types/utils/compose.d.ts +1 -1
- package/dist/types/utils/date.d.ts +1 -1
- package/dist/types/utils/dom.d.ts +1 -1
- package/dist/types/utils/error-reporter.d.ts +1 -1
- package/dist/types/utils/extension-handler.d.ts +2 -2
- package/dist/types/utils/imageLoader.d.ts +1 -1
- package/dist/types/utils/nodes.d.ts +2 -2
- package/dist/types/utils/performance/hooks/use-component-render-tracking/index.d.ts +3 -3
- package/dist/types/utils/plugin-state-factory.d.ts +3 -3
- package/dist/types/utils/profiler/render-count.d.ts +2 -2
- package/dist/types/utils/referentiality.d.ts +6 -6
- package/dist/types/utils/slice.d.ts +2 -2
- package/dist/types/utils/track-unsupported-content.d.ts +4 -4
- package/dist/types/utils/traversor.d.ts +1 -1
- package/dist/types/utils/types.d.ts +2 -2
- package/dist/types/utils/unsupportedContent/get-unsupported-content-level-data.d.ts +2 -2
- package/dist/types/utils/validate-using-spec.d.ts +3 -3
- package/dist/types/utils/validator.d.ts +1 -1
- package/dist/types/with-plugin-state/index.d.ts +6 -6
- package/dist/types/with-plugin-state/types.d.ts +3 -3
- package/emoji/package.json +2 -2
- package/error-boundary/package.json +2 -2
- package/event-dispatcher/package.json +2 -2
- package/extensions/package.json +2 -2
- package/hooks/package.json +2 -2
- package/icons/package.json +2 -2
- package/in-product/package.json +2 -2
- package/keymaps/package.json +2 -2
- package/mention/package.json +2 -2
- package/messages/package.json +2 -2
- package/node-width/package.json +2 -2
- package/normalize-feature-flags/package.json +2 -2
- package/package.json +47 -39
- package/panel/package.json +2 -2
- package/portal-provider/package.json +2 -2
- package/preset/package.json +2 -2
- package/provider-factory/package.json +2 -2
- package/provider-helpers/package.json +2 -2
- package/react-node-view/package.json +2 -2
- package/safe-plugin/package.json +2 -2
- package/selection/package.json +2 -2
- package/styles/package.json +2 -2
- package/transforms/package.json +2 -2
- package/type-ahead/package.json +2 -2
- package/types/package.json +2 -2
- package/ufo/package.json +2 -2
- package/ui/package.json +2 -2
- package/ui-color/package.json +2 -2
- package/ui-menu/package.json +2 -2
- package/ui-react/package.json +2 -2
- package/utils/package.json +2 -2
- package/validator/package.json +2 -2
- package/with-plugin-state/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 74.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
10
|
+
## 74.0.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 73.0.0
|
|
4
21
|
|
|
5
22
|
### Major Changes
|
package/analytics/package.json
CHANGED
package/card/package.json
CHANGED
package/collab/package.json
CHANGED
package/core-utils/package.json
CHANGED
|
@@ -72,7 +72,7 @@ var _default = function _default(providers) {
|
|
|
72
72
|
if (typeof method === 'function') {
|
|
73
73
|
return method.apply(provider, args);
|
|
74
74
|
}
|
|
75
|
-
throw new Error("\"".concat(methodName, "\" isn't a function of the provider"));
|
|
75
|
+
throw new Error("\"".concat(String(methodName), "\" isn't a function of the provider"));
|
|
76
76
|
};
|
|
77
77
|
};
|
|
78
78
|
|
|
@@ -24,7 +24,7 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
24
24
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
25
25
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "
|
|
27
|
+
var packageVersion = "74.0.1";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = "0, ".concat((0, _constants.gridSize)(), "px");
|
|
30
30
|
var DropList = /*#__PURE__*/function (_Component) {
|
package/dist/cjs/version.json
CHANGED
|
@@ -21,7 +21,7 @@ export default (providers => {
|
|
|
21
21
|
if (typeof method === 'function') {
|
|
22
22
|
return method.apply(provider, args);
|
|
23
23
|
}
|
|
24
|
-
throw new Error(`"${methodName}" isn't a function of the provider`);
|
|
24
|
+
throw new Error(`"${String(methodName)}" isn't a function of the provider`);
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
/**
|
|
@@ -8,7 +8,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
8
8
|
import { borderRadius, gridSize } from '@atlaskit/theme/constants';
|
|
9
9
|
import Layer from '../Layer';
|
|
10
10
|
const packageName = "@atlaskit/editor-common";
|
|
11
|
-
const packageVersion = "
|
|
11
|
+
const packageVersion = "74.0.1";
|
|
12
12
|
const halfFocusRing = 1;
|
|
13
13
|
const dropOffset = `0, ${gridSize()}px`;
|
|
14
14
|
class DropList extends Component {
|
package/dist/es2019/version.json
CHANGED
|
@@ -65,7 +65,7 @@ export default (function (providers) {
|
|
|
65
65
|
if (typeof method === 'function') {
|
|
66
66
|
return method.apply(provider, args);
|
|
67
67
|
}
|
|
68
|
-
throw new Error("\"".concat(methodName, "\" isn't a function of the provider"));
|
|
68
|
+
throw new Error("\"".concat(String(methodName), "\" isn't a function of the provider"));
|
|
69
69
|
};
|
|
70
70
|
};
|
|
71
71
|
|
|
@@ -18,7 +18,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
18
18
|
import { borderRadius, gridSize } from '@atlaskit/theme/constants';
|
|
19
19
|
import Layer from '../Layer';
|
|
20
20
|
var packageName = "@atlaskit/editor-common";
|
|
21
|
-
var packageVersion = "
|
|
21
|
+
var packageVersion = "74.0.1";
|
|
22
22
|
var halfFocusRing = 1;
|
|
23
23
|
var dropOffset = "0, ".concat(gridSize(), "px");
|
|
24
24
|
var DropList = /*#__PURE__*/function (_Component) {
|
package/dist/esm/version.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCase } from '@atlaskit/in-product-testing';
|
|
2
2
|
import { EditorTestCaseOpts } from '../../types';
|
|
3
|
-
export declare const editorIsPresentTestCase: (testOptions?: EditorTestCaseOpts
|
|
3
|
+
export declare const editorIsPresentTestCase: (testOptions?: EditorTestCaseOpts) => InProductTestCase;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InProductTestCase } from '@atlaskit/in-product-testing';
|
|
2
2
|
import { EditorTestCaseOpts } from '../../types';
|
|
3
|
-
export declare const editorTypingTestCase: (opts?: EditorTestCaseOpts
|
|
3
|
+
export declare const editorTypingTestCase: (opts?: EditorTestCaseOpts) => InProductTestCase;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/// <reference types="cypress" />
|
|
2
|
+
/// <reference types="cypress" />
|
|
3
|
+
/// <reference types="cypress" />
|
|
2
4
|
import { InProductTestPageObject } from '@atlaskit/in-product-testing';
|
|
3
5
|
import { EditorTestCaseOpts } from '../cases/types';
|
|
4
6
|
import { RendererPageObject } from './Renderer';
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/// <reference types="cypress" />
|
|
2
|
+
/// <reference types="cypress" />
|
|
3
|
+
/// <reference types="cypress" />
|
|
2
4
|
import { CypressType, InProductTestPageObject } from '@atlaskit/in-product-testing';
|
|
3
5
|
import { CardAppearance } from '@atlaskit/smart-card';
|
|
4
6
|
import { EditorPageObject } from './Editor';
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/// <reference types="cypress" />
|
|
2
|
+
/// <reference types="cypress" />
|
|
3
|
+
/// <reference types="cypress" />
|
|
2
4
|
import { InProductTestPageObject } from '@atlaskit/in-product-testing';
|
|
3
5
|
export declare class RendererPageObject extends InProductTestPageObject {
|
|
4
6
|
getContent(): Cypress.Chainable<JQuery<HTMLElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Transaction } from 'prosemirror-state';
|
|
2
2
|
import type { AnalyticsEventPayload } from './types';
|
|
3
|
-
export
|
|
3
|
+
export type EditorAnalyticsAPI = {
|
|
4
4
|
attachAnalyticsEvent: (payload: AnalyticsEventPayload) => (tr: Transaction) => boolean;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
|
|
2
2
|
import { UIAEP } from './utils';
|
|
3
|
-
|
|
4
|
-
export
|
|
3
|
+
type AvatarButtonViewedAEP = UIAEP<ACTION.VIEWED, ACTION_SUBJECT.BUTTON, ACTION_SUBJECT_ID.AVATAR_GROUP_PLUGIN, {}, undefined>;
|
|
4
|
+
export type AvatarEventPayload = AvatarButtonViewedAEP;
|
|
5
5
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export type HeadingLevels = 1 | 2 | 3 | 4 | 5 | 6;
|
|
2
|
+
export type NormalTextLevel = 0;
|
|
3
|
+
export type HeadingLevelsAndNormalText = HeadingLevels | NormalTextLevel;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ACTION, ACTION_SUBJECT } from './enums';
|
|
2
2
|
import { UIAEP } from './utils';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
type OpenAEP = UIAEP<ACTION.OPENED, ACTION_SUBJECT.CONFIG_PANEL, undefined, {}, undefined>;
|
|
4
|
+
type CloseAEP = UIAEP<ACTION.CLOSED, ACTION_SUBJECT.CONFIG_PANEL, undefined, {}, undefined>;
|
|
5
|
+
type ConfigPanelCrashedAEP = UIAEP<ACTION.ERRORED, ACTION_SUBJECT.CONFIG_PANEL, undefined, {
|
|
6
6
|
product: string;
|
|
7
7
|
browserInfo: string;
|
|
8
8
|
extensionKey: string;
|
|
@@ -13,5 +13,5 @@ declare type ConfigPanelCrashedAEP = UIAEP<ACTION.ERRORED, ACTION_SUBJECT.CONFIG
|
|
|
13
13
|
};
|
|
14
14
|
errorStack?: string;
|
|
15
15
|
}, undefined>;
|
|
16
|
-
export
|
|
16
|
+
export type ConfigPanelEventPayload = OpenAEP | CloseAEP | ConfigPanelCrashedAEP;
|
|
17
17
|
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ACTION, ACTION_SUBJECT } from './enums';
|
|
2
2
|
import { TrackAEP } from './utils';
|
|
3
|
-
|
|
3
|
+
type CopyAEP = TrackAEP<ACTION.COPIED, ACTION_SUBJECT.DOCUMENT, undefined, {
|
|
4
4
|
content: string[];
|
|
5
5
|
inputMethod?: string;
|
|
6
6
|
nodeType?: string;
|
|
7
7
|
}, undefined>;
|
|
8
|
-
|
|
8
|
+
type CutAEP = TrackAEP<ACTION.CUT, ACTION_SUBJECT.DOCUMENT, undefined, {
|
|
9
9
|
content: string[];
|
|
10
10
|
}, undefined>;
|
|
11
|
-
export
|
|
11
|
+
export type CutCopyEventPayload = CutAEP | CopyAEP;
|
|
12
12
|
export {};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, INPUT_METHOD } from './enums';
|
|
2
2
|
import { TrackAEP } from './utils';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
type TypeDateStartedAEP = TrackAEP<ACTION.TYPING_STARTED, ACTION_SUBJECT.DATE, undefined, undefined, undefined>;
|
|
4
|
+
type TypeDateFinishedAEP = TrackAEP<ACTION.TYPING_FINISHED, ACTION_SUBJECT.DATE, undefined, undefined, undefined>;
|
|
5
|
+
type IncrementDateSegmentAEP = TrackAEP<ACTION.INCREMENTED, ACTION_SUBJECT.DATE_SEGMENT, undefined, {
|
|
6
6
|
dateSegment: ACTION_SUBJECT_ID.DATE_DAY | ACTION_SUBJECT_ID.DATE_MONTH | ACTION_SUBJECT_ID.DATE_YEAR;
|
|
7
7
|
}, undefined>;
|
|
8
|
-
|
|
8
|
+
type DecrementDateSegmentAEP = TrackAEP<ACTION.DECREMENTED, ACTION_SUBJECT.DATE_SEGMENT, undefined, {
|
|
9
9
|
dateSegment: ACTION_SUBJECT_ID.DATE_DAY | ACTION_SUBJECT_ID.DATE_MONTH | ACTION_SUBJECT_ID.DATE_YEAR;
|
|
10
10
|
}, undefined>;
|
|
11
|
-
|
|
11
|
+
type CommitDateAEP = TrackAEP<ACTION.COMMITTED, ACTION_SUBJECT.DATE, undefined, {
|
|
12
12
|
commitMethod: INPUT_METHOD.PICKER | INPUT_METHOD.BLUR | INPUT_METHOD.KEYBOARD;
|
|
13
13
|
isValid: true | false;
|
|
14
14
|
isToday: true | false;
|
|
15
15
|
}, undefined>;
|
|
16
|
-
export
|
|
16
|
+
export type DateEventPayload = TypeDateStartedAEP | TypeDateFinishedAEP | IncrementDateSegmentAEP | DecrementDateSegmentAEP | CommitDateAEP;
|
|
17
17
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AnalyticsEventPayload } from './events';
|
|
2
|
-
export
|
|
2
|
+
export type DispatchAnalyticsEvent = (payload: AnalyticsEventPayload) => void;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
|
|
2
2
|
import { TrackAEP, UIAEP } from './utils';
|
|
3
|
-
|
|
3
|
+
type OpenAEP = UIAEP<ACTION.OPENED, ACTION_SUBJECT.ELEMENT_BROWSER, undefined, {
|
|
4
4
|
mode: 'full' | 'inline';
|
|
5
5
|
}, undefined>;
|
|
6
|
-
|
|
6
|
+
type CloseAEP = UIAEP<ACTION.CLOSED, ACTION_SUBJECT.ELEMENT_BROWSER, undefined, {
|
|
7
7
|
mode: 'full' | 'inline';
|
|
8
8
|
}, undefined>;
|
|
9
|
-
|
|
10
|
-
export
|
|
9
|
+
type ClickedElementBrowserCategory = TrackAEP<ACTION.CLICKED, ACTION_SUBJECT.BUTTON, ACTION_SUBJECT_ID.BUTTON_CATEGORY, any, undefined>;
|
|
10
|
+
export type ElementBrowserEventPayload = OpenAEP | CloseAEP | ClickedElementBrowserCategory;
|
|
11
11
|
export {};
|
|
@@ -26,16 +26,16 @@ import type { SubstituteEventPayload } from './substitute-events';
|
|
|
26
26
|
import type { TableEventPayload } from './table-events';
|
|
27
27
|
import type { TypeAheadPayload } from './type-ahead';
|
|
28
28
|
import type { OperationalAEP, OperationalExposureAEP, TrackAEP } from './utils';
|
|
29
|
-
|
|
30
|
-
export
|
|
29
|
+
type Dispatch<T = any> = (eventName: PluginKey | string, data: T) => void;
|
|
30
|
+
export type SimplifiedNode = {
|
|
31
31
|
type: string;
|
|
32
32
|
pos: number;
|
|
33
33
|
nodeSize: number;
|
|
34
34
|
marks?: string[];
|
|
35
35
|
content?: SimplifiedNode[];
|
|
36
36
|
};
|
|
37
|
-
export
|
|
38
|
-
|
|
37
|
+
export 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 | ReferentialityEventPayload;
|
|
38
|
+
type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
|
|
39
39
|
previousColor: string;
|
|
40
40
|
newColor: string;
|
|
41
41
|
} | {
|
|
@@ -44,51 +44,51 @@ declare type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR
|
|
|
44
44
|
} | {
|
|
45
45
|
icon: string;
|
|
46
46
|
}, undefined>;
|
|
47
|
-
export
|
|
47
|
+
export type AnalyticsEventPayloadWithChannel = {
|
|
48
48
|
channel: string;
|
|
49
49
|
payload: AnalyticsEventPayload;
|
|
50
50
|
};
|
|
51
|
-
export
|
|
51
|
+
export type AnalyticsDispatch = Dispatch<{
|
|
52
52
|
payload: AnalyticsEventPayload;
|
|
53
53
|
channel?: string;
|
|
54
54
|
}>;
|
|
55
|
-
export
|
|
55
|
+
export type FeatureExposureAEP = OperationalExposureAEP<ACTION.EXPOSED, ACTION_SUBJECT.FEATURE, undefined, {
|
|
56
56
|
flagKey: string;
|
|
57
57
|
value: string | boolean;
|
|
58
58
|
}>;
|
|
59
|
-
|
|
59
|
+
type InvalidTransactionErrorAEP = OperationalAEP<ACTION.DISPATCHED_INVALID_TRANSACTION, ACTION_SUBJECT.EDITOR, undefined, {
|
|
60
60
|
analyticsEventPayloads: AnalyticsEventPayloadWithChannel[];
|
|
61
61
|
invalidNodes: (SimplifiedNode | string)[];
|
|
62
62
|
}, undefined>;
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
type DispatchedValidTransactionAEP = OperationalAEP<ACTION.DISPATCHED_VALID_TRANSACTION, ACTION_SUBJECT.EDITOR, undefined, undefined, undefined>;
|
|
64
|
+
type InvalidTransactionStepErrorAEP = OperationalAEP<ACTION.DISCARDED_INVALID_STEPS_FROM_TRANSACTION, ACTION_SUBJECT.EDITOR, undefined, {
|
|
65
65
|
analyticsEventPayloads: AnalyticsEventPayloadWithChannel[];
|
|
66
66
|
}, undefined>;
|
|
67
|
-
export
|
|
68
|
-
|
|
67
|
+
export type TransactionEventPayload = DispatchedValidTransactionAEP;
|
|
68
|
+
type FailedToUnmountErrorAEP = OperationalAEP<ACTION.FAILED_TO_UNMOUNT, ACTION_SUBJECT.EDITOR, ACTION_SUBJECT_ID.REACT_NODE_VIEW, {
|
|
69
69
|
error: Error;
|
|
70
70
|
domNodes: {
|
|
71
71
|
container?: string;
|
|
72
72
|
child?: string;
|
|
73
73
|
};
|
|
74
74
|
}, undefined>;
|
|
75
|
-
|
|
75
|
+
type SynchronyErrorAEP = OperationalAEP<ACTION.SYNCHRONY_ERROR, ACTION_SUBJECT.EDITOR, undefined, {
|
|
76
76
|
error: Error;
|
|
77
77
|
docStructure?: string | SimplifiedNode;
|
|
78
78
|
browserExtensions?: UserBrowserExtensionResults;
|
|
79
79
|
}, undefined>;
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
type NewCollabSyncUpErrorAEP = OperationalAEP<ACTION.NEW_COLLAB_SYNC_UP_ERROR_NO_STEPS, ACTION_SUBJECT.EDITOR, undefined, NewCollabSyncUpErrorAttributes, undefined>;
|
|
81
|
+
type InvalidDocumentEncounteredAEP = OperationalAEP<ACTION.INVALID_DOCUMENT_ENCOUNTERED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
82
82
|
nodeType: string;
|
|
83
83
|
reason: string;
|
|
84
84
|
tableLocalId: string;
|
|
85
85
|
spanValue: number;
|
|
86
86
|
}, undefined>;
|
|
87
|
-
|
|
87
|
+
type SynchronyEntityErrorAEP = OperationalAEP<ACTION.SYNCHRONY_ENTITY_ERROR | ACTION.SYNCHRONY_DISCONNECTED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
88
88
|
onLine: boolean;
|
|
89
89
|
visibilityState: string;
|
|
90
90
|
}, undefined>;
|
|
91
|
-
|
|
91
|
+
type ContentComponentErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.CONTENT_COMPONENT, undefined, {
|
|
92
92
|
component: CONTENT_COMPONENT;
|
|
93
93
|
error: string;
|
|
94
94
|
selection: {
|
|
@@ -99,7 +99,7 @@ declare type ContentComponentErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SU
|
|
|
99
99
|
}, {
|
|
100
100
|
errorStack?: string;
|
|
101
101
|
}>;
|
|
102
|
-
export
|
|
102
|
+
export type ErrorEventAttributes = {
|
|
103
103
|
error: Error;
|
|
104
104
|
errorInfo: React.ErrorInfo;
|
|
105
105
|
product?: string;
|
|
@@ -109,21 +109,21 @@ export declare type ErrorEventAttributes = {
|
|
|
109
109
|
browserExtensions?: UserBrowserExtensionResults;
|
|
110
110
|
outdatedBrowser?: boolean;
|
|
111
111
|
};
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
type ComponentCrashErrorAEP = OperationalAEP<ACTION.EDITOR_CRASHED, ACTION_SUBJECT.FLOATING_CONTEXTUAL_BUTTON | ACTION_SUBJECT.PLUGIN_SLOT | ACTION_SUBJECT.REACT_NODE_VIEW | ACTION_SUBJECT.TABLES_PLUGIN | ACTION_SUBJECT.FLOATING_TOOLBAR_PLUGIN | ACTION_SUBJECT.EDITOR, ACTION_SUBJECT_ID | FLOATING_CONTROLS_TITLE, ErrorEventAttributes, undefined>;
|
|
113
|
+
type ComponentCrashAdditionalInfoErrorAEP = OperationalAEP<ACTION.EDITOR_CRASHED_ADDITIONAL_INFORMATION, ACTION_SUBJECT.EDITOR, undefined, {
|
|
114
114
|
errorId: string;
|
|
115
115
|
}, {
|
|
116
116
|
errorStack: string;
|
|
117
117
|
}>;
|
|
118
|
-
|
|
118
|
+
type SmartLinkErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.SMART_LINK, undefined, {
|
|
119
119
|
error: string;
|
|
120
120
|
errorStack?: string;
|
|
121
121
|
}, undefined>;
|
|
122
|
-
export
|
|
123
|
-
export
|
|
124
|
-
export
|
|
125
|
-
export
|
|
126
|
-
export
|
|
122
|
+
export type ErrorEventPayload = InvalidTransactionErrorAEP | InvalidTransactionStepErrorAEP | FailedToUnmountErrorAEP | SynchronyErrorAEP | InvalidDocumentEncounteredAEP | SynchronyEntityErrorAEP | ContentComponentErrorAEP | ComponentCrashErrorAEP | ComponentCrashAdditionalInfoErrorAEP | SmartLinkErrorAEP;
|
|
123
|
+
export type AnalyticsEventPayloadCallback = (state: EditorState) => AnalyticsEventPayload | undefined;
|
|
124
|
+
export type FireAnalyticsCallback = <T>(payload: FireAnalyticsEventPayload<T>) => void | undefined;
|
|
125
|
+
export type FireAnalyticsEvent = (createAnalyticsEvent?: CreateUIAnalyticsEvent) => FireAnalyticsCallback;
|
|
126
|
+
export type FireAnalyticsEventPayload<T = void> = {
|
|
127
127
|
payload: AnalyticsEventPayload<T>;
|
|
128
128
|
channel?: string;
|
|
129
129
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
|
|
2
2
|
import { TrackAEP } from './utils';
|
|
3
|
-
|
|
3
|
+
type ExperimentalAEP<Action, ActionSubject, ActionSubjectId, Attributes> = TrackAEP<Action, ActionSubject, ActionSubjectId, Attributes & {
|
|
4
4
|
experiment: string;
|
|
5
5
|
experimentGroup: string;
|
|
6
6
|
}, undefined>;
|
|
7
7
|
export interface TextColorSelectedAttr {
|
|
8
8
|
color: string;
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type TextColorSelectedAEP = ExperimentalAEP<ACTION.FORMATTED, ACTION_SUBJECT.TEXT, ACTION_SUBJECT_ID.FORMAT_COLOR, TextColorSelectedAttr>;
|
|
11
11
|
export interface TextColorShowPaletteToggleAttr {
|
|
12
12
|
noSelect: boolean;
|
|
13
13
|
}
|
|
14
|
-
export
|
|
15
|
-
export
|
|
14
|
+
export type TextColorShowPaletteToggleAEP = ExperimentalAEP<ACTION.OPENED | ACTION.CLOSED, ACTION_SUBJECT.TOOLBAR, ACTION_SUBJECT_ID.FORMAT_COLOR, TextColorShowPaletteToggleAttr>;
|
|
15
|
+
export type ExperimentalEventPayload = TextColorSelectedAEP | TextColorShowPaletteToggleAEP;
|
|
16
16
|
export {};
|
|
@@ -9,15 +9,15 @@ export declare enum TARGET_SELECTION_SOURCE {
|
|
|
9
9
|
CURRENT_SELECTION = "currentSelection",
|
|
10
10
|
HTML_ELEMENT = "htmlElement"
|
|
11
11
|
}
|
|
12
|
-
export
|
|
12
|
+
export type SelectionJson = {
|
|
13
13
|
type: SELECTION_TYPE;
|
|
14
14
|
anchor?: number;
|
|
15
15
|
head?: number;
|
|
16
16
|
side?: GAP_CURSOR_POSITION;
|
|
17
17
|
pos?: number;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
20
|
-
|
|
19
|
+
export type ExtensionType = ACTION_SUBJECT_ID.EXTENSION_BLOCK | ACTION_SUBJECT_ID.EXTENSION_BODIED | ACTION_SUBJECT_ID.EXTENSION_INLINE;
|
|
20
|
+
type ExtensionUpdateAEP = TrackAEP<ACTION.UPDATED | ACTION.ERRORED, ACTION_SUBJECT.EXTENSION, ExtensionType, {
|
|
21
21
|
extensionType: string;
|
|
22
22
|
/**
|
|
23
23
|
* extensionkey follows this format:
|
|
@@ -30,8 +30,8 @@ declare type ExtensionUpdateAEP = TrackAEP<ACTION.UPDATED | ACTION.ERRORED, ACTI
|
|
|
30
30
|
selection: SelectionJson;
|
|
31
31
|
targetSelectionSource: TARGET_SELECTION_SOURCE;
|
|
32
32
|
}, INPUT_METHOD.MACRO_BROWSER | INPUT_METHOD.CONFIG_PANEL | INPUT_METHOD.TOOLBAR>;
|
|
33
|
-
|
|
33
|
+
type ExtensionAPICalledPayload = TrackAEP<ACTION.INVOKED, ACTION_SUBJECT.EXTENSION, ACTION_SUBJECT_ID.EXTENSION_API, {
|
|
34
34
|
functionName: string;
|
|
35
35
|
}, INPUT_METHOD.EXTENSION_API>;
|
|
36
|
-
export
|
|
36
|
+
export type ExtensionEventPayload = ExtensionUpdateAEP | ExtensionAPICalledPayload;
|
|
37
37
|
export {};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import type { ACTION, ACTION_SUBJECT, INPUT_METHOD, TRIGGER_METHOD } from './enums';
|
|
2
2
|
import type { TrackAEP, UIAEP } from './utils';
|
|
3
|
-
|
|
3
|
+
type ActivateAEP = UIAEP<ACTION.ACTIVATED, ACTION_SUBJECT.FIND_REPLACE_DIALOG, undefined, {
|
|
4
4
|
inputMethod: INPUT_METHOD.KEYBOARD | INPUT_METHOD.PREFILL;
|
|
5
5
|
triggerMethod: TRIGGER_METHOD.SHORTCUT | TRIGGER_METHOD.TOOLBAR;
|
|
6
6
|
}, undefined>;
|
|
7
|
-
|
|
7
|
+
type DeactivateAEP = UIAEP<ACTION.DEACTIVATED, ACTION_SUBJECT.FIND_REPLACE_DIALOG, undefined, {
|
|
8
8
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
|
|
9
9
|
}, undefined>;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
type FindAEP = TrackAEP<ACTION.FIND_PERFORMED, ACTION_SUBJECT.TEXT, undefined, undefined, undefined>;
|
|
11
|
+
type FindNextAEP = TrackAEP<ACTION.FIND_NEXT_PERFORMED, ACTION_SUBJECT.TEXT, undefined, {
|
|
12
12
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
13
13
|
}, undefined>;
|
|
14
|
-
|
|
14
|
+
type FindPrevAEP = TrackAEP<ACTION.FIND_PREV_PERFORMED, ACTION_SUBJECT.TEXT, undefined, {
|
|
15
15
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
16
16
|
}, undefined>;
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
type ReplaceTextChangeAEP = TrackAEP<ACTION.CHANGED_REPLACEMENT_TEXT, ACTION_SUBJECT.FIND_REPLACE_DIALOG, undefined, undefined, undefined>;
|
|
18
|
+
type ReplaceOneAEP = TrackAEP<ACTION.REPLACED_ONE, ACTION_SUBJECT.TEXT, undefined, {
|
|
19
19
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
20
20
|
}, undefined>;
|
|
21
|
-
|
|
22
|
-
export
|
|
21
|
+
type ReplaceAllAEP = TrackAEP<ACTION.REPLACED_ALL, ACTION_SUBJECT.TEXT, undefined, undefined, undefined>;
|
|
22
|
+
export type FindReplaceEventPayload = ActivateAEP | DeactivateAEP | FindAEP | FindNextAEP | FindPrevAEP | ReplaceTextChangeAEP | ReplaceOneAEP | ReplaceAllAEP;
|
|
23
23
|
export {};
|
|
@@ -12,38 +12,38 @@ export declare enum INDENT_TYPE {
|
|
|
12
12
|
CODE_BLOCK = "codeBlock",
|
|
13
13
|
TASK_LIST = "taskList"
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
type FormatAEP<ActionSubjectID, Attributes> = TrackAEP<ACTION.FORMATTED, ACTION_SUBJECT.TEXT, ActionSubjectID, Attributes, undefined>;
|
|
16
|
+
type FormatBasicAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_STRONG | ACTION_SUBJECT_ID.FORMAT_ITALIC | ACTION_SUBJECT_ID.FORMAT_UNDERLINE | ACTION_SUBJECT_ID.FORMAT_CODE | ACTION_SUBJECT_ID.FORMAT_STRIKE, {
|
|
17
17
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT | INPUT_METHOD.FORMATTING | INPUT_METHOD.FLOATING_TB;
|
|
18
18
|
}>;
|
|
19
|
-
|
|
19
|
+
type FormatSuperSubAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_SUPER | ACTION_SUBJECT_ID.FORMAT_SUB, {
|
|
20
20
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT | INPUT_METHOD.FORMATTING;
|
|
21
21
|
}>;
|
|
22
|
-
|
|
22
|
+
type FormatIndentationAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_INDENT, {
|
|
23
23
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.KEYBOARD;
|
|
24
24
|
direction: INDENT_DIRECTION.INDENT | INDENT_DIRECTION.OUTDENT;
|
|
25
25
|
previousIndentationLevel: number;
|
|
26
26
|
newIndentLevel: number;
|
|
27
27
|
indentType: INDENT_TYPE.PARAGRAPH | INDENT_TYPE.LIST | INDENT_TYPE.HEADING | INDENT_TYPE.CODE_BLOCK | INDENT_TYPE.TASK_LIST;
|
|
28
28
|
}>;
|
|
29
|
-
|
|
29
|
+
type FormatHeadingAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_HEADING, {
|
|
30
30
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT | INPUT_METHOD.QUICK_INSERT;
|
|
31
31
|
newHeadingLevel: HeadingLevelsAndNormalText;
|
|
32
32
|
previousHeadingLevel?: HeadingLevelsAndNormalText;
|
|
33
33
|
}>;
|
|
34
|
-
|
|
34
|
+
type FormatBlockQuoteAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_BLOCK_QUOTE, {
|
|
35
35
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FORMATTING | INPUT_METHOD.SHORTCUT | INPUT_METHOD.QUICK_INSERT;
|
|
36
36
|
}>;
|
|
37
|
-
|
|
37
|
+
type FormatClearAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_CLEAR, {
|
|
38
38
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT;
|
|
39
39
|
formattingCleared: string[];
|
|
40
40
|
}>;
|
|
41
|
-
|
|
41
|
+
type FormatColorAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_COLOR, {
|
|
42
42
|
newColor: string;
|
|
43
43
|
previousColor: string;
|
|
44
44
|
}>;
|
|
45
|
-
|
|
45
|
+
type FormatListAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_LIST_NUMBER | ACTION_SUBJECT_ID.FORMAT_LIST_BULLET, {
|
|
46
46
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FORMATTING | INPUT_METHOD.QUICK_INSERT;
|
|
47
47
|
}>;
|
|
48
|
-
export
|
|
48
|
+
export type FormatEventPayload = FormatBasicAEP | FormatSuperSubAEP | FormatIndentationAEP | FormatHeadingAEP | FormatBlockQuoteAEP | FormatClearAEP | FormatColorAEP | FormatListAEP;
|
|
49
49
|
export {};
|