@intlayer/types 8.3.0-canary.1 → 8.3.0-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.
@@ -1,10 +1,10 @@
1
1
  import { locales_d_exports } from "./locales.js";
2
2
  import { ALL_LOCALES, Locale } from "./allLocales.js";
3
- import { DeclaredLocales, DictionaryKeys, DictionaryRegistry, DictionaryRegistryContent, DictionaryRegistryElement, LocalesValues, RequiredLocales, Schema, SchemaKeys, StrictModeLocaleMap } from "./module_augmentation.js";
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
5
  import { NodeType, TypedNodeModel, 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, ContentConfig, CookiesAttributes, CustomIntlayerConfig, DictionaryConfig, EditorConfig, InternationalizationConfig, IntlayerConfig, LogConfig, LogFunctions, RewriteObject, RewriteRule, RewriteRules, RoutingConfig, StorageAttributes, StrictMode, SystemConfig, URLType } from "./config.js";
9
9
  import { ArrayNode, ConditionNode, EnumerationNode, FileNode, GenderNode, HTMLNode, InsertionNode, KeyPath, MarkdownNode, NestedNode, ObjectNode, ReactNode, TranslationNode } from "./keyPath.js";
10
- export { ALL_LOCALES, AiConfig, AiProviderConfigMap, AiProviders, ArrayNode, BuildConfig, CommonAiConfig, CompilerConfig, ConditionNode, ContentAutoTransformation, ContentConfig, ContentNode, CookiesAttributes, CustomIntlayerConfig, DeclaredLocales, Dictionary, DictionaryConfig, DictionaryFormat, DictionaryId, DictionaryKey, DictionaryKeys, DictionaryLocation, DictionaryRegistry, DictionaryRegistryContent, DictionaryRegistryElement, EditorConfig, EnumerationNode, FileNode, FilePathPattern, FilePathPatternContext, FilePathPatternFunction, Fill, GenderNode, GetSubPath, HTMLNode, ImportMode, InsertionNode, InternationalizationConfig, IntlayerConfig, KeyPath, LocalDictionaryId, Locale, locales_d_exports as Locales, LocalesValues, LogConfig, LogFunctions, MarkdownNode, MergedDictionaryOutput, MergedDictionaryResult, NestedNode, NodeType, ObjectNode, Plugin, ReactNode, RequiredLocales, RewriteObject, RewriteRule, RewriteRules, RoutingConfig, Schema, SchemaKeys, StorageAttributes, StrictMode, StrictModeLocaleMap, SystemConfig, TranslationNode, TypedNode, TypedNodeModel, URLType, UnmergedDictionaryOutput, UnmergedDictionaryResult, formatNodeType };
10
+ export { ALL_LOCALES, AiConfig, AiProviderConfigMap, AiProviders, ArrayNode, BuildConfig, CommonAiConfig, CompilerConfig, ConditionNode, ContentAutoTransformation, ContentConfig, ContentNode, CookiesAttributes, CustomIntlayerConfig, DeclaredLocales, Dictionary, DictionaryConfig, DictionaryFormat, DictionaryId, DictionaryKey, DictionaryKeys, DictionaryLocation, DictionaryRegistry, DictionaryRegistryContent, DictionaryRegistryElement, EditorConfig, EnumerationNode, FileNode, FilePathPattern, FilePathPatternContext, FilePathPatternFunction, Fill, GenderNode, GetSubPath, HTMLNode, ImportMode, InsertionNode, InternationalizationConfig, IntlayerConfig, KeyPath, LocalDictionaryId, Locale, locales_d_exports as Locales, LocalesValues, LogConfig, LogFunctions, MarkdownNode, MergedDictionaryOutput, MergedDictionaryResult, NestedNode, NodeType, ObjectNode, Plugin, ReactNode, RequiredLocales, ResolvedEditor, RewriteObject, RewriteRule, RewriteRules, RoutingConfig, Schema, SchemaKeys, StorageAttributes, StrictMode, StrictModeLocaleMap, SystemConfig, TranslationNode, TypedNode, TypedNodeModel, URLType, UnmergedDictionaryOutput, UnmergedDictionaryResult, formatNodeType };
@@ -3,7 +3,8 @@ interface __DictionaryRegistry {}
3
3
  interface __DeclaredLocalesRegistry {}
4
4
  interface __RequiredLocalesRegistry {}
5
5
  interface __SchemaRegistry {}
6
- interface __StrictModeRegistry {} //#endregion
6
+ interface __StrictModeRegistry {}
7
+ interface __EditorRegistry {} //#endregion
7
8
  //#endregion
