gt-react 8.2.22 → 8.2.24
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/README.md +76 -9
- package/dist/branches/Branch.js +4 -4
- package/dist/branches/Branch.js.map +1 -1
- package/dist/branches/plurals/Plural.js +10 -10
- package/dist/branches/plurals/Plural.js.map +1 -1
- package/dist/branches/plurals/getPluralBranch.js +3 -3
- package/dist/branches/plurals/getPluralBranch.js.map +1 -1
- package/dist/client.cjs.min.cjs +19 -0
- package/dist/client.cjs.min.cjs.map +1 -0
- package/dist/client.d.ts +484 -5
- package/dist/client.d.ts.map +1 -1
- package/dist/client.esm.min.mjs +19 -0
- package/dist/client.esm.min.mjs.map +1 -0
- package/dist/client.js +3 -3
- package/dist/client.js.map +1 -1
- package/dist/hooks/useBrowserLocale.d.ts.map +1 -1
- package/dist/hooks/useBrowserLocale.js +8 -10
- package/dist/hooks/useBrowserLocale.js.map +1 -1
- package/dist/hooks/useDefaultLocale.js +1 -1
- package/dist/hooks/useDefaultLocale.js.map +1 -1
- package/dist/hooks/useElement.js +11 -14
- package/dist/hooks/useElement.js.map +1 -1
- package/dist/hooks/useGT.js +9 -12
- package/dist/hooks/useGT.js.map +1 -1
- package/dist/hooks/useLocale.js +1 -1
- package/dist/hooks/useLocale.js.map +1 -1
- package/dist/index.cjs.min.cjs +19 -0
- package/dist/index.cjs.min.cjs.map +1 -0
- package/dist/index.esm.min.mjs +19 -0
- package/dist/index.esm.min.mjs.map +1 -0
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/dist/inline/T.d.ts +1 -1
- package/dist/inline/T.d.ts.map +1 -1
- package/dist/inline/T.js +38 -51
- package/dist/inline/T.js.map +1 -1
- package/dist/internal/addGTIdentifier.js +18 -32
- package/dist/internal/addGTIdentifier.js.map +1 -1
- package/dist/internal/flattenDictionary.js +8 -11
- package/dist/internal/flattenDictionary.js.map +1 -1
- package/dist/internal/writeChildrenAsObjects.js +22 -35
- package/dist/internal/writeChildrenAsObjects.js.map +1 -1
- package/dist/internal.cjs.min.cjs +2 -0
- package/dist/internal.cjs.min.cjs.map +1 -0
- package/dist/internal.d.ts +16 -17
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.esm.min.mjs +2 -0
- package/dist/internal.esm.min.mjs.map +1 -0
- package/dist/internal.js +15 -15
- package/dist/internal.js.map +1 -1
- package/dist/messages/createMessages.js +16 -38
- package/dist/messages/createMessages.js.map +1 -1
- package/dist/provider/ClientProvider.d.ts +23 -0
- package/dist/provider/ClientProvider.d.ts.map +1 -0
- package/dist/provider/GTContext.d.ts +1 -1
- package/dist/provider/GTContext.d.ts.map +1 -1
- package/dist/provider/GTContext.js +3 -4
- package/dist/provider/GTContext.js.map +1 -1
- package/dist/provider/GTProvider.d.ts +2 -2
- package/dist/provider/GTProvider.d.ts.map +1 -1
- package/dist/provider/GTProvider.js +95 -146
- package/dist/provider/GTProvider.js.map +1 -1
- package/dist/provider/helpers/extractEntryMetadata.d.ts +3 -3
- package/dist/provider/helpers/extractEntryMetadata.d.ts.map +1 -1
- package/dist/provider/helpers/getDictionaryEntry.js +5 -6
- package/dist/provider/helpers/getDictionaryEntry.js.map +1 -1
- package/dist/provider/helpers/isVariableObject.js +2 -2
- package/dist/provider/helpers/isVariableObject.js.map +1 -1
- package/dist/provider/rendering/defaultRenderSettings.js +2 -13
- package/dist/provider/rendering/defaultRenderSettings.js.map +1 -1
- package/dist/provider/rendering/renderDefaultChildren.d.ts +2 -2
- package/dist/provider/rendering/renderDefaultChildren.js +32 -44
- package/dist/provider/rendering/renderDefaultChildren.js.map +1 -1
- package/dist/provider/rendering/renderTranslatedChildren.js +97 -110
- package/dist/provider/rendering/renderTranslatedChildren.js.map +1 -1
- package/dist/provider/rendering/renderVariable.js +6 -7
- package/dist/provider/rendering/renderVariable.js.map +1 -1
- package/dist/provider/runtime/useRuntimeTranslation.d.ts +1 -1
- package/dist/provider/runtime/useRuntimeTranslation.d.ts.map +1 -1
- package/dist/provider/runtime/useRuntimeTranslation.js +171 -239
- package/dist/provider/runtime/useRuntimeTranslation.js.map +1 -1
- package/dist/types/types.d.ts +22 -8
- package/dist/types/types.d.ts.map +1 -1
- package/dist/utils/utils.js +5 -5
- package/dist/utils/utils.js.map +1 -1
- package/dist/variables/Currency.js +11 -23
- package/dist/variables/Currency.js.map +1 -1
- package/dist/variables/DateTime.js +10 -11
- package/dist/variables/DateTime.js.map +1 -1
- package/dist/variables/Num.js +9 -10
- package/dist/variables/Num.js.map +1 -1
- package/dist/variables/Var.js +3 -4
- package/dist/variables/Var.js.map +1 -1
- package/dist/variables/_getVariableProps.js +7 -18
- package/dist/variables/_getVariableProps.js.map +1 -1
- package/dist/variables/getVariableName.js +5 -7
- package/dist/variables/getVariableName.js.map +1 -1
- package/package.json +31 -14
- package/rollup.base.config.js +33 -0
- package/rollup.config.js +111 -0
- package/tsconfig.json +3 -2
- package/dist/errors/createErrors.d.ts +0 -13
- package/dist/errors/createErrors.d.ts.map +0 -1
- package/dist/errors/createErrors.js +0 -28
- package/dist/errors/createErrors.js.map +0 -1
- package/dist/provider/dynamic/useDynamicTranslation.d.ts +0 -28
- package/dist/provider/dynamic/useDynamicTranslation.d.ts.map +0 -1
- package/dist/provider/dynamic/useDynamicTranslation.js +0 -194
- package/dist/provider/dynamic/useDynamicTranslation.js.map +0 -1
- package/dist/provider/dynamic/useRuntimeTranslation.d.ts +0 -28
- package/dist/provider/dynamic/useRuntimeTranslation.d.ts.map +0 -1
- package/dist/provider/dynamic/useRuntimeTranslation.js +0 -194
- package/dist/provider/dynamic/useRuntimeTranslation.js.map +0 -1
- package/dist/translate/translateDictionaryStrings.d.ts +0 -3
- package/dist/translate/translateDictionaryStrings.d.ts.map +0 -1
- package/dist/translate/translateDictionaryStrings.js +0 -97
- package/dist/translate/translateDictionaryStrings.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types/types.ts"],"names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ule", { value: true });
|
|
|
6
6
|
exports.isTranslatedContent = isTranslatedContent;
|
|
7
7
|
exports.isValidTaggedElement = isValidTaggedElement;
|
|
8
8
|
exports.isEmptyReactFragment = isEmptyReactFragment;
|
|
9
|
-
|
|
9
|
+
const react_1 = __importDefault(require("react"));
|
|
10
10
|
function isTranslatedContent(target) {
|
|
11
11
|
if (typeof target === "string") {
|
|
12
12
|
return true;
|
|
@@ -14,13 +14,13 @@ function isTranslatedContent(target) {
|
|
|
14
14
|
if (!Array.isArray(target)) {
|
|
15
15
|
return false;
|
|
16
16
|
}
|
|
17
|
-
return target.every(
|
|
17
|
+
return target.every((item) => {
|
|
18
18
|
if (typeof item === "string") {
|
|
19
19
|
return true;
|
|
20
20
|
}
|
|
21
21
|
if (typeof item === "object" && item !== null) {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
const hasKey = "key" in item && typeof item.key === "string";
|
|
23
|
+
const hasValidVariable = item.variable === undefined || typeof item.variable === "string";
|
|
24
24
|
return hasKey && hasValidVariable;
|
|
25
25
|
}
|
|
26
26
|
return false;
|
|
@@ -31,7 +31,7 @@ function isValidTaggedElement(target) {
|
|
|
31
31
|
}
|
|
32
32
|
function isEmptyReactFragment(target) {
|
|
33
33
|
if (react_1.default.isValidElement(target) && target.type === react_1.default.Fragment) {
|
|
34
|
-
|
|
34
|
+
const props = target.props;
|
|
35
35
|
return !props.children || react_1.default.Children.count(props.children) === 0;
|
|
36
36
|
}
|
|
37
37
|
return false;
|
package/dist/utils/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.tsx"],"names":[],"mappings":";;;;;AAOA,kDAyBC;AAED,oDAEC;AAED,oDAQC;AA9CD,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.tsx"],"names":[],"mappings":";;;;;AAOA,kDAyBC;AAED,oDAEC;AAED,oDAQC;AA9CD,kDAA0B;AAO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@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
4
|
};
|
|
16
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const generaltranslation_1 = require("generaltranslation");
|
|
8
|
+
const useLocale_1 = __importDefault(require("../hooks/useLocale"));
|
|
9
|
+
const useDefaultLocale_1 = __importDefault(require("../hooks/useDefaultLocale"));
|
|
21
10
|
/**
|
|
22
11
|
* The `<Currency>` component renders a formatted currency string, allowing customization of name, default value, currency type, and formatting options.
|
|
23
12
|
* Must be used inside a `<GTProvider>`.
|
|
@@ -39,11 +28,10 @@ var useDefaultLocale_1 = __importDefault(require("../hooks/useDefaultLocale"));
|
|
|
39
28
|
* @param {Intl.NumberFormatOptions} [options] - Optional formatting options to customize how the currency is displayed.
|
|
40
29
|
* @returns {JSX.Element} The formatted currency component.
|
|
41
30
|
*/
|
|
42
|
-
function Currency(
|
|
43
|
-
|
|
44
|
-
var providerLocales = [(0, useLocale_1.default)(), (0, useDefaultLocale_1.default)()];
|
|
31
|
+
function Currency({ children, value, name, currency = "USD", locales, options = {}, }) {
|
|
32
|
+
const providerLocales = [(0, useLocale_1.default)(), (0, useDefaultLocale_1.default)()];
|
|
45
33
|
locales || (locales = providerLocales);
|
|
46
|
-
|
|
34
|
+
let renderedValue = typeof children !== "undefined" && typeof value === "undefined"
|
|
47
35
|
? children
|
|
48
36
|
: value;
|
|
49
37
|
renderedValue =
|
|
@@ -54,12 +42,12 @@ function Currency(_a) {
|
|
|
54
42
|
if (typeof renderedValue === "number") {
|
|
55
43
|
renderedValue = (0, generaltranslation_1.formatCurrency)({
|
|
56
44
|
value: renderedValue,
|
|
57
|
-
locales
|
|
58
|
-
currency
|
|
59
|
-
options
|
|
45
|
+
locales,
|
|
46
|
+
currency,
|
|
47
|
+
options,
|
|
60
48
|
});
|
|
61
49
|
}
|
|
62
|
-
return ((0, jsx_runtime_1.jsx)("span", { "data-_gt-variable-name": name, "data-_gt-variable-type": "currency", "data-_gt-variable-options": JSON.stringify(
|
|
50
|
+
return ((0, jsx_runtime_1.jsx)("span", { "data-_gt-variable-name": name, "data-_gt-variable-type": "currency", "data-_gt-variable-options": JSON.stringify(Object.assign({ style: "currency", currency }, options)), style: { display: "contents" }, suppressHydrationWarning: true, children: renderedValue }));
|
|
63
51
|
}
|
|
64
52
|
// Static property to indicate the transformation type
|
|
65
53
|
Currency.gtTransformation = "variable-currency";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Currency.js","sourceRoot":"","sources":["../../src/variables/Currency.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Currency.js","sourceRoot":"","sources":["../../src/variables/Currency.tsx"],"names":[],"mappings":";;;;;;AACA,2DAAoD;AACpD,mEAA2C;AAC3C,iFAAyD;AAEzD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAS,QAAQ,CAAC,EAChB,QAAQ,EACR,KAAK,EACL,IAAI,EACJ,QAAQ,GAAG,KAAK,EAChB,OAAO,EACP,OAAO,GAAG,EAAE,GAQb;IACC,MAAM,eAAe,GAAG,CAAC,IAAA,mBAAS,GAAE,EAAE,IAAA,0BAAgB,GAAE,CAAC,CAAC;IAC1D,OAAO,KAAP,OAAO,GAAK,eAAe,EAAC;IAE5B,IAAI,aAAa,GACf,OAAO,QAAQ,KAAK,WAAW,IAAI,OAAO,KAAK,KAAK,WAAW;QAC7D,CAAC,CAAC,QAAQ;QACV,CAAC,CAAC,KAAK,CAAC;IACZ,aAAa;QACX,OAAO,aAAa,KAAK,QAAQ;YAC/B,CAAC,CAAC,UAAU,CAAC,aAAa,CAAC;YAC3B,CAAC,CAAC,aAAa,CAAC;IACpB,2CAA2C;IAC3C,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;QACtC,aAAa,GAAG,IAAA,mCAAc,EAAC;YAC7B,KAAK,EAAE,aAAa;YACpB,OAAO;YACP,QAAQ;YACR,OAAO;SACR,CAAC,CAAC;IACL,CAAC;IAED,OAAO,CACL,2DAC0B,IAAI,4BACJ,UAAU,+BACP,IAAI,CAAC,SAAS,iBACvC,KAAK,EAAE,UAAU,EACjB,QAAQ,IACL,OAAO,EACV,EACF,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,EAC9B,wBAAwB,kBAEvB,aAAa,GACT,CACR,CAAC;AACJ,CAAC;AAED,sDAAsD;AACtD,QAAQ,CAAC,gBAAgB,GAAG,mBAAmB,CAAC;AAEhD,kBAAe,QAAQ,CAAC"}
|
|
@@ -3,10 +3,10 @@ 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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const generaltranslation_1 = require("generaltranslation");
|
|
8
|
+
const useLocale_1 = __importDefault(require("../hooks/useLocale"));
|
|
9
|
+
const useDefaultLocale_1 = __importDefault(require("../hooks/useDefaultLocale"));
|
|
10
10
|
/**
|
|
11
11
|
* The `<DateTime>` component renders a formatted date or time string, allowing customization of the name, default value, and formatting options.
|
|
12
12
|
* It utilizes the current locale and optional format settings to display the date.
|
|
@@ -27,13 +27,12 @@ var useDefaultLocale_1 = __importDefault(require("../hooks/useDefaultLocale"));
|
|
|
27
27
|
* @param {Intl.DateTimeFormatOptions} [options={}] - Optional formatting options for the date, following `Intl.DateTimeFormatOptions` specifications.
|
|
28
28
|
* @returns {JSX.Element} The formatted date or time component.
|
|
29
29
|
*/
|
|
30
|
-
function DateTime(
|
|
31
|
-
|
|
32
|
-
var providerLocales = [(0, useLocale_1.default)(), (0, useDefaultLocale_1.default)()];
|
|
30
|
+
function DateTime({ children, value, name, locales, options = {}, }) {
|
|
31
|
+
const providerLocales = [(0, useLocale_1.default)(), (0, useDefaultLocale_1.default)()];
|
|
33
32
|
locales || (locales = providerLocales);
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
let final;
|
|
34
|
+
let dateValue;
|
|
35
|
+
let defaultValue = typeof children !== "undefined" && typeof value === "undefined"
|
|
37
36
|
? children
|
|
38
37
|
: value;
|
|
39
38
|
if (typeof defaultValue === "number") {
|
|
@@ -46,7 +45,7 @@ function DateTime(_a) {
|
|
|
46
45
|
dateValue = defaultValue;
|
|
47
46
|
}
|
|
48
47
|
if (typeof dateValue !== "undefined") {
|
|
49
|
-
final = (0, generaltranslation_1.formatDateTime)({ value: dateValue, locales
|
|
48
|
+
final = (0, generaltranslation_1.formatDateTime)({ value: dateValue, locales, options }).replace(/[\u200F\u202B\u202E]/g, "");
|
|
50
49
|
}
|
|
51
50
|
// Render the formatted date within a span element
|
|
52
51
|
return ((0, jsx_runtime_1.jsx)("span", { "data-_gt-variable-name": name, "data-_gt-variable-type": "date", "data-_gt-variable-options": JSON.stringify(options), style: { display: "contents" }, suppressHydrationWarning: true, children: final }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTime.js","sourceRoot":"","sources":["../../src/variables/DateTime.tsx"],"names":[],"mappings":";;;;;;AACA,
|
|
1
|
+
{"version":3,"file":"DateTime.js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AwB,kBAEvB,KAAK,GACD,CACR,CAAC;AACJ,CAAC;AAED,0CAA0C;AAC1C,QAAQ,CAAC,gBAAgB,GAAG,mBAAmB,CAAC;AAEhD,kBAAe,QAAQ,CAAC"}
|
package/dist/variables/Num.js
CHANGED
|
@@ -3,10 +3,10 @@ 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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const generaltranslation_1 = require("generaltranslation");
|
|
8
|
+
const useLocale_1 = __importDefault(require("../hooks/useLocale"));
|
|
9
|
+
const useDefaultLocale_1 = __importDefault(require("../hooks/useDefaultLocale"));
|
|
10
10
|
/**
|
|
11
11
|
* The `<Num>` component renders a formatted number string, allowing customization of the name, default value, and formatting options.
|
|
12
12
|
* It formats the number according to the current locale and optionally passed formatting options.
|
|
@@ -28,19 +28,18 @@ var useDefaultLocale_1 = __importDefault(require("../hooks/useDefaultLocale"));
|
|
|
28
28
|
* @param {Intl.NumberFormatOptions} [options={}] - Optional formatting options for the number, following `Intl.NumberFormatOptions` specifications.
|
|
29
29
|
* @returns {JSX.Element} The formatted number component.
|
|
30
30
|
*/
|
|
31
|
-
function Num(
|
|
32
|
-
|
|
33
|
-
var providerLocales = [(0, useLocale_1.default)(), (0, useDefaultLocale_1.default)()];
|
|
31
|
+
function Num({ children, value, name, locales, options = {}, }) {
|
|
32
|
+
const providerLocales = [(0, useLocale_1.default)(), (0, useDefaultLocale_1.default)()];
|
|
34
33
|
locales || (locales = providerLocales);
|
|
35
|
-
|
|
34
|
+
let renderedValue = typeof children !== "undefined" ? children : value;
|
|
36
35
|
renderedValue =
|
|
37
36
|
typeof renderedValue === "string"
|
|
38
37
|
? parseFloat(renderedValue)
|
|
39
38
|
: renderedValue;
|
|
40
|
-
|
|
39
|
+
let formattedValue = renderedValue;
|
|
41
40
|
if (typeof renderedValue === "number") {
|
|
42
41
|
// Using Intl.NumberFormat for consistent number formatting
|
|
43
|
-
formattedValue = (0, generaltranslation_1.formatNum)({ value: renderedValue, locales
|
|
42
|
+
formattedValue = (0, generaltranslation_1.formatNum)({ value: renderedValue, locales, options });
|
|
44
43
|
}
|
|
45
44
|
return ((0, jsx_runtime_1.jsx)("span", { "data-_gt-variable-name": name, "data-_gt-variable-type": "number", "data-_gt-variable-options": JSON.stringify(options), style: { display: "contents" }, suppressHydrationWarning: true, children: formattedValue }));
|
|
46
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Num.js","sourceRoot":"","sources":["../../src/variables/Num.tsx"],"names":[],"mappings":";;;;;;AACA,
|
|
1
|
+
{"version":3,"file":"Num.js","sourceRoot":"","sources":["../../src/variables/Num.tsx"],"names":[],"mappings":";;;;;;AACA,2DAA+C;AAC/C,mEAA2C;AAC3C,iFAAyD;AAEzD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAS,GAAG,CAAC,EACX,QAAQ,EACR,KAAK,EACL,IAAI,EACJ,OAAO,EACP,OAAO,GAAG,EAAE,GAOb;IACC,MAAM,eAAe,GAAG,CAAC,IAAA,mBAAS,GAAE,EAAE,IAAA,0BAAgB,GAAE,CAAC,CAAC;IAC1D,OAAO,KAAP,OAAO,GAAK,eAAe,EAAC;IAE5B,IAAI,aAAa,GAAG,OAAO,QAAQ,KAAK,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC;IACvE,aAAa;QACX,OAAO,aAAa,KAAK,QAAQ;YAC/B,CAAC,CAAC,UAAU,CAAC,aAAa,CAAC;YAC3B,CAAC,CAAC,aAAa,CAAC;IACpB,IAAI,cAAc,GAAG,aAAa,CAAC;IACnC,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;QACtC,2DAA2D;QAC3D,cAAc,GAAG,IAAA,8BAAS,EAAC,EAAE,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED,OAAO,CACL,2DAC0B,IAAI,4BACJ,QAAQ,+BACL,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAClD,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,EAC9B,wBAAwB,kBAEvB,cAAc,GACV,CACR,CAAC;AACJ,CAAC;AAED,GAAG,CAAC,gBAAgB,GAAG,iBAAiB,CAAC;AAEzC,kBAAe,GAAG,CAAC"}
|
package/dist/variables/Var.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
3
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
4
|
/**
|
|
5
5
|
* The `<Var>` component renders a variable value, which can either be passed as `children` or a `value`.
|
|
6
6
|
* If `children` is provided, it will be used; otherwise, the `value` is rendered.
|
|
@@ -46,9 +46,8 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
46
46
|
* @param {any} [value] - The default value to be displayed if `children` is not provided.
|
|
47
47
|
* @returns {JSX.Element} The rendered variable component with either `children` or `value`.
|
|
48
48
|
*/
|
|
49
|
-
function Var(
|
|
50
|
-
|
|
51
|
-
var final = typeof children !== "undefined" ? children : value;
|
|
49
|
+
function Var({ children, name, value, }) {
|
|
50
|
+
let final = typeof children !== "undefined" ? children : value;
|
|
52
51
|
return ((0, jsx_runtime_1.jsx)("span", { "data-_gt-variable-name": name, "data-_gt-variable-type": "variable", style: { display: "contents" }, children: final }));
|
|
53
52
|
}
|
|
54
53
|
Var.gtTransformation = "variable-variable";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Var.js","sourceRoot":"","sources":["../../src/variables/Var.tsx"],"names":[],"mappings":";;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,SAAS,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"Var.js","sourceRoot":"","sources":["../../src/variables/Var.tsx"],"names":[],"mappings":";;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,SAAS,GAAG,CAAC,EACX,QAAQ,EACR,IAAI,EACJ,KAAK,GAKN;IACC,IAAI,KAAK,GAAG,OAAO,QAAQ,KAAK,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC;IAE/D,OAAO,CACL,2DAC0B,IAAI,4BACJ,UAAU,EAClC,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,YAE7B,KAAK,GACD,CACR,CAAC;AACJ,CAAC;AAED,GAAG,CAAC,gBAAgB,GAAG,mBAAmB,CAAC;AAE3C,kBAAe,GAAG,CAAC"}
|
|
@@ -1,28 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
4
|
};
|
|
16
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
6
|
exports.default = getVariableProps;
|
|
18
|
-
|
|
7
|
+
const getVariableName_1 = __importDefault(require("./getVariableName"));
|
|
19
8
|
function getVariableProps(props) {
|
|
20
9
|
var _a;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
variableType
|
|
10
|
+
const variableType = ((_a = props["data-_gt"]) === null || _a === void 0 ? void 0 : _a.variableType) || "variable";
|
|
11
|
+
const result = {
|
|
12
|
+
variableType,
|
|
24
13
|
variableName: (0, getVariableName_1.default)(props, variableType),
|
|
25
|
-
variableValue: (
|
|
14
|
+
variableValue: (() => {
|
|
26
15
|
if (typeof props.value !== "undefined")
|
|
27
16
|
return props.value;
|
|
28
17
|
if (typeof props["data-_gt-unformatted-value"] !== "undefined")
|
|
@@ -31,8 +20,8 @@ function getVariableProps(props) {
|
|
|
31
20
|
return props.children;
|
|
32
21
|
return undefined;
|
|
33
22
|
})(),
|
|
34
|
-
variableOptions: (
|
|
35
|
-
|
|
23
|
+
variableOptions: (() => {
|
|
24
|
+
const variableOptions = Object.assign(Object.assign({}, (props.currency && { currency: props.currency })), (props.options && Object.assign({}, props.options)));
|
|
36
25
|
if (Object.keys(variableOptions).length)
|
|
37
26
|
return variableOptions;
|
|
38
27
|
if (typeof props["data-_gt-variable-options"] === "string")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_getVariableProps.js","sourceRoot":"","sources":["../../src/variables/_getVariableProps.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"_getVariableProps.js","sourceRoot":"","sources":["../../src/variables/_getVariableProps.ts"],"names":[],"mappings":";;;;;AAEA,mCAsCC;AAxCD,wEAAgD;AAEhD,SAAwB,gBAAgB,CAAC,KAMxC;;IACC,MAAM,YAAY,GAChB,CAAA,MAAA,KAAK,CAAC,UAAU,CAAC,0CAAE,YAAY,KAAI,UAAU,CAAC;IAEhD,MAAM,MAAM,GAKR;QACF,YAAY;QACZ,YAAY,EAAE,IAAA,yBAAe,EAAC,KAAK,EAAE,YAAY,CAAC;QAClD,aAAa,EAAE,CAAC,GAAG,EAAE;YACnB,IAAI,OAAO,KAAK,CAAC,KAAK,KAAK,WAAW;gBAAE,OAAO,KAAK,CAAC,KAAK,CAAC;YAC3D,IAAI,OAAO,KAAK,CAAC,4BAA4B,CAAC,KAAK,WAAW;gBAC5D,OAAO,KAAK,CAAC,4BAA4B,CAAC,CAAC;YAC7C,IAAI,OAAO,KAAK,CAAC,QAAQ,KAAK,WAAW;gBAAE,OAAO,KAAK,CAAC,QAAQ,CAAC;YACjE,OAAO,SAAS,CAAC;QACnB,CAAC,CAAC,EAAE;QACJ,eAAe,EAAE,CAAC,GAAG,EAAE;YACrB,MAAM,eAAe,mCAChB,CAAC,KAAK,CAAC,QAAQ,IAAI,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,GAChD,CAAC,KAAK,CAAC,OAAO,sBAAS,KAAK,CAAC,OAAO,CAAE,CAAC,CAC3C,CAAC;YACF,IAAI,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,MAAM;gBAAE,OAAO,eAAe,CAAC;YAChE,IAAI,OAAO,KAAK,CAAC,2BAA2B,CAAC,KAAK,QAAQ;gBACxD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC,CAAC;YACxD,OAAO,KAAK,CAAC,2BAA2B,CAAC,IAAI,SAAS,CAAC;QACzD,CAAC,CAAC,EAAE;KACL,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -3,25 +3,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.baseVariablePrefix = void 0;
|
|
4
4
|
exports.getFallbackVariableName = getFallbackVariableName;
|
|
5
5
|
exports.default = getVariableName;
|
|
6
|
-
|
|
6
|
+
const defaultVariableNames = {
|
|
7
7
|
variable: "value",
|
|
8
8
|
number: "n",
|
|
9
9
|
datetime: "date",
|
|
10
10
|
currency: "cost",
|
|
11
11
|
};
|
|
12
|
-
function getFallbackVariableName(variableType) {
|
|
13
|
-
if (variableType === void 0) { variableType = "variable"; }
|
|
12
|
+
function getFallbackVariableName(variableType = "variable") {
|
|
14
13
|
return defaultVariableNames[variableType] || "variable";
|
|
15
14
|
}
|
|
16
15
|
exports.baseVariablePrefix = "_gt_";
|
|
17
|
-
function getVariableName(props, variableType) {
|
|
16
|
+
function getVariableName(props = {}, variableType) {
|
|
18
17
|
var _a;
|
|
19
|
-
if (props === void 0) { props = {}; }
|
|
20
18
|
if (props.name)
|
|
21
19
|
return props.name;
|
|
22
20
|
if (props["data-_gt-variable-name"])
|
|
23
21
|
return props["data-_gt-variable-name"];
|
|
24
|
-
|
|
25
|
-
return
|
|
22
|
+
const baseVariableName = defaultVariableNames[variableType] || "value";
|
|
23
|
+
return `${exports.baseVariablePrefix}${baseVariableName}_${(_a = props["data-_gt"]) === null || _a === void 0 ? void 0 : _a.id}`;
|
|
26
24
|
}
|
|
27
25
|
//# sourceMappingURL=getVariableName.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getVariableName.js","sourceRoot":"","sources":["../../src/variables/getVariableName.ts"],"names":[],"mappings":";;;AAOA,0DAIC;AAID,kCASC;AAxBD,
|
|
1
|
+
{"version":3,"file":"getVariableName.js","sourceRoot":"","sources":["../../src/variables/getVariableName.ts"],"names":[],"mappings":";;;AAOA,0DAIC;AAID,kCASC;AAxBD,MAAM,oBAAoB,GAAG;IAC3B,QAAQ,EAAE,OAAO;IACjB,MAAM,EAAE,GAAG;IACX,QAAQ,EAAE,MAAM;IAChB,QAAQ,EAAE,MAAM;CACR,CAAC;AAEX,SAAgB,uBAAuB,CACrC,eAAuB,UAAU;IAEjC,OAAQ,oBAA4B,CAAC,YAAY,CAAC,IAAI,UAAU,CAAC;AACnE,CAAC;AAEY,QAAA,kBAAkB,GAAG,MAAM,CAAC;AAEzC,SAAwB,eAAe,CACrC,QAA6B,EAAE,EAC/B,YAAoB;;IAEpB,IAAI,KAAK,CAAC,IAAI;QAAE,OAAO,KAAK,CAAC,IAAI,CAAC;IAClC,IAAI,KAAK,CAAC,wBAAwB,CAAC;QAAE,OAAO,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC5E,MAAM,gBAAgB,GACnB,oBAA4C,CAAC,YAAY,CAAC,IAAI,OAAO,CAAC;IACzE,OAAO,GAAG,0BAAkB,GAAG,gBAAgB,IAAI,MAAA,KAAK,CAAC,UAAU,CAAC,0CAAE,EAAE,EAAE,CAAC;AAC7E,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gt-react",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.24",
|
|
4
4
|
"description": "A React library for automatic internationalization.",
|
|
5
|
-
"main": "dist/index.
|
|
6
|
-
"
|
|
5
|
+
"main": "./dist/index.cjs.min.cjs",
|
|
6
|
+
"module": "./dist/index.esm.min.mjs",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
7
8
|
"peerDependencies": {
|
|
8
9
|
"react": ">=16.8.0 <20.0.0",
|
|
9
10
|
"react-dom": ">=16.8.0 <20.0.0"
|
|
@@ -11,37 +12,53 @@
|
|
|
11
12
|
"scripts": {
|
|
12
13
|
"patch": "npm version patch",
|
|
13
14
|
"transpile": "tsc",
|
|
14
|
-
"build": "
|
|
15
|
+
"build": "rollup -c",
|
|
16
|
+
"build:clean": "rm -rf dist; npm run build",
|
|
17
|
+
"publish": "npm run build:clean && npm publish",
|
|
15
18
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
16
19
|
},
|
|
17
20
|
"repository": {
|
|
18
21
|
"type": "git",
|
|
19
|
-
"url": "git+https://github.com/general-translation/gt-
|
|
22
|
+
"url": "git+https://github.com/general-translation/gt-libraries.git"
|
|
20
23
|
},
|
|
21
24
|
"author": "General Translation, Inc.",
|
|
22
25
|
"license": "FSL-1.1-ALv2",
|
|
23
26
|
"bugs": {
|
|
24
|
-
"url": "https://github.com/general-translation/gt-
|
|
27
|
+
"url": "https://github.com/general-translation/gt-libraries/issues"
|
|
25
28
|
},
|
|
26
|
-
"homepage": "https://github.com/general-translation/gt-
|
|
29
|
+
"homepage": "https://github.com/general-translation/gt-libraries#readme",
|
|
27
30
|
"devDependencies": {
|
|
31
|
+
"@babel/preset-react": "^7.26.3",
|
|
32
|
+
"@babel/preset-typescript": "^7.26.0",
|
|
33
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
34
|
+
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
28
35
|
"@types/node": ">=20.0.0 <23.0.0",
|
|
29
36
|
"@types/react": ">=18.0.0 <20.0.0",
|
|
30
37
|
"@types/react-dom": ">=18.0.0 <20.0.0",
|
|
38
|
+
"babel-core": "^6.26.3",
|
|
39
|
+
"babel-loader": "^9.2.1",
|
|
40
|
+
"rollup": "^4.32.1",
|
|
41
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
42
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
43
|
+
"rollup-preserve-directives": "^1.1.3",
|
|
31
44
|
"typescript": "^5.7.3"
|
|
32
45
|
},
|
|
33
46
|
"exports": {
|
|
34
47
|
".": {
|
|
35
48
|
"types": "./dist/index.d.ts",
|
|
36
|
-
"
|
|
49
|
+
"require": "./dist/index.cjs.min.cjs",
|
|
50
|
+
"import": "./dist/index.esm.min.mjs",
|
|
51
|
+
"default": "./dist/index.esm.min.mjs"
|
|
37
52
|
},
|
|
38
53
|
"./internal": {
|
|
39
54
|
"types": "./dist/internal.d.ts",
|
|
40
|
-
"
|
|
55
|
+
"require": "./dist/internal.cjs.min.cjs",
|
|
56
|
+
"import": "./dist/internal.esm.min.mjs"
|
|
41
57
|
},
|
|
42
58
|
"./client": {
|
|
43
59
|
"types": "./dist/client.d.ts",
|
|
44
|
-
"
|
|
60
|
+
"require": "./dist/client.cjs.min.cjs",
|
|
61
|
+
"import": "./dist/client.esm.min.mjs"
|
|
45
62
|
}
|
|
46
63
|
},
|
|
47
64
|
"typesVersions": {
|
|
@@ -58,10 +75,10 @@
|
|
|
58
75
|
"baseUrl": ".",
|
|
59
76
|
"paths": {
|
|
60
77
|
"gt-react/client": [
|
|
61
|
-
"
|
|
78
|
+
"./dist/client"
|
|
62
79
|
],
|
|
63
80
|
"gt-react/internal": [
|
|
64
|
-
"
|
|
81
|
+
"./dist/internal"
|
|
65
82
|
]
|
|
66
83
|
}
|
|
67
84
|
},
|
|
@@ -73,7 +90,7 @@
|
|
|
73
90
|
"i18n"
|
|
74
91
|
],
|
|
75
92
|
"dependencies": {
|
|
76
|
-
"@generaltranslation/supported-locales": "^1.1.
|
|
77
|
-
"generaltranslation": "^6.1.
|
|
93
|
+
"@generaltranslation/supported-locales": "^1.1.5",
|
|
94
|
+
"generaltranslation": "^6.1.6"
|
|
78
95
|
}
|
|
79
96
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import resolve from '@rollup/plugin-node-resolve';
|
|
2
|
+
import commonjs from '@rollup/plugin-commonjs';
|
|
3
|
+
import typescript from '@rollup/plugin-typescript';
|
|
4
|
+
import postcss from 'rollup-plugin-postcss';
|
|
5
|
+
import peerDepsExternal from 'rollup-plugin-peer-deps-external';
|
|
6
|
+
import { babel } from '@rollup/plugin-babel';
|
|
7
|
+
import preserveDirectives from 'rollup-preserve-directives';
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
plugins: [
|
|
11
|
+
peerDepsExternal(), // Exclude peer dependencies from the bundle
|
|
12
|
+
resolve({
|
|
13
|
+
// Locates and bundles dependencies in node_modules
|
|
14
|
+
browser: true,
|
|
15
|
+
preferBuiltins: false,
|
|
16
|
+
}),
|
|
17
|
+
commonjs(), // Converts CommonJS modules to ES6
|
|
18
|
+
babel({
|
|
19
|
+
// Transpiles the code using Babel
|
|
20
|
+
babelHelpers: 'bundled',
|
|
21
|
+
exclude: /node_modules/,
|
|
22
|
+
presets: ['@babel/preset-react', '@babel/preset-typescript'],
|
|
23
|
+
}),
|
|
24
|
+
typescript({
|
|
25
|
+
// Compiles TypeScript files
|
|
26
|
+
tsconfig: './tsconfig.json',
|
|
27
|
+
outputToFilesystem: true,
|
|
28
|
+
}),
|
|
29
|
+
postcss(), // Process CSS files
|
|
30
|
+
preserveDirectives(), // Preserve directives in the output (i.e., "use client")
|
|
31
|
+
],
|
|
32
|
+
external: ['generaltranslation', '@generaltranslation/supported-locales'],
|
|
33
|
+
};
|
package/rollup.config.js
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import baseConfig from './rollup.base.config.js';
|
|
2
|
+
import terser from '@rollup/plugin-terser';
|
|
3
|
+
import { dts } from 'rollup-plugin-dts';
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
/* ---------------------------------------- */
|
|
7
|
+
// Bundling for the main library (index.ts)
|
|
8
|
+
{
|
|
9
|
+
input: './src/index.ts',
|
|
10
|
+
output: [
|
|
11
|
+
{
|
|
12
|
+
file: './dist/index.cjs.min.cjs',
|
|
13
|
+
format: 'cjs',
|
|
14
|
+
exports: 'auto', // 'auto' ensures compatibility with both default and named exports in CommonJS
|
|
15
|
+
sourcemap: true,
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
file: './dist/index.esm.min.mjs',
|
|
19
|
+
format: 'esm',
|
|
20
|
+
exports: 'named', // Named exports for ES modules
|
|
21
|
+
sourcemap: true,
|
|
22
|
+
// preserveModules: true, // Ensure module structure is kept
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
plugins: [
|
|
26
|
+
...baseConfig.plugins,
|
|
27
|
+
terser(), // Minification
|
|
28
|
+
],
|
|
29
|
+
external: baseConfig.external,
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
// TypeScript declarations for the main library (index.ts)
|
|
33
|
+
{
|
|
34
|
+
input: './src/index.ts',
|
|
35
|
+
output: {
|
|
36
|
+
file: './dist/index.d.ts',
|
|
37
|
+
format: 'esm',
|
|
38
|
+
},
|
|
39
|
+
plugins: [dts()],
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
/* ---------------------------------------- */
|
|
43
|
+
// Bundling for the internal library (internal.ts)
|
|
44
|
+
{
|
|
45
|
+
input: './src/internal.ts',
|
|
46
|
+
output: [
|
|
47
|
+
{
|
|
48
|
+
file: './dist/internal.cjs.min.cjs',
|
|
49
|
+
format: 'cjs',
|
|
50
|
+
exports: 'auto', // 'auto' ensures compatibility with both default and named exports in CommonJS
|
|
51
|
+
sourcemap: true,
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
file: './dist/internal.esm.min.mjs',
|
|
55
|
+
format: 'esm',
|
|
56
|
+
exports: 'named', // Named exports for ES modules
|
|
57
|
+
sourcemap: true,
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
plugins: [
|
|
61
|
+
...baseConfig.plugins,
|
|
62
|
+
terser(), // Minification
|
|
63
|
+
],
|
|
64
|
+
external: baseConfig.external,
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
// TypeScript declarations for the internal library (internal.ts)
|
|
68
|
+
{
|
|
69
|
+
input: './src/internal.ts',
|
|
70
|
+
output: {
|
|
71
|
+
file: './dist/internal.d.ts',
|
|
72
|
+
format: 'esm',
|
|
73
|
+
},
|
|
74
|
+
plugins: [dts()],
|
|
75
|
+
},
|
|
76
|
+
|
|
77
|
+
/* ---------------------------------------- */
|
|
78
|
+
// Bundling for the client library (client.ts)
|
|
79
|
+
{
|
|
80
|
+
input: 'src/client.ts',
|
|
81
|
+
output: [
|
|
82
|
+
{
|
|
83
|
+
file: './dist/client.cjs.min.cjs',
|
|
84
|
+
format: 'cjs',
|
|
85
|
+
exports: 'auto', // 'auto' ensures compatibility with both default and named exports in CommonJS
|
|
86
|
+
sourcemap: true,
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
file: './dist/client.esm.min.mjs',
|
|
90
|
+
format: 'esm',
|
|
91
|
+
exports: 'named', // Named exports for ES modules
|
|
92
|
+
sourcemap: true,
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
plugins: [
|
|
96
|
+
...baseConfig.plugins,
|
|
97
|
+
terser(), // Minification
|
|
98
|
+
],
|
|
99
|
+
external: baseConfig.external,
|
|
100
|
+
},
|
|
101
|
+
|
|
102
|
+
// TypeScript declarations for the client library (client.ts)
|
|
103
|
+
{
|
|
104
|
+
input: './src/client.ts',
|
|
105
|
+
output: {
|
|
106
|
+
file: './dist/client.d.ts',
|
|
107
|
+
format: 'esm',
|
|
108
|
+
},
|
|
109
|
+
plugins: [dts()],
|
|
110
|
+
},
|
|
111
|
+
];
|
package/tsconfig.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"module": "
|
|
3
|
+
"module": "ESNext",
|
|
4
|
+
"target": "ES6",
|
|
4
5
|
"strict": true,
|
|
5
6
|
"esModuleInterop": true,
|
|
6
7
|
"skipLibCheck": true,
|
|
@@ -8,7 +9,7 @@
|
|
|
8
9
|
"outDir": "./dist",
|
|
9
10
|
"rootDir": "./src",
|
|
10
11
|
"resolveJsonModule": true,
|
|
11
|
-
"moduleResolution": "
|
|
12
|
+
"moduleResolution": "Node",
|
|
12
13
|
"sourceMap": true,
|
|
13
14
|
"declaration": true,
|
|
14
15
|
"declarationDir": "./dist",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const projectIdMissingError = "gt-react Error: General Translation cloud services require a project ID! Find yours at www.generaltranslation.com/dashboard.";
|
|
2
|
-
export declare const createPluralMissingError: (children: any) => string;
|
|
3
|
-
export declare const createClientSideTWithoutIdError: (children: any) => string;
|
|
4
|
-
export declare const createStringTranslationError: (content: string, id?: string) => string;
|
|
5
|
-
export declare const createClientSideTDictionaryCollisionError: (id: string) => string;
|
|
6
|
-
export declare const createClientSideTHydrationError: (id: string) => string;
|
|
7
|
-
export declare const createNestedDataGTError: (child: any) => string;
|
|
8
|
-
export declare const createNestedTError: (child: any) => string;
|
|
9
|
-
export declare const renderingError = "General Translation: Rendering error.";
|
|
10
|
-
export declare const dynamicTranslationError = "Error fetching batched translations:";
|
|
11
|
-
export declare const createLibraryNoEntryWarning: (id: string) => string;
|
|
12
|
-
export declare const createNoEntryWarning: (id: string, prefixedId: string) => string;
|
|
13
|
-
//# sourceMappingURL=createErrors.d.ts.map
|