triiiceratops 0.9.6 → 0.9.7

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 (189) hide show
  1. package/dist/chunks/{TriiiceratopsViewer-BGtsfUPF.js → TriiiceratopsViewer-CVbWWD1o.js} +4466 -3476
  2. package/dist/chunks/{openseadragon-BTypULhm.js → openseadragon-H3QhDkLJ.js} +1 -1
  3. package/dist/components/DemoHeader.svelte +3 -6
  4. package/dist/paraglide/messages/_index.d.ts +1 -0
  5. package/dist/paraglide/messages/_index.js +1 -0
  6. package/dist/paraglide/messages/annotations_count.d.ts +2 -1
  7. package/dist/paraglide/messages/annotations_count.js +6 -5
  8. package/dist/paraglide/messages/attribution.d.ts +2 -1
  9. package/dist/paraglide/messages/attribution.js +6 -5
  10. package/dist/paraglide/messages/change_theme_label.d.ts +2 -1
  11. package/dist/paraglide/messages/change_theme_label.js +6 -5
  12. package/dist/paraglide/messages/close.d.ts +2 -1
  13. package/dist/paraglide/messages/close.js +6 -5
  14. package/dist/paraglide/messages/close_gallery.d.ts +2 -1
  15. package/dist/paraglide/messages/close_gallery.js +6 -5
  16. package/dist/paraglide/messages/close_menu.d.ts +2 -1
  17. package/dist/paraglide/messages/close_menu.js +6 -5
  18. package/dist/paraglide/messages/close_search.d.ts +2 -1
  19. package/dist/paraglide/messages/close_search.js +6 -5
  20. package/dist/paraglide/messages/copied.d.ts +2 -1
  21. package/dist/paraglide/messages/copied.js +6 -5
  22. package/dist/paraglide/messages/copy_config.d.ts +2 -1
  23. package/dist/paraglide/messages/copy_config.js +6 -5
  24. package/dist/paraglide/messages/demo_header_active_canvas.d.ts +2 -1
  25. package/dist/paraglide/messages/demo_header_active_canvas.js +6 -5
  26. package/dist/paraglide/messages/demo_header_external_controls.d.ts +2 -1
  27. package/dist/paraglide/messages/demo_header_external_controls.js +6 -5
  28. package/dist/paraglide/messages/docs.d.ts +2 -1
  29. package/dist/paraglide/messages/docs.js +6 -5
  30. package/dist/paraglide/messages/enter_full_screen.d.ts +2 -1
  31. package/dist/paraglide/messages/enter_full_screen.js +6 -5
  32. package/dist/paraglide/messages/error_prefix.d.ts +2 -1
  33. package/dist/paraglide/messages/error_prefix.js +6 -5
  34. package/dist/paraglide/messages/exit_full_screen.d.ts +2 -1
  35. package/dist/paraglide/messages/exit_full_screen.js +6 -5
  36. package/dist/paraglide/messages/gallery.d.ts +2 -1
  37. package/dist/paraglide/messages/gallery.js +6 -5
  38. package/dist/paraglide/messages/github.d.ts +2 -1
  39. package/dist/paraglide/messages/github.js +6 -5
  40. package/dist/paraglide/messages/hello_world.d.ts +2 -1
  41. package/dist/paraglide/messages/hello_world.js +6 -5
  42. package/dist/paraglide/messages/hide_all_annotations.d.ts +2 -1
  43. package/dist/paraglide/messages/hide_all_annotations.js +6 -5
  44. package/dist/paraglide/messages/hide_annotations.d.ts +2 -1
  45. package/dist/paraglide/messages/hide_annotations.js +6 -5
  46. package/dist/paraglide/messages/hide_gallery.d.ts +2 -1
  47. package/dist/paraglide/messages/hide_gallery.js +6 -5
  48. package/dist/paraglide/messages/iiif_manifest_label.d.ts +2 -1
  49. package/dist/paraglide/messages/iiif_manifest_label.js +6 -5
  50. package/dist/paraglide/messages/image_adjustments.d.ts +2 -1
  51. package/dist/paraglide/messages/image_adjustments.js +6 -5
  52. package/dist/paraglide/messages/language_select_label.d.ts +2 -1
  53. package/dist/paraglide/messages/language_select_label.js +6 -5
  54. package/dist/paraglide/messages/license.d.ts +2 -1
  55. package/dist/paraglide/messages/license.js +6 -5
  56. package/dist/paraglide/messages/load.d.ts +2 -1
  57. package/dist/paraglide/messages/load.js +6 -5
  58. package/dist/paraglide/messages/loading.d.ts +2 -1
  59. package/dist/paraglide/messages/loading.js +6 -5
  60. package/dist/paraglide/messages/manifest_placeholder.d.ts +2 -1
  61. package/dist/paraglide/messages/manifest_placeholder.js +6 -5
  62. package/dist/paraglide/messages/menu.d.ts +2 -1
  63. package/dist/paraglide/messages/menu.js +6 -5
  64. package/dist/paraglide/messages/metadata.d.ts +2 -1
  65. package/dist/paraglide/messages/metadata.js +6 -5
  66. package/dist/paraglide/messages/metadata_label_fallback.d.ts +2 -1
  67. package/dist/paraglide/messages/metadata_label_fallback.js +6 -5
  68. package/dist/paraglide/messages/next_canvas.d.ts +2 -1
  69. package/dist/paraglide/messages/next_canvas.js +6 -5
  70. package/dist/paraglide/messages/no_annotations_available.d.ts +2 -1
  71. package/dist/paraglide/messages/no_annotations_available.js +6 -5
  72. package/dist/paraglide/messages/no_canvases_loaded.d.ts +2 -1
  73. package/dist/paraglide/messages/no_canvases_loaded.js +6 -5
  74. package/dist/paraglide/messages/no_content.d.ts +2 -1
  75. package/dist/paraglide/messages/no_content.js +6 -5
  76. package/dist/paraglide/messages/no_image_found.d.ts +2 -1
  77. package/dist/paraglide/messages/no_image_found.js +6 -5
  78. package/dist/paraglide/messages/plugins_tooltip.d.ts +2 -1
  79. package/dist/paraglide/messages/plugins_tooltip.js +6 -5
  80. package/dist/paraglide/messages/previous_canvas.d.ts +2 -1
  81. package/dist/paraglide/messages/previous_canvas.js +6 -5
  82. package/dist/paraglide/messages/search.d.ts +2 -1
  83. package/dist/paraglide/messages/search.js +6 -5
  84. package/dist/paraglide/messages/search_panel_close.d.ts +2 -1
  85. package/dist/paraglide/messages/search_panel_close.js +6 -5
  86. package/dist/paraglide/messages/search_panel_instruction.d.ts +2 -1
  87. package/dist/paraglide/messages/search_panel_instruction.js +6 -5
  88. package/dist/paraglide/messages/search_panel_no_results.d.ts +2 -1
  89. package/dist/paraglide/messages/search_panel_no_results.js +6 -5
  90. package/dist/paraglide/messages/search_panel_placeholder.d.ts +2 -1
  91. package/dist/paraglide/messages/search_panel_placeholder.js +6 -5
  92. package/dist/paraglide/messages/search_panel_results_count.d.ts +2 -1
  93. package/dist/paraglide/messages/search_panel_results_count.js +6 -5
  94. package/dist/paraglide/messages/search_panel_title.d.ts +2 -1
  95. package/dist/paraglide/messages/search_panel_title.js +6 -5
  96. package/dist/paraglide/messages/settings_category_configuration.d.ts +2 -1
  97. package/dist/paraglide/messages/settings_category_configuration.js +6 -5
  98. package/dist/paraglide/messages/settings_category_general.d.ts +2 -1
  99. package/dist/paraglide/messages/settings_category_general.js +6 -5
  100. package/dist/paraglide/messages/settings_label.d.ts +2 -1
  101. package/dist/paraglide/messages/settings_label.js +6 -5
  102. package/dist/paraglide/messages/settings_position_bottom.d.ts +2 -1
  103. package/dist/paraglide/messages/settings_position_bottom.js +6 -5
  104. package/dist/paraglide/messages/settings_position_floating.d.ts +2 -1
  105. package/dist/paraglide/messages/settings_position_floating.js +6 -5
  106. package/dist/paraglide/messages/settings_position_left.d.ts +2 -1
  107. package/dist/paraglide/messages/settings_position_left.js +6 -5
  108. package/dist/paraglide/messages/settings_position_right.d.ts +2 -1
  109. package/dist/paraglide/messages/settings_position_right.js +6 -5
  110. package/dist/paraglide/messages/settings_position_top.d.ts +2 -1
  111. package/dist/paraglide/messages/settings_position_top.js +6 -5
  112. package/dist/paraglide/messages/settings_select_dock_position.d.ts +2 -1
  113. package/dist/paraglide/messages/settings_select_dock_position.js +6 -5
  114. package/dist/paraglide/messages/settings_submenu_annotations.d.ts +2 -1
  115. package/dist/paraglide/messages/settings_submenu_annotations.js +6 -5
  116. package/dist/paraglide/messages/settings_submenu_gallery.d.ts +2 -1
  117. package/dist/paraglide/messages/settings_submenu_gallery.js +6 -5
  118. package/dist/paraglide/messages/settings_submenu_right_menu_items.d.ts +2 -1
  119. package/dist/paraglide/messages/settings_submenu_right_menu_items.js +6 -5
  120. package/dist/paraglide/messages/settings_submenu_search.d.ts +2 -1
  121. package/dist/paraglide/messages/settings_submenu_search.js +6 -5
  122. package/dist/paraglide/messages/settings_toggle_canvas_nav.d.ts +2 -1
  123. package/dist/paraglide/messages/settings_toggle_canvas_nav.js +6 -5
  124. package/dist/paraglide/messages/settings_toggle_close_button.d.ts +2 -1
  125. package/dist/paraglide/messages/settings_toggle_close_button.js +6 -5
  126. package/dist/paraglide/messages/settings_toggle_draggable.d.ts +2 -1
  127. package/dist/paraglide/messages/settings_toggle_draggable.js +6 -5
  128. package/dist/paraglide/messages/settings_toggle_left_menu.d.ts +2 -1
  129. package/dist/paraglide/messages/settings_toggle_left_menu.js +6 -5
  130. package/dist/paraglide/messages/settings_toggle_open.d.ts +2 -1
  131. package/dist/paraglide/messages/settings_toggle_open.js +6 -5
  132. package/dist/paraglide/messages/settings_toggle_panel_open.d.ts +2 -1
  133. package/dist/paraglide/messages/settings_toggle_panel_open.js +6 -5
  134. package/dist/paraglide/messages/settings_toggle_right_menu.d.ts +2 -1
  135. package/dist/paraglide/messages/settings_toggle_right_menu.js +6 -5
  136. package/dist/paraglide/messages/settings_toggle_show_annotations.d.ts +2 -1
  137. package/dist/paraglide/messages/settings_toggle_show_annotations.js +6 -5
  138. package/dist/paraglide/messages/settings_toggle_show_fullscreen.d.ts +2 -1
  139. package/dist/paraglide/messages/settings_toggle_show_fullscreen.js +6 -5
  140. package/dist/paraglide/messages/settings_toggle_show_gallery.d.ts +2 -1
  141. package/dist/paraglide/messages/settings_toggle_show_gallery.js +6 -5
  142. package/dist/paraglide/messages/settings_toggle_show_info.d.ts +2 -1
  143. package/dist/paraglide/messages/settings_toggle_show_info.js +6 -5
  144. package/dist/paraglide/messages/settings_toggle_show_search.d.ts +2 -1
  145. package/dist/paraglide/messages/settings_toggle_show_search.js +6 -5
  146. package/dist/paraglide/messages/settings_toggle_visible_by_default.d.ts +2 -1
  147. package/dist/paraglide/messages/settings_toggle_visible_by_default.js +6 -5
  148. package/dist/paraglide/messages/show_all_annotations.d.ts +2 -1
  149. package/dist/paraglide/messages/show_all_annotations.js +6 -5
  150. package/dist/paraglide/messages/show_annotations.d.ts +2 -1
  151. package/dist/paraglide/messages/show_annotations.js +6 -5
  152. package/dist/paraglide/messages/show_gallery.d.ts +2 -1
  153. package/dist/paraglide/messages/show_gallery.js +6 -5
  154. package/dist/paraglide/messages/theme_menu_title.d.ts +2 -1
  155. package/dist/paraglide/messages/theme_menu_title.js +6 -5
  156. package/dist/paraglide/messages/toggle_annotations.d.ts +2 -1
  157. package/dist/paraglide/messages/toggle_annotations.js +6 -5
  158. package/dist/paraglide/messages/toggle_metadata.d.ts +2 -1
  159. package/dist/paraglide/messages/toggle_metadata.js +6 -5
  160. package/dist/paraglide/messages/toggle_search.d.ts +2 -1
  161. package/dist/paraglide/messages/toggle_search.js +6 -5
  162. package/dist/paraglide/messages/try_your_own.d.ts +2 -1
  163. package/dist/paraglide/messages/try_your_own.js +6 -5
  164. package/dist/paraglide/messages/viewer_variant_core.d.ts +2 -1
  165. package/dist/paraglide/messages/viewer_variant_core.js +6 -5
  166. package/dist/paraglide/messages/viewer_variant_custom_theme.d.ts +2 -1
  167. package/dist/paraglide/messages/viewer_variant_custom_theme.js +6 -5
  168. package/dist/paraglide/messages/viewer_variant_full.d.ts +2 -1
  169. package/dist/paraglide/messages/viewer_variant_full.js +6 -5
  170. package/dist/paraglide/messages/viewer_variant_svelte.d.ts +2 -1
  171. package/dist/paraglide/messages/viewer_variant_svelte.js +6 -5
  172. package/dist/paraglide/messages/viewer_variant_svelte_component_tooltip.d.ts +2 -1
  173. package/dist/paraglide/messages/viewer_variant_svelte_component_tooltip.js +6 -5
  174. package/dist/paraglide/messages/viewer_variant_tooltip_core.d.ts +2 -1
  175. package/dist/paraglide/messages/viewer_variant_tooltip_core.js +6 -5
  176. package/dist/paraglide/messages/viewer_variant_tooltip_custom_theme.d.ts +2 -1
  177. package/dist/paraglide/messages/viewer_variant_tooltip_custom_theme.js +6 -5
  178. package/dist/paraglide/messages/viewer_variant_tooltip_full.d.ts +2 -1
  179. package/dist/paraglide/messages/viewer_variant_tooltip_full.js +6 -5
  180. package/dist/paraglide/messages/visible_count.d.ts +2 -1
  181. package/dist/paraglide/messages/visible_count.js +6 -5
  182. package/dist/paraglide/runtime.d.ts +14 -0
  183. package/dist/paraglide/runtime.js +42 -0
  184. package/dist/state/i18n.svelte.d.ts +2 -2
  185. package/dist/state/i18n.svelte.js +9 -7
  186. package/dist/triiiceratops-bundle.js +3273 -2283
  187. package/dist/triiiceratops-element-image.js +1 -1
  188. package/dist/triiiceratops-element.js +1 -1
  189. package/package.json +3 -4
