lit-intlayer 9.1.0 → 9.1.1

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 { Dictionary, DictionarySelectorForGroup, QualifiedDictionaryGroup, ResolveQualifiedDictionaryContent } from '@intlayer/types/dictionary';
2
- import { DeclaredLocales, ExtractSelectorLocale, LocalesValues } from '@intlayer/types/module_augmentation';
2
+ import { DeclaredLocales, ExtractSelectorLocale } from '@intlayer/types/module_augmentation';
3
3
  import { DeepTransformContent } from '../plugins';
4
4
  import { IntlayerLitProxy } from './IntlayerBinding';
5
5
  /**
@@ -14,5 +14,5 @@ import { IntlayerLitProxy } from './IntlayerBinding';
14
14
  * @param localeOrSelector - Optional locale or selector.
15
15
  * @returns An {@link IntlayerLitProxy} with an `.observe()` registration method.
16
16
  */
17
- export declare const useDictionary: <const T extends Dictionary | QualifiedDictionaryGroup, const A extends LocalesValues | DictionarySelectorForGroup<T> = DeclaredLocales>(dictionary: T, localeOrSelector?: A) => IntlayerLitProxy<DeepTransformContent<ResolveQualifiedDictionaryContent<T, A>, ExtractSelectorLocale<A>>>;
17
+ export declare const useDictionary: <const T extends Dictionary | QualifiedDictionaryGroup, const A extends DeclaredLocales | DictionarySelectorForGroup<T> = DeclaredLocales>(dictionary: T, localeOrSelector?: A) => IntlayerLitProxy<DeepTransformContent<ResolveQualifiedDictionaryContent<T, A>, ExtractSelectorLocale<A>>>;
18
18
  //# sourceMappingURL=useDictionary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDictionary.d.ts","sourceRoot":"","sources":["../../../src/client/useDictionary.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EAEV,0BAA0B,EAC1B,wBAAwB,EACxB,iCAAiC,EAClC,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACrB,aAAa,EACd,MAAM,qCAAqC,CAAC;AAG7C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAmB,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAG3E;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,GACxB,KAAK,CAAC,CAAC,SAAS,UAAU,GAAG,wBAAwB,EACrD,KAAK,CAAC,CAAC,SACH,aAAa,GACb,0BAA0B,CAAC,CAAC,CAAC,GAAG,eAAe,EAEnD,YAAY,CAAC,EACb,mBAAmB,CAAC,KACnB,gBAAgB,CACjB,oBAAoB,CAClB,iCAAiC,CAAC,CAAC,EAAE,CAAC,CAAC,EACvC,qBAAqB,CAAC,CAAC,CAAC,CACzB,CA4DF,CAAC"}
1
+ {"version":3,"file":"useDictionary.d.ts","sourceRoot":"","sources":["../../../src/client/useDictionary.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EAEV,0BAA0B,EAC1B,wBAAwB,EACxB,iCAAiC,EAClC,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EAEtB,MAAM,qCAAqC,CAAC;AAG7C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAmB,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAG3E;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,GACxB,KAAK,CAAC,CAAC,SAAS,UAAU,GAAG,wBAAwB,EACrD,KAAK,CAAC,CAAC,SACH,eAAe,GACf,0BAA0B,CAAC,CAAC,CAAC,GAAG,eAAe,EAEnD,YAAY,CAAC,EACb,mBAAmB,CAAC,KACnB,gBAAgB,CACjB,oBAAoB,CAClB,iCAAiC,CAAC,CAAC,EAAE,CAAC,CAAC,EACvC,qBAAqB,CAAC,CAAC,CAAC,CACzB,CA4DF,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { QualifiedDynamicLoaderMap } from '@intlayer/core/dictionaryManipulator';
2
2
  import { Dictionary } from '@intlayer/types/dictionary';
3
- import { DictionaryKeys, DictionarySelectorForKey, LocalesValues, StrictModeLocaleMap } from '@intlayer/types/module_augmentation';
3
+ import { DeclaredLocales, DictionaryKeys, DictionarySelectorForKey, StrictModeLocaleMap } from '@intlayer/types/module_augmentation';
4
4
  import { DeepTransformContent } from '../plugins';
5
5
  import { IntlayerLitProxy } from './IntlayerBinding';
6
6
  /**
@@ -34,5 +34,5 @@ import { IntlayerLitProxy } from './IntlayerBinding';
34
34
  * private content = useDictionaryDynamic(_hash_dyn, 'app').observe(this);
35
35
  * ```
36
36
  */
37
- export declare const useDictionaryDynamic: <const T extends Dictionary, const K extends DictionaryKeys, const A extends LocalesValues | DictionarySelectorForKey<K> = LocalesValues>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>> | QualifiedDynamicLoaderMap, key: K, localeOrSelector?: A) => IntlayerLitProxy<DeepTransformContent<T["content"]>>;
37
+ export declare const 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) => IntlayerLitProxy<DeepTransformContent<T["content"]>>;
38
38
  //# sourceMappingURL=useDictionaryDynamic.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDictionaryDynamic.d.ts","sourceRoot":"","sources":["../../../src/client/useDictionaryDynamic.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,yBAAyB,EAE/B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EACV,UAAU,EAEX,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,cAAc,EACd,wBAAwB,EACxB,aAAa,EACb,mBAAmB,EACpB,MAAM,qCAAqC,CAAC;AAG7C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAmB,KAAK,gBAAgB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AAgB,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CA+GrD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { DeclaredLocales, DictionaryKeys, DictionaryRegistryResult, DictionarySelectorForKey, ExtractSelectorLocale, LocalesValues } from '@intlayer/types/module_augmentation';
