@atlaskit/editor-core 187.31.5 → 187.31.7

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 (56) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/labs/next/presets/default.js +2 -2
  3. package/dist/cjs/plugins/extension/ui/Extension/Extension/index.js +11 -2
  4. package/dist/cjs/plugins/index.js +0 -7
  5. package/dist/cjs/plugins/media/toolbar/index.js +20 -6
  6. package/dist/cjs/plugins/media/ui/PixelEntry/index.js +9 -2
  7. package/dist/cjs/plugins/media/ui/PixelEntry/messages.js +5 -0
  8. package/dist/cjs/plugins/media/ui/PixelEntry/styles.js +5 -3
  9. package/dist/cjs/plugins/selection/gap-cursor/utils.js +1 -2
  10. package/dist/cjs/ui/ContentStyles/index.js +20 -21
  11. package/dist/cjs/version-wrapper.js +1 -1
  12. package/dist/es2019/labs/next/presets/default.js +1 -1
  13. package/dist/es2019/plugins/extension/ui/Extension/Extension/index.js +13 -2
  14. package/dist/es2019/plugins/index.js +0 -1
  15. package/dist/es2019/plugins/media/toolbar/index.js +23 -7
  16. package/dist/es2019/plugins/media/ui/PixelEntry/index.js +10 -1
  17. package/dist/es2019/plugins/media/ui/PixelEntry/messages.js +5 -0
  18. package/dist/es2019/plugins/media/ui/PixelEntry/styles.js +7 -0
  19. package/dist/es2019/plugins/selection/gap-cursor/utils.js +1 -2
  20. package/dist/es2019/ui/ContentStyles/index.js +1 -2
  21. package/dist/es2019/version-wrapper.js +1 -1
  22. package/dist/esm/labs/next/presets/default.js +1 -1
  23. package/dist/esm/plugins/extension/ui/Extension/Extension/index.js +11 -2
  24. package/dist/esm/plugins/index.js +0 -1
  25. package/dist/esm/plugins/media/toolbar/index.js +21 -7
  26. package/dist/esm/plugins/media/ui/PixelEntry/index.js +7 -1
  27. package/dist/esm/plugins/media/ui/PixelEntry/messages.js +5 -0
  28. package/dist/esm/plugins/media/ui/PixelEntry/styles.js +3 -2
  29. package/dist/esm/plugins/selection/gap-cursor/utils.js +1 -2
  30. package/dist/esm/ui/ContentStyles/index.js +1 -2
  31. package/dist/esm/version-wrapper.js +1 -1
  32. package/dist/types/plugins/index.d.ts +0 -1
  33. package/dist/types/plugins/media/ui/PixelEntry/index.d.ts +5 -0
  34. package/dist/types/plugins/media/ui/PixelEntry/messages.d.ts +5 -0
  35. package/dist/types/plugins/media/ui/PixelEntry/styles.d.ts +1 -0
  36. package/dist/types-ts4.5/plugins/index.d.ts +0 -1
  37. package/dist/types-ts4.5/plugins/media/ui/PixelEntry/index.d.ts +5 -0
  38. package/dist/types-ts4.5/plugins/media/ui/PixelEntry/messages.d.ts +5 -0
  39. package/dist/types-ts4.5/plugins/media/ui/PixelEntry/styles.d.ts +1 -0
  40. package/package.json +3 -2
  41. package/tmp/api-report-tmp.d.ts +1897 -0
  42. package/dist/cjs/plugins/unsupported-content/index.js +0 -87
  43. package/dist/cjs/plugins/unsupported-content/styles.js +0 -20
  44. package/dist/cjs/plugins/unsupported-content/unsupported-inline-node-view.js +0 -16
  45. package/dist/es2019/plugins/unsupported-content/index.js +0 -77
  46. package/dist/es2019/plugins/unsupported-content/styles.js +0 -27
  47. package/dist/es2019/plugins/unsupported-content/unsupported-inline-node-view.js +0 -7
  48. package/dist/esm/plugins/unsupported-content/index.js +0 -77
  49. package/dist/esm/plugins/unsupported-content/styles.js +0 -11
  50. package/dist/esm/plugins/unsupported-content/unsupported-inline-node-view.js +0 -7
  51. package/dist/types/plugins/unsupported-content/index.d.ts +0 -5
  52. package/dist/types/plugins/unsupported-content/styles.d.ts +0 -5
  53. package/dist/types/plugins/unsupported-content/unsupported-inline-node-view.d.ts +0 -11
  54. package/dist/types-ts4.5/plugins/unsupported-content/index.d.ts +0 -5
  55. package/dist/types-ts4.5/plugins/unsupported-content/styles.d.ts +0 -5
  56. package/dist/types-ts4.5/plugins/unsupported-content/unsupported-inline-node-view.d.ts +0 -11
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 187.31.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c3de9f17631`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c3de9f17631) - ED-19359:
8
+ editor-core: Migrated skipped test: packages/editor/editor-core/src/tests/integration/gap-cursor/gap-cursor.ts to Libra
9
+ Libra: added a new page-model(editor-confirmation-popup-base-model.ts) to libra package and updated editor extension model
10
+ - [`a9feb9fae6e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a9feb9fae6e) - [ED-19672] Workaround tofix detached Extension calling NodeView.getPos
11
+
12
+ ## 187.31.6
13
+
14
+ ### Patch Changes
15
+
16
+ - [`e0f020abea0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e0f020abea0) - created new plugin for unsupported-content, moved code and styles
17
+ - [`dcf5ea47df4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dcf5ea47df4) - [ux] Display 'Full width' in media single floating toolbar when the node reaches full width
18
+ - Updated dependencies
19
+
3
20
  ## 187.31.5
4
21
 
5
22
  ### Patch Changes
