@intlayer/types 9.0.1 → 9.1.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.
@@ -34,6 +34,7 @@ exports.PLUGIN_NODE_TYPES = require_nodeType.PLUGIN_NODE_TYPES;
34
34
  exports.PLURAL = require_nodeType.PLURAL;
35
35
  exports.PREACT_NODE = require_nodeType.PREACT_NODE;
36
36
  exports.REACT_NODE = require_nodeType.REACT_NODE;
37
+ exports.SELECT = require_nodeType.SELECT;
37
38
  exports.SOLID_NODE = require_nodeType.SOLID_NODE;
38
39
  exports.TEXT = require_nodeType.TEXT;
39
40
  exports.TRANSLATION = require_nodeType.TRANSLATION;
@@ -19,6 +19,7 @@ const TEXT = "text";
19
19
  const NUMBER = "number";
20
20
  const BOOLEAN = "boolean";
21
21
  const GENDER = "gender";
22
+ const SELECT = "select";
22
23
  const NULL = "null";
23
24
  const UNKNOWN = "unknown";
24
25
  /**
@@ -32,6 +33,7 @@ const PLUGIN_NODE_TYPES = [
32
33
  CONDITION,
33
34
  INSERTION,
34
35
  GENDER,
36
+ SELECT,
35
37
  NESTED,
36
38
  FILE,
37
39
  MARKDOWN,
@@ -64,6 +66,7 @@ exports.PLUGIN_NODE_TYPES = PLUGIN_NODE_TYPES;
64
66
  exports.PLURAL = PLURAL;
65
67
  exports.PREACT_NODE = PREACT_NODE;
66
68
  exports.REACT_NODE = REACT_NODE;
69
+ exports.SELECT = SELECT;
67
70
  exports.SOLID_NODE = SOLID_NODE;
68
71
  exports.TEXT = TEXT;
69
72
  exports.TRANSLATION = TRANSLATION;
@@ -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 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;AACF;AAsCA,MAAa,kBAKX,UACA,SACA,0BAEC;CACC,GAAG;CACH;EACC,WAAW;AACd"}
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 SELECT = 'select' 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 SELECT,\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 SELECT,\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 SELECT\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,SAAS;AACtB,MAAa,OAAO;AACpB,MAAa,UAAU;;;;;AAMvB,MAAa,oBAeT;CACF;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAuCA,MAAa,kBAKX,UACA,SACA,0BAEC;CACC,GAAG;CACH;EACC,WAAW;AACd"}
@@ -1,4 +1,4 @@
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";
1
+ import { ARRAY, BOOLEAN, CONDITION, ENUMERATION, FILE, GENDER, HTML, INSERTION, MARKDOWN, NESTED, NULL, NUMBER, OBJECT, PLUGIN_NODE_TYPES, PLURAL, PREACT_NODE, REACT_NODE, SELECT, 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, PLURAL, 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, SELECT, SOLID_NODE, TEXT, TRANSLATION, UNKNOWN, formatNodeType };
@@ -17,6 +17,7 @@ const TEXT = "text";
17
17
  const NUMBER = "number";
18
18
  const BOOLEAN = "boolean";
19
19
  const GENDER = "gender";
20
+ const SELECT = "select";
20
21
  const NULL = "null";
21
22
  const UNKNOWN = "unknown";
22
23
  /**
@@ -30,6 +31,7 @@ const PLUGIN_NODE_TYPES = [
30
31
  CONDITION,
31
32
  INSERTION,
32
33
  GENDER,
34
+ SELECT,
33
35
  NESTED,
34
36
  FILE,
35
37
  MARKDOWN,
@@ -45,5 +47,5 @@ const formatNodeType = (nodeType, content, additionalAttributes) => ({
45
47
  });
46
48
 
47
49
  //#endregion
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 };
50
+ export { ARRAY, BOOLEAN, CONDITION, ENUMERATION, FILE, GENDER, HTML, INSERTION, MARKDOWN, NESTED, NULL, NUMBER, OBJECT, PLUGIN_NODE_TYPES, PLURAL, PREACT_NODE, REACT_NODE, SELECT, SOLID_NODE, TEXT, TRANSLATION, UNKNOWN, formatNodeType };
49
51
  //# 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 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;AACF;AAsCA,MAAa,kBAKX,UACA,SACA,0BAEC;CACC,GAAG;CACH;EACC,WAAW;AACd"}
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 SELECT = 'select' 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 SELECT,\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 SELECT,\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 SELECT\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,SAAS;AACtB,MAAa,OAAO;AACpB,MAAa,UAAU;;;;;AAMvB,MAAa,oBAeT;CACF;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAuCA,MAAa,kBAKX,UACA,SACA,0BAEC;CACC,GAAG;CACH;EACC,WAAW;AACd"}
@@ -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, DictionaryRegistryResult, DictionarySelectorForKey, ExtractSelectorLocale, GetLocaleLang, LocalesValues, LocalizedUrl, PathWithoutLocale, RequiredLocales, ResolvedDefaultLocale, ResolvedEditor, ResolvedRoutingMode, 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, PLURAL, 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, SELECT, SOLID_NODE, TEXT, TRANSLATION, TypedNodeModel, UNKNOWN, formatNodeType } from "./nodeType.js";
6
6
  import { ContentAutoTransformation, ContentNode, Dictionary, DictionaryFormat, DictionaryId, DictionaryKey, DictionaryLocation, DictionaryQualifierType, DictionarySelector, DictionarySelectorForGroup, DictionaryVariantValue, Fill, GetSubPath, ImportMode, LocalDictionaryId, QualifiedDictionaryGroup, ResolveQualifiedDictionaryContent, TypedNode } from "./dictionary.js";
7
7
  import { MergedDictionaryOutput, MergedDictionaryResult, Plugin, UnmergedDictionaryOutput, UnmergedDictionaryResult } from "./plugin.js";
8
8
  import { AiConfig, AiProviderConfigMap, AiProviders, AnalyticsConfig, BuildConfig, CommonAiConfig, CompilerConfig, ConfigSchema, ContentConfig, CookiesAttributes, CustomIntlayerConfig, CustomRoutingConfig, DictionaryConfig, EditorConfig, InternationalizationConfig, IntlayerConfig, LogConfig, LogFunctions, ProcessedCookieAttributes, 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, PluralNode, ReactNode, TranslationNode } from "./keyPath.js";
10
- export { ALL_LOCALES, ARRAY, AiConfig, AiProviderConfigMap, AiProviders, AnalyticsConfig, ArrayNode, BOOLEAN, BuildConfig, CONDITION, CommonAiConfig, CompilerConfig, ConditionNode, ConfigSchema, ContentAutoTransformation, ContentConfig, ContentNode, CookiesAttributes, CustomIntlayerConfig, CustomRoutingConfig, DeclaredLocales, Dictionary, DictionaryConfig, DictionaryFormat, DictionaryId, DictionaryKey, DictionaryKeys, DictionaryLocation, DictionaryQualifierType, DictionaryRegistry, DictionaryRegistryContent, DictionaryRegistryElement, DictionaryRegistryResult, DictionarySelector, DictionarySelectorForGroup, DictionarySelectorForKey, DictionaryVariantValue, ENUMERATION, EditorConfig, EnumerationNode, ExtractSelectorLocale, FILE, FileNode, FilePathPattern, FilePathPatternContext, FilePathPatternFunction, Fill, GENDER, GenderNode, GetLocaleLang, GetSubPath, HTML, HTMLNode, INSERTION, ImportMode, InsertionNode, InternationalizationConfig, IntlayerConfig, KeyPath, LocalDictionaryId, Locale, locales_d_exports as Locales, LocalesValues, LocalizedUrl, LogConfig, LogFunctions, MARKDOWN, MarkdownNode, MergedDictionaryOutput, MergedDictionaryResult, NESTED, NULL, NUMBER, NestedNode, NodeType, OBJECT, ObjectNode, PLUGIN_NODE_TYPES, PLURAL, PREACT_NODE, PathWithoutLocale, Plugin, PluralNode, ProcessedCookieAttributes, ProcessedStorageAttributes, QualifiedDictionaryGroup, REACT_NODE, ReactNode, RequiredLocales, ResolveQualifiedDictionaryContent, ResolvedDefaultLocale, ResolvedEditor, ResolvedRoutingMode, 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, SelectNode, TranslationNode } from "./keyPath.js";
10
+ export { ALL_LOCALES, ARRAY, AiConfig, AiProviderConfigMap, AiProviders, AnalyticsConfig, ArrayNode, BOOLEAN, BuildConfig, CONDITION, CommonAiConfig, CompilerConfig, ConditionNode, ConfigSchema, ContentAutoTransformation, ContentConfig, ContentNode, CookiesAttributes, CustomIntlayerConfig, CustomRoutingConfig, DeclaredLocales, Dictionary, DictionaryConfig, DictionaryFormat, DictionaryId, DictionaryKey, DictionaryKeys, DictionaryLocation, DictionaryQualifierType, DictionaryRegistry, DictionaryRegistryContent, DictionaryRegistryElement, DictionaryRegistryResult, DictionarySelector, DictionarySelectorForGroup, DictionarySelectorForKey, DictionaryVariantValue, ENUMERATION, EditorConfig, EnumerationNode, ExtractSelectorLocale, FILE, FileNode, FilePathPattern, FilePathPatternContext, FilePathPatternFunction, Fill, GENDER, GenderNode, GetLocaleLang, GetSubPath, HTML, HTMLNode, INSERTION, ImportMode, InsertionNode, InternationalizationConfig, IntlayerConfig, KeyPath, LocalDictionaryId, Locale, locales_d_exports as Locales, LocalesValues, LocalizedUrl, LogConfig, LogFunctions, MARKDOWN, MarkdownNode, MergedDictionaryOutput, MergedDictionaryResult, NESTED, NULL, NUMBER, NestedNode, NodeType, OBJECT, ObjectNode, PLUGIN_NODE_TYPES, PLURAL, PREACT_NODE, PathWithoutLocale, Plugin, PluralNode, ProcessedCookieAttributes, ProcessedStorageAttributes, QualifiedDictionaryGroup, REACT_NODE, ReactNode, RequiredLocales, ResolveQualifiedDictionaryContent, ResolvedDefaultLocale, ResolvedEditor, ResolvedRoutingMode, RewriteObject, RewriteRule, RewriteRules, RoutingConfig, RoutingStorageInput, SELECT, SOLID_NODE, Schema, SchemaKeys, SelectNode, 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, PLURAL, REACT_NODE, TRANSLATION } from "./nodeType.js";
1
+ import { ARRAY, CONDITION, ENUMERATION, FILE, GENDER, HTML, INSERTION, MARKDOWN, NESTED, OBJECT, PLURAL, REACT_NODE, SELECT, TRANSLATION } from "./nodeType.js";
2
2
  //#region src/keyPath.d.ts
3
3
  type ObjectNode = {
4
4
  type: typeof OBJECT;
@@ -28,6 +28,10 @@ type GenderNode = {
28
28
  type: typeof GENDER;
29
29
  key: string;
30
30
  };
31
+ type SelectNode = {
32
+ type: typeof SELECT;
33
+ key: string;
34
+ };
31
35
  type InsertionNode = {
32
36
  type: typeof INSERTION;
33
37
  key?: undefined;
@@ -52,7 +56,7 @@ type HTMLNode = {
52
56
  type: typeof HTML;
53
57
  key?: undefined;
54
58
  };
55
- type KeyPath = ObjectNode | ArrayNode | TranslationNode | EnumerationNode | PluralNode | InsertionNode | GenderNode | MarkdownNode | ReactNode | ConditionNode | NestedNode | FileNode | HTMLNode;
59
+ type KeyPath = ObjectNode | ArrayNode | TranslationNode | EnumerationNode | PluralNode | InsertionNode | GenderNode | SelectNode | MarkdownNode | ReactNode | ConditionNode | NestedNode | FileNode | HTMLNode;
56
60
  //#endregion
57
- export { ArrayNode, ConditionNode, EnumerationNode, FileNode, GenderNode, HTMLNode, InsertionNode, KeyPath, MarkdownNode, NestedNode, ObjectNode, PluralNode, ReactNode, TranslationNode };
61
+ export { ArrayNode, ConditionNode, EnumerationNode, FileNode, GenderNode, HTMLNode, InsertionNode, KeyPath, MarkdownNode, NestedNode, ObjectNode, PluralNode, ReactNode, SelectNode, TranslationNode };
58
62
  //# sourceMappingURL=keyPath.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"keyPath.d.ts","names":[],"sources":["../../src/keyPath.ts"],"mappings":";;KAEY;EACV,aAAa;EACb;;KAGU;EACV,aAAa;EACb;;KAGU;EACV,aAAa;EACb;;KAGU;EACV,aAAa;EACb;;KAGU;EACV,aAAa;EACb;;KAGU;EACV,aAAa;EACb;;KAGU;EACV,aAAa;EACb;;KAGU;EACV,aAAa;EACb;;KAGU;EACV,aAAa;EACb;;KAGU;EACV,aAAa;EACb;;KAGU;EACV,aAAa;EACb;;KAGU;EACV,aAAa;EACb;;KAGU;EACV,aAAa;EACb;;KAGU,UACR,aACA,YACA,kBACA,kBACA,aACA,gBACA,aACA,eACA,YACA,gBACA,aACA,WACA"}
1
+ {"version":3,"file":"keyPath.d.ts","names":[],"sources":["../../src/keyPath.ts"],"mappings":";;KAEY;EACV,aAAa;EACb;;KAGU;EACV,aAAa;EACb;;KAGU;EACV,aAAa;EACb;;KAGU;EACV,aAAa;EACb;;KAGU;EACV,aAAa;EACb;;KAGU;EACV,aAAa;EACb;;KAGU;EACV,aAAa;EACb;;KAGU;EACV,aAAa;EACb;;KAGU;EACV,aAAa;EACb;;KAGU;EACV,aAAa;EACb;;KAGU;EACV,aAAa;EACb;;KAGU;EACV,aAAa;EACb;;KAGU;EACV,aAAa;EACb;;KAGU;EACV,aAAa;EACb;;KAGU,UACR,aACA,YACA,kBACA,kBACA,aACA,gBACA,aACA,aACA,eACA,YACA,gBACA,aACA,WACA"}
@@ -17,14 +17,15 @@ declare const TEXT: "text";
17
17
  declare const NUMBER: "number";
18
18
  declare const BOOLEAN: "boolean";
19
19
  declare const GENDER: "gender";
20
+ declare const SELECT: "select";
20
21
  declare const NULL: "null";
21
22
  declare const UNKNOWN: "unknown";
22
23
  /**
23
24
  * NodeType strings that correspond to plugins that can be conditionally
24
25
  * removed from the bundle when unused.
25
26
  */
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
+ declare const PLUGIN_NODE_TYPES: readonly [typeof TRANSLATION, typeof ENUMERATION, typeof PLURAL, typeof CONDITION, typeof INSERTION, typeof GENDER, typeof SELECT, typeof NESTED, typeof FILE, typeof MARKDOWN, typeof HTML, typeof REACT_NODE, typeof PREACT_NODE, typeof SOLID_NODE];
28
+ 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 SELECT | typeof NULL | typeof UNKNOWN;
28
29
  type AdditionalAttributesType = {
29
30
  [key: string]: unknown;
30
31
  };
