@atlaskit/renderer 112.7.0 → 112.7.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 (57) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/actions/index.js +1 -2
  3. package/dist/cjs/react/index.js +1 -2
  4. package/dist/cjs/react/marks/confluence-inline-comment.js +5 -7
  5. package/dist/cjs/react/nodes/TableStickyScrollbar.js +1 -2
  6. package/dist/cjs/react/nodes/decisionList.js +5 -7
  7. package/dist/cjs/react/nodes/emoji.js +6 -9
  8. package/dist/cjs/react/nodes/fallback.js +7 -10
  9. package/dist/cjs/react/nodes/heading-anchor.js +11 -14
  10. package/dist/cjs/react/nodes/media/index.js +8 -11
  11. package/dist/cjs/react/nodes/mediaGroup.js +9 -12
  12. package/dist/cjs/react/nodes/table/sticky.js +7 -9
  13. package/dist/cjs/react/nodes/table.js +27 -32
  14. package/dist/cjs/react/nodes/tableRow.js +8 -11
  15. package/dist/cjs/react/nodes/taskItem.js +6 -9
  16. package/dist/cjs/react/nodes/taskList.js +5 -7
  17. package/dist/cjs/react/utils/element-selection.js +1 -2
  18. package/dist/cjs/text/index.js +1 -2
  19. package/dist/cjs/ui/Expand.js +1 -1
  20. package/dist/cjs/ui/MediaCard.js +9 -12
  21. package/dist/cjs/ui/Renderer/ErrorBoundary.js +6 -9
  22. package/dist/cjs/ui/Renderer/index.js +12 -15
  23. package/dist/cjs/ui/Renderer/style.js +2 -2
  24. package/dist/cjs/ui/Renderer/truncated-wrapper.js +5 -7
  25. package/dist/cjs/ui/SmartCardStorage.js +5 -7
  26. package/dist/cjs/ui/annotations/context.js +8 -11
  27. package/dist/cjs/ui/annotations/draft/dom.js +1 -2
  28. package/dist/es2019/ui/Expand.js +1 -1
  29. package/dist/es2019/ui/Renderer/index.js +1 -1
  30. package/dist/es2019/ui/Renderer/style.js +2 -2
  31. package/dist/esm/actions/index.js +1 -2
  32. package/dist/esm/react/index.js +1 -2
  33. package/dist/esm/react/marks/confluence-inline-comment.js +5 -7
  34. package/dist/esm/react/nodes/TableStickyScrollbar.js +1 -2
  35. package/dist/esm/react/nodes/decisionList.js +5 -7
  36. package/dist/esm/react/nodes/emoji.js +6 -9
  37. package/dist/esm/react/nodes/fallback.js +7 -10
  38. package/dist/esm/react/nodes/heading-anchor.js +11 -14
  39. package/dist/esm/react/nodes/media/index.js +8 -11
  40. package/dist/esm/react/nodes/mediaGroup.js +9 -12
  41. package/dist/esm/react/nodes/table/sticky.js +7 -9
  42. package/dist/esm/react/nodes/table.js +27 -32
  43. package/dist/esm/react/nodes/tableRow.js +8 -11
  44. package/dist/esm/react/nodes/taskItem.js +6 -9
  45. package/dist/esm/react/nodes/taskList.js +5 -7
  46. package/dist/esm/react/utils/element-selection.js +1 -2
  47. package/dist/esm/text/index.js +1 -2
  48. package/dist/esm/ui/Expand.js +1 -1
  49. package/dist/esm/ui/MediaCard.js +9 -12
  50. package/dist/esm/ui/Renderer/ErrorBoundary.js +6 -9
  51. package/dist/esm/ui/Renderer/index.js +12 -15
  52. package/dist/esm/ui/Renderer/style.js +2 -2
  53. package/dist/esm/ui/Renderer/truncated-wrapper.js +5 -7
  54. package/dist/esm/ui/SmartCardStorage.js +5 -7
  55. package/dist/esm/ui/annotations/context.js +8 -11
  56. package/dist/esm/ui/annotations/draft/dom.js +1 -2
  57. package/package.json +4 -4
@@ -37,7 +37,7 @@ var tableShadowWidth = 32;
37
37
  var TELEPOINTER_ID = exports.TELEPOINTER_ID = 'ai-streaming-telepointer';
38
38
  var telepointerStyles = function telepointerStyles(colorMode) {
39
39
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
40
- return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t#", " {\n\t\t\tdisplay: inline-block;\n\t\t\tposition: relative;\n\t\t\twidth: 1.5px;\n\t\t\theight: 25px;\n\t\t\tbackground: linear-gradient(\n\t\t\t\t45deg,\n\t\t\t\t", " -12.02%,\n\t\t\t\t", " 19.18%,\n\t\t\t\t", " 71.87%\n\t\t\t);\n\t\t\tmargin-left: ", ";\n\n\t\t\t&::after {\n\t\t\t\tcontent: 'AI';\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tfont-size: 10px;\n\t\t\t\tfont-weight: 700;\n\t\t\t\twidth: 12.5px;\n\t\t\t\theight: 13px;\n\t\t\t\tpadding-top: 1px;\n\t\t\t\tpadding-left: 1.5px;\n\t\t\t\tline-height: initial;\n\t\t\t\tborder-radius: 0px 2px 2px 0px;\n\t\t\t\tcolor: ", ";\n\t\t\t\tbackground: linear-gradient(\n\t\t\t\t\t45deg,\n\t\t\t\t\t", " -57%,\n\t\t\t\t\t", " 71.87%\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t"])), TELEPOINTER_ID, colorMode === 'dark' ? '#f5cd47' : '#f8e6a0', colorMode === 'dark' ? '#60c6d2' : '#8bdbe5', colorMode === 'dark' ? '#388bff' : '#0c66e4', "var(--ds-space-025, 2px)", "var(--ds-text-inverse, white)", colorMode === 'dark' ? '#60c6d2' : '#8bdbe5', colorMode === 'dark' ? '#388bff' : '#0c66e4');
40
+ return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t#", " {\n\t\t\tdisplay: inline-block;\n\t\t\tposition: relative;\n\t\t\twidth: 1.5px;\n\t\t\theight: 25px;\n\t\t\tbackground: linear-gradient(\n\t\t\t\t45deg,\n\t\t\t\t", " -12.02%,\n\t\t\t\t", " 19.18%,\n\t\t\t\t", " 71.87%\n\t\t\t);\n\t\t\tmargin-left: ", ";\n\n\t\t\t&::after {\n\t\t\t\tcontent: 'AI';\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tfont-size: 10px;\n\t\t\t\tfont-weight: ", ";\n\t\t\t\twidth: 12.5px;\n\t\t\t\theight: 13px;\n\t\t\t\tpadding-top: 1px;\n\t\t\t\tpadding-left: 1.5px;\n\t\t\t\tline-height: initial;\n\t\t\t\tborder-radius: 0px 2px 2px 0px;\n\t\t\t\tcolor: ", ";\n\t\t\t\tbackground: linear-gradient(\n\t\t\t\t\t45deg,\n\t\t\t\t\t", " -57%,\n\t\t\t\t\t", " 71.87%\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t"])), TELEPOINTER_ID, colorMode === 'dark' ? '#f5cd47' : '#f8e6a0', colorMode === 'dark' ? '#60c6d2' : '#8bdbe5', colorMode === 'dark' ? '#388bff' : '#0c66e4', "var(--ds-space-025, 2px)", "var(--ds-font-weight-bold, 700)", "var(--ds-text-inverse, white)", colorMode === 'dark' ? '#60c6d2' : '#8bdbe5', colorMode === 'dark' ? '#388bff' : '#0c66e4');
41
41
  };
