@fuzdev/fuz_ui 0.205.0 → 0.205.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.
Files changed (145) hide show
  1. package/README.md +1 -1
  2. package/dist/Alert.svelte +1 -1
  3. package/dist/Alert.svelte.d.ts +1 -1
  4. package/dist/ApiDeclarationList.svelte +1 -1
  5. package/dist/ApiDeclarationList.svelte.d.ts +1 -1
  6. package/dist/ApiIndex.svelte +3 -3
  7. package/dist/ApiIndex.svelte.d.ts +2 -2
  8. package/dist/ApiModule.svelte +4 -4
  9. package/dist/ApiModule.svelte.d.ts +2 -2
  10. package/dist/ApiModulesList.svelte +1 -1
  11. package/dist/ApiModulesList.svelte.d.ts +1 -1
  12. package/dist/Breadcrumb.svelte +5 -5
  13. package/dist/Card.svelte +1 -7
  14. package/dist/ColorSchemeInput.svelte +4 -5
  15. package/dist/ColorSchemeInput.svelte.d.ts +1 -1
  16. package/dist/Contextmenu.svelte +1 -1
  17. package/dist/ContextmenuEntry.svelte +4 -6
  18. package/dist/ContextmenuEntry.svelte.d.ts +2 -2
  19. package/dist/ContextmenuIcon.svelte +1 -1
  20. package/dist/ContextmenuIcon.svelte.d.ts +1 -1
  21. package/dist/ContextmenuLinkEntry.svelte +6 -9
  22. package/dist/ContextmenuLinkEntry.svelte.d.ts +1 -1
  23. package/dist/ContextmenuMenu.svelte +3 -3
  24. package/dist/ContextmenuMenu.svelte.d.ts +2 -2
  25. package/dist/ContextmenuRoot.svelte +2 -2
  26. package/dist/ContextmenuRoot.svelte.d.ts +1 -1
  27. package/dist/ContextmenuRootForSafariCompatibility.svelte +3 -3
  28. package/dist/ContextmenuRootForSafariCompatibility.svelte.d.ts +1 -1
  29. package/dist/ContextmenuSeparator.svelte +1 -1
  30. package/dist/ContextmenuSubmenu.svelte +6 -7
  31. package/dist/ContextmenuSubmenu.svelte.d.ts +1 -1
  32. package/dist/ContextmenuTextEntry.svelte +2 -2
  33. package/dist/ContextmenuTextEntry.svelte.d.ts +2 -2
  34. package/dist/CopyToClipboard.svelte +7 -7
  35. package/dist/CopyToClipboard.svelte.d.ts +1 -1
  36. package/dist/CopyToClipboard.svelte.d.ts.map +1 -1
  37. package/dist/DeclarationDetail.svelte +3 -3
  38. package/dist/DeclarationDetail.svelte.d.ts +1 -1
  39. package/dist/DeclarationLink.svelte +4 -4
  40. package/dist/Dialog.svelte +3 -4
  41. package/dist/Dialog.svelte.d.ts +1 -1
  42. package/dist/DialogContent.svelte +3 -3
  43. package/dist/DialogContent.svelte.d.ts +1 -1
  44. package/dist/Docs.svelte +4 -4
  45. package/dist/Docs.svelte.d.ts +1 -1
  46. package/dist/DocsContent.svelte +2 -2
  47. package/dist/DocsContent.svelte.d.ts +2 -2
  48. package/dist/DocsFooter.svelte +2 -2
  49. package/dist/DocsFooter.svelte.d.ts +1 -1
  50. package/dist/DocsLink.svelte +4 -4
  51. package/dist/DocsLink.svelte.d.ts +3 -3
  52. package/dist/DocsList.svelte +1 -1
  53. package/dist/DocsMenu.svelte +2 -2
  54. package/dist/DocsMenu.svelte.d.ts +1 -1
  55. package/dist/DocsPageLinks.svelte +10 -9
  56. package/dist/DocsPageLinks.svelte.d.ts.map +1 -1
  57. package/dist/DocsPrimaryNav.svelte +2 -2
  58. package/dist/DocsSearch.svelte +1 -1
  59. package/dist/DocsSecondaryNav.svelte +2 -2
  60. package/dist/DocsSecondaryNav.svelte.d.ts +1 -1
  61. package/dist/DocsTertiaryNav.svelte +3 -3
  62. package/dist/DocsTertiaryNav.svelte.d.ts +1 -1
  63. package/dist/EcosystemLinks.svelte +2 -2
  64. package/dist/GithubLink.svelte +2 -2
  65. package/dist/HueInput.svelte +1 -1
  66. package/dist/HueInput.svelte.d.ts +1 -1
  67. package/dist/LibraryDetail.svelte +14 -11
  68. package/dist/LibraryDetail.svelte.d.ts +2 -2
  69. package/dist/LibraryDetail.svelte.d.ts.map +1 -1
  70. package/dist/LibrarySummary.svelte +3 -4
  71. package/dist/LibrarySummary.svelte.d.ts +1 -1
  72. package/dist/MdnLink.svelte +2 -2
  73. package/dist/ModuleLink.svelte +4 -4
  74. package/dist/PendingAnimation.svelte +7 -5
  75. package/dist/PendingAnimation.svelte.d.ts +1 -1
  76. package/dist/PendingAnimation.svelte.d.ts.map +1 -1
  77. package/dist/PendingButton.svelte +1 -2
  78. package/dist/ProjectLinks.svelte +2 -2
  79. package/dist/Redirect.svelte +1 -1
  80. package/dist/Spiders.svelte +3 -3
  81. package/dist/StyleVariableButton.svelte +3 -4
  82. package/dist/Svg.svelte +4 -4
  83. package/dist/Svg.svelte.d.ts +1 -1
  84. package/dist/ThemeInput.svelte +5 -6
  85. package/dist/ThemeInput.svelte.d.ts +1 -1
  86. package/dist/ThemeRoot.svelte +4 -4
  87. package/dist/ThemeRoot.svelte.d.ts +2 -2
  88. package/dist/TomeContent.svelte +3 -3
  89. package/dist/TomeContent.svelte.d.ts +1 -1
  90. package/dist/TomeHeader.svelte +2 -2
  91. package/dist/TomeLink.svelte +2 -2
  92. package/dist/TomeSection.svelte +3 -3
  93. package/dist/TomeSectionHeader.svelte +2 -2
  94. package/dist/TomeSectionHeader.svelte.d.ts +1 -1
  95. package/dist/TypeLink.svelte +1 -1
  96. package/dist/api_search.svelte.d.ts +3 -3
  97. package/dist/contextmenu_helpers.d.ts +1 -1
  98. package/dist/contextmenu_helpers.js +3 -3
  99. package/dist/contextmenu_state.svelte.d.ts +3 -3
  100. package/dist/contextmenu_state.svelte.js +6 -6
  101. package/dist/csp.d.ts +1 -1
  102. package/dist/declaration.svelte.d.ts +1 -1
  103. package/dist/declaration.svelte.js +1 -1
  104. package/dist/declaration_contextmenu.d.ts +2 -2
  105. package/dist/dialog.js +1 -1
  106. package/dist/docs_helpers.svelte.d.ts +1 -1
  107. package/dist/docs_helpers.svelte.js +3 -3
  108. package/dist/intersect.svelte.js +1 -1
  109. package/dist/library.svelte.d.ts +5 -5
  110. package/dist/library.svelte.js +5 -5
  111. package/dist/library_helpers.d.ts +1 -1
  112. package/dist/library_helpers.js +2 -2
  113. package/dist/module.svelte.d.ts +2 -2
  114. package/dist/module.svelte.js +2 -2
  115. package/dist/module_contextmenu.d.ts +2 -2
  116. package/dist/site.svelte.d.ts +3 -3
  117. package/dist/site.svelte.js +2 -2
  118. package/dist/style_variable_helpers.svelte.d.ts +1 -1
  119. package/dist/style_variable_helpers.svelte.js +1 -1
  120. package/dist/theme_state.svelte.d.ts +1 -1
  121. package/dist/theme_state.svelte.js +4 -4
  122. package/dist/tome.js +3 -3
  123. package/dist/vite_plugin_pkg_json.d.ts +3 -3
  124. package/dist/vite_plugin_pkg_json.js +3 -3
  125. package/package.json +5 -5
  126. package/src/lib/api_search.svelte.ts +3 -3
  127. package/src/lib/contextmenu_helpers.ts +3 -3
  128. package/src/lib/contextmenu_state.svelte.ts +8 -8
  129. package/src/lib/csp.ts +1 -1
  130. package/src/lib/declaration.svelte.ts +2 -2
  131. package/src/lib/declaration_contextmenu.ts +2 -2
  132. package/src/lib/dialog.ts +1 -1
  133. package/src/lib/docs_helpers.svelte.ts +3 -3
  134. package/src/lib/icons.ts +1 -1
  135. package/src/lib/intersect.svelte.ts +1 -1
  136. package/src/lib/library.svelte.ts +7 -7
  137. package/src/lib/library_helpers.ts +2 -2
  138. package/src/lib/logos.ts +1 -1
  139. package/src/lib/module.svelte.ts +3 -3
  140. package/src/lib/module_contextmenu.ts +2 -2
  141. package/src/lib/site.svelte.ts +5 -5
  142. package/src/lib/style_variable_helpers.svelte.ts +2 -2
  143. package/src/lib/theme_state.svelte.ts +4 -4
  144. package/src/lib/tome.ts +3 -3
  145. package/src/lib/vite_plugin_pkg_json.ts +4 -4