@@ -35,5 +36,5 @@ declare const formatNodeType: <T extends NodeType, Content = unknown, Additional
35
36
  [key: string]: unknown;
36
37
  }) => TypedNodeModel<T, Content, AdditionalAttributes>;
37
38
  //#endregion
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 };
39
+ export { ARRAY, BOOLEAN, CONDITION, ENUMERATION, FILE, GENDER, HTML, INSERTION, MARKDOWN, NESTED, NULL, NUMBER, NodeType, OBJECT, PLUGIN_NODE_TYPES, PLURAL, PREACT_NODE, REACT_NODE, SELECT, SOLID_NODE, TEXT, TRANSLATION, TypedNodeModel, UNKNOWN, formatNodeType };
39
40
  //# sourceMappingURL=nodeType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nodeType.d.ts","names":[],"sources":["../../src/nodeType.ts"],"mappings":";cAAa;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;;;;;cAMA,oCACJ,oBACA,oBACA,eACA,kBACA,kBACA,eACA,eACA,aACA,iBACA,aACA,mBACA,oBACA;KAiBG,kBACD,qBACA,qBACA,gBACA,mBACA,mBACA,cACA,gBACA,eACA,gBACA,oBACA,qBACA,oBACA,kBACA,cACA,cACA,gBACA,iBACA,gBACA,cACA;KAEN;GAAA;;KAIO,eACV,UAAU,UACV,SACA,6BAA6B;EAE7B,UAAU;OAET,KAAK,IAAI,aACR;cAES,iBACX,UAAU,UACV,mBACA,6BAA6B,+BAE7B,UAAU,GACV,SAAS,SACT;;MAMM,eAAe,GAAG,SAAS"}
