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.
- package/dist/IntlayerNodeWrapper.svelte +3 -3
- package/dist/client/useLocaleStorage.d.ts +2 -2
- package/dist/format/useCompact.d.ts +1 -1
- package/dist/format/useCurrency.d.ts +1 -1
- package/dist/format/useDate.d.ts +1 -1
- package/dist/format/useList.d.ts +1 -1
- package/dist/format/useNumber.d.ts +1 -1
- package/dist/format/usePercentage.d.ts +1 -1
- package/dist/format/useRelativeTime.d.ts +1 -1
- package/dist/format/useUnit.d.ts +1 -1
- package/dist/html/HTMLProvider.svelte +1 -0
- package/dist/markdown/MarkdownProvider.svelte +3 -1
- package/package.json +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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("
|
|
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("
|
|
11
|
+
export declare const localeCookie: import("intlayer").Locale | undefined;
|
|
12
12
|
/**
|
|
13
13
|
* Set the locale cookie
|
|
14
14
|
*/
|
package/dist/format/useDate.d.ts
CHANGED
|
@@ -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("
|
|
8
|
+
locale?: import("intlayer").LocalesValues;
|
|
9
9
|
}) | undefined) => string>;
|
package/dist/format/useList.d.ts
CHANGED
|
@@ -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("
|
|
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("
|
|
8
|
+
locale?: import("intlayer").LocalesValues;
|
|
9
9
|
}) | 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("
|
|
2
|
+
locale?: import("intlayer").LocalesValues;
|
|
3
3
|
unit?: Intl.RelativeTimeFormatUnit;
|
|
4
4
|
}) | undefined) => string>;
|
package/dist/format/useUnit.d.ts
CHANGED
|
@@ -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 =
|
|
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.
|
|
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.
|
|
86
|
-
"@intlayer/config": "8.9.
|
|
87
|
-
"@intlayer/core": "8.9.
|
|
88
|
-
"@intlayer/editor": "8.9.
|
|
89
|
-
"@intlayer/types": "8.9.
|
|
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",
|