@intlayer/core 4.1.6 → 4.1.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.
- package/dist/cjs/types/declarationContent.cjs.map +1 -1
- package/dist/cjs/types/dictionary.cjs.map +1 -1
- package/dist/types/types/declarationContent.d.ts +1 -0
- package/dist/types/types/declarationContent.d.ts.map +1 -1
- package/dist/types/types/dictionary.d.ts +1 -0
- package/dist/types/types/dictionary.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -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 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
|
+
{"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 $schema?: string;\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 publishedVersion?: string | null;\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 $schema?: string;\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":[]}
|
|
@@ -14,6 +14,7 @@ type ReplaceContentValue<T> = {
|
|
|
14
14
|
};
|
|
15
15
|
type ReplaceContentValueArray<T> = T extends (infer U)[] ? ReplaceContentValue<U>[] : ReplaceContentValue<T>;
|
|
16
16
|
export type DeclarationContent<T = undefined> = {
|
|
17
|
+
$schema?: string;
|
|
17
18
|
key: string;
|
|
18
19
|
title?: string;
|
|
19
20
|
description?: string;
|
|
@@ -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;CAC7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C,CAAC,CAAC,CAAC,SAAS,MAAM,GACjB,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GACzB,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAC7B,CAAC;AAEF,KAAK,wBAAwB,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GACpD,mBAAmB,CAAC,CAAC,CAAC,EAAE,GACxB,mBAAmB,CAAC,CAAC,CAAC,CAAC;AAE3B,MAAM,MAAM,kBAAkB,CAAC,CAAC,GAAG,SAAS,IAAI;IAC9C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,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"}
|
|
@@ -4,6 +4,7 @@ export type RecursiveDictionaryValue = number | string | undefined | {
|
|
|
4
4
|
};
|
|
5
5
|
export type DictionaryValue = RecursiveDictionaryValue | TranslationContent<RecursiveDictionaryValue> | EnumerationContent<RecursiveDictionaryValue> | RecursiveDictionaryValue[];
|
|
6
6
|
export type Dictionary = {
|
|
7
|
+
$schema?: string;
|
|
7
8
|
key: string;
|
|
8
9
|
content: DictionaryValue;
|
|
9
10
|
title?: string;
|
|
@@ -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,w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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/core",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Includes core Intlayer functions like translation, dictionary, and utility functions shared across multiple packages.",
|
|
6
6
|
"keywords": [
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@formatjs/intl-localematcher": "^0.5.10",
|
|
62
62
|
"negotiator": "^1.0.0",
|
|
63
|
-
"@intlayer/config": "4.1.
|
|
63
|
+
"@intlayer/config": "4.1.7"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@types/negotiator": "^0.6.3",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"react": ">=16.0.0",
|
|
84
|
-
"@intlayer/config": "4.1.
|
|
84
|
+
"@intlayer/config": "4.1.7"
|
|
85
85
|
},
|
|
86
86
|
"engines": {
|
|
87
87
|
"node": ">=14.18"
|