@atlaskit/editor-core 198.2.2 → 198.3.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 (38) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/appearance-editor-chromeless/package.json +15 -0
  3. package/appearance-editor-comment/package.json +15 -0
  4. package/dist/cjs/composable-editor/hooks/useEditorMeasuresConstructor.js +1 -16
  5. package/dist/cjs/composable-editor/hooks/useMeasureEditorMountTime.js +1 -1
  6. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +1 -1
  7. package/dist/cjs/ui/Appearance/FullPage/MainToolbar.js +1 -1
  8. package/dist/cjs/version-wrapper.js +1 -1
  9. package/dist/es2019/composable-editor/hooks/useEditorMeasuresConstructor.js +1 -16
  10. package/dist/es2019/composable-editor/hooks/useMeasureEditorMountTime.js +1 -1
  11. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +1 -1
  12. package/dist/es2019/ui/Appearance/FullPage/MainToolbar.js +1 -1
  13. package/dist/es2019/version-wrapper.js +1 -1
  14. package/dist/esm/composable-editor/hooks/useEditorMeasuresConstructor.js +1 -16
  15. package/dist/esm/composable-editor/hooks/useMeasureEditorMountTime.js +1 -1
  16. package/dist/esm/ui/Appearance/Comment/Toolbar.js +1 -1
  17. package/dist/esm/ui/Appearance/FullPage/MainToolbar.js +1 -1
  18. package/dist/esm/version-wrapper.js +1 -1
  19. package/dist/types/composable-editor/hooks/useEditorMeasuresConstructor.d.ts +1 -11
  20. package/dist/types/create-editor/create-universal-preset.d.ts +11 -0
  21. package/dist/types/editor-appearances/ChromelessEditor.d.ts +1 -1
  22. package/dist/types/editor-appearances/CommentEditor.d.ts +1 -1
  23. package/dist/types/presets/default.d.ts +10 -0
  24. package/dist/types/presets/universal.d.ts +11 -0
  25. package/dist/types/presets/useUniversalPreset.d.ts +11 -0
  26. package/dist/types-ts4.5/composable-editor/hooks/useEditorMeasuresConstructor.d.ts +1 -11
  27. package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +11 -0
  28. package/dist/types-ts4.5/editor-appearances/ChromelessEditor.d.ts +1 -1
  29. package/dist/types-ts4.5/editor-appearances/CommentEditor.d.ts +1 -1
  30. package/dist/types-ts4.5/presets/default.d.ts +10 -0
  31. package/dist/types-ts4.5/presets/universal.d.ts +11 -0
  32. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +11 -0
  33. package/package.json +3 -1
  34. package/dist/cjs/composable-editor/utils/editorMeasureTTICallback.js +0 -45
  35. package/dist/es2019/composable-editor/utils/editorMeasureTTICallback.js +0 -41
  36. package/dist/esm/composable-editor/utils/editorMeasureTTICallback.js +0 -39
  37. package/dist/types/composable-editor/utils/editorMeasureTTICallback.d.ts +0 -5
  38. package/dist/types-ts4.5/composable-editor/utils/editorMeasureTTICallback.d.ts +0 -5
@@ -438,6 +438,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
438
438
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
439
439
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
440
440
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
441
+ hideDragHandle: () => import("@atlaskit/editor-common/types").EditorCommand;
441
442
  setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
442
443
  };
443
444
  }, undefined>>,
@@ -855,6 +856,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
855
856
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
856
857
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
857
858
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
859
+ hideDragHandle: () => import("@atlaskit/editor-common/types").EditorCommand;
858
860
  setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
859
861
  };
860
862
  }, undefined>>,
@@ -2055,6 +2057,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
2055
2057
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
2056
2058
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
2057
2059
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
2060
+ hideDragHandle: () => import("@atlaskit/editor-common/types").EditorCommand;
2058
2061
  setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
2059
2062
  };
2060
2063
  }, undefined>>,
@@ -2930,6 +2933,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
2930
2933
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
2931
2934
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
2932
2935
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
2936
+ hideDragHandle: () => import("@atlaskit/editor-common/types").EditorCommand;
2933
2937
  setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
2934
2938
  };
2935
2939
  }, undefined>>,
@@ -3988,6 +3992,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
3988
3992
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
3989
3993
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
3990
3994
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
3995
+ hideDragHandle: () => import("@atlaskit/editor-common/types").EditorCommand;
3991
3996
  setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
