svelte-intlayer 8.9.6 → 8.9.8

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.
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
- export let Renderer: any = undefined;
3
- export let rendererProps: Record<string, any> = {};
4
- export let value: any = undefined;
2
+ export let Renderer: any = undefined;
3
+ export let rendererProps: Record<string, any> = {};
4
+ export let value: any = undefined;
5
5
  </script>
6
6
 
7
7
  {#if typeof Renderer === 'string'}
@@ -2,13 +2,13 @@ import type { LocalesValues } from '@intlayer/types/module_augmentation';
2
2
  /**
3
3
  * Get the locale cookie
4
4
  */
5
- export declare const localeInStorage: import("@intlayer/types").Locale | undefined;
5
+ export declare const localeInStorage: import("intlayer").Locale | undefined;
6
6
  /**
7
7
  * @deprecated Use localeInStorage instead
8
8
  *
9
9
  * Get the locale cookie
10
10
  */
11
- export declare const localeCookie: import("@intlayer/types").Locale | undefined;
11
+ export declare const localeCookie: import("intlayer").Locale | undefined;
12
12
  /**
13
13
  * Set the locale cookie
14
14
  */
@@ -1,3 +1,3 @@
1
1
  export declare const useCompact: () => import("svelte/store").Readable<(value: string | number, options?: (Intl.NumberFormatOptions & {
2
- locale?: import("@intlayer/types").LocalesValues;
2
+ locale?: import("intlayer").LocalesValues;
3
3
  }) | undefined) => string>;
@@ -1,3 +1,3 @@
1
1
  export declare const useCurrency: () => import("svelte/store").Readable<(value: string | number, options?: (Intl.NumberFormatOptions & {
2
- locale?: import("@intlayer/types").LocalesValues;
2
+ locale?: import("intlayer").LocalesValues;
3
3
  }) | undefined) => string>;
@@ -5,5 +5,5 @@
5
5
  * A store containing a date/time formatting function bound to the active locale.
6
6
  */
7
7
  export declare const useDate: () => import("svelte/store").Readable<(date: string | number | Date, options?: import("@intlayer/core/formatters").DateTimePreset | (Intl.DateTimeFormatOptions & {
8
- locale?: import("@intlayer/types").LocalesValues;
8
+ locale?: import("intlayer").LocalesValues;
9
9
  }) | undefined) => string>;
@@ -3,5 +3,5 @@ export declare const useList: () => import("svelte/store").Readable<(values: (st
3
3
  type?: "conjunction" | "disjunction" | "unit";
4
4
  style?: "long" | "short" | "narrow";
5
5
  } & {
6
- locale?: import("@intlayer/types").LocalesValues;
6
+ locale?: import("intlayer").LocalesValues;
7
7
  }) | undefined) => string>;
@@ -5,5 +5,5 @@
5
5
  * A store containing a number formatting function bound to the active locale.
6
6
  */
7
7
  export declare const useNumber: () => import("svelte/store").Readable<(value: string | number, args_1?: (Intl.NumberFormatOptions & {
8
- locale?: import("@intlayer/types").LocalesValues;
8
+ locale?: import("intlayer").LocalesValues;
9
9
  }) | undefined) => string>;
@@ -1,3 +1,3 @@
1
1
  export declare const usePercentage: () => import("svelte/store").Readable<(value: string | number, args_1?: (Intl.NumberFormatOptions & {
2
- locale?: import("@intlayer/types").LocalesValues;
2
+ locale?: import("intlayer").LocalesValues;
3
3
  }) | undefined) => string>;
@@ -1,4 +1,4 @@
1
1
  export declare const useRelativeTime: () => import("svelte/store").Readable<(from: string | number | Date, to?: string | number | Date | undefined, options?: (Intl.RelativeTimeFormatOptions & {
2
- locale?: import("@intlayer/types").LocalesValues;
2
+ locale?: import("intlayer").LocalesValues;
3
3
  unit?: Intl.RelativeTimeFormatUnit;
4
4
  }) | undefined) => string>;
@@ -1,3 +1,3 @@
1
1
  export declare const useUnit: () => import("svelte/store").Readable<(value: string | number, options?: (Intl.NumberFormatOptions & {
2
- locale?: import("@intlayer/types").LocalesValues;
2
+ locale?: import("intlayer").LocalesValues;
3
3
  }) | undefined) => string>;
@@ -6,6 +6,7 @@ import type { HTMLComponents } from './types';
6
6
  export const components: HTMLComponents<'permissive', {}> = {};
7
7
 
8
8
  let customRenderHTML: ((html: string, overrides?: any) => string) | undefined;
9
+
9
10
  export { customRenderHTML as renderHTML };
10
11
 
11
12
  const internalRenderHTML = (html: string, overrides?: any) => {
@@ -5,7 +5,8 @@ import { setMarkdownContext } from './context';
5
5
 
6
6
  export const components: HTMLComponents<'permissive', {}> | undefined =
7
7
  undefined;
8
- export const wrapper: string | import('svelte').ComponentType | undefined = undefined;
8
+ export const wrapper: string | import('svelte').ComponentType | undefined =
9
+ undefined;
9
10
  export const forceBlock: boolean | undefined = undefined;
10
11
  export const forceInline: boolean | undefined = undefined;
11
12
  export const preserveFrontmatter: boolean | undefined = undefined;
@@ -19,6 +20,7 @@ let customRenderMarkdown:
19
20
  wrapper?: string | import('svelte').ComponentType
20
21
  ) => string | Promise<string>)
21
22
  | undefined;
23
+
22
24
  export { customRenderMarkdown as renderMarkdown };
23
25
 
24
26
  $: baseOptions = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-intlayer",
3
- "version": "8.9.6",
3
+ "version": "8.9.8",
4
4
  "description": "Easily internationalize i18n your Svelte applications with type-safe multilingual content management.",
5
5
  "keywords": [
6
6
  "intlayer",
@@ -82,11 +82,11 @@
82
82
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
83
83
  },
84
84
  "dependencies": {
85
- "@intlayer/api": "8.9.6",
86
- "@intlayer/config": "8.9.6",
87
- "@intlayer/core": "8.9.6",
88
- "@intlayer/editor": "8.9.6",
89
- "@intlayer/types": "8.9.6"
85
+ "@intlayer/api": "8.9.8",
86
+ "@intlayer/config": "8.9.8",
87
+ "@intlayer/core": "8.9.8",
88
+ "@intlayer/editor": "8.9.8",
89
+ "@intlayer/types": "8.9.8"
90
90
  },
91
91
  "devDependencies": {
92
92
  "@sveltejs/adapter-auto": "7.0.1",