gt-react 9.2.12-alpha.3 → 9.2.12-alpha.4
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 -21
- package/dist/client.d.ts +3 -3
- package/dist/client.esm.min.mjs +3 -21
- package/dist/hooks/internal/useCreateInternalUseDictFunction.d.ts.map +1 -1
- package/dist/hooks/internal/useCreateInternalUseGTFunction.d.ts.map +1 -1
- package/dist/hooks/internal/useRuntimeTranslation.d.ts +1 -0
- package/dist/hooks/internal/useRuntimeTranslation.d.ts.map +1 -1
- package/dist/index.cjs.min.cjs +3 -21
- package/dist/index.esm.min.mjs +3 -21
- package/dist/internal.cjs.min.cjs +1 -19
- package/dist/internal.esm.min.mjs +1 -19
- package/dist/provider/ClientProvider.d.ts +1 -1
- package/dist/provider/ClientProvider.d.ts.map +1 -1
- package/dist/provider/GTProvider.d.ts +1 -1
- package/dist/provider/GTProvider.d.ts.map +1 -1
- package/package.json +2 -1
- package/rollup.base.config.mjs +2 -2
package/dist/client.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import * as React
|
1
|
+
import * as React from 'react';
|
2
2
|
import React__default from 'react';
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
4
4
|
|
@@ -131,7 +131,7 @@ type ClientProviderProps = {
|
|
131
131
|
gtServicesEnabled?: boolean;
|
132
132
|
};
|
133
133
|
|
134
|
-
declare const GTContext: React
|
134
|
+
declare const GTContext: React.Context<GTContextType | undefined>;
|
135
135
|
|
136
136
|
declare function useRuntimeTranslation({ projectId, devApiKey, locale, versionId, defaultLocale, runtimeUrl, renderSettings, setTranslations, runtimeTranslationEnabled, ...globalMetadata }: {
|
137
137
|
projectId?: string;
|
@@ -154,7 +154,7 @@ declare function useRuntimeTranslation({ projectId, devApiKey, locale, versionId
|
|
154
154
|
|
155
155
|
declare const renderVariable: RenderVariable;
|
156
156
|
|
157
|
-
declare function ClientProvider({ children, dictionary, initialTranslations, dictionaryTranslations, locale: _locale, _versionId, defaultLocale, translationRequired, dialectTranslationRequired, locales, renderSettings, projectId, devApiKey, runtimeUrl, runtimeTranslationEnabled, onLocaleChange, cookieName, }: ClientProviderProps):
|
157
|
+
declare function ClientProvider({ children, dictionary, initialTranslations, dictionaryTranslations, locale: _locale, _versionId, defaultLocale, translationRequired, dialectTranslationRequired, locales, renderSettings, projectId, devApiKey, runtimeUrl, runtimeTranslationEnabled, onLocaleChange, cookieName, }: ClientProviderProps): React.JSX.Element;
|
158
158
|
|
159
159
|
/**
|
160
160
|
* The `<Branch>` component dynamically renders a specified branch of content or a fallback child component.
|