@atlaskit/editor-common 77.5.0 → 78.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 78.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#73653](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/73653) [`0cffdd968f1f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0cffdd968f1f) - Refactor media keymap announcer for translations
8
+ - [#73177](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/73177) [`22452599ed8f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/22452599ed8f) - Move styling for certain packages to tokens.
9
+
10
+ ## 78.0.0
11
+
12
+ ### Major Changes
13
+
14
+ - [#72122](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72122) [`c3186450404a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c3186450404a) - Breaking change:
15
+
16
+ ## WHAT?:
17
+
18
+ Removing feature flags:
19
+
20
+ - singleLayout
21
+ - newInsertionBehaviour
22
+ - interactiveExpand
23
+ - findReplace
24
+ - findReplaceMatchCase
25
+ - extendFloatingToolbar
26
+
27
+ ## WHY?:
28
+
29
+ Because the flags and props are unused/by default active. Removing them will reduce our maintenance burden
30
+
31
+ ## HOW to update your code:
32
+
33
+ - If you were using the feature flag - the behaviour is now default and you can remove the flags
34
+ - If you were not using the feature flag - the behaviour is now default.
35
+ - If you have opted out of using the feature flag - we have been careful to ensure no-one has opted out of the behaviours. If you do have an issue please reach out to #help-editor.
36
+
3
37
  ## 77.5.0
4
38
 
5
39
  ### Minor Changes
@@ -16,19 +16,14 @@ var mediaResizeAnnouncerMessMessages = exports.mediaResizeAnnouncerMessMessages
16
16
  defaultMessage: 'Media decreased to the minimum size',
17
17
  description: 'The media has the minimum allowed width'
18
18
  },
19
- DefaultMediaWidth: {
20
- id: 'fabric.editor.media.DefaultMediaWidth',
21
- defaultMessage: '{newMediaWidth, plural, one {Media width {action} to # pixel.} other {Media width {action} to # pixels.}}',
22
- description: 'Media width {action} to {newMediaWidth} pixels.'
19
+ DefaultMediaWidthIncreased: {
20
+ id: 'fabric.editor.media.DefaultMediaWidthIncreased',
21
+ defaultMessage: '{newMediaWidth, plural, one {Media width increased to # pixel.} other {Media width increased to # pixels.}}',
22
+ description: 'Media width increased to {newMediaWidth} pixels.'
23
23
  },
24
- IncreasedAction: {
25
- id: 'fabric.editor.media.increased',
26
- defaultMessage: 'increased',
27
- description: 'Increased action'
28
- },
29
- DecreasedAction: {
30
- id: 'fabric.editor.media.decreased',
31
- defaultMessage: 'decreased',
32
- description: 'Decreased action'
24
+ DefaultMediaWidthDecreased: {
25
+ id: 'fabric.editor.media.DefaultMediaWidthDecreased',
26
+ defaultMessage: '{newMediaWidth, plural, one {Media width decreased to # pixel.} other {Media width decreased to # pixels.}}',
27
+ description: 'Media width decreased to {newMediaWidth} pixels.'
33
28
  }
34
29
  });
@@ -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 = "77.5.0";
19
+ var packageVersion = "78.0.1";
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
@@ -22,7 +22,6 @@ var CodeBlockSharedCssClassName = exports.CodeBlockSharedCssClassName = {
22
22
  };
23
23
  var codeBlockSharedStyles = exports.codeBlockSharedStyles = function codeBlockSharedStyles() {
24
24
  return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .", " {\n position: relative;\n background-color: ", ";\n border-radius: ", ";\n margin: ", " 0 0 0;\n font-family: ", ";\n min-width: ", "px;\n cursor: pointer;\n\n --ds--code--bg-color: transparent;\n\n /* This is necessary to allow for arrow key navigation in/out of code blocks in Firefox. */\n white-space: normal;\n\n .", " {\n position: absolute;\n visibility: hidden;\n height: 1.5rem;\n top: 0px;\n left: 0px;\n }\n\n .", " {\n position: absolute;\n visibility: hidden;\n height: 1.5rem;\n bottom: 0px;\n right: 0px;\n }\n\n .", " {\n background-color: ", ";\n display: flex;\n border-radius: ", ";\n width: 100%;\n counter-reset: line;\n overflow-x: auto;\n\n background-image: ", ";\n\n background-repeat: no-repeat;\n background-attachment: local, local, local, local, scroll, scroll, scroll,\n scroll;\n background-size: ", " 100%,\n ", " 100%, ", " 100%,\n ", " 100%, ", " 100%,\n 1px 100%, ", " 100%, 1px 100%;\n background-position: 0 0, 0 0, 100% 0, 100% 0, 100% 0, 100% 0, 0 0, 0 0;\n\n /* Be careful if refactoring this; it is needed to keep arrow key navigation in Firefox consistent with other browsers. */\n overflow-y: hidden;\n }\n\n .", " {\n flex-shrink: 0;\n text-align: right;\n background-color: ", ";\n padding: ", ";\n position: relative;\n\n span {\n display: block;\n line-height: 0;\n font-size: 0;\n\n ::before {\n display: inline-block;\n content: counter(line);\n counter-increment: line;\n color: ", ";\n font-size: ", ";\n line-height: 1.5rem;\n }\n }\n }\n\n .", " {\n display: flex;\n flex: 1;\n\n code {\n flex-grow: 1;\n tab-size: 4;\n cursor: text;\n color: ", ";\n border-radius: ", ";\n margin: ", ";\n white-space: pre;\n font-size: ", ";\n line-height: 1.5rem;\n }\n }\n }\n"])), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, transparent)", "var(--ds-border-radius, 3px)", _editorSharedStyles.blockNodesVerticalMargin, _editorSharedStyles.akEditorCodeFontFamily, _editorSharedStyles.akEditorTableCellMinWidth, CodeBlockSharedCssClassName.CODEBLOCK_START, CodeBlockSharedCssClassName.CODEBLOCK_END, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, "var(--ds-background-neutral, ".concat(_colors.N20, ")"), "var(--ds-border-radius, 3px)", (0, _editorSharedStyles.overflowShadow)({
25
- background: "var(--ds-background-neutral, ".concat(_colors.N20, ")"),
26
25
  leftCoverWidth: "var(--ds-space-300, 24px)"
27
26
  }), "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, "var(--ds-background-neutral, ".concat(_colors.N30, ")"), "var(--ds-space-100, 8px)", "var(--ds-text-subtlest, ".concat(_colors.N400, ")"), (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, "var(--ds-text, ".concat(_colors.N800, ")"), "var(--ds-border-radius, 3px)", "var(--ds-space-100, 8px)", (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()));
28
27
  };
@@ -45,10 +45,8 @@ var TableSharedCssClassName = exports.TableSharedCssClassName = {
45
45
  };
46
46
  var tableSharedStyle = exports.tableSharedStyle = function tableSharedStyle() {
47
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))",
49
48
  leftCoverWidth: "var(--ds-space-300, 24px)"
