@atlaskit/editor-common 87.3.5 → 87.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/cjs/element-browser/components/ElementList/EmptyState.js +10 -4
  3. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +11 -4
  4. package/dist/cjs/messages/block-type.js +5 -0
  5. package/dist/cjs/messages/insert-block.js +5 -0
  6. package/dist/cjs/monitoring/error.js +1 -1
  7. package/dist/cjs/styles/shared/code-block.js +7 -3
  8. package/dist/cjs/ui/DropList/index.js +1 -1
  9. package/dist/es2019/element-browser/components/ElementList/EmptyState.js +10 -4
  10. package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +11 -4
  11. package/dist/es2019/messages/block-type.js +5 -0
  12. package/dist/es2019/messages/insert-block.js +5 -0
  13. package/dist/es2019/monitoring/error.js +1 -1
  14. package/dist/es2019/styles/shared/code-block.js +35 -1
  15. package/dist/es2019/ui/DropList/index.js +1 -1
  16. package/dist/esm/element-browser/components/ElementList/EmptyState.js +10 -4
  17. package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +11 -4
  18. package/dist/esm/messages/block-type.js +5 -0
  19. package/dist/esm/messages/insert-block.js +5 -0
  20. package/dist/esm/monitoring/error.js +1 -1
  21. package/dist/esm/styles/shared/code-block.js +7 -3
  22. package/dist/esm/ui/DropList/index.js +1 -1
  23. package/dist/types/messages/block-type.d.ts +5 -0
  24. package/dist/types/messages/insert-block.d.ts +5 -0
  25. package/dist/types/styles/shared/code-block.d.ts +2 -0
  26. package/dist/types/types/feature-flags.d.ts +8 -0
  27. package/dist/types/types/floating-toolbar.d.ts +4 -0
  28. package/dist/types-ts4.5/messages/block-type.d.ts +5 -0
  29. package/dist/types-ts4.5/messages/insert-block.d.ts +5 -0
  30. package/dist/types-ts4.5/styles/shared/code-block.d.ts +2 -0
  31. package/dist/types-ts4.5/types/feature-flags.d.ts +8 -0
  32. package/dist/types-ts4.5/types/floating-toolbar.d.ts +4 -0
  33. package/package.json +5 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 87.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#127369](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/127369)
