@jbpark/live-editor 1.11.0 → 1.13.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/dist/{ast-C0FNDLFQ.mjs → ast-Dq1EfxA5.js} +128 -147
- package/dist/ast-Dq1EfxA5.js.map +1 -0
- package/dist/{document-CBw2uF_P.mjs → document-CSIscFpL.js} +2976 -3446
- package/dist/document-CSIscFpL.js.map +1 -0
- package/dist/{document-DqLm4Vqi.d.mts → document-DXOwpvWM.d.ts} +22 -12
- package/dist/{utils/ast/index.d.mts → index-BVjSMVya.d.ts} +5 -9
- package/dist/{index.d.mts → index.d.ts} +39 -150
- package/dist/{index.mjs → index.js} +799 -516
- package/dist/index.js.map +1 -0
- package/dist/style.css +782 -0
- package/dist/{utils/tailwind/index.mjs → tailwind-CzPhj3D9.js} +3 -4
- package/dist/tailwind-CzPhj3D9.js.map +1 -0
- package/dist/utils/ast/index.d.ts +3 -0
- package/dist/utils/ast/{index.mjs → index.js} +3 -4
- package/dist/utils/{index.d.mts → index.d.ts} +2 -4
- package/dist/utils/{index.mjs → index.js} +3 -4
- package/dist/utils/tailwind/{index.d.mts → index.d.ts} +1 -1
- package/dist/utils/tailwind/index.js +2 -0
- package/dist/{utils-BjYg1Sh8.mjs → utils-B11t9ZYd.js} +1505 -18
- package/dist/utils-B11t9ZYd.js.map +1 -0
- package/package.json +50 -51
- package/dist/ast-C0FNDLFQ.mjs.map +0 -1
- package/dist/document-CBw2uF_P.mjs.map +0 -1
- package/dist/index-DdSjzvA3.d.mts +0 -15
- package/dist/index.css +0 -77
- package/dist/index.css.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/utils/tailwind/index.mjs.map +0 -1
- package/dist/utils-BjYg1Sh8.mjs.map +0 -1
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
//#region src/types/index.d.ts
|
|
2
|
+
interface Module {
|
|
3
|
+
exports: {
|
|
4
|
+
default?: React.ComponentType<Record<string, unknown>>;
|
|
5
|
+
};
|
|
6
|
+
error?: string;
|
|
7
|
+
}
|
|
8
|
+
interface Section {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
code: string;
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region node_modules/.pnpm/@babel+types@7.29.8/node_modules/@babel/types/lib/index-legacy.d.ts
|
|
4
15
|
// NOTE: This file is autogenerated. Do not modify.
|
|
5
16
|
// See packages/babel-types/scripts/generators/typescript-legacy.ts for script used.
|
|
6
17
|
interface BaseComment {
|
|
@@ -208,11 +219,10 @@ interface MemberExpression extends BaseNode {
|
|
|
208
219
|
}
|
|
209
220
|
interface NewExpression extends BaseNode {
|
|
210
221
|
type: "NewExpression";
|
|
211
|
-
callee: Expression
|
|
222
|
+
callee: Expression;
|
|
212
223
|
arguments: (Expression | SpreadElement | ArgumentPlaceholder)[];
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
typeParameters: TSTypeParameterInstantiation | null;
|
|
224
|
+
typeArguments: TypeParameterInstantiation | TSTypeParameterInstantiation | null;
|
|
225
|
+
typeParameters: any;
|
|
216
226
|
}
|
|
217
227
|
interface Program extends BaseNode {
|
|
218
228
|
type: "Program";
|
|
@@ -379,8 +389,8 @@ interface ClassDeclaration extends BaseNode {
|
|
|
379
389
|
interface ExportAllDeclaration extends BaseNode {
|
|
380
390
|
type: "ExportAllDeclaration";
|
|
381
391
|
source: StringLiteral;
|
|
382
|
-
assertions: ImportAttribute[] | null;
|
|
383
392
|
attributes: ImportAttribute[] | null;
|
|
393
|
+
assertions: ImportAttribute[] | null;
|
|
384
394
|
exportKind: "type" | "value" | null;
|
|
385
395
|
}
|
|
386
396
|
interface ExportDefaultDeclaration extends BaseNode {
|
|
@@ -393,8 +403,8 @@ interface ExportNamedDeclaration extends BaseNode {
|
|
|
393
403
|
declaration: Declaration | null;
|
|
394
404
|
specifiers: (ExportSpecifier | ExportDefaultSpecifier | ExportNamespaceSpecifier)[];
|
|
395
405
|
source: StringLiteral | null;
|
|
396
|
-
assertions: ImportAttribute[] | null;
|
|
397
406
|
attributes: ImportAttribute[] | null;
|
|
407
|
+
assertions: ImportAttribute[] | null;
|
|
398
408
|
exportKind: "type" | "value" | null;
|
|
399
409
|
}
|
|
400
410
|
interface ExportSpecifier extends BaseNode {
|
|
@@ -414,8 +424,8 @@ interface ImportDeclaration extends BaseNode {
|
|
|
414
424
|
type: "ImportDeclaration";
|
|
415
425
|
specifiers: (ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier)[];
|
|
416
426
|
source: StringLiteral;
|
|
417
|
-
assertions: ImportAttribute[] | null;
|
|
418
427
|
attributes: ImportAttribute[] | null;
|
|
428
|
+
assertions: ImportAttribute[] | null;
|
|
419
429
|
importKind: "type" | "typeof" | "value" | null;
|
|
420
430
|
module: boolean | null;
|
|
421
431
|
phase: "source" | "defer" | null;
|
|
@@ -1518,5 +1528,5 @@ interface SectionPreviewCache {
|
|
|
1518
1528
|
}
|
|
1519
1529
|
declare const createSectionPreviewCache: () => SectionPreviewCache;
|
|
1520
1530
|
//#endregion
|
|
1521
|
-
export { generateDocumentCode as a, getSections as c, ArrayExpression as d, Expression as f, ObjectExpression as h, createSectionPreviewCache as i, parseDocument as l, Node as m, SectionPreviewCache as n, generateSectionPreview as o, File as p, clearDocumentParseCache as r, generateSectionPreviews as s, DocumentTree as t, replaceDocumentSections as u };
|
|
1522
|
-
//# sourceMappingURL=document-
|
|
1531
|
+
export { Section as _, generateDocumentCode as a, getSections as c, ArrayExpression as d, Expression as f, Module as g, ObjectExpression as h, createSectionPreviewCache as i, parseDocument as l, Node as m, SectionPreviewCache as n, generateSectionPreview as o, File as p, clearDocumentParseCache as r, generateSectionPreviews as s, DocumentTree as t, replaceDocumentSections as u };
|
|
1532
|
+
//# sourceMappingURL=document-DXOwpvWM.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { d as ArrayExpression, f as Expression, h as ObjectExpression, m as Node, p as File } from "./document-DXOwpvWM.js";
|
|
3
2
|
//#region src/utils/ast/types.d.ts
|
|
4
3
|
interface Attribute {
|
|
5
4
|
name: string;
|
|
@@ -64,14 +63,14 @@ declare const parseBinding: (bindingValue: string | null) => BindingItem[];
|
|
|
64
63
|
declare const getCurrentValue: (node: DataAttrNode, property: string) => string;
|
|
65
64
|
declare const findEditableChildren: (node: DataAttrNode) => DataAttrNode[];
|
|
66
65
|
//#endregion
|
|
67
|
-
//#region node_modules/.pnpm/@babel+parser@7.
|
|
66
|
+
//#region node_modules/.pnpm/@babel+parser@7.29.8/node_modules/@babel/parser/typings/babel-parser.d.ts
|
|
68
67
|
declare class Position {
|
|
69
68
|
line: number;
|
|
70
69
|
column: number;
|
|
71
70
|
index: number;
|
|
72
71
|
constructor(line: number, col: number, index: number);
|
|
73
72
|
}
|
|
74
|
-
type SyntaxPlugin = "flow" | "typescript" | "jsx" | "pipelineOperator" | "placeholders";
|
|
73
|
+
type SyntaxPlugin = "flow" | "typescript" | "jsx" | "functionBind" | "pipelineOperator" | "placeholders";
|
|
75
74
|
type ParseErrorCode = "BABEL_PARSER_SYNTAX_ERROR" | "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";
|
|
76
75
|
interface ParseErrorSpecification<ErrorDetails> {
|
|
77
76
|
code: ParseErrorCode;
|
|
@@ -89,9 +88,6 @@ type ParseResult<Result extends File | Expression = File> = Result & {
|
|
|
89
88
|
errors: null | ParseError[];
|
|
90
89
|
tokens?: File["tokens"];
|
|
91
90
|
};
|
|
92
|
-
/**
|
|
93
|
-
* Parse the provided code as an entire ECMAScript program.
|
|
94
|
-
*/
|
|
95
91
|
//#endregion
|
|
96
92
|
//#region src/utils/ast/value.d.ts
|
|
97
93
|
declare const parseValue: (value: unknown) => unknown;
|
|
@@ -138,5 +134,5 @@ interface ValidationResult {
|
|
|
138
134
|
}
|
|
139
135
|
declare const validateBindingValue: (binding: BindingItem, value: unknown) => ValidationResult;
|
|
140
136
|
//#endregion
|
|
141
|
-
export {
|
|
142
|
-
//# sourceMappingURL=index.d.
|
|
137
|
+
export { BindingRenderMap as C, ExtractedNodeValue as D, EditableNodeValueType as E, NodeValueType as O, BindingRenderLeaf as S, DataAttrNode as T, findEditableChildren as _, replaceIds as a, BindingItem as b, clearExtractCache as c, arrayExpressionToCode as d, createNodeFromValue as f, parseValue as g, parseArrayExpression as h, fillIds as i, extract as l, extractObjectProperties as m, validateBindingValue as n, bulkUpdate as o, extractNodeValue as p, clone as r, update as s, ValidationResult as t, generateCode as u, getCurrentValue as v, BindingType as w, BindingOption as x, parseBinding as y };
|
|
138
|
+
//# sourceMappingURL=index-BVjSMVya.d.ts.map
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as Section } from "./document-DXOwpvWM.js";
|
|
2
|
+
import { w as BindingType, x as BindingOption } from "./index-BVjSMVya.js";
|
|
2
3
|
import "@jbpark/ui-kit/style.css";
|
|
3
|
-
import * as react from "react";
|
|
4
4
|
import React$1, { ReactNode } from "react";
|
|
5
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
5
|
import { Extension } from "@uiw/react-codemirror";
|
|
7
|
-
|
|
8
6
|
//#region src/components/frame/iframe.d.ts
|
|
9
7
|
interface Props$8 {
|
|
10
8
|
title?: string;
|
|
@@ -36,14 +34,7 @@ interface Props$7 extends React$1.ComponentPropsWithRef<'div'> {
|
|
|
36
34
|
dynamicTailwind?: boolean;
|
|
37
35
|
provider?: (children: React$1.ReactNode) => React$1.ReactNode;
|
|
38
36
|
}
|
|
39
|
-
declare const Preview: ({
|
|
40
|
-
code,
|
|
41
|
-
props,
|
|
42
|
-
modules,
|
|
43
|
-
dynamicTailwind,
|
|
44
|
-
provider,
|
|
45
|
-
...restProps
|
|
46
|
-
}: Props$7) => react_jsx_runtime0.JSX.Element;
|
|
37
|
+
declare const Preview: ({ code, props, modules, dynamicTailwind, provider, ...restProps }: Props$7) => React$1.JSX.Element;
|
|
47
38
|
//#endregion
|
|
48
39
|
//#region src/components/error/boundary.d.ts
|
|
49
40
|
interface Props$6 {
|
|
@@ -61,7 +52,7 @@ declare class ErrorBoundary extends React$1.Component<Props$6, State> {
|
|
|
61
52
|
static getDerivedStateFromError(error: Error): State;
|
|
62
53
|
componentDidCatch(error: Error, errorInfo: React$1.ErrorInfo): void;
|
|
63
54
|
componentDidUpdate(prevProps: Props$6): void;
|
|
64
|
-
render(): string | number | bigint | boolean | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> |
|
|
55
|
+
render(): string | number | bigint | boolean | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> | React$1.JSX.Element | null | undefined;
|
|
65
56
|
}
|
|
66
57
|
//#endregion
|
|
67
58
|
//#region src/components/error/error.d.ts
|
|
@@ -70,32 +61,21 @@ interface Props$5 extends React.ComponentPropsWithRef<'div'> {
|
|
|
70
61
|
title?: string;
|
|
71
62
|
onReset?: () => void;
|
|
72
63
|
}
|
|
73
|
-
declare const Error$2: ({
|
|
74
|
-
message,
|
|
75
|
-
title,
|
|
76
|
-
className,
|
|
77
|
-
onReset
|
|
78
|
-
}: Props$5) => react_jsx_runtime0.JSX.Element | null;
|
|
64
|
+
declare const Error$2: ({ message, title, className, onReset }: Props$5) => import("react").JSX.Element | null;
|
|
79
65
|
//#endregion
|
|
80
66
|
//#region src/components/error/guard.d.ts
|
|
81
67
|
interface Props$4 {
|
|
82
68
|
children: React.ReactNode;
|
|
83
69
|
onError?: (error: Error) => void;
|
|
84
70
|
}
|
|
85
|
-
declare const Guard: ({
|
|
86
|
-
children,
|
|
87
|
-
onError
|
|
88
|
-
}: Props$4) => react_jsx_runtime0.JSX.Element;
|
|
71
|
+
declare const Guard: ({ children, onError }: Props$4) => import("react").JSX.Element;
|
|
89
72
|
//#endregion
|
|
90
73
|
//#region src/components/error/runtime.d.ts
|
|
91
74
|
interface Props$3 extends React.ComponentPropsWithRef<'div'> {
|
|
92
75
|
open?: boolean;
|
|
93
76
|
reset?: () => void;
|
|
94
77
|
}
|
|
95
|
-
declare const Runtime: ({
|
|
96
|
-
open,
|
|
97
|
-
reset
|
|
98
|
-
}: Props$3) => react_jsx_runtime0.JSX.Element | null;
|
|
78
|
+
declare const Runtime: ({ open, reset }: Props$3) => import("react").JSX.Element | null;
|
|
99
79
|
//#endregion
|
|
100
80
|
//#region src/components/error/index.d.ts
|
|
101
81
|
type ErrorComponent = typeof Error$2 & {
|
|
@@ -118,19 +98,7 @@ interface Props$2 {
|
|
|
118
98
|
onSave?: (value: string) => void;
|
|
119
99
|
onError?: (error: string | null) => void;
|
|
120
100
|
}
|
|
121
|
-
declare const Core: ({
|
|
122
|
-
value,
|
|
123
|
-
theme,
|
|
124
|
-
height,
|
|
125
|
-
className,
|
|
126
|
-
prettierOptions,
|
|
127
|
-
fragment,
|
|
128
|
-
raw,
|
|
129
|
-
onChange,
|
|
130
|
-
onSave: _onSave,
|
|
131
|
-
onError,
|
|
132
|
-
...props
|
|
133
|
-
}: Props$2) => react_jsx_runtime0.JSX.Element;
|
|
101
|
+
declare const Core: ({ value, theme, height, className, prettierOptions, fragment, raw, onChange, onSave: _onSave, onError, ...props }: Props$2) => import("react").JSX.Element;
|
|
134
102
|
//#endregion
|
|
135
103
|
//#region src/components/editor/editor.d.ts
|
|
136
104
|
interface EditorRenderData {
|
|
@@ -143,16 +111,7 @@ interface Props$1 extends Omit<Props$2, 'onSave' | 'onError'> {
|
|
|
143
111
|
debounce?: number;
|
|
144
112
|
renderEditor?: (data: EditorRenderData) => React.ReactNode;
|
|
145
113
|
}
|
|
146
|
-
declare const Editor$1: ({
|
|
147
|
-
defaultValue,
|
|
148
|
-
value: _value,
|
|
149
|
-
debounce,
|
|
150
|
-
onChange: _onChange,
|
|
151
|
-
renderEditor,
|
|
152
|
-
fragment,
|
|
153
|
-
prettierOptions,
|
|
154
|
-
...props
|
|
155
|
-
}: Props$1) => string | number | bigint | boolean | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode> | null | undefined> | react_jsx_runtime0.JSX.Element | null | undefined;
|
|
114
|
+
declare const Editor$1: ({ defaultValue, value: _value, debounce, onChange: _onChange, renderEditor, fragment, prettierOptions, ...props }: Props$1) => string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
156
115
|
//#endregion
|
|
157
116
|
//#region src/components/editor/index.d.ts
|
|
158
117
|
type EditorComponent = typeof Editor$1 & {
|
|
@@ -170,21 +129,33 @@ interface DraggableItemProps {
|
|
|
170
129
|
item: Section;
|
|
171
130
|
children: (drag: DraggableItemDragState) => React.ReactNode;
|
|
172
131
|
}
|
|
173
|
-
declare const DraggableItem: ({
|
|
174
|
-
item,
|
|
175
|
-
children
|
|
176
|
-
}: DraggableItemProps) => react.ReactNode;
|
|
132
|
+
declare const DraggableItem: ({ item, children }: DraggableItemProps) => import("react").ReactNode;
|
|
177
133
|
//#endregion
|
|
178
134
|
//#region src/components/dnd/dnd.d.ts
|
|
179
135
|
interface PaletteRenderData {
|
|
180
136
|
items: Section[];
|
|
181
137
|
onAdd: (item: Section) => void;
|
|
182
138
|
DraggableItem: typeof DraggableItem;
|
|
139
|
+
isMobile: boolean;
|
|
183
140
|
}
|
|
184
141
|
interface PanelRenderData {
|
|
185
142
|
item?: Section;
|
|
186
143
|
onChange: (next: Partial<Section>) => void;
|
|
187
144
|
onDelete: (id: string) => void;
|
|
145
|
+
onMoveUp: () => void;
|
|
146
|
+
onMoveDown: () => void;
|
|
147
|
+
canMoveUp: boolean;
|
|
148
|
+
canMoveDown: boolean;
|
|
149
|
+
bindings: PanelBinding[];
|
|
150
|
+
}
|
|
151
|
+
interface PanelBinding {
|
|
152
|
+
id: string;
|
|
153
|
+
label: string;
|
|
154
|
+
property: string;
|
|
155
|
+
type?: BindingType;
|
|
156
|
+
options?: BindingOption[];
|
|
157
|
+
value: string;
|
|
158
|
+
onChange: (value: string) => void;
|
|
188
159
|
}
|
|
189
160
|
interface Props extends Omit<React.ComponentPropsWithRef<'div'>, 'onChange'> {
|
|
190
161
|
value?: string;
|
|
@@ -197,19 +168,7 @@ interface Props extends Omit<React.ComponentPropsWithRef<'div'>, 'onChange'> {
|
|
|
197
168
|
renderPalette?: (data: PaletteRenderData) => React.ReactNode;
|
|
198
169
|
renderPanel?: (data: PanelRenderData) => React.ReactNode;
|
|
199
170
|
}
|
|
200
|
-
declare const Dnd$1: ({
|
|
201
|
-
value: _value,
|
|
202
|
-
props,
|
|
203
|
-
modules,
|
|
204
|
-
onChange: _onChange,
|
|
205
|
-
className,
|
|
206
|
-
items,
|
|
207
|
-
frame,
|
|
208
|
-
provider,
|
|
209
|
-
renderPalette,
|
|
210
|
-
renderPanel,
|
|
211
|
-
...restProps
|
|
212
|
-
}: Props) => react_jsx_runtime0.JSX.Element;
|
|
171
|
+
declare const Dnd$1: ({ value: _value, props, modules, onChange: _onChange, className, items, frame, provider, renderPalette, renderPanel, ...restProps }: Props) => import("react").JSX.Element;
|
|
213
172
|
//#endregion
|
|
214
173
|
//#region src/components/dnd/index.d.ts
|
|
215
174
|
type DndComponent = typeof Dnd$1 & {
|
|
@@ -219,94 +178,24 @@ declare const Dnd: DndComponent;
|
|
|
219
178
|
//#endregion
|
|
220
179
|
//#region src/index.d.ts
|
|
221
180
|
declare const App: {
|
|
222
|
-
({
|
|
223
|
-
children
|
|
224
|
-
}: {
|
|
181
|
+
({ children }: {
|
|
225
182
|
children?: React.ReactNode;
|
|
226
|
-
}):
|
|
227
|
-
Preview: ({
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
modules,
|
|
231
|
-
dynamicTailwind,
|
|
232
|
-
provider,
|
|
233
|
-
...restProps
|
|
234
|
-
}: Props$7) => react_jsx_runtime0.JSX.Element;
|
|
235
|
-
Renderer: ({
|
|
236
|
-
code,
|
|
237
|
-
props,
|
|
238
|
-
modules,
|
|
239
|
-
dynamicTailwind,
|
|
240
|
-
provider,
|
|
241
|
-
...restProps
|
|
242
|
-
}: Props$7) => react_jsx_runtime0.JSX.Element;
|
|
243
|
-
Error: (({
|
|
244
|
-
message,
|
|
245
|
-
title,
|
|
246
|
-
className,
|
|
247
|
-
onReset
|
|
248
|
-
}: Props$5) => react_jsx_runtime0.JSX.Element | null) & {
|
|
183
|
+
}): import("react").JSX.Element;
|
|
184
|
+
Preview: ({ code, props, modules, dynamicTailwind, provider, ...restProps }: Props$7) => import("react").JSX.Element;
|
|
185
|
+
Renderer: ({ code, props, modules, dynamicTailwind, provider, ...restProps }: Props$7) => import("react").JSX.Element;
|
|
186
|
+
Error: (({ message, title, className, onReset }: Props$5) => import("react").JSX.Element | null) & {
|
|
249
187
|
Boundary: typeof ErrorBoundary;
|
|
250
|
-
Runtime: ({
|
|
251
|
-
|
|
252
|
-
reset
|
|
253
|
-
}: Props$3) => react_jsx_runtime0.JSX.Element | null;
|
|
254
|
-
Guard: ({
|
|
255
|
-
children,
|
|
256
|
-
onError
|
|
257
|
-
}: Props$4) => react_jsx_runtime0.JSX.Element;
|
|
188
|
+
Runtime: ({ open, reset }: Props$3) => import("react").JSX.Element | null;
|
|
189
|
+
Guard: ({ children, onError }: Props$4) => import("react").JSX.Element;
|
|
258
190
|
};
|
|
259
|
-
Editor: (({
|
|
260
|
-
|
|
261
|
-
value: _value,
|
|
262
|
-
debounce,
|
|
263
|
-
onChange: _onChange,
|
|
264
|
-
renderEditor,
|
|
265
|
-
fragment,
|
|
266
|
-
prettierOptions,
|
|
267
|
-
...props
|
|
268
|
-
}: Props$1) => string | number | bigint | boolean | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode> | null | undefined> | react_jsx_runtime0.JSX.Element | null | undefined) & {
|
|
269
|
-
Core: ({
|
|
270
|
-
value,
|
|
271
|
-
theme,
|
|
272
|
-
height,
|
|
273
|
-
className,
|
|
274
|
-
prettierOptions,
|
|
275
|
-
fragment,
|
|
276
|
-
raw,
|
|
277
|
-
onChange,
|
|
278
|
-
onSave: _onSave,
|
|
279
|
-
onError,
|
|
280
|
-
...props
|
|
281
|
-
}: Props$2) => react_jsx_runtime0.JSX.Element;
|
|
191
|
+
Editor: (({ defaultValue, value: _value, debounce, onChange: _onChange, renderEditor, fragment, prettierOptions, ...props }: Props$1) => string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined) & {
|
|
192
|
+
Core: ({ value, theme, height, className, prettierOptions, fragment, raw, onChange, onSave: _onSave, onError, ...props }: Props$2) => import("react").JSX.Element;
|
|
282
193
|
};
|
|
283
|
-
Dnd: (({
|
|
284
|
-
|
|
285
|
-
props,
|
|
286
|
-
modules,
|
|
287
|
-
onChange: _onChange,
|
|
288
|
-
className,
|
|
289
|
-
items,
|
|
290
|
-
frame,
|
|
291
|
-
provider,
|
|
292
|
-
renderPalette,
|
|
293
|
-
renderPanel,
|
|
294
|
-
...restProps
|
|
295
|
-
}: Props) => react_jsx_runtime0.JSX.Element) & {
|
|
296
|
-
DraggableItem: ({
|
|
297
|
-
item,
|
|
298
|
-
children
|
|
299
|
-
}: DraggableItemProps) => react.ReactNode;
|
|
194
|
+
Dnd: (({ value: _value, props, modules, onChange: _onChange, className, items, frame, provider, renderPalette, renderPanel, ...restProps }: Props) => import("react").JSX.Element) & {
|
|
195
|
+
DraggableItem: ({ item, children }: DraggableItemProps) => import("react").ReactNode;
|
|
300
196
|
};
|
|
301
197
|
};
|
|
302
|
-
declare const LiveRenderer: ({
|
|
303
|
-
code,
|
|
304
|
-
props,
|
|
305
|
-
modules,
|
|
306
|
-
dynamicTailwind,
|
|
307
|
-
provider,
|
|
308
|
-
...restProps
|
|
309
|
-
}: Props$7) => react_jsx_runtime0.JSX.Element;
|
|
198
|
+
declare const LiveRenderer: ({ code, props, modules, dynamicTailwind, provider, ...restProps }: Props$7) => import("react").JSX.Element;
|
|
310
199
|
//#endregion
|
|
311
200
|
export { Dnd as LiveDnd, Editor as LiveEditor, Error$1 as LiveError, Preview as LivePreview, App as LiveProvider, App as default, LiveRenderer };
|
|
312
|
-
//# sourceMappingURL=index.d.
|
|
201
|
+
//# sourceMappingURL=index.d.ts.map
|