@@ -1,14 +1,14 @@
1
1
  import {resolve} from '$app/paths';
2
2
  import {SvelteMap, SvelteSet} from 'svelte/reactivity';
3
- import {ensure_end, ensure_start} from '@fuzdev/fuz_util/string.js';
3
+ import {ensure_end, ensure_start} from '@fuzdev/fuz_util/string.ts';
4
4
 
5
- import {create_context} from './context_helpers.js';
5
+ import {create_context} from './context_helpers.ts';
6
6
 
7
7
  export const docs_links_context = create_context<DocsLinks>();
8
8
 
9
9
  /**
10
10
  * Convert a string to a URL-safe fragment identifier, preserving case.
11
- * Unlike `slugify` from `@fuzdev/fuz_util/path.js` which lowercases,
11
+ * Unlike `slugify` from `@fuzdev/fuz_util/path.ts` which lowercases,
12
12
  * this keeps the original casing so API declarations like `AsyncStatus`
13
13
  * and `async_status` produce distinct fragment IDs.
14
14
  * Used by the `Tome` documentation system for heading and section anchors.
package/src/lib/icons.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type {SvgData} from './svg.js';
1
+ import type {SvgData} from './svg.ts';
2
2
 
3
3
  // SVG icon data for replacing character glyphs with scalable vector icons.
4
4
  // Each export uses the `icon_` prefix and conforms to `SvgData`.
@@ -1,5 +1,5 @@
1
1
  import type {Attachment} from 'svelte/attachments';
2
- import {deep_equal} from '@fuzdev/fuz_util/deep_equal.js';
2
+ import {deep_equal} from '@fuzdev/fuz_util/deep_equal.ts';
3
3
 
4
4
  export interface IntersectParams {
5
5
  /**
@@ -1,10 +1,10 @@
1
- import type {LibraryJson} from '@fuzdev/fuz_util/library_json.js';
2
- import {ensure_start, strip_end} from '@fuzdev/fuz_util/string.js';
3
- import type {Url} from '@fuzdev/fuz_util/url.js';
1
+ import type {LibraryJson} from '@fuzdev/fuz_util/library_json.ts';
2
+ import {ensure_start, strip_end} from '@fuzdev/fuz_util/string.ts';
3
+ import type {Url} from '@fuzdev/fuz_util/url.ts';
4
4
 
5
- import {create_context} from './context_helpers.js';
6
- import {Declaration} from './declaration.svelte.js';
7
- import {Module} from './module.svelte.js';
5
+ import {create_context} from './context_helpers.ts';
6
+ import {Declaration} from './declaration.svelte.ts';
7
+ import {Module} from './module.svelte.ts';
8
8
  import {
9
9
  package_is_published,
10
10
  repo_name_parse,
@@ -13,7 +13,7 @@ import {
13
13
  url_github_file,
14
14
  url_logo,
15
15
  url_npm_package,
16
- } from '@fuzdev/fuz_util/package_helpers.js';
16
+ } from '@fuzdev/fuz_util/package_helpers.ts';
17
17
 
18
18
  /**
19
19
  * Holds a getter to the active `Library` for the current subtree.
@@ -4,12 +4,12 @@
4
4
  * Runtime UI helpers for building URLs in the library documentation system.
5
5
  * These depend on fuz_ui's documentation paths and SvelteKit's runtime state.
6
6
  *
7
- * For generic package/repository URL helpers, see `@fuzdev/fuz_util/package_helpers.js`.
7
+ * For generic package/repository URL helpers, see `@fuzdev/fuz_util/package_helpers.ts`.
8
8
  *
9
9
  * @module
10
10
  */
