@jbpark/live-editor 1.10.0 → 1.12.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.
@@ -12,4 +12,4 @@ interface Section {
12
12
  }
13
13
  //#endregion
14
14
  export { Section as n, Module as t };
15
- //# sourceMappingURL=index-DdSjzvA3.d.mts.map
15
+ //# sourceMappingURL=index-C8h8TcIl.d.mts.map
package/dist/index.d.mts CHANGED
@@ -1,10 +1,7 @@
1
- import { n as Section } from "./index-DdSjzvA3.mjs";
1
+ import { n as Section } from "./index-C8h8TcIl.mjs";
2
2
  import "@jbpark/ui-kit/style.css";
3
- import * as react from "react";
4
3
  import React$1, { ReactNode } from "react";
5
- import * as react_jsx_runtime0 from "react/jsx-runtime";
6
4
  import { Extension } from "@uiw/react-codemirror";
7
-
8
5
  //#region src/components/frame/iframe.d.ts
9
6
  interface Props$8 {
10
7
  title?: string;
@@ -36,14 +33,7 @@ interface Props$7 extends React$1.ComponentPropsWithRef<'div'> {
36
33
  dynamicTailwind?: boolean;
37
34
  provider?: (children: React$1.ReactNode) => React$1.ReactNode;
38
35
  }
39
- declare const Preview: ({
40
- code,
41
- props,
42
- modules,
43
- dynamicTailwind,
44
- provider,
45
- ...restProps
46
- }: Props$7) => react_jsx_runtime0.JSX.Element;
36
+ declare const Preview: ({ code, props, modules, dynamicTailwind, provider, ...restProps }: Props$7) => React$1.JSX.Element;
47
37
  //#endregion
48
38
  //#region src/components/error/boundary.d.ts
49
39
  interface Props$6 {
@@ -61,7 +51,7 @@ declare class ErrorBoundary extends React$1.Component<Props$6, State> {
61
51
  static getDerivedStateFromError(error: Error): State;
62
52
  componentDidCatch(error: Error, errorInfo: React$1.ErrorInfo): void;
63
53
  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> | react_jsx_runtime0.JSX.Element | null | undefined;
54
+ 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
55
  }
66
56
  //#endregion
67
57
  //#region src/components/error/error.d.ts
@@ -70,32 +60,21 @@ interface Props$5 extends React.ComponentPropsWithRef<'div'> {
70
60
  title?: string;
71
61
  onReset?: () => void;
72
62
  }
73
- declare const Error$2: ({
74
- message,
75
- title,
76
- className,
77
- onReset
78
- }: Props$5) => react_jsx_runtime0.JSX.Element | null;
63
+ declare const Error$2: ({ message, title, className, onReset }: Props$5) => import("react").JSX.Element | null;
79
64
  //#endregion
80
65
  //#region src/components/error/guard.d.ts
81
66
  interface Props$4 {
82
67
  children: React.ReactNode;
83
68
  onError?: (error: Error) => void;
84
69
  }
85
- declare const Guard: ({
86
- children,
87
- onError
88
- }: Props$4) => react_jsx_runtime0.JSX.Element;
70
+ declare const Guard: ({ children, onError }: Props$4) => import("react").JSX.Element;
89
71
  //#endregion
90
72
  //#region src/components/error/runtime.d.ts
91
73
  interface Props$3 extends React.ComponentPropsWithRef<'div'> {
92
74
  open?: boolean;
93
75
  reset?: () => void;
94
76
  }
95
- declare const Runtime: ({
96
- open,
97
- reset
98
- }: Props$3) => react_jsx_runtime0.JSX.Element | null;
77
+ declare const Runtime: ({ open, reset }: Props$3) => import("react").JSX.Element | null;
99
78
  //#endregion
100
79
  //#region src/components/error/index.d.ts
101
80
  type ErrorComponent = typeof Error$2 & {
@@ -118,19 +97,7 @@ interface Props$2 {
118
97
  onSave?: (value: string) => void;
119
98
  onError?: (error: string | null) => void;
120
99
  }
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;
100
+ declare const Core: ({ value, theme, height, className, prettierOptions, fragment, raw, onChange, onSave: _onSave, onError, ...props }: Props$2) => import("react").JSX.Element;
134
101
  //#endregion
135
102
  //#region src/components/editor/editor.d.ts
136
103
  interface EditorRenderData {
@@ -143,16 +110,7 @@ interface Props$1 extends Omit<Props$2, 'onSave' | 'onError'> {
143
110
  debounce?: number;
144
111
  renderEditor?: (data: EditorRenderData) => React.ReactNode;
145
112
  }
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;
113
+ 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
114
  //#endregion
157
115
  //#region src/components/editor/index.d.ts
158
116
  type EditorComponent = typeof Editor$1 & {
@@ -170,10 +128,7 @@ interface DraggableItemProps {
170
128
  item: Section;
171
129
  children: (drag: DraggableItemDragState) => React.ReactNode;
172
130
  }
173
- declare const DraggableItem: ({
174
- item,
175
- children
176
- }: DraggableItemProps) => react.ReactNode;
131
+ declare const DraggableItem: ({ item, children }: DraggableItemProps) => import("react").ReactNode;
177
132
  //#endregion
178
133
  //#region src/components/dnd/dnd.d.ts
179
134
  interface PaletteRenderData {
@@ -197,19 +152,7 @@ interface Props extends Omit<React.ComponentPropsWithRef<'div'>, 'onChange'> {
197
152
  renderPalette?: (data: PaletteRenderData) => React.ReactNode;
198
153
  renderPanel?: (data: PanelRenderData) => React.ReactNode;
199
154
  }
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;
155
+ declare const Dnd$1: ({ value: _value, props, modules, onChange: _onChange, className, items, frame, provider, renderPalette, renderPanel, ...restProps }: Props) => import("react").JSX.Element;
213
156
  //#endregion
214
157
  //#region src/components/dnd/index.d.ts
215
158
  type DndComponent = typeof Dnd$1 & {
@@ -219,94 +162,24 @@ declare const Dnd: DndComponent;
219
162
  //#endregion
220
163
  //#region src/index.d.ts
221
164
  declare const App: {
222
- ({
223
- children
224
- }: {
165
+ ({ children }: {
225
166
  children?: React.ReactNode;
226
- }): react_jsx_runtime0.JSX.Element;
227
- Preview: ({
228
- code,
229
- props,
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) & {
167
+ }): import("react").JSX.Element;
168
+ Preview: ({ code, props, modules, dynamicTailwind, provider, ...restProps }: Props$7) => import("react").JSX.Element;
169
+ Renderer: ({ code, props, modules, dynamicTailwind, provider, ...restProps }: Props$7) => import("react").JSX.Element;
170
+ Error: (({ message, title, className, onReset }: Props$5) => import("react").JSX.Element | null) & {
249
171
  Boundary: typeof ErrorBoundary;
250
- Runtime: ({
251
- open,
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;
172
+ Runtime: ({ open, reset }: Props$3) => import("react").JSX.Element | null;
173
+ Guard: ({ children, onError }: Props$4) => import("react").JSX.Element;
258
174
  };
259
- Editor: (({
260
- defaultValue,
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;
175
+ 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) & {
176
+ Core: ({ value, theme, height, className, prettierOptions, fragment, raw, onChange, onSave: _onSave, onError, ...props }: Props$2) => import("react").JSX.Element;
282
177
  };
283
- Dnd: (({
284
- value: _value,
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;
178
+ Dnd: (({ value: _value, props, modules, onChange: _onChange, className, items, frame, provider, renderPalette, renderPanel, ...restProps }: Props) => import("react").JSX.Element) & {
179
+ DraggableItem: ({ item, children }: DraggableItemProps) => import("react").ReactNode;
300
180
  };
301
181
  };
302
- declare const LiveRenderer: ({
303
- code,
304
- props,
305
- modules,
306
- dynamicTailwind,
307
- provider,
308
- ...restProps
309
- }: Props$7) => react_jsx_runtime0.JSX.Element;
182
+ declare const LiveRenderer: ({ code, props, modules, dynamicTailwind, provider, ...restProps }: Props$7) => import("react").JSX.Element;
310
183
  //#endregion
311
184
  export { Dnd as LiveDnd, Editor as LiveEditor, Error$1 as LiveError, Preview as LivePreview, App as LiveProvider, App as default, LiveRenderer };
312
185
  //# sourceMappingURL=index.d.mts.map