3992
3997
  };
3993
3998
  }, undefined>>,
@@ -4525,6 +4530,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
4525
4530
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
4526
4531
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
4527
4532
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
4533
+ hideDragHandle: () => import("@atlaskit/editor-common/types").EditorCommand;
4528
4534
  setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
4529
4535
  };
4530
4536
  }, undefined>>,
@@ -5426,6 +5432,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
5426
5432
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
5427
5433
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
5428
5434
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
5435
+ hideDragHandle: () => import("@atlaskit/editor-common/types").EditorCommand;
5429
5436
  setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
5430
5437
  };
5431
5438
  }, undefined>>,
@@ -5846,6 +5853,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
5846
5853
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
5847
5854
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
5848
5855
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
5856
+ hideDragHandle: () => import("@atlaskit/editor-common/types").EditorCommand;
5849
5857
  setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
5850
5858
  };
5851
5859
  }, undefined>>,
@@ -6550,6 +6558,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
6550
6558
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
6551
6559
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
6552
6560
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
6561
+ hideDragHandle: () => import("@atlaskit/editor-common/types").EditorCommand;
6553
6562
  setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
6554
6563
  };
6555
6564
  }, undefined>>,
@@ -7238,6 +7247,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
7238
7247
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
7239
7248
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
7240
7249
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
7250
+ hideDragHandle: () => import("@atlaskit/editor-common/types").EditorCommand;
7241
7251
  setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
7242
7252
  };
7243
7253
  }, undefined>>,
@@ -7655,6 +7665,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
7655
7665
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | import("react").ReactPortal | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactNodeArray | Date | import("intl-messageformat").FormatXMLElementFn<import("react").ReactNode, import("react").ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): import("react").ReactNode;
7656
7666
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
7657
7667
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
7668
+ hideDragHandle: () => import("@atlaskit/editor-common/types").EditorCommand;
7658
7669
  setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
7659
7670
  };
7660
7671
  }, undefined>>,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "198.2.2",
3
+ "version": "198.3.1",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -299,6 +299,8 @@
299
299
  "./preset-builder": "./src/preset-builder.ts",
300
300
  "./appearance-editor-full-page": "./src/editor-appearances/FullPageEditor.tsx",
301
301
  "./appearance-editor-full-width": "./src/editor-appearances/FullWidthEditor.tsx",
302
+ "./appearance-editor-comment": "./src/editor-appearances/CommentEditor.tsx",
303
+ "./appearance-editor-chromeless": "./src/editor-appearances/ChromelessEditor.tsx",
302
304
  "./version-wrapper": "./src/version-wrapper.ts"
303
305
  }
304
306
  }
