@atlaskit/editor-common 76.27.7 → 76.27.9

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 76.27.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [#61048](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61048) [`f70a1b67acf4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f70a1b67acf4) - [ED-19879] Add zero width space after inline nodes to fix android bug where pressing backspace on inline nodes
8
+ in Android inserts a slice of inline node's string.
9
+
10
+ ## 76.27.8
11
+
12
+ ### Patch Changes
13
+
14
+ - [#61923](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61923) [`04e38cfe9e90`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/04e38cfe9e90) - Remove legacy theming logic from all Editor plugin packages. Theming is still available via the @atlaskit/tokens package.
15
+ - Updated dependencies
16
+
3
17
  ## 76.27.7
4
18
 
5
19
  ### 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 = "76.27.7";
19
+ var packageVersion = "76.27.9";
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
@@ -180,7 +180,12 @@ function getPortalChildren(_ref2) {
180
180
  ,
181
181
  getPos: nodeViewParams.getPos,
182
182
  node: currentNode
183
- }, extraComponentProps)), (0, _react2.jsx)("span", {
183
+ }, extraComponentProps)), _utils.browser.android ? (0, _react2.jsx)("span", {
184
+ className: "zeroWidthSpaceContainer",
185
+ contentEditable: "false"
186
+ }, (0, _react2.jsx)("span", {
187
+ className: "".concat(inlineNodeViewClassname, "AddZeroWidthSpace")
188
+ }), _utils.ZERO_WIDTH_SPACE) : (0, _react2.jsx)("span", {
184
189
  className: "".concat(inlineNodeViewClassname, "AddZeroWidthSpace")
185
190
  }));
186
191
  };
@@ -11,6 +11,6 @@ var _typography = require("@atlaskit/theme/typography");
11
11
  var _templateObject;
12
12
  // @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
13
13
  // text sizing prototype: http://proto/fabricrender/