@@ -12,7 +12,7 @@ var _clearMarksOnChangeToEmptyDocument = _interopRequireDefault(require("../../.
12
12
  var _editorPluginHyperlink = require("@atlaskit/editor-plugin-hyperlink");
13
13
  var _editorPluginTextFormatting = require("@atlaskit/editor-plugin-text-formatting");
14
14
  var _editorPluginWidth = require("@atlaskit/editor-plugin-width");
15
- var _unsupportedContent = _interopRequireDefault(require("../../../plugins/unsupported-content"));
15
+ var _editorPluginUnsupportedContent = require("@atlaskit/editor-plugin-unsupported-content");
16
16
  var _base = require("../../../plugins/base");
17
17
  var _editorPluginFocus = require("@atlaskit/editor-plugin-focus");
18
18
  var _editorPluginEditorDisabled = require("@atlaskit/editor-plugin-editor-disabled");
@@ -76,7 +76,7 @@ function createDefaultPreset(options) {
76
76
  return builder;
77
77
  }).add([_editorPluginHyperlink.hyperlinkPlugin, options.hyperlinkOptions]).add([_editorPluginTextFormatting.textFormattingPlugin, options.textFormatting]).add(_editorPluginWidth.widthPlugin).add([_quickInsert.default, options.quickInsert]).add([_typeAhead.default, options.typeAhead || {
78
78
  createAnalyticsEvent: options.createAnalyticsEvent
79
- }]).add(_unsupportedContent.default).add(_editorPluginEditorDisabled.editorDisabledPlugin).add([_submitEditor.default, options.submitEditor]).add(_fakeTextCursor.default).add(_floatingToolbar.default).add([_selection.default, options.selection]).add([_codeBlock.default, options.codeBlock || {
79
+ }]).add(_editorPluginUnsupportedContent.unsupportedContentPlugin).add(_editorPluginEditorDisabled.editorDisabledPlugin).add([_submitEditor.default, options.submitEditor]).add(_fakeTextCursor.default).add(_floatingToolbar.default).add([_selection.default, options.selection]).add([_codeBlock.default, options.codeBlock || {
80
80
  appearance: 'full-page'
81
81
  }]);
82
82
  return preset;
@@ -38,8 +38,17 @@ function ExtensionWithPluginState(props) {
38
38
  var isMobile = editorAppearance === 'mobile';
39
39
  var hasChildren = !!children;
40
40
  var removeBorder = hideFrame && !isMobile && !hasBody || false;
41
- var pos = typeof props.getPos === 'function' ? props.getPos() : undefined;
42
- var isTopLevelNode = typeof pos !== 'undefined' && !isNaN(pos) && props.view.state.doc.resolve(pos).depth === 0;
41
+ var getPos = props.getPos,
42
+ view = props.view;
43
+ var isTopLevelNode = _react.default.useMemo(function () {
44
+ try {
45
+ var pos = typeof getPos === 'function' ? getPos() : undefined;
46
+ return typeof pos !== 'undefined' && !isNaN(pos) && view.state.doc.resolve(pos).depth === 0;
47
+ } catch (e) {
48
+ return false;
49
+ }
50
+ return false;
51
+ }, [view, getPos]);
43
52
  var shouldBreakout =
44
53
  // Extension should breakout when the layout is set to 'full-width' or 'wide'.
45
54
  ['full-width', 'wide'].includes(node.attrs.layout) &&
@@ -353,12 +353,6 @@ Object.defineProperty(exports, "undoRedoPlugin", {
353
353
  return _undoRedo.default;
354
354
  }
355
355
  });
356
- Object.defineProperty(exports, "unsupportedContentPlugin", {
357
- enumerable: true,
358
- get: function get() {
359
- return _unsupportedContent.default;
360
- }
361
- });
362
356
  Object.defineProperty(exports, "viewUpdateSubscriptionPlugin", {
363
357
  enumerable: true,
364
358
  get: function get() {
@@ -395,7 +389,6 @@ var _submitEditor = _interopRequireDefault(require("./submit-editor"));
395
389
  var _tasksAndDecisions = _interopRequireDefault(require("./tasks-and-decisions"));
396
390
  var _textColor = _interopRequireDefault(require("./text-color"));
397
391
  var _typeAhead = _interopRequireDefault(require("./type-ahead"));
398
- var _unsupportedContent = _interopRequireDefault(require("./unsupported-content"));
399
392
  var _floatingToolbar = _interopRequireDefault(require("./floating-toolbar"));
400
393
  var _status = _interopRequireDefault(require("./status"));
401
394
  var _breakout = _interopRequireDefault(require("./breakout"));
@@ -264,20 +264,17 @@ var generateMediaSingleFloatingToolbar = function generateMediaSingleFloatingToo
264
264
 
265
265
  // Pixel Entry Toolbar Support
266
266
  if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.media.extended-resize-experience') && allowResizing) {
267
+ var selectedMediaSingleNode = (0, _utils2.getSelectedMediaSingle)(state);
267
268
  var sizeInput = {
268
269
  type: 'custom',
269
270
  fallback: [],
270
271
  render: function render(editorView) {
271
272
  var _widthPlugin$sharedSt2;
272
- if (!editorView) {
273
+ if (!editorView || !selectedMediaSingleNode) {
273
274
  return null;
274
275
  }
275
276
  var state = editorView.state,
276
277
  dispatch = editorView.dispatch;
277
- var selectedMediaSingleNode = (0, _utils2.getSelectedMediaSingle)(state);
278
- if (!selectedMediaSingleNode) {
279
- return null;
280
- }
281
278
  var contentWidth = (widthPlugin === null || widthPlugin === void 0 ? void 0 : (_widthPlugin$sharedSt2 = widthPlugin.sharedState.currentState()) === null || _widthPlugin$sharedSt2 === void 0 ? void 0 : _widthPlugin$sharedSt2.lineLength) || _editorSharedStyles.akEditorDefaultLayoutWidth;
282
279
  var selectedMediaNode = selectedMediaSingleNode.node.content.firstChild;
283
280
  if (!selectedMediaNode) {
@@ -340,7 +337,24 @@ var generateMediaSingleFloatingToolbar = function generateMediaSingleFloatingToo
340
337
  }
341
338
  };
342
339
  if (pluginState.isResizing) {
343
- // If the image is resizing then only return `sizeInput` as the only toolbar item
340
+ // If the image is resizing
341
+ // then return pixel entry component or full width label as the only toolbar item
342
+ if (!selectedMediaSingleNode) {
343
+ return [];
344
+ }
345
+ var layout = selectedMediaSingleNode.node.attrs.layout;
346
+ if (layout === 'full-width') {
347
+ var fullWidthLabel = {
348
+ type: 'custom',
349
+ fallback: [],
350
+ render: function render() {
351
+ return /*#__PURE__*/_react.default.createElement(_PixelEntry.FullWidthDisplay, {
352
+ intl: intl
353
+ });
354
+ }
355
+ };
356
+ return [fullWidthLabel];
357
+ }
344
358
  return [sizeInput];
345
359
  }
346
360
  toolbarButtons.push(sizeInput);
@@ -5,7 +5,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.PixelEntry = void 0;
8
+ exports.PixelEntry = exports.FullWidthDisplay = void 0;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
11
  var _react = require("@emotion/react");
@@ -187,4 +187,11 @@ var PixelEntry = function PixelEntry(_ref) {
187
187
  }, formatMessage(_messages.messages.submitButtonText))));
188
188
  }));
