@m4l/components 9.24.0-beta-feature-731-m4l-components-code-editor.8 → 9.24.1-beta-feature-731-code-editor.0
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/components/AppBar/AppBar.d.ts.map +1 -1
- package/components/AppBar/AppBar.js +36 -29
- package/components/AppBar/types.d.ts +2 -2
- package/components/AppBar/types.d.ts.map +1 -1
- package/components/GridLayout/subcomponents/GridItem/index.d.ts.map +1 -1
- package/components/GridLayout/subcomponents/GridItem/index.js +21 -20
- package/components/MFIsolationApp/MFIsolationApp.d.ts.map +1 -1
- package/components/MFIsolationApp/MFIsolationApp.js +91 -88
- package/components/MFIsolationApp/subcomponents/MFAuthApp/MFAuthApp.d.ts.map +1 -1
- package/components/MFIsolationApp/subcomponents/MFAuthApp/MFAuthApp.js +35 -24
- package/components/MFIsolationApp/subcomponents/ThemeSettingsHostToolsBridge/ThemeSettingsHostToolsBridge.d.ts +5 -0
- package/components/MFIsolationApp/subcomponents/ThemeSettingsHostToolsBridge/ThemeSettingsHostToolsBridge.d.ts.map +1 -0
- package/components/MFIsolationApp/subcomponents/ThemeSettingsHostToolsBridge/ThemeSettingsHostToolsBridge.js +14 -0
- package/components/MFIsolationApp/subcomponents/ThemeSettingsHostToolsBridge/index.d.ts +2 -0
- package/components/MFIsolationApp/subcomponents/ThemeSettingsHostToolsBridge/index.d.ts.map +1 -0
- package/components/MFLoader/MFLoader.d.ts.map +1 -1
- package/components/MFLoader/MFLoader.js +39 -39
- package/components/MFLoader/types.d.ts +16 -0
- package/components/MFLoader/types.d.ts.map +1 -1
- package/components/SideBar/context/sideBarContext/index.d.ts.map +1 -1
- package/components/SideBar/context/sideBarContext/index.js +15 -14
- package/components/SideBar/hooks/useCollapse/useCollapse.d.ts +2 -1
- package/components/SideBar/hooks/useCollapse/useCollapse.d.ts.map +1 -1
- package/components/SideBar/hooks/useCollapse/useCollapse.js +9 -9
- package/components/SideBar/index.d.ts +1 -1
- package/components/SideBar/index.d.ts.map +1 -1
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/index.js +1 -1
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItemMain/NodeMenuItemMain.js +1 -1
- package/components/SideBar/types.d.ts +8 -1
- package/components/SideBar/types.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.d.ts.map +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/AreaGridLayout/AreaGridLayout.js +66 -52
- package/components/areas/contexts/AreasContext/store.d.ts.map +1 -1
- package/components/areas/contexts/AreasContext/store.js +142 -141
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.d.ts.map +1 -1
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.js +372 -230
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.d.ts.map +1 -1
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.js +175 -116
- package/components/extended/ReactSimpleCodeEditor/constants.d.ts +2 -1
- package/components/extended/ReactSimpleCodeEditor/constants.d.ts.map +1 -1
- package/components/extended/ReactSimpleCodeEditor/constants.js +18 -17
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts +1 -0
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.d.ts.map +1 -1
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.js +1 -1
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts +4 -0
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts.map +1 -1
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.js +33 -27
- package/components/extended/ReactSimpleCodeEditor/types.d.ts +13 -0
- package/components/extended/ReactSimpleCodeEditor/types.d.ts.map +1 -1
- package/package.json +9 -9
- package/components/MFIsolationApp/subcomponents/MFIsolationThemeBridge/MFIsolationThemeBridge.d.ts +0 -10
- package/components/MFIsolationApp/subcomponents/MFIsolationThemeBridge/MFIsolationThemeBridge.d.ts.map +0 -1
- package/components/MFIsolationApp/subcomponents/MFIsolationThemeBridge/MFIsolationThemeBridge.js +0 -19
- package/components/MFIsolationApp/subcomponents/MFIsolationThemeBridge/index.d.ts +0 -2
- package/components/MFIsolationApp/subcomponents/MFIsolationThemeBridge/index.d.ts.map +0 -1
|
@@ -1,54 +1,56 @@
|
|
|
1
|
-
import { getTypographyStyles as
|
|
2
|
-
import { getCodeEditorVSCodeModernPalette as
|
|
1
|
+
import { getTypographyStyles as s } from "../../../utils/getTypographyStyles.js";
|
|
2
|
+
import { getCodeEditorVSCodeModernPalette as d, CODE_EDITOR_LINE_HEIGHT_BY_SIZE as n, CODE_EDITOR_MONO_FONT_FAMILY as l, CODE_EDITOR_PADDING_PX as a, CODE_EDITOR_RESIZE_HANDLE_SIZE_PX as t } from "./constants.js";
|
|
3
3
|
import { getSizeStyles as p } from "../../../utils/getSizeStyles/getSizeStyles.js";
|
|
4
|
-
const
|
|
4
|
+
const f = {
|
|
5
5
|
/** Resolve the interactive shell colors and focus treatment for the editor root. */
|
|
6
|
-
root: ({ theme:
|
|
7
|
-
const o = !
|
|
6
|
+
root: ({ theme: r, ownerState: e }) => {
|
|
7
|
+
const o = !e?.disabled && !e?.readOnly, i = e?.disabled ? r.vars.palette.border.disabled : r.vars.palette.border.secondary;
|
|
8
8
|
return {
|
|
9
|
+
boxSizing: "border-box",
|
|
9
10
|
width: "100%",
|
|
10
11
|
display: "flex",
|
|
11
12
|
flexDirection: "column",
|
|
13
|
+
height: e?.resizable ? `calc(100% - ${t}px)` : "100%",
|
|
12
14
|
minHeight: 0,
|
|
13
15
|
gap: 0,
|
|
14
|
-
border:
|
|
15
|
-
borderColor:
|
|
16
|
-
borderRadius:
|
|
17
|
-
...
|
|
18
|
-
borderColor:
|
|
16
|
+
border: r.vars.size.borderStroke.container,
|
|
17
|
+
borderColor: e?.variant === "outlined" || e?.error ? i : "transparent",
|
|
18
|
+
borderRadius: r.vars.size.borderRadius["r1-5"],
|
|
19
|
+
...e?.error && {
|
|
20
|
+
borderColor: r.vars.palette.error.focus
|
|
19
21
|
},
|
|
20
|
-
...
|
|
21
|
-
backgroundColor:
|
|
22
|
+
...e?.variant === "contained" && {
|
|
23
|
+
backgroundColor: r.vars.palette.default.enabledOpacity
|
|
22
24
|
},
|
|
23
|
-
...
|
|
24
|
-
backgroundColor:
|
|
25
|
+
...e?.variant === "outlined" && {
|
|
26
|
+
backgroundColor: r.vars.palette.background.default
|
|
25
27
|
},
|
|
26
|
-
...
|
|
27
|
-
backgroundColor: `${
|
|
28
|
+
...e?.readOnly && {
|
|
29
|
+
backgroundColor: `${r.vars.palette.default.enabledOpacity}!important`
|
|
28
30
|
},
|
|
29
31
|
overflow: "hidden",
|
|
30
|
-
opacity:
|
|
32
|
+
opacity: e?.disabled ? 0.72 : 1,
|
|
31
33
|
outline: "3px solid",
|
|
32
34
|
outlineColor: "transparent",
|
|
33
35
|
transition: "border-color 120ms ease, outline 120ms ease, opacity 120ms ease, background-color 120ms ease",
|
|
34
36
|
...o && {
|
|
35
37
|
"&:hover": {
|
|
36
|
-
backgroundColor:
|
|
37
|
-
...
|
|
38
|
-
borderColor:
|
|
38
|
+
backgroundColor: r.vars.palette.default.hoverOpacity,
|
|
39
|
+
...e?.error && {
|
|
40
|
+
borderColor: r.vars.palette.error.active
|
|
39
41
|
}
|
|
40
42
|
},
|
|
41
43
|
"&:focus-within": {
|
|
42
|
-
borderColor:
|
|
44
|
+
borderColor: r.vars.palette.primary.enabled,
|
|
43
45
|
outline: "3px solid",
|
|
44
|
-
outlineColor:
|
|
45
|
-
...
|
|
46
|
-
borderColor:
|
|
46
|
+
outlineColor: e?.error ? r.vars.palette.error.focusOpacity : r.vars.palette.primary.hoverOpacity,
|
|
47
|
+
...e?.error && {
|
|
48
|
+
borderColor: r.vars.palette.error.enabled
|
|
47
49
|
},
|
|
48
|
-
...
|
|
49
|
-
backgroundColor:
|
|
50
|
+
...e?.variant === "contained" && {
|
|
51
|
+
backgroundColor: r.vars.palette.background.default,
|
|
50
52
|
"&&& .M4LCodeEditor-header": {
|
|
51
|
-
backgroundColor:
|
|
53
|
+
backgroundColor: r.vars.palette.default.enabledOpacity
|
|
52
54
|
}
|
|
53
55
|
}
|
|
54
56
|
}
|
|
@@ -56,49 +58,49 @@ const b = {
|
|
|
56
58
|
};
|
|
57
59
|
},
|
|
58
60
|
/** Layout the language badge row above the editing surface. */
|
|
59
|
-
header: ({ theme:
|
|
60
|
-
const o =
|
|
61
|
-
|
|
61
|
+
header: ({ theme: r, ownerState: e }) => {
|
|
62
|
+
const o = d(
|
|
63
|
+
e?.colorMode
|
|
62
64
|
);
|
|
63
65
|
return {
|
|
64
66
|
display: "flex",
|
|
65
67
|
alignItems: "center",
|
|
66
68
|
justifyContent: "space-between",
|
|
67
|
-
padding:
|
|
68
|
-
gap:
|
|
69
|
-
borderBottom:
|
|
70
|
-
borderColor:
|
|
71
|
-
...
|
|
69
|
+
padding: r.vars.size.baseSpacings.sp2,
|
|
70
|
+
gap: r.vars.size.baseSpacings.sp2,
|
|
71
|
+
borderBottom: r.vars.size.borderStroke.container,
|
|
72
|
+
borderColor: r.vars.palette.border.secondary,
|
|
73
|
+
...e?.variant === "contained" && {
|
|
72
74
|
backgroundColor: "transparent"
|
|
73
75
|
},
|
|
74
|
-
...
|
|
75
|
-
backgroundColor:
|
|
76
|
+
...e?.variant === "outlined" && {
|
|
77
|
+
backgroundColor: r.vars.palette.background.default
|
|
76
78
|
},
|
|
77
|
-
...
|
|
78
|
-
backgroundColor: `${
|
|
79
|
+
...e?.readOnly && {
|
|
80
|
+
backgroundColor: `${r.vars.palette.background.default}!important`
|
|
79
81
|
},
|
|
80
82
|
color: o.surface.headerForeground,
|
|
81
|
-
borderTopLeftRadius:
|
|
82
|
-
borderTopRightRadius:
|
|
83
|
+
borderTopLeftRadius: r.vars.size.borderRadius.r2,
|
|
84
|
+
borderTopRightRadius: r.vars.size.borderRadius.r2,
|
|
83
85
|
overflow: "hidden",
|
|
84
86
|
minHeight: "33px"
|
|
85
87
|
};
|
|
86
88
|
},
|
|
87
89
|
/** Align any trailing badges rendered in the header row. */
|
|
88
|
-
headerBadges: ({ theme:
|
|
90
|
+
headerBadges: ({ theme: r }) => ({
|
|
89
91
|
display: "flex",
|
|
90
92
|
alignItems: "center",
|
|
91
93
|
justifyContent: "flex-end",
|
|
92
|
-
gap:
|
|
94
|
+
gap: r.vars.size.baseSpacings.sp1,
|
|
93
95
|
minWidth: 0,
|
|
94
96
|
// Keep badges right-aligned even when the language chip is absent and the
|
|
95
97
|
// badges container is the only child of the header row.
|
|
96
98
|
marginLeft: "auto"
|
|
97
99
|
}),
|
|
98
100
|
/** Keep the leading language chip aligned with the editor header layout. */
|
|
99
|
-
languageChip: ({ theme:
|
|
100
|
-
const o =
|
|
101
|
-
|
|
101
|
+
languageChip: ({ theme: r, ownerState: e }) => {
|
|
102
|
+
const o = d(
|
|
103
|
+
e?.colorMode
|
|
102
104
|
);
|
|
103
105
|
return {
|
|
104
106
|
flexShrink: 0,
|
|
@@ -108,16 +110,16 @@ const b = {
|
|
|
108
110
|
paddingTop: 0,
|
|
109
111
|
paddingBottom: 0,
|
|
110
112
|
backgroundColor: "transparent",
|
|
111
|
-
borderColor:
|
|
113
|
+
borderColor: r.vars.palette.chips.default.outlined.backgroundActive,
|
|
112
114
|
color: o.surface.languageChipForeground,
|
|
113
115
|
...p(
|
|
114
|
-
|
|
115
|
-
|
|
116
|
+
r,
|
|
117
|
+
e?.size || "medium",
|
|
116
118
|
"base",
|
|
117
|
-
(
|
|
119
|
+
(i) => ({ height: i })
|
|
118
120
|
),
|
|
119
121
|
"&&& .M4LTypography-root": {
|
|
120
|
-
...
|
|
122
|
+
...s(r.generalSettings.isMobile, e?.size || "medium", "microSlim"),
|
|
121
123
|
color: o.surface.languageChipForeground,
|
|
122
124
|
lineHeight: "normal",
|
|
123
125
|
textTransform: "uppercase"
|
|
@@ -139,63 +141,120 @@ const b = {
|
|
|
139
141
|
}
|
|
140
142
|
}),
|
|
141
143
|
/** Keep the read-only chip aligned with the trailing header actions. */
|
|
142
|
-
readOnlyChip: ({ theme:
|
|
144
|
+
readOnlyChip: ({ theme: r, ownerState: e }) => ({
|
|
143
145
|
"&&&": {
|
|
144
146
|
flexShrink: 0,
|
|
145
147
|
minWidth: 0,
|
|
146
148
|
whiteSpace: "nowrap",
|
|
147
149
|
...p(
|
|
148
|
-
|
|
149
|
-
|
|
150
|
+
r,
|
|
151
|
+
e?.size || "medium",
|
|
150
152
|
"base",
|
|
151
153
|
(o) => ({ height: o })
|
|
152
154
|
),
|
|
153
155
|
"&&& .M4LTypography-root": {
|
|
154
|
-
...
|
|
155
|
-
color:
|
|
156
|
+
...s(r.generalSettings.isMobile, e?.size || "medium", "microSlim"),
|
|
157
|
+
color: r.vars.palette.chips.info.contained.color
|
|
156
158
|
},
|
|
157
|
-
backgroundColor:
|
|
159
|
+
backgroundColor: r.vars.palette.chips.info.contained.backgroundColor,
|
|
158
160
|
borderColor: "transparent"
|
|
159
161
|
}
|
|
160
162
|
}),
|
|
161
|
-
/**
|
|
162
|
-
|
|
163
|
-
const o =
|
|
163
|
+
/** Provide the react-rnd resize shell that owns the full-width bottom handle. */
|
|
164
|
+
bodyResizeShell: ({ theme: r, ownerState: e }) => {
|
|
165
|
+
const o = d(
|
|
166
|
+
e?.colorMode
|
|
167
|
+
), i = !e?.disabled && !!e?.isResizeHandleActive;
|
|
164
168
|
return {
|
|
165
|
-
|
|
166
|
-
gridTemplateColumns: r?.showLineNumbers ? "auto minmax(0, 1fr)" : "minmax(0, 1fr)",
|
|
169
|
+
boxSizing: "border-box",
|
|
167
170
|
width: "100%",
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
171
|
+
minWidth: 0,
|
|
172
|
+
maxWidth: "100%",
|
|
173
|
+
overflow: "hidden",
|
|
174
|
+
flexShrink: 0,
|
|
175
|
+
pointerEvents: e?.disabled ? "none" : "auto",
|
|
176
|
+
userSelect: e?.disabled ? "none" : "auto",
|
|
177
|
+
"& .resize-handle-bottom": {
|
|
178
|
+
position: "absolute",
|
|
179
|
+
left: 0,
|
|
180
|
+
right: 0,
|
|
181
|
+
bottom: 0,
|
|
182
|
+
height: `${t}px !important`,
|
|
183
|
+
visibility: "visible",
|
|
184
|
+
pointerEvents: i ? "auto" : "none",
|
|
185
|
+
cursor: e?.disabled ? "not-allowed" : "row-resize",
|
|
186
|
+
touchAction: "none"
|
|
187
|
+
},
|
|
188
|
+
"& .resize-handle-bottom::after": {
|
|
189
|
+
content: '""',
|
|
190
|
+
position: "absolute",
|
|
191
|
+
left: 0,
|
|
192
|
+
right: 0,
|
|
193
|
+
bottom: `calc(${t}px / 2 - 1px)`,
|
|
194
|
+
height: "1px",
|
|
195
|
+
borderRadius: "999px",
|
|
196
|
+
backgroundColor: e?.disabled ? r.vars.palette.border.disabled : e?.error ? o.surface.errorBorderColor : r.vars.palette.border.secondary,
|
|
197
|
+
opacity: i ? 1 : 0,
|
|
198
|
+
transition: "opacity 120ms ease"
|
|
199
|
+
},
|
|
200
|
+
"&:hover .resize-handle-bottom": {
|
|
201
|
+
visibility: e?.disabled ? "hidden" : "visible",
|
|
202
|
+
pointerEvents: e?.disabled ? "none" : "auto"
|
|
203
|
+
},
|
|
204
|
+
"&:focus-within .resize-handle-bottom": {
|
|
205
|
+
pointerEvents: e?.disabled ? "none" : "auto"
|
|
206
|
+
},
|
|
207
|
+
"& .resize-handle-bottom:active": {
|
|
208
|
+
pointerEvents: e?.disabled ? "none" : "auto"
|
|
209
|
+
},
|
|
210
|
+
"&:hover .resize-handle-bottom::after": {
|
|
211
|
+
opacity: e?.disabled ? 0 : 1
|
|
212
|
+
},
|
|
213
|
+
"&:focus-within .resize-handle-bottom::after": {
|
|
214
|
+
opacity: e?.disabled ? 0 : 1
|
|
215
|
+
},
|
|
216
|
+
"& .resize-handle-bottom:active::after": {
|
|
217
|
+
opacity: e?.disabled ? 0 : 1
|
|
218
|
+
}
|
|
176
219
|
};
|
|
177
220
|
},
|
|
221
|
+
/** Build the two-column layout used by the gutter and editor scroller. */
|
|
222
|
+
body: ({ theme: r, ownerState: e }) => ({
|
|
223
|
+
boxSizing: "border-box",
|
|
224
|
+
display: "grid",
|
|
225
|
+
flex: "1 1 auto",
|
|
226
|
+
gridTemplateColumns: e?.showLineNumbers ? "auto minmax(0, 1fr)" : "minmax(0, 1fr)",
|
|
227
|
+
width: "100%",
|
|
228
|
+
maxWidth: "100%",
|
|
229
|
+
alignItems: "start",
|
|
230
|
+
columnGap: 0,
|
|
231
|
+
minHeight: 0,
|
|
232
|
+
overflow: "auto",
|
|
233
|
+
pointerEvents: e?.disabled ? "none" : "auto",
|
|
234
|
+
userSelect: e?.disabled ? "none" : "auto",
|
|
235
|
+
gap: r.vars.size.baseSpacings.sp2
|
|
236
|
+
}),
|
|
178
237
|
/** Style the optional line-number gutter. */
|
|
179
|
-
lineNumbers: ({ theme:
|
|
180
|
-
const o =
|
|
181
|
-
|
|
238
|
+
lineNumbers: ({ theme: r, ownerState: e }) => {
|
|
239
|
+
const o = d(
|
|
240
|
+
e?.colorMode
|
|
182
241
|
);
|
|
183
242
|
return {
|
|
184
243
|
display: "flex",
|
|
185
244
|
flexDirection: "column",
|
|
186
245
|
alignItems: "flex-end",
|
|
187
|
-
padding: `${
|
|
246
|
+
padding: `${a}px ${r.vars.size.baseSpacings.sp1} ${e?.isLineCapped ? 0 : a}px ${r.vars.size.baseSpacings.sp2}`,
|
|
188
247
|
backgroundColor: "transparent",
|
|
189
|
-
color:
|
|
248
|
+
color: e?.disabled ? o.surface.placeholderForeground : o.surface.lineNumberForeground,
|
|
190
249
|
userSelect: "none",
|
|
191
|
-
...
|
|
192
|
-
fontFamily:
|
|
193
|
-
lineHeight: `${n[
|
|
250
|
+
...s(r.generalSettings.isMobile, e?.size || "medium", "bodyStandard"),
|
|
251
|
+
fontFamily: l,
|
|
252
|
+
lineHeight: `${n[e?.size || "medium"]}px`
|
|
194
253
|
};
|
|
195
254
|
},
|
|
196
255
|
/** Keep each rendered line number aligned with the code line height. */
|
|
197
|
-
lineNumber: ({
|
|
198
|
-
const
|
|
256
|
+
lineNumber: ({ ownerState: r }) => {
|
|
257
|
+
const e = d(
|
|
199
258
|
r?.colorMode
|
|
200
259
|
);
|
|
201
260
|
return {
|
|
@@ -205,66 +264,66 @@ const b = {
|
|
|
205
264
|
lineHeight: `${r?.lineHeight || n.medium}px`,
|
|
206
265
|
textAlign: "right",
|
|
207
266
|
'&[data-code-editor-error-line="true"]': {
|
|
208
|
-
color:
|
|
209
|
-
borderLeft: `1px solid ${
|
|
267
|
+
color: e.surface.errorBorderColor,
|
|
268
|
+
borderLeft: `1px solid ${e.surface.errorBorderColor}`
|
|
210
269
|
}
|
|
211
270
|
};
|
|
212
271
|
},
|
|
213
272
|
/** Provide horizontal overflow for long code lines without wrapping them. */
|
|
214
|
-
editorScroller: ({ theme:
|
|
273
|
+
editorScroller: ({ theme: r }) => ({
|
|
215
274
|
position: "relative",
|
|
216
275
|
width: "fit-content",
|
|
217
276
|
minWidth: "100%",
|
|
218
|
-
paddingTop:
|
|
219
|
-
paddingBottom:
|
|
220
|
-
paddingRight:
|
|
221
|
-
paddingLeft:
|
|
277
|
+
paddingTop: r.vars.size.baseSpacings.sp3,
|
|
278
|
+
paddingBottom: r.vars.size.baseSpacings.sp3,
|
|
279
|
+
paddingRight: r.vars.size.baseSpacings.sp2,
|
|
280
|
+
paddingLeft: r.vars.size.baseSpacings.sp2,
|
|
222
281
|
backgroundColor: "transparent"
|
|
223
282
|
}),
|
|
224
283
|
/** Style the underlying react-simple-code-editor surface and its inner elements. */
|
|
225
|
-
editor: ({ theme:
|
|
226
|
-
const o =
|
|
227
|
-
|
|
228
|
-
),
|
|
284
|
+
editor: ({ theme: r, ownerState: e }) => {
|
|
285
|
+
const o = d(
|
|
286
|
+
e?.colorMode
|
|
287
|
+
), i = e?.isLineCapped ? 0 : a, c = a + i;
|
|
229
288
|
return {
|
|
230
289
|
position: "relative",
|
|
231
290
|
zIndex: 0,
|
|
232
291
|
width: "max-content",
|
|
233
292
|
minWidth: "100%",
|
|
234
|
-
minHeight: `calc(${
|
|
293
|
+
minHeight: `calc(${e?.minLines || 1} * ${e?.lineHeight || n.medium}px + ${c}px)`,
|
|
235
294
|
backgroundColor: "transparent",
|
|
236
|
-
fontFamily:
|
|
295
|
+
fontFamily: l,
|
|
237
296
|
fontSize: "11px",
|
|
238
|
-
lineHeight: `${
|
|
297
|
+
lineHeight: `${e?.lineHeight || n.medium}px`,
|
|
239
298
|
fontWeight: 400,
|
|
240
299
|
"& textarea, & pre": {
|
|
241
|
-
...
|
|
242
|
-
fontFamily:
|
|
243
|
-
lineHeight: `${
|
|
300
|
+
...s(r.generalSettings.isMobile, e?.size || "medium", "bodyStandard"),
|
|
301
|
+
fontFamily: l,
|
|
302
|
+
lineHeight: `${e?.lineHeight || n.medium}px`,
|
|
244
303
|
whiteSpace: "pre !important",
|
|
245
304
|
wordBreak: "normal",
|
|
246
305
|
overflowWrap: "normal",
|
|
247
306
|
margin: 0,
|
|
248
|
-
paddingTop: `${
|
|
249
|
-
paddingRight: `${
|
|
250
|
-
paddingBottom: `${
|
|
251
|
-
paddingLeft: `${
|
|
307
|
+
paddingTop: `${a}px`,
|
|
308
|
+
paddingRight: `${a}px`,
|
|
309
|
+
paddingBottom: `${i}px`,
|
|
310
|
+
paddingLeft: `${a}px`,
|
|
252
311
|
tabSize: 2,
|
|
253
312
|
fontVariantLigatures: "none",
|
|
254
313
|
backgroundColor: "transparent"
|
|
255
314
|
},
|
|
256
315
|
"&&& textarea": {
|
|
257
|
-
...
|
|
316
|
+
...s(r.generalSettings.isMobile, e?.size || "medium", "microSlim"),
|
|
258
317
|
outline: "none",
|
|
259
318
|
backgroundColor: "transparent",
|
|
260
|
-
caretColor:
|
|
261
|
-
cursor:
|
|
319
|
+
caretColor: e?.disabled ? "transparent" : o.surface.caretForeground,
|
|
320
|
+
cursor: e?.disabled ? "not-allowed" : e?.readOnly ? "default" : "text",
|
|
262
321
|
"&::selection": {
|
|
263
322
|
backgroundColor: o.surface.selectionBackground
|
|
264
323
|
}
|
|
265
324
|
},
|
|
266
325
|
"& pre": {
|
|
267
|
-
color:
|
|
326
|
+
color: e?.disabled ? o.surface.placeholderForeground : o.surface.editorForeground
|
|
268
327
|
},
|
|
269
328
|
"& .token-line": {
|
|
270
329
|
display: "block",
|
|
@@ -280,32 +339,32 @@ const b = {
|
|
|
280
339
|
};
|
|
281
340
|
},
|
|
282
341
|
/** Position the empty-state placeholder above the editor surface. */
|
|
283
|
-
placeholder: ({ theme:
|
|
284
|
-
const o =
|
|
285
|
-
|
|
342
|
+
placeholder: ({ theme: r, ownerState: e }) => {
|
|
343
|
+
const o = d(
|
|
344
|
+
e?.colorMode
|
|
286
345
|
);
|
|
287
346
|
return {
|
|
288
347
|
position: "absolute",
|
|
289
348
|
zIndex: 1,
|
|
290
|
-
top: `${
|
|
291
|
-
left: `${
|
|
349
|
+
top: `${a}px`,
|
|
350
|
+
left: `${a}px`,
|
|
292
351
|
pointerEvents: "none",
|
|
293
352
|
color: o.surface.placeholderForeground,
|
|
294
|
-
...
|
|
295
|
-
fontFamily:
|
|
296
|
-
lineHeight: `${
|
|
353
|
+
...s(r.generalSettings.isMobile, e?.size || "medium", "bodyStandard"),
|
|
354
|
+
fontFamily: l,
|
|
355
|
+
lineHeight: `${e?.lineHeight || n.medium}px`,
|
|
297
356
|
whiteSpace: "pre-wrap"
|
|
298
357
|
};
|
|
299
358
|
},
|
|
300
359
|
/** Size the skeleton block to the same footprint as the live editor. */
|
|
301
|
-
skeleton: ({ theme:
|
|
360
|
+
skeleton: ({ theme: r }) => ({
|
|
302
361
|
"&&&": {
|
|
303
|
-
borderRadius:
|
|
362
|
+
borderRadius: r.vars.size.borderRadius.r1,
|
|
304
363
|
width: "100%",
|
|
305
364
|
height: "100px"
|
|
306
365
|
}
|
|
307
366
|
})
|
|
308
367
|
};
|
|
309
368
|
export {
|
|
310
|
-
|
|
369
|
+
f as codeEditorStyles
|
|
311
370
|
};
|
|
@@ -55,6 +55,7 @@ export declare const CODE_EDITOR_DEFAULT_LANGUAGE = "text";
|
|
|
55
55
|
export declare const CODE_EDITOR_DEFAULT_MIN_LINES = 4;
|
|
56
56
|
export declare const CODE_EDITOR_DEFAULT_MAX_LINES = 10;
|
|
57
57
|
export declare const CODE_EDITOR_PADDING_PX = 12;
|
|
58
|
+
export declare const CODE_EDITOR_RESIZE_HANDLE_SIZE_PX = 10;
|
|
58
59
|
export declare const CODE_EDITOR_LINE_HEIGHT_BY_SIZE: {
|
|
59
60
|
readonly small: 18;
|
|
60
61
|
readonly medium: 20;
|
|
@@ -77,6 +78,6 @@ export declare const CODE_EDITOR_FALLBACK_LANGUAGE_ICON: import('@mui/material/O
|
|
|
77
78
|
};
|
|
78
79
|
/** Resolve the exact VS Code Modern palette for the current light or dark theme mode. */
|
|
79
80
|
export declare function getCodeEditorVSCodeModernPalette(mode?: CodeEditorVSCodeModernMode): CodeEditorVSCodeModernPalette;
|
|
80
|
-
export declare const CODE_EDITOR_CLASSES: Record<"root" | "skeleton" | "body" | "header" | "pre" | "textarea" | "placeholder" | "headerBadges" | "languageChip" | "languageChipIcon" | "readOnlyChip" | "lineNumbers" | "lineNumber" | "editorScroller" | "editor", string>;
|
|
81
|
+
export declare const CODE_EDITOR_CLASSES: Record<"root" | "skeleton" | "body" | "header" | "pre" | "textarea" | "placeholder" | "headerBadges" | "languageChip" | "languageChipIcon" | "readOnlyChip" | "bodyResizeShell" | "lineNumbers" | "lineNumber" | "editorScroller" | "editor", string>;
|
|
81
82
|
export {};
|
|
82
83
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/extended/React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AM,mBAAmB,uPAG/B,CAAC"}
|
|
@@ -100,15 +100,15 @@ const t = {
|
|
|
100
100
|
variable: "#001080"
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
}, C = "M4LCodeEditor", c = "text", i = 4, g = 10, u = 12, D = {
|
|
103
|
+
}, C = "M4LCodeEditor", c = "text", i = 4, g = 10, u = 12, D = 10, _ = {
|
|
104
104
|
small: 18,
|
|
105
105
|
medium: 20
|
|
106
|
-
},
|
|
106
|
+
}, B = '"Geist Mono", "JetBrains Mono", "Cascadia Code", "Liberation Mono", monospace', s = "Read Only", r = "at-commands", l = "at-basic", A = "AT Commands", O = "CodeEditorLanguageChipIcon", T = {
|
|
107
107
|
commandPrefixes: ["AT+", "+"],
|
|
108
108
|
concatenationSeparators: [";"],
|
|
109
109
|
argumentSeparators: [","],
|
|
110
110
|
reservedWords: ["SET", "INFO", "SAVE", "CLEAR"]
|
|
111
|
-
},
|
|
111
|
+
}, I = {
|
|
112
112
|
js: "javascript",
|
|
113
113
|
jsx: "jsx",
|
|
114
114
|
ts: "typescript",
|
|
@@ -119,30 +119,31 @@ const t = {
|
|
|
119
119
|
yml: "yaml",
|
|
120
120
|
at: r,
|
|
121
121
|
"telemetry-at": r
|
|
122
|
-
},
|
|
123
|
-
function
|
|
122
|
+
}, p = e;
|
|
123
|
+
function m(o = "light") {
|
|
124
124
|
return t[o];
|
|
125
125
|
}
|
|
126
|
-
const
|
|
126
|
+
const L = n(
|
|
127
127
|
C,
|
|
128
128
|
a
|
|
129
129
|
);
|
|
130
130
|
export {
|
|
131
131
|
r as CODE_EDITOR_AT_LANGUAGE,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
132
|
+
A as CODE_EDITOR_AT_TEMPLATE_LANGUAGE_LABEL,
|
|
133
|
+
l as CODE_EDITOR_AT_TEMPLATE_NAME,
|
|
134
|
+
T as CODE_EDITOR_AT_TEMPLATE_TOKENS,
|
|
135
|
+
L as CODE_EDITOR_CLASSES,
|
|
136
136
|
c as CODE_EDITOR_DEFAULT_LANGUAGE,
|
|
137
137
|
g as CODE_EDITOR_DEFAULT_MAX_LINES,
|
|
138
138
|
i as CODE_EDITOR_DEFAULT_MIN_LINES,
|
|
139
|
-
|
|
139
|
+
p as CODE_EDITOR_FALLBACK_LANGUAGE_ICON,
|
|
140
140
|
C as CODE_EDITOR_KEY_COMPONENT,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
141
|
+
I as CODE_EDITOR_LANGUAGE_ALIASES,
|
|
142
|
+
O as CODE_EDITOR_LANGUAGE_CHIP_ICON_INSTANCE_ID,
|
|
143
|
+
_ as CODE_EDITOR_LINE_HEIGHT_BY_SIZE,
|
|
144
|
+
B as CODE_EDITOR_MONO_FONT_FAMILY,
|
|
145
145
|
u as CODE_EDITOR_PADDING_PX,
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
s as CODE_EDITOR_READ_ONLY_LABEL,
|
|
147
|
+
D as CODE_EDITOR_RESIZE_HANDLE_SIZE_PX,
|
|
148
|
+
m as getCodeEditorVSCodeModernPalette
|
|
148
149
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeEditorEnum.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAC7B,gBAAgB,qBAAqB;IACrC,YAAY,iBAAiB;IAC7B,IAAI,SAAS;IACb,WAAW,gBAAgB;IAC3B,UAAU,eAAe;IACzB,cAAc,mBAAmB;IACjC,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,GAAG,QAAQ;IACX,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;CACtB"}
|
|
1
|
+
{"version":3,"file":"CodeEditorEnum.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/ReactSimpleCodeEditor/slots/CodeEditorEnum.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAC7B,gBAAgB,qBAAqB;IACrC,YAAY,iBAAiB;IAC7B,eAAe,oBAAoB;IACnC,IAAI,SAAS;IACb,WAAW,gBAAgB;IAC3B,UAAU,eAAe;IACzB,cAAc,mBAAmB;IACjC,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,GAAG,QAAQ;IACX,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;CACtB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var a = /* @__PURE__ */ ((e) => (e.root = "root", e.header = "header", e.headerBadges = "headerBadges", e.languageChip = "languageChip", e.languageChipIcon = "languageChipIcon", e.readOnlyChip = "readOnlyChip", e.body = "body", e.lineNumbers = "lineNumbers", e.lineNumber = "lineNumber", e.editorScroller = "editorScroller", e.editor = "editor", e.textarea = "textarea", e.pre = "pre", e.placeholder = "placeholder", e.skeleton = "skeleton", e))(a || {});
|
|
1
|
+
var a = /* @__PURE__ */ ((e) => (e.root = "root", e.header = "header", e.headerBadges = "headerBadges", e.languageChip = "languageChip", e.languageChipIcon = "languageChipIcon", e.readOnlyChip = "readOnlyChip", e.bodyResizeShell = "bodyResizeShell", e.body = "body", e.lineNumbers = "lineNumbers", e.lineNumber = "lineNumber", e.editorScroller = "editorScroller", e.editor = "editor", e.textarea = "textarea", e.pre = "pre", e.placeholder = "placeholder", e.skeleton = "skeleton", e))(a || {});
|
|
2
2
|
export {
|
|
3
3
|
a as CodeEditorSlots
|
|
4
4
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Rnd } from 'react-rnd';
|
|
1
2
|
export declare const RootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
2
3
|
ownerState?: (Partial<import('..').CodeEditorOwnerState> & Record<string, unknown>) | undefined;
|
|
3
4
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
@@ -16,6 +17,9 @@ export declare const LanguageChipIconStyled: import('@emotion/styled').StyledCom
|
|
|
16
17
|
export declare const ReadOnlyChipStyled: import('@emotion/styled').StyledComponent<Pick<import('../../..').ChipProps & import('react').RefAttributes<HTMLDivElement>, keyof import('react').RefAttributes<HTMLDivElement> | keyof import('../../..').ChipProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
17
18
|
ownerState?: (Partial<import('..').CodeEditorOwnerState> & Record<string, unknown>) | undefined;
|
|
18
19
|
}, {}, {}>;
|
|
20
|
+
export declare const BodyResizeShellStyled: import('@emotion/styled').StyledComponent<import('react-rnd').Props & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {
|
|
21
|
+
ref?: import('react').Ref<Rnd> | undefined;
|
|
22
|
+
}>;
|
|
19
23
|
export declare const BodyStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
20
24
|
ownerState?: (Partial<import('..').CodeEditorOwnerState> & Record<string, unknown>) | undefined;
|
|
21
25
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeEditorSlots.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CodeEditorSlots.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAWhC,eAAO,MAAM,UAAU;;6NAGG,CAAC;AAE3B,eAAO,MAAM,YAAY;;6NAGG,CAAC;AAE7B,eAAO,MAAM,kBAAkB;;6NAGG,CAAC;AAEnC,eAAO,MAAM,kBAAkB;;UAGG,CAAC;AAEnC,eAAO,MAAM,sBAAsB;;iOAGG,CAAC;AAEvC,eAAO,MAAM,kBAAkB;;UAGG,CAAC;AAEnC,eAAO,MAAM,qBAAqB;;EAIG,CAAC;AAEtC,eAAO,MAAM,UAAU;;6NAGG,CAAC;AAE3B,eAAO,MAAM,iBAAiB;;6NAGG,CAAC;AAElC,eAAO,MAAM,gBAAgB;;iOAGG,CAAC;AAEjC,eAAO,MAAM,oBAAoB;;6NAGG,CAAC;AAErC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAIG,CAAC;AAE7B,eAAO,MAAM,iBAAiB;;iOAGG,CAAC;AAElC,eAAO,MAAM,cAAc;;UAGG,CAAC"}
|