@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
@@ -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 {
@@ -16,8 +16,8 @@
16
16
  load_theme as default_load_theme,
17
17
  theme_state_context,
18
18
  ThemeState,
19
- } from './theme_state.svelte.js';
20
- import {effect_with_count} from './rune_helpers.svelte.js';
19
+ } from './theme_state.svelte.ts';
20
+ import {effect_with_count} from './rune_helpers.svelte.ts';
21
21
 
22
22
  const {
23
23
  sync_color_scheme = default_sync_color_scheme,
@@ -1,6 +1,6 @@
1
1
  import { type Snippet } from 'svelte';
2
- import { type Theme } from '@fuzdev/fuz_css/theme.js';
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';
2
+ import { type Theme } from '@fuzdev/fuz_css/theme.ts';
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.ts';
4
4
  type $$ComponentProps = {
5
5
  sync_color_scheme?: typeof default_sync_color_scheme;
6
6
  load_color_scheme?: typeof default_load_color_scheme;
@@ -5,9 +5,9 @@
5
5
  import {resolve} from '$app/paths';
6
6
 
7
7
  import TomeHeader from './TomeHeader.svelte';
8
- import {tome_context, type Tome} from './tome.js';
9
- import {DOCS_PATH_DEFAULT, docs_links_context} from './docs_helpers.svelte.js';
10
- import {intersect} from './intersect.svelte.js';
8
+ import {tome_context, type Tome} from './tome.ts';
9
+ import {DOCS_PATH_DEFAULT, docs_links_context} from './docs_helpers.svelte.ts';
10
+ import {intersect} from './intersect.svelte.ts';
11
11
 
12
12
  const {
13
13
  tome,
@@ -1,6 +1,6 @@
1
1
  import type { Snippet } from 'svelte';
2
2
  import type { SvelteHTMLElements } from 'svelte/elements';
3
- import { type Tome } from './tome.js';
3
+ import { type Tome } from './tome.ts';
4
4
  type $$ComponentProps = SvelteHTMLElements['section'] & {
5
5
  tome: Tome;
6
6
  docs_path?: string;
@@ -3,9 +3,9 @@
3
3
  import {DEV} from 'esm-env';
4
4
  import type {SvelteHTMLElements} from 'svelte/elements';
5
5
 
6
- import {tome_context, tome_to_title} from './tome.js';
6
+ import {tome_context, tome_to_title} from './tome.ts';
7
7
  import Hashlink from './Hashlink.svelte';
8
- import {docs_links_context, to_docs_path_info} from './docs_helpers.svelte.js';
8
+ import {docs_links_context, to_docs_path_info} from './docs_helpers.svelte.ts';
9
9
 
10
10
  // eslint-disable-next-line @typescript-eslint/no-duplicate-type-constituents
11
11
  const props: SvelteHTMLElements['h1'] | SvelteHTMLElements['h2'] = $props();
@@ -2,8 +2,8 @@
2
2
  import {DEV} from 'esm-env';
3
3
  import type {SvelteHTMLElements} from 'svelte/elements';
4
4
 
5
- import {tome_get_by_slug, tome_to_pathname, tome_to_title, tomes_context} from './tome.js';
6
- import {DOCS_PATH_DEFAULT} from './docs_helpers.svelte.js';
5
+ import {tome_get_by_slug, tome_to_pathname, tome_to_title, tomes_context} from './tome.ts';
6
+ import {DOCS_PATH_DEFAULT} from './docs_helpers.svelte.ts';
7
7
 
8
8
  const {
9
9
  slug,
@@ -1,5 +1,5 @@
1
1
  <script lang="ts" module>
2
- import {create_context} from './context_helpers.js';
2
+ import {create_context} from './context_helpers.ts';
3
3
 
4
4
  export type RegisterSectionHeader = (get_fragment: () => string) => string | undefined;
5
5
  export const register_section_header_context = create_context<RegisterSectionHeader>();
@@ -12,8 +12,8 @@
12
12
  import type {SvelteHTMLElements} from 'svelte/elements';
13
13
  import {DEV} from 'esm-env';
14
14
 
15
- import {intersect} from './intersect.svelte.js';
16
- import {docs_links_context} from './docs_helpers.svelte.js';
15
+ import {intersect} from './intersect.svelte.ts';
16
+ import {docs_links_context} from './docs_helpers.svelte.ts';
17
17
 
18
18
  const {
19
19
  children,
@@ -10,7 +10,7 @@
10
10
  section_depth_context,
11
11
  section_id_context,
12
12
  } from './TomeSection.svelte';
13
- import {docs_links_context, docs_slugify, type DocsLinkTag} from './docs_helpers.svelte.js';
13
+ import {docs_links_context, docs_slugify, type DocsLinkTag} from './docs_helpers.svelte.ts';
14
14
 
15
15
  const {
16
16
  text,
@@ -60,7 +60,7 @@
60
60
  </script>
61
61
 
62
62
  <header>
63
- <svelte:element this={final_tag} {...rest} class:tome-section-header={true}>
63
+ <svelte:element this={final_tag} {...rest} class={['tome-section-header', rest.class]}>
64
64
  <div class="flex:1">
65
65
  {#if children}
66
66
  {@render children()}
@@ -1,6 +1,6 @@
1
1
  import type { Snippet } from 'svelte';
2
2
  import type { SvelteHTMLElements } from 'svelte/elements';
3
- import { type DocsLinkTag } from './docs_helpers.svelte.js';
3
+ import { type DocsLinkTag } from './docs_helpers.svelte.ts';
4
4
  type $$ComponentProps = // eslint-disable-next-line @typescript-eslint/no-duplicate-type-constituents
5
5
  (SvelteHTMLElements['h2'] | SvelteHTMLElements['h3'] | SvelteHTMLElements['h4']) & {
6
6
  text: string;
@@ -3,7 +3,7 @@
3
3
  import type {HTMLAttributes, SvelteHTMLElements} from 'svelte/elements';
4
4
 
5
5
  import DeclarationLink from './DeclarationLink.svelte';
6
- import {library_context} from './library.svelte.js';
6
+ import {library_context} from './library.svelte.ts';
7
7
 
8
8
  const {
9
9
  type,
@@ -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
  export interface DeclarationSearchState {
5
5
  query: string;
6
6
  all: Array<Declaration>;
@@ -1,6 +1,6 @@
1
1
  import type { Attachment } from 'svelte/attachments';
2
2
  import type { ComponentProps, Snippet } from 'svelte';
3
- import { type ContextmenuOpenOptions, type ContextmenuState } from './contextmenu_state.svelte.js';
3
+ import { type ContextmenuOpenOptions, type ContextmenuState } from './contextmenu_state.svelte.ts';
4
4
  import type ContextmenuLinkEntry from './ContextmenuLinkEntry.svelte';
5
5
  import type ContextmenuTextEntry from './ContextmenuTextEntry.svelte';
6
6
  import type ContextmenuSeparator from './ContextmenuSeparator.svelte';
@@ -1,6 +1,6 @@
1
- import { is_editable, swallow, inside_editable } from '@fuzdev/fuz_util/dom.js';
2
- import { EMPTY_OBJECT } from '@fuzdev/fuz_util/object.js';
3
- import { contextmenu_open, } from './contextmenu_state.svelte.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
+ import { contextmenu_open, } from './contextmenu_state.svelte.ts';
4
4
  // Constants for default prop values
5
5
  export const CONTEXTMENU_DEFAULT_OPEN_OFFSET_X = -2;
6
6
  export const CONTEXTMENU_DEFAULT_OPEN_OFFSET_Y = -2;
@@ -1,9 +1,9 @@
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
- import { Dimensions } from './dimensions.svelte.js';
6
- import type { SvgData } from './svg.js';
5
+ import { Dimensions } from './dimensions.svelte.ts';
6
+ import type { SvgData } from './svg.ts';
7
7
  export declare const contextmenu_context: {
8
8
  get: (error_message?: string) => () => ContextmenuState;
9
9
  get_maybe: () => (() => ContextmenuState) | undefined;
@@ -1,11 +1,11 @@
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';
5
- import { Dimensions } from './dimensions.svelte.js';
6
- import { create_context } from './context_helpers.js';
7
- import { url_to_root_relative } from './library_helpers.js';
8
- import { icon_copy } from './icons.js';
4
+ import { EMPTY_OBJECT } from '@fuzdev/fuz_util/object.ts';
5
+ import { Dimensions } from './dimensions.svelte.ts';
6
+ import { create_context } from './context_helpers.ts';
7
+ import { url_to_root_relative } from './library_helpers.ts';
8
+ import { icon_copy } from './icons.ts';
9
9
  export const contextmenu_context = create_context();
10
10
  export const contextmenu_submenu_context = create_context();
11
11
  export const contextmenu_dimensions_context = create_context(() => new Dimensions());
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,5 +1,5 @@
1
1
  import type { DeclarationJsonInput } from 'svelte-docinfo/types.js';
2
- import type { Module } from './module.svelte.js';
2
+ import type { Module } from './module.svelte.ts';
3
3
  /**
4
4
  * Rich runtime representation of an exported declaration.
5
5
  *
@@ -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`
@@ -1,4 +1,4 @@
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
  export declare const create_declaration_contextmenu: (declaration: Declaration) => Array<ContextmenuParams>;
4
4
  //# sourceMappingURL=declaration_contextmenu.d.ts.map
package/dist/dialog.js CHANGED
@@ -1,3 +1,3 @@
1
- import { create_context } from './context_helpers.js';
1
+ import { create_context } from './context_helpers.ts';
2
2
  export const dialog_aligns = ['center', 'top'];
3
3
  export const dialog_context = create_context();
@@ -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';
4
- import { create_context } from './context_helpers.js';
3
+ import { ensure_end, ensure_start } from '@fuzdev/fuz_util/string.ts';
4
+ import { create_context } from './context_helpers.ts';
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,7 +1,7 @@
1
- import type { LibraryJson } from '@fuzdev/fuz_util/library_json.js';
2
- import type { Url } from '@fuzdev/fuz_util/url.js';
3
- import { Declaration } from './declaration.svelte.js';
4
- import { Module } from './module.svelte.js';
1
+ import type { LibraryJson } from '@fuzdev/fuz_util/library_json.ts';
2
+ import type { Url } from '@fuzdev/fuz_util/url.ts';
3
+ import { Declaration } from './declaration.svelte.ts';
4
+ import { Module } from './module.svelte.ts';
5
5
  /**
6
6
  * Holds a getter to the active `Library` for the current subtree.
7
7
  *
@@ -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';
2
- import { create_context } from './context_helpers.js';
3
- import { Declaration } from './declaration.svelte.js';
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';
1
+ import { ensure_start, strip_end } from '@fuzdev/fuz_util/string.ts';
2
+ import { create_context } from './context_helpers.ts';
3
+ import { Declaration } from './declaration.svelte.ts';
4
+ import { Module } from './module.svelte.ts';
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,6 +1,6 @@
1
1
  import type { ModuleJsonInput, ReExportJsonInput, ExternalReExportJsonInput } from 'svelte-docinfo/types.js';
2
- import { Declaration } from './declaration.svelte.js';
3
- import type { Library } from './library.svelte.js';
2
+ import { Declaration } from './declaration.svelte.ts';
3
+ import type { Library } from './library.svelte.ts';
4
4
  /**
5
5
  * Rich runtime representation of a module with computed properties.
6
6
  *
@@ -1,5 +1,5 @@
1
- import { Declaration } from './declaration.svelte.js';
2
- import { url_github_file } from '@fuzdev/fuz_util/package_helpers.js';
1
+ import { Declaration } from './declaration.svelte.ts';
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,4 +1,4 @@
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
  export declare const create_module_contextmenu: (module: Module) => Array<ContextmenuParams>;
4
4
  //# sourceMappingURL=module_contextmenu.d.ts.map
@@ -1,6 +1,6 @@
1
- import type { Url } from '@fuzdev/fuz_util/url.js';
2
- import type { PkgJson } from '@fuzdev/fuz_util/pkg_json.js';
3
- import type { SvgData } from './svg.js';
1
+ import type { Url } from '@fuzdev/fuz_util/url.ts';
2
+ import type { PkgJson } from '@fuzdev/fuz_util/pkg_json.ts';
3
+ import type { SvgData } from './svg.ts';
4
4
  export interface SiteStateOptions {
5
5
  /**
6
6
  * The site's icon, e.g. a logo from `logos.ts`.
@@ -1,5 +1,5 @@
1
- import { create_context } from './context_helpers.js';
2
- import { repo_url_parse } from '@fuzdev/fuz_util/package_helpers.js';
1
+ import { create_context } from './context_helpers.ts';
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 { create_context } from './context_helpers.js';
1
+ import { create_context } from './context_helpers.ts';
2
2
  export const selected_variable_context = create_context(() => new SelectedStyleVariable(null));
3
3
  // TODO maybe change this to a generic wrapper class for any value?
4
4
  export class 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,8 +1,8 @@
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
- import { create_context } from './context_helpers.js';
5
- import { load_from_storage, save_to_storage } from './storage.js';
4
+ import { create_context } from './context_helpers.ts';
5
+ import { load_from_storage, save_to_storage } from './storage.ts';
6
6
  export class ThemeState {
7
7
  theme = $state.raw();
8
8
  color_scheme = $state.raw();
package/dist/tome.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { resolve } from '$app/paths';
2
2
  import { z } from 'zod';
3
- import { ensure_start } from '@fuzdev/fuz_util/string.js';
4
- import { create_context } from './context_helpers.js';
5
- import { DOCS_PATH_DEFAULT } from './docs_helpers.svelte.js';
3
+ import { ensure_start } from '@fuzdev/fuz_util/string.ts';
4
+ import { create_context } from './context_helpers.ts';
5
+ import { DOCS_PATH_DEFAULT } from './docs_helpers.svelte.ts';
6
6
  export const tomes_context = create_context();
7
7
  export const tome_context = create_context();
8
8
  export const Tome = z.object({
@@ -21,7 +21,7 @@
21
21
  *
22
22
  * ```ts
23
23
  * // vite.config.ts
24
- * import {vite_plugin_pkg_json} from './vite_plugin_pkg_json.js';
24
+ * import {vite_plugin_pkg_json} from './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})
@@ -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
  /**
@@ -21,7 +21,7 @@
21
21
  *
22
22
  * ```ts
23
23
  * // vite.config.ts
24
- * import {vite_plugin_pkg_json} from './vite_plugin_pkg_json.js';
24
+ * import {vite_plugin_pkg_json} from './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})
@@ -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.0",
3
+ "version": "0.205.2",
4
4
  "description": "Svelte UI library",
5
5
  "tagline": "friendly user zystem",
6
6
  "glyph": "🧶",
@@ -63,10 +63,10 @@
63
63
  "devDependencies": {
64
64
  "@changesets/changelog-git": "^0.2.1",
65
65
  "@fuzdev/blake3_wasm": "^0.1.1",
66
- "@fuzdev/fuz_code": "^0.46.0",
67
- "@fuzdev/fuz_css": "^0.62.0",
68
- "@fuzdev/fuz_util": "^0.65.1",
69
- "@fuzdev/gro": "^0.204.0",
66
+ "@fuzdev/fuz_code": "^0.46.1",
67
+ "@fuzdev/fuz_css": "^0.63.2",
68
+ "@fuzdev/fuz_util": "^0.65.2",
69
+ "@fuzdev/gro": "^0.203.0",
70
70
  "@fuzdev/mdz": "^0.1.0",
71
71
  "@ryanatkn/eslint-config": "^0.12.1",
72
72
  "@sveltejs/adapter-static": "^3.0.10",
@@ -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'];