1
+ {"version":3,"file":"nodeType.d.ts","names":[],"sources":["../../src/nodeType.ts"],"mappings":";cAAa;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;;;;;cAMA,oCACJ,oBACA,oBACA,eACA,kBACA,kBACA,eACA,eACA,eACA,aACA,iBACA,aACA,mBACA,oBACA;KAkBG,kBACD,qBACA,qBACA,gBACA,mBACA,mBACA,cACA,gBACA,eACA,gBACA,oBACA,qBACA,oBACA,kBACA,cACA,cACA,gBACA,iBACA,gBACA,gBACA,cACA;KAEN;GAAA;;KAIO,eACV,UAAU,UACV,SACA,6BAA6B;EAE7B,UAAU;OAET,KAAK,IAAI,aACR;cAES,iBACX,UAAU,UACV,mBACA,6BAA6B,+BAE7B,UAAU,GACV,SAAS,SACT;;MAMM,eAAe,GAAG,SAAS"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/types",
3
- "version": "9.0.1",
3
+ "version": "9.1.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": [
@@ -141,12 +141,12 @@
141
141
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
142
142
  },
143
143
  "devDependencies": {
144
- "@types/node": "26.1.1",
144
+ "@types/node": "26.1.2",
145
145
  "@utils/ts-config": "1.0.4",
146
146
  "@utils/ts-config-types": "1.0.4",
147
147
  "@utils/tsdown-config": "1.0.4",
148
148
  "rimraf": "6.1.3",
149
- "tsdown": "0.22.13",
149
+ "tsdown": "0.22.14",
150
150
  "typescript": "7.0.2",
151
151
  "vitest": "4.1.10",
152
152
  "zod": "4.4.3"