14
- var headingsSharedStyles = exports.headingsSharedStyles = function headingsSharedStyles(props) {
15
- return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n & h1 {\n ", ";\n margin-bottom: 0;\n margin-top: 1.667em;\n }\n\n & h2 {\n ", ";\n margin-top: 1.8em;\n margin-bottom: 0;\n }\n\n & h3 {\n ", ";\n margin-top: 2em;\n margin-bottom: 0;\n }\n\n & h4 {\n ", ";\n margin-top: 1.357em;\n }\n\n & h5 {\n ", ";\n margin-top: 1.667em;\n text-transform: none;\n }\n\n & h6 {\n ", ";\n margin-top: 1.455em;\n text-transform: none;\n }\n"])), (0, _typography.h700)(props), (0, _typography.h600)(props), (0, _typography.h500)(props), (0, _typography.h400)(props), (0, _typography.h300)(props), (0, _typography.h100)(props));
14
+ var headingsSharedStyles = exports.headingsSharedStyles = function headingsSharedStyles() {
15
+ return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n & h1 {\n ", ";\n margin-bottom: 0;\n margin-top: 1.667em;\n }\n\n & h2 {\n ", ";\n margin-top: 1.8em;\n margin-bottom: 0;\n }\n\n & h3 {\n ", ";\n margin-top: 2em;\n margin-bottom: 0;\n }\n\n & h4 {\n ", ";\n margin-top: 1.357em;\n }\n\n & h5 {\n ", ";\n margin-top: 1.667em;\n text-transform: none;\n }\n\n & h6 {\n ", ";\n margin-top: 1.455em;\n text-transform: none;\n }\n"])), (0, _typography.h700)(), (0, _typography.h600)(), (0, _typography.h500)(), (0, _typography.h400)(), (0, _typography.h300)(), (0, _typography.h100)());
16
16
  };
@@ -9,13 +9,10 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
9
9
  var _react = require("@emotion/react");
10
10
  var _adfSchema = require("@atlaskit/adf-schema");
11
11
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
12
- var _colors = require("@atlaskit/theme/colors");
13
- var _components = require("@atlaskit/theme/components");
14
12
  var _browser = _interopRequireDefault(require("../../utils/browser"));
15
13
  var _codeBlock = require("./code-block");
16
14
  var _tableCell = require("./tableCell");
17
15
  var _templateObject;
18
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
19
16
  var tableMarginTop = exports.tableMarginTop = 24;
20
17
  var tableMarginBottom = exports.tableMarginBottom = 16;
21
18
  var tableMarginTopWithControl = exports.tableMarginTopWithControl = 14;
@@ -46,46 +43,14 @@ var TableSharedCssClassName = exports.TableSharedCssClassName = {
46
43
  TABLE_COLUMN_CONTROLS_DECORATIONS: "".concat(_adfSchema.tablePrefixSelector, "-column-controls-decoration"),
47
44
  TABLE_RESIZER_CONTAINER: "".concat(_adfSchema.tablePrefixSelector, "-resizer-container")
48
45
  };
49
- var tableSharedStyle = exports.tableSharedStyle = function tableSharedStyle(props) {
50
- 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 .", " {\n will-change: width, margin-left;\n }\n\n .", " table {\n will-change: width;\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_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, 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)({
51
- light: "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"),
52
- dark: "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorderDark, ")")
53
- })(props), "var(--ds-background-neutral-subtle, white)", tableCellMinWidth, (0, _components.themed)({
54
- light: "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"),
55
- dark: "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorderDark, ")")
56
- })(props), tableCellPadding, _browser.default.gecko || _browser.default.ie || _browser.default.mac && _browser.default.chrome ? 'background-clip: padding-box;' : '', (0, _components.themed)({
57
- dark: _editorSharedStyles.getTableCellBackgroundDarkModeColors
58
- })(props), (0, _components.themed)({
59
- light: "var(--ds-background-accent-gray-subtlest, ".concat(_editorSharedStyles.akEditorTableToolbar, ")"),
60
- dark: "var(--ds-background-accent-gray-subtlest, ".concat(_editorSharedStyles.akEditorTableToolbarDark, ")")
61
- })(props), _codeBlock.CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, (0, _components.themed)({
62
- light: "var(--ds-surface-raised, rgb(235, 237, 240))",
63
- dark: "var(--ds-surface-raised, rgb(36, 47, 66))"
64
- })(props), _editorSharedStyles.akEditorSelectedNodeClassName, "var(--ds-border, transparent)", _codeBlock.CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, (0, _editorSharedStyles.overflowShadow)({
65
- background: (0, _components.themed)({
66
- light: "var(--ds-background-neutral, rgb(235, 237, 240))",
67
- dark: "var(--ds-background-neutral, rgb(36, 47, 66))"
68
- })(props),
46
+ var tableSharedStyle = exports.tableSharedStyle = function tableSharedStyle() {
47
+ return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n ", "\n .", " {\n position: relative;\n margin: 0 auto ", ";\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 .", " {\n will-change: width, margin-left;\n }\n\n .", " table {\n will-change: width;\n }\n\n .", " > table {\n margin: ", " 0 0 0;\n }\n\n .", " > table,\n .", " > table {\n margin: ", " ", " 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: ", ";\n /* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */\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: ", ";\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, "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-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"), "var(--ds-space-100, 8px)", _browser.default.gecko || _browser.default.ie || _browser.default.mac && _browser.default.chrome ? 'background-clip: padding-box;' : '', "var(--ds-space-150, 12px)", "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)({
48
+ background: "var(--ds-background-neutral, rgb(235, 237, 240))",
69
49
  leftCoverWidth: "var(--ds-space-300, 24px)"
70
- }), (0, _components.themed)({
71
- light: "var(--ds-background-neutral, rgb(235, 237, 240))",
72
- dark: "var(--ds-background-neutral, rgb(36, 47, 66))"
73
- })(props), _codeBlock.CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, (0, _components.themed)({
74
- light: "var(--ds-background-neutral, rgb(226, 229, 233))",
75
- dark: "var(--ds-background-neutral, ".concat(_colors.DN20, ")")
76
- })(props), (0, _editorSharedStyles.overflowShadow)({
77
- background: (0, _components.themed)({
78
- light: "var(--ds-background-neutral, rgb(235, 237, 240))",
79
- dark: "var(--ds-background-neutral, rgb(36, 47, 66))"
80
- })(props),
50
+ }), "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)({
51
+ background: "var(--ds-background-neutral, rgb(235, 237, 240))",
81
52
  leftCoverWidth: "var(--ds-space-300, 24px)"
82
- }), (0, _components.themed)({
83
- light: "var(--ds-background-neutral, rgb(235, 237, 240))",
84
- dark: "var(--ds-background-neutral, rgb(36, 47, 66))"
85
- })(props), (0, _components.themed)({
86
- light: "var(--ds-background-neutral, rgb(226, 229, 233))",
87
- dark: "var(--ds-background-neutral, ".concat(_colors.DN20, ")")
88
- })(props));
53
+ }), "var(--ds-background-neutral, rgb(235, 237, 240))", "var(--ds-background-neutral, rgb(226, 229, 233))");
89
54
  };
