svelte-intlayer 9.1.2 → 9.1.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.
@@ -1,5 +1,5 @@
1
1
  import type { Dictionary, DictionarySelectorForGroup, QualifiedDictionaryGroup, ResolveQualifiedDictionaryContent } from '@intlayer/types/dictionary';
2
- import type { DeclaredLocales, ExtractSelectorLocale } from '@intlayer/types/module_augmentation';
2
+ import type { DeclaredLocales, ExtractSelectorLocale, LocalesValues } from '@intlayer/types/module_augmentation';
3
3
  import { type Readable } from 'svelte/store';
4
4
  import type { DeepTransformContent } from '../plugins';
5
5
  /**
@@ -10,4 +10,4 @@ import type { DeepTransformContent } from '../plugins';
10
10
  * @param localeOrSelector The target locale or selector (optional)
11
11
  * @returns Reactive store with transformed dictionary content
12
12
  */
13
- export declare const useDictionary: <const T extends Dictionary | QualifiedDictionaryGroup, const A extends DeclaredLocales | DictionarySelectorForGroup<T> = DeclaredLocales>(dictionary: T, localeOrSelector?: A) => Readable<DeepTransformContent<ResolveQualifiedDictionaryContent<T, A>, ExtractSelectorLocale<A>>>;
13
+ export declare const useDictionary: <const T extends Dictionary | QualifiedDictionaryGroup, const A extends LocalesValues | DictionarySelectorForGroup<T> = DeclaredLocales>(dictionary: T, localeOrSelector?: A) => Readable<DeepTransformContent<ResolveQualifiedDictionaryContent<T, A>, ExtractSelectorLocale<A>>>;
@@ -1,6 +1,6 @@
1
1
  import { type QualifiedDynamicLoaderMap } from '@intlayer/core/dictionaryManipulator';
2
2
  import type { Dictionary } from '@intlayer/types/dictionary';
3
- import type { DeclaredLocales, DictionaryKeys, DictionarySelectorForKey, StrictModeLocaleMap } from '@intlayer/types/module_augmentation';
3
+ import type { DeclaredLocales, DictionaryKeys, DictionarySelectorForKey, LocalesValues, StrictModeLocaleMap } from '@intlayer/types/module_augmentation';
4
4
  import { type Readable } from 'svelte/store';
5
5
  import type { DeepTransformContent } from '../plugins';
6
6
  /**
@@ -15,7 +15,7 @@ import type { DeepTransformContent } from '../plugins';
15
15
  * @param localeOrSelector - Optional fixed locale or selector.
16
16
  * @returns Readable store with the loaded dictionary content.
17
17
  */
18
- export declare function useDictionaryDynamic<const T extends Dictionary, const K extends DictionaryKeys, const A extends DeclaredLocales | DictionarySelectorForKey<K> = DeclaredLocales>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>> | QualifiedDynamicLoaderMap, key: K, localeOrSelector?: A): Readable<DeepTransformContent<T['content']> & {
18
+ export declare function useDictionaryDynamic<const T extends Dictionary, const K extends DictionaryKeys, const A extends LocalesValues | DictionarySelectorForKey<K> = DeclaredLocales>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>> | QualifiedDynamicLoaderMap, key: K, localeOrSelector?: A): Readable<DeepTransformContent<T['content']> & {
19
19
  isLoading: boolean;
20
20
  error: Error | null;
21
21
  }>;
@@ -1,4 +1,4 @@
1
- import type { DeclaredLocales, DictionaryKeys, DictionaryRegistryResult, DictionarySelectorForKey, ExtractSelectorLocale } from '@intlayer/types/module_augmentation';
1
+ import type { DeclaredLocales, DictionaryKeys, DictionaryRegistryResult, DictionarySelectorForKey, ExtractSelectorLocale, LocalesValues } from '@intlayer/types/module_augmentation';
2
2
  import { type Readable } from 'svelte/store';
3
3
  import type { DeepTransformContent } from '../plugins';
4
4
  /**
@@ -26,4 +26,4 @@ import type { DeepTransformContent } from '../plugins';
26
26
  * <div>{$content.myField.value}</div>
27
27
  * ```
28
28
  */
