@atlaskit/editor-core 234.3.0 → 234.3.2

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 (46) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/cjs/create-editor/editorNativeAnchorSupportPlugin.js +2 -7
  3. package/dist/cjs/presets/universal.js +1 -4
  4. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-compiled.compiled.css +0 -1
  5. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-compiled.js +3 -2
  6. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-emotion.js +1 -25
  7. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +1 -0
  8. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.js +2 -1
  9. package/dist/cjs/version-wrapper.js +1 -1
  10. package/dist/es2019/create-editor/editorNativeAnchorSupportPlugin.js +2 -7
  11. package/dist/es2019/presets/universal.js +1 -4
  12. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-compiled.compiled.css +0 -1
  13. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-compiled.js +3 -2
  14. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-emotion.js +1 -25
  15. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +1 -0
  16. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.js +2 -1
  17. package/dist/es2019/version-wrapper.js +1 -1
  18. package/dist/esm/create-editor/editorNativeAnchorSupportPlugin.js +2 -7
  19. package/dist/esm/presets/universal.js +1 -4
  20. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-compiled.compiled.css +0 -1
  21. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-compiled.js +3 -2
  22. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-emotion.js +1 -25
  23. package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +1 -0
  24. package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.js +2 -1
  25. package/dist/esm/version-wrapper.js +1 -1
  26. package/package.json +6 -6
  27. package/dist/cjs/utils/performance/outlier.js +0 -16
  28. package/dist/cjs/utils/performance/percentile.js +0 -22
  29. package/dist/cjs/utils/performance/plugin-performance-observer.js +0 -131
  30. package/dist/cjs/utils/performance/plugin-performance-report.js +0 -190
  31. package/dist/cjs/utils/performance/simple-measure-to-entries.js +0 -101
  32. package/dist/es2019/utils/performance/outlier.js +0 -10
  33. package/dist/es2019/utils/performance/percentile.js +0 -14
  34. package/dist/es2019/utils/performance/plugin-performance-observer.js +0 -88
  35. package/dist/es2019/utils/performance/plugin-performance-report.js +0 -133
  36. package/dist/es2019/utils/performance/simple-measure-to-entries.js +0 -83
  37. package/dist/esm/utils/performance/outlier.js +0 -10
  38. package/dist/esm/utils/performance/percentile.js +0 -16
  39. package/dist/esm/utils/performance/plugin-performance-observer.js +0 -124
  40. package/dist/esm/utils/performance/plugin-performance-report.js +0 -183
  41. package/dist/esm/utils/performance/simple-measure-to-entries.js +0 -94
  42. package/dist/types/utils/performance/outlier.d.ts +0 -1
  43. package/dist/types/utils/performance/percentile.d.ts +0 -1
  44. package/dist/types/utils/performance/plugin-performance-observer.d.ts +0 -23
  45. package/dist/types/utils/performance/plugin-performance-report.d.ts +0 -47
  46. package/dist/types/utils/performance/simple-measure-to-entries.d.ts +0 -28
@@ -161,30 +161,6 @@ var editorContentAreaContainerStyleExcludeCodeBlockNew = css({
161
161
  }
162
162
  }
163
163
  });
164
-
165
- /* Prevent horizontal scroll on page in full width mode */
166
- var editorContentAreaContainerStyleNew = css({
167
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
168
- '.fabric-editor--full-width-mode': {
169
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
170
- '.code-block, .extension-container, .multiBodiedExtension--container': {
171
- maxWidth: "calc(100% - ".concat(tableMarginFullWidthMode * 2, "px)")
172
- },
173
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
174
- '.extension-container.inline': {
175
- maxWidth: '100%'
176
- },
177
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
178
- 'td .extension-container.inline': {
179
- maxWidth: 'inherit'
180
- },
181
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
182
- '[data-layout-section]': {
183
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
184
- maxWidth: "calc(100% + ".concat(akLayoutGutterOffset * 2, "px)")
185
- }
186
- }
187
- });
188
164
  var editorContentGutterStyleFG = css({
189
165
  padding: '0 72px'
190
166
  });
@@ -330,7 +306,7 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
330
306
  // reports a non-WYSIWYG view.
331
307
  shouldHideProseMirrorForMarkdownMode && hideEditorContentAreaProsemirrorWithAttributeStyle, shouldHideScrollGutterForMarkdownMode && hideEditorContentAreaScrollGutterWithAttributeStyle, shouldHideProseMirrorForMarkdownMode && markdownModeContentAreaStyle, tableFullPageEditorStylesNew, fullWidthNonChromelessBreakoutBlockTableStyle,
332
308
  // for breakout resizing, there's no need to restrict the width of codeblocks as they're always wrapped in a breakout mark
333
- expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) ? editorContentAreaContainerStyleExcludeCodeBlockNew : editorContentAreaContainerStyleNew, editorContentAreaContainerNestedDndStyle],
309
+ editorContentAreaContainerStyleExcludeCodeBlockNew, editorContentAreaContainerNestedDndStyle],
334
310
  style: {
335
311
  '--ak-editor-content-area-max-width': "".concat(contentAreaMaxWidth, "px")
336
312
  }
@@ -128,6 +128,7 @@
128
128
  .cc-kqyid .fabric-editor-breakout-mark:has([data-prosemirror-node-name=bodiedSyncBlock])>.pm-breakout-resize-handle-container--left, .cc-kqyid .fabric-editor-breakout-mark:has([data-prosemirror-node-name=syncBlock])>.pm-breakout-resize-handle-container--left{left:-24px}.cc-kqyid .fabric-editor-breakout-mark:has([data-prosemirror-node-name=bodiedSyncBlock])>.pm-breakout-resize-handle-container--right, .cc-kqyid .fabric-editor-breakout-mark:has([data-prosemirror-node-name=syncBlock])>.pm-breakout-resize-handle-container--right{right:-24px}.cc-kqyid .fabric-editor-breakout-mark:has([data-prosemirror-node-name=bodiedSyncBlock])>.pm-breakout-resize-handle-container, .cc-kqyid .fabric-editor-breakout-mark:has([data-prosemirror-node-name=syncBlock])>.pm-breakout-resize-handle-container{height:calc(100% - 9pt)}
129
129
  @container editor-area (max-width: 600px){.cc-1rmxv6a .fabric-editor-breakout-mark:has([data-prosemirror-node-name=expand])>.pm-breakout-resize-handle-container, .cc-1rmxv6a .fabric-editor-breakout-mark:has([data-prosemirror-node-name=layoutSection])>.pm-breakout-resize-handle-container{opacity:0;visibility:hidden}.cc-1rmxv6a .fabric-editor-breakout-mark:has([data-prosemirror-node-name=layoutSection]) .resizer-item{will-change:width}.cc-1rmxv6a .fabric-editor-breakout-mark:has([data-prosemirror-node-name=layoutSection]) .resizer-item.display-handle>.resizer-handle-wrapper>.resizer-handle, .cc-1rmxv6a .fabric-editor-breakout-mark:has([data-prosemirror-node-name=layoutSection]) .resizer-item:hover>.resizer-handle-wrapper>.resizer-handle{visibility:hidden;opacity:0}}