8
+ [`95ff22b16d347`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/95ff22b16d347) -
9
+ [ux] ED-24374 Add support for dynamic line number positions on code block nodeview
10
+
11
+ ## 87.4.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [`3ac0ae73c0d52`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3ac0ae73c0d52) -
16
+ [ED-24499] Add Turn into dropdown button to text selection toolbar for
17
+ platform_editor_basic_text_transformations experiment. This button will be used to provide options
18
+ to transform selected texts/inline nodes into other elements (e.g. expand) containing the content.
19
+
20
+ ### Patch Changes
21
+
22
+ - [#126418](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/126418)
23
+ [`dc10688cd20b6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dc10688cd20b6) -
24
+ [ux] Migrate typography with new ADS token and primitive
25
+ - Updated dependencies
26
+
3
27
  ## 87.3.5
4
28
 
5
29
  ### Patch Changes
@@ -8,6 +8,7 @@ exports.default = EmptyState;
8
8
  var _react = require("@emotion/react");
9
9
  var _reactIntlNext = require("react-intl-next");
10
10
  var _new = require("@atlaskit/button/new");
11
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
12
  var _primitives = require("@atlaskit/primitives");
12
13
  var _NotFoundIllustration = _interopRequireDefault(require("./NotFoundIllustration"));
13
14
  /**
@@ -22,7 +23,7 @@ function EmptyState(_ref) {
22
23
  css: emptyStateWrapper,
23
24
  "data-testid": "empty-state-wrapper"
24
25
  }, (0, _react.jsx)(_NotFoundIllustration.default, null), (0, _react.jsx)("div", {
25
- css: emptyStateHeading
26
+ css: [emptyStateHeading, (0, _platformFeatureFlags.fg)('platform_editor_migration_icon_and_typography') ? emptyStateHeadingFontToken : emptyStateHeadingFont]
26
27
  }, (0, _react.jsx)(_reactIntlNext.FormattedMessage, {
27
28
  id: "fabric.editor.elementbrowser.search.empty-state.heading",
28
29
  defaultMessage: "Nothing matches your search",
@@ -46,12 +47,17 @@ function EmptyState(_ref) {
46
47
  description: "Empty state sub-heading external link"
47
48
  })))));
48
49
  }
49
- var emptyStateHeading = (0, _react.css)({
50
+ var emptyStateHeadingFontToken = (0, _react.css)({
51
+ font: "var(--ds-font-heading-medium, normal 500 20px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
52
+ });
53
+ var emptyStateHeadingFont = (0, _react.css)({
50
54
  fontSize: '1.42857em',
51
55
  lineHeight: 1.2,
52
- color: "var(--ds-text, rgb(23, 43, 77))",
53
56
  fontWeight: 500,
54
- letterSpacing: '-0.008em',
57
+ letterSpacing: '-0.008em'
58
+ });
59
+ var emptyStateHeading = (0, _react.css)({
60
+ color: "var(--ds-text, rgb(23, 43, 77))",
55
61
  marginTop: "var(--ds-space-300, 24px)"
56
62
  });
57
63
  var emptyStateSubHeading = (0, _react.css)({
@@ -26,6 +26,7 @@ var _adfSchema = require("@atlaskit/adf-schema");
26
26
  var _analyticsNext = require("@atlaskit/analytics-next");
27
27
  var _ = _interopRequireDefault(require("@atlaskit/icon-object/glyph/page/16"));
28
28
  var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/cross-circle"));
29
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
29
30
  var _primitives = require("@atlaskit/primitives");
30
31
  var _colors = require("@atlaskit/theme/colors");
31
32
  var _constants = require("@atlaskit/theme/constants");
@@ -76,10 +77,16 @@ var containerPadding = (0, _react2.css)({
76
77
  var textLabelMargin = (0, _react2.css)({
77
78
  marginTop: "var(--ds-space-150, 12px)"
78
79
  });
79
- var inputLabel = (0, _react2.css)({
80
+ var inputLabelFontToken = (0, _react2.css)({
81
+ font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
82
+ fontWeight: "var(--ds-font-weight-medium, 500)"
83
+ });
84
+ var inputLabelFont = (0, _react2.css)({
80
85
  fontSize: "".concat((0, _constants.fontSizeSmall)(), "px"),
86
+ fontWeight: 500
87
+ });
88
+ var inputLabel = (0, _react2.css)({
81
89
  color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")"),
82
- fontWeight: 500,
83
90
  paddingBottom: "var(--ds-space-050, 4px)"
84
91
  });
85
92
  var inputWrapperPosition = (0, _react2.css)({
@@ -854,7 +861,7 @@ var HyperlinkLinkAddToolbar = exports.HyperlinkLinkAddToolbar = /*#__PURE__*/fun
854
861
  ref: this.wrapperRef
855
862
  }, (0, _react2.jsx)("label", {
856
863
  htmlFor: linkSearchInputId,
857
- css: inputLabel
864
+ css: [inputLabel, (0, _platformFeatureFlags.fg)('platform_editor_migration_icon_and_typography') ? inputLabelFontToken : inputLabelFont]
858
865
  }, formatMessage(messages.linkVisibleLabel)), (0, _react2.jsx)("div", {
859
866
  css: [_ToolbarComponents.inputWrapper, inputWrapperPosition]
860
867
  }, screenReaderText && (0, _react2.jsx)(_ui.Announcer, {
@@ -898,7 +905,7 @@ var HyperlinkLinkAddToolbar = exports.HyperlinkLinkAddToolbar = /*#__PURE__*/fun
898
905
  primaryColor: "var(--ds-icon-subtle, #626F86)"
899
906
  }))))), (0, _react2.jsx)("label", {
900
907
  htmlFor: displayTextInputId,
901
- css: [inputLabel, textLabelMargin]
908
+ css: [inputLabel, textLabelMargin, (0, _platformFeatureFlags.fg)('platform_editor_migration_icon_and_typography') ? inputLabelFontToken : inputLabelFont]
902
909
  }, formatMessage(messages.textVisibleLabel)), (0, _react2.jsx)("div", {
903
910
  css: [_ToolbarComponents.inputWrapper, inputWrapperPosition]
904
911
  }, (0, _react2.jsx)(_ui.PanelTextInput, {
@@ -151,6 +151,11 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
151
151
  defaultMessage: 'Add a note with an emoji and colored background',
152
152
  description: 'Visually distinguishes your panel by adding a emoji icon and background color '
153
153
  },
154
+ panel: {
155
+ id: 'fabric.editor.panel',
156
+ defaultMessage: 'Panel',
157
+ description: 'Visually distinguishes your text by adding a panel'
158
+ },
154
159
  other: {
155
160
  id: 'fabric.editor.other',
156
161
  defaultMessage: 'Others...',
@@ -230,5 +230,10 @@ var toolbarInsertBlockMessages = exports.toolbarInsertBlockMessages = (0, _react
230
230
  id: 'fabric.editor.recordLoomShortTitle',
231
231
  defaultMessage: 'Record',
232
232
  description: 'Record'
233
+ },
234
+ turnInto: {
235
+ id: 'fabric.editor.turnInto',
236
+ defaultMessage: 'Turn into',
237
+ description: 'Turn selected texts into another element containing those texts'
233
238
  }
234
239
  });
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
17
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
18
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
19
19
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
20
- var packageVersion = "87.3.5";
20
+ var packageVersion = "87.4.1";
21
21
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
22
22
  // Remove URL as it has UGC
23
23
  // TODO: Sanitise the URL instead of just removing it
@@ -21,12 +21,16 @@ var CodeBlockSharedCssClassName = exports.CodeBlockSharedCssClassName = {
21
21
  CODEBLOCK_LINE_NUMBER_GUTTER: 'line-number-gutter',
22
22
  CODEBLOCK_CONTENT: 'code-content',
23
23
  DS_CODEBLOCK: '[data-ds--code--code-block]',
24
- CODEBLOCK_CONTENT_WRAPPED: 'code-content--wrapped'
24
+ CODEBLOCK_LINE_NUMBER_GUTTER_FG_WRAP: 'line-number-gutter--fg-wrap',
25
+ CODEBLOCK_CONTENT_WRAPPED: 'code-content--wrapped',
26
+ CODEBLOCK_CONTAINER_LINE_NUMBER_WRAPPED: 'code-content__line-number--wrapped'
25
27
  };
28
+
29
+ // TODO: ED-24222 Remove flex styling and hardcoded word
26
30
  var codeBlockSharedStyles = exports.codeBlockSharedStyles = function codeBlockSharedStyles() {
27
- return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.", " {\n\t\tposition: relative;\n\t\tbackground-color: ", ";\n\t\tborder-radius: ", ";\n\t\tmargin: ", " 0 0 0;\n\t\tfont-family: ", ";\n\t\tmin-width: ", "px;\n\t\tcursor: pointer;\n\n\t\t--ds--code--bg-color: transparent;\n\n\t\t/* This is necessary to allow for arrow key navigation in/out of code blocks in Firefox. */\n\t\twhite-space: normal;\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\ttop: 0px;\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\tbottom: 0px;\n\t\t\tright: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tbackground-color: ", ";\n\t\t\tdisplay: flex;\n\t\t\tborder-radius: ", ";\n\t\t\twidth: 100%;\n\t\t\tcounter-reset: line;\n\t\t\toverflow-x: auto;\n\n\t\t\tbackground-image: ", ";\n\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-attachment: local, local, local, local, scroll, scroll, scroll, scroll;\n\t\t\tbackground-size:\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%;\n\t\t\tbackground-position:\n\t\t\t\t0 0,\n\t\t\t\t0 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t0 0,\n\t\t\t\t0 0;\n\n\t\t\t/* Be careful if refactoring this; it is needed to keep arrow key navigation in Firefox consistent with other browsers. */\n\t\t\toverflow-y: hidden;\n\t\t}\n\n\t\t.", " {\n\t\t\tflex-shrink: 0;\n\t\t\ttext-align: right;\n\t\t\tbackground-color: ", ";\n\t\t\tpadding: ", ";\n\t\t\tposition: relative;\n\n\t\t\tspan {\n\t\t\t\tdisplay: block;\n\t\t\t\tline-height: 0;\n\t\t\t\tfont-size: 0;\n\n\t\t\t\t::before {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\tcontent: counter(line);\n\t\t\t\t\tcounter-increment: line;\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t\tfont-size: ", ";\n\t\t\t\t\tline-height: 1.5rem;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tdisplay: flex;\n\t\t\tflex: 1;\n\n\t\t\tcode {\n\t\t\t\tflex-grow: 1;\n\t\t\t\ttab-size: 4;\n\t\t\t\tcursor: text;\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: ", ";\n\t\t\t\tmargin: ", ";\n\t\t\t\twhite-space: pre;\n\t\t\t\tfont-size: ", ";\n\t\t\t\tline-height: 1.5rem;\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tcode {\n\t\t\t\tword-break: break-word;\n\t\t\t\twhite-space: pre-wrap;\n\t\t\t}\n\t\t}\n\t}\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)({
31
+ return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.", " {\n\t\tposition: relative;\n\t\tbackground-color: ", ";\n\t\tborder-radius: ", ";\n\t\tmargin: ", " 0 0 0;\n\t\tfont-family: ", ";\n\t\tmin-width: ", "px;\n\t\tcursor: pointer;\n\n\t\t--ds--code--bg-color: transparent;\n\n\t\t/* This is necessary to allow for arrow key navigation in/out of code blocks in Firefox. */\n\t\twhite-space: normal;\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\ttop: 0px;\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\tbottom: 0px;\n\t\t\tright: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tbackground-color: ", ";\n\t\t\tdisplay: flex;\n\t\t\tborder-radius: ", ";\n\t\t\twidth: 100%;\n\t\t\tcounter-reset: line;\n\t\t\toverflow-x: auto;\n\n\t\t\tbackground-image: ", ";\n\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-attachment: local, local, local, local, scroll, scroll, scroll, scroll;\n\t\t\tbackground-size:\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%;\n\t\t\tbackground-position:\n\t\t\t\t0 0,\n\t\t\t\t0 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t0 0,\n\t\t\t\t0 0;\n\n\t\t\t/* Be careful if refactoring this; it is needed to keep arrow key navigation in Firefox consistent with other browsers. */\n\t\t\toverflow-y: hidden;\n\t\t}\n\n\t\t.", " {\n\t\t\tflex-shrink: 0;\n\t\t\ttext-align: right;\n\t\t\tbackground-color: ", ";\n\t\t\tpadding: ", ";\n\t\t\tposition: relative;\n\n\t\t\tspan {\n\t\t\t\tdisplay: block;\n\t\t\t\tline-height: 0;\n\t\t\t\tfont-size: 0;\n\n\t\t\t\t::before {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\tcontent: counter(line);\n\t\t\t\t\tcounter-increment: line;\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t\tfont-size: ", ";\n\t\t\t\t\tline-height: 1.5rem;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tbackground-color: ", ";\n\t\t\tpadding: ", ";\n\t\t\tposition: relative;\n\t\t\twidth: 1rem;\n\t\t}\n\n\t\t.", " {\n\t\t\tdisplay: flex;\n\t\t\tflex: 1;\n\n\t\t\tcode {\n\t\t\t\tflex-grow: 1;\n\t\t\t\ttab-size: 4;\n\t\t\t\tcursor: text;\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: ", ";\n\t\t\t\tmargin: ", ";\n\t\t\t\twhite-space: pre;\n\t\t\t\tfont-size: ", ";\n\t\t\t\tline-height: 1.5rem;\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tcode {\n\t\t\t\tcounter-reset: line var(--line-num, 0);\n\t\t\t\tword-break: break-word;\n\t\t\t\twhite-space: pre-wrap;\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tcounter-increment: line;\n\t\t\tline-height: 1rem;\n\t\t\tpointer-events: none;\n\n\t\t\t::before {\n\t\t\t\ttext-align: right;\n\t\t\t\tmin-width: 1.5rem;\n\t\t\t\tdisplay: block;\n\t\t\t\theight: 1rem;\n\t\t\t\tposition: absolute;\n\t\t\t\tpadding-right: ", ";\n\t\t\t\tpadding-left: ", ";\n\t\t\t\tmargin-top: ", ";\n\t\t\t\tmargin-right: ", ";\n\t\t\t\tleft: -0.5rem;\n\t\t\t\tcolor: ", ";\n\t\t\t\tfont-size: ", ";\n\t\t\t\tcontent: counter(line);\n\t\t\t}\n\t\t}\n\t}\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)({
28
32
  leftCoverWidth: "var(--ds-space-300, 24px)"
29
- }), "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)()), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPED);
33
+ }), "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_LINE_NUMBER_GUTTER_FG_WRAP, "var(--ds-background-neutral, ".concat(_colors.N30, ")"), "var(--ds-space-100, 8px)", 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)()), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPED, CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER_LINE_NUMBER_WRAPPED, "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-050, 4px)", "var(--ds-space-100, 8px)", "var(--ds-text-subtlest, ".concat(_colors.N400, ")"), (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()));
30
34
  };
31
35
 
32
36
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
23
23
  * @jsx jsx
24
24
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
25
  var packageName = "@atlaskit/editor-common";
26
- var packageVersion = "87.3.5";
26
+ var packageVersion = "87.4.1";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  var DropList = /*#__PURE__*/function (_Component) {
@@ -6,6 +6,7 @@
6
6
  import { css, jsx } from '@emotion/react';
7
7
  import { FormattedMessage } from 'react-intl-next';
8
8
  import { LinkButton } from '@atlaskit/button/new';
9
+ import { fg } from '@atlaskit/platform-feature-flags';
9
10
  import { Box, xcss } from '@atlaskit/primitives';
10
11
  import NotFoundIllustration from './NotFoundIllustration';
11
12
  export default function EmptyState({
@@ -15,7 +16,7 @@ export default function EmptyState({
15
16
  css: emptyStateWrapper,
16
17
  "data-testid": "empty-state-wrapper"
17
18
  }, jsx(NotFoundIllustration, null), jsx("div", {
18
- css: emptyStateHeading
19
+ css: [emptyStateHeading, fg('platform_editor_migration_icon_and_typography') ? emptyStateHeadingFontToken : emptyStateHeadingFont]
19
20
  }, jsx(FormattedMessage, {
20
21
  id: "fabric.editor.elementbrowser.search.empty-state.heading",
21
22
  defaultMessage: "Nothing matches your search",
@@ -39,12 +40,17 @@ export default function EmptyState({
39
40
  description: "Empty state sub-heading external link"
40
41
  })))));
41
42
  }
42
- const emptyStateHeading = css({
43
+ const emptyStateHeadingFontToken = css({
44
+ font: "var(--ds-font-heading-medium, normal 500 20px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
45
+ });
46
+ const emptyStateHeadingFont = css({
43
47
  fontSize: '1.42857em',
44
48
  lineHeight: 1.2,
45
- color: "var(--ds-text, rgb(23, 43, 77))",
46
49
  fontWeight: 500,
47
- letterSpacing: '-0.008em',
50
+ letterSpacing: '-0.008em'
51
+ });
52
+ const emptyStateHeading = css({
53
+ color: "var(--ds-text, rgb(23, 43, 77))",
48
54
  marginTop: "var(--ds-space-300, 24px)"
49
55
  });
50
56
  const emptyStateSubHeading = css({
@@ -15,6 +15,7 @@ import { isSafeUrl } from '@atlaskit/adf-schema';
15
15
  import { withAnalyticsEvents } from '@atlaskit/analytics-next';
16
16
  import Page16Icon from '@atlaskit/icon-object/glyph/page/16';
17
17
  import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
18
+ import { fg } from '@atlaskit/platform-feature-flags';
18
19
  import { Pressable, xcss } from '@atlaskit/primitives';
19
20
  import { N200 } from '@atlaskit/theme/colors';
20
21
  import { fontSizeSmall } from '@atlaskit/theme/constants';
@@ -59,10 +60,16 @@ const containerPadding = css({
59
60
  const textLabelMargin = css({
60
61
  marginTop: "var(--ds-space-150, 12px)"
61
62
  });
62
- const inputLabel = css({
63
+ const inputLabelFontToken = css({
64
+ font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
65
+ fontWeight: "var(--ds-font-weight-medium, 500)"
66
+ });
67
+ const inputLabelFont = css({
63
68
  fontSize: `${fontSizeSmall()}px`,
69
+ fontWeight: 500
70
+ });
71
+ const inputLabel = css({
64
72
  color: `var(--ds-text-subtlest, ${N200})`,
65
- fontWeight: 500,
66
73
  paddingBottom: "var(--ds-space-050, 4px)"
67
74
  });
68
75
  const inputWrapperPosition = css({
@@ -696,7 +703,7 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
696
703
  ref: this.wrapperRef
697
704
  }, jsx("label", {
698
705
  htmlFor: linkSearchInputId,
699
- css: inputLabel
706
+ css: [inputLabel, fg('platform_editor_migration_icon_and_typography') ? inputLabelFontToken : inputLabelFont]
700
707
  }, formatMessage(messages.linkVisibleLabel)), jsx("div", {
701
708
  css: [inputWrapper, inputWrapperPosition]
702
709
  }, screenReaderText && jsx(Announcer, {
@@ -738,7 +745,7 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
738
745
  primaryColor: "var(--ds-icon-subtle, #626F86)"
739
746
  }))))), jsx("label", {
740
747
  htmlFor: displayTextInputId,
741
- css: [inputLabel, textLabelMargin]
748
+ css: [inputLabel, textLabelMargin, fg('platform_editor_migration_icon_and_typography') ? inputLabelFontToken : inputLabelFont]
742
749
  }, formatMessage(messages.textVisibleLabel)), jsx("div", {
743
750
  css: [inputWrapper, inputWrapperPosition]
744
751
  }, jsx(PanelTextInput, {
@@ -145,6 +145,11 @@ export const messages = defineMessages({
145
145
  defaultMessage: 'Add a note with an emoji and colored background',
146
146
  description: 'Visually distinguishes your panel by adding a emoji icon and background color '
147
147
  },
148
+ panel: {
149
+ id: 'fabric.editor.panel',
150
+ defaultMessage: 'Panel',
151
+ description: 'Visually distinguishes your text by adding a panel'
152
+ },
148
153
  other: {
149
154
  id: 'fabric.editor.other',
150
155
  defaultMessage: 'Others...',
@@ -224,5 +224,10 @@ export const toolbarInsertBlockMessages = defineMessages({
224
224
  id: 'fabric.editor.recordLoomShortTitle',
225
225
  defaultMessage: 'Record',
226
226
  description: 'Record'
227
+ },
228
+ turnInto: {
229
+ id: 'fabric.editor.turnInto',
230
+ defaultMessage: 'Turn into',
231
+ description: 'Turn selected texts into another element containing those texts'
227
232
  }
228
233
  });
@@ -1,7 +1,7 @@
1
1
  import { isFedRamp } from './environment';
2
2
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
3
3
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
4
- const packageVersion = "87.3.5";
4
+ const packageVersion = "87.4.1";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // TODO: Sanitise the URL instead of just removing it
@@ -12,8 +12,12 @@ export const CodeBlockSharedCssClassName = {
12
12
  CODEBLOCK_LINE_NUMBER_GUTTER: 'line-number-gutter',
13
13
  CODEBLOCK_CONTENT: 'code-content',
14
14
  DS_CODEBLOCK: '[data-ds--code--code-block]',
15
- CODEBLOCK_CONTENT_WRAPPED: 'code-content--wrapped'
15
+ CODEBLOCK_LINE_NUMBER_GUTTER_FG_WRAP: 'line-number-gutter--fg-wrap',
16
+ CODEBLOCK_CONTENT_WRAPPED: 'code-content--wrapped',
17
+ CODEBLOCK_CONTAINER_LINE_NUMBER_WRAPPED: 'code-content__line-number--wrapped'
16
18
  };
19
+
20
+ // TODO: ED-24222 Remove flex styling and hardcoded word
17
21
  export const codeBlockSharedStyles = () => css`
18
22
  .${CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER} {
19
23
  position: relative;
@@ -105,6 +109,13 @@ export const codeBlockSharedStyles = () => css`
105
109
  }
106
110
  }
107
111
 
112
+ .${CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER_FG_WRAP} {
113
+ background-color: ${`var(--ds-background-neutral, ${N30})`};
114
+ padding: ${"var(--ds-space-100, 8px)"};
115
+ position: relative;
116
+ width: 1rem;
117
+ }
118
+
108
119
  .${CodeBlockSharedCssClassName.CODEBLOCK_CONTENT} {
109
120
  display: flex;
110
121
  flex: 1;
@@ -124,10 +135,33 @@ export const codeBlockSharedStyles = () => css`
124
135
 
125
136
  .${CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPED} {
126
137
  code {
138
+ counter-reset: line var(--line-num, 0);
127
139
  word-break: break-word;
128
140
  white-space: pre-wrap;
129
141
  }
130
142
  }
143
+
144
+ .${CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER_LINE_NUMBER_WRAPPED} {
145
+ counter-increment: line;
146
+ line-height: 1rem;
147
+ pointer-events: none;
148
+
149
+ ::before {
150
+ text-align: right;
151
+ min-width: 1.5rem;
152
+ display: block;
153
+ height: 1rem;
154
+ position: absolute;
155
+ padding-right: ${"var(--ds-space-100, 8px)"};
156
+ padding-left: ${"var(--ds-space-100, 8px)"};
157
+ margin-top: ${"var(--ds-space-050, 4px)"};
158
+ margin-right: ${"var(--ds-space-100, 8px)"};
159
+ left: -0.5rem;
160
+ color: ${`var(--ds-text-subtlest, ${N400})`};
161
+ font-size: ${relativeFontSizeToBase16(fontSize())};
162
+ content: counter(line);
163
+ }
164
+ }
131
165
  }
132
166
  `;
133
167
 
@@ -12,7 +12,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
12
12
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
13
13
  import Layer from '../Layer';
14
14
  const packageName = "@atlaskit/editor-common";
15
- const packageVersion = "87.3.5";
15
+ const packageVersion = "87.4.1";
16
16
  const halfFocusRing = 1;
17
17
  const dropOffset = '0, 8';
18
18
  class DropList extends Component {
@@ -6,6 +6,7 @@
6
6
  import { css, jsx } from '@emotion/react';
7
7
  import { FormattedMessage } from 'react-intl-next';
8
8
  import { LinkButton } from '@atlaskit/button/new';
9
+ import { fg } from '@atlaskit/platform-feature-flags';
9
10
  import { Box, xcss } from '@atlaskit/primitives';
10
11
  import NotFoundIllustration from './NotFoundIllustration';
11
12
  export default function EmptyState(_ref) {
@@ -14,7 +15,7 @@ export default function EmptyState(_ref) {
14
15
  css: emptyStateWrapper,
15
16
  "data-testid": "empty-state-wrapper"
16
17
  }, jsx(NotFoundIllustration, null), jsx("div", {
17
- css: emptyStateHeading
18
+ css: [emptyStateHeading, fg('platform_editor_migration_icon_and_typography') ? emptyStateHeadingFontToken : emptyStateHeadingFont]
18
19
  }, jsx(FormattedMessage, {
19
20
  id: "fabric.editor.elementbrowser.search.empty-state.heading",
20
21
  defaultMessage: "Nothing matches your search",
@@ -38,12 +39,17 @@ export default function EmptyState(_ref) {
38
39
  description: "Empty state sub-heading external link"
39
40
  })))));
40
41
  }
41
- var emptyStateHeading = css({
42
+ var emptyStateHeadingFontToken = css({
43
+ font: "var(--ds-font-heading-medium, normal 500 20px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
44
+ });
45
+ var emptyStateHeadingFont = css({
42
46
  fontSize: '1.42857em',
43
47
  lineHeight: 1.2,
44
- color: "var(--ds-text, rgb(23, 43, 77))",
45
48
  fontWeight: 500,
46
- letterSpacing: '-0.008em',
49
+ letterSpacing: '-0.008em'
50
+ });
51
+ var emptyStateHeading = css({
52
+ color: "var(--ds-text, rgb(23, 43, 77))",
47
53
  marginTop: "var(--ds-space-300, 24px)"
48
54
  });
49
55
  var emptyStateSubHeading = css({
@@ -27,6 +27,7 @@ import { isSafeUrl } from '@atlaskit/adf-schema';
27
27
  import { withAnalyticsEvents } from '@atlaskit/analytics-next';
28
28
  import Page16Icon from '@atlaskit/icon-object/glyph/page/16';
29
29
  import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
30
+ import { fg } from '@atlaskit/platform-feature-flags';
30
31
  import { Pressable, xcss } from '@atlaskit/primitives';
31
32
  import { N200 } from '@atlaskit/theme/colors';
32
33
  import { fontSizeSmall } from '@atlaskit/theme/constants';
@@ -71,10 +72,16 @@ var containerPadding = css({
71
72
  var textLabelMargin = css({
72
73
  marginTop: "var(--ds-space-150, 12px)"
73
74
  });
74
- var inputLabel = css({
75
+ var inputLabelFontToken = css({
76
+ font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
77
+ fontWeight: "var(--ds-font-weight-medium, 500)"
78
+ });
79
+ var inputLabelFont = css({
75
80
  fontSize: "".concat(fontSizeSmall(), "px"),
81
+ fontWeight: 500
82
+ });
83
+ var inputLabel = css({
76
84
  color: "var(--ds-text-subtlest, ".concat(N200, ")"),
77
- fontWeight: 500,
78
85
  paddingBottom: "var(--ds-space-050, 4px)"
79
86
  });
80
87
  var inputWrapperPosition = css({
@@ -849,7 +856,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
849
856
  ref: this.wrapperRef
850
857
  }, jsx("label", {
851
858
  htmlFor: linkSearchInputId,
852
- css: inputLabel
859
+ css: [inputLabel, fg('platform_editor_migration_icon_and_typography') ? inputLabelFontToken : inputLabelFont]
853
860
  }, formatMessage(messages.linkVisibleLabel)), jsx("div", {
854
861
  css: [inputWrapper, inputWrapperPosition]
855
862
  }, screenReaderText && jsx(Announcer, {
@@ -893,7 +900,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
893
900
  primaryColor: "var(--ds-icon-subtle, #626F86)"
894
901
  }))))), jsx("label", {
895
902
  htmlFor: displayTextInputId,
896
- css: [inputLabel, textLabelMargin]
903
+ css: [inputLabel, textLabelMargin, fg('platform_editor_migration_icon_and_typography') ? inputLabelFontToken : inputLabelFont]
897
904
  }, formatMessage(messages.textVisibleLabel)), jsx("div", {
898
905
  css: [inputWrapper, inputWrapperPosition]
899
906
  }, jsx(PanelTextInput, {
@@ -145,6 +145,11 @@ export var messages = defineMessages({
145
145
  defaultMessage: 'Add a note with an emoji and colored background',
146
146
  description: 'Visually distinguishes your panel by adding a emoji icon and background color '
147
147
  },
148
+ panel: {
149
+ id: 'fabric.editor.panel',
150
+ defaultMessage: 'Panel',
151
+ description: 'Visually distinguishes your text by adding a panel'
152
+ },
148
153
  other: {
149
154
  id: 'fabric.editor.other',
150
155
  defaultMessage: 'Others...',
@@ -224,5 +224,10 @@ export var toolbarInsertBlockMessages = defineMessages({
224
224
  id: 'fabric.editor.recordLoomShortTitle',
225
225
  defaultMessage: 'Record',
226
226
  description: 'Record'
227
+ },
228
+ turnInto: {
229
+ id: 'fabric.editor.turnInto',
230
+ defaultMessage: 'Turn into',
231
+ description: 'Turn selected texts into another element containing those texts'
227
232
  }
228
233
  });
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "87.3.5";
10
+ var packageVersion = "87.4.1";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // TODO: Sanitise the URL instead of just removing it
@@ -14,12 +14,16 @@ export var CodeBlockSharedCssClassName = {
14
14
  CODEBLOCK_LINE_NUMBER_GUTTER: 'line-number-gutter',
15
15
  CODEBLOCK_CONTENT: 'code-content',
16
16
  DS_CODEBLOCK: '[data-ds--code--code-block]',
17
- CODEBLOCK_CONTENT_WRAPPED: 'code-content--wrapped'
17
+ CODEBLOCK_LINE_NUMBER_GUTTER_FG_WRAP: 'line-number-gutter--fg-wrap',
18
+ CODEBLOCK_CONTENT_WRAPPED: 'code-content--wrapped',
19
+ CODEBLOCK_CONTAINER_LINE_NUMBER_WRAPPED: 'code-content__line-number--wrapped'
18
20
  };
21
+
22
+ // TODO: ED-24222 Remove flex styling and hardcoded word
19
23
  export var codeBlockSharedStyles = function codeBlockSharedStyles() {
20
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\tposition: relative;\n\t\tbackground-color: ", ";\n\t\tborder-radius: ", ";\n\t\tmargin: ", " 0 0 0;\n\t\tfont-family: ", ";\n\t\tmin-width: ", "px;\n\t\tcursor: pointer;\n\n\t\t--ds--code--bg-color: transparent;\n\n\t\t/* This is necessary to allow for arrow key navigation in/out of code blocks in Firefox. */\n\t\twhite-space: normal;\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\ttop: 0px;\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\tbottom: 0px;\n\t\t\tright: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tbackground-color: ", ";\n\t\t\tdisplay: flex;\n\t\t\tborder-radius: ", ";\n\t\t\twidth: 100%;\n\t\t\tcounter-reset: line;\n\t\t\toverflow-x: auto;\n\n\t\t\tbackground-image: ", ";\n\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-attachment: local, local, local, local, scroll, scroll, scroll, scroll;\n\t\t\tbackground-size:\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%;\n\t\t\tbackground-position:\n\t\t\t\t0 0,\n\t\t\t\t0 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t0 0,\n\t\t\t\t0 0;\n\n\t\t\t/* Be careful if refactoring this; it is needed to keep arrow key navigation in Firefox consistent with other browsers. */\n\t\t\toverflow-y: hidden;\n\t\t}\n\n\t\t.", " {\n\t\t\tflex-shrink: 0;\n\t\t\ttext-align: right;\n\t\t\tbackground-color: ", ";\n\t\t\tpadding: ", ";\n\t\t\tposition: relative;\n\n\t\t\tspan {\n\t\t\t\tdisplay: block;\n\t\t\t\tline-height: 0;\n\t\t\t\tfont-size: 0;\n\n\t\t\t\t::before {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\tcontent: counter(line);\n\t\t\t\t\tcounter-increment: line;\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t\tfont-size: ", ";\n\t\t\t\t\tline-height: 1.5rem;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tdisplay: flex;\n\t\t\tflex: 1;\n\n\t\t\tcode {\n\t\t\t\tflex-grow: 1;\n\t\t\t\ttab-size: 4;\n\t\t\t\tcursor: text;\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: ", ";\n\t\t\t\tmargin: ", ";\n\t\t\t\twhite-space: pre;\n\t\t\t\tfont-size: ", ";\n\t\t\t\tline-height: 1.5rem;\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tcode {\n\t\t\t\tword-break: break-word;\n\t\t\t\twhite-space: pre-wrap;\n\t\t\t}\n\t\t}\n\t}\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({
24
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\tposition: relative;\n\t\tbackground-color: ", ";\n\t\tborder-radius: ", ";\n\t\tmargin: ", " 0 0 0;\n\t\tfont-family: ", ";\n\t\tmin-width: ", "px;\n\t\tcursor: pointer;\n\n\t\t--ds--code--bg-color: transparent;\n\n\t\t/* This is necessary to allow for arrow key navigation in/out of code blocks in Firefox. */\n\t\twhite-space: normal;\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\ttop: 0px;\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\tbottom: 0px;\n\t\t\tright: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tbackground-color: ", ";\n\t\t\tdisplay: flex;\n\t\t\tborder-radius: ", ";\n\t\t\twidth: 100%;\n\t\t\tcounter-reset: line;\n\t\t\toverflow-x: auto;\n\n\t\t\tbackground-image: ", ";\n\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-attachment: local, local, local, local, scroll, scroll, scroll, scroll;\n\t\t\tbackground-size:\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%;\n\t\t\tbackground-position:\n\t\t\t\t0 0,\n\t\t\t\t0 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t0 0,\n\t\t\t\t0 0;\n\n\t\t\t/* Be careful if refactoring this; it is needed to keep arrow key navigation in Firefox consistent with other browsers. */\n\t\t\toverflow-y: hidden;\n\t\t}\n\n\t\t.", " {\n\t\t\tflex-shrink: 0;\n\t\t\ttext-align: right;\n\t\t\tbackground-color: ", ";\n\t\t\tpadding: ", ";\n\t\t\tposition: relative;\n\n\t\t\tspan {\n\t\t\t\tdisplay: block;\n\t\t\t\tline-height: 0;\n\t\t\t\tfont-size: 0;\n\n\t\t\t\t::before {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\tcontent: counter(line);\n\t\t\t\t\tcounter-increment: line;\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t\tfont-size: ", ";\n\t\t\t\t\tline-height: 1.5rem;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tbackground-color: ", ";\n\t\t\tpadding: ", ";\n\t\t\tposition: relative;\n\t\t\twidth: 1rem;\n\t\t}\n\n\t\t.", " {\n\t\t\tdisplay: flex;\n\t\t\tflex: 1;\n\n\t\t\tcode {\n\t\t\t\tflex-grow: 1;\n\t\t\t\ttab-size: 4;\n\t\t\t\tcursor: text;\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: ", ";\n\t\t\t\tmargin: ", ";\n\t\t\t\twhite-space: pre;\n\t\t\t\tfont-size: ", ";\n\t\t\t\tline-height: 1.5rem;\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tcode {\n\t\t\t\tcounter-reset: line var(--line-num, 0);\n\t\t\t\tword-break: break-word;\n\t\t\t\twhite-space: pre-wrap;\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tcounter-increment: line;\n\t\t\tline-height: 1rem;\n\t\t\tpointer-events: none;\n\n\t\t\t::before {\n\t\t\t\ttext-align: right;\n\t\t\t\tmin-width: 1.5rem;\n\t\t\t\tdisplay: block;\n\t\t\t\theight: 1rem;\n\t\t\t\tposition: absolute;\n\t\t\t\tpadding-right: ", ";\n\t\t\t\tpadding-left: ", ";\n\t\t\t\tmargin-top: ", ";\n\t\t\t\tmargin-right: ", ";\n\t\t\t\tleft: -0.5rem;\n\t\t\t\tcolor: ", ";\n\t\t\t\tfont-size: ", ";\n\t\t\t\tcontent: counter(line);\n\t\t\t}\n\t\t}\n\t}\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({
21
25
  leftCoverWidth: "var(--ds-space-300, 24px)"
22
- }), "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()), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPED);
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(N30, ")"), "var(--ds-space-100, 8px)", "var(--ds-text-subtlest, ".concat(N400, ")"), relativeFontSizeToBase16(fontSize()), CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER_FG_WRAP, "var(--ds-background-neutral, ".concat(N30, ")"), "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, "var(--ds-text, ".concat(N800, ")"), "var(--ds-border-radius, 3px)", "var(--ds-space-100, 8px)", relativeFontSizeToBase16(fontSize()), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPED, CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER_LINE_NUMBER_WRAPPED, "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-050, 4px)", "var(--ds-space-100, 8px)", "var(--ds-text-subtlest, ".concat(N400, ")"), relativeFontSizeToBase16(fontSize()));
23
27
  };
24
28
 
25
29
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
@@ -20,7 +20,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
20
20
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
21
21
  import Layer from '../Layer';
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "87.3.5";
23
+ var packageVersion = "87.4.1";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  var DropList = /*#__PURE__*/function (_Component) {
@@ -144,6 +144,11 @@ export declare const messages: {
144
144
  defaultMessage: string;
145
145
  description: string;
146
146
  };
147
+ panel: {
148
+ id: string;
149
+ defaultMessage: string;
150
+ description: string;
151
+ };
147
152
  other: {
148
153
  id: string;
149
154
  defaultMessage: string;
@@ -224,4 +224,9 @@ export declare const toolbarInsertBlockMessages: {
224
224
  defaultMessage: string;
225
225
  description: string;
226
226
  };
227
+ turnInto: {
228
+ id: string;
229
+ defaultMessage: string;
230
+ description: string;
231
+ };
227
232
  };
@@ -6,7 +6,9 @@ export declare const CodeBlockSharedCssClassName: {
6
6
  CODEBLOCK_LINE_NUMBER_GUTTER: string;
7
7
  CODEBLOCK_CONTENT: string;
8
8
  DS_CODEBLOCK: string;
9
+ CODEBLOCK_LINE_NUMBER_GUTTER_FG_WRAP: string;
9
10
  CODEBLOCK_CONTENT_WRAPPED: string;
11
+ CODEBLOCK_CONTAINER_LINE_NUMBER_WRAPPED: string;
10
12
  };
11
13
  export declare const codeBlockSharedStyles: () => import("@emotion/react").SerializedStyles;
12
14
  export declare const codeBlockInListSafariFix: import("@emotion/react").SerializedStyles;
@@ -327,6 +327,14 @@ export type FeatureFlags = {
327
327
 
328
328
  */
329
329
  moreElementsInQuickInsertView?: boolean;
330
+ /**
331
+ * @description
332
+ * Enables basic text transformations options in floating toolbar
333
+ *
334
+ * @see https://product-fabric.atlassian.net/browse/ED-24447
335
+ * @default false
336
+ */
337
+ basicTextTransformations?: boolean;
330
338
  };
331
339
  export type FeatureFlagKey = keyof FeatureFlags;
332
340
  export type GetEditorFeatureFlags = () => FeatureFlags;
@@ -202,6 +202,10 @@ export type FloatingToolbarDropdown<T extends {}> = {
202
202
  type: 'dropdown';
203
203
  title: string;
204
204
  icon?: Icon;
205
+ /**
206
+ * Places an icon before the title as a representation
207
+ */
208
+ iconBefore?: Icon;
205
209
  options: DropdownOptions<T>;
206
210
  hidden?: boolean;
207
211
  hideExpandIcon?: boolean;
@@ -144,6 +144,11 @@ export declare const messages: {
144
144
  defaultMessage: string;
145
145
  description: string;
146
146
  };
147
+ panel: {
148
+ id: string;
149
+ defaultMessage: string;
150
+ description: string;
151
+ };
147
152
  other: {
148
153
  id: string;
149
154
  defaultMessage: string;
@@ -224,4 +224,9 @@ export declare const toolbarInsertBlockMessages: {
224
224
  defaultMessage: string;
225
225
  description: string;
226
226
  };
227
+ turnInto: {
228
+ id: string;
229
+ defaultMessage: string;
230
+ description: string;
231
+ };
227
232
  };
@@ -6,7 +6,9 @@ export declare const CodeBlockSharedCssClassName: {
6
6
  CODEBLOCK_LINE_NUMBER_GUTTER: string;
7
7
  CODEBLOCK_CONTENT: string;
8
8
  DS_CODEBLOCK: string;
9
+ CODEBLOCK_LINE_NUMBER_GUTTER_FG_WRAP: string;
9
10
  CODEBLOCK_CONTENT_WRAPPED: string;
11
+ CODEBLOCK_CONTAINER_LINE_NUMBER_WRAPPED: string;
10
12
  };
11
13
  export declare const codeBlockSharedStyles: () => import("@emotion/react").SerializedStyles;
12
14
  export declare const codeBlockInListSafariFix: import("@emotion/react").SerializedStyles;
@@ -327,6 +327,14 @@ export type FeatureFlags = {
327
327
 
328
328
  */
329
329
  moreElementsInQuickInsertView?: boolean;
330
+ /**
331
+ * @description
332
+ * Enables basic text transformations options in floating toolbar
333
+ *
334
+ * @see https://product-fabric.atlassian.net/browse/ED-24447
335
+ * @default false
336
+ */
337
+ basicTextTransformations?: boolean;
330
338
  };
331
339
  export type FeatureFlagKey = keyof FeatureFlags;
332
340
  export type GetEditorFeatureFlags = () => FeatureFlags;
@@ -202,6 +202,10 @@ export type FloatingToolbarDropdown<T extends {}> = {
202
202
  type: 'dropdown';
203
203
  title: string;
204
204
  icon?: Icon;
205
+ /**
206
+ * Places an icon before the title as a representation
207
+ */
208
+ iconBefore?: Icon;
205
209
  options: DropdownOptions<T>;
206
210
  hidden?: boolean;
207
211
  hideExpandIcon?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "87.3.5",
3
+ "version": "87.4.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/"
@@ -134,7 +134,7 @@
134
134
  "@atlaskit/primitives": "^11.1.0",
135
135
  "@atlaskit/profilecard": "^19.17.0",
136
136
  "@atlaskit/section-message": "^6.5.0",
137
- "@atlaskit/smart-card": "^27.12.0",
137
+ "@atlaskit/smart-card": "^27.13.0",
138
138
  "@atlaskit/smart-user-picker": "^6.10.0",
139
139
  "@atlaskit/spinner": "^16.2.0",
140
140
  "@atlaskit/task-decision": "^17.10.0",
@@ -265,6 +265,9 @@
265
265
  },
266
266
  "editor_support_code_block_wrapping": {
267
267
  "type": "boolean"
268
+ },
269
+ "platform_editor_migration_icon_and_typography": {
270
+ "type": "boolean"
268
271
  }
269
272
  }
270
273
  }