@atlaskit/editor-common 74.7.6 → 74.7.8

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 (74) hide show
  1. package/CHANGELOG.md +12 -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/version.json +1 -1
  6. package/dist/es2019/monitoring/error.js +1 -1
  7. package/dist/es2019/styles/shared/table.js +1 -0
  8. package/dist/es2019/ui/DropList/index.js +1 -1
  9. package/dist/es2019/version.json +1 -1
  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/version.json +1 -1
  14. package/dist/types/analytics/utils.d.ts +2 -2
  15. package/dist/types/card/utils.d.ts +2 -2
  16. package/dist/types/core-utils/inside.d.ts +1 -1
  17. package/dist/types/event-dispatcher/index.d.ts +1 -1
  18. package/dist/types/provider-factory/card-provider.d.ts +1 -1
  19. package/dist/types/provider-factory/quick-insert-provider.d.ts +3 -3
  20. package/dist/types/safe-plugin/index.d.ts +1 -1
  21. package/dist/types/selection/types.d.ts +2 -2
  22. package/dist/types/transforms/expand.d.ts +1 -1
  23. package/dist/types/types/annotation/index.d.ts +2 -2
  24. package/dist/types/types/command.d.ts +2 -2
  25. package/dist/types/types/copy-button.d.ts +3 -3
  26. package/dist/types/types/editor-actions.d.ts +4 -4
  27. package/dist/types/types/floating-toolbar.d.ts +1 -1
  28. package/dist/types/types/type-ahead.d.ts +1 -1
  29. package/dist/types/ui/MediaSingle/grid.d.ts +1 -1
  30. package/dist/types/utils/collab.d.ts +1 -1
  31. package/dist/types/utils/document.d.ts +3 -3
  32. package/dist/types/utils/filter/privacy-filter.d.ts +2 -2
  33. package/dist/types/utils/get-performance-options.d.ts +1 -1
  34. package/dist/types/utils/is-text-input.d.ts +1 -1
  35. package/dist/types/utils/nodes.d.ts +3 -3
  36. package/dist/types/utils/plugin-state-factory.d.ts +1 -1
  37. package/dist/types/utils/referentiality.d.ts +1 -1
  38. package/dist/types/utils/table.d.ts +1 -1
  39. package/dist/types/utils/track-unsupported-content.d.ts +2 -2
  40. package/dist/types/utils/validate-using-spec.d.ts +2 -2
  41. package/dist/types/utils/validator.d.ts +1 -1
  42. package/dist/types/with-plugin-state/index.d.ts +1 -1
  43. package/dist/types/with-plugin-state/types.d.ts +1 -1
  44. package/dist/types-ts4.5/analytics/utils.d.ts +2 -2
  45. package/dist/types-ts4.5/card/utils.d.ts +2 -2
  46. package/dist/types-ts4.5/core-utils/inside.d.ts +1 -1
  47. package/dist/types-ts4.5/event-dispatcher/index.d.ts +1 -1
  48. package/dist/types-ts4.5/provider-factory/card-provider.d.ts +1 -1
  49. package/dist/types-ts4.5/provider-factory/quick-insert-provider.d.ts +3 -3
  50. package/dist/types-ts4.5/safe-plugin/index.d.ts +1 -1
  51. package/dist/types-ts4.5/selection/types.d.ts +2 -2
  52. package/dist/types-ts4.5/transforms/expand.d.ts +1 -1
  53. package/dist/types-ts4.5/types/annotation/index.d.ts +2 -2
  54. package/dist/types-ts4.5/types/command.d.ts +2 -2
  55. package/dist/types-ts4.5/types/copy-button.d.ts +3 -3
  56. package/dist/types-ts4.5/types/editor-actions.d.ts +4 -4
  57. package/dist/types-ts4.5/types/floating-toolbar.d.ts +1 -1
  58. package/dist/types-ts4.5/types/type-ahead.d.ts +1 -1
  59. package/dist/types-ts4.5/ui/MediaSingle/grid.d.ts +1 -1
  60. package/dist/types-ts4.5/utils/collab.d.ts +1 -1
  61. package/dist/types-ts4.5/utils/document.d.ts +3 -3
  62. package/dist/types-ts4.5/utils/filter/privacy-filter.d.ts +2 -2
  63. package/dist/types-ts4.5/utils/get-performance-options.d.ts +1 -1
  64. package/dist/types-ts4.5/utils/is-text-input.d.ts +1 -1
  65. package/dist/types-ts4.5/utils/nodes.d.ts +3 -3
  66. package/dist/types-ts4.5/utils/plugin-state-factory.d.ts +1 -1
  67. package/dist/types-ts4.5/utils/referentiality.d.ts +1 -1
  68. package/dist/types-ts4.5/utils/table.d.ts +1 -1
  69. package/dist/types-ts4.5/utils/track-unsupported-content.d.ts +2 -2
  70. package/dist/types-ts4.5/utils/validate-using-spec.d.ts +2 -2
  71. package/dist/types-ts4.5/utils/validator.d.ts +1 -1
  72. package/dist/types-ts4.5/with-plugin-state/index.d.ts +1 -1
  73. package/dist/types-ts4.5/with-plugin-state/types.d.ts +1 -1
  74. package/package.json +3 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 74.7.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`b32b60b7807`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b32b60b7807) - [ux] ED-17462 fix 1px overflow
8
+
9
+ ## 74.7.7
10
+
11
+ ### Patch Changes
12
+
13
+ - [`8493df1e169`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8493df1e169) - NO-ISSUE Moved some purely type dependencies to dev dependencies
14
+
3
15
  ## 74.7.6
4
16
 
5
17
  ### Patch Changes
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
16
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
17
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
18
18
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
19
- var packageVersion = "74.7.6";
19
+ var packageVersion = "74.7.8";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // TODO: Sanitise the URL instead of just removing it
@@ -54,7 +54,7 @@ var TableSharedCssClassName = {
54
54
  };
55
55
  exports.TableSharedCssClassName = TableSharedCssClassName;