@@ -1,12 +1,13 @@
1
1
  /* eslint-disable */
2
2
  import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
3
4
 
4
- const en_show_all_annotations = /** @type {(inputs: {}) => string} */ () => {
5
- return `Show All Annotations`
5
+ const en_show_all_annotations = /** @type {(inputs: {}) => LocalizedString} */ () => {
6
+ return /** @type {LocalizedString} */ (`Show All Annotations`)
6
7
  };
7
8
 
8
- const de_show_all_annotations = /** @type {(inputs: {}) => string} */ () => {
9
- return `Alle Annotationen einblenden`
9
+ const de_show_all_annotations = /** @type {(inputs: {}) => LocalizedString} */ () => {
10
+ return /** @type {LocalizedString} */ (`Alle Annotationen einblenden`)
10
11
  };
11
12
 
12
13
  /**
@@ -19,7 +20,7 @@ const de_show_all_annotations = /** @type {(inputs: {}) => string} */ () => {
19
20
  *
20
21
  * @param {{}} inputs
21
22
  * @param {{ locale?: "en" | "de" }} options
22
- * @returns {string}
23
+ * @returns {LocalizedString}
23
24
  */
24
25
  /* @__NO_SIDE_EFFECTS__ */
25
26
  export const show_all_annotations = (inputs = {}, options = {}) => {
@@ -1,3 +1,4 @@
1
1
  export function show_annotations(inputs?: {}, options?: {
2
2
  locale?: "en" | "de";
3
- }): string;
3
+ }): LocalizedString;
4
+ export type LocalizedString = import("../runtime.js").LocalizedString;
@@ -1,12 +1,13 @@
1
1
  /* eslint-disable */
2
2
  import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
3
4
 
4
- const en_show_annotations = /** @type {(inputs: {}) => string} */ () => {
5
- return `Show Annotations`
5
+ const en_show_annotations = /** @type {(inputs: {}) => LocalizedString} */ () => {
6
+ return /** @type {LocalizedString} */ (`Show Annotations`)
6
7
  };
7
8
 
8
- const de_show_annotations = /** @type {(inputs: {}) => string} */ () => {
9
- return `Annotationen einblenden`
9
+ const de_show_annotations = /** @type {(inputs: {}) => LocalizedString} */ () => {
10
+ return /** @type {LocalizedString} */ (`Annotationen einblenden`)
10
11
  };
11
12
 
12
13
  /**
@@ -19,7 +20,7 @@ const de_show_annotations = /** @type {(inputs: {}) => string} */ () => {
19
20
  *
20
21
  * @param {{}} inputs
21
22
  * @param {{ locale?: "en" | "de" }} options
22
- * @returns {string}
23
+ * @returns {LocalizedString}
23
24
  */
24
25
  /* @__NO_SIDE_EFFECTS__ */
25
26
  export const show_annotations = (inputs = {}, options = {}) => {
@@ -1,3 +1,4 @@
1
1
  export function show_gallery(inputs?: {}, options?: {
2
2
  locale?: "en" | "de";
3
- }): string;
3
+ }): LocalizedString;
4
+ export type LocalizedString = import("../runtime.js").LocalizedString;
@@ -1,12 +1,13 @@
1
1
  /* eslint-disable */
2
2
  import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
3
4
 
4
- const en_show_gallery = /** @type {(inputs: {}) => string} */ () => {
5
- return `Show Gallery`
5
+ const en_show_gallery = /** @type {(inputs: {}) => LocalizedString} */ () => {
6
+ return /** @type {LocalizedString} */ (`Show Gallery`)
6
7
  };
7
8
 
8
- const de_show_gallery = /** @type {(inputs: {}) => string} */ () => {
9
- return `Galerie einblenden`
9
+ const de_show_gallery = /** @type {(inputs: {}) => LocalizedString} */ () => {
10
+ return /** @type {LocalizedString} */ (`Galerie einblenden`)
10
11
  };
11
12
 
12
13
  /**
@@ -19,7 +20,7 @@ const de_show_gallery = /** @type {(inputs: {}) => string} */ () => {
19
20
  *
20
21
  * @param {{}} inputs
21
22
  * @param {{ locale?: "en" | "de" }} options
22
- * @returns {string}
23
+ * @returns {LocalizedString}
23
24
  */
24
25
  /* @__NO_SIDE_EFFECTS__ */
25
26
  export const show_gallery = (inputs = {}, options = {}) => {
@@ -1,3 +1,4 @@
1
1
  export function theme_menu_title(inputs?: {}, options?: {
2
2
  locale?: "en" | "de";
3
- }): string;
3
+ }): LocalizedString;
4
+ export type LocalizedString = import("../runtime.js").LocalizedString;
@@ -1,12 +1,13 @@
1
1
  /* eslint-disable */
2
2
  import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
3
4
 
4
- const en_theme_menu_title = /** @type {(inputs: {}) => string} */ () => {
5
- return `Theme`
5
+ const en_theme_menu_title = /** @type {(inputs: {}) => LocalizedString} */ () => {
6
+ return /** @type {LocalizedString} */ (`Theme`)
6
7
  };
7
8
 
8
- const de_theme_menu_title = /** @type {(inputs: {}) => string} */ () => {
9
- return `Design`
9
+ const de_theme_menu_title = /** @type {(inputs: {}) => LocalizedString} */ () => {
10
+ return /** @type {LocalizedString} */ (`Design`)
10
11
  };
11
12
 
12
13
  /**
@@ -19,7 +20,7 @@ const de_theme_menu_title = /** @type {(inputs: {}) => string} */ () => {
19
20
  *
20
21
  * @param {{}} inputs
21
22
  * @param {{ locale?: "en" | "de" }} options
22
- * @returns {string}
23
+ * @returns {LocalizedString}
23
24
  */
24
25
  /* @__NO_SIDE_EFFECTS__ */
25
26
  export const theme_menu_title = (inputs = {}, options = {}) => {
@@ -1,3 +1,4 @@
1
1
  export function toggle_annotations(inputs?: {}, options?: {
2
2
  locale?: "en" | "de";
3
- }): string;
3
+ }): LocalizedString;
4
+ export type LocalizedString = import("../runtime.js").LocalizedString;
@@ -1,12 +1,13 @@
1
1
  /* eslint-disable */
2
2
  import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
3
4
 
4
- const en_toggle_annotations = /** @type {(inputs: {}) => string} */ () => {
5
- return `Toggle Annotations`
5
+ const en_toggle_annotations = /** @type {(inputs: {}) => LocalizedString} */ () => {
6
+ return /** @type {LocalizedString} */ (`Toggle Annotations`)
6
7
  };
7
8
 
8
- const de_toggle_annotations = /** @type {(inputs: {}) => string} */ () => {
9
- return `Annotationen umschalten`
9
+ const de_toggle_annotations = /** @type {(inputs: {}) => LocalizedString} */ () => {
10
+ return /** @type {LocalizedString} */ (`Annotationen umschalten`)
10
11
  };
11
12
 
12
13
  /**
@@ -19,7 +20,7 @@ const de_toggle_annotations = /** @type {(inputs: {}) => string} */ () => {
19
20
  *
20
21
  * @param {{}} inputs
21
22
  * @param {{ locale?: "en" | "de" }} options
22
- * @returns {string}
23
+ * @returns {LocalizedString}
23
24
  */
24
25
  /* @__NO_SIDE_EFFECTS__ */
25
26
  export const toggle_annotations = (inputs = {}, options = {}) => {
@@ -1,3 +1,4 @@
1
1
  export function toggle_metadata(inputs?: {}, options?: {
2
2
  locale?: "en" | "de";
3
- }): string;
3
+ }): LocalizedString;
4
+ export type LocalizedString = import("../runtime.js").LocalizedString;
@@ -1,12 +1,13 @@
1
1
  /* eslint-disable */
2
2
  import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
3
4
 
4
- const en_toggle_metadata = /** @type {(inputs: {}) => string} */ () => {
5
- return `Toggle Metadata`
5
+ const en_toggle_metadata = /** @type {(inputs: {}) => LocalizedString} */ () => {
6
+ return /** @type {LocalizedString} */ (`Toggle Metadata`)
6
7
  };
7
8
 
8
- const de_toggle_metadata = /** @type {(inputs: {}) => string} */ () => {
9
- return `Metadaten umschalten`
9
+ const de_toggle_metadata = /** @type {(inputs: {}) => LocalizedString} */ () => {
10
+ return /** @type {LocalizedString} */ (`Metadaten umschalten`)
10
11
  };
11
12
 
12
13
  /**
@@ -19,7 +20,7 @@ const de_toggle_metadata = /** @type {(inputs: {}) => string} */ () => {
19
20
  *
20
21
  * @param {{}} inputs
21
22
  * @param {{ locale?: "en" | "de" }} options
22
- * @returns {string}
23
+ * @returns {LocalizedString}
23
24
  */
24
25
  /* @__NO_SIDE_EFFECTS__ */
25
26
  export const toggle_metadata = (inputs = {}, options = {}) => {
@@ -1,3 +1,4 @@
1
1
  export function toggle_search(inputs?: {}, options?: {
2
2
  locale?: "en" | "de";
3
- }): string;
3
+ }): LocalizedString;
4
+ export type LocalizedString = import("../runtime.js").LocalizedString;
@@ -1,12 +1,13 @@
1
1
  /* eslint-disable */
2
2
  import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
3
4
 
4
- const en_toggle_search = /** @type {(inputs: {}) => string} */ () => {
5
- return `Toggle Search`
5
+ const en_toggle_search = /** @type {(inputs: {}) => LocalizedString} */ () => {
6
+ return /** @type {LocalizedString} */ (`Toggle Search`)
6
7
  };
7
8
 
8
- const de_toggle_search = /** @type {(inputs: {}) => string} */ () => {
9
- return `Suche umschalten`
9
+ const de_toggle_search = /** @type {(inputs: {}) => LocalizedString} */ () => {
10
+ return /** @type {LocalizedString} */ (`Suche umschalten`)
10
11
  };
11
12
 
12
13
  /**
@@ -19,7 +20,7 @@ const de_toggle_search = /** @type {(inputs: {}) => string} */ () => {
19
20
  *
20
21
  * @param {{}} inputs
21
22
  * @param {{ locale?: "en" | "de" }} options
22
- * @returns {string}
23
+ * @returns {LocalizedString}
23
24
  */
24
25
  /* @__NO_SIDE_EFFECTS__ */
25
26
  export const toggle_search = (inputs = {}, options = {}) => {
@@ -1,3 +1,4 @@
1
1
  export function try_your_own(inputs?: {}, options?: {
2
2
  locale?: "en" | "de";
3
- }): string;
3
+ }): LocalizedString;
4
+ export type LocalizedString = import("../runtime.js").LocalizedString;
@@ -1,12 +1,13 @@
1
1
  /* eslint-disable */
2
2
  import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
3
4
 
4
- const en_try_your_own = /** @type {(inputs: {}) => string} */ () => {
5
- return `Try your own...`
5
+ const en_try_your_own = /** @type {(inputs: {}) => LocalizedString} */ () => {
6
+ return /** @type {LocalizedString} */ (`Try your own...`)
6
7
  };
7
8
 
8
- const de_try_your_own = /** @type {(inputs: {}) => string} */ () => {
9
- return `Eigenes ausprobieren...`
9
+ const de_try_your_own = /** @type {(inputs: {}) => LocalizedString} */ () => {
10
+ return /** @type {LocalizedString} */ (`Eigenes ausprobieren...`)
10
11
  };
11
12
 
12
13
  /**
@@ -19,7 +20,7 @@ const de_try_your_own = /** @type {(inputs: {}) => string} */ () => {
19
20
  *
20
21
  * @param {{}} inputs
21
22
  * @param {{ locale?: "en" | "de" }} options
22
- * @returns {string}
23
+ * @returns {LocalizedString}
23
24
  */
24
25
  /* @__NO_SIDE_EFFECTS__ */
25
26
  export const try_your_own = (inputs = {}, options = {}) => {
@@ -1,3 +1,4 @@
1
1
  export function viewer_variant_core(inputs?: {}, options?: {
2
2
  locale?: "en" | "de";
3
- }): string;
3
+ }): LocalizedString;
4
+ export type LocalizedString = import("../runtime.js").LocalizedString;
@@ -1,12 +1,13 @@
1
1
  /* eslint-disable */
2
2
  import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
3
4
 
4
- const en_viewer_variant_core = /** @type {(inputs: {}) => string} */ () => {
5
- return `Core`
5
+ const en_viewer_variant_core = /** @type {(inputs: {}) => LocalizedString} */ () => {
6
+ return /** @type {LocalizedString} */ (`Core`)
6
7
  };
7
8
 
8
- const de_viewer_variant_core = /** @type {(inputs: {}) => string} */ () => {
9
- return `Basis`
9
+ const de_viewer_variant_core = /** @type {(inputs: {}) => LocalizedString} */ () => {
10
+ return /** @type {LocalizedString} */ (`Basis`)
10
11
  };
11
12
 
12
13
  /**
@@ -19,7 +20,7 @@ const de_viewer_variant_core = /** @type {(inputs: {}) => string} */ () => {
19
20
  *
20
21
  * @param {{}} inputs
21
22
  * @param {{ locale?: "en" | "de" }} options
22
- * @returns {string}
23
+ * @returns {LocalizedString}
23
24
  */
24
25
  /* @__NO_SIDE_EFFECTS__ */
25
26
  export const viewer_variant_core = (inputs = {}, options = {}) => {
@@ -1,3 +1,4 @@
1
1
  export function viewer_variant_custom_theme(inputs?: {}, options?: {
2
2
  locale?: "en" | "de";
3
- }): string;
3
+ }): LocalizedString;
4
+ export type LocalizedString = import("../runtime.js").LocalizedString;
@@ -1,12 +1,13 @@
1
1
  /* eslint-disable */
2
2
  import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
3
4
 
4
- const en_viewer_variant_custom_theme = /** @type {(inputs: {}) => string} */ () => {
5
- return `Custom Theme`
5
+ const en_viewer_variant_custom_theme = /** @type {(inputs: {}) => LocalizedString} */ () => {
6
+ return /** @type {LocalizedString} */ (`Custom Theme`)
6
7
  };
7
8
 
8
- const de_viewer_variant_custom_theme = /** @type {(inputs: {}) => string} */ () => {
9
- return `Benutzerdefiniertes Thema`
9
+ const de_viewer_variant_custom_theme = /** @type {(inputs: {}) => LocalizedString} */ () => {
10
+ return /** @type {LocalizedString} */ (`Benutzerdefiniertes Thema`)
10
11
  };
11
12
 
12
13
  /**
@@ -19,7 +20,7 @@ const de_viewer_variant_custom_theme = /** @type {(inputs: {}) => string} */ ()
19
20
  *
20
21
  * @param {{}} inputs
21
22
  * @param {{ locale?: "en" | "de" }} options
22
- * @returns {string}
23
+ * @returns {LocalizedString}
23
24
  */
24
25
  /* @__NO_SIDE_EFFECTS__ */
25
26
  export const viewer_variant_custom_theme = (inputs = {}, options = {}) => {
@@ -1,3 +1,4 @@
1
1
  export function viewer_variant_full(inputs?: {}, options?: {
2
2
  locale?: "en" | "de";
3
- }): string;
3
+ }): LocalizedString;
4
+ export type LocalizedString = import("../runtime.js").LocalizedString;
@@ -1,12 +1,13 @@
1
1
  /* eslint-disable */
2
2
  import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
3
4
 
4
- const en_viewer_variant_full = /** @type {(inputs: {}) => string} */ () => {
5
- return `Full`
5
+ const en_viewer_variant_full = /** @type {(inputs: {}) => LocalizedString} */ () => {
6
+ return /** @type {LocalizedString} */ (`Full`)
6
7
  };
7
8
 
8
- const de_viewer_variant_full = /** @type {(inputs: {}) => string} */ () => {
9
- return `Vollständig`
9
+ const de_viewer_variant_full = /** @type {(inputs: {}) => LocalizedString} */ () => {
10
+ return /** @type {LocalizedString} */ (`Vollständig`)
10
11
  };
11
12
 
12
13
  /**
@@ -19,7 +20,7 @@ const de_viewer_variant_full = /** @type {(inputs: {}) => string} */ () => {
19
20
  *
20
21
  * @param {{}} inputs
21
22
  * @param {{ locale?: "en" | "de" }} options
22
- * @returns {string}
23
+ * @returns {LocalizedString}
23
24
  */
24
25
  /* @__NO_SIDE_EFFECTS__ */
25
26
  export const viewer_variant_full = (inputs = {}, options = {}) => {
@@ -1,3 +1,4 @@
1
1
  export function viewer_variant_svelte(inputs?: {}, options?: {
2
2
  locale?: "en" | "de";
3
- }): string;
3
+ }): LocalizedString;
4
+ export type LocalizedString = import("../runtime.js").LocalizedString;
@@ -1,12 +1,13 @@
1
1
  /* eslint-disable */
2
2
  import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
3
4
 
4
- const en_viewer_variant_svelte = /** @type {(inputs: {}) => string} */ () => {
5
- return `Svelte`
5
+ const en_viewer_variant_svelte = /** @type {(inputs: {}) => LocalizedString} */ () => {
6
+ return /** @type {LocalizedString} */ (`Svelte`)
6
7
  };
7
8
 
8
- const de_viewer_variant_svelte = /** @type {(inputs: {}) => string} */ () => {
9
- return `Svelte`
9
+ const de_viewer_variant_svelte = /** @type {(inputs: {}) => LocalizedString} */ () => {
10
+ return /** @type {LocalizedString} */ (`Svelte`)
10
11
  };
11
12
 
12
13
  /**
@@ -19,7 +20,7 @@ const de_viewer_variant_svelte = /** @type {(inputs: {}) => string} */ () => {
19
20
  *
20
21
  * @param {{}} inputs
21
22
  * @param {{ locale?: "en" | "de" }} options
22
- * @returns {string}
23
+ * @returns {LocalizedString}
23
24
  */
24
25
  /* @__NO_SIDE_EFFECTS__ */
25
26
  export const viewer_variant_svelte = (inputs = {}, options = {}) => {
@@ -1,3 +1,4 @@
1
1
  export function viewer_variant_svelte_component_tooltip(inputs?: {}, options?: {
2
2
  locale?: "en" | "de";
3
- }): string;
3
+ }): LocalizedString;
4
+ export type LocalizedString = import("../runtime.js").LocalizedString;
@@ -1,12 +1,13 @@
1
1
  /* eslint-disable */
2
2
  import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
3
4
 
4
- const en_viewer_variant_svelte_component_tooltip = /** @type {(inputs: {}) => string} */ () => {
5
- return `Svelte component (not web component)`
5
+ const en_viewer_variant_svelte_component_tooltip = /** @type {(inputs: {}) => LocalizedString} */ () => {
6
+ return /** @type {LocalizedString} */ (`Svelte component (not web component)`)
6
7
  };
7
8
 
8
- const de_viewer_variant_svelte_component_tooltip = /** @type {(inputs: {}) => string} */ () => {
9
- return `Svelte-Komponente (keine Web-Komponente)`
9
+ const de_viewer_variant_svelte_component_tooltip = /** @type {(inputs: {}) => LocalizedString} */ () => {
10
+ return /** @type {LocalizedString} */ (`Svelte-Komponente (keine Web-Komponente)`)
10
11
  };
11
12
 
12
13
  /**
@@ -19,7 +20,7 @@ const de_viewer_variant_svelte_component_tooltip = /** @type {(inputs: {}) => st
19
20
  *
20
21
  * @param {{}} inputs
21
22
  * @param {{ locale?: "en" | "de" }} options
22
- * @returns {string}
23
+ * @returns {LocalizedString}
23
24
  */
24
25
  /* @__NO_SIDE_EFFECTS__ */
25
26
  export const viewer_variant_svelte_component_tooltip = (inputs = {}, options = {}) => {
@@ -1,3 +1,4 @@
1
1
  export function viewer_variant_tooltip_core(inputs?: {}, options?: {
2
2
  locale?: "en" | "de";
3
- }): string;
3
+ }): LocalizedString;
4
+ export type LocalizedString = import("../runtime.js").LocalizedString;
@@ -1,12 +1,13 @@
1
1
  /* eslint-disable */
2
2
  import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
3
4
 
4
- const en_viewer_variant_tooltip_core = /** @type {(inputs: {}) => string} */ () => {
5
- return `Example without plugins`
5
+ const en_viewer_variant_tooltip_core = /** @type {(inputs: {}) => LocalizedString} */ () => {
6
+ return /** @type {LocalizedString} */ (`Example without plugins`)
6
7
  };
7
8
 
8
- const de_viewer_variant_tooltip_core = /** @type {(inputs: {}) => string} */ () => {
9
- return `Beispiel ohne Plugins`
9
+ const de_viewer_variant_tooltip_core = /** @type {(inputs: {}) => LocalizedString} */ () => {
10
+ return /** @type {LocalizedString} */ (`Beispiel ohne Plugins`)
10
11
  };
11
12
 
12
13
  /**
@@ -19,7 +20,7 @@ const de_viewer_variant_tooltip_core = /** @type {(inputs: {}) => string} */ ()
19
20
  *
20
21
  * @param {{}} inputs
21
22
  * @param {{ locale?: "en" | "de" }} options
22
- * @returns {string}
23
+ * @returns {LocalizedString}
23
24
  */
24
25
  /* @__NO_SIDE_EFFECTS__ */
25
26
  export const viewer_variant_tooltip_core = (inputs = {}, options = {}) => {
@@ -1,3 +1,4 @@
1
1
  export function viewer_variant_tooltip_custom_theme(inputs?: {}, options?: {
2
2
  locale?: "en" | "de";
3
- }): string;
3
+ }): LocalizedString;
4
+ export type LocalizedString = import("../runtime.js").LocalizedString;
@@ -1,12 +1,13 @@
1
1
  /* eslint-disable */
2
2
  import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
3
4
 
4
- const en_viewer_variant_tooltip_custom_theme = /** @type {(inputs: {}) => string} */ () => {
5
- return `Example with custom theme override`
5
+ const en_viewer_variant_tooltip_custom_theme = /** @type {(inputs: {}) => LocalizedString} */ () => {
6
+ return /** @type {LocalizedString} */ (`Example with custom theme override`)
6
7
  };
7
8
 
8
- const de_viewer_variant_tooltip_custom_theme = /** @type {(inputs: {}) => string} */ () => {
9
- return `Beispiel mit benutzerdefiniertem Thema`
9
+ const de_viewer_variant_tooltip_custom_theme = /** @type {(inputs: {}) => LocalizedString} */ () => {
10
+ return /** @type {LocalizedString} */ (`Beispiel mit benutzerdefiniertem Thema`)
10
11
  };
11
12
 
12
13
  /**
@@ -19,7 +20,7 @@ const de_viewer_variant_tooltip_custom_theme = /** @type {(inputs: {}) => string
19
20
  *
20
21
  * @param {{}} inputs
21
22
  * @param {{ locale?: "en" | "de" }} options
22
- * @returns {string}
23
+ * @returns {LocalizedString}
23
24
  */
24
25
  /* @__NO_SIDE_EFFECTS__ */
25
26
  export const viewer_variant_tooltip_custom_theme = (inputs = {}, options = {}) => {
@@ -1,3 +1,4 @@
1
1
  export function viewer_variant_tooltip_full(inputs?: {}, options?: {
2
2
  locale?: "en" | "de";
3
- }): string;
3
+ }): LocalizedString;
4
+ export type LocalizedString = import("../runtime.js").LocalizedString;
@@ -1,12 +1,13 @@
1
1
  /* eslint-disable */
2
2
  import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
3
4
 
4
- const en_viewer_variant_tooltip_full = /** @type {(inputs: {}) => string} */ () => {
5
- return `Example with plugins`
5
+ const en_viewer_variant_tooltip_full = /** @type {(inputs: {}) => LocalizedString} */ () => {
6
+ return /** @type {LocalizedString} */ (`Example with plugins`)
6
7
  };
7
8
 
8
- const de_viewer_variant_tooltip_full = /** @type {(inputs: {}) => string} */ () => {
9
- return `Beispiel mit Plugins`
9
+ const de_viewer_variant_tooltip_full = /** @type {(inputs: {}) => LocalizedString} */ () => {
10
+ return /** @type {LocalizedString} */ (`Beispiel mit Plugins`)
10
11
  };
11
12
 
12
13
  /**
@@ -19,7 +20,7 @@ const de_viewer_variant_tooltip_full = /** @type {(inputs: {}) => string} */ ()
19
20
  *
20
21
  * @param {{}} inputs
21
22
  * @param {{ locale?: "en" | "de" }} options
22
- * @returns {string}
23
+ * @returns {LocalizedString}
23
24
  */
24
25
  /* @__NO_SIDE_EFFECTS__ */
25
26
  export const viewer_variant_tooltip_full = (inputs = {}, options = {}) => {
@@ -2,4 +2,5 @@ export function visible_count(inputs: {
2
2
  count: NonNullable<unknown>;
3
3
  }, options?: {
4
4
  locale?: "en" | "de";
5
- }): string;
5
+ }): LocalizedString;
6
+ export type LocalizedString = import("../runtime.js").LocalizedString;
@@ -1,12 +1,13 @@
1
1
  /* eslint-disable */
2
2
  import { getLocale, trackMessageCall, experimentalMiddlewareLocaleSplitting, isServer } from '../runtime.js';
3
+ /** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
3
4
 
4
- const en_visible_count = /** @type {(inputs: { count: NonNullable<unknown> }) => string} */ (i) => {
5
- return `(${i.count} visible)`
5
+ const en_visible_count = /** @type {(inputs: { count: NonNullable<unknown> }) => LocalizedString} */ (i) => {
6
+ return /** @type {LocalizedString} */ (`(${i?.count} visible)`)
6
7
  };
7
8
 
8
- const de_visible_count = /** @type {(inputs: { count: NonNullable<unknown> }) => string} */ (i) => {
9
- return `(${i.count} sichtbar)`
9
+ const de_visible_count = /** @type {(inputs: { count: NonNullable<unknown> }) => LocalizedString} */ (i) => {
10
+ return /** @type {LocalizedString} */ (`(${i?.count} sichtbar)`)
10
11
  };
11
12
 
12
13
  /**
@@ -19,7 +20,7 @@ const de_visible_count = /** @type {(inputs: { count: NonNullable<unknown> }) =>
19
20
  *
20
21
  * @param {{ count: NonNullable<unknown> }} inputs
21
22
  * @param {{ locale?: "en" | "de" }} options
22
- * @returns {string}
23
+ * @returns {LocalizedString}
23
24
  */
24
25
  /* @__NO_SIDE_EFFECTS__ */
25
26
  export const visible_count = (inputs, options = {}) => {
@@ -581,3 +581,17 @@ export type CustomClientStrategyHandler = {
581
581
  * A locale that is available in the project.
582
582
  */
583
583
  export type Locale = (typeof locales)[number];
584
+ /**
585
+ * A branded type representing a localized string.
586
+ *
587
+ * Message functions return this type instead of `string`, enabling TypeScript
588
+ * to distinguish translated strings from regular strings at compile time.
589
+ * This allows you to enforce that only properly localized content is used
590
+ * in your UI components.
591
+ *
592
+ * Since `LocalizedString` is a branded subtype of `string`, it remains fully
593
+ * backward compatible—you can pass it anywhere a `string` is expected.
594
+ */
595
+ export type LocalizedString = string & {
596
+ readonly __brand: "LocalizedString";
597
+ };