@m4l/components 9.24.0-beta-feature-731-m4l-components-code-editor.0 → 9.24.0-beta-feature-731-m4l-components-code-editor.1
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/helpers/resolveEditorComponent.d.ts +6 -0
- package/components/extended/ReactSimpleCodeEditor/helpers/resolveEditorComponent.d.ts.map +1 -0
- package/components/extended/ReactSimpleCodeEditor/helpers/resolveEditorComponent.js +9 -0
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts.map +1 -1
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.js +28 -27
- package/package.json +6 -6
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as SimpleCodeEditorComponent } from 'react-simple-code-editor';
|
|
2
|
+
/**
|
|
3
|
+
* Resolve CommonJS/ESM default-export nesting until the actual editor component is reached.
|
|
4
|
+
*/
|
|
5
|
+
export declare function resolveCodeEditorComponent(moduleExport: unknown): typeof SimpleCodeEditorComponent;
|
|
6
|
+
//# sourceMappingURL=resolveEditorComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveEditorComponent.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/ReactSimpleCodeEditor/helpers/resolveEditorComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,yBAAyB,MAAM,0BAA0B,CAAC;AAMtE;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,YAAY,EAAE,OAAO,GACpB,OAAO,yBAAyB,CAalC"}
|
|
@@ -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":"AAWA,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,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"}
|
|
@@ -3,61 +3,62 @@ import { styled as e } from "@mui/material/styles";
|
|
|
3
3
|
import { Chip as r } from "../../../Chip/Chip.js";
|
|
4
4
|
import { codeEditorStyles as o } from "../CodeEditor.styles.js";
|
|
5
5
|
import { CODE_EDITOR_KEY_COMPONENT as t } from "../constants.js";
|
|
6
|
+
import { resolveCodeEditorComponent as a } from "../helpers/resolveEditorComponent.js";
|
|
6
7
|
import { CodeEditorSlots as l } from "./CodeEditorEnum.js";
|
|
7
|
-
import { Skeleton as
|
|
8
|
-
const
|
|
8
|
+
import { Skeleton as s } from "../../mui/Skeleton/Skeleton.js";
|
|
9
|
+
const i = a(n), u = e("div", {
|
|
9
10
|
name: t,
|
|
10
11
|
slot: l.root
|
|
11
|
-
})(o?.root),
|
|
12
|
+
})(o?.root), E = e("div", {
|
|
12
13
|
name: t,
|
|
13
14
|
slot: l.header
|
|
14
|
-
})(o?.header),
|
|
15
|
+
})(o?.header), b = e("div", {
|
|
15
16
|
name: t,
|
|
16
17
|
slot: l.headerBadges
|
|
17
|
-
})(o?.headerBadges),
|
|
18
|
+
})(o?.headerBadges), f = e(r, {
|
|
18
19
|
name: t,
|
|
19
20
|
slot: l.languageChip
|
|
20
|
-
})(o?.languageChip),
|
|
21
|
+
})(o?.languageChip), v = e("span", {
|
|
21
22
|
name: t,
|
|
22
23
|
slot: l.languageChipIcon
|
|
23
|
-
})(o?.languageChipIcon),
|
|
24
|
+
})(o?.languageChipIcon), N = e(r, {
|
|
24
25
|
name: t,
|
|
25
26
|
slot: l.readOnlyChip
|
|
26
|
-
})(o?.readOnlyChip),
|
|
27
|
+
})(o?.readOnlyChip), O = e("div", {
|
|
27
28
|
name: t,
|
|
28
29
|
slot: l.body
|
|
29
|
-
})(o?.body),
|
|
30
|
+
})(o?.body), k = e("div", {
|
|
30
31
|
name: t,
|
|
31
32
|
slot: l.lineNumbers
|
|
32
|
-
})(o?.lineNumbers),
|
|
33
|
+
})(o?.lineNumbers), B = e("span", {
|
|
33
34
|
name: t,
|
|
34
35
|
slot: l.lineNumber
|
|
35
|
-
})(o?.lineNumber),
|
|
36
|
+
})(o?.lineNumber), I = e("div", {
|
|
36
37
|
name: t,
|
|
37
38
|
slot: l.editorScroller
|
|
38
|
-
})(o?.editorScroller),
|
|
39
|
+
})(o?.editorScroller), L = e(i, {
|
|
39
40
|
name: t,
|
|
40
41
|
slot: l.editor,
|
|
41
42
|
shouldForwardProp: (d) => d !== "ownerState"
|
|
42
|
-
})(o?.editor),
|
|
43
|
+
})(o?.editor), R = e("span", {
|
|
43
44
|
name: t,
|
|
44
45
|
slot: l.placeholder
|
|
45
|
-
})(o?.placeholder),
|
|
46
|
+
})(o?.placeholder), P = e(s, {
|
|
46
47
|
name: t,
|
|
47
48
|
slot: l.skeleton
|
|
48
49
|
})(o?.skeleton);
|
|
49
50
|
export {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
51
|
+
O as BodyStyled,
|
|
52
|
+
I as EditorScrollerStyled,
|
|
53
|
+
L as EditorStyled,
|
|
54
|
+
b as HeaderBadgesStyled,
|
|
55
|
+
E as HeaderStyled,
|
|
56
|
+
v as LanguageChipIconStyled,
|
|
57
|
+
f as LanguageChipStyled,
|
|
58
|
+
B as LineNumberStyled,
|
|
59
|
+
k as LineNumbersStyled,
|
|
60
|
+
R as PlaceholderStyled,
|
|
61
|
+
N as ReadOnlyChipStyled,
|
|
62
|
+
u as RootStyled,
|
|
63
|
+
P as SkeletonStyled
|
|
63
64
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
|
-
"version": "9.24.0-beta-feature-731-m4l-components-code-editor.
|
|
3
|
+
"version": "9.24.0-beta-feature-731-m4l-components-code-editor.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -56,19 +56,19 @@
|
|
|
56
56
|
"react-color": "2.19.3",
|
|
57
57
|
"@mui/x-date-pickers": "6.20.2",
|
|
58
58
|
"react-rnd": "10.5.2",
|
|
59
|
-
"react-draggable": "4.5.0",
|
|
60
|
-
"react-dropzone": "14.4.1",
|
|
61
59
|
"date-fns": "2.30.0",
|
|
60
|
+
"react-dropzone": "14.4.1",
|
|
62
61
|
"react-spinners": "0.13.8",
|
|
63
|
-
"
|
|
62
|
+
"react-draggable": "4.5.0",
|
|
64
63
|
"chart.js": "4.5.1",
|
|
65
64
|
"chartjs-chart-error-bars": "4.4.5",
|
|
66
65
|
"qrcode.react": "3.2.0",
|
|
66
|
+
"simplebar-react": "3.2.6",
|
|
67
|
+
"react-resizable-panels": "2.1.9",
|
|
68
|
+
"react-simple-code-editor": "0.14.1",
|
|
67
69
|
"react-data-grid": "7.0.0-beta.47",
|
|
68
70
|
"react-dnd": "16.0.1",
|
|
69
71
|
"react-dnd-html5-backend": "16.0.1",
|
|
70
|
-
"react-simple-code-editor": "0.14.1",
|
|
71
|
-
"react-resizable-panels": "2.1.9",
|
|
72
72
|
"react-window": "1.8.11",
|
|
73
73
|
"react-resizable": "3.1.3",
|
|
74
74
|
"@tanstack/react-virtual": "3.13.23"
|