130
130
  .cc-e2b324 .fabric-editor-breakout-mark:has(>.fabric-editor-breakout-mark-dom>[data-prosemirror-node-name=panel])>.pm-breakout-resize-handle-container--right{right:-4px}.cc-e2b324 .fabric-editor-breakout-mark:has(>.fabric-editor-breakout-mark-dom>[data-prosemirror-node-name=panel])>.pm-breakout-resize-handle-container{height:calc(100% - 9pt)}.cc-e2b324 .fabric-editor-breakout-mark:has(>.fabric-editor-breakout-mark-dom>[data-prosemirror-node-name=panel_c1])>.pm-breakout-resize-handle-container--right{right:-4px}.cc-e2b324 .fabric-editor-breakout-mark:has(>.fabric-editor-breakout-mark-dom>[data-prosemirror-node-name=panel_c1])>.pm-breakout-resize-handle-container{height:calc(100% - 9pt)}.cc-e2b324 .fabric-editor-breakout-mark:has(>.fabric-editor-breakout-mark-dom>[data-prosemirror-node-name=rule])>.pm-breakout-resize-handle-container--right{right:-4px}.cc-e2b324 .fabric-editor-breakout-mark:has(>.fabric-editor-breakout-mark-dom>[data-prosemirror-node-name=rule])>.pm-breakout-resize-handle-container{align-self:center;height:40px}.cc-e2b324 .fabric-editor-breakout-mark:has(>.fabric-editor-breakout-mark-dom>[data-prosemirror-node-name=rule].first-node-in-document)>.pm-breakout-resize-handle-container{transform:translateY(-14px)}
131
+ .cc-1r1iai5 .fabric-editor-breakout-mark:has(>.fabric-editor-breakout-mark-dom>[data-prosemirror-node-name=panel])>.pm-breakout-resize-handle-container--right{right:-4px}.cc-1r1iai5 .fabric-editor-breakout-mark:has(>.fabric-editor-breakout-mark-dom>[data-prosemirror-node-name=panel])>.pm-breakout-resize-handle-container{height:calc(100% - 9pt)}.cc-1r1iai5 .fabric-editor-breakout-mark:has(>.fabric-editor-breakout-mark-dom>[data-prosemirror-node-name=panel_c1])>.pm-breakout-resize-handle-container--right{right:-4px}.cc-1r1iai5 .fabric-editor-breakout-mark:has(>.fabric-editor-breakout-mark-dom>[data-prosemirror-node-name=panel_c1])>.pm-breakout-resize-handle-container{height:calc(100% - 9pt)}.cc-1r1iai5 .fabric-editor-breakout-mark:has(>.fabric-editor-breakout-mark-dom>[data-prosemirror-node-name=rule])>.pm-breakout-resize-handle-container--right{right:-4px}.cc-1r1iai5 .fabric-editor-breakout-mark:has(>.fabric-editor-breakout-mark-dom>[data-prosemirror-node-name=rule])>.pm-breakout-resize-handle-container{align-self:center;height:40px}.cc-1r1iai5 .fabric-editor-breakout-mark:has(>.fabric-editor-breakout-mark-dom>[data-prosemirror-node-name=rule].first-node-in-document)>.pm-breakout-resize-handle-container{transform:translateY(-14px)}
131
132
  .cc-1qxwscr .fabric-editor-breakout-mark:has([data-prosemirror-node-name=bodiedExtension])>.pm-breakout-resize-handle-container--right, .cc-1qxwscr .fabric-editor-breakout-mark:has([data-prosemirror-node-name=extension])>.pm-breakout-resize-handle-container--right, .cc-1qxwscr .fabric-editor-breakout-mark:has([data-prosemirror-node-name=multiBodiedExtension])>.pm-breakout-resize-handle-container--right{right:-25px}
132
133
  .cc-15hu28n .fabric-editor-breakout-mark:has([data-prosemirror-node-name=layoutSection].first-node-in-document)>.pm-breakout-resize-handle-container{height:calc(100% - 8px)}