29
- export declare const useIntlayer: <const T extends DictionaryKeys, const A extends DeclaredLocales | DictionarySelectorForKey<T> = DeclaredLocales>(key: T, localeOrSelector?: A) => Readable<DeepTransformContent<DictionaryRegistryResult<T, A>, ExtractSelectorLocale<A>>>;
29
+ export declare const useIntlayer: <const T extends DictionaryKeys, const A extends LocalesValues | DictionarySelectorForKey<T> = DeclaredLocales>(key: T, localeOrSelector?: A) => Readable<DeepTransformContent<DictionaryRegistryResult<T, A>, ExtractSelectorLocale<A>>>;
@@ -1,5 +1,5 @@
1
1
  import type { Dictionary, DictionarySelectorForGroup, QualifiedDictionaryGroup, ResolveQualifiedDictionaryContent } from '@intlayer/types/dictionary';
2
- import type { DeclaredLocales, ExtractSelectorLocale } from '@intlayer/types/module_augmentation';
2
+ import type { DeclaredLocales, ExtractSelectorLocale, LocalesValues } from '@intlayer/types/module_augmentation';
3
3
  import { type DeepTransformContent } from './plugins';
4
4
  /**
5
5
  * Get content for a dictionary (or qualified dictionary group) in Svelte
@@ -10,4 +10,4 @@ import { type DeepTransformContent } from './plugins';
10
10
  * @param localeOrSelector The target locale or selector (optional)
11
11
  * @returns Transformed dictionary content optimized for Svelte
12
12
  */
13
- export declare const getDictionary: <const T extends Dictionary | QualifiedDictionaryGroup, const A extends DeclaredLocales | DictionarySelectorForGroup<T> = DeclaredLocales>(dictionary: T, localeOrSelector?: A) => DeepTransformContent<ResolveQualifiedDictionaryContent<T, A>, ExtractSelectorLocale<A>>;
13
+ export declare const getDictionary: <const T extends Dictionary | QualifiedDictionaryGroup, const A extends LocalesValues | DictionarySelectorForGroup<T> = DeclaredLocales>(dictionary: T, localeOrSelector?: A) => DeepTransformContent<ResolveQualifiedDictionaryContent<T, A>, ExtractSelectorLocale<A>>;
@@ -1,4 +1,4 @@
1
- import type { DeclaredLocales, DictionaryKeys, DictionaryRegistryResult, DictionarySelectorForKey, ExtractSelectorLocale } from '@intlayer/types/module_augmentation';
1
+ import type { DeclaredLocales, DictionaryKeys, DictionaryRegistryResult, DictionarySelectorForKey, ExtractSelectorLocale, LocalesValues } from '@intlayer/types/module_augmentation';
2
2
  import { type DeepTransformContent } from './plugins';
3
3
  /**
4
4
  * Get dictionary content by key for Svelte applications.
@@ -10,4 +10,4 @@ import { type DeepTransformContent } from './plugins';
10
10
  * @param localeOrSelector The target locale or selector (optional)
11
11
  * @returns Transformed dictionary content optimized for Svelte
12
12
  */
13
- export declare const getIntlayer: <const T extends DictionaryKeys, const A extends DeclaredLocales | DictionarySelectorForKey<T> = DeclaredLocales>(key: T, localeOrSelector?: A) => DeepTransformContent<DictionaryRegistryResult<T, A>, ExtractSelectorLocale<A>>;
13
+ export declare const getIntlayer: <const T extends DictionaryKeys, const A extends LocalesValues | DictionarySelectorForKey<T> = DeclaredLocales>(key: T, localeOrSelector?: A) => DeepTransformContent<DictionaryRegistryResult<T, A>, ExtractSelectorLocale<A>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-intlayer",
3
- "version": "9.1.2",
3
+ "version": "9.1.3",
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": "9.1.2",
86
- "@intlayer/config": "9.1.2",
87
- "@intlayer/core": "9.1.2",
88
- "@intlayer/editor": "9.1.2",
89
- "@intlayer/types": "9.1.2"
85
+ "@intlayer/api": "9.1.3",
86
+ "@intlayer/config": "9.1.3",
87
+ "@intlayer/core": "9.1.3",
88
+ "@intlayer/editor": "9.1.3",
89
+ "@intlayer/types": "9.1.3"
90
90
  },
91
91
  "devDependencies": {
92
92
  "@sveltejs/adapter-auto": "7.0.1",
@@ -108,7 +108,7 @@
108
108
  "svelte": ">=5.0.0"
109
109
  },
110
110
  "optionalDependencies": {
111
- "@intlayer/analytics": "9.1.2"
111
+ "@intlayer/analytics": "9.1.3"
112
112
  },
113
113
  "engines": {
114
114
  "node": ">=14.18"