@atlaskit/editor-core 209.3.0 → 209.3.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,14 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 209.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#185241](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/185241)
8
+ [`0d1bffce3fedd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0d1bffce3fedd) -
9
+ [ux] View embed as block card when page width smaller or equal to 600px
10
+ - Updated dependencies
11
+
3
12
  ## 209.3.0
4
13
 
5
14
  ### Minor Changes
@@ -243,7 +243,9 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
243
243
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
244
244
  _smartCardStyles.smartCardStylesWithSearchMatch :
245
245
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
246
- _smartCardStyles.smartCardStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls', 'cohort', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_15') &&
246
+ _smartCardStyles.smartCardStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_preview_panel_responsiveness', 'isEnabled', true) &&
247
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
248
+ _smartCardStyles.smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls', 'cohort', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_15') &&
247
249
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
248
250
  _smartCardStyles.editorControlsSmartCardStyles,
249
251
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -4,9 +4,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.smartLinksInLivePagesStyles = exports.smartCardStylesWithSearchMatch = exports.smartCardStyles = exports.linkingVisualRefreshV1Styles = exports.editorControlsSmartCardStyles = exports.SmartCardSharedCssClassName = exports.FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = exports.DATASOURCE_INNER_CONTAINER_CLASSNAME = void 0;
7
+ exports.smartLinksInLivePagesStyles = exports.smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness = exports.smartCardStylesWithSearchMatch = exports.smartCardStyles = exports.linkingVisualRefreshV1Styles = exports.editorControlsSmartCardStyles = exports.SmartCardSharedCssClassName = exports.FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = exports.DATASOURCE_INNER_CONTAINER_CLASSNAME = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = require("@emotion/react");
10
+ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
10
11
  var _selectionStyles = require("./selectionStyles");
11
12
  // eslint-disable-line
12
13
 
@@ -228,6 +229,17 @@ _selectionStyles.boxShadowSelectionStyles]), '&.danger', {
228
229
  padding: 0
229
230
  }));
230
231
 
232
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
233
+ var smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness = exports.smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness = (0, _react.css)((0, _defineProperty2.default)({}, "@container editor-area (max-width: ".concat(_editorSharedStyles.akEditorFullPageNarrowBreakout, "px)"), (0, _defineProperty2.default)({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, ".ak-editor-selected-node .").concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div"),
234
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
235
+ [
236
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
237
+ _selectionStyles.boxShadowSelectionStyles,
238
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
239
+ _selectionStyles.hideNativeBrowserTextSelectionStyles, {
240
+ borderRadius: "var(--ds-border-radius-200, 8px)"
241
+ }])));
242
+
231
243
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
232
244
  var smartLinksInLivePagesStyles = exports.smartLinksInLivePagesStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER), (0, _defineProperty2.default)({}, ".".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div"), {
233
245
  cursor: 'pointer',
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "209.2.3";
8
+ var version = exports.version = "209.3.0";
@@ -54,7 +54,7 @@ import { scrollbarStyles } from './styles/scrollbarStyles';
54
54
  import { hideCursorWhenHideSelectionStyles, hideSelectionStyles, selectedNodeStyles } from './styles/selectionStyles';
55
55
  import { selectionToolbarAnimationStyles } from './styles/selectionToolbarStyles';
56
56
  import { shadowStyles } from './styles/shadowStyles';
57
- import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, smartCardStyles, smartCardStylesWithSearchMatch, smartLinksInLivePagesStyles } from './styles/smartCardStyles';
57
+ import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, smartCardStyles, smartCardStylesWithSearchMatch, smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, smartLinksInLivePagesStyles } from './styles/smartCardStyles';
58
58
  import { statusStyles, statusStylesMixin_fg_platform_component_visual_refresh, statusStylesMixin_fg_platform_component_visual_refresh_with_search_match, statusStylesMixin_without_fg_platform_component_visual_refresh, statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match } from './styles/statusStyles';
59
59
  import { tableCommentEditorStyles, tableLayoutFixes } from './styles/tableStyles';
60
60
  import { decisionStyles, tasksAndDecisionsStyles, decisionIconWithVisualRefresh, decisionIconWithoutVisualRefresh, taskItemStyles } from './styles/tasksAndDecisionsStyles';
@@ -238,7 +238,9 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
238
238
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
239
239
  smartCardStylesWithSearchMatch :
240
240
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
241
- smartCardStyles, expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') && fg('platform_editor_controls_patch_15') &&
241
+ smartCardStyles, expValEqualsNoExposure('platform_editor_preview_panel_responsiveness', 'isEnabled', true) &&
242
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
243
+ smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') && fg('platform_editor_controls_patch_15') &&
242
244
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
243
245
  editorControlsSmartCardStyles,
244
246
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -1,5 +1,6 @@
1
1
  import { css } from '@emotion/react'; // eslint-disable-line
2
2
 
3
+ import { akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
3
4
  import { boxShadowSelectionStyles, hideNativeBrowserTextSelectionStyles } from './selectionStyles';
4
5
  export const DATASOURCE_INNER_CONTAINER_CLASSNAME = 'datasourceView-content-inner-wrap';
5
6
  export const FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = 'card-floating-toolbar--link-picker';
@@ -322,6 +323,23 @@ export const smartCardStylesWithSearchMatch = css({
322
323
  }
323
324
  });
324
325
 
326
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
327
+ export const smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness = css({
328
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
329
+ [`@container editor-area (max-width: ${akEditorFullPageNarrowBreakout}px)`]: {
330
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
331
+ [`.${SmartCardSharedCssClassName.EMBED_CARD_CONTAINER}.ak-editor-selected-node .${SmartCardSharedCssClassName.LOADER_WRAPPER} > div`]:
332
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
333
+ [
334
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
335
+ boxShadowSelectionStyles,
336
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
337
+ hideNativeBrowserTextSelectionStyles, {
338
+ borderRadius: "var(--ds-border-radius-200, 8px)"
339
+ }]
340
+ }
341
+ });
342
+
325
343
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
326
344
  export const smartLinksInLivePagesStyles = css({
327
345
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "209.2.3";
2
+ export const version = "209.3.0";
@@ -54,7 +54,7 @@ import { scrollbarStyles } from './styles/scrollbarStyles';
54
54
  import { hideCursorWhenHideSelectionStyles, hideSelectionStyles, selectedNodeStyles } from './styles/selectionStyles';
55
55
  import { selectionToolbarAnimationStyles } from './styles/selectionToolbarStyles';
56
56
  import { shadowStyles } from './styles/shadowStyles';
57
- import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, smartCardStyles, smartCardStylesWithSearchMatch, smartLinksInLivePagesStyles } from './styles/smartCardStyles';
57
+ import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, smartCardStyles, smartCardStylesWithSearchMatch, smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, smartLinksInLivePagesStyles } from './styles/smartCardStyles';
58
58
  import { statusStyles, statusStylesMixin_fg_platform_component_visual_refresh, statusStylesMixin_fg_platform_component_visual_refresh_with_search_match, statusStylesMixin_without_fg_platform_component_visual_refresh, statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match } from './styles/statusStyles';
59
59
  import { tableCommentEditorStyles, tableLayoutFixes } from './styles/tableStyles';
60
60
  import { decisionStyles, tasksAndDecisionsStyles, decisionIconWithVisualRefresh, decisionIconWithoutVisualRefresh, taskItemStyles } from './styles/tasksAndDecisionsStyles';
@@ -235,7 +235,9 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
235
235
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
236
236
  smartCardStylesWithSearchMatch :
237
237
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
238
- smartCardStyles, expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') && fg('platform_editor_controls_patch_15') &&
238
+ smartCardStyles, expValEqualsNoExposure('platform_editor_preview_panel_responsiveness', 'isEnabled', true) &&
239
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
240
+ smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') && fg('platform_editor_controls_patch_15') &&
239
241
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
240
242
  editorControlsSmartCardStyles,
241
243
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -1,6 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import { css } from '@emotion/react'; // eslint-disable-line
3
3
 
4
+ import { akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
4
5
  import { boxShadowSelectionStyles, hideNativeBrowserTextSelectionStyles } from './selectionStyles';
5
6
  export var DATASOURCE_INNER_CONTAINER_CLASSNAME = 'datasourceView-content-inner-wrap';
6
7
  export var FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = 'card-floating-toolbar--link-picker';
@@ -220,6 +221,17 @@ boxShadowSelectionStyles]), '&.danger', {
220
221
  padding: 0
221
222
  }));
222
223
 
224
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
225
+ export var smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness = css(_defineProperty({}, "@container editor-area (max-width: ".concat(akEditorFullPageNarrowBreakout, "px)"), _defineProperty({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, ".ak-editor-selected-node .").concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div"),
226
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
227
+ [
228
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
229
+ boxShadowSelectionStyles,
230
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
231
+ hideNativeBrowserTextSelectionStyles, {
232
+ borderRadius: "var(--ds-border-radius-200, 8px)"
233
+ }])));
234
+
223
235
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
224
236
  export var smartLinksInLivePagesStyles = css(_defineProperty(_defineProperty({}, ".".concat(SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER), _defineProperty({}, ".".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div"), {
225
237
  cursor: 'pointer',
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "209.2.3";
2
+ export var version = "209.3.0";