@atlaskit/editor-core 219.9.15 → 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.
Files changed (77) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/composable-editor/core-editor.js +7 -10
  3. package/dist/cjs/composable-editor/editor-internal-compiled.compiled.css +3 -0
  4. package/dist/cjs/composable-editor/editor-internal-compiled.js +27 -0
  5. package/dist/cjs/composable-editor/editor-internal-emotion.js +31 -0
  6. package/dist/cjs/composable-editor/editor-internal.js +17 -20
  7. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +2 -15
  8. package/dist/cjs/ui/Appearance/FullPage/MainToolbar-compiled.js +46 -0
  9. package/dist/cjs/ui/Appearance/FullPage/{FullPageToolbar-emotion.js → MainToolbar-emotion.js} +25 -24
  10. package/dist/cjs/ui/Appearance/FullPage/MainToolbar.js +14 -68
  11. package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper-compiled.compiled.css +14 -0
  12. package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper-compiled.js +35 -0
  13. package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper-emotion.js +70 -0
  14. package/dist/cjs/ui/Appearance/FullPage/MainToolbarWrapper.js +7 -61
  15. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +6 -0
  16. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -1
  17. package/dist/cjs/ui/EditorContentContainer/styles/layout.js +5 -7
  18. package/dist/cjs/version-wrapper.js +1 -1
  19. package/dist/es2019/composable-editor/core-editor.js +4 -11
  20. package/dist/es2019/composable-editor/editor-internal-compiled.compiled.css +3 -0
  21. package/dist/es2019/composable-editor/editor-internal-compiled.js +18 -0
  22. package/dist/es2019/composable-editor/editor-internal-emotion.js +23 -0
  23. package/dist/es2019/composable-editor/editor-internal.js +12 -21
  24. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +1 -8
  25. package/dist/es2019/ui/Appearance/FullPage/{FullPageToolbar-compiled.js → MainToolbar-compiled.js} +19 -16
  26. package/dist/es2019/ui/Appearance/FullPage/{FullPageToolbar-emotion.js → MainToolbar-emotion.js} +20 -19
  27. package/dist/es2019/ui/Appearance/FullPage/MainToolbar.js +7 -70
  28. package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper-compiled.compiled.css +14 -0
  29. package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper-compiled.js +30 -0
  30. package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper-emotion.js +65 -0
  31. package/dist/es2019/ui/Appearance/FullPage/MainToolbarWrapper.js +5 -63
  32. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +6 -0
  33. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -1
  34. package/dist/es2019/ui/EditorContentContainer/styles/layout.js +5 -7
  35. package/dist/es2019/version-wrapper.js +1 -1
  36. package/dist/esm/composable-editor/core-editor.js +4 -11
  37. package/dist/esm/composable-editor/editor-internal-compiled.compiled.css +3 -0
  38. package/dist/esm/composable-editor/editor-internal-compiled.js +19 -0
  39. package/dist/esm/composable-editor/editor-internal-emotion.js +24 -0
  40. package/dist/esm/composable-editor/editor-internal.js +14 -21
  41. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +1 -14
  42. package/dist/esm/ui/Appearance/FullPage/{FullPageToolbar-compiled.js → MainToolbar-compiled.js} +19 -16
  43. package/dist/esm/ui/Appearance/FullPage/{FullPageToolbar-emotion.js → MainToolbar-emotion.js} +21 -20
  44. package/dist/esm/ui/Appearance/FullPage/MainToolbar.js +13 -65
  45. package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper-compiled.compiled.css +14 -0
  46. package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper-compiled.js +29 -0
  47. package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper-emotion.js +62 -0
  48. package/dist/esm/ui/Appearance/FullPage/MainToolbarWrapper.js +7 -60
  49. package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +6 -0
  50. package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -1
  51. package/dist/esm/ui/EditorContentContainer/styles/layout.js +5 -7
  52. package/dist/esm/version-wrapper.js +1 -1
  53. package/dist/types/composable-editor/core-editor.d.ts +2 -2
  54. package/dist/types/composable-editor/editor-internal-compiled.d.ts +14 -0
  55. package/dist/types/composable-editor/editor-internal-emotion.d.ts +14 -0
  56. package/dist/types/composable-editor/editor-internal.d.ts +1 -0
  57. package/dist/types/ui/Appearance/FullPage/{FullPageToolbar-compiled.d.ts → MainToolbar-compiled.d.ts} +10 -9
  58. package/dist/{types-ts4.5/ui/Appearance/FullPage/FullPageToolbar-emotion.d.ts → types/ui/Appearance/FullPage/MainToolbar-emotion.d.ts} +10 -9
  59. package/dist/types/ui/Appearance/FullPage/MainToolbar.d.ts +10 -6
  60. package/dist/types/ui/Appearance/FullPage/MainToolbarWrapper-compiled.d.ts +19 -0
  61. package/dist/types/ui/Appearance/FullPage/MainToolbarWrapper-emotion.d.ts +19 -0
  62. package/dist/types/ui/Appearance/FullPage/MainToolbarWrapper.d.ts +3 -14
  63. package/dist/types-ts4.5/composable-editor/core-editor.d.ts +2 -2
  64. package/dist/types-ts4.5/composable-editor/editor-internal-compiled.d.ts +14 -0
  65. package/dist/types-ts4.5/composable-editor/editor-internal-emotion.d.ts +14 -0
  66. package/dist/types-ts4.5/composable-editor/editor-internal.d.ts +1 -0
  67. package/dist/types-ts4.5/ui/Appearance/FullPage/{FullPageToolbar-compiled.d.ts → MainToolbar-compiled.d.ts} +10 -9
  68. package/dist/{types/ui/Appearance/FullPage/FullPageToolbar-emotion.d.ts → types-ts4.5/ui/Appearance/FullPage/MainToolbar-emotion.d.ts} +10 -9
  69. package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbar.d.ts +10 -6
  70. package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbarWrapper-compiled.d.ts +19 -0
  71. package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbarWrapper-emotion.d.ts +19 -0
  72. package/dist/types-ts4.5/ui/Appearance/FullPage/MainToolbarWrapper.d.ts +3 -14
  73. package/package.json +3 -3
  74. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar-compiled.js +0 -45
  75. /package/dist/cjs/ui/Appearance/FullPage/{FullPageToolbar-compiled.compiled.css → MainToolbar-compiled.compiled.css} +0 -0
  76. /package/dist/es2019/ui/Appearance/FullPage/{FullPageToolbar-compiled.compiled.css → MainToolbar-compiled.compiled.css} +0 -0
  77. /package/dist/esm/ui/Appearance/FullPage/{FullPageToolbar-compiled.compiled.css → MainToolbar-compiled.compiled.css} +0 -0