11
11
 
12
- import {ensure_end, strip_start} from '@fuzdev/fuz_util/string.js';
12
+ import {ensure_end, strip_start} from '@fuzdev/fuz_util/string.ts';
13
13
  import {page} from '$app/state';
14
14
 
15
15
  /**
package/src/lib/logos.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type {SvgData} from './svg.js';
1
+ import type {SvgData} from './svg.ts';
2
2
 
3
3
  // TODO these can be optimized during builds, helpers and gen files?
4
4
 
@@ -4,9 +4,9 @@ import type {
4
4
  ExternalReExportJsonInput,
5
5
  } from 'svelte-docinfo/types.js';
6
6
 
7
- import {Declaration} from './declaration.svelte.js';
8
- import type {Library} from './library.svelte.js';
9
- import {url_github_file} from '@fuzdev/fuz_util/package_helpers.js';
7
+ import {Declaration} from './declaration.svelte.ts';
8
+ import type {Library} from './library.svelte.ts';
9
+ import {url_github_file} from '@fuzdev/fuz_util/package_helpers.ts';
10
10
 
11
11
  /**
12
12
  * Groups entries by a string key, with groups sorted by key. Entries within
@@ -1,5 +1,5 @@
1
- import type {Module} from './module.svelte.js';
2
- import type {ContextmenuParams} from './contextmenu_state.svelte.js';
1
+ import type {Module} from './module.svelte.ts';
2
+ import type {ContextmenuParams} from './contextmenu_state.svelte.ts';
3
3
 
4
4
  // TODO @many expand contextmenus for docs
5
5
 
@@ -1,9 +1,9 @@
1
- import type {Url} from '@fuzdev/fuz_util/url.js';
2
- import type {PkgJson} from '@fuzdev/fuz_util/pkg_json.js';
1
+ import type {Url} from '@fuzdev/fuz_util/url.ts';
2
+ import type {PkgJson} from '@fuzdev/fuz_util/pkg_json.ts';
3
3
 
4
- import {create_context} from './context_helpers.js';
5
- import {repo_url_parse} from '@fuzdev/fuz_util/package_helpers.js';
6
- import type {SvgData} from './svg.js';
4
+ import {create_context} from './context_helpers.ts';
5
+ import {repo_url_parse} from '@fuzdev/fuz_util/package_helpers.ts';
6
+ import type {SvgData} from './svg.ts';
7
7
 
8
8
  export interface SiteStateOptions {
9
9
  /**
@@ -1,6 +1,6 @@
1
- import type {StyleVariable} from '@fuzdev/fuz_css/variable.js';
1
+ import type {StyleVariable} from '@fuzdev/fuz_css/variable.ts';
2
2
 
3
- import {create_context} from './context_helpers.js';
3
+ import {create_context} from './context_helpers.ts';
4
4
 
5
5
  export const selected_variable_context = create_context(() => new SelectedStyleVariable(null));
6
6
 
@@ -1,9 +1,9 @@
1
- import {color_schemes, type ColorScheme, type Theme} from '@fuzdev/fuz_css/theme.js';
2
- import {default_themes} from '@fuzdev/fuz_css/themes.js';
1
+ import {color_schemes, type ColorScheme, type Theme} from '@fuzdev/fuz_css/theme.ts';
2
+ import {default_themes} from '@fuzdev/fuz_css/themes.ts';
3
3
  import {BROWSER} from 'esm-env';
4
4
 
5
- import {create_context} from './context_helpers.js';
6
- import {load_from_storage, save_to_storage} from './storage.js';
5
+ import {create_context} from './context_helpers.ts';
6
+ import {load_from_storage, save_to_storage} from './storage.ts';
7
7
 
8
8
  export interface ThemeStateJson {
9
9
  theme: Theme;
package/src/lib/tome.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import {resolve} from '$app/paths';
2
2
  import type {Component} from 'svelte';
3
3
  import {z} from 'zod';
4
- import {ensure_start} from '@fuzdev/fuz_util/string.js';
4
+ import {ensure_start} from '@fuzdev/fuz_util/string.ts';
5
5
 
6
- import {create_context} from './context_helpers.js';
7
- import {DOCS_PATH_DEFAULT} from './docs_helpers.svelte.js';
6
+ import {create_context} from './context_helpers.ts';
7
+ import {DOCS_PATH_DEFAULT} from './docs_helpers.svelte.ts';
8
8
 
9
9
  export const tomes_context = create_context<() => Map<string, Tome>>();
10
10
 
@@ -21,7 +21,7 @@
21
21
  *
22
22
  * ```ts
23
23
  * // vite.config.ts
24
- * import {vite_plugin_pkg_json} from '@fuzdev/fuz_ui/vite_plugin_pkg_json.js';
24
+ * import {vite_plugin_pkg_json} from '@fuzdev/fuz_ui/vite_plugin_pkg_json.ts';
25
25
  * export default defineConfig({plugins: [vite_plugin_pkg_json(), sveltekit()]});
26
26
  * ```
27
27
  *
@@ -34,7 +34,7 @@
34
34
  *
35
35
  * ```ts
36
36
  * // src/routes/pkg_json_keys.ts
37
- * import {pkg_json_keys} from '@fuzdev/fuz_util/pkg_json.js';
37
+ * import {pkg_json_keys} from '@fuzdev/fuz_util/pkg_json.ts';
38
38
  * export const pkg_json_keys_custom = [...pkg_json_keys, 'keywords'] as const;
39
39
  *
40
40
  * // vite.config.ts → vite_plugin_pkg_json({keys: pkg_json_keys_custom})
@@ -47,8 +47,8 @@
47
47
  import {readFileSync} from 'node:fs';
48
48
  import {join} from 'node:path';
49
49
  import type {Plugin, Rollup} from 'vite';
50
- import type {PackageJson} from '@fuzdev/fuz_util/package_json.js';
51
- import {pkg_json_from_package_json, pkg_json_keys} from '@fuzdev/fuz_util/pkg_json.js';
50
+ import type {PackageJson} from '@fuzdev/fuz_util/package_json.ts';
51
+ import {pkg_json_from_package_json, pkg_json_keys} from '@fuzdev/fuz_util/pkg_json.ts';
52
52
 
53
53
  const VIRTUAL_ID = 'virtual:pkg.json';
54
54
  /**