1
+ import { DeclaredLocales, DictionaryKeys, DictionaryRegistryResult, DictionarySelectorForKey, ExtractSelectorLocale } from '@intlayer/types/module_augmentation';
2
2
  import { DeepTransformContent } from '../plugins';
3
3
  import { IntlayerLitProxy } from './IntlayerBinding';
4
4
  /**
@@ -19,5 +19,5 @@ import { IntlayerLitProxy } from './IntlayerBinding';
19
19
  * In non-optimized builds (dev without babel) the content is re-fetched from
20
20
  * `getIntlayer` on every property access, caching by locale.
21
21
  */
22
- export declare const useIntlayer: <const T extends DictionaryKeys, const A extends LocalesValues | DictionarySelectorForKey<T> = DeclaredLocales>(key: T, localeOrSelector?: A) => IntlayerLitProxy<DeepTransformContent<DictionaryRegistryResult<T, A>, ExtractSelectorLocale<A>>>;
22
+ export declare const useIntlayer: <const T extends DictionaryKeys, const A extends DeclaredLocales | DictionarySelectorForKey<T> = DeclaredLocales>(key: T, localeOrSelector?: A) => IntlayerLitProxy<DeepTransformContent<DictionaryRegistryResult<T, A>, ExtractSelectorLocale<A>>>;
23
23
  //# sourceMappingURL=useIntlayer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIntlayer.d.ts","sourceRoot":"","sources":["../../../src/client/useIntlayer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,EACrB,aAAa,EACd,MAAM,qCAAqC,CAAC;AAE7C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAmB,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAG3E;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,WAAW,GACtB,KAAK,CAAC,CAAC,SAAS,cAAc,EAC9B,KAAK,CAAC,CAAC,SAAS,aAAa,GAAG,wBAAwB,CAAC,CAAC,CAAC,GAAG,eAAe,EAE7E,KAAK,CAAC,EACN,mBAAmB,CAAC,KACnB,gBAAgB,CACjB,oBAAoB,CAAC,wBAAwB,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC,CA8D/E,CAAC"}
