@atlaskit/editor-common 99.5.7 → 99.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/cjs/monitoring/error.js +1 -1
  3. package/dist/cjs/styles/shared/table.js +1 -1
  4. package/dist/cjs/ui/DropList/index.js +1 -1
  5. package/dist/cjs/ui-color/ColorPalette/Color/styles.js +1 -0
  6. package/dist/es2019/monitoring/error.js +1 -1
  7. package/dist/es2019/styles/shared/table.js +2 -2
  8. package/dist/es2019/ui/DropList/index.js +1 -1
  9. package/dist/es2019/ui-color/ColorPalette/Color/styles.js +1 -0
  10. package/dist/esm/monitoring/error.js +1 -1
  11. package/dist/esm/styles/shared/table.js +1 -1
  12. package/dist/esm/ui/DropList/index.js +1 -1
  13. package/dist/esm/ui-color/ColorPalette/Color/styles.js +1 -0
  14. package/dist/types/element-browser/components/CategoryList.d.ts +1 -1
  15. package/dist/types/element-browser/components/ElementList/ElementList.d.ts +1 -1
  16. package/dist/types/element-browser/components/StatelessElementBrowser.d.ts +2 -2
  17. package/dist/types/extensibility/Extension/Extension/index.d.ts +4 -8
  18. package/dist/types/link/LinkSearch/index.d.ts +4 -8
  19. package/dist/types/link/LinkSearch/withActivityProvider.d.ts +4 -8
  20. package/dist/types/table/SortingIcon.d.ts +6 -10
  21. package/dist/types/ui/Announcer/announcer.d.ts +1 -1
  22. package/dist/types/ui/DropList/index.d.ts +1 -1
  23. package/dist/types/ui/IntlErrorBoundary/index.d.ts +1 -1
  24. package/dist/types/ui/OverflowShadow/index.d.ts +4 -8
  25. package/dist/types/ui-menu/ColorPickerButton/index.d.ts +3 -3
  26. package/dist/types/ui-menu/DropdownContainer/index.d.ts +2 -1
  27. package/dist/types/ui-menu/ToolbarButton/index.d.ts +1 -1
  28. package/dist/types-ts4.5/element-browser/components/CategoryList.d.ts +1 -1
  29. package/dist/types-ts4.5/element-browser/components/ElementList/ElementList.d.ts +1 -1
  30. package/dist/types-ts4.5/element-browser/components/StatelessElementBrowser.d.ts +2 -2
  31. package/dist/types-ts4.5/extensibility/Extension/Extension/index.d.ts +4 -8
  32. package/dist/types-ts4.5/link/LinkSearch/index.d.ts +4 -8
  33. package/dist/types-ts4.5/link/LinkSearch/withActivityProvider.d.ts +4 -8
  34. package/dist/types-ts4.5/table/SortingIcon.d.ts +6 -10
  35. package/dist/types-ts4.5/ui/Announcer/announcer.d.ts +1 -1
  36. package/dist/types-ts4.5/ui/DropList/index.d.ts +1 -1
  37. package/dist/types-ts4.5/ui/IntlErrorBoundary/index.d.ts +1 -1
  38. package/dist/types-ts4.5/ui/OverflowShadow/index.d.ts +4 -8
  39. package/dist/types-ts4.5/ui-menu/ColorPickerButton/index.d.ts +3 -3
  40. package/dist/types-ts4.5/ui-menu/DropdownContainer/index.d.ts +2 -1
  41. package/dist/types-ts4.5/ui-menu/ToolbarButton/index.d.ts +1 -1
  42. package/package.json +48 -45
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 99.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#106923](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/106923)
8
+ [`5f44122535833`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5f44122535833) -
9
+ ED-26253 Update table css selectors so they don't get applied to table elements not owned by the
10
+ editor and nested inside an editor table
11
+
12
+ ## 99.6.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [#109060](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109060)
17
+ [`4660ec858a305`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4660ec858a305) -
18
+ Update `React` from v16 to v18
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies
23
+
3
24
  ## 99.5.7
4
25
 
5
26
  ### Patch Changes
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
17
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; }
18
18
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
19
19
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
20
- var packageVersion = "99.5.7";
20
+ var packageVersion = "99.6.1";
21
21
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
22
22
  // Remove URL as it has UGC
23
23
  // TODO: Sanitise the URL instead of just removing it
