@vite-hub/ui 0.3.1 → 0.5.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/README.md +107 -81
- package/dist/announce-Cy_Tn9wW.js +32 -0
- package/dist/{code-view-D0bqhogi.js → code-view-DsU-xzic.js} +4 -4
- package/dist/comment-attachments-C4yNbcx5.js +20 -0
- package/dist/{comment-composer-jYv2ULNP.js → comment-composer-D7ZytyER.js} +257 -10
- package/dist/{comment-composer-Cc8Jvu6u.d.ts → comment-composer-DvKMTrAi.d.ts} +1 -1
- package/dist/{comment-layer-ClH4MLj4.d.ts → comment-layer-GTsLdABl.d.ts} +17 -6
- package/dist/{comment-list-B8hphLfS.d.ts → comment-list-BI96empx.d.ts} +2 -2
- package/dist/comment-marks.css +18 -22
- package/dist/{comment-panel-fcKSKwLC.d.ts → comment-panel-CsKWTms_.d.ts} +15 -4
- package/dist/{comment-row-Bbm9WwuF.js → comment-row-JmTC0uXr.js} +2 -2
- package/dist/comment-selection-bar-CyVBNYl9.d.ts +42 -0
- package/dist/comment-send-7bg4NEEM.js +277 -0
- package/dist/comment-send-C45dHC22.d.ts +25 -0
- package/dist/comment-send.css +267 -0
- package/dist/comment-thread-B_Sc2QX6.js +797 -0
- package/dist/{comment-thread-CoTLrdal.d.ts → comment-thread-C6U-bsK_.d.ts} +23 -6
- package/dist/{comments-CkWc2Khc.js → comments-B88zg9gC.js} +66 -10
- package/dist/{comments-Bx2WRsYy.d.ts → comments-D8hulVPy.d.ts} +34 -6
- package/dist/{comments-context-C2lOZyQ5.js → comments-context-DhbIdYQ1.js} +2 -1
- package/dist/{config-Dk67emQt.js → config-B1u7zqMB.js} +8 -1
- package/dist/{config-DgxBW013.d.ts → config-pHazYdq6.d.ts} +11 -0
- package/dist/drop-field-3CDRFFRm.js +163 -0
- package/dist/{editor-C_wt4RRV.js → editor-BHYGLgty.js} +42 -3
- package/dist/effects-Ql6VzCRa.js +2971 -0
- package/dist/format-orwcdZL_.js +39 -0
- package/dist/headless.d.ts +2 -2
- package/dist/headless.js +1 -1
- package/dist/hold-to-delete-DjWzRDyY.d.ts +51 -0
- package/dist/hold-to-delete-ROLQRZg_.js +434 -0
- package/dist/icon-c5Jb_Tl7.d.ts +31 -0
- package/dist/{image-preview-C9tdkmEj.js → image-preview-BigoAvb3.js} +2 -2
- package/dist/{index-BD1e8vx5.d.ts → index-YUvL2nV8.d.ts} +10 -6
- package/dist/index.d.ts +18 -12
- package/dist/index.js +47 -45
- package/dist/install-D5f6msEU.js +17 -0
- package/dist/list-RCbNZ14q.js +271 -0
- package/dist/{markdown-editor-CMbNZOdN.js → markdown-editor-Dfl2DgPS.js} +1 -1
- package/dist/{markdown-editor-DqdZfIEn.d.ts → markdown-editor-wQF0yD5o.d.ts} +1 -1
- package/dist/markdown-editor.d.ts +1 -1
- package/dist/markdown-editor.js +1 -1
- package/dist/motion/core.d.ts +4 -0
- package/dist/motion/core.js +11 -0
- package/dist/motion-core-lHRF8PZz.d.ts +456 -0
- package/dist/motion.d.ts +16 -0
- package/dist/motion.js +13 -0
- package/dist/{nuxt-ui-DSQFzq3s.js → nuxt-ui-CgvMzO5v.js} +20 -14
- package/dist/nuxt.d.ts +2 -2
- package/dist/nuxt.js +20 -5
- package/dist/opt-out-b6bnUjIT.js +208 -0
- package/dist/parts/components/agent-session.js +1 -1
- package/dist/parts/components/attachment.js +1 -1
- package/dist/parts/components/avatar-stack.js +3 -2
- package/dist/parts/components/chat-session.d.ts +1 -1
- package/dist/parts/components/chat.js +2 -2
- package/dist/parts/components/code-block.js +1 -1
- package/dist/parts/components/code-view.js +1 -1
- package/dist/parts/components/comment-composer.d.ts +1 -1
- package/dist/parts/components/comment-composer.js +1 -1
- package/dist/parts/components/comment-layer.d.ts +1 -1
- package/dist/parts/components/comment-layer.js +54 -23
- package/dist/parts/components/comment-list.d.ts +1 -1
- package/dist/parts/components/comment-list.js +13 -7
- package/dist/parts/components/comment-panel.d.ts +1 -1
- package/dist/parts/components/comment-panel.js +46 -20
- package/dist/parts/components/comment-pin.js +1 -1
- package/dist/parts/components/comment-selection-bar.d.ts +2 -0
- package/dist/parts/components/comment-selection-bar.js +117 -0
- package/dist/parts/components/comment-send.d.ts +2 -0
- package/dist/parts/components/comment-send.js +2 -0
- package/dist/parts/components/comment-thread.d.ts +2 -2
- package/dist/parts/components/comment-thread.js +2 -570
- package/dist/parts/components/comments.d.ts +8 -6
- package/dist/parts/components/comments.js +6 -4
- package/dist/parts/components/copy-button.d.ts +12 -2
- package/dist/parts/components/copy-button.js +226 -1
- package/dist/parts/components/drop-field.d.ts +69 -0
- package/dist/parts/components/drop-field.js +77 -0
- package/dist/parts/components/filter-search.js +1 -1
- package/dist/parts/components/hold-to-delete.d.ts +82 -0
- package/dist/parts/components/hold-to-delete.js +76 -0
- package/dist/parts/components/markdown-editor.d.ts +1 -1
- package/dist/parts/components/markdown-editor.js +1 -1
- package/dist/parts/components/markdown-renderer.js +1 -1
- package/dist/parts/components/markdown.js +1 -1
- package/dist/parts/components/message-parts.js +13 -5
- package/dist/parts/components/motion-list.d.ts +42 -0
- package/dist/parts/components/motion-list.js +42 -0
- package/dist/parts/components/motion.d.ts +124 -0
- package/dist/parts/components/motion.js +172 -0
- package/dist/parts/components/progress.d.ts +41 -0
- package/dist/parts/components/progress.js +54 -0
- package/dist/parts/components/prompt-input.d.ts +3 -3
- package/dist/parts/components/prompt-input.js +3 -3
- package/dist/parts/components/relative-time.js +1 -1
- package/dist/parts/components/sync-status.js +2 -1
- package/dist/parts/components/tool-list.d.ts +1 -1
- package/dist/parts/components/trace-run.d.ts +1 -1
- package/dist/parts/components/trace-run.js +2 -2
- package/dist/parts/headless/comments.d.ts +2 -2
- package/dist/parts/headless/comments.js +1 -1
- package/dist/parts/playground/share.d.ts +36 -2
- package/dist/parts/workspace/browser-support-notice.js +12 -4
- package/dist/parts/workspace/codemirror.d.ts +9 -0
- package/dist/parts/workspace/codemirror.js +37 -4
- package/dist/parts/workspace/connect-panel.js +1 -1
- package/dist/parts/workspace/file-icons.d.ts +16 -0
- package/dist/parts/workspace/file-icons.js +82 -0
- package/dist/parts/workspace/icons.d.ts +1 -0
- package/dist/parts/workspace/icons.js +1 -0
- package/dist/parts/workspace/runners/render.d.ts +26 -0
- package/dist/parts/workspace/runners/render.js +124 -0
- package/dist/parts/workspace/runners/web-container.d.ts +29 -0
- package/dist/parts/workspace/runners/web-container.js +186 -0
- package/dist/parts/workspace/workspace-bar.d.ts +51 -0
- package/dist/parts/workspace/workspace-bar.js +51 -0
- package/dist/parts/workspace/workspace-boot-status.js +1 -1
- package/dist/parts/workspace/workspace-editor-head.d.ts +47 -0
- package/dist/parts/workspace/workspace-editor-head.js +66 -0
- package/dist/parts/workspace/workspace-editor.d.ts +17 -0
- package/dist/parts/workspace/workspace-editor.js +29 -3
- package/dist/parts/workspace/workspace-examples.d.ts +74 -0
- package/dist/parts/workspace/workspace-examples.js +72 -0
- package/dist/parts/workspace/workspace-file-link.d.ts +35 -0
- package/dist/parts/workspace/workspace-file-link.js +39 -0
- package/dist/parts/workspace/workspace-file-tree.d.ts +8 -8
- package/dist/parts/workspace/workspace-file-tree.js +26 -19
- package/dist/parts/workspace/workspace-guide.d.ts +52 -0
- package/dist/parts/workspace/workspace-guide.js +91 -0
- package/dist/parts/workspace/workspace-issues.d.ts +46 -0
- package/dist/parts/workspace/workspace-issues.js +49 -0
- package/dist/parts/workspace/workspace-preview.js +1 -1
- package/dist/parts/workspace/workspace-shell.d.ts +2 -88
- package/dist/parts/workspace/workspace-shell.js +131 -78
- package/dist/parts/workspace/workspace-sidebar.d.ts +75 -0
- package/dist/parts/workspace/workspace-sidebar.js +132 -0
- package/dist/parts/workspace/workspace-start.d.ts +47 -0
- package/dist/parts/workspace/workspace-start.js +60 -0
- package/dist/parts/workspace/workspace-status.d.ts +69 -0
- package/dist/parts/workspace/workspace-status.js +74 -0
- package/dist/parts/workspace/workspace-steps.d.ts +2 -0
- package/dist/parts/workspace/workspace-steps.js +128 -0
- package/dist/parts/workspace/workspace-task.d.ts +20 -0
- package/dist/parts/workspace/workspace-task.js +20 -0
- package/dist/parts/workspace/workspace.d.ts +251 -0
- package/dist/parts/workspace/workspace.js +665 -0
- package/dist/{pierre-code-view-xgBL6DO7.js → pierre-code-view-NE35tkmR.js} +37 -17
- package/dist/playground.d.ts +1 -1
- package/dist/progress-C7afI5vq.js +266 -0
- package/dist/registry-D3-ysX7l.js +78 -0
- package/dist/{relative-time-BVmjOsYG.js → relative-time-DgSS3zKN.js} +1 -1
- package/dist/ring-B7Qxu7zd.js +175 -0
- package/dist/runtime/nuxt-plugin.js +2 -2
- package/dist/styles.css +657 -526
- package/dist/text-BCJflBJf.js +826 -0
- package/dist/theme.d.ts +43 -0
- package/dist/theme.js +22 -7
- package/dist/travel-C87xd5Wh.js +182 -0
- package/dist/tween-CO24nMpf.js +62 -0
- package/dist/{types-Dyr6CfBW.d.ts → types-BX64qHlV.d.ts} +1 -1
- package/dist/visual-copy-CrVc3z4n.js +15 -0
- package/dist/workspace-shell-BJGnoF3p.d.ts +112 -0
- package/dist/workspace-steps-Bgph2rpr.d.ts +72 -0
- package/dist/workspace.d.ts +17 -4
- package/dist/workspace.js +16 -3
- package/package.json +22 -11
- package/dist/copy-button-CRN3kmSD.js +0 -253
- package/dist/format-Du58PlsG.js +0 -18
- package/dist/icon-swap.css +0 -69
- package/dist/parts/playground/highlight.d.ts +0 -5
- package/dist/parts/playground/highlight.js +0 -23
- package/dist/parts/playground/playground-render.d.ts +0 -126
- package/dist/parts/playground/playground-render.js +0 -356
- package/dist/parts/workspace/playground-container.d.ts +0 -192
- package/dist/parts/workspace/playground-container.js +0 -603
- package/dist/share-DM4eNy4q.d.ts +0 -37
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import { WorkspaceExample } from "./workspace-examples.js";
|
|
2
|
+
import { a as WorkspaceTabItem, i as WorkspaceTab } from "../../workspace-shell-BJGnoF3p.js";
|
|
3
|
+
import { t as WorkspaceStep } from "../../workspace-steps-Bgph2rpr.js";
|
|
4
|
+
import { ComputedRef, ExtractPropTypes, PropType, Ref, VNode } from "vue";
|
|
5
|
+
//#region src/workspace/workspace.d.ts
|
|
6
|
+
/** Files by project-relative path. */
|
|
7
|
+
export type WorkspaceFiles = Record<string, string>;
|
|
8
|
+
/** The line in the bar that says what the run does now. */
|
|
9
|
+
export interface WorkspaceRunState {
|
|
10
|
+
tone: "busy" | "ready" | "error";
|
|
11
|
+
label: string;
|
|
12
|
+
}
|
|
13
|
+
/** An item of the More menu of the bar, such as "Restart dev server". */
|
|
14
|
+
export interface WorkspaceMenuItem {
|
|
15
|
+
label: string;
|
|
16
|
+
icon?: string;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
onSelect: () => void;
|
|
19
|
+
}
|
|
20
|
+
/** What a runner gets when the workspace starts it. */
|
|
21
|
+
export interface WorkspaceRunInput {
|
|
22
|
+
/** The example that this run starts with. */
|
|
23
|
+
example: WorkspaceExample;
|
|
24
|
+
/** The files to start with: the files of the example, or of a share link. */
|
|
25
|
+
files: WorkspaceFiles;
|
|
26
|
+
/** Shows an output tab, such as `"terminal"`. */
|
|
27
|
+
showTab: (tab: WorkspaceTab) => void;
|
|
28
|
+
/** Opens a file of the run in the editor, such as the file of an issue. */
|
|
29
|
+
show: (path: string) => void;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* One run of the files. The workspace starts one in the setup of a component, so a run can use `onScopeDispose` to
|
|
33
|
+
* stop. It starts a new run when `keeps` says that an example cannot open in this one.
|
|
34
|
+
*/
|
|
35
|
+
export interface WorkspaceRun {
|
|
36
|
+
/** The files of the run, with the edits of the reader. */
|
|
37
|
+
files: Readonly<Ref<WorkspaceFiles>>;
|
|
38
|
+
/** Writes files. `replace` removes the files that `files` does not name. */
|
|
39
|
+
setFiles: (files: WorkspaceFiles, options?: {
|
|
40
|
+
mode?: "merge" | "replace";
|
|
41
|
+
}) => Promise<void>;
|
|
42
|
+
/** Whether `example` can open in this run. `false` makes the workspace start a new run for it. */
|
|
43
|
+
keeps: (example: WorkspaceExample) => boolean;
|
|
44
|
+
/** Opens the files of an example that this run keeps. */
|
|
45
|
+
open: (example: WorkspaceExample, files: WorkspaceFiles) => Promise<void>;
|
|
46
|
+
/** The output tabs of the runner, before the tabs of the page. */
|
|
47
|
+
tabs: Readonly<Ref<readonly WorkspaceTabItem[]>>;
|
|
48
|
+
/** Renders the panel of one of `tabs`. */
|
|
49
|
+
panel: (tab: WorkspaceTab) => VNode | VNode[] | undefined;
|
|
50
|
+
/** The state line in the bar. */
|
|
51
|
+
state?: Readonly<Ref<WorkspaceRunState | undefined>>;
|
|
52
|
+
/** The items of the More menu of the bar. Without items there is no More button. */
|
|
53
|
+
actions?: Readonly<Ref<readonly WorkspaceMenuItem[]>>;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Runs the files of a `Workspace`: `webContainer()` runs an app with a dev server, and `render()` renders the files to
|
|
57
|
+
* a page with a function.
|
|
58
|
+
*/
|
|
59
|
+
export interface WorkspaceRunner {
|
|
60
|
+
/** Starts a run. The workspace calls it in the setup of a component. */
|
|
61
|
+
start: (input: WorkspaceRunInput) => WorkspaceRun;
|
|
62
|
+
/** Whether this browser can run it. The workspace asks after mount. Without it, every browser can. */
|
|
63
|
+
supported?: () => boolean;
|
|
64
|
+
/** Only desktops start it on their own. Tablets start it on a tap, and phones show a card with Copy link and Download. */
|
|
65
|
+
desktop?: boolean;
|
|
66
|
+
}
|
|
67
|
+
/** What `useWorkspace()` and the slots get. */
|
|
68
|
+
export interface WorkspaceContext {
|
|
69
|
+
/** The files of the run, with the edits. */
|
|
70
|
+
files: Readonly<Ref<WorkspaceFiles>>;
|
|
71
|
+
/** Writes one file. */
|
|
72
|
+
setFile: (path: string, contents: string) => Promise<void>;
|
|
73
|
+
/** The paths whose contents differ from the files of the open example, sorted. */
|
|
74
|
+
edited: ComputedRef<readonly string[]>;
|
|
75
|
+
/** The open example. */
|
|
76
|
+
example: ComputedRef<WorkspaceExample>;
|
|
77
|
+
/** Opens `path` in the editor. */
|
|
78
|
+
show: (path: string) => void;
|
|
79
|
+
/** Shows an output tab, such as `"terminal"`. */
|
|
80
|
+
showTab: (tab: WorkspaceTab) => void;
|
|
81
|
+
/** Runs `action` at once when nothing is edited. Otherwise it asks the reader first, with `confirm` on the button. */
|
|
82
|
+
guard: (title: string, confirm: string, action: () => void) => void;
|
|
83
|
+
/** The runner of the workspace. */
|
|
84
|
+
runner: WorkspaceRunner;
|
|
85
|
+
/** The current run. */
|
|
86
|
+
run: WorkspaceRun;
|
|
87
|
+
}
|
|
88
|
+
/** The slot props of `Workspace`: the context with its refs unwrapped. */
|
|
89
|
+
export type WorkspaceSlotProps = Omit<WorkspaceContext, "edited" | "example" | "files"> & {
|
|
90
|
+
readonly edited: readonly string[];
|
|
91
|
+
readonly example: WorkspaceExample;
|
|
92
|
+
readonly files: WorkspaceFiles;
|
|
93
|
+
};
|
|
94
|
+
/** The workspace around the calling component: its files, edits, and actions. Call it in a slot of `Workspace`. */
|
|
95
|
+
export declare function useWorkspace(): WorkspaceContext;
|
|
96
|
+
/** Where the page runs: `pending` before mount, then by the viewport width. */
|
|
97
|
+
export type WorkspaceDevice = "pending" | "phone" | "tablet" | "desktop";
|
|
98
|
+
/**
|
|
99
|
+
* The device of the page, and whether the browser can run `runner`, known after mount. Desktops are 64rem wide or
|
|
100
|
+
* more, and tablets 48rem. Use it to place the workspace, as a page with a lesson next to it does.
|
|
101
|
+
*/
|
|
102
|
+
export declare function useWorkspaceDevice(runner?: Pick<WorkspaceRunner, "supported">): {
|
|
103
|
+
device: Ref<WorkspaceDevice, WorkspaceDevice>;
|
|
104
|
+
supported: Ref<boolean | undefined, boolean | undefined>;
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* A complete workspace: the bar, the file tree, the editor, the output, and with `steps` the guide of a lesson. The
|
|
108
|
+
* runner runs the files: `webContainer()` runs an app in the browser, and `render()` renders the files to a page. It
|
|
109
|
+
* tracks edits, asks before it discards them, copies share links, and downloads zips.
|
|
110
|
+
*/
|
|
111
|
+
export declare const Workspace: import("vue").DefineComponent<ExtractPropTypes<{
|
|
112
|
+
examples: {
|
|
113
|
+
required: true;
|
|
114
|
+
type: PropType<readonly WorkspaceExample[]>;
|
|
115
|
+
};
|
|
116
|
+
runner: {
|
|
117
|
+
required: true;
|
|
118
|
+
type: PropType<WorkspaceRunner>;
|
|
119
|
+
};
|
|
120
|
+
example: {
|
|
121
|
+
default: undefined;
|
|
122
|
+
type: StringConstructor;
|
|
123
|
+
};
|
|
124
|
+
selected: {
|
|
125
|
+
default: undefined;
|
|
126
|
+
type: StringConstructor;
|
|
127
|
+
};
|
|
128
|
+
steps: {
|
|
129
|
+
default: () => never[];
|
|
130
|
+
type: PropType<readonly WorkspaceStep[]>;
|
|
131
|
+
};
|
|
132
|
+
step: {
|
|
133
|
+
default: undefined;
|
|
134
|
+
type: NumberConstructor;
|
|
135
|
+
};
|
|
136
|
+
guide: {
|
|
137
|
+
default: undefined;
|
|
138
|
+
type: PropType<"top" | "side">;
|
|
139
|
+
};
|
|
140
|
+
tabs: {
|
|
141
|
+
default: () => never[];
|
|
142
|
+
type: PropType<readonly WorkspaceTabItem[]>;
|
|
143
|
+
};
|
|
144
|
+
share: {
|
|
145
|
+
default: boolean;
|
|
146
|
+
type: BooleanConstructor;
|
|
147
|
+
};
|
|
148
|
+
name: {
|
|
149
|
+
default: string;
|
|
150
|
+
type: StringConstructor;
|
|
151
|
+
};
|
|
152
|
+
start: {
|
|
153
|
+
default: boolean;
|
|
154
|
+
type: BooleanConstructor;
|
|
155
|
+
};
|
|
156
|
+
label: {
|
|
157
|
+
default: string;
|
|
158
|
+
type: StringConstructor;
|
|
159
|
+
};
|
|
160
|
+
open: {
|
|
161
|
+
default: boolean;
|
|
162
|
+
type: BooleanConstructor;
|
|
163
|
+
};
|
|
164
|
+
reset: {
|
|
165
|
+
default: undefined;
|
|
166
|
+
type: PropType<(files: WorkspaceFiles, example: WorkspaceExample) => WorkspaceFiles>;
|
|
167
|
+
};
|
|
168
|
+
}>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
169
|
+
[key: string]: any;
|
|
170
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
171
|
+
"update:example": (id: string) => boolean;
|
|
172
|
+
"update:selected": (path: string) => boolean;
|
|
173
|
+
"update:step": (step: number) => boolean;
|
|
174
|
+
"update:open": (open: boolean) => boolean;
|
|
175
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
176
|
+
examples: {
|
|
177
|
+
required: true;
|
|
178
|
+
type: PropType<readonly WorkspaceExample[]>;
|
|
179
|
+
};
|
|
180
|
+
runner: {
|
|
181
|
+
required: true;
|
|
182
|
+
type: PropType<WorkspaceRunner>;
|
|
183
|
+
};
|
|
184
|
+
example: {
|
|
185
|
+
default: undefined;
|
|
186
|
+
type: StringConstructor;
|
|
187
|
+
};
|
|
188
|
+
selected: {
|
|
189
|
+
default: undefined;
|
|
190
|
+
type: StringConstructor;
|
|
191
|
+
};
|
|
192
|
+
steps: {
|
|
193
|
+
default: () => never[];
|
|
194
|
+
type: PropType<readonly WorkspaceStep[]>;
|
|
195
|
+
};
|
|
196
|
+
step: {
|
|
197
|
+
default: undefined;
|
|
198
|
+
type: NumberConstructor;
|
|
199
|
+
};
|
|
200
|
+
guide: {
|
|
201
|
+
default: undefined;
|
|
202
|
+
type: PropType<"top" | "side">;
|
|
203
|
+
};
|
|
204
|
+
tabs: {
|
|
205
|
+
default: () => never[];
|
|
206
|
+
type: PropType<readonly WorkspaceTabItem[]>;
|
|
207
|
+
};
|
|
208
|
+
share: {
|
|
209
|
+
default: boolean;
|
|
210
|
+
type: BooleanConstructor;
|
|
211
|
+
};
|
|
212
|
+
name: {
|
|
213
|
+
default: string;
|
|
214
|
+
type: StringConstructor;
|
|
215
|
+
};
|
|
216
|
+
start: {
|
|
217
|
+
default: boolean;
|
|
218
|
+
type: BooleanConstructor;
|
|
219
|
+
};
|
|
220
|
+
label: {
|
|
221
|
+
default: string;
|
|
222
|
+
type: StringConstructor;
|
|
223
|
+
};
|
|
224
|
+
open: {
|
|
225
|
+
default: boolean;
|
|
226
|
+
type: BooleanConstructor;
|
|
227
|
+
};
|
|
228
|
+
reset: {
|
|
229
|
+
default: undefined;
|
|
230
|
+
type: PropType<(files: WorkspaceFiles, example: WorkspaceExample) => WorkspaceFiles>;
|
|
231
|
+
};
|
|
232
|
+
}>> & Readonly<{
|
|
233
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
234
|
+
"onUpdate:step"?: ((step: number) => any) | undefined;
|
|
235
|
+
"onUpdate:example"?: ((id: string) => any) | undefined;
|
|
236
|
+
"onUpdate:selected"?: ((path: string) => any) | undefined;
|
|
237
|
+
}>, {
|
|
238
|
+
name: string;
|
|
239
|
+
label: string;
|
|
240
|
+
reset: (files: WorkspaceFiles, example: WorkspaceExample) => WorkspaceFiles;
|
|
241
|
+
start: boolean;
|
|
242
|
+
open: boolean;
|
|
243
|
+
step: number;
|
|
244
|
+
selected: string;
|
|
245
|
+
steps: readonly WorkspaceStep[];
|
|
246
|
+
tabs: readonly WorkspaceTabItem[];
|
|
247
|
+
example: string;
|
|
248
|
+
guide: "top" | "side";
|
|
249
|
+
share: boolean;
|
|
250
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
251
|
+
//#endregion
|