90
55
  var calcTableWidth = exports.calcTableWidth = function calcTableWidth(layout, containerWidth) {
91
56
  var addControllerPadding = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
@@ -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 = "76.27.7";
27
+ var packageVersion = "76.27.9";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var DropList = /*#__PURE__*/function (_Component) {
@@ -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 = "76.27.7";
3
+ const packageVersion = "76.27.9";
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
@@ -4,6 +4,7 @@ import React from 'react';
4
4
  import { jsx } from '@emotion/react';
5
5
  import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '../analytics';
6
6
  import { ErrorBoundary } from '../ui/ErrorBoundary';
7
+ import { browser } from '../utils';
7
8
  import { analyticsEventKey, getPerformanceOptions, startMeasureReactNodeViewRendered, stopMeasureReactNodeViewRendered, ZERO_WIDTH_SPACE } from '../utils';
8
9
  export const inlineNodeViewClassname = 'inlineNodeView';
9
10
  function createNodeView({
@@ -174,7 +175,12 @@ function getPortalChildren({
174
175
  ,
175
176
  getPos: nodeViewParams.getPos,
176
177
  node: currentNode
177
- }, extraComponentProps)), jsx("span", {
178
+ }, extraComponentProps)), browser.android ? jsx("span", {
179
+ className: `zeroWidthSpaceContainer`,
180
+ contentEditable: "false"
181
+ }, jsx("span", {
182
+ className: `${inlineNodeViewClassname}AddZeroWidthSpace`
183
+ }), ZERO_WIDTH_SPACE) : jsx("span", {
178
184
  className: `${inlineNodeViewClassname}AddZeroWidthSpace`
179
185
  }));
180
186
  };
@@ -3,38 +3,38 @@ import { h100, h300, h400, h500, h600, h700 } from '@atlaskit/theme/typography';
3
3
 
4
4
  // @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
5
5
  // text sizing prototype: http://proto/fabricrender/
6
- export const headingsSharedStyles = props => css`
6
+ export const headingsSharedStyles = () => css`
7
7
  & h1 {
8
- ${h700(props)};
8
+ ${h700()};
9
9
  margin-bottom: 0;
10
10
  margin-top: 1.667em;
11
11
  }
12
12
 
13
13
  & h2 {
14
- ${h600(props)};
14
+ ${h600()};
15
15
  margin-top: 1.8em;
16
16
  margin-bottom: 0;
17
17
  }
18
18
 
19
19
  & h3 {
20
- ${h500(props)};
20
+ ${h500()};
21
21
  margin-top: 2em;
22
22
  margin-bottom: 0;
23
23
  }
24
24
 
25
25
  & h4 {
26
- ${h400(props)};
26
+ ${h400()};
27
27
  margin-top: 1.357em;
28
28
  }
29
29
 
30
30
  & h5 {
31
- ${h300(props)};
31
+ ${h300()};
32
32
  margin-top: 1.667em;
33
33
  text-transform: none;
34
34
  }
35
35
 
36
36
  & h6 {
37
- ${h100(props)};
37
+ ${h100()};
38
38
  margin-top: 1.455em;
39
39
  text-transform: none;
40
40
  }
@@ -1,10 +1,6 @@
1
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
2
-
3
1
  import { css } from '@emotion/react';
4
2
  import { tableCellContentDomSelector, tableCellSelector, tableHeaderSelector, tablePrefixSelector } from '@atlaskit/adf-schema';