@@ -1,45 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = editorMeasureTTICallback;
7
- var _analytics = require("@atlaskit/editor-common/analytics");
8
- var _measureTti = require("@atlaskit/editor-common/performance/measure-tti");
9
- var _ufo = require("@atlaskit/editor-common/ufo");
10
- function editorMeasureTTICallback(tti, ttiFromInvocation, canceled, distortedDuration, performanceTracking, featureFlags, createAnalyticsEvent, experienceStore) {
11
- var _performanceTracking$;
12
- if (performanceTracking !== null && performanceTracking !== void 0 && (_performanceTracking$ = performanceTracking.ttiTracking) !== null && _performanceTracking$ !== void 0 && _performanceTracking$.enabled && createAnalyticsEvent) {
13
- var _ttiTracking;
14
- var ttiEvent = {
15
- payload: {
16
- action: _analytics.ACTION.EDITOR_TTI,
17
- actionSubject: _analytics.ACTION_SUBJECT.EDITOR,
18
- attributes: {
19
- tti: tti,
20
- ttiFromInvocation: ttiFromInvocation,
21
- canceled: canceled,
22
- distortedDuration: distortedDuration
23
- },
24
- eventType: _analytics.EVENT_TYPE.OPERATIONAL
25
- }
26
- };
27
- if ((_ttiTracking = performanceTracking.ttiTracking) !== null && _ttiTracking !== void 0 && _ttiTracking.trackSeverity) {
28
- var _ttiTracking2 = performanceTracking.ttiTracking,
29
- ttiSeverityNormalThreshold = _ttiTracking2.ttiSeverityNormalThreshold,
30
- ttiSeverityDegradedThreshold = _ttiTracking2.ttiSeverityDegradedThreshold,
31
- ttiFromInvocationSeverityNormalThreshold = _ttiTracking2.ttiFromInvocationSeverityNormalThreshold,
32
- ttiFromInvocationSeverityDegradedThreshold = _ttiTracking2.ttiFromInvocationSeverityDegradedThreshold;
33
- var _getTTISeverity = (0, _measureTti.getTTISeverity)(tti, ttiFromInvocation, ttiSeverityNormalThreshold, ttiSeverityDegradedThreshold, ttiFromInvocationSeverityNormalThreshold, ttiFromInvocationSeverityDegradedThreshold),
34
- ttiSeverity = _getTTISeverity.ttiSeverity,
35
- ttiFromInvocationSeverity = _getTTISeverity.ttiFromInvocationSeverity;
36
- ttiEvent.payload.attributes.ttiSeverity = ttiSeverity;
37
- ttiEvent.payload.attributes.ttiFromInvocationSeverity = ttiFromInvocationSeverity;
38
- }
39
- (0, _analytics.fireAnalyticsEvent)(createAnalyticsEvent)(ttiEvent);
40
- }
41
- if (featureFlags !== null && featureFlags !== void 0 && featureFlags.ufo) {
42
- experienceStore === null || experienceStore === void 0 || experienceStore.mark(_ufo.EditorExperience.loadEditor, _analytics.ACTION.EDITOR_TTI, tti);
43
- experienceStore === null || experienceStore === void 0 || experienceStore.success(_ufo.EditorExperience.loadEditor);
44
- }
45
- }
@@ -1,41 +0,0 @@
1
- import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent } from '@atlaskit/editor-common/analytics';
2
- import { getTTISeverity } from '@atlaskit/editor-common/performance/measure-tti';
3
- import { EditorExperience } from '@atlaskit/editor-common/ufo';
4
- export default function editorMeasureTTICallback(tti, ttiFromInvocation, canceled, distortedDuration, performanceTracking, featureFlags, createAnalyticsEvent, experienceStore) {
5
- var _performanceTracking$;
6
- if (performanceTracking !== null && performanceTracking !== void 0 && (_performanceTracking$ = performanceTracking.ttiTracking) !== null && _performanceTracking$ !== void 0 && _performanceTracking$.enabled && createAnalyticsEvent) {
7
- var _ttiTracking;
8
- const ttiEvent = {
9
- payload: {
10
- action: ACTION.EDITOR_TTI,
11
- actionSubject: ACTION_SUBJECT.EDITOR,
12
- attributes: {
13
- tti,
14
- ttiFromInvocation,
15
- canceled,
16
- distortedDuration
17
- },
18
- eventType: EVENT_TYPE.OPERATIONAL
19
- }
20
- };
21
- if ((_ttiTracking = performanceTracking.ttiTracking) !== null && _ttiTracking !== void 0 && _ttiTracking.trackSeverity) {
22
- const {
23
- ttiSeverityNormalThreshold,
24
- ttiSeverityDegradedThreshold,
25
- ttiFromInvocationSeverityNormalThreshold,
26
- ttiFromInvocationSeverityDegradedThreshold
27
- } = performanceTracking.ttiTracking;
28
- const {
29
- ttiSeverity,
30
- ttiFromInvocationSeverity
31
- } = getTTISeverity(tti, ttiFromInvocation, ttiSeverityNormalThreshold, ttiSeverityDegradedThreshold, ttiFromInvocationSeverityNormalThreshold, ttiFromInvocationSeverityDegradedThreshold);
32
- ttiEvent.payload.attributes.ttiSeverity = ttiSeverity;
33
- ttiEvent.payload.attributes.ttiFromInvocationSeverity = ttiFromInvocationSeverity;
34
- }
35
- fireAnalyticsEvent(createAnalyticsEvent)(ttiEvent);
36
- }
37
- if (featureFlags !== null && featureFlags !== void 0 && featureFlags.ufo) {
38
- experienceStore === null || experienceStore === void 0 ? void 0 : experienceStore.mark(EditorExperience.loadEditor, ACTION.EDITOR_TTI, tti);
39
- experienceStore === null || experienceStore === void 0 ? void 0 : experienceStore.success(EditorExperience.loadEditor);
40
- }
41
- }
@@ -1,39 +0,0 @@
1
- import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent } from '@atlaskit/editor-common/analytics';
2
- import { getTTISeverity } from '@atlaskit/editor-common/performance/measure-tti';
3
- import { EditorExperience } from '@atlaskit/editor-common/ufo';
4
- export default function editorMeasureTTICallback(tti, ttiFromInvocation, canceled, distortedDuration, performanceTracking, featureFlags, createAnalyticsEvent, experienceStore) {
5
- var _performanceTracking$;
6
- if (performanceTracking !== null && performanceTracking !== void 0 && (_performanceTracking$ = performanceTracking.ttiTracking) !== null && _performanceTracking$ !== void 0 && _performanceTracking$.enabled && createAnalyticsEvent) {
7
- var _ttiTracking;
8
- var ttiEvent = {
9
- payload: {
10
- action: ACTION.EDITOR_TTI,
11
- actionSubject: ACTION_SUBJECT.EDITOR,
12
- attributes: {
13
- tti: tti,
14
- ttiFromInvocation: ttiFromInvocation,
15
- canceled: canceled,
16
- distortedDuration: distortedDuration
17
- },
18
- eventType: EVENT_TYPE.OPERATIONAL
19
- }
20
- };
21
- if ((_ttiTracking = performanceTracking.ttiTracking) !== null && _ttiTracking !== void 0 && _ttiTracking.trackSeverity) {
22
- var _ttiTracking2 = performanceTracking.ttiTracking,
23
- ttiSeverityNormalThreshold = _ttiTracking2.ttiSeverityNormalThreshold,
24
- ttiSeverityDegradedThreshold = _ttiTracking2.ttiSeverityDegradedThreshold,
25
- ttiFromInvocationSeverityNormalThreshold = _ttiTracking2.ttiFromInvocationSeverityNormalThreshold,
26
- ttiFromInvocationSeverityDegradedThreshold = _ttiTracking2.ttiFromInvocationSeverityDegradedThreshold;
27
- var _getTTISeverity = getTTISeverity(tti, ttiFromInvocation, ttiSeverityNormalThreshold, ttiSeverityDegradedThreshold, ttiFromInvocationSeverityNormalThreshold, ttiFromInvocationSeverityDegradedThreshold),
28
- ttiSeverity = _getTTISeverity.ttiSeverity,
29
- ttiFromInvocationSeverity = _getTTISeverity.ttiFromInvocationSeverity;
30
- ttiEvent.payload.attributes.ttiSeverity = ttiSeverity;
31
- ttiEvent.payload.attributes.ttiFromInvocationSeverity = ttiFromInvocationSeverity;
32
- }
33
- fireAnalyticsEvent(createAnalyticsEvent)(ttiEvent);
34
- }
35
- if (featureFlags !== null && featureFlags !== void 0 && featureFlags.ufo) {
36
- experienceStore === null || experienceStore === void 0 || experienceStore.mark(EditorExperience.loadEditor, ACTION.EDITOR_TTI, tti);
37
- experienceStore === null || experienceStore === void 0 || experienceStore.success(EditorExperience.loadEditor);
38
- }
39
- }
@@ -1,5 +0,0 @@
1
- import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
2
- import type { ExperienceStore } from '@atlaskit/editor-common/ufo';
3
- import type { EditorProps } from '../../types/editor-props';
4
- import type { PerformanceTracking } from '../../types/performance-tracking';
5
- export default function editorMeasureTTICallback(tti: number, ttiFromInvocation: number, canceled: boolean, distortedDuration: boolean, performanceTracking: PerformanceTracking | undefined, featureFlags: EditorProps['featureFlags'], createAnalyticsEvent?: CreateUIAnalyticsEvent, experienceStore?: ExperienceStore): void;
@@ -1,5 +0,0 @@
1
- import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
2
- import type { ExperienceStore } from '@atlaskit/editor-common/ufo';
3
- import type { EditorProps } from '../../types/editor-props';
4
- import type { PerformanceTracking } from '../../types/performance-tracking';
5
- export default function editorMeasureTTICallback(tti: number, ttiFromInvocation: number, canceled: boolean, distortedDuration: boolean, performanceTracking: PerformanceTracking | undefined, featureFlags: EditorProps['featureFlags'], createAnalyticsEvent?: CreateUIAnalyticsEvent, experienceStore?: ExperienceStore): void;