@atlaskit/editor-common 74.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.
Files changed (214) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/analytics/package.json +2 -2
  3. package/card/package.json +2 -2
  4. package/collab/package.json +2 -2
  5. package/core-utils/package.json +2 -2
  6. package/dist/cjs/provider-helpers/combine-providers.js +1 -1
  7. package/dist/cjs/ui/DropList/index.js +1 -1
  8. package/dist/cjs/version.json +1 -1
  9. package/dist/es2019/provider-helpers/combine-providers.js +1 -1
  10. package/dist/es2019/ui/DropList/index.js +1 -1
  11. package/dist/es2019/version.json +1 -1
  12. package/dist/esm/provider-helpers/combine-providers.js +1 -1
  13. package/dist/esm/ui/DropList/index.js +1 -1
  14. package/dist/esm/version.json +1 -1
  15. package/dist/types/__tests_external__/cases/fundamentals/test-cases/editor-is-present.d.ts +1 -1
  16. package/dist/types/__tests_external__/cases/fundamentals/test-cases/editor-typing.d.ts +1 -1
  17. package/dist/types/__tests_external__/page-objects/Editor.d.ts +2 -0
  18. package/dist/types/__tests_external__/page-objects/EditorSmartLink.d.ts +2 -0
  19. package/dist/types/__tests_external__/page-objects/Renderer.d.ts +2 -0
  20. package/dist/types/analytics/api.d.ts +1 -1
  21. package/dist/types/analytics/types/avatar.d.ts +2 -2
  22. package/dist/types/analytics/types/block.d.ts +3 -3
  23. package/dist/types/analytics/types/config-panel-events.d.ts +4 -4
  24. package/dist/types/analytics/types/cut-copy-events.d.ts +3 -3
  25. package/dist/types/analytics/types/date-events.d.ts +6 -6
  26. package/dist/types/analytics/types/dispatch-analytics-event.d.ts +1 -1
  27. package/dist/types/analytics/types/element-browser-events.d.ts +4 -4
  28. package/dist/types/analytics/types/events.d.ts +26 -26
  29. package/dist/types/analytics/types/experimental-events.d.ts +4 -4
  30. package/dist/types/analytics/types/extension-events.d.ts +5 -5
  31. package/dist/types/analytics/types/find-replace-events.d.ts +9 -9
  32. package/dist/types/analytics/types/format-events.d.ts +10 -10
  33. package/dist/types/analytics/types/general-events.d.ts +40 -40
  34. package/dist/types/analytics/types/inline-comment-events.d.ts +5 -5
  35. package/dist/types/analytics/types/insert-events.d.ts +23 -23
  36. package/dist/types/analytics/types/link-tool-bar-events.d.ts +14 -14
  37. package/dist/types/analytics/types/list-events.d.ts +11 -11
  38. package/dist/types/analytics/types/media-events.d.ts +12 -12
  39. package/dist/types/analytics/types/node-events.d.ts +11 -11
  40. package/dist/types/analytics/types/paste-events.d.ts +10 -10
  41. package/dist/types/analytics/types/performance-report.d.ts +1 -1
  42. package/dist/types/analytics/types/referentiality-events.d.ts +10 -10
  43. package/dist/types/analytics/types/selection-events.d.ts +6 -6
  44. package/dist/types/analytics/types/smart-links.d.ts +2 -2
  45. package/dist/types/analytics/types/substitute-events.d.ts +5 -5
  46. package/dist/types/analytics/types/table-events.d.ts +18 -18
  47. package/dist/types/analytics/types/toolbar-button.d.ts +2 -2
  48. package/dist/types/analytics/types/type-ahead.d.ts +8 -8
  49. package/dist/types/analytics/types/utils.d.ts +9 -9
  50. package/dist/types/card/utils.d.ts +2 -2
  51. package/dist/types/collab/types.d.ts +2 -2
  52. package/dist/types/event-dispatcher/index.d.ts +2 -2
  53. package/dist/types/extensions/combine-extension-providers.d.ts +1 -1
  54. package/dist/types/extensions/default-extension-provider.d.ts +1 -1
  55. package/dist/types/extensions/extension-handlers.d.ts +2 -2
  56. package/dist/types/extensions/manifest-helpers.d.ts +6 -5
  57. package/dist/types/extensions/module-helpers.d.ts +4 -4
  58. package/dist/types/extensions/types/extension-handler.d.ts +9 -9
  59. package/dist/types/extensions/types/extension-manifest-common.d.ts +4 -4
  60. package/dist/types/extensions/types/extension-manifest-toolbar-item.d.ts +11 -11
  61. package/dist/types/extensions/types/extension-manifest.d.ts +30 -30
  62. package/dist/types/extensions/types/extension-parameters.d.ts +2 -2
  63. package/dist/types/extensions/types/field-definitions.d.ts +12 -12
  64. package/dist/types/extensions/types/utils.d.ts +2 -2
  65. package/dist/types/hooks/useSharedPluginState.d.ts +2 -2
  66. package/dist/types/i18n/cs.d.ts +6 -6
  67. package/dist/types/i18n/da.d.ts +6 -6
  68. package/dist/types/i18n/de.d.ts +6 -6
  69. package/dist/types/i18n/en.d.ts +6 -6
  70. package/dist/types/i18n/en_GB.d.ts +6 -6
  71. package/dist/types/i18n/en_ZZ.d.ts +6 -6
  72. package/dist/types/i18n/es.d.ts +6 -6
  73. package/dist/types/i18n/et.d.ts +1 -1
  74. package/dist/types/i18n/fi.d.ts +6 -6
  75. package/dist/types/i18n/fr.d.ts +6 -6
  76. package/dist/types/i18n/hu.d.ts +6 -6
  77. package/dist/types/i18n/it.d.ts +6 -6
  78. package/dist/types/i18n/ja.d.ts +6 -6
  79. package/dist/types/i18n/ko.d.ts +6 -6
  80. package/dist/types/i18n/languages.d.ts +6 -6
  81. package/dist/types/i18n/nb.d.ts +6 -6
  82. package/dist/types/i18n/nl.d.ts +6 -6
  83. package/dist/types/i18n/pl.d.ts +6 -6
  84. package/dist/types/i18n/pt_BR.d.ts +6 -6
  85. package/dist/types/i18n/pt_PT.d.ts +1 -1
  86. package/dist/types/i18n/ru.d.ts +6 -6
  87. package/dist/types/i18n/sk.d.ts +1 -1
  88. package/dist/types/i18n/sv.d.ts +6 -6
  89. package/dist/types/i18n/th.d.ts +6 -6
  90. package/dist/types/i18n/tr.d.ts +6 -6
  91. package/dist/types/i18n/uk.d.ts +6 -6
  92. package/dist/types/i18n/vi.d.ts +6 -6
  93. package/dist/types/i18n/zh.d.ts +6 -6
  94. package/dist/types/i18n/zh_TW.d.ts +6 -6
  95. package/dist/types/node-width/index.d.ts +1 -1
  96. package/dist/types/normalize-feature-flags.d.ts +2 -2
  97. package/dist/types/preset/plugin-injection-api.d.ts +5 -5
  98. package/dist/types/provider-factory/autoformatting-provider.d.ts +3 -3
  99. package/dist/types/provider-factory/card-provider.d.ts +1 -1
  100. package/dist/types/provider-factory/image-upload-provider.d.ts +2 -2
  101. package/dist/types/provider-factory/macro-provider.d.ts +1 -1
  102. package/dist/types/provider-factory/media-provider.d.ts +1 -1
  103. package/dist/types/provider-factory/quick-insert-provider.d.ts +4 -4
  104. package/dist/types/provider-factory/search-provider.d.ts +1 -1
  105. package/dist/types/provider-factory/types.d.ts +3 -3
  106. package/dist/types/provider-factory/with-providers.d.ts +1 -1
  107. package/dist/types/provider-helpers/combine-providers.d.ts +4 -4
  108. package/dist/types/provider-helpers/promise-helpers.d.ts +2 -2
  109. package/dist/types/react-node-view/types.d.ts +6 -6
  110. package/dist/types/selection/gap-cursor/utils/is-ignored.d.ts +1 -1
  111. package/dist/types/selection/gap-cursor/utils/is-valid-target-node.d.ts +1 -1
  112. package/dist/types/selection/types.d.ts +1 -1
  113. package/dist/types/selection/utils.d.ts +2 -2
  114. package/dist/types/styles/shared/table.d.ts +1 -1
  115. package/dist/types/transforms/expand.d.ts +1 -1
  116. package/dist/types/types/annotation/emitter.d.ts +5 -5
  117. package/dist/types/types/annotation/index.d.ts +8 -8
  118. package/dist/types/types/collab.d.ts +2 -2
  119. package/dist/types/types/command.d.ts +3 -3
  120. package/dist/types/types/context-panel.d.ts +1 -1
  121. package/dist/types/types/copy-button.d.ts +2 -2
  122. package/dist/types/types/editor-actions.d.ts +2 -2
  123. package/dist/types/types/editor-appearance.d.ts +1 -1
  124. package/dist/types/types/editor-container-width.d.ts +2 -2
  125. package/dist/types/types/editor-plugin.d.ts +4 -4
  126. package/dist/types/types/editor-react-context.d.ts +1 -1
  127. package/dist/types/types/empty-state-handler.d.ts +2 -2
  128. package/dist/types/types/feature-flags.d.ts +3 -3
  129. package/dist/types/types/floating-toolbar.d.ts +26 -26
  130. package/dist/types/types/index.d.ts +1 -1
  131. package/dist/types/types/next-editor-plugin.d.ts +38 -38
  132. package/dist/types/types/plugin-factory.d.ts +3 -3
  133. package/dist/types/types/quick-insert.d.ts +5 -5
  134. package/dist/types/types/supported-browsers.d.ts +3 -3
  135. package/dist/types/types/toolbar.d.ts +2 -2
  136. package/dist/types/types/type-ahead.d.ts +7 -7
  137. package/dist/types/types/ui-components.d.ts +2 -2
  138. package/dist/types/ufo/experience-store.d.ts +2 -2
  139. package/dist/types/ui/BaseTheme/index.d.ts +2 -2
  140. package/dist/types/ui/Caption/index.d.ts +1 -1
  141. package/dist/types/ui/DropList/index.d.ts +1 -1
  142. package/dist/types/ui/ErrorBoundary/index.d.ts +1 -1
  143. package/dist/types/ui/EventHandlers/index.d.ts +5 -5
  144. package/dist/types/ui/Layer/index.d.ts +2 -2
  145. package/dist/types/ui/MediaSingle/index.d.ts +1 -1
  146. package/dist/types/ui/OverflowShadow/shadowObserver.d.ts +1 -1
  147. package/dist/types/ui/PortalProvider/index.d.ts +5 -5
  148. package/dist/types/ui/WidthProvider/index.d.ts +4 -4
  149. package/dist/types/ui/WithCreateAnalyticsEvent/index.d.ts +1 -1
  150. package/dist/types/ui/with-outer-listeners.d.ts +1 -1
  151. package/dist/types/ui-color/ColorPalette/Palettes/type.d.ts +2 -2
  152. package/dist/types/ui-menu/ArrowKeyNavigationProvider/types.d.ts +7 -7
  153. package/dist/types/ui-menu/ToolbarButton/index.d.ts +2 -2
  154. package/dist/types/ui-react/ReactEditorViewContext.d.ts +1 -1
  155. package/dist/types/ui-react/with-react-editor-view-outer-listeners.d.ts +2 -2
  156. package/dist/types/utils/analytics.d.ts +7 -7
  157. package/dist/types/utils/annotation/index.d.ts +1 -1
  158. package/dist/types/utils/browser-extensions.d.ts +6 -6
  159. package/dist/types/utils/collab.d.ts +1 -1
  160. package/dist/types/utils/compare-props.d.ts +8 -8
  161. package/dist/types/utils/compareNodes.d.ts +2 -2
  162. package/dist/types/utils/compose.d.ts +1 -1
  163. package/dist/types/utils/date.d.ts +1 -1
  164. package/dist/types/utils/dom.d.ts +1 -1
  165. package/dist/types/utils/error-reporter.d.ts +1 -1
  166. package/dist/types/utils/extension-handler.d.ts +2 -2
  167. package/dist/types/utils/imageLoader.d.ts +1 -1
  168. package/dist/types/utils/nodes.d.ts +2 -2
  169. package/dist/types/utils/performance/hooks/use-component-render-tracking/index.d.ts +3 -3
  170. package/dist/types/utils/plugin-state-factory.d.ts +3 -3
  171. package/dist/types/utils/profiler/render-count.d.ts +2 -2
  172. package/dist/types/utils/referentiality.d.ts +6 -6
  173. package/dist/types/utils/slice.d.ts +2 -2
  174. package/dist/types/utils/track-unsupported-content.d.ts +4 -4
  175. package/dist/types/utils/traversor.d.ts +1 -1
  176. package/dist/types/utils/types.d.ts +2 -2
  177. package/dist/types/utils/unsupportedContent/get-unsupported-content-level-data.d.ts +2 -2
  178. package/dist/types/utils/validate-using-spec.d.ts +3 -3
  179. package/dist/types/utils/validator.d.ts +1 -1
  180. package/dist/types/with-plugin-state/index.d.ts +6 -6
  181. package/dist/types/with-plugin-state/types.d.ts +3 -3
  182. package/emoji/package.json +2 -2
  183. package/error-boundary/package.json +2 -2
  184. package/event-dispatcher/package.json +2 -2
  185. package/extensions/package.json +2 -2
  186. package/hooks/package.json +2 -2
  187. package/icons/package.json +2 -2
  188. package/in-product/package.json +2 -2
  189. package/keymaps/package.json +2 -2
  190. package/mention/package.json +2 -2
  191. package/messages/package.json +2 -2
  192. package/node-width/package.json +2 -2
  193. package/normalize-feature-flags/package.json +2 -2
  194. package/package.json +15 -7
  195. package/panel/package.json +2 -2
  196. package/portal-provider/package.json +2 -2
  197. package/preset/package.json +2 -2
  198. package/provider-factory/package.json +2 -2
  199. package/provider-helpers/package.json +2 -2
  200. package/react-node-view/package.json +2 -2
  201. package/safe-plugin/package.json +2 -2
  202. package/selection/package.json +2 -2
  203. package/styles/package.json +2 -2
  204. package/transforms/package.json +2 -2
  205. package/type-ahead/package.json +2 -2
  206. package/types/package.json +2 -2
  207. package/ufo/package.json +2 -2
  208. package/ui/package.json +2 -2
  209. package/ui-color/package.json +2 -2
  210. package/ui-menu/package.json +2 -2
  211. package/ui-react/package.json +2 -2
  212. package/utils/package.json +2 -2
  213. package/validator/package.json +2 -2
  214. package/with-plugin-state/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
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
+
3
10
  ## 74.0.0