5
- import { akEditorBreakoutPadding, akEditorFullWidthLayoutWidth, akEditorSelectedNodeClassName, akEditorTableBorder, akEditorTableBorderDark, akEditorTableNumberColumnWidth, akEditorTableToolbar, akEditorTableToolbarDark, akEditorWideLayoutWidth, getTableCellBackgroundDarkModeColors, overflowShadow } from '@atlaskit/editor-shared-styles';
6
- import { DN20 } from '@atlaskit/theme/colors';
7
- import { themed } from '@atlaskit/theme/components';
3
+ import { akEditorBreakoutPadding, akEditorFullWidthLayoutWidth, akEditorSelectedNodeClassName, akEditorTableBorder, akEditorTableNumberColumnWidth, akEditorTableToolbar, akEditorWideLayoutWidth, overflowShadow } from '@atlaskit/editor-shared-styles';
8
4
  import browser from '../../utils/browser';
9
5
  import { CodeBlockSharedCssClassName } from './code-block';
10
6
  import { tableCellBackgroundStyleOverride } from './tableCell';
@@ -38,11 +34,11 @@ export const TableSharedCssClassName = {
38
34
  TABLE_COLUMN_CONTROLS_DECORATIONS: `${tablePrefixSelector}-column-controls-decoration`,
39
35
  TABLE_RESIZER_CONTAINER: `${tablePrefixSelector}-resizer-container`
40
36
  };
41
- const tableSharedStyle = props => css`
37
+ const tableSharedStyle = () => css`
42
38
  ${tableCellBackgroundStyleOverride()}
