@intlayer/types 7.0.9-canary.0 → 7.0.9-canary.2

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/README.md CHANGED
@@ -171,8 +171,9 @@ Explore our comprehensive documentation to get started with Intlayer and learn h
171
171
  <details open>
172
172
  <summary style="font-size:16px; font-weight:bold;">🌐 Environment</summary>
173
173
  <ul>
174
- <li><a href="https://intlayer.org/doc/environment/nextjs" rel=''>Intlayer with Next.js 15</a>
174
+ <li><a href="https://intlayer.org/doc/environment/nextjs" rel=''>Intlayer with Next.js 16</a>
175
175
  <ul>
176
+ <li><a href="https://intlayer.org/doc/environment/nextjs/15" rel=''>Next.js 15</a></li>
176
177
  <li><a href="https://intlayer.org/doc/environment/nextjs/14" rel=''>Next.js 14 (App Router)</a></li>
177
178
  <li><a href="https://intlayer.org/doc/environment/nextjs/next-with-Page-Router" rel=''>Next.js Page Router</a></li>
178
179
  </ul>
@@ -16,7 +16,10 @@ ContentNode<T, FetchableNode> | ReplaceContentValue<U, FetchableNode>[] : never;
16
16
  type ReplaceContentValueObject<T, FetchableNode> = { [K in keyof T]: ReplaceContentValue<T[K], FetchableNode> };
17
17
  type ReplaceContentValue<NodeType$1, FetchableNode = true> = NodeType$1 extends object ? IsArray<NodeType$1> extends true ? ReplaceContentValueArray<NodeType$1, FetchableNode> : ContentNode<NodeType$1, FetchableNode> | ReplaceContentValueObject<NodeType$1, FetchableNode> : ContentNode<NodeType$1, FetchableNode>;
18
18
  type Fill = boolean | string | Partial<Record<DeclaredLocales, boolean | string>>;