@@ -1,66 +1,14 @@
1
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- /* eslint-disable @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766 */
3
- import { css } from '@emotion/react';
4
- import { akEditorMobileMaxWidth, FULL_PAGE_EDITOR_TOOLBAR_HEIGHT } from '@atlaskit/editor-shared-styles';
1
+ import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
2
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
3
+ import { CustomToolbarWrapperCompiled, MainToolbarIconBeforeCompiled, NonCustomToolbarWrapperCompiled } from './MainToolbar-compiled';
4
+ import { CustomToolbarWrapperEmotion, MainToolbarIconBeforeEmotion, NonCustomToolbarWrapperEmotion } from './MainToolbar-emotion';
5
5
  export var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 868;
6
-
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
8
- export var mainToolbarIconBeforeStyle = css(_defineProperty({
9
- margin: "var(--ds-space-200, 16px)",
10
- height: "var(--ds-space-400, 32px)",
11
- width: "var(--ds-space-400, 32px)"
12
- }, "@media (max-width: ".concat(akEditorMobileMaxWidth, "px)"), {
13
- gridColumn: 1,
14
- gridRow: 1
15
- }));
16
- var mainToolbarFirstChild = css(_defineProperty({
17
- display: 'flex',
18
- flexGrow: 1
19
- }, "@media (max-width: ".concat(akEditorMobileMaxWidth, "px)"), {
20
- gridColumn: 1,
21
- gridRow: 1
22
- }));
23
- var mainToolbarFirstChildTowLine = function mainToolbarFirstChildTowLine() {
24
- var editorToolbarHeight = FULL_PAGE_EDITOR_TOOLBAR_HEIGHT();
25
- return css(_defineProperty({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
26
- flex: '1 1 100%',
27
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
28
- height: editorToolbarHeight,
29
- justifyContent: 'flex-end',
30
- minWidth: 'fit-content'
31
- }));
32
- };
33
- export var mainToolbarFirstChildStyle = function mainToolbarFirstChildStyle(twoLineEditorToolbar) {
34
- return [mainToolbarFirstChild, twoLineEditorToolbar && mainToolbarFirstChildTowLine];
35
- };
36
- var mainToolbarSecondChild = css({
37
- minWidth: 'fit-content'
38
- });
39
- var mainToolbarSecondChildTwoLine = function mainToolbarSecondChildTwoLine() {
40
- var editorToolbarHeight = FULL_PAGE_EDITOR_TOOLBAR_HEIGHT();
41
- return css(_defineProperty({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
42
- display: 'flex',
43
- flexGrow: 1,
44
- flex: '1 1 100%',
45
- margin: 'auto',
46
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
47
- height: editorToolbarHeight,
48
- minWidth: 0
49
- }));
50
- };
51
- export var mainToolbarSecondChildStyle = function mainToolbarSecondChildStyle(twoLineEditorToolbar) {
52
- return [mainToolbarSecondChild, twoLineEditorToolbar && mainToolbarSecondChildTwoLine];
53
- };
54
-
55
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
56
- export var nonCustomToolbarWrapperStyle = css({
57
- alignItems: 'center',
58
- display: 'flex',
59
- flexGrow: 1
60
- });
61
-
62
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
63
- export var customToolbarWrapperStyle = css({
64
- alignItems: 'center',
65
- display: 'flex'
66
- });
6
+ export var NonCustomToolbarWrapperMigration = componentWithCondition(function () {
7
+ return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
8
+ }, NonCustomToolbarWrapperCompiled, NonCustomToolbarWrapperEmotion);
9
+ export var CustomToolbarWrapperMigration = componentWithCondition(function () {
10
+ return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
11
+ }, CustomToolbarWrapperCompiled, CustomToolbarWrapperEmotion);
12
+ export var MainToolbarIconBeforeMigration = componentWithCondition(function () {
13
+ return expValEquals('platform_editor_core_non_ecc_static_css', 'isEnabled', true);
14
+ }, MainToolbarIconBeforeCompiled, MainToolbarIconBeforeEmotion);
@@ -0,0 +1,14 @@
1
+
2
+ ._v56419ab{transition:box-shadow .2s cubic-bezier(.15,1,.3,1)}
3
+ ._n7zlia51{border-bottom:var(--ds-border-width,1px) solid var(--ds-border,#0b120e24)}._16qs1nax{box-shadow:var(--ds-shadow-overflow,0 0 8px #1e1f2128,0 0 1px #1e1f211e)}
4
+ ._16qsglyw{box-shadow:none}
5
+ ._1e0c1txw{display:flex}
6
+ ._1krdgrf3 object{height:0!important}
7
+ ._1o9zidpf{flex-shrink:0}
8
+ ._1pby16oo{z-index:510}
9
+ ._3pwj1osq span svg{max-width:100%}
10
+ ._4cvr1h6o{align-items:center}
11
+ ._4t3i17qo{height:var(--ak-editor-fullpage-toolbar-height)}
12
+ ._bfhkvuon{background-color:var(--ds-surface,#fff)}
13
+ ._kqswh2mm{position:relative}
14
+ @media (max-width:868px){._1s5v1g80{flex-wrap:wrap}._8o38zpre{height:calc(var(--ak-editor-fullpage-toolbar-height)*2)}}
@@ -0,0 +1,29 @@
1
+ /* MainToolbarWrapper-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 `MainToolbarWrapper.tsx`.
5
+ *
6
+ * Cleanup: delete this file once the experiment has shipped.
7
+ */
8
+ import "./MainToolbarWrapper-compiled.compiled.css";
9
+ import { ax, ix } from "@compiled/react/runtime";
10
+ import React from 'react';
11
+
12
+ // eslint-disable-next-line @typescript-eslint/consistent-type-imports
13
+
14
+ var styles = {
15
+ base: "_v56419ab _n7zlia51 _kqswh2mm _4cvr1h6o _16qsglyw _1pby16oo _1e0c1txw _4t3i17qo _1o9zidpf _bfhkvuon _1krdgrf3",
16
+ flexibleIconSize: "_3pwj1osq",
17
+ keyline: "_16qs1nax",
18
+ twoLine: "_1s5v1g80 _8o38zpre"
19
+ };
20
+ export var MainToolbarWrapperCompiled = function MainToolbarWrapperCompiled(_ref) {
21
+ var showKeyline = _ref.showKeyline,
22
+ twoLineEditorToolbar = _ref.twoLineEditorToolbar,
23
+ children = _ref.children,
24
+ testId = _ref['data-testid'];
25
+ return /*#__PURE__*/React.createElement("div", {
26
+ "data-testid": testId,
27
+ className: ax([styles.base, styles.flexibleIconSize, showKeyline && styles.keyline, twoLineEditorToolbar && styles.twoLine])
28
+ }, children);
29
+ };
@@ -0,0 +1,62 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
6
+ /**
7
+ * Emotion fallback branch of the `platform_editor_core_non_ecc_static_css` experiment.
8
+ * Used via `componentWithCondition` in `MainToolbarWrapper.tsx`.
9
+ *
10
+ * Cleanup: delete this file once the experiment has shipped.
11
+ */
12
+ import React from 'react';
13
+
14
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- intentional: emotion fallback for compiled migration
15
+ import { css, jsx } from '@emotion/react';
16
+ import { akEditorFloatingDialogZIndex, akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
17
+ import { MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT } from './MainToolbar';
18
+ var baseToolbarStyles = css({
19
+ position: 'relative',
20
+ alignItems: 'center',
21
+ boxShadow: 'none',
22
+ borderBottom: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
23
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
24
+ transition: "box-shadow 200ms ".concat(akEditorSwoopCubicBezier),
25
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
26
+ zIndex: akEditorFloatingDialogZIndex,
27
+ display: 'flex',
28
+ height: 'var(--ak-editor-fullpage-toolbar-height)',
29
+ flexShrink: 0,
30
+ backgroundColor: "var(--ds-surface, #FFFFFF)",
31
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
32
+ '& object': {
33
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
34
+ height: '0 !important'
35
+ }
36
+ });
37
+ var flexibleIconSize = css({
38
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
39
+ '& span svg': {
40
+ maxWidth: '100%'
41
+ }
42
+ });
43
+ var mainToolbarWithKeyline = css({
44
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
45
+ boxShadow: "var(--ds-shadow-overflow, 0px 0px 8px #1E1F2128, 0px 0px 1px #1E1F211e)"
46
+ });
47
+ var mainToolbarTwoLineStyle = css(_defineProperty({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
48
+ flexWrap: 'wrap',
49
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
50
+ height: "calc(var(--ak-editor-fullpage-toolbar-height) * 2)"
51
+ }));
52
+ export var MainToolbarWrapperEmotion = function MainToolbarWrapperEmotion(_ref) {
53
+ var showKeyline = _ref.showKeyline,
54
+ twoLineEditorToolbar = _ref.twoLineEditorToolbar,
55
+ children = _ref.children,
56
+ testId = _ref['data-testid'];
57
+ return jsx("div", {
58
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
59
+ css: [baseToolbarStyles, flexibleIconSize, showKeyline && mainToolbarWithKeyline, twoLineEditorToolbar && mainToolbarTwoLineStyle],
60
+ "data-testid": testId
61
+ }, children);
62
+ };
@@ -1,60 +1,7 @@
1
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
- import React from 'react';
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);
@@ -606,6 +606,7 @@
606
606
  ._15pyjp4b .pm-table-wrapper>table>tbody>tr>th{vertical-align:top}
607
607
  ._15q4m0zr .ProseMirror [layout^=wrap-]+[layout^=wrap-]+div[class^=fabric-editor-align]{clear:both!important}
608
608
  ._15r21s89 .search-match-block.search-match-block-selected .loader-wrapper>a{box-shadow:0 0 0 4px var(--ds-background-accent-magenta-subtlest-pressed,#fcb6e1),0 0 0 5px var(--ds-background-accent-magenta-bolder-hovered,#943d73)}
609
+ ._15sh1bp4 .ProseMirror [data-layout-section] [data-layout-column][data-valign=bottom]>[data-layout-content]{flex-direction:column}
609
610
  ._15t1i7a9 .pm-table-sticky-wrapper>table>tbody>tr>td{font-weight:var(--ds-font-weight-regular,400)}
610
611
  ._15uri7a9 .ak-editor-expand__title-input{font-weight:var(--ds-font-weight-regular,400)}
611
612
  ._15ve1gly .ProseMirror .danger .code-block .line-number-gutter{background-color:var(--ds-background-danger,#ffeceb)}
@@ -627,6 +628,7 @@
627
628
  ._16am1j28 .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-column] ::-moz-selection{background-color:transparent}
628
629
  ._16atr4us .ak-editor-selected-node:not(.search-match-block)>.editor-mention-primitive.mention-self{box-shadow:0 0 0 1px var(--ds-border-selected,#1868db)}
629
630
  ._16d4idpf .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child h4:first-child:not(style){margin-top:0}
631
+ ._16df1txw .ProseMirror [data-layout-section] [data-layout-column][data-valign=middle]>[data-layout-content]{display:flex}
630
632
  ._16e11mi1 .fabric-editor-breakout-mark:has([data-prosemirror-node-name=expand])>.pm-breakout-resize-handle-container--left{left:-25px}
631
633
  ._16fuidpf .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child p style:first-child+*{margin-top:0}
632
634
  ._16fx73ad .ProseMirror [data-layout-section]{cursor:default}
@@ -1835,6 +1837,7 @@
1835
1837
  ._1ybf1nka .search-match-block [data-smart-link-container=true]{box-shadow:inset 0 0 0 1px var(--ds-border-accent-magenta,#cd519d),inset 0 0 0 5px var(--ds-background-accent-magenta-subtler,#fdd0ec)}
1836
1838
  ._1ybwjocv .search-match-text.selected-search-match{background-color:var(--ds-background-accent-magenta-subtlest-pressed,#fcb6e1)!important}
1837
1839
  ._1yd8i8nm .pm-table-wrapper>table th:not(.danger) .code-block:not(.danger) .line-number-gutter{background-color:var(--ds-background-neutral,#0515240f)}
1840
+ ._1ydd1bp4 .ProseMirror [data-layout-section] [data-layout-column][data-valign=middle]>[data-layout-content]{flex-direction:column}
1838
1841
  ._1ydjglyw .ProseMirror .ak-editor-panel .ak-editor-panel__icon{-webkit-user-select:none}
1839
1842
  ._1ydu1up9 .search-match-block .loader-wrapper>a{box-shadow:0 0 0 4px var(--ds-background-accent-magenta-subtler,#fdd0ec),0 0 0 5px var(--ds-border-accent-magenta,#cd519d)}
1840
1843
  ._1yg7azsu .ak-editor-selected-node>.editor-mention-primitive.mention-self{color:var(--ds-text-subtle,#505258)}
@@ -2265,6 +2268,7 @@
2265
2268
  ._as951j5o .ProseMirror h2 strong{font-weight:var(--editor-font-ugc-token-weight-heading-bold)}
2266
2269
  ._at5bidpf .ProseMirror .code-block{margin-right:0}
2267
2270
  ._atbw16ux .ProseMirror [data-layout-section].ak-editor-selected-node:not(.danger) [data-layout-column]:after{content:"\00a0"}
2271
+ ._av0z1h6o .ProseMirror [data-layout-section] [data-layout-column][data-valign=middle]>[data-layout-content]{justify-content:center}
2268
2272
  ._awp7f705 [layout=wrap-left]+.ProseMirror-gapcursor+span+[layout=wrap-right]:after{content:" "}
2269
2273
  ._ay2w187o{--local-background-disabled:var(--ds-background-disabled,#0515240f)}
2270
2274
  ._ay4r7mnp .ak-editor-expand__content .expand-content-wrapper{clip:rect(1px,1px,1px,1px)}
@@ -2752,6 +2756,7 @@
2752
2756
  ._ksblidpf .fabric-editor-alignment:first-of-type:first-child p:first-child:not(style){margin-top:0}
2753
2757
  ._ksg217vv .ProseMirror h1>.media-inline-image-wrapper{transform:translateY(-3px)}
2754
2758
  ._ktc91e5h .pm-table-sticky-wrapper>table th{text-align:left}
2759
+ ._ktyiesu3 .ProseMirror [data-layout-section] [data-layout-column][data-valign=bottom]>[data-layout-content]{justify-content:flex-end}
2755
2760
  ._kw4vglyw .ProseMirror .ak-editor-panel .ak-editor-panel__icon{ms-user-select:none}
2756
2761
  ._kxdfidpf .ProseMirror .ak-editor-selected-node .emoji-common-emoji-image:before{left:0}
2757
2762
  ._ky807vkz [data-prosemirror-node-name=decisionItem]>[data-decision-wrapper]>[data-component=icon]{width:1pc}
@@ -3304,6 +3309,7 @@
3304
3309
  ._wg06idpf [data-prosemirror-node-name=date] .date-lozenger-container span{margin-top:0}
3305
3310
  ._wgjz10yn .ProseMirror h3>:is(a,span[data-mark-type=border]) .media-inline-image-wrapper{height:25px}
3306
3311
  ._wgub1j28 .ProseMirror span.pm-placeholder.ak-editor-selected-node ::selection{background-color:transparent}
3312
+ ._whzv1txw .ProseMirror [data-layout-section] [data-layout-column][data-valign=bottom]>[data-layout-content]{display:flex}
3307
3313
  ._wi0pglyw .ak-editor-sync-block__label{box-shadow:none}
3308
3314
  ._wi4l1j28 .dateView-content-wrap.ak-editor-selected-node .date-lozenger-container>span ::-moz-selection{background-color:transparent}
3309
3315
  ._wiz6tlke .embedCardView-content-wrap .loader-wrapper>div{cursor:pointer}
@@ -204,7 +204,7 @@ var editorContentStyles = {
204
204
  hyperLinkFloatingToolbarStyles: "_14olidpf _1499idpf _w11vidpf _162zidpf",
205
205
  indentationStyles: "_10pe1ul9 _ygai1wqb _1czel1r9 _126j68cl _cnga1w81 _14uamgvx",
206
206
  InlineNodeViewSharedStyles: "_omad1nu9 _64cs1rj4 _fukv1q9c _1rhx1jtm _1bbqglyw _1v741j28 _17xw1j28 _kdjsglyw _6q1jryon",
207
- layoutBaseStyles: "_o2as1f61 _3t6qixl8 _19z7kb7n _e6qzkb7n _c9uhf1ug _19eyia51 _1r5q12b0 _cx2xutpp _2wy7h2mm _14hwidpf _1ed8usvi _navqidpf _84fsidpf _gt3aidpf _13jnidpf _1iuzidpf _15nuidpf _4fc0idpf _cs4didpf _1iwn1osq _10q81kdv _i6821hrf _16fxtlke _ez6hglyw _17igidpf _1ayiyh40 _x1d2idpf _9m42yh40",
207
+ layoutBaseStyles: "_o2as1f61 _3t6qixl8 _19z7kb7n _e6qzkb7n _c9uhf1ug _19eyia51 _1r5q12b0 _cx2xutpp _2wy7h2mm _14hwidpf _1ed8usvi _navqidpf _84fsidpf _gt3aidpf _13jnidpf _1iuzidpf _15nuidpf _4fc0idpf _cs4didpf _1iwn1osq _10q81kdv _i6821hrf _whzv1txw _16df1txw _15sh1bp4 _1ydd1bp4 _av0z1h6o _ktyiesu3 _16fxtlke _ez6hglyw _17igidpf _1ayiyh40 _x1d2idpf _9m42yh40",
208
208
  layoutBaseStylesAdvanced: "_19eyidpf",
209
209
  layoutBaseStylesFixesUnderNestedDnDFG: "_o2as17in _1v5d1crf _5jfcgktf _3mtd1crf _c82wgktf",
210
210
  layoutBaseStylesFixesUnderNestedDnDFGExcludingBodiedSync: "_o2as17in _157i1f61 _1v5d1crf _5jfcgktf _3mtd1crf _c82wgktf",
@@ -499,22 +499,20 @@ export var layoutBaseStyles = css({
499
499
  clear: 'both'
500
500
  }
501
501
  },
502
+ // Keep the editable content wrapper stretched so blank column space remains a text hit area.
503
+ // Apply vertical alignment to the wrapper contents rather than shrinking the wrapper itself.
502
504
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
503
- '&[data-valign="middle"], &[data-valign="bottom"]': {
505
+ '&[data-valign="middle"] > [data-layout-content], &[data-valign="bottom"] > [data-layout-content]': {
504
506
  display: 'flex',
505
507
  flexDirection: 'column'
506
508
  },
507
509
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
508
- '&[data-valign="middle"]': {
510
+ '&[data-valign="middle"] > [data-layout-content]': {
509
511
  justifyContent: 'center'
510
512
  },
511
513
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
512
- '&[data-valign="bottom"]': {
514
+ '&[data-valign="bottom"] > [data-layout-content]': {
513
515
  justifyContent: 'flex-end'
514
- },
515
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
516
- '&[data-valign="middle"] > [data-layout-content], &[data-valign="bottom"] > [data-layout-content]': {
517
- height: 'auto'
518
516
  }
519
517
  }
520
518
  }
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "219.9.14";
2
+ export var version = "219.9.16";
@@ -1,4 +1,4 @@
1
- import { jsx } from '@emotion/react';
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): jsx.JSX.Element;
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;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { MemoExoticComponent } from 'react';
2
3
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
3
4
  import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
@@ -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 `FullPageToolbar.tsx`.
7
+ * Used via `componentWithCondition` in `MainToolbar.tsx`.
8
8
  *
9
9
  * Cleanup: delete this file once the experiment has shipped.
10
10
  */
11
- import type { ReactNode } from 'react';
11
+ import React from 'react';
12
+ import { jsx } from '@compiled/react';
12
13
  export declare const NonCustomToolbarWrapperCompiled: ({ children, }: {
13
- children: ReactNode;
14
- }) => React.JSX.Element;
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
- }) => React.JSX.Element;
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 `FullPageToolbar.tsx`.
7
+ * Used via `componentWithCondition` in `MainToolbar.tsx`.
8
8
  *
9
9
  * Cleanup: delete this file once the experiment has shipped.
10
10
  */
11
- import type { ReactNode } from 'react';
11
+ import React from 'react';
12
+ import { jsx } from '@emotion/react';
12
13
  export declare const NonCustomToolbarWrapperEmotion: ({ children, }: {
13
- children: ReactNode;
14
- }) => React.JSX.Element;
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
- }) => React.JSX.Element;
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 { SerializedStyles } from '@emotion/react';
1
+ import type React from 'react';
2
2
  export declare const MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 868;
3
- export declare const mainToolbarIconBeforeStyle: SerializedStyles;
4
- export declare const mainToolbarFirstChildStyle: (twoLineEditorToolbar: boolean) => (false | SerializedStyles | (() => SerializedStyles))[];
5
- export declare const mainToolbarSecondChildStyle: (twoLineEditorToolbar: boolean) => (false | SerializedStyles | (() => SerializedStyles))[];
6
- export declare const nonCustomToolbarWrapperStyle: SerializedStyles;
7
- export declare const customToolbarWrapperStyle: SerializedStyles;
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
- * @jsxRuntime classic
3
- * @jsx jsx
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 { jsx } from '@emotion/react';
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): jsx.JSX.Element;
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;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import type { MemoExoticComponent } from 'react';
2
3
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
3
4
  import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
@@ -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 `FullPageToolbar.tsx`.
7
+ * Used via `componentWithCondition` in `MainToolbar.tsx`.
8
8
  *
9
9
  * Cleanup: delete this file once the experiment has shipped.
10
10
  */
11
- import type { ReactNode } from 'react';
11
+ import React from 'react';
12
+ import { jsx } from '@compiled/react';
12
13
  export declare const NonCustomToolbarWrapperCompiled: ({ children, }: {
13
- children: ReactNode;
14
- }) => React.JSX.Element;
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
- }) => React.JSX.Element;
17
+ children: React.ReactNode;
18
+ }) => jsx.JSX.Element;
19
+ export declare const MainToolbarIconBeforeCompiled: ({ children, }: {
20
+ children: React.ReactNode;
21
+ }) => jsx.JSX.Element;