43
39
  .${TableSharedCssClassName.TABLE_CONTAINER} {
44
40
  position: relative;
45
- margin: 0 auto ${tableMarginBottom}px;
41
+ margin: 0 auto ${"var(--ds-space-200, 16px)"};
46
42
  box-sizing: border-box;
47
43
 
48
44
  /**
@@ -66,12 +62,12 @@ const tableSharedStyle = props => css`
66
62
  }
67
63
 
68
64
  .${TableSharedCssClassName.TABLE_NODE_WRAPPER} > table {
69
- margin: ${tableMarginTop}px 0 0 0;
65
+ margin: ${"var(--ds-space-300, 24px)"} 0 0 0;
70
66
  }
71
67
 
72
68
  .${TableSharedCssClassName.TABLE_CONTAINER} > table,
73
69
  .${TableSharedCssClassName.TABLE_STICKY_WRAPPER} > table {
74
- margin: ${tableMarginTop}px ${tableMarginSides}px 0 0;
70
+ margin: ${"var(--ds-space-300, 24px)"} ${"var(--ds-space-100, 8px)"} 0 0;
75
71
  }
76
72
 
77
73
  /* avoid applying styles to nested tables (possible via extensions) */
@@ -80,10 +76,7 @@ const tableSharedStyle = props => css`
80
76
  .${TableSharedCssClassName.TABLE_STICKY_WRAPPER} > table {
81
77
  border-collapse: collapse;
82
78
  border: ${tableCellBorderWidth}px solid
83
- ${themed({
84
- light: `var(--ds-background-accent-gray-subtler, ${akEditorTableBorder})`,
85
- dark: `var(--ds-background-accent-gray-subtler, ${akEditorTableBorderDark})`
86
- })(props)};
79
+ ${`var(--ds-background-accent-gray-subtler, ${akEditorTableBorder})`};
87
80
  table-layout: fixed;
88
81
  font-size: 1em;
89
82
  width: 100%;
@@ -112,20 +105,13 @@ const tableSharedStyle = props => css`
112
105
  font-weight: normal;
113
106
  vertical-align: top;
114
107
  border: 1px solid
115
- ${themed({
116
- light: `var(--ds-background-accent-gray-subtler, ${akEditorTableBorder})`,
117
- dark: `var(--ds-background-accent-gray-subtler, ${akEditorTableBorderDark})`
118
- })(props)};
108
+ ${`var(--ds-background-accent-gray-subtler, ${akEditorTableBorder})`};
119
109
  border-right-width: 0;
120
110
  border-bottom-width: 0;
121
- padding: ${tableCellPadding}px;
111
+ padding: ${"var(--ds-space-100, 8px)"};
122
112
  /* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */
123
113
  ${browser.gecko || browser.ie || browser.mac && browser.chrome ? 'background-clip: padding-box;' : ''}
124
114
 
125
- ${themed({
126
- dark: getTableCellBackgroundDarkModeColors
127
- })(props)};
128
-
129
115
  > :first-child:not(style),
130
116
  > style:first-child + * {
131
117
  margin-top: 0;
@@ -143,24 +129,18 @@ const tableSharedStyle = props => css`
143
129
 
144
130
  th p:not(:first-of-type),
145
131
  td p:not(:first-of-type) {
146
- margin-top: 12px;
132
+ margin-top: ${"var(--ds-space-150, 12px)"};
147
133
  }
148
134
  }
149
135
  th {
150
- background-color: ${themed({
151
- light: `var(--ds-background-accent-gray-subtlest, ${akEditorTableToolbar})`,
152
- dark: `var(--ds-background-accent-gray-subtlest, ${akEditorTableToolbarDark})`
153
- })(props)};
136
+ background-color: ${`var(--ds-background-accent-gray-subtlest, ${akEditorTableToolbar})`};
154
137
  text-align: left;
155
138
 
156
139
  /* only apply this styling to codeblocks in default background headercells */
157
140
  /* TODO this needs to be overhauled as it relies on unsafe selectors */
158
141
  &:not([style]):not(.danger) {
159
142
  .${CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER}:not(.danger) {
160
- background-color: ${themed({
161
- light: "var(--ds-surface-raised, rgb(235, 237, 240))",
162
- dark: "var(--ds-surface-raised, rgb(36, 47, 66))"
163
- })(props)};
143
+ background-color: ${"var(--ds-surface-raised, rgb(235, 237, 240))"};
164
144
 
165
145
  :not(.${akEditorSelectedNodeClassName}) {
166
146
  box-shadow: 0px 0px 0px 1px
@@ -169,46 +149,28 @@ const tableSharedStyle = props => css`
169
149
 
170
150
  .${CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER} {
171
151
  background-image: ${overflowShadow({
172
- background: themed({
173
- light: "var(--ds-background-neutral, rgb(235, 237, 240))",
174
- dark: "var(--ds-background-neutral, rgb(36, 47, 66))"
175
- })(props),
152
+ background: "var(--ds-background-neutral, rgb(235, 237, 240))",
176
153
  leftCoverWidth: "var(--ds-space-300, 24px)"
177
154
  })};
178
155
 
179
- background-color: ${themed({
180
- light: "var(--ds-background-neutral, rgb(235, 237, 240))",
181
- dark: "var(--ds-background-neutral, rgb(36, 47, 66))"
182
- })(props)};
156
+ background-color: ${"var(--ds-background-neutral, rgb(235, 237, 240))"};
183
157
  }
184
158
 
185
159
  .${CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER} {
186
- background-color: ${themed({
187
- light: "var(--ds-background-neutral, rgb(226, 229, 233))",
188
- dark: `var(--ds-background-neutral, ${DN20})`
189
- })(props)};
160
+ background-color: ${"var(--ds-background-neutral, rgb(226, 229, 233))"};
190
161
  }
191
162
 
192
163
  /* this is only relevant to the element taken care of by renderer */
193
164
  > [data-ds--code--code-block] {
194
165
  background-image: ${overflowShadow({
195
- background: themed({
196
- light: "var(--ds-background-neutral, rgb(235, 237, 240))",
197
- dark: "var(--ds-background-neutral, rgb(36, 47, 66))"
198
- })(props),
166
+ background: "var(--ds-background-neutral, rgb(235, 237, 240))",
199
167
  leftCoverWidth: "var(--ds-space-300, 24px)"
200
168
  })}!important;
201
169
 
202
- background-color: ${themed({
203
- light: "var(--ds-background-neutral, rgb(235, 237, 240))",
204
- dark: "var(--ds-background-neutral, rgb(36, 47, 66))"
205
- })(props)}!important;
170
+ background-color: ${"var(--ds-background-neutral, rgb(235, 237, 240))"}!important;
206
171
 
207
172
  // selector lives inside @atlaskit/code
208
- --ds--code--line-number-bg-color: ${themed({
209
- light: "var(--ds-background-neutral, rgb(226, 229, 233))",
210
- dark: `var(--ds-background-neutral, ${DN20})`
211
- })(props)};
173
+ --ds--code--line-number-bg-color: ${"var(--ds-background-neutral, rgb(226, 229, 233))"};
212
174
  }
213
175
  }
214
176
  }
