@intlayer/types 8.7.14 → 8.9.0

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.
@@ -31,6 +31,7 @@ exports.NULL = require_nodeType.NULL;
31
31
  exports.NUMBER = require_nodeType.NUMBER;
32
32
  exports.OBJECT = require_nodeType.OBJECT;
33
33
  exports.PLUGIN_NODE_TYPES = require_nodeType.PLUGIN_NODE_TYPES;
34
+ exports.PLURAL = require_nodeType.PLURAL;
34
35
  exports.PREACT_NODE = require_nodeType.PREACT_NODE;
35
36
  exports.REACT_NODE = require_nodeType.REACT_NODE;
36
37
  exports.SOLID_NODE = require_nodeType.SOLID_NODE;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3
3
  //#region src/nodeType.ts
4
4
  const TRANSLATION = "translation";
5
5
  const ENUMERATION = "enumeration";
6
+ const PLURAL = "plural";
6
7
  const CONDITION = "condition";
7
8
  const INSERTION = "insertion";
8
9
  const FILE = "file";
@@ -27,6 +28,7 @@ const UNKNOWN = "unknown";
27
28
  const PLUGIN_NODE_TYPES = [
28
29
  TRANSLATION,
29
30
  ENUMERATION,
31
+ PLURAL,
30
32
  CONDITION,
31
33
  INSERTION,
32
34
  GENDER,
@@ -59,6 +61,7 @@ exports.NULL = NULL;
59
61
  exports.NUMBER = NUMBER;
60
62
  exports.OBJECT = OBJECT;
61
63
  exports.PLUGIN_NODE_TYPES = PLUGIN_NODE_TYPES;
64
+ exports.PLURAL = PLURAL;
62
65
  exports.PREACT_NODE = PREACT_NODE;
63
66
  exports.REACT_NODE = REACT_NODE;
64
67
  exports.SOLID_NODE = SOLID_NODE;
@@ -1 +1 @@
1
- {"version":3,"file":"nodeType.cjs","names":[],"sources":["../../src/nodeType.ts"],"sourcesContent":["export const TRANSLATION = 'translation' as const;\nexport const ENUMERATION = 'enumeration' as const;\nexport const CONDITION = 'condition' as const;\nexport const INSERTION = 'insertion' as const;\nexport const FILE = 'file' as const;\nexport const OBJECT = 'object' as const;\nexport const ARRAY = 'array' as const;\nexport const NESTED = 'nested' as const;\nexport const REACT_NODE = 'reactNode' as const;\nexport const PREACT_NODE = 'preactNode' as const;\nexport const SOLID_NODE = 'solidNode' as const;\nexport const MARKDOWN = 'markdown' as const;\nexport const HTML = 'html' as const;\nexport const TEXT = 'text' as const;\nexport const NUMBER = 'number' as const;\nexport const BOOLEAN = 'boolean' as const;\nexport const GENDER = 'gender' as const;\nexport const NULL = 'null' as const;\nexport const UNKNOWN = 'unknown' as const;\n\n/**\n * NodeType strings that correspond to plugins that can be conditionally\n * removed from the bundle when unused.\n */\nexport const PLUGIN_NODE_TYPES: readonly [\n typeof TRANSLATION,\n typeof ENUMERATION,\n typeof CONDITION,\n typeof INSERTION,\n typeof GENDER,\n typeof NESTED,\n typeof FILE,\n typeof MARKDOWN,\n typeof HTML,\n typeof REACT_NODE,\n typeof PREACT_NODE,\n typeof SOLID_NODE,\n] = [\n TRANSLATION,\n ENUMERATION,\n CONDITION,\n INSERTION,\n GENDER,\n NESTED,\n FILE,\n MARKDOWN,\n HTML,\n REACT_NODE,\n PREACT_NODE,\n SOLID_NODE,\n] as const;\n\nexport type NodeType =\n | typeof TRANSLATION\n | typeof ENUMERATION\n | typeof CONDITION\n | typeof INSERTION\n | typeof FILE\n | typeof OBJECT\n | typeof ARRAY\n | typeof NESTED\n | typeof REACT_NODE\n | typeof PREACT_NODE\n | typeof SOLID_NODE\n | typeof MARKDOWN\n | typeof HTML\n | typeof TEXT\n | typeof NUMBER\n | typeof BOOLEAN\n | typeof GENDER\n | typeof NULL\n | typeof UNKNOWN;\n\ntype AdditionalAttributesType = {\n [key: string]: unknown;\n};\n\nexport type TypedNodeModel<\n T extends NodeType,\n Content,\n AdditionalAttributes extends AdditionalAttributesType = {},\n> = {\n nodeType: T;\n} & {\n [K in T]: Content;\n} & AdditionalAttributes;\n\nexport const formatNodeType = <\n T extends NodeType,\n Content = unknown,\n AdditionalAttributes extends AdditionalAttributesType = {},\n>(\n nodeType: T,\n content: Content,\n additionalAttributes?: { [key: string]: unknown }\n) =>\n ({\n ...additionalAttributes,\n nodeType,\n [nodeType]: content,\n }) as TypedNodeModel<T, Content, AdditionalAttributes>;\n"],"mappings":";;;AAAA,MAAa,cAAc;AAC3B,MAAa,cAAc;AAC3B,MAAa,YAAY;AACzB,MAAa,YAAY;AACzB,MAAa,OAAO;AACpB,MAAa,SAAS;AACtB,MAAa,QAAQ;AACrB,MAAa,SAAS;AACtB,MAAa,aAAa;AAC1B,MAAa,cAAc;AAC3B,MAAa,aAAa;AAC1B,MAAa,WAAW;AACxB,MAAa,OAAO;AACpB,MAAa,OAAO;AACpB,MAAa,SAAS;AACtB,MAAa,UAAU;AACvB,MAAa,SAAS;AACtB,MAAa,OAAO;AACpB,MAAa,UAAU;;;;;AAMvB,MAAa,oBAaT;CACF;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAqCD,MAAa,kBAKX,UACA,SACA,0BAEC;CACC,GAAG;CACH;EACC,WAAW;CACb"}
1
+ {"version":3,"file":"nodeType.cjs","names":[],"sources":["../../src/nodeType.ts"],"sourcesContent":["export const TRANSLATION = 'translation' as const;\nexport const ENUMERATION = 'enumeration' as const;\nexport const PLURAL = 'plural' as const;\nexport const CONDITION = 'condition' as const;\nexport const INSERTION = 'insertion' as const;\nexport const FILE = 'file' as const;\nexport const OBJECT = 'object' as const;\nexport const ARRAY = 'array' as const;\nexport const NESTED = 'nested' as const;\nexport const REACT_NODE = 'reactNode' as const;\nexport const PREACT_NODE = 'preactNode' as const;\nexport const SOLID_NODE = 'solidNode' as const;\nexport const MARKDOWN = 'markdown' as const;\nexport const HTML = 'html' as const;\nexport const TEXT = 'text' as const;\nexport const NUMBER = 'number' as const;\nexport const BOOLEAN = 'boolean' as const;\nexport const GENDER = 'gender' as const;\nexport const NULL = 'null' as const;\nexport const UNKNOWN = 'unknown' as const;\n\n/**\n * NodeType strings that correspond to plugins that can be conditionally\n * removed from the bundle when unused.\n */\nexport const PLUGIN_NODE_TYPES: readonly [\n typeof TRANSLATION,\n typeof ENUMERATION,\n typeof PLURAL,\n typeof CONDITION,\n typeof INSERTION,\n typeof GENDER,\n typeof NESTED,\n typeof FILE,\n typeof MARKDOWN,\n typeof HTML,\n typeof REACT_NODE,\n typeof PREACT_NODE,\n typeof SOLID_NODE,\n] = [\n TRANSLATION,\n ENUMERATION,\n PLURAL,\n CONDITION,\n INSERTION,\n GENDER,\n NESTED,\n FILE,\n MARKDOWN,\n HTML,\n REACT_NODE,\n PREACT_NODE,\n SOLID_NODE,\n] as const;\n\nexport type NodeType =\n | typeof TRANSLATION\n | typeof ENUMERATION\n | typeof PLURAL\n | typeof CONDITION\n | typeof INSERTION\n | typeof FILE\n | typeof OBJECT\n | typeof ARRAY\n | typeof NESTED\n | typeof REACT_NODE\n | typeof PREACT_NODE\n | typeof SOLID_NODE\n | typeof MARKDOWN\n | typeof HTML\n | typeof TEXT\n | typeof NUMBER\n | typeof BOOLEAN\n | typeof GENDER\n | typeof NULL\n | typeof UNKNOWN;\n\ntype AdditionalAttributesType = {\n [key: string]: unknown;\n};\n\nexport type TypedNodeModel<\n T extends NodeType,\n Content,\n AdditionalAttributes extends AdditionalAttributesType = {},\n> = {\n nodeType: T;\n} & {\n [K in T]: Content;\n} & AdditionalAttributes;\n\nexport const formatNodeType = <\n T extends NodeType,\n Content = unknown,\n AdditionalAttributes extends AdditionalAttributesType = {},\n>(\n nodeType: T,\n content: Content,\n additionalAttributes?: { [key: string]: unknown }\n) =>\n ({\n ...additionalAttributes,\n nodeType,\n [nodeType]: content,\n }) as TypedNodeModel<T, Content, AdditionalAttributes>;\n"],"mappings":";;;AAAA,MAAa,cAAc;AAC3B,MAAa,cAAc;AAC3B,MAAa,SAAS;AACtB,MAAa,YAAY;AACzB,MAAa,YAAY;AACzB,MAAa,OAAO;AACpB,MAAa,SAAS;AACtB,MAAa,QAAQ;AACrB,MAAa,SAAS;AACtB,MAAa,aAAa;AAC1B,MAAa,cAAc;AAC3B,MAAa,aAAa;AAC1B,MAAa,WAAW;AACxB,MAAa,OAAO;AACpB,MAAa,OAAO;AACpB,MAAa,SAAS;AACtB,MAAa,UAAU;AACvB,MAAa,SAAS;AACtB,MAAa,OAAO;AACpB,MAAa,UAAU;;;;;AAMvB,MAAa,oBAcT;CACF;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAsCD,MAAa,kBAKX,UACA,SACA,0BAEC;CACC,GAAG;CACH;EACC,WAAW;CACb"}
@@ -1,4 +1,4 @@
1
- import { ARRAY, BOOLEAN, CONDITION, ENUMERATION, FILE, GENDER, HTML, INSERTION, MARKDOWN, NESTED, NULL, NUMBER, OBJECT, PLUGIN_NODE_TYPES, PREACT_NODE, REACT_NODE, SOLID_NODE, TEXT, TRANSLATION, UNKNOWN, formatNodeType } from "./nodeType.mjs";
1
+ import { ARRAY, BOOLEAN, CONDITION, ENUMERATION, FILE, GENDER, HTML, INSERTION, MARKDOWN, NESTED, NULL, NUMBER, OBJECT, PLUGIN_NODE_TYPES, PLURAL, PREACT_NODE, REACT_NODE, SOLID_NODE, TEXT, TRANSLATION, UNKNOWN, formatNodeType } from "./nodeType.mjs";
2
2
  import "./dictionary.mjs";
3
3
  import * as locales_exports from "./locales.mjs";
4
4
  import "./plugin.mjs";
@@ -8,4 +8,4 @@ import "./module_augmentation.mjs";
8
8
  import { ALL_LOCALES } from "./allLocales.mjs";
9
9
  import { AiProviders } from "./config.mjs";
10
10
 
11
- export { ALL_LOCALES, ARRAY, AiProviders, BOOLEAN, CONDITION, ENUMERATION, FILE, GENDER, HTML, INSERTION, locales_exports as Locales, MARKDOWN, NESTED, NULL, NUMBER, OBJECT, PLUGIN_NODE_TYPES, PREACT_NODE, REACT_NODE, SOLID_NODE, TEXT, TRANSLATION, UNKNOWN, formatNodeType };
11
+ export { ALL_LOCALES, ARRAY, AiProviders, BOOLEAN, CONDITION, ENUMERATION, FILE, GENDER, HTML, INSERTION, locales_exports as Locales, MARKDOWN, NESTED, NULL, NUMBER, OBJECT, PLUGIN_NODE_TYPES, PLURAL, PREACT_NODE, REACT_NODE, SOLID_NODE, TEXT, TRANSLATION, UNKNOWN, formatNodeType };
@@ -1,6 +1,7 @@
1
1
  //#region src/nodeType.ts
2
2
  const TRANSLATION = "translation";
3
3
  const ENUMERATION = "enumeration";
4
+ const PLURAL = "plural";
4
5
  const CONDITION = "condition";
5
6
  const INSERTION = "insertion";
6
7
  const FILE = "file";
@@ -25,6 +26,7 @@ const UNKNOWN = "unknown";
25
26
  const PLUGIN_NODE_TYPES = [
26
27
  TRANSLATION,
27
28
  ENUMERATION,
29
+ PLURAL,
28
30
  CONDITION,
29
31
  INSERTION,
30
32
  GENDER,
@@ -43,5 +45,5 @@ const formatNodeType = (nodeType, content, additionalAttributes) => ({
43
45
  });
44
46
 
45
47
  //#endregion
46
- export { ARRAY, BOOLEAN, CONDITION, ENUMERATION, FILE, GENDER, HTML, INSERTION, MARKDOWN, NESTED, NULL, NUMBER, OBJECT, PLUGIN_NODE_TYPES, PREACT_NODE, REACT_NODE, SOLID_NODE, TEXT, TRANSLATION, UNKNOWN, formatNodeType };
48
+ export { ARRAY, BOOLEAN, CONDITION, ENUMERATION, FILE, GENDER, HTML, INSERTION, MARKDOWN, NESTED, NULL, NUMBER, OBJECT, PLUGIN_NODE_TYPES, PLURAL, PREACT_NODE, REACT_NODE, SOLID_NODE, TEXT, TRANSLATION, UNKNOWN, formatNodeType };
47
49
  //# sourceMappingURL=nodeType.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"nodeType.mjs","names":[],"sources":["../../src/nodeType.ts"],"sourcesContent":["export const TRANSLATION = 'translation' as const;\nexport const ENUMERATION = 'enumeration' as const;\nexport const CONDITION = 'condition' as const;\nexport const INSERTION = 'insertion' as const;\nexport const FILE = 'file' as const;\nexport const OBJECT = 'object' as const;\nexport const ARRAY = 'array' as const;\nexport const NESTED = 'nested' as const;\nexport const REACT_NODE = 'reactNode' as const;\nexport const PREACT_NODE = 'preactNode' as const;\nexport const SOLID_NODE = 'solidNode' as const;\nexport const MARKDOWN = 'markdown' as const;\nexport const HTML = 'html' as const;\nexport const TEXT = 'text' as const;\nexport const NUMBER = 'number' as const;\nexport const BOOLEAN = 'boolean' as const;\nexport const GENDER = 'gender' as const;\nexport const NULL = 'null' as const;\nexport const UNKNOWN = 'unknown' as const;\n\n/**\n * NodeType strings that correspond to plugins that can be conditionally\n * removed from the bundle when unused.\n */\nexport const PLUGIN_NODE_TYPES: readonly [\n typeof TRANSLATION,\n typeof ENUMERATION,\n typeof CONDITION,\n typeof INSERTION,\n typeof GENDER,\n typeof NESTED,\n typeof FILE,\n typeof MARKDOWN,\n typeof HTML,\n typeof REACT_NODE,\n typeof PREACT_NODE,\n typeof SOLID_NODE,\n] = [\n TRANSLATION,\n ENUMERATION,\n CONDITION,\n INSERTION,\n GENDER,\n NESTED,\n FILE,\n MARKDOWN,\n HTML,\n REACT_NODE,\n PREACT_NODE,\n SOLID_NODE,\n] as const;\n\nexport type NodeType =\n | typeof TRANSLATION\n | typeof ENUMERATION\n | typeof CONDITION\n | typeof INSERTION\n | typeof FILE\n | typeof OBJECT\n | typeof ARRAY\n | typeof NESTED\n | typeof REACT_NODE\n | typeof PREACT_NODE\n | typeof SOLID_NODE\n | typeof MARKDOWN\n | typeof HTML\n | typeof TEXT\n | typeof NUMBER\n | typeof BOOLEAN\n | typeof GENDER\n | typeof NULL\n | typeof UNKNOWN;\n\ntype AdditionalAttributesType = {\n [key: string]: unknown;\n};\n\nexport type TypedNodeModel<\n T extends NodeType,\n Content,\n AdditionalAttributes extends AdditionalAttributesType = {},\n> = {\n nodeType: T;\n} & {\n [K in T]: Content;\n} & AdditionalAttributes;\n\nexport const formatNodeType = <\n T extends NodeType,\n Content = unknown,\n AdditionalAttributes extends AdditionalAttributesType = {},\n>(\n nodeType: T,\n content: Content,\n additionalAttributes?: { [key: string]: unknown }\n) =>\n ({\n ...additionalAttributes,\n nodeType,\n [nodeType]: content,\n }) as TypedNodeModel<T, Content, AdditionalAttributes>;\n"],"mappings":";AAAA,MAAa,cAAc;AAC3B,MAAa,cAAc;AAC3B,MAAa,YAAY;AACzB,MAAa,YAAY;AACzB,MAAa,OAAO;AACpB,MAAa,SAAS;AACtB,MAAa,QAAQ;AACrB,MAAa,SAAS;AACtB,MAAa,aAAa;AAC1B,MAAa,cAAc;AAC3B,MAAa,aAAa;AAC1B,MAAa,WAAW;AACxB,MAAa,OAAO;AACpB,MAAa,OAAO;AACpB,MAAa,SAAS;AACtB,MAAa,UAAU;AACvB,MAAa,SAAS;AACtB,MAAa,OAAO;AACpB,MAAa,UAAU;;;;;AAMvB,MAAa,oBAaT;CACF;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAqCD,MAAa,kBAKX,UACA,SACA,0BAEC;CACC,GAAG;CACH;EACC,WAAW;CACb"}
1
+ {"version":3,"file":"nodeType.mjs","names":[],"sources":["../../src/nodeType.ts"],"sourcesContent":["export const TRANSLATION = 'translation' as const;\nexport const ENUMERATION = 'enumeration' as const;\nexport const PLURAL = 'plural' as const;\nexport const CONDITION = 'condition' as const;\nexport const INSERTION = 'insertion' as const;\nexport const FILE = 'file' as const;\nexport const OBJECT = 'object' as const;\nexport const ARRAY = 'array' as const;\nexport const NESTED = 'nested' as const;\nexport const REACT_NODE = 'reactNode' as const;\nexport const PREACT_NODE = 'preactNode' as const;\nexport const SOLID_NODE = 'solidNode' as const;\nexport const MARKDOWN = 'markdown' as const;\nexport const HTML = 'html' as const;\nexport const TEXT = 'text' as const;\nexport const NUMBER = 'number' as const;\nexport const BOOLEAN = 'boolean' as const;\nexport const GENDER = 'gender' as const;\nexport const NULL = 'null' as const;\nexport const UNKNOWN = 'unknown' as const;\n\n/**\n * NodeType strings that correspond to plugins that can be conditionally\n * removed from the bundle when unused.\n */\nexport const PLUGIN_NODE_TYPES: readonly [\n typeof TRANSLATION,\n typeof ENUMERATION,\n typeof PLURAL,\n typeof CONDITION,\n typeof INSERTION,\n typeof GENDER,\n typeof NESTED,\n typeof FILE,\n typeof MARKDOWN,\n typeof HTML,\n typeof REACT_NODE,\n typeof PREACT_NODE,\n typeof SOLID_NODE,\n] = [\n TRANSLATION,\n ENUMERATION,\n PLURAL,\n CONDITION,\n INSERTION,\n GENDER,\n NESTED,\n FILE,\n MARKDOWN,\n HTML,\n REACT_NODE,\n PREACT_NODE,\n SOLID_NODE,\n] as const;\n\nexport type NodeType =\n | typeof TRANSLATION\n | typeof ENUMERATION\n | typeof PLURAL\n | typeof CONDITION\n | typeof INSERTION\n | typeof FILE\n | typeof OBJECT\n | typeof ARRAY\n | typeof NESTED\n | typeof REACT_NODE\n | typeof PREACT_NODE\n | typeof SOLID_NODE\n | typeof MARKDOWN\n | typeof HTML\n | typeof TEXT\n | typeof NUMBER\n | typeof BOOLEAN\n | typeof GENDER\n | typeof NULL\n | typeof UNKNOWN;\n\ntype AdditionalAttributesType = {\n [key: string]: unknown;\n};\n\nexport type TypedNodeModel<\n T extends NodeType,\n Content,\n AdditionalAttributes extends AdditionalAttributesType = {},\n> = {\n nodeType: T;\n} & {\n [K in T]: Content;\n} & AdditionalAttributes;\n\nexport const formatNodeType = <\n T extends NodeType,\n Content = unknown,\n AdditionalAttributes extends AdditionalAttributesType = {},\n>(\n nodeType: T,\n content: Content,\n additionalAttributes?: { [key: string]: unknown }\n) =>\n ({\n ...additionalAttributes,\n nodeType,\n [nodeType]: content,\n }) as TypedNodeModel<T, Content, AdditionalAttributes>;\n"],"mappings":";AAAA,MAAa,cAAc;AAC3B,MAAa,cAAc;AAC3B,MAAa,SAAS;AACtB,MAAa,YAAY;AACzB,MAAa,YAAY;AACzB,MAAa,OAAO;AACpB,MAAa,SAAS;AACtB,MAAa,QAAQ;AACrB,MAAa,SAAS;AACtB,MAAa,aAAa;AAC1B,MAAa,cAAc;AAC3B,MAAa,aAAa;AAC1B,MAAa,WAAW;AACxB,MAAa,OAAO;AACpB,MAAa,OAAO;AACpB,MAAa,SAAS;AACtB,MAAa,UAAU;AACvB,MAAa,SAAS;AACtB,MAAa,OAAO;AACpB,MAAa,UAAU;;;;;AAMvB,MAAa,oBAcT;CACF;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAsCD,MAAa,kBAKX,UACA,SACA,0BAEC;CACC,GAAG;CACH;EACC,WAAW;CACb"}
@@ -2,9 +2,9 @@ import { locales_d_exports } from "./locales.js";
2
2
  import { ALL_LOCALES, Locale } from "./allLocales.js";
3
3
  import { DeclaredLocales, DictionaryKeys, DictionaryRegistry, DictionaryRegistryContent, DictionaryRegistryElement, LocalesValues, RequiredLocales, ResolvedEditor, Schema, SchemaKeys, StrictModeLocaleMap } from "./module_augmentation.js";
4
4
  import { FilePathPattern, FilePathPatternContext, FilePathPatternFunction } from "./filePathPattern.js";
5
- import { ARRAY, BOOLEAN, CONDITION, ENUMERATION, FILE, GENDER, HTML, INSERTION, MARKDOWN, NESTED, NULL, NUMBER, NodeType, OBJECT, PLUGIN_NODE_TYPES, PREACT_NODE, REACT_NODE, SOLID_NODE, TEXT, TRANSLATION, TypedNodeModel, UNKNOWN, formatNodeType } from "./nodeType.js";
5
+ import { ARRAY, BOOLEAN, CONDITION, ENUMERATION, FILE, GENDER, HTML, INSERTION, MARKDOWN, NESTED, NULL, NUMBER, NodeType, OBJECT, PLUGIN_NODE_TYPES, PLURAL, PREACT_NODE, REACT_NODE, SOLID_NODE, TEXT, TRANSLATION, TypedNodeModel, UNKNOWN, formatNodeType } from "./nodeType.js";
6
6
  import { ContentAutoTransformation, ContentNode, Dictionary, DictionaryFormat, DictionaryId, DictionaryKey, DictionaryLocation, Fill, GetSubPath, ImportMode, LocalDictionaryId, TypedNode } from "./dictionary.js";
7
7
  import { MergedDictionaryOutput, MergedDictionaryResult, Plugin, UnmergedDictionaryOutput, UnmergedDictionaryResult } from "./plugin.js";
8
8
  import { AiConfig, AiProviderConfigMap, AiProviders, BuildConfig, CommonAiConfig, CompilerConfig, ConfigSchema, ContentConfig, CookiesAttributes, CustomIntlayerConfig, CustomRoutingConfig, DictionaryConfig, EditorConfig, InternationalizationConfig, IntlayerConfig, LogConfig, LogFunctions, ProcessedStorageAttributes, RewriteObject, RewriteRule, RewriteRules, RoutingConfig, RoutingStorageInput, StorageAttributes, StrictMode, SystemConfig, URLType } from "./config.js";
9
- import { ArrayNode, ConditionNode, EnumerationNode, FileNode, GenderNode, HTMLNode, InsertionNode, KeyPath, MarkdownNode, NestedNode, ObjectNode, ReactNode, TranslationNode } from "./keyPath.js";
10
- export { ALL_LOCALES, ARRAY, AiConfig, AiProviderConfigMap, AiProviders, ArrayNode, BOOLEAN, BuildConfig, CONDITION, CommonAiConfig, CompilerConfig, ConditionNode, ConfigSchema, ContentAutoTransformation, ContentConfig, ContentNode, CookiesAttributes, CustomIntlayerConfig, CustomRoutingConfig, DeclaredLocales, Dictionary, DictionaryConfig, DictionaryFormat, DictionaryId, DictionaryKey, DictionaryKeys, DictionaryLocation, DictionaryRegistry, DictionaryRegistryContent, DictionaryRegistryElement, ENUMERATION, EditorConfig, EnumerationNode, FILE, FileNode, FilePathPattern, FilePathPatternContext, FilePathPatternFunction, Fill, GENDER, GenderNode, GetSubPath, HTML, HTMLNode, INSERTION, ImportMode, InsertionNode, InternationalizationConfig, IntlayerConfig, KeyPath, LocalDictionaryId, Locale, locales_d_exports as Locales, LocalesValues, LogConfig, LogFunctions, MARKDOWN, MarkdownNode, MergedDictionaryOutput, MergedDictionaryResult, NESTED, NULL, NUMBER, NestedNode, NodeType, OBJECT, ObjectNode, PLUGIN_NODE_TYPES, PREACT_NODE, Plugin, ProcessedStorageAttributes, REACT_NODE, ReactNode, RequiredLocales, ResolvedEditor, RewriteObject, RewriteRule, RewriteRules, RoutingConfig, RoutingStorageInput, SOLID_NODE, Schema, SchemaKeys, StorageAttributes, StrictMode, StrictModeLocaleMap, SystemConfig, TEXT, TRANSLATION, TranslationNode, TypedNode, TypedNodeModel, UNKNOWN, URLType, UnmergedDictionaryOutput, UnmergedDictionaryResult, formatNodeType };
9
+ import { ArrayNode, ConditionNode, EnumerationNode, FileNode, GenderNode, HTMLNode, InsertionNode, KeyPath, MarkdownNode, NestedNode, ObjectNode, PluralNode, ReactNode, TranslationNode } from "./keyPath.js";
10
+ export { ALL_LOCALES, ARRAY, AiConfig, AiProviderConfigMap, AiProviders, ArrayNode, BOOLEAN, BuildConfig, CONDITION, CommonAiConfig, CompilerConfig, ConditionNode, ConfigSchema, ContentAutoTransformation, ContentConfig, ContentNode, CookiesAttributes, CustomIntlayerConfig, CustomRoutingConfig, DeclaredLocales, Dictionary, DictionaryConfig, DictionaryFormat, DictionaryId, DictionaryKey, DictionaryKeys, DictionaryLocation, DictionaryRegistry, DictionaryRegistryContent, DictionaryRegistryElement, ENUMERATION, EditorConfig, EnumerationNode, FILE, FileNode, FilePathPattern, FilePathPatternContext, FilePathPatternFunction, Fill, GENDER, GenderNode, GetSubPath, HTML, HTMLNode, INSERTION, ImportMode, InsertionNode, InternationalizationConfig, IntlayerConfig, KeyPath, LocalDictionaryId, Locale, locales_d_exports as Locales, LocalesValues, LogConfig, LogFunctions, MARKDOWN, MarkdownNode, MergedDictionaryOutput, MergedDictionaryResult, NESTED, NULL, NUMBER, NestedNode, NodeType, OBJECT, ObjectNode, PLUGIN_NODE_TYPES, PLURAL, PREACT_NODE, Plugin, PluralNode, ProcessedStorageAttributes, REACT_NODE, ReactNode, RequiredLocales, ResolvedEditor, RewriteObject, RewriteRule, RewriteRules, RoutingConfig, RoutingStorageInput, SOLID_NODE, Schema, SchemaKeys, StorageAttributes, StrictMode, StrictModeLocaleMap, SystemConfig, TEXT, TRANSLATION, TranslationNode, TypedNode, TypedNodeModel, UNKNOWN, URLType, UnmergedDictionaryOutput, UnmergedDictionaryResult, formatNodeType };
@@ -1,4 +1,4 @@
1
- import { ARRAY, CONDITION, ENUMERATION, FILE, GENDER, HTML, INSERTION, MARKDOWN, NESTED, OBJECT, REACT_NODE, TRANSLATION } from "./nodeType.js";
1
+ import { ARRAY, CONDITION, ENUMERATION, FILE, GENDER, HTML, INSERTION, MARKDOWN, NESTED, OBJECT, PLURAL, REACT_NODE, TRANSLATION } from "./nodeType.js";
2
2
 
3
3
  //#region src/keyPath.d.ts
4
4
  type ObjectNode = {
@@ -13,6 +13,10 @@ type EnumerationNode = {
13
13
  type: typeof ENUMERATION;
14
14
  key: string;
15
15
  };
16
+ type PluralNode = {
17
+ type: typeof PLURAL;
18
+ key: string;
19
+ };
16
20
  type TranslationNode = {
17
21
  type: typeof TRANSLATION;
18
22
  key: string;
@@ -49,7 +53,7 @@ type HTMLNode = {
49
53
  type: typeof HTML;
50
54
  key?: undefined;
51
55
  };
52
- type KeyPath = ObjectNode | ArrayNode | TranslationNode | EnumerationNode | InsertionNode | GenderNode | MarkdownNode | ReactNode | ConditionNode | NestedNode | FileNode | HTMLNode;
56
+ type KeyPath = ObjectNode | ArrayNode | TranslationNode | EnumerationNode | PluralNode | InsertionNode | GenderNode | MarkdownNode | ReactNode | ConditionNode | NestedNode | FileNode | HTMLNode;
53
57
  //#endregion
54
- export { ArrayNode, ConditionNode, EnumerationNode, FileNode, GenderNode, HTMLNode, InsertionNode, KeyPath, MarkdownNode, NestedNode, ObjectNode, ReactNode, TranslationNode };
58
+ export { ArrayNode, ConditionNode, EnumerationNode, FileNode, GenderNode, HTMLNode, InsertionNode, KeyPath, MarkdownNode, NestedNode, ObjectNode, PluralNode, ReactNode, TranslationNode };
55
59
  //# sourceMappingURL=keyPath.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"keyPath.d.ts","names":[],"sources":["../../src/keyPath.ts"],"mappings":";;;KAEY,UAAA;EACV,IAAA,SAAa,MAAA;EACb,GAAA;AAAA;AAAA,KAGU,SAAA;EACV,IAAA,SAAa,KAAA;EACb,GAAA;AAAA;AAAA,KAGU,eAAA;EACV,IAAA,SAAa,WAAA;EACb,GAAA;AAAA;AAAA,KAGU,eAAA;EACV,IAAA,SAAa,WAAA;EACb,GAAA;AAAA;AAAA,KAGU,aAAA;EACV,IAAA,SAAa,SAAA;EACb,GAAA;AAAA;AAAA,KAGU,UAAA;EACV,IAAA,SAAa,MAAA;EACb,GAAA;AAAA;AAAA,KAGU,aAAA;EACV,IAAA,SAAa,SAAA;EACb,GAAA;AAAA;AAAA,KAGU,YAAA;EACV,IAAA,SAAa,QAAA;EACb,GAAA;AAAA;AAAA,KAGU,SAAA;EACV,IAAA,SAAa,UAAA;EACb,GAAA;AAAA;AAAA,KAGU,UAAA;EACV,IAAA,SAAa,MAAA;EACb,GAAA;AAAA;AAAA,KAGU,QAAA;EACV,IAAA,SAAa,IAAA;EACb,GAAA;AAAA;AAAA,KAGU,QAAA;EACV,IAAA,SAAa,IAAA;EACb,GAAA;AAAA;AAAA,KAGU,OAAA,GACR,UAAA,GACA,SAAA,GACA,eAAA,GACA,eAAA,GACA,aAAA,GACA,UAAA,GACA,YAAA,GACA,SAAA,GACA,aAAA,GACA,UAAA,GACA,QAAA,GACA,QAAA"}
1
+ {"version":3,"file":"keyPath.d.ts","names":[],"sources":["../../src/keyPath.ts"],"mappings":";;;KAEY,UAAA;EACV,IAAA,SAAa,MAAA;EACb,GAAA;AAAA;AAAA,KAGU,SAAA;EACV,IAAA,SAAa,KAAA;EACb,GAAA;AAAA;AAAA,KAGU,eAAA;EACV,IAAA,SAAa,WAAA;EACb,GAAA;AAAA;AAAA,KAGU,UAAA;EACV,IAAA,SAAa,MAAA;EACb,GAAA;AAAA;AAAA,KAGU,eAAA;EACV,IAAA,SAAa,WAAA;EACb,GAAA;AAAA;AAAA,KAGU,aAAA;EACV,IAAA,SAAa,SAAA;EACb,GAAA;AAAA;AAAA,KAGU,UAAA;EACV,IAAA,SAAa,MAAA;EACb,GAAA;AAAA;AAAA,KAGU,aAAA;EACV,IAAA,SAAa,SAAA;EACb,GAAA;AAAA;AAAA,KAGU,YAAA;EACV,IAAA,SAAa,QAAA;EACb,GAAA;AAAA;AAAA,KAGU,SAAA;EACV,IAAA,SAAa,UAAA;EACb,GAAA;AAAA;AAAA,KAGU,UAAA;EACV,IAAA,SAAa,MAAA;EACb,GAAA;AAAA;AAAA,KAGU,QAAA;EACV,IAAA,SAAa,IAAA;EACb,GAAA;AAAA;AAAA,KAGU,QAAA;EACV,IAAA,SAAa,IAAA;EACb,GAAA;AAAA;AAAA,KAGU,OAAA,GACR,UAAA,GACA,SAAA,GACA,eAAA,GACA,eAAA,GACA,UAAA,GACA,aAAA,GACA,UAAA,GACA,YAAA,GACA,SAAA,GACA,aAAA,GACA,UAAA,GACA,QAAA,GACA,QAAA"}
@@ -1,6 +1,7 @@
1
1
  //#region src/nodeType.d.ts
2
2
  declare const TRANSLATION: "translation";
3
3
  declare const ENUMERATION: "enumeration";
4
+ declare const PLURAL: "plural";
4
5
  declare const CONDITION: "condition";
5
6
  declare const INSERTION: "insertion";
6
7
  declare const FILE: "file";
@@ -22,8 +23,8 @@ declare const UNKNOWN: "unknown";
22
23
  * NodeType strings that correspond to plugins that can be conditionally
23
24
  * removed from the bundle when unused.
24
25
  */
25
- declare const PLUGIN_NODE_TYPES: readonly [typeof TRANSLATION, typeof ENUMERATION, typeof CONDITION, typeof INSERTION, typeof GENDER, typeof NESTED, typeof FILE, typeof MARKDOWN, typeof HTML, typeof REACT_NODE, typeof PREACT_NODE, typeof SOLID_NODE];
26
- type NodeType = typeof TRANSLATION | typeof ENUMERATION | typeof CONDITION | typeof INSERTION | typeof FILE | typeof OBJECT | typeof ARRAY | typeof NESTED | typeof REACT_NODE | typeof PREACT_NODE | typeof SOLID_NODE | typeof MARKDOWN | typeof HTML | typeof TEXT | typeof NUMBER | typeof BOOLEAN | typeof GENDER | typeof NULL | typeof UNKNOWN;
26
+ declare const PLUGIN_NODE_TYPES: readonly [typeof TRANSLATION, typeof ENUMERATION, typeof PLURAL, typeof CONDITION, typeof INSERTION, typeof GENDER, typeof NESTED, typeof FILE, typeof MARKDOWN, typeof HTML, typeof REACT_NODE, typeof PREACT_NODE, typeof SOLID_NODE];
27
+ type NodeType = typeof TRANSLATION | typeof ENUMERATION | typeof PLURAL | typeof CONDITION | typeof INSERTION | typeof FILE | typeof OBJECT | typeof ARRAY | typeof NESTED | typeof REACT_NODE | typeof PREACT_NODE | typeof SOLID_NODE | typeof MARKDOWN | typeof HTML | typeof TEXT | typeof NUMBER | typeof BOOLEAN | typeof GENDER | typeof NULL | typeof UNKNOWN;
27
28
  type AdditionalAttributesType = {
28
29
  [key: string]: unknown;
29
30
  };
@@ -34,5 +35,5 @@ declare const formatNodeType: <T extends NodeType, Content = unknown, Additional
34
35
  [key: string]: unknown;
35
36
  }) => TypedNodeModel<T, Content, AdditionalAttributes>;
36
37
  //#endregion
37
- export { ARRAY, BOOLEAN, CONDITION, ENUMERATION, FILE, GENDER, HTML, INSERTION, MARKDOWN, NESTED, NULL, NUMBER, NodeType, OBJECT, PLUGIN_NODE_TYPES, PREACT_NODE, REACT_NODE, SOLID_NODE, TEXT, TRANSLATION, TypedNodeModel, UNKNOWN, formatNodeType };
38
+ export { ARRAY, BOOLEAN, CONDITION, ENUMERATION, FILE, GENDER, HTML, INSERTION, MARKDOWN, NESTED, NULL, NUMBER, NodeType, OBJECT, PLUGIN_NODE_TYPES, PLURAL, PREACT_NODE, REACT_NODE, SOLID_NODE, TEXT, TRANSLATION, TypedNodeModel, UNKNOWN, formatNodeType };
38
39
  //# sourceMappingURL=nodeType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nodeType.d.ts","names":[],"sources":["../../src/nodeType.ts"],"mappings":";cAAa,WAAA;AAAA,cACA,WAAA;AAAA,cACA,SAAA;AAAA,cACA,SAAA;AAAA,cACA,IAAA;AAAA,cACA,MAAA;AAAA,cACA,KAAA;AAAA,cACA,MAAA;AAAA,cACA,UAAA;AAAA,cACA,WAAA;AAAA,cACA,UAAA;AAAA,cACA,QAAA;AAAA,cACA,IAAA;AAAA,cACA,IAAA;AAAA,cACA,MAAA;AAAA,cACA,OAAA;AAAA,cACA,MAAA;AAAA,cACA,IAAA;AAAA,cACA,OAAA;;;AAdb;;cAoBa,iBAAA,mBACJ,WAAA,SACA,WAAA,SACA,SAAA,SACA,SAAA,SACA,MAAA,SACA,MAAA,SACA,IAAA,SACA,QAAA,SACA,IAAA,SACA,UAAA,SACA,WAAA,SACA,UAAA;AAAA,KAgBG,QAAA,UACD,WAAA,UACA,WAAA,UACA,SAAA,UACA,SAAA,UACA,IAAA,UACA,MAAA,UACA,KAAA,UACA,MAAA,UACA,UAAA,UACA,WAAA,UACA,UAAA,UACA,QAAA,UACA,IAAA,UACA,IAAA,UACA,MAAA,UACA,OAAA,UACA,MAAA,UACA,IAAA,UACA,OAAA;AAAA,KAEN,wBAAA;EAAA,CAAA,GAAA;AAAA;AAAA,KAIO,cAAA,WACA,QAAA,wCAEmB,wBAAA;EAE7B,QAAA,EAAU,CAAA;AAAA,YAEJ,CAAA,GAAI,OAAA,KACR,oBAAA;AAAA,cAES,cAAA,aACD,QAAA,kDAEmB,wBAAA,OAE7B,QAAA,EAAU,CAAA,EACV,OAAA,EAAS,OAAA,EACT,oBAAA;EAAA;MAMM,cAAA,CAAe,CAAA,EAAG,OAAA,EAAS,oBAAA"}
1
+ {"version":3,"file":"nodeType.d.ts","names":[],"sources":["../../src/nodeType.ts"],"mappings":";cAAa,WAAA;AAAA,cACA,WAAA;AAAA,cACA,MAAA;AAAA,cACA,SAAA;AAAA,cACA,SAAA;AAAA,cACA,IAAA;AAAA,cACA,MAAA;AAAA,cACA,KAAA;AAAA,cACA,MAAA;AAAA,cACA,UAAA;AAAA,cACA,WAAA;AAAA,cACA,UAAA;AAAA,cACA,QAAA;AAAA,cACA,IAAA;AAAA,cACA,IAAA;AAAA,cACA,MAAA;AAAA,cACA,OAAA;AAAA,cACA,MAAA;AAAA,cACA,IAAA;AAAA,cACA,OAAA;;AAfb;;;cAqBa,iBAAA,mBACJ,WAAA,SACA,WAAA,SACA,MAAA,SACA,SAAA,SACA,SAAA,SACA,MAAA,SACA,MAAA,SACA,IAAA,SACA,QAAA,SACA,IAAA,SACA,UAAA,SACA,WAAA,SACA,UAAA;AAAA,KAiBG,QAAA,UACD,WAAA,UACA,WAAA,UACA,MAAA,UACA,SAAA,UACA,SAAA,UACA,IAAA,UACA,MAAA,UACA,KAAA,UACA,MAAA,UACA,UAAA,UACA,WAAA,UACA,UAAA,UACA,QAAA,UACA,IAAA,UACA,IAAA,UACA,MAAA,UACA,OAAA,UACA,MAAA,UACA,IAAA,UACA,OAAA;AAAA,KAEN,wBAAA;EAAA,CAAA,GAAA;AAAA;AAAA,KAIO,cAAA,WACA,QAAA,wCAEmB,wBAAA;EAE7B,QAAA,EAAU,CAAA;AAAA,YAEJ,CAAA,GAAI,OAAA,KACR,oBAAA;AAAA,cAES,cAAA,aACD,QAAA,kDAEmB,wBAAA,OAE7B,QAAA,EAAU,CAAA,EACV,OAAA,EAAS,OAAA,EACT,oBAAA;EAAA;MAMM,cAAA,CAAe,CAAA,EAAG,OAAA,EAAS,oBAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/types",
3
- "version": "8.7.14",
3
+ "version": "8.9.0",
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": [
@@ -149,7 +149,7 @@
149
149
  "tsdown": "0.21.10",
150
150
  "typescript": "6.0.3",
151
151
  "vitest": "4.1.5",
152
- "zod": "4.4.2"
152
+ "zod": "4.4.3"
153
153
  },
154
154
  "engines": {
155
155
  "node": ">=14.18"