56
56
  var tableSharedStyle = function tableSharedStyle(props) {
57
- return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n ", "\n .", " {\n position: relative;\n margin: 0 auto ", "px;\n box-sizing: border-box;\n\n /**\n * Fix block top alignment inside table cells.\n */\n .decisionItemView-content-wrap:first-of-type > div {\n margin-top: 0;\n }\n }\n .", "[data-number-column='true'] {\n padding-left: ", "px;\n clear: both;\n }\n .", " > table {\n margin: ", "px 0 0 0;\n }\n\n .", " > table,\n .", " > table {\n margin: ", "px ", "px 0 0;\n }\n\n /* avoid applying styles to nested tables (possible via extensions) */\n .", " > table,\n .", " > table,\n .", " > table {\n border-collapse: collapse;\n border: ", "px solid\n ", ";\n table-layout: fixed;\n font-size: 1em;\n width: 100%;\n\n &[data-autosize='true'] {\n table-layout: auto;\n }\n\n & {\n * {\n box-sizing: border-box;\n }\n hr {\n box-sizing: content-box;\n }\n\n tbody {\n border-bottom: none;\n }\n th td {\n background-color: ", ";\n }\n th,\n td {\n min-width: ", "px;\n font-weight: normal;\n vertical-align: top;\n border: 1px solid\n ", ";\n border-right-width: 0;\n border-bottom-width: 0;\n padding: ", "px;\n /* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */\n ", "\n\n ", ";\n\n > :first-child:not(style),\n > style:first-child + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + *,\n > style:first-child + .ProseMirror-gapcursor + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + span + *,\n > style:first-child + .ProseMirror-gapcursor + span + * {\n margin-top: 0;\n }\n\n th p:not(:first-of-type),\n td p:not(:first-of-type) {\n margin-top: 12px;\n }\n }\n th {\n background-color: ", ";\n text-align: left;\n\n /* only apply this styling to codeblocks in default background headercells */\n /* TODO this needs to be overhauled as it relies on unsafe selectors */\n &:not([style]):not(.danger) {\n .", ":not(.danger) {\n background-color: ", ";\n\n :not(.", ") {\n box-shadow: 0px 0px 0px 1px\n ", ";\n }\n\n .", " {\n background-image: ", ";\n\n background-color: ", ";\n }\n\n .", " {\n background-color: ", ";\n }\n\n /* this is only relevant to the element taken care of by renderer */\n > [data-ds--code--code-block] {\n background-image: ", "!important;\n\n background-color: ", "!important;\n\n // selector lives inside @atlaskit/code\n --ds--code--line-number-bg-color: ", ";\n }\n }\n }\n }\n }\n }\n"])), (0, _tableCell.tableCellBackgroundStyleOverride)(), TableSharedCssClassName.TABLE_CONTAINER, tableMarginBottom, TableSharedCssClassName.TABLE_CONTAINER, _editorSharedStyles.akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_NODE_WRAPPER, tableMarginTop, TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableMarginTop, tableMarginSides, TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableCellBorderWidth, (0, _components.themed)({
57
+ return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n ", "\n .", " {\n position: relative;\n margin: 0 auto ", "px;\n box-sizing: border-box;\n\n /**\n * Fix block top alignment inside table cells.\n */\n .decisionItemView-content-wrap:first-of-type > div {\n margin-top: 0;\n }\n }\n .", "[data-number-column='true'] {\n padding-left: ", "px;\n clear: both;\n }\n\n .", " > table {\n margin: ", "px 0 0 0;\n }\n\n .", " > table,\n .", " > table {\n margin: ", "px ", "px 0 0;\n }\n\n /* avoid applying styles to nested tables (possible via extensions) */\n .", " > table,\n .", " > table,\n .", " > table {\n border-collapse: collapse;\n border: ", "px solid\n ", ";\n table-layout: fixed;\n font-size: 1em;\n width: 100%;\n\n &[data-autosize='true'] {\n table-layout: auto;\n }\n\n & {\n * {\n box-sizing: border-box;\n }\n hr {\n box-sizing: content-box;\n }\n\n tbody {\n border-bottom: none;\n }\n th td {\n background-color: ", ";\n }\n th,\n td {\n min-width: ", "px;\n font-weight: normal;\n vertical-align: top;\n border: 1px solid\n ", ";\n border-right-width: 0;\n border-bottom-width: 0;\n padding: ", "px;\n /* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */\n ", "\n\n ", ";\n\n > :first-child:not(style),\n > style:first-child + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + *,\n > style:first-child + .ProseMirror-gapcursor + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + span + *,\n > style:first-child + .ProseMirror-gapcursor + span + * {\n margin-top: 0;\n }\n\n th p:not(:first-of-type),\n td p:not(:first-of-type) {\n margin-top: 12px;\n }\n }\n th {\n background-color: ", ";\n text-align: left;\n\n /* only apply this styling to codeblocks in default background headercells */\n /* TODO this needs to be overhauled as it relies on unsafe selectors */\n &:not([style]):not(.danger) {\n .", ":not(.danger) {\n background-color: ", ";\n\n :not(.", ") {\n box-shadow: 0px 0px 0px 1px\n ", ";\n }\n\n .", " {\n background-image: ", ";\n\n background-color: ", ";\n }\n\n .", " {\n background-color: ", ";\n }\n\n /* this is only relevant to the element taken care of by renderer */\n > [data-ds--code--code-block] {\n background-image: ", "!important;\n\n background-color: ", "!important;\n\n // selector lives inside @atlaskit/code\n --ds--code--line-number-bg-color: ", ";\n }\n }\n }\n }\n }\n }\n"])), (0, _tableCell.tableCellBackgroundStyleOverride)(), TableSharedCssClassName.TABLE_CONTAINER, tableMarginBottom, TableSharedCssClassName.TABLE_CONTAINER, _editorSharedStyles.akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_NODE_WRAPPER, tableMarginTop, TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableMarginTop, tableMarginSides, TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableCellBorderWidth, (0, _components.themed)({
58
58
  light: "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"),
59
59
  dark: "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorderDark, ")")
60
60
  })(props), "var(--ds-background-neutral-subtle, white)", tableCellMinWidth, (0, _components.themed)({
@@ -24,7 +24,7 @@ var _templateObject, _templateObject2, _templateObject3;
24
24
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
25
25
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "74.7.6";
27
+ var packageVersion = "74.7.8";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var DropList = /*#__PURE__*/function (_Component) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "74.7.6",
3
+ "version": "74.7.8",
4
4
  "sideEffects": false
5
5
  }
@@ -1,6 +1,6 @@
1
1
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
2
2
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
3
- const packageVersion = "74.7.6";
3
+ const packageVersion = "74.7.8";
4
4
  const sanitiseSentryEvents = (data, _hint) => {
5
5
  // Remove URL as it has UGC
6
6
  // TODO: Sanitise the URL instead of just removing it
@@ -53,6 +53,7 @@ const tableSharedStyle = props => css`
53
53
  padding-left: ${akEditorTableNumberColumnWidth - 1}px;
54
54
  clear: both;
55
55
  }
56
+
56
57
  .${TableSharedCssClassName.TABLE_NODE_WRAPPER} > table {
57
58
  margin: ${tableMarginTop}px 0 0 0;
58
59
  }
@@ -8,7 +8,7 @@ import { themed } from '@atlaskit/theme/components';
8
8
  import { borderRadius } from '@atlaskit/theme/constants';
9
9
  import Layer from '../Layer';
10
10
  const packageName = "@atlaskit/editor-common";
11
- const packageVersion = "74.7.6";
11
+ const packageVersion = "74.7.8";
12
12
  const halfFocusRing = 1;
13
13
  const dropOffset = '0, 8';
14
14
  class DropList extends Component {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "74.7.6",
3
+ "version": "74.7.8",
4
4
  "sideEffects": false
5
5
  }
@@ -6,7 +6,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
6
6
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
7
7
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
8
8
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
9
- var packageVersion = "74.7.6";
9
+ var packageVersion = "74.7.8";
10
10
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
11
11
  // Remove URL as it has UGC
12
12
  // TODO: Sanitise the URL instead of just removing it
@@ -38,7 +38,7 @@ export var TableSharedCssClassName = {
38
38
  TABLE_RESIZER_CONTAINER: "".concat(tablePrefixSelector, "-resizer-container")
39
39
  };
40
40
  var tableSharedStyle = function tableSharedStyle(props) {
41
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n .", " {\n position: relative;\n margin: 0 auto ", "px;\n box-sizing: border-box;\n\n /**\n * Fix block top alignment inside table cells.\n */\n .decisionItemView-content-wrap:first-of-type > div {\n margin-top: 0;\n }\n }\n .", "[data-number-column='true'] {\n padding-left: ", "px;\n clear: both;\n }\n .", " > table {\n margin: ", "px 0 0 0;\n }\n\n .", " > table,\n .", " > table {\n margin: ", "px ", "px 0 0;\n }\n\n /* avoid applying styles to nested tables (possible via extensions) */\n .", " > table,\n .", " > table,\n .", " > table {\n border-collapse: collapse;\n border: ", "px solid\n ", ";\n table-layout: fixed;\n font-size: 1em;\n width: 100%;\n\n &[data-autosize='true'] {\n table-layout: auto;\n }\n\n & {\n * {\n box-sizing: border-box;\n }\n hr {\n box-sizing: content-box;\n }\n\n tbody {\n border-bottom: none;\n }\n th td {\n background-color: ", ";\n }\n th,\n td {\n min-width: ", "px;\n font-weight: normal;\n vertical-align: top;\n border: 1px solid\n ", ";\n border-right-width: 0;\n border-bottom-width: 0;\n padding: ", "px;\n /* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */\n ", "\n\n ", ";\n\n > :first-child:not(style),\n > style:first-child + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + *,\n > style:first-child + .ProseMirror-gapcursor + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + span + *,\n > style:first-child + .ProseMirror-gapcursor + span + * {\n margin-top: 0;\n }\n\n th p:not(:first-of-type),\n td p:not(:first-of-type) {\n margin-top: 12px;\n }\n }\n th {\n background-color: ", ";\n text-align: left;\n\n /* only apply this styling to codeblocks in default background headercells */\n /* TODO this needs to be overhauled as it relies on unsafe selectors */\n &:not([style]):not(.danger) {\n .", ":not(.danger) {\n background-color: ", ";\n\n :not(.", ") {\n box-shadow: 0px 0px 0px 1px\n ", ";\n }\n\n .", " {\n background-image: ", ";\n\n background-color: ", ";\n }\n\n .", " {\n background-color: ", ";\n }\n\n /* this is only relevant to the element taken care of by renderer */\n > [data-ds--code--code-block] {\n background-image: ", "!important;\n\n background-color: ", "!important;\n\n // selector lives inside @atlaskit/code\n --ds--code--line-number-bg-color: ", ";\n }\n }\n }\n }\n }\n }\n"])), tableCellBackgroundStyleOverride(), TableSharedCssClassName.TABLE_CONTAINER, tableMarginBottom, TableSharedCssClassName.TABLE_CONTAINER, akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_NODE_WRAPPER, tableMarginTop, TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableMarginTop, tableMarginSides, TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableCellBorderWidth, themed({
41
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n .", " {\n position: relative;\n margin: 0 auto ", "px;\n box-sizing: border-box;\n\n /**\n * Fix block top alignment inside table cells.\n */\n .decisionItemView-content-wrap:first-of-type > div {\n margin-top: 0;\n }\n }\n .", "[data-number-column='true'] {\n padding-left: ", "px;\n clear: both;\n }\n\n .", " > table {\n margin: ", "px 0 0 0;\n }\n\n .", " > table,\n .", " > table {\n margin: ", "px ", "px 0 0;\n }\n\n /* avoid applying styles to nested tables (possible via extensions) */\n .", " > table,\n .", " > table,\n .", " > table {\n border-collapse: collapse;\n border: ", "px solid\n ", ";\n table-layout: fixed;\n font-size: 1em;\n width: 100%;\n\n &[data-autosize='true'] {\n table-layout: auto;\n }\n\n & {\n * {\n box-sizing: border-box;\n }\n hr {\n box-sizing: content-box;\n }\n\n tbody {\n border-bottom: none;\n }\n th td {\n background-color: ", ";\n }\n th,\n td {\n min-width: ", "px;\n font-weight: normal;\n vertical-align: top;\n border: 1px solid\n ", ";\n border-right-width: 0;\n border-bottom-width: 0;\n padding: ", "px;\n /* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */\n ", "\n\n ", ";\n\n > :first-child:not(style),\n > style:first-child + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + *,\n > style:first-child + .ProseMirror-gapcursor + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + span + *,\n > style:first-child + .ProseMirror-gapcursor + span + * {\n margin-top: 0;\n }\n\n th p:not(:first-of-type),\n td p:not(:first-of-type) {\n margin-top: 12px;\n }\n }\n th {\n background-color: ", ";\n text-align: left;\n\n /* only apply this styling to codeblocks in default background headercells */\n /* TODO this needs to be overhauled as it relies on unsafe selectors */\n &:not([style]):not(.danger) {\n .", ":not(.danger) {\n background-color: ", ";\n\n :not(.", ") {\n box-shadow: 0px 0px 0px 1px\n ", ";\n }\n\n .", " {\n background-image: ", ";\n\n background-color: ", ";\n }\n\n .", " {\n background-color: ", ";\n }\n\n /* this is only relevant to the element taken care of by renderer */\n > [data-ds--code--code-block] {\n background-image: ", "!important;\n\n background-color: ", "!important;\n\n // selector lives inside @atlaskit/code\n --ds--code--line-number-bg-color: ", ";\n }\n }\n }\n }\n }\n }\n"])), tableCellBackgroundStyleOverride(), TableSharedCssClassName.TABLE_CONTAINER, tableMarginBottom, TableSharedCssClassName.TABLE_CONTAINER, akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_NODE_WRAPPER, tableMarginTop, TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableMarginTop, tableMarginSides, TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableCellBorderWidth, themed({
42
42
  light: "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"),
43
43
  dark: "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorderDark, ")")
44
44
  })(props), "var(--ds-background-neutral-subtle, white)", tableCellMinWidth, themed({
@@ -18,7 +18,7 @@ import { themed } from '@atlaskit/theme/components';
18
18
  import { borderRadius } from '@atlaskit/theme/constants';
19
19
  import Layer from '../Layer';
20
20
  var packageName = "@atlaskit/editor-common";
21
- var packageVersion = "74.7.6";
21
+ var packageVersion = "74.7.8";
22
22
  var halfFocusRing = 1;
23
23
  var dropOffset = '0, 8';
24
24
  var DropList = /*#__PURE__*/function (_Component) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "74.7.6",
3
+ "version": "74.7.8",
4
4
  "sideEffects": false
5
5
  }
@@ -1,3 +1,3 @@
1
- import { ReadonlyTransaction, Transaction } from 'prosemirror-state';
2
- import { AnalyticsEventPayloadWithChannel } from './types';
1
+ import type { ReadonlyTransaction, Transaction } from 'prosemirror-state';
2
+ import type { AnalyticsEventPayloadWithChannel } from './types';
3
3
  export declare function getAnalyticsEventsFromTransaction(tr: Transaction | ReadonlyTransaction): AnalyticsEventPayloadWithChannel[];
@@ -1,5 +1,5 @@
1
- import { EditorState, ReadonlyTransaction, Selection, Transaction } from 'prosemirror-state';
2
- import { EditorView } from 'prosemirror-view';
1
+ import type { EditorState, ReadonlyTransaction, Selection, Transaction } from 'prosemirror-state';
2
+ import type { EditorView } from 'prosemirror-view';
3
3
  import { LinkStepMetadata } from '@atlaskit/adf-schema/steps';
4
4
  /**
5
5
  * Records metadata about the user action and input method relating to a transaction
@@ -1,2 +1,2 @@
1
- import { EditorState } from 'prosemirror-state';
1
+ import type { EditorState } from 'prosemirror-state';
2
2
  export declare const insideTable: (state: EditorState) => Boolean;
@@ -1,4 +1,4 @@
1
- import { PluginKey } from 'prosemirror-state';
1
+ import type { PluginKey } from 'prosemirror-state';
2
2
  export interface Listeners {
3
3
  [name: string]: Set<Listener>;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { CardAdf } from '@atlaskit/smart-card';
1
+ import type { CardAdf } from '@atlaskit/smart-card';
2
2
  export type CardAppearance = 'inline' | 'block' | 'embed';
3
3
  export type { CardAdf };
4
4
  export interface CardProvider {
@@ -1,6 +1,6 @@
1
- import { Node } from 'prosemirror-model';
2
- import { EditorState, Transaction } from 'prosemirror-state';
3
- import { TypeAheadItem } from '../types/type-ahead';
1
+ import type { Node } from 'prosemirror-model';
2
+ import type { EditorState, Transaction } from 'prosemirror-state';
3
+ import type { TypeAheadItem } from '../types/type-ahead';
4
4
  export type QuickInsertActionInsert = (node?: Node | Record<string, any> | string, opts?: {
5
5
  selectInlineNode?: boolean;
6
6
  }) => Transaction;
@@ -1,4 +1,4 @@
1
- import { Schema } from 'prosemirror-model';
1
+ import type { Schema } from 'prosemirror-model';
2
2
  import { Plugin, SafePluginSpec } from 'prosemirror-state';
3
3
  export declare class SafePlugin<T = any, S extends Schema = any> extends Plugin {
4
4
  _isATypeSafePlugin: never;
@@ -1,5 +1,5 @@
1
- import { EditorState, Selection, Transaction } from 'prosemirror-state';
2
- import { DecorationSet } from 'prosemirror-view';
1
+ import type { EditorState, Selection, Transaction } from 'prosemirror-state';
2
+ import type { DecorationSet } from 'prosemirror-view';
3
3
  export declare enum RelativeSelectionPos {
4
4
  Before = "Before",
5
5
  Start = "Start",
@@ -1,5 +1,5 @@
1
1
  import { Schema, Slice } from 'prosemirror-model';
2
- import { EditorState, Selection } from 'prosemirror-state';
2
+ import type { EditorState, Selection } from 'prosemirror-state';
3
3
  export declare const findExpand: (state: EditorState, selection?: Selection<any> | null) => import("prosemirror-utils").ContentNodeWithPos | undefined;
4
4
  export declare const transformSliceToRemoveOpenExpand: (slice: Slice, schema: Schema) => Slice;
5
5
  export declare const transformSliceNestedExpandToExpand: (slice: Slice, schema: Schema) => Slice;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { Step } from 'prosemirror-transform';
2
+ import type { Step } from 'prosemirror-transform';
3
3
  import { AnnotationId, AnnotationTypes } from '@atlaskit/adf-schema';
4
- import { JSONDocNode } from '@atlaskit/editor-json-transformer';
4
+ import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
5
5
  import { AnnotationState, AnnotationUpdateEmitter, AnnotationUpdateEvent, AnnotationUpdateEventPayloads, OnAnnotationClickPayload } from './emitter';
6
6
  export type { AnnotationState };
7
7
  export type AnnotationByMatches = {
@@ -1,5 +1,5 @@
1
- import { EditorState, Transaction } from 'prosemirror-state';
2
- import { EditorView } from 'prosemirror-view';
1
+ import type { EditorState, Transaction } from 'prosemirror-state';
2
+ import type { EditorView } from 'prosemirror-view';
3
3
  export type CommandDispatch = (tr: Transaction) => void;
4
4
  export type Command = (state: EditorState, dispatch?: CommandDispatch, view?: EditorView) => boolean;
5
5
  export type HigherOrderCommand = (command: Command) => Command;
@@ -1,6 +1,6 @@
1
- import { MarkType, NodeType } from 'prosemirror-model';
2
- import { EditorState } from 'prosemirror-state';
3
- import { IntlShape } from 'react-intl-next';
1
+ import type { MarkType, NodeType } from 'prosemirror-model';
2
+ import type { EditorState } from 'prosemirror-state';
3
+ import type { IntlShape } from 'react-intl-next';
4
4
  import { Command } from './command';
5
5
  export type MarkOptions = {
6
6
  state: EditorState;
@@ -1,8 +1,8 @@
1
- import { Node } from 'prosemirror-model';
2
- import { EditorView } from 'prosemirror-view';
1
+ import type { Node } from 'prosemirror-model';
2
+ import type { EditorView } from 'prosemirror-view';
3
3
  import type { ResolvedEditorState } from '@atlaskit/collab-provider/types';
4
- import { JSONDocNode } from '@atlaskit/editor-json-transformer';
5
- import { EventDispatcher } from '../event-dispatcher';
4
+ import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
5
+ import type { EventDispatcher } from '../event-dispatcher';
6
6
  export type ContextUpdateHandler = (editorView: EditorView, eventDispatcher: EventDispatcher) => void;
7
7
  export type ReplaceRawValue = Node | object | string;
8
8
  export interface EditorActionsOptions<T = any> {
@@ -1,6 +1,6 @@
1
1
  import type React from 'react';
2
2
  import { Node, NodeType } from 'prosemirror-model';
3
- import { EditorState } from 'prosemirror-state';
3
+ import type { EditorState } from 'prosemirror-state';
4
4
  import { EditorView } from 'prosemirror-view';
5
5
  import { IntlShape } from 'react-intl-next';
6
6
  import type { EmojiId } from '@atlaskit/emoji/types';
@@ -1,6 +1,6 @@
1
1
  import type { ReactElement } from 'react';
2
2
  import { Fragment, Node as PMNode } from 'prosemirror-model';
3
- import { EditorState, Transaction } from 'prosemirror-state';
3
+ import type { EditorState, Transaction } from 'prosemirror-state';
4
4
  import type { TypeAheadPayload } from '../analytics/types/type-ahead';
5
5
  import type { SelectItemMode, TypeAheadAvailableNodes } from '../type-ahead';
6
6
  type TypeAheadForceSelectProps = {
@@ -1,4 +1,4 @@
1
- import { EditorState } from 'prosemirror-state';
1
+ import type { EditorState } from 'prosemirror-state';
2
2
  import { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
3
3
  import { EditorContainerWidth } from '../../types';
4
4
  export declare const layoutSupportsWidth: (layout: MediaSingleLayout) => boolean;
@@ -1,2 +1,2 @@
1
- import { EditorState } from 'prosemirror-state';
1
+ import type { EditorState } from 'prosemirror-state';
2
2
  export declare const getParticipantsCount: (editorState?: EditorState) => any;
@@ -1,8 +1,8 @@
1
1
  import { Node, ResolvedPos, Schema } from 'prosemirror-model';
2
- import { EditorState, ReadonlyTransaction, Transaction } from 'prosemirror-state';
2
+ import type { EditorState, ReadonlyTransaction, Transaction } from 'prosemirror-state';
3
3
  import { DispatchAnalyticsEvent } from '../analytics';
4
- import { ProviderFactory } from '../provider-factory';
5
- import { ReplaceRawValue, Transformer } from '../types';
4
+ import type { ProviderFactory } from '../provider-factory';
5
+ import type { ReplaceRawValue, Transformer } from '../types';
6
6
  type ChangedFn = (node: Node<any>, pos: number, parent: Node<any>, index: number) => boolean | null | undefined | void;
7
7
  export declare const getStepRange: (transaction: Transaction | ReadonlyTransaction) => {
8
8
  from: number;
@@ -1,5 +1,5 @@
1
- import { JSONDocNode } from '@atlaskit/editor-json-transformer';
2
- import { ProviderFactory } from '../../provider-factory';
1
+ import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
2
+ import type { ProviderFactory } from '../../provider-factory';
3
3
  /**
4
4
  * Sanitises a document where some content should not be in the document (e.g. mention names).
5
5
  *
@@ -1,4 +1,4 @@
1
- import { EditorState } from 'prosemirror-state';
1
+ import type { EditorState } from 'prosemirror-state';
2
2
  import type { EditorView } from 'prosemirror-view';
3
3
  import { AnalyticsEventPayload } from '../analytics';
4
4
  export declare function getPerformanceOptions(view: EditorView): {
@@ -1,2 +1,2 @@
1
- import { ReadonlyTransaction, Transaction } from 'prosemirror-state';
1
+ import type { ReadonlyTransaction, Transaction } from 'prosemirror-state';
2
2
  export declare const isTextInput: (tr: Transaction | ReadonlyTransaction) => boolean;
@@ -1,6 +1,6 @@
1
- import { Fragment, MarkType, NodeType, Mark as PMMark, Node as PMNode, ResolvedPos, Schema } from 'prosemirror-model';
2
- import { EditorState, Transaction } from 'prosemirror-state';
3
- import { CardAppearance } from '@atlaskit/smart-card';
1
+ import type { Fragment, MarkType, NodeType, Mark as PMMark, Node as PMNode, ResolvedPos, Schema } from 'prosemirror-model';
2
+ import type { EditorState, Transaction } from 'prosemirror-state';
3
+ import type { CardAppearance } from '@atlaskit/smart-card';
4
4
  /**
5
5
  * Finds all top level nodes affected by the transaction
6
6
  * Uses from/to positions in transaction's steps to work out which nodes will
@@ -1,4 +1,4 @@
1
- import { EditorState, PluginKey, ReadonlyTransaction, SafeStateField, Transaction } from 'prosemirror-state';
1
+ import type { EditorState, PluginKey, ReadonlyTransaction, SafeStateField, Transaction } from 'prosemirror-state';
2
2
  import { Dispatch } from '../event-dispatcher';
3
3
  import { Command } from '../types';
4
4
  export type Reducer<PluginState, Action> = (state: PluginState, action: Action) => PluginState;
@@ -1,5 +1,5 @@
1
1
  import { Node as PMNode } from 'prosemirror-model';
2
- import { EditorState } from 'prosemirror-state';
2
+ import type { EditorState } from 'prosemirror-state';
3
3
  import type { FragmentAttributes } from '@atlaskit/adf-schema/schema';
4
4
  import { ConfirmDialogChildInfo } from '../types';
5
5
  type LocalId = FragmentAttributes['localId'];
@@ -1,4 +1,4 @@
1
- import { Node as PmNode } from 'prosemirror-model';
1
+ import type { Node as PmNode } from 'prosemirror-model';
2
2
  export declare function calcTableColumnWidths(node: PmNode): number[];
3
3
  export declare function hasMergedCell(tableNode: PmNode): boolean;
4
4
  export declare function convertProsemirrorTableNodeToArrayOfRows(tableNode: PmNode): Array<Array<PmNode | null>>;
@@ -1,6 +1,6 @@
1
- import { Node as PMNode, Schema } from 'prosemirror-model';
1
+ import type { Node as PMNode, Schema } from 'prosemirror-model';
2
2
  import { ACTION_SUBJECT_ID } from '../analytics';
3
- import { UnsupportedContentPayload, UnsupportedContentTooltipPayload } from './analytics';
3
+ import type { UnsupportedContentPayload, UnsupportedContentTooltipPayload } from './analytics';
4
4
  type DispatchAnalyticsEvent = (payload: UnsupportedContentPayload) => void;
5
5
  type DispatchAnalyticsEventTooltip = (payload: UnsupportedContentTooltipPayload) => void;
6
6
  export declare const findAndTrackUnsupportedContentNodes: (node: PMNode, schema: Schema, dispatchAnalyticsEvent: DispatchAnalyticsEvent, ancestorHierarchy?: string) => void;
@@ -1,8 +1,8 @@
1
- import { Schema } from 'prosemirror-model';
1
+ import type { Schema } from 'prosemirror-model';
2
2
  import type { ADFEntity } from '@atlaskit/adf-utils/types';
3
3
  import type { ErrorCallbackOptions, Validate, ValidationError } from '@atlaskit/adf-utils/validatorTypes';
4
4
  export declare const UNSUPPORTED_NODE_ATTRIBUTE = "unsupportedNodeAttribute";
5
- import { UnsupportedContentPayload } from './analytics';
5
+ import type { UnsupportedContentPayload } from './analytics';
6
6
  export type DispatchAnalyticsEvent = (event: UnsupportedContentPayload) => void;
7
7
  export declare const validationErrorHandler: (entity: ADFEntity, error: ValidationError, options: ErrorCallbackOptions, marks: string[], validate: Validate, dispatchAnalyticsEvent?: DispatchAnalyticsEvent) => ADFEntity | {
8
8
  type: string;
@@ -1,4 +1,4 @@
1
- import { Mark as PMMark, Schema } from 'prosemirror-model';
1
+ import type { Mark as PMMark, Schema } from 'prosemirror-model';
2
2
  export declare const ADFStages: {
3
3
  readonly FINAL: "final";
4
4
  readonly STAGE_0: "stage0";
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { PluginKey } from 'prosemirror-state';
3
+ import type { PluginKey } from 'prosemirror-state';
4
4
  import { EditorView } from 'prosemirror-view';
5
5
  import { EventDispatcher } from '../event-dispatcher';
6
6
  import type { NamedPluginKeys, NamedPluginStates } from './types';
@@ -1,4 +1,4 @@
1
- import { PluginKey } from 'prosemirror-state';
1
+ import type { PluginKey } from 'prosemirror-state';
2
2
  export type NamedPluginKeys = Readonly<{
3
3
  [stateName: string]: PluginKey;
4
4
  }>;
@@ -1,3 +1,3 @@
1
- import { ReadonlyTransaction, Transaction } from 'prosemirror-state';
2
- import { AnalyticsEventPayloadWithChannel } from './types';
1
+ import type { ReadonlyTransaction, Transaction } from 'prosemirror-state';
2
+ import type { AnalyticsEventPayloadWithChannel } from './types';
3
3
  export declare function getAnalyticsEventsFromTransaction(tr: Transaction | ReadonlyTransaction): AnalyticsEventPayloadWithChannel[];
@@ -1,5 +1,5 @@
1
- import { EditorState, ReadonlyTransaction, Selection, Transaction } from 'prosemirror-state';
2
- import { EditorView } from 'prosemirror-view';
1
+ import type { EditorState, ReadonlyTransaction, Selection, Transaction } from 'prosemirror-state';
2
+ import type { EditorView } from 'prosemirror-view';
3
3
  import { LinkStepMetadata } from '@atlaskit/adf-schema/steps';
4
4
  /**
5
5
  * Records metadata about the user action and input method relating to a transaction
@@ -1,2 +1,2 @@
1
- import { EditorState } from 'prosemirror-state';
1
+ import type { EditorState } from 'prosemirror-state';
2
2
  export declare const insideTable: (state: EditorState) => Boolean;
@@ -1,4 +1,4 @@
1
- import { PluginKey } from 'prosemirror-state';
1
+ import type { PluginKey } from 'prosemirror-state';
2
2
  export interface Listeners {
3
3
  [name: string]: Set<Listener>;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { CardAdf } from '@atlaskit/smart-card';
1
+ import type { CardAdf } from '@atlaskit/smart-card';
2
2
  export type CardAppearance = 'inline' | 'block' | 'embed';
3
3
  export type { CardAdf };
4
4
  export interface CardProvider {
@@ -1,6 +1,6 @@
1
- import { Node } from 'prosemirror-model';
2
- import { EditorState, Transaction } from 'prosemirror-state';
3
- import { TypeAheadItem } from '../types/type-ahead';
1
+ import type { Node } from 'prosemirror-model';
2
+ import type { EditorState, Transaction } from 'prosemirror-state';
3
+ import type { TypeAheadItem } from '../types/type-ahead';
4
4
  export type QuickInsertActionInsert = (node?: Node | Record<string, any> | string, opts?: {
5
5
  selectInlineNode?: boolean;
6
6
  }) => Transaction;
@@ -1,4 +1,4 @@
1
- import { Schema } from 'prosemirror-model';
1
+ import type { Schema } from 'prosemirror-model';
2
2
  import { Plugin, SafePluginSpec } from 'prosemirror-state';
3
3
  export declare class SafePlugin<T = any, S extends Schema = any> extends Plugin {
4
4
  _isATypeSafePlugin: never;
@@ -1,5 +1,5 @@
1
- import { EditorState, Selection, Transaction } from 'prosemirror-state';
2
- import { DecorationSet } from 'prosemirror-view';
1
+ import type { EditorState, Selection, Transaction } from 'prosemirror-state';
2
+ import type { DecorationSet } from 'prosemirror-view';
3
3
  export declare enum RelativeSelectionPos {
4
4
  Before = "Before",
5
5
  Start = "Start",
@@ -1,5 +1,5 @@
1
1
  import { Schema, Slice } from 'prosemirror-model';
2
- import { EditorState, Selection } from 'prosemirror-state';
2
+ import type { EditorState, Selection } from 'prosemirror-state';
3
3
  export declare const findExpand: (state: EditorState, selection?: Selection<any> | null) => import("prosemirror-utils").ContentNodeWithPos | undefined;
4
4
  export declare const transformSliceToRemoveOpenExpand: (slice: Slice, schema: Schema) => Slice;
5
5
  export declare const transformSliceNestedExpandToExpand: (slice: Slice, schema: Schema) => Slice;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { Step } from 'prosemirror-transform';
2
+ import type { Step } from 'prosemirror-transform';
3
3
  import { AnnotationId, AnnotationTypes } from '@atlaskit/adf-schema';
4
- import { JSONDocNode } from '@atlaskit/editor-json-transformer';
4
+ import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
5
5
  import { AnnotationState, AnnotationUpdateEmitter, AnnotationUpdateEvent, AnnotationUpdateEventPayloads, OnAnnotationClickPayload } from './emitter';
6
6
  export type { AnnotationState };
7
7
  export type AnnotationByMatches = {
@@ -1,5 +1,5 @@
1
- import { EditorState, Transaction } from 'prosemirror-state';
2
- import { EditorView } from 'prosemirror-view';
1
+ import type { EditorState, Transaction } from 'prosemirror-state';
2
+ import type { EditorView } from 'prosemirror-view';
3
3
  export type CommandDispatch = (tr: Transaction) => void;
4
4
  export type Command = (state: EditorState, dispatch?: CommandDispatch, view?: EditorView) => boolean;
5
5
  export type HigherOrderCommand = (command: Command) => Command;
@@ -1,6 +1,6 @@
1
- import { MarkType, NodeType } from 'prosemirror-model';
2
- import { EditorState } from 'prosemirror-state';
3
- import { IntlShape } from 'react-intl-next';
1
+ import type { MarkType, NodeType } from 'prosemirror-model';
2
+ import type { EditorState } from 'prosemirror-state';
3
+ import type { IntlShape } from 'react-intl-next';
4
4
  import { Command } from './command';
5
5
  export type MarkOptions = {
6
6
  state: EditorState;
@@ -1,8 +1,8 @@
1
- import { Node } from 'prosemirror-model';
2
- import { EditorView } from 'prosemirror-view';
1
+ import type { Node } from 'prosemirror-model';
2
+ import type { EditorView } from 'prosemirror-view';
3
3
  import type { ResolvedEditorState } from '@atlaskit/collab-provider/types';
4
- import { JSONDocNode } from '@atlaskit/editor-json-transformer';
5
- import { EventDispatcher } from '../event-dispatcher';
4
+ import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
5
+ import type { EventDispatcher } from '../event-dispatcher';
6
6
  export type ContextUpdateHandler = (editorView: EditorView, eventDispatcher: EventDispatcher) => void;
7
7
  export type ReplaceRawValue = Node | object | string;
8
8
  export interface EditorActionsOptions<T = any> {
@@ -1,6 +1,6 @@
1
1
  import type React from 'react';
2
2
  import { Node, NodeType } from 'prosemirror-model';
3
- import { EditorState } from 'prosemirror-state';
3
+ import type { EditorState } from 'prosemirror-state';
4
4
  import { EditorView } from 'prosemirror-view';
5
5
  import { IntlShape } from 'react-intl-next';
6
6
  import type { EmojiId } from '@atlaskit/emoji/types';
@@ -1,6 +1,6 @@
1
1
  import type { ReactElement } from 'react';
2
2
  import { Fragment, Node as PMNode } from 'prosemirror-model';
3
- import { EditorState, Transaction } from 'prosemirror-state';
3
+ import type { EditorState, Transaction } from 'prosemirror-state';
4
4
  import type { TypeAheadPayload } from '../analytics/types/type-ahead';
5
5
  import type { SelectItemMode, TypeAheadAvailableNodes } from '../type-ahead';
6
6
  type TypeAheadForceSelectProps = {
@@ -1,4 +1,4 @@
1
- import { EditorState } from 'prosemirror-state';
1
+ import type { EditorState } from 'prosemirror-state';
2
2
  import { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
3
3
  import { EditorContainerWidth } from '../../types';
4
4
  export declare const layoutSupportsWidth: (layout: MediaSingleLayout) => boolean;
@@ -1,2 +1,2 @@
1
- import { EditorState } from 'prosemirror-state';
1
+ import type { EditorState } from 'prosemirror-state';
2
2
  export declare const getParticipantsCount: (editorState?: EditorState) => any;
@@ -1,8 +1,8 @@
1
1
  import { Node, ResolvedPos, Schema } from 'prosemirror-model';
2
- import { EditorState, ReadonlyTransaction, Transaction } from 'prosemirror-state';
2
+ import type { EditorState, ReadonlyTransaction, Transaction } from 'prosemirror-state';
3
3
  import { DispatchAnalyticsEvent } from '../analytics';
4
- import { ProviderFactory } from '../provider-factory';
5
- import { ReplaceRawValue, Transformer } from '../types';
4
+ import type { ProviderFactory } from '../provider-factory';
5
+ import type { ReplaceRawValue, Transformer } from '../types';
6
6
  type ChangedFn = (node: Node<any>, pos: number, parent: Node<any>, index: number) => boolean | null | undefined | void;
7
7
  export declare const getStepRange: (transaction: Transaction | ReadonlyTransaction) => {
8
8
  from: number;
@@ -1,5 +1,5 @@
1
- import { JSONDocNode } from '@atlaskit/editor-json-transformer';
2
- import { ProviderFactory } from '../../provider-factory';
1
+ import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
2
+ import type { ProviderFactory } from '../../provider-factory';
3
3
  /**
4
4
  * Sanitises a document where some content should not be in the document (e.g. mention names).
5
5
  *
@@ -1,4 +1,4 @@
1
- import { EditorState } from 'prosemirror-state';
1
+ import type { EditorState } from 'prosemirror-state';
2
2
  import type { EditorView } from 'prosemirror-view';
3
3
  import { AnalyticsEventPayload } from '../analytics';
4
4
  export declare function getPerformanceOptions(view: EditorView): {
@@ -1,2 +1,2 @@
1
- import { ReadonlyTransaction, Transaction } from 'prosemirror-state';
1
+ import type { ReadonlyTransaction, Transaction } from 'prosemirror-state';
2
2
  export declare const isTextInput: (tr: Transaction | ReadonlyTransaction) => boolean;
@@ -1,6 +1,6 @@
1
- import { Fragment, MarkType, NodeType, Mark as PMMark, Node as PMNode, ResolvedPos, Schema } from 'prosemirror-model';
2
- import { EditorState, Transaction } from 'prosemirror-state';
3
- import { CardAppearance } from '@atlaskit/smart-card';
1
+ import type { Fragment, MarkType, NodeType, Mark as PMMark, Node as PMNode, ResolvedPos, Schema } from 'prosemirror-model';
2
+ import type { EditorState, Transaction } from 'prosemirror-state';
3
+ import type { CardAppearance } from '@atlaskit/smart-card';
4
4
  /**
5
5
  * Finds all top level nodes affected by the transaction
6
6
  * Uses from/to positions in transaction's steps to work out which nodes will
@@ -1,4 +1,4 @@
1
- import { EditorState, PluginKey, ReadonlyTransaction, SafeStateField, Transaction } from 'prosemirror-state';
1
+ import type { EditorState, PluginKey, ReadonlyTransaction, SafeStateField, Transaction } from 'prosemirror-state';
2
2
  import { Dispatch } from '../event-dispatcher';
3
3
  import { Command } from '../types';
4
4
  export type Reducer<PluginState, Action> = (state: PluginState, action: Action) => PluginState;
@@ -1,5 +1,5 @@
1
1
  import { Node as PMNode } from 'prosemirror-model';
2
- import { EditorState } from 'prosemirror-state';
2
+ import type { EditorState } from 'prosemirror-state';
3
3
  import type { FragmentAttributes } from '@atlaskit/adf-schema/schema';
4
4
  import { ConfirmDialogChildInfo } from '../types';
5
5
  type LocalId = FragmentAttributes['localId'];
@@ -1,4 +1,4 @@
1
- import { Node as PmNode } from 'prosemirror-model';
1
+ import type { Node as PmNode } from 'prosemirror-model';
2
2
  export declare function calcTableColumnWidths(node: PmNode): number[];
3
3
  export declare function hasMergedCell(tableNode: PmNode): boolean;
4
4
  export declare function convertProsemirrorTableNodeToArrayOfRows(tableNode: PmNode): Array<Array<PmNode | null>>;
@@ -1,6 +1,6 @@
1
- import { Node as PMNode, Schema } from 'prosemirror-model';
1
+ import type { Node as PMNode, Schema } from 'prosemirror-model';
2
2
  import { ACTION_SUBJECT_ID } from '../analytics';
3
- import { UnsupportedContentPayload, UnsupportedContentTooltipPayload } from './analytics';
3
+ import type { UnsupportedContentPayload, UnsupportedContentTooltipPayload } from './analytics';
4
4
  type DispatchAnalyticsEvent = (payload: UnsupportedContentPayload) => void;
5
5
  type DispatchAnalyticsEventTooltip = (payload: UnsupportedContentTooltipPayload) => void;
6
6
  export declare const findAndTrackUnsupportedContentNodes: (node: PMNode, schema: Schema, dispatchAnalyticsEvent: DispatchAnalyticsEvent, ancestorHierarchy?: string) => void;
@@ -1,8 +1,8 @@
1
- import { Schema } from 'prosemirror-model';
1
+ import type { Schema } from 'prosemirror-model';
2
2
  import type { ADFEntity } from '@atlaskit/adf-utils/types';
3
3
  import type { ErrorCallbackOptions, Validate, ValidationError } from '@atlaskit/adf-utils/validatorTypes';
4
4
  export declare const UNSUPPORTED_NODE_ATTRIBUTE = "unsupportedNodeAttribute";
5
- import { UnsupportedContentPayload } from './analytics';
5
+ import type { UnsupportedContentPayload } from './analytics';
6
6
  export type DispatchAnalyticsEvent = (event: UnsupportedContentPayload) => void;
7
7
  export declare const validationErrorHandler: (entity: ADFEntity, error: ValidationError, options: ErrorCallbackOptions, marks: string[], validate: Validate, dispatchAnalyticsEvent?: DispatchAnalyticsEvent) => ADFEntity | {
8
8
  type: string;
@@ -1,4 +1,4 @@
1
- import { Mark as PMMark, Schema } from 'prosemirror-model';
1
+ import type { Mark as PMMark, Schema } from 'prosemirror-model';
2
2
  export declare const ADFStages: {
3
3
  readonly FINAL: "final";
4
4
  readonly STAGE_0: "stage0";
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { PluginKey } from 'prosemirror-state';
3
+ import type { PluginKey } from 'prosemirror-state';
4
4
  import { EditorView } from 'prosemirror-view';
5
5
  import { EventDispatcher } from '../event-dispatcher';
6
6
  import type { NamedPluginKeys, NamedPluginStates } from './types';
@@ -1,4 +1,4 @@
1
- import { PluginKey } from 'prosemirror-state';
1
+ import type { PluginKey } from 'prosemirror-state';
2
2
  export type NamedPluginKeys = Readonly<{
3
3
  [stateName: string]: PluginKey;
4
4
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "74.7.6",
3
+ "version": "74.7.8",
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/"
@@ -81,7 +81,6 @@
81
81
  "@atlaskit/code": "^14.6.0",
82
82
  "@atlaskit/codemod-utils": "^4.2.0",
83
83
  "@atlaskit/collab-provider": "^9.2.0",
84
- "@atlaskit/editor-json-transformer": "^8.9.0",
85
84
  "@atlaskit/editor-palette": "1.5.0",
86
85
  "@atlaskit/editor-shared-styles": "^2.4.0",
87
86
  "@atlaskit/emoji": "^67.4.0",
@@ -94,11 +93,10 @@
94
93
  "@atlaskit/menu": "^1.7.0",
95
94
  "@atlaskit/platform-feature-flags": "^0.2.0",
96
95
  "@atlaskit/profilecard": "^19.4.0",
97
- "@atlaskit/smart-card": "^26.5.0",
98
96
  "@atlaskit/smart-user-picker": "^6.1.0",
99
97
  "@atlaskit/task-decision": "^17.6.0",
100
98
  "@atlaskit/theme": "^12.5.0",
101
- "@atlaskit/tokens": "^1.6.0",
99
+ "@atlaskit/tokens": "^1.8.0",
102
100
  "@atlaskit/tooltip": "^17.8.0",
103
101
  "@atlaskit/ufo": "^0.2.0",
104
102
  "@atlaskit/width-detector": "^4.1.0",
@@ -148,6 +146,7 @@
148
146
  "@atlaskit/editor-test-helpers": "^18.6.0",
149
147
  "@atlaskit/media-core": "^34.1.0",
150
148
  "@atlaskit/media-test-helpers": "^33.0.0",
149
+ "@atlaskit/smart-card": "^26.5.0",
151
150
  "@atlaskit/util-data-test": "^17.8.0",
152
151
  "@atlaskit/visual-regression": "*",
153
152
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",