@@ -9,7 +9,7 @@ import { themed } from '@atlaskit/theme/components';
9
9
  import { borderRadius } from '@atlaskit/theme/constants';
10
10
  import Layer from '../Layer';
11
11
  const packageName = "@atlaskit/editor-common";
12
- const packageVersion = "76.27.7";
12
+ const packageVersion = "76.27.9";
13
13
  const halfFocusRing = 1;
14
14
  const dropOffset = '0, 8';
15
15
  class DropList extends Component {
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
6
6
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
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 = "76.27.7";
9
+ var packageVersion = "76.27.9";
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
@@ -4,6 +4,7 @@ import React from 'react';
4
4
  import { jsx } from '@emotion/react';
5
5
  import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '../analytics';
6
6
  import { ErrorBoundary } from '../ui/ErrorBoundary';
7
+ import { browser } from '../utils';
7
8
  import { analyticsEventKey, getPerformanceOptions, startMeasureReactNodeViewRendered, stopMeasureReactNodeViewRendered, ZERO_WIDTH_SPACE } from '../utils';
8
9
  export var inlineNodeViewClassname = 'inlineNodeView';
9
10
  function createNodeView(_ref) {
@@ -171,7 +172,12 @@ function getPortalChildren(_ref2) {
171
172
  ,
172
173
  getPos: nodeViewParams.getPos,
173
174
  node: currentNode
174
- }, extraComponentProps)), jsx("span", {
175
+ }, extraComponentProps)), browser.android ? jsx("span", {
176
+ className: "zeroWidthSpaceContainer",
177
+ contentEditable: "false"
178
+ }, jsx("span", {
179
+ className: "".concat(inlineNodeViewClassname, "AddZeroWidthSpace")
180
+ }), ZERO_WIDTH_SPACE) : jsx("span", {
175
181
  className: "".concat(inlineNodeViewClassname, "AddZeroWidthSpace")
176
182
  }));
177
183
  };
@@ -5,6 +5,6 @@ import { h100, h300, h400, h500, h600, h700 } from '@atlaskit/theme/typography';
5
5
 
6
6
  // @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
7
7
  // text sizing prototype: http://proto/fabricrender/
