@intlayer/core 3.5.5 → 3.5.7

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 +1 @@
1
- {"version":3,"sources":["../../../src/types/declarationContent.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type {\n EnumerationContent,\n TranslationContent,\n} from '../transpiler/index';\n\nexport type TypedNode<T = unknown> =\n | TranslationContent<T>\n | EnumerationContent<T>;\n\nexport type ContentValue =\n | string\n | string[]\n | number\n | number[]\n | {\n [key: string]: ContentValue;\n }\n | (() => ContentValue)\n | Promise<ContentValue>\n | TypedNode;\n\nexport type Content = Record<string, ContentValue | ContentValue[] | undefined>;\n\nexport type FlatContentValue =\n | string\n | {\n [key: string]: FlatContentValue;\n }\n | TypedNode;\n\nexport type FlatContent = Record<string, FlatContentValue | undefined>;\n\ntype IsArray<T> = T extends any[] ? true : false;\n\n// Utility type that performs recursive replacement\ntype ReplaceContentValue<T> = {\n [P in keyof T]: IsArray<T[P]> extends true\n ? ReplaceContentValueArray<T[P]>\n : T[P] extends object\n ? ReplaceContentValue<T[P]>\n : T[P] | TypedNode<T[P]>;\n};\n\ntype ReplaceContentValueArray<T> = T extends (infer U)[]\n ? ReplaceContentValue<U>[]\n : ReplaceContentValue<T>;\n\nexport type DeclarationContent<T = undefined> = {\n key: string;\n title?: string;\n description?: string;\n version?: string;\n filePath?: string;\n content: T extends undefined // Applying the generic to replace ContentValue with Replacement\n ? Content\n : ReplaceContentValue<T>;\n};\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../../../src/types/declarationContent.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport type {\n EnumerationContent,\n TranslationContent,\n} from '../transpiler/index';\n\nexport type TypedNode<T = unknown> =\n | TranslationContent<T>\n | EnumerationContent<T>;\n\nexport type ContentValue =\n | string\n | string[]\n | number\n | number[]\n | {\n [key: string]: ContentValue;\n }\n | (() => ContentValue)\n | Promise<ContentValue>\n | TypedNode;\n\nexport type Content = Record<string, ContentValue | ContentValue[] | undefined>;\n\nexport type FlatContentValue =\n | string\n | {\n [key: string]: FlatContentValue;\n }\n | TypedNode;\n\nexport type FlatContent = Record<string, FlatContentValue | undefined>;\n\ntype IsArray<T> = T extends any[] ? true : false;\n\n// Utility type that performs recursive replacement\ntype ReplaceContentValue<T> = {\n [P in keyof T]: IsArray<T[P]> extends true\n ? ReplaceContentValueArray<T[P]>\n : T[P] extends object\n ? ReplaceContentValue<T[P]>\n : T[P] | TypedNode<T[P]>;\n};\n\ntype ReplaceContentValueArray<T> = T extends (infer U)[]\n ? ReplaceContentValue<U>[]\n : ReplaceContentValue<T>;\n\nexport type DeclarationContent<T = undefined> = {\n key: string;\n title?: string;\n description?: string;\n version?: string;\n filePath?: string;\n tags?: string[];\n content: T extends undefined // Applying the generic to replace ContentValue with Replacement\n ? Content\n : ReplaceContentValue<T>;\n};\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/types/dictionary.ts"],"sourcesContent":["import type {\n EnumerationContent,\n TranslationContent,\n} from '../transpiler/index';\n\nexport type RecursiveDictionaryValue =\n | number\n | string\n | undefined\n | { [paramKey: string]: DictionaryValue };\n\nexport type DictionaryValue =\n | RecursiveDictionaryValue\n | TranslationContent<RecursiveDictionaryValue>\n | EnumerationContent<RecursiveDictionaryValue>\n | RecursiveDictionaryValue[];\n\nexport type Dictionary = {\n key: string;\n content: DictionaryValue;\n title?: string;\n description?: string;\n filePath?: string;\n};\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../../../src/types/dictionary.ts"],"sourcesContent":["import type {\n EnumerationContent,\n TranslationContent,\n} from '../transpiler/index';\n\nexport type RecursiveDictionaryValue =\n | number\n | string\n | undefined\n | { [paramKey: string]: DictionaryValue };\n\nexport type DictionaryValue =\n | RecursiveDictionaryValue\n | TranslationContent<RecursiveDictionaryValue>\n | EnumerationContent<RecursiveDictionaryValue>\n | RecursiveDictionaryValue[];\n\nexport type Dictionary = {\n key: string;\n content: DictionaryValue;\n title?: string;\n description?: string;\n filePath?: string;\n publishedVersion?: string | null;\n};\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -19,6 +19,7 @@ export type DeclarationContent<T = undefined> = {
19
19
  description?: string;
20
20
  version?: string;
21
21
  filePath?: string;
22
+ tags?: string[];
22
23
  content: T extends undefined ? Content : ReplaceContentValue<T>;
23
24
  };
24
25
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"declarationContent.d.ts","sourceRoot":"","sources":["../../../src/types/declarationContent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,MAAM,SAAS,CAAC,CAAC,GAAG,OAAO,IAC7B,kBAAkB,CAAC,CAAC,CAAC,GACrB,kBAAkB,CAAC,CAAC,CAAC,CAAC;AAE1B,MAAM,MAAM,YAAY,GACpB,MAAM,GACN,MAAM,EAAE,GACR,MAAM,GACN,MAAM,EAAE,GACR;IACE,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAC;CAC7B,GACD,CAAC,MAAM,YAAY,CAAC,GACpB,OAAO,CAAC,YAAY,CAAC,GACrB,SAAS,CAAC;AAEd,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,YAAY,EAAE,GAAG,SAAS,CAAC,CAAC;AAEhF,MAAM,MAAM,gBAAgB,GACxB,MAAM,GACN;IACE,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAC;CACjC,GACD,SAAS,CAAC;AAEd,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,gBAAgB,GAAG,SAAS,CAAC,CAAC;AAEvE,KAAK,OAAO,CAAC,CAAC,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W,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,EAAE,CAAC,SAAS,SAAS,GACxB,OAAO,GACP,mBAAmB,CAAC,CAAC,CAAC,CAAC;CAC5B,CAAC"}
@@ -9,5 +9,6 @@ export type Dictionary = {
9
9
  title?: string;
10
10
  description?: string;
11
11
  filePath?: string;
12
+ publishedVersion?: string | null;
12
13
  };
13
14
  //# sourceMappingURL=dictionary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dictionary.d.ts","sourceRoot":"","sources":["../../../src/types/dictionary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,MAAM,wBAAwB,GAChC,MAAM,GACN,MAAM,GACN,SAAS,GACT;IAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,eAAe,CAAA;CAAE,CAAC;AAE5C,MAAM,MAAM,eAAe,GACvB,wBAAwB,GACxB,kBAAkB,CAAC,wBAAwB,CAAC,GAC5C,kBAAkB,CAAC,wBAAwB,CAAC,GAC5C,wBAAwB,EAAE,CAAC;AAE/B,MAAM,MAAM,UAAU,GAAG;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,eAAe,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
1
+ {"version":3,"file":"dictionary.d.ts","sourceRoot":"","sources":["../../../src/types/dictionary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,MAAM,wBAAwB,GAChC,MAAM,GACN,MAAM,GACN,SAAS,GACT;IAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,eAAe,CAAA;CAAE,CAAC;AAE5C,MAAM,MAAM,eAAe,GACvB,wBAAwB,GACxB,kBAAkB,CAAC,wBAAwB,CAAC,GAC5C,kBAAkB,CAAC,wBAAwB,CAAC,GAC5C,wBAAwB,EAAE,CAAC;AAE/B,MAAM,MAAM,UAAU,GAAG;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,eAAe,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/core",
3
- "version": "3.5.5",
3
+ "version": "3.5.7",
4
4
  "private": false,
5
5
  "description": "IntLayer - Layer of abstraction between the business logic and the data access layer. Manage internationalization in a simple way, through TypeScript, JavaScript or JSON declaration file.",
6
6
  "keywords": [
@@ -61,7 +61,7 @@
61
61
  "@formatjs/intl-localematcher": "^0.5.4",
62
62
  "chokidar": "^3.6.0",
63
63
  "negotiator": "^0.6.3",
64
- "@intlayer/config": "^3.5.5"
64
+ "@intlayer/config": "3.5.7"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@types/negotiator": "^0.6.3",
@@ -74,14 +74,14 @@
74
74
  "tsc-alias": "^1.8.10",
75
75
  "tsup": "^8.3.5",
76
76
  "typescript": "^5.7.2",
77
- "@utils/eslint-config": "^1.0.4",
78
- "@utils/tsup-config": "^1.0.4",
79
- "@utils/ts-config": "^1.0.4",
80
- "@utils/ts-config-types": "^1.0.4"
77
+ "@utils/ts-config": "1.0.4",
78
+ "@utils/ts-config-types": "1.0.4",
79
+ "@utils/tsup-config": "1.0.4",
80
+ "@utils/eslint-config": "1.0.4"
81
81
  },
82
82
  "peerDependencies": {
83
- "react": ">=16.0.0 <19.0.0",
84
- "@intlayer/config": "^3.5.5"
83
+ "react": ">=16.0.0",
84
+ "@intlayer/config": "3.5.7"
85
85
  },
86
86
  "engines": {
87
87
  "node": ">=14.18"