@m4l/components 9.24.1-beta-feature-731-code-editor.1 → 9.24.1-beta-feature-731-code-editor.2
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/extended/ReactSimpleCodeEditor/CodeEditor.d.ts.map +1 -1
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.js +302 -327
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.d.ts.map +1 -1
- package/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.js +75 -102
- package/components/extended/ReactSimpleCodeEditor/constants.d.ts +2 -2
- package/components/extended/ReactSimpleCodeEditor/constants.d.ts.map +1 -1
- package/components/extended/ReactSimpleCodeEditor/constants.js +11 -11
- package/components/extended/ReactSimpleCodeEditor/dictionary.d.ts +1 -0
- package/components/extended/ReactSimpleCodeEditor/dictionary.d.ts.map +1 -1
- package/components/extended/ReactSimpleCodeEditor/dictionary.js +4 -3
- 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 +6 -4
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts.map +1 -1
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.js +35 -32
- package/components/extended/ReactSimpleCodeEditor/types.d.ts +9 -8
- package/components/extended/ReactSimpleCodeEditor/types.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeEditor.styles.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CodeEditor.styles.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/extended/ReactSimpleCodeEditor/CodeEditor.styles.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAGhD,eAAO,MAAM,gBAAgB,EAAE,gBA2X9B,CAAC"}
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import { getTypographyStyles as
|
|
2
|
-
import { getCodeEditorVSCodeModernPalette as
|
|
3
|
-
import { getSizeStyles as
|
|
4
|
-
const
|
|
1
|
+
import { getTypographyStyles as n } from "../../../utils/getTypographyStyles.js";
|
|
2
|
+
import { getCodeEditorVSCodeModernPalette as l, CODE_EDITOR_LINE_HEIGHT_BY_SIZE as a, CODE_EDITOR_MONO_FONT_FAMILY as t, CODE_EDITOR_PADDING_PX as i } from "./constants.js";
|
|
3
|
+
import { getSizeStyles as s } from "../../../utils/getSizeStyles/getSizeStyles.js";
|
|
4
|
+
const b = {
|
|
5
5
|
/** Resolve the interactive shell colors and focus treatment for the editor root. */
|
|
6
6
|
root: ({ theme: r, ownerState: e }) => {
|
|
7
|
-
const o = !e?.disabled && !e?.readOnly,
|
|
7
|
+
const o = !e?.disabled && !e?.readOnly, d = e?.disabled ? r.vars.palette.border.disabled : r.vars.palette.border.secondary;
|
|
8
8
|
return {
|
|
9
9
|
boxSizing: "border-box",
|
|
10
10
|
width: "100%",
|
|
11
11
|
display: "flex",
|
|
12
12
|
flexDirection: "column",
|
|
13
|
-
height: e?.resizable ? `calc(100% - ${t}px)` : "100%",
|
|
14
13
|
minHeight: 0,
|
|
15
14
|
gap: 0,
|
|
16
15
|
border: r.vars.size.borderStroke.container,
|
|
17
|
-
borderColor: e?.variant === "outlined" || e?.error ?
|
|
16
|
+
borderColor: e?.variant === "outlined" || e?.error ? d : "transparent",
|
|
18
17
|
borderRadius: r.vars.size.borderRadius["r1-5"],
|
|
19
18
|
...e?.error && {
|
|
20
19
|
borderColor: r.vars.palette.error.focus
|
|
@@ -59,7 +58,7 @@ const f = {
|
|
|
59
58
|
},
|
|
60
59
|
/** Layout the language badge row above the editing surface. */
|
|
61
60
|
header: ({ theme: r, ownerState: e }) => {
|
|
62
|
-
const o =
|
|
61
|
+
const o = l(
|
|
63
62
|
e?.colorMode
|
|
64
63
|
);
|
|
65
64
|
return {
|
|
@@ -82,6 +81,7 @@ const f = {
|
|
|
82
81
|
color: o.surface.headerForeground,
|
|
83
82
|
borderTopLeftRadius: r.vars.size.borderRadius.r2,
|
|
84
83
|
borderTopRightRadius: r.vars.size.borderRadius.r2,
|
|
84
|
+
minWidth: 0,
|
|
85
85
|
overflow: "hidden",
|
|
86
86
|
minHeight: "33px"
|
|
87
87
|
};
|
|
@@ -93,18 +93,22 @@ const f = {
|
|
|
93
93
|
justifyContent: "flex-end",
|
|
94
94
|
gap: r.vars.size.baseSpacings.sp1,
|
|
95
95
|
minWidth: 0,
|
|
96
|
+
maxWidth: "100%",
|
|
97
|
+
overflow: "hidden",
|
|
96
98
|
// Keep badges right-aligned even when the language chip is absent and the
|
|
97
99
|
// badges container is the only child of the header row.
|
|
98
100
|
marginLeft: "auto"
|
|
99
101
|
}),
|
|
100
102
|
/** Keep the leading language chip aligned with the editor header layout. */
|
|
101
103
|
languageChip: ({ theme: r, ownerState: e }) => {
|
|
102
|
-
const o =
|
|
104
|
+
const o = l(
|
|
103
105
|
e?.colorMode
|
|
104
106
|
);
|
|
105
107
|
return {
|
|
106
|
-
|
|
108
|
+
flex: "1 1 auto",
|
|
107
109
|
minWidth: 0,
|
|
110
|
+
maxWidth: "100%",
|
|
111
|
+
overflow: "hidden",
|
|
108
112
|
whiteSpace: "nowrap",
|
|
109
113
|
textTransform: "lowercase",
|
|
110
114
|
paddingTop: 0,
|
|
@@ -112,16 +116,19 @@ const f = {
|
|
|
112
116
|
backgroundColor: "transparent",
|
|
113
117
|
borderColor: r.vars.palette.chips.default.outlined.backgroundActive,
|
|
114
118
|
color: o.surface.languageChipForeground,
|
|
115
|
-
...
|
|
119
|
+
...s(
|
|
116
120
|
r,
|
|
117
121
|
e?.size || "medium",
|
|
118
122
|
"base",
|
|
119
|
-
(
|
|
123
|
+
(d) => ({ height: d })
|
|
120
124
|
),
|
|
121
125
|
"&&& .M4LTypography-root": {
|
|
122
|
-
...
|
|
126
|
+
...n(r.generalSettings.isMobile, e?.size || "medium", "microSlim"),
|
|
123
127
|
color: o.surface.languageChipForeground,
|
|
124
128
|
lineHeight: "normal",
|
|
129
|
+
overflow: "hidden",
|
|
130
|
+
textOverflow: "ellipsis",
|
|
131
|
+
whiteSpace: "nowrap",
|
|
125
132
|
textTransform: "uppercase"
|
|
126
133
|
}
|
|
127
134
|
};
|
|
@@ -145,84 +152,50 @@ const f = {
|
|
|
145
152
|
"&&&": {
|
|
146
153
|
flexShrink: 0,
|
|
147
154
|
minWidth: 0,
|
|
155
|
+
maxWidth: "100%",
|
|
156
|
+
overflow: "hidden",
|
|
148
157
|
whiteSpace: "nowrap",
|
|
149
|
-
...
|
|
158
|
+
...s(
|
|
150
159
|
r,
|
|
151
160
|
e?.size || "medium",
|
|
152
161
|
"base",
|
|
153
162
|
(o) => ({ height: o })
|
|
154
163
|
),
|
|
155
164
|
"&&& .M4LTypography-root": {
|
|
156
|
-
...
|
|
157
|
-
color: r.vars.palette.chips.info.contained.color
|
|
165
|
+
...n(r.generalSettings.isMobile, e?.size || "medium", "microSlim"),
|
|
166
|
+
color: r.vars.palette.chips.info.contained.color,
|
|
167
|
+
overflow: "hidden",
|
|
168
|
+
textOverflow: "ellipsis",
|
|
169
|
+
whiteSpace: "nowrap"
|
|
158
170
|
},
|
|
159
171
|
backgroundColor: r.vars.palette.chips.info.contained.backgroundColor,
|
|
160
172
|
borderColor: "transparent"
|
|
161
173
|
}
|
|
162
174
|
}),
|
|
163
|
-
/**
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
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
|
-
}
|
|
219
|
-
};
|
|
220
|
-
},
|
|
175
|
+
/** Keep the line-number toggle aligned with the header title area. */
|
|
176
|
+
lineNumbersToggle: () => ({
|
|
177
|
+
flexShrink: 0
|
|
178
|
+
}),
|
|
179
|
+
/** Provide the native CSS resize shell that owns the editor body viewport. */
|
|
180
|
+
bodyResizeShell: ({ ownerState: r }) => ({
|
|
181
|
+
boxSizing: "border-box",
|
|
182
|
+
width: "100%",
|
|
183
|
+
minWidth: 0,
|
|
184
|
+
maxWidth: "100%",
|
|
185
|
+
overflow: "hidden",
|
|
186
|
+
flexShrink: 0,
|
|
187
|
+
display: "flex",
|
|
188
|
+
flexDirection: "column",
|
|
189
|
+
resize: r?.resizable && !r?.disabled ? "vertical" : "none",
|
|
190
|
+
pointerEvents: r?.disabled ? "none" : "auto",
|
|
191
|
+
userSelect: r?.disabled ? "none" : "auto"
|
|
192
|
+
}),
|
|
221
193
|
/** Build the two-column layout used by the gutter and editor scroller. */
|
|
222
194
|
body: ({ theme: r, ownerState: e }) => ({
|
|
223
195
|
boxSizing: "border-box",
|
|
224
196
|
display: "grid",
|
|
225
197
|
flex: "1 1 auto",
|
|
198
|
+
height: "100%",
|
|
226
199
|
gridTemplateColumns: e?.showLineNumbers ? "auto minmax(0, 1fr)" : "minmax(0, 1fr)",
|
|
227
200
|
width: "100%",
|
|
228
201
|
maxWidth: "100%",
|
|
@@ -236,32 +209,32 @@ const f = {
|
|
|
236
209
|
}),
|
|
237
210
|
/** Style the optional line-number gutter. */
|
|
238
211
|
lineNumbers: ({ theme: r, ownerState: e }) => {
|
|
239
|
-
const o =
|
|
212
|
+
const o = l(
|
|
240
213
|
e?.colorMode
|
|
241
214
|
);
|
|
242
215
|
return {
|
|
243
216
|
display: "flex",
|
|
244
217
|
flexDirection: "column",
|
|
245
218
|
alignItems: "flex-end",
|
|
246
|
-
padding: `${
|
|
219
|
+
padding: `${i}px ${r.vars.size.baseSpacings.sp1} ${e?.isLineCapped ? 0 : i}px ${r.vars.size.baseSpacings.sp2}`,
|
|
247
220
|
backgroundColor: "transparent",
|
|
248
221
|
color: e?.disabled ? o.surface.placeholderForeground : o.surface.lineNumberForeground,
|
|
249
222
|
userSelect: "none",
|
|
250
|
-
...
|
|
251
|
-
fontFamily:
|
|
252
|
-
lineHeight: `${
|
|
223
|
+
...n(r.generalSettings.isMobile, e?.size || "medium", "bodyStandard"),
|
|
224
|
+
fontFamily: t,
|
|
225
|
+
lineHeight: `${a[e?.size || "medium"]}px`
|
|
253
226
|
};
|
|
254
227
|
},
|
|
255
228
|
/** Keep each rendered line number aligned with the code line height. */
|
|
256
229
|
lineNumber: ({ theme: r, ownerState: e }) => {
|
|
257
|
-
const o =
|
|
230
|
+
const o = l(
|
|
258
231
|
e?.colorMode
|
|
259
232
|
);
|
|
260
233
|
return {
|
|
261
234
|
display: "block",
|
|
262
235
|
minWidth: "2ch",
|
|
263
|
-
height: `${e?.lineHeight ||
|
|
264
|
-
lineHeight: `${e?.lineHeight ||
|
|
236
|
+
height: `${e?.lineHeight || a.medium}px`,
|
|
237
|
+
lineHeight: `${e?.lineHeight || a.medium}px`,
|
|
265
238
|
textAlign: "right",
|
|
266
239
|
color: r.vars.palette.text.disabled,
|
|
267
240
|
'&[data-code-editor-error-line="true"]': {
|
|
@@ -283,38 +256,38 @@ const f = {
|
|
|
283
256
|
}),
|
|
284
257
|
/** Style the underlying react-simple-code-editor surface and its inner elements. */
|
|
285
258
|
editor: ({ theme: r, ownerState: e }) => {
|
|
286
|
-
const o =
|
|
259
|
+
const o = l(
|
|
287
260
|
e?.colorMode
|
|
288
|
-
),
|
|
261
|
+
), d = e?.isLineCapped ? 0 : i, p = i + d;
|
|
289
262
|
return {
|
|
290
263
|
position: "relative",
|
|
291
264
|
zIndex: 0,
|
|
292
265
|
width: "max-content",
|
|
293
266
|
minWidth: "100%",
|
|
294
|
-
minHeight: `calc(${e?.minLines || 1} * ${e?.lineHeight ||
|
|
267
|
+
minHeight: `calc(${e?.minLines || 1} * ${e?.lineHeight || a.medium}px + ${p}px)`,
|
|
295
268
|
backgroundColor: "transparent",
|
|
296
|
-
fontFamily:
|
|
269
|
+
fontFamily: t,
|
|
297
270
|
fontSize: "11px",
|
|
298
|
-
lineHeight: `${e?.lineHeight ||
|
|
271
|
+
lineHeight: `${e?.lineHeight || a.medium}px`,
|
|
299
272
|
fontWeight: 400,
|
|
300
273
|
"& textarea, & pre": {
|
|
301
|
-
...
|
|
302
|
-
fontFamily:
|
|
303
|
-
lineHeight: `${e?.lineHeight ||
|
|
274
|
+
...n(r.generalSettings.isMobile, e?.size || "medium", "bodyStandard"),
|
|
275
|
+
fontFamily: t,
|
|
276
|
+
lineHeight: `${e?.lineHeight || a.medium}px`,
|
|
304
277
|
whiteSpace: "pre !important",
|
|
305
278
|
wordBreak: "normal",
|
|
306
279
|
overflowWrap: "normal",
|
|
307
280
|
margin: 0,
|
|
308
|
-
paddingTop: `${
|
|
309
|
-
paddingRight: `${
|
|
310
|
-
paddingBottom: `${
|
|
311
|
-
paddingLeft: `${
|
|
281
|
+
paddingTop: `${i}px`,
|
|
282
|
+
paddingRight: `${i}px`,
|
|
283
|
+
paddingBottom: `${d}px`,
|
|
284
|
+
paddingLeft: `${i}px`,
|
|
312
285
|
tabSize: 2,
|
|
313
286
|
fontVariantLigatures: "none",
|
|
314
287
|
backgroundColor: "transparent"
|
|
315
288
|
},
|
|
316
289
|
"&&& textarea": {
|
|
317
|
-
...
|
|
290
|
+
...n(r.generalSettings.isMobile, e?.size || "medium", "microSlim"),
|
|
318
291
|
outline: "none",
|
|
319
292
|
backgroundColor: "transparent",
|
|
320
293
|
caretColor: e?.disabled ? "transparent" : o.surface.caretForeground,
|
|
@@ -341,19 +314,19 @@ const f = {
|
|
|
341
314
|
},
|
|
342
315
|
/** Position the empty-state placeholder above the editor surface. */
|
|
343
316
|
placeholder: ({ theme: r, ownerState: e }) => {
|
|
344
|
-
const o =
|
|
317
|
+
const o = l(
|
|
345
318
|
e?.colorMode
|
|
346
319
|
);
|
|
347
320
|
return {
|
|
348
321
|
position: "absolute",
|
|
349
322
|
zIndex: 1,
|
|
350
|
-
top: `${
|
|
351
|
-
left: `${
|
|
323
|
+
top: `${i}px`,
|
|
324
|
+
left: `${i}px`,
|
|
352
325
|
pointerEvents: "none",
|
|
353
326
|
color: o.surface.placeholderForeground,
|
|
354
|
-
...
|
|
355
|
-
fontFamily:
|
|
356
|
-
lineHeight: `${e?.lineHeight ||
|
|
327
|
+
...n(r.generalSettings.isMobile, e?.size || "medium", "bodyStandard"),
|
|
328
|
+
fontFamily: t,
|
|
329
|
+
lineHeight: `${e?.lineHeight || a.medium}px`,
|
|
357
330
|
whiteSpace: "pre-wrap"
|
|
358
331
|
};
|
|
359
332
|
},
|
|
@@ -367,5 +340,5 @@ const f = {
|
|
|
367
340
|
})
|
|
368
341
|
};
|
|
369
342
|
export {
|
|
370
|
-
|
|
343
|
+
b as codeEditorStyles
|
|
371
344
|
};
|
|
@@ -55,13 +55,13 @@ 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;
|
|
59
58
|
export declare const CODE_EDITOR_LINE_HEIGHT_BY_SIZE: {
|
|
60
59
|
readonly small: 18;
|
|
61
60
|
readonly medium: 20;
|
|
62
61
|
};
|
|
63
62
|
export declare const CODE_EDITOR_MONO_FONT_FAMILY = "\"Geist Mono\", \"JetBrains Mono\", \"Cascadia Code\", \"Liberation Mono\", monospace";
|
|
64
63
|
export declare const CODE_EDITOR_READ_ONLY_LABEL = "Read Only";
|
|
64
|
+
export declare const CODE_EDITOR_TOGGLE_LINE_NUMBERS_LABEL = "Show or hide line numbers";
|
|
65
65
|
export declare const CODE_EDITOR_AT_LANGUAGE = "at-commands";
|
|
66
66
|
export declare const CODE_EDITOR_AT_TEMPLATE_NAME = "at-basic";
|
|
67
67
|
export declare const CODE_EDITOR_AT_TEMPLATE_LANGUAGE_LABEL = "AT Commands";
|
|
@@ -78,6 +78,6 @@ export declare const CODE_EDITOR_FALLBACK_LANGUAGE_ICON: import('@mui/material/O
|
|
|
78
78
|
};
|
|
79
79
|
/** Resolve the exact VS Code Modern palette for the current light or dark theme mode. */
|
|
80
80
|
export declare function getCodeEditorVSCodeModernPalette(mode?: CodeEditorVSCodeModernMode): CodeEditorVSCodeModernPalette;
|
|
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
|
+
export declare const CODE_EDITOR_CLASSES: Record<"root" | "skeleton" | "body" | "header" | "pre" | "textarea" | "placeholder" | "headerBadges" | "languageChip" | "languageChipIcon" | "readOnlyChip" | "lineNumbersToggle" | "bodyResizeShell" | "lineNumbers" | "lineNumber" | "editorScroller" | "editor", string>;
|
|
82
82
|
export {};
|
|
83
83
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/extended/ReactSimpleCodeEditor/constants.ts"],"names":[],"mappings":"AAMA,KAAK,0BAA0B,GAAG,MAAM,GAAG,OAAO,CAAC;AAEnD,KAAK,oCAAoC,GAAG;IAC1C,2BAA2B,EAAE,MAAM,CAAC;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,2BAA2B,EAAE,MAAM,CAAC;IACpC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,0BAA0B,EAAE,MAAM,CAAC;IACnC,oBAAoB,EAAE,MAAM,CAAC;IAC7B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,KAAK,mCAAmC,GAAG;IACzC,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,cAAc,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,OAAO,EAAE,oCAAoC,CAAC;IAC9C,MAAM,EAAE,mCAAmC,CAAC;CAC7C,CAAC;AA0GF,eAAO,MAAM,yBAAyB,kBAAkB,CAAC;AACzD,eAAO,MAAM,4BAA4B,SAAS,CAAC;AACnD,eAAO,MAAM,6BAA6B,IAAI,CAAC;AAC/C,eAAO,MAAM,6BAA6B,KAAK,CAAC;AAChD,eAAO,MAAM,sBAAsB,KAAK,CAAC;AACzC,eAAO,MAAM
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/extended/ReactSimpleCodeEditor/constants.ts"],"names":[],"mappings":"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"}
|
|
@@ -100,10 +100,10 @@ const t = {
|
|
|
100
100
|
variable: "#001080"
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
}, C = "M4LCodeEditor", c = "text", i = 4, g = 10, u = 12,
|
|
103
|
+
}, C = "M4LCodeEditor", c = "text", i = 4, g = 10, u = 12, _ = {
|
|
104
104
|
small: 18,
|
|
105
105
|
medium: 20
|
|
106
|
-
},
|
|
106
|
+
}, D = '"Geist Mono", "JetBrains Mono", "Cascadia Code", "Liberation Mono", monospace', B = "Read Only", s = "Show or hide line numbers", r = "at-commands", l = "at-basic", O = "AT Commands", A = "CodeEditorLanguageChipIcon", T = {
|
|
107
107
|
commandPrefixes: ["AT+", "+"],
|
|
108
108
|
concatenationSeparators: [";"],
|
|
109
109
|
argumentSeparators: [","],
|
|
@@ -119,31 +119,31 @@ const t = {
|
|
|
119
119
|
yml: "yaml",
|
|
120
120
|
at: r,
|
|
121
121
|
"telemetry-at": r
|
|
122
|
-
},
|
|
122
|
+
}, L = e;
|
|
123
123
|
function m(o = "light") {
|
|
124
124
|
return t[o];
|
|
125
125
|
}
|
|
126
|
-
const
|
|
126
|
+
const p = n(
|
|
127
127
|
C,
|
|
128
128
|
a
|
|
129
129
|
);
|
|
130
130
|
export {
|
|
131
131
|
r as CODE_EDITOR_AT_LANGUAGE,
|
|
132
|
-
|
|
132
|
+
O as CODE_EDITOR_AT_TEMPLATE_LANGUAGE_LABEL,
|
|
133
133
|
l as CODE_EDITOR_AT_TEMPLATE_NAME,
|
|
134
134
|
T as CODE_EDITOR_AT_TEMPLATE_TOKENS,
|
|
135
|
-
|
|
135
|
+
p 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
|
+
L as CODE_EDITOR_FALLBACK_LANGUAGE_ICON,
|
|
140
140
|
C as CODE_EDITOR_KEY_COMPONENT,
|
|
141
141
|
I as CODE_EDITOR_LANGUAGE_ALIASES,
|
|
142
|
-
|
|
142
|
+
A as CODE_EDITOR_LANGUAGE_CHIP_ICON_INSTANCE_ID,
|
|
143
143
|
_ as CODE_EDITOR_LINE_HEIGHT_BY_SIZE,
|
|
144
|
-
|
|
144
|
+
D as CODE_EDITOR_MONO_FONT_FAMILY,
|
|
145
145
|
u as CODE_EDITOR_PADDING_PX,
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
B as CODE_EDITOR_READ_ONLY_LABEL,
|
|
147
|
+
s as CODE_EDITOR_TOGGLE_LINE_NUMBERS_LABEL,
|
|
148
148
|
m as getCodeEditorVSCodeModernPalette
|
|
149
149
|
};
|
|
@@ -7,5 +7,6 @@ export declare function getCodeEditorComponentsDictionary(): string[];
|
|
|
7
7
|
export declare const defaultCodeEditorDictionary: Dictionary;
|
|
8
8
|
export declare const CODE_EDITOR_DICTIONARY: {
|
|
9
9
|
readonly readOnly: "code_editor.read_only";
|
|
10
|
+
readonly toggleLineNumbers: "code_editor.toggle_line_numbers";
|
|
10
11
|
};
|
|
11
12
|
//# sourceMappingURL=dictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionary.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/extended/ReactSimpleCodeEditor/dictionary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE5C,eAAO,MAAM,0BAA0B,gBAAgB,CAAC;AAExD;;GAEG;AACH,wBAAgB,iCAAiC,aAEhD;AAED,eAAO,MAAM,2BAA2B,EAAE,
|
|
1
|
+
{"version":3,"file":"dictionary.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/extended/ReactSimpleCodeEditor/dictionary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE5C,eAAO,MAAM,0BAA0B,gBAAgB,CAAC;AAExD;;GAEG;AACH,wBAAgB,iCAAiC,aAEhD;AAED,eAAO,MAAM,2BAA2B,EAAE,UAKzC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;CAGzB,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const
|
|
2
|
-
readOnly: `${
|
|
1
|
+
const e = "code_editor", _ = {
|
|
2
|
+
readOnly: `${e}.read_only`,
|
|
3
|
+
toggleLineNumbers: `${e}.toggle_line_numbers`
|
|
3
4
|
};
|
|
4
5
|
export {
|
|
5
6
|
_ as CODE_EDITOR_DICTIONARY,
|
|
6
|
-
|
|
7
|
+
e as CODE_EDITOR_DICTIONARY_KEY
|
|
7
8
|
};
|
|
@@ -5,6 +5,7 @@ export declare enum CodeEditorSlots {
|
|
|
5
5
|
languageChip = "languageChip",
|
|
6
6
|
languageChipIcon = "languageChipIcon",
|
|
7
7
|
readOnlyChip = "readOnlyChip",
|
|
8
|
+
lineNumbersToggle = "lineNumbersToggle",
|
|
8
9
|
bodyResizeShell = "bodyResizeShell",
|
|
9
10
|
body = "body",
|
|
10
11
|
lineNumbers = "lineNumbers",
|
|
@@ -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,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
|
+
{"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,iBAAiB,sBAAsB;IACvC,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.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 || {});
|
|
1
|
+
var a = /* @__PURE__ */ ((e) => (e.root = "root", e.header = "header", e.headerBadges = "headerBadges", e.languageChip = "languageChip", e.languageChipIcon = "languageChipIcon", e.readOnlyChip = "readOnlyChip", e.lineNumbersToggle = "lineNumbersToggle", 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,4 +1,3 @@
|
|
|
1
|
-
import { Rnd } from 'react-rnd';
|
|
2
1
|
export declare const RootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
3
2
|
ownerState?: (Partial<import('..').CodeEditorOwnerState> & Record<string, unknown>) | undefined;
|
|
4
3
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
@@ -17,9 +16,12 @@ export declare const LanguageChipIconStyled: import('@emotion/styled').StyledCom
|
|
|
17
16
|
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> & {
|
|
18
17
|
ownerState?: (Partial<import('..').CodeEditorOwnerState> & Record<string, unknown>) | undefined;
|
|
19
18
|
}, {}, {}>;
|
|
20
|
-
export declare const
|
|
21
|
-
|
|
22
|
-
}>;
|
|
19
|
+
export declare const LineNumbersToggleStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../..').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "color" | "content" | "translate" | "action" | "hidden" | "form" | "slot" | "style" | "title" | "name" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "sx" | "component" | "classes" | "size" | "variant" | "src" | "tooltip" | "value" | "instaceDataTestId" | "icon" | "selected" | "dataTestId" | "placement" | "rotationAngle" | "instanceDataTestId" | "disabled" | "ariaLabel" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "type" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
20
|
+
ownerState?: (Partial<import('..').CodeEditorOwnerState> & Record<string, unknown>) | undefined;
|
|
21
|
+
}, {}, {}>;
|
|
22
|
+
export declare const BodyResizeShellStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
23
|
+
ownerState?: (Partial<import('..').CodeEditorOwnerState> & Record<string, unknown>) | undefined;
|
|
24
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
23
25
|
export declare const BodyStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
24
26
|
ownerState?: (Partial<import('..').CodeEditorOwnerState> & Record<string, unknown>) | undefined;
|
|
25
27
|
}, 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":"AAYA,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,uBAAuB;;UAGG,CAAC;AAExC,eAAO,MAAM,qBAAqB;;6NAGG,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"}
|
|
@@ -1,70 +1,73 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Rnd as s } from "react-rnd";
|
|
1
|
+
import r from "react-simple-code-editor";
|
|
3
2
|
import { styled as e } from "@mui/material/styles";
|
|
4
|
-
import { Chip as
|
|
3
|
+
import { Chip as n } from "../../../Chip/Chip.js";
|
|
5
4
|
import { codeEditorStyles as o } from "../CodeEditor.styles.js";
|
|
6
5
|
import { CODE_EDITOR_KEY_COMPONENT as t } from "../constants.js";
|
|
7
|
-
import { resolveCodeEditorComponent as
|
|
6
|
+
import { resolveCodeEditorComponent as s } from "../helpers/resolveEditorComponent.js";
|
|
8
7
|
import { CodeEditorSlots as l } from "./CodeEditorEnum.js";
|
|
9
8
|
import { Skeleton as i } from "../../mui/Skeleton/Skeleton.js";
|
|
10
|
-
|
|
9
|
+
import { IconButton as a } from "../../mui/IconButton/IconButton.js";
|
|
10
|
+
const m = s(r), E = e("div", {
|
|
11
11
|
name: t,
|
|
12
12
|
slot: l.root
|
|
13
|
-
})(o?.root),
|
|
13
|
+
})(o?.root), N = e("div", {
|
|
14
14
|
name: t,
|
|
15
15
|
slot: l.header
|
|
16
|
-
})(o?.header),
|
|
16
|
+
})(o?.header), f = e("div", {
|
|
17
17
|
name: t,
|
|
18
18
|
slot: l.headerBadges
|
|
19
|
-
})(o?.headerBadges),
|
|
19
|
+
})(o?.headerBadges), v = e(n, {
|
|
20
20
|
name: t,
|
|
21
21
|
slot: l.languageChip
|
|
22
|
-
})(o?.languageChip),
|
|
22
|
+
})(o?.languageChip), O = e("span", {
|
|
23
23
|
name: t,
|
|
24
24
|
slot: l.languageChipIcon
|
|
25
|
-
})(o?.languageChipIcon),
|
|
25
|
+
})(o?.languageChipIcon), R = e(n, {
|
|
26
26
|
name: t,
|
|
27
27
|
slot: l.readOnlyChip
|
|
28
|
-
})(o?.readOnlyChip), B = e(
|
|
28
|
+
})(o?.readOnlyChip), B = e(a, {
|
|
29
29
|
name: t,
|
|
30
|
-
slot: l.
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
slot: l.lineNumbersToggle
|
|
31
|
+
})(o?.lineNumbersToggle), I = e("div", {
|
|
32
|
+
name: t,
|
|
33
|
+
slot: l.bodyResizeShell
|
|
34
|
+
})(o?.bodyResizeShell), L = e("div", {
|
|
33
35
|
name: t,
|
|
34
36
|
slot: l.body
|
|
35
|
-
})(o?.body),
|
|
37
|
+
})(o?.body), T = e("div", {
|
|
36
38
|
name: t,
|
|
37
39
|
slot: l.lineNumbers
|
|
38
|
-
})(o?.lineNumbers),
|
|
40
|
+
})(o?.lineNumbers), k = e("span", {
|
|
39
41
|
name: t,
|
|
40
42
|
slot: l.lineNumber
|
|
41
|
-
})(o?.lineNumber),
|
|
43
|
+
})(o?.lineNumber), z = e("div", {
|
|
42
44
|
name: t,
|
|
43
45
|
slot: l.editorScroller
|
|
44
46
|
})(o?.editorScroller), P = e(m, {
|
|
45
47
|
name: t,
|
|
46
48
|
slot: l.editor,
|
|
47
49
|
shouldForwardProp: (d) => d !== "ownerState"
|
|
48
|
-
})(o?.editor),
|
|
50
|
+
})(o?.editor), _ = e("span", {
|
|
49
51
|
name: t,
|
|
50
52
|
slot: l.placeholder
|
|
51
|
-
})(o?.placeholder),
|
|
53
|
+
})(o?.placeholder), w = e(i, {
|
|
52
54
|
name: t,
|
|
53
55
|
slot: l.skeleton
|
|
54
56
|
})(o?.skeleton);
|
|
55
57
|
export {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
I as BodyResizeShellStyled,
|
|
59
|
+
L as BodyStyled,
|
|
60
|
+
z as EditorScrollerStyled,
|
|
59
61
|
P as EditorStyled,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
62
|
+
f as HeaderBadgesStyled,
|
|
63
|
+
N as HeaderStyled,
|
|
64
|
+
O as LanguageChipIconStyled,
|
|
65
|
+
v as LanguageChipStyled,
|
|
66
|
+
k as LineNumberStyled,
|
|
67
|
+
T as LineNumbersStyled,
|
|
68
|
+
B as LineNumbersToggleStyled,
|
|
69
|
+
_ as PlaceholderStyled,
|
|
70
|
+
R as ReadOnlyChipStyled,
|
|
71
|
+
E as RootStyled,
|
|
72
|
+
w as SkeletonStyled
|
|
70
73
|
};
|