gt-next 6.7.18 → 6.8.0-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/gt_swc_plugin.wasm +0 -0
- package/dist/index.client.d.ts +2 -2
- package/dist/index.client.d.ts.map +1 -1
- package/dist/index.client.js +2 -1
- package/dist/index.client.js.map +1 -1
- package/dist/index.server.d.ts +2 -1
- package/dist/index.server.d.ts.map +1 -1
- package/dist/index.server.js +3 -1
- package/dist/index.server.js.map +1 -1
- package/dist/index.types.d.ts +11 -1
- package/dist/index.types.d.ts.map +1 -1
- package/dist/index.types.js +14 -1
- package/dist/index.types.js.map +1 -1
- package/dist/variables/Static.d.ts +29 -0
- package/dist/variables/Static.d.ts.map +1 -0
- package/dist/variables/Static.js +31 -0
- package/dist/variables/Static.js.map +1 -0
- package/package.json +3 -3
package/dist/gt_swc_plugin.wasm
CHANGED
|
Binary file
|
package/dist/index.client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Var, Num, Currency, DateTime, T, Branch, Plural, LocaleSelector, RegionSelector, useGT, useTranslations, useLocale, useLocales, useDefaultLocale, useGTClass, useLocaleProperties, useLocaleDirection, useMessages, msg, decodeMsg, decodeOptions } from 'gt-react/client';
|
|
1
|
+
import { Var, Num, Currency, DateTime, Static, T, Branch, Plural, LocaleSelector, RegionSelector, useGT, useTranslations, useLocale, useLocales, useDefaultLocale, useGTClass, useLocaleProperties, useLocaleDirection, useMessages, msg, decodeMsg, decodeOptions } from 'gt-react/client';
|
|
2
2
|
import { DictionaryTranslationOptions, InlineTranslationOptions, RuntimeTranslationOptions } from 'gt-react';
|
|
3
3
|
export declare function GTProvider(): void;
|
|
4
4
|
export declare function Tx(): void;
|
|
5
|
-
export { T, Var, Num, Currency, DateTime, Branch, Plural, LocaleSelector, RegionSelector, useGT, useTranslations, useLocale, useLocales, useDefaultLocale, useGTClass, useLocaleProperties, useLocaleDirection, useMessages, DictionaryTranslationOptions, InlineTranslationOptions, RuntimeTranslationOptions, msg, decodeMsg, decodeOptions, };
|
|
5
|
+
export { T, Var, Num, Currency, DateTime, Static, Branch, Plural, LocaleSelector, RegionSelector, useGT, useTranslations, useLocale, useLocales, useDefaultLocale, useGTClass, useLocaleProperties, useLocaleDirection, useMessages, DictionaryTranslationOptions, InlineTranslationOptions, RuntimeTranslationOptions, msg, decodeMsg, decodeOptions, };
|
|
6
6
|
//# sourceMappingURL=index.client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.client.d.ts","sourceRoot":"","sources":["../src/index.client.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,GAAG,EACH,GAAG,EACH,QAAQ,EACR,QAAQ,EACR,CAAC,EACD,MAAM,EACN,MAAM,EACN,cAAc,EACd,cAAc,EACd,KAAK,EACL,eAAe,EACf,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACX,GAAG,EACH,SAAS,EACT,aAAa,EACd,MAAM,iBAAiB,CAAC;AAKzB,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EAC1B,MAAM,UAAU,CAAC;AAGlB,wBAAgB,UAAU,SAEzB;AAGD,wBAAgB,EAAE,SAEjB;AAED,OAAO,EACL,CAAC,EACD,GAAG,EACH,GAAG,EACH,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,MAAM,EACN,cAAc,EACd,cAAc,EACd,KAAK,EACL,eAAe,EACf,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACX,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EACzB,GAAG,EACH,SAAS,EACT,aAAa,GACd,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.client.d.ts","sourceRoot":"","sources":["../src/index.client.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,GAAG,EACH,GAAG,EACH,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,CAAC,EACD,MAAM,EACN,MAAM,EACN,cAAc,EACd,cAAc,EACd,KAAK,EACL,eAAe,EACf,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACX,GAAG,EACH,SAAS,EACT,aAAa,EACd,MAAM,iBAAiB,CAAC;AAKzB,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EAC1B,MAAM,UAAU,CAAC;AAGlB,wBAAgB,UAAU,SAEzB;AAGD,wBAAgB,EAAE,SAEjB;AAED,OAAO,EACL,CAAC,EACD,GAAG,EACH,GAAG,EACH,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,MAAM,EACN,MAAM,EACN,cAAc,EACd,cAAc,EACd,KAAK,EACL,eAAe,EACf,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACX,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EACzB,GAAG,EACH,SAAS,EACT,aAAa,GACd,CAAC"}
|
package/dist/index.client.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
'use client';
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.decodeOptions = exports.decodeMsg = exports.msg = exports.useMessages = exports.useLocaleDirection = exports.useLocaleProperties = exports.useGTClass = exports.useDefaultLocale = exports.useLocales = exports.useLocale = exports.useTranslations = exports.useGT = exports.RegionSelector = exports.LocaleSelector = exports.Plural = exports.Branch = exports.DateTime = exports.Currency = exports.Num = exports.Var = exports.T = void 0;
|
|
4
|
+
exports.decodeOptions = exports.decodeMsg = exports.msg = exports.useMessages = exports.useLocaleDirection = exports.useLocaleProperties = exports.useGTClass = exports.useDefaultLocale = exports.useLocales = exports.useLocale = exports.useTranslations = exports.useGT = exports.RegionSelector = exports.LocaleSelector = exports.Plural = exports.Branch = exports.Static = exports.DateTime = exports.Currency = exports.Num = exports.Var = exports.T = void 0;
|
|
5
5
|
exports.GTProvider = GTProvider;
|
|
6
6
|
exports.Tx = Tx;
|
|
7
7
|
var client_1 = require("gt-react/client");
|
|
@@ -9,6 +9,7 @@ Object.defineProperty(exports, "Var", { enumerable: true, get: function () { ret
|
|
|
9
9
|
Object.defineProperty(exports, "Num", { enumerable: true, get: function () { return client_1.Num; } });
|
|
10
10
|
Object.defineProperty(exports, "Currency", { enumerable: true, get: function () { return client_1.Currency; } });
|
|
11
11
|
Object.defineProperty(exports, "DateTime", { enumerable: true, get: function () { return client_1.DateTime; } });
|
|
12
|
+
Object.defineProperty(exports, "Static", { enumerable: true, get: function () { return client_1.Static; } });
|
|
12
13
|
Object.defineProperty(exports, "T", { enumerable: true, get: function () { return client_1.T; } });
|
|
13
14
|
Object.defineProperty(exports, "Branch", { enumerable: true, get: function () { return client_1.Branch; } });
|
|
14
15
|
Object.defineProperty(exports, "Plural", { enumerable: true, get: function () { return client_1.Plural; } });
|
package/dist/index.client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.client.js","sourceRoot":"","sources":["../src/index.client.ts"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;
|
|
1
|
+
{"version":3,"file":"index.client.js","sourceRoot":"","sources":["../src/index.client.ts"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;AAqCb,gCAEC;AAGD,gBAEC;AA1CD,0CAuByB;AAuBvB,oFA7CA,YAAG,OA6CA;AACH,oFA7CA,YAAG,OA6CA;AACH,yFA7CA,iBAAQ,OA6CA;AACR,yFA7CA,iBAAQ,OA6CA;AACR,uFA7CA,eAAM,OA6CA;AALN,kFAvCA,UAAC,OAuCA;AAMD,uFA5CA,eAAM,OA4CA;AACN,uFA5CA,eAAM,OA4CA;AACN,+FA5CA,uBAAc,OA4CA;AACd,+FA5CA,uBAAc,OA4CA;AACd,sFA5CA,cAAK,OA4CA;AACL,gGA5CA,wBAAe,OA4CA;AACf,0FA5CA,kBAAS,OA4CA;AACT,2FA5CA,mBAAU,OA4CA;AACV,iGA5CA,yBAAgB,OA4CA;AAChB,2FA5CA,mBAAU,OA4CA;AACV,oGA5CA,4BAAmB,OA4CA;AACnB,mGA5CA,2BAAkB,OA4CA;AAClB,4FA5CA,oBAAW,OA4CA;AAIX,oFA/CA,YAAG,OA+CA;AACH,0FA/CA,kBAAS,OA+CA;AACT,8FA/CA,sBAAa,OA+CA;AA7Cf,sDAG+B;AAO/B,0CAA0C;AAC1C,SAAgB,UAAU;IACxB,MAAM,IAAI,KAAK,CAAC,uCAAwB,CAAC,CAAC;AAC5C,CAAC;AAED,kCAAkC;AAClC,SAAgB,EAAE;IAChB,MAAM,IAAI,KAAK,CAAC,+BAAgB,CAAC,CAAC;AACpC,CAAC"}
|
package/dist/index.server.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import Var from './variables/Var';
|
|
|
3
3
|
import Num from './variables/Num';
|
|
4
4
|
import Currency from './variables/Currency';
|
|
5
5
|
import DateTime from './variables/DateTime';
|
|
6
|
+
import Static from './variables/Static';
|
|
6
7
|
import T from './server-dir/buildtime/T';
|
|
7
8
|
import Branch from './branches/Branch';
|
|
8
9
|
import Plural from './branches/Plural';
|
|
@@ -25,5 +26,5 @@ export { GTProvider, T,
|
|
|
25
26
|
/**
|
|
26
27
|
* @deprecated import from 'gt-next/server' instead
|
|
27
28
|
*/
|
|
28
|
-
Tx, Var, Num, Currency, DateTime, Branch, Plural, useGT, useTranslations, useMessages, useLocale, useLocaleDirection, DictionaryTranslationOptions, InlineTranslationOptions, RuntimeTranslationOptions, msg, decodeMsg, decodeOptions, };
|
|
29
|
+
Tx, Var, Num, Currency, DateTime, Static, Branch, Plural, useGT, useTranslations, useMessages, useLocale, useLocaleDirection, DictionaryTranslationOptions, InlineTranslationOptions, RuntimeTranslationOptions, msg, decodeMsg, decodeOptions, };
|
|
29
30
|
//# source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EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhE,wBAAgB,UAAU,OAEzB;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,UAAU,aAEzB;AAED,wBAAgB,gBAAgB,WAE/B;AAED,OAAO,EACL,UAAU,EACV,CAAC;AACD;;GAEG;AACH,EAAE,EACF,GAAG,EACH,GAAG,EACH,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,MAAM,EACN,MAAM,EACN,KAAK,EACL,eAAe,EACf,WAAW,EACX,SAAS,EACT,kBAAkB,EAClB,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EACzB,GAAG,EACH,SAAS,EACT,aAAa,GACd,CAAC"}
|
package/dist/index.server.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.decodeOptions = exports.decodeMsg = exports.msg = exports.useLocaleDirection = exports.useLocale = exports.useMessages = exports.useTranslations = exports.useGT = exports.Plural = exports.Branch = exports.DateTime = exports.Currency = exports.Num = exports.Var = exports.Tx = exports.T = exports.GTProvider = exports.RegionSelector = exports.LocaleSelector = void 0;
|
|
6
|
+
exports.decodeOptions = exports.decodeMsg = exports.msg = exports.useLocaleDirection = exports.useLocale = exports.useMessages = exports.useTranslations = exports.useGT = exports.Plural = exports.Branch = exports.Static = exports.DateTime = exports.Currency = exports.Num = exports.Var = exports.Tx = exports.T = exports.GTProvider = exports.RegionSelector = exports.LocaleSelector = void 0;
|
|
7
7
|
exports.useGTClass = useGTClass;
|
|
8
8
|
exports.useLocaleProperties = useLocaleProperties;
|
|
9
9
|
exports.useLocales = useLocales;
|
|
@@ -17,6 +17,8 @@ var Currency_1 = __importDefault(require("./variables/Currency"));
|
|
|
17
17
|
exports.Currency = Currency_1.default;
|
|
18
18
|
var DateTime_1 = __importDefault(require("./variables/DateTime"));
|
|
19
19
|
exports.DateTime = DateTime_1.default;
|
|
20
|
+
var Static_1 = __importDefault(require("./variables/Static"));
|
|
21
|
+
exports.Static = Static_1.default;
|
|
20
22
|
var T_1 = __importDefault(require("./server-dir/buildtime/T"));
|
|
21
23
|
exports.T = T_1.default;
|
|
22
24
|
var Branch_1 = __importDefault(require("./branches/Branch"));
|
package/dist/index.server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.server.js","sourceRoot":"","sources":["../src/index.server.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"index.server.js","sourceRoot":"","sources":["../src/index.server.ts"],"names":[],"mappings":";;;;;;AA8BA,gCAEC;AAED,kDAEC;AAED,gCAEC;AAED,4CAEC;AA5CD,uBAAqB;AAErB,wDAAkC;AAmDhC,cAnDK,aAAG,CAmDL;AAlDL,wDAAkC;AAmDhC,cAnDK,aAAG,CAmDL;AAlDL,kEAA4C;AAmD1C,mBAnDK,kBAAQ,CAmDL;AAlDV,kEAA4C;AAmD1C,mBAnDK,kBAAQ,CAmDL;AAlDV,8DAAwC;AAmDtC,iBAnDK,gBAAM,CAmDL;AAlDR,+DAAyC;AAyCvC,YAzCK,WAAC,CAyCL;AAxCH,6DAAuC;AAkDrC,iBAlDK,gBAAM,CAkDL;AAjDR,6DAAuC;AAkDrC,iBAlDK,gBAAM,CAkDL;AAjDR,qEAA+C;AAqC7C,qBArCK,oBAAU,CAqCL;AApCZ,mCAA8B;AAyC5B,mFAzCO,WAAE,OAyCP;AAxCJ,0EAAyE;AAiDvE,gGAjDO,iCAAe,OAiDP;AAhDjB,iDAAgD;AAkD9C,0FAlDO,qBAAS,OAkDP;AAjDX,mEAAkE;AAkDhE,mGAlDO,uCAAkB,OAkDP;AAjDpB,6EAAuD;AACvD,8CAAkE;AAoDhE,oFApDO,cAAG,OAoDP;AACH,0FArDY,oBAAS,OAqDZ;AACT,8FAtDuB,wBAAa,OAsDvB;AA/Cf,wFAGuD;AAoCrD,4FAtCA,oCAAW,OAsCA;AAFX,sFAnCA,8BAAK,OAmCA;AAhCP,+CAAgE;AAAvD,8GAAA,cAAc,OAAA;AAAE,8GAAA,cAAc,OAAA;AAEvC,SAAgB,UAAU;IACxB,OAAO,IAAA,uBAAa,GAAE,CAAC,UAAU,EAAE,CAAC;AACtC,CAAC;AAED,SAAgB,mBAAmB,CAAC,MAAc;IAChD,OAAQ,UAAU,EAAS,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;AAC1D,CAAC;AAED,SAAgB,UAAU;IACxB,OAAO,IAAA,uBAAa,GAAE,CAAC,UAAU,EAAE,CAAC;AACtC,CAAC;AAED,SAAgB,gBAAgB;IAC9B,OAAO,IAAA,uBAAa,GAAE,CAAC,gBAAgB,EAAE,CAAC;AAC5C,CAAC"}
|
package/dist/index.types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _GTProvider from './provider/GTProvider';
|
|
2
2
|
import _T from './server-dir/buildtime/T';
|
|
3
|
-
import { useTranslations as _useTranslations, useLocale as _useLocale, useLocales as _useLocales, useDefaultLocale as _useDefaultLocale, useGTClass as _useGTClass, useLocaleProperties as _useLocaleProperties, Currency as _Currency, DateTime as _DateTime, Num as _Num, Var as _Var, Branch as _Branch, Plural as _Plural, LocaleSelector as _LocaleSelector, RegionSelector as _RegionSelector, useLocaleDirection as _useLocaleDirection } from 'gt-react/client';
|
|
3
|
+
import { useTranslations as _useTranslations, useLocale as _useLocale, useLocales as _useLocales, useDefaultLocale as _useDefaultLocale, useGTClass as _useGTClass, useLocaleProperties as _useLocaleProperties, Currency as _Currency, DateTime as _DateTime, Num as _Num, Var as _Var, Branch as _Branch, Plural as _Plural, LocaleSelector as _LocaleSelector, RegionSelector as _RegionSelector, useLocaleDirection as _useLocaleDirection, Static as _Static } from 'gt-react/client';
|
|
4
4
|
import { DictionaryTranslationOptions, InlineTranslationOptions, RuntimeTranslationOptions } from 'gt-react';
|
|
5
5
|
import { msg, decodeMsg, decodeOptions, _Messages } from 'gt-react/internal';
|
|
6
6
|
/**
|
|
@@ -110,6 +110,16 @@ export declare const Num: typeof _Num;
|
|
|
110
110
|
* @returns {React.JSX.Element} The rendered variable component with either `children` or `value`.
|
|
111
111
|
*/
|
|
112
112
|
export declare const Var: typeof _Var;
|
|
113
|
+
/**
|
|
114
|
+
* The `<Static>` component allows you to render the output of a function invocation. Such a function MUST return
|
|
115
|
+
* only static content. If the function returns non-static content, the CLI tool will throw an error.
|
|
116
|
+
*
|
|
117
|
+
* Currently, this feature does not yet support <Suspense>.
|
|
118
|
+
*
|
|
119
|
+
* @param {T extends React.ReactNode} children - Static content to render.
|
|
120
|
+
* @returns {T} The static content.
|
|
121
|
+
*/
|
|
122
|
+
export declare const Static: typeof _Static;
|
|
113
123
|
/**
|
|
114
124
|
* The `<Branch>` component dynamically renders a specified branch of content or a fallback child component.
|
|
115
125
|
* It allows for flexible content switching based on the `branch` prop and an object of possible branches (`...branches`).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.types.d.ts","sourceRoot":"","sources":["../src/index.types.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAC1C,OAAO,
|
|
1
|
+
{"version":3,"file":"index.types.d.ts","sourceRoot":"","sources":["../src/index.types.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAC1C,OAAO,EACL,eAAe,IAAI,gBAAgB,EACnC,SAAS,IAAI,UAAU,EACvB,UAAU,IAAI,WAAW,EACzB,gBAAgB,IAAI,iBAAiB,EACrC,UAAU,IAAI,WAAW,EACzB,mBAAmB,IAAI,oBAAoB,EAC3C,QAAQ,IAAI,SAAS,EACrB,QAAQ,IAAI,SAAS,EACrB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ions = exports.decodeMsg = exports.msg = exports.useMessages = exports.RegionSelector = exports.useLocaleDirection = exports.useLocaleProperties = exports.useGTClass = exports.useDefaultLocale = exports.useLocales = exports.useLocale = exports.useTranslations = exports.useGT = exports.LocaleSelector = exports.Plural = exports.Branch = exports.Var = exports.Num = exports.DateTime = exports.Currency = exports.T = exports.GTProvider = void 0;
|
|
3
|
+
exports.decodeOptions = exports.decodeMsg = exports.msg = exports.useMessages = exports.RegionSelector = exports.useLocaleDirection = exports.useLocaleProperties = exports.useGTClass = exports.useDefaultLocale = exports.useLocales = exports.useLocale = exports.useTranslations = exports.useGT = exports.LocaleSelector = exports.Plural = exports.Branch = exports.Static = exports.Var = exports.Num = exports.DateTime = exports.Currency = exports.T = exports.GTProvider = void 0;
|
|
4
4
|
var createErrors_1 = require("./errors/createErrors");
|
|
5
5
|
var internal_1 = require("gt-react/internal");
|
|
6
6
|
Object.defineProperty(exports, "msg", { enumerable: true, get: function () { return internal_1.msg; } });
|
|
@@ -141,6 +141,19 @@ var Var = function () {
|
|
|
141
141
|
exports.Var = Var;
|
|
142
142
|
/** @internal _gtt - The GT transformation for the component. */
|
|
143
143
|
exports.Var._gtt = 'variable-variable';
|
|
144
|
+
/**
|
|
145
|
+
* The `<Static>` component allows you to render the output of a function invocation. Such a function MUST return
|
|
146
|
+
* only static content. If the function returns non-static content, the CLI tool will throw an error.
|
|
147
|
+
*
|
|
148
|
+
* Currently, this feature does not yet support <Suspense>.
|
|
149
|
+
*
|
|
150
|
+
* @param {T extends React.ReactNode} children - Static content to render.
|
|
151
|
+
* @returns {T} The static content.
|
|
152
|
+
*/
|
|
153
|
+
var Static = function () {
|
|
154
|
+
throw new Error(createErrors_1.typesFileError);
|
|
155
|
+
};
|
|
156
|
+
exports.Static = Static;
|
|
144
157
|
/**
|
|
145
158
|
* The `<Branch>` component dynamically renders a specified branch of content or a fallback child component.
|
|
146
159
|
* It allows for flexible content switching based on the `branch` prop and an object of possible branches (`...branches`).
|
package/dist/index.types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.types.js","sourceRoot":"","sources":["../src/index.types.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;
|
|
1
|
+
{"version":3,"file":"index.types.js","sourceRoot":"","sources":["../src/index.types.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AA0BvD,8CAA6E;AAgZpE,oFAhZA,cAAG,OAgZA;AAAE,0FAhZA,oBAAS,OAgZA;AAAE,8FAhZA,wBAAa,OAgZA;AA9YtC;;;;;;;;GAQG;AACI,IAAM,UAAU,GAAuB;IAC5C,MAAM,IAAI,KAAK,CAAC,6BAAc,CAAC,CAAC;AAClC,CAAC,CAAC;AAFW,QAAA,UAAU,cAErB;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACI,IAAM,CAAC,GAAc;IAC1B,MAAM,IAAI,KAAK,CAAC,6BAAc,CAAC,CAAC;AAClC,CAAC,CAAC;AAFW,QAAA,CAAC,KAEZ;AACF,gEAAgE;AAChE,SAAC,CAAC,IAAI,GAAG,WAAW,CAAC;AAErB;;;;;;;;;;;;;;;;GAgBG;AACI,IAAM,QAAQ,GAAqB;IACxC,MAAM,IAAI,KAAK,CAAC,6BAAc,CAAC,CAAC;AAClC,CAAC,CAAC;AAFW,QAAA,QAAQ,YAEnB;AACF,gEAAgE;AAChE,gBAAQ,CAAC,IAAI,GAAG,mBAAmB,CAAC;AAEpC;;;;;;;;;;;;;;GAcG;AACI,IAAM,QAAQ,GAAqB;IACxC,MAAM,IAAI,KAAK,CAAC,6BAAc,CAAC,CAAC;AAClC,CAAC,CAAC;AAFW,QAAA,QAAQ,YAEnB;AACF,gEAAgE;AAChE,gBAAQ,CAAC,IAAI,GAAG,mBAAmB,CAAC;AAEpC;;;;;;;;;;;;;;;;GAgBG;AACI,IAAM,GAAG,GAAgB;IAC9B,MAAM,IAAI,KAAK,CAAC,6BAAc,CAAC,CAAC;AAClC,CAAC,CAAC;AAFW,QAAA,GAA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
2
|
+
/**
|
|
3
|
+
* The `<Static>` component allows you to render the output of a function invocation. Such a function MUST return
|
|
4
|
+
* only static content. If the function returns non-static content, the CLI tool will throw an error.
|
|
5
|
+
*
|
|
6
|
+
* Currently, this feature does not yet support <Suspense>.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```jsx
|
|
10
|
+
* function getSubject() {
|
|
11
|
+
* return 'John';
|
|
12
|
+
* }
|
|
13
|
+
* ...
|
|
14
|
+
* <T>
|
|
15
|
+
* <Static>
|
|
16
|
+
* {getSubject()}
|
|
17
|
+
* </Static>
|
|
18
|
+
* is going to school today.
|
|
19
|
+
* </T>
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @param {T extends React.ReactNode} children - Static content to render.
|
|
23
|
+
* @returns {T} The static content.
|
|
24
|
+
*/
|
|
25
|
+
declare function Static<T extends React.ReactNode>({ children }: {
|
|
26
|
+
children: T;
|
|
27
|
+
}): T;
|
|
28
|
+
export default Static;
|
|
29
|
+
//# sourceMappingURL=Static.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Static.d.ts","sourceRoot":"","sources":["../../src/variables/Static.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,iBAAS,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,CAAC,CAAA;CAAE,GAAG,CAAC,CAE3E;AAED,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* The `<Static>` component allows you to render the output of a function invocation. Such a function MUST return
|
|
5
|
+
* only static content. If the function returns non-static content, the CLI tool will throw an error.
|
|
6
|
+
*
|
|
7
|
+
* Currently, this feature does not yet support <Suspense>.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```jsx
|
|
11
|
+
* function getSubject() {
|
|
12
|
+
* return 'John';
|
|
13
|
+
* }
|
|
14
|
+
* ...
|
|
15
|
+
* <T>
|
|
16
|
+
* <Static>
|
|
17
|
+
* {getSubject()}
|
|
18
|
+
* </Static>
|
|
19
|
+
* is going to school today.
|
|
20
|
+
* </T>
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @param {T extends React.ReactNode} children - Static content to render.
|
|
24
|
+
* @returns {T} The static content.
|
|
25
|
+
*/
|
|
26
|
+
function Static(_a) {
|
|
27
|
+
var children = _a.children;
|
|
28
|
+
return children;
|
|
29
|
+
}
|
|
30
|
+
exports.default = Static;
|
|
31
|
+
//# sourceMappingURL=Static.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Static.js","sourceRoot":"","sources":["../../src/variables/Static.tsx"],"names":[],"mappings":";;AAEA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAS,MAAM,CAA4B,EAA6B;QAA3B,QAAQ,cAAA;IACnD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,kBAAe,MAAM,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gt-next",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.8.0-alpha.0",
|
|
4
4
|
"description": "A Next.js library for automatic internationalization.",
|
|
5
5
|
"main": "dist/index.server.js",
|
|
6
6
|
"peerDependencies": {
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@generaltranslation/supported-locales": "2.0.21",
|
|
17
|
-
"@generaltranslation/compiler": "1.0.
|
|
17
|
+
"@generaltranslation/compiler": "1.1.0-alpha.0",
|
|
18
18
|
"generaltranslation": "7.9.0",
|
|
19
|
-
"gt-react": "10.
|
|
19
|
+
"gt-react": "10.7.0-alpha.3"
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|