jsx-repl 0.0.1 → 0.0.5

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.
Files changed (46) hide show
  1. package/README.md +6 -86
  2. package/dist/favicon.svg +6 -0
  3. package/dist/{monaco-editor.css → index.css} +475 -6
  4. package/dist/index.js +205534 -0
  5. package/dist/src/Message.d.ts +63 -0
  6. package/dist/src/Repl.d.ts +58 -0
  7. package/dist/src/SplitPane.d.ts +24 -0
  8. package/dist/src/editor/EditorContainer.d.ts +19 -0
  9. package/dist/src/editor/FileSelector.d.ts +23 -0
  10. package/dist/src/editor/ToggleButton.d.ts +20 -0
  11. package/dist/src/editor/sourceMap.d.ts +1 -0
  12. package/dist/src/index.d.ts +8 -0
  13. package/dist/src/monaco/Monaco.d.ts +30 -0
  14. package/dist/src/monaco/env.d.ts +13 -0
  15. package/dist/src/monaco/highlight.d.ts +4 -0
  16. package/dist/src/monaco/language-configs.d.ts +5 -0
  17. package/dist/src/monaco/utils.d.ts +2 -0
  18. package/dist/src/monaco/worker.d.ts +7 -0
  19. package/dist/src/output/Devtools.d.ts +20 -0
  20. package/dist/src/output/Output.d.ts +29 -0
  21. package/dist/src/output/Preview.d.ts +21 -0
  22. package/dist/src/output/PreviewProxy.d.ts +16 -0
  23. package/dist/src/output/SourceMap.d.ts +14 -0
  24. package/dist/src/output/diff.d.ts +1 -0
  25. package/dist/src/output/download.d.ts +2 -0
  26. package/dist/src/output/moduleCompiler.d.ts +2 -0
  27. package/dist/src/output/user/Login.d.ts +14 -0
  28. package/dist/src/output/user/Project.d.ts +14 -0
  29. package/dist/src/presets/index.d.ts +128 -0
  30. package/dist/src/store.d.ts +121 -0
  31. package/dist/src/transform.d.ts +7 -0
  32. package/dist/src/types.d.ts +49 -0
  33. package/dist/src/utils.d.ts +9 -0
  34. package/dist/test/main.d.ts +1 -0
  35. package/package.json +68 -48
  36. package/dist/assets/editor.worker-DPra3Uc7.js +0 -14976
  37. package/dist/assets/vue.worker-Cp3kHWjt.js +0 -35302
  38. package/dist/chunks/utils-CzF1MxZ1.js +0 -954
  39. package/dist/codemirror-editor.css +0 -591
  40. package/dist/codemirror-editor.d.ts +0 -22
  41. package/dist/codemirror-editor.js +0 -15544
  42. package/dist/monaco-editor.d.ts +0 -22
  43. package/dist/monaco-editor.js +0 -191031
  44. package/dist/vue-repl.css +0 -393
  45. package/dist/vue-repl.d.ts +0 -327
  46. package/dist/vue-repl.js +0 -18142