133
134
  .cc-zdnzj .resizer-item{will-change:width}.cc-zdnzj .resizer-item.display-handle>.resizer-handle-wrapper>.resizer-handle, .cc-zdnzj .resizer-item:hover>.resizer-handle-wrapper>.resizer-handle{visibility:visible;opacity:1}.cc-zdnzj .resizer-item.is-resizing .resizer-handle-thumb{background:var(--ds-border-focused,#4688ec)}.cc-zdnzj .resizer-item.resizer-handle-danger .resizer-handle-thumb{transition:none;background:var(--ds-icon-danger,#c9372c)}.cc-zdnzj .resizer-handle{display:flex;visibility:hidden;opacity:0;flex-direction:column;justify-content:center;align-items:center;width:7px;transition:visibility .2s,opacity .2s}.cc-zdnzj .resizer-handle div[role=presentation]:not(:where([popover],dialog,[popover] *,dialog *)){width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:var(--ds-space-negative-200,-1pc);white-space:normal}.cc-zdnzj .resizer-handle.left{align-items:flex-start}.cc-zdnzj .resizer-handle.right{align-items:flex-end}.cc-zdnzj .resizer-handle.small .resizer-handle-thumb{height:43px}.cc-zdnzj .resizer-handle.medium .resizer-handle-thumb{height:4pc}.cc-zdnzj .resizer-handle.large .resizer-handle-thumb{height:6pc}.cc-zdnzj .resizer-handle.clamped .resizer-handle-thumb{height:clamp(43px,calc(100% - 2pc),6pc)}.cc-zdnzj .resizer-handle.sticky .resizer-handle-thumb{position:sticky;top:var(--ds-space-150,9pt);bottom:var(--ds-space-150,9pt)}.cc-zdnzj .resizer-handle:hover .resizer-handle-thumb{background:var(--ds-border-focused,#4688ec)}.cc-zdnzj .resizer-handle:hover .resizer-handle-track{visibility:visible;opacity:.5}.cc-zdnzj .resizer-handle-thumb{content:" ";display:flex;width:3px;margin:0 var(--ds-space-025,2px);height:4pc;transition:background-color .2s;border-radius:var(--ds-radius-medium,6px);border:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;z-index:2;outline-color:currentColor;outline-style:none;outline-width:medium;min-height:24px;background:var(--ds-border,#0b120e24)}.cc-zdnzj .resizer-handle-thumb:hover{cursor:col-resize}.cc-zdnzj .resizer-handle-thumb:focus{background:var(--ds-border-selected,#1868db)}.cc-zdnzj .resizer-handle-thumb:focus:after{content:"";position:absolute;top:var(--ds-space-negative-050,-4px);right:var(--ds-space-negative-050,-4px);bottom:var(--ds-space-negative-050,-4px);left:var(--ds-space-negative-050,-4px);border:var(--ds-border-width-selected,2px) solid var(--ds-border-focused,#4688ec);border-radius:inherit;z-index:-1}.cc-zdnzj .resizer-handle-track{visibility:hidden;position:absolute;width:7px;height:calc(100% - 40px);border-radius:var(--ds-radius-small,4px);opacity:0;transition:background-color .2s,visibility .2s,opacity .2s}.cc-zdnzj .resizer-handle-track.none{background:none}.cc-zdnzj .resizer-handle-track.shadow{background:var(--ds-background-selected,#e9f2fe)}.cc-zdnzj .resizer-handle-track.full-height{background:var(--ds-background-selected,#e9f2fe);height:100%;min-height:36px}.cc-zdnzj .ak-editor-selected-node .resizer-handle-thumb{background:var(--ds-border-focused,#4688ec)}.cc-zdnzj .ak-editor-no-interaction .ak-editor-selected-node .resizer-handle:not(:hover) .resizer-handle-thumb{background:var(--ds-border,#0b120e24)}.cc-zdnzj .resizer-hover-zone{position:relative;display:flow-root;width:100%}.cc-zdnzj .resizer-hover-zone.resizer-is-extended{padding:0 var(--ds-space-150,9pt);left:var(--ds-space-negative-150,-9pt)}.cc-zdnzj table .resizer-hover-zone, .cc-zdnzj table .resizer-hover-zone.resizer-is-extended{padding-top:unset;padding-right:unset;padding-bottom:unset;padding-left:unset;left:unset}
@@ -290,6 +290,7 @@ var editorContentStyles = {
290
290
  pragmaticResizerStylesSyncedBlock: "cc-kqyid",
291
291
  pragmaticResizerStylesWithReducedEditorGutter: "cc-1rmxv6a",
292
292
  pragmaticResizerStylesPanelAndRule: "cc-e2b324",
293
+ pragmaticResizerStylesPanelAndRuleJsdomFix: "cc-1r1iai5",
293
294
  pragmaticResizerStylesExtensions: "cc-1qxwscr",
294
295
  pragmaticStylesLayoutFirstNodeResizeHandleFix: "cc-15hu28n",
295
296
  resizerStyles: "cc-zdnzj",
@@ -411,7 +412,7 @@ export var EditorContentContainerCompiled = /*#__PURE__*/React.forwardRef(functi
411
412
  className: ax([editorContentStyles.baseStyles, editorContentStyles.maxModeReizeFixStyles, editorContentStyles.baseStylesMaxContainerWidthFixes, editorContentStyles.editorGutterPaddingBaseStyles, editorExperiment('platform_editor_preview_panel_responsiveness', true, {
412
413
  exposure: true
413
414
  }) && editorContentStyles.editorLargeGutterPuddingReducedBaseStyles, editorContentStyles.whitespaceStyles, editorContentStyles.indentationStyles, editorContentStyles.fontSizeStyles, editorContentStyles.shadowStyles, editorContentStyles.InlineNodeViewSharedStyles, editorContentStyles.hideSelectionStyles, editorContentStyles.hideCursorWhenHideSelectionStyles, editorContentStyles.selectedNodeStyles, editorContentStyles.cursorStyles, editorContentStyles.firstFloatingToolbarButtonStyles, editorContentStyles.placeholderTextStyles, editorContentStyles.placeholderStyles, editorExperiment('platform_editor_controls', 'variant1') && editorContentStyles.placeholderOverflowStyles, editorContentStyles.codeBlockStyles, contentMode === 'compact' && editorContentStyles.codeBlockStylesWithEmUnits, editorContentStyles.editorUGCTokensRefreshed, editorContentStyles.editorUGCSmallText, editorContentStyles.blocktypeStyles, editorContentStyles.blocktypeStylesRtlBlockquote, isFloatingTocEnabled && editorContentStyles.headingScrollMarginStyles, editorContentStyles.blockquoteSelectedNodeStyles, editorContentStyles.listSelectedNodeStyles, editorContentStyles.textSelectedNodeStyles, editorContentStyles.blocktypeStyles_fg_platform_editor_typography_ugc, editorContentStyles.blocktypeStylesNestedDnd, editorContentStyles.codeMarkStyles, editorContentStyles.textColorStyles, editorContentStyles.backgroundColorStyles, !expValEquals('platform_editor_lovability_text_bg_color', 'isEnabled', true) && editorContentStyles.highlightLinksUnsetStyles, editorContentStyles.textHighlightPaddingStyles, editorContentStyles.listsStyles, editorContentStyles.listItemHiddenMarkerStyles, editorContentStyles.diffListStyles, contentMode === 'compact' && isDense && editorContentStyles.listsDenseStyles, isFullPage && editorContentStyles.listsStylesMarginLayoutShiftFix, editorContentStyles.ruleStyles, isExperimentEnabled('platform_editor_lovability_dividers_attributes') && editorContentStyles.ruleWithAttrsStyles, editorContentStyles.smartCardDiffStyles, editorContentStyles.showDiffDeletedNodeStyles, editorContentStyles.mediaStyles, isExperimentEnabled('platform_editor_vanilla_node_views_phase1') && editorContentStyles.vanillaCaptionStyles, contentMode === 'compact' && editorContentStyles.mediaCaptionStyles, editorContentStyles.firstWrappedMediaStyles, editorContentStyles.telepointerStyle, /* This needs to be after telepointer styles as some overlapping rules have equal specificity, and so the order is significant */
414
- editorContentStyles.telepointerColorAndCommonStyle, colorMode === 'dark' && editorContentStyles.telepointerColorAndCommonStyleDarkMode, expValEqualsNoExposure('platform_editor_agent_be_streaming', 'isEnabled', true) && editorContentStyles.agentShimmerStyles, editorContentStyles.gapCursorStyles, editorContentStyles.gapCursorStylesVisibilityFix, editorContentStyles.panelStyles, editorContentStyles.nestedPanelBorderStylesMixin, editorContentStyles.panelStylesMixinNestedDnd, editorContentStyles.panelStylesMixin, editorContentStyles.mentionsStyles, editorContentStyles.tasksAndDecisionsStyles, contentMode === 'compact' && isDense && editorContentStyles.tasksAndDecisionsDenseStyles, editorContentStyles.gridStyles, editorContentStyles.blockMarksStyles, editorContentStyles.dateStyles, editorContentStyles.extensionStyles, fg('platform_editor_lovability_resize_exts_gracefully') && editorContentStyles.extensionWithBreakoutStyles, contentMode === 'compact' && editorContentStyles.extensionStylesDense, editorContentStyles.bodiedExtensionLayoutShiftFix, editorContentStyles.extensionDiffStyles, editorContentStyles.expandStylesBase, !useStandardNodeWidth && editorContentStyles.expandStyles, contentMode === 'compact' && isDense && editorContentStyles.expandDenseStyles, editorContentStyles.expandStylesMixinNestedDnd, editorContentStyles.expandStylesMixin_fg_platform_visual_refresh_icons, isChromeless && editorContentStyles.expandStylesMixin_chromeless_expand_fix, editorContentStyles.findReplaceStyles, editorContentStyles.findReplaceStylesWithCodeblockColorContrastFix, editorContentStyles.findReplaceStylesWithRefSyncBlock, editorContentStyles.textHighlightStyle, editorContentStyles.decisionStyles, expValEqualsNoExposure('platform_editor_blocktaskitem_node_tenantid', 'isEnabled', true) ? editorContentStyles.taskItemStylesWithBlockTaskItem : editorContentStyles.taskItemStyles, editorContentStyles.taskItemCheckboxStyles, editorContentStyles.decisionIconWithVisualRefresh, editorContentStyles.statusStyles, isStatusStylesTeam26 ? editorContentStyles.statusStylesTeam26 : fg('platform-component-visual-refresh') ? editorContentStyles.statusStylesMixin_fg_platform_component_visual_refresh_with_search_match : editorContentStyles.statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match, isStatusStylesTeam26 && isUpdateStatusColorsEnabled && editorContentStyles.statusStylesNamedAccent, isStatusStylesTeam26 && !isUpdateStatusColorsEnabled && editorContentStyles.statusStylesNamedSemantic, (fg('platform_editor_gracefully_render_status_color') || isUpdateStatusColorsEnabled) && editorContentStyles.statusStylesHexAccent, fg('platform_editor_ai_show_diff_patch_2') && editorContentStyles.deletedStatusStrikeStyles, editorContentStyles.annotationStyles, editorContentStyles.smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, editorExperiment('platform_editor_preview_panel_responsiveness', true) && editorContentStyles.smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, editorContentStyles.editorControlsSmartCardStyles, editorContentStyles.embedCardStyles, editorContentStyles.unsupportedStyles, editorContentStyles.vanillaTooltipDefaultStyles, fg('confluence_ncs_step_diffing_version_history') && editorContentStyles.contributorTagStyles, isExperimentEnabled('platform_editor_vanilla_node_views_phase1') && editorContentStyles.vanillaUnsupportedStyles, editorContentStyles.resizerStyles, expValEqualsNoExposure('cc-maui-experiment', 'isEnabled', true) && expValEquals('databases-native-embeds-v2', 'isEnabled', true) && editorContentStyles.resizerBottomHandleStyles, editorContentStyles.layoutBaseStyles, editorContentStyles.alignMultipleWrappedImageInLayoutStyles, editorContentStyles.syncBlockStylesBase, fg('platform-dst-tokens-finesse') && editorContentStyles.syncBlockSelectedStyles, !useStandardNodeWidth && editorContentStyles.syncBlockStyles, editorContentStyles.syncBlockOverflowStyles, editorContentStyles.syncBlockFirstNodeStyles, editorContentStyles.syncBlockTextSelectionStyles, editorContentStyles.syncBlockInteractiveCursorStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutBaseStylesAdvanced, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutSectionStylesAdvanced : editorContentStyles.layoutSectionStylesNotAdvanced, editorExperiment('advanced_layouts', true) && !fg('platform-dst-top-layer-tooltip') && editorContentStyles.layoutDragHandleWrapperStylesLegacy, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnDividerStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnDividerStylesNestedDnD, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutColumnStylesAdvanced : editorContentStyles.layoutColumnStylesNotAdvanced, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnResizeStyles, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutSelectedStylesAdvanced : editorContentStyles.layoutSelectedStylesNotAdvanced, editorContentStyles.layoutSelectedStylesAdvancedFix, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnResponsiveStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutResponsiveBaseStyles, editorContentStyles.layoutBaseStylesNestedDndExcludingBodiedSync, editorContentStyles.layoutColumnMartinTopFixes, editorContentStyles.smartLinksInLivePagesStyles, editorContentStyles.linkingVisualRefreshV1Styles, editorContentStyles.dateVanillaStyles, contentMode === 'compact' ? editorContentStyles.paragraphStylesWithScaledMargin : editorContentStyles.paragraphStylesUGCRefreshed, editorContentStyles.linkStyles, browser.safari && editorContentStyles.listsStylesSafariFix, editorContentStyles.pragmaticResizerStylesSyncedBlock, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && editorContentStyles.pragmaticResizerStyles, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && expValEqualsNoExposure('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && editorContentStyles.pragmaticResizerStylesPanelAndRule, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && isExperimentEnabled('platform_editor_lovability_resize_extensions') && editorContentStyles.pragmaticResizerStylesExtensions, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && editorContentStyles.pragmaticResizerStylesCodeBlockSyncedBlockPatch, editorExperiment('advanced_layouts', true) && expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && editorContentStyles.pragmaticStylesLayoutFirstNodeResizeHandleFix, expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true) && editorContentStyles.pragmaticResizerStylesForTooltip, editorExperiment('platform_editor_preview_panel_responsiveness', true) && (editorExperiment('advanced_layouts', true) || expValEqualsNoExposure('platform_editor_breakout_resizing', 'isEnabled', true)) && editorContentStyles.pragmaticResizerStylesWithReducedEditorGutter, editorContentStyles.aiPanelBaseStyles, isFirefox && editorContentStyles.aiPanelBaseFirefoxStyles, colorMode === 'dark' && editorContentStyles.aiPanelDarkStyles, colorMode === 'dark' && isFirefox && editorContentStyles.aiPanelDarkFirefoxStyles, viewMode === 'view' && editorContentStyles.layoutStylesForView, viewMode === 'view' && editorExperiment('advanced_layouts', true) && editorContentStyles.layoutSelectedStylesForViewAdvanced, viewMode === 'view' && editorExperiment('advanced_layouts', false) && editorContentStyles.layoutSelectedStylesForViewNotAdvanced, viewMode === 'view' && editorExperiment('advanced_layouts', true) && editorContentStyles.layoutResponsiveStylesForView, isComment && editorContentStyles.commentEditorStyles, isComment && editorContentStyles.tableCommentEditorStyles, (isComment || isChromeless) && editorContentStyles.nonFullPageContainerTypeStyles, isFullPage && editorContentStyles.fullPageEditorStyles, isFullPage && editorContentStyles.scrollbarStyles, editorContentStyles.firstCodeBlockWithNoMargin, editorContentStyles.firstBlockNodeStyles, editorContentStyles.firstNodeWidgetFixStyles, editorContentStyles.mentionNodeStyles, colorMode === 'dark' && editorContentStyles.agentMentionShimmerDarkMode, editorContentStyles.mentionsSelectionStyles, expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? editorContentStyles.scaledEmojiStyles : editorContentStyles.emojiStyles, isFloatingTocEnabled ? editorContentStyles.directEmojiSelectionStyles : editorContentStyles.emojiSelectionStyles, contentMode === 'compact' && isDense && expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.scaledEmojiDenseStyles, contentMode === 'compact' && isDense && !expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.emojiDenseStyles, editorContentStyles.panelViewStyles, editorContentStyles.mediaGroupStyles, editorContentStyles.mediaAlignmentStyles, editorContentStyles.tableLayoutFixesWithFontSize, editorContentStyles.tableContainerStyles, editorContentStyles.tableSharedStyle, isExperimentEnabled('platform_editor_table_css_overflow_shadow') && editorContentStyles.tableScrollInlineShadowStyles, (browser.gecko || browser.ie || browser.mac && browser.chrome) && editorContentStyles.tableSharedStyleBackgroundClipFix, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? editorContentStyles.tableSharedStyle_with_platform_editor_table_q4_loveability : editorContentStyles.tableSharedStyle_without_platform_editor_table_q4_loveability, expValEquals('platform_editor_table_menu_updates', 'isEnabled', true) && editorContentStyles.tableSharedStyle_with_platform_editor_table_menu_updates, fg('platform_editor_bordered_panel_nested_in_table') && editorContentStyles.tableSharedStyle_with_platform_editor_bordered_panel_nested_in_table, editorContentStyles.tableEmptyRowStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && editorContentStyles.tableRoundedCornerStyles, editorContentStyles.tableContentModeStyles, editorContentStyles.tableContentModeExtensionContainmentStyles, editorContentStyles.tableContentModeNestedTableStyles, editorContentStyles.tableCellBackgroundColorOverrides, editorContentStyles.hyperLinkFloatingToolbarStyles, editorContentStyles.selectionToolbarAnimationStyles, editorContentStyles.blockquoteDangerStyles, editorContentStyles.textDangerStyles, editorContentStyles.listDangerStyles, editorContentStyles.dangerDateStyles, editorContentStyles.emojiDangerStyles, editorContentStyles.mentionDangerStyles, editorContentStyles.decisionDangerStyles, editorContentStyles.statusDangerStyles, editorContentStyles.dangerRuleStyles, editorContentStyles.mediaDangerStyles, editorContentStyles.nestedPanelDangerStyles, isBlockSpacingEnabled && editorContentStyles.blockSpacingVarStyles, isBlockSpacingEnabled && isDense && editorContentStyles.blockSpacingVarScaledStyles, className || undefined]),
415
+ editorContentStyles.telepointerColorAndCommonStyle, colorMode === 'dark' && editorContentStyles.telepointerColorAndCommonStyleDarkMode, expValEqualsNoExposure('platform_editor_agent_be_streaming', 'isEnabled', true) && editorContentStyles.agentShimmerStyles, editorContentStyles.gapCursorStyles, editorContentStyles.gapCursorStylesVisibilityFix, editorContentStyles.panelStyles, editorContentStyles.nestedPanelBorderStylesMixin, editorContentStyles.panelStylesMixinNestedDnd, editorContentStyles.panelStylesMixin, editorContentStyles.mentionsStyles, editorContentStyles.tasksAndDecisionsStyles, contentMode === 'compact' && isDense && editorContentStyles.tasksAndDecisionsDenseStyles, editorContentStyles.gridStyles, editorContentStyles.blockMarksStyles, editorContentStyles.dateStyles, editorContentStyles.extensionStyles, fg('platform_editor_lovability_resize_exts_gracefully') && editorContentStyles.extensionWithBreakoutStyles, contentMode === 'compact' && editorContentStyles.extensionStylesDense, editorContentStyles.bodiedExtensionLayoutShiftFix, editorContentStyles.extensionDiffStyles, editorContentStyles.expandStylesBase, !useStandardNodeWidth && editorContentStyles.expandStyles, contentMode === 'compact' && isDense && editorContentStyles.expandDenseStyles, editorContentStyles.expandStylesMixinNestedDnd, editorContentStyles.expandStylesMixin_fg_platform_visual_refresh_icons, isChromeless && editorContentStyles.expandStylesMixin_chromeless_expand_fix, editorContentStyles.findReplaceStyles, editorContentStyles.findReplaceStylesWithCodeblockColorContrastFix, editorContentStyles.findReplaceStylesWithRefSyncBlock, editorContentStyles.textHighlightStyle, editorContentStyles.decisionStyles, expValEqualsNoExposure('platform_editor_blocktaskitem_node_tenantid', 'isEnabled', true) ? editorContentStyles.taskItemStylesWithBlockTaskItem : editorContentStyles.taskItemStyles, editorContentStyles.taskItemCheckboxStyles, editorContentStyles.decisionIconWithVisualRefresh, editorContentStyles.statusStyles, isStatusStylesTeam26 ? editorContentStyles.statusStylesTeam26 : fg('platform-component-visual-refresh') ? editorContentStyles.statusStylesMixin_fg_platform_component_visual_refresh_with_search_match : editorContentStyles.statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match, isStatusStylesTeam26 && isUpdateStatusColorsEnabled && editorContentStyles.statusStylesNamedAccent, isStatusStylesTeam26 && !isUpdateStatusColorsEnabled && editorContentStyles.statusStylesNamedSemantic, (fg('platform_editor_gracefully_render_status_color') || isUpdateStatusColorsEnabled) && editorContentStyles.statusStylesHexAccent, fg('platform_editor_ai_show_diff_patch_2') && editorContentStyles.deletedStatusStrikeStyles, editorContentStyles.annotationStyles, editorContentStyles.smartCardStylesWithSearchMatchAndBlockMenuDangerStyles, editorExperiment('platform_editor_preview_panel_responsiveness', true) && editorContentStyles.smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, editorContentStyles.editorControlsSmartCardStyles, editorContentStyles.embedCardStyles, editorContentStyles.unsupportedStyles, editorContentStyles.vanillaTooltipDefaultStyles, fg('confluence_ncs_step_diffing_version_history') && editorContentStyles.contributorTagStyles, isExperimentEnabled('platform_editor_vanilla_node_views_phase1') && editorContentStyles.vanillaUnsupportedStyles, editorContentStyles.resizerStyles, expValEqualsNoExposure('cc-maui-experiment', 'isEnabled', true) && expValEquals('databases-native-embeds-v2', 'isEnabled', true) && editorContentStyles.resizerBottomHandleStyles, editorContentStyles.layoutBaseStyles, editorContentStyles.alignMultipleWrappedImageInLayoutStyles, editorContentStyles.syncBlockStylesBase, fg('platform-dst-tokens-finesse') && editorContentStyles.syncBlockSelectedStyles, !useStandardNodeWidth && editorContentStyles.syncBlockStyles, editorContentStyles.syncBlockOverflowStyles, editorContentStyles.syncBlockFirstNodeStyles, editorContentStyles.syncBlockTextSelectionStyles, editorContentStyles.syncBlockInteractiveCursorStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutBaseStylesAdvanced, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutSectionStylesAdvanced : editorContentStyles.layoutSectionStylesNotAdvanced, editorExperiment('advanced_layouts', true) && !fg('platform-dst-top-layer-tooltip') && editorContentStyles.layoutDragHandleWrapperStylesLegacy, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnDividerStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnDividerStylesNestedDnD, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutColumnStylesAdvanced : editorContentStyles.layoutColumnStylesNotAdvanced, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnResizeStyles, editorExperiment('advanced_layouts', true) ? editorContentStyles.layoutSelectedStylesAdvanced : editorContentStyles.layoutSelectedStylesNotAdvanced, editorContentStyles.layoutSelectedStylesAdvancedFix, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutColumnResponsiveStyles, editorExperiment('advanced_layouts', true) && editorContentStyles.layoutResponsiveBaseStyles, editorContentStyles.layoutBaseStylesNestedDndExcludingBodiedSync, editorContentStyles.layoutColumnMartinTopFixes, editorContentStyles.smartLinksInLivePagesStyles, editorContentStyles.linkingVisualRefreshV1Styles, editorContentStyles.dateVanillaStyles, contentMode === 'compact' ? editorContentStyles.paragraphStylesWithScaledMargin : editorContentStyles.paragraphStylesUGCRefreshed, editorContentStyles.linkStyles, browser.safari && editorContentStyles.listsStylesSafariFix, editorContentStyles.pragmaticResizerStylesSyncedBlock, editorContentStyles.pragmaticResizerStyles, expValEqualsNoExposure('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && isExperimentEnabled('platform_editor_resizer_selector_jsdom_fix') && editorContentStyles.pragmaticResizerStylesPanelAndRuleJsdomFix, expValEqualsNoExposure('platform_editor_lovability_resize_dividers_panels', 'isEnabled', true) && !isExperimentEnabled('platform_editor_resizer_selector_jsdom_fix') && editorContentStyles.pragmaticResizerStylesPanelAndRule, isExperimentEnabled('platform_editor_lovability_resize_extensions') && editorContentStyles.pragmaticResizerStylesExtensions, editorContentStyles.pragmaticResizerStylesCodeBlockSyncedBlockPatch, editorExperiment('advanced_layouts', true) && editorContentStyles.pragmaticStylesLayoutFirstNodeResizeHandleFix, editorContentStyles.pragmaticResizerStylesForTooltip, editorExperiment('platform_editor_preview_panel_responsiveness', true) && editorContentStyles.pragmaticResizerStylesWithReducedEditorGutter, editorContentStyles.aiPanelBaseStyles, isFirefox && editorContentStyles.aiPanelBaseFirefoxStyles, colorMode === 'dark' && editorContentStyles.aiPanelDarkStyles, colorMode === 'dark' && isFirefox && editorContentStyles.aiPanelDarkFirefoxStyles, viewMode === 'view' && editorContentStyles.layoutStylesForView, viewMode === 'view' && editorExperiment('advanced_layouts', true) && editorContentStyles.layoutSelectedStylesForViewAdvanced, viewMode === 'view' && editorExperiment('advanced_layouts', false) && editorContentStyles.layoutSelectedStylesForViewNotAdvanced, viewMode === 'view' && editorExperiment('advanced_layouts', true) && editorContentStyles.layoutResponsiveStylesForView, isComment && editorContentStyles.commentEditorStyles, isComment && editorContentStyles.tableCommentEditorStyles, (isComment || isChromeless) && editorContentStyles.nonFullPageContainerTypeStyles, isFullPage && editorContentStyles.fullPageEditorStyles, isFullPage && editorContentStyles.scrollbarStyles, editorContentStyles.firstCodeBlockWithNoMargin, editorContentStyles.firstBlockNodeStyles, editorContentStyles.firstNodeWidgetFixStyles, editorContentStyles.mentionNodeStyles, colorMode === 'dark' && editorContentStyles.agentMentionShimmerDarkMode, editorContentStyles.mentionsSelectionStyles, expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) ? editorContentStyles.scaledEmojiStyles : editorContentStyles.emojiStyles, isFloatingTocEnabled ? editorContentStyles.directEmojiSelectionStyles : editorContentStyles.emojiSelectionStyles, contentMode === 'compact' && isDense && expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.scaledEmojiDenseStyles, contentMode === 'compact' && isDense && !expValEquals('platform_editor_lovability_emoji_scaling', 'isEnabled', true) && editorContentStyles.emojiDenseStyles, editorContentStyles.panelViewStyles, editorContentStyles.mediaGroupStyles, editorContentStyles.mediaAlignmentStyles, editorContentStyles.tableLayoutFixesWithFontSize, editorContentStyles.tableContainerStyles, editorContentStyles.tableSharedStyle, isExperimentEnabled('platform_editor_table_css_overflow_shadow') && editorContentStyles.tableScrollInlineShadowStyles, (browser.gecko || browser.ie || browser.mac && browser.chrome) && editorContentStyles.tableSharedStyleBackgroundClipFix, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? editorContentStyles.tableSharedStyle_with_platform_editor_table_q4_loveability : editorContentStyles.tableSharedStyle_without_platform_editor_table_q4_loveability, expValEquals('platform_editor_table_menu_updates', 'isEnabled', true) && editorContentStyles.tableSharedStyle_with_platform_editor_table_menu_updates, fg('platform_editor_bordered_panel_nested_in_table') && editorContentStyles.tableSharedStyle_with_platform_editor_bordered_panel_nested_in_table, editorContentStyles.tableEmptyRowStyles, expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) && editorContentStyles.tableRoundedCornerStyles, editorContentStyles.tableContentModeStyles, editorContentStyles.tableContentModeExtensionContainmentStyles, editorContentStyles.tableContentModeNestedTableStyles, editorContentStyles.tableCellBackgroundColorOverrides, editorContentStyles.hyperLinkFloatingToolbarStyles, editorContentStyles.selectionToolbarAnimationStyles, editorContentStyles.blockquoteDangerStyles, editorContentStyles.textDangerStyles, editorContentStyles.listDangerStyles, editorContentStyles.dangerDateStyles, editorContentStyles.emojiDangerStyles, editorContentStyles.mentionDangerStyles, editorContentStyles.decisionDangerStyles, editorContentStyles.statusDangerStyles, editorContentStyles.dangerRuleStyles, editorContentStyles.mediaDangerStyles, editorContentStyles.nestedPanelDangerStyles, isBlockSpacingEnabled && editorContentStyles.blockSpacingVarStyles, isBlockSpacingEnabled && isDense && editorContentStyles.blockSpacingVarScaledStyles, className || undefined]),
415
416
  ref: ref,
416
417
  "data-editor-scroll-container": isScrollable ? 'true' : undefined,
417
418
  "data-testid": "editor-content-container"
@@ -1,3 +1,3 @@
1
1
  export var name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export var version = "234.2.1";
3
+ export var version = "234.3.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "234.3.0",
3
+ "version": "234.3.2",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -77,7 +77,7 @@
77
77
  "@atlaskit/react-compiler-gating": "^0.2.0",
78
78
  "@atlaskit/react-ufo": "^8.0.0",
79
79
  "@atlaskit/task-decision": "^21.12.0",
80
- "@atlaskit/tmp-editor-statsig": "^223.0.0",
80
+ "@atlaskit/tmp-editor-statsig": "^224.0.0",
81
81
  "@atlaskit/tokens": "^20.3.0",
82
82
  "@atlaskit/tooltip": "^24.4.0",
83
83
  "@atlaskit/width-detector": "^7.2.0",
@@ -96,7 +96,7 @@
96
96
  "uuid": "^11.1.1"
97
97
  },
98
98
  "peerDependencies": {
99
- "@atlaskit/editor-common": "^128.3.0",
99
+ "@atlaskit/editor-common": "^128.4.0",
100
100
  "@atlaskit/link-provider": "^6.0.0",
101
101
  "@atlaskit/media-core": "^39.0.0",
102
102
  "react": "^18.2.0 || ^19.2.0",
@@ -116,7 +116,7 @@
116
116
  "@atlaskit/docs": "^12.3.0",
117
117
  "@atlaskit/drawer": "^14.3.0",
118
118
  "@atlaskit/editor-plugin-alignment": "^25.0.0",
119
- "@atlaskit/editor-plugin-annotation": "^24.0.0",
119
+ "@atlaskit/editor-plugin-annotation": "^24.1.0",
120
120
  "@atlaskit/editor-plugin-base": "^25.1.0",
121
121
  "@atlaskit/editor-plugin-card": "^30.0.0",
122
122
  "@atlaskit/editor-plugin-code-block-advanced": "^24.0.0",
@@ -154,7 +154,7 @@
154
154
  "@atlaskit/media-test-helpers": "^43.0.0",
155
155
  "@atlaskit/media-ui": "^31.3.0",
156
156
  "@atlaskit/modal-dialog": "^17.0.0",
157
- "@atlaskit/navigation-system": "^11.1.0",
157
+ "@atlaskit/navigation-system": "^11.2.0",
158
158
  "@atlaskit/popper": "^9.4.0",
159
159
  "@atlaskit/portal": "^7.0.0",
160
160
  "@atlaskit/profilecard": "^27.1.0",
@@ -173,7 +173,7 @@
173
173
  "@atlassian/editor-rovo-bridge": "^23.0.0",
174
174
  "@atlassian/experiment-test-utils": "^0.2.0",
175
175
  "@atlassian/feature-flags-test-utils": "^1.3.0",
176
- "@atlassian/search-client": "^3.6.0",
176
+ "@atlassian/search-client": "^3.7.0",
177
177
  "@atlassian/search-provider": "^25.0.0",
178
178
  "@atlassian/structured-docs-types": "workspace:^",
179
179
  "@atlassian/testing-library": "^0.11.0",
@@ -1,16 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.outlier = void 0;
7
- var _percentile = require("./percentile");
8
- var outlier = exports.outlier = function outlier(input, factor) {
9
- var q1 = (0, _percentile.percentile)(input, 0.25);
10
- var q3 = (0, _percentile.percentile)(input, 0.75);
11
- if (typeof q1 === 'undefined' || typeof q3 === 'undefined') {
12
- return;
13
- }
14
- var iqr = q3 - q1;
15
- return q3 + iqr * factor;
16
- };
@@ -1,22 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.percentile = void 0;
7
- var percentile = exports.percentile = function percentile(input, fraction) {
8
- var sorted = input.sort(function (a, b) {
9
- return a - b;
10
- });
11
- var position = sorted.length * fraction;
12
- var base = Math.floor(position);
13
- var rest = position - base;
14
- if (rest > 0) {
15
- return sorted[base];
16
- }
17
- var item = sorted[base - 1];
18
- var next = sorted[base];
19
- if (typeof item !== 'undefined' && typeof next !== 'undefined') {
20
- return (item + next) / 2;
21
- }
22
- };
@@ -1,131 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.PluginPerformanceObserver = void 0;
8
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
- var _pluginPerformanceReport = require("./plugin-performance-report");
13
- var _simpleMeasureToEntries = require("./simple-measure-to-entries");
14
- var _trackTransactions = require("./track-transactions");
15
- var PluginPerformanceObserver = exports.PluginPerformanceObserver = /*#__PURE__*/function () {
16
- function PluginPerformanceObserver(callback) {
17
- var _this = this;
18
- (0, _classCallCheck2.default)(this, PluginPerformanceObserver);
19
- (0, _defineProperty2.default)(this, "getNodeCounts", function () {
20
- return [{
21
- nodeCount: {},
22
- extensionNodeCount: {}
23
- }, 0];
24
- });
25
- (0, _defineProperty2.default)(this, "getPlugins", function () {
26
- return [];
27
- });
28
- (0, _defineProperty2.default)(this, "getOptions", function () {
29
- return {};
30
- });
31
- (0, _defineProperty2.default)(this, "reportCount", 0);
32
- (0, _defineProperty2.default)(this, "simpleObserver", new _simpleMeasureToEntries.SimpleMeasurementLogger());
33
- (0, _defineProperty2.default)(this, "onObserveration", function (entries) {
34
- var reports = entries.getEntriesByName(_trackTransactions.EVENT_NAME_DISPATCH_TRANSACTION).map(function (entry) {
35
- var _PluginPerformanceRep;
36
- return (_PluginPerformanceRep = _pluginPerformanceReport.PluginPerformanceReport.fromEntry(entry).withCount(++_this.reportCount).withEntryList(entries)).withNodes.apply(_PluginPerformanceRep, (0, _toConsumableArray2.default)(_this.getNodeCounts())).withPlugins(_this.getPlugins()).withOptions(_this.getOptions()).toJSON();
37
- });
38
- reports.filter(function (report) {
39
- return report.trigger !== 'none';
40
- }).forEach(function (report) {
41
- return _this.callback(report);
42
- });
43
- });
44
- this.callback = callback;
45
- this.observer = window.PerformanceObserver ? new PerformanceObserver(this.onObserveration) : {
46
- observe: function observe() {},
47
- disconnect: function disconnect() {},
48
- takeRecords: function takeRecords() {
49
- return [];
50
- }
51
- };
52
- }
53
- return (0, _createClass2.default)(PluginPerformanceObserver, [{
54
- key: "isSimpleTracking",
55
- get: function get() {
56
- var _this$getOptions = this.getOptions(),
57
- _this$getOptions$useP = _this$getOptions.usePerformanceMarks,
58
- usePerformanceMarks = _this$getOptions$useP === void 0 ? _trackTransactions.DEFAULT_USE_PERFORMANCE_MARK : _this$getOptions$useP;
59
- return !usePerformanceMarks;
60
- }
61
- }, {
62
- key: "withNodeCounts",
63
- value: function withNodeCounts(getNodeCounts) {
64
- this.getNodeCounts = function () {
65
- var start = performance.now();
66
- var result = getNodeCounts();
67
- return [result, performance.now() - start];
68
- };
69
- return this;
70
- }
71
- }, {
72
- key: "withPlugins",
73
- value: function withPlugins(getPlugins) {
74
- this.getPlugins = getPlugins;
75
- return this;
76
- }
77
- }, {
78
- key: "withOptions",
79
- value: function withOptions(getOptions) {
80
- this.getOptions = getOptions;
81
- return this;
82
- }
83
- }, {
84
- key: "withTransactionTracker",
85
- value: function withTransactionTracker(getTransactionTracker) {
86
- this.getTransactionTracker = getTransactionTracker;
87
- return this;
88
- }
89
- }, {
90
- key: "observe",
91
- value: function observe() {
92
- var _this2 = this;
93
- if (this.isSimpleTracking) {
94
- this.simpleObserver.setPluginNames(this.getPlugins());
95
- this.simpleObserver.setOnObservation(function (entries) {
96
- _this2.onObserveration(entries, _this2.observer);
97
- });
98
-
99
- // can trigger a callback when stopMeasure() measures something.
100
- // use that to trigger this.onObservation()
101
- this.getTransactionTracker && this.getTransactionTracker().addMeasureListener(this.simpleObserver.observed);
102
- } else {
103
- try {
104
- this.observer.observe({
105
- buffered: false,
106
- type: 'measure'
107
- });
108
- } catch (err) {
109
- // Older API implementations do not support the simpler type init
110
- this.observer.observe({
111
- entryTypes: ['measure']
112
- });
113
- }
114
- }
115
- }
116
- }, {
117
- key: "disconnect",
118
- value: function disconnect() {
119
- if (this.isSimpleTracking) {
120
- this.getTransactionTracker && this.getTransactionTracker().removeMeasureListener(this.simpleObserver.observed);
121
- } else {
122
- this.observer.disconnect();
123
- }
124
- }
125
- }, {
126
- key: "takeRecords",
127
- value: function takeRecords() {
128
- return this.observer.takeRecords();
129
- }
130
- }]);
131
- }();
@@ -1,190 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.PluginPerformanceReport = void 0;
8
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
- var _outlier = require("./outlier");
13
- var _trackTransactions = require("./track-transactions");
14
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
15
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
16
- var PluginPerformanceReport = exports.PluginPerformanceReport = /*#__PURE__*/function () {
17
- function PluginPerformanceReport(entry) {
18
- var _this = this;
19
- (0, _classCallCheck2.default)(this, PluginPerformanceReport);
20
- (0, _defineProperty2.default)(this, "count", 0);
21
- (0, _defineProperty2.default)(this, "pluginNames", []);
22
- (0, _defineProperty2.default)(this, "nodes", {});
23
- (0, _defineProperty2.default)(this, "extensionNodes", {});
24
- (0, _defineProperty2.default)(this, "nodesDuration", 0);
25
- (0, _defineProperty2.default)(this, "plugins", {});
26
- (0, _defineProperty2.default)(this, "slowPlugins", {});
27
- (0, _defineProperty2.default)(this, "options", {
28
- samplingRate: 100,
29
- slowThreshold: 300,
30
- outlierThreshold: 30,
31
- outlierFactor: 3
32
- });
33
- (0, _defineProperty2.default)(this, "isChild", function (child) {
34
- return child.startTime >= _this.entry.startTime && child.startTime + child.duration <= _this.entry.startTime + _this.entry.duration;
35
- });
36
- this.entry = entry;
37
- }
38
- return (0, _createClass2.default)(PluginPerformanceReport, [{
39
- key: "getEntryByName",
40
- value: function getEntryByName(entryList, name) {
41
- return entryList.getEntriesByName(name).find(this.isChild);
42
- }
43
- }, {
44
- key: "getMethodSum",
45
- value: function getMethodSum(methods) {
46
- return Object.values(methods).reduce(function (a, b) {
47
- return a + b;
48
- }, 0);
49
- }
50
- }, {
51
- key: "greaterEquals",
52
- value: function greaterEquals(a, b) {
53
- return typeof b === 'number' ? a >= b : false;
54
- }
55
- }, {
56
- key: "hasOutlierMethods",
57
- value: function hasOutlierMethods(methods, outliers) {
58
- return this.greaterEquals(methods.stateApply, outliers.stateApplyOutlier) || this.greaterEquals(methods.viewUpdate, outliers.viewUpdateOutlier);
59
- }
60
- }, {
61
- key: "trigger",
62
- get: function get() {
63
- if (this.entry.duration > this.options.slowThreshold) {
64
- return 'slow';
65
- } else if (this.hasSlowPlugins && this.entry.duration > this.options.outlierThreshold) {
66
- return 'distribution';
67
- } else if (this.count > 0 && this.count % this.options.samplingRate === 0) {
68
- return 'sample';
69
- } else {
70
- return 'none';
71
- }
72
- }
73
- }, {
74
- key: "hasSlowPlugins",
75
- get: function get() {
76
- return Object.keys(this.slowPlugins).length > 0;
77
- }
78
- }, {
79
- key: "withEntryList",
80
- value: function withEntryList(entryList) {
81
- this.entryList = entryList;
82
- this.stateApplied = this.getEntryByName(entryList, _trackTransactions.EVENT_NAME_STATE_APPLY);
83
- this.viewUpdated = this.getEntryByName(entryList, _trackTransactions.EVENT_NAME_UPDATE_STATE);
84
- this.onChangeCalled = this.getEntryByName(entryList, _trackTransactions.EVENT_NAME_ON_CHANGE);
85
- this.onEditorViewStateUpdatedCalled = this.getEntryByName(entryList, _trackTransactions.EVENT_NAME_VIEW_STATE_UPDATED);
86
- this.withPlugins(this.pluginNames);
87
- return this;
88
- }
89
- }, {
90
- key: "withPlugins",
91
- value: function withPlugins(pluginNames) {
92
- var _this2 = this;
93
- var emptyEntry = {
94
- duration: 0
95
- };
96
- this.pluginNames = pluginNames;
97
- this.plugins = pluginNames.reduce(function (acc, name) {
98
- var pluginApplied = _this2.entryList ? _this2.getEntryByName(_this2.entryList, "\uD83E\uDD89".concat(name, "::apply")) || emptyEntry : emptyEntry;
99
- var pluginViewUpdated = _this2.entryList ? _this2.getEntryByName(_this2.entryList, "\uD83E\uDD89".concat(name, "::view::update")) || emptyEntry : emptyEntry;
100
- var pluginOnEditorViewStateUpdated = _this2.entryList ? _this2.getEntryByName(_this2.entryList, "\uD83E\uDD89".concat(name, "::onEditorViewStateUpdated")) || emptyEntry : emptyEntry;
101
- acc[name] = {
102
- stateApply: pluginApplied.duration,
103
- viewUpdate: pluginViewUpdated.duration,
104
- onEditorViewStateUpdated: pluginOnEditorViewStateUpdated.duration
105
- };
106
- return acc;
107
- }, {});
108
- if (this.stateApplied && pluginNames.length > 0) {
109
- var pluginEntries = Object.entries(this.plugins);
110
- var stateApplyOutlier = (0, _outlier.outlier)(pluginEntries.map(function (_ref) {
111
- var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
112
- stateApply = _ref2[1].stateApply;
113
- return stateApply;
114
- }), this.options.outlierFactor);
115
- var viewUpdateOutlier = (0, _outlier.outlier)(pluginEntries.map(function (_ref3) {
116
- var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
117
- viewUpdate = _ref4[1].viewUpdate;
118
- return viewUpdate;
119
- }), this.options.outlierFactor);
120
- var budget = this.options.outlierThreshold / pluginEntries.length;
121
-
122
- /**
123
- * Consider plugin methods slow that are
124
- * statistically significantly slower than peers
125
- * AND where the sum of methods for a plugin is slower than 16.7ms / plugins.length
126
- */
127
- var pluginIsOutlier = function pluginIsOutlier(_ref5) {
128
- var _ref6 = (0, _slicedToArray2.default)(_ref5, 2),
129
- methods = _ref6[1];
130
- return _this2.getMethodSum(methods) > budget && _this2.hasOutlierMethods(methods, {
131
- stateApplyOutlier: stateApplyOutlier,
132
- viewUpdateOutlier: viewUpdateOutlier
133
- });
134
- };
135
- this.slowPlugins = pluginEntries.filter(pluginIsOutlier).reduce(function (acc, _ref7) {
136
- var _ref8 = (0, _slicedToArray2.default)(_ref7, 2),
137
- n = _ref8[0],
138
- d = _ref8[1];
139
- return _objectSpread(_objectSpread({}, acc), {}, (0, _defineProperty2.default)({}, n, d));
140
- }, {});
141
- }
142
- return this;
143
- }
144
- }, {
145
- key: "withNodes",
146
- value: function withNodes(nodesCount) {
147
- var nodesDuration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
148
- this.nodes = nodesCount.nodeCount;
149
- this.extensionNodes = nodesCount.extensionNodeCount;
150
- this.nodesDuration = nodesDuration;
151
- return this;
152
- }
153
- }, {
154
- key: "withCount",
155
- value: function withCount(count) {
156
- this.count = count;
157
- return this;
158
- }
159
- }, {
160
- key: "withOptions",
161
- value: function withOptions(options) {
162
- Object.assign(this.options, options);
163
- return this;
164
- }
165
- }, {
166
- key: "toJSON",
167
- value: function toJSON() {
168
- return {
169
- trigger: this.trigger,
170
- duration: this.entry.duration,
171
- nodes: this.nodes,
172
- extensionNodes: this.extensionNodes,
173
- plugins: this.plugins,
174
- slowPlugins: this.slowPlugins,
175
- stepDurations: {
176
- stateApply: this.stateApplied ? this.stateApplied.duration : 0,
177
- viewUpdate: this.viewUpdated ? this.viewUpdated.duration : 0,
178
- onChange: this.onChangeCalled ? this.onChangeCalled.duration : 0,
179
- onEditorViewStateUpdated: this.onEditorViewStateUpdatedCalled ? this.onEditorViewStateUpdatedCalled.duration : 0,
180
- countNodes: this.nodesDuration
181
- }
182
- };
183
- }
184
- }], [{
185
- key: "fromEntry",
186
- value: function fromEntry(entry) {
187
- return new PluginPerformanceReport(entry);
188
- }
189
- }]);
190
- }();