42
42
  var getLineHeight = function getLineHeight(fontCode) {
43
43
  return _typography.headingSizes[fontCode].lineHeight / _typography.headingSizes[fontCode].size;
@@ -161,7 +161,7 @@ var rendererStyles = exports.rendererStyles = function rendererStyles(wrapperPro
161
161
  var isAdvancedLayoutsOn = (0, _experiments.editorExperiment)('advanced_layouts', true);
162
162
 
163
163
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/design-system/no-css-tagged-template-expression
164
- return (0, _react.css)(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n\t\tfont-size: ", "px;\n\t\tline-height: 1.5rem;\n\t\tcolor: ", ";\n\n\t\t.", "::after {\n\t\t\t// we add a clearfix after ak-renderer-document in order to\n\t\t\t// contain internal floats (such as media images that are \"wrap-left\")\n\t\t\t// to just the renderer (and not spill outside of it)\n\t\t\tcontent: '';\n\t\t\tvisibility: hidden;\n\t\t\tdisplay: block;\n\t\t\theight: 0;\n\t\t\tclear: both;\n\t\t}\n\n\t\t", "\n\t\t", "\n\n .", " {\n\t\t\t", "\n\t\t}\n\n\t\t& h1 {\n\t\t\t", "\n\t\t}\n\n\t\t& h2 {\n\t\t\t", "\n\t\t}\n\n\t\t& h3 {\n\t\t\t", "\n\t\t}\n\n\t\t& h4 {\n\t\t\t", "\n\t\t}\n\n\t\t& h5 {\n\t\t\t", "\n\t\t}\n\n\t\t& h6 {\n\t\t\t", "\n\t\t}\n\n\t\t& span.akActionMark {\n\t\t\tcolor: ", ";\n\t\t\ttext-decoration: none;\n\n\t\t\t&:hover {\n\t\t\t\tcolor: ", ";\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\n\t\t\t&:active {\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\t\t}\n\n\t\t& span.akActionMark {\n\t\t\tcursor: pointer;\n\t\t}\n\n\t\t& span[data-placeholder] {\n\t\t\tcolor: ", ";\n\t\t}\n\n\t\t", "\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", "\n\t\t", "\n\n\t\t& .UnknownBlock {\n\t\t\tfont-family: ", ";\n\t\t\tfont-size: ", ";\n\t\t\tfont-weight: 400;\n\t\t\twhite-space: pre-wrap;\n\t\t\tword-wrap: break-word;\n\t\t}\n\n\t\t& span.date-node {\n\t\t\tbackground: ", ";\n\t\t\tborder-radius: ", ";\n\t\t\tcolor: ", ";\n\t\t\tpadding: ", " ", ";\n\t\t\tmargin: 0 1px;\n\t\t\ttransition: background 0.3s;\n\t\t}\n\n\t\t& span.date-node-highlighted {\n\t\t\tbackground: ", ";\n\t\t\tcolor: ", ";\n\t\t}\n\n\t\t& .renderer-image {\n\t\t\tmax-width: 100%;\n\t\t\tdisplay: block;\n\t\t\tmargin: ", " 0;\n\t\t}\n\n\t\t.", ".rich-media-wrapped + .", ":not(.rich-media-wrapped) {\n\t\t\tclear: both;\n\t\t}\n\n\t\t& .code-block,\n\t\t& blockquote,\n\t\t& hr,\n\t\t& > div > div:not(.rich-media-wrapped),\n\t\t.", ".rich-media-wrapped + .rich-media-wrapped + *:not(.rich-media-wrapped),\n\t\t.", ".rich-media-wrapped + div:not(.rich-media-wrapped),\n\t\t.", ".image-align-start,\n\t\t\t.", ".image-center,\n\t\t\t.", ".image-align-end {\n\t\t\tclear: both;\n\t\t}\n\n\t\t& .rich-media-wrapped {\n\t\t\t& + h1,\n\t\t\t& + h2,\n\t\t\t& + h3,\n\t\t\t& + h4,\n\t\t\t& + h5,\n\t\t\t& + h6 {\n\t\t\t\tmargin-top: ", ";\n\t\t\t}\n\t\t}\n\n\t\t", "\n\t\t/* plugin styles */\n ", " &\n div[class^='image-wrap-'] + div[class^='image-wrap-'] {\n\t\t\tmargin-left: 0;\n\t\t\tmargin-right: 0;\n\t\t}\n\n\t\t/* Breakout for tables and extensions */\n\t\t.", " > {\n\t\t\t", "\n\n\t\t\t* .", " {\n\t\t\t\toverflow-x: auto;\n\t\t\t}\n\n\t\t\t& .", ":first-child {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\t.", " {\n\t\t\t\tmargin-top: ", ";\n\t\t\t}\n\n\t\t\t.", " {\n\t\t\t\tmargin-left: 50%;\n\t\t\t\ttransform: translateX(-50%);\n\t\t\t}\n\n\t\t\t.", " {\n\t\t\t\toverflow-x: auto;\n\t\t\t}\n\n\t\t\t.", " .", " {\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t}\n\n\t\t", "\n\n\t\t.", " .", " {\n\t\t\tz-index: 0;\n\t\t\ttransition: all 0.1s linear;\n\t\t\tdisplay: flex; /* needed to avoid position: fixed jumpiness in Chrome */\n\n\t\t\t/** Shadow overrides */\n\t\t\t&.", "::after, &.", "::before {\n\t\t\t\ttop: ", "px;\n\t\t\t\theight: calc(100% - ", "px);\n\t\t\t\tz-index: ", ";\n\t\t\t}\n\n\t\t\t", "\n\n\t\t\t", "\n\n\t\t\t&\n .", ",\n &\n .", " {\n\t\t\t\theight: calc(100% - ", "px);\n\t\t\t}\n\n\t\t\t/**\n * A hack for making all the <th /> heights equal in case some have shorter\n * content than others.\n *\n * This is done to make sort buttons fill entire <th />.\n */\n\t\t\ttable {\n\t\t\t\theight: 1px; /* will be ignored */\n\t\t\t\t", ";\n\t\t\t\tmargin-left: 0;\n\t\t\t\tmargin-right: 0;\n\t\t\t}\n\n\t\t\ttable tr:first-of-type {\n\t\t\t\theight: 100%;\n\n\t\t\t\ttd,\n\t\t\t\tth {\n\t\t\t\t\tposition: relative;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttable[data-number-column='true'] {\n\t\t\t\t.", " {\n\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\tborder-right: 1px solid\n\t\t\t\t\t\t", ";\n\t\t\t\t\twidth: ", "px;\n\t\t\t\t\ttext-align: center;\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t\tfont-size: ", ";\n\t\t\t\t}\n\n\t\t\t\t.fixed .", " {\n\t\t\t\t\tborder-right: 0px none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\ttr[data-header-row].fixed {\n\t\t\tposition: fixed !important;\n\t\t\tdisplay: flex;\n\t\t\toverflow: hidden;\n\t\t\tz-index: ", ";\n\n\t\t\tborder-right: 1px solid ", ";\n\t\t\tborder-bottom: 1px solid ", ";\n\n\t\t\t/* this is to compensate for the table border */\n\t\t\ttransform: translateX(-1px);\n\t\t}\n\n\t\t.sticky > th {\n\t\t\tz-index: ", ";\n\t\t\tposition: sticky !important;\n\t\t\ttop: 0;\n\t\t}\n\n\t\t/* Make the number column header sticky */\n\t\t.sticky > td {\n\t\t\tposition: sticky !important;\n\t\t\ttop: 0;\n\t\t}\n\n\t\t/* add border for position: sticky\n and work around background-clip: padding-box\n bug for FF causing box-shadow bug in Chrome */\n\t\t.sticky th,\n\t\t.sticky td {\n\t\t\tbox-shadow:\n\t\t\t\t0px 1px ", ",\n\t\t\t\t0px -0.5px ", ",\n\t\t\t\tinset -1px 0px ", ",\n\t\t\t\t0px -1px ", ";\n\t\t}\n\n\t\t/* this will remove jumpiness caused in Chrome for sticky headers */\n\t\t.fixed + tr {\n\t\t\tmin-height: 0px;\n\t\t}\n\n\t\t/*\n * We wrap CodeBlock in a grid to prevent it from overflowing the container of the renderer.\n * See ED-4159.\n */\n\t\t& .code-block {\n\t\t\tmax-width: 100%;\n\t\t\t/* -ms- properties are necessary until MS supports the latest version of the grid spec */\n\t\t\t/* stylelint-disable value-no-vendor-prefix, declaration-block-no-duplicate-properties */\n\t\t\tdisplay: block;\n\t\t\t/* stylelint-enable */\n\n\t\t\tposition: relative;\n\t\t\tborder-radius: ", ";\n\n\t\t\t/*\n * The overall renderer has word-wrap: break; which causes issues with\n * code block line numbers in Safari / iOS.\n */\n\t\t\tword-wrap: normal;\n\t\t}\n\n\t\t& .MediaGroup,\n\t\t& .code-block {\n\t\t\tmargin-top: ", ";\n\n\t\t\t&:first-child {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t}\n\n\t\t", "\n\n\t\t", "\n\n ", ";\n\t\t", ";\n\t\t& [data-layout-section] {\n\t\t\tmargin-top: ", ";\n\t\t\t& > div + div {\n\t\t\t\tmargin-left: ", ";\n\t\t\t}\n\n\t\t\t@media screen and (max-width: ", "px) {\n\t\t\t\t& > div + div {\n\t\t\t\t\tmargin-left: 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .MediaGroup,\n\t\t\t& .code-block {\n\t\t\t\tmargin-top: ", ";\n\n\t\t\t\t&:first-child {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& li {\n\t\t\t> .code-block {\n\t\t\t\tmargin: ", " 0 0 0;\n\t\t\t}\n\t\t\t> .code-block:first-child {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\n\t\t\t> div:last-of-type.code-block {\n\t\t\t\tmargin-bottom: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&:not([data-node-type='decisionList']) > li,\n // This prevents https://product-fabric.atlassian.net/browse/ED-20924\n &:not(.", ") > li {\n\t\t\t", "\n\t\t}\n\t"])), (0, _editorSharedStyles.editorFontSize)(themeProps), "var(--ds-text, ".concat(colors.N800, ")"), _consts.RendererCssClassName.DOCUMENT, fullPageStyles(wrapperProps, themeProps), fullWidthStyles(wrapperProps), _consts.RendererCssClassName.DOCUMENT, _mediaInline.mediaInlineImageStyles, headingAnchorStyle('h1'), headingAnchorStyle('h2'), headingAnchorStyle('h3'), headingAnchorStyle('h4'), headingAnchorStyle('h5'), headingAnchorStyle('h6'), "var(--ds-link, ".concat(colors.B400, ")"), "var(--ds-link, ".concat(colors.B300, ")"), "var(--ds-link-pressed, ".concat(colors.B500, ")"), "var(--ds-text-subtlest, ".concat(colors.N200, ")"), telepointerStyles(colorMode), _styles.whitespaceSharedStyles, _styles.blockquoteSharedStyles, (0, _styles.headingsSharedStyles)(typography), (0, _styles.ruleSharedStyles)(), (0, _styles.paragraphSharedStyles)(typography), _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.blockMarksSharedStyles, (0, _styles.codeMarkSharedStyles)(), _styles.shadowSharedStyle, _styles.dateSharedStyle, _styles.textColorStyles, (0, _styles.backgroundColorStyles)(), _styles.tasksAndDecisionsStyles, _styles.smartCardSharedStyles, getAnnotationStyles(wrapperProps), (0, _constants.fontFamily)(), (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()), "var(--ds-background-neutral, ".concat(colors.N30A, ")"), "var(--ds-border-radius-100, 3px)", "var(--ds-text, ".concat(colors.N800, ")"), "var(--ds-space-025, 2px)", "var(--ds-space-050, 4px)", "var(--ds-background-danger, ".concat(colors.R50, ")"), "var(--ds-text-danger, ".concat(colors.R500, ")"), "var(--ds-space-300, 24px)", _styles.richMediaClassName, _styles.richMediaClassName, _styles.richMediaClassName, _styles.richMediaClassName, _styles.richMediaClassName, _styles.richMediaClassName, _styles.richMediaClassName, "var(--ds-space-100, 8px)", alignedHeadingAnchorStyle(wrapperProps), _styles.mediaSingleSharedStyle, _consts.RendererCssClassName.DOCUMENT, breakoutWidthStyle(), _consts.RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER, _consts.RendererCssClassName.EXTENSION, _consts.RendererCssClassName.DOCUMENT, _consts.RendererCssClassName.EXTENSION, _editorSharedStyles.blockNodesVerticalMargin, _consts.RendererCssClassName.EXTENSION_CENTER_ALIGN, _styles.TableSharedCssClassName.TABLE_NODE_WRAPPER, _ui.shadowObserverClassNames.SHADOW_CONTAINER, _styles.TableSharedCssClassName.TABLE_NODE_WRAPPER, (0, _styles.tableSharedStyle)(), _consts.RendererCssClassName.DOCUMENT, _styles.TableSharedCssClassName.TABLE_CONTAINER, _ui.shadowClassNames.RIGHT_SHADOW, _ui.shadowClassNames.LEFT_SHADOW, _styles.tableMarginTop - 1, _styles.tableMarginTop, _editorSharedStyles.akEditorStickyHeaderZIndex, getShadowOverrides(), (0, _table.isStickyScrollbarEnabled)(appearance) ? stickyScrollbarStyles : '', _ui.shadowObserverClassNames.SENTINEL_LEFT, _ui.shadowObserverClassNames.SENTINEL_RIGHT, _styles.tableMarginTop, tableSortableColumnStyle(wrapperProps), _consts.RendererCssClassName.NUMBER_COLUMN, "var(--ds-background-neutral, ".concat(_editorSharedStyles.akEditorTableToolbar, ")"), "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"), _editorSharedStyles.akEditorTableNumberColumnWidth, "var(--ds-text-subtlest, ".concat(colors.N200, ")"), (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()), _consts.RendererCssClassName.NUMBER_COLUMN, _editorSharedStyles.akEditorStickyHeaderZIndex, "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"), "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"), _editorSharedStyles.akEditorStickyHeaderZIndex, "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"), "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"), "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableToolbar, ")"), "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableToolbar, ")"), "var(--ds-border-radius-100, 3px)", _editorSharedStyles.blockNodesVerticalMargin, useGridRenderForCodeBlock(useBlockRenderForCodeBlock), (0, _lightWeightCodeBlock.getLightWeightCodeBlockStylesForRootRendererStyleSheet)(), isAdvancedLayoutsOn ? _styles.columnLayoutResponsiveSharedStyle : _styles.columnLayoutSharedStyle, isAdvancedLayoutsOn && _styles.columnLayoutResponsiveRendererStyles, "var(--ds-space-250, 20px)", isAdvancedLayoutsOn ? 0 : "var(--ds-space-400, 32px)", _editorSharedStyles.gridMediumMaxWidth, _editorSharedStyles.blockNodesVerticalMargin, _editorSharedStyles.blockNodesVerticalMargin, _editorSharedStyles.blockNodesVerticalMargin, _styles.SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, _browser.browser.safari ? _styles.codeBlockInListSafariFix : '');
164
+ return (0, _react.css)(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n\t\tfont-size: ", "px;\n\t\tline-height: 1.5rem;\n\t\tcolor: ", ";\n\n\t\t.", "::after {\n\t\t\t// we add a clearfix after ak-renderer-document in order to\n\t\t\t// contain internal floats (such as media images that are \"wrap-left\")\n\t\t\t// to just the renderer (and not spill outside of it)\n\t\t\tcontent: '';\n\t\t\tvisibility: hidden;\n\t\t\tdisplay: block;\n\t\t\theight: 0;\n\t\t\tclear: both;\n\t\t}\n\n\t\t", "\n\t\t", "\n\n .", " {\n\t\t\t", "\n\t\t}\n\n\t\t& h1 {\n\t\t\t", "\n\t\t}\n\n\t\t& h2 {\n\t\t\t", "\n\t\t}\n\n\t\t& h3 {\n\t\t\t", "\n\t\t}\n\n\t\t& h4 {\n\t\t\t", "\n\t\t}\n\n\t\t& h5 {\n\t\t\t", "\n\t\t}\n\n\t\t& h6 {\n\t\t\t", "\n\t\t}\n\n\t\t& span.akActionMark {\n\t\t\tcolor: ", ";\n\t\t\ttext-decoration: none;\n\n\t\t\t&:hover {\n\t\t\t\tcolor: ", ";\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\n\t\t\t&:active {\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\t\t}\n\n\t\t& span.akActionMark {\n\t\t\tcursor: pointer;\n\t\t}\n\n\t\t& span[data-placeholder] {\n\t\t\tcolor: ", ";\n\t\t}\n\n\t\t", "\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", "\n\t\t", "\n\n\t\t& .UnknownBlock {\n\t\t\tfont-family: ", ";\n\t\t\tfont-size: ", ";\n\t\t\tfont-weight: ", ";\n\t\t\twhite-space: pre-wrap;\n\t\t\tword-wrap: break-word;\n\t\t}\n\n\t\t& span.date-node {\n\t\t\tbackground: ", ";\n\t\t\tborder-radius: ", ";\n\t\t\tcolor: ", ";\n\t\t\tpadding: ", " ", ";\n\t\t\tmargin: 0 1px;\n\t\t\ttransition: background 0.3s;\n\t\t}\n\n\t\t& span.date-node-highlighted {\n\t\t\tbackground: ", ";\n\t\t\tcolor: ", ";\n\t\t}\n\n\t\t& .renderer-image {\n\t\t\tmax-width: 100%;\n\t\t\tdisplay: block;\n\t\t\tmargin: ", " 0;\n\t\t}\n\n\t\t.", ".rich-media-wrapped + .", ":not(.rich-media-wrapped) {\n\t\t\tclear: both;\n\t\t}\n\n\t\t& .code-block,\n\t\t& blockquote,\n\t\t& hr,\n\t\t& > div > div:not(.rich-media-wrapped),\n\t\t.", ".rich-media-wrapped + .rich-media-wrapped + *:not(.rich-media-wrapped),\n\t\t.", ".rich-media-wrapped + div:not(.rich-media-wrapped),\n\t\t.", ".image-align-start,\n\t\t\t.", ".image-center,\n\t\t\t.", ".image-align-end {\n\t\t\tclear: both;\n\t\t}\n\n\t\t& .rich-media-wrapped {\n\t\t\t& + h1,\n\t\t\t& + h2,\n\t\t\t& + h3,\n\t\t\t& + h4,\n\t\t\t& + h5,\n\t\t\t& + h6 {\n\t\t\t\tmargin-top: ", ";\n\t\t\t}\n\t\t}\n\n\t\t", "\n\t\t/* plugin styles */\n ", " &\n div[class^='image-wrap-'] + div[class^='image-wrap-'] {\n\t\t\tmargin-left: 0;\n\t\t\tmargin-right: 0;\n\t\t}\n\n\t\t/* Breakout for tables and extensions */\n\t\t.", " > {\n\t\t\t", "\n\n\t\t\t* .", " {\n\t\t\t\toverflow-x: auto;\n\t\t\t}\n\n\t\t\t& .", ":first-child {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\t.", " {\n\t\t\t\tmargin-top: ", ";\n\t\t\t}\n\n\t\t\t.", " {\n\t\t\t\tmargin-left: 50%;\n\t\t\t\ttransform: translateX(-50%);\n\t\t\t}\n\n\t\t\t.", " {\n\t\t\t\toverflow-x: auto;\n\t\t\t}\n\n\t\t\t.", " .", " {\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t}\n\n\t\t", "\n\n\t\t.", " .", " {\n\t\t\tz-index: 0;\n\t\t\ttransition: all 0.1s linear;\n\t\t\tdisplay: flex; /* needed to avoid position: fixed jumpiness in Chrome */\n\n\t\t\t/** Shadow overrides */\n\t\t\t&.", "::after, &.", "::before {\n\t\t\t\ttop: ", "px;\n\t\t\t\theight: calc(100% - ", "px);\n\t\t\t\tz-index: ", ";\n\t\t\t}\n\n\t\t\t", "\n\n\t\t\t", "\n\n\t\t\t&\n .", ",\n &\n .", " {\n\t\t\t\theight: calc(100% - ", "px);\n\t\t\t}\n\n\t\t\t/**\n * A hack for making all the <th /> heights equal in case some have shorter\n * content than others.\n *\n * This is done to make sort buttons fill entire <th />.\n */\n\t\t\ttable {\n\t\t\t\theight: 1px; /* will be ignored */\n\t\t\t\t", ";\n\t\t\t\tmargin-left: 0;\n\t\t\t\tmargin-right: 0;\n\t\t\t}\n\n\t\t\ttable tr:first-of-type {\n\t\t\t\theight: 100%;\n\n\t\t\t\ttd,\n\t\t\t\tth {\n\t\t\t\t\tposition: relative;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttable[data-number-column='true'] {\n\t\t\t\t.", " {\n\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\tborder-right: 1px solid\n\t\t\t\t\t\t", ";\n\t\t\t\t\twidth: ", "px;\n\t\t\t\t\ttext-align: center;\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t\tfont-size: ", ";\n\t\t\t\t}\n\n\t\t\t\t.fixed .", " {\n\t\t\t\t\tborder-right: 0px none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\ttr[data-header-row].fixed {\n\t\t\tposition: fixed !important;\n\t\t\tdisplay: flex;\n\t\t\toverflow: hidden;\n\t\t\tz-index: ", ";\n\n\t\t\tborder-right: 1px solid ", ";\n\t\t\tborder-bottom: 1px solid ", ";\n\n\t\t\t/* this is to compensate for the table border */\n\t\t\ttransform: translateX(-1px);\n\t\t}\n\n\t\t.sticky > th {\n\t\t\tz-index: ", ";\n\t\t\tposition: sticky !important;\n\t\t\ttop: 0;\n\t\t}\n\n\t\t/* Make the number column header sticky */\n\t\t.sticky > td {\n\t\t\tposition: sticky !important;\n\t\t\ttop: 0;\n\t\t}\n\n\t\t/* add border for position: sticky\n and work around background-clip: padding-box\n bug for FF causing box-shadow bug in Chrome */\n\t\t.sticky th,\n\t\t.sticky td {\n\t\t\tbox-shadow:\n\t\t\t\t0px 1px ", ",\n\t\t\t\t0px -0.5px ", ",\n\t\t\t\tinset -1px 0px ", ",\n\t\t\t\t0px -1px ", ";\n\t\t}\n\n\t\t/* this will remove jumpiness caused in Chrome for sticky headers */\n\t\t.fixed + tr {\n\t\t\tmin-height: 0px;\n\t\t}\n\n\t\t/*\n * We wrap CodeBlock in a grid to prevent it from overflowing the container of the renderer.\n * See ED-4159.\n */\n\t\t& .code-block {\n\t\t\tmax-width: 100%;\n\t\t\t/* -ms- properties are necessary until MS supports the latest version of the grid spec */\n\t\t\t/* stylelint-disable value-no-vendor-prefix, declaration-block-no-duplicate-properties */\n\t\t\tdisplay: block;\n\t\t\t/* stylelint-enable */\n\n\t\t\tposition: relative;\n\t\t\tborder-radius: ", ";\n\n\t\t\t/*\n * The overall renderer has word-wrap: break; which causes issues with\n * code block line numbers in Safari / iOS.\n */\n\t\t\tword-wrap: normal;\n\t\t}\n\n\t\t& .MediaGroup,\n\t\t& .code-block {\n\t\t\tmargin-top: ", ";\n\n\t\t\t&:first-child {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t}\n\n\t\t", "\n\n\t\t", "\n\n ", ";\n\t\t", ";\n\t\t& [data-layout-section] {\n\t\t\tmargin-top: ", ";\n\t\t\t& > div + div {\n\t\t\t\tmargin-left: ", ";\n\t\t\t}\n\n\t\t\t@media screen and (max-width: ", "px) {\n\t\t\t\t& > div + div {\n\t\t\t\t\tmargin-left: 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .MediaGroup,\n\t\t\t& .code-block {\n\t\t\t\tmargin-top: ", ";\n\n\t\t\t\t&:first-child {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& li {\n\t\t\t> .code-block {\n\t\t\t\tmargin: ", " 0 0 0;\n\t\t\t}\n\t\t\t> .code-block:first-child {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\n\t\t\t> div:last-of-type.code-block {\n\t\t\t\tmargin-bottom: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&:not([data-node-type='decisionList']) > li,\n // This prevents https://product-fabric.atlassian.net/browse/ED-20924\n &:not(.", ") > li {\n\t\t\t", "\n\t\t}\n\t"])), (0, _editorSharedStyles.editorFontSize)(themeProps), "var(--ds-text, ".concat(colors.N800, ")"), _consts.RendererCssClassName.DOCUMENT, fullPageStyles(wrapperProps, themeProps), fullWidthStyles(wrapperProps), _consts.RendererCssClassName.DOCUMENT, _mediaInline.mediaInlineImageStyles, headingAnchorStyle('h1'), headingAnchorStyle('h2'), headingAnchorStyle('h3'), headingAnchorStyle('h4'), headingAnchorStyle('h5'), headingAnchorStyle('h6'), "var(--ds-link, ".concat(colors.B400, ")"), "var(--ds-link, ".concat(colors.B300, ")"), "var(--ds-link-pressed, ".concat(colors.B500, ")"), "var(--ds-text-subtlest, ".concat(colors.N200, ")"), telepointerStyles(colorMode), _styles.whitespaceSharedStyles, _styles.blockquoteSharedStyles, (0, _styles.headingsSharedStyles)(typography), (0, _styles.ruleSharedStyles)(), (0, _styles.paragraphSharedStyles)(typography), _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.blockMarksSharedStyles, (0, _styles.codeMarkSharedStyles)(), _styles.shadowSharedStyle, _styles.dateSharedStyle, _styles.textColorStyles, (0, _styles.backgroundColorStyles)(), _styles.tasksAndDecisionsStyles, _styles.smartCardSharedStyles, getAnnotationStyles(wrapperProps), (0, _constants.fontFamily)(), (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()), "var(--ds-font-weight-regular, 400)", "var(--ds-background-neutral, ".concat(colors.N30A, ")"), "var(--ds-border-radius-100, 3px)", "var(--ds-text, ".concat(colors.N800, ")"), "var(--ds-space-025, 2px)", "var(--ds-space-050, 4px)", "var(--ds-background-danger, ".concat(colors.R50, ")"), "var(--ds-text-danger, ".concat(colors.R500, ")"), "var(--ds-space-300, 24px)", _styles.richMediaClassName, _styles.richMediaClassName, _styles.richMediaClassName, _styles.richMediaClassName, _styles.richMediaClassName, _styles.richMediaClassName, _styles.richMediaClassName, "var(--ds-space-100, 8px)", alignedHeadingAnchorStyle(wrapperProps), _styles.mediaSingleSharedStyle, _consts.RendererCssClassName.DOCUMENT, breakoutWidthStyle(), _consts.RendererCssClassName.EXTENSION_OVERFLOW_CONTAINER, _consts.RendererCssClassName.EXTENSION, _consts.RendererCssClassName.DOCUMENT, _consts.RendererCssClassName.EXTENSION, _editorSharedStyles.blockNodesVerticalMargin, _consts.RendererCssClassName.EXTENSION_CENTER_ALIGN, _styles.TableSharedCssClassName.TABLE_NODE_WRAPPER, _ui.shadowObserverClassNames.SHADOW_CONTAINER, _styles.TableSharedCssClassName.TABLE_NODE_WRAPPER, (0, _styles.tableSharedStyle)(), _consts.RendererCssClassName.DOCUMENT, _styles.TableSharedCssClassName.TABLE_CONTAINER, _ui.shadowClassNames.RIGHT_SHADOW, _ui.shadowClassNames.LEFT_SHADOW, _styles.tableMarginTop - 1, _styles.tableMarginTop, _editorSharedStyles.akEditorStickyHeaderZIndex, getShadowOverrides(), (0, _table.isStickyScrollbarEnabled)(appearance) ? stickyScrollbarStyles : '', _ui.shadowObserverClassNames.SENTINEL_LEFT, _ui.shadowObserverClassNames.SENTINEL_RIGHT, _styles.tableMarginTop, tableSortableColumnStyle(wrapperProps), _consts.RendererCssClassName.NUMBER_COLUMN, "var(--ds-background-neutral, ".concat(_editorSharedStyles.akEditorTableToolbar, ")"), "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"), _editorSharedStyles.akEditorTableNumberColumnWidth, "var(--ds-text-subtlest, ".concat(colors.N200, ")"), (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()), _consts.RendererCssClassName.NUMBER_COLUMN, _editorSharedStyles.akEditorStickyHeaderZIndex, "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"), "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"), _editorSharedStyles.akEditorStickyHeaderZIndex, "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"), "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"), "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableToolbar, ")"), "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableToolbar, ")"), "var(--ds-border-radius-100, 3px)", _editorSharedStyles.blockNodesVerticalMargin, useGridRenderForCodeBlock(useBlockRenderForCodeBlock), (0, _lightWeightCodeBlock.getLightWeightCodeBlockStylesForRootRendererStyleSheet)(), isAdvancedLayoutsOn ? _styles.columnLayoutResponsiveSharedStyle : _styles.columnLayoutSharedStyle, isAdvancedLayoutsOn && _styles.columnLayoutResponsiveRendererStyles, "var(--ds-space-250, 20px)", isAdvancedLayoutsOn ? 0 : "var(--ds-space-400, 32px)", _editorSharedStyles.gridMediumMaxWidth, _editorSharedStyles.blockNodesVerticalMargin, _editorSharedStyles.blockNodesVerticalMargin, _editorSharedStyles.blockNodesVerticalMargin, _styles.SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, _browser.browser.safari ? _styles.codeBlockInListSafariFix : '');
165
165
  };
166
166
  };
167
167
  var useGridRenderForCodeBlock = function useGridRenderForCodeBlock(codeBlockRenderAsBlock) {
@@ -7,12 +7,12 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.TruncatedWrapper = void 0;
8
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
11
10
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
12
11
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
12
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
13
13
  var _react = require("@emotion/react");
14
14
  var _react2 = require("react");
15
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
15
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
16
16
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
17
17
  * @jsxRuntime classic
18
18
  * @jsx jsx
@@ -48,15 +48,14 @@ var FadeOut = function FadeOut(props) {
48
48
  }, children);
49
49
  };
50
50
  var TruncatedWrapper = exports.TruncatedWrapper = /*#__PURE__*/function (_Component) {
51
- (0, _inherits2.default)(TruncatedWrapper, _Component);
52
- var _super = _createSuper(TruncatedWrapper);
53
51
  function TruncatedWrapper(props) {
54
52
  (0, _classCallCheck2.default)(this, TruncatedWrapper);
55
- return _super.call(this, props);
53
+ return _callSuper(this, TruncatedWrapper, [props]);
56
54
  }
57
55
 
58
56
  // TODO: Quality ticket as elevation.surface will be issue when sits top of modal. https://product-fabric.atlassian.net/browse/DSP-4123
59
- (0, _createClass2.default)(TruncatedWrapper, [{
57
+ (0, _inherits2.default)(TruncatedWrapper, _Component);
58
+ return (0, _createClass2.default)(TruncatedWrapper, [{
60
59
  key: "render",
61
60
  value: function render() {
62
61
  var _this$props = this.props,
@@ -74,5 +73,4 @@ var TruncatedWrapper = exports.TruncatedWrapper = /*#__PURE__*/function (_Compon
74
73
  }, children);
75
74
  }
76
75
  }]);
77
- return TruncatedWrapper;
78
76
  }(_react2.Component);
@@ -8,11 +8,11 @@ exports.withSmartCardStorage = exports.Provider = exports.Context = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
10
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
12
11
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
13
12
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
13
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
14
14
  var _react = _interopRequireDefault(require("react"));
15
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
15
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
16
16
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
17
17
  var Context = exports.Context = /*#__PURE__*/_react.default.createContext(new Map());
18
18
  var Provider = exports.Provider = function Provider(_ref) {
@@ -23,13 +23,12 @@ var Provider = exports.Provider = function Provider(_ref) {
23
23
  };
24
24
  var withSmartCardStorage = exports.withSmartCardStorage = function withSmartCardStorage(WrappedComponent) {
25
25
  return /*#__PURE__*/function (_React$Component) {
26
- (0, _inherits2.default)(_class, _React$Component);
27
- var _super = _createSuper(_class);
28
26
  function _class() {
29
27
  (0, _classCallCheck2.default)(this, _class);
30
- return _super.apply(this, arguments);
28
+ return _callSuper(this, _class, arguments);
31
29
  }
32
- (0, _createClass2.default)(_class, [{
30
+ (0, _inherits2.default)(_class, _React$Component);
31
+ return (0, _createClass2.default)(_class, [{
33
32
  key: "render",
34
33
  value: function render() {
35
34
  var _this = this;
@@ -40,6 +39,5 @@ var withSmartCardStorage = exports.withSmartCardStorage = function withSmartCard
40
39
  });
41
40
  }
42
41
  }]);
43
- return _class;
44
42
  }(_react.default.Component);
45
43
  };
@@ -8,33 +8,30 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.ProvidersContext = exports.InlineCommentsStateContext = exports.AnnotationsDraftContextWrapper = exports.AnnotationsDraftContext = void 0;
9
9
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
10
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
- var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
12
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
13
11
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
14
12
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
13
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
15
14
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
16
15
  var _react = _interopRequireWildcard(require("react"));
17
16
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
18
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
19
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
18
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
20
19
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
21
20
  var AnnotationsDraftContext = exports.AnnotationsDraftContext = /*#__PURE__*/(0, _react.createContext)(null);
22
21
  var ProvidersContext = exports.ProvidersContext = /*#__PURE__*/(0, _react.createContext)(null);
23
22
  var InlineCommentsStateContext = exports.InlineCommentsStateContext = /*#__PURE__*/(0, _react.createContext)({});
24
23
  var AnnotationsDraftContextWrapper = exports.AnnotationsDraftContextWrapper = /*#__PURE__*/function (_React$Component) {
25
- (0, _inherits2.default)(AnnotationsDraftContextWrapper, _React$Component);
26
- var _super = _createSuper(AnnotationsDraftContextWrapper);
27
24
  function AnnotationsDraftContextWrapper() {
28
25
  var _this;
29
26
  (0, _classCallCheck2.default)(this, AnnotationsDraftContextWrapper);
30
27
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
31
28
  args[_key] = arguments[_key];
32
29
  }
33
- _this = _super.call.apply(_super, [this].concat(args));
34
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "state", {
30
+ _this = _callSuper(this, AnnotationsDraftContextWrapper, [].concat(args));
31
+ (0, _defineProperty2.default)(_this, "state", {
35
32
  position: null
36
33
  });
37
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "applyAnnotationDraftAt", function (nextPosition) {
34
+ (0, _defineProperty2.default)(_this, "applyAnnotationDraftAt", function (nextPosition) {
38
35
  var setDraftRange = _this.props.setDraftRange;
39
36
 
40
37
  // Set the draft range to preserve it downstream
@@ -46,7 +43,7 @@ var AnnotationsDraftContextWrapper = exports.AnnotationsDraftContextWrapper = /*
46
43
  position: nextPosition
47
44
  });
48
45
  });
49
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "clearAnnotationDraft", function () {
46
+ (0, _defineProperty2.default)(_this, "clearAnnotationDraft", function () {
50
47
  var clearDraftRange = _this.props.clearDraftRange;
51
48
 
52
49
  // Clear the draft range
@@ -59,7 +56,8 @@ var AnnotationsDraftContextWrapper = exports.AnnotationsDraftContextWrapper = /*
59
56
  });
60
57
  return _this;
61
58
  }
62
- (0, _createClass2.default)(AnnotationsDraftContextWrapper, [{
59
+ (0, _inherits2.default)(AnnotationsDraftContextWrapper, _React$Component);
60
+ return (0, _createClass2.default)(AnnotationsDraftContextWrapper, [{
63
61
  key: "render",
64
62
  value: function render() {
65
63
  var children = this.props.children;
@@ -74,5 +72,4 @@ var AnnotationsDraftContextWrapper = exports.AnnotationsDraftContextWrapper = /*
74
72
  }));
75
73
  }
76
74
  }]);
77
- return AnnotationsDraftContextWrapper;
78
75
  }(_react.default.Component);
@@ -8,10 +8,9 @@ exports.updateWindowSelectionAroundDraft = exports.dataAttributes = void 0;
8
8
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
10
  var dataAttributes = exports.dataAttributes = function dataAttributes(_ref) {
11
- var _ref2;
12
11
  var from = _ref.from,
13
12
  to = _ref.to;
14
- return _ref2 = {}, (0, _defineProperty2.default)(_ref2, 'data-annotation-draft-mark', true), (0, _defineProperty2.default)(_ref2, 'data-draft-start-at', from), (0, _defineProperty2.default)(_ref2, 'data-draft-end-at', to), _ref2;
13
+ return (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, 'data-annotation-draft-mark', true), 'data-draft-start-at', from), 'data-draft-end-at', to);
15
14
  };
16
15
  var buildDataAttributesQuery = function buildDataAttributesQuery(pos) {
17
16
  var a = dataAttributes(pos);
@@ -25,7 +25,7 @@ const titleStyles = css({
25
25
  fontSize: relativeFontSizeToBase16(fontSize()),
26
26
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
27
27
  lineHeight: akEditorLineHeight,
28
- fontWeight: 'normal',
28
+ fontWeight: "var(--ds-font-weight-regular, 400)",
29
29
  display: 'flex',
30
30
  flex: 1,
31
31
  margin: 0,
@@ -45,7 +45,7 @@ import { countNodes } from './count-nodes';
45
45
  export const NORMAL_SEVERITY_THRESHOLD = 2000;
46
46
  export const DEGRADED_SEVERITY_THRESHOLD = 3000;
47
47
  const packageName = "@atlaskit/renderer";
48
- const packageVersion = "112.7.0";
48
+ const packageVersion = "112.7.2";
49
49
  const setAsQueryContainerStyles = css({
50
50
  containerName: 'ak-renderer-wrapper',
51
51
  containerType: 'inline-size',
@@ -46,7 +46,7 @@ const telepointerStyles = colorMode => {
46
46
  top: 0;
47
47
  left: 0;
48
48
  font-size: 10px;
49
- font-weight: 700;
49
+ font-weight: ${"var(--ds-font-weight-bold, 700)"};
50
50
  width: 12.5px;
51
51
  height: 13px;
52
52
  padding-top: 1px;
@@ -573,7 +573,7 @@ export const rendererStyles = wrapperProps => theme => {
573
573
  & .UnknownBlock {
574
574
  font-family: ${fontFamily()};
575
575
  font-size: ${relativeFontSizeToBase16(fontSize())};
576
- font-weight: 400;
576
+ font-weight: ${"var(--ds-font-weight-regular, 400)"};
577
577
  white-space: pre-wrap;
578
578
  word-wrap: break-word;
579
579
  }
@@ -29,7 +29,7 @@ var RendererActions = /*#__PURE__*/function () {
29
29
  }
30
30
 
31
31
  //#region private
32
- _createClass(RendererActions, [{
32
+ return _createClass(RendererActions, [{
33
33
  key: "_privateRegisterRenderer",
34
34
  value: function _privateRegisterRenderer(ref, doc, schema, onAnalyticsEvent) {
35
35
  if (!this.initFromContext) {
@@ -377,6 +377,5 @@ var RendererActions = /*#__PURE__*/function () {
377
377
  }, annotationId);
378
378
  }
379
379
  }]);
380
- return RendererActions;
381
380
  }();
382
381
  export { RendererActions as default };
@@ -193,7 +193,7 @@ var ReactSerializer = /*#__PURE__*/function () {
193
193
  this.allowTableAlignment = init.allowTableAlignment;
194
194
  this.allowTableResizing = init.allowTableResizing;
195
195
  }
196
- _createClass(ReactSerializer, [{
196
+ return _createClass(ReactSerializer, [{
197
197
  key: "resetState",
198
198
  value: function resetState() {
199
199
  this.headingIds = [];
@@ -681,6 +681,5 @@ var ReactSerializer = /*#__PURE__*/function () {
681
681
  return new ReactSerializer(init);
682
682
  }
683
683
  }]);
684
- return ReactSerializer;
685
684
  }();
686
685
  export { ReactSerializer as default };
@@ -1,19 +1,18 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/createClass";
3
- import _inherits from "@babel/runtime/helpers/inherits";
4
3
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
4
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
5
+ import _inherits from "@babel/runtime/helpers/inherits";
6
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
7
7
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
8
  import React, { Component } from 'react';
9
9
  var ConfluenceInlineComment = /*#__PURE__*/function (_Component) {
10
- _inherits(ConfluenceInlineComment, _Component);
11
- var _super = _createSuper(ConfluenceInlineComment);
12
10
  function ConfluenceInlineComment() {
13
11
  _classCallCheck(this, ConfluenceInlineComment);
14
- return _super.apply(this, arguments);
12
+ return _callSuper(this, ConfluenceInlineComment, arguments);
15
13
  }
16
- _createClass(ConfluenceInlineComment, [{
14
+ _inherits(ConfluenceInlineComment, _Component);
15
+ return _createClass(ConfluenceInlineComment, [{
17
16
  key: "render",
18
17
  value: function render() {
19
18
  var _this$props = this.props,
@@ -25,6 +24,5 @@ var ConfluenceInlineComment = /*#__PURE__*/function (_Component) {
25
24
  }, children);
26
25
  }
27
26
  }]);
28
- return ConfluenceInlineComment;
29
27
  }(Component);
30
28
  export { ConfluenceInlineComment as default };
@@ -16,7 +16,7 @@ export var TableStickyScrollbar = /*#__PURE__*/function () {
16
16
  this.wrapper = wrapper;
17
17
  this.init();
18
18
  }
19
- _createClass(TableStickyScrollbar, [{
19
+ return _createClass(TableStickyScrollbar, [{
20
20
  key: "dispose",
21
21
  value: function dispose() {
22
22
  if (this.stickyScrollbarContainerElement) {
@@ -128,5 +128,4 @@ export var TableStickyScrollbar = /*#__PURE__*/function () {
128
128
  }
129
129
  }
130
130
  }]);
131
- return TableStickyScrollbar;
132
131
  }();
@@ -1,20 +1,19 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/createClass";
3
- import _inherits from "@babel/runtime/helpers/inherits";
4
3
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
4
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
5
+ import _inherits from "@babel/runtime/helpers/inherits";
6
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
7
7
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
8
  import React, { PureComponent, Children } from 'react';
9
9
  import { DecisionList as AkDecisionList } from '@atlaskit/task-decision';
10
10
  var DecisionList = /*#__PURE__*/function (_PureComponent) {
11
- _inherits(DecisionList, _PureComponent);
12
- var _super = _createSuper(DecisionList);
13
11
  function DecisionList() {
14
12
  _classCallCheck(this, DecisionList);
15
- return _super.apply(this, arguments);
13
+ return _callSuper(this, DecisionList, arguments);
16
14
  }
17
- _createClass(DecisionList, [{
15
+ _inherits(DecisionList, _PureComponent);
16
+ return _createClass(DecisionList, [{
18
17
  key: "render",
19
18
  value: function render() {
20
19
  var children = this.props.children;
@@ -24,6 +23,5 @@ var DecisionList = /*#__PURE__*/function (_PureComponent) {
24
23
  return /*#__PURE__*/React.createElement(AkDecisionList, null, children);
25
24
  }
26
25
  }]);
27
- return DecisionList;
28
26
  }(PureComponent);
29
27
  export { DecisionList as default };
@@ -1,11 +1,10 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/createClass";
3
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
4
- import _inherits from "@babel/runtime/helpers/inherits";
5
3
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
4
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
5
+ import _inherits from "@babel/runtime/helpers/inherits";
7
6
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
9
8
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
9
  /**
11
10
  * @jsxRuntime classic
@@ -20,13 +19,11 @@ import { ProviderFactory, WithProviders } from '@atlaskit/editor-common/provider
20
19
  import { useInlineAnnotationProps } from '../../ui/annotations/element/useInlineAnnotationProps';
21
20
  // eslint-disable-next-line @repo/internal/react/no-class-components
22
21
  var EmojiNode = /*#__PURE__*/function (_PureComponent) {
23
- _inherits(EmojiNode, _PureComponent);
24
- var _super = _createSuper(EmojiNode);
25
22
  function EmojiNode(props) {
26
23
  var _this;
27
24
  _classCallCheck(this, EmojiNode);
28
- _this = _super.call(this, props);
29
- _defineProperty(_assertThisInitialized(_this), "renderWithProvider", function (providers) {
25
+ _this = _callSuper(this, EmojiNode, [props]);
26
+ _defineProperty(_this, "renderWithProvider", function (providers) {
30
27
  var _resourceConfig$optim;
31
28
  var _this$props = _this.props,
32
29
  allowTextFallback = _this$props.allowTextFallback,
@@ -67,7 +64,8 @@ var EmojiNode = /*#__PURE__*/function (_PureComponent) {
67
64
  _this.providerFactory = props.providers || new ProviderFactory();
68
65
  return _this;
69
66
  }
70
- _createClass(EmojiNode, [{
67
+ _inherits(EmojiNode, _PureComponent);
68
+ return _createClass(EmojiNode, [{
71
69
  key: "componentWillUnmount",
72
70
  value: function componentWillUnmount() {
73
71
  if (!this.props.providers) {
@@ -86,7 +84,6 @@ var EmojiNode = /*#__PURE__*/function (_PureComponent) {
86
84
  });
87
85
  }
88
86
  }]);
89
- return EmojiNode;
90
87
  }(PureComponent);
91
88
  _defineProperty(EmojiNode, "displayName", 'EmojiNode');
92
89
  _defineProperty(EmojiNode, "defaultProps", {
@@ -1,31 +1,28 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/createClass";
3
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
4
- import _inherits from "@babel/runtime/helpers/inherits";
5
3
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
4
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
5
+ import _inherits from "@babel/runtime/helpers/inherits";
7
6
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
7
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
9
8
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
9
  import React from 'react';
11
10
  import { InlineCard } from './';
12
11
  import { isSafeUrl } from '@atlaskit/adf-schema';
13
12
  import { LazyLoadedDatasourceRenderFailedAnalyticsWrapper } from '@atlaskit/link-datasource';
14
13
  export var CardErrorBoundary = /*#__PURE__*/function (_React$PureComponent) {
15
- _inherits(CardErrorBoundary, _React$PureComponent);
16
- var _super = _createSuper(CardErrorBoundary);
17
14
  function CardErrorBoundary() {
18
15
  var _this;
19
16
  _classCallCheck(this, CardErrorBoundary);
20
17
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
21
18
  args[_key] = arguments[_key];
22
19
  }
23
- _this = _super.call.apply(_super, [this].concat(args));
24
- _defineProperty(_assertThisInitialized(_this), "state", {
20
+ _this = _callSuper(this, CardErrorBoundary, [].concat(args));
21
+ _defineProperty(_this, "state", {
25
22
  isError: false,
26
23
  error: null
27
24
  });
28
- _defineProperty(_assertThisInitialized(_this), "onClickFallback", function (e) {
25
+ _defineProperty(_this, "onClickFallback", function (e) {
29
26
  var _this$props = _this.props,
30
27
  onClick = _this$props.onClick,
31
28
  url = _this$props.url;
@@ -36,7 +33,8 @@ export var CardErrorBoundary = /*#__PURE__*/function (_React$PureComponent) {
36
33
  });
37
34
  return _this;
38
35
  }
39
- _createClass(CardErrorBoundary, [{
36
+ _inherits(CardErrorBoundary, _React$PureComponent);
37
+ return _createClass(CardErrorBoundary, [{
40
38
  key: "render",
41
39
  value: function render() {
42
40
  if (this.state.isError) {
@@ -88,5 +86,4 @@ export var CardErrorBoundary = /*#__PURE__*/function (_React$PureComponent) {
88
86
  };
89
87
  }
90
88
  }]);
91
- return CardErrorBoundary;
92
89
  }(React.PureComponent);
@@ -1,16 +1,15 @@
1
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
3
  import _createClass from "@babel/runtime/helpers/createClass";
4
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
5
- import _inherits from "@babel/runtime/helpers/inherits";
6
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
7
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
+ import _inherits from "@babel/runtime/helpers/inherits";
8
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
8
  import _extends from "@babel/runtime/helpers/extends";
10
9
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
11
10
  var _excluded = ["children"];
12
11
  import _regeneratorRuntime from "@babel/runtime/regenerator";
13
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
12
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
14
13
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
15
14
  /**
16
15
  * @jsxRuntime classic
@@ -47,20 +46,18 @@ var copyAnchorButtonStyles = css({
47
46
  right: 0
48
47
  });
49
48
  var HeadingAnchor = /*#__PURE__*/function (_React$PureComponent) {
50
- _inherits(HeadingAnchor, _React$PureComponent);
51
- var _super = _createSuper(HeadingAnchor);
52
49
  function HeadingAnchor() {
53
50
  var _this;
54
51
  _classCallCheck(this, HeadingAnchor);
55
52
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
56
53
  args[_key] = arguments[_key];
57
54
  }
58
- _this = _super.call.apply(_super, [this].concat(args));
59
- _defineProperty(_assertThisInitialized(_this), "state", {
55
+ _this = _callSuper(this, HeadingAnchor, [].concat(args));
56
+ _defineProperty(_this, "state", {
60
57
  tooltipMessage: '',
61
58
  isClicked: false
62
59
  });
63
- _defineProperty(_assertThisInitialized(_this), "setTooltipState", function (message) {
60
+ _defineProperty(_this, "setTooltipState", function (message) {
64
61
  var isClicked = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
65
62
  _this.setState({
66
63
  // TODO: ED-14403 investigate why this does not translate
@@ -68,11 +65,11 @@ var HeadingAnchor = /*#__PURE__*/function (_React$PureComponent) {
68
65
  isClicked: isClicked
69
66
  });
70
67
  });
71
- _defineProperty(_assertThisInitialized(_this), "getCopyAriaLabel", function () {
68
+ _defineProperty(_this, "getCopyAriaLabel", function () {
72
69
  var copyAriaLabel = headingAnchorLinkMessages.copyAriaLabel;
73
70
  return _this.props.intl.formatMessage(copyAriaLabel);
74
71
  });
75
- _defineProperty(_assertThisInitialized(_this), "copyToClipboard", /*#__PURE__*/function () {
72
+ _defineProperty(_this, "copyToClipboard", /*#__PURE__*/function () {
76
73
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(event) {
77
74
  var copiedHeadingLinkToClipboard, failedToCopyHeadingLink;
78
75
  return _regeneratorRuntime.wrap(function _callee$(_context) {
@@ -101,10 +98,10 @@ var HeadingAnchor = /*#__PURE__*/function (_React$PureComponent) {
101
98
  return _ref.apply(this, arguments);
102
99
  };
103
100
  }());
104
- _defineProperty(_assertThisInitialized(_this), "resetMessage", function () {
101
+ _defineProperty(_this, "resetMessage", function () {
105
102
  _this.setTooltipState(headingAnchorLinkMessages.copyHeadingLinkToClipboard);
106
103
  });
107
- _defineProperty(_assertThisInitialized(_this), "renderAnchorButton", function () {
104
+ _defineProperty(_this, "renderAnchorButton", function () {
108
105
  return jsx("button", {
109
106
  css: copyAnchorButtonStyles,
110
107
  onMouseLeave: _this.resetMessage,
@@ -119,7 +116,8 @@ var HeadingAnchor = /*#__PURE__*/function (_React$PureComponent) {
119
116
  });
120
117
  return _this;
121
118
  }
122
- _createClass(HeadingAnchor, [{
119
+ _inherits(HeadingAnchor, _React$PureComponent);
120
+ return _createClass(HeadingAnchor, [{
123
121
  key: "componentDidMount",
124
122
  value: function componentDidMount() {
125
123
  this.resetMessage();
@@ -145,6 +143,5 @@ var HeadingAnchor = /*#__PURE__*/function (_React$PureComponent) {
145
143
  return this.renderAnchorButton();
146
144
  }
147
145
  }]);
148
- return HeadingAnchor;
149
146
  }(React.PureComponent);
150
147
  export default injectIntl(HeadingAnchor);