gt-react 10.0.0-alpha.32 → 10.0.0-alpha.34
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.
@@ -17,14 +17,13 @@
|
|
17
17
|
* If the `branch` prop is set to `"summary"`, it will render `<p>This is a summary</p>`. If the `branch` is not set or does not match any keys in the branches object, it renders the fallback content `<p>Fallback content</p>`.
|
18
18
|
*
|
19
19
|
* @param {any} [children] - Fallback content to render if no matching branch is found.
|
20
|
-
* @param {
|
20
|
+
* @param {any} [name="branch"] - Optional name for the component, used for metadata or tracking purposes.
|
21
21
|
* @param {string} [branch] - The name of the branch to render. The component looks for this key in the `...branches` object.
|
22
22
|
* @param {...{[key: string]: any}} [branches] - A spread object containing possible branches as keys and their corresponding content as values.
|
23
23
|
* @returns {React.JSX.Element} The rendered branch or fallback content.
|
24
24
|
*/
|
25
25
|
declare function Branch({ children, branch, ...branches }: {
|
26
26
|
children?: any;
|
27
|
-
name?: string;
|
28
27
|
branch?: string;
|
29
28
|
[key: string]: any;
|
30
29
|
}): React.JSX.Element;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Branch.d.ts","sourceRoot":"","sources":["../../src/branches/Branch.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,iBAAS,MAAM,CAAC,EACd,QAAQ,EACR,MAAM,EACN,GAAG,QAAQ,EACZ,EAAE;IACD,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,
|
1
|
+
{"version":3,"file":"Branch.d.ts","sourceRoot":"","sources":["../../src/branches/Branch.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,iBAAS,MAAM,CAAC,EACd,QAAQ,EACR,MAAM,EACN,GAAG,QAAQ,EACZ,EAAE;IACD,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAOpB;kBAfQ,MAAM;;;AAkBf,eAAe,MAAM,CAAC"}
|
package/dist/client.d.ts
CHANGED
@@ -214,14 +214,13 @@ declare function ClientProvider({ children, dictionary, initialTranslations, loc
|
|
214
214
|
* If the `branch` prop is set to `"summary"`, it will render `<p>This is a summary</p>`. If the `branch` is not set or does not match any keys in the branches object, it renders the fallback content `<p>Fallback content</p>`.
|
215
215
|
*
|
216
216
|
* @param {any} [children] - Fallback content to render if no matching branch is found.
|
217
|
-
* @param {
|
217
|
+
* @param {any} [name="branch"] - Optional name for the component, used for metadata or tracking purposes.
|
218
218
|
* @param {string} [branch] - The name of the branch to render. The component looks for this key in the `...branches` object.
|
219
219
|
* @param {...{[key: string]: any}} [branches] - A spread object containing possible branches as keys and their corresponding content as values.
|
220
220
|
* @returns {React.JSX.Element} The rendered branch or fallback content.
|
221
221
|
*/
|
222
222
|
declare function Branch({ children, branch, ...branches }: {
|
223
223
|
children?: any;
|
224
|
-
name?: string;
|
225
224
|
branch?: string;
|
226
225
|
[key: string]: any;
|
227
226
|
}): React.JSX.Element;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "gt-react",
|
3
|
-
"version": "10.0.0-alpha.
|
3
|
+
"version": "10.0.0-alpha.34",
|
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",
|
@@ -14,8 +14,8 @@
|
|
14
14
|
"react-dom": ">=16.8.0"
|
15
15
|
},
|
16
16
|
"dependencies": {
|
17
|
-
"@generaltranslation/supported-locales": "^2.0.11-alpha.
|
18
|
-
"generaltranslation": "^7.0.0-alpha.
|
17
|
+
"@generaltranslation/supported-locales": "^2.0.11-alpha.34",
|
18
|
+
"generaltranslation": "^7.0.0-alpha.34"
|
19
19
|
},
|
20
20
|
"scripts": {
|
21
21
|
"patch": "npm version patch",
|