@@ -58,7 +58,7 @@ var firstNodeWithNotMarginTop = function firstNodeWithNotMarginTop() {
58
58
 
59
59
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Appears safe to auto-fix, but leaving it up to the team to remediate as the readability only gets worse with autofixing
60
60
  var tableSharedStyle = exports.tableSharedStyle = function tableSharedStyle() {
61
- return (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\t", "\n\t.", " {\n\t\tposition: relative;\n\t\tmargin: 0 auto ", ";\n\t\tbox-sizing: border-box;\n\n\t\t/**\n * Fix block top alignment inside table cells.\n */\n\t\t.decisionItemView-content-wrap:first-of-type > div {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.", "[data-number-column='true'] {\n\t\tpadding-left: ", "px;\n\t\tclear: both;\n\t}\n\n\t.", " {\n\t\twill-change: width, margin-left;\n\t}\n\n\t.", " table {\n\t\twill-change: width;\n\t}\n\n\t.", " > table {\n\t\tmargin: ", " 0 0 0;\n\t}\n\n\t.", " > table,\n\t.", " > table {\n\t\tmargin: ", " ", " 0 0;\n\t}\n\n\t/* avoid applying styles to nested tables (possible via extensions) */\n\t.", " > table,\n\t.", " > table,\n\t.", " > table {\n\t\tborder-collapse: collapse;\n\t\tborder: ", "px solid\n\t\t\t", ";\n\t\ttable-layout: fixed;\n\t\tfont-size: 1em;\n\t\twidth: 100%;\n\n\t\t&[data-autosize='true'] {\n\t\t\ttable-layout: auto;\n\t\t}\n\n\t\t& {\n\t\t\t* {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}\n\t\t\thr {\n\t\t\t\tbox-sizing: content-box;\n\t\t\t}\n\n\t\t\ttbody {\n\t\t\t\tborder-bottom: none;\n\t\t\t}\n\t\t\tth td {\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\t\t\tth,\n\t\t\ttd {\n\t\t\t\tmin-width: ", "px;\n\t\t\t\tfont-weight: ", ";\n\t\t\t\tvertical-align: top;\n\t\t\t\tborder: 1px solid ", ";\n\t\t\t\tborder-right-width: 0;\n\t\t\t\tborder-bottom-width: 0;\n\n\t\t\t\tpadding: ", ";\n\t\t\t\t/* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */\n\t\t\t\t", "\n\n\t\t\t\t", "\n\n\t\t\t\tth p:not(:first-of-type),\n\t\t\t\ttd p:not(:first-of-type) {\n\t\t\t\t\tmargin-top: ", ";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t", "\n\t\t\tth {\n\t\t\t\tbackground-color: ", ";\n\t\t\t\ttext-align: left;\n\n\t\t\t\t/* only apply this styling to codeblocks in default background headercells */\n\t\t\t\t/* TODO this needs to be overhauled as it relies on unsafe selectors */\n\t\t\t\t&:not([style]):not(.danger) {\n\t\t\t\t\t.", ":not(.danger) {\n\t\t\t\t\t\tbackground-color: ", ";\n\n\t\t\t\t\t\t:not(.", ") {\n\t\t\t\t\t\t\tbox-shadow: 0px 0px 0px 1px ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tbackground-image: ", ";\n\n\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* this is only relevant to the element taken care of by renderer */\n\t\t\t\t\t\t> [data-ds--code--code-block] {\n\t\t\t\t\t\t\tbackground-image: ", "!important;\n\n\t\t\t\t\t\t\tbackground-color: ", "!important;\n\n\t\t\t\t\t\t\t// selector lives inside @atlaskit/code\n\t\t\t\t\t\t\t--ds--code--line-number-bg-color: ", ";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n"])), (0, _tableCell.tableCellBackgroundStyleOverride)(), TableSharedCssClassName.TABLE_CONTAINER, "var(--ds-space-200, 16px)", TableSharedCssClassName.TABLE_CONTAINER, _editorSharedStyles.akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, "var(--ds-space-300, 24px)", TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableCellBorderWidth, "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"), "var(--ds-background-neutral-subtle, white)", tableCellMinWidth, "var(--ds-font-weight-regular, 400)", "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"), "var(--ds-space-100, 8px)", _browser.browser.gecko || _browser.browser.ie || _browser.browser.mac && _browser.browser.chrome ? 'background-clip: padding-box;' : '', firstNodeWithNotMarginTop(), "var(--ds-space-150, 12px)", (0, _platformFeatureFlags.fg)('platform_editor_nested_tables_renderer_styles') ? "// Ensures nested tables are compatible with parent table background color - uses specificity to ensure tables nested by extensions are not affected\n\t\t\t> tbody > tr > td {\n\t\t\t\tbackground-color: ".concat("var(--ds-surface, #FFFFFF)", ";\n\t\t\t}") : '', "var(--ds-background-accent-gray-subtlest, ".concat(_editorSharedStyles.akEditorTableToolbar, ")"), _codeBlock.CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, rgb(235, 237, 240))", _editorSharedStyles.akEditorSelectedNodeClassName, "var(--ds-border, transparent)", _codeBlock.CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, (0, _editorSharedStyles.overflowShadow)({
61
+ return (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\t", "\n\t.", " {\n\t\tposition: relative;\n\t\tmargin: 0 auto ", ";\n\t\tbox-sizing: border-box;\n\n\t\t/**\n * Fix block top alignment inside table cells.\n */\n\t\t.decisionItemView-content-wrap:first-of-type > div {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.", "[data-number-column='true'] {\n\t\tpadding-left: ", "px;\n\t\tclear: both;\n\t}\n\n\t.", " {\n\t\twill-change: width, margin-left;\n\t}\n\n\t.", " table {\n\t\twill-change: width;\n\t}\n\n\t.", " > table {\n\t\tmargin: ", " 0 0 0;\n\t}\n\n\t.", " > table,\n\t.", " > table {\n\t\tmargin: ", " ", " 0 0;\n\t}\n\n\t/* avoid applying styles to nested tables (possible via extensions) */\n\t.", " > table,\n\t.", " > table,\n\t.", " > table {\n\t\tborder-collapse: collapse;\n\t\tborder: ", "px solid\n\t\t\t", ";\n\t\ttable-layout: fixed;\n\t\tfont-size: 1em;\n\t\twidth: 100%;\n\n\t\t&[data-autosize='true'] {\n\t\t\ttable-layout: auto;\n\t\t}\n\n\t\t& {\n\t\t\t* {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}\n\t\t\thr {\n\t\t\t\tbox-sizing: content-box;\n\t\t\t}\n\n\t\t\ttbody {\n\t\t\t\tborder-bottom: none;\n\t\t\t}\n\t\t\tth td {\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\n\t\t\t", " {\n\t\t\t\tmin-width: ", "px;\n\t\t\t\tfont-weight: ", ";\n\t\t\t\tvertical-align: top;\n\t\t\t\tborder: 1px solid ", ";\n\t\t\t\tborder-right-width: 0;\n\t\t\t\tborder-bottom-width: 0;\n\n\t\t\t\tpadding: ", ";\n\t\t\t\t/* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */\n\t\t\t\t", "\n\n\t\t\t\t", "\n\n\t\t\t\tth p:not(:first-of-type),\n\t\t\t\ttd p:not(:first-of-type) {\n\t\t\t\t\tmargin-top: ", ";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t", "\n\t\t\tth {\n\t\t\t\tbackground-color: ", ";\n\t\t\t\ttext-align: left;\n\n\t\t\t\t/* only apply this styling to codeblocks in default background headercells */\n\t\t\t\t/* TODO this needs to be overhauled as it relies on unsafe selectors */\n\t\t\t\t&:not([style]):not(.danger) {\n\t\t\t\t\t.", ":not(.danger) {\n\t\t\t\t\t\tbackground-color: ", ";\n\n\t\t\t\t\t\t:not(.", ") {\n\t\t\t\t\t\t\tbox-shadow: 0px 0px 0px 1px ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tbackground-image: ", ";\n\n\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* this is only relevant to the element taken care of by renderer */\n\t\t\t\t\t\t> [data-ds--code--code-block] {\n\t\t\t\t\t\t\tbackground-image: ", "!important;\n\n\t\t\t\t\t\t\tbackground-color: ", "!important;\n\n\t\t\t\t\t\t\t// selector lives inside @atlaskit/code\n\t\t\t\t\t\t\t--ds--code--line-number-bg-color: ", ";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n"])), (0, _tableCell.tableCellBackgroundStyleOverride)(), TableSharedCssClassName.TABLE_CONTAINER, "var(--ds-space-200, 16px)", TableSharedCssClassName.TABLE_CONTAINER, _editorSharedStyles.akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, "var(--ds-space-300, 24px)", TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableCellBorderWidth, "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"), "var(--ds-background-neutral-subtle, white)", (0, _platformFeatureFlags.fg)('platform_editor_renderer_table_header_styles') ? "> tbody > tr > th, > tbody > tr > td" : 'th, td', tableCellMinWidth, "var(--ds-font-weight-regular, 400)", "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"), "var(--ds-space-100, 8px)", _browser.browser.gecko || _browser.browser.ie || _browser.browser.mac && _browser.browser.chrome ? 'background-clip: padding-box;' : '', firstNodeWithNotMarginTop(), "var(--ds-space-150, 12px)", (0, _platformFeatureFlags.fg)('platform_editor_nested_tables_renderer_styles') ? "// Ensures nested tables are compatible with parent table background color - uses specificity to ensure tables nested by extensions are not affected\n\t\t\t> tbody > tr > td {\n\t\t\t\tbackground-color: ".concat("var(--ds-surface, #FFFFFF)", ";\n\t\t\t}") : '', "var(--ds-background-accent-gray-subtlest, ".concat(_editorSharedStyles.akEditorTableToolbar, ")"), _codeBlock.CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, rgb(235, 237, 240))", _editorSharedStyles.akEditorSelectedNodeClassName, "var(--ds-border, transparent)", _codeBlock.CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, (0, _editorSharedStyles.overflowShadow)({
62
62
  leftCoverWidth: "var(--ds-space-300, 24px)"
63
63
  }), "var(--ds-background-neutral, rgb(235, 237, 240))", _codeBlock.CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, "var(--ds-background-neutral, rgb(226, 229, 233))", (0, _editorSharedStyles.overflowShadow)({
64
64
  leftCoverWidth: "var(--ds-space-300, 24px)"
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
23
23
  * @jsx jsx
24
24
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
25
  var packageName = "@atlaskit/editor-common";
26
- var packageVersion = "99.5.7";
26
+ var packageVersion = "99.6.1";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -27,6 +27,7 @@ var buttonStyle = exports.buttonStyle = (0, _react.css)({
27
27
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
28
28
  var buttonWrapperStyle = exports.buttonWrapperStyle = (0, _react.css)({
29
29
  border: '1px solid transparent',
30
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
30
31
  fontSize: 0,
31
32
  display: 'flex',
32
33
  alignItems: 'center',
@@ -1,7 +1,7 @@
1
1
  import { isFedRamp } from './environment';
2
2
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
3
3
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
4
- const packageVersion = "99.5.7";
4
+ const packageVersion = "99.6.1";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // TODO: Sanitise the URL instead of just removing it
@@ -133,8 +133,8 @@ const tableSharedStyle = () => css`
133
133
  th td {
134
134
  background-color: ${"var(--ds-background-neutral-subtle, white)"};
135
135
  }
136
- th,
137
- td {
136
+
137
+ ${fg('platform_editor_renderer_table_header_styles') ? `> tbody > tr > th, > tbody > tr > td` : 'th, td'} {
138
138
  min-width: ${tableCellMinWidth}px;
139
139
  font-weight: ${"var(--ds-font-weight-regular, 400)"};
140
140
  vertical-align: top;
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
13
13
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import Layer from '../Layer';
15
15
  const packageName = "@atlaskit/editor-common";
16
- const packageVersion = "99.5.7";
16
+ const packageVersion = "99.6.1";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -20,6 +20,7 @@ export const buttonStyle = css({
20
20
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
21
21
  export const buttonWrapperStyle = css({
22
22
  border: '1px solid transparent',
23
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
23
24
  fontSize: 0,
24
25
  display: 'flex',
25
26
  alignItems: 'center',
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "99.5.7";
10
+ var packageVersion = "99.6.1";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // TODO: Sanitise the URL instead of just removing it
@@ -52,7 +52,7 @@ var firstNodeWithNotMarginTop = function firstNodeWithNotMarginTop() {
52
52
 
53
53
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Appears safe to auto-fix, but leaving it up to the team to remediate as the readability only gets worse with autofixing
54
54
  var tableSharedStyle = function tableSharedStyle() {
55
- return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\t", "\n\t.", " {\n\t\tposition: relative;\n\t\tmargin: 0 auto ", ";\n\t\tbox-sizing: border-box;\n\n\t\t/**\n * Fix block top alignment inside table cells.\n */\n\t\t.decisionItemView-content-wrap:first-of-type > div {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.", "[data-number-column='true'] {\n\t\tpadding-left: ", "px;\n\t\tclear: both;\n\t}\n\n\t.", " {\n\t\twill-change: width, margin-left;\n\t}\n\n\t.", " table {\n\t\twill-change: width;\n\t}\n\n\t.", " > table {\n\t\tmargin: ", " 0 0 0;\n\t}\n\n\t.", " > table,\n\t.", " > table {\n\t\tmargin: ", " ", " 0 0;\n\t}\n\n\t/* avoid applying styles to nested tables (possible via extensions) */\n\t.", " > table,\n\t.", " > table,\n\t.", " > table {\n\t\tborder-collapse: collapse;\n\t\tborder: ", "px solid\n\t\t\t", ";\n\t\ttable-layout: fixed;\n\t\tfont-size: 1em;\n\t\twidth: 100%;\n\n\t\t&[data-autosize='true'] {\n\t\t\ttable-layout: auto;\n\t\t}\n\n\t\t& {\n\t\t\t* {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}\n\t\t\thr {\n\t\t\t\tbox-sizing: content-box;\n\t\t\t}\n\n\t\t\ttbody {\n\t\t\t\tborder-bottom: none;\n\t\t\t}\n\t\t\tth td {\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\t\t\tth,\n\t\t\ttd {\n\t\t\t\tmin-width: ", "px;\n\t\t\t\tfont-weight: ", ";\n\t\t\t\tvertical-align: top;\n\t\t\t\tborder: 1px solid ", ";\n\t\t\t\tborder-right-width: 0;\n\t\t\t\tborder-bottom-width: 0;\n\n\t\t\t\tpadding: ", ";\n\t\t\t\t/* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */\n\t\t\t\t", "\n\n\t\t\t\t", "\n\n\t\t\t\tth p:not(:first-of-type),\n\t\t\t\ttd p:not(:first-of-type) {\n\t\t\t\t\tmargin-top: ", ";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t", "\n\t\t\tth {\n\t\t\t\tbackground-color: ", ";\n\t\t\t\ttext-align: left;\n\n\t\t\t\t/* only apply this styling to codeblocks in default background headercells */\n\t\t\t\t/* TODO this needs to be overhauled as it relies on unsafe selectors */\n\t\t\t\t&:not([style]):not(.danger) {\n\t\t\t\t\t.", ":not(.danger) {\n\t\t\t\t\t\tbackground-color: ", ";\n\n\t\t\t\t\t\t:not(.", ") {\n\t\t\t\t\t\t\tbox-shadow: 0px 0px 0px 1px ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tbackground-image: ", ";\n\n\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* this is only relevant to the element taken care of by renderer */\n\t\t\t\t\t\t> [data-ds--code--code-block] {\n\t\t\t\t\t\t\tbackground-image: ", "!important;\n\n\t\t\t\t\t\t\tbackground-color: ", "!important;\n\n\t\t\t\t\t\t\t// selector lives inside @atlaskit/code\n\t\t\t\t\t\t\t--ds--code--line-number-bg-color: ", ";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n"])), tableCellBackgroundStyleOverride(), TableSharedCssClassName.TABLE_CONTAINER, "var(--ds-space-200, 16px)", TableSharedCssClassName.TABLE_CONTAINER, akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, "var(--ds-space-300, 24px)", TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableCellBorderWidth, "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), "var(--ds-background-neutral-subtle, white)", tableCellMinWidth, "var(--ds-font-weight-regular, 400)", "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), "var(--ds-space-100, 8px)", browser.gecko || browser.ie || browser.mac && browser.chrome ? 'background-clip: padding-box;' : '', firstNodeWithNotMarginTop(), "var(--ds-space-150, 12px)", fg('platform_editor_nested_tables_renderer_styles') ? "// Ensures nested tables are compatible with parent table background color - uses specificity to ensure tables nested by extensions are not affected\n\t\t\t> tbody > tr > td {\n\t\t\t\tbackground-color: ".concat("var(--ds-surface, #FFFFFF)", ";\n\t\t\t}") : '', "var(--ds-background-accent-gray-subtlest, ".concat(akEditorTableToolbar, ")"), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, rgb(235, 237, 240))", akEditorSelectedNodeClassName, "var(--ds-border, transparent)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, overflowShadow({
55
+ return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\t", "\n\t.", " {\n\t\tposition: relative;\n\t\tmargin: 0 auto ", ";\n\t\tbox-sizing: border-box;\n\n\t\t/**\n * Fix block top alignment inside table cells.\n */\n\t\t.decisionItemView-content-wrap:first-of-type > div {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.", "[data-number-column='true'] {\n\t\tpadding-left: ", "px;\n\t\tclear: both;\n\t}\n\n\t.", " {\n\t\twill-change: width, margin-left;\n\t}\n\n\t.", " table {\n\t\twill-change: width;\n\t}\n\n\t.", " > table {\n\t\tmargin: ", " 0 0 0;\n\t}\n\n\t.", " > table,\n\t.", " > table {\n\t\tmargin: ", " ", " 0 0;\n\t}\n\n\t/* avoid applying styles to nested tables (possible via extensions) */\n\t.", " > table,\n\t.", " > table,\n\t.", " > table {\n\t\tborder-collapse: collapse;\n\t\tborder: ", "px solid\n\t\t\t", ";\n\t\ttable-layout: fixed;\n\t\tfont-size: 1em;\n\t\twidth: 100%;\n\n\t\t&[data-autosize='true'] {\n\t\t\ttable-layout: auto;\n\t\t}\n\n\t\t& {\n\t\t\t* {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}\n\t\t\thr {\n\t\t\t\tbox-sizing: content-box;\n\t\t\t}\n\n\t\t\ttbody {\n\t\t\t\tborder-bottom: none;\n\t\t\t}\n\t\t\tth td {\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\n\t\t\t", " {\n\t\t\t\tmin-width: ", "px;\n\t\t\t\tfont-weight: ", ";\n\t\t\t\tvertical-align: top;\n\t\t\t\tborder: 1px solid ", ";\n\t\t\t\tborder-right-width: 0;\n\t\t\t\tborder-bottom-width: 0;\n\n\t\t\t\tpadding: ", ";\n\t\t\t\t/* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */\n\t\t\t\t", "\n\n\t\t\t\t", "\n\n\t\t\t\tth p:not(:first-of-type),\n\t\t\t\ttd p:not(:first-of-type) {\n\t\t\t\t\tmargin-top: ", ";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t", "\n\t\t\tth {\n\t\t\t\tbackground-color: ", ";\n\t\t\t\ttext-align: left;\n\n\t\t\t\t/* only apply this styling to codeblocks in default background headercells */\n\t\t\t\t/* TODO this needs to be overhauled as it relies on unsafe selectors */\n\t\t\t\t&:not([style]):not(.danger) {\n\t\t\t\t\t.", ":not(.danger) {\n\t\t\t\t\t\tbackground-color: ", ";\n\n\t\t\t\t\t\t:not(.", ") {\n\t\t\t\t\t\t\tbox-shadow: 0px 0px 0px 1px ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tbackground-image: ", ";\n\n\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* this is only relevant to the element taken care of by renderer */\n\t\t\t\t\t\t> [data-ds--code--code-block] {\n\t\t\t\t\t\t\tbackground-image: ", "!important;\n\n\t\t\t\t\t\t\tbackground-color: ", "!important;\n\n\t\t\t\t\t\t\t// selector lives inside @atlaskit/code\n\t\t\t\t\t\t\t--ds--code--line-number-bg-color: ", ";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n"])), tableCellBackgroundStyleOverride(), TableSharedCssClassName.TABLE_CONTAINER, "var(--ds-space-200, 16px)", TableSharedCssClassName.TABLE_CONTAINER, akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, "var(--ds-space-300, 24px)", TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableCellBorderWidth, "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), "var(--ds-background-neutral-subtle, white)", fg('platform_editor_renderer_table_header_styles') ? "> tbody > tr > th, > tbody > tr > td" : 'th, td', tableCellMinWidth, "var(--ds-font-weight-regular, 400)", "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), "var(--ds-space-100, 8px)", browser.gecko || browser.ie || browser.mac && browser.chrome ? 'background-clip: padding-box;' : '', firstNodeWithNotMarginTop(), "var(--ds-space-150, 12px)", fg('platform_editor_nested_tables_renderer_styles') ? "// Ensures nested tables are compatible with parent table background color - uses specificity to ensure tables nested by extensions are not affected\n\t\t\t> tbody > tr > td {\n\t\t\t\tbackground-color: ".concat("var(--ds-surface, #FFFFFF)", ";\n\t\t\t}") : '', "var(--ds-background-accent-gray-subtlest, ".concat(akEditorTableToolbar, ")"), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, rgb(235, 237, 240))", akEditorSelectedNodeClassName, "var(--ds-border, transparent)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, overflowShadow({
56
56
  leftCoverWidth: "var(--ds-space-300, 24px)"
57
57
  }), "var(--ds-background-neutral, rgb(235, 237, 240))", CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, "var(--ds-background-neutral, rgb(226, 229, 233))", overflowShadow({
58
58
  leftCoverWidth: "var(--ds-space-300, 24px)"
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
20
20
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import Layer from '../Layer';
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "99.5.7";
23
+ var packageVersion = "99.6.1";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
@@ -20,6 +20,7 @@ export var buttonStyle = css({
20
20
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
21
21
  export var buttonWrapperStyle = css({
22
22
  border: '1px solid transparent',
23
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
23
24
  fontSize: 0,
24
25
  display: 'flex',
25
26
  alignItems: 'center',
@@ -14,5 +14,5 @@ interface Props {
14
14
  setFocusedItemIndex: (index: number) => void;
15
15
  setFocusOnSearch?: () => void;
16
16
  }
17
- declare const MemoizedCategoryListWithAnalytics: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<Props & WithAnalyticsEventsProps & import("@atlaskit/analytics-next").WithContextProps, "createAnalyticsEvent" | "analyticsContext" | keyof Props> & React.RefAttributes<any>>>;
17
+ declare const MemoizedCategoryListWithAnalytics: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<Props & WithAnalyticsEventsProps & import("@atlaskit/analytics-next").WithContextProps, "ref"> & React.RefAttributes<any>>>;
18
18
  export default MemoizedCategoryListWithAnalytics;
@@ -37,5 +37,5 @@ type ElementItemType = {
37
37
  index: number;
38
38
  };
39
39
  export declare function ElementItem({ inlineMode, selected, item, index, onInsertItem, focus, setFocusedItemIndex, }: ElementItemType): jsx.JSX.Element;
40
- declare const MemoizedElementListWithAnalytics: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<Props & SelectedItemProps & WithAnalyticsEventsProps & import("@atlaskit/analytics-next").WithContextProps, "createAnalyticsEvent" | "analyticsContext" | keyof Props | keyof SelectedItemProps> & React.RefAttributes<any>>>;
40
+ declare const MemoizedElementListWithAnalytics: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<Props & SelectedItemProps & WithAnalyticsEventsProps & import("@atlaskit/analytics-next").WithContextProps, "ref"> & React.RefAttributes<any>>>;
41
41
  export default MemoizedElementListWithAnalytics;
@@ -24,7 +24,7 @@ export type StatelessElementBrowserProps = {
24
24
  viewMoreItem?: QuickInsertItem;
25
25
  cache?: CellMeasurerCache;
26
26
  } & WithAnalyticsEventsProps;
27
- declare const MemoizedElementBrowser: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<Omit<{
27
+ declare const MemoizedElementBrowser: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<Omit<{
28
28
  categories?: Category[] | undefined;
29
29
  items: QuickInsertItem[];
30
30
  onSearch: (searchTerm: string) => void;
@@ -39,5 +39,5 @@ declare const MemoizedElementBrowser: React.MemoExoticComponent<React.ForwardRef
39
39
  emptyStateHandler?: EmptyStateHandler | undefined;
40
40
  viewMoreItem?: QuickInsertItem | undefined;
41
41
  cache?: CellMeasurerCache | undefined;
42
- }, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "mode" | "analyticsContext" | "cache" | "categories" | "onSelectCategory" | "selectedCategory" | "items" | "emptyStateHandler" | "searchTerm" | "onInsertItem" | "onSearch" | "onSelectItem" | "viewMoreItem" | "showCategories" | "showSearch"> & React.RefAttributes<any>>>;
42
+ }, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "ref"> & React.RefAttributes<any>>>;
43
43
  export default MemoizedElementBrowser;
@@ -48,12 +48,10 @@ declare const _default: {
48
48
  handleContainer: (container: HTMLElement | null) => void;
49
49
  initShadowObserver(): void;
50
50
  render(): JSX.Element;
51
- context: any;
51
+ context: unknown;
52
52
  setState<K extends keyof import("../../../ui").OverflowShadowState>(state: import("../../../ui").OverflowShadowState | ((prevState: Readonly<import("../../../ui").OverflowShadowState>, props: Readonly<Props>) => import("../../../ui").OverflowShadowState | Pick<import("../../../ui").OverflowShadowState, K> | null) | Pick<import("../../../ui").OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
53
53
  forceUpdate(callback?: (() => void) | undefined): void;
54
- readonly props: Readonly<Props> & Readonly<{
55
- children?: React.ReactNode;
56
- }>;
54
+ readonly props: Readonly<Props>;
57
55
  refs: {
58
56
  [key: string]: React.ReactInstance;
59
57
  };
@@ -89,12 +87,10 @@ declare const _default: {
89
87
  handleContainer: (container: HTMLElement | null) => void;
90
88
  initShadowObserver(): void;
91
89
  render(): JSX.Element;
92
- context: any;
90
+ context: unknown;
93
91
  setState<K extends keyof import("../../../ui").OverflowShadowState>(state: import("../../../ui").OverflowShadowState | ((prevState: Readonly<import("../../../ui").OverflowShadowState>, props: Readonly<Props>) => import("../../../ui").OverflowShadowState | Pick<import("../../../ui").OverflowShadowState, K> | null) | Pick<import("../../../ui").OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
94
92
  forceUpdate(callback?: (() => void) | undefined): void;
95
- readonly props: Readonly<Props> & Readonly<{
96
- children?: React.ReactNode;
97
- }>;
93
+ readonly props: Readonly<Props>;
98
94
  refs: {
99
95
  [key: string]: React.ReactInstance;
100
96
  };
@@ -5,12 +5,10 @@ declare const _default: {
5
5
  new (props: (import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps) | Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>): {
6
6
  renderNode: (providers: import("../../provider-factory").Providers) => JSX.Element;
7
7
  render(): JSX.Element;
8
- context: any;
8
+ context: unknown;
9
9
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
10
10
  forceUpdate(callback?: (() => void) | undefined): void;
11
- readonly props: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps> & Readonly<{
12
- children?: React.ReactNode;
13
- }>;
11
+ readonly props: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>;
14
12
  state: Readonly<{}>;
15
13
  refs: {
16
14
  [key: string]: React.ReactInstance;
@@ -31,12 +29,10 @@ declare const _default: {
31
29
  new (props: import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps, context: any): {
32
30
  renderNode: (providers: import("../../provider-factory").Providers) => JSX.Element;
33
31
  render(): JSX.Element;
34
- context: any;
32
+ context: unknown;
35
33
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
36
34
  forceUpdate(callback?: (() => void) | undefined): void;
37
- readonly props: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps> & Readonly<{
38
- children?: React.ReactNode;
39
- }>;
35
+ readonly props: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>;
40
36
  state: Readonly<{}>;
41
37
  refs: {
42
38
  [key: string]: React.ReactInstance;
@@ -13,12 +13,10 @@ export default function withActivityProvider<Props>(WrappedComponent: React.Comp
13
13
  new (props: (Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps) | Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>): {
14
14
  renderNode: (providers: Providers) => JSX.Element;
15
15
  render(): JSX.Element;
16
- context: any;
16
+ context: unknown;
17
17
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
18
18
  forceUpdate(callback?: (() => void) | undefined): void;
19
- readonly props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps> & Readonly<{
20
- children?: React.ReactNode;
21
- }>;
19
+ readonly props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>;
22
20
  state: Readonly<{}>;
23
21
  refs: {
24
22
  [key: string]: React.ReactInstance;
@@ -39,12 +37,10 @@ export default function withActivityProvider<Props>(WrappedComponent: React.Comp
39
37
  new (props: Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps, context: any): {
40
38
  renderNode: (providers: Providers) => JSX.Element;
41
39
  render(): JSX.Element;
42
- context: any;
40
+ context: unknown;
43
41
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
44
42
  forceUpdate(callback?: (() => void) | undefined): void;
45
- readonly props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps> & Readonly<{
46
- children?: React.ReactNode;
47
- }>;
43
+ readonly props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>;
48
44
  state: Readonly<{}>;
49
45
  refs: {
50
46
  [key: string]: React.ReactInstance;
@@ -7,17 +7,13 @@ export declare enum StatusClassNames {
7
7
  NO_ORDER = "sorting-icon-svg__no_order",
8
8
  SORTING_NOT_ALLOWED = "sorting-icon-svg__not-allowed"
9
9
  }
10
- declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<{
10
+ type SortingIconProps = {
11
11
  isSortingAllowed: boolean;
12
- sortOrdered?: SortOrder | undefined;
12
+ sortOrdered?: SortOrder;
13
13
  onClick: () => void;
14
- onKeyDown: (event: import("react").KeyboardEvent<HTMLElement>) => void;
15
- } & WrappedComponentProps>> & {
16
- WrappedComponent: import("react").ComponentType<{
17
- isSortingAllowed: boolean;
18
- sortOrdered?: SortOrder | undefined;
19
- onClick: () => void;
20
- onKeyDown: (event: import("react").KeyboardEvent<HTMLElement>) => void;
21
- } & WrappedComponentProps>;
14
+ onKeyDown: (event: React.KeyboardEvent<HTMLElement>) => void;
15
+ } & WrappedComponentProps;
16
+ declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<SortingIconProps>> & {
17
+ WrappedComponent: import("react").ComponentType<SortingIconProps>;
22
18
  };
23
19
  export default _default;
@@ -19,5 +19,5 @@ type AnnouncerProps = {
19
19
  * It can be useful for cases when the parent component re-renders with the same announcer's text. */
20
20
  delay?: number;
21
21
  };
22
- declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<React.PropsWithChildren<AnnouncerProps>, "ariaLive" | "text" | "children" | "ariaAtomic" | "role" | "delay" | "ariaRelevant"> & React.RefAttributes<HTMLDivElement>>>;
22
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<AnnouncerProps>, "ref"> & React.RefAttributes<HTMLDivElement>>>;
23
23
  export default _default;
@@ -20,5 +20,5 @@ export type OpenChangedEvent = {
20
20
  isOpen: boolean;
21
21
  event: MouseEvent | KeyboardEvent;
22
22
  };
23
- declare const _default: import("react").ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "children" | "position" | "id" | "testId" | "analyticsContext" | "shouldFitContainer" | "onPositioned" | "isOpen" | "trigger" | "onOpenChange" | "onDroplistRef"> & import("react").RefAttributes<any>>;
23
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<Omit<Props, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "ref"> & import("react").RefAttributes<any>>;
24
24
  export default _default;
@@ -11,6 +11,6 @@ export declare class IntlErrorBoundary extends React.Component<ErrorBoundaryProp
11
11
  missingIntlProviderInAncestry: boolean;
12
12
  };
13
13
  componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
14
- render(): React.ReactNode;
14
+ render(): string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
15
15
  }
16
16
  export {};
@@ -38,12 +38,10 @@ export default function overflowShadow<P>(Component: React.ComponentType<React.P
38
38
  handleContainer: (container: HTMLElement | null) => void;
39
39
  initShadowObserver(): void;
40
40
  render(): JSX.Element;
41
- context: any;
41
+ context: unknown;
42
42
  setState<K extends keyof OverflowShadowState>(state: OverflowShadowState | ((prevState: Readonly<OverflowShadowState>, props: Readonly<P>) => OverflowShadowState | Pick<OverflowShadowState, K> | null) | Pick<OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
43
43
  forceUpdate(callback?: (() => void) | undefined): void;
44
- readonly props: Readonly<P> & Readonly<{
45
- children?: React.ReactNode;
46
- }>;
44
+ readonly props: Readonly<P>;
47
45
  refs: {
48
46
  [key: string]: React.ReactInstance;
49
47
  };
@@ -79,12 +77,10 @@ export default function overflowShadow<P>(Component: React.ComponentType<React.P
79
77
  handleContainer: (container: HTMLElement | null) => void;
80
78
  initShadowObserver(): void;
81
79
  render(): JSX.Element;
82
- context: any;
80
+ context: unknown;
83
81
  setState<K extends keyof OverflowShadowState>(state: OverflowShadowState | ((prevState: Readonly<OverflowShadowState>, props: Readonly<P>) => OverflowShadowState | Pick<OverflowShadowState, K> | null) | Pick<OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
84
82
  forceUpdate(callback?: (() => void) | undefined): void;
85
- readonly props: Readonly<P> & Readonly<{
86
- children?: React.ReactNode;
87
- }>;
83
+ readonly props: Readonly<P>;
88
84
  refs: {
89
85
  [key: string]: React.ReactInstance;
90
86
  };
@@ -6,7 +6,7 @@ import React from 'react';
6
6
  import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
7
7
  import type { PaletteColor, PaletteTooltipMessages } from '../../ui-color';
8
8
  import type { Position as PopupPosition } from '../../ui/Popup/utils';
9
- declare const _default: React.ForwardRefExoticComponent<Pick<Omit<{
9
+ declare const _default: React.ForwardRefExoticComponent<Omit<Omit<{
10
10
  currentColor?: string | undefined;
11
11
  title?: string | undefined;
12
12
  isAriaExpanded?: boolean | undefined;
@@ -14,7 +14,7 @@ declare const _default: React.ForwardRefExoticComponent<Pick<Omit<{
14
14
  colorPalette: PaletteColor[];
15
15
  placement: string;
16
16
  cols?: number | undefined;
17
- alignX?: "left" | "right" | "center" | "end" | undefined;
17
+ alignX?: "center" | "left" | "right" | "end" | undefined;
18
18
  size?: {
19
19
  width: string;
20
20
  height: string;
@@ -30,5 +30,5 @@ declare const _default: React.ForwardRefExoticComponent<Pick<Omit<{
30
30
  skipFocusButtonAfterPick?: boolean | undefined;
31
31
  absoluteOffset?: PopupPosition | undefined;
32
32
  returnEscToButton?: boolean | undefined;
33
- }, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "onChange" | "key" | "title" | "size" | "currentColor" | "cols" | "placement" | "alignX" | "absoluteOffset" | "analyticsContext" | "isAriaExpanded" | "returnEscToButton" | "hexToPaletteColor" | "paletteColorTooltipMessages" | "colorPalette" | "mountPoint" | "setDisableParentScroll" | "skipFocusButtonAfterPick"> & React.RefAttributes<any>>;
33
+ }, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "ref"> & React.RefAttributes<any>>;
34
34
  export default _default;
@@ -3,4 +3,5 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
- export declare const DropdownContainer: React.NamedExoticComponent<import("../Dropdown").Props & import("../../ui-react/with-react-editor-view-outer-listeners").WithOutsideClickProps>;
6
+ import type { DropdownPropsWithOutsideClickProps } from '../Dropdown';
7
+ export declare const DropdownContainer: React.NamedExoticComponent<DropdownPropsWithOutsideClickProps>;
@@ -60,5 +60,5 @@ declare const ToolbarButton: React.ForwardRefExoticComponent<{
60
60
  'aria-pressed'?: React.AriaAttributes['aria-pressed'];
61
61
  'aria-keyshortcuts'?: React.AriaAttributes['aria-keyshortcuts'];
62
62
  'data-ds--level'?: string | undefined;
63
- } & Pick<ButtonProps, "onFocus" | "onBlur" | "children" | "aria-controls" | "aria-label" | "onMouseEnter" | "onMouseLeave" | "rel"> & React.RefAttributes<HTMLElement>>;
63
+ } & Pick<ButtonProps, "onFocus" | "onBlur" | "children" | "rel" | "aria-controls" | "aria-label" | "onMouseEnter" | "onMouseLeave"> & React.RefAttributes<HTMLElement>>;
64
64
  export default ToolbarButton;
@@ -14,5 +14,5 @@ interface Props {
14
14
  setFocusedItemIndex: (index: number) => void;
15
15
  setFocusOnSearch?: () => void;
16
16
  }
17
- declare const MemoizedCategoryListWithAnalytics: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<Props & WithAnalyticsEventsProps & import("@atlaskit/analytics-next").WithContextProps, "createAnalyticsEvent" | "analyticsContext" | keyof Props> & React.RefAttributes<any>>>;
17
+ declare const MemoizedCategoryListWithAnalytics: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<Props & WithAnalyticsEventsProps & import("@atlaskit/analytics-next").WithContextProps, "ref"> & React.RefAttributes<any>>>;
18
18
  export default MemoizedCategoryListWithAnalytics;
@@ -37,5 +37,5 @@ type ElementItemType = {
37
37
  index: number;
38
38
  };
39
39
  export declare function ElementItem({ inlineMode, selected, item, index, onInsertItem, focus, setFocusedItemIndex, }: ElementItemType): jsx.JSX.Element;
40
- declare const MemoizedElementListWithAnalytics: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<Props & SelectedItemProps & WithAnalyticsEventsProps & import("@atlaskit/analytics-next").WithContextProps, "createAnalyticsEvent" | "analyticsContext" | keyof Props | keyof SelectedItemProps> & React.RefAttributes<any>>>;
40
+ declare const MemoizedElementListWithAnalytics: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<Props & SelectedItemProps & WithAnalyticsEventsProps & import("@atlaskit/analytics-next").WithContextProps, "ref"> & React.RefAttributes<any>>>;
41
41
  export default MemoizedElementListWithAnalytics;
@@ -24,7 +24,7 @@ export type StatelessElementBrowserProps = {
24
24
  viewMoreItem?: QuickInsertItem;
25
25
  cache?: CellMeasurerCache;
26
26
  } & WithAnalyticsEventsProps;
27
- declare const MemoizedElementBrowser: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<Omit<{
27
+ declare const MemoizedElementBrowser: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<Omit<{
28
28
  categories?: Category[] | undefined;
29
29
  items: QuickInsertItem[];
30
30
  onSearch: (searchTerm: string) => void;
@@ -39,5 +39,5 @@ declare const MemoizedElementBrowser: React.MemoExoticComponent<React.ForwardRef
39
39
  emptyStateHandler?: EmptyStateHandler | undefined;
40
40
  viewMoreItem?: QuickInsertItem | undefined;
41
41
  cache?: CellMeasurerCache | undefined;
42
- }, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "mode" | "analyticsContext" | "cache" | "categories" | "onSelectCategory" | "selectedCategory" | "items" | "emptyStateHandler" | "searchTerm" | "onInsertItem" | "onSearch" | "onSelectItem" | "viewMoreItem" | "showCategories" | "showSearch"> & React.RefAttributes<any>>>;
42
+ }, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "ref"> & React.RefAttributes<any>>>;
43
43
  export default MemoizedElementBrowser;
@@ -48,12 +48,10 @@ declare const _default: {
48
48
  handleContainer: (container: HTMLElement | null) => void;
49
49
  initShadowObserver(): void;
50
50
  render(): JSX.Element;
51
- context: any;
51
+ context: unknown;
52
52
  setState<K extends keyof import("../../../ui").OverflowShadowState>(state: import("../../../ui").OverflowShadowState | ((prevState: Readonly<import("../../../ui").OverflowShadowState>, props: Readonly<Props>) => import("../../../ui").OverflowShadowState | Pick<import("../../../ui").OverflowShadowState, K> | null) | Pick<import("../../../ui").OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
53
53
  forceUpdate(callback?: (() => void) | undefined): void;
54
- readonly props: Readonly<Props> & Readonly<{
55
- children?: React.ReactNode;
56
- }>;
54
+ readonly props: Readonly<Props>;
57
55
  refs: {
58
56
  [key: string]: React.ReactInstance;
59
57
  };
@@ -89,12 +87,10 @@ declare const _default: {
89
87
  handleContainer: (container: HTMLElement | null) => void;
90
88
  initShadowObserver(): void;
91
89
  render(): JSX.Element;
92
- context: any;
90
+ context: unknown;
93
91
  setState<K extends keyof import("../../../ui").OverflowShadowState>(state: import("../../../ui").OverflowShadowState | ((prevState: Readonly<import("../../../ui").OverflowShadowState>, props: Readonly<Props>) => import("../../../ui").OverflowShadowState | Pick<import("../../../ui").OverflowShadowState, K> | null) | Pick<import("../../../ui").OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
94
92
  forceUpdate(callback?: (() => void) | undefined): void;
95
- readonly props: Readonly<Props> & Readonly<{
96
- children?: React.ReactNode;
97
- }>;
93
+ readonly props: Readonly<Props>;
98
94
  refs: {
99
95
  [key: string]: React.ReactInstance;
100
96
  };
@@ -5,12 +5,10 @@ declare const _default: {
5
5
  new (props: (import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps) | Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>): {
6
6
  renderNode: (providers: import("../../provider-factory").Providers) => JSX.Element;
7
7
  render(): JSX.Element;
8
- context: any;
8
+ context: unknown;
9
9
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
10
10
  forceUpdate(callback?: (() => void) | undefined): void;
11
- readonly props: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps> & Readonly<{
12
- children?: React.ReactNode;
13
- }>;
11
+ readonly props: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>;
14
12
  state: Readonly<{}>;
15
13
  refs: {
16
14
  [key: string]: React.ReactInstance;
@@ -31,12 +29,10 @@ declare const _default: {
31
29
  new (props: import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps, context: any): {
32
30
  renderNode: (providers: import("../../provider-factory").Providers) => JSX.Element;
33
31
  render(): JSX.Element;
34
- context: any;
32
+ context: unknown;
35
33
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
36
34
  forceUpdate(callback?: (() => void) | undefined): void;
37
- readonly props: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps> & Readonly<{
38
- children?: React.ReactNode;
39
- }>;
35
+ readonly props: Readonly<import("../../utils").Diff<RecentSearchProps & WithActivityProviderProps, WithActivityProviderProps> & import("./withActivityProvider").ExpandedActivityProviderProps>;
40
36
  state: Readonly<{}>;
41
37
  refs: {
42
38
  [key: string]: React.ReactInstance;
@@ -13,12 +13,10 @@ export default function withActivityProvider<Props>(WrappedComponent: React.Comp
13
13
  new (props: (Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps) | Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>): {
14
14
  renderNode: (providers: Providers) => JSX.Element;
15
15
  render(): JSX.Element;
16
- context: any;
16
+ context: unknown;
17
17
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
18
18
  forceUpdate(callback?: (() => void) | undefined): void;
19
- readonly props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps> & Readonly<{
20
- children?: React.ReactNode;
21
- }>;
19
+ readonly props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>;
22
20
  state: Readonly<{}>;
23
21
  refs: {
24
22
  [key: string]: React.ReactInstance;
@@ -39,12 +37,10 @@ export default function withActivityProvider<Props>(WrappedComponent: React.Comp
39
37
  new (props: Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps, context: any): {
40
38
  renderNode: (providers: Providers) => JSX.Element;
41
39
  render(): JSX.Element;
42
- context: any;
40
+ context: unknown;
43
41
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
44
42
  forceUpdate(callback?: (() => void) | undefined): void;
45
- readonly props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps> & Readonly<{
46
- children?: React.ReactNode;
47
- }>;
43
+ readonly props: Readonly<Diff<Props, WithActivityProviderProps> & ExpandedActivityProviderProps>;
48
44
  state: Readonly<{}>;
49
45
  refs: {
50
46
  [key: string]: React.ReactInstance;
@@ -7,17 +7,13 @@ export declare enum StatusClassNames {
7
7
  NO_ORDER = "sorting-icon-svg__no_order",
8
8
  SORTING_NOT_ALLOWED = "sorting-icon-svg__not-allowed"
9
9
  }
10
- declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<{
10
+ type SortingIconProps = {
11
11
  isSortingAllowed: boolean;
12
- sortOrdered?: SortOrder | undefined;
12
+ sortOrdered?: SortOrder;
13
13
  onClick: () => void;
14
- onKeyDown: (event: import("react").KeyboardEvent<HTMLElement>) => void;
15
- } & WrappedComponentProps>> & {
16
- WrappedComponent: import("react").ComponentType<{
17
- isSortingAllowed: boolean;
18
- sortOrdered?: SortOrder | undefined;
19
- onClick: () => void;
20
- onKeyDown: (event: import("react").KeyboardEvent<HTMLElement>) => void;
21
- } & WrappedComponentProps>;
14
+ onKeyDown: (event: React.KeyboardEvent<HTMLElement>) => void;
15
+ } & WrappedComponentProps;
16
+ declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<SortingIconProps>> & {
17
+ WrappedComponent: import("react").ComponentType<SortingIconProps>;
22
18
  };
23
19
  export default _default;
@@ -19,5 +19,5 @@ type AnnouncerProps = {
19
19
  * It can be useful for cases when the parent component re-renders with the same announcer's text. */
20
20
  delay?: number;
21
21
  };
22
- declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<React.PropsWithChildren<AnnouncerProps>, "ariaLive" | "text" | "children" | "ariaAtomic" | "role" | "delay" | "ariaRelevant"> & React.RefAttributes<HTMLDivElement>>>;
22
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<AnnouncerProps>, "ref"> & React.RefAttributes<HTMLDivElement>>>;
23
23
  export default _default;
@@ -20,5 +20,5 @@ export type OpenChangedEvent = {
20
20
  isOpen: boolean;
21
21
  event: MouseEvent | KeyboardEvent;
22
22
  };
23
- declare const _default: import("react").ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "children" | "position" | "id" | "testId" | "analyticsContext" | "shouldFitContainer" | "onPositioned" | "isOpen" | "trigger" | "onOpenChange" | "onDroplistRef"> & import("react").RefAttributes<any>>;
23
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<Omit<Props, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "ref"> & import("react").RefAttributes<any>>;
24
24
  export default _default;
@@ -11,6 +11,6 @@ export declare class IntlErrorBoundary extends React.Component<ErrorBoundaryProp
11
11
  missingIntlProviderInAncestry: boolean;
12
12
  };
13
13
  componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
14
- render(): React.ReactNode;
14
+ render(): string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
15
15
  }
16
16
  export {};
@@ -38,12 +38,10 @@ export default function overflowShadow<P>(Component: React.ComponentType<React.P
38
38
  handleContainer: (container: HTMLElement | null) => void;
39
39
  initShadowObserver(): void;
40
40
  render(): JSX.Element;
41
- context: any;
41
+ context: unknown;
42
42
  setState<K extends keyof OverflowShadowState>(state: OverflowShadowState | ((prevState: Readonly<OverflowShadowState>, props: Readonly<P>) => OverflowShadowState | Pick<OverflowShadowState, K> | null) | Pick<OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
43
43
  forceUpdate(callback?: (() => void) | undefined): void;
44
- readonly props: Readonly<P> & Readonly<{
45
- children?: React.ReactNode;
46
- }>;
44
+ readonly props: Readonly<P>;
47
45
  refs: {
48
46
  [key: string]: React.ReactInstance;
49
47
  };
@@ -79,12 +77,10 @@ export default function overflowShadow<P>(Component: React.ComponentType<React.P
79
77
  handleContainer: (container: HTMLElement | null) => void;
80
78
  initShadowObserver(): void;
81
79
  render(): JSX.Element;
82
- context: any;
80
+ context: unknown;
83
81
  setState<K extends keyof OverflowShadowState>(state: OverflowShadowState | ((prevState: Readonly<OverflowShadowState>, props: Readonly<P>) => OverflowShadowState | Pick<OverflowShadowState, K> | null) | Pick<OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
84
82
  forceUpdate(callback?: (() => void) | undefined): void;
85
- readonly props: Readonly<P> & Readonly<{
86
- children?: React.ReactNode;
87
- }>;
83
+ readonly props: Readonly<P>;
88
84
  refs: {
89
85
  [key: string]: React.ReactInstance;
90
86
  };
@@ -6,7 +6,7 @@ import React from 'react';
6
6
  import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
7
7
  import type { PaletteColor, PaletteTooltipMessages } from '../../ui-color';
8
8
  import type { Position as PopupPosition } from '../../ui/Popup/utils';
9
- declare const _default: React.ForwardRefExoticComponent<Pick<Omit<{
9
+ declare const _default: React.ForwardRefExoticComponent<Omit<Omit<{
10
10
  currentColor?: string | undefined;
11
11
  title?: string | undefined;
12
12
  isAriaExpanded?: boolean | undefined;
@@ -14,7 +14,7 @@ declare const _default: React.ForwardRefExoticComponent<Pick<Omit<{
14
14
  colorPalette: PaletteColor[];
15
15
  placement: string;
16
16
  cols?: number | undefined;
17
- alignX?: "left" | "right" | "center" | "end" | undefined;
17
+ alignX?: "center" | "left" | "right" | "end" | undefined;
18
18
  size?: {
19
19
  width: string;
20
20
  height: string;
@@ -30,5 +30,5 @@ declare const _default: React.ForwardRefExoticComponent<Pick<Omit<{
30
30
  skipFocusButtonAfterPick?: boolean | undefined;
31
31
  absoluteOffset?: PopupPosition | undefined;
32
32
  returnEscToButton?: boolean | undefined;
33
- }, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "onChange" | "key" | "title" | "size" | "currentColor" | "cols" | "placement" | "alignX" | "absoluteOffset" | "analyticsContext" | "isAriaExpanded" | "returnEscToButton" | "hexToPaletteColor" | "paletteColorTooltipMessages" | "colorPalette" | "mountPoint" | "setDisableParentScroll" | "skipFocusButtonAfterPick"> & React.RefAttributes<any>>;
33
+ }, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "ref"> & React.RefAttributes<any>>;
34
34
  export default _default;
@@ -3,4 +3,5 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
- export declare const DropdownContainer: React.NamedExoticComponent<import("../Dropdown").Props & import("../../ui-react/with-react-editor-view-outer-listeners").WithOutsideClickProps>;
6
+ import type { DropdownPropsWithOutsideClickProps } from '../Dropdown';
7
+ export declare const DropdownContainer: React.NamedExoticComponent<DropdownPropsWithOutsideClickProps>;
@@ -60,5 +60,5 @@ declare const ToolbarButton: React.ForwardRefExoticComponent<{
60
60
  'aria-pressed'?: React.AriaAttributes['aria-pressed'];
61
61
  'aria-keyshortcuts'?: React.AriaAttributes['aria-keyshortcuts'];
62
62
  'data-ds--level'?: string | undefined;
63
- } & Pick<ButtonProps, "onFocus" | "onBlur" | "children" | "aria-controls" | "aria-label" | "onMouseEnter" | "onMouseLeave" | "rel"> & React.RefAttributes<HTMLElement>>;
63
+ } & Pick<ButtonProps, "onFocus" | "onBlur" | "children" | "rel" | "aria-controls" | "aria-label" | "onMouseEnter" | "onMouseLeave"> & React.RefAttributes<HTMLElement>>;
64
64
  export default ToolbarButton;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "99.5.7",
3
+ "version": "99.6.1",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -114,51 +114,51 @@
114
114
  "dependencies": {
115
115
  "@atlaskit/activity-provider": "^2.5.0",
116
116
  "@atlaskit/adf-schema": "^46.1.0",
117
- "@atlaskit/adf-utils": "^19.17.0",
118
- "@atlaskit/analytics-listeners": "^8.13.0",
119
- "@atlaskit/analytics-namespaced-context": "^6.12.0",
120
- "@atlaskit/analytics-next": "^10.2.0",
121
- "@atlaskit/atlassian-context": "^0.0.2",
122
- "@atlaskit/button": "^20.3.0",
123
- "@atlaskit/code": "^15.6.0",
117
+ "@atlaskit/adf-utils": "^19.18.0",
118
+ "@atlaskit/analytics-listeners": "^8.14.0",
119
+ "@atlaskit/analytics-namespaced-context": "^6.13.0",
120
+ "@atlaskit/analytics-next": "^10.3.0",
121
+ "@atlaskit/atlassian-context": "^0.1.0",
122
+ "@atlaskit/button": "^20.4.0",
123
+ "@atlaskit/code": "^15.7.0",
124
124
  "@atlaskit/codemod-utils": "^4.2.0",
125
125
  "@atlaskit/custom-steps": "^0.9.0",
126
- "@atlaskit/dropdown-menu": "^12.25.0",
127
- "@atlaskit/editor-json-transformer": "^8.21.0",
128
- "@atlaskit/editor-palette": "1.6.4",
126
+ "@atlaskit/dropdown-menu": "^12.26.0",
127
+ "@atlaskit/editor-json-transformer": "^8.22.0",
128
+ "@atlaskit/editor-palette": "1.7.0",
129
129
  "@atlaskit/editor-prosemirror": "6.2.1",
130
130
  "@atlaskit/editor-shared-styles": "^3.2.0",
131
131
  "@atlaskit/editor-tables": "^2.8.0",
132
- "@atlaskit/emoji": "^67.12.0",
133
- "@atlaskit/icon": "^23.4.0",
134
- "@atlaskit/icon-object": "^6.9.0",
135
- "@atlaskit/link-datasource": "^3.16.0",
136
- "@atlaskit/link-picker": "^1.47.0",
137
- "@atlaskit/media-card": "^78.18.0",
138
- "@atlaskit/media-client": "^31.0.0",
139
- "@atlaskit/media-client-react": "^2.6.0",
140
- "@atlaskit/media-common": "^11.7.0",
141
- "@atlaskit/media-file-preview": "^0.9.0",
142
- "@atlaskit/media-picker": "^67.0.0",
143
- "@atlaskit/media-ui": "^27.3.0",
144
- "@atlaskit/media-viewer": "50.0.0",
145
- "@atlaskit/mention": "^23.10.0",
146
- "@atlaskit/menu": "^2.13.0",
147
- "@atlaskit/onboarding": "^12.2.0",
132
+ "@atlaskit/emoji": "^67.13.0",
133
+ "@atlaskit/icon": "^23.5.0",
134
+ "@atlaskit/icon-object": "^6.10.0",
135
+ "@atlaskit/link-datasource": "^3.17.0",
136
+ "@atlaskit/link-picker": "^1.48.0",
137
+ "@atlaskit/media-card": "^78.19.0",
138
+ "@atlaskit/media-client": "^31.1.0",
139
+ "@atlaskit/media-client-react": "^2.7.0",
140
+ "@atlaskit/media-common": "^11.8.0",
141
+ "@atlaskit/media-file-preview": "^0.10.0",
142
+ "@atlaskit/media-picker": "^67.1.0",
143
+ "@atlaskit/media-ui": "^27.4.0",
144
+ "@atlaskit/media-viewer": "50.1.0",
145
+ "@atlaskit/mention": "^23.11.0",
146
+ "@atlaskit/menu": "^2.14.0",
147
+ "@atlaskit/onboarding": "^12.3.0",
148
148
  "@atlaskit/platform-feature-flags": "^0.3.0",
149
- "@atlaskit/popper": "^6.3.0",
150
- "@atlaskit/primitives": "^13.3.0",
151
- "@atlaskit/profilecard": "^21.1.0",
152
- "@atlaskit/section-message": "^6.8.0",
153
- "@atlaskit/smart-card": "^34.7.0",
154
- "@atlaskit/smart-user-picker": "^6.11.0",
155
- "@atlaskit/spinner": "^17.0.0",
156
- "@atlaskit/task-decision": "^17.11.0",
157
- "@atlaskit/textfield": "^6.7.0",
149
+ "@atlaskit/popper": "^6.4.0",
150
+ "@atlaskit/primitives": "^13.4.0",
151
+ "@atlaskit/profilecard": "^22.0.0",
152
+ "@atlaskit/section-message": "^6.9.0",
153
+ "@atlaskit/smart-card": "^34.8.0",
154
+ "@atlaskit/smart-user-picker": "^7.0.0",
155
+ "@atlaskit/spinner": "^17.1.0",
156
+ "@atlaskit/task-decision": "^17.12.0",
157
+ "@atlaskit/textfield": "^6.8.0",
158
158
  "@atlaskit/tmp-editor-statsig": "^2.41.0",
159
- "@atlaskit/tokens": "^3.2.0",
160
- "@atlaskit/tooltip": "^19.0.0",
161
- "@atlaskit/width-detector": "^4.3.0",
159
+ "@atlaskit/tokens": "^3.3.0",
160
+ "@atlaskit/tooltip": "^19.1.0",
161
+ "@atlaskit/width-detector": "^4.4.0",
162
162
  "@babel/runtime": "^7.0.0",
163
163
  "@emotion/react": "^11.7.1",
164
164
  "@sentry/browser": "^6.18.2",
@@ -193,13 +193,13 @@
193
193
  },
194
194
  "devDependencies": {
195
195
  "@af/visual-regression": "*",
196
- "@atlaskit/media-core": "^34.4.0",
197
- "@atlaskit/media-test-helpers": "^34.7.0",
198
- "@atlaskit/util-data-test": "^17.13.0",
196
+ "@atlaskit/media-core": "^34.5.0",
197
+ "@atlaskit/media-test-helpers": "^34.8.0",
198
+ "@atlaskit/util-data-test": "^18.0.0",
199
199
  "@atlaskit/visual-regression": "*",
200
200
  "@testing-library/dom": "^10.1.0",
201
201
  "@testing-library/jest-dom": "^6.4.5",
202
- "@testing-library/react": "^12.1.5",
202
+ "@testing-library/react": "^13.4.0",
203
203
  "@testing-library/react-hooks": "^8.0.1",
204
204
  "@testing-library/user-event": "^14.4.3",
205
205
  "@types/linkify-it": "^3.0.2",
@@ -208,8 +208,8 @@
208
208
  "@types/react-virtualized": "^9.18.12",
209
209
  "enzyme": "^3.10.0",
210
210
  "raf-stub": "^2.0.1",
211
- "react": "^16.8.0",
212
- "react-test-renderer": "^16.8.0",
211
+ "react": "^18.2.0",
212
+ "react-test-renderer": "^18.2.0",
213
213
  "sinon": "^2.2.0",
214
214
  "typescript": "~5.4.2"
215
215
  },
@@ -314,6 +314,9 @@
314
314
  },
315
315
  "platform_renderer_table_sort_btn_aria_hidden": {
316
316
  "type": "boolean"
317
+ },
318
+ "platform_editor_renderer_table_header_styles": {
319
+ "type": "boolean"
317
320
  }
318
321
  }
319
322
  }