@fuzdev/fuz_ui 0.191.1 → 0.191.3

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 (66) hide show
  1. package/dist/Alert.svelte +1 -1
  2. package/dist/ProjectLinks.svelte +4 -2
  3. package/dist/ProjectLinks.svelte.d.ts.map +1 -1
  4. package/dist/analysis_context.d.ts +7 -3
  5. package/dist/analysis_context.d.ts.map +1 -1
  6. package/dist/analysis_context.js +7 -3
  7. package/dist/contextmenu_state.svelte.d.ts +3 -3
  8. package/dist/contextmenu_state.svelte.js +3 -3
  9. package/dist/csp.d.ts +4 -4
  10. package/dist/csp.js +4 -4
  11. package/dist/docs_helpers.svelte.d.ts +1 -1
  12. package/dist/docs_helpers.svelte.js +1 -1
  13. package/dist/library.svelte.d.ts +4 -4
  14. package/dist/library.svelte.js +4 -4
  15. package/dist/library_analysis.d.ts +4 -4
  16. package/dist/library_analysis.d.ts.map +1 -1
  17. package/dist/library_analysis.js +3 -3
  18. package/dist/library_gen.d.ts +10 -8
  19. package/dist/library_gen.d.ts.map +1 -1
  20. package/dist/library_gen.js +8 -8
  21. package/dist/library_generate.d.ts +2 -2
  22. package/dist/library_generate.js +2 -2
  23. package/dist/library_helpers.d.ts +2 -0
  24. package/dist/library_helpers.d.ts.map +1 -1
  25. package/dist/library_helpers.js +2 -0
  26. package/dist/library_output.d.ts +7 -7
  27. package/dist/library_output.d.ts.map +1 -1
  28. package/dist/library_output.js +5 -5
  29. package/dist/library_pipeline.d.ts +9 -5
  30. package/dist/library_pipeline.d.ts.map +1 -1
  31. package/dist/library_pipeline.js +9 -5
  32. package/dist/logos.d.ts +8 -1
  33. package/dist/logos.d.ts.map +1 -1
  34. package/dist/logos.js +8 -3
  35. package/dist/module.svelte.d.ts +1 -1
  36. package/dist/module.svelte.js +1 -1
  37. package/dist/module_helpers.d.ts +2 -2
  38. package/dist/module_helpers.js +1 -1
  39. package/dist/package_helpers.d.ts +4 -4
  40. package/dist/package_helpers.js +4 -4
  41. package/dist/svelte_preprocess_mdz.d.ts +4 -4
  42. package/dist/svelte_preprocess_mdz.js +6 -6
  43. package/dist/ts_helpers.d.ts +4 -4
  44. package/dist/ts_helpers.d.ts.map +1 -1
  45. package/dist/ts_helpers.js +2 -2
  46. package/dist/vite_plugin_library_well_known.d.ts +2 -2
  47. package/dist/vite_plugin_library_well_known.js +1 -1
  48. package/package.json +4 -4
  49. package/src/lib/analysis_context.ts +7 -3
  50. package/src/lib/contextmenu_state.svelte.ts +3 -3
  51. package/src/lib/csp.ts +4 -4
  52. package/src/lib/docs_helpers.svelte.ts +1 -1
  53. package/src/lib/library.svelte.ts +4 -4
  54. package/src/lib/library_analysis.ts +4 -4
  55. package/src/lib/library_gen.ts +10 -8
  56. package/src/lib/library_generate.ts +2 -2
  57. package/src/lib/library_helpers.ts +2 -0
  58. package/src/lib/library_output.ts +7 -7
  59. package/src/lib/library_pipeline.ts +9 -5
  60. package/src/lib/logos.ts +9 -3
  61. package/src/lib/module.svelte.ts +1 -1
  62. package/src/lib/module_helpers.ts +2 -2
  63. package/src/lib/package_helpers.ts +4 -4
  64. package/src/lib/svelte_preprocess_mdz.ts +14 -14
  65. package/src/lib/ts_helpers.ts +4 -4
  66. package/src/lib/vite_plugin_library_well_known.ts +2 -2
@@ -6,15 +6,15 @@
6
6
  *
7
7
  * Pipeline stages:
8
8
  * 1. **Collection** - `library_collect_source_files` gathers and filters source files
9
- * 2. **Analysis** - `library_analyze_module` (in library_analysis.ts) extracts metadata
9
+ * 2. **Analysis** - `library_analyze_module` (in `library_analysis.ts`) extracts metadata
10
10
  * 3. **Validation** - `library_find_duplicates` checks flat namespace constraints
11
11
  * 4. **Transformation** - `library_merge_re_exports` resolves re-export relationships
12
12
  * 5. **Output** - `library_sort_modules` prepares deterministic output
13
13
  *
14
- * @see library_generate.ts for the main generation entry point
15
- * @see library_analysis.ts for module-level analysis
16
- * @see library_output.ts for output file generation (JSON/TS wrapper)
17
- * @see library_gen.ts for Gro-specific integration
14
+ * @see `library_generate.ts` for the main generation entry point
15
+ * @see `library_analysis.ts` for module-level analysis
16
+ * @see `library_output.ts` for output file generation (JSON/TS wrapper)
17
+ * @see `library_gen.ts` for Gro-specific integration
18
18
  *