8
- export var headingsSharedStyles = function headingsSharedStyles(props) {
9
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n & h1 {\n ", ";\n margin-bottom: 0;\n margin-top: 1.667em;\n }\n\n & h2 {\n ", ";\n margin-top: 1.8em;\n margin-bottom: 0;\n }\n\n & h3 {\n ", ";\n margin-top: 2em;\n margin-bottom: 0;\n }\n\n & h4 {\n ", ";\n margin-top: 1.357em;\n }\n\n & h5 {\n ", ";\n margin-top: 1.667em;\n text-transform: none;\n }\n\n & h6 {\n ", ";\n margin-top: 1.455em;\n text-transform: none;\n }\n"])), h700(props), h600(props), h500(props), h400(props), h300(props), h100(props));
8
+ export var headingsSharedStyles = function headingsSharedStyles() {
9
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n & h1 {\n ", ";\n margin-bottom: 0;\n margin-top: 1.667em;\n }\n\n & h2 {\n ", ";\n margin-top: 1.8em;\n margin-bottom: 0;\n }\n\n & h3 {\n ", ";\n margin-top: 2em;\n margin-bottom: 0;\n }\n\n & h4 {\n ", ";\n margin-top: 1.357em;\n }\n\n & h5 {\n ", ";\n margin-top: 1.667em;\n text-transform: none;\n }\n\n & h6 {\n ", ";\n margin-top: 1.455em;\n text-transform: none;\n }\n"])), h700(), h600(), h500(), h400(), h300(), h100());
10
10
  };
@@ -1,12 +1,8 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
2
  var _templateObject;
3
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
4
-
5
3
  import { css } from '@emotion/react';
6
4
  import { tableCellContentDomSelector, tableCellSelector, tableHeaderSelector, tablePrefixSelector } from '@atlaskit/adf-schema';
7
- import { akEditorBreakoutPadding, akEditorFullWidthLayoutWidth, akEditorSelectedNodeClassName, akEditorTableBorder, akEditorTableBorderDark, akEditorTableNumberColumnWidth, akEditorTableToolbar, akEditorTableToolbarDark, akEditorWideLayoutWidth, getTableCellBackgroundDarkModeColors, overflowShadow } from '@atlaskit/editor-shared-styles';
8
- import { DN20 } from '@atlaskit/theme/colors';
9
- import { themed } from '@atlaskit/theme/components';
5
+ import { akEditorBreakoutPadding, akEditorFullWidthLayoutWidth, akEditorSelectedNodeClassName, akEditorTableBorder, akEditorTableNumberColumnWidth, akEditorTableToolbar, akEditorWideLayoutWidth, overflowShadow } from '@atlaskit/editor-shared-styles';
10
6
  import browser from '../../utils/browser';
11
7
  import { CodeBlockSharedCssClassName } from './code-block';
12
8
  import { tableCellBackgroundStyleOverride } from './tableCell';
@@ -40,46 +36,14 @@ export var TableSharedCssClassName = {
40
36
  TABLE_COLUMN_CONTROLS_DECORATIONS: "".concat(tablePrefixSelector, "-column-controls-decoration"),
41
37
  TABLE_RESIZER_CONTAINER: "".concat(tablePrefixSelector, "-resizer-container")
42
38
  };
43
- var tableSharedStyle = function tableSharedStyle(props) {
44
- 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 .", " {\n will-change: width, margin-left;\n }\n\n .", " table {\n will-change: width;\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_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, 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({
45
- light: "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"),
46
- dark: "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorderDark, ")")
47
- })(props), "var(--ds-background-neutral-subtle, white)", tableCellMinWidth, themed({
48
- light: "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"),
49
- dark: "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorderDark, ")")
50
- })(props), tableCellPadding, browser.gecko || browser.ie || browser.mac && browser.chrome ? 'background-clip: padding-box;' : '', themed({
51
- dark: getTableCellBackgroundDarkModeColors
52
- })(props), themed({
53
- light: "var(--ds-background-accent-gray-subtlest, ".concat(akEditorTableToolbar, ")"),
54
- dark: "var(--ds-background-accent-gray-subtlest, ".concat(akEditorTableToolbarDark, ")")
55
- })(props), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, themed({
56
- light: "var(--ds-surface-raised, rgb(235, 237, 240))",
57
- dark: "var(--ds-surface-raised, rgb(36, 47, 66))"
58
- })(props), akEditorSelectedNodeClassName, "var(--ds-border, transparent)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, overflowShadow({
59
- background: themed({
60
- light: "var(--ds-background-neutral, rgb(235, 237, 240))",
61
- dark: "var(--ds-background-neutral, rgb(36, 47, 66))"
62
- })(props),
39
+ var tableSharedStyle = function tableSharedStyle() {
40
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n .", " {\n position: relative;\n margin: 0 auto ", ";\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 .", " {\n will-change: width, margin-left;\n }\n\n .", " table {\n will-change: width;\n }\n\n .", " > table {\n margin: ", " 0 0 0;\n }\n\n .", " > table,\n .", " > table {\n margin: ", " ", " 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: ", ";\n /* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */\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: ", ";\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, "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-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), "var(--ds-space-100, 8px)", browser.gecko || browser.ie || browser.mac && browser.chrome ? 'background-clip: padding-box;' : '', "var(--ds-space-150, 12px)", "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({
41
+ background: "var(--ds-background-neutral, rgb(235, 237, 240))",
63
42
  leftCoverWidth: "var(--ds-space-300, 24px)"
64
- }), themed({
65
- light: "var(--ds-background-neutral, rgb(235, 237, 240))",
66
- dark: "var(--ds-background-neutral, rgb(36, 47, 66))"
67
- })(props), CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, themed({
68
- light: "var(--ds-background-neutral, rgb(226, 229, 233))",
69
- dark: "var(--ds-background-neutral, ".concat(DN20, ")")
70
- })(props), overflowShadow({
71
- background: themed({
72
- light: "var(--ds-background-neutral, rgb(235, 237, 240))",
73
- dark: "var(--ds-background-neutral, rgb(36, 47, 66))"
74
- })(props),
43
+ }), "var(--ds-background-neutral, rgb(235, 237, 240))", CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, "var(--ds-background-neutral, rgb(226, 229, 233))", overflowShadow({
44
+ background: "var(--ds-background-neutral, rgb(235, 237, 240))",
75
45
  leftCoverWidth: "var(--ds-space-300, 24px)"
76
- }), themed({
77
- light: "var(--ds-background-neutral, rgb(235, 237, 240))",
78
- dark: "var(--ds-background-neutral, rgb(36, 47, 66))"
79
- })(props), themed({
80
- light: "var(--ds-background-neutral, rgb(226, 229, 233))",
81
- dark: "var(--ds-background-neutral, ".concat(DN20, ")")
82
- })(props));
46
+ }), "var(--ds-background-neutral, rgb(235, 237, 240))", "var(--ds-background-neutral, rgb(226, 229, 233))");
83
47
  };
