gt-react 9.2.24 → 9.2.25-alpha.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.
- package/dist/client.cjs.min.cjs +3 -3
- package/dist/client.d.ts +79 -66
- package/dist/client.d.ts.map +1 -1
- package/dist/client.esm.min.mjs +3 -3
- package/dist/dictionaries/getDictionaryEntry.d.ts +4 -0
- package/dist/dictionaries/getDictionaryEntry.d.ts.map +1 -0
- package/dist/{provider/helpers → dictionaries}/getEntryAndMetadata.d.ts +1 -1
- package/dist/dictionaries/getEntryAndMetadata.d.ts.map +1 -0
- package/dist/{provider/helpers → dictionaries}/loadDictionaryHelper.d.ts +1 -1
- package/dist/dictionaries/loadDictionaryHelper.d.ts.map +1 -0
- package/dist/{provider/helpers → dictionaries}/mergeDictionaries.d.ts +1 -1
- package/dist/dictionaries/mergeDictionaries.d.ts.map +1 -0
- package/dist/hooks/useGTClass.d.ts +3 -0
- package/dist/hooks/useGTClass.d.ts.map +1 -0
- package/dist/hooks/useLocaleSelector.d.ts.map +1 -1
- package/dist/index.cjs.min.cjs +3 -3
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.min.mjs +3 -3
- package/dist/internal.d.ts +10 -9
- package/dist/internal.d.ts.map +1 -1
- package/dist/provider/ClientProvider.d.ts +2 -2
- package/dist/provider/ClientProvider.d.ts.map +1 -1
- package/dist/provider/GTContext.d.ts +1 -1
- package/dist/provider/GTContext.d.ts.map +1 -1
- package/dist/provider/GTProvider.d.ts +2 -27
- package/dist/provider/GTProvider.d.ts.map +1 -1
- package/dist/provider/hooks/useCreateInternalUseDictFunction.d.ts.map +1 -0
- package/dist/{hooks/internal → provider/hooks}/useCreateInternalUseGTFunction.d.ts.map +1 -1
- package/dist/{hooks/internal → provider/hooks}/useDetermineLocale.d.ts.map +1 -1
- package/dist/provider/hooks/useErrorChecks.d.ts +9 -0
- package/dist/provider/hooks/useErrorChecks.d.ts.map +1 -0
- package/dist/provider/hooks/useLoadDictionary.d.ts +9 -0
- package/dist/provider/hooks/useLoadDictionary.d.ts.map +1 -0
- package/dist/provider/hooks/useLoadTranslations.d.ts +15 -0
- package/dist/provider/hooks/useLoadTranslations.d.ts.map +1 -0
- package/dist/provider/hooks/useLocaleData.d.ts +14 -0
- package/dist/provider/hooks/useLocaleData.d.ts.map +1 -0
- package/dist/{hooks/internal → provider/hooks}/useRuntimeTranslation.d.ts +2 -2
- package/dist/provider/hooks/useRuntimeTranslation.d.ts.map +1 -0
- package/dist/rendering/defaultRenderSettings.d.ts +6 -0
- package/dist/rendering/defaultRenderSettings.d.ts.map +1 -0
- package/dist/{provider/helpers → rendering}/getGTProp.d.ts +1 -1
- package/dist/rendering/getGTProp.d.ts.map +1 -0
- package/dist/rendering/isVariableObject.d.ts +3 -0
- package/dist/rendering/isVariableObject.d.ts.map +1 -0
- package/dist/{provider/rendering → rendering}/renderDefaultChildren.d.ts +1 -1
- package/dist/rendering/renderDefaultChildren.d.ts.map +1 -0
- package/dist/rendering/renderSkeleton.d.ts.map +1 -0
- package/dist/{provider/rendering → rendering}/renderTranslatedChildren.d.ts +1 -1
- package/dist/rendering/renderTranslatedChildren.d.ts.map +1 -0
- package/dist/rendering/renderVariable.d.ts +4 -0
- package/dist/rendering/renderVariable.d.ts.map +1 -0
- package/dist/types/config.d.ts +52 -0
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/{providers.d.ts → context.d.ts} +4 -25
- package/dist/types/context.d.ts.map +1 -0
- package/dist/ui/LocaleSelector.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/hooks/internal/useCreateInternalUseDictFunction.d.ts.map +0 -1
- package/dist/hooks/internal/useRuntimeTranslation.d.ts.map +0 -1
- package/dist/provider/helpers/getDictionaryEntry.d.ts +0 -4
- package/dist/provider/helpers/getDictionaryEntry.d.ts.map +0 -1
- package/dist/provider/helpers/getEntryAndMetadata.d.ts.map +0 -1
- package/dist/provider/helpers/getGTProp.d.ts.map +0 -1
- package/dist/provider/helpers/isValidDictionaryEntry.d.ts +0 -11
- package/dist/provider/helpers/isValidDictionaryEntry.d.ts.map +0 -1
- package/dist/provider/helpers/isVariableObject.d.ts +0 -3
- package/dist/provider/helpers/isVariableObject.d.ts.map +0 -1
- package/dist/provider/helpers/loadDictionaryHelper.d.ts.map +0 -1
- package/dist/provider/helpers/mergeDictionaries.d.ts.map +0 -1
- package/dist/provider/rendering/defaultRenderSettings.d.ts +0 -6
- package/dist/provider/rendering/defaultRenderSettings.d.ts.map +0 -1
- package/dist/provider/rendering/renderDefaultChildren.d.ts.map +0 -1
- package/dist/provider/rendering/renderSkeleton.d.ts.map +0 -1
- package/dist/provider/rendering/renderTranslatedChildren.d.ts.map +0 -1
- package/dist/provider/rendering/renderVariable.d.ts +0 -4
- package/dist/provider/rendering/renderVariable.d.ts.map +0 -1
- package/dist/types/providers.d.ts.map +0 -1
- /package/dist/{hooks/internal → provider/hooks}/useCreateInternalUseDictFunction.d.ts +0 -0
- /package/dist/{hooks/internal → provider/hooks}/useCreateInternalUseGTFunction.d.ts +0 -0
- /package/dist/{hooks/internal → provider/hooks}/useDetermineLocale.d.ts +0 -0
- /package/dist/{provider/rendering → rendering}/renderSkeleton.d.ts +0 -0
@@ -1,6 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import { CustomLoader, RenderMethod, TranslationsObject } from '../types/types';
|
3
|
-
import { GTConfig } from '../types/config';
|
1
|
+
import { GTProviderProps } from '../types/config';
|
4
2
|
/**
|
5
3
|
* Provides General Translation context to its children, which can then access `useGT`, `useLocale`, and `useDefaultLocale`.
|
6
4
|
*
|
@@ -23,28 +21,5 @@ import { GTConfig } from '../types/config';
|
|
23
21
|
*
|
24
22
|
* @returns {JSX.Element} The provider component for General Translation context.
|
25
23
|
*/
|
26
|
-
export default function GTProvider({ children, config, projectId: _projectId, devApiKey: _devApiKey, dictionary: _dictionary, locales, defaultLocale, cacheUrl, runtimeUrl, renderSettings, ssr, localeCookieName, locale: _locale, loadDictionary, loadTranslations, fallback, translations: _translations, _versionId, ...metadata }:
|
27
|
-
children?: React.ReactNode;
|
28
|
-
projectId?: string;
|
29
|
-
devApiKey?: string;
|
30
|
-
dictionary?: any;
|
31
|
-
locales?: string[];
|
32
|
-
defaultLocale?: string;
|
33
|
-
locale?: string;
|
34
|
-
cacheUrl?: string;
|
35
|
-
runtimeUrl?: string;
|
36
|
-
renderSettings?: {
|
37
|
-
method: RenderMethod;
|
38
|
-
timeout?: number;
|
39
|
-
};
|
40
|
-
_versionId?: string;
|
41
|
-
ssr?: boolean;
|
42
|
-
localeCookieName?: string;
|
43
|
-
translations?: TranslationsObject | null;
|
44
|
-
loadDictionary?: CustomLoader;
|
45
|
-
loadTranslations?: CustomLoader;
|
46
|
-
config?: GTConfig;
|
47
|
-
fallback?: React.ReactNode;
|
48
|
-
[key: string]: any;
|
49
|
-
}): React.JSX.Element;
|
24
|
+
export default function GTProvider({ children, config, projectId: _projectId, devApiKey: _devApiKey, dictionary: _dictionary, locales, defaultLocale, cacheUrl, runtimeUrl, renderSettings, ssr, localeCookieName, locale: _locale, loadDictionary, loadTranslations, fallback, translations: _translations, _versionId, customMapping, ...metadata }: GTProviderProps): import("react/jsx-runtime").JSX.Element;
|
50
25
|
//# sourceMappingURL=GTProvider.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"GTProvider.d.ts","sourceRoot":"","sources":["../../src/provider/GTProvider.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"GTProvider.d.ts","sourceRoot":"","sources":["../../src/provider/GTProvider.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAMlD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,QAAQ,EACR,MAAM,EACN,SAAS,EAAE,UAAoC,EAC/C,SAAS,EAAE,UAAoC,EAC/C,UAAU,EAAE,WAAsC,EAClD,OAA+B,EAC/B,aAA6D,EAC7D,QAA8C,EAC9C,UAAuD,EACvD,cAAgE,EAChE,GAAmC,EACnC,gBAAsE,EACtE,MAAM,EAAE,OAAY,EACpB,cAAc,EACd,gBAAgB,EAChB,QAAoB,EACpB,YAAY,EAAE,aAAoB,EAClC,UAAU,EACV,aAAqC,EACrC,GAAG,QAAQ,EACZ,EAAE,eAAe,2CA2JjB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useCreateInternalUseDictFunction.d.ts","sourceRoot":"","sources":["../../../src/provider/hooks/useCreateInternalUseDictFunction.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,4BAA4B,EAC5B,YAAY,EACZ,kBAAkB,EACnB,MAAM,mBAAmB,CAAC;AAgB3B,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAE/D,MAAM,CAAC,OAAO,UAAU,gCAAgC,CACtD,UAAU,EAAE,UAAU,GAAG,SAAS,EAClC,YAAY,EAAE,kBAAkB,GAAG,IAAI,EACvC,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,EACrB,mBAAmB,EAAE,OAAO,EAC5B,0BAA0B,EAAE,OAAO,EACnC,yBAAyB,EAAE,OAAO,EAClC,6BAA6B,EAAE,wBAAwB,EACvD,cAAc,EAAE;IAAE,MAAM,EAAE,YAAY,CAAA;CAAE,QAGjC,MAAM,YAAW,4BAA4B,KAAQ,MAAM,CA8GnE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useCreateInternalUseGTFunction.d.ts","sourceRoot":"","sources":["../../../src/hooks/
|
1
|
+
{"version":3,"file":"useCreateInternalUseGTFunction.d.ts","sourceRoot":"","sources":["../../../src/provider/hooks/useCreateInternalUseGTFunction.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAClB,YAAY,EACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAG/D,MAAM,CAAC,OAAO,UAAU,8BAA8B,CACpD,YAAY,EAAE,kBAAkB,GAAG,IAAI,EACvC,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,EACrB,mBAAmB,EAAE,OAAO,EAC5B,0BAA0B,EAAE,OAAO,EACnC,yBAAyB,EAAE,OAAO,EAClC,6BAA6B,EAAE,wBAAwB,EACvD,cAAc,EAAE;IAAE,MAAM,EAAE,YAAY,CAAA;CAAE,GACvC,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,wBAAwB,KAAK,MAAM,CAkHhE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useDetermineLocale.d.ts","sourceRoot":"","sources":["../../../src/hooks/
|
1
|
+
{"version":3,"file":"useDetermineLocale.d.ts","sourceRoot":"","sources":["../../../src/provider/hooks/useDetermineLocale.ts"],"names":[],"mappings":"AAMA,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EAAE,OAAY,EACpB,aAAoC,EACpC,OAAY,EACZ,gBAA0C,EAC1C,GAAU,GACX,EAAE;IACD,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,GAAG,CAAC,EAAE,OAAO,CAAC;CACf,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC,CAqCrC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export declare function useErrorChecks({ devApiKey, projectId, runtimeUrl, loadTranslationsType, cacheUrl, locales, }: {
|
2
|
+
devApiKey?: string;
|
3
|
+
projectId: string;
|
4
|
+
runtimeUrl: string;
|
5
|
+
loadTranslationsType: string;
|
6
|
+
cacheUrl: string;
|
7
|
+
locales: string[];
|
8
|
+
}): void;
|
9
|
+
//# sourceMappingURL=useErrorChecks.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useErrorChecks.d.ts","sourceRoot":"","sources":["../../../src/provider/hooks/useErrorChecks.ts"],"names":[],"mappings":"AAcA,wBAAgB,cAAc,CAAC,EAC7B,SAAS,EACT,SAAS,EACT,UAAU,EACV,oBAAoB,EACpB,QAAQ,EACR,OAAO,GACR,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,QAgDA"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { CustomLoader } from "../../types/types";
|
2
|
+
import { Dictionary } from "../../types/types";
|
3
|
+
export declare function useLoadDictionary({ _dictionary, loadDictionary, locale, defaultLocale }: {
|
4
|
+
_dictionary: Dictionary | undefined;
|
5
|
+
loadDictionary: CustomLoader | undefined;
|
6
|
+
locale: string;
|
7
|
+
defaultLocale: string;
|
8
|
+
}): Dictionary | undefined;
|
9
|
+
//# sourceMappingURL=useLoadDictionary.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useLoadDictionary.d.ts","sourceRoot":"","sources":["../../../src/provider/hooks/useLoadDictionary.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAI/C,wBAAgB,iBAAiB,CAAC,EAC9B,WAAW,EACX,cAAc,EACd,MAAM,EACN,aAAa,EAChB,EAAE;IACC,WAAW,EAAE,UAAU,GAAG,SAAS,CAAC;IACpC,cAAc,EAAE,YAAY,GAAG,SAAS,CAAC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;CACzB,0BAuCA"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { CustomLoader, TranslationsObject } from "../../types/types";
|
2
|
+
export declare function useLoadTranslations({ _translations, translationRequired, loadTranslationsType, loadTranslations, locale, cacheUrl, projectId, _versionId }: {
|
3
|
+
_translations: TranslationsObject | null;
|
4
|
+
translationRequired: boolean;
|
5
|
+
loadTranslationsType: string;
|
6
|
+
loadTranslations?: CustomLoader;
|
7
|
+
locale: string;
|
8
|
+
cacheUrl: string;
|
9
|
+
projectId: string;
|
10
|
+
_versionId?: string;
|
11
|
+
}): {
|
12
|
+
translations: TranslationsObject | null;
|
13
|
+
setTranslations: import("react").Dispatch<import("react").SetStateAction<TranslationsObject | null>>;
|
14
|
+
};
|
15
|
+
//# sourceMappingURL=useLoadTranslations.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useLoadTranslations.d.ts","sourceRoot":"","sources":["../../../src/provider/hooks/useLoadTranslations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAGrE,wBAAgB,mBAAmB,CAAC,EAChC,aAAa,EACd,mBAAmB,EAAE,oBAAoB,EACxC,gBAAgB,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAC5D,EAAE;IACC,aAAa,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACzC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gBAAgB,CAAC,EAAE,YAAY,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;;;EAmHA"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
export declare function useLocaleData({ _locale, defaultLocale, locales, ssr, localeCookieName, }: {
|
2
|
+
_locale: string;
|
3
|
+
defaultLocale: string;
|
4
|
+
locales: string[];
|
5
|
+
ssr: boolean;
|
6
|
+
localeCookieName: string;
|
7
|
+
}): {
|
8
|
+
locale: string;
|
9
|
+
setLocale: (locale: string) => void;
|
10
|
+
locales: string[];
|
11
|
+
translationRequired: boolean;
|
12
|
+
dialectTranslationRequired: boolean;
|
13
|
+
};
|
14
|
+
//# sourceMappingURL=useLocaleData.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useLocaleData.d.ts","sourceRoot":"","sources":["../../../src/provider/hooks/useLocaleData.ts"],"names":[],"mappings":"AAIA,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,aAAa,EACb,OAAO,EACP,GAAG,EACH,gBAAgB,GACjB,EAAE;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,GAAG,EAAE,OAAO,CAAC;IACb,gBAAgB,EAAE,MAAM,CAAC;CAC1B;;;;;;EAoCA"}
|
@@ -1,14 +1,13 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { RenderMethod } from '../../types/types';
|
3
3
|
import { TranslateContentCallback, TranslateChildrenCallback } from '../../types/runtime';
|
4
|
-
export default function useRuntimeTranslation({ projectId, devApiKey, locale, versionId, defaultLocale, runtimeUrl, renderSettings, setTranslations,
|
4
|
+
export default function useRuntimeTranslation({ projectId, devApiKey, locale, versionId, defaultLocale, runtimeUrl, renderSettings, setTranslations, ...globalMetadata }: {
|
5
5
|
projectId?: string;
|
6
6
|
devApiKey?: string;
|
7
7
|
locale: string;
|
8
8
|
versionId?: string;
|
9
9
|
defaultLocale?: string;
|
10
10
|
runtimeUrl?: string | null;
|
11
|
-
runtimeTranslationEnabled: boolean;
|
12
11
|
renderSettings: {
|
13
12
|
method: RenderMethod;
|
14
13
|
timeout?: number;
|
@@ -18,5 +17,6 @@ export default function useRuntimeTranslation({ projectId, devApiKey, locale, ve
|
|
18
17
|
}): {
|
19
18
|
registerContentForTranslation: TranslateContentCallback;
|
20
19
|
registerJsxForTranslation: TranslateChildrenCallback;
|
20
|
+
runtimeTranslationEnabled: boolean;
|
21
21
|
};
|
22
22
|
//# sourceMappingURL=useRuntimeTranslation.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useRuntimeTranslation.d.ts","sourceRoot":"","sources":["../../../src/provider/hooks/useRuntimeTranslation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EACL,YAAY,EAIb,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EAC1B,MAAM,qBAAqB,CAAC;AA6B7B,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC5C,SAAS,EACT,SAAS,EACT,MAAM,EACN,SAAS,EACT,aAAa,EACb,UAAU,EACV,cAAc,EACd,eAAe,EACf,GAAG,cAAc,EAClB,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE;QACd,MAAM,EAAE,YAAY,CAAC;QACrB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,eAAe,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3D,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,GAAG;IACF,6BAA6B,EAAE,wBAAwB,CAAC;IACxD,yBAAyB,EAAE,yBAAyB,CAAC;IACrD,yBAAyB,EAAE,OAAO,CAAC;CACpC,CAuUA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"defaultRenderSettings.d.ts","sourceRoot":"","sources":["../../src/rendering/defaultRenderSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAS9C,eAAO,MAAM,qBAAqB,EAAE;IAClC,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CAIR,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getGTProp.d.ts","sourceRoot":"","sources":["../../src/rendering/getGTProp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,CAAC,OAAO,UAAU,SAAS,CAC/B,KAAK,EAAE,YAAY,CAAC,GAAG,CAAC,GAAG,iBAAiB,GAC3C;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG,IAAI,CAK3C"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"isVariableObject.d.ts","sourceRoot":"","sources":["../../src/rendering/isVariableObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,QAAQ,CAsBtE"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React, { ReactNode } from 'react';
|
2
|
-
import { RenderVariable } from '
|
2
|
+
import { RenderVariable } from '../types/types';
|
3
3
|
export default function renderDefaultChildren({ children, defaultLocale, renderVariable, }: {
|
4
4
|
children: ReactNode;
|
5
5
|
defaultLocale: string;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"renderDefaultChildren.d.ts","sourceRoot":"","sources":["../../src/rendering/renderDefaultChildren.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC5C,QAAQ,EACR,aAAoC,EACpC,cAAc,GACf,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,cAAc,CAAC;CAChC,GAAG,KAAK,CAAC,SAAS,CAiElB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"renderSkeleton.d.ts","sourceRoot":"","sources":["../../src/rendering/renderSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,IAAI,KAAK,CAAC,SAAS,CAExD"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
|
-
import { RenderVariable, TranslatedChildren } from '
|
2
|
+
import { RenderVariable, TranslatedChildren } from '../types/types';
|
3
3
|
export default function renderTranslatedChildren({ source, target, locales, renderVariable, }: {
|
4
4
|
source: ReactNode;
|
5
5
|
target: TranslatedChildren;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"renderTranslatedChildren.d.ts","sourceRoot":"","sources":["../../src/rendering/renderTranslatedChildren.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EACL,cAAc,EACd,kBAAkB,EAEnB,MAAM,gBAAgB,CAAC;AA+FxB,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,EAC/C,MAAM,EACN,MAAM,EACN,OAAgC,EAChC,cAAc,GACf,EAAE;IACD,MAAM,EAAE,SAAS,CAAC;IAClB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,cAAc,EAAE,cAAc,CAAC;CAChC,GAAG,SAAS,CA6HZ"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"renderVariable.d.ts","sourceRoot":"","sources":["../../src/rendering/renderVariable.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,QAAA,MAAM,cAAc,EAAE,cAarB,CAAC;AACF,eAAe,cAAc,CAAC"}
|
package/dist/types/config.d.ts
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
import { RenderMethod } from '../internal';
|
2
|
+
import { Dictionary, TranslationsObject, CustomLoader } from './types';
|
3
|
+
import { CustomMapping } from 'generaltranslation/types';
|
2
4
|
export type GTConfig = {
|
3
5
|
projectId?: string;
|
4
6
|
devApiKey?: string;
|
@@ -14,5 +16,55 @@ export type GTConfig = {
|
|
14
16
|
_versionId?: string;
|
15
17
|
ssr?: boolean;
|
16
18
|
localeCookieName?: string;
|
19
|
+
customMapping?: CustomMapping;
|
20
|
+
};
|
21
|
+
export type GTProviderProps = {
|
22
|
+
children?: React.ReactNode;
|
23
|
+
projectId?: string;
|
24
|
+
devApiKey?: string;
|
25
|
+
dictionary?: any;
|
26
|
+
locales?: string[];
|
27
|
+
defaultLocale?: string;
|
28
|
+
locale?: string;
|
29
|
+
cacheUrl?: string;
|
30
|
+
runtimeUrl?: string;
|
31
|
+
renderSettings?: {
|
32
|
+
method: RenderMethod;
|
33
|
+
timeout?: number;
|
34
|
+
};
|
35
|
+
_versionId?: string;
|
36
|
+
ssr?: boolean;
|
37
|
+
localeCookieName?: string;
|
38
|
+
translations?: TranslationsObject | null;
|
39
|
+
loadDictionary?: CustomLoader;
|
40
|
+
loadTranslations?: CustomLoader;
|
41
|
+
config?: GTConfig;
|
42
|
+
fallback?: React.ReactNode;
|
43
|
+
customMapping?: CustomMapping;
|
44
|
+
[key: string]: any;
|
45
|
+
};
|
46
|
+
export type ClientProviderProps = {
|
47
|
+
children: any;
|
48
|
+
dictionary: Dictionary;
|
49
|
+
initialTranslations: TranslationsObject;
|
50
|
+
locale: string;
|
51
|
+
locales: string[];
|
52
|
+
_versionId?: string;
|
53
|
+
dictionaryEnabled?: boolean;
|
54
|
+
defaultLocale: string;
|
55
|
+
translationRequired: boolean;
|
56
|
+
dialectTranslationRequired: boolean;
|
57
|
+
renderSettings: {
|
58
|
+
method: RenderMethod;
|
59
|
+
timeout?: number;
|
60
|
+
};
|
61
|
+
runtimeTranslationEnabled: boolean;
|
62
|
+
projectId?: string;
|
63
|
+
devApiKey?: string;
|
64
|
+
runtimeUrl?: string | null;
|
65
|
+
gtServicesEnabled?: boolean;
|
66
|
+
localeCookieName?: string;
|
67
|
+
resetLocaleCookieName: string;
|
68
|
+
customMapping?: CustomMapping;
|
17
69
|
};
|
18
70
|
//# sourceMappingURL=config.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,MAAM,MAAM,QAAQ,GAAG;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE;QACf,MAAM,EAAE,YAAY,CAAC;QACrB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE;QACf,MAAM,EAAE,YAAY,CAAC;QACrB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACzC,cAAc,CAAC,EAAE,YAAY,CAAC;IAC9B,gBAAgB,CAAC,EAAE,YAAY,CAAC;IAChC,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,GAAG,CAAC;IACd,UAAU,EAAE,UAAU,CAAC;IACvB,mBAAmB,EAAE,kBAAkB,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,0BAA0B,EAAE,OAAO,CAAC;IACpC,cAAc,EAAE;QACd,MAAM,EAAE,YAAY,CAAC;QACrB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,yBAAyB,EAAE,OAAO,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC"}
|
@@ -1,6 +1,8 @@
|
|
1
|
-
import { TranslationsObject, RenderMethod, InlineTranslationOptions, DictionaryTranslationOptions
|
1
|
+
import { TranslationsObject, RenderMethod, InlineTranslationOptions, DictionaryTranslationOptions } from './types';
|
2
2
|
import { TranslateContentCallback, TranslateChildrenCallback } from './runtime';
|
3
|
+
import { GT } from 'generaltranslation';
|
3
4
|
export type GTContextType = {
|
5
|
+
gt: GT;
|
4
6
|
registerContentForTranslation: TranslateContentCallback;
|
5
7
|
registerJsxForTranslation: TranslateChildrenCallback;
|
6
8
|
_internalUseGTFunction: (string: string, options?: InlineTranslationOptions) => string;
|
@@ -19,27 +21,4 @@ export type GTContextType = {
|
|
19
21
|
};
|
20
22
|
projectId?: string;
|
21
23
|
};
|
22
|
-
|
23
|
-
children: any;
|
24
|
-
dictionary: Dictionary;
|
25
|
-
initialTranslations: TranslationsObject;
|
26
|
-
locale: string;
|
27
|
-
locales: string[];
|
28
|
-
_versionId?: string;
|
29
|
-
dictionaryEnabled?: boolean;
|
30
|
-
defaultLocale: string;
|
31
|
-
translationRequired: boolean;
|
32
|
-
dialectTranslationRequired: boolean;
|
33
|
-
renderSettings: {
|
34
|
-
method: RenderMethod;
|
35
|
-
timeout?: number;
|
36
|
-
};
|
37
|
-
runtimeTranslationEnabled: boolean;
|
38
|
-
projectId?: string;
|
39
|
-
devApiKey?: string;
|
40
|
-
runtimeUrl?: string | null;
|
41
|
-
gtServicesEnabled?: boolean;
|
42
|
-
localeCookieName?: string;
|
43
|
-
resetLocaleCookieName: string;
|
44
|
-
};
|
45
|
-
//# sourceMappingURL=providers.d.ts.map
|
24
|
+
//# sourceMappingURL=context.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/types/context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,YAAY,EACZ,wBAAwB,EACxB,4BAA4B,EAC7B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AAChF,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAExC,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,EAAE,CAAC;IACP,6BAA6B,EAAE,wBAAwB,CAAC;IACxD,yBAAyB,EAAE,yBAAyB,CAAC;IACrD,sBAAsB,EAAE,CACtB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,wBAAwB,KAC/B,MAAM,CAAC;IACZ,wBAAwB,EAAE,CACxB,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,4BAA4B,KACnC,MAAM,CAAC;IACZ,yBAAyB,EAAE,OAAO,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACxC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,0BAA0B,EAAE,OAAO,CAAC;IACpC,cAAc,EAAE;QAAE,MAAM,EAAE,YAAY,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LocaleSelector.d.ts","sourceRoot":"","sources":["../../src/ui/LocaleSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"LocaleSelector.d.ts","sourceRoot":"","sources":["../../src/ui/LocaleSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAmB1B;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,OAAO,EAAE,QAAQ,EACjB,WAAW,EACX,GAAG,KAAK,EACT,EAAE;IACD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,WAAW,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACxC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAuC3B"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "gt-react",
|
3
|
-
"version": "9.2.
|
3
|
+
"version": "9.2.25-alpha.0",
|
4
4
|
"description": "A React library for automatic internationalization.",
|
5
5
|
"main": "./dist/index.cjs.min.cjs",
|
6
6
|
"module": "./dist/index.esm.min.mjs",
|
@@ -15,7 +15,7 @@
|
|
15
15
|
},
|
16
16
|
"dependencies": {
|
17
17
|
"@generaltranslation/supported-locales": "^2.0.10",
|
18
|
-
"generaltranslation": "^6.
|
18
|
+
"generaltranslation": "^6.3.1"
|
19
19
|
},
|
20
20
|
"scripts": {
|
21
21
|
"patch": "npm version patch",
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"useCreateInternalUseDictFunction.d.ts","sourceRoot":"","sources":["../../../src/hooks/internal/useCreateInternalUseDictFunction.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,4BAA4B,EAE5B,YAAY,EACZ,kBAAkB,EACnB,MAAM,mBAAmB,CAAC;AAe3B,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAE/D,MAAM,CAAC,OAAO,UAAU,gCAAgC,CACtD,UAAU,EAAE,UAAU,GAAG,SAAS,EAClC,YAAY,EAAE,kBAAkB,GAAG,IAAI,EACvC,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,EACrB,mBAAmB,EAAE,OAAO,EAC5B,0BAA0B,EAAE,OAAO,EACnC,yBAAyB,EAAE,OAAO,EAClC,6BAA6B,EAAE,wBAAwB,EACvD,cAAc,EAAE;IAAE,MAAM,EAAE,YAAY,CAAA;CAAE,QAGjC,MAAM,YAAW,4BAA4B,KAAQ,MAAM,CA8GnE"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"useRuntimeTranslation.d.ts","sourceRoot":"","sources":["../../../src/hooks/internal/useRuntimeTranslation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EACL,YAAY,EAIb,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EAC1B,MAAM,qBAAqB,CAAC;AA6B7B,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC5C,SAAS,EACT,SAAS,EACT,MAAM,EACN,SAAS,EACT,aAAa,EACb,UAAU,EACV,cAAc,EACd,eAAe,EACf,yBAAyB,EACzB,GAAG,cAAc,EAClB,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,yBAAyB,EAAE,OAAO,CAAC;IACnC,cAAc,EAAE;QACd,MAAM,EAAE,YAAY,CAAC;QACrB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,eAAe,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3D,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,GAAG;IACF,6BAA6B,EAAE,wBAAwB,CAAC;IACxD,yBAAyB,EAAE,yBAAyB,CAAC;CACtD,CA4TA"}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { Dictionary, DictionaryEntry } from '../../types/types';
|
2
|
-
export declare function isValidDictionaryEntry(value: unknown): value is DictionaryEntry;
|
3
|
-
export default function getDictionaryEntry<T extends Dictionary>(dictionary: T, id: string): Dictionary | DictionaryEntry | undefined;
|
4
|
-
//# sourceMappingURL=getDictionaryEntry.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"getDictionaryEntry.d.ts","sourceRoot":"","sources":["../../../src/provider/helpers/getDictionaryEntry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEhE,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,eAAe,CAc1B;AAED,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,CAAC,SAAS,UAAU,EAC7D,UAAU,EAAE,CAAC,EACb,EAAE,EAAE,MAAM,GACT,UAAU,GAAG,eAAe,GAAG,SAAS,CAc1C"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"getEntryAndMetadata.d.ts","sourceRoot":"","sources":["../../../src/provider/helpers/getEntryAndMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAS,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAErE,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,KAAK,EAAE,eAAe,GAAG;IACnE,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB,CAUA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"getGTProp.d.ts","sourceRoot":"","sources":["../../../src/provider/helpers/getGTProp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,CAAC,OAAO,UAAU,SAAS,CAC/B,KAAK,EAAE,YAAY,CAAC,GAAG,CAAC,GAAG,iBAAiB,GAC3C;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG,IAAI,CAK3C"}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
export type Entry = string;
|
2
|
-
export type Metadata = {
|
3
|
-
context?: string;
|
4
|
-
variablesOptions?: Record<string, any>;
|
5
|
-
[key: string]: any;
|
6
|
-
};
|
7
|
-
export type DictionaryEntry = Entry | [Entry] | [Entry, Metadata];
|
8
|
-
export type Dictionary = {
|
9
|
-
[key: string]: Dictionary | DictionaryEntry;
|
10
|
-
};
|
11
|
-
//# sourceMappingURL=isValidDictionaryEntry.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"isValidDictionaryEntry.d.ts","sourceRoot":"","sources":["../../../src/provider/helpers/isValidDictionaryEntry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC;AAC3B,MAAM,MAAM,QAAQ,GAAG;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACvC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AAElE,MAAM,MAAM,UAAU,GAAG;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,GAAG,eAAe,CAAC;CAC7C,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"isVariableObject.d.ts","sourceRoot":"","sources":["../../../src/provider/helpers/isVariableObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,QAAQ,CAsBtE"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"loadDictionaryHelper.d.ts","sourceRoot":"","sources":["../../../src/provider/helpers/loadDictionaryHelper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE7D,wBAA8B,oBAAoB,CAChD,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,YAAY,GAC3B,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAmBjC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"mergeDictionaries.d.ts","sourceRoot":"","sources":["../../../src/provider/helpers/mergeDictionaries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAQ/C,MAAM,CAAC,OAAO,UAAU,iBAAiB,CACvC,uBAAuB,EAAE,UAAU,EACnC,gBAAgB,EAAE,UAAU,GAC3B,UAAU,CAkCZ"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"defaultRenderSettings.d.ts","sourceRoot":"","sources":["../../../src/provider/rendering/defaultRenderSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AASjD,eAAO,MAAM,qBAAqB,EAAE;IAClC,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CAIR,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"renderDefaultChildren.d.ts","sourceRoot":"","sources":["../../../src/provider/rendering/renderDefaultChildren.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC5C,QAAQ,EACR,aAAoC,EACpC,cAAc,GACf,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,cAAc,CAAC;CAChC,GAAG,KAAK,CAAC,SAAS,CAiElB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"renderSkeleton.d.ts","sourceRoot":"","sources":["../../../src/provider/rendering/renderSkeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,IAAI,KAAK,CAAC,SAAS,CAExD"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"renderTranslatedChildren.d.ts","sourceRoot":"","sources":["../../../src/provider/rendering/renderTranslatedChildren.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EACL,cAAc,EACd,kBAAkB,EAEnB,MAAM,mBAAmB,CAAC;AA+F3B,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,EAC/C,MAAM,EACN,MAAM,EACN,OAAgC,EAChC,cAAc,GACf,EAAE;IACD,MAAM,EAAE,SAAS,CAAC;IAClB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,cAAc,EAAE,cAAc,CAAC;CAChC,GAAG,SAAS,CA6HZ"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"renderVariable.d.ts","sourceRoot":"","sources":["../../../src/provider/rendering/renderVariable.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,QAAA,MAAM,cAAc,EAAE,cAarB,CAAC;AACF,eAAe,cAAc,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../src/types/providers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,YAAY,EACZ,wBAAwB,EACxB,4BAA4B,EAC5B,UAAU,EAEX,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AAEhF,MAAM,MAAM,aAAa,GAAG;IAC1B,6BAA6B,EAAE,wBAAwB,CAAC;IACxD,yBAAyB,EAAE,yBAAyB,CAAC;IACrD,sBAAsB,EAAE,CACtB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,wBAAwB,KAC/B,MAAM,CAAC;IACZ,wBAAwB,EAAE,CACxB,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,4BAA4B,KACnC,MAAM,CAAC;IACZ,yBAAyB,EAAE,OAAO,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACxC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,0BAA0B,EAAE,OAAO,CAAC;IACpC,cAAc,EAAE;QAAE,MAAM,EAAE,YAAY,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,GAAG,CAAC;IACd,UAAU,EAAE,UAAU,CAAC;IACvB,mBAAmB,EAAE,kBAAkB,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,0BAA0B,EAAE,OAAO,CAAC;IACpC,cAAc,EAAE;QACd,MAAM,EAAE,YAAY,CAAC;QACrB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,yBAAyB,EAAE,OAAO,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qBAAqB,EAAE,MAAM,CAAC;CAC/B,CAAC"}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|