gt-next 6.0.0-alpha.32 → 6.0.0-alpha.33
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,13 +17,13 @@
|
|
|
17
17
|
* If the `branch` prop is set to `"male"`, it will render `<p>He is happy.</p>`. If the `branch` is set to "female" it will render `<p>She is happy.</p>`. If the gender is not set or does not match any props, 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} [branch] - The name of the branch to render. The component looks for this key in the `...branches` object.
|
|
21
21
|
* @param {...branches} [branches] - A spread object containing possible branches as keys and their corresponding content as values.
|
|
22
22
|
* @returns {React.JSX.Element} The rendered branch or fallback content.
|
|
23
23
|
*/
|
|
24
24
|
declare function Branch({ children, branch, ...branches }: {
|
|
25
25
|
children?: any;
|
|
26
|
-
branch?:
|
|
26
|
+
branch?: any;
|
|
27
27
|
[key: string]: any;
|
|
28
28
|
}): React.JSX.Element;
|
|
29
29
|
declare namespace Branch {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Branch.d.ts","sourceRoot":"","sources":["../../src/branches/Branch.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,iBAAS,MAAM,CAAC,EACd,QAAQ,EACR,MAAM,EACN,GAAG,QAAQ,EACZ,EAAE;IACD,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,MAAM,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"Branch.d.ts","sourceRoot":"","sources":["../../src/branches/Branch.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,iBAAS,MAAM,CAAC,EACd,QAAQ,EACR,MAAM,EACN,GAAG,QAAQ,EACZ,EAAE;IACD,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAQpB;kBAhBQ,MAAM;;;AAmBf,eAAe,MAAM,CAAC"}
|
package/dist/branches/Branch.js
CHANGED
|
@@ -31,7 +31,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
31
31
|
* If the `branch` prop is set to `"male"`, it will render `<p>He is happy.</p>`. If the `branch` is set to "female" it will render `<p>She is happy.</p>`. If the gender is not set or does not match any props, it renders the fallback content `<p>Fallback content</p>`.
|
|
32
32
|
*
|
|
33
33
|
* @param {any} [children] - Fallback content to render if no matching branch is found.
|
|
34
|
-
* @param {
|
|
34
|
+
* @param {any} [branch] - The name of the branch to render. The component looks for this key in the `...branches` object.
|
|
35
35
|
* @param {...branches} [branches] - A spread object containing possible branches as keys and their corresponding content as values.
|
|
36
36
|
* @returns {React.JSX.Element} The rendered branch or fallback content.
|
|
37
37
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gt-next",
|
|
3
|
-
"version": "6.0.0-alpha.
|
|
3
|
+
"version": "6.0.0-alpha.33",
|
|
4
4
|
"description": "A Next.js library for automatic internationalization.",
|
|
5
5
|
"main": "dist/index.server.js",
|
|
6
6
|
"peerDependencies": {
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"CHANGELOG.md"
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@generaltranslation/supported-locales": "^2.0.11-alpha.
|
|
17
|
-
"generaltranslation": "^7.0.0-alpha.
|
|
18
|
-
"gt-react": "^10.0.0-alpha.
|
|
16
|
+
"@generaltranslation/supported-locales": "^2.0.11-alpha.33",
|
|
17
|
+
"generaltranslation": "^7.0.0-alpha.33",
|
|
18
|
+
"gt-react": "^10.0.0-alpha.33"
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
21
|
"patch": "npm version patch",
|