189
189
  };
190
- exports.PixelEntry = PixelEntry;
190
+ exports.PixelEntry = PixelEntry;
191
+ var FullWidthDisplay = function FullWidthDisplay(_ref5) {
192
+ var formatMessage = _ref5.intl.formatMessage;
193
+ return (0, _react.jsx)("div", {
194
+ css: _styles.pixelSizingFullWidthLabelStyles
195
+ }, (0, _react.jsx)("span", null, formatMessage(_messages.messages.fullWidthLabel)));
196
+ };
197
+ exports.FullWidthDisplay = FullWidthDisplay;
@@ -36,6 +36,11 @@ var messages = (0, _reactIntlNext.defineMessages)({
36
36
  defaultMessage: 'Submit',
37
37
  description: 'The text give to the hidden submit button'
38
38
  },
39
+ fullWidthLabel: {
40
+ id: 'fabric.editor.image.fullWidthLabel',
41
+ defaultMessage: 'Full-width',
42
+ description: 'The media has reached its maximum width'
43
+ },
39
44
  migrationButtonText: {
40
45
  id: 'fabric.editor.media.pixelEntry.migrationButtonText',
41
46
  defaultMessage: 'Convert to pixels',
@@ -4,10 +4,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.pixelSizingWrapper = exports.pixelSizingWidthInput = exports.pixelSizingLabel = exports.pixelSizingInput = exports.pixelSizingHeightInput = exports.pixelEntryHiddenSubmit = exports.pixelEntryForm = void 0;
7
+ exports.pixelSizingWrapper = exports.pixelSizingWidthInput = exports.pixelSizingLabel = exports.pixelSizingInput = exports.pixelSizingHeightInput = exports.pixelSizingFullWidthLabelStyles = exports.pixelEntryHiddenSubmit = exports.pixelEntryForm = void 0;
8
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
9
  var _react = require("@emotion/react");
10
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
10
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
11
11
  var PIXEL_SIZING_WRAPPER_MINIMUM_WIDTH = 120;
12
12
  var pixelSizingWrapper = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: grid;\n grid-template-columns: 1fr 1em 1fr 0;\n grid-template-rows: auto;\n grid-template-areas: 'widthinput label heightinput submit';\n width: ", "px;\n text-align: center;\n height: ", ";\n\n // Atlaskit fieldset does not allow style override\n & > * {\n margin-top: 0 !important;\n }\n"])), PIXEL_SIZING_WRAPPER_MINIMUM_WIDTH, "var(--ds-space-300, 24px)");
13
13
  exports.pixelSizingWrapper = pixelSizingWrapper;
@@ -22,4 +22,6 @@ exports.pixelSizingWidthInput = pixelSizingWidthInput;
22
22
  var pixelSizingHeightInput = (0, _react.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n grid-area: heightinput;\n"])));
23
23
  exports.pixelSizingHeightInput = pixelSizingHeightInput;
24
24
  var pixelEntryHiddenSubmit = (0, _react.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n grid-area: submit;\n visibility: hidden;\n width: 0;\n height: 0;\n"])));
25
- exports.pixelEntryHiddenSubmit = pixelEntryHiddenSubmit;
25
+ exports.pixelEntryHiddenSubmit = pixelEntryHiddenSubmit;
26
+ var pixelSizingFullWidthLabelStyles = (0, _react.css)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n min-width: ", "px;\n height: ", ";\n display: flex;\n justify-content: center;\n align-items: center;\n"])), PIXEL_SIZING_WRAPPER_MINIMUM_WIDTH, "var(--ds-space-300, 24px)");
27
+ exports.pixelSizingFullWidthLabelStyles = pixelSizingFullWidthLabelStyles;
@@ -9,7 +9,6 @@ exports.getMediaNearPos = getMediaNearPos;
9
9
  exports.isTextBlockNearPos = exports.isLeftCursor = exports.isIgnoredClick = void 0;
10
10
  var _styles = require("@atlaskit/editor-common/styles");
11
11
  var _selection = require("./selection");
12
- var _styles2 = require("../../unsupported-content/styles");
13
12
  var _CaptionPlaceholder = require("../../media/ui/CaptionPlaceholder");
14
13
  var isLeftCursor = function isLeftCursor(side) {
15
14
  return side === _selection.Side.LEFT;
@@ -119,7 +118,7 @@ var isIgnoredClick = function isIgnoredClick(elem) {
119
118
 
120
119
  // Check if unsupported node selection
121
120
  // (without this, selection requires double clicking in FF due to posAtCoords differences)
122
- if (elem.closest(".".concat(_styles2.UnsupportedSharedCssClassName.BLOCK_CONTAINER))) {
121
+ if (elem.closest(".".concat(_styles.UnsupportedSharedCssClassName.BLOCK_CONTAINER))) {
123
122
  return true;
124
123
  }
125
124
  return false;
@@ -11,28 +11,27 @@ var _react = _interopRequireWildcard(require("react"));
11
11
  var _react2 = require("@emotion/react");
12
12
  var _styles = require("@atlaskit/editor-common/styles");
13
13
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
14
- var _styles2 = require("../../plugins/unsupported-content/styles");
15
- var _styles3 = require("../../plugins/collab-edit/styles");
16
- var _styles4 = require("../../plugins/selection/gap-cursor/styles");
14
+ var _styles2 = require("../../plugins/collab-edit/styles");
15
+ var _styles3 = require("../../plugins/selection/gap-cursor/styles");
17
16
  var _commonStyles = require("@atlaskit/editor-plugin-table/ui/common-styles");
18
- var _styles5 = require("../../plugins/placeholder/styles");
19
- var _styles6 = require("../../plugins/block-type/styles");
20
- var _styles7 = require("../../plugins/code-block/styles");
21
- var _styles8 = require("../../plugins/rule/styles");
22
- var _styles9 = require("../../plugins/media/styles");
23
- var _styles10 = require("../../plugins/layout/styles");
24
- var _styles11 = require("../../plugins/panel/styles");
25
- var _styles12 = require("../../plugins/fake-text-cursor/styles");
26
- var _styles13 = require("../../plugins/mentions/styles");
27
- var _styles14 = require("../../plugins/emoji/styles");
28
- var _styles15 = require("../../plugins/placeholder-text/styles");
29
- var _styles16 = require("../../plugins/extension/ui/styles");
30
- var _styles17 = require("../../plugins/expand/ui/styles");
17
+ var _styles4 = require("../../plugins/placeholder/styles");
18
+ var _styles5 = require("../../plugins/block-type/styles");
19
+ var _styles6 = require("../../plugins/code-block/styles");
20
+ var _styles7 = require("../../plugins/rule/styles");
21
+ var _styles8 = require("../../plugins/media/styles");
22
+ var _styles9 = require("../../plugins/layout/styles");
23
+ var _styles10 = require("../../plugins/panel/styles");
24
+ var _styles11 = require("../../plugins/fake-text-cursor/styles");
25
+ var _styles12 = require("../../plugins/mentions/styles");
26
+ var _styles13 = require("../../plugins/emoji/styles");
27
+ var _styles14 = require("../../plugins/placeholder-text/styles");
28
+ var _styles15 = require("../../plugins/extension/ui/styles");
29
+ var _styles16 = require("../../plugins/expand/ui/styles");
31
30
  var _style = require("../../plugins/media/pm-plugins/alt-text/style");
32
- var _styles18 = require("../../plugins/find-replace/styles");
33
- var _styles19 = require("../../plugins/tasks-and-decisions/styles");
34
- var _styles20 = require("../../plugins/status/styles");
35
- var _styles21 = require("../../plugins/date/styles");
31
+ var _styles17 = require("../../plugins/find-replace/styles");
32
+ var _styles18 = require("../../plugins/tasks-and-decisions/styles");
33
+ var _styles19 = require("../../plugins/status/styles");
34
+ var _styles20 = require("../../plugins/date/styles");
36
35
  var _getInlineNodeViewProducer = require("../../nodeviews/getInlineNodeViewProducer.styles");
37
36
  var _utils = require("@atlaskit/editor-common/utils");
38
37
  var _templateObject, _templateObject2, _templateObject3;
@@ -45,7 +44,7 @@ var listsStyles = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _
45
44
  var contentStyles = function contentStyles(props) {
46
45
  return (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror {\n outline: none;\n font-size: ", "px;\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n }\n\n .ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n pointer-events: none;\n opacity: 0.7;\n }\n\n .ProseMirror-hideselection *::selection {\n background: transparent;\n }\n\n .ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n }\n\n .ProseMirror-selectednode {\n outline: none;\n }\n\n .ProseMirror-selectednode:empty {\n outline: 2px solid ", ";\n }\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n .panelView-content-wrap {\n box-sizing: border-box;\n }\n\n .mediaGroupView-content-wrap ul {\n padding: 0;\n }\n\n /** Needed to override any cleared floats, e.g. image wrapping */\n\n div.fabric-editor-block-mark[class^='fabric-editor-align'] {\n clear: none !important;\n }\n\n .fabric-editor-align-end {\n text-align: right;\n }\n\n .fabric-editor-align-start {\n text-align: left;\n }\n\n .fabric-editor-align-center {\n text-align: center;\n }\n\n .pm-table-header-content-wrap :not(.fabric-editor-alignment),\n .pm-table-header-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark,\n .pm-table-cell-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark {\n p:first-of-type {\n margin-top: 0;\n }\n }\n\n .hyperlink-floating-toolbar,\n .", " {\n padding: 0;\n }\n\n /* Link icon in the Atlaskit package\n is bigger than the others\n */\n .hyperlink-open-link {\n svg {\n max-width: 18px;\n }\n &[href] {\n padding: 0 4px;\n }\n }\n"])), (0, _editorSharedStyles.editorFontSize)({
47
46
  theme: props.theme
48
- }), _styles.whitespaceSharedStyles, _styles.paragraphSharedStyles, _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", _styles15.placeholderTextStyles, _styles5.placeholderStyles, (0, _styles7.codeBlockStyles)(props), (0, _styles6.blocktypeStyles)(props), (0, _styles.codeMarkSharedStyles)(props), _styles.textColorStyles, listsStyles, (0, _styles8.ruleStyles)(props), _styles9.mediaStyles, (0, _styles10.layoutStyles)(props), _styles3.telepointerStyle, _styles4.gapCursorStyles, (0, _commonStyles.tableStyles)(props), (0, _styles11.panelStyles)(props), _styles12.fakeCursorStyles, _styles13.mentionsStyles, _styles14.emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _styles16.extensionStyles, (0, _styles17.expandStyles)(props), _styles18.findReplaceStyles, _styles19.taskDecisionStyles, _styles20.statusStyles, (0, _styles.annotationSharedStyles)(props), _styles.smartCardStyles, _styles.smartCardSharedStyles, _styles21.dateStyles, _styles.embedCardStyles, _styles2.unsupportedStyles, _styles.resizerStyles, _style.ClassNames.FLOATING_TOOLBAR_COMPONENT);
47
+ }), _styles.whitespaceSharedStyles, _styles.paragraphSharedStyles, _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", _styles14.placeholderTextStyles, _styles4.placeholderStyles, (0, _styles6.codeBlockStyles)(props), (0, _styles5.blocktypeStyles)(props), (0, _styles.codeMarkSharedStyles)(props), _styles.textColorStyles, listsStyles, (0, _styles7.ruleStyles)(props), _styles8.mediaStyles, (0, _styles9.layoutStyles)(props), _styles2.telepointerStyle, _styles3.gapCursorStyles, (0, _commonStyles.tableStyles)(props), (0, _styles10.panelStyles)(props), _styles11.fakeCursorStyles, _styles12.mentionsStyles, _styles13.emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _styles15.extensionStyles, (0, _styles16.expandStyles)(props), _styles17.findReplaceStyles, _styles18.taskDecisionStyles, _styles19.statusStyles, (0, _styles.annotationSharedStyles)(props), _styles.smartCardStyles, _styles.smartCardSharedStyles, _styles20.dateStyles, _styles.embedCardStyles, _styles.unsupportedStyles, _styles.resizerStyles, _style.ClassNames.FLOATING_TOOLBAR_COMPONENT);
49
48
  };
50
49
  var createEditorContentStyle = function createEditorContentStyle(styles) {
51
50
  return /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.nextMajorVersion = exports.name = void 0;
7
7
  var name = "@atlaskit/editor-core";
8
8
  exports.name = name;
9
- var version = "187.31.5";
9
+ var version = "187.31.7";
10
10
  exports.version = version;
11
11
  var nextMajorVersion = function nextMajorVersion() {
12
12
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
@@ -6,7 +6,7 @@ import clearMarksOnChangeToEmptyDocumentPlugin from '../../../plugins/clear-mark
6
6
  import { hyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
7
7
  import { textFormattingPlugin } from '@atlaskit/editor-plugin-text-formatting';
8
8
  import { widthPlugin } from '@atlaskit/editor-plugin-width';
9
- import unsupportedContentPlugin from '../../../plugins/unsupported-content';
9
+ import { unsupportedContentPlugin } from '@atlaskit/editor-plugin-unsupported-content';
10
10
  import { basePlugin } from '../../../plugins/base';
11
11
  import { focusPlugin } from '@atlaskit/editor-plugin-focus';
12
12
  import { editorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
@@ -27,8 +27,19 @@ function ExtensionWithPluginState(props) {
27
27
  const isMobile = editorAppearance === 'mobile';
28
28
  const hasChildren = !!children;
29
29
  const removeBorder = hideFrame && !isMobile && !hasBody || false;
30
- const pos = typeof props.getPos === 'function' ? props.getPos() : undefined;
31
- const isTopLevelNode = typeof pos !== 'undefined' && !isNaN(pos) && props.view.state.doc.resolve(pos).depth === 0;
30
+ const {
31
+ getPos,
32
+ view
33
+ } = props;
34
+ const isTopLevelNode = React.useMemo(() => {
35
+ try {
36
+ const pos = typeof getPos === 'function' ? getPos() : undefined;
37
+ return typeof pos !== 'undefined' && !isNaN(pos) && view.state.doc.resolve(pos).depth === 0;
38
+ } catch (e) {
39
+ return false;
40
+ }
41
+ return false;
42
+ }, [view, getPos]);
32
43
  const shouldBreakout =
33
44
  // Extension should breakout when the layout is set to 'full-width' or 'wide'.
34
45
  ['full-width', 'wide'].includes(node.attrs.layout) &&
@@ -29,7 +29,6 @@ export { default as submitEditorPlugin } from './submit-editor';
29
29
  export { default as tasksAndDecisionsPlugin } from './tasks-and-decisions';
30
30
  export { default as textColorPlugin } from './text-color';
31
31
  export { default as typeAheadPlugin } from './type-ahead';
32
- export { default as unsupportedContentPlugin } from './unsupported-content';
33
32
  export { default as floatingToolbarPlugin } from './floating-toolbar';
34
33
  export { default as statusPlugin } from './status';
35
34
  export { default as breakoutPlugin } from './breakout';
@@ -25,7 +25,7 @@ import { MediaInlineNodeSelector, MediaSingleNodeSelector } from '../nodeviews/s
25
25
  import ImageBorderItem from '../ui/ImageBorder';
26
26
  import { currentMediaNodeBorderMark } from '../utils/current-media-node';
27
27
  import { shouldShowImageBorder } from './imageBorder';
28
- import { PixelEntry } from '../ui/PixelEntry';
28
+ import { PixelEntry, FullWidthDisplay } from '../ui/PixelEntry';
29
29
  import { DEFAULT_IMAGE_WIDTH, DEFAULT_IMAGE_HEIGHT, calcMinWidth, getMaxWidthForNestedNodeNext } from '@atlaskit/editor-common/media-single';
30
30
  import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
31
31
  const remove = (state, dispatch) => {
@@ -266,22 +266,19 @@ const generateMediaSingleFloatingToolbar = (state, intl, options, pluginState, m
266
266
 
267
267
  // Pixel Entry Toolbar Support
268
268
  if (getBooleanFF('platform.editor.media.extended-resize-experience') && allowResizing) {
269
+ const selectedMediaSingleNode = getSelectedMediaSingle(state);
269
270
  const sizeInput = {
270
271
  type: 'custom',
271
272
  fallback: [],
272
273
  render: editorView => {
273
274
  var _widthPlugin$sharedSt2;
274
- if (!editorView) {
275
+ if (!editorView || !selectedMediaSingleNode) {
275
276
  return null;
276
277
  }
277
278
  const {
278
279
  state,
279
280
  dispatch
280
281
  } = editorView;
281
- const selectedMediaSingleNode = getSelectedMediaSingle(state);
282
- if (!selectedMediaSingleNode) {
283
- return null;
284
- }
285
282
  const contentWidth = (widthPlugin === null || widthPlugin === void 0 ? void 0 : (_widthPlugin$sharedSt2 = widthPlugin.sharedState.currentState()) === null || _widthPlugin$sharedSt2 === void 0 ? void 0 : _widthPlugin$sharedSt2.lineLength) || akEditorDefaultLayoutWidth;
286
283
  const selectedMediaNode = selectedMediaSingleNode.node.content.firstChild;
287
284
  if (!selectedMediaNode) {
@@ -350,7 +347,26 @@ const generateMediaSingleFloatingToolbar = (state, intl, options, pluginState, m
350
347
  }
351
348
  };
352
349
  if (pluginState.isResizing) {
353
- // If the image is resizing then only return `sizeInput` as the only toolbar item
350
+ // If the image is resizing
351
+ // then return pixel entry component or full width label as the only toolbar item
352
+ if (!selectedMediaSingleNode) {
353
+ return [];
354
+ }
355
+ const {
356
+ layout
357
+ } = selectedMediaSingleNode.node.attrs;
358
+ if (layout === 'full-width') {
359
+ const fullWidthLabel = {
360
+ type: 'custom',
361
+ fallback: [],
362
+ render: () => {
363
+ return /*#__PURE__*/React.createElement(FullWidthDisplay, {
364
+ intl: intl
365
+ });
366
+ }
367
+ };
368
+ return [fullWidthLabel];
369
+ }
354
370
  return [sizeInput];
355
371
  }
356
372
  toolbarButtons.push(sizeInput);
@@ -6,7 +6,7 @@ import Textfield from '@atlaskit/textfield';
6
6
  import Tooltip from '@atlaskit/tooltip';
7
7
  import Button from '@atlaskit/button';
8
8
  import Form, { Field } from '@atlaskit/form';
9
- import { pixelSizingInput, pixelSizingLabel, pixelSizingWidthInput, pixelSizingHeightInput, pixelSizingWrapper, pixelEntryForm, pixelEntryHiddenSubmit } from './styles';
9
+ import { pixelSizingInput, pixelSizingLabel, pixelSizingWidthInput, pixelSizingHeightInput, pixelSizingWrapper, pixelEntryForm, pixelEntryHiddenSubmit, pixelSizingFullWidthLabelStyles } from './styles';
10
10
  import { messages } from './messages';
11
11
  import { PIXELENTRY_MIGRATION_BUTTON_TESTID } from './constants';
12
12
  export const PixelEntry = ({
@@ -168,4 +168,13 @@ export const PixelEntry = ({
168
168
  type: "submit"
169
169
  }, formatMessage(messages.submitButtonText))));
170
170
  }));
171
+ };
172
+ export const FullWidthDisplay = ({
173
+ intl: {
174
+ formatMessage
175
+ }
176
+ }) => {
177
+ return jsx("div", {
178
+ css: pixelSizingFullWidthLabelStyles
179
+ }, jsx("span", null, formatMessage(messages.fullWidthLabel)));
171
180
  };
@@ -30,6 +30,11 @@ export const messages = defineMessages({
30
30
  defaultMessage: 'Submit',
31
31
  description: 'The text give to the hidden submit button'
32
32
  },
33
+ fullWidthLabel: {
34
+ id: 'fabric.editor.image.fullWidthLabel',
35
+ defaultMessage: 'Full-width',
36
+ description: 'The media has reached its maximum width'
37
+ },
33
38
  migrationButtonText: {
34
39
  id: 'fabric.editor.media.pixelEntry.migrationButtonText',
35
40
  defaultMessage: 'Convert to pixels',
@@ -41,4 +41,11 @@ export const pixelEntryHiddenSubmit = css`
41
41
  visibility: hidden;
42
42
  width: 0;
43
43
  height: 0;
44
+ `;
45
+ export const pixelSizingFullWidthLabelStyles = css`
46
+ min-width: ${PIXEL_SIZING_WRAPPER_MINIMUM_WIDTH}px;
47
+ height: ${"var(--ds-space-300, 24px)"};
48
+ display: flex;
49
+ justify-content: center;
50
+ align-items: center;
44
51
  `;
@@ -1,6 +1,5 @@
1
- import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
1
+ import { TableSharedCssClassName, UnsupportedSharedCssClassName } from '@atlaskit/editor-common/styles';
2
2
  import { Side } from './selection';
3
- import { UnsupportedSharedCssClassName } from '../../unsupported-content/styles';
4
3
  import { CAPTION_PLACEHOLDER_ID } from '../../media/ui/CaptionPlaceholder';
5
4
  export const isLeftCursor = side => side === Side.LEFT;
6
5
  export function getMediaNearPos(doc, $pos, schema, dir = -1) {
@@ -1,9 +1,8 @@
1
1
  /** @jsx jsx */
2
2
  import React, { useMemo } from 'react';
3
3
  import { jsx, css, useTheme } from '@emotion/react';
4
- import { whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, shadowSharedStyle, dateSharedStyle, tasksAndDecisionsStyles, annotationSharedStyles, smartCardSharedStyles, textColorStyles, resizerStyles, gridStyles, smartCardStyles, embedCardStyles, codeBlockInListSafariFix } from '@atlaskit/editor-common/styles';
4
+ import { whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, shadowSharedStyle, dateSharedStyle, tasksAndDecisionsStyles, annotationSharedStyles, smartCardSharedStyles, textColorStyles, resizerStyles, gridStyles, smartCardStyles, embedCardStyles, codeBlockInListSafariFix, unsupportedStyles } from '@atlaskit/editor-common/styles';
5
5
  import { blockNodesVerticalMargin, editorFontSize } from '@atlaskit/editor-shared-styles';
6
- import { unsupportedStyles } from '../../plugins/unsupported-content/styles';
7
6
  import { telepointerStyle } from '../../plugins/collab-edit/styles';
8
7
  import { gapCursorStyles } from '../../plugins/selection/gap-cursor/styles';
9
8
  import { tableStyles } from '@atlaskit/editor-plugin-table/ui/common-styles';
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "187.31.5";
2
+ export const version = "187.31.7";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -6,7 +6,7 @@ import clearMarksOnChangeToEmptyDocumentPlugin from '../../../plugins/clear-mark
6
6
  import { hyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
7
7
  import { textFormattingPlugin } from '@atlaskit/editor-plugin-text-formatting';
8
8
  import { widthPlugin } from '@atlaskit/editor-plugin-width';
9
- import unsupportedContentPlugin from '../../../plugins/unsupported-content';
9
+ import { unsupportedContentPlugin } from '@atlaskit/editor-plugin-unsupported-content';
10
10
  import { basePlugin } from '../../../plugins/base';
11
11
  import { focusPlugin } from '@atlaskit/editor-plugin-focus';
12
12
  import { editorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
@@ -31,8 +31,17 @@ function ExtensionWithPluginState(props) {
31
31
  var isMobile = editorAppearance === 'mobile';
32
32
  var hasChildren = !!children;
33
33
  var removeBorder = hideFrame && !isMobile && !hasBody || false;
34
- var pos = typeof props.getPos === 'function' ? props.getPos() : undefined;
35
- var isTopLevelNode = typeof pos !== 'undefined' && !isNaN(pos) && props.view.state.doc.resolve(pos).depth === 0;
34
+ var getPos = props.getPos,
35
+ view = props.view;
36
+ var isTopLevelNode = React.useMemo(function () {
37
+ try {
38
+ var pos = typeof getPos === 'function' ? getPos() : undefined;
39
+ return typeof pos !== 'undefined' && !isNaN(pos) && view.state.doc.resolve(pos).depth === 0;
40
+ } catch (e) {
41
+ return false;
42
+ }
43
+ return false;
44
+ }, [view, getPos]);
36
45
  var shouldBreakout =
37
46
  // Extension should breakout when the layout is set to 'full-width' or 'wide'.
38
47
  ['full-width', 'wide'].includes(node.attrs.layout) &&
@@ -29,7 +29,6 @@ export { default as submitEditorPlugin } from './submit-editor';
29
29
  export { default as tasksAndDecisionsPlugin } from './tasks-and-decisions';
30
30
  export { default as textColorPlugin } from './text-color';
31
31
  export { default as typeAheadPlugin } from './type-ahead';
32
- export { default as unsupportedContentPlugin } from './unsupported-content';
33
32
  export { default as floatingToolbarPlugin } from './floating-toolbar';
34
33
  export { default as statusPlugin } from './status';
35
34
  export { default as breakoutPlugin } from './breakout';
@@ -29,7 +29,7 @@ import { MediaInlineNodeSelector, MediaSingleNodeSelector } from '../nodeviews/s
29
29
  import ImageBorderItem from '../ui/ImageBorder';
30
30
  import { currentMediaNodeBorderMark } from '../utils/current-media-node';
31
31
  import { shouldShowImageBorder } from './imageBorder';
32
- import { PixelEntry } from '../ui/PixelEntry';
32
+ import { PixelEntry, FullWidthDisplay } from '../ui/PixelEntry';
33
33
  import { DEFAULT_IMAGE_WIDTH, DEFAULT_IMAGE_HEIGHT, calcMinWidth, getMaxWidthForNestedNodeNext } from '@atlaskit/editor-common/media-single';
34
34
  import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
35
35
  var remove = function remove(state, dispatch) {
@@ -257,20 +257,17 @@ var generateMediaSingleFloatingToolbar = function generateMediaSingleFloatingToo
257
257
 
258
258
  // Pixel Entry Toolbar Support
259
259
  if (getBooleanFF('platform.editor.media.extended-resize-experience') && allowResizing) {
260
+ var selectedMediaSingleNode = getSelectedMediaSingle(state);
260
261
  var sizeInput = {
261
262
  type: 'custom',
262
263
  fallback: [],
263
264
  render: function render(editorView) {
264
265
  var _widthPlugin$sharedSt2;
265
- if (!editorView) {
266
+ if (!editorView || !selectedMediaSingleNode) {
266
267
  return null;
267
268
  }
268
269
  var state = editorView.state,
269
270
  dispatch = editorView.dispatch;
270
- var selectedMediaSingleNode = getSelectedMediaSingle(state);
271
- if (!selectedMediaSingleNode) {
272
- return null;
273
- }
274
271
  var contentWidth = (widthPlugin === null || widthPlugin === void 0 ? void 0 : (_widthPlugin$sharedSt2 = widthPlugin.sharedState.currentState()) === null || _widthPlugin$sharedSt2 === void 0 ? void 0 : _widthPlugin$sharedSt2.lineLength) || akEditorDefaultLayoutWidth;
275
272
  var selectedMediaNode = selectedMediaSingleNode.node.content.firstChild;
276
273
  if (!selectedMediaNode) {
@@ -333,7 +330,24 @@ var generateMediaSingleFloatingToolbar = function generateMediaSingleFloatingToo
333
330
  }
334
331
  };
335
332
  if (pluginState.isResizing) {
336
- // If the image is resizing then only return `sizeInput` as the only toolbar item
333
+ // If the image is resizing
334
+ // then return pixel entry component or full width label as the only toolbar item
335
+ if (!selectedMediaSingleNode) {
336
+ return [];
337
+ }
338
+ var layout = selectedMediaSingleNode.node.attrs.layout;
339
+ if (layout === 'full-width') {
340
+ var fullWidthLabel = {
341
+ type: 'custom',
342
+ fallback: [],
343
+ render: function render() {
344
+ return /*#__PURE__*/React.createElement(FullWidthDisplay, {
345
+ intl: intl
346
+ });
347
+ }
348
+ };
349
+ return [fullWidthLabel];
350
+ }
337
351
  return [sizeInput];
338
352
  }
339
353
  toolbarButtons.push(sizeInput);
@@ -7,7 +7,7 @@ import Textfield from '@atlaskit/textfield';
7
7
  import Tooltip from '@atlaskit/tooltip';
8
8
  import Button from '@atlaskit/button';
9
9
  import Form, { Field } from '@atlaskit/form';
10
- import { pixelSizingInput, pixelSizingLabel, pixelSizingWidthInput, pixelSizingHeightInput, pixelSizingWrapper, pixelEntryForm, pixelEntryHiddenSubmit } from './styles';
10
+ import { pixelSizingInput, pixelSizingLabel, pixelSizingWidthInput, pixelSizingHeightInput, pixelSizingWrapper, pixelEntryForm, pixelEntryHiddenSubmit, pixelSizingFullWidthLabelStyles } from './styles';
11
11
  import { messages } from './messages';
12
12
  import { PIXELENTRY_MIGRATION_BUTTON_TESTID } from './constants';
13
13
  export var PixelEntry = function PixelEntry(_ref) {
@@ -175,4 +175,10 @@ export var PixelEntry = function PixelEntry(_ref) {
175
175
  type: "submit"
176
176
  }, formatMessage(messages.submitButtonText))));
177
177
  }));
178
+ };
179
+ export var FullWidthDisplay = function FullWidthDisplay(_ref5) {
180
+ var formatMessage = _ref5.intl.formatMessage;
181
+ return jsx("div", {
182
+ css: pixelSizingFullWidthLabelStyles
183
+ }, jsx("span", null, formatMessage(messages.fullWidthLabel)));
178
184
  };
@@ -30,6 +30,11 @@ export var messages = defineMessages({
30
30
  defaultMessage: 'Submit',
31
31
  description: 'The text give to the hidden submit button'
32
32
  },
33
+ fullWidthLabel: {
34
+ id: 'fabric.editor.image.fullWidthLabel',
35
+ defaultMessage: 'Full-width',
36
+ description: 'The media has reached its maximum width'
37
+ },
33
38
  migrationButtonText: {
34
39
  id: 'fabric.editor.media.pixelEntry.migrationButtonText',
35
40
  defaultMessage: 'Convert to pixels',
@@ -1,5 +1,5 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
2
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
3
3
  import { css } from '@emotion/react';
4
4
  var PIXEL_SIZING_WRAPPER_MINIMUM_WIDTH = 120;
5
5
  export var pixelSizingWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: grid;\n grid-template-columns: 1fr 1em 1fr 0;\n grid-template-rows: auto;\n grid-template-areas: 'widthinput label heightinput submit';\n width: ", "px;\n text-align: center;\n height: ", ";\n\n // Atlaskit fieldset does not allow style override\n & > * {\n margin-top: 0 !important;\n }\n"])), PIXEL_SIZING_WRAPPER_MINIMUM_WIDTH, "var(--ds-space-300, 24px)");
@@ -8,4 +8,5 @@ export var pixelSizingInput = css(_templateObject3 || (_templateObject3 = _tagge
8
8
  export var pixelSizingLabel = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n grid-area: label;\n line-height: ", ";\n"])), "var(--ds-space-300, 24px)");
9
9
  export var pixelSizingWidthInput = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n grid-area: widthinput;\n"])));
10
10
  export var pixelSizingHeightInput = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n grid-area: heightinput;\n"])));
11
- export var pixelEntryHiddenSubmit = css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n grid-area: submit;\n visibility: hidden;\n width: 0;\n height: 0;\n"])));
11
+ export var pixelEntryHiddenSubmit = css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n grid-area: submit;\n visibility: hidden;\n width: 0;\n height: 0;\n"])));
12
+ export var pixelSizingFullWidthLabelStyles = css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n min-width: ", "px;\n height: ", ";\n display: flex;\n justify-content: center;\n align-items: center;\n"])), PIXEL_SIZING_WRAPPER_MINIMUM_WIDTH, "var(--ds-space-300, 24px)");