@fuzdev/fuz_ui 0.199.0 → 0.200.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/ApiDeclarationList.svelte +2 -1
- package/dist/ApiDeclarationList.svelte.d.ts.map +1 -1
- package/dist/ApiModule.svelte +2 -2
- package/dist/DeclarationDetail.svelte +145 -90
- package/dist/DeclarationDetail.svelte.d.ts.map +1 -1
- package/dist/ProjectLinks.svelte +1 -1
- package/dist/api_search.svelte.d.ts.map +1 -1
- package/dist/api_search.svelte.js +4 -2
- package/dist/declaration.svelte.d.ts +11 -0
- package/dist/declaration.svelte.d.ts.map +1 -1
- package/dist/declaration.svelte.js +13 -1
- package/dist/module.svelte.d.ts +2 -0
- package/dist/module.svelte.d.ts.map +1 -1
- package/dist/module.svelte.js +2 -0
- package/package.json +5 -5
- package/src/lib/api_search.svelte.ts +4 -2
- package/src/lib/declaration.svelte.ts +16 -1
- package/src/lib/module.svelte.ts +4 -0
|
@@ -24,8 +24,9 @@
|
|
|
24
24
|
{:else}
|
|
25
25
|
{#each declarations as declaration (`${declaration.module_path}:${declaration.name}`)}
|
|
26
26
|
<TomeSection>
|
|
27
|
+
<!-- `text` drives the slug/anchor (bare name); display shows generics via `display_name` -->
|
|
27
28
|
<TomeSectionHeader text={declaration.name}>
|
|
28
|
-
<div class="word-break:break-all">{declaration.
|
|
29
|
+
<div class="word-break:break-all">{declaration.display_name}</div>
|
|
29
30
|
</TomeSectionHeader>
|
|
30
31
|
<article id={declaration.name}>
|
|
31
32
|
<DeclarationDetail {declaration} />
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiDeclarationList.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/ApiDeclarationList.svelte"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAKxD,KAAK,gBAAgB,GAAI;IACxB,YAAY,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;
|
|
1
|
+
{"version":3,"file":"ApiDeclarationList.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/ApiDeclarationList.svelte"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAKxD,KAAK,gBAAgB,GAAI;IACxB,YAAY,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAqCH,QAAA,MAAM,kBAAkB,sDAAwC,CAAC;AACjE,KAAK,kBAAkB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAChE,eAAe,kBAAkB,CAAC"}
|
package/dist/ApiModule.svelte
CHANGED
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
</TomeSection>
|
|
116
116
|
|
|
117
117
|
<!-- Depends on section -->
|
|
118
|
-
{#if module.
|
|
118
|
+
{#if module.has_dependencies}
|
|
119
119
|
<TomeSection>
|
|
120
120
|
<TomeSectionHeader text="Depends on" />
|
|
121
121
|
<ul>
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
{/if}
|
|
130
130
|
|
|
131
131
|
<!-- Imported by section -->
|
|
132
|
-
{#if module.
|
|
132
|
+
{#if module.has_dependents}
|
|
133
133
|
<TomeSection>
|
|
134
134
|
<TomeSectionHeader text="Imported by" />
|
|
135
135
|
<ul>
|
|
@@ -11,6 +11,7 @@ including parameters, props, members, overloads, intersects, and more.
|
|
|
11
11
|
-->
|
|
12
12
|
<script lang="ts">
|
|
13
13
|
import Code from '@fuzdev/fuz_code/Code.svelte';
|
|
14
|
+
import type {ParameterJsonInput} from 'svelte-docinfo/types.js';
|
|
14
15
|
|
|
15
16
|
import type {Declaration} from './declaration.svelte.js';
|
|
16
17
|
import TypeLink from './TypeLink.svelte';
|
|
@@ -19,8 +20,90 @@ including parameters, props, members, overloads, intersects, and more.
|
|
|
19
20
|
import {tsdoc_see_to_mdz} from './tsdoc_mdz.js';
|
|
20
21
|
|
|
21
22
|
const {declaration}: {declaration: Declaration} = $props();
|
|
23
|
+
|
|
24
|
+
// Optional prose metadata shared by component props and nested members,
|
|
25
|
+
// rendered in a compact form (the top-level declaration uses prominent
|
|
26
|
+
// sections for the same fields instead).
|
|
27
|
+
interface DocExtras {
|
|
28
|
+
deprecatedMessage?: string;
|
|
29
|
+
since?: string;
|
|
30
|
+
examples?: Array<string>;
|
|
31
|
+
seeAlso?: Array<string>;
|
|
32
|
+
throws?: Array<{type?: string; description: string}>;
|
|
33
|
+
}
|
|
22
34
|
</script>
|
|
23
35
|
|
|
36
|
+
<!-- A single function/method parameter: name, description, type, and optional/default. -->
|
|
37
|
+
{#snippet param_detail(param: ParameterJsonInput)}
|
|
38
|
+
<section>
|
|
39
|
+
<h4>
|
|
40
|
+
<code
|
|
41
|
+
>{param.name}{#if param.optional}<strong>?</strong>{/if}</code
|
|
42
|
+
>
|
|
43
|
+
</h4>
|
|
44
|
+
{#if param.description}
|
|
45
|
+
<Mdz content={param.description} />
|
|
46
|
+
{/if}
|
|
47
|
+
<div class="row gap_md mb_sm">
|
|
48
|
+
<strong>type</strong>
|
|
49
|
+
<TypeLink type={param.type} />
|
|
50
|
+
</div>
|
|
51
|
+
{#if param.optional || param.defaultValue}
|
|
52
|
+
<div class="row gap_md">
|
|
53
|
+
{#if param.optional}
|
|
54
|
+
<strong>optional</strong>
|
|
55
|
+
{/if}
|
|
56
|
+
{#if param.defaultValue}
|
|
57
|
+
<strong>default</strong>
|
|
58
|
+
<Code lang="ts" content={param.defaultValue} />
|
|
59
|
+
{/if}
|
|
60
|
+
</div>
|
|
61
|
+
{/if}
|
|
62
|
+
</section>
|
|
63
|
+
{/snippet}
|
|
64
|
+
|
|
65
|
+
<!-- Compact prose metadata for props and members (deprecated, since, examples, see also, throws). -->
|
|
66
|
+
{#snippet doc_extras(item: DocExtras)}
|
|
67
|
+
<!-- eslint-disable-next-line @typescript-eslint/no-deprecated -->
|
|
68
|
+
{#if item.deprecatedMessage !== undefined}
|
|
69
|
+
<p class="row gap_md">
|
|
70
|
+
<span class="chip">⚠️ deprecated</span>
|
|
71
|
+
<!-- eslint-disable-next-line @typescript-eslint/no-deprecated -->
|
|
72
|
+
{#if item.deprecatedMessage}{item.deprecatedMessage}{/if}
|
|
73
|
+
</p>
|
|
74
|
+
{/if}
|
|
75
|
+
{#if item.since}
|
|
76
|
+
<p><strong>since</strong> {item.since}</p>
|
|
77
|
+
{/if}
|
|
78
|
+
{#if item.examples?.length}
|
|
79
|
+
{#each item.examples as example (example)}
|
|
80
|
+
<Mdz content={example} />
|
|
81
|
+
{/each}
|
|
82
|
+
{/if}
|
|
83
|
+
{#if item.seeAlso?.length}
|
|
84
|
+
<p><strong>see also</strong></p>
|
|
85
|
+
<ul>
|
|
86
|
+
{#each item.seeAlso as ref (ref)}
|
|
87
|
+
<li><Mdz content={tsdoc_see_to_mdz(ref)} /></li>
|
|
88
|
+
{/each}
|
|
89
|
+
</ul>
|
|
90
|
+
{/if}
|
|
91
|
+
{#if item.throws?.length}
|
|
92
|
+
<p><strong>throws</strong></p>
|
|
93
|
+
<ul>
|
|
94
|
+
{#each item.throws as thrown (thrown)}
|
|
95
|
+
<li>
|
|
96
|
+
{#if thrown.type}
|
|
97
|
+
<code>{thrown.type}</code> - {thrown.description}
|
|
98
|
+
{:else}
|
|
99
|
+
{thrown.description}
|
|
100
|
+
{/if}
|
|
101
|
+
</li>
|
|
102
|
+
{/each}
|
|
103
|
+
</ul>
|
|
104
|
+
{/if}
|
|
105
|
+
{/snippet}
|
|
106
|
+
|
|
24
107
|
<!-- Metadata -->
|
|
25
108
|
<p class="row justify-content:space-between">
|
|
26
109
|
<ModuleLink module_path={declaration.module_path} />
|
|
@@ -31,21 +114,37 @@ including parameters, props, members, overloads, intersects, and more.
|
|
|
31
114
|
</p>
|
|
32
115
|
|
|
33
116
|
<!-- chips -->
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
117
|
+
<!-- eslint-disable-next-line @typescript-eslint/no-deprecated -->
|
|
118
|
+
{#if declaration.is_deprecated || declaration.reactivity || declaration.accepts_children || declaration.alias_of}
|
|
119
|
+
<p class="row gap_md flex-wrap:wrap">
|
|
120
|
+
<!-- eslint-disable-next-line @typescript-eslint/no-deprecated -->
|
|
121
|
+
{#if declaration.is_deprecated}
|
|
122
|
+
<span class="chip">⚠️ deprecated</span>
|
|
123
|
+
{/if}
|
|
124
|
+
{#if declaration.reactivity}
|
|
125
|
+
<span class="chip">{declaration.reactivity}</span>
|
|
126
|
+
{/if}
|
|
127
|
+
{#if declaration.accepts_children}
|
|
128
|
+
<span class="chip">accepts children</span>
|
|
129
|
+
{/if}
|
|
130
|
+
{#if declaration.alias_of}
|
|
131
|
+
<span class="chip"
|
|
132
|
+
>alias of {declaration.alias_of.name}{#if declaration.alias_of.module}
|
|
133
|
+
in {declaration.alias_of.module}{/if}</span
|
|
134
|
+
>
|
|
135
|
+
{/if}
|
|
136
|
+
</p>
|
|
137
|
+
{/if}
|
|
138
|
+
|
|
139
|
+
<!-- also exported from -->
|
|
140
|
+
{#if declaration.also_exported_from?.length}
|
|
141
|
+
<p class="row gap_md flex-wrap:wrap">
|
|
142
|
+
<strong>also exported from</strong>
|
|
143
|
+
{#each declaration.also_exported_from as module_path (module_path)}
|
|
144
|
+
<ModuleLink {module_path} />
|
|
145
|
+
{/each}
|
|
146
|
+
</p>
|
|
147
|
+
{/if}
|
|
49
148
|
|
|
50
149
|
<!-- eslint-disable-next-line @typescript-eslint/no-deprecated -->
|
|
51
150
|
{#if declaration.deprecated_message}
|
|
@@ -60,6 +159,9 @@ including parameters, props, members, overloads, intersects, and more.
|
|
|
60
159
|
<Code lang="ts" content={declaration.type_signature} />
|
|
61
160
|
{/if}
|
|
62
161
|
|
|
162
|
+
<!-- import statement -->
|
|
163
|
+
<Code lang="ts" content={declaration.import_statement} />
|
|
164
|
+
|
|
63
165
|
<!-- documentation -->
|
|
64
166
|
{#if declaration.has_documentation}
|
|
65
167
|
<Mdz content={declaration.doc_comment!} />
|
|
@@ -69,31 +171,7 @@ including parameters, props, members, overloads, intersects, and more.
|
|
|
69
171
|
{#if declaration.parameters?.length}
|
|
70
172
|
<section>
|
|
71
173
|
{#each declaration.parameters as param (param)}
|
|
72
|
-
|
|
73
|
-
<h4>
|
|
74
|
-
<code
|
|
75
|
-
>{param.name}{#if param.optional}<strong>?</strong>{/if}</code
|
|
76
|
-
>
|
|
77
|
-
</h4>
|
|
78
|
-
{#if param.description}
|
|
79
|
-
<Mdz content={param.description} />
|
|
80
|
-
{/if}
|
|
81
|
-
<div class="row gap_md">
|
|
82
|
-
<strong>type</strong>
|
|
83
|
-
<TypeLink type={param.type} />
|
|
84
|
-
</div>
|
|
85
|
-
{#if param.optional || param.defaultValue}
|
|
86
|
-
<div class="row gap_md">
|
|
87
|
-
{#if param.optional}
|
|
88
|
-
<span class="chip">optional</span>
|
|
89
|
-
{/if}
|
|
90
|
-
{#if param.defaultValue}
|
|
91
|
-
<strong>default</strong>
|
|
92
|
-
<Code lang="ts" content={param.defaultValue} />
|
|
93
|
-
{/if}
|
|
94
|
-
</div>
|
|
95
|
-
{/if}
|
|
96
|
-
</section>
|
|
174
|
+
{@render param_detail(param)}
|
|
97
175
|
{/each}
|
|
98
176
|
</section>
|
|
99
177
|
{/if}
|
|
@@ -111,17 +189,17 @@ including parameters, props, members, overloads, intersects, and more.
|
|
|
111
189
|
{#if prop.description}
|
|
112
190
|
<Mdz content={prop.description} />
|
|
113
191
|
{/if}
|
|
114
|
-
<div class="row gap_md
|
|
192
|
+
<div class="row gap_md mb_sm">
|
|
115
193
|
<strong>type</strong>
|
|
116
194
|
<TypeLink type={prop.type} />
|
|
117
195
|
</div>
|
|
118
196
|
{#if prop.optional || prop.bindable || prop.defaultValue}
|
|
119
197
|
<div class="row gap_md">
|
|
120
198
|
{#if prop.optional}
|
|
121
|
-
<
|
|
199
|
+
<strong>optional</strong>
|
|
122
200
|
{/if}
|
|
123
201
|
{#if prop.bindable}
|
|
124
|
-
<
|
|
202
|
+
<strong>bindable</strong>
|
|
125
203
|
{/if}
|
|
126
204
|
{#if prop.defaultValue}
|
|
127
205
|
<strong>default</strong>
|
|
@@ -142,6 +220,7 @@ including parameters, props, members, overloads, intersects, and more.
|
|
|
142
220
|
{/each}
|
|
143
221
|
</section>
|
|
144
222
|
{/if}
|
|
223
|
+
{@render doc_extras(prop)}
|
|
145
224
|
</section>
|
|
146
225
|
{/each}
|
|
147
226
|
</section>
|
|
@@ -326,7 +405,12 @@ including parameters, props, members, overloads, intersects, and more.
|
|
|
326
405
|
<section>
|
|
327
406
|
{#each declaration.members as member (member)}
|
|
328
407
|
<section>
|
|
329
|
-
<h4
|
|
408
|
+
<h4>
|
|
409
|
+
<code
|
|
410
|
+
>{member.name}{#if member.kind !== 'constructor' && member.optional}<strong>?</strong
|
|
411
|
+
>{/if}</code
|
|
412
|
+
>
|
|
413
|
+
</h4>
|
|
330
414
|
{#if member.docComment}
|
|
331
415
|
<Mdz content={member.docComment} />
|
|
332
416
|
{/if}
|
|
@@ -340,42 +424,29 @@ including parameters, props, members, overloads, intersects, and more.
|
|
|
340
424
|
/>
|
|
341
425
|
</p>
|
|
342
426
|
{/if}
|
|
343
|
-
{#if member.modifiers?.length}
|
|
427
|
+
{#if member.modifiers?.length || (member.kind === 'variable' && member.reactivity)}
|
|
428
|
+
<div class="row gap_md flex-wrap:wrap">
|
|
429
|
+
{#if member.modifiers?.length}
|
|
430
|
+
{#each member.modifiers as modifier (modifier)}
|
|
431
|
+
<span class="chip">{modifier}</span>
|
|
432
|
+
{/each}
|
|
433
|
+
{/if}
|
|
434
|
+
{#if member.kind === 'variable' && member.reactivity}
|
|
435
|
+
<span class="chip">{member.reactivity}</span>
|
|
436
|
+
{/if}
|
|
437
|
+
</div>
|
|
438
|
+
{/if}
|
|
439
|
+
{#if member.kind === 'variable' && member.defaultValue}
|
|
344
440
|
<div class="row gap_md">
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
{/each}
|
|
441
|
+
<strong>default</strong>
|
|
442
|
+
<Code lang="ts" content={member.defaultValue} />
|
|
348
443
|
</div>
|
|
349
444
|
{/if}
|
|
350
445
|
<!-- parameters for methods and constructors -->
|
|
351
446
|
{#if (member.kind === 'function' || member.kind === 'constructor') && member.parameters?.length}
|
|
352
447
|
<section>
|
|
353
448
|
{#each member.parameters as param (param)}
|
|
354
|
-
|
|
355
|
-
<h5>
|
|
356
|
-
<code
|
|
357
|
-
>{param.name}{#if param.optional}<strong>?</strong>{/if}</code
|
|
358
|
-
>
|
|
359
|
-
</h5>
|
|
360
|
-
{#if param.description}
|
|
361
|
-
<Mdz content={param.description} />
|
|
362
|
-
{/if}
|
|
363
|
-
<div class="row gap_md">
|
|
364
|
-
<strong>type</strong>
|
|
365
|
-
<TypeLink type={param.type} />
|
|
366
|
-
</div>
|
|
367
|
-
{#if param.optional || param.defaultValue}
|
|
368
|
-
<div class="row gap_md">
|
|
369
|
-
{#if param.optional}
|
|
370
|
-
<span class="chip">optional</span>
|
|
371
|
-
{/if}
|
|
372
|
-
{#if param.defaultValue}
|
|
373
|
-
<strong>default</strong>
|
|
374
|
-
<Code lang="ts" content={param.defaultValue} />
|
|
375
|
-
{/if}
|
|
376
|
-
</div>
|
|
377
|
-
{/if}
|
|
378
|
-
</section>
|
|
449
|
+
{@render param_detail(param)}
|
|
379
450
|
{/each}
|
|
380
451
|
</section>
|
|
381
452
|
{/if}
|
|
@@ -389,23 +460,7 @@ including parameters, props, members, overloads, intersects, and more.
|
|
|
389
460
|
<Mdz content={member.returnDescription} />
|
|
390
461
|
{/if}
|
|
391
462
|
{/if}
|
|
392
|
-
|
|
393
|
-
{#if member.throws?.length}
|
|
394
|
-
<div>
|
|
395
|
-
<strong>throws</strong>
|
|
396
|
-
<ul>
|
|
397
|
-
{#each member.throws as thrown (thrown)}
|
|
398
|
-
<li>
|
|
399
|
-
{#if thrown.type}
|
|
400
|
-
<code>{thrown.type}</code> - {thrown.description}
|
|
401
|
-
{:else}
|
|
402
|
-
{thrown.description}
|
|
403
|
-
{/if}
|
|
404
|
-
</li>
|
|
405
|
-
{/each}
|
|
406
|
-
</ul>
|
|
407
|
-
</div>
|
|
408
|
-
{/if}
|
|
463
|
+
{@render doc_extras(member)}
|
|
409
464
|
</section>
|
|
410
465
|
{/each}
|
|
411
466
|
</section>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeclarationDetail.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/DeclarationDetail.svelte"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeclarationDetail.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/DeclarationDetail.svelte"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAiBxD,KAAK,gBAAgB,GAAI;IAAC,WAAW,EAAE,WAAW,CAAA;CAAC,CAAC;AAmbrD;;;;;;;;GAQG;AACH,QAAA,MAAM,iBAAiB,sDAAwC,CAAC;AAChE,KAAK,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC9D,eAAe,iBAAiB,CAAC"}
|
package/dist/ProjectLinks.svelte
CHANGED
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
{name: 'fuz_css', url: 'https://css.fuz.dev/', logo: logo_fuz_css, description: 'CSS framework and design system', glyph: '🌿', color_class: 'color_b_50'},
|
|
36
36
|
{name: 'fuz_ui', url: 'https://ui.fuz.dev/', logo: logo_fuz_ui, description: 'Svelte UI library', glyph: '🧶', color_class: 'color_c_50'},
|
|
37
37
|
{name: 'fuz_template', url: 'https://template.fuz.dev/', logo: logo_fuz_template, description: 'a static web app and Node library template with TypeScript, Svelte, SvelteKit, Vite, esbuild, Fuz, and Gro', glyph: '❄', color_class: 'color_h_50'},
|
|
38
|
-
{name: 'fuz_code', url: 'https://code.fuz.dev/', logo: logo_fuz_code, description: 'syntax styling utilities and components for TypeScript, Svelte, SvelteKit', glyph: '🎨', color_class: 'color_g_50'},
|
|
39
38
|
{name: 'fuz_blog', url: 'https://blog.fuz.dev/', logo: logo_fuz_blog, description: 'blog software from scratch with SvelteKit', glyph: '🖊️', color_class: 'color_e_50'},
|
|
39
|
+
{name: 'fuz_code', url: 'https://code.fuz.dev/', logo: logo_fuz_code, description: 'syntax styling utilities and components for TypeScript, Svelte, SvelteKit', glyph: '🎨', color_class: 'color_g_50'},
|
|
40
40
|
{name: 'fuz_mastodon', url: 'https://mastodon.fuz.dev/', logo: logo_fuz_mastodon, description: 'Mastodon components and helpers for Svelte, SvelteKit, and Fuz', glyph: '🦣', color_class: 'color_d_50'},
|
|
41
41
|
{name: 'fuz_gitops', url: 'https://gitops.fuz.dev/', logo: logo_fuz_gitops, description: 'a tool for managing many repos', glyph: '🪄', color_class: 'color_a_50'},
|
|
42
42
|
{name: 'fuz_docs', url: 'https://docs.fuz.dev/', logo: logo_fuz_docs, description: 'AI-generated documentation and skills for the Fuz stack', glyph: '📜', color_class: 'color_i_50'},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api_search.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/api_search.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAE/C,MAAM,WAAW,sBAAsB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IACxB,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;CAC7B;AAED,MAAM,WAAW,cAAc;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE;QACR,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACnB,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KACxB,CAAC;IACF,YAAY,EAAE;QACb,GAAG,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;QACxB,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;KAC7B,CAAC;CACF;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,SAAS,OAAO,KAAG,
|
|
1
|
+
{"version":3,"file":"api_search.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/api_search.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAE/C,MAAM,WAAW,sBAAsB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IACxB,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;CAC7B;AAED,MAAM,WAAW,cAAc;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE;QACR,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACnB,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KACxB,CAAC;IACF,YAAY,EAAE;QACb,GAAG,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;QACxB,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;KAC7B,CAAC;CACF;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAAI,SAAS,OAAO,KAAG,cA+CpD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gCAAgC,GAC5C,cAAc,KAAK,CAAC,WAAW,CAAC,KAC9B,sBA0CF,CAAC"}
|
|
@@ -19,7 +19,8 @@ export const create_api_search = (library) => {
|
|
|
19
19
|
const all_declarations = $derived(library.declarations);
|
|
20
20
|
const filtered_declarations = $derived.by(() => {
|
|
21
21
|
const items = query.trim() ? library.search_declarations(query) : all_declarations;
|
|
22
|
-
|
|
22
|
+
// spread before sort — `items` may be the shared source array
|
|
23
|
+
return [...items].sort((a, b) => a.name.localeCompare(b.name));
|
|
23
24
|
});
|
|
24
25
|
return {
|
|
25
26
|
get query() {
|
|
@@ -54,8 +55,9 @@ export const create_module_declaration_search = (declarations) => {
|
|
|
54
55
|
const all = $derived(declarations);
|
|
55
56
|
const filtered = $derived.by(() => {
|
|
56
57
|
const trimmed_query = query.trim();
|
|
58
|
+
// spread before sort — `all` is the shared source array
|
|
57
59
|
if (!trimmed_query)
|
|
58
|
-
return all.sort((a, b) => a.name.localeCompare(b.name));
|
|
60
|
+
return [...all].sort((a, b) => a.name.localeCompare(b.name));
|
|
59
61
|
const terms = trimmed_query.toLowerCase().split(/\s+/);
|
|
60
62
|
const items = all.filter((d) => {
|
|
61
63
|
const name_lower = d.name.toLowerCase();
|
|
@@ -293,10 +293,21 @@ export declare class Declaration {
|
|
|
293
293
|
module: string;
|
|
294
294
|
name: string;
|
|
295
295
|
} | undefined;
|
|
296
|
+
/**
|
|
297
|
+
* Other modules that also export this declaration (re-export paths
|
|
298
|
+
* relative to src/lib). Absent when only exported from its defining module.
|
|
299
|
+
*/
|
|
300
|
+
also_exported_from: string[] | undefined;
|
|
296
301
|
/**
|
|
297
302
|
* Mutation documentation from `@mutates` tags, mapping parameter names to descriptions.
|
|
298
303
|
*/
|
|
299
304
|
mutates: Record<string, string> | undefined;
|
|
305
|
+
/**
|
|
306
|
+
* Svelte reactivity flavor (`$state`, `$state.raw`, `$derived`, `$derived.by`)
|
|
307
|
+
* when this variable is initialized with a value-producing rune.
|
|
308
|
+
* Present on `variable` kind only.
|
|
309
|
+
*/
|
|
310
|
+
reactivity: "$state" | "$state.raw" | "$derived" | "$derived.by" | undefined;
|
|
300
311
|
has_examples: boolean;
|
|
301
312
|
is_deprecated: boolean;
|
|
302
313
|
has_documentation: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declaration.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/declaration.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEX,oBAAoB,
|
|
1
|
+
{"version":3,"file":"declaration.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/declaration.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEX,oBAAoB,EAMpB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAc/C;;;;;;;;;;GAUG;AACH,qBAAa,WAAW;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAiB;IACxC,QAAQ,CAAC,gBAAgB,EAAE,oBAAoB,CAAiB;IAEhE,OAAO,wCAAiC;IAExC;;OAEG;IACH,WAAW,SAA8B;IAEzC,IAAI,SAAwC;IAC5C,IAAI,4GAAwC;IAE5C;;OAEG;IACH,UAAU,qBAQR;IAEF;;OAEG;IACH,OAAO,SAAoF;IAE3F;;OAEG;IACH,gBAAgB,SAQd;IAEF;;OAEG;IACH,YAAY,qBAIV;IAEF;;OAEG;IAGH,YAAY,SAKV;IAEF,cAAc,qBAAiD;IAC/D,WAAW,qBAA8C;IACzD,kBAAkB,qBAAqD;IACvE,UAAU;;;;;;;;oBAAmF;IAC7F,KAAK;;;;;;;;;;;;;;;;;;;;;;;;oBAAkF;IACvF,WAAW,qBAAgE;IAC3E,kBAAkB,qBAAuE;IACzF,cAAc;;;;QAAuD;IACrE,YAAY,gCAA6E;IACzF,gBAAgB,uBAAuE;IACvF,MAAM;;;QAAgD;IACtD,KAAK,qBAAyC;IAC9C,QAAQ,WAAkD;IAC1D,QAAQ,WAAiD;IACzD;;OAEG;IACH,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAA6E;IAEpF;;;OAGG;IACH,UAAU,uBAAuE;IAEjF;;;OAGG;IACH,gBAAgB,sBAAsE;IAEtF;;;OAGG;IACH,SAAS;;;;;;;;;;;;;;;;;;;oBAAiF;IAE1F;;OAEG;IACH,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAA2C;IAEnD;;;OAGG;IACH,kBAAkB,uBAA6E;IAE/F;;OAEG;IACH,OAAO,qCAA2C;IAElD;;;;OAIG;IACH,UAAU,mEAAoE;IAE9E,YAAY,UAAsC;IAElD,aAAa,UAAmD;IAChE,iBAAiB,UAAgC;IACjD,cAAc,UAA+D;IAC7E,SAAS,UAAqD;IAC9D,YAAY,UAA4C;gBAE5C,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,oBAAoB;CAIlE"}
|
|
@@ -99,12 +99,24 @@ export class Declaration {
|
|
|
99
99
|
* Re-export alias info when this declaration is a renamed re-export.
|
|
100
100
|
*/
|
|
101
101
|
alias_of = $derived(this.declaration_json.aliasOf);
|
|
102
|
+
/**
|
|
103
|
+
* Other modules that also export this declaration (re-export paths
|
|
104
|
+
* relative to src/lib). Absent when only exported from its defining module.
|
|
105
|
+
*/
|
|
106
|
+
also_exported_from = $derived(field(this.declaration_json, 'alsoExportedFrom'));
|
|
102
107
|
/**
|
|
103
108
|
* Mutation documentation from `@mutates` tags, mapping parameter names to descriptions.
|
|
104
109
|
*/
|
|
105
110
|
mutates = $derived(this.declaration_json.mutates);
|
|
111
|
+
/**
|
|
112
|
+
* Svelte reactivity flavor (`$state`, `$state.raw`, `$derived`, `$derived.by`)
|
|
113
|
+
* when this variable is initialized with a value-producing rune.
|
|
114
|
+
* Present on `variable` kind only.
|
|
115
|
+
*/
|
|
116
|
+
reactivity = $derived(field(this.declaration_json, 'reactivity'));
|
|
106
117
|
has_examples = $derived(this.examples.length > 0);
|
|
107
|
-
|
|
118
|
+
// presence, not truthiness — a bare `@deprecated` (no message text) arrives as `''`
|
|
119
|
+
is_deprecated = $derived(this.deprecated_message !== undefined);
|
|
108
120
|
has_documentation = $derived(!!this.doc_comment);
|
|
109
121
|
has_parameters = $derived(!!(this.parameters && this.parameters.length > 0));
|
|
110
122
|
has_props = $derived(!!(this.props && this.props.length > 0));
|
package/dist/module.svelte.d.ts
CHANGED
|
@@ -59,6 +59,8 @@ export declare class Module {
|
|
|
59
59
|
* Modules that import this (paths relative to src/lib).
|
|
60
60
|
*/
|
|
61
61
|
dependents: string[];
|
|
62
|
+
has_dependencies: boolean;
|
|
63
|
+
has_dependents: boolean;
|
|
62
64
|
constructor(library: Library, module_json: ModuleJsonInput);
|
|
63
65
|
/**
|
|
64
66
|
* Look up a declaration by name within this module.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/module.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AAE7D,OAAO,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,qBAAqB,CAAC;AAGjD;;;;;;;;GAQG;AACH,qBAAa,MAAM;IAClB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAiB;IAK1C,QAAQ,CAAC,WAAW,EAAE,eAAe,CAAiB;IAEtD;;;;;;;;;;OAUG;IACH,IAAI,SAAmC;IAEvC;;OAEG;IACH,WAAW,SAA8B;IAEzC,cAAc,qBAA4C;IAE1D;;OAEG;IACH,YAAY,gBAIV;IAEF;;OAEG;IACH,OAAO,SAAgE;IAEvE;;;;;OAKG;IACH,YAAY,qBAIV;IAEF;;OAEG;IACH,UAAU,qBAIR;IAEF,gBAAgB,EAAE,OAAO,CAA8D;IAEvF,kBAAkB,EAAE,OAAO,CAAmC;IAE9D;;OAEG;IACH,YAAY,WAAiD;IAE7D;;OAEG;IACH,UAAU,WAA+C;
|
|
1
|
+
{"version":3,"file":"module.svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/module.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AAE7D,OAAO,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,qBAAqB,CAAC;AAGjD;;;;;;;;GAQG;AACH,qBAAa,MAAM;IAClB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAiB;IAK1C,QAAQ,CAAC,WAAW,EAAE,eAAe,CAAiB;IAEtD;;;;;;;;;;OAUG;IACH,IAAI,SAAmC;IAEvC;;OAEG;IACH,WAAW,SAA8B;IAEzC,cAAc,qBAA4C;IAE1D;;OAEG;IACH,YAAY,gBAIV;IAEF;;OAEG;IACH,OAAO,SAAgE;IAEvE;;;;;OAKG;IACH,YAAY,qBAIV;IAEF;;OAEG;IACH,UAAU,qBAIR;IAEF,gBAAgB,EAAE,OAAO,CAA8D;IAEvF,kBAAkB,EAAE,OAAO,CAAmC;IAE9D;;OAEG;IACH,YAAY,WAAiD;IAE7D;;OAEG;IACH,UAAU,WAA+C;IAEzD,gBAAgB,EAAE,OAAO,CAA0C;IAEnE,cAAc,EAAE,OAAO,CAAwC;gBAEnD,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,eAAe;IAK1D;;OAEG;IACH,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS;CAG9D"}
|
package/dist/module.svelte.js
CHANGED
|
@@ -68,6 +68,8 @@ export class Module {
|
|
|
68
68
|
* Modules that import this (paths relative to src/lib).
|
|
69
69
|
*/
|
|
70
70
|
dependents = $derived(this.module_json.dependents ?? []);
|
|
71
|
+
has_dependencies = $derived(this.dependencies.length > 0);
|
|
72
|
+
has_dependents = $derived(this.dependents.length > 0);
|
|
71
73
|
constructor(library, module_json) {
|
|
72
74
|
this.library = library;
|
|
73
75
|
this.module_json = module_json;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fuzdev/fuz_ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.200.0",
|
|
4
4
|
"description": "Svelte UI library",
|
|
5
5
|
"tagline": "friendly user zystem",
|
|
6
6
|
"glyph": "🧶",
|
|
@@ -82,10 +82,10 @@
|
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@changesets/changelog-git": "^0.2.1",
|
|
84
84
|
"@fuzdev/blake3_wasm": "^0.1.1",
|
|
85
|
-
"@fuzdev/fuz_code": "^0.
|
|
86
|
-
"@fuzdev/fuz_css": "^0.
|
|
85
|
+
"@fuzdev/fuz_code": "^0.46.0",
|
|
86
|
+
"@fuzdev/fuz_css": "^0.62.0",
|
|
87
87
|
"@fuzdev/fuz_util": "^0.65.1",
|
|
88
|
-
"@fuzdev/gro": "^0.
|
|
88
|
+
"@fuzdev/gro": "^0.204.0",
|
|
89
89
|
"@jridgewell/trace-mapping": "^0.3.31",
|
|
90
90
|
"@ryanatkn/eslint-config": "^0.12.1",
|
|
91
91
|
"@sveltejs/acorn-typescript": "^1.0.9",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"prettier-plugin-svelte": "^3.5.1",
|
|
106
106
|
"svelte": "^5.56.0",
|
|
107
107
|
"svelte-check": "^4.4.8",
|
|
108
|
-
"svelte-docinfo": "^0.4.
|
|
108
|
+
"svelte-docinfo": "^0.4.1",
|
|
109
109
|
"svelte2tsx": "^0.7.55",
|
|
110
110
|
"tslib": "^2.8.1",
|
|
111
111
|
"typescript": "^5.9.3",
|
|
@@ -42,7 +42,8 @@ export const create_api_search = (library: Library): ApiSearchState => {
|
|
|
42
42
|
const all_declarations = $derived(library.declarations);
|
|
43
43
|
const filtered_declarations = $derived.by(() => {
|
|
44
44
|
const items = query.trim() ? library.search_declarations(query) : all_declarations;
|
|
45
|
-
|
|
45
|
+
// spread before sort — `items` may be the shared source array
|
|
46
|
+
return [...items].sort((a, b) => a.name.localeCompare(b.name));
|
|
46
47
|
});
|
|
47
48
|
|
|
48
49
|
return {
|
|
@@ -83,7 +84,8 @@ export const create_module_declaration_search = (
|
|
|
83
84
|
|
|
84
85
|
const filtered = $derived.by(() => {
|
|
85
86
|
const trimmed_query = query.trim();
|
|
86
|
-
|
|
87
|
+
// spread before sort — `all` is the shared source array
|
|
88
|
+
if (!trimmed_query) return [...all].sort((a, b) => a.name.localeCompare(b.name));
|
|
87
89
|
|
|
88
90
|
const terms = trimmed_query.toLowerCase().split(/\s+/);
|
|
89
91
|
|
|
@@ -5,6 +5,7 @@ import type {
|
|
|
5
5
|
ParameterJsonInput,
|
|
6
6
|
ComponentPropJsonInput,
|
|
7
7
|
OverloadJsonInput,
|
|
8
|
+
Reactivity,
|
|
8
9
|
} from 'svelte-docinfo/types.js';
|
|
9
10
|
import {generateImport, getDisplayName} from 'svelte-docinfo/declaration-helpers.js';
|
|
10
11
|
|
|
@@ -141,13 +142,27 @@ export class Declaration {
|
|
|
141
142
|
*/
|
|
142
143
|
alias_of = $derived(this.declaration_json.aliasOf);
|
|
143
144
|
|
|
145
|
+
/**
|
|
146
|
+
* Other modules that also export this declaration (re-export paths
|
|
147
|
+
* relative to src/lib). Absent when only exported from its defining module.
|
|
148
|
+
*/
|
|
149
|
+
also_exported_from = $derived(field<Array<string>>(this.declaration_json, 'alsoExportedFrom'));
|
|
150
|
+
|
|
144
151
|
/**
|
|
145
152
|
* Mutation documentation from `@mutates` tags, mapping parameter names to descriptions.
|
|
146
153
|
*/
|
|
147
154
|
mutates = $derived(this.declaration_json.mutates);
|
|
148
155
|
|
|
156
|
+
/**
|
|
157
|
+
* Svelte reactivity flavor (`$state`, `$state.raw`, `$derived`, `$derived.by`)
|
|
158
|
+
* when this variable is initialized with a value-producing rune.
|
|
159
|
+
* Present on `variable` kind only.
|
|
160
|
+
*/
|
|
161
|
+
reactivity = $derived(field<Reactivity>(this.declaration_json, 'reactivity'));
|
|
162
|
+
|
|
149
163
|
has_examples = $derived(this.examples.length > 0);
|
|
150
|
-
|
|
164
|
+
// presence, not truthiness — a bare `@deprecated` (no message text) arrives as `''`
|
|
165
|
+
is_deprecated = $derived(this.deprecated_message !== undefined);
|
|
151
166
|
has_documentation = $derived(!!this.doc_comment);
|
|
152
167
|
has_parameters = $derived(!!(this.parameters && this.parameters.length > 0));
|
|
153
168
|
has_props = $derived(!!(this.props && this.props.length > 0));
|
package/src/lib/module.svelte.ts
CHANGED
|
@@ -90,6 +90,10 @@ export class Module {
|
|
|
90
90
|
*/
|
|
91
91
|
dependents = $derived(this.module_json.dependents ?? []);
|
|
92
92
|
|
|
93
|
+
has_dependencies: boolean = $derived(this.dependencies.length > 0);
|
|
94
|
+
|
|
95
|
+
has_dependents: boolean = $derived(this.dependents.length > 0);
|
|
96
|
+
|
|
93
97
|
constructor(library: Library, module_json: ModuleJsonInput) {
|
|
94
98
|
this.library = library;
|
|
95
99
|
this.module_json = module_json;
|