@generaltranslation/react-core 11.0.9 → 11.0.11

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @generaltranslation/react-core
2
2
 
3
+ ## 11.0.11
4
+
5
+ ## 11.0.10
6
+
7
+ ### Patch Changes
8
+
9
+ - [#1916](https://github.com/generaltranslation/gt/pull/1916) [`c658e7e`](https://github.com/generaltranslation/gt/commit/c658e7e1f6929965e3752a6828e3658dd8c527a8) Thanks [@ErnestM1234](https://github.com/ErnestM1234)! - Unify `gt.config.json` types so complete config objects can be spread into compiler plugins and runtime initializers while file settings remain optional.
10
+
11
+ - Updated dependencies [[`c658e7e`](https://github.com/generaltranslation/gt/commit/c658e7e1f6929965e3752a6828e3658dd8c527a8)]:
12
+ - generaltranslation@9.0.3
13
+ - gt-i18n@1.0.7
14
+
3
15
  ## 11.0.9
4
16
 
5
17
  ### Patch Changes
package/dist/pure.d.ts CHANGED
@@ -9,11 +9,11 @@ import { getReactI18nCache, setReactI18nCache } from "./i18n-cache/singleton-ope
9
9
  import { defaultEnableI18nCookieName, defaultLocaleCookieName, defaultRegionCookieName, defaultResetLocaleCookieName } from "./setup/cookieNames.js";
10
10
  import { getDefaultRenderSettings } from "./utils/rendering/getDefaultRenderSettings.js";
11
11
  import { ReactI18nConfigParams, getI18nConfig, initializeI18nConfig } from "./setup/i18nConfig.js";
12
- import { internalInitializeGTSRA } from "./setup/initializeGTSRA.js";
12
+ import { ReactInitializeGTParams, internalInitializeGTSRA } from "./setup/initializeGTSRA.js";
13
13
  import { I18nStore } from "./i18n-store/I18nStore.js";
14
14
  import { setI18nStore } from "./i18n-store/singleton-operations.js";
15
15
  import { getConditionStore } from "./condition-store/singleton-operations.js";
16
16
  import { OnMissingDictionaryEntry, OnMissingDictionaryObj, OnMissingTranslation } from "./hooks/utils/missing-translation.js";
17
17
  import { declareVar, decodeMsg, decodeOptions, decodeVars, derive, getDefaultLocale, getLocaleProperties, getLocales, getVersionId, gtFallback, mFallback, msg, resolveCanonicalLocale } from "gt-i18n";
18
18
  import { ReadonlyConditionStore } from "gt-i18n/internal";
19
- export { type GTFunctionType, type GTProp, type GTTranslationOptions, type ReactI18nConfigParams as I18nConfigParams, I18nStore, type MFunctionType, type OnMissingDictionaryEntry, type OnMissingDictionaryObj, type OnMissingTranslation, ReactI18nCache, type ReactI18nCacheParams, ReadonlyConditionStore, type RelativeTimeFormatOptions, type RenderPipeline, type RenderPreparedT, type RenderVariable, type RuntimeTranslationOptions, type VariableProps, createRenderPipeline, declareVar, decodeMsg, decodeOptions, decodeVars, defaultEnableI18nCookieName, defaultLocaleCookieName, defaultRegionCookieName, defaultResetLocaleCookieName, derive, getDefaultLocale, getDefaultRenderSettings, getFormatLocales, getI18nConfig, getLocaleProperties, getLocales, getReactI18nCache, getConditionStore as getReadonlyConditionStore, getTranslationsSnapshot, getVersionId, gtFallback, initializeI18nConfig, internalInitializeGTSRA, mFallback, msg, resolveCanonicalLocale, setI18nStore, setReactI18nCache, t };
19
+ export { type GTFunctionType, type GTProp, type GTTranslationOptions, type ReactI18nConfigParams as I18nConfigParams, I18nStore, type MFunctionType, type OnMissingDictionaryEntry, type OnMissingDictionaryObj, type OnMissingTranslation, ReactI18nCache, type ReactI18nCacheParams, type ReactInitializeGTParams, ReadonlyConditionStore, type RelativeTimeFormatOptions, type RenderPipeline, type RenderPreparedT, type RenderVariable, type RuntimeTranslationOptions, type VariableProps, createRenderPipeline, declareVar, decodeMsg, decodeOptions, decodeVars, defaultEnableI18nCookieName, defaultLocaleCookieName, defaultRegionCookieName, defaultResetLocaleCookieName, derive, getDefaultLocale, getDefaultRenderSettings, getFormatLocales, getI18nConfig, getLocaleProperties, getLocales, getReactI18nCache, getConditionStore as getReadonlyConditionStore, getTranslationsSnapshot, getVersionId, gtFallback, initializeI18nConfig, internalInitializeGTSRA, mFallback, msg, resolveCanonicalLocale, setI18nStore, setReactI18nCache, t };
@@ -1 +1 @@
1
- {"version":3,"file":"initializeGTSRA.cjs","names":["ReactI18nCache"],"sources":["../../src/setup/initializeGTSRA.ts"],"sourcesContent":["import type { ReactI18nCacheParams } from '../i18n-cache/ReactI18nCache';\nimport { setReactI18nCache } from '../i18n-cache/singleton-operations';\nimport { ReactI18nCache } from '../i18n-cache/ReactI18nCache';\nimport { initializeI18nConfig, type ReactI18nConfigParams } from './i18nConfig';\n\n/**\n * Validation and setup for read only properties\n */\nexport function internalInitializeGTSRA(\n config: ReactI18nConfigParams & ReactI18nCacheParams\n): void {\n initializeI18nConfig(config, 'server-render');\n\n const i18nCache = new ReactI18nCache(config);\n setReactI18nCache(i18nCache);\n}\n"],"mappings":"sIAQA,SAAgB,EACd,EACM,CACN,EAAA,qBAAqB,EAAQ,gBAAgB,CAG7C,EAAA,kBAAkB,IADIA,EAAAA,eAAe,EACV,CAAC"}
1
+ {"version":3,"file":"initializeGTSRA.cjs","names":["ReactI18nCache"],"sources":["../../src/setup/initializeGTSRA.ts"],"sourcesContent":["import type { ReactI18nCacheParams } from '../i18n-cache/ReactI18nCache';\nimport { setReactI18nCache } from '../i18n-cache/singleton-operations';\nimport { ReactI18nCache } from '../i18n-cache/ReactI18nCache';\nimport { initializeI18nConfig, type ReactI18nConfigParams } from './i18nConfig';\n\nexport type ReactInitializeGTParams = ReactI18nConfigParams &\n ReactI18nCacheParams;\n\n/**\n * Validation and setup for read only properties\n */\nexport function internalInitializeGTSRA(config: ReactInitializeGTParams): void {\n initializeI18nConfig(config, 'server-render');\n\n const i18nCache = new ReactI18nCache(config);\n setReactI18nCache(i18nCache);\n}\n"],"mappings":"sIAWA,SAAgB,EAAwB,EAAuC,CAC7E,EAAA,qBAAqB,EAAQ,gBAAgB,CAG7C,EAAA,kBAAkB,IADIA,EAAAA,eAAe,EACV,CAAC"}
@@ -2,10 +2,11 @@ import { ReactI18nCacheParams } from "../i18n-cache/ReactI18nCache.js";
2
2
  import { ReactI18nConfigParams } from "./i18nConfig.js";
3
3
 
4
4
  //#region src/setup/initializeGTSRA.d.ts
5
+ type ReactInitializeGTParams = ReactI18nConfigParams & ReactI18nCacheParams;
5
6
  /**
6
7
  * Validation and setup for read only properties
7
8
  */
8
- declare function internalInitializeGTSRA(config: ReactI18nConfigParams & ReactI18nCacheParams): void;
9
+ declare function internalInitializeGTSRA(config: ReactInitializeGTParams): void;
9
10
  //#endregion
10
- export { internalInitializeGTSRA };
11
+ export { ReactInitializeGTParams, internalInitializeGTSRA };
11
12
  //# sourceMappingURL=initializeGTSRA.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"initializeGTSRA.d.ts","names":[],"sources":["../../src/setup/initializeGTSRA.ts"],"mappings":";;;;;;AAQA;iBAAgB,uBAAA,CACd,MAAA,EAAQ,qBAAA,GAAwB,oBAAA"}
1
+ {"version":3,"file":"initializeGTSRA.d.ts","names":[],"sources":["../../src/setup/initializeGTSRA.ts"],"mappings":";;;;KAKY,uBAAA,GAA0B,qBAAA,GACpC,oBAAA;;AADF;;iBAMgB,uBAAA,CAAwB,MAAA,EAAQ,uBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"initializeGTSRA.mjs","names":[],"sources":["../../src/setup/initializeGTSRA.ts"],"sourcesContent":["import type { ReactI18nCacheParams } from '../i18n-cache/ReactI18nCache';\nimport { setReactI18nCache } from '../i18n-cache/singleton-operations';\nimport { ReactI18nCache } from '../i18n-cache/ReactI18nCache';\nimport { initializeI18nConfig, type ReactI18nConfigParams } from './i18nConfig';\n\n/**\n * Validation and setup for read only properties\n */\nexport function internalInitializeGTSRA(\n config: ReactI18nConfigParams & ReactI18nCacheParams\n): void {\n initializeI18nConfig(config, 'server-render');\n\n const i18nCache = new ReactI18nCache(config);\n setReactI18nCache(i18nCache);\n}\n"],"mappings":"qMAQA,SAAgB,EACd,EACM,CACN,EAAqB,EAAQ,gBAAgB,CAG7C,EAAkB,IADI,EAAe,EACV,CAAC"}
1
+ {"version":3,"file":"initializeGTSRA.mjs","names":[],"sources":["../../src/setup/initializeGTSRA.ts"],"sourcesContent":["import type { ReactI18nCacheParams } from '../i18n-cache/ReactI18nCache';\nimport { setReactI18nCache } from '../i18n-cache/singleton-operations';\nimport { ReactI18nCache } from '../i18n-cache/ReactI18nCache';\nimport { initializeI18nConfig, type ReactI18nConfigParams } from './i18nConfig';\n\nexport type ReactInitializeGTParams = ReactI18nConfigParams &\n ReactI18nCacheParams;\n\n/**\n * Validation and setup for read only properties\n */\nexport function internalInitializeGTSRA(config: ReactInitializeGTParams): void {\n initializeI18nConfig(config, 'server-render');\n\n const i18nCache = new ReactI18nCache(config);\n setReactI18nCache(i18nCache);\n}\n"],"mappings":"qMAWA,SAAgB,EAAwB,EAAuC,CAC7E,EAAqB,EAAQ,gBAAgB,CAG7C,EAAkB,IADI,EAAe,EACV,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@generaltranslation/react-core",
3
- "version": "11.0.9",
3
+ "version": "11.0.11",
4
4
  "description": "A pure React library for internationalization",
5
5
  "files": [
6
6
  "dist",
@@ -11,9 +11,9 @@
11
11
  "react": ">=18.0.0"
12
12
  },
13
13
  "dependencies": {
14
+ "generaltranslation": "9.0.3",
14
15
  "@generaltranslation/format": "0.1.2",
15
- "gt-i18n": "1.0.6",
16
- "generaltranslation": "9.0.2"
16
+ "gt-i18n": "1.0.7"
17
17
  },
18
18
  "repository": {
19
19
  "type": "git",