@deot/docs-playground 1.0.10 → 1.1.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/dist/index.d.ts CHANGED
@@ -31,13 +31,16 @@ onNavigate?: ((to: string) => any) | undefined;
31
31
  "onUpdate:entry"?: ((entry: string) => any) | undefined;
32
32
  "onUpdate:viewport"?: ((viewport: PlaygroundViewport) => any) | undefined;
33
33
  }>, {
34
+ title: string;
34
35
  files: PlaygroundFiles;
35
- entry: string;
36
36
  views: readonly string[];
37
+ entry: string;
37
38
  modelValue: string;
38
39
  options: PlaygroundOptions;
39
40
  previewInset: PlaygroundPreviewInset;
41
+ previewScroller: PlaygroundPreviewScroller;
40
42
  styleless: boolean;
43
+ id: string;
41
44
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
42
45
 
43
46
  declare type __VLS_Props = {
@@ -58,7 +61,10 @@ declare type __VLS_Props_2 = {
58
61
  styleless?: boolean;
59
62
  options?: PlaygroundOptions;
60
63
  previewInset?: PlaygroundPreviewInset;
61
- expand?: PlaygroundExpand;
64
+ expandable?: PlaygroundExpandable;
65
+ title?: string;
66
+ id?: string;
67
+ previewScroller?: PlaygroundPreviewScroller;
62
68
  previewOptions?: PlaygroundPreviewOptions;
63
69
  locale?: Language;
64
70
  };
@@ -79,7 +85,11 @@ export declare const createBuiltinImports: (cdnURL?: string) => Record<string, s
79
85
 
80
86
  export declare const createBuiltinStyles: (cdnURL?: string) => Record<string, string>;
81
87
 
82
- export declare const createRuntimePreviewOptions: (cdnURL?: string) => NonNullable<SandboxProps["previewOptions"]>;
88
+ declare interface CreateRuntimePreviewOptions {
89
+ previewScroller?: boolean;
90
+ }
91
+
92
+ export declare const createRuntimePreviewOptions: (cdnURL?: string, options?: CreateRuntimePreviewOptions) => NonNullable<SandboxProps["previewOptions"]>;
83
93
 
84
94
  export declare const DEFAULT_CDN_URL = "https://cdn.jsdelivr.net/npm";
85
95
 
@@ -157,7 +167,7 @@ export declare const normalizeCdnURL: (cdnURL?: string) => string;
157
167
 
158
168
  export declare const Playground: typeof __VLS_export_2;
159
169
 
160
- export declare type PlaygroundExpand = true | number;
170
+ export declare type PlaygroundExpandable = true | number;
161
171
 
162
172
  export declare type PlaygroundFiles = Record<string, string>;
163
173
 
@@ -175,6 +185,8 @@ export declare type PlaygroundPreviewInset = number | [vertical: number, horizon
175
185
 
176
186
  export declare type PlaygroundPreviewOptions = SandboxProps['previewOptions'];
177
187
 
188
+ export declare type PlaygroundPreviewScroller = boolean;
189
+
178
190
  export declare type PlaygroundView = 'runtime' | 'files';
179
191
 
180
192
  export declare type PlaygroundViewport = 'auto' | number | [width: number, height: number];
@@ -184,6 +196,12 @@ export declare interface PlaygroundViewsProps {
184
196
  activeView: PlaygroundView;
185
197
  }
186
198
 
199
+ export declare const PREVIEW_SCROLL_CONTENT_CLASS = "docs-playground-preview-scroll__content";
200
+
201
+ export declare const PREVIEW_SCROLL_HTML_CLASS = "docs-playground-preview-scroll";
202
+
203
+ export declare const PREVIEW_SCROLLER_USE_CODE: string;
204
+
187
205
  export declare const registerVueHighlight: (api?: HLJSApi) => HLJSApi;
188
206
 
189
207
  export declare const removePlaygroundImportMapOverride: (alias: string) => {
@@ -196,6 +214,8 @@ export declare const removePlaygroundStyleOverride: (alias: string) => {
196
214
 
197
215
  export declare const resolveHighlightLanguage: (filename: string) => "xml" | "javascript" | "typescript" | "css" | "scss" | "vue" | "json" | "plaintext";
198
216
 
217
+ export declare const resolvePlaygroundTitleId: (title: string, explicitId?: string, isOccupied?: (id: string) => boolean) => string;
218
+
199
219
  export declare const setPlaygroundImportMapOverrides: (value?: Record<string, string>) => void;
200
220
 
201
221
  export declare const setPlaygroundSiteModules: (value?: Record<string, string>) => void;
@@ -204,6 +224,8 @@ export declare const setPlaygroundSiteStyles: (value?: Record<string, string>) =
204
224
 
205
225
  export declare const setPlaygroundStyleOverrides: (value?: Record<string, string>) => void;
206
226
 
227
+ export declare const slugifyPlaygroundTitle: (title: string) => string;
228
+
207
229
  export declare const vueHighlight: LanguageFn;
208
230
 
209
231
  export { }