@atlaskit/editor-core 207.0.1 → 207.0.3

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 (39) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/ui/Appearance/Chromeless.js +13 -2
  3. package/dist/cjs/ui/Appearance/Comment/Comment.js +3 -1
  4. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +3 -1
  5. package/dist/cjs/ui/ContentStyles/ai-panels.js +6 -1
  6. package/dist/cjs/ui/ContentStyles/index.js +1 -1
  7. package/dist/cjs/ui/ContentStyles/layout.js +8 -1
  8. package/dist/cjs/ui/ContentStyles/status.js +3 -1
  9. package/dist/cjs/ui/EditorContentContainer.js +220 -30
  10. package/dist/cjs/version-wrapper.js +1 -1
  11. package/dist/es2019/ui/Appearance/Chromeless.js +11 -1
  12. package/dist/es2019/ui/Appearance/Comment/Comment.js +3 -1
  13. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +3 -1
  14. package/dist/es2019/ui/ContentStyles/ai-panels.js +7 -0
  15. package/dist/es2019/ui/ContentStyles/index.js +1 -1
  16. package/dist/es2019/ui/ContentStyles/layout.js +7 -0
  17. package/dist/es2019/ui/ContentStyles/status.js +1 -1
  18. package/dist/es2019/ui/EditorContentContainer.js +750 -31
  19. package/dist/es2019/version-wrapper.js +1 -1
  20. package/dist/esm/ui/Appearance/Chromeless.js +13 -2
  21. package/dist/esm/ui/Appearance/Comment/Comment.js +3 -1
  22. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +3 -1
  23. package/dist/esm/ui/ContentStyles/ai-panels.js +7 -0
  24. package/dist/esm/ui/ContentStyles/index.js +1 -1
  25. package/dist/esm/ui/ContentStyles/layout.js +7 -0
  26. package/dist/esm/ui/ContentStyles/status.js +3 -1
  27. package/dist/esm/ui/EditorContentContainer.js +224 -30
  28. package/dist/esm/version-wrapper.js +1 -1
  29. package/dist/types/ui/Appearance/Chromeless.d.ts +8 -0
  30. package/dist/types/ui/ContentStyles/ai-panels.d.ts +6 -0
  31. package/dist/types/ui/ContentStyles/layout.d.ts +6 -0
  32. package/dist/types/ui/ContentStyles/status.d.ts +1 -1
  33. package/dist/types/ui/EditorContentContainer.d.ts +0 -3
  34. package/dist/types-ts4.5/ui/Appearance/Chromeless.d.ts +8 -0
  35. package/dist/types-ts4.5/ui/ContentStyles/ai-panels.d.ts +6 -0
  36. package/dist/types-ts4.5/ui/ContentStyles/layout.d.ts +6 -0
  37. package/dist/types-ts4.5/ui/ContentStyles/status.d.ts +1 -1
  38. package/dist/types-ts4.5/ui/EditorContentContainer.d.ts +0 -3
  39. package/package.json +11 -11
@@ -40,7 +40,9 @@ scrollbarStyles);
40
40
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
41
41
  const ScrollContainer = createEditorContentStyle(scrollStyles);
42
42
  ScrollContainer.displayName = 'ScrollContainer';
43
- const EditorContainer = componentWithCondition(() => editorExperiment('platform_editor_core_static_emotion', true), EditorContentContainer, ScrollContainer);
43
+ const EditorContainer = componentWithCondition(() => editorExperiment('platform_editor_core_static_emotion', true, {
44
+ exposure: true
45
+ }), EditorContentContainer, ScrollContainer);
44
46
  const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
45
47
  var _contentAreaRef$curre;
46
48
  const theme = useTheme();
@@ -1,3 +1,10 @@
1
+ /**
2
+ * TODO ED-26957 - remove legacy styles when static emotion refactor is complete
3
+ * We are moving this to new location under FF: platform_editor_core_static_emotion
4
+ * New location: packages/editor/editor-core/src/ui/EditorContentContainer.tsx
5
+ * If you are making updates to this file, please updates in new location as well.
6
+ */
7
+
1
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
9
  import { css, keyframes } from '@emotion/react';
3
10
  const isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
@@ -459,7 +459,7 @@ const legacyContentStyles = props => css`
459
459
  exposure: false
460
460
  }) && !fg('platform-visual-refresh-icons') && vanillaDecisionIconWithoutVisualRefresh}
461
461
  ${statusStyles}
462
- ${editorExperiment('platform_editor_vanilla_dom', true) ? vanillaStatusStyles : null}
462
+ ${editorExperiment('platform_editor_vanilla_dom', true) ? vanillaStatusStyles() : null}
463
463
  ${annotationSharedStyles()}
464
464
  ${smartCardStyles()}
465
465
  ${fg('platform-linking-visual-refresh-v1') ? getSmartCardSharedStyles() : smartCardSharedStyles}
@@ -1,3 +1,10 @@
1
+ /**
2
+ * TODO ED-26957 - remove legacy styles when static emotion refactor is complete
3
+ * We are moving this to new location under FF: platform_editor_core_static_emotion
4
+ * New location: packages/editor/editor-core/src/ui/EditorContentContainer.tsx
5
+ * If you are making updates to this file, please updates in new location as well.
6
+ */
7
+
1
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
9
  import { css } from '@emotion/react';
3
10
  import { columnLayoutResponsiveSharedStyle, columnLayoutSharedStyle, LAYOUT_COLUMN_PADDING, LAYOUT_SECTION_MARGIN } from '@atlaskit/editor-common/styles';
@@ -139,7 +139,7 @@ const baseVanillaStatusStyles = css({
139
139
  });
140
140
 
141
141
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
142
- export const vanillaStatusStyles = css`
142
+ export const vanillaStatusStyles = () => css`
143
143
  ${baseVanillaStatusStyles}
144
144
  ${getStatusColors()}
145
145
  `;