@@ -0,0 +1,63 @@
1
+ declare const _default: (__props: typeof __ctx.props & {
2
+ err?: string | Error | false;
3
+ warn?: string | Error;
4
+ }, __context?: typeof __ctx.context, __ctx?: Awaited<ReturnType<typeof __fn>>, __fn?: ({ err, warn }: {
5
+ err?: string | Error | false;
6
+ warn?: string | Error;
7
+ }) => {
8
+ props: {};
9
+ context: {
10
+ slots: {};
11
+ expose: (exposed: Record<string, any>) => void;
12
+ attrs: Record<string, any>;
13
+ };
14
+ render: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
15
+ [key: string]: any;
16
+ }> | import("vue").VaporRenderResult<import("vue").Block>[] | import("vue").VaporComponentInstance<Readonly<import("vue").TransitionProps & {}>, {}, {
17
+ [x: string]: (...args: any[]) => import("vue").Block;
18
+ }, Record<string, any>, Node, Record<string, any>> | import("vue").VaporComponentInstance<Readonly<import("vue").TransitionProps & {}>, {}, {
19
+ [x: string]: (...args: any[]) => import("vue").Block;
20
+ }, Record<string, any>, import("vue").VaporFragment<import("vue").Block>, Record<string, any>> | import("vue").VaporComponentInstance<Readonly<import("vue").TransitionProps & {}>, {}, {
21
+ [x: string]: (...args: any[]) => import("vue").Block;
22
+ }, Record<string, any>, {
23
+ anchor: Node;
24
+ scope: import("vue").EffectScope | undefined;
25
+ current?: (...args: any[]) => import("vue").Block;
26
+ pending?: {
27
+ render?: (...args: any[]) => import("vue").Block;
28
+ key: any;
29
+ };
30
+ fallback?: (...args: any[]) => import("vue").Block;
31
+ anchorLabel?: string;
32
+ keyed?: boolean;
33
+ attrs?: Record<string, any>;
34
+ setAsyncRef?: (instance: import("vue").VaporComponentInstance) => void;
35
+ getScope?: (key: any) => import("vue").EffectScope | undefined;
36
+ onBeforeTeardown?: ((oldKey: any, nodes: import("vue").Block, scope: import("vue").EffectScope) => boolean)[];
37
+ onBeforeMount?: ((newKey: any, nodes: import("vue").Block, scope: import("vue").EffectScope) => void)[];
38
+ slotOwner: import("vue").VaporComponentInstance | null;
39
+ update(render?: (...args: any[]) => import("vue").Block, key?: any): void;
40
+ renderBranch(render: ((...args: any[]) => import("vue").Block) | undefined, transition: import("vue").VaporTransitionHooks | undefined, parent: ParentNode | null, instance: import("vue").GenericComponentInstance | null): void;
41
+ hydrate: (isEmpty?: boolean) => void;
42
+ $key?: any;
43
+ $transition?: import("vue").VaporTransitionHooks | undefined;
44
+ nodes: import("vue").Block;
45
+ vnode?: VNode | null;
46
+ parentComponent?: import("vue").GenericComponentInstance | null;
47
+ insert?: (parent: ParentNode, anchor: Node | null, transitionHooks?: import("vue").TransitionHooks) => void;
48
+ remove?: (parent?: ParentNode, transitionHooks?: import("vue").TransitionHooks) => void;
49
+ setRef?: (instance: import("vue").VaporComponentInstance, ref: string | globalThis.Ref<any, any> | ((ref: Element | import("vue").VaporComponentInstance, refs: Record<string, any>) => void), refFor: boolean, refKey: string | undefined) => void;
50
+ onUpdated?: ((nodes?: import("vue").Block) => void)[];
51
+ }, Record<string, any>> | import("vue").VaporComponentInstance<Readonly<import("vue").TransitionProps & {}>, {}, {
52
+ [x: string]: (...args: any[]) => import("vue").Block;
53
+ }, Record<string, any>, import("vue").VaporComponentInstance<{}, {}, {
54
+ [x: string]: (...args: any[]) => import("vue").Block;
55
+ }, Record<string, any>, import("vue").Block, Record<string, any>>, Record<string, any>> | import("vue").VaporComponentInstance<Readonly<import("vue").TransitionProps & {}>, {}, {
56
+ [x: string]: (...args: any[]) => import("vue").Block;
57
+ }, Record<string, any>, import("vue").Block[], Record<string, any>>;
58
+ }) => typeof __ctx.render & {
59
+ __ctx?: {
60
+ props: typeof __ctx.props;
61
+ } & typeof __ctx.context;
62
+ };
63
+ export default _default;
@@ -0,0 +1,58 @@
1
+ import { type Store } from './store';
2
+ import { type EditorComponentType } from './types';
3
+ import type * as monaco from 'monaco-editor-core';
4
+ import 'floating-vue/dist/style.css';
5
+ import './dropdown.css';
6
+ export interface Props {
7
+ previewTheme?: boolean;
8
+ editor?: EditorComponentType;
9
+ autoResize?: boolean;
10
+ autoSave?: boolean;
11
+ showCompileOutput?: boolean;
12
+ clearConsole?: boolean;
13
+ store?: Store;
14
+ layout?: 'horizontal' | 'vertical';
15
+ slim?: boolean;
16
+ ssr?: boolean;
17
+ theme?: 'dark' | 'light';
18
+ previewOptions?: {
19
+ headHTML?: string;
20
+ bodyHTML?: string;
21
+ placeholderHTML?: string;
22
+ customCode?: {
23
+ importCode?: string;
24
+ useCode?: string;
25
+ };
26
+ showRuntimeError?: boolean;
27
+ showRuntimeWarning?: boolean;
28
+ };
29
+ editorOptions?: {
30
+ showErrorText?: string | false;
31
+ virtualFilesText?: string | false;
32
+ sourceMapText?: string | false;
33
+ autoSaveText?: string | false;
34
+ monacoOptions?: monaco.editor.IStandaloneEditorConstructionOptions;
35
+ };
36
+ splitPaneOptions?: {
37
+ codeTogglerText?: string;
38
+ outputTogglerText?: string;
39
+ };
40
+ }
41
+ export declare const Repl: (__props: typeof __ctx.props & Props, __context?: typeof __ctx.context, __ctx?: Awaited<ReturnType<typeof __fn>>, __fn?: ({ previewTheme, autoResize, showCompileOutput, clearConsole, ssr, autoSave, layout, previewOptions, editorOptions, splitPaneOptions, editor, slim, theme, }: Props) => {
42
+ props: {
43
+ modelValue: import("vue").UnwrapRef<import("vue").ModelRef<string, string, string, string>>;
44
+ "onUpdate:modelValue"?: ($event: import("vue").UnwrapRef<import("vue").ModelRef<string, string, string, string>>) => any;
45
+ };
46
+ context: {
47
+ slots: {};
48
+ expose: (exposed: {
49
+ reload: () => void;
50
+ }) => void;
51
+ attrs: Record<string, any>;
52
+ };
53
+ render: HTMLDivElement;
54
+ }) => typeof __ctx.render & {
55
+ __ctx?: {
56
+ props: typeof __ctx.props;
57
+ } & typeof __ctx.context;
58
+ };
@@ -0,0 +1,24 @@
1
+ import type { Props } from './Repl';
2
+ declare const _default: (__props: typeof __ctx.props & {
3
+ layout?: Props["layout"];
4
+ inline?: boolean;
5
+ }, __context?: typeof __ctx.context, __ctx?: Awaited<ReturnType<typeof __fn>>, __fn?: (props: {
6
+ layout?: Props["layout"];
7
+ inline?: boolean;
8
+ }) => {
9
+ props: {};
10
+ context: {
11
+ slots: Partial<{
12
+ left: () => JSX.Element;
13
+ right: () => JSX.Element;
14
+ }>;
15
+ expose: (exposed: Record<string, any>) => void;
16
+ attrs: Record<string, any>;
17
+ };
18
+ render: HTMLDivElement;
19
+ }) => typeof __ctx.render & {
20
+ __ctx?: {
21
+ props: typeof __ctx.props;
22
+ } & typeof __ctx.context;
23
+ };
24
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import { type EditorComponentType } from '../types';
2
+ declare const _default: (__props: typeof __ctx.props & {
3
+ editorComponent: EditorComponentType;
4
+ }, __context?: typeof __ctx.context, __ctx?: Awaited<ReturnType<typeof __fn>>, __fn?: (props: {
5
+ editorComponent: EditorComponentType;
6
+ }) => {
7
+ props: {};
8
+ context: {
9
+ slots: {};
10
+ expose: (exposed: Record<string, any>) => void;
11
+ attrs: Record<string, any>;
12
+ };
13
+ render: JSX.Element;
14
+ }) => typeof __ctx.render & {
15
+ __ctx?: {
16
+ props: typeof __ctx.props;
17
+ } & typeof __ctx.context;
18
+ };
19
+ export default _default;
@@ -0,0 +1,23 @@
1
+ import { type ReplFile } from '../store';
2
+ declare const _default: (__props: typeof __ctx.props & {
3
+ files: Record<string, ReplFile>;
4
+ activeFile: ReplFile;
5
+ disabled?: boolean;
6
+ }, __context?: typeof __ctx.context, __ctx?: Awaited<ReturnType<typeof __fn>>, __fn?: (props: {
7
+ files: Record<string, ReplFile>;
8
+ activeFile: ReplFile;
9
+ disabled?: boolean;
10
+ }) => {
11
+ props: {};
12
+ context: {
13
+ slots: {};
14
+ expose: (exposed: Record<string, any>) => void;
15
+ attrs: Record<string, any>;
16
+ };
17
+ render: HTMLDivElement;
18
+ }) => typeof __ctx.render & {
19
+ __ctx?: {
20
+ props: typeof __ctx.props;
21
+ } & typeof __ctx.context;
22
+ };
23
+ export default _default;
@@ -0,0 +1,20 @@
1
+ declare const _default: (__props: typeof __ctx.props & {}, __context?: typeof __ctx.context, __ctx?: Awaited<ReturnType<typeof __fn>>, __fn?: ({ text }: {
2
+ text?: string | undefined;
3
+ }) => {
4
+ props: {
5
+ modelValue?: import("vue").UnwrapRef<import("vue").ModelRef<boolean | undefined, string, boolean | undefined, boolean | undefined>>;
6
+ "onUpdate:modelValue"?: ($event: import("vue").UnwrapRef<import("vue").ModelRef<boolean | undefined, string, boolean | undefined, boolean | undefined>>) => any;
7
+ text?: typeof text;
8
+ };
9
+ context: {
10
+ slots: {};
11
+ expose: (exposed: Record<string, any>) => void;
12
+ attrs: Record<string, any>;
13
+ };
14
+ render: HTMLDivElement;
15
+ }) => typeof __ctx.render & {
16
+ __ctx?: {
17
+ props: typeof __ctx.props;
18
+ } & typeof __ctx.context;
19
+ };
20
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare const useSourceMap: () => void;
@@ -0,0 +1,8 @@
1
+ import 'uno.css';
2
+ export { Repl } from './Repl';
3
+ export { default as Preview } from './output/Preview';
4
+ export { useStore, ReplFile, type StoreState, type Store, type ReplStore, type ImportMap, } from './store';
5
+ export { compileFile } from './transform';
6
+ export type { Props as ReplProps } from './Repl';
7
+ export type { OutputModes } from './types';
8
+ export { serialize } from './utils';
@@ -0,0 +1,30 @@
1
+ import * as monaco from 'monaco-editor-core';
2
+ import { type EditorMode } from '../types';
3
+ declare const _default: (__props: typeof __ctx.props & {}, __context?: typeof __ctx.context, __ctx?: Awaited<ReturnType<typeof __fn>>, __fn?: ({ filename, readonly, value, mode, onChange, }: {
4
+ filename?: string | undefined;
5
+ readonly?: boolean | undefined;
6
+ value?: string | undefined;
7
+ mode?: EditorMode | undefined;
8
+ onChange?: ((value: string) => void) | undefined;
9
+ }) => {
10
+ props: {
11
+ filename: typeof filename;
12
+ readonly?: typeof readonly;
13
+ value?: typeof value;
14
+ mode?: typeof mode;
15
+ onChange?: typeof onChange;
16
+ };
17
+ context: {
18
+ slots: {};
19
+ expose: (exposed: {
20
+ editor: monaco.editor.IStandaloneCodeEditor | undefined;
21
+ }) => void;
22
+ attrs: Record<string, any>;
23
+ };
24
+ render: HTMLDivElement;
25
+ }) => typeof __ctx.render & {
26
+ __ctx?: {
27
+ props: typeof __ctx.props;
28
+ } & typeof __ctx.context;
29
+ };
30
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import type { Store } from '../store';
2
+ export declare function initMonaco(store: Store): void;
3
+ export declare class WorkerHost {
4
+ onFetchCdnFile(uri: string, text: string): void;
5
+ }
6
+ export declare function reloadLanguageTools(store: Store): Promise<void>;
7
+ export interface WorkerMessage {
8
+ event: 'init';
9
+ tsVersion: string;
10
+ tsLocale?: string;
11
+ tsMacroConfig: string;
12
+ }
13
+ export declare function loadMonacoEnv(store: Store): void;
@@ -0,0 +1,4 @@
1
+ export declare function registerHighlighter(): {
2
+ light: string;
3
+ dark: string;
4
+ };
@@ -0,0 +1,5 @@
1
+ import { languages } from 'monaco-editor-core';
2
+ export declare const html: languages.LanguageConfiguration;
3
+ export declare const css: languages.LanguageConfiguration;
4
+ export declare const js: languages.LanguageConfiguration;
5
+ export declare const ts: languages.LanguageConfiguration;
@@ -0,0 +1,2 @@
1
+ import { type Uri, editor } from 'monaco-editor-core';
2
+ export declare function getOrCreateModel(uri: Uri, lang: string | undefined, value: string): editor.ITextModel;
@@ -0,0 +1,7 @@
1
+ export interface CreateData {
2
+ tsconfig: {
3
+ compilerOptions?: import('typescript').CompilerOptions;
4
+ };
5
+ tsMacroConfig: any;
6
+ dependencies: Record<string, string>;
7
+ }
@@ -0,0 +1,20 @@
1
+ declare const _default: (__props: typeof __ctx.props & {}, __context?: typeof __ctx.context, __ctx?: Awaited<ReturnType<typeof __fn>>, __fn?: ({ previewContainer, theme, }: {
2
+ previewContainer?: HTMLDivElement | null | undefined;
3
+ theme?: "dark" | "light" | undefined;
4
+ }) => {
5
+ props: {
6
+ previewContainer?: typeof previewContainer;
7
+ theme?: typeof theme;
8
+ };
9
+ context: {
10
+ slots: {};
11
+ expose: (exposed: Record<string, any>) => void;
12
+ attrs: Record<string, any>;
13
+ };
14
+ render: HTMLDivElement;
15
+ }) => typeof __ctx.render & {
16
+ __ctx?: {
17
+ props: typeof __ctx.props;
18
+ } & typeof __ctx.context;
19
+ };
20
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import { type EditorComponentType } from '../types';
2
+ declare const _default: (__props: typeof __ctx.props & {
3
+ editorComponent: EditorComponentType;
4
+ showCompileOutput?: boolean;
5
+ ssr: boolean;
6
+ }, __context?: typeof __ctx.context, __ctx?: Awaited<ReturnType<typeof __fn>>, __fn?: (props: {
7
+ editorComponent: EditorComponentType;
8
+ showCompileOutput?: boolean;
9
+ ssr: boolean;
10
+ }) => {
11
+ props: {};
12
+ context: {
13
+ slots: {};
14
+ expose: (exposed: {
15
+ reload: () => void;
16
+ previewRef: {
17
+ reload: () => void;
18
+ container: HTMLDivElement | null | undefined;
19
+ } | null | undefined;
20
+ }) => void;
21
+ attrs: Record<string, any>;
22
+ };
23
+ render: JSX.Element;
24
+ }) => typeof __ctx.render & {
25
+ __ctx?: {
26
+ props: typeof __ctx.props;
27
+ } & typeof __ctx.context;
28
+ };
29
+ export default _default;
@@ -0,0 +1,21 @@
1
+ declare const _default: (__props: typeof __ctx.props & {}, __context?: typeof __ctx.context, __ctx?: Awaited<ReturnType<typeof __fn>>, __fn?: ({ ssr }: {
2
+ ssr?: boolean | undefined;
3
+ }) => {
4
+ props: {
5
+ ssr?: typeof ssr;
6
+ };
7
+ context: {
8
+ slots: {};
9
+ expose: (exposed: {
10
+ reload: () => void;
11
+ container: HTMLDivElement | null | undefined;
12
+ }) => void;
13
+ attrs: Record<string, any>;
14
+ };
15
+ render: JSX.Element;
16
+ }) => typeof __ctx.render & {
17
+ __ctx?: {
18
+ props: typeof __ctx.props;
19
+ } & typeof __ctx.context;
20
+ };
21
+ export default _default;
@@ -0,0 +1,16 @@
1
+ export declare class PreviewProxy {
2
+ iframe: HTMLIFrameElement;
3
+ handlers: Record<string, Function>;
4
+ pending_cmds: Map<number, {
5
+ resolve: (value: unknown) => void;
6
+ reject: (reason?: any) => void;
7
+ }>;
8
+ handle_event: (e: any) => void;
9
+ constructor(iframe: HTMLIFrameElement, handlers: Record<string, Function>);
10
+ destroy(): void;
11
+ iframe_command(action: string, args: any): Promise<unknown>;
12
+ handle_command_message(cmd_data: any): void;
13
+ handle_repl_message(event: any): any;
14
+ eval(script: string | string[]): Promise<unknown>;
15
+ handle_links(): Promise<unknown>;
16
+ }
@@ -0,0 +1,14 @@
1
+ declare const _default: (__props: typeof __ctx.props & {}, __context?: typeof __ctx.context, __ctx?: Awaited<ReturnType<typeof __fn>>, __fn?: () => {
2
+ props: {};
3
+ context: {
4
+ slots: {};
5
+ expose: (exposed: Record<string, any>) => void;
6
+ attrs: Record<string, any>;
7
+ };
8
+ render: JSX.Element;
9
+ }) => typeof __ctx.render & {
10
+ __ctx?: {
11
+ props: typeof __ctx.props;
12
+ } & typeof __ctx.context;
13
+ };
14
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare const useDiff: () => void;
@@ -0,0 +1,2 @@
1
+ import type { Store } from '../store';
2
+ export declare function downloadProject(store: Store): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { type Store } from '../store';
2
+ export declare function compileModulesForPreview(store: Store, isSSR?: boolean): string[];
@@ -0,0 +1,14 @@
1
+ declare const _default: (__props: typeof __ctx.props & {}, __context?: typeof __ctx.context, __ctx?: Awaited<ReturnType<typeof __fn>>, __fn?: () => {
2
+ props: {};
3
+ context: {
4
+ slots: {};
5
+ expose: (exposed: Record<string, any>) => void;
6
+ attrs: Record<string, any>;
7
+ };
8
+ render: JSX.Element;
9
+ }) => typeof __ctx.render & {
10
+ __ctx?: {
11
+ props: typeof __ctx.props;
12
+ } & typeof __ctx.context;
13
+ };
14
+ export default _default;
@@ -0,0 +1,14 @@
1
+ declare const _default: (__props: typeof __ctx.props & {}, __context?: typeof __ctx.context, __ctx?: Awaited<ReturnType<typeof __fn>>, __fn?: () => {
2
+ props: {};
3
+ context: {
4
+ slots: {};
5
+ expose: (exposed: Record<string, any>) => void;
6
+ attrs: Record<string, any>;
7
+ };
8
+ render: HTMLDivElement;
9
+ }) => typeof __ctx.render & {
10
+ __ctx?: {
11
+ props: typeof __ctx.props;
12
+ } & typeof __ctx.context;
13
+ };
14
+ export default _default;
@@ -0,0 +1,128 @@
1
+ export declare const packageFile = "package.json";
2
+ export declare const tsconfigFile = "tsconfig.json";
3
+ export declare const viteConfigFile = "vite.config.ts";
4
+ export declare const tsMacroConfigFile = "ts-macro.config.ts";
5
+ export declare const indexHtmlFile = "src/index.html";
6
+ export declare const appFile = "src/App.tsx";
7
+ export declare const defaultPresets: {
8
+ 'vue-jsx': {
9
+ "src/index.html": {
10
+ code: string;
11
+ };
12
+ "src/App.tsx": {
13
+ code: string;
14
+ };
15
+ "vite.config.ts": {
16
+ code: string;
17
+ };
18
+ "ts-macro.config.ts": {
19
+ code: string;
20
+ };
21
+ "tsconfig.json": {
22
+ code: string;
23
+ };
24
+ "package.json": {
25
+ code: string;
26
+ };
27
+ };
28
+ 'vue-jsx-vapor': {
29
+ "src/index.html": {
30
+ code: string;
31
+ };
32
+ "src/App.tsx": {
33
+ code: string;
34
+ };
35
+ "vite.config.ts": {
36
+ code: string;
37
+ };
38
+ "ts-macro.config.ts": {
39
+ code: string;
40
+ };
41
+ "tsconfig.json": {
42
+ code: string;
43
+ };
44
+ "package.json": {
45
+ code: string;
46
+ };
47
+ };
48
+ 'vue-jsx-babel': {
49
+ "src/index.html": {
50
+ code: string;
51
+ };
52
+ "src/App.tsx": {
53
+ code: string;
54
+ };
55
+ "vite.config.ts": {
56
+ code: string;
57
+ };
58
+ "ts-macro.config.ts": {
59
+ code: string;
60
+ };
61
+ "tsconfig.json": {
62
+ code: string;
63
+ };
64
+ "package.json": {
65
+ code: string;
66
+ };
67
+ };
68
+ react: {
69
+ "src/index.html": {
70
+ code: string;
71
+ };
72
+ "src/App.tsx": {
73
+ code: string;
74
+ };
75
+ "vite.config.ts": {
76
+ code: string;
77
+ };
78
+ "ts-macro.config.ts": {
79
+ code: string;
80
+ };
81
+ "tsconfig.json": {
82
+ code: string;
83
+ };
84
+ "package.json": {
85
+ code: string;
86
+ };
87
+ };
88
+ preact: {
89
+ "src/index.html": {
90
+ code: string;
91
+ };
92
+ "src/App.tsx": {
93
+ code: string;
94
+ };
95
+ "vite.config.ts": {
96
+ code: string;
97
+ };
98
+ "ts-macro.config.ts": {
99
+ code: string;
100
+ };
101
+ "tsconfig.json": {
102
+ code: string;
103
+ };
104
+ "package.json": {
105
+ code: string;
106
+ };
107
+ };
108
+ solid: {
109
+ "src/index.html": {
110
+ code: string;
111
+ };
112
+ "src/App.tsx": {
113
+ code: string;
114
+ };
115
+ "vite.config.ts": {
116
+ code: string;
117
+ };
118
+ "ts-macro.config.ts": {
119
+ code: string;
120
+ };
121
+ "tsconfig.json": {
122
+ code: string;
123
+ };
124
+ "package.json": {
125
+ code: string;
126
+ };
127
+ };
128
+ };