1
+ {"version":3,"file":"useIntlayer.d.ts","sourceRoot":"","sources":["../../../src/client/useIntlayer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,EAEtB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAmB,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAG3E;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,WAAW,GACtB,KAAK,CAAC,CAAC,SAAS,cAAc,EAC9B,KAAK,CAAC,CAAC,SACH,eAAe,GACf,wBAAwB,CAAC,CAAC,CAAC,GAAG,eAAe,EAEjD,KAAK,CAAC,EACN,mBAAmB,CAAC,KACnB,gBAAgB,CACjB,oBAAoB,CAAC,wBAAwB,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC,CA8D/E,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import { Dictionary, DictionarySelectorForGroup, QualifiedDictionaryGroup, ResolveQualifiedDictionaryContent } from '@intlayer/types/dictionary';
2
- import { DeclaredLocales, ExtractSelectorLocale, LocalesValues } from '@intlayer/types/module_augmentation';
2
+ import { DeclaredLocales, ExtractSelectorLocale } from '@intlayer/types/module_augmentation';
3
3
  import { DeepTransformContent } from './plugins';
4
4
  /**
5
5
  * Transforms a dictionary (or qualified dictionary group) and returns its
6
6
  * content for the given locale or selector (`{ item }`, `{ variant }`,
7
7
  * optionally combined with `locale`).
8
8
  */
9
- 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>>;
9
+ 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>>;
10
10
  //# sourceMappingURL=getDictionary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDictionary.d.ts","sourceRoot":"","sources":["../../src/getDictionary.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,0BAA0B,EAC1B,wBAAwB,EACxB,iCAAiC,EAClC,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACrB,aAAa,EACd,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,KAAK,oBAAoB,EAAc,MAAM,WAAW,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,aAAa,GACxB,KAAK,CAAC,CAAC,SAAS,UAAU,GAAG,wBAAwB,EACrD,KAAK,CAAC,CAAC,SACH,aAAa,GACb,0BAA0B,CAAC,CAAC,CAAC,GAAG,eAAe,EAEnD,YAAY,CAAC,EACb,mBAAmB,CAAC,KACnB,oBAAoB,CACrB,iCAAiC,CAAC,CAAC,EAAE,CAAC,CAAC,EACvC,qBAAqB,CAAC,CAAC,CAAC,CAazB,CAAC"}
1
+ {"version":3,"file":"getDictionary.d.ts","sourceRoot":"","sources":["../../src/getDictionary.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,0BAA0B,EAC1B,wBAAwB,EACxB,iCAAiC,EAClC,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EAEtB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,KAAK,oBAAoB,EAAc,MAAM,WAAW,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,aAAa,GACxB,KAAK,CAAC,CAAC,SAAS,UAAU,GAAG,wBAAwB,EACrD,KAAK,CAAC,CAAC,SACH,eAAe,GACf,0BAA0B,CAAC,CAAC,CAAC,GAAG,eAAe,EAEnD,YAAY,CAAC,EACb,mBAAmB,CAAC,KACnB,oBAAoB,CACrB,iCAAiC,CAAC,CAAC,EAAE,CAAC,CAAC,EACvC,qBAAqB,CAAC,CAAC,CAAC,CAazB,CAAC"}
@@ -1,9 +1,9 @@
1
- import { DeclaredLocales, DictionaryKeys, DictionaryRegistryResult, DictionarySelectorForKey, ExtractSelectorLocale, LocalesValues } from '@intlayer/types/module_augmentation';
1
+ import { DeclaredLocales, DictionaryKeys, DictionaryRegistryResult, DictionarySelectorForKey, ExtractSelectorLocale } from '@intlayer/types/module_augmentation';
2
2
  import { DeepTransformContent } from './plugins';
3
3
  /**
4
4
  * Picks one dictionary by its key and returns its content for the given
5
5
  * locale or selector (`{ item }`, `{ variant }`,
6
6
  * optionally combined with `locale`).
7
7
  */
8
- 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>>;
8
+ 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>>;
9
9
  //# sourceMappingURL=getIntlayer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getIntlayer.d.ts","sourceRoot":"","sources":["../../src/getIntlayer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,EACrB,aAAa,EACd,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,KAAK,oBAAoB,EAAc,MAAM,WAAW,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,WAAW,GACtB,KAAK,CAAC,CAAC,SAAS,cAAc,EAC9B,KAAK,CAAC,CAAC,SAAS,aAAa,GAAG,wBAAwB,CAAC,CAAC,CAAC,GAAG,eAAe,EAE7E,KAAK,CAAC,EACN,mBAAmB,CAAC,KACnB,oBAAoB,CACrB,wBAAwB,CAAC,CAAC,EAAE,CAAC,CAAC,EAC9B,qBAAqB,CAAC,CAAC,CAAC,CASzB,CAAC"}
1
+ {"version":3,"file":"getIntlayer.d.ts","sourceRoot":"","sources":["../../src/getIntlayer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,EAEtB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,KAAK,oBAAoB,EAAc,MAAM,WAAW,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,WAAW,GACtB,KAAK,CAAC,CAAC,SAAS,cAAc,EAC9B,KAAK,CAAC,CAAC,SACH,eAAe,GACf,wBAAwB,CAAC,CAAC,CAAC,GAAG,eAAe,EAEjD,KAAK,CAAC,EACN,mBAAmB,CAAC,KACnB,oBAAoB,CACrB,wBAAwB,CAAC,CAAC,EAAE,CAAC,CAAC,EAC9B,qBAAqB,CAAC,CAAC,CAAC,CASzB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lit-intlayer",
3
- "version": "9.1.0",
3
+ "version": "9.1.1",
4
4
  "private": false,
5
5
  "description": "Easily internationalize i18n your Lit applications with type-safe multilingual content management.",
6
6
  "keywords": [
@@ -103,11 +103,11 @@
103
103
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
104
104
  },
105
105
  "dependencies": {
106
- "@intlayer/api": "9.1.0",
107
- "@intlayer/config": "9.1.0",
108
- "@intlayer/core": "9.1.0",
109
- "@intlayer/editor": "9.1.0",
110
- "@intlayer/types": "9.1.0"
106
+ "@intlayer/api": "9.1.1",
107
+ "@intlayer/config": "9.1.1",
108
+ "@intlayer/core": "9.1.1",
109
+ "@intlayer/editor": "9.1.1",
110
+ "@intlayer/types": "9.1.1"
111
111
  },
112
112
  "devDependencies": {
113
113
  "@types/node": "26.1.2",
@@ -124,7 +124,7 @@
124
124
  "vitest": "4.1.10"
125
125
  },
126
126
  "peerDependencies": {
127
- "intlayer": "9.1.0",
127
+ "intlayer": "9.1.1",
128
128
  "lit": ">=3.0.0"
129
129
  },
130
130
  "peerDependenciesMeta": {