4
11
 
5
12
  ### Minor Changes
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/analytics/index.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/analytics/index.d.ts"
11
+ "../dist/types-ts4.5/analytics/index.d.ts"
12
12
  ]
13
13
  }
14
14
  }
package/card/package.json CHANGED
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/card/index.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/card/index.d.ts"
11
+ "../dist/types-ts4.5/card/index.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/collab.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/collab.d.ts"
11
+ "../dist/types-ts4.5/collab.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/core-utils/index.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/core-utils/index.d.ts"
11
+ "../dist/types-ts4.5/core-utils/index.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -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 = "74.0.0";
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) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "74.0.0",
3
+ "version": "74.0.1",
4
4
  "sideEffects": false
5
5
  }
@@ -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 = "74.0.0";
11
+ const packageVersion = "74.0.1";
12
12
  const halfFocusRing = 1;
13
13
  const dropOffset = `0, ${gridSize()}px`;
14
14
  class DropList extends Component {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "74.0.0",
3
+ "version": "74.0.1",
4
4
  "sideEffects": false
5
5
  }
@@ -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 = "74.0.0";
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) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "74.0.0",
3
+ "version": "74.0.1",
4
4
  "sideEffects": false
5
5
  }
@@ -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 | undefined) => InProductTestCase;
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 | undefined) => InProductTestCase;
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 declare type EditorAnalyticsAPI = {
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
- declare type AvatarButtonViewedAEP = UIAEP<ACTION.VIEWED, ACTION_SUBJECT.BUTTON, ACTION_SUBJECT_ID.AVATAR_GROUP_PLUGIN, {}, undefined>;
4
- export declare type AvatarEventPayload = AvatarButtonViewedAEP;
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 declare type HeadingLevels = 1 | 2 | 3 | 4 | 5 | 6;
2
- export declare type NormalTextLevel = 0;
3
- export declare type HeadingLevelsAndNormalText = HeadingLevels | NormalTextLevel;
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
- declare type OpenAEP = UIAEP<ACTION.OPENED, ACTION_SUBJECT.CONFIG_PANEL, undefined, {}, undefined>;
4
- declare type CloseAEP = UIAEP<ACTION.CLOSED, ACTION_SUBJECT.CONFIG_PANEL, undefined, {}, undefined>;
5
- declare type ConfigPanelCrashedAEP = UIAEP<ACTION.ERRORED, ACTION_SUBJECT.CONFIG_PANEL, undefined, {
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 declare type ConfigPanelEventPayload = OpenAEP | CloseAEP | ConfigPanelCrashedAEP;
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
- declare type CopyAEP = TrackAEP<ACTION.COPIED, ACTION_SUBJECT.DOCUMENT, undefined, {
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
- declare type CutAEP = TrackAEP<ACTION.CUT, ACTION_SUBJECT.DOCUMENT, undefined, {
8
+ type CutAEP = TrackAEP<ACTION.CUT, ACTION_SUBJECT.DOCUMENT, undefined, {
9
9
  content: string[];
10
10
  }, undefined>;
11
- export declare type CutCopyEventPayload = CutAEP | CopyAEP;
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
- declare type TypeDateStartedAEP = TrackAEP<ACTION.TYPING_STARTED, ACTION_SUBJECT.DATE, undefined, undefined, undefined>;
4
- declare type TypeDateFinishedAEP = TrackAEP<ACTION.TYPING_FINISHED, ACTION_SUBJECT.DATE, undefined, undefined, undefined>;
5
- declare type IncrementDateSegmentAEP = TrackAEP<ACTION.INCREMENTED, ACTION_SUBJECT.DATE_SEGMENT, undefined, {
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
- declare type DecrementDateSegmentAEP = TrackAEP<ACTION.DECREMENTED, ACTION_SUBJECT.DATE_SEGMENT, undefined, {
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
- declare type CommitDateAEP = TrackAEP<ACTION.COMMITTED, ACTION_SUBJECT.DATE, undefined, {
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 declare type DateEventPayload = TypeDateStartedAEP | TypeDateFinishedAEP | IncrementDateSegmentAEP | DecrementDateSegmentAEP | CommitDateAEP;
16
+ export type DateEventPayload = TypeDateStartedAEP | TypeDateFinishedAEP | IncrementDateSegmentAEP | DecrementDateSegmentAEP | CommitDateAEP;
17
17
  export {};
@@ -1,2 +1,2 @@
1
1
  import { AnalyticsEventPayload } from './events';
2
- export declare type DispatchAnalyticsEvent = (payload: AnalyticsEventPayload) => void;
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
- declare type OpenAEP = UIAEP<ACTION.OPENED, ACTION_SUBJECT.ELEMENT_BROWSER, undefined, {
3
+ type OpenAEP = UIAEP<ACTION.OPENED, ACTION_SUBJECT.ELEMENT_BROWSER, undefined, {
4
4
  mode: 'full' | 'inline';
5
5
  }, undefined>;
6
- declare type CloseAEP = UIAEP<ACTION.CLOSED, ACTION_SUBJECT.ELEMENT_BROWSER, undefined, {
6
+ type CloseAEP = UIAEP<ACTION.CLOSED, ACTION_SUBJECT.ELEMENT_BROWSER, undefined, {
7
7
  mode: 'full' | 'inline';
8
8
  }, undefined>;
9
- declare type ClickedElementBrowserCategory = TrackAEP<ACTION.CLICKED, ACTION_SUBJECT.BUTTON, ACTION_SUBJECT_ID.BUTTON_CATEGORY, any, undefined>;
10
- export declare type ElementBrowserEventPayload = OpenAEP | CloseAEP | ClickedElementBrowserCategory;
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
- declare type Dispatch<T = any> = (eventName: PluginKey | string, data: T) => void;
30
- export declare type SimplifiedNode = {
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 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 | ReferentialityEventPayload;
38
- declare type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
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 declare type AnalyticsEventPayloadWithChannel = {
47
+ export type AnalyticsEventPayloadWithChannel = {
48
48
  channel: string;
49
49
  payload: AnalyticsEventPayload;
50
50
  };
51
- export declare type AnalyticsDispatch = Dispatch<{
51
+ export type AnalyticsDispatch = Dispatch<{
52
52
  payload: AnalyticsEventPayload;
53
53
  channel?: string;
54
54
  }>;
55
- export declare type FeatureExposureAEP = OperationalExposureAEP<ACTION.EXPOSED, ACTION_SUBJECT.FEATURE, undefined, {
55
+ export type FeatureExposureAEP = OperationalExposureAEP<ACTION.EXPOSED, ACTION_SUBJECT.FEATURE, undefined, {
56
56
  flagKey: string;
57
57
  value: string | boolean;
58
58
  }>;
59
- declare type InvalidTransactionErrorAEP = OperationalAEP<ACTION.DISPATCHED_INVALID_TRANSACTION, ACTION_SUBJECT.EDITOR, undefined, {
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
- declare type DispatchedValidTransactionAEP = OperationalAEP<ACTION.DISPATCHED_VALID_TRANSACTION, ACTION_SUBJECT.EDITOR, undefined, undefined, undefined>;
64
- declare type InvalidTransactionStepErrorAEP = OperationalAEP<ACTION.DISCARDED_INVALID_STEPS_FROM_TRANSACTION, ACTION_SUBJECT.EDITOR, undefined, {
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 declare type TransactionEventPayload = DispatchedValidTransactionAEP;
68
- declare type FailedToUnmountErrorAEP = OperationalAEP<ACTION.FAILED_TO_UNMOUNT, ACTION_SUBJECT.EDITOR, ACTION_SUBJECT_ID.REACT_NODE_VIEW, {
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
- declare type SynchronyErrorAEP = OperationalAEP<ACTION.SYNCHRONY_ERROR, ACTION_SUBJECT.EDITOR, undefined, {
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
- declare type NewCollabSyncUpErrorAEP = OperationalAEP<ACTION.NEW_COLLAB_SYNC_UP_ERROR_NO_STEPS, ACTION_SUBJECT.EDITOR, undefined, NewCollabSyncUpErrorAttributes, undefined>;
81
- declare type InvalidDocumentEncounteredAEP = OperationalAEP<ACTION.INVALID_DOCUMENT_ENCOUNTERED, ACTION_SUBJECT.EDITOR, undefined, {
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
- declare type SynchronyEntityErrorAEP = OperationalAEP<ACTION.SYNCHRONY_ENTITY_ERROR | ACTION.SYNCHRONY_DISCONNECTED, ACTION_SUBJECT.EDITOR, undefined, {
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
- declare type ContentComponentErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.CONTENT_COMPONENT, undefined, {
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 declare type ErrorEventAttributes = {
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
- 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>;
113
- declare type ComponentCrashAdditionalInfoErrorAEP = OperationalAEP<ACTION.EDITOR_CRASHED_ADDITIONAL_INFORMATION, ACTION_SUBJECT.EDITOR, undefined, {
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
- declare type SmartLinkErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.SMART_LINK, undefined, {
118
+ type SmartLinkErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.SMART_LINK, undefined, {
119
119
  error: string;
120
120
  errorStack?: string;
121
121
  }, undefined>;
122
- export declare type ErrorEventPayload = InvalidTransactionErrorAEP | InvalidTransactionStepErrorAEP | FailedToUnmountErrorAEP | SynchronyErrorAEP | InvalidDocumentEncounteredAEP | SynchronyEntityErrorAEP | ContentComponentErrorAEP | ComponentCrashErrorAEP | ComponentCrashAdditionalInfoErrorAEP | SmartLinkErrorAEP;
123
- export declare type AnalyticsEventPayloadCallback = (state: EditorState) => AnalyticsEventPayload | undefined;
124
- export declare type FireAnalyticsCallback = <T>(payload: FireAnalyticsEventPayload<T>) => void | undefined;
125
- export declare type FireAnalyticsEvent = (createAnalyticsEvent?: CreateUIAnalyticsEvent) => FireAnalyticsCallback;
126
- export declare type FireAnalyticsEventPayload<T = void> = {
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
- declare type ExperimentalAEP<Action, ActionSubject, ActionSubjectId, Attributes> = TrackAEP<Action, ActionSubject, ActionSubjectId, Attributes & {
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 declare type TextColorSelectedAEP = ExperimentalAEP<ACTION.FORMATTED, ACTION_SUBJECT.TEXT, ACTION_SUBJECT_ID.FORMAT_COLOR, TextColorSelectedAttr>;
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 declare type TextColorShowPaletteToggleAEP = ExperimentalAEP<ACTION.OPENED | ACTION.CLOSED, ACTION_SUBJECT.TOOLBAR, ACTION_SUBJECT_ID.FORMAT_COLOR, TextColorShowPaletteToggleAttr>;
15
- export declare type ExperimentalEventPayload = TextColorSelectedAEP | TextColorShowPaletteToggleAEP;
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 declare type SelectionJson = {
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 declare type ExtensionType = ACTION_SUBJECT_ID.EXTENSION_BLOCK | ACTION_SUBJECT_ID.EXTENSION_BODIED | ACTION_SUBJECT_ID.EXTENSION_INLINE;
20
- declare type ExtensionUpdateAEP = TrackAEP<ACTION.UPDATED | ACTION.ERRORED, ACTION_SUBJECT.EXTENSION, ExtensionType, {
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
- declare type ExtensionAPICalledPayload = TrackAEP<ACTION.INVOKED, ACTION_SUBJECT.EXTENSION, ACTION_SUBJECT_ID.EXTENSION_API, {
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 declare type ExtensionEventPayload = ExtensionUpdateAEP | ExtensionAPICalledPayload;
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
- declare type ActivateAEP = UIAEP<ACTION.ACTIVATED, ACTION_SUBJECT.FIND_REPLACE_DIALOG, undefined, {
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
- declare type DeactivateAEP = UIAEP<ACTION.DEACTIVATED, ACTION_SUBJECT.FIND_REPLACE_DIALOG, undefined, {
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
- declare type FindAEP = TrackAEP<ACTION.FIND_PERFORMED, ACTION_SUBJECT.TEXT, undefined, undefined, undefined>;
11
- declare type FindNextAEP = TrackAEP<ACTION.FIND_NEXT_PERFORMED, ACTION_SUBJECT.TEXT, undefined, {
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
- declare type FindPrevAEP = TrackAEP<ACTION.FIND_PREV_PERFORMED, ACTION_SUBJECT.TEXT, undefined, {
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
- declare type ReplaceTextChangeAEP = TrackAEP<ACTION.CHANGED_REPLACEMENT_TEXT, ACTION_SUBJECT.FIND_REPLACE_DIALOG, undefined, undefined, undefined>;
18
- declare type ReplaceOneAEP = TrackAEP<ACTION.REPLACED_ONE, ACTION_SUBJECT.TEXT, undefined, {
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
- declare type ReplaceAllAEP = TrackAEP<ACTION.REPLACED_ALL, ACTION_SUBJECT.TEXT, undefined, undefined, undefined>;
22
- export declare type FindReplaceEventPayload = ActivateAEP | DeactivateAEP | FindAEP | FindNextAEP | FindPrevAEP | ReplaceTextChangeAEP | ReplaceOneAEP | ReplaceAllAEP;
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
- declare type FormatAEP<ActionSubjectID, Attributes> = TrackAEP<ACTION.FORMATTED, ACTION_SUBJECT.TEXT, ActionSubjectID, Attributes, undefined>;
16
- declare 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, {
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
- declare type FormatSuperSubAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_SUPER | ACTION_SUBJECT_ID.FORMAT_SUB, {
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
- declare type FormatIndentationAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_INDENT, {
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
- declare type FormatHeadingAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_HEADING, {
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
- declare type FormatBlockQuoteAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_BLOCK_QUOTE, {
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
- declare type FormatClearAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_CLEAR, {
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
- declare type FormatColorAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_COLOR, {
41
+ type FormatColorAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_COLOR, {
42
42
  newColor: string;
43
43
  previousColor: string;
44
44
  }>;
45
- declare type FormatListAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_LIST_NUMBER | ACTION_SUBJECT_ID.FORMAT_LIST_BULLET, {
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 declare type FormatEventPayload = FormatBasicAEP | FormatSuperSubAEP | FormatIndentationAEP | FormatHeadingAEP | FormatBlockQuoteAEP | FormatClearAEP | FormatColorAEP | FormatListAEP;
48
+ export type FormatEventPayload = FormatBasicAEP | FormatSuperSubAEP | FormatIndentationAEP | FormatHeadingAEP | FormatBlockQuoteAEP | FormatClearAEP | FormatColorAEP | FormatListAEP;
49
49
  export {};