8
- export { __DeclaredLocalesRegistry, __DictionaryRegistry, __RequiredLocalesRegistry, __SchemaRegistry, __StrictModeRegistry };
9
+ export { __DeclaredLocalesRegistry, __DictionaryRegistry, __EditorRegistry, __RequiredLocalesRegistry, __SchemaRegistry, __StrictModeRegistry };
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":["_intlayer_types_config0","CustomIntlayerConfig","IntlayerConfig","_intlayer_types_allLocales0","ALL_LOCALES","Locale","ContentNode","Dictionary","Dictionary$1","LocalesValues","SchemaKeys","StrictModeLocaleMap","Locales","configuration","file","Intl","compact","currency","date","number","percentage","relativeTime","units","getDictionary","getEnumeration","getEnumerationContent","getIntlayer","getNesting","getTranslation","getTranslationContent","getBrowserLocale","getCanonicalPath","getHTMLTextDir","getLocale","getLocaleFromPath","getLocaleLang","getLocaleName","getLocalizedPath","getLocalizedUrl","getMultilingualUrls","getPathWithoutLocale","getPrefix","getRewriteRules","localeDetector","localeFlatMap","localeMap","localeRecord","localeResolver","validatePrefix","getMarkdownMetadata","cond","enu","gender","html","insert","md","nest","t","getCookie","getLocaleFromStorage","setLocaleInStorage","T","SchemaKey","DeclarationContent","getConfiguration","locales","requiredLocales","defaultLocale","__DictionaryRegistry","__DeclaredLocalesRegistry","__RequiredLocalesRegistry","__SchemaRegistry","__StrictModeRegistry"],"sources":["../../../../../../../intlayer/dist/types/index.d.ts"],"mappings":";UAmDUoE,oBAAAA;AAAAA,UACAC,yBAAAA;AAAAA,UACAC,yBAAAA;AAAAA,UACAC,gBAAAA;AAAAA,UACAC,oBAAAA"}
1
+ {"version":3,"file":"index.d.ts","names":["_intlayer_types_config0","CustomIntlayerConfig","IntlayerConfig","_intlayer_types_allLocales0","ALL_LOCALES","Locale","ContentNode","Dictionary","Dictionary$1","LocalesValues","SchemaKeys","StrictModeLocaleMap","Locales","configuration","file","Intl","compact","currency","date","number","percentage","relativeTime","units","getDictionary","getEnumeration","getEnumerationContent","getIntlayer","getNesting","getTranslation","getTranslationContent","getBrowserLocale","getCanonicalPath","getHTMLTextDir","getLocale","getLocaleFromPath","getLocaleLang","getLocaleName","getLocalizedPath","getLocalizedUrl","getMultilingualUrls","getPathWithoutLocale","getPrefix","getRewriteRules","localeDetector","localeFlatMap","localeMap","localeRecord","localeResolver","validatePrefix","getMarkdownMetadata","cond","enu","gender","html","insert","md","nest","t","getCookie","getLocaleFromStorage","setLocaleInStorage","T","SchemaKey","DeclarationContent","getConfiguration","locales","requiredLocales","defaultLocale","__DictionaryRegistry","__DeclaredLocalesRegistry","__RequiredLocalesRegistry","__SchemaRegistry","__StrictModeRegistry","__EditorRegistry"],"sources":["../../../../../../../intlayer/dist/types/index.d.ts"],"mappings":";UAmDUoE,oBAAAA;AAAAA,UACAC,yBAAAA;AAAAA,UACAC,yBAAAA;AAAAA,UACAC,gBAAAA;AAAAA,UACAC,oBAAAA;AAAAA,UACAC,gBAAAA"}
@@ -1,7 +1,7 @@
1
1
  import { Locale } from "./allLocales.js";
2
+ import { __DeclaredLocalesRegistry, __DictionaryRegistry, __EditorRegistry, __RequiredLocalesRegistry, __SchemaRegistry, __StrictModeRegistry } from "./intlayer/dist/types/index.js";
2
3
  import { Dictionary } from "./dictionary.js";
3
4
  import { StrictMode } from "./config.js";
4
- import { __DeclaredLocalesRegistry, __DictionaryRegistry, __RequiredLocalesRegistry, __SchemaRegistry, __StrictModeRegistry } from "intlayer";
5
5
 
6
6
  //#region src/module_augmentation.d.ts
7
7
  type SchemaKeys = keyof __SchemaRegistry extends never ? string : keyof __SchemaRegistry;