50
49
  }), "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))",
52
50
  leftCoverWidth: "var(--ds-space-300, 24px)"
53
51
  }), "var(--ds-background-neutral, rgb(235, 237, 240))", "var(--ds-background-neutral, rgb(226, 229, 233))");
54
52
  };
@@ -22,7 +22,7 @@ var _templateObject, _templateObject2, _templateObject3;
22
22
  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); }; }
23
23
  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 */
24
24
  var packageName = "@atlaskit/editor-common";
25
- var packageVersion = "77.5.0";
25
+ var packageVersion = "78.0.1";
26
26
  var halfFocusRing = 1;
27
27
  var dropOffset = '0, 8';
28
28
  var DropList = /*#__PURE__*/function (_Component) {
@@ -10,19 +10,14 @@ export const mediaResizeAnnouncerMessMessages = defineMessages({
10
10
  defaultMessage: 'Media decreased to the minimum size',
11
11
  description: 'The media has the minimum allowed width'
12
12
  },
13
- DefaultMediaWidth: {
14
- id: 'fabric.editor.media.DefaultMediaWidth',
15
- defaultMessage: '{newMediaWidth, plural, one {Media width {action} to # pixel.} other {Media width {action} to # pixels.}}',
16
- description: 'Media width {action} to {newMediaWidth} pixels.'
13
+ DefaultMediaWidthIncreased: {
14
+ id: 'fabric.editor.media.DefaultMediaWidthIncreased',
15
+ defaultMessage: '{newMediaWidth, plural, one {Media width increased to # pixel.} other {Media width increased to # pixels.}}',
16
+ description: 'Media width increased to {newMediaWidth} pixels.'
17
17
  },
18
- IncreasedAction: {
19
- id: 'fabric.editor.media.increased',
20
- defaultMessage: 'increased',
21
- description: 'Increased action'
22
- },
23
- DecreasedAction: {
24
- id: 'fabric.editor.media.decreased',
25
- defaultMessage: 'decreased',
26
- description: 'Decreased action'
18
+ DefaultMediaWidthDecreased: {
19
+ id: 'fabric.editor.media.DefaultMediaWidthDecreased',
20
+ defaultMessage: '{newMediaWidth, plural, one {Media width decreased to # pixel.} other {Media width decreased to # pixels.}}',
21
+ description: 'Media width decreased to {newMediaWidth} pixels.'
27
22
  }
28
23
  });
@@ -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 = "77.5.0";
3
+ const packageVersion = "78.0.1";
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
@@ -51,7 +51,6 @@ export const codeBlockSharedStyles = () => css`
51
51
  overflow-x: auto;
52
52
 
53
53
  background-image: ${overflowShadow({
54
- background: `var(--ds-background-neutral, ${N20})`,
55
54
  leftCoverWidth: "var(--ds-space-300, 24px)"
56
55
  })};
57
56
 
@@ -149,7 +149,6 @@ const tableSharedStyle = () => css`
149
149
 
150
150
  .${CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER} {
151
151
  background-image: ${overflowShadow({
152
- background: "var(--ds-background-neutral, rgb(235, 237, 240))",
153
152
  leftCoverWidth: "var(--ds-space-300, 24px)"
154
153
  })};
155
154
 
@@ -163,7 +162,6 @@ const tableSharedStyle = () => css`
163
162
  /* this is only relevant to the element taken care of by renderer */
164
163
  > [data-ds--code--code-block] {
165
164
  background-image: ${overflowShadow({
166
- background: "var(--ds-background-neutral, rgb(235, 237, 240))",
167
165
  leftCoverWidth: "var(--ds-space-300, 24px)"
168
166
  })}!important;
169
167
 
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
7
7
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
8
8
  import Layer from '../Layer';
9
9
  const packageName = "@atlaskit/editor-common";
10
- const packageVersion = "77.5.0";
10
+ const packageVersion = "78.0.1";
11
11
  const halfFocusRing = 1;
12
12
  const dropOffset = '0, 8';
13
13
  class DropList extends Component {
@@ -10,19 +10,14 @@ export var mediaResizeAnnouncerMessMessages = defineMessages({
10
10
  defaultMessage: 'Media decreased to the minimum size',
11
11
  description: 'The media has the minimum allowed width'
12
12
  },
13
- DefaultMediaWidth: {
14
- id: 'fabric.editor.media.DefaultMediaWidth',
15
- defaultMessage: '{newMediaWidth, plural, one {Media width {action} to # pixel.} other {Media width {action} to # pixels.}}',
16
- description: 'Media width {action} to {newMediaWidth} pixels.'
13
+ DefaultMediaWidthIncreased: {
14
+ id: 'fabric.editor.media.DefaultMediaWidthIncreased',
15
+ defaultMessage: '{newMediaWidth, plural, one {Media width increased to # pixel.} other {Media width increased to # pixels.}}',
16
+ description: 'Media width increased to {newMediaWidth} pixels.'
17
17
  },
18
- IncreasedAction: {
19
- id: 'fabric.editor.media.increased',
20
- defaultMessage: 'increased',
21
- description: 'Increased action'
22
- },
23
- DecreasedAction: {
24
- id: 'fabric.editor.media.decreased',
25
- defaultMessage: 'decreased',
26
- description: 'Decreased action'
18
+ DefaultMediaWidthDecreased: {
19
+ id: 'fabric.editor.media.DefaultMediaWidthDecreased',
20
+ defaultMessage: '{newMediaWidth, plural, one {Media width decreased to # pixel.} other {Media width decreased to # pixels.}}',
21
+ description: 'Media width decreased to {newMediaWidth} pixels.'
27
22
  }
28
23
  });
@@ -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 = "77.5.0";
9
+ var packageVersion = "78.0.1";
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
@@ -15,7 +15,6 @@ export var CodeBlockSharedCssClassName = {
15
15
  };
16
16
  export var codeBlockSharedStyles = function codeBlockSharedStyles() {
17
17
  return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n position: relative;\n background-color: ", ";\n border-radius: ", ";\n margin: ", " 0 0 0;\n font-family: ", ";\n min-width: ", "px;\n cursor: pointer;\n\n --ds--code--bg-color: transparent;\n\n /* This is necessary to allow for arrow key navigation in/out of code blocks in Firefox. */\n white-space: normal;\n\n .", " {\n position: absolute;\n visibility: hidden;\n height: 1.5rem;\n top: 0px;\n left: 0px;\n }\n\n .", " {\n position: absolute;\n visibility: hidden;\n height: 1.5rem;\n bottom: 0px;\n right: 0px;\n }\n\n .", " {\n background-color: ", ";\n display: flex;\n border-radius: ", ";\n width: 100%;\n counter-reset: line;\n overflow-x: auto;\n\n background-image: ", ";\n\n background-repeat: no-repeat;\n background-attachment: local, local, local, local, scroll, scroll, scroll,\n scroll;\n background-size: ", " 100%,\n ", " 100%, ", " 100%,\n ", " 100%, ", " 100%,\n 1px 100%, ", " 100%, 1px 100%;\n background-position: 0 0, 0 0, 100% 0, 100% 0, 100% 0, 100% 0, 0 0, 0 0;\n\n /* Be careful if refactoring this; it is needed to keep arrow key navigation in Firefox consistent with other browsers. */\n overflow-y: hidden;\n }\n\n .", " {\n flex-shrink: 0;\n text-align: right;\n background-color: ", ";\n padding: ", ";\n position: relative;\n\n span {\n display: block;\n line-height: 0;\n font-size: 0;\n\n ::before {\n display: inline-block;\n content: counter(line);\n counter-increment: line;\n color: ", ";\n font-size: ", ";\n line-height: 1.5rem;\n }\n }\n }\n\n .", " {\n display: flex;\n flex: 1;\n\n code {\n flex-grow: 1;\n tab-size: 4;\n cursor: text;\n color: ", ";\n border-radius: ", ";\n margin: ", ";\n white-space: pre;\n font-size: ", ";\n line-height: 1.5rem;\n }\n }\n }\n"])), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, transparent)", "var(--ds-border-radius, 3px)", blockNodesVerticalMargin, akEditorCodeFontFamily, akEditorTableCellMinWidth, CodeBlockSharedCssClassName.CODEBLOCK_START, CodeBlockSharedCssClassName.CODEBLOCK_END, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, "var(--ds-background-neutral, ".concat(N20, ")"), "var(--ds-border-radius, 3px)", overflowShadow({
18
- background: "var(--ds-background-neutral, ".concat(N20, ")"),
19
18
  leftCoverWidth: "var(--ds-space-300, 24px)"
20
19
  }), "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, "var(--ds-background-neutral, ".concat(N30, ")"), "var(--ds-space-100, 8px)", "var(--ds-text-subtlest, ".concat(N400, ")"), relativeFontSizeToBase16(fontSize()), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, "var(--ds-text, ".concat(N800, ")"), "var(--ds-border-radius, 3px)", "var(--ds-space-100, 8px)", relativeFontSizeToBase16(fontSize()));
21
20
  };
@@ -38,10 +38,8 @@ export var TableSharedCssClassName = {
38
38
  };
39
39
  var tableSharedStyle = function tableSharedStyle() {
40
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))",
42
41
  leftCoverWidth: "var(--ds-space-300, 24px)"
43
42
  }), "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))",
45
43
  leftCoverWidth: "var(--ds-space-300, 24px)"
46
44
  }), "var(--ds-background-neutral, rgb(235, 237, 240))", "var(--ds-background-neutral, rgb(226, 229, 233))");
47
45
  };
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
17
17
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
18
18
  import Layer from '../Layer';
19
19
  var packageName = "@atlaskit/editor-common";
20
- var packageVersion = "77.5.0";
20
+ var packageVersion = "78.0.1";
21
21
  var halfFocusRing = 1;
22
22
  var dropOffset = '0, 8';
23
23
  var DropList = /*#__PURE__*/function (_Component) {
@@ -9,17 +9,12 @@ export declare const mediaResizeAnnouncerMessMessages: {
9
9
  defaultMessage: string;
10
10
  description: string;
11
11
  };
12
- DefaultMediaWidth: {
12
+ DefaultMediaWidthIncreased: {
13
13
  id: string;
14
14
  defaultMessage: string;
15
15
  description: string;
16
16
  };
17
- IncreasedAction: {
18
- id: string;
19
- defaultMessage: string;
20
- description: string;
21
- };
22
- DecreasedAction: {
17
+ DefaultMediaWidthDecreased: {
23
18
  id: string;
24
19
  defaultMessage: string;
25
20
  description: string;
@@ -29,25 +29,6 @@ import type { DisableSpellcheckByBrowser } from './supported-browsers';
29
29
  * Example: name = "newInsertionBehaviour" -> "Enable new insertion behaviour"
30
30
  */
31
31
  export type FeatureFlags = {
32
- /**
33
- * @description Enable single layout option
34
- *
35
- * @see https://hello.atlassian.net/browse/LOVE-187
36
- * @default false
37
- */
38
- singleLayout?: boolean;
39
- /**
40
- * @description Enable new insertion behaviour
41
- *
42
- * @see https://product-fabric.atlassian.net/l/c/JYoSEu00
43
- * @default false
44
- */
45
- newInsertionBehaviour?: boolean;
46
- /**
47
- * @description Allows to toggle expand open state
48
- * @default true
49
- */
50
- interactiveExpand?: boolean;
51
32
  /**
52
33
  * @description
53
34
  * Whether a placeholder bracket hint was provided (`string => boolean`)
@@ -67,22 +48,6 @@ export type FeatureFlags = {
67
48
  * @default false
68
49
  */
69
50
  placeholderHints?: boolean;
70
- /**
71
- * @description
72
- * Enable find/replace functionality within the editor
73
- *
74
- * @see https://product-fabric.atlassian.net/browse/ED-3504
75
- * @default false
76
- */
77
- findReplace?: boolean;
78
- /**
79
- * @description
80
- * Enable case matching functionality in find/replace feature within the editor
81
- *
82
- * @see https://product-fabric.atlassian.net/browse/ED-9684
83
- * @default false
84
- */
85
- findReplaceMatchCase?: boolean;
86
51
  /**
87
52
  * @description
88
53
  * Enable `localId` generation for extensions.
@@ -122,12 +87,6 @@ export type FeatureFlags = {
122
87
  * @default false
123
88
  */
124
89
  queueAnalytics?: boolean;
125
- /**
126
- * Enable extend floating toolbars
127
- * @see https://product-fabric.atlassian.net/browse/ED-11963
128
- * @default false
129
- */
130
- extendFloatingToolbar?: boolean;
131
90
  /**
132
91
  * Show the avatar group as a plugin
133
92
  * @see https://product-fabric.atlassian.net/browse/CERN-747
@@ -9,17 +9,12 @@ export declare const mediaResizeAnnouncerMessMessages: {
9
9
  defaultMessage: string;
10
10
  description: string;
11
11
  };
12
- DefaultMediaWidth: {
12
+ DefaultMediaWidthIncreased: {
13
13
  id: string;
14
14
  defaultMessage: string;
15
15
  description: string;
16
16
  };
17
- IncreasedAction: {
18
- id: string;
19
- defaultMessage: string;
20
- description: string;
21
- };
22
- DecreasedAction: {
17
+ DefaultMediaWidthDecreased: {
23
18
  id: string;
24
19
  defaultMessage: string;
25
20
  description: string;
@@ -29,25 +29,6 @@ import type { DisableSpellcheckByBrowser } from './supported-browsers';
29
29
  * Example: name = "newInsertionBehaviour" -> "Enable new insertion behaviour"
30
30
  */
31
31
  export type FeatureFlags = {
32
- /**
33
- * @description Enable single layout option
34
- *
35
- * @see https://hello.atlassian.net/browse/LOVE-187
36
- * @default false
37
- */
38
- singleLayout?: boolean;
39
- /**
40
- * @description Enable new insertion behaviour
41
- *
42
- * @see https://product-fabric.atlassian.net/l/c/JYoSEu00
43
- * @default false
44
- */
45
- newInsertionBehaviour?: boolean;
46
- /**
47
- * @description Allows to toggle expand open state
48
- * @default true
49
- */
50
- interactiveExpand?: boolean;
51
32
  /**
52
33
  * @description
53
34
  * Whether a placeholder bracket hint was provided (`string => boolean`)
@@ -67,22 +48,6 @@ export type FeatureFlags = {
67
48
  * @default false
68
49
  */
69
50
  placeholderHints?: boolean;
70
- /**
71
- * @description
72
- * Enable find/replace functionality within the editor
73
- *
74
- * @see https://product-fabric.atlassian.net/browse/ED-3504
75
- * @default false
76
- */
77
- findReplace?: boolean;
78
- /**
79
- * @description
80
- * Enable case matching functionality in find/replace feature within the editor
81
- *
82
- * @see https://product-fabric.atlassian.net/browse/ED-9684
83
- * @default false
84
- */
85
- findReplaceMatchCase?: boolean;
86
51
  /**
87
52
  * @description
88
53
  * Enable `localId` generation for extensions.
@@ -122,12 +87,6 @@ export type FeatureFlags = {
122
87
  * @default false
123
88
  */
124
89
  queueAnalytics?: boolean;
125
- /**
126
- * Enable extend floating toolbars
127
- * @see https://product-fabric.atlassian.net/browse/ED-11963
128
- * @default false
129
- */
130
- extendFloatingToolbar?: boolean;
131
90
  /**
132
91
  * Show the avatar group as a plugin
133
92
  * @see https://product-fabric.atlassian.net/browse/CERN-747
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "77.5.0",
3
+ "version": "78.0.1",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"