@fuzdev/fuz_ui 0.205.1 → 0.205.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 (82) hide show
  1. package/README.md +1 -1
  2. package/dist/ApiModule.svelte +1 -1
  3. package/dist/Breadcrumb.svelte +2 -2
  4. package/dist/ColorSchemeInput.svelte +2 -2
  5. package/dist/ColorSchemeInput.svelte.d.ts +1 -1
  6. package/dist/ContextmenuEntry.svelte +1 -1
  7. package/dist/ContextmenuLinkEntry.svelte +2 -2
  8. package/dist/ContextmenuMenu.svelte +1 -1
  9. package/dist/ContextmenuRootForSafariCompatibility.svelte +1 -1
  10. package/dist/ContextmenuSubmenu.svelte +1 -1
  11. package/dist/CopyToClipboard.svelte +1 -1
  12. package/dist/CopyToClipboard.svelte.d.ts +1 -1
  13. package/dist/DeclarationDetail.svelte +2 -2
  14. package/dist/DeclarationLink.svelte +1 -1
  15. package/dist/Dialog.svelte +1 -1
  16. package/dist/DocsFooter.svelte +1 -1
  17. package/dist/DocsFooter.svelte.d.ts +1 -1
  18. package/dist/DocsLink.svelte +1 -1
  19. package/dist/DocsLink.svelte.d.ts +1 -1
  20. package/dist/DocsPrimaryNav.svelte +1 -1
  21. package/dist/GithubLink.svelte +1 -1
  22. package/dist/HueInput.svelte +1 -1
  23. package/dist/HueInput.svelte.d.ts +1 -1
  24. package/dist/LibraryDetail.svelte +3 -3
  25. package/dist/LibraryDetail.svelte.d.ts +1 -1
  26. package/dist/LibrarySummary.svelte +1 -1
  27. package/dist/MdnLink.svelte +1 -1
  28. package/dist/ModuleLink.svelte +1 -1
  29. package/dist/PendingAnimation.svelte +1 -1
  30. package/dist/PendingAnimation.svelte.d.ts +1 -1
  31. package/dist/Redirect.svelte +1 -1
  32. package/dist/Spiders.svelte +2 -2
  33. package/dist/StyleVariableButton.svelte +1 -1
  34. package/dist/Svg.svelte +2 -2
  35. package/dist/ThemeInput.svelte +3 -3
  36. package/dist/ThemeInput.svelte.d.ts +1 -1
  37. package/dist/ThemeRoot.svelte +2 -2
  38. package/dist/ThemeRoot.svelte.d.ts +1 -1
  39. package/dist/contextmenu_helpers.js +2 -2
  40. package/dist/contextmenu_state.svelte.d.ts +1 -1
  41. package/dist/contextmenu_state.svelte.js +2 -2
  42. package/dist/csp.d.ts +1 -1
  43. package/dist/csp_of_fuzdev.d.ts +1 -1
  44. package/dist/declaration.svelte.d.ts +1 -1
  45. package/dist/declaration.svelte.js +1 -1
  46. package/dist/docs_helpers.svelte.d.ts +1 -1
  47. package/dist/docs_helpers.svelte.js +2 -2
  48. package/dist/intersect.svelte.js +1 -1
  49. package/dist/library.svelte.d.ts +3 -3
  50. package/dist/library.svelte.js +2 -2
  51. package/dist/library_helpers.d.ts +1 -1
  52. package/dist/library_helpers.js +2 -2
  53. package/dist/module.svelte.js +1 -1
  54. package/dist/site.svelte.d.ts +2 -2
  55. package/dist/site.svelte.js +1 -1
  56. package/dist/style_variable_helpers.svelte.d.ts +1 -1
  57. package/dist/theme_state.svelte.d.ts +1 -1
  58. package/dist/theme_state.svelte.js +2 -2
  59. package/dist/tome.js +1 -1
  60. package/dist/vite_plugin_pkg_json.d.ts +2 -2
  61. package/dist/vite_plugin_pkg_json.js +2 -2
  62. package/package.json +4 -4
  63. package/src/lib/api_search.svelte.ts +3 -3
  64. package/src/lib/contextmenu_helpers.ts +3 -3
  65. package/src/lib/contextmenu_state.svelte.ts +8 -8
  66. package/src/lib/csp.ts +1 -1
  67. package/src/lib/declaration.svelte.ts +2 -2
  68. package/src/lib/declaration_contextmenu.ts +2 -2
  69. package/src/lib/dialog.ts +1 -1
  70. package/src/lib/docs_helpers.svelte.ts +3 -3
  71. package/src/lib/icons.ts +1 -1
  72. package/src/lib/intersect.svelte.ts +1 -1
  73. package/src/lib/library.svelte.ts +7 -7
  74. package/src/lib/library_helpers.ts +2 -2
  75. package/src/lib/logos.ts +1 -1
  76. package/src/lib/module.svelte.ts +3 -3
  77. package/src/lib/module_contextmenu.ts +2 -2
  78. package/src/lib/site.svelte.ts +5 -5
  79. package/src/lib/style_variable_helpers.svelte.ts +2 -2
  80. package/src/lib/theme_state.svelte.ts +4 -4
  81. package/src/lib/tome.ts +3 -3
  82. package/src/lib/vite_plugin_pkg_json.ts +4 -4
