gt-react 3.1.26 → 3.1.28

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.
Files changed (52) hide show
  1. package/dist/client/hooks/useGT.d.ts.map +1 -1
  2. package/dist/client/hooks/useGT.js.map +1 -1
  3. package/dist/client/variables/ClientCurrency.d.ts +7 -30
  4. package/dist/client/variables/ClientCurrency.d.ts.map +1 -1
  5. package/dist/client/variables/ClientCurrency.js +0 -12
  6. package/dist/client/variables/ClientCurrency.js.map +1 -1
  7. package/dist/client/variables/ClientDateTime.d.ts +6 -18
  8. package/dist/client/variables/ClientDateTime.d.ts.map +1 -1
  9. package/dist/client/variables/ClientDateTime.js +0 -11
  10. package/dist/client/variables/ClientDateTime.js.map +1 -1
  11. package/dist/client/variables/ClientNum.d.ts +6 -18
  12. package/dist/client/variables/ClientNum.d.ts.map +1 -1
  13. package/dist/client/variables/ClientNum.js +0 -11
  14. package/dist/client/variables/ClientNum.js.map +1 -1
  15. package/dist/client/variables/ClientVar.d.ts +5 -6
  16. package/dist/client/variables/ClientVar.d.ts.map +1 -1
  17. package/dist/client/variables/ClientVar.js.map +1 -1
  18. package/dist/next.d.ts +13 -31
  19. package/dist/next.d.ts.map +1 -1
  20. package/dist/next.js +10 -3
  21. package/dist/next.js.map +1 -1
  22. package/dist/server/variables/Currency/Currency.d.ts +9 -33
  23. package/dist/server/variables/Currency/Currency.d.ts.map +1 -1
  24. package/dist/server/variables/Currency/Currency.js +0 -12
  25. package/dist/server/variables/Currency/Currency.js.map +1 -1
  26. package/dist/server/variables/DateTime/DateTime.d.ts +8 -20
  27. package/dist/server/variables/DateTime/DateTime.d.ts.map +1 -1
  28. package/dist/server/variables/DateTime/DateTime.js +0 -11
  29. package/dist/server/variables/DateTime/DateTime.js.map +1 -1
  30. package/dist/server/variables/Num/Num.d.ts +8 -20
  31. package/dist/server/variables/Num/Num.d.ts.map +1 -1
  32. package/dist/server/variables/Num/Num.js +0 -11
  33. package/dist/server/variables/Num/Num.js.map +1 -1
  34. package/dist/server/variables/Var/Var.d.ts +6 -17
  35. package/dist/server/variables/Var/Var.d.ts.map +1 -1
  36. package/dist/server/variables/Var/Var.js +0 -10
  37. package/dist/server/variables/Var/Var.js.map +1 -1
  38. package/dist/server.d.ts +14 -32
  39. package/dist/server.d.ts.map +1 -1
  40. package/dist/server.js +12 -2
  41. package/dist/server.js.map +1 -1
  42. package/dist/types/GeneralTranslationInterface.d.ts +9 -81
  43. package/dist/types/GeneralTranslationInterface.d.ts.map +1 -1
  44. package/dist/types/Variables.d.ts +83 -0
  45. package/dist/types/Variables.d.ts.map +1 -0
  46. package/dist/types/Variables.js +2 -0
  47. package/dist/types/Variables.js.map +1 -0
  48. package/package.json +1 -1
  49. package/dist/dictionary/createNumericValueMarkerComponents.d.ts +0 -16
  50. package/dist/dictionary/createNumericValueMarkerComponents.d.ts.map +0 -1
  51. package/dist/dictionary/createNumericValueMarkerComponents.js +0 -12
  52. package/dist/dictionary/createNumericValueMarkerComponents.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"useGT.d.ts","sourceRoot":"","sources":["../../../src/client/hooks/useGT.tsx"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,QAAQ,CAwEnD"}
1
+ {"version":3,"file":"useGT.d.ts","sourceRoot":"","sources":["../../../src/client/hooks/useGT.tsx"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,QAAQ,CA4EnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"useGT.js","sourceRoot":"","sources":["../../../src/client/hooks/useGT.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,YAAY,EAA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IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;gBAC3F,IAAI,MAAM,EAAE,CAAC;oBACT,kBAAkB;oBAClB,OAAO,CACH,KAAC,WAAW,IAAC,MAAM,EAAE,MAAM,YACvB,KAAC,aAAa,kBAAC,EAAE,EAAE,EAAE,IAAM,UAAU,cAChC,WAAW,IACA,GACN,CACjB,CAAC;gBACN,CAAC;qBAAM,CAAC;oBACJ,eAAe;oBACf,OAAO,CACH,KAAC,aAAa,kBAAC,EAAE,EAAE,EAAE,IAAM,UAAU,cAChC,WAAW,IACA,CACnB,CAAA;gBACL,CAAC;YACL,CAAC;iBAAM,IAAI,MAAM,EAAE,CAAC;gBAChB,aAAa;gBACb,OAAO,CACH,KAAC,WAAW,IAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,YAC9B,WAAW,GACF,CACjB,CAAA;YACL,CAAC;QACL,CAAC;QAED,IAAI,CAAC,WAAW;YAAE,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,iDAAiD,MAAM,GAAG,EAAE,IAAI,CAAC,CAAA;QAExG,OAAO,WAAW,CAAC;IACvB,CAAC,CAAA;AACL,CAAC"}
@@ -1,35 +1,12 @@
1
1
  import { ReactNode } from 'react';
2
- /**
3
- * Props for the ClientCurrency component.
4
- *
5
- * @typedef {Object} VariableProps
6
- * @property {ReactNode} [children] - The value to be formatted. If provided, overrides defaultValue.
7
- * @property {string} name - The name attribute for the data-gt-variable-name.
8
- * @property {number} [defaultValue] - The default value to be formatted if children is not provided.
9
- * @property {string} [currency] - The currency code to use for formatting. Default is "USD".
10
- * @property {Record<string, any>} [options] - Additional options to pass to the Intl.NumberFormat constructor.
11
- */
12
- type VariableProps = {
13
- children?: any;
14
- name?: string;
15
- defaultValue?: any;
16
- currency?: string;
17
- options?: Record<string, any>;
18
- };
19
- /**
20
- * Currency component formats a number as a currency string based on the current language settings.
21
- * It uses Intl.NumberFormat for currency formatting.
22
- *
23
- * @param {VariableProps} props - The properties passed to the component
24
- * @param {ReactNode} [props.children] - The child elements to be rendered if provided.
25
- * @param {string} props.name - The name attribute for the variable.
26
- * @param {number} [props.defaultValue] - The default value to be rendered if children is not provided.
27
- * @param {string} [props.currency="USD"] - The currency code to use for formatting.
28
- * @param {Record<string, any>} [props.options] - Options for number formatting.
29
- * @returns {ReactNode} A span element containing the formatted currency with specific data attributes
30
- */
31
2
  declare const ClientCurrency: {
32
- ({ children, name, defaultValue, currency, options }?: VariableProps): ReactNode;
3
+ ({ children, name, defaultValue, currency, options }?: {
4
+ children?: any;
5
+ name?: string;
6
+ defaultValue?: any;
7
+ currency?: string;
8
+ options?: Intl.NumberFormatOptions;
9
+ }): ReactNode;
33
10
  gtTransformation: string;
34
11
  };
35
12
  export default ClientCurrency;
@@ -1 +1 @@
1
- {"version":3,"file":"ClientCurrency.d.ts","sourceRoot":"","sources":["../../../src/client/variables/ClientCurrency.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,SAAS,EAAgC,MAAM,OAAO,CAAC;AAIvE;;;;;;;;;GASG;AACH,KAAK,aAAa,GAAG;IACjB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACjC,CAAA;AAED;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,cAAc;2DAA+E,aAAa,GAAsB,SAAS;;CAwB9I,CAAC;AAKF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"ClientCurrency.d.ts","sourceRoot":"","sources":["../../../src/client/variables/ClientCurrency.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,SAAS,EAAgC,MAAM,OAAO,CAAC;AAIvE,QAAA,MAAM,cAAc;2DAA+E;QAC/F,QAAQ,CAAC,EAAE,GAAG,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,YAAY,CAAC,EAAE,GAAG,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EAAE,IAAI,CAAC,mBAAmB,CAAC;KACtC,GAAsB,SAAS;;CAwB/B,CAAC;AAKF,eAAe,cAAc,CAAC"}
@@ -3,18 +3,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { useEffect, useState } from 'react';
4
4
  import useLocale from '../hooks/useLocale';
5
5
  import useDefaultLocale from '../hooks/useDefaultLocale';
6
- /**
7
- * Currency component formats a number as a currency string based on the current language settings.
8
- * It uses Intl.NumberFormat for currency formatting.
9
- *
10
- * @param {VariableProps} props - The properties passed to the component
11
- * @param {ReactNode} [props.children] - The child elements to be rendered if provided.
12
- * @param {string} props.name - The name attribute for the variable.
13
- * @param {number} [props.defaultValue] - The default value to be rendered if children is not provided.
14
- * @param {string} [props.currency="USD"] - The currency code to use for formatting.
15
- * @param {Record<string, any>} [props.options] - Options for number formatting.
16
- * @returns {ReactNode} A span element containing the formatted currency with specific data attributes
17
- */
18
6
  const ClientCurrency = ({ children, name = "cost", defaultValue, currency = "USD", options = {} } = { name: "cost" }) => {
19
7
  const locales = [useLocale(), useDefaultLocale()];
20
8
  const [formattedValue, setFormattedValue] = useState('');
@@ -1 +1 @@
1
- {"version":3,"file":"ClientCurrency.js","sourceRoot":"","sources":["../../../src/client/variables/ClientCurrency.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAc,EAAa,SAAS,EAAW,QAAQ,EAAE,MAAM,OAAO,CAAC;AACvE,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,gBAAgB,MAAM,2BAA2B,CAAC;AAoBzD;;;;;;;;;;;GAWG;AACH,MAAM,cAAc,GAAG,CAAC,EAAE,QAAQ,EAAE,IAAI,GAAG,M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C7B,CAAC;IACL,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;IAEzD,OAAO,CACH,wCAA6B,IAAI,2BAAyB,UAAU,8CAA8B,KAAK,EAAE,UAAU,EAAE,QAAQ,IAAK,OAAO,aACpI,cAAc,GACZ,CACV,CAAC;AAEN,CAAC,CAAC;AAEF,sDAAsD;AACtD,cAAc,CAAC,gBAAgB,GAAG,mBAAmB,CAAC;AAEtD,eAAe,cAAc,CAAC"}
@@ -1,23 +1,11 @@
1
1
  import { ReactNode } from 'react';
2
- type VariableProps = {
3
- children?: any;
4
- name?: string;
5
- defaultValue?: any;
6
- options?: Record<string, any>;
7
- };
8
- /**
9
- * DateTime component formats and displays a date based on the current language settings.
10
- * It converts different types of date inputs and formats them according to the locale.
11
- *
12
- * @param {VariableProps} props - The properties passed to the component
13
- * @param {ReactNode} [props.children] - The child elements to be rendered if provided.
14
- * @param {string} props.name - The name attribute for the variable.
15
- * @param {number | Date | string} [props.defaultValue] - The default value to be rendered if children is not provided.
16
- * @param {Record<string, any>} [props.options] - Options for date formatting.
17
- * @returns {ReactNode} A span element containing the formatted date with specific data attributes
18
- */
19
2
  declare const ClientDateTime: {
20
- ({ children, name, defaultValue, options }?: VariableProps): ReactNode;
3
+ ({ children, name, defaultValue, options }?: {
4
+ children?: any;
5
+ name?: string;
6
+ defaultValue?: any;
7
+ options?: Intl.DateTimeFormatOptions;
8
+ }): ReactNode;
21
9
  gtTransformation: string;
22
10
  };
23
11
  export default ClientDateTime;
@@ -1 +1 @@
1
- {"version":3,"file":"ClientDateTime.d.ts","sourceRoot":"","sources":["../../../src/client/variables/ClientDateTime.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,SAAS,EAAgC,MAAM,OAAO,CAAC;AAKvE,KAAK,aAAa,GAAG;IACjB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACjC,CAAA;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,cAAc;iDAA6D,aAAa,GAAsB,SAAS;;CAyC5H,CAAC;AAKF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"ClientDateTime.d.ts","sourceRoot":"","sources":["../../../src/client/variables/ClientDateTime.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,SAAS,EAAgC,MAAM,OAAO,CAAC;AAIvE,QAAA,MAAM,cAAc;iDAA6D;QAC7E,QAAQ,CAAC,EAAE,GAAG,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,YAAY,CAAC,EAAE,GAAG,CAAC;QACnB,OAAO,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC;KACxC,GAAsB,SAAS;;CAyC/B,CAAC;AAKF,eAAe,cAAc,CAAC"}
@@ -3,17 +3,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { useEffect, useState } from 'react';
4
4
  import useLocale from '../hooks/useLocale';
5
5
  import useDefaultLocale from '../hooks/useDefaultLocale';
6
- /**
7
- * DateTime component formats and displays a date based on the current language settings.
8
- * It converts different types of date inputs and formats them according to the locale.
9
- *
10
- * @param {VariableProps} props - The properties passed to the component
11
- * @param {ReactNode} [props.children] - The child elements to be rendered if provided.
12
- * @param {string} props.name - The name attribute for the variable.
13
- * @param {number | Date | string} [props.defaultValue] - The default value to be rendered if children is not provided.
14
- * @param {Record<string, any>} [props.options] - Options for date formatting.
15
- * @returns {ReactNode} A span element containing the formatted date with specific data attributes
16
- */
17
6
  const ClientDateTime = ({ children, name = "date", defaultValue, options = {} } = { name: "date" }) => {
18
7
  const locales = [useLocale(), useDefaultLocale()];
19
8
  const [formattedValue, setFormattedValue] = useState('');
@@ -1 +1 @@
1
- {"version":3,"file":"ClientDateTime.js","sourceRoot":"","sources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vE,CAAC;IAEL,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAE/C,kDAAkD;IAClD,OAAO,CACH,wCAA6B,IAAI,2BAAyB,MAAM,8BAA4B,OAAO,YAC9F,cAAc,GACZ,CACV,CAAC;AACN,CAAC,CAAC;AAEF,0CAA0C;AAC1C,cAAc,CAAC,gBAAgB,GAAG,eAAe,CAAC;AAElD,eAAe,cAAc,CAAC"}
@@ -1,23 +1,11 @@
1
1
  import { ReactNode } from 'react';
2
- type VariableProps = {
3
- children?: any;
4
- name?: string;
5
- defaultValue?: any;
6
- options?: Record<string, any>;
7
- };
8
- /**
9
- * Num component formats and displays a number based on the current language settings.
10
- * It attempts a number conversion and defaults to returning defaultValue if provided.
11
- *
12
- * @param {VariableProps} props - The properties passed to the component
13
- * @param {ReactNode} [props.children] - The child elements to be rendered if provided.
14
- * @param {string} props.name - The name attribute for the variable.
15
- * @param {number} [props.defaultValue] - The default value to be rendered if children is not provided.
16
- * @param {Record<string, any>} [props.options] - Options for number formatting.
17
- * @returns {ReactNode} A span element containing the formatted number with specific data attributes
18
- */
19
2
  declare const ClientNum: {
20
- ({ children, name, defaultValue, options }?: VariableProps): ReactNode;
3
+ ({ children, name, defaultValue, options }?: {
4
+ children?: any;
5
+ name?: string;
6
+ defaultValue?: any;
7
+ options?: Intl.NumberFormatOptions;
8
+ }): ReactNode;
21
9
  gtTransformation: string;
22
10
  };
23
11
  export default ClientNum;
@@ -1 +1 @@
1
- {"version":3,"file":"ClientNum.d.ts","sourceRoot":"","sources":["../../../src/client/variables/ClientNum.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,SAAS,EAAgC,MAAM,OAAO,CAAC;AAKvE,KAAK,aAAa,GAAG;IACjB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAChC,CAAA;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,SAAS;iDAA0D,aAAa,GAAmB,SAAS;;CAqBjH,CAAC;AAIF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"ClientNum.d.ts","sourceRoot":"","sources":["../../../src/client/variables/ClientNum.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,SAAS,EAAgC,MAAM,OAAO,CAAC;AAIvE,QAAA,MAAM,SAAS;iDAA0D;QACrE,QAAQ,CAAC,EAAE,GAAG,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,YAAY,CAAC,EAAE,GAAG,CAAC;QACnB,OAAO,CAAC,EAAE,IAAI,CAAC,mBAAmB,CAAA;KACrC,GAAmB,SAAS;;CAqB5B,CAAC;AAIF,eAAe,SAAS,CAAC"}
@@ -3,17 +3,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { useEffect, useState } from 'react';
4
4
  import useLocale from '../hooks/useLocale';
5
5
  import useDefaultLocale from '../hooks/useDefaultLocale';
6
- /**
7
- * Num component formats and displays a number based on the current language settings.
8
- * It attempts a number conversion and defaults to returning defaultValue if provided.
9
- *
10
- * @param {VariableProps} props - The properties passed to the component
11
- * @param {ReactNode} [props.children] - The child elements to be rendered if provided.
12
- * @param {string} props.name - The name attribute for the variable.
13
- * @param {number} [props.defaultValue] - The default value to be rendered if children is not provided.
14
- * @param {Record<string, any>} [props.options] - Options for number formatting.
15
- * @returns {ReactNode} A span element containing the formatted number with specific data attributes
16
- */
17
6
  const ClientNum = ({ children, name = "n", defaultValue, options = {} } = { name: "n" }) => {
18
7
  const locales = [useLocale(), useDefaultLocale()];
19
8
  const [formattedValue, setFormattedValue] = useState('');
@@ -1 +1 @@
1
- {"version":3,"file":"ClientNum.js","sourceRoot":"","sources":["../../../src/client/variables/ClientNum.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ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B,CAAC,KAAK,CAAC,CAAC;QAC7B,CAAC;IACL,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAE/C,OAAO,CACH,wCAA6B,IAAI,2BAAyB,QAAQ,8BAA4B,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,YAChH,cAAc,GACZ,CACV,CAAC;AACN,CAAC,CAAC;AAEF,SAAS,CAAC,gBAAgB,GAAG,iBAAiB,CAAC;AAE/C,eAAe,SAAS,CAAC"}
@@ -1,9 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
- type VariableProps = {
3
- children?: any;
4
- name?: string;
5
- defaultValue?: any;
6
- };
7
2
  /**
8
3
  * Var component to conditionally render either children or a default value.
9
4
  * It also attaches data attributes for variable name and type.
@@ -15,7 +10,11 @@ type VariableProps = {
15
10
  * @returns {ReactNode} The rendered output.
16
11
  */
17
12
  declare const ClientVar: {
18
- ({ children, name, defaultValue }: VariableProps): ReactNode;
13
+ ({ children, name, defaultValue }: {
14
+ children?: any;
15
+ name?: string;
16
+ defaultValue?: any;
17
+ }): ReactNode;
19
18
  gtTransformation: string;
20
19
  };
21
20
  export default ClientVar;
@@ -1 +1 @@
1
- {"version":3,"file":"ClientVar.d.ts","sourceRoot":"","sources":["../../../src/client/variables/ClientVar.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAW,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlD,KAAK,aAAa,GAAG;IACjB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,GAAG,CAAC;CACtB,CAAA;AAED;;;;;;;;;GASG;AACH,QAAA,MAAM,SAAS;uCAAsC,aAAa,GAAG,SAAS;;CAa7E,CAAC;AAIF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"ClientVar.d.ts","sourceRoot":"","sources":["../../../src/client/variables/ClientVar.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAW,SAAS,EAAE,MAAM,OAAO,CAAC;AAElD;;;;;;;;;GASG;AACH,QAAA,MAAM,SAAS;uCAAsC;QACjD,QAAQ,CAAC,EAAE,GAAG,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,YAAY,CAAC,EAAE,GAAG,CAAC;KACtB,GAAG,SAAS;;CAaZ,CAAC;AAIF,eAAe,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ClientVar.js","sourceRoot":"","sources":["../../../src/client/variables/ClientVar.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAc,EAAE,OAAO,EAAa,MAAM,OAAO,CAAC;AASlD;;;;;;;;;GASG;AACH,MAAM,SAAS,GAAG,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAiB,EAAa,EAAE;IAE7E,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,EAAE;QAC/B,IAAI,CAAC,OAAO,QAAQ,KAAK,WAAW,IAAI,OAAO,YAAY,KAAK,WAAW,CAAC;YAAE,OAAO,QAAQ,CAAC;QAC9F,OAAO,YAAY,CAAC;IACxB,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAA;IAE5B,OAAO,CACH,wCAA6B,IAAI,2BAAyB,UAAU,YAC/D,aAAa,GACX,CACV,CAAC;AAEN,CAAC,CAAC;AAEF,SAAS,CAAC,gBAAgB,GAAG,mBAAmB,CAAC;AAEjD,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"ClientVar.js","sourceRoot":"","sources":["../../../src/client/variables/ClientVar.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAc,EAAE,OAAO,EAAa,MAAM,OAAO,CAAC;AAElD;;;;;;;;;GASG;AACH,MAAM,SAAS,GAAG,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAIhD,EAAa,EAAE;IAEZ,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,EAAE;QAC/B,IAAI,CAAC,OAAO,QAAQ,KAAK,WAAW,IAAI,OAAO,YAAY,KAAK,WAAW,CAAC;YAAE,OAAO,QAAQ,CAAC;QAC9F,OAAO,YAAY,CAAC;IACxB,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAA;IAE5B,OAAO,CACH,wCAA6B,IAAI,2BAAyB,UAAU,YAC/D,aAAa,GACX,CACV,CAAC;AAEN,CAAC,CAAC;AAEF,SAAS,CAAC,gBAAgB,GAAG,mBAAmB,CAAC;AAEjD,eAAe,SAAS,CAAC"}
package/dist/next.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import CreateGTProps from './types/CreateGTProps';
2
2
  import GeneralTranslation from "./types/GeneralTranslationInterface";
3
+ import Variables from "./types/Variables";
3
4
  /**
4
5
  * Initializes the `gt-react` i18n library with Next.js specific configurations.
5
6
  *
@@ -20,37 +21,18 @@ import GeneralTranslation from "./types/GeneralTranslationInterface";
20
21
  * @returns {GeneralTranslation} An object containing internationalization and translation functions.
21
22
  */
22
23
  export declare function createGT({ approvedLocales, defaultLocale, getLocale, getMetadata, ...metadata }?: CreateGTProps): GeneralTranslation;
23
- export declare function createVariables({ approvedLocales, defaultLocale, getLocale }?: {
24
+ /**
25
+ * Creates variable components only, for use in GT dictionaries.
26
+ *
27
+ * @param {Object} params - Configuration options.
28
+ * @param {string[]} [params.approvedLocales] - List of approved locales.
29
+ * @param {string} params.defaultLocale - Default locale for the translation.
30
+ * @param {() => string} params.getLocale - Function to get the current locale.
31
+ * @returns {Object} An object containing variable components.
32
+ */
33
+ export declare function createVariables({ approvedLocales, defaultLocale, getLocale }: {
24
34
  approvedLocales?: string[];
25
- defaultLocale: string;
35
+ defaultLocale?: string;
26
36
  getLocale?: () => string;
27
- }): {
28
- Var: {
29
- ({ ...props }: {
30
- [x: string]: any;
31
- }): import("react/jsx-runtime").JSX.Element;
32
- gtTransformation: string;
33
- };
34
- Num: {
35
- ({ children, ...props }: {
36
- children?: any;
37
- [key: string]: any;
38
- }): import("react/jsx-runtime").JSX.Element;
39
- gtTransformation: string;
40
- };
41
- Currency: {
42
- ({ children, ...props }: {
43
- children?: any;
44
- [key: string]: any;
45
- }): import("react/jsx-runtime").JSX.Element;
46
- gtTransformation: string;
47
- };
48
- DateTime: {
49
- ({ children, ...props }: {
50
- children?: any;
51
- [key: string]: any;
52
- }): import("react/jsx-runtime").JSX.Element;
53
- gtTransformation: string;
54
- };
55
- };
37
+ }): Variables;
56
38
  //# sourceMappingURL=next.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":"AAEA,OAAO,aAAa,MAAM,uBAAuB,CAAC;AAClD,OAAO,kBAAkB,MAAM,qCAAqC,CAAC;AAErE;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,QAAQ,CAAC,EACrB,eAAe,EACf,aAA4C,EAC5C,SAAS,EAAE,WAAW,EACtB,GAAG,QAAQ,EACd,GAAE,aAEF,GAAG,kBAAkB,CAIrB;AAED,wBAAgB,eAAe,CAAC,EAC5B,eAAe,EACf,aAA4C,EAC5C,SAAS,EACZ,GAAE;IACC,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,MAAM,CAAC;CAG5B;;;;;;;;;oBA7CwC,CAAC;;;;;;;oBAChC,CAAC;;;;;;;oBAAD,CAAC;;;;;EA+CV"}
1
+ {"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":"AAEA,OAAO,aAAa,MAAM,uBAAuB,CAAC;AAClD,OAAO,kBAAkB,MAAM,qCAAqC,CAAC;AACrE,OAAO,SAAS,MAAM,mBAAmB,CAAC;AAE1C;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,QAAQ,CAAC,EACrB,eAAe,EACf,aAA4C,EAC5C,SAAS,EAAE,WAAW,EACtB,GAAG,QAAQ,EACd,GAAE,aAEF,GAAG,kBAAkB,CAIrB;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,EAC5B,eAAe,EACf,aAAa,EACb,SAAS,EACZ,EAAE;IACC,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,MAAM,CAAC;CAC5B,GAAG,SAAS,CAGZ"}
package/dist/next.js CHANGED
@@ -38,9 +38,16 @@ export function createGT(_a = {
38
38
  const finalGetMetadata = getMetadata || (() => { return { domain: getNextDomain() }; });
39
39
  return createBaseGT(Object.assign({ defaultLocale, getLocale: finalGetLocale, getMetadata: finalGetMetadata }, metadata));
40
40
  }
41
- export function createVariables({ approvedLocales, defaultLocale = (approvedLocales === null || approvedLocales === void 0 ? void 0 : approvedLocales[0]) || 'en', getLocale } = {
42
- defaultLocale: 'en',
43
- }) {
41
+ /**
42
+ * Creates variable components only, for use in GT dictionaries.
43
+ *
44
+ * @param {Object} params - Configuration options.
45
+ * @param {string[]} [params.approvedLocales] - List of approved locales.
46
+ * @param {string} params.defaultLocale - Default locale for the translation.
47
+ * @param {() => string} params.getLocale - Function to get the current locale.
48
+ * @returns {Object} An object containing variable components.
49
+ */
50
+ export function createVariables({ approvedLocales, defaultLocale, getLocale }) {
44
51
  const finalGetLocale = getLocale || (() => { return getNextLocale(defaultLocale, approvedLocales); });
45
52
  return createBaseVariables({ approvedLocales, defaultLocale, getLocale: finalGetLocale });
46
53
  }
package/dist/next.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"next.js","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,eAAe,IAAI,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC5F,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAA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AAC5F,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAKvE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,QAAQ,CAAC,KAKN;IACf,aAAa,EAAE,IAAI;CACtB;QAPwB,EACrB,eAAe,EACf,aAAa,GAAG,CAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAG,CAAC,CAAC,KAAI,IAAI,EAC5C,SAAS,EAAE,WAAW,OAIzB,EAHM,QAAQ,cAJU,gEAKxB,CADc;IAIX,MAAM,cAAc,GAAG,SAAS,IAAI,CAAC,GAAG,EAAE,GAAG,OAAO,aAAa,CAAC,aAAa,EAAE,eAAe,CAAC,CAAA,CAAC,CAAC,CAAC,CAAC;IACrG,MAAM,gBAAgB,GAAG,WAAW,IAAI,CAAC,GAAG,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE,CAAA,CAAC,CAAC,CAAC,CAAC;IACvF,OAAO,YAAY,iBAAG,aAAa,EAAE,SAAS,EAAE,cAAc,EAAE,WAAW,EAAE,gBAAgB,IAAK,QAAQ,EAAG,CAAC;AAClH,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,eAAe,CAAC,EAC5B,eAAe,EACf,aAAa,EACb,SAAS,EAKZ;IACG,MAAM,cAAc,GAAG,SAAS,IAAI,CAAC,GAAG,EAAE,GAAG,OAAO,aAAa,CAAC,aAAa,EAAE,eAAe,CAAC,CAAA,CAAC,CAAC,CAAC,CAAC;IACrG,OAAO,mBAAmB,CAAC,EAAE,eAAe,EAAE,aAAa,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC,CAAC;AAC9F,CAAC"}
@@ -1,38 +1,14 @@
1
1
  import { ReactNode } from 'react';
2
- /**
3
- * Props for the Currency component.
4
- *
5
- * @typedef {Object} VariableProps
6
- * @property {ReactNode} [children] - The value to be formatted. If provided, overrides defaultValue.
7
- * @property {string} name - The name attribute for the data-gt-variable-name.
8
- * @property {number} [defaultValue] - The default value to be formatted if children is not provided.
9
- * @property {string} [currency] - The currency code to use for formatting. Default is "USD".
10
- * @property {Record<string, any>} ["data-generaltranslation"] - General translation data passed to the component.
11
- * @property {Record<string, any>} [options] - Additional options to pass to the Intl.NumberFormat constructor.
12
- */
13
- type VariableProps = {
14
- children?: any;
15
- name?: string;
16
- defaultValue?: any;
17
- locales: string[];
18
- currency?: string;
19
- "data-generaltranslation"?: Record<string, any>;
20
- options?: Record<string, any>;
21
- };
22
- /**
23
- * Currency component formats a number as a currency string based on the current language settings.
24
- * It uses Intl.NumberFormat for currency formatting.
25
- *
26
- * @param {VariableProps} props - The properties passed to the component
27
- * @param {ReactNode} [props.children] - The child elements to be rendered if provided.
28
- * @param {string} props.name - The name attribute for the variable.
29
- * @param {number} [props.defaultValue] - The default value to be rendered if children is not provided.
30
- * @param {string} [props.currency="USD"] - The currency code to use for formatting.
31
- * @param {Record<string, any>} [props.options] - Options for number formatting.
32
- * @returns {JSX.Element} A span element containing the formatted currency with specific data attributes
33
- */
34
2
  declare const Currency: {
35
- ({ children, locales, name, defaultValue, currency, options, ...props }: VariableProps): ReactNode;
3
+ ({ children, locales, name, defaultValue, currency, options, ...props }: {
4
+ children?: any;
5
+ name?: string;
6
+ defaultValue?: any;
7
+ locales: string[];
8
+ currency?: string;
9
+ "data-generaltranslation"?: Record<string, any>;
10
+ options?: Intl.NumberFormatOptions;
11
+ }): ReactNode;
36
12
  gtTransformation: string;
37
13
  };
38
14
  export default Currency;
@@ -1 +1 @@
1
- {"version":3,"file":"Currency.d.ts","sourceRoot":"","sources":["../../../../src/server/variables/Currency/Currency.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC;;;;;;;;;;GAUG;AACH,KAAK,aAAa,GAAG;IACjB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yBAAyB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACjC,CAAA;AAED;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,QAAQ;6EAAkG,aAAa,GAAG,SAAS;;CAuBxI,CAAC;AAIF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"Currency.d.ts","sourceRoot":"","sources":["../../../../src/server/variables/Currency/Currency.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,QAAA,MAAM,QAAQ;6EAAkG;QAC5G,QAAQ,CAAC,EAAE,GAAG,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,YAAY,CAAC,EAAE,GAAG,CAAC;QACnB,OAAO,EAAE,MAAM,EAAE,CAAC;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,yBAAyB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAChD,OAAO,CAAC,EAAE,IAAI,CAAC,mBAAmB,CAAC;KACtC,GAAG,SAAS;;CAuBZ,CAAC;AAIF,eAAe,QAAQ,CAAC"}
@@ -10,18 +10,6 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- /**
14
- * Currency component formats a number as a currency string based on the current language settings.
15
- * It uses Intl.NumberFormat for currency formatting.
16
- *
17
- * @param {VariableProps} props - The properties passed to the component
18
- * @param {ReactNode} [props.children] - The child elements to be rendered if provided.
19
- * @param {string} props.name - The name attribute for the variable.
20
- * @param {number} [props.defaultValue] - The default value to be rendered if children is not provided.
21
- * @param {string} [props.currency="USD"] - The currency code to use for formatting.
22
- * @param {Record<string, any>} [props.options] - Options for number formatting.
23
- * @returns {JSX.Element} A span element containing the formatted currency with specific data attributes
24
- */
25
13
  const Currency = (_a) => {
26
14
  var { children, locales, name = "cost", defaultValue, currency = "USD", options = {} } = _a, props = __rest(_a, ["children", "locales", "name", "defaultValue", "currency", "options"]);
27
15
  const { "data-generaltranslation": generaltranslation } = props;
@@ -1 +1 @@
1
- {"version":3,"file":"Currency.js","sourceRoot":"","sources":["../../../../src/server/variables/Currency/Currency.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAuBA;;;;;;;;;;;GAWG;AACH,MAAM,QAAQ,GAAG,CAAC,EAA2G,EAAa,EAAE;QAA1H,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,GAAG,MAAM,EAAE,YAAY,EAAE,QAAQ,GAAG,KAAK,EAAE,OAAO,GAAG,EAAE,OAA2B,EAAtB,KAAK,cAA1F,sEAA4F,CAAF;IAExG,MAAM,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;IAEhE,sCAAsC;IACtC,IAAI,KAAK,GAAG,CAAC,OAAO,QAAQ,KAAK,WAAW,IAAI,OAAO,YAAY,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC;IAC/G,KAAK,GAAG,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAEhE,wDAAwD;IACxD,MAAM,cAAc,GAAG,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC;QAC9C,CAAC,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,kBAAI,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,IAAK,OAAO,EAAG,CAAC,MAAM,CAAC,KAAK,CAAC;QACpH,CAAC,CAAC,KAAK,CAAC;IAEZ,OAAO,CACH,0CAC6B,kBAAkB,2BACpB,IAA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AElE,cAAc,GACZ,CACV,CAAC;AACN,CAAC,CAAC;AAEF,QAAQ,CAAC,gBAAgB,GAAG,mBAAmB,CAAC;AAEhD,eAAe,QAAQ,CAAC"}
@@ -1,24 +1,12 @@
1
- type VariableProps = {
2
- children?: any;
3
- name?: string;
4
- defaultValue?: any;
5
- locales: string[];
6
- options?: Record<string, any>;
7
- "data-generaltranslation"?: Record<string, any> | undefined;
8
- };
9
- /**
10
- * DateTime component formats and displays a date based on the current language settings.
11
- * It converts different types of date inputs and formats them according to the locale.
12
- *
13
- * @param {VariableProps} props - The properties passed to the component
14
- * @param {ReactNode} [props.children] - The child elements to be rendered if provided.
15
- * @param {string} props.name - The name attribute for the variable.
16
- * @param {number | Date | string} [props.defaultValue] - The default value to be rendered if children is not provided.
17
- * @param {Record<string, any>} [props.options] - Options for date formatting.
18
- * @returns {JSX.Element} A span element containing the formatted date with specific data attributes
19
- */
20
1
  declare const DateTime: {
21
- ({ children, locales, name, defaultValue, options, ...props }: VariableProps): JSX.Element;
2
+ ({ children, locales, name, defaultValue, options, ...props }: {
3
+ children?: any;
4
+ name?: string;
5
+ defaultValue?: any;
6
+ locales: string[];
7
+ options?: Intl.DateTimeFormatOptions;
8
+ "data-generaltranslation"?: Record<string, any> | undefined;
9
+ }): JSX.Element;
22
10
  gtTransformation: string;
23
11
  };
24
12
  export default DateTime;
@@ -1 +1 @@
1
- {"version":3,"file":"DateTime.d.ts","sourceRoot":"","sources":["../../../../src/server/variables/DateTime/DateTime.tsx"],"names":[],"mappings":"AAGA,KAAK,aAAa,GAAG;IACjB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,yBAAyB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC;CAC/D,CAAA;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,QAAQ;mEAAgF,aAAa,GAAG,GAAG,CAAC,OAAO;;CA8CxH,CAAC;AAIF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"DateTime.d.ts","sourceRoot":"","sources":["../../../../src/server/variables/DateTime/DateTime.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,QAAQ;mEAAgF;QAC1F,QAAQ,CAAC,EAAE,GAAG,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,YAAY,CAAC,EAAE,GAAG,CAAC;QACnB,OAAO,EAAE,MAAM,EAAE,CAAC;QAClB,OAAO,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC;QACrC,yBAAyB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC;KAC/D,GAAG,GAAG,CAAC,OAAO;;CA8Cd,CAAC;AAIF,eAAe,QAAQ,CAAC"}
@@ -10,17 +10,6 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- /**
14
- * DateTime component formats and displays a date based on the current language settings.
15
- * It converts different types of date inputs and formats them according to the locale.
16
- *
17
- * @param {VariableProps} props - The properties passed to the component
18
- * @param {ReactNode} [props.children] - The child elements to be rendered if provided.
19
- * @param {string} props.name - The name attribute for the variable.
20
- * @param {number | Date | string} [props.defaultValue] - The default value to be rendered if children is not provided.
21
- * @param {Record<string, any>} [props.options] - Options for date formatting.
22
- * @returns {JSX.Element} A span element containing the formatted date with specific data attributes
23
- */
24
13
  const DateTime = (_a) => {
25
14
  var { children, locales, name = "date", defaultValue, options = {} } = _a, props = __rest(_a, ["children", "locales", "name", "defaultValue", "options"]);
26
15
  // Extract general translation data from props
@@ -1 +1 @@
1
- {"version":3,"file":"DateTime.js","sourceRoot":"","sources":["../../../../src/server/variables/DateT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AE,CAAC;QAC1C,SAAS,GAAG,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC;IACvC,CAAC;SAAM,IAAI,YAAY,YAAY,IAAI,EAAE,CAAC;QACtC,SAAS,GAAG,YAAY,CAAC;IAC7B,CAAC;IAED,sDAAsD;IACtD,MAAM,UAAU,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,kBAAI,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,IAAK,OAAO,EAAG,CAAC,MAAM,CAAC,SAAS,CAAC,KAAI,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,cAAc,CAAC,OAAO,kBAAI,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,IAAK,OAAO,EAAG,CAAA,IAAI,EAAE,CAAC;IAC9O,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,uBAAuB,EAAE,EAAE,CAAC,CAAA;IAEtE,kDAAkD;IAClD,OAAO,CACH,0CAC6B,kBAAkB,2BACpB,IAAI,2BACJ,MAAM,8BACH,OAAO,YAEhC,cAAc,GACZ,CACV,CAAC;AACN,CAAC,CAAC;AAEF,QAAQ,CAAC,gBAAgB,GAAG,eAAe,CAAA;AAE3C,eAAe,QAAQ,CAAC"}
@@ -1,25 +1,13 @@
1
1
  import { ReactNode } from 'react';
2
- type VariableProps = {
3
- children?: any;
4
- name?: string;
5
- defaultValue?: any;
6
- "data-generaltranslation"?: Record<string, any> | undefined;
7
- locales: string[];
8
- options?: Record<string, any>;
9
- };
10
- /**
11
- * Num component formats and displays a number based on the current locale.
12
- * It attempts a number conversion and defaults to returning defaultValue if provided.
13
- *
14
- * @param {VariableProps} props - The properties passed to the component
15
- * @param {ReactNode} [props.children] - The child elements to be rendered if provided.
16
- * @param {string} props.name - The name attribute for the variable.
17
- * @param {number} [props.defaultValue] - The default value to be rendered if children is not provided.
18
- * @param {Record<string, any>} [props.options] - Options for number formatting.
19
- * @returns {JSX.Element} A span element containing the formatted number with specific data attributes
20
- */
21
2
  declare const Num: {
22
- ({ children, locales, name, defaultValue, options, ...props }: VariableProps): ReactNode;
3
+ ({ children, locales, name, defaultValue, options, ...props }: {
4
+ children?: any;
5
+ name?: string;
6
+ defaultValue?: any;
7
+ "data-generaltranslation"?: Record<string, any> | undefined;
8
+ locales: string[];
9
+ options?: Intl.NumberFormatOptions;
10
+ }): ReactNode;
23
11
  gtTransformation: string;
24
12
  };
25
13
  export default Num;
@@ -1 +1 @@
1
- {"version":3,"file":"Num.d.ts","sourceRoot":"","sources":["../../../../src/server/variables/Num/Num.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzC,KAAK,aAAa,GAAG;IACjB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,yBAAyB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC;IAC5D,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAChC,CAAA;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,GAAG;mEAA6E,aAAa,GAAG,SAAS;;CAsB9G,CAAC;AAIF,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"Num.d.ts","sourceRoot":"","sources":["../../../../src/server/variables/Num/Num.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,QAAA,MAAM,GAAG;mEAA6E;QAClF,QAAQ,CAAC,EAAE,GAAG,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,YAAY,CAAC,EAAE,GAAG,CAAC;QACnB,yBAAyB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC;QAC5D,OAAO,EAAE,MAAM,EAAE,CAAC;QAClB,OAAO,CAAC,EAAE,IAAI,CAAC,mBAAmB,CAAA;KACrC,GAAG,SAAS;;CAsBZ,CAAC;AAIF,eAAe,GAAG,CAAC"}
@@ -10,17 +10,6 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- /**
14
- * Num component formats and displays a number based on the current locale.
15
- * It attempts a number conversion and defaults to returning defaultValue if provided.
16
- *
17
- * @param {VariableProps} props - The properties passed to the component
18
- * @param {ReactNode} [props.children] - The child elements to be rendered if provided.
19
- * @param {string} props.name - The name attribute for the variable.
20
- * @param {number} [props.defaultValue] - The default value to be rendered if children is not provided.
21
- * @param {Record<string, any>} [props.options] - Options for number formatting.
22
- * @returns {JSX.Element} A span element containing the formatted number with specific data attributes
23
- */
24
13
  const Num = (_a) => {
25
14
  var { children, locales, name = "n", defaultValue, options = {} } = _a, props = __rest(_a, ["children", "locales", "name", "defaultValue", "options"]);
26
15
  const { "data-generaltranslation": generaltranslation } = props;
@@ -1 +1 @@
1
- {"version":3,"file":"Num.js","sourceRoot":"","sources":["../../../../src/server/variables/Num/Num.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAYA;;;;;;;;;;GAUG;AACH,MAAM,GAAG,GAAG,CAAC,EAAsF,EAAa,EAAE;QAArG,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,GAAG,GAAG,EAAE,YAAY,EAAE,OAAO,GAAG,EAAE,OAA2B,EAAtB,KAAK,cAArE,0DAAuE,CAAF;IAE9E,MAAM,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;IAEhE,iCAAiC;IACjC,IAAI,KAAK,GAAG,CAAC,OAAO,QAAQ,KAAK,WAAW,IAAI,OAAO,YAAY,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC;IAC/G,KAAK,GAAG,CAAC,OAAO,KAAK,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,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,kBAAI,eAAe,EAAE,MAAM,IAAK,OAAO,EAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC;IAE1J,OAAO,CACH,0CAC6B,kBAAkB,2BACpB,IAAI,2BACJ,QAAQ,8BACL,OAAO,YAEhC,cAAc,GACZ,CACV,CAAC;AAEN,CAAC,CAAC;AAEF,GAAG,CAAC,gBAAgB,GAAG,iBAAiB,CAAC;AAEzC,eAAe,GAAG,CAAC"}
@@ -1,22 +1,11 @@
1
1
  import { ReactNode } from 'react';
2
- type VariableProps = {
3
- children?: any;
4
- name?: string;
5
- defaultValue?: any;
6
- "data-generaltranslation"?: Record<string, any> | undefined;
7
- };
8
- /**
9
- * Var component to conditionally render either children or a default value.
10
- * It also attaches data attributes for variable name and type.
11
- *
12
- * @param {Object} props - The props for the component.
13
- * @param {ReactNode} [props.children] - The child elements to be rendered if provided.
14
- * @param {string} props.name - The name attribute for the variable.
15
- * @param {any} [props.defaultValue] - The default value to be rendered if children is not provided.
16
- * @returns {ReactNode} The rendered output.
17
- */
18
2
  declare const Var: {
19
- ({ children, name, defaultValue, ...props }: VariableProps): ReactNode;
3
+ ({ children, name, defaultValue, ...props }: {
4
+ children?: any;
5
+ name?: string;
6
+ defaultValue?: any;
7
+ "data-generaltranslation"?: Record<string, any> | undefined;
8
+ }): ReactNode;
20
9
  gtTransformation: string;
21
10
  };
22
11
  export default Var;
@@ -1 +1 @@
1
- {"version":3,"file":"Var.d.ts","sourceRoot":"","sources":["../../../../src/server/variables/Var/Var.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzC,KAAK,aAAa,GAAG;IACjB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,yBAAyB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAA;CAC9D,CAAA;AAED;;;;;;;;;GASG;AACH,QAAA,MAAM,GAAG;iDAA0D,aAAa,GAAG,SAAS;;CAgB3F,CAAC;AAIF,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"Var.d.ts","sourceRoot":"","sources":["../../../../src/server/variables/Var/Var.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,QAAA,MAAM,GAAG;iDAA0D;QAC/D,QAAQ,CAAC,EAAE,GAAG,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,YAAY,CAAC,EAAE,GAAG,CAAC;QACnB,yBAAyB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAA;KAC9D,GAAG,SAAS;;CAgBZ,CAAC;AAIF,eAAe,GAAG,CAAC"}
@@ -10,16 +10,6 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- /**
14
- * Var component to conditionally render either children or a default value.
15
- * It also attaches data attributes for variable name and type.
16
- *
17
- * @param {Object} props - The props for the component.
18
- * @param {ReactNode} [props.children] - The child elements to be rendered if provided.
19
- * @param {string} props.name - The name attribute for the variable.
20
- * @param {any} [props.defaultValue] - The default value to be rendered if children is not provided.
21
- * @returns {ReactNode} The rendered output.
22
- */
23
13
  const Var = (_a) => {
24
14
  var { children, name = "value", defaultValue } = _a, props = __rest(_a, ["children", "name", "defaultValue"]);
25
15
  const { "data-generaltranslation": generaltranslation } = props;
@@ -1 +1 @@
1
- {"version":3,"file":"Var.js","sourceRoot":"","sources":["../../../../src/server/variables/Var/Var.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAUA;;;;;;;;;GASG;AACH,MAAM,GAAG,GAAG,CAAC,EAAmE,EAAc,EAAE;QAAnF,EAAE,QAAQ,EAAE,IAAI,GAAG,OAAO,EAAE,YAAY,OAA2B,EAAtB,KAAK,cAAlD,oCAAoD,CAAF;IAE3D,MAAM,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;IAEhE,IAAI,OAAO,QAAQ,KAAK,WAAW,IAAI,OAAO,YAAY,KAAK,WAAW;QAAE,YAAY,GAAG,QAAQ,CAAC;IAEpG,OAAO,CACH,0CAC6B,kBAAkB,2BACpB,IAAI,2BACJ,UAAU,YAEhC,YAAY,GACV,CACV,CAAC;AAEN,CAAC,CAAC;AAEF,GAAG,CAAC,gBAAgB,GAAG,mBAAmB,CAAC,CAAC,uDAAuD;AAEnG,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"Var.js","sourceRoot":"","sources":["../../../../src/server/variables/Var/Var.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAM,GAAG,GAAG,CAAC,EAKZ,EAAc,EAAE;QALJ,EAAE,QAAQ,EAAE,IAAI,GAAG,OAAO,EAAE,YAAY,OAKpD,EALyD,KAAK,cAAlD,oCAAoD,CAAF;IAO3D,MAAM,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;IAEhE,IAAI,OAAO,QAAQ,KAAK,WAAW,IAAI,OAAO,YAAY,KAAK,WAAW;QAAE,YAAY,GAAG,QAAQ,CAAC;IAEpG,OAAO,CACH,0CAC6B,kBAAkB,2BACpB,IAAI,2BACJ,UAAU,YAEhC,YAAY,GACV,CACV,CAAC;AAEN,CAAC,CAAC;AAEF,GAAG,CAAC,gBAAgB,GAAG,mBAAmB,CAAC,CAAC,uDAAuD;AAEnG,eAAe,GAAG,CAAC"}
package/dist/server.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import 'server-only';
2
2
  import CreateI18NConfigProps from './types/CreateGTProps';
3
3
  import GeneralTranslation from './types/GeneralTranslationInterface';
4
+ import Variables from './types/Variables';
4
5
  /**
5
6
  * Initializes the `gt-react` i18n library.
6
7
  *
@@ -27,37 +28,18 @@ import GeneralTranslation from './types/GeneralTranslationInterface';
27
28
  */
28
29
  export declare function createGT({ apiKey, projectID, cacheURL, baseURL, remoteSource, automaticTranslation, approvedLocales, defaultLocale, getLocale, renderPrevious, renderMethod, // "replace", "hang", "subtle"
29
30
  renderTimeout, dictionaryName, dictionary, translations, maxConcurrentRequests, batchInterval, getMetadata, ...metadata }?: CreateI18NConfigProps): GeneralTranslation;
30
- export declare function createVariables({ approvedLocales, defaultLocale, getLocale, }?: {
31
+ /**
32
+ * Creates variable components only, for use in GT dictionaries.
33
+ *
34
+ * @param {Object} params - Configuration options.
35
+ * @param {string[]} [params.approvedLocales] - List of approved locales.
36
+ * @param {string} params.defaultLocale - Default locale for the translation.
37
+ * @param {() => string} params.getLocale - Function to get the current locale.
38
+ * @returns {Object} An object containing variable components.
39
+ */
40
+ export declare function createVariables({ approvedLocales, defaultLocale, getLocale }?: {
31
41
  approvedLocales?: string[];
32
- defaultLocale: string;
33
- getLocale: () => string;
34
- }): {
35
- Var: {
36
- ({ ...props }: {
37
- [x: string]: any;
38
- }): import("react/jsx-runtime").JSX.Element;
39
- gtTransformation: string;
40
- };
41
- Num: {
42
- ({ children, ...props }: {
43
- children?: any;
44
- [key: string]: any;
45
- }): import("react/jsx-runtime").JSX.Element;
46
- gtTransformation: string;
47
- };
48
- Currency: {
49
- ({ children, ...props }: {
50
- children?: any;
51
- [key: string]: any;
52
- }): import("react/jsx-runtime").JSX.Element;
53
- gtTransformation: string;
54
- };
55
- DateTime: {
56
- ({ children, ...props }: {
57
- children?: any;
58
- [key: string]: any;
59
- }): import("react/jsx-runtime").JSX.Element;
60
- gtTransformation: string;
61
- };
62
- };
42
+ defaultLocale?: string;
43
+ getLocale?: () => string;
44
+ }): Variables;
63
45
  //# sourceMappingURL=server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;A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,EACtC,YAAY,EAEZ,qBAA4D,EAC5D,aAA4C,EAE5C,WAAwC,EACxC,GAAG,QAAQ,EACd,GAAE,qBAiBF,GAAG,kBAAkB,CAsDrB;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,EAC5B,eAAe,EACf,aAAoE,EACpE,SAA0C,EAC7C,GAAE;IACC,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,MAAM,CAAC;CAI5B,GAAG,SAAS,CAWZ"}
package/dist/server.js CHANGED
@@ -114,7 +114,16 @@ export function createGT(_a = {
114
114
  getLocale, getDefaultLocale
115
115
  };
116
116
  }
117
- export function createVariables({ approvedLocales, defaultLocale, getLocale, } = {
117
+ /**
118
+ * Creates variable components only, for use in GT dictionaries.
119
+ *
120
+ * @param {Object} params - Configuration options.
121
+ * @param {string[]} [params.approvedLocales] - List of approved locales.
122
+ * @param {string} params.defaultLocale - Default locale for the translation.
123
+ * @param {() => string} params.getLocale - Function to get the current locale.
124
+ * @returns {Object} An object containing variable components.
125
+ */
126
+ export function createVariables({ approvedLocales, defaultLocale = (approvedLocales === null || approvedLocales === void 0 ? void 0 : approvedLocales[0]) || defaultGTProps.defaultLocale, getLocale = () => { return defaultLocale; } } = {
118
127
  defaultLocale: defaultGTProps.defaultLocale,
119
128
  getLocale: defaultGTProps.getLocale
120
129
  }) {
@@ -123,7 +132,8 @@ export function createVariables({ approvedLocales, defaultLocale, getLocale, } =
123
132
  const DateTime = createDateTimeComponent(getLocale, defaultLocale);
124
133
  const Currency = createCurrencyComponent(getLocale, defaultLocale);
125
134
  return ({
126
- Var, Num, Currency, DateTime
135
+ Var, Num, Currency, DateTime,
136
+ getLocale, getDefaultLocale: () => defaultLocale
127
137
  });
128
138
  }
129
139
  //# sourceMappingURL=server.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[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AC,CAAC;AACP,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { ComponentType, ReactNode } from 'react';
2
- export default interface GeneralTranslation {
2
+ import Variables from './Variables';
3
+ type GeneralTranslation = Variables & {
3
4
  /**
4
5
  * The `<T>` component. Translates its ReactNode children into the user's locale.
5
6
  *
@@ -58,7 +59,11 @@ export default interface GeneralTranslation {
58
59
  *
59
60
  * `options?` - ({ [key: string]: any }) - Other parameters which override the global `gt-react` configuration. See https://docs.generaltranslation.com for a full list.
60
61
  */
61
- t: (id: string, options?: Record<string, any>) => any;
62
+ t: (id: string, options?: {
63
+ n?: number;
64
+ values?: Record<string, any>;
65
+ [key: string]: any;
66
+ }) => any;
62
67
  /**
63
68
  * Server-side function which gets an entry from the default dictionary, in its original language.
64
69
  *
@@ -100,83 +105,6 @@ export default interface GeneralTranslation {
100
105
  children: any;
101
106
  }[];
102
107
  }>;
103
- /**
104
- * Component for rendering variables.
105
- *
106
- * `children?` - (any) - The content to render if provided. Overrides `defaultValue`.
107
- *
108
- * `name?` - (string) - The name of the variable, used for identifying the component.
109
- *
110
- * `defaultValue?` - (any) - The default value to display if `children` is not provided.
111
- **/
112
- Var: ComponentType<{
113
- children?: any;
114
- name?: string;
115
- defaultValue?: any;
116
- }>;
117
- /**
118
- * Component for rendering number variables.
119
- *
120
- * `children?` - (any) - The content to render if provided. Overrides `defaultValue`.
121
- *
122
- * `name?` - (string) - The name of the variable, used for identifying the component.
123
- *
124
- * `defaultValue?` - (any) - The default value to display if `children` is not provided. This can be a number or a string representation of a number.
125
- *
126
- * `options?` - (Record<string, any>) - Additional options for `Intl.NumberFormat` for formatting the number.
127
- **/
128
- Num: ComponentType<{
129
- children?: any;
130
- name?: string;
131
- defaultValue?: any;
132
- options?: Record<string, any>;
133
- }>;
134
- /**
135
- * Component for rendering date variables.
136
- *
137
- * `children?` - (any) - The content to render if provided. Overrides `defaultValue`.
138
- *
139
- * `name?` - (string) - The name of the variable, used for identifying the component.
140
- *
141
- * `defaultValue?` - (any) - The default value to display if `children` is not provided. This can be a number (Unix timestamp), string, or Date object.
142
- *
143
- * `options?` - (Record<string, any>) - Additional options for `Intl.DateTimeFormat` for formatting the date.
144
- **/
145
- DateTime: ComponentType<{
146
- children?: any;
147
- name?: string;
148
- defaultValue?: any;
149
- options?: Record<string, any>;
150
- }>;
151
- /**
152
- * Component for rendering currency variables.
153
- *
154
- * `children?` - (any) - The content to render if provided. Overrides `defaultValue`.
155
- *
156
- * `name?` - (string) - The name of the variable, used for identifying the component.
157
- *
158
- * `defaultValue?` - (any) - The default value to display if `children` is not provided. This should be a number or a string representation of a number.
159
- *
160
- * `currency?` - (string) - The currency code to use for formatting. Defaults to "USD".
161
- *
162
- * `options?` - (Record<string, any>) - Additional options for `Intl.NumberFormat` for formatting the currency.
163
- **/
164
- Currency: ComponentType<{
165
- children?: any;
166
- name?: string;
167
- defaultValue?: any;
168
- currency?: string;
169
- options?: Record<string, any>;
170
- }>;
171
- /**
172
- * Server-side function which gets the user's current locale.
173
- * Returns a BCP 47 language code representing the user's language, e.g. `en-US`.
174
- **/
175
- getLocale: () => string;
176
- /**
177
- * Server-side function which gets the application's default locale.
178
- * Returns a BCP 47 language code representing a language, e.g. `en-US`.
179
- **/
180
- getDefaultLocale: () => string;
181
- }
108
+ };
109
+ export default GeneralTranslation;
182
110
  //# sourceMappingURL=GeneralTranslationInterface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GeneralTranslationInterface.d.ts","sourceRoot":"","sources":["../../src/types/GeneralTranslationInterface.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEvD,MAAM,CAAC,OAAO,WAAW,kBAAkB;IAEvC;;;;;;;;MAQE;IACF,CAAC,EAAE,aAAa,CAAC;QACb,QAAQ,CAAC,EAAE,GAAG,CAAC;QACf,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;K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CAAC;IAE1B;;;;;;OAMG;IACH,KAAK,EAAE,aAAa,CAAC;QACjB,QAAQ,CAAC,EAAE,GAAG,CAAC;QACf,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAC/B,CAAC,CAAC;IAEH;;;;;;;;OAQG;IACH,OAAO,EAAE,aAAa,CAAC;QACnB,QAAQ,CAAC,EAAE,GAAG,CAAC;QACf,CAAC,EAAE,MAAM,CAAC;QACV,IAAI,CAAC,EAAE,SAAS,CAAC;QACjB,GAAG,CAAC,EAAE,SAAS,CAAC;QAChB,GAAG,CAAC,EAAE,SAAS,CAAC;QAChB,GAAG,CAAC,EAAE,SAAS,CAAC;QAChB,IAAI,CAAC,EAAE,SAAS,CAAC;QACjB,KAAK,CAAC,EAAE,SAAS,CAAC;QAClB,MAAM,CAAC,EAAE;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,GAAG,CAAA;SAAE,EAAE,CAAC;KAC1D,CAAC,CAAC;CAEN,CAAA;AAED,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,83 @@
1
+ import { ComponentType } from 'react';
2
+ type Variables = {
3
+ /**
4
+ * Component for rendering variables.
5
+ *
6
+ * `children?` - (any) - The content to render if provided. Overrides `defaultValue`.
7
+ *
8
+ * `name?` - (string) - The name of the variable, used for identifying the component.
9
+ *
10
+ * `defaultValue?` - (any) - The default value to display if `children` is not provided.
11
+ **/
12
+ Var: ComponentType<{
13
+ children?: any;
14
+ name?: string;
15
+ defaultValue?: any;
16
+ }>;
17
+ /**
18
+ * Component for rendering number variables.
19
+ *
20
+ * `children?` - (any) - The content to render if provided. Overrides `defaultValue`.
21
+ *
22
+ * `name?` - (string) - The name of the variable, used for identifying the component.
23
+ *
24
+ * `defaultValue?` - (any) - The default value to display if `children` is not provided. This can be a number or a string representation of a number.
25
+ *
26
+ * `options?` - (Intl.NumberFormatOptions) - Additional options for `Intl.NumberFormat` for formatting the number.
27
+ **/
28
+ Num: ComponentType<{
29
+ children?: any;
30
+ name?: string;
31
+ defaultValue?: any;
32
+ options?: Intl.NumberFormatOptions;
33
+ }>;
34
+ /**
35
+ * Component for rendering date variables.
36
+ *
37
+ * `children?` - (any) - The content to render if provided. Overrides `defaultValue`.
38
+ *
39
+ * `name?` - (string) - The name of the variable, used for identifying the component.
40
+ *
41
+ * `defaultValue?` - (any) - The default value to display if `children` is not provided. This can be a number (Unix timestamp), string, or Date object.
42
+ *
43
+ * `options?` - (Intl.DateTimeFormatOptions) - Additional options for `Intl.DateTimeFormat` for formatting the date.
44
+ **/
45
+ DateTime: ComponentType<{
46
+ children?: any;
47
+ name?: string;
48
+ defaultValue?: any;
49
+ options?: Intl.DateTimeFormatOptions;
50
+ }>;
51
+ /**
52
+ * Component for rendering currency variables.
53
+ *
54
+ * `children?` - (any) - The content to render if provided. Overrides `defaultValue`.
55
+ *
56
+ * `name?` - (string) - The name of the variable, used for identifying the component.
57
+ *
58
+ * `defaultValue?` - (any) - The default value to display if `children` is not provided. This should be a number or a string representation of a number.
59
+ *
60
+ * `currency?` - (string) - The currency code to use for formatting. Defaults to "USD".
61
+ *
62
+ * `options?` - (Intl.NumberFormatOptions) - Additional options for `Intl.NumberFormat` for formatting the currency.
63
+ **/
64
+ Currency: ComponentType<{
65
+ children?: any;
66
+ name?: string;
67
+ defaultValue?: any;
68
+ currency?: string;
69
+ options?: Intl.NumberFormatOptions;
70
+ }>;
71
+ /**
72
+ * Server-side function which gets the user's current locale.
73
+ * Returns a BCP 47 language code representing the user's language, e.g. `en-US`.
74
+ **/
75
+ getLocale: () => string;
76
+ /**
77
+ * Server-side function which gets the application's default locale.
78
+ * Returns a BCP 47 language code representing a language, e.g. `en-US`.
79
+ **/
80
+ getDefaultLocale: () => string;
81
+ };
82
+ export default Variables;
83
+ //# sourceMappingURL=Variables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Variables.d.ts","sourceRoot":"","sources":["../../src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sourceRoot":"","sources":["../../src/types/Variables.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gt-react",
3
- "version": "3.1.26",
3
+ "version": "3.1.28",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,16 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- export default function createNumericValueMarkerComponents(): {
3
- NumericMarker: {
4
- ({ children }: {
5
- children?: ReactNode;
6
- }): React.ReactNode;
7
- gtTransformation: string;
8
- };
9
- ValueMarker: {
10
- ({ children }: {
11
- children?: ReactNode;
12
- }): React.ReactNode;
13
- gtTransformation: string;
14
- };
15
- };
16
- //# sourceMappingURL=createNumericValueMarkerComponents.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createNumericValueMarkerComponents.d.ts","sourceRoot":"","sources":["../../src/dictionary/createNumericValueMarkerComponents.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAExC,MAAM,CAAC,OAAO,UAAU,kCAAkC;;uBAEjB;YAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;SAAE;;;;uBAK1B;YAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;SAAE;;;EAM9D"}
@@ -1,12 +0,0 @@
1
- export default function createNumericValueMarkerComponents() {
2
- const NumericMarker = ({ children }) => {
3
- return children;
4
- };
5
- NumericMarker.gtTransformation = "marker-numeric";
6
- const ValueMarker = ({ children }) => {
7
- return children;
8
- };
9
- ValueMarker.gtTransformation = "marker-numeric";
10
- return ({ NumericMarker, ValueMarker });
11
- }
12
- //# sourceMappingURL=createNumericValueMarkerComponents.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createNumericValueMarkerComponents.js","sourceRoot":"","sources":["../../src/dictionary/createNumericValueMarkerComponents.tsx"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,kCAAkC;IAEtD,MAAM,aAAa,GAAG,CAAC,EAAE,QAAQ,EAA4B,EAAE,EAAE;QAC7D,OAAO,QAAQ,CAAC;IACpB,CAAC,CAAA;IACD,aAAa,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAElD,MAAM,WAAW,GAAG,CAAC,EAAE,QAAQ,EAA4B,EAAE,EAAE;QAC3D,OAAO,QAAQ,CAAC;IACpB,CAAC,CAAA;IACD,WAAW,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAEhD,OAAO,CAAC,EAAE,aAAa,EAAE,WAAW,EAAE,CAAC,CAAA;AAC3C,CAAC"}