19
- type LocalDictionaryId = `${Dictionary['key']}::${Dictionary['location']}::${Dictionary['filePath'] | Dictionary['id']}`;
19
+ type DictionaryId = string;
20
+ type DictionaryKey = string;
21
+ type DictionaryLocation = 'remote' | 'local' | 'plugin';
22
+ type LocalDictionaryId = `${DictionaryKey}::${Dictionary['location']}::${Dictionary['filePath'] | DictionaryId}`;
20
23
  type Dictionary<ContentType = undefined, FetchableNode = false> = {
21
24
  /**
22
25
  * _Auto generated by the intlayer, do not modify it_
@@ -29,7 +32,7 @@ type Dictionary<ContentType = undefined, FetchableNode = false> = {
29
32
  *
30
33
  * For remote dictionaries, the id is the id of the dictionary in the remote server
31
34
  */
32
- id?: string;
35
+ id?: DictionaryId;
33
36
  /**
34
37
  * _Auto generated by the intlayer, do not modify it_
35
38
  *
@@ -62,7 +65,7 @@ type Dictionary<ContentType = undefined, FetchableNode = false> = {
62
65
  * }
63
66
  * ```
64
67
  */
65
- key: string;
68
+ key: DictionaryKey;
66
69
  /**
67
70
  * The title of the dictionary. Helps to identify the dictionary in the editor, and the CMS.
68
71
  *
@@ -211,7 +214,7 @@ type Dictionary<ContentType = undefined, FetchableNode = false> = {
211
214
  *
212
215
  * Indicates the location of the dictionary.
213
216
  */
214
- location?: 'remote' | 'local' | 'plugin';
217
+ location?: DictionaryLocation;
215
218
  /**
216
219
  * The content of the dictionary.
217
220
  *
@@ -290,5 +293,5 @@ type Dictionary<ContentType = undefined, FetchableNode = false> = {
290
293
  };
291
294
  type GetSubPath<T, P> = P extends `${infer K}.${infer Rest}` ? K extends keyof T ? GetSubPath<T[K], Rest> : never : P extends keyof T ? T[P] : T;
292
295
  //#endregion
293
- export { ContentNode, Dictionary, Fill, GetSubPath, LocalDictionaryId, TypedNode };
296
+ export { ContentNode, Dictionary, DictionaryId, DictionaryKey, DictionaryLocation, Fill, GetSubPath, LocalDictionaryId, TypedNode };
294
297
  //# sourceMappingURL=dictionary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dictionary.d.ts","names":[],"sources":["../../src/dictionary.ts"],"sourcesContent":[],"mappings":";;;;KAGK,QAAA;KAEA,aAAA;EAFA,QAAA,EAGO,QAHC,GAAA,GAGa,QAHb,EAAA;AAAA,CAAA;AAMI,UAAA,SAAS,CAAA,aAA+B,SAAA,CAAA,SAAA,aAAa,CAAA,CAAG;KAEpE,oBAEY,CAAA,UAAA,CAAA,GAAA,CAAA,IAAA,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;;;;;;;;;;;;;;SAoCF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAsCI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA4EF,sCAEL,oBAAoB,aAAa,iBAAiB;;KAG5C,mBAAmB,uCAC3B,gBAAgB,IACd,WAAW,EAAE,IAAI,gBAEnB,gBAAgB,IACd,EAAE,KACF"}
@@ -1,8 +1,8 @@
1
1
  import { Locale, locales_d_exports } from "./locales.js";
2
2
  import { DeclaredLocales, DictionaryKeys, DictionaryRegistry, DictionaryRegistryContent, DictionaryRegistryElement, LocalesValues, RequiredLocales, StrictModeLocaleMap } from "./module_augmentation.js";
3
3
  import { NodeType, TypedNodeModel, formatNodeType } from "./nodeType.js";
4
- import { ContentNode, Dictionary, Fill, GetSubPath, LocalDictionaryId, TypedNode } from "./dictionary.js";
4
+ import { ContentNode, Dictionary, DictionaryId, DictionaryKey, DictionaryLocation, Fill, GetSubPath, LocalDictionaryId, TypedNode } from "./dictionary.js";
5
5
  import { MergedDictionaryOutput, MergedDictionaryResult, Plugin, UnmergedDictionaryOutput, UnmergedDictionaryResult } from "./plugin.js";
6
6
  import { AiConfig, BaseContentConfig, BaseDerivedConfig, BuildConfig, ContentConfig, CookiesAttributes, CustomIntlayerConfig, DictionaryConfig, EditorConfig, InternationalizationConfig, IntlayerConfig, LogConfig, LogFunctions, PatternsContentConfig, RoutingConfig, StorageAttributes, StrictMode } from "./config.js";
7
7
  import { ArrayNode, ConditionNode, EnumerationNode, FileNode, GenderNode, InsertionNode, KeyPath, MarkdownNode, NestedNode, ObjectNode, ReactNode, TranslationNode } from "./keyPath.js";
8
- export { AiConfig, ArrayNode, BaseContentConfig, BaseDerivedConfig, BuildConfig, ConditionNode, ContentConfig, ContentNode, CookiesAttributes, CustomIntlayerConfig, DeclaredLocales, Dictionary, DictionaryConfig, DictionaryKeys, DictionaryRegistry, DictionaryRegistryContent, DictionaryRegistryElement, EditorConfig, EnumerationNode, FileNode, Fill, GenderNode, GetSubPath, InsertionNode, InternationalizationConfig, IntlayerConfig, KeyPath, LocalDictionaryId, type Locale, locales_d_exports as Locales, LocalesValues, LogConfig, LogFunctions, MarkdownNode, MergedDictionaryOutput, MergedDictionaryResult, NestedNode, NodeType, ObjectNode, PatternsContentConfig, Plugin, ReactNode, RequiredLocales, RoutingConfig, StorageAttributes, StrictMode, StrictModeLocaleMap, TranslationNode, TypedNode, TypedNodeModel, UnmergedDictionaryOutput, UnmergedDictionaryResult, formatNodeType };
8
+ export { AiConfig, ArrayNode, BaseContentConfig, BaseDerivedConfig, BuildConfig, ConditionNode, ContentConfig, ContentNode, CookiesAttributes, CustomIntlayerConfig, DeclaredLocales, Dictionary, DictionaryConfig, DictionaryId, DictionaryKey, DictionaryKeys, DictionaryLocation, DictionaryRegistry, DictionaryRegistryContent, DictionaryRegistryElement, EditorConfig, EnumerationNode, FileNode, Fill, GenderNode, GetSubPath, InsertionNode, InternationalizationConfig, IntlayerConfig, KeyPath, LocalDictionaryId, type Locale, locales_d_exports as Locales, LocalesValues, LogConfig, LogFunctions, MarkdownNode, MergedDictionaryOutput, MergedDictionaryResult, NestedNode, NodeType, ObjectNode, PatternsContentConfig, Plugin, ReactNode, RequiredLocales, RoutingConfig, StorageAttributes, StrictMode, StrictModeLocaleMap, TranslationNode, TypedNode, TypedNodeModel, UnmergedDictionaryOutput, UnmergedDictionaryResult, formatNodeType };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/types",
3
- "version": "7.0.9-canary.0",
3
+ "version": "7.0.9-canary.2",
4
4
  "private": false,
5
5
  "description": "Retrieve Intlayer configurations and manage environment variables for both server-side and client-side environments.",
6
6
  "keywords": [
@@ -70,19 +70,22 @@
70
70
  "lint": "biome lint .",
71
71
  "lint:fix": "biome lint --write .",
72
72
  "prepublish": "cp -f ../../../README.md ./README.md",
73
+ "publish": "bun publish --access public || true",
74
+ "publish:canary": "bun publish --tag canary --access public || true",
75
+ "publish:latest": "bun publish --tag latest --access public || true",
73
76
  "test": "vitest run",
74
77
  "test:watch": "vitest",
75
78
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
76
79
  },
77
80
  "devDependencies": {
78
- "@types/node": "24.10.0",
79
- "@utils/ts-config": "7.0.9-canary.0",
80
- "@utils/ts-config-types": "7.0.9-canary.0",
81
- "@utils/tsdown-config": "7.0.9-canary.0",
81
+ "@types/node": "24.10.1",
82
+ "@utils/ts-config": "1.0.4",
83
+ "@utils/ts-config-types": "1.0.4",
84
+ "@utils/tsdown-config": "1.0.4",
82
85
  "rimraf": "6.1.0",
83
- "tsdown": "0.16.0",
86
+ "tsdown": "0.16.4",
84
87
  "typescript": "5.9.3",
85
- "vitest": "4.0.7"
88
+ "vitest": "4.0.8"
86
89
  },
87
90
  "engines": {
88
91
  "node": ">=14.18"