package/README.md CHANGED
@@ -64,7 +64,7 @@ import 'virtual:fuz.css';
64
64
  import ThemeRoot from '@fuzdev/fuz_ui/ThemeRoot.svelte';
65
65
 
66
66
  // and Fuz TypeScript modules:
67
- import {type Theme, theme_state_context} from '@fuzdev/fuz_ui/theme_state.svelte.js';
67
+ import {type Theme, theme_state_context} from '@fuzdev/fuz_ui/theme_state.svelte.ts';
68
68
  ```
69
69
 
70
70
  See [the library](https://ui.fuz.dev/docs) for more.
@@ -5,7 +5,7 @@
5
5
  mdz_code_context,
6
6
  mdz_codeblock_context,
7
7
  mdz_set_context_with_fallback,
8
- } from '@fuzdev/mdz/mdz_contexts.js';
8
+ } from '@fuzdev/mdz/mdz_contexts.ts';
9
9
 
10
10
  import {set_library_context_with_fallback, type Library} from './library.svelte.js';
11
11
  import {tome_get_by_slug, type Tome} from './tome.js';
@@ -1,9 +1,9 @@
1
1
  <script lang="ts">
2
- import {parse_path_pieces} from '@fuzdev/fuz_util/path.js';
2
+ import {parse_path_pieces} from '@fuzdev/fuz_util/path.ts';
3
3
  import {resolve} from '$app/paths';
4
4
  import {page} from '$app/state';
5
5
  import type {Snippet} from 'svelte';
6
- import {strip_start, ensure_end} from '@fuzdev/fuz_util/string.js';
6
+ import {strip_start, ensure_end} from '@fuzdev/fuz_util/string.ts';
7
7
  import type {SvelteHTMLElements} from 'svelte/elements';
8
8
 
9
9
  import Svg from './Svg.svelte';
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
- import {swallow} from '@fuzdev/fuz_util/dom.js';
3
- import {color_schemes, type ColorScheme} from '@fuzdev/fuz_css/theme.js';
2
+ import {swallow} from '@fuzdev/fuz_util/dom.ts';
3
+ import {color_schemes, type ColorScheme} from '@fuzdev/fuz_css/theme.ts';
4
4
  import type {SvelteHTMLElements} from 'svelte/elements';
5
5
 
6
6
  import {theme_state_context} from './theme_state.svelte.js';
@@ -1,4 +1,4 @@
1
- import { type ColorScheme } from '@fuzdev/fuz_css/theme.js';
1
+ import { type ColorScheme } from '@fuzdev/fuz_css/theme.ts';
2
2
  import type { SvelteHTMLElements } from 'svelte/elements';
3
3
  type $$ComponentProps = SvelteHTMLElements['menu'] & {
4
4
  value?: {
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import {onDestroy, type Snippet} from 'svelte';
3
- import {swallow} from '@fuzdev/fuz_util/dom.js';
3
+ import {swallow} from '@fuzdev/fuz_util/dom.ts';
4
4
 
5
5
  import PendingAnimation from './PendingAnimation.svelte';
6
6
  import {contextmenu_context, type ContextmenuRun} from './contextmenu_state.svelte.js';
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
- import {strip_start} from '@fuzdev/fuz_util/string.js';
3
- import {swallow} from '@fuzdev/fuz_util/dom.js';
2
+ import {strip_start} from '@fuzdev/fuz_util/string.ts';
3
+ import {swallow} from '@fuzdev/fuz_util/dom.ts';
4
4
  import type {Snippet} from 'svelte';
5
5
  import {page} from '$app/state';
6
6
 
@@ -13,7 +13,7 @@
13
13
  * the roots own gesture detection, i.e. how the menu opens. Holds no gesture
14
14
  * state of its own; the `open_guard` it consults is owned and armed by the root.
15
15
  */
16
- import {swallow} from '@fuzdev/fuz_util/dom.js';
16
+ import {swallow} from '@fuzdev/fuz_util/dom.ts';
17
17
  import type {ComponentProps, Snippet} from 'svelte';
18
18
 
19
19
  import {
@@ -17,7 +17,7 @@
17
17
  * Otherwise, use the default `ContextmenuRoot.svelte` which is much simpler
18
18
  * and relies on the standard `contextmenu` event.
19
19
  */
20
- import {swallow} from '@fuzdev/fuz_util/dom.js';
20
+ import {swallow} from '@fuzdev/fuz_util/dom.ts';
21
21
  import {on} from 'svelte/events';
22
22
 
23
23
  import {
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import {onDestroy, type Snippet} from 'svelte';
3
- import {swallow} from '@fuzdev/fuz_util/dom.js';
3
+ import {swallow} from '@fuzdev/fuz_util/dom.ts';
4
4
 
5
5
  import {contextmenu_context, contextmenu_dimensions_context} from './contextmenu_state.svelte.js';
6
6
  import {contextmenu_calculate_submenu_translate} from './contextmenu_helpers.js';
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import type {OmitStrict} from '@fuzdev/fuz_util/types.js';
2
+ import type {OmitStrict} from '@fuzdev/fuz_util/types.ts';
3
3
  import type {Snippet} from 'svelte';
4
4
  import type {SvelteHTMLElements} from 'svelte/elements';
5
5
  import {scale, slide} from 'svelte/transition';
@@ -1,4 +1,4 @@
1
- import type { OmitStrict } from '@fuzdev/fuz_util/types.js';
1
+ import type { OmitStrict } from '@fuzdev/fuz_util/types.ts';
2
2
  import type { Snippet } from 'svelte';
3
3
  import type { SvelteHTMLElements } from 'svelte/elements';
4
4
  type $$ComponentProps = OmitStrict<SvelteHTMLElements['button'], 'children'> & {
@@ -12,12 +12,12 @@ including parameters, props, members, overloads, intersects, and more.
12
12
  <script lang="ts">
13
13
  import Code from '@fuzdev/fuz_code/Code.svelte';
14
14
  import Mdz from '@fuzdev/mdz/Mdz.svelte';
15
- import {mdz_from_tsdoc} from '@fuzdev/mdz/tsdoc_mdz.js';
15
+ import {mdz_from_tsdoc} from '@fuzdev/mdz/tsdoc_mdz.ts';
16
16
  import {
17
17
  mdz_code_context,
18
18
  mdz_codeblock_context,
19
19
  mdz_set_context_with_fallback,
20
- } from '@fuzdev/mdz/mdz_contexts.js';
20
+ } from '@fuzdev/mdz/mdz_contexts.ts';
21
21
  import type {ParameterJsonInput} from 'svelte-docinfo/types.js';
22
22
 
23
23
  import type {Declaration} from './declaration.svelte.js';
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import type {SvelteHTMLElements} from 'svelte/elements';
3
- import {ensure_start} from '@fuzdev/fuz_util/string.js';
3
+ import {ensure_start} from '@fuzdev/fuz_util/string.ts';
4
4
 
5
5
  import {library_context} from './library.svelte.js';
6
6
  import {contextmenu_attachment} from './contextmenu_state.svelte.js';
@@ -2,7 +2,7 @@
2
2
  import type {Snippet} from 'svelte';
3
3
  import type {SvelteHTMLElements} from 'svelte/elements';
4
4
  import {SvelteSet} from 'svelte/reactivity';
5
- import {swallow} from '@fuzdev/fuz_util/dom.js';
5
+ import {swallow} from '@fuzdev/fuz_util/dom.ts';
6
6
 
7
7
  import {dialog_context, type DialogContext, type DialogAlign} from './dialog.js';
8
8
 
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import {format_url, type Url} from '@fuzdev/fuz_util/url.js';
2
+ import {format_url, type Url} from '@fuzdev/fuz_util/url.ts';
3
3
  import type {Snippet} from 'svelte';
4
4
  import type {SvelteHTMLElements} from 'svelte/elements';
5
5
 
@@ -1,4 +1,4 @@
1
- import { type Url } from '@fuzdev/fuz_util/url.js';
1
+ import { type Url } from '@fuzdev/fuz_util/url.ts';
2
2
  import type { Snippet } from 'svelte';
3
3
  import type { SvelteHTMLElements } from 'svelte/elements';
4
4
  type $$ComponentProps = SvelteHTMLElements['footer'] & {
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import type {Snippet} from 'svelte';
3
3
  import type {HTMLAttributes, SvelteHTMLElements} from 'svelte/elements';
4
- import type {OmitStrict} from '@fuzdev/fuz_util/types.js';
4
+ import type {OmitStrict} from '@fuzdev/fuz_util/types.ts';
5
5
 
6
6
  import ModuleLink from './ModuleLink.svelte';
7
7
  import DeclarationLink from './DeclarationLink.svelte';
@@ -1,6 +1,6 @@
1
1
  import type { Snippet } from 'svelte';
2
2
  import type { HTMLAttributes, SvelteHTMLElements } from 'svelte/elements';
3
- import type { OmitStrict } from '@fuzdev/fuz_util/types.js';
3
+ import type { OmitStrict } from '@fuzdev/fuz_util/types.ts';
4
4
  import type { Declaration } from './declaration.svelte.js';
5
5
  import type { Module } from './module.svelte.js';
6
6
  type $$ComponentProps = // generic element attrs, the common denominator of the rendered roots -
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import {is_iframed} from '@fuzdev/fuz_util/dom.js';
2
+ import {is_iframed} from '@fuzdev/fuz_util/dom.ts';
3
3
  import type {Snippet} from 'svelte';
4
4
  import {scrollY} from 'svelte/reactivity/window';
5
5
  import type {SvelteHTMLElements} from 'svelte/elements';
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import {ensure_start, strip_start} from '@fuzdev/fuz_util/string.js';
2
+ import {ensure_start, strip_start} from '@fuzdev/fuz_util/string.ts';
3
3
  import type {SvelteHTMLElements} from 'svelte/elements';
4
4
  import {DEV} from 'esm-env';
5
5
 
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import type {Hue} from '@fuzdev/fuz_util/colors.js';
2
+ import type {Hue} from '@fuzdev/fuz_util/colors.ts';
3
3
  import type {Snippet} from 'svelte';
4
4
  import type {SvelteHTMLElements} from 'svelte/elements';
5
5
 
@@ -1,4 +1,4 @@
1
- import type { Hue } from '@fuzdev/fuz_util/colors.js';
1
+ import type { Hue } from '@fuzdev/fuz_util/colors.ts';
2
2
  import type { Snippet } from 'svelte';
3
3
  import type { SvelteHTMLElements } from 'svelte/elements';
4
4
  type $$ComponentProps = SvelteHTMLElements['div'] & {
@@ -9,8 +9,8 @@ with file-type coloring. Uses svelte-docinfo's file type predicates for module c
9
9
  -->
10
10
  <script lang="ts">
11
11
  import {page} from '$app/state';
12
- import {format_url} from '@fuzdev/fuz_util/url.js';
13
- import type {OmitStrict} from '@fuzdev/fuz_util/types.js';
12
+ import {format_url} from '@fuzdev/fuz_util/url.ts';
13
+ import type {OmitStrict} from '@fuzdev/fuz_util/types.ts';
14
14
  import type {Snippet} from 'svelte';
15
15
  import type {SvelteHTMLElements} from 'svelte/elements';
16
16
 
@@ -18,7 +18,7 @@ with file-type coloring. Uses svelte-docinfo's file type predicates for module c
18
18
  import ImgOrSvg from './ImgOrSvg.svelte';
19
19
  import DeclarationLink from './DeclarationLink.svelte';
20
20
  import ModuleLink from './ModuleLink.svelte';
21
- import {url_github_file} from '@fuzdev/fuz_util/package_helpers.js';
21
+ import {url_github_file} from '@fuzdev/fuz_util/package_helpers.ts';
22
22
  import {isTypescript, isSvelte, isCss, isJson} from 'svelte-docinfo/source.js';
23
23
 
24
24
  const {
@@ -1,4 +1,4 @@
1
- import type { OmitStrict } from '@fuzdev/fuz_util/types.js';
1
+ import type { OmitStrict } from '@fuzdev/fuz_util/types.ts';
2
2
  import type { Snippet } from 'svelte';
3
3
  import type { SvelteHTMLElements } from 'svelte/elements';
4
4
  import { type Library } from './library.svelte.js';
@@ -2,7 +2,7 @@
2
2
  import {page} from '$app/state';
3
3
  import type {Snippet} from 'svelte';
4
4
  import type {SvelteHTMLElements} from 'svelte/elements';
5
- import {format_url} from '@fuzdev/fuz_util/url.js';
5
+ import {format_url} from '@fuzdev/fuz_util/url.ts';
6
6
 
7
7
  import type {Library} from './library.svelte.js';
8
8
  import ImgOrSvg from './ImgOrSvg.svelte';
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import {ensure_start, strip_end, strip_start} from '@fuzdev/fuz_util/string.js';
2
+ import {ensure_start, strip_end, strip_start} from '@fuzdev/fuz_util/string.ts';
3
3
  import type {SvelteHTMLElements} from 'svelte/elements';
4
4
 
5
5
  import Svg from './Svg.svelte';
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import type {SvelteHTMLElements} from 'svelte/elements';
3
- import {ensure_start} from '@fuzdev/fuz_util/string.js';
3
+ import {ensure_start} from '@fuzdev/fuz_util/string.ts';
4
4
 
5
5
  import {library_context} from './library.svelte.js';
6
6
  import {contextmenu_attachment} from './contextmenu_state.svelte.js';
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import type {OmitStrict} from '@fuzdev/fuz_util/types.js';
2
+ import type {OmitStrict} from '@fuzdev/fuz_util/types.ts';
3
3
  import type {Snippet} from 'svelte';
4
4
  import type {SvelteHTMLElements} from 'svelte/elements';
5
5
 
@@ -1,4 +1,4 @@
1
- import type { OmitStrict } from '@fuzdev/fuz_util/types.js';
1
+ import type { OmitStrict } from '@fuzdev/fuz_util/types.ts';
2
2
  import type { Snippet } from 'svelte';
3
3
  import type { SvelteHTMLElements } from 'svelte/elements';
4
4
  type $$ComponentProps = OmitStrict<SvelteHTMLElements['span'], 'children'> & {
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import {page} from '$app/state';
3
- import {strip_start} from '@fuzdev/fuz_util/string.js';
3
+ import {strip_start} from '@fuzdev/fuz_util/string.ts';
4
4
  import {goto} from '$app/navigation';
5
5
  import {onMount, type Snippet} from 'svelte';
6
6
 
@@ -6,8 +6,8 @@
6
6
  </script>
7
7
 
8
8
  <script lang="ts">
9
- import {random_int, shuffle} from '@fuzdev/fuz_util/random.js';
10
- import {create_random_alea} from '@fuzdev/fuz_util/random_alea.js';
9
+ import {random_int, shuffle} from '@fuzdev/fuz_util/random.ts';
10
+ import {create_random_alea} from '@fuzdev/fuz_util/random_alea.ts';
11
11
  import type {SvelteHTMLElements} from 'svelte/elements';
12
12
 
13
13
  import Svg from './Svg.svelte';
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import type {SvelteHTMLElements} from 'svelte/elements';
3
- import {default_variables} from '@fuzdev/fuz_css/variables.js';
3
+ import {default_variables} from '@fuzdev/fuz_css/variables.ts';
4
4
 
5
5
  import {selected_variable_context} from './style_variable_helpers.svelte.js';
6
6
 
package/dist/Svg.svelte CHANGED
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import {ensure_end} from '@fuzdev/fuz_util/string.js';
2
+ import {ensure_end} from '@fuzdev/fuz_util/string.ts';
3
3
  import type {SvelteHTMLElements} from 'svelte/elements';
4
4
 
5
5
  import type {SvgData} from './svg.js';
@@ -30,7 +30,7 @@
30
30
  const {
31
31
  data,
32
32
  fill,
33
- size = 'var(--font_size, auto)',
33
+ size = 'var(--font_size, 1em)',
34
34
  width,
35
35
  height,
36
36
  label,
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
- import {swallow} from '@fuzdev/fuz_util/dom.js';
3
- import type {Theme} from '@fuzdev/fuz_css/theme.js';
4
- import {default_themes} from '@fuzdev/fuz_css/themes.js';
2
+ import {swallow} from '@fuzdev/fuz_util/dom.ts';
3
+ import type {Theme} from '@fuzdev/fuz_css/theme.ts';
4
+ import {default_themes} from '@fuzdev/fuz_css/themes.ts';
5
5
  import type {SvelteHTMLElements} from 'svelte/elements';
6
6
 
7
7
  import {theme_state_context} from './theme_state.svelte.js';
@@ -1,4 +1,4 @@
1
- import type { Theme } from '@fuzdev/fuz_css/theme.js';
1
+ import type { Theme } from '@fuzdev/fuz_css/theme.ts';
2
2
  import type { SvelteHTMLElements } from 'svelte/elements';
3
3
  type $$ComponentProps = SvelteHTMLElements['menu'] & {
4
4
  selected_theme?: {
@@ -4,8 +4,8 @@
4
4
 
5
5
  <script lang="ts">
6
6
  import {onMount, type Snippet} from 'svelte';
7
- import {render_theme_style, type Theme} from '@fuzdev/fuz_css/theme.js';
8
- import {DEFAULT_THEME} from '@fuzdev/fuz_css/themes.js';
7
+ import {render_theme_style, type Theme} from '@fuzdev/fuz_css/theme.ts';
8
+ import {DEFAULT_THEME} from '@fuzdev/fuz_css/themes.ts';
9
9
  import {DEV} from 'esm-env';
10
10
 
11
11
  import {
@@ -1,5 +1,5 @@
1
1
  import { type Snippet } from 'svelte';
2
- import { type Theme } from '@fuzdev/fuz_css/theme.js';
2
+ import { type Theme } from '@fuzdev/fuz_css/theme.ts';
3
3
  import { load_color_scheme as default_load_color_scheme, save_color_scheme as default_save_color_scheme, sync_color_scheme as default_sync_color_scheme, save_theme as default_save_theme, load_theme as default_load_theme, ThemeState } from './theme_state.svelte.js';
4
4
  type $$ComponentProps = {
5
5
  sync_color_scheme?: typeof default_sync_color_scheme;
@@ -1,5 +1,5 @@
1
- import { is_editable, swallow, inside_editable } from '@fuzdev/fuz_util/dom.js';
2
- import { EMPTY_OBJECT } from '@fuzdev/fuz_util/object.js';
1
+ import { is_editable, swallow, inside_editable } from '@fuzdev/fuz_util/dom.ts';
2
+ import { EMPTY_OBJECT } from '@fuzdev/fuz_util/object.ts';
3
3
  import { contextmenu_open, } from './contextmenu_state.svelte.js';
4
4
  // Constants for default prop values
5
5
  export const CONTEXTMENU_DEFAULT_OPEN_OFFSET_X = -2;
@@ -1,5 +1,5 @@
1
1
  import { type Snippet } from 'svelte';
2
- import type { Result } from '@fuzdev/fuz_util/result.js';
2
+ import type { Result } from '@fuzdev/fuz_util/result.ts';
3
3
  import type { SvelteHTMLElements } from 'svelte/elements';
4
4
  import type { Attachment } from 'svelte/attachments';
5
5
  import { Dimensions } from './dimensions.svelte.js';
@@ -1,7 +1,7 @@
1
1
  import { onDestroy } from 'svelte';
2
- import { is_promise } from '@fuzdev/fuz_util/async.js';
2
+ import { is_promise } from '@fuzdev/fuz_util/async.ts';
3
3
  import { BROWSER, DEV } from 'esm-env';
4
- import { EMPTY_OBJECT } from '@fuzdev/fuz_util/object.js';
4
+ import { EMPTY_OBJECT } from '@fuzdev/fuz_util/object.ts';
5
5
  import { Dimensions } from './dimensions.svelte.js';
6
6
  import { create_context } from './context_helpers.js';
7
7
  import { url_to_root_relative } from './library_helpers.js';
package/dist/csp.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Defined } from '@fuzdev/fuz_util/types.js';
1
+ import type { Defined } from '@fuzdev/fuz_util/types.ts';
2
2
  /**
3
3
  * Per-directive map of source arrays — accepted as `extend` layer entries.
4
4
  * Excludes directives like `'upgrade-insecure-requests'` (boolean) that can't be appended to.
@@ -1,4 +1,4 @@
1
- import type { CspDirectives } from './csp.ts';
1
+ import type { CspDirectives } from './csp.js';
2
2
  /**
3
3
  * Per-directive sources that allow full interop between fuzdev/sister sites
4
4
  * (`*.fuz.dev`, `*.zzz.software`) — loading assets and APIs from each other,
@@ -14,7 +14,7 @@ import type { Module } from './module.svelte.js';
14
14
  export declare class Declaration {
15
15
  readonly module: Module;
16
16
  readonly declaration_json: DeclarationJsonInput;
17
- library: import("./library.svelte.ts").Library;
17
+ library: import("./library.svelte.js").Library;
18
18
  /**
19
19
  * Module path where this declaration is defined.
20
20
  */
@@ -1,5 +1,5 @@
1
1
  import { generateImport, getDisplayName } from 'svelte-docinfo/declaration-helpers.js';
2
- import { url_github_file } from '@fuzdev/fuz_util/package_helpers.js';
2
+ import { url_github_file } from '@fuzdev/fuz_util/package_helpers.ts';
3
3
  // The `virtual:svelte-docinfo` module is serialized with svelte-docinfo's
4
4
  // `compactReplacer`, which strips empty default arrays — so the runtime data
5
5
  // is the `*Input` shape (defaulted arrays optional), not the parsed `*Json`
@@ -6,7 +6,7 @@ export declare const docs_links_context: {
6
6
  };
7
7
  /**
8
8
  * Convert a string to a URL-safe fragment identifier, preserving case.
9
- * Unlike `slugify` from `@fuzdev/fuz_util/path.js` which lowercases,
9
+ * Unlike `slugify` from `@fuzdev/fuz_util/path.ts` which lowercases,
10
10
  * this keeps the original casing so API declarations like `AsyncStatus`
11
11
  * and `async_status` produce distinct fragment IDs.
12
12
  * Used by the `Tome` documentation system for heading and section anchors.
@@ -1,11 +1,11 @@
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
  import { create_context } from './context_helpers.js';
5
5
  export const docs_links_context = create_context();
6
6
  /**
7
7
  * Convert a string to a URL-safe fragment identifier, preserving case.
8
- * Unlike `slugify` from `@fuzdev/fuz_util/path.js` which lowercases,
8
+ * Unlike `slugify` from `@fuzdev/fuz_util/path.ts` which lowercases,
9
9
  * this keeps the original casing so API declarations like `AsyncStatus`
10
10
  * and `async_status` produce distinct fragment IDs.
11
11
  * Used by the `Tome` documentation system for heading and section anchors.
@@ -1,4 +1,4 @@
1
- import { deep_equal } from '@fuzdev/fuz_util/deep_equal.js';
1
+ import { deep_equal } from '@fuzdev/fuz_util/deep_equal.ts';
2
2
  /**
3
3
  * Creates an attachment that observes element viewport intersection.
4
4
  * Uses the lazy function pattern to optimize reactivity:
@@ -1,5 +1,5 @@
1
- import type { LibraryJson } from '@fuzdev/fuz_util/library_json.js';
2
- import type { Url } from '@fuzdev/fuz_util/url.js';
1
+ import type { LibraryJson } from '@fuzdev/fuz_util/library_json.ts';
2
+ import type { Url } from '@fuzdev/fuz_util/url.ts';
3
3
  import { Declaration } from './declaration.svelte.js';
4
4
  import { Module } from './module.svelte.js';
5
5
  /**
@@ -56,7 +56,7 @@ export declare class Library {
56
56
  */
57
57
  readonly url_prefix: string;
58
58
  readonly pkg_json: import("@fuzdev/fuz_util/pkg_json.js").PkgJson;
59
- readonly source_json: import("@fuzdev/fuz_util/library_json.js").SourceJson;
59
+ readonly source_json: import("@fuzdev/fuz_util/library_json.ts").SourceJson;
60
60
  readonly name: string;
61
61
  readonly repo_name: string;
62
62
  /** Non-null — the constructor rejects a `pkg_json` without a parseable `repository`. */
@@ -1,8 +1,8 @@
1
- import { ensure_start, strip_end } from '@fuzdev/fuz_util/string.js';
1
+ import { ensure_start, strip_end } from '@fuzdev/fuz_util/string.ts';
2
2
  import { create_context } from './context_helpers.js';
3
3
  import { Declaration } from './declaration.svelte.js';
4
4
  import { Module } from './module.svelte.js';
5
- import { package_is_published, repo_name_parse, repo_url_github_owner, repo_url_parse, url_github_file, url_logo, url_npm_package, } from '@fuzdev/fuz_util/package_helpers.js';
5
+ import { package_is_published, repo_name_parse, repo_url_github_owner, repo_url_parse, url_github_file, url_logo, url_npm_package, } from '@fuzdev/fuz_util/package_helpers.ts';
6
6
  /**
7
7
  * Holds a getter to the active `Library` for the current subtree.
8
8
  *
@@ -4,7 +4,7 @@
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
  */
@@ -4,11 +4,11 @@
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
- import { ensure_end, strip_start } from '@fuzdev/fuz_util/string.js';
11
+ import { ensure_end, strip_start } from '@fuzdev/fuz_util/string.ts';
12
12
  import { page } from '$app/state';
13
13
  /**
14
14
  * Convert a full URL to root-relative format by removing the origin.
@@ -1,5 +1,5 @@
1
1
  import { Declaration } from './declaration.svelte.js';
2
- import { url_github_file } from '@fuzdev/fuz_util/package_helpers.js';
2
+ import { url_github_file } from '@fuzdev/fuz_util/package_helpers.ts';
3
3
  /**
4
4
  * Groups entries by a string key, with groups sorted by key. Entries within
5
5
  * each group keep their input order.
@@ -1,5 +1,5 @@
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
  import type { SvgData } from './svg.js';
4
4
  export interface SiteStateOptions {
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { create_context } from './context_helpers.js';
2
- import { repo_url_parse } from '@fuzdev/fuz_util/package_helpers.js';
2
+ import { repo_url_parse } from '@fuzdev/fuz_util/package_helpers.ts';
3
3
  /**
4
4
  * Light site-identity values for app chrome - the icon, glyph, and repo url used
5
5
  * by components like `Breadcrumb` and `DocsFooter`. Set once per app at the root
@@ -1,4 +1,4 @@
1
- import type { StyleVariable } from '@fuzdev/fuz_css/variable.js';
1
+ import type { StyleVariable } from '@fuzdev/fuz_css/variable.ts';
2
2
  export declare const selected_variable_context: {
3
3
  get: () => SelectedStyleVariable;
4
4
  set: (value?: SelectedStyleVariable | undefined) => SelectedStyleVariable;
@@ -1,4 +1,4 @@
1
- import { type ColorScheme, type Theme } from '@fuzdev/fuz_css/theme.js';
1
+ import { type ColorScheme, type Theme } from '@fuzdev/fuz_css/theme.ts';
2
2
  export interface ThemeStateJson {
3
3
  theme: Theme;
4
4
  color_scheme: ColorScheme;
@@ -1,5 +1,5 @@
1
- import { color_schemes } from '@fuzdev/fuz_css/theme.js';
2
- import { default_themes } from '@fuzdev/fuz_css/themes.js';
1
+ import { color_schemes } 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
  import { create_context } from './context_helpers.js';
5
5
  import { load_from_storage, save_to_storage } from './storage.js';
package/dist/tome.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { resolve } from '$app/paths';
2
2
  import { z } from 'zod';
3
- import { ensure_start } from '@fuzdev/fuz_util/string.js';
3
+ import { ensure_start } from '@fuzdev/fuz_util/string.ts';
4
4
  import { create_context } from './context_helpers.js';
5
5
  import { DOCS_PATH_DEFAULT } from './docs_helpers.svelte.js';
6
6
  export const tomes_context = create_context();
@@ -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})
@@ -44,7 +44,7 @@
44
44
  * @module
45
45
  */
46
46
  import type { Plugin } from 'vite';
47
- import type { PackageJson } from '@fuzdev/fuz_util/package_json.js';
47
+ import type { PackageJson } from '@fuzdev/fuz_util/package_json.ts';
48
48
  /** Options for `vite_plugin_pkg_json`. */
49
49
  export interface VitePluginPkgJsonOptions {
50
50
  /**
@@ -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})
@@ -45,7 +45,7 @@
45
45
  */
46
46
  import { readFileSync } from 'node:fs';
47
47
  import { join } from 'node:path';
48
- import { pkg_json_from_package_json, pkg_json_keys } from '@fuzdev/fuz_util/pkg_json.js';
48
+ import { pkg_json_from_package_json, pkg_json_keys } from '@fuzdev/fuz_util/pkg_json.ts';
49
49
  const VIRTUAL_ID = 'virtual:pkg.json';
50
50
  /**
51
51
  * Resolved id, `\0`-prefixed — the conventional Rollup marker for "this id is
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuzdev/fuz_ui",
3
- "version": "0.205.1",
3
+ "version": "0.205.3",
4
4
  "description": "Svelte UI library",
5
5
  "tagline": "friendly user zystem",
6
6
  "glyph": "🧶",
@@ -65,8 +65,8 @@
65
65
  "@fuzdev/blake3_wasm": "^0.1.1",
66
66
  "@fuzdev/fuz_code": "^0.46.1",
67
67
  "@fuzdev/fuz_css": "^0.63.2",
68
- "@fuzdev/fuz_util": "^0.65.1",
69
- "@fuzdev/gro": "^0.204.0",
68
+ "@fuzdev/fuz_util": "^0.65.2",
69
+ "@fuzdev/gro": "^0.206.0",
70
70
  "@fuzdev/mdz": "^0.1.0",
71
71
  "@ryanatkn/eslint-config": "^0.12.1",
72
72
  "@sveltejs/adapter-static": "^3.0.10",
@@ -83,7 +83,7 @@
83
83
  "prettier-plugin-svelte": "^3.5.1",
84
84
  "svelte": "^5.56.3",
85
85
  "svelte-check": "^4.6.0",
86
- "svelte-docinfo": "^0.5.1",
86
+ "svelte-docinfo": "^0.5.3",
87
87
  "tslib": "^2.8.1",
88
88
  "typescript": "^5.9.3",
89
89
  "typescript-eslint": "^8.60.0",
@@ -1,6 +1,6 @@
1
- import type {Declaration} from './declaration.svelte.js';
2
- import type {Library} from './library.svelte.js';
3
- import type {Module} from './module.svelte.js';
1
+ import type {Declaration} from './declaration.svelte.ts';
2
+ import type {Library} from './library.svelte.ts';
3
+ import type {Module} from './module.svelte.ts';
4
4
 
5
5
  export interface DeclarationSearchState {
6
6
  query: string;
@@ -1,5 +1,5 @@
1
- import {is_editable, swallow, inside_editable} from '@fuzdev/fuz_util/dom.js';
2
- import {EMPTY_OBJECT} from '@fuzdev/fuz_util/object.js';
1
+ import {is_editable, swallow, inside_editable} from '@fuzdev/fuz_util/dom.ts';
2
+ import {EMPTY_OBJECT} from '@fuzdev/fuz_util/object.ts';
3
3
  import type {Attachment} from 'svelte/attachments';
4
4
  import type {ComponentProps, Snippet} from 'svelte';
5
5
 
@@ -7,7 +7,7 @@ import {
7
7
  contextmenu_open,
8
8
  type ContextmenuOpenOptions,
9
9
  type ContextmenuState,
10
- } from './contextmenu_state.svelte.js';
10
+ } from './contextmenu_state.svelte.ts';
11
11
  import type ContextmenuLinkEntry from './ContextmenuLinkEntry.svelte';
12
12
  import type ContextmenuTextEntry from './ContextmenuTextEntry.svelte';
13
13
  import type ContextmenuSeparator from './ContextmenuSeparator.svelte';
@@ -1,16 +1,16 @@
1
1
  import {onDestroy, type Snippet} from 'svelte';
2
- import type {Result} from '@fuzdev/fuz_util/result.js';
3
- import {is_promise} from '@fuzdev/fuz_util/async.js';
2
+ import type {Result} from '@fuzdev/fuz_util/result.ts';
3
+ import {is_promise} from '@fuzdev/fuz_util/async.ts';
4
4
  import {BROWSER, DEV} from 'esm-env';
5
5
  import type {SvelteHTMLElements} from 'svelte/elements';
6
- import {EMPTY_OBJECT} from '@fuzdev/fuz_util/object.js';
6
+ import {EMPTY_OBJECT} from '@fuzdev/fuz_util/object.ts';
7
7
  import type {Attachment} from 'svelte/attachments';
8
8
 
9
- import {Dimensions} from './dimensions.svelte.js';
10
- import {create_context} from './context_helpers.js';
11
- import {url_to_root_relative} from './library_helpers.js';
12
- import {icon_copy} from './icons.js';
13
- import type {SvgData} from './svg.js';
9
+ import {Dimensions} from './dimensions.svelte.ts';
10
+ import {create_context} from './context_helpers.ts';
11
+ import {url_to_root_relative} from './library_helpers.ts';
12
+ import {icon_copy} from './icons.ts';
13
+ import type {SvgData} from './svg.ts';
14
14
 
15
15
  export const contextmenu_context = create_context<() => ContextmenuState>();
16
16
 
package/src/lib/csp.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type {Defined} from '@fuzdev/fuz_util/types.js';
1
+ import type {Defined} from '@fuzdev/fuz_util/types.ts';
2
2
 
3
3
  // TODO schemas, but I may be moving to ArkType from Zod if precompilation looks good
4
4
 
@@ -9,8 +9,8 @@ import type {
9
9
  } from 'svelte-docinfo/types.js';
10
10
  import {generateImport, getDisplayName} from 'svelte-docinfo/declaration-helpers.js';
11
11
 
12
- import type {Module} from './module.svelte.js';
13
- import {url_github_file} from '@fuzdev/fuz_util/package_helpers.js';
12
+ import type {Module} from './module.svelte.ts';
13
+ import {url_github_file} from '@fuzdev/fuz_util/package_helpers.ts';
14
14
 
15
15
  // The `virtual:svelte-docinfo` module is serialized with svelte-docinfo's
16
16
  // `compactReplacer`, which strips empty default arrays — so the runtime data
@@ -1,5 +1,5 @@
1
- import type {Declaration} from './declaration.svelte.js';
2
- import type {ContextmenuParams} from './contextmenu_state.svelte.js';
1
+ import type {Declaration} from './declaration.svelte.ts';
2
+ import type {ContextmenuParams} from './contextmenu_state.svelte.ts';
3
3
 
4
4
  // TODO @many expand contextmenus for docs
5
5
 
package/src/lib/dialog.ts CHANGED
@@ -1,4 +1,4 @@
1
- import {create_context} from './context_helpers.js';
1
+ import {create_context} from './context_helpers.ts';
2
2
 
3
3
  export type DialogAlign = 'center' | 'top';
4
4
  export const dialog_aligns: Array<DialogAlign> = ['center', 'top'];
@@ -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
  /**