84
48
  export var calcTableWidth = function calcTableWidth(layout, containerWidth) {
85
49
  var addControllerPadding = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
@@ -19,7 +19,7 @@ import { themed } from '@atlaskit/theme/components';
19
19
  import { borderRadius } from '@atlaskit/theme/constants';
20
20
  import Layer from '../Layer';
21
21
  var packageName = "@atlaskit/editor-common";
22
- var packageVersion = "76.27.7";
22
+ var packageVersion = "76.27.9";
23
23
  var halfFocusRing = 1;
24
24
  var dropOffset = '0, 8';
25
25
  var DropList = /*#__PURE__*/function (_Component) {
@@ -1,2 +1 @@
1
- import { ThemeProps } from '@atlaskit/theme/types';
2
- export declare const headingsSharedStyles: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
1
+ export declare const headingsSharedStyles: () => import("@emotion/react").SerializedStyles;
@@ -1,5 +1,4 @@
1
1
  import type { TableLayout } from '@atlaskit/adf-schema';
2
- import type { ThemeProps } from '@atlaskit/theme/types';
3
2
  export declare const tableMarginTop = 24;
4
3
  export declare const tableMarginBottom = 16;
5
4
  export declare const tableMarginTopWithControl = 14;
@@ -30,6 +29,6 @@ export declare const TableSharedCssClassName: {
30
29
  TABLE_COLUMN_CONTROLS_DECORATIONS: string;
31
30
  TABLE_RESIZER_CONTAINER: string;
32
31
  };
33
- declare const tableSharedStyle: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
32
+ declare const tableSharedStyle: () => import("@emotion/react").SerializedStyles;
34
33
  export declare const calcTableWidth: (layout: TableLayout, containerWidth?: number, addControllerPadding?: boolean) => number | 'inherit';
35
34
  export { tableSharedStyle };
@@ -1,2 +1 @@
1
- import { ThemeProps } from '@atlaskit/theme/types';
2
- export declare const headingsSharedStyles: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
1
+ export declare const headingsSharedStyles: () => import("@emotion/react").SerializedStyles;
@@ -1,5 +1,4 @@
1
1
  import type { TableLayout } from '@atlaskit/adf-schema';
2
- import type { ThemeProps } from '@atlaskit/theme/types';
3
2
  export declare const tableMarginTop = 24;
4
3
  export declare const tableMarginBottom = 16;
5
4
  export declare const tableMarginTopWithControl = 14;
@@ -30,6 +29,6 @@ export declare const TableSharedCssClassName: {
30
29
  TABLE_COLUMN_CONTROLS_DECORATIONS: string;
31
30
  TABLE_RESIZER_CONTAINER: string;
32
31
  };
33
- declare const tableSharedStyle: (props: ThemeProps) => import("@emotion/react").SerializedStyles;
32
+ declare const tableSharedStyle: () => import("@emotion/react").SerializedStyles;
34
33
  export declare const calcTableWidth: (layout: TableLayout, containerWidth?: number, addControllerPadding?: boolean) => number | 'inherit';
35
34
  export { tableSharedStyle };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "76.27.7",
3
+ "version": "76.27.9",
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/"
@@ -123,7 +123,7 @@
123
123
  "@atlaskit/textfield": "^6.0.0",
124
124
  "@atlaskit/theme": "^12.6.0",
125
125
  "@atlaskit/tokens": "^1.30.0",
126
- "@atlaskit/tooltip": "^18.0.0",
126
+ "@atlaskit/tooltip": "^18.1.0",
127
127
  "@atlaskit/ufo": "^0.2.0",
128
128
  "@atlaskit/width-detector": "^4.1.0",
129
129
  "@babel/runtime": "^7.0.0",