19
19
  * @module
20
20
  */
@@ -38,6 +38,7 @@ export interface DuplicateInfo {
38
38
  * Callers can decide how to handle duplicates (throw, warn, ignore).
39
39
  *
40
40
  * @example
41
+ * ```ts
41
42
  * const duplicates = library_find_duplicates(source_json);
42
43
  * if (duplicates.size > 0) {
43
44
  * for (const [name, occurrences] of duplicates) {
@@ -48,6 +49,7 @@ export interface DuplicateInfo {
48
49
  * }
49
50
  * throw new Error(`Found ${duplicates.size} duplicate declaration names`);
50
51
  * }
52
+ * ```
51
53
  */
52
54
  export declare const library_find_duplicates: (source_json: SourceJson) => Map<string, Array<DuplicateInfo>>;
53
55
  /**
@@ -80,12 +82,14 @@ export interface CollectedReExport {
80
82
  * after all modules are analyzed.
81
83
  *
82
84
  * @example
85
+ * ```ts
83
86
  * // helpers.ts exports: foo, bar
84
87
  * // index.ts does: export {foo, bar} from './helpers.js'
85
88
  * //
86
89
  * // After processing:
87
90
  * // - helpers.ts foo declaration gets: also_exported_from: ['index.ts']
88
91
  * // - helpers.ts bar declaration gets: also_exported_from: ['index.ts']
92
+ * ```
89
93
  *
90
94
  * @param source_json - the source JSON with all modules (will be mutated)
91
95
  * @param collected_re_exports - array of re-exports collected during phase 1
@@ -1 +1 @@
1
- {"version":3,"file":"library_pipeline.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/library_pipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,EAAC,eAAe,EAAE,UAAU,EAAE,UAAU,EAAC,MAAM,iCAAiC,CAAC;AAE7F,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAC;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AAC;AACxD,OAAO,EACN,KAAK,cAAc,EACnB,KAAK,mBAAmB,EAIxB,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B,qCAAqC;IACrC,WAAW,EAAE,eAAe,CAAC;IAC7B,qDAAqD;IACrD,MAAM,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,uBAAuB,GACnC,aAAa,UAAU,KACrB,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,aAAa,CAAC,CA0BlC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,SAAS,KAAK,CAAC,UAAU,CAAC,KAAG,KAAK,CAAC,UAAU,CAEjF,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,WAAW,iBAAiB;IACjC,kDAAkD;IAClD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,qDAAqD;IACrD,SAAS,EAAE,YAAY,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,wBAAwB,GACpC,aAAa,UAAU,EACvB,sBAAsB,KAAK,CAAC,iBAAiB,CAAC,KAC5C,IAgCF,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,4BAA4B,GACxC,OAAO,QAAQ,CAAC,cAAc,CAAC,EAC/B,SAAS,mBAAmB,EAC5B,MAAM,MAAM,KACV,KAAK,CAAC,cAAc,CA0BtB,CAAC"}
@@ -6,15 +6,15 @@
6
6
  *
7
7
  * Pipeline stages:
8
8
  * 1. **Collection** - `library_collect_source_files` gathers and filters source files
9
- * 2. **Analysis** - `library_analyze_module` (in library_analysis.ts) extracts metadata
9
+ * 2. **Analysis** - `library_analyze_module` (in `library_analysis.ts`) extracts metadata
10
10
  * 3. **Validation** - `library_find_duplicates` checks flat namespace constraints
11
11
  * 4. **Transformation** - `library_merge_re_exports` resolves re-export relationships
12
12
  * 5. **Output** - `library_sort_modules` prepares deterministic output
13
13
  *
14
- * @see library_generate.ts for the main generation entry point
15
- * @see library_analysis.ts for module-level analysis
16
- * @see library_output.ts for output file generation (JSON/TS wrapper)
17
- * @see library_gen.ts for Gro-specific integration
14
+ * @see `library_generate.ts` for the main generation entry point
15
+ * @see `library_analysis.ts` for module-level analysis
16
+ * @see `library_output.ts` for output file generation (JSON/TS wrapper)
17
+ * @see `library_gen.ts` for Gro-specific integration
18
18
  *
19
19
  * @module
20
20
  */
@@ -26,6 +26,7 @@ import { module_is_source, module_validate_source_options, module_get_source_roo
26
26
  * Callers can decide how to handle duplicates (throw, warn, ignore).
27
27
  *
28
28
  * @example
29
+ * ```ts
29
30
  * const duplicates = library_find_duplicates(source_json);
30
31
  * if (duplicates.size > 0) {
31
32
  * for (const [name, occurrences] of duplicates) {
@@ -36,6 +37,7 @@ import { module_is_source, module_validate_source_options, module_get_source_roo
36
37
  * }
37
38
  * throw new Error(`Found ${duplicates.size} duplicate declaration names`);
38
39
  * }
40
+ * ```
39
41
  */
40
42
  export const library_find_duplicates = (source_json) => {
41
43
  const all_occurrences = new Map();
@@ -80,12 +82,14 @@ export const library_sort_modules = (modules) => {
80
82
  * after all modules are analyzed.
81
83
  *
82
84
  * @example
85
+ * ```ts
83
86
  * // helpers.ts exports: foo, bar
84
87
  * // index.ts does: export {foo, bar} from './helpers.js'
85
88
  * //
86
89
  * // After processing:
87
90
  * // - helpers.ts foo declaration gets: also_exported_from: ['index.ts']
88
91
  * // - helpers.ts bar declaration gets: also_exported_from: ['index.ts']
92
+ * ```
89
93
  *
90
94
  * @param source_json - the source JSON with all modules (will be mutated)
91
95
  * @param collected_re_exports - array of re-exports collected during phase 1
package/dist/logos.d.ts CHANGED
@@ -12,7 +12,7 @@ export declare const logo_fuz: {
12
12
  d: string;
13
13
  }[];
14
14
  };
15
- export declare const logo_fuz_ui: {
15
+ export declare const logo_fuz_app: {
16
16
  label: string;
17
17
  fill: string;
18
18
  paths: {
@@ -29,6 +29,13 @@ export declare const logo_fuz_css: {
29
29
  style: string;
30
30
  };
31
31
  };
32
+ export declare const logo_fuz_ui: {
33
+ label: string;
34
+ fill: string;
35
+ paths: {
36
+ d: string;
37
+ }[];
38
+ };
32
39
  export declare const logo_fuz_code: {
33
40
  label: string;
34
41
  fill: string;
@@ -1 +1 @@
1
- {"version":3,"file":"logos.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/logos.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,QAAQ;;;;;;CAgCF,CAAC;AAEpB,eAAO,MAAM,QAAQ;;;;;;CAQF,CAAC;AAEpB,eAAO,MAAM,WAAW;;;;;;CAIL,CAAC;AAEpB,eAAO,MAAM,YAAY;;;;;;;;;CAKN,CAAC;AAEpB,eAAO,MAAM,aAAa;;;;;;CAIP,CAAC;AAEpB,eAAO,MAAM,aAAa;;;;;;CAIP,CAAC;AAEpB,eAAO,MAAM,iBAAiB;;;;;;CAIX,CAAC;AAEpB,eAAO,MAAM,eAAe;;;;;;CAIT,CAAC;AAEpB,eAAO,MAAM,aAAa;;;;;;CAIP,CAAC;AAEpB,eAAO,MAAM,iBAAiB;;;;;;CAQX,CAAC;AAEpB,eAAO,MAAM,aAAa;;;;;;CAwBP,CAAC;AAEpB,eAAO,MAAM,WAAW;;;;;;;;;CAWL,CAAC;AAEpB,eAAO,MAAM,QAAQ;;;;;;CAQF,CAAC"}
1
+ {"version":3,"file":"logos.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/logos.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,QAAQ;;;;;;CAgCF,CAAC;AAEpB,eAAO,MAAM,QAAQ;;;;;;CAQF,CAAC;AAEpB,eAAO,MAAM,YAAY;;;;;;CAIN,CAAC;AAEpB,eAAO,MAAM,YAAY;;;;;;;;;CAKN,CAAC;AAEpB,eAAO,MAAM,WAAW;;;;;;CAIL,CAAC;AAEpB,eAAO,MAAM,aAAa;;;;;;CAIP,CAAC;AAEpB,eAAO,MAAM,aAAa;;;;;;CAIP,CAAC;AAEpB,eAAO,MAAM,iBAAiB;;;;;;CAIX,CAAC;AAEpB,eAAO,MAAM,eAAe;;;;;;CAIT,CAAC;AAEpB,eAAO,MAAM,aAAa;;;;;;CAIP,CAAC;AAEpB,eAAO,MAAM,iBAAiB;;;;;;CAQX,CAAC;AAEpB,eAAO,MAAM,aAAa;;;;;;CAwBP,CAAC;AAEpB,eAAO,MAAM,WAAW;;;;;;;;;CAWL,CAAC;AAEpB,eAAO,MAAM,QAAQ;;;;;;CAQF,CAAC"}
package/dist/logos.js CHANGED
@@ -57,9 +57,9 @@ export const logo_fuz = {
57
57
  },
58
58
  ],
59
59
  };
60
- export const logo_fuz_ui = {
61
- label: 'a friendly red spider facing you',
62
- fill: '#d93636',
60
+ export const logo_fuz_app = {
61
+ label: 'a friendly teal spider facing you',
62
+ fill: '#2e9e6f',
63
63
  paths: logo_fuz.paths,
64
64
  };
65
65
  export const logo_fuz_css = {
@@ -68,6 +68,11 @@ export const logo_fuz_css = {
68
68
  paths: logo_fuz.paths,
69
69
  attrs: { style: 'transform: scaleX(-1) rotate(180deg)' },
70
70
  };
71
+ export const logo_fuz_ui = {
72
+ label: 'a friendly red spider facing you',
73
+ fill: '#d93636',
74
+ paths: logo_fuz.paths,
75
+ };
71
76
  export const logo_fuz_code = {
72
77
  label: 'a friendly pink spider facing you',
73
78
  fill: '#e55d95',
@@ -17,7 +17,7 @@ export declare class Module {
17
17
  path_import: string;
18
18
  module_comment: string | undefined;
19
19
  /**
20
- * Array of Declaration instances. Filters out default exports.
20
+ * Array of `Declaration` instances. Filters out default exports.
21
21
  */
22
22
  declarations: Declaration[];
23
23
  /**
@@ -16,7 +16,7 @@ export class Module {
16
16
  path_import = $derived('./' + this.path);
17
17
  module_comment = $derived(this.module_json.module_comment);
18
18
  /**
19
- * Array of Declaration instances. Filters out default exports.
19
+ * Array of `Declaration` instances. Filters out default exports.
20
20
  */
21
21
  declarations = $derived(this.module_json.declarations
22
22
  ? this.module_json.declarations
@@ -18,7 +18,7 @@ export type AnalyzerType = 'typescript' | 'svelte';
18
18
  /**
19
19
  * File information for source analysis.
20
20
  *
21
- * Can be constructed from Gro's Disknode or from plain file system access.
21
+ * Can be constructed from Gro's `Disknode` or from plain file system access.
22
22
  * This abstraction enables non-Gro usage while keeping Gro support via adapter.
23
23
  *
24
24
  * Note: `content` is required to keep analysis functions pure (no hidden I/O).
@@ -235,7 +235,7 @@ export declare const module_validate_source_options: (options: ModuleSourceOptio
235
235
  *
236
236
  * Returns `source_root` if provided, otherwise returns `source_paths[0]` for single-path configs.
237
237
  *
238
- * @throws Error if source_root is required but not provided (multiple source_paths)
238
+ * @throws Error if `source_root` is required but not provided (multiple `source_paths`)
239
239
  */
240
240
  export declare const module_get_source_root: (options: ModuleSourceOptions) => string;
241
241
  /**
@@ -166,7 +166,7 @@ export const module_validate_source_options = (options) => {
166
166
  *
167
167
  * Returns `source_root` if provided, otherwise returns `source_paths[0]` for single-path configs.
168
168
  *
169
- * @throws Error if source_root is required but not provided (multiple source_paths)
169
+ * @throws Error if `source_root` is required but not provided (multiple `source_paths`)
170
170
  */
171
171
  export const module_get_source_root = (options) => {
172
172
  if (options.source_root !== undefined) {
@@ -11,7 +11,7 @@
11
11
  * - `url_well_known` - .well-known metadata file
12
12
  *
13
13
  * Parsers:
14
- * - `repo_url_parse` - extract repo URL from package.json repository field
14
+ * - `repo_url_parse` - extract repo URL from `package.json` repository field
15
15
  * - `repo_name_parse` - extract repo name from scoped package name
16
16
  * - `repo_url_github_owner` - extract GitHub owner from repo URL
17
17
  *
@@ -96,7 +96,7 @@ export declare const url_npm_package: (package_name: string) => string;
96
96
  * - It has exports defined
97
97
  * - Its version is not the initial '0.0.1'
98
98
  *
99
- * @param package_json - the package.json object to check
99
+ * @param package_json - the `package.json` object to check
100
100
  * @returns `true` if the package appears to be published
101
101
  */
102
102
  export declare const package_is_published: (package_json: PackageJson) => boolean;
@@ -121,12 +121,12 @@ export declare const package_is_published: (package_json: PackageJson) => boolea
121
121
  */
122
122
  export declare const repo_name_parse: (name: string) => string;
123
123
  /**
124
- * Parse repository URL from package.json format.
124
+ * Parse repository URL from `package.json` format.
125
125
  *
126
126
  * Handles both string format and object format with `url` property.
127
127
  * Strips common prefixes ('git+') and suffixes ('.git', '/').
128
128
  *
129
- * @param repository - the repository field from package.json
129
+ * @param repository - the repository field from `package.json`
130
130
  * @returns clean repository URL, or null if not provided
131
131
  *
132
132
  * @example
@@ -11,7 +11,7 @@
11
11
  * - `url_well_known` - .well-known metadata file
12
12
  *
13
13
  * Parsers:
14
- * - `repo_url_parse` - extract repo URL from package.json repository field
14
+ * - `repo_url_parse` - extract repo URL from `package.json` repository field
15
15
  * - `repo_name_parse` - extract repo name from scoped package name
16
16
  * - `repo_url_github_owner` - extract GitHub owner from repo URL
17
17
  *
@@ -108,7 +108,7 @@ export const url_npm_package = (package_name) => 'https://www.npmjs.com/package/
108
108
  * - It has exports defined
109
109
  * - Its version is not the initial '0.0.1'
110
110
  *
111
- * @param package_json - the package.json object to check
111
+ * @param package_json - the `package.json` object to check
112
112
  * @returns `true` if the package appears to be published
113
113
  */
114
114
  export const package_is_published = (package_json) => {
@@ -144,12 +144,12 @@ export const repo_name_parse = (name) => {
144
144
  return name;
145
145
  };
146
146
  /**
147
- * Parse repository URL from package.json format.
147
+ * Parse repository URL from `package.json` format.
148
148
  *
149
149
  * Handles both string format and object format with `url` property.
150
150
  * Strips common prefixes ('git+') and suffixes ('.git', '/').
151
151
  *
152
- * @param repository - the repository field from package.json
152
+ * @param repository - the repository field from `package.json`
153
153
  * @returns clean repository URL, or null if not provided
154
154
  *
155
155
  * @example
@@ -26,18 +26,18 @@ export interface SveltePreprocessMdzOptions {
26
26
  * Value: import path (e.g., '$lib/Alert.svelte').
27
27
  *
28
28
  * If mdz content references a component not in this map,
29
- * that Mdz usage is skipped (left as runtime).
29
+ * that `Mdz` usage is skipped (left as runtime).
30
30
  */
31
31
  components?: Record<string, string>;
32
32
  /**
33
33
  * Allowed HTML elements in mdz content.
34
34
  * If mdz content references an element not in this list,
35
- * that Mdz usage is skipped (left as runtime).
35
+ * that `Mdz` usage is skipped (left as runtime).
36
36
  */
37
37
  elements?: Array<string>;
38
38
  /**
39
- * Import sources that resolve to the Mdz component.
40
- * Used to verify that `Mdz` in templates refers to fuz_ui's Mdz.svelte.
39
+ * Import sources that resolve to the `Mdz` component.
40
+ * Used to verify that `Mdz` in templates refers to fuz_ui's `Mdz.svelte`.
41
41
  *
42
42
  * @default ['@fuzdev/fuz_ui/Mdz.svelte']
43
43
  */
@@ -328,7 +328,7 @@ const remove_dead_const_bindings = (s, ast, transformations, source) => {
328
328
  }
329
329
  };
330
330
  /**
331
- * Builds the replacement string for a transformed Mdz component.
331
+ * Builds the replacement string for a transformed `Mdz` component.
332
332
  *
333
333
  * Reconstructs the opening tag as `<MdzPrecompiled` with all attributes except `content`,
334
334
  * using source text slicing to preserve exact formatting and dynamic expressions.
@@ -350,13 +350,13 @@ const build_replacement = (node, exclude_attrs, children_markup, source) => {
350
350
  return `${opening}${children_markup}</${PRECOMPILED_NAME}>`;
351
351
  };
352
352
  /**
353
- * Determines which Mdz import declarations can be safely removed or trimmed.
353
+ * Determines which `Mdz` import declarations can be safely removed or trimmed.
354
354
  *
355
355
  * An import is removable when:
356
356
  * 1. All template usages of that name were successfully transformed.
357
357
  * 2. The identifier is not referenced elsewhere in script or template expressions.
358
358
  *
359
- * For multi-specifier imports, only the Mdz specifier is removed (partial removal).
359
+ * For multi-specifier imports, only the `Mdz` specifier is removed (partial removal).
360
360
  * For single-specifier imports, the entire declaration is removed.
361
361
  */
362
362
  const find_removable_mdz_imports = (ast, mdz_names, total_usages, transformed_usages) => {
@@ -399,13 +399,13 @@ const find_removable_mdz_imports = (ast, mdz_names, total_usages, transformed_us
399
399
  * Manages import additions and removals.
400
400
  *
401
401
  * Adds the `MdzPrecompiled` import and other required imports (DocsLink, Code, resolve).
402
- * Removes Mdz import declarations that are no longer referenced.
402
+ * Removes `Mdz` import declarations that are no longer referenced.
403
403
  *
404
404
  * Handles both full removal (single-specifier imports) and partial removal
405
- * (multi-specifier imports where only the Mdz specifier is removed).
405
+ * (multi-specifier imports where only the `Mdz` specifier is removed).
406
406
  *
407
407
  * To avoid MagicString boundary conflicts when the insertion position falls inside
408
- * a removal range, one removable Mdz import is overwritten with the MdzPrecompiled
408
+ * a removal range, one removable `Mdz` import is overwritten with the `MdzPrecompiled`
409
409
  * import line instead of using separate remove + appendLeft.
410
410
  */
411
411
  const manage_imports = (s, ast, transformations, removable_imports, compiled_component_import, source) => {
@@ -18,7 +18,7 @@ import type { DeclarationAnalysis, ReExportInfo, ModuleAnalysis } from './librar
18
18
  export interface TsProgramOptions {
19
19
  /** Project root directory. @default './' */
20
20
  root?: string;
21
- /** Path to tsconfig.json (relative to root). @default 'tsconfig.json' */
21
+ /** Path to `tsconfig.json` (relative to root). @default 'tsconfig.json' */
22
22
  tsconfig?: string;
23
23
  /** Override compiler options. */
24
24
  compiler_options?: ts.CompilerOptions;
@@ -38,7 +38,7 @@ export interface ModuleExportsAnalysis {
38
38
  module_comment?: string;
39
39
  /** All exported declarations with nodocs flags - consumer filters based on policy. */
40
40
  declarations: Array<DeclarationAnalysis>;
41
- /** Same-name re-exports (for building also_exported_from in post-processing). */
41
+ /** Same-name re-exports (for building `also_exported_from` in post-processing). */
42
42
  re_exports: Array<ReExportInfo>;
43
43
  /** Star exports (`export * from './module'`) - module paths that are fully re-exported. */
44
44
  star_exports: Array<string>;
@@ -49,7 +49,7 @@ export interface ModuleExportsAnalysis {
49
49
  * @param options - configuration options for program creation
50
50
  * @param log - optional logger for info messages
51
51
  * @returns the program and type checker
52
- * @throws Error if tsconfig.json is not found
52
+ * @throws Error if `tsconfig.json` is not found
53
53
  */
54
54
  export declare const ts_create_program: (options?: TsProgramOptions, log?: Logger) => TsProgram;
55
55
  /**
@@ -110,7 +110,7 @@ export declare const ts_analyze_declaration: (symbol: ts.Symbol, source_file: ts
110
110
  * Requires `@module` tag to identify module comments. The tag line is stripped
111
111
  * from the output. Supports optional module renaming: `@module custom-name`.
112
112
  *
113
- * @see https://typedoc.org/documents/Tags._module.html
113
+ * @see {@link https://typedoc.org/documents/Tags._module.html}
114
114
  */
115
115
  export declare const ts_extract_module_comment: (source_file: ts.SourceFile) => string | undefined;
116
116
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ts_helpers.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/ts_helpers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,KAAK,EACX,eAAe,EAEf,eAAe,EACf,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,yBAAyB,CAAC;AAEpD,OAAO,EAAC,WAAW,EAAkD,MAAM,oBAAoB,CAAC;AAChG,OAAO,EACN,KAAK,mBAAmB,EACxB,KAAK,cAAc,EAInB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,uBAAuB,CAAC;AAE3D,OAAO,KAAK,EAAC,mBAAmB,EAAE,YAAY,EAAE,cAAc,EAAC,MAAM,uBAAuB,CAAC;AAE7F;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC,4CAA4C;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iCAAiC;IACjC,gBAAgB,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACzB,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC;IACpB,OAAO,EAAE,EAAE,CAAC,WAAW,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACrC,0CAA0C;IAC1C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sFAAsF;IACtF,YAAY,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;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AC,WAAW,EACvB,aAAa,eAAe,EAC5B,OAAO,UAAU,CAAC,OAAO,WAAW,CAAC,EACrC,KAAK,eAAe,KAClB,IA+CF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAChC,MAAM,EAAE,CAAC,IAAI,EACb,SAAS,EAAE,CAAC,MAAM,EAClB,SAAS,EAAE,CAAC,WAAW,EACvB,aAAa,eAAe,EAC5B,KAAK,eAAe,KAClB,IA6DF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GACjC,MAAM,EAAE,CAAC,IAAI,EACb,SAAS,EAAE,CAAC,MAAM,EAClB,SAAS,EAAE,CAAC,WAAW,EACvB,aAAa,eAAe,EAC5B,KAAK,eAAe,KAClB,IAyIF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,GACpC,MAAM,EAAE,CAAC,IAAI,EACb,QAAQ,EAAE,CAAC,MAAM,EACjB,SAAS,EAAE,CAAC,WAAW,EACvB,aAAa,eAAe,EAC5B,KAAK,eAAe,KAClB,IAgBF,CAAC;AAgCF;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,GAAG,UAAU,CAAC"}
@@ -14,7 +14,7 @@ import { module_extract_dependencies, module_extract_path, module_is_source, } f
14
14
  * @param options - configuration options for program creation
15
15
  * @param log - optional logger for info messages
16
16
  * @returns the program and type checker
17
- * @throws Error if tsconfig.json is not found
17
+ * @throws Error if `tsconfig.json` is not found
18
18
  */
19
19
  export const ts_create_program = (options, log) => {
20
20
  const root = options?.root ?? './';
@@ -227,7 +227,7 @@ export const ts_analyze_declaration = (symbol, source_file, checker, ctx) => {
227
227
  * Requires `@module` tag to identify module comments. The tag line is stripped
228
228
  * from the output. Supports optional module renaming: `@module custom-name`.
229
229
  *
230
- * @see https://typedoc.org/documents/Tags._module.html
230
+ * @see {@link https://typedoc.org/documents/Tags._module.html}
231
231
  */
232
232
  export const ts_extract_module_comment = (source_file) => {
233
233
  const full_text = source_file.getFullText();
@@ -1,7 +1,7 @@
1
1
  import type { Plugin } from 'vite';
2
2
  export interface VitePluginLibraryWellKnownOptions {
3
3
  /**
4
- * Path to the library.json file (relative to vite.config.ts).
4
+ * Path to the `library.json` file (relative to `vite.config.ts`).
5
5
  * @default './src/routes/library.json'
6
6
  */
7
7
  library_path?: string;
@@ -9,7 +9,7 @@ export interface VitePluginLibraryWellKnownOptions {
9
9
  /**
10
10
  * Vite plugin that publishes `package.json` and `library.json` to `.well-known/`.
11
11
  *
12
- * Requires a generated library.json file (created by `library_gen` from `gro gen`).
12
+ * Requires a generated `library.json` file (created by `library_gen` from `gro gen`).
13
13
  * The plugin reads this JSON file and publishes its metadata to `.well-known/` for
14
14
  * both dev and production builds.
15
15
  *
@@ -9,7 +9,7 @@ const respond_json = (res, body) => {
9
9
  /**
10
10
  * Vite plugin that publishes `package.json` and `library.json` to `.well-known/`.
11
11
  *
12
- * Requires a generated library.json file (created by `library_gen` from `gro gen`).
12
+ * Requires a generated `library.json` file (created by `library_gen` from `gro gen`).
13
13
  * The plugin reads this JSON file and publishes its metadata to `.well-known/` for
14
14
  * both dev and production builds.
15
15
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuzdev/fuz_ui",
3
- "version": "0.191.1",
3
+ "version": "0.191.3",
4
4
  "description": "Svelte UI library",
5
5
  "tagline": "friendly user zystem",
6
6
  "glyph": "🧶",
@@ -81,9 +81,9 @@
81
81
  "devDependencies": {
82
82
  "@changesets/changelog-git": "^0.2.1",
83
83
  "@fuzdev/fuz_code": "^0.45.1",
84
- "@fuzdev/fuz_css": "^0.57.0",
84
+ "@fuzdev/fuz_css": "^0.58.0",
85
85
  "@fuzdev/fuz_util": "^0.55.0",
86
- "@fuzdev/gro": "^0.197.0",
86
+ "@fuzdev/gro": "^0.197.2",
87
87
  "@jridgewell/trace-mapping": "^0.3.31",
88
88
  "@ryanatkn/eslint-config": "^0.10.1",
89
89
  "@sveltejs/acorn-typescript": "^1.0.9",
@@ -101,7 +101,7 @@
101
101
  "magic-string": "^0.30.21",
102
102
  "prettier": "^3.7.4",
103
103
  "prettier-plugin-svelte": "^3.5.1",
104
- "svelte": "^5.54.0",
104
+ "svelte": "^5.54.1",
105
105
  "svelte-check": "^4.4.5",
106
106
  "svelte2tsx": "^0.7.52",
107
107
  "tslib": "^2.8.1",
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * Analysis functions follow a two-tier error model:
10
10
  *
11
- * **Accumulated (non-fatal)** - Collected in AnalysisContext, analysis continues:
11
+ * **Accumulated (non-fatal)** - Collected in `AnalysisContext`, analysis continues:
12
12
  * - Type resolution failures (complex generics, circular refs)
13
13
  * - Missing or unparseable JSDoc
14
14
  * - Individual member/prop extraction failures
@@ -44,6 +44,7 @@
44
44
  * ```
45
45
  *
46
46
  * @example
47
+ * ```ts
47
48
  * const ctx = new AnalysisContext();
48
49
  * // ... analysis functions add diagnostics via ctx.add(...)
49
50
  * if (ctx.has_errors()) {
@@ -51,6 +52,7 @@
51
52
  * console.error(`${err.file}:${err.line}: ${err.message}`);
52
53
  * }
53
54
  * }
55
+ * ```
54
56
  *
55
57
  * @module
56
58
  */
@@ -157,6 +159,7 @@ export type Diagnostic =
157
159
  * report collected diagnostics.
158
160
  *
159
161
  * @example
162
+ * ```ts
160
163
  * const ctx = new AnalysisContext();
161
164
  * ts_analyze_module_exports(source_file, checker, options, ctx);
162
165
  * if (ctx.has_errors()) {
@@ -165,12 +168,13 @@ export type Diagnostic =
165
168
  * console.error(format_diagnostic(d));
166
169
  * }
167
170
  * }
171
+ * ```
168
172
  */
169
173
  export class AnalysisContext {
170
174
  readonly diagnostics: Array<Diagnostic> = [];
171
175
 
172
176
  /**
173
- * Add a diagnostic to the collection.
177
+ * Add a `Diagnostic` to the collection.
174
178
  */
175
179
  add(diagnostic: Diagnostic): void {
176
180
  this.diagnostics.push(diagnostic);
@@ -205,7 +209,7 @@ export class AnalysisContext {
205
209
  }
206
210
 
207
211
  /**
208
- * Get diagnostics of a specific kind.
212
+ * Get diagnostics of a specific `DiagnosticKind`.
209
213
  */
210
214
  by_kind<K extends DiagnosticKind>(kind: K): Array<Extract<Diagnostic, {kind: K}>> {
211
215
  return this.diagnostics.filter((d) => d.kind === kind) as Array<Extract<Diagnostic, {kind: K}>>;
@@ -76,10 +76,10 @@ export interface ContextmenuStateOptions {
76
76
  }
77
77
 
78
78
  /**
79
- * Creates a `contextmenu` store.
79
+ * Creates a contextmenu store.
80
80
  * See usage with `ContextmenuRoot.svelte` and `Contextmenu.svelte`.
81
81
  *
82
- * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/contextmenu_event
82
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/contextmenu_event}
83
83
  */
84
84
  export class ContextmenuState {
85
85
  layout: Dimensions; // TODO $state?
@@ -305,7 +305,7 @@ export class ContextmenuState {
305
305
  }
306
306
 
307
307
  /**
308
- * Used by `ContextmenuEntry` and custom entry components
308
+ * Used by `ContextmenuEntry.svelte` and custom entry components.
309
309
  * @initializes
310
310
  */
311
311
  add_entry(run: () => ContextmenuRun, disabled: () => boolean = () => false): EntryState {
package/src/lib/csp.ts CHANGED
@@ -184,7 +184,7 @@ export type CspDirectiveValue<T extends CspDirective> = Defined<CspDirectives[T]
184
184
  export const csp_trust_levels = ['low', 'medium', 'high'] as const;
185
185
 
186
186
  /**
187
- * Numeric values for CSP trust levels, `csp_trust_levels`.
187
+ * Numeric values for CSP trust levels. See `csp_trust_levels`.
188
188
  * Lower is less trusted.
189
189
  * Includes `undefined` in the type for safety.
190
190
  */
@@ -265,7 +265,7 @@ export const COLOR_SCHEME_SCRIPT_HASH = 'sha256-QOxqn7EUzb3ydF9SALJoJGWSvywW9R0A
265
265
  /**
266
266
  * The base CSP directive defaults.
267
267
  * Prioritizes safety but loosens around media and styles, relying on defense-in-depth.
268
- * Customizable via `CreateCspDirectivesOptions.defaults`.
268
+ * Customizable via `CreateCspDirectivesOptions`.
269
269
  */
270
270
  export const csp_directive_value_defaults: Record<
271
271
  CspDirective,
@@ -336,9 +336,9 @@ export const csp_directive_required_trust_defaults: Record<CspDirective, CspTrus
336
336
  * Fuz excludes deprecated directives, so those are intentionally omitted,
337
337
  * but any newer missing directives are bugs.
338
338
  *
339
- * Could be moved to `csp.ts` but is currently here to keep that module smaller.
339
+ * Could be co-located but is currently here to keep that module smaller.
340
340
  *
341
- * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy
341
+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy}
342
342
  */
343
343
  export const csp_directive_specs: Array<CspDirectiveSpec> = [
344
344
  {
@@ -9,7 +9,7 @@ import {create_context} from './context_helpers.js';
9
9
  * Unlike `slugify` from `@fuzdev/fuz_util/path.js` which lowercases,
10
10
  * this keeps the original casing so API declarations like `AsyncStatus`
11
11
  * and `async_status` produce distinct fragment IDs.
12
- * Used by the Tome documentation system for heading and section anchors.
12
+ * Used by the `Tome` documentation system for heading and section anchors.
13
13
  * @param str - the string to convert to a fragment
14
14
  * @returns a URL-safe fragment identifier with case preserved
15
15
  */
@@ -17,10 +17,10 @@ export const parse_library_url_prefix = (value: unknown): string => {
17
17
  * Rich runtime representation of a library.
18
18
  *
19
19
  * Wraps `LibraryJson` with computed properties and provides the root
20
- * of the API documentation hierarchy: Library → modulesdeclarations
20
+ * of the API documentation hierarchy: `Library``Module``Declaration`.
21
21
  *
22
- * @see module.svelte.ts for Module class
23
- * @see declaration.svelte.ts for Declaration class
22
+ * @see `module.svelte.ts` for `Module` class
23
+ * @see `declaration.svelte.ts` for `Declaration` class
24
24
  */
25
25
  export class Library {
26
26
  readonly library_json: LibraryJson = $state.raw()!;
@@ -58,7 +58,7 @@ export class Library {
58
58
  );
59
59
 
60
60
  /**
61
- * All modules as rich Module instances.
61
+ * All modules as rich `Module` instances.
62
62
  */
63
63
  readonly modules = $derived(
64
64
  this.source_json.modules
@@ -36,9 +36,9 @@
36
36
  * }
37
37
  * ```
38
38
  *
39
- * @see ts_helpers.ts for TypeScript-specific analysis
40
- * @see svelte_helpers.ts for Svelte component analysis
41
- * @see module_helpers.ts for path utilities and SourceFileInfo
39
+ * @see `ts_helpers.ts` for TypeScript-specific analysis
40
+ * @see `svelte_helpers.ts` for Svelte component analysis
41
+ * @see `module_helpers.ts` for path utilities and `SourceFileInfo`
42
42
  *
43
43
  * @module
44
44
  */
@@ -63,7 +63,7 @@ import type {AnalysisContext} from './analysis_context.js';
63
63
  export interface DeclarationAnalysis {
64
64
  /** The analyzed declaration metadata. */
65
65
  declaration: DeclarationJson;
66
- /** Whether the declaration is marked @nodocs (should be excluded from documentation). */
66
+ /** Whether the declaration is marked `@nodocs` (should be excluded from documentation). */
67
67
  nodocs: boolean;
68
68
  }
69
69