@@ -21,6 +21,9 @@ type ResolvedStrictMode = __StrictModeRegistry extends {
21
21
  mode: infer M;
22
22
  } ? M : "inclusive";
23
23
  type StrictModeLocaleMap<Content = unknown, Mode extends StrictMode = ResolvedStrictMode> = RequiredLocales extends never ? Partial<Record<Locale, Content>> : Mode extends "strict" ? Required<Record<RequiredLocales, Content>> & Partial<Record<DeclaredLocales, Content>> : Mode extends "inclusive" ? Required<Record<RequiredLocales, Content>> & Partial<Record<Locale, Content>> : Partial<Record<Locale, Content>>;
24
+ type ResolvedEditor<Node, Wrapper> = __EditorRegistry extends {
25
+ enabled: true;
26
+ } ? Wrapper : Node;
24
27
  //#endregion
25
- export { DeclaredLocales, DictionaryKeys, DictionaryRegistry, DictionaryRegistryContent, DictionaryRegistryElement, LocalesValues, RequiredLocales, Schema, SchemaKeys, StrictModeLocaleMap };
28
+ export { DeclaredLocales, DictionaryKeys, DictionaryRegistry, DictionaryRegistryContent, DictionaryRegistryElement, LocalesValues, RequiredLocales, ResolvedEditor, Schema, SchemaKeys, StrictModeLocaleMap };
26
29
  //# sourceMappingURL=module_augmentation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"module_augmentation.d.ts","names":[],"sources":["../../src/module_augmentation.ts"],"mappings":";;;;;;KAWY,UAAA,SAAmB,gBAAA,gCAErB,gBAAA;AAAA,KAEE,MAAA,WAAiB,UAAA,sBAAgC,CAAA,UAEzD,CAAA,eAAgB,gBAAA,GACd,gBAAA,CAAiB,CAAA;AAAA,KAGX,cAAA,SAAuB,oBAAA,gCAEzB,oBAAA;AAAA,KAGE,kBAAA,GACV,oBAAA,OAA2B,oBAAA,kBACvB,MAAA,SAAe,UAAA,IACf,oBAAA;AAAA,KAEM,yBAAA,WAAoC,cAAA,sBAErC,CAAA,IACP,UAAA,GACA,oBAAA,CAAqB,CAAA,UAAW,UAAA,GAC9B,oBAAA,CAAqB,CAAA,IACrB,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IACP,UAAA,GACA,oBAAA,CAAqB,CAAA,UAAW,UAAA,GAC9B,oBAAA,CAAqB,CAAA,IACrB,UAAA;AAAA,KAEM,yBAAA,WAAoC,WAAA,KAAgB,CAAA,iBACxD,oBAAA,IAEJ,oBAAA,CAAqB,CAAA;EAAa,OAAA;AAAA,IAChC,CAAA,GACA,UAAA,cACF,UAAA;AAAA,KAIC,gBAAA,2BAA2C,CAAA,WAE5C,OAAA,OAAc,CAAA;AAAA,KAEN,eAAA,IACV,gBAAA,CAAiB,yBAAA,qBAEf,MAAA,GACA,gBAAA,CAAiB,yBAAA;AAAA,KAET,eAAA,IACV,gBAAA,CAAiB,yBAAA,6BAGf,gBAAA,CAAiB,yBAAA;;KAGT,aAAA,GAAgB,eAAA;AAAA,KAGvB,kBAAA,GAAqB,oBAAA;EAA+B,IAAA;AAAA,IACrD,CAAA;AAAA,KAIQ,mBAAA,iCAEG,UAAA,GAAa,kBAAA,IACxB,eAAA,iBACA,OAAA,CAAQ,MAAA,CAAO,MAAA,EAAQ,OAAA,KACvB,IAAA,oBACE,QAAA,CAAS,MAAA,CAAO,eAAA,EAAiB,OAAA,KAC/B,OAAA,CAAQ,MAAA,CAAO,eAAA,EAAiB,OAAA,KAClC,IAAA,uBACE,QAAA,CAAS,MAAA,CAAO,eAAA,EAAiB,OAAA,KAC/B,OAAA,CAAQ,MAAA,CAAO,MAAA,EAAQ,OAAA,KACzB,OAAA,CAAQ,MAAA,CAAO,MAAA,EAAQ,OAAA;AAAA,KAGnB,cAAA,kBAAgC,gBAAA;EAC1C,OAAA;AAAA,IAEE,OAAA,GACA,IAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/types",
3
- "version": "8.3.0-canary.1",
3
+ "version": "8.3.0-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": [