@atlaskit/editor-core 219.9.16 → 219.9.17
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 +9 -0
- package/dist/cjs/composable-editor/core-editor.js +7 -10
- package/dist/cjs/composable-editor/editor-internal-compiled.compiled.css +3 -0
- package/dist/cjs/composable-editor/editor-internal-compiled.js +27 -0
- package/dist/cjs/composable-editor/editor-internal-emotion.js +31 -0
- package/dist/cjs/composable-editor/editor-internal.js +17 -20
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +2 -15
- package/dist/cjs/ui/Appearance/FullPage/MainToolbar-compiled.js +46 -0
- package/dist/cjs/ui/Appearance/FullPage/{FullPageToolbar-emotion.js → MainToolbar-emotion.js} +25 -24
- package/dist/cjs/ui/Appearance/FullPage/MainToolbar.js +14 -68
- package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper-compiled.compiled.css +14 -0
- package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper-compiled.js +35 -0
- package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper-emotion.js +70 -0
- package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper.js +7 -61
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/core-editor.js +4 -11
- package/dist/es2019/composable-editor/editor-internal-compiled.compiled.css +3 -0
- package/dist/es2019/composable-editor/editor-internal-compiled.js +18 -0
- package/dist/es2019/composable-editor/editor-internal-emotion.js +23 -0
- package/dist/es2019/composable-editor/editor-internal.js +12 -21
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +1 -8
- package/dist/es2019/ui/Appearance/FullPage/{FullPageToolbar-compiled.js → MainToolbar-compiled.js} +19 -16
- package/dist/es2019/ui/Appearance/FullPage/{FullPageToolbar-emotion.js → MainToolbar-emotion.js} +20 -19
- package/dist/es2019/ui/Appearance/FullPage/MainToolbar.js +7 -70
- package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper-compiled.compiled.css +14 -0
- package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper-compiled.js +30 -0
- package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper-emotion.js +65 -0
- package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper.js +5 -63
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/core-editor.js +4 -11
- package/dist/esm/composable-editor/editor-internal-compiled.compiled.css +3 -0
- package/dist/esm/composable-editor/editor-internal-compiled.js +19 -0
- package/dist/esm/composable-editor/editor-internal-emotion.js +24 -0
- package/dist/esm/composable-editor/editor-internal.js +14 -21
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +1 -14
- package/dist/esm/ui/Appearance/FullPage/{FullPageToolbar-compiled.js → MainToolbar-compiled.js} +19 -16
- package/dist/esm/ui/Appearance/FullPage/{FullPageToolbar-emotion.js → MainToolbar-emotion.js} +21 -20
- package/dist/esm/ui/Appearance/FullPage/MainToolbar.js +13 -65
- package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper-compiled.compiled.css +14 -0
- package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper-compiled.js +29 -0
- package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper-emotion.js +62 -0
- package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper.js +7 -60
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/composable-editor/core-editor.d.ts +2 -2
- package/dist/types/composable-editor/editor-internal-compiled.d.ts +14 -0
- package/dist/types/composable-editor/editor-internal-emotion.d.ts +14 -0
- package/dist/types/composable-editor/editor-internal.d.ts +1 -0
- package/dist/types/ui/Appearance/FullPage/{FullPageToolbar-compiled.d.ts → MainToolbar-compiled.d.ts} +10 -9
- package/dist/{types-ts4.5/ui/Appearance/FullPage/FullPageToolbar-emotion.d.ts → types/ui/Appearance/FullPage/MainToolbar-emotion.d.ts} +10 -9
- package/dist/types/ui/Appearance/FullPage/MainToolbar.d.ts +10 -6
- package/dist/types/ui/Appearance/FullPage/MainToolbarWrapper-compiled.d.ts +19 -0
- package/dist/types/ui/Appearance/FullPage/MainToolbarWrapper-emotion.d.ts +19 -0
- package/dist/types/ui/Appearance/FullPage/MainToolbarWrapper.d.ts +3 -14
- package/dist/types-ts4.5/composable-editor/core-editor.d.ts +2 -2
- package/dist/types-ts4.5/composable-editor/editor-internal-compiled.d.ts +14 -0
- package/dist/types-ts4.5/composable-editor/editor-internal-emotion.d.ts +14 -0
- package/dist/types-ts4.5/composable-editor/editor-internal.d.ts +1 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/{FullPageToolbar-compiled.d.ts → MainToolbar-compiled.d.ts} +10 -9
- package/dist/{types/ui/Appearance/FullPage/FullPageToolbar-emotion.d.ts → types-ts4.5/ui/Appearance/FullPage/MainToolbar-emotion.d.ts} +10 -9
- package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbar.d.ts +10 -6
- package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbarWrapper-compiled.d.ts +19 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbarWrapper-emotion.d.ts +19 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbarWrapper.d.ts +3 -14
- package/package.json +1 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar-compiled.js +0 -45
- /package/dist/cjs/ui/Appearance/FullPage/{FullPageToolbar-compiled.compiled.css → MainToolbar-compiled.compiled.css} +0 -0
- /package/dist/es2019/ui/Appearance/FullPage/{FullPageToolbar-compiled.compiled.css → MainToolbar-compiled.compiled.css} +0 -0
- /package/dist/esm/ui/Appearance/FullPage/{FullPageToolbar-compiled.compiled.css → MainToolbar-compiled.compiled.css} +0 -0
|
@@ -1,60 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
9
|
-
import { css, jsx } from '@emotion/react';
|
|
10
|
-
import { akEditorFloatingDialogZIndex, akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
|
|
11
|
-
import { MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT } from './MainToolbar';
|
|
12
|
-
|
|
13
|
-
// Base styles that don't depend on feature flags
|
|
14
|
-
var baseToolbarStyles = css({
|
|
15
|
-
position: 'relative',
|
|
16
|
-
alignItems: 'center',
|
|
17
|
-
boxShadow: 'none',
|
|
18
|
-
borderBottom: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
|
|
19
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
20
|
-
transition: "box-shadow 200ms ".concat(akEditorSwoopCubicBezier),
|
|
21
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
22
|
-
zIndex: akEditorFloatingDialogZIndex,
|
|
23
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
24
|
-
display: 'flex',
|
|
25
|
-
height: 'var(--ak-editor-fullpage-toolbar-height)',
|
|
26
|
-
flexShrink: 0,
|
|
27
|
-
backgroundColor: "var(--ds-surface, #FFFFFF)",
|
|
28
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
29
|
-
'& object': {
|
|
30
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
31
|
-
height: '0 !important'
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
var flexibleIconSize = css({
|
|
35
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
36
|
-
'& span svg': {
|
|
37
|
-
maxWidth: '100%'
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
// box-shadow is overriden by the mainToolbar
|
|
41
|
-
var mainToolbarWithKeyline = css({
|
|
42
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
43
|
-
boxShadow: "var(--ds-shadow-overflow, 0px 0px 8px #1E1F2128, 0px 0px 1px #1E1F211e)"
|
|
44
|
-
});
|
|
45
|
-
var mainToolbarTwoLineStyle = css(_defineProperty({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
|
|
46
|
-
flexWrap: 'wrap',
|
|
47
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
48
|
-
height: "calc(var(--ak-editor-fullpage-toolbar-height) * 2)"
|
|
49
|
-
}));
|
|
50
|
-
export var MainToolbarWrapper = function MainToolbarWrapper(_ref) {
|
|
51
|
-
var showKeyline = _ref.showKeyline,
|
|
52
|
-
twoLineEditorToolbar = _ref.twoLineEditorToolbar,
|
|
53
|
-
children = _ref.children,
|
|
54
|
-
testId = _ref['data-testid'];
|
|
55
|
-
return jsx("div", {
|
|
56
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
57
|
-
css: [baseToolbarStyles, flexibleIconSize, showKeyline && mainToolbarWithKeyline, twoLineEditorToolbar && mainToolbarTwoLineStyle],
|
|
58
|
-
"data-testid": testId
|
|
59
|
-
}, children);
|
|
60
|
-
};
|
|
1
|
+
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
2
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
|
+
import { MainToolbarWrapperCompiled } from './MainToolbarWrapper-compiled';
|
|
4
|
+
import { MainToolbarWrapperEmotion } from './MainToolbarWrapper-emotion';
|
|
5
|
+
export var MainToolbarWrapper = componentWithCondition(function () {
|
|
6
|
+
return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
|
|
7
|
+
}, MainToolbarWrapperCompiled, MainToolbarWrapperEmotion);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "219.9.
|
|
2
|
+
export var version = "219.9.16";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { EditorNextProps } from '../types/editor-props';
|
|
3
3
|
import type { WithAppearanceComponent } from '../types/with-appearance-component';
|
|
4
4
|
/**
|
|
@@ -6,7 +6,7 @@ import type { WithAppearanceComponent } from '../types/with-appearance-component
|
|
|
6
6
|
* @param props
|
|
7
7
|
* @example
|
|
8
8
|
*/
|
|
9
|
-
export declare function CoreEditor(props: EditorNextProps & WithAppearanceComponent):
|
|
9
|
+
export declare function CoreEditor(props: EditorNextProps & WithAppearanceComponent): React.JSX.Element;
|
|
10
10
|
export declare namespace CoreEditor {
|
|
11
11
|
var propTypes: {
|
|
12
12
|
minHeight: ({ appearance, minHeight, }: Pick<EditorNextProps, 'appearance' | 'minHeight'>) => Error | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
+
* Used via `componentWithCondition` in `editor-internal.tsx`.
|
|
8
|
+
*
|
|
9
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
10
|
+
*/
|
|
11
|
+
import type { ReactNode } from 'react';
|
|
12
|
+
export declare const EditorInternalContainerCompiled: ({ children }: {
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
+
* Used via `componentWithCondition` in `editor-internal.tsx`.
|
|
8
|
+
*
|
|
9
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
10
|
+
*/
|
|
11
|
+
import type { ReactNode } from 'react';
|
|
12
|
+
export declare const EditorInternalContainerEmotion: ({ children }: {
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
}) => React.JSX.Element;
|
|
@@ -4,17 +4,18 @@
|
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
-
* Used via `componentWithCondition` in `
|
|
7
|
+
* Used via `componentWithCondition` in `MainToolbar.tsx`.
|
|
8
8
|
*
|
|
9
9
|
* Cleanup: delete this file once the experiment has shipped.
|
|
10
10
|
*/
|
|
11
|
-
import
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import { jsx } from '@compiled/react';
|
|
12
13
|
export declare const NonCustomToolbarWrapperCompiled: ({ children, }: {
|
|
13
|
-
children: ReactNode;
|
|
14
|
-
}) =>
|
|
15
|
-
export declare const MainToolbarIconBeforeCompiled: ({ children, }: {
|
|
16
|
-
children: ReactNode;
|
|
17
|
-
}) => React.JSX.Element;
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
}) => jsx.JSX.Element;
|
|
18
16
|
export declare const CustomToolbarWrapperCompiled: ({ children, }: {
|
|
19
|
-
children: ReactNode;
|
|
20
|
-
}) =>
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
}) => jsx.JSX.Element;
|
|
19
|
+
export declare const MainToolbarIconBeforeCompiled: ({ children, }: {
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
}) => jsx.JSX.Element;
|
|
@@ -4,17 +4,18 @@
|
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
-
* Used via `componentWithCondition` in `
|
|
7
|
+
* Used via `componentWithCondition` in `MainToolbar.tsx`.
|
|
8
8
|
*
|
|
9
9
|
* Cleanup: delete this file once the experiment has shipped.
|
|
10
10
|
*/
|
|
11
|
-
import
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import { jsx } from '@emotion/react';
|
|
12
13
|
export declare const NonCustomToolbarWrapperEmotion: ({ children, }: {
|
|
13
|
-
children: ReactNode;
|
|
14
|
-
}) =>
|
|
15
|
-
export declare const MainToolbarIconBeforeEmotion: ({ children, }: {
|
|
16
|
-
children: ReactNode;
|
|
17
|
-
}) => React.JSX.Element;
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
}) => jsx.JSX.Element;
|
|
18
16
|
export declare const CustomToolbarWrapperEmotion: ({ children, }: {
|
|
19
|
-
children: ReactNode;
|
|
20
|
-
}) =>
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
}) => jsx.JSX.Element;
|
|
19
|
+
export declare const MainToolbarIconBeforeEmotion: ({ children, }: {
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
}) => jsx.JSX.Element;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type React from 'react';
|
|
2
2
|
export declare const MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 868;
|
|
3
|
-
export declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
3
|
+
export declare const NonCustomToolbarWrapperMigration: React.ComponentType<{
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const CustomToolbarWrapperMigration: React.ComponentType<{
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const MainToolbarIconBeforeMigration: React.ComponentType<{
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
+
* Used via `componentWithCondition` in `MainToolbarWrapper.tsx`.
|
|
8
|
+
*
|
|
9
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
10
|
+
*/
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import { jsx } from '@compiled/react';
|
|
13
|
+
export interface MainToolbarWrapperCompiledProps {
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
'data-testid'?: string;
|
|
16
|
+
showKeyline: boolean;
|
|
17
|
+
twoLineEditorToolbar: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const MainToolbarWrapperCompiled: ({ showKeyline, twoLineEditorToolbar, children, "data-testid": testId, }: MainToolbarWrapperCompiledProps) => jsx.JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
+
* Used via `componentWithCondition` in `MainToolbarWrapper.tsx`.
|
|
8
|
+
*
|
|
9
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
10
|
+
*/
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import { jsx } from '@emotion/react';
|
|
13
|
+
export interface MainToolbarWrapperEmotionProps {
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
'data-testid'?: string;
|
|
16
|
+
showKeyline: boolean;
|
|
17
|
+
twoLineEditorToolbar: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const MainToolbarWrapperEmotion: ({ showKeyline, twoLineEditorToolbar, children, "data-testid": testId, }: MainToolbarWrapperEmotionProps) => jsx.JSX.Element;
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
|
-
interface MainToolbarWrapperProps {
|
|
8
|
-
children: React.ReactNode;
|
|
9
|
-
'data-testid'?: string;
|
|
10
|
-
showKeyline: boolean;
|
|
11
|
-
twoLineEditorToolbar: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const MainToolbarWrapper: ({ showKeyline, twoLineEditorToolbar, children, "data-testid": testId, }: MainToolbarWrapperProps) => jsx.JSX.Element;
|
|
14
|
-
export {};
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type MainToolbarWrapperCompiledProps } from './MainToolbarWrapper-compiled';
|
|
3
|
+
export declare const MainToolbarWrapper: React.ComponentType<MainToolbarWrapperCompiledProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { EditorNextProps } from '../types/editor-props';
|
|
3
3
|
import type { WithAppearanceComponent } from '../types/with-appearance-component';
|
|
4
4
|
/**
|
|
@@ -6,7 +6,7 @@ import type { WithAppearanceComponent } from '../types/with-appearance-component
|
|
|
6
6
|
* @param props
|
|
7
7
|
* @example
|
|
8
8
|
*/
|
|
9
|
-
export declare function CoreEditor(props: EditorNextProps & WithAppearanceComponent):
|
|
9
|
+
export declare function CoreEditor(props: EditorNextProps & WithAppearanceComponent): React.JSX.Element;
|
|
10
10
|
export declare namespace CoreEditor {
|
|
11
11
|
var propTypes: {
|
|
12
12
|
minHeight: ({ appearance, minHeight, }: Pick<EditorNextProps, 'appearance' | 'minHeight'>) => Error | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
+
* Used via `componentWithCondition` in `editor-internal.tsx`.
|
|
8
|
+
*
|
|
9
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
10
|
+
*/
|
|
11
|
+
import type { ReactNode } from 'react';
|
|
12
|
+
export declare const EditorInternalContainerCompiled: ({ children }: {
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
+
* Used via `componentWithCondition` in `editor-internal.tsx`.
|
|
8
|
+
*
|
|
9
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
10
|
+
*/
|
|
11
|
+
import type { ReactNode } from 'react';
|
|
12
|
+
export declare const EditorInternalContainerEmotion: ({ children }: {
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
}) => React.JSX.Element;
|
|
@@ -4,17 +4,18 @@
|
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
-
* Used via `componentWithCondition` in `
|
|
7
|
+
* Used via `componentWithCondition` in `MainToolbar.tsx`.
|
|
8
8
|
*
|
|
9
9
|
* Cleanup: delete this file once the experiment has shipped.
|
|
10
10
|
*/
|
|
11
|
-
import
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import { jsx } from '@compiled/react';
|
|
12
13
|
export declare const NonCustomToolbarWrapperCompiled: ({ children, }: {
|
|
13
|
-
children: ReactNode;
|
|
14
|
-
}) =>
|
|
15
|
-
export declare const MainToolbarIconBeforeCompiled: ({ children, }: {
|
|
16
|
-
children: ReactNode;
|
|
17
|
-
}) => React.JSX.Element;
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
}) => jsx.JSX.Element;
|
|
18
16
|
export declare const CustomToolbarWrapperCompiled: ({ children, }: {
|
|
19
|
-
children: ReactNode;
|
|
20
|
-
}) =>
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
}) => jsx.JSX.Element;
|
|
19
|
+
export declare const MainToolbarIconBeforeCompiled: ({ children, }: {
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
}) => jsx.JSX.Element;
|
|
@@ -4,17 +4,18 @@
|
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
-
* Used via `componentWithCondition` in `
|
|
7
|
+
* Used via `componentWithCondition` in `MainToolbar.tsx`.
|
|
8
8
|
*
|
|
9
9
|
* Cleanup: delete this file once the experiment has shipped.
|
|
10
10
|
*/
|
|
11
|
-
import
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import { jsx } from '@emotion/react';
|
|
12
13
|
export declare const NonCustomToolbarWrapperEmotion: ({ children, }: {
|
|
13
|
-
children: ReactNode;
|
|
14
|
-
}) =>
|
|
15
|
-
export declare const MainToolbarIconBeforeEmotion: ({ children, }: {
|
|
16
|
-
children: ReactNode;
|
|
17
|
-
}) => React.JSX.Element;
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
}) => jsx.JSX.Element;
|
|
18
16
|
export declare const CustomToolbarWrapperEmotion: ({ children, }: {
|
|
19
|
-
children: ReactNode;
|
|
20
|
-
}) =>
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
}) => jsx.JSX.Element;
|
|
19
|
+
export declare const MainToolbarIconBeforeEmotion: ({ children, }: {
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
}) => jsx.JSX.Element;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type React from 'react';
|
|
2
2
|
export declare const MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 868;
|
|
3
|
-
export declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
3
|
+
export declare const NonCustomToolbarWrapperMigration: React.ComponentType<{
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const CustomToolbarWrapperMigration: React.ComponentType<{
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const MainToolbarIconBeforeMigration: React.ComponentType<{
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
+
* Used via `componentWithCondition` in `MainToolbarWrapper.tsx`.
|
|
8
|
+
*
|
|
9
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
10
|
+
*/
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import { jsx } from '@compiled/react';
|
|
13
|
+
export interface MainToolbarWrapperCompiledProps {
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
'data-testid'?: string;
|
|
16
|
+
showKeyline: boolean;
|
|
17
|
+
twoLineEditorToolbar: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const MainToolbarWrapperCompiled: ({ showKeyline, twoLineEditorToolbar, children, "data-testid": testId, }: MainToolbarWrapperCompiledProps) => jsx.JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
7
|
+
* Used via `componentWithCondition` in `MainToolbarWrapper.tsx`.
|
|
8
|
+
*
|
|
9
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
10
|
+
*/
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import { jsx } from '@emotion/react';
|
|
13
|
+
export interface MainToolbarWrapperEmotionProps {
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
'data-testid'?: string;
|
|
16
|
+
showKeyline: boolean;
|
|
17
|
+
twoLineEditorToolbar: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const MainToolbarWrapperEmotion: ({ showKeyline, twoLineEditorToolbar, children, "data-testid": testId, }: MainToolbarWrapperEmotionProps) => jsx.JSX.Element;
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
|
-
interface MainToolbarWrapperProps {
|
|
8
|
-
children: React.ReactNode;
|
|
9
|
-
'data-testid'?: string;
|
|
10
|
-
showKeyline: boolean;
|
|
11
|
-
twoLineEditorToolbar: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const MainToolbarWrapper: ({ showKeyline, twoLineEditorToolbar, children, "data-testid": testId, }: MainToolbarWrapperProps) => jsx.JSX.Element;
|
|
14
|
-
export {};
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type MainToolbarWrapperCompiledProps } from './MainToolbarWrapper-compiled';
|
|
3
|
+
export declare const MainToolbarWrapper: React.ComponentType<MainToolbarWrapperCompiledProps>;
|
package/package.json
CHANGED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/* FullPageToolbar-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
-
/**
|
|
3
|
-
* Compiled branch of the `platform_editor_core_non_ecc_static_css` experiment.
|
|
4
|
-
* Used via `componentWithCondition` in `FullPageToolbar.tsx`.
|
|
5
|
-
*
|
|
6
|
-
* Cleanup: delete this file once the experiment has shipped.
|
|
7
|
-
*/
|
|
8
|
-
"use strict";
|
|
9
|
-
|
|
10
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
11
|
-
Object.defineProperty(exports, "__esModule", {
|
|
12
|
-
value: true
|
|
13
|
-
});
|
|
14
|
-
exports.NonCustomToolbarWrapperCompiled = exports.MainToolbarIconBeforeCompiled = exports.CustomToolbarWrapperCompiled = void 0;
|
|
15
|
-
require("./FullPageToolbar-compiled.compiled.css");
|
|
16
|
-
var React = _interopRequireWildcard(require("react"));
|
|
17
|
-
var _runtime = require("@compiled/react/runtime");
|
|
18
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
19
|
-
var nonCustomToolbarCompiledStyles = {
|
|
20
|
-
root: "_4cvr1h6o _1e0c1txw _16jlkb7n"
|
|
21
|
-
};
|
|
22
|
-
var mainToolbarIconBeforeCompiledStyles = {
|
|
23
|
-
root: "_19pkpxbi _2hwxpxbi _otyrpxbi _18u0pxbi _4t3ixy5q _1bsbxy5q _mlgzkb7n _tuuhkb7n"
|
|
24
|
-
};
|
|
25
|
-
var customToolbarCompiledStyles = {
|
|
26
|
-
root: "_4cvr1h6o _1e0c1txw"
|
|
27
|
-
};
|
|
28
|
-
var NonCustomToolbarWrapperCompiled = exports.NonCustomToolbarWrapperCompiled = function NonCustomToolbarWrapperCompiled(_ref) {
|
|
29
|
-
var children = _ref.children;
|
|
30
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
31
|
-
className: (0, _runtime.ax)([nonCustomToolbarCompiledStyles.root])
|
|
32
|
-
}, children);
|
|
33
|
-
};
|
|
34
|
-
var MainToolbarIconBeforeCompiled = exports.MainToolbarIconBeforeCompiled = function MainToolbarIconBeforeCompiled(_ref2) {
|
|
35
|
-
var children = _ref2.children;
|
|
36
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
37
|
-
className: (0, _runtime.ax)([mainToolbarIconBeforeCompiledStyles.root])
|
|
38
|
-
}, children);
|
|
39
|
-
};
|
|
40
|
-
var CustomToolbarWrapperCompiled = exports.CustomToolbarWrapperCompiled = function CustomToolbarWrapperCompiled(_ref3) {
|
|
41
|
-
var children = _ref3.children;
|
|
42
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
43
|
-
className: (0, _runtime.ax)([customToolbarCompiledStyles.root])
|
|
44
|
-
}, children);
|
|
45
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|