@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.
- package/CHANGELOG.md +17 -0
- package/dist/cjs/ui/Appearance/Chromeless.js +13 -2
- package/dist/cjs/ui/Appearance/Comment/Comment.js +3 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +3 -1
- package/dist/cjs/ui/ContentStyles/ai-panels.js +6 -1
- package/dist/cjs/ui/ContentStyles/index.js +1 -1
- package/dist/cjs/ui/ContentStyles/layout.js +8 -1
- package/dist/cjs/ui/ContentStyles/status.js +3 -1
- package/dist/cjs/ui/EditorContentContainer.js +220 -30
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/Chromeless.js +11 -1
- package/dist/es2019/ui/Appearance/Comment/Comment.js +3 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +3 -1
- package/dist/es2019/ui/ContentStyles/ai-panels.js +7 -0
- package/dist/es2019/ui/ContentStyles/index.js +1 -1
- package/dist/es2019/ui/ContentStyles/layout.js +7 -0
- package/dist/es2019/ui/ContentStyles/status.js +1 -1
- package/dist/es2019/ui/EditorContentContainer.js +750 -31
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/Chromeless.js +13 -2
- package/dist/esm/ui/Appearance/Comment/Comment.js +3 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +3 -1
- package/dist/esm/ui/ContentStyles/ai-panels.js +7 -0
- package/dist/esm/ui/ContentStyles/index.js +1 -1
- package/dist/esm/ui/ContentStyles/layout.js +7 -0
- package/dist/esm/ui/ContentStyles/status.js +3 -1
- package/dist/esm/ui/EditorContentContainer.js +224 -30
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/Appearance/Chromeless.d.ts +8 -0
- package/dist/types/ui/ContentStyles/ai-panels.d.ts +6 -0
- package/dist/types/ui/ContentStyles/layout.d.ts +6 -0
- package/dist/types/ui/ContentStyles/status.d.ts +1 -1
- package/dist/types/ui/EditorContentContainer.d.ts +0 -3
- package/dist/types-ts4.5/ui/Appearance/Chromeless.d.ts +8 -0
- package/dist/types-ts4.5/ui/ContentStyles/ai-panels.d.ts +6 -0
- package/dist/types-ts4.5/ui/ContentStyles/layout.d.ts +6 -0
- package/dist/types-ts4.5/ui/ContentStyles/status.d.ts +1 -1
- package/dist/types-ts4.5/ui/EditorContentContainer.d.ts +0 -3
- 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
|
|
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
|
`;
|