@atlaskit/renderer 130.2.16 → 130.2.18
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 +14 -0
- package/dist/cjs/react/marks/link-compiled.compiled.css +6 -0
- package/dist/cjs/react/marks/link-compiled.js +27 -0
- package/dist/cjs/react/marks/link-emotion.js +42 -0
- package/dist/cjs/react/marks/link.js +13 -23
- package/dist/cjs/react/nodes/layoutColumn-compiled.compiled.css +10 -0
- package/dist/cjs/react/nodes/layoutColumn-compiled.js +37 -0
- package/dist/cjs/react/nodes/layoutColumn-emotion.js +59 -0
- package/dist/cjs/react/nodes/layoutColumn.js +11 -41
- package/dist/cjs/react/nodes/panel-compiled.compiled.css +54 -0
- package/dist/cjs/react/nodes/panel-compiled.js +60 -0
- package/dist/cjs/react/nodes/panel-emotion.js +185 -0
- package/dist/cjs/react/nodes/panel.js +14 -181
- package/dist/es2019/react/marks/link-compiled.compiled.css +6 -0
- package/dist/es2019/react/marks/link-compiled.js +17 -0
- package/dist/es2019/react/marks/link-emotion.js +31 -0
- package/dist/es2019/react/marks/link.js +13 -23
- package/dist/es2019/react/nodes/layoutColumn-compiled.compiled.css +10 -0
- package/dist/es2019/react/nodes/layoutColumn-compiled.js +31 -0
- package/dist/es2019/react/nodes/layoutColumn-emotion.js +61 -0
- package/dist/es2019/react/nodes/layoutColumn.js +10 -50
- package/dist/es2019/react/nodes/panel-compiled.compiled.css +57 -0
- package/dist/es2019/react/nodes/panel-compiled.js +44 -0
- package/dist/es2019/react/nodes/panel-emotion.js +178 -0
- package/dist/es2019/react/nodes/panel.js +12 -180
- package/dist/esm/react/marks/link-compiled.compiled.css +6 -0
- package/dist/esm/react/marks/link-compiled.js +19 -0
- package/dist/esm/react/marks/link-emotion.js +34 -0
- package/dist/esm/react/marks/link.js +15 -23
- package/dist/esm/react/nodes/layoutColumn-compiled.compiled.css +10 -0
- package/dist/esm/react/nodes/layoutColumn-compiled.js +31 -0
- package/dist/esm/react/nodes/layoutColumn-emotion.js +52 -0
- package/dist/esm/react/nodes/layoutColumn.js +12 -41
- package/dist/esm/react/nodes/panel-compiled.compiled.css +54 -0
- package/dist/esm/react/nodes/panel-compiled.js +53 -0
- package/dist/esm/react/nodes/panel-emotion.js +179 -0
- package/dist/esm/react/nodes/panel.js +14 -181
- package/dist/types/react/marks/link-compiled.d.ts +13 -0
- package/dist/types/react/marks/link-emotion.d.ts +14 -0
- package/dist/types/react/marks/link.d.ts +5 -2
- package/dist/types/react/nodes/index.d.ts +2 -2
- package/dist/types/react/nodes/layoutColumn-compiled.d.ts +14 -0
- package/dist/types/react/nodes/layoutColumn-emotion.d.ts +14 -0
- package/dist/types/react/nodes/layoutColumn.d.ts +3 -5
- package/dist/types/react/nodes/panel-compiled.d.ts +22 -0
- package/dist/types/react/nodes/panel-emotion.d.ts +23 -0
- package/dist/types/react/nodes/panel.d.ts +1 -6
- package/dist/types/ui/annotations/draft/dom.d.ts +1 -1
- package/dist/types/ui/annotations/hooks/use-events.d.ts +1 -1
- package/dist/types-ts4.5/react/marks/link-compiled.d.ts +13 -0
- package/dist/types-ts4.5/react/marks/link-emotion.d.ts +14 -0
- package/dist/types-ts4.5/react/marks/link.d.ts +5 -2
- package/dist/types-ts4.5/react/nodes/index.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/layoutColumn-compiled.d.ts +14 -0
- package/dist/types-ts4.5/react/nodes/layoutColumn-emotion.d.ts +14 -0
- package/dist/types-ts4.5/react/nodes/layoutColumn.d.ts +3 -5
- package/dist/types-ts4.5/react/nodes/panel-compiled.d.ts +22 -0
- package/dist/types-ts4.5/react/nodes/panel-emotion.d.ts +23 -0
- package/dist/types-ts4.5/react/nodes/panel.d.ts +1 -6
- package/dist/types-ts4.5/ui/annotations/draft/dom.d.ts +1 -1
- package/dist/types-ts4.5/ui/annotations/hooks/use-events.d.ts +1 -1
- package/package.json +13 -10
- package/renderer.docs.tsx +47 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Emotion branch of the `platform_editor_static_css` experiment.
|
|
8
|
+
* Used via `componentWithCondition` in `panel.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 -- intentional: emotion fallback for compiled migration
|
|
15
|
+
import { css, jsx } from '@emotion/react';
|
|
16
|
+
import { PanelType } from '@atlaskit/adf-schema';
|
|
17
|
+
import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
18
|
+
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
19
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
20
|
+
// New custom icons are a little smaller than predefined icons.
|
|
21
|
+
// To fix alignment issues with custom icons, vertical alignment is updated.
|
|
22
|
+
const panelEmojiSpriteVerticalAlignment = -(8 * 3 - akEditorCustomIconSize) / 2;
|
|
23
|
+
const panelEmojiImageVerticalAlignment = panelEmojiSpriteVerticalAlignment - 1;
|
|
24
|
+
const blockNodesVerticalMargin = '0.75rem';
|
|
25
|
+
const akEditorTableCellMinWidth = 48;
|
|
26
|
+
const panelBaseStyles = css({
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
28
|
+
'&.ak-editor-panel': {
|
|
29
|
+
borderRadius: "var(--ds-radius-small, 3px)",
|
|
30
|
+
margin: `${blockNodesVerticalMargin} 0 0`,
|
|
31
|
+
paddingTop: "var(--ds-space-100, 8px)",
|
|
32
|
+
paddingRight: "var(--ds-space-200, 16px)",
|
|
33
|
+
paddingBottom: "var(--ds-space-100, 8px)",
|
|
34
|
+
paddingLeft: "var(--ds-space-100, 8px)",
|
|
35
|
+
minWidth: `${akEditorTableCellMinWidth}px`,
|
|
36
|
+
display: 'flex',
|
|
37
|
+
position: 'relative',
|
|
38
|
+
alignItems: 'normal',
|
|
39
|
+
wordBreak: 'break-word',
|
|
40
|
+
backgroundColor: "var(--ds-background-accent-blue-subtlest, #E9F2FE)",
|
|
41
|
+
color: 'inherit',
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
43
|
+
'.ak-editor-panel__icon': {
|
|
44
|
+
flexShrink: 0,
|
|
45
|
+
height: "var(--ds-space-300, 24px)",
|
|
46
|
+
width: "var(--ds-space-300, 24px)",
|
|
47
|
+
boxSizing: 'content-box',
|
|
48
|
+
paddingRight: "var(--ds-space-100, 8px)",
|
|
49
|
+
textAlign: 'center',
|
|
50
|
+
userSelect: 'none',
|
|
51
|
+
MozUserSelect: 'none',
|
|
52
|
+
WebkitUserSelect: 'none',
|
|
53
|
+
MsUserSelect: 'none',
|
|
54
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
55
|
+
marginTop: '0.1em',
|
|
56
|
+
color: "var(--ds-icon-information, #357DE8)",
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
58
|
+
'> span': {
|
|
59
|
+
verticalAlign: 'middle',
|
|
60
|
+
display: 'inline-flex'
|
|
61
|
+
},
|
|
62
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
63
|
+
'.emoji-common-emoji-sprite': {
|
|
64
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
65
|
+
verticalAlign: `${panelEmojiSpriteVerticalAlignment}px`
|
|
66
|
+
},
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
68
|
+
'.emoji-common-emoji-image': {
|
|
69
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
70
|
+
verticalAlign: `${panelEmojiImageVerticalAlignment}px`,
|
|
71
|
+
// Vertical align only works for inline-block elements in Firefox
|
|
72
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
73
|
+
'@-moz-document url-prefix()': {
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
75
|
+
img: {
|
|
76
|
+
display: 'inline-block'
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
82
|
+
'.ak-editor-panel__content': {
|
|
83
|
+
margin: `${"var(--ds-space-025, 2px)"} 0 ${"var(--ds-space-025, 2px)"}`,
|
|
84
|
+
flex: '1 0 0',
|
|
85
|
+
minWidth: 0
|
|
86
|
+
},
|
|
87
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
88
|
+
'&[data-panel-type="note"]': {
|
|
89
|
+
backgroundColor: "var(--ds-background-accent-purple-subtlest, #F8EEFE)",
|
|
90
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
91
|
+
'.ak-editor-panel__icon': {
|
|
92
|
+
color: "var(--ds-icon-discovery, #AF59E1)"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
96
|
+
'&[data-panel-type="tip"]': {
|
|
97
|
+
backgroundColor: "var(--ds-background-accent-green-subtlest, #DCFFF1)",
|
|
98
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
99
|
+
'.ak-editor-panel__icon': {
|
|
100
|
+
color: "var(--ds-icon-success, #6A9A23)"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
104
|
+
'&[data-panel-type="warning"]': {
|
|
105
|
+
backgroundColor: "var(--ds-background-accent-yellow-subtlest, #FEF7C8)",
|
|
106
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
107
|
+
'.ak-editor-panel__icon': {
|
|
108
|
+
color: "var(--ds-icon-warning, #E06C00)"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
112
|
+
'&[data-panel-type="error"]': {
|
|
113
|
+
backgroundColor: "var(--ds-background-accent-red-subtlest, #FFECEB)",
|
|
114
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
115
|
+
'.ak-editor-panel__icon': {
|
|
116
|
+
color: "var(--ds-icon-danger, #C9372C)"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
120
|
+
'&[data-panel-type="success"]': {
|
|
121
|
+
backgroundColor: "var(--ds-background-accent-green-subtlest, #DCFFF1)",
|
|
122
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
123
|
+
'.ak-editor-panel__icon': {
|
|
124
|
+
color: "var(--ds-icon-success, #6A9A23)"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
const panelHasNoIconStyles = css({
|
|
130
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
131
|
+
'&.ak-editor-panel': {
|
|
132
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
133
|
+
'&[data-panel-type="custom"]': {
|
|
134
|
+
paddingLeft: "var(--ds-space-150, 12px)",
|
|
135
|
+
paddingRight: "var(--ds-space-150, 12px)"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
const panelNestedIconStyles = css({
|
|
140
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
141
|
+
'&.ak-editor-panel__no-icon': {
|
|
142
|
+
paddingLeft: "var(--ds-space-150, 12px)",
|
|
143
|
+
paddingRight: "var(--ds-space-150, 12px)"
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
const nestedPanelStyles = css({
|
|
147
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
148
|
+
'.ak-editor-panel__content .ak-editor-panel': {
|
|
149
|
+
border: `${"var(--ds-border-width, 1px)"} solid ${"var(--ds-border, #0B120E24)"}`
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
const panelCustomBackground = css({
|
|
153
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
154
|
+
'&.ak-editor-panel': {
|
|
155
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
156
|
+
'&[data-panel-type="custom"]': {
|
|
157
|
+
backgroundColor: 'var(--ak-renderer-panel-custom-bg-color)'
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
export const PanelStyledEmotion = ({
|
|
162
|
+
backgroundColor,
|
|
163
|
+
hasIcon,
|
|
164
|
+
...props
|
|
165
|
+
}) => {
|
|
166
|
+
const customBackgroundColor = backgroundColor ? hexToEditorBackgroundPaletteColor(backgroundColor) || backgroundColor : undefined;
|
|
167
|
+
return jsx("div", _extends({
|
|
168
|
+
style:
|
|
169
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
170
|
+
{
|
|
171
|
+
'--ak-renderer-panel-custom-bg-color': customBackgroundColor
|
|
172
|
+
},
|
|
173
|
+
css: [panelBaseStyles, !hasIcon && panelHasNoIconStyles, props['data-panel-type'] === PanelType.CUSTOM && backgroundColor && panelCustomBackground, fg('platform_editor_nested_dnd_styles_changes') && panelNestedIconStyles, nestedPanelStyles]
|
|
174
|
+
// Ignored via go/ees005
|
|
175
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
176
|
+
}, props), props.children);
|
|
177
|
+
};
|
|
178
|
+
PanelStyledEmotion.displayName = 'PanelStyledEmotion';
|
|
@@ -1,183 +1,14 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/**
|
|
3
|
-
* @jsxRuntime classic
|
|
4
|
-
* @jsx jsx
|
|
5
|
-
*/
|
|
6
1
|
import React from 'react';
|
|
7
|
-
/* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
|
|
8
|
-
import { jsx, css } from '@emotion/react';
|
|
9
|
-
import TipIcon from '@atlaskit/icon/core/lightbulb';
|
|
10
2
|
import { PanelType } from '@atlaskit/adf-schema';
|
|
3
|
+
import { PanelInfoIcon, PanelSuccessIcon, PanelNoteIcon, PanelWarningIcon, PanelErrorIcon } from '@atlaskit/editor-common/icons';
|
|
11
4
|
import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
|
|
12
|
-
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
13
5
|
import EmojiIcon from '@atlaskit/icon/core/emoji';
|
|
6
|
+
import TipIcon from '@atlaskit/icon/core/lightbulb';
|
|
7
|
+
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
8
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
9
|
import EmojiItem from './emoji';
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
|
-
// New custom icons are a little smaller than predefined icons.
|
|
19
|
-
// To fix alignment issues with custom icons, vertical alignment is updated.
|
|
20
|
-
const panelEmojiSpriteVerticalAlignment = -(8 * 3 - akEditorCustomIconSize) / 2;
|
|
21
|
-
const panelEmojiImageVerticalAlignment = panelEmojiSpriteVerticalAlignment - 1;
|
|
22
|
-
const blockNodesVerticalMargin = '0.75rem';
|
|
23
|
-
const akEditorTableCellMinWidth = 48;
|
|
24
|
-
const panelBaseStyles = css({
|
|
25
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
26
|
-
'&.ak-editor-panel': {
|
|
27
|
-
borderRadius: "var(--ds-radius-small, 3px)",
|
|
28
|
-
margin: `${blockNodesVerticalMargin} 0 0`,
|
|
29
|
-
paddingTop: "var(--ds-space-100, 8px)",
|
|
30
|
-
paddingRight: "var(--ds-space-200, 16px)",
|
|
31
|
-
paddingBottom: "var(--ds-space-100, 8px)",
|
|
32
|
-
paddingLeft: "var(--ds-space-100, 8px)",
|
|
33
|
-
minWidth: `${akEditorTableCellMinWidth}px`,
|
|
34
|
-
display: 'flex',
|
|
35
|
-
position: 'relative',
|
|
36
|
-
alignItems: 'normal',
|
|
37
|
-
wordBreak: 'break-word',
|
|
38
|
-
backgroundColor: "var(--ds-background-accent-blue-subtlest, #E9F2FE)",
|
|
39
|
-
color: 'inherit',
|
|
40
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
41
|
-
'.ak-editor-panel__icon': {
|
|
42
|
-
flexShrink: 0,
|
|
43
|
-
height: "var(--ds-space-300, 24px)",
|
|
44
|
-
width: "var(--ds-space-300, 24px)",
|
|
45
|
-
boxSizing: 'content-box',
|
|
46
|
-
paddingRight: "var(--ds-space-100, 8px)",
|
|
47
|
-
textAlign: 'center',
|
|
48
|
-
userSelect: 'none',
|
|
49
|
-
MozUserSelect: 'none',
|
|
50
|
-
WebkitUserSelect: 'none',
|
|
51
|
-
MsUserSelect: 'none',
|
|
52
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
53
|
-
marginTop: '0.1em',
|
|
54
|
-
color: "var(--ds-icon-information, #357DE8)",
|
|
55
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
56
|
-
'> span': {
|
|
57
|
-
verticalAlign: 'middle',
|
|
58
|
-
display: 'inline-flex'
|
|
59
|
-
},
|
|
60
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
61
|
-
'.emoji-common-emoji-sprite': {
|
|
62
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
63
|
-
verticalAlign: `${panelEmojiSpriteVerticalAlignment}px`
|
|
64
|
-
},
|
|
65
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
66
|
-
'.emoji-common-emoji-image': {
|
|
67
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
68
|
-
verticalAlign: `${panelEmojiImageVerticalAlignment}px`,
|
|
69
|
-
// Vertical align only works for inline-block elements in Firefox
|
|
70
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
71
|
-
'@-moz-document url-prefix()': {
|
|
72
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
73
|
-
img: {
|
|
74
|
-
display: 'inline-block'
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
80
|
-
'.ak-editor-panel__content': {
|
|
81
|
-
margin: `${"var(--ds-space-025, 2px)"} 0 ${"var(--ds-space-025, 2px)"}`,
|
|
82
|
-
flex: '1 0 0',
|
|
83
|
-
/*
|
|
84
|
-
https://ishadeed.com/article/min-max-css/#setting-min-width-to-zero-with-flexbox
|
|
85
|
-
The default value for min-width is auto, which is computed to zero. When an element is a flex item, the value of min-width doesn’t compute to zero. The minimum size of a flex item is equal to the size of its contents.
|
|
86
|
-
*/
|
|
87
|
-
minWidth: 0
|
|
88
|
-
},
|
|
89
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
90
|
-
'&[data-panel-type="note"]': {
|
|
91
|
-
backgroundColor: "var(--ds-background-accent-purple-subtlest, #F8EEFE)",
|
|
92
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
93
|
-
'.ak-editor-panel__icon': {
|
|
94
|
-
color: "var(--ds-icon-discovery, #AF59E1)"
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
98
|
-
'&[data-panel-type="tip"]': {
|
|
99
|
-
backgroundColor: "var(--ds-background-accent-green-subtlest, #DCFFF1)",
|
|
100
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
101
|
-
'.ak-editor-panel__icon': {
|
|
102
|
-
color: "var(--ds-icon-success, #6A9A23)"
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
106
|
-
'&[data-panel-type="warning"]': {
|
|
107
|
-
backgroundColor: "var(--ds-background-accent-yellow-subtlest, #FEF7C8)",
|
|
108
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
109
|
-
'.ak-editor-panel__icon': {
|
|
110
|
-
color: "var(--ds-icon-warning, #E06C00)"
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
114
|
-
'&[data-panel-type="error"]': {
|
|
115
|
-
backgroundColor: "var(--ds-background-accent-red-subtlest, #FFECEB)",
|
|
116
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
117
|
-
'.ak-editor-panel__icon': {
|
|
118
|
-
color: "var(--ds-icon-danger, #C9372C)"
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
122
|
-
'&[data-panel-type="success"]': {
|
|
123
|
-
backgroundColor: "var(--ds-background-accent-green-subtlest, #DCFFF1)",
|
|
124
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
125
|
-
'.ak-editor-panel__icon': {
|
|
126
|
-
color: "var(--ds-icon-success, #6A9A23)"
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
const panelHasNoIconStyles = css({
|
|
132
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
133
|
-
'&.ak-editor-panel': {
|
|
134
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
135
|
-
'&[data-panel-type="custom"]': {
|
|
136
|
-
paddingLeft: "var(--ds-space-150, 12px)",
|
|
137
|
-
paddingRight: "var(--ds-space-150, 12px)"
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
const panelNestedIconStyles = css({
|
|
142
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
143
|
-
'&.ak-editor-panel__no-icon': {
|
|
144
|
-
paddingLeft: "var(--ds-space-150, 12px)",
|
|
145
|
-
paddingRight: "var(--ds-space-150, 12px)"
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
const nestedPanelStyles = css({
|
|
149
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
150
|
-
'.ak-editor-panel__content .ak-editor-panel': {
|
|
151
|
-
border: `${"var(--ds-border-width, 1px)"} solid ${"var(--ds-border, #0B120E24)"}`
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
const panelCustomBackground = css({
|
|
155
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
156
|
-
'&.ak-editor-panel': {
|
|
157
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
158
|
-
'&[data-panel-type="custom"]': {
|
|
159
|
-
backgroundColor: 'var(--ak-renderer-panel-custom-bg-color)'
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
const PanelStyled = ({
|
|
164
|
-
backgroundColor,
|
|
165
|
-
hasIcon,
|
|
166
|
-
...props
|
|
167
|
-
}) => {
|
|
168
|
-
const customBackgroundColor = backgroundColor ? hexToEditorBackgroundPaletteColor(backgroundColor) || backgroundColor : undefined;
|
|
169
|
-
return jsx("div", _extends({
|
|
170
|
-
style:
|
|
171
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
172
|
-
{
|
|
173
|
-
'--ak-renderer-panel-custom-bg-color': customBackgroundColor
|
|
174
|
-
},
|
|
175
|
-
css: [panelBaseStyles, !hasIcon && panelHasNoIconStyles, props['data-panel-type'] === PanelType.CUSTOM && backgroundColor && panelCustomBackground, fg('platform_editor_nested_dnd_styles_changes') && panelNestedIconStyles, nestedPanelStyles]
|
|
176
|
-
// Ignored via go/ees005
|
|
177
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
178
|
-
}, props), props.children);
|
|
179
|
-
};
|
|
180
|
-
PanelStyled.displayName = 'PanelStyled';
|
|
10
|
+
import { PanelStyledCompiled } from './panel-compiled';
|
|
11
|
+
import { PanelStyledEmotion } from './panel-emotion';
|
|
181
12
|
const panelIcons = {
|
|
182
13
|
info: PanelInfoIcon,
|
|
183
14
|
success: PanelSuccessIcon,
|
|
@@ -187,6 +18,7 @@ const panelIcons = {
|
|
|
187
18
|
error: PanelErrorIcon,
|
|
188
19
|
custom: EmojiIcon
|
|
189
20
|
};
|
|
21
|
+
const PanelStyledMigration = componentWithCondition(() => expValEquals('platform_editor_renderer_static_css', 'isEnabled', true), PanelStyledCompiled, PanelStyledEmotion);
|
|
190
22
|
const Panel = props => {
|
|
191
23
|
const {
|
|
192
24
|
allowCustomPanels,
|
|
@@ -205,7 +37,7 @@ const Panel = props => {
|
|
|
205
37
|
const getIcon = () => {
|
|
206
38
|
if (panelType === PanelType.CUSTOM) {
|
|
207
39
|
if (panelIcon && providers) {
|
|
208
|
-
return
|
|
40
|
+
return /*#__PURE__*/React.createElement(EmojiItem, {
|
|
209
41
|
id: panelIconId,
|
|
210
42
|
text: panelIconText,
|
|
211
43
|
shortName: panelIcon,
|
|
@@ -215,7 +47,7 @@ const Panel = props => {
|
|
|
215
47
|
return null;
|
|
216
48
|
}
|
|
217
49
|
const Icon = panelIcons[panelType];
|
|
218
|
-
return
|
|
50
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
219
51
|
label: `${panelType} panel`
|
|
220
52
|
});
|
|
221
53
|
};
|
|
@@ -223,12 +55,12 @@ const Panel = props => {
|
|
|
223
55
|
const renderIcon = () => {
|
|
224
56
|
if (icon) {
|
|
225
57
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
226
|
-
return
|
|
58
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
227
59
|
className: PanelSharedCssClassName.icon
|
|
228
60
|
}, icon);
|
|
229
61
|
}
|
|
230
62
|
};
|
|
231
|
-
return
|
|
63
|
+
return /*#__PURE__*/React.createElement(PanelStyledMigration
|
|
232
64
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
233
65
|
, {
|
|
234
66
|
className: PanelSharedCssClassName.prefix,
|
|
@@ -240,7 +72,7 @@ const Panel = props => {
|
|
|
240
72
|
"data-panel-icon-text": panelIconText,
|
|
241
73
|
backgroundColor: panelColor,
|
|
242
74
|
hasIcon: Boolean(icon)
|
|
243
|
-
}, renderIcon(),
|
|
75
|
+
}, renderIcon(), /*#__PURE__*/React.createElement("div", {
|
|
244
76
|
className: PanelSharedCssClassName.content
|
|
245
77
|
}, children));
|
|
246
78
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
|
|
2
|
+
._syaz13af{color:var(--ds-link,#1868db)}._1bnx8stv:hover{text-decoration-line:underline}
|
|
3
|
+
._30l313af:hover{color:var(--ds-link,#1868db)}
|
|
4
|
+
._9oik1r31:hover{text-decoration-color:currentColor}
|
|
5
|
+
._jf4cnqa1:hover{text-decoration-style:solid}
|
|
6
|
+
._9h8h12zz:active{color:var(--ds-link-pressed,#1558bc)}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* link-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import "./link-compiled.compiled.css";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
+
/**
|
|
7
|
+
* Compiled branch of the `platform_editor_static_css` experiment.
|
|
8
|
+
* Used via `componentWithCondition` in `link.tsx`.
|
|
9
|
+
*
|
|
10
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import LinkUrl from '@atlaskit/smart-card/link-url';
|
|
14
|
+
var anchorStyles = null;
|
|
15
|
+
export var LinkUrlCompiled = function LinkUrlCompiled(props) {
|
|
16
|
+
return /*#__PURE__*/React.createElement(LinkUrl, _extends({}, props, {
|
|
17
|
+
className: ax(["_syaz13af _9oik1r31 _1bnx8stv _jf4cnqa1 _30l313af _9h8h12zz"])
|
|
18
|
+
}));
|
|
19
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Emotion branch of the `platform_editor_static_css` experiment.
|
|
8
|
+
* Used via `componentWithCondition` in `link.tsx`.
|
|
9
|
+
*
|
|
10
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- intentional: emotion fallback for compiled migration
|
|
14
|
+
import { css, jsx } from '@emotion/react';
|
|
15
|
+
import LinkUrl from '@atlaskit/smart-card/link-url';
|
|
16
|
+
var anchorStyles = css({
|
|
17
|
+
color: "var(--ds-link, #1868DB)",
|
|
18
|
+
'&:hover': {
|
|
19
|
+
color: "var(--ds-link, #1868DB)",
|
|
20
|
+
textDecoration: 'underline'
|
|
21
|
+
},
|
|
22
|
+
'&:active': {
|
|
23
|
+
color: "var(--ds-link-pressed, #1558BC)"
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export var LinkUrlEmotion = function LinkUrlEmotion(props) {
|
|
27
|
+
return (
|
|
28
|
+
// Ignored via go/ees005
|
|
29
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
30
|
+
jsx(LinkUrl, _extends({
|
|
31
|
+
css: anchorStyles
|
|
32
|
+
}, props))
|
|
33
|
+
);
|
|
34
|
+
};
|
|
@@ -1,26 +1,19 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/**
|
|
3
|
-
* @jsxRuntime classic
|
|
4
|
-
* @jsx jsx
|
|
5
|
-
*/
|
|
6
2
|
import React, { Fragment } from 'react';
|
|
7
|
-
|
|
8
|
-
import { jsx, css } from '@emotion/react';
|
|
3
|
+
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
9
4
|
import { getEventHandler } from '../../utils';
|
|
10
5
|
import { PLATFORM, MODE } from '../../analytics/events';
|
|
11
6
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
12
|
-
import
|
|
7
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
8
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
});
|
|
9
|
+
import { LinkUrlCompiled } from './link-compiled';
|
|
10
|
+
import { LinkUrlEmotion } from './link-emotion';
|
|
11
|
+
var LinkUrlMigration = componentWithCondition(function () {
|
|
12
|
+
return expValEquals('platform_editor_renderer_static_css', 'isEnabled', true);
|
|
13
|
+
}, LinkUrlCompiled, LinkUrlEmotion);
|
|
14
|
+
/**
|
|
15
|
+
* Render an ADF link mark in renderer.
|
|
16
|
+
*/
|
|
24
17
|
export default function Link(props) {
|
|
25
18
|
var href = props.href,
|
|
26
19
|
target = props.target,
|
|
@@ -49,7 +42,7 @@ export default function Link(props) {
|
|
|
49
42
|
}
|
|
50
43
|
var handler = getEventHandler(eventHandlers, 'link');
|
|
51
44
|
if (isMediaLink) {
|
|
52
|
-
return
|
|
45
|
+
return /*#__PURE__*/React.createElement(Fragment, null, props.children);
|
|
53
46
|
}
|
|
54
47
|
var analyticsData = {
|
|
55
48
|
attributes: {
|
|
@@ -58,12 +51,11 @@ export default function Link(props) {
|
|
|
58
51
|
// Below is added for the future implementation of Linking Platform namespaced analytic context
|
|
59
52
|
location: 'renderer'
|
|
60
53
|
};
|
|
61
|
-
return
|
|
54
|
+
return /*#__PURE__*/React.createElement(AnalyticsContext, {
|
|
62
55
|
data: analyticsData
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
,
|
|
56
|
+
}, /*#__PURE__*/React.createElement(LinkUrlMigration
|
|
57
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
58
|
+
, _extends({
|
|
67
59
|
onClick: function onClick(e) {
|
|
68
60
|
if (fireAnalyticsEvent) {
|
|
69
61
|
fireAnalyticsEvent({
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
._12kpidpf [class*=image-wrap-]:has(+[class*=image-wrap-]){margin-top:0}
|
|
2
|
+
._166hgrf3+.fabric-editor-block-mark>h4{margin-top:0!important}
|
|
3
|
+
._19segrf3+.fabric-editor-block-mark>h1{margin-top:0!important}
|
|
4
|
+
._1ki1grf3+.fabric-editor-block-mark>h2{margin-top:0!important}
|
|
5
|
+
._1skbgrf3+*{margin-top:0!important}
|
|
6
|
+
._1tihidpf [class*=image-wrap-]+[class*=image-wrap-]{margin-top:0}
|
|
7
|
+
._7g1ogrf3+.fabric-editor-block-mark>h5{margin-top:0!important}
|
|
8
|
+
._bmdegrf3+.fabric-editor-block-mark>h3{margin-top:0!important}
|
|
9
|
+
._hgeogrf3+.fabric-editor-block-mark>p{margin-top:0!important}
|
|
10
|
+
._sk2jgrf3+.fabric-editor-block-mark>h6{margin-top:0!important}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* layoutColumn-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
|
+
/**
|
|
3
|
+
* Compiled branch of the `platform_editor_static_css` experiment.
|
|
4
|
+
* Used via `componentWithCondition` in `layoutColumn.tsx`.
|
|
5
|
+
*
|
|
6
|
+
* Cleanup: delete this file once the experiment has shipped.
|
|
7
|
+
*/
|
|
8
|
+
import "./layoutColumn-compiled.compiled.css";
|
|
9
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { WidthProvider } from '@atlaskit/editor-common/ui';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
|
+
|
|
14
|
+
// localized styles, was from clearNextSiblingMarginTopStyle in @atlaskit/editor-common/ui
|
|
15
|
+
var clearNextSiblingMarginTopStyle = null;
|
|
16
|
+
var multipleWrappedImagesStyle = null;
|
|
17
|
+
|
|
18
|
+
// localized styles, was from clearNextSiblingBlockMarkMarginTopStyle in @atlaskit/editor-common/ui
|
|
19
|
+
var clearNextSiblingBlockMarkMarginTopStyle = null;
|
|
20
|
+
export var LayoutSectionCompiled = function LayoutSectionCompiled(props) {
|
|
21
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
22
|
+
"data-layout-column": true,
|
|
23
|
+
"data-column-width": props.width,
|
|
24
|
+
style: {
|
|
25
|
+
flexBasis: "".concat(props.width, "%")
|
|
26
|
+
},
|
|
27
|
+
className: ax([fg('platform_editor_fix_media_in_renderer') && "_1tihidpf _12kpidpf"])
|
|
28
|
+
}, /*#__PURE__*/React.createElement(WidthProvider, null, /*#__PURE__*/React.createElement("div", {
|
|
29
|
+
className: ax(["_1skbgrf3", "_19segrf3 _1ki1grf3 _bmdegrf3 _166hgrf3 _7g1ogrf3 _sk2jgrf3 _hgeogrf3"])
|
|
30
|
+
}), props.children));
|
|
31
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Emotion branch of the `platform_editor_static_css` experiment.
|
|
8
|
+
* Used via `componentWithCondition` in `layoutColumn.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 -- intentional: emotion fallback for compiled migration
|
|
15
|
+
import { jsx, css } from '@emotion/react';
|
|
16
|
+
import { WidthProvider } from '@atlaskit/editor-common/ui';
|
|
17
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
|
+
|
|
19
|
+
// localized styles, was from clearNextSiblingMarginTopStyle in @atlaskit/editor-common/ui
|
|
20
|
+
var clearNextSiblingMarginTopStyle = css({
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
22
|
+
'& + *': {
|
|
23
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
24
|
+
marginTop: '0 !important'
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
var multipleWrappedImagesStyle = css({
|
|
28
|
+
// Given the first wrapped mediaSingle has 0 marginTop (see clearNextSiblingMarginTopStyle),
|
|
29
|
+
// update all wrapped mediaSingle inside layout to have 0 margin top unless they don't have sibling wrapped mediaSingle
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
31
|
+
'& [class*="image-wrap-"] + [class*="image-wrap-"], & [class*="image-wrap-"]:has( + [class*="image-wrap-"])': {
|
|
32
|
+
marginTop: '0'
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
// localized styles, was from clearNextSiblingBlockMarkMarginTopStyle in @atlaskit/editor-common/ui
|
|
37
|
+
var clearNextSiblingBlockMarkMarginTopStyle = css(_defineProperty({}, "+ .fabric-editor-block-mark > p,\n\t + .fabric-editor-block-mark > h1,\n\t + .fabric-editor-block-mark > h2,\n\t + .fabric-editor-block-mark > h3,\n\t + .fabric-editor-block-mark > h4,\n\t + .fabric-editor-block-mark > h5,\n\t + .fabric-editor-block-mark > h6\n\t", {
|
|
38
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
39
|
+
marginTop: '0 !important'
|
|
40
|
+
}));
|
|
41
|
+
export var LayoutSectionEmotion = function LayoutSectionEmotion(props) {
|
|
42
|
+
return jsx("div", {
|
|
43
|
+
"data-layout-column": true,
|
|
44
|
+
"data-column-width": props.width,
|
|
45
|
+
style: {
|
|
46
|
+
flexBasis: "".concat(props.width, "%")
|
|
47
|
+
},
|
|
48
|
+
css: fg('platform_editor_fix_media_in_renderer') && multipleWrappedImagesStyle
|
|
49
|
+
}, jsx(WidthProvider, null, jsx("div", {
|
|
50
|
+
css: [clearNextSiblingMarginTopStyle, clearNextSiblingBlockMarkMarginTopStyle]
|
|
51
|
+
}), props.children));
|
|
52
|
+
};
|