@fuzdev/fuz_ui 0.191.0 → 0.191.2
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/Alert.svelte +1 -1
- package/dist/ContextmenuRootForSafariCompatibility.svelte +1 -1
- package/dist/ProjectLinks.svelte +7 -3
- package/dist/ProjectLinks.svelte.d.ts.map +1 -1
- package/dist/analysis_context.d.ts +8 -4
- package/dist/analysis_context.d.ts.map +1 -1
- package/dist/analysis_context.js +8 -4
- package/dist/contextmenu_state.svelte.d.ts +3 -3
- package/dist/contextmenu_state.svelte.js +3 -3
- package/dist/csp.d.ts +4 -4
- package/dist/csp.js +4 -4
- package/dist/docs_helpers.svelte.d.ts +1 -1
- package/dist/docs_helpers.svelte.js +1 -1
- package/dist/library.svelte.d.ts +4 -4
- package/dist/library.svelte.js +4 -4
- package/dist/library_analysis.d.ts +5 -5
- package/dist/library_analysis.d.ts.map +1 -1
- package/dist/library_analysis.js +4 -4
- package/dist/library_gen.d.ts +10 -8
- package/dist/library_gen.d.ts.map +1 -1
- package/dist/library_gen.js +8 -8
- package/dist/library_generate.d.ts +2 -2
- package/dist/library_generate.js +2 -2
- package/dist/library_helpers.d.ts +5 -3
- package/dist/library_helpers.d.ts.map +1 -1
- package/dist/library_helpers.js +5 -3
- package/dist/library_output.d.ts +7 -7
- package/dist/library_output.d.ts.map +1 -1
- package/dist/library_output.js +5 -5
- package/dist/library_pipeline.d.ts +9 -5
- package/dist/library_pipeline.d.ts.map +1 -1
- package/dist/library_pipeline.js +9 -5
- package/dist/logos.d.ts +15 -1
- package/dist/logos.d.ts.map +1 -1
- package/dist/logos.js +13 -3
- package/dist/mdz.js +7 -7
- package/dist/mdz_helpers.d.ts +3 -3
- package/dist/mdz_helpers.js +3 -3
- package/dist/mdz_to_svelte.d.ts +4 -4
- package/dist/mdz_to_svelte.js +4 -4
- package/dist/module.svelte.d.ts +1 -1
- package/dist/module.svelte.js +1 -1
- package/dist/module_helpers.d.ts +3 -3
- package/dist/module_helpers.js +2 -2
- package/dist/package_helpers.d.ts +12 -12
- package/dist/package_helpers.js +12 -12
- package/dist/storage.d.ts +1 -1
- package/dist/storage.js +1 -1
- package/dist/svelte_helpers.d.ts +4 -4
- package/dist/svelte_helpers.js +4 -4
- package/dist/svelte_preprocess_mdz.d.ts +5 -5
- package/dist/svelte_preprocess_mdz.js +7 -7
- package/dist/tome.d.ts +1 -1
- package/dist/tome.js +1 -1
- package/dist/ts_helpers.d.ts +9 -9
- package/dist/ts_helpers.d.ts.map +1 -1
- package/dist/ts_helpers.js +7 -7
- package/dist/tsdoc_helpers.d.ts +1 -1
- package/dist/tsdoc_helpers.js +1 -1
- package/dist/vite_plugin_library_well_known.d.ts +2 -2
- package/dist/vite_plugin_library_well_known.js +1 -1
- package/package.json +6 -6
- package/src/lib/analysis_context.ts +8 -4
- package/src/lib/contextmenu_state.svelte.ts +3 -3
- package/src/lib/csp.ts +4 -4
- package/src/lib/docs_helpers.svelte.ts +1 -1
- package/src/lib/library.svelte.ts +4 -4
- package/src/lib/library_analysis.ts +5 -5
- package/src/lib/library_gen.ts +10 -8
- package/src/lib/library_generate.ts +2 -2
- package/src/lib/library_helpers.ts +5 -3
- package/src/lib/library_output.ts +7 -7
- package/src/lib/library_pipeline.ts +9 -5
- package/src/lib/logos.ts +15 -3
- package/src/lib/mdz.ts +10 -10
- package/src/lib/mdz_helpers.ts +3 -3
- package/src/lib/mdz_to_svelte.ts +4 -4
- package/src/lib/module.svelte.ts +1 -1
- package/src/lib/module_helpers.ts +3 -3
- package/src/lib/package_helpers.ts +12 -12
- package/src/lib/storage.ts +1 -1
- package/src/lib/svelte_helpers.ts +4 -4
- package/src/lib/svelte_preprocess_mdz.ts +15 -15
- package/src/lib/tome.ts +1 -1
- package/src/lib/ts_helpers.ts +9 -9
- package/src/lib/tsdoc_helpers.ts +1 -1
- package/src/lib/vite_plugin_library_well_known.ts +2 -2
package/dist/library_helpers.js
CHANGED
|
@@ -23,7 +23,7 @@ export const url_api_declaration = (declaration_name) => `${DOCS_API_PATH}#${enc
|
|
|
23
23
|
*
|
|
24
24
|
* @param homepage - package homepage URL
|
|
25
25
|
* @param declaration_name - name of the declaration to link to
|
|
26
|
-
* @returns
|
|
26
|
+
* @returns full URL like 'https://example.com/docs/api#declaration_name'
|
|
27
27
|
*/
|
|
28
28
|
export const url_api_declaration_full = (homepage, declaration_name) => `${homepage}${DOCS_PATH_DEFAULT}/api#${encodeURIComponent(declaration_name)}`;
|
|
29
29
|
/**
|
|
@@ -38,7 +38,7 @@ export const url_api_module = (module_path) => `${DOCS_API_PATH}/${module_path}`
|
|
|
38
38
|
*
|
|
39
39
|
* @param homepage_url - package homepage URL, or null
|
|
40
40
|
* @param logo_path - optional custom logo path (defaults to 'favicon.png')
|
|
41
|
-
* @returns
|
|
41
|
+
* @returns full URL to the logo, or null if no homepage
|
|
42
42
|
*/
|
|
43
43
|
export const url_package_logo = (homepage_url, logo_path) => {
|
|
44
44
|
if (!homepage_url)
|
|
@@ -53,12 +53,14 @@ export const url_package_logo = (homepage_url, logo_path) => {
|
|
|
53
53
|
*
|
|
54
54
|
* @param url - full URL to convert
|
|
55
55
|
* @param origin - origin to strip (defaults to current page origin)
|
|
56
|
-
* @returns
|
|
56
|
+
* @returns root-relative URL starting with '/'
|
|
57
57
|
*
|
|
58
58
|
* @example
|
|
59
|
+
* ```ts
|
|
59
60
|
* // Assuming page.url.origin is 'https://example.com'
|
|
60
61
|
* url_to_root_relative('https://example.com/docs/api')
|
|
61
62
|
* // => '/docs/api'
|
|
63
|
+
* ```
|
|
62
64
|
*/
|
|
63
65
|
export const url_to_root_relative = (url, origin = page.url.origin) => {
|
|
64
66
|
const origin_with_slash = ensure_end(origin, '/');
|
package/dist/library_output.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Library output generation.
|
|
3
3
|
*
|
|
4
|
-
* Generates the library.json and library.ts files from analyzed metadata.
|
|
4
|
+
* Generates the `library.json` and `library.ts` files from analyzed metadata.
|
|
5
5
|
*
|
|
6
|
-
* @see library_generate.ts for the main generation entry point
|
|
7
|
-
* @see library_pipeline.ts for pipeline orchestration functions
|
|
8
|
-
* @see library_gen.ts for Gro-specific integration
|
|
6
|
+
* @see `library_generate.ts` for the main generation entry point
|
|
7
|
+
* @see `library_pipeline.ts` for pipeline orchestration functions
|
|
8
|
+
* @see `library_gen.ts` for Gro-specific integration
|
|
9
9
|
*
|
|
10
10
|
* @module
|
|
11
11
|
*/
|
|
@@ -16,13 +16,13 @@ import type { SourceJson } from '@fuzdev/fuz_util/source_json.js';
|
|
|
16
16
|
* Contains both the JSON data and the TypeScript wrapper file.
|
|
17
17
|
*/
|
|
18
18
|
export interface LibraryOutputResult {
|
|
19
|
-
/** JSON content for library.json */
|
|
19
|
+
/** JSON content for `library.json`. */
|
|
20
20
|
json_content: string;
|
|
21
|
-
/** TypeScript wrapper content for library.ts */
|
|
21
|
+
/** TypeScript wrapper content for `library.ts`. */
|
|
22
22
|
ts_content: string;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
|
-
* Generate the library.json and library.ts file contents.
|
|
25
|
+
* Generate the `library.json` and `library.ts` file contents.
|
|
26
26
|
* Parses at generation time so runtime only needs the pre-computed result.
|
|
27
27
|
*
|
|
28
28
|
* Returns JSON + .ts wrapper because:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"library_output.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/library_output.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,kCAAkC,CAAC;AAClE,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,iCAAiC,CAAC;AAGhE;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IACnC,
|
|
1
|
+
{"version":3,"file":"library_output.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/library_output.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,kCAAkC,CAAC;AAClE,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,iCAAiC,CAAC;AAGhE;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IACnC,uCAAuC;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,UAAU,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,GACnC,cAAc,WAAW,EACzB,aAAa,UAAU,KACrB,mBAuBF,CAAC"}
|
package/dist/library_output.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Library output generation.
|
|
3
3
|
*
|
|
4
|
-
* Generates the library.json and library.ts files from analyzed metadata.
|
|
4
|
+
* Generates the `library.json` and `library.ts` files from analyzed metadata.
|
|
5
5
|
*
|
|
6
|
-
* @see library_generate.ts for the main generation entry point
|
|
7
|
-
* @see library_pipeline.ts for pipeline orchestration functions
|
|
8
|
-
* @see library_gen.ts for Gro-specific integration
|
|
6
|
+
* @see `library_generate.ts` for the main generation entry point
|
|
7
|
+
* @see `library_pipeline.ts` for pipeline orchestration functions
|
|
8
|
+
* @see `library_gen.ts` for Gro-specific integration
|
|
9
9
|
*
|
|
10
10
|
* @module
|
|
11
11
|
*/
|
|
12
12
|
import { library_json_parse } from '@fuzdev/fuz_util/library_json.js';
|
|
13
13
|
/**
|
|
14
|
-
* Generate the library.json and library.ts file contents.
|
|
14
|
+
* Generate the `library.json` and `library.ts` file contents.
|
|
15
15
|
* Parses at generation time so runtime only needs the pre-computed result.
|
|
16
16
|
*
|
|
17
17
|
* Returns JSON + .ts wrapper because:
|
|
@@ -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;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
|
|
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;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"}
|
package/dist/library_pipeline.js
CHANGED
|
@@ -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
|
|
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;
|
|
@@ -57,6 +64,13 @@ export declare const logo_fuz_gitops: {
|
|
|
57
64
|
d: string;
|
|
58
65
|
}[];
|
|
59
66
|
};
|
|
67
|
+
export declare const logo_fuz_docs: {
|
|
68
|
+
label: string;
|
|
69
|
+
fill: string;
|
|
70
|
+
paths: {
|
|
71
|
+
d: string;
|
|
72
|
+
}[];
|
|
73
|
+
};
|
|
60
74
|
export declare const logo_fuz_template: {
|
|
61
75
|
label: string;
|
|
62
76
|
fill: string;
|
package/dist/logos.d.ts.map
CHANGED
|
@@ -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,
|
|
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
|
|
61
|
-
label: 'a friendly
|
|
62
|
-
fill: '#
|
|
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',
|
|
@@ -88,6 +93,11 @@ export const logo_fuz_gitops = {
|
|
|
88
93
|
fill: '#6199d1',
|
|
89
94
|
paths: logo_fuz.paths,
|
|
90
95
|
};
|
|
96
|
+
export const logo_fuz_docs = {
|
|
97
|
+
label: 'a friendly cyan spider facing you',
|
|
98
|
+
fill: '#1ec3d2',
|
|
99
|
+
paths: logo_fuz.paths,
|
|
100
|
+
};
|
|
91
101
|
export const logo_fuz_template = {
|
|
92
102
|
label: 'a friendly orange pixelated spider facing you',
|
|
93
103
|
fill: '#f4672f',
|
package/dist/mdz.js
CHANGED
|
@@ -627,7 +627,7 @@ export class MdzParser {
|
|
|
627
627
|
/**
|
|
628
628
|
* Restore previously saved text accumulation state.
|
|
629
629
|
* Used to restore parent state when exiting nested structure parsing.
|
|
630
|
-
* @param state -
|
|
630
|
+
* @param state - state object returned from `#save_accumulation_state()`
|
|
631
631
|
*/
|
|
632
632
|
#restore_accumulation_state(state) {
|
|
633
633
|
this.#accumulated_text = state.accumulated_text;
|
|
@@ -640,9 +640,9 @@ export class MdzParser {
|
|
|
640
640
|
* Word boundary = not surrounded by word characters (A-Z, a-z, 0-9).
|
|
641
641
|
* Used to prevent intraword emphasis for underscores and tildes.
|
|
642
642
|
*
|
|
643
|
-
* @param index -
|
|
644
|
-
* @param check_before -
|
|
645
|
-
* @param check_after -
|
|
643
|
+
* @param index - position to check
|
|
644
|
+
* @param check_before - whether to check the character before this position
|
|
645
|
+
* @param check_after - whether to check the character after this position
|
|
646
646
|
*/
|
|
647
647
|
#is_at_word_boundary(index, check_before, check_after) {
|
|
648
648
|
if (check_before && index > 0) {
|
|
@@ -832,9 +832,9 @@ export class MdzParser {
|
|
|
832
832
|
* - Paragraph break (double newline) is encountered (allows block elements to interrupt inline formatting)
|
|
833
833
|
* - `end_index` boundary is reached
|
|
834
834
|
*
|
|
835
|
-
* @param delimiter -
|
|
836
|
-
* @param end_index -
|
|
837
|
-
* @returns
|
|
835
|
+
* @param delimiter - the delimiter string to stop at (e.g., '**', '_', ']')
|
|
836
|
+
* @param end_index - optional maximum index to parse up to (for greedy/bounded parsing)
|
|
837
|
+
* @returns array of parsed nodes (may be empty if delimiter found immediately)
|
|
838
838
|
*/
|
|
839
839
|
#parse_nodes_until(delimiter, end_index) {
|
|
840
840
|
const nodes = [];
|
package/dist/mdz_helpers.d.ts
CHANGED
|
@@ -123,9 +123,9 @@ export declare const mdz_is_url: (s: string) => boolean;
|
|
|
123
123
|
* (e.g., `'./a/../b'` → navigates up then down).
|
|
124
124
|
* Clamps at root — excess `..` segments stop at `/` rather than escaping.
|
|
125
125
|
*
|
|
126
|
-
* @param reference - a relative path starting with `./` or
|
|
127
|
-
* @param base -
|
|
128
|
-
* @returns
|
|
126
|
+
* @param reference - a relative path starting with `./` or `../`
|
|
127
|
+
* @param base - An absolute base path (e.g., `'/docs/mdz/'`). Empty string is treated as root.
|
|
128
|
+
* @returns an absolute resolved path (e.g., `'/docs/mdz/grammar'`)
|
|
129
129
|
*/
|
|
130
130
|
export declare const resolve_relative_path: (reference: string, base: string) => string;
|
|
131
131
|
export declare const extract_single_tag: (nodes: Array<MdzNode>) => MdzComponentNode | MdzElementNode | null;
|
package/dist/mdz_helpers.js
CHANGED
|
@@ -243,9 +243,9 @@ export const mdz_is_url = (s) => URL_PATTERN.test(s);
|
|
|
243
243
|
* (e.g., `'./a/../b'` → navigates up then down).
|
|
244
244
|
* Clamps at root — excess `..` segments stop at `/` rather than escaping.
|
|
245
245
|
*
|
|
246
|
-
* @param reference - a relative path starting with `./` or
|
|
247
|
-
* @param base -
|
|
248
|
-
* @returns
|
|
246
|
+
* @param reference - a relative path starting with `./` or `../`
|
|
247
|
+
* @param base - An absolute base path (e.g., `'/docs/mdz/'`). Empty string is treated as root.
|
|
248
|
+
* @returns an absolute resolved path (e.g., `'/docs/mdz/grammar'`)
|
|
249
249
|
*/
|
|
250
250
|
export const resolve_relative_path = (reference, base) => {
|
|
251
251
|
const segments = base.split('/');
|
package/dist/mdz_to_svelte.d.ts
CHANGED
|
@@ -28,12 +28,12 @@ export interface MdzToSvelteResult {
|
|
|
28
28
|
* Each node type produces output matching what `MdzNodeView.svelte` renders at runtime.
|
|
29
29
|
* Collects required imports and flags unconfigured component/element references.
|
|
30
30
|
*
|
|
31
|
-
* @param nodes - parsed mdz nodes to render
|
|
32
|
-
* @param components -
|
|
31
|
+
* @param nodes - parsed mdz nodes to render
|
|
32
|
+
* @param components - Component name to import path mapping (e.g., `{Alert: '$lib/Alert.svelte'}`)
|
|
33
33
|
* If content references a component not in this map, `has_unconfigured_tags` is set.
|
|
34
|
-
* @param elements -
|
|
34
|
+
* @param elements - Allowed HTML element names (e.g., `new Set(['aside', 'details'])`)
|
|
35
35
|
* If content references an element not in this set, `has_unconfigured_tags` is set.
|
|
36
|
-
* @param base -
|
|
36
|
+
* @param base - Base path for resolving relative links (e.g., `'/docs/mdz/'`)
|
|
37
37
|
* When provided, relative references (`./`, `../`) are resolved to absolute paths
|
|
38
38
|
* and passed through `resolve()`. Trailing slash recommended.
|
|
39
39
|
*/
|
package/dist/mdz_to_svelte.js
CHANGED
|
@@ -17,12 +17,12 @@ import { resolve_relative_path } from './mdz_helpers.js';
|
|
|
17
17
|
* Each node type produces output matching what `MdzNodeView.svelte` renders at runtime.
|
|
18
18
|
* Collects required imports and flags unconfigured component/element references.
|
|
19
19
|
*
|
|
20
|
-
* @param nodes - parsed mdz nodes to render
|
|
21
|
-
* @param components -
|
|
20
|
+
* @param nodes - parsed mdz nodes to render
|
|
21
|
+
* @param components - Component name to import path mapping (e.g., `{Alert: '$lib/Alert.svelte'}`)
|
|
22
22
|
* If content references a component not in this map, `has_unconfigured_tags` is set.
|
|
23
|
-
* @param elements -
|
|
23
|
+
* @param elements - Allowed HTML element names (e.g., `new Set(['aside', 'details'])`)
|
|
24
24
|
* If content references an element not in this set, `has_unconfigured_tags` is set.
|
|
25
|
-
* @param base -
|
|
25
|
+
* @param base - Base path for resolving relative links (e.g., `'/docs/mdz/'`)
|
|
26
26
|
* When provided, relative references (`./`, `../`) are resolved to absolute paths
|
|
27
27
|
* and passed through `resolve()`. Trailing slash recommended.
|
|
28
28
|
*/
|
package/dist/module.svelte.d.ts
CHANGED
|
@@ -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
|
/**
|
package/dist/module.svelte.js
CHANGED
|
@@ -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
|
package/dist/module_helpers.d.ts
CHANGED
|
@@ -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
|
/**
|
|
@@ -307,7 +307,7 @@ export declare const module_is_test: (path: string) => boolean;
|
|
|
307
307
|
*
|
|
308
308
|
* @param path - full absolute path to check
|
|
309
309
|
* @param options - module source options for filtering
|
|
310
|
-
* @returns
|
|
310
|
+
* @returns true if the path is an analyzable source file
|
|
311
311
|
*
|
|
312
312
|
* @example
|
|
313
313
|
* ```ts
|
package/dist/module_helpers.js
CHANGED
|
@@ -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) {
|
|
@@ -256,7 +256,7 @@ export const module_is_test = (path) => path.endsWith('.test.ts');
|
|
|
256
256
|
*
|
|
257
257
|
* @param path - full absolute path to check
|
|
258
258
|
* @param options - module source options for filtering
|
|
259
|
-
* @returns
|
|
259
|
+
* @returns true if the path is an analyzable source file
|
|
260
260
|
*
|
|
261
261
|
* @example
|
|
262
262
|
* ```ts
|
|
@@ -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
|
*
|
|
@@ -27,7 +27,7 @@ import type { PackageJson } from '@fuzdev/fuz_util/package_json.js';
|
|
|
27
27
|
* @param repo_url - repository URL (e.g., 'https://github.com/owner/repo')
|
|
28
28
|
* @param file_path - path to the file (leading './' is stripped)
|
|
29
29
|
* @param line - optional line number for deep linking
|
|
30
|
-
* @returns
|
|
30
|
+
* @returns full GitHub URL to the file on the main branch
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
33
|
* ```ts
|
|
@@ -47,7 +47,7 @@ export declare const url_github_file: (repo_url: string, file_path: string, line
|
|
|
47
47
|
*
|
|
48
48
|
* @param repo_url - repository URL (e.g., 'https://github.com/owner/repo')
|
|
49
49
|
* @param repo_name - repository name to strip from the URL
|
|
50
|
-
* @returns
|
|
50
|
+
* @returns organization URL, or null if repo_url doesn't end with repo_name
|
|
51
51
|
*
|
|
52
52
|
* @example
|
|
53
53
|
* ```ts
|
|
@@ -60,7 +60,7 @@ export declare const url_github_org: (repo_url: string, repo_name: string) => st
|
|
|
60
60
|
* Extract GitHub owner/org name from repository URL.
|
|
61
61
|
*
|
|
62
62
|
* @param repo_url - repository URL (e.g., 'https://github.com/owner/repo')
|
|
63
|
-
* @returns
|
|
63
|
+
* @returns owner name, or null if not a valid GitHub URL
|
|
64
64
|
*
|
|
65
65
|
* @example
|
|
66
66
|
* ```ts
|
|
@@ -79,7 +79,7 @@ export declare const repo_url_github_owner: (repo_url: string) => string | null;
|
|
|
79
79
|
* Build npm package URL.
|
|
80
80
|
*
|
|
81
81
|
* @param package_name - package name (can be scoped like '@org/package')
|
|
82
|
-
* @returns
|
|
82
|
+
* @returns full npm package page URL
|
|
83
83
|
*
|
|
84
84
|
* @example
|
|
85
85
|
* ```ts
|
|
@@ -96,15 +96,15 @@ 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
|
|
100
|
-
* @returns
|
|
99
|
+
* @param package_json - the `package.json` object to check
|
|
100
|
+
* @returns `true` if the package appears to be published
|
|
101
101
|
*/
|
|
102
102
|
export declare const package_is_published: (package_json: PackageJson) => boolean;
|
|
103
103
|
/**
|
|
104
104
|
* Extract repository name without scope from package name.
|
|
105
105
|
*
|
|
106
106
|
* @param name - package name (can be scoped like '@org/package')
|
|
107
|
-
* @returns
|
|
107
|
+
* @returns repository name without scope
|
|
108
108
|
* @throws Error if scoped package name is malformed
|
|
109
109
|
*
|
|
110
110
|
* @example
|
|
@@ -121,13 +121,13 @@ 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
|
|
130
|
-
* @returns
|
|
129
|
+
* @param repository - the repository field from `package.json`
|
|
130
|
+
* @returns clean repository URL, or null if not provided
|
|
131
131
|
*
|
|
132
132
|
* @example
|
|
133
133
|
* ```ts
|
|
@@ -153,7 +153,7 @@ export declare const repo_url_parse: (repository: PackageJson["repository"]) =>
|
|
|
153
153
|
*
|
|
154
154
|
* @param homepage_url - package homepage URL
|
|
155
155
|
* @param filename - filename in .well-known directory
|
|
156
|
-
* @returns
|
|
156
|
+
* @returns full URL to the .well-known file
|
|
157
157
|
*
|
|
158
158
|
* @example
|
|
159
159
|
* ```ts
|
package/dist/package_helpers.js
CHANGED
|
@@ -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
|
*
|
|
@@ -27,7 +27,7 @@ import { ensure_end, strip_end, strip_start } from '@fuzdev/fuz_util/string.js';
|
|
|
27
27
|
* @param repo_url - repository URL (e.g., 'https://github.com/owner/repo')
|
|
28
28
|
* @param file_path - path to the file (leading './' is stripped)
|
|
29
29
|
* @param line - optional line number for deep linking
|
|
30
|
-
* @returns
|
|
30
|
+
* @returns full GitHub URL to the file on the main branch
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
33
|
* ```ts
|
|
@@ -51,7 +51,7 @@ export const url_github_file = (repo_url, file_path, line) => {
|
|
|
51
51
|
*
|
|
52
52
|
* @param repo_url - repository URL (e.g., 'https://github.com/owner/repo')
|
|
53
53
|
* @param repo_name - repository name to strip from the URL
|
|
54
|
-
* @returns
|
|
54
|
+
* @returns organization URL, or null if repo_url doesn't end with repo_name
|
|
55
55
|
*
|
|
56
56
|
* @example
|
|
57
57
|
* ```ts
|
|
@@ -66,7 +66,7 @@ export const url_github_org = (repo_url, repo_name) => {
|
|
|
66
66
|
* Extract GitHub owner/org name from repository URL.
|
|
67
67
|
*
|
|
68
68
|
* @param repo_url - repository URL (e.g., 'https://github.com/owner/repo')
|
|
69
|
-
* @returns
|
|
69
|
+
* @returns owner name, or null if not a valid GitHub URL
|
|
70
70
|
*
|
|
71
71
|
* @example
|
|
72
72
|
* ```ts
|
|
@@ -91,7 +91,7 @@ export const repo_url_github_owner = (repo_url) => {
|
|
|
91
91
|
* Build npm package URL.
|
|
92
92
|
*
|
|
93
93
|
* @param package_name - package name (can be scoped like '@org/package')
|
|
94
|
-
* @returns
|
|
94
|
+
* @returns full npm package page URL
|
|
95
95
|
*
|
|
96
96
|
* @example
|
|
97
97
|
* ```ts
|
|
@@ -108,8 +108,8 @@ 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
|
|
112
|
-
* @returns
|
|
111
|
+
* @param package_json - the `package.json` object to check
|
|
112
|
+
* @returns `true` if the package appears to be published
|
|
113
113
|
*/
|
|
114
114
|
export const package_is_published = (package_json) => {
|
|
115
115
|
return !package_json.private && !!package_json.exports && package_json.version !== '0.0.1';
|
|
@@ -118,7 +118,7 @@ export const package_is_published = (package_json) => {
|
|
|
118
118
|
* Extract repository name without scope from package name.
|
|
119
119
|
*
|
|
120
120
|
* @param name - package name (can be scoped like '@org/package')
|
|
121
|
-
* @returns
|
|
121
|
+
* @returns repository name without scope
|
|
122
122
|
* @throws Error if scoped package name is malformed
|
|
123
123
|
*
|
|
124
124
|
* @example
|
|
@@ -144,13 +144,13 @@ 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
|
|
153
|
-
* @returns
|
|
152
|
+
* @param repository - the repository field from `package.json`
|
|
153
|
+
* @returns clean repository URL, or null if not provided
|
|
154
154
|
*
|
|
155
155
|
* @example
|
|
156
156
|
* ```ts
|
|
@@ -183,7 +183,7 @@ export const repo_url_parse = (repository) => {
|
|
|
183
183
|
*
|
|
184
184
|
* @param homepage_url - package homepage URL
|
|
185
185
|
* @param filename - filename in .well-known directory
|
|
186
|
-
* @returns
|
|
186
|
+
* @returns full URL to the .well-known file
|
|
187
187
|
*
|
|
188
188
|
* @example
|
|
189
189
|
* ```ts
|
package/dist/storage.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const save_to_storage: (key: string, value: any, is_json?: boolea
|
|
|
7
7
|
* @param key - the localStorage key
|
|
8
8
|
* @param is_json - whether to parse the value as JSON
|
|
9
9
|
* @param parse_fn - optional custom parsing function to transform the value
|
|
10
|
-
* @returns
|
|
10
|
+
* @returns the parsed value or null if not found or parsing fails
|
|
11
11
|
*/
|
|
12
12
|
export declare const load_from_storage: <T>(key: string, is_json?: boolean, parse_fn?: (value: unknown) => T | null) => T | null;
|
|
13
13
|
//# sourceMappingURL=storage.d.ts.map
|