gt-react 3.1.16 → 3.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client/T.js CHANGED
@@ -4,12 +4,12 @@ import { GTContext } from "./ClientProvider";
4
4
  export default function T({ children, id }) {
5
5
  const ctx = useContext(GTContext);
6
6
  if (!ctx) {
7
- console.error(`<T>, with children:\n\n${children}\n\nid:\n\n${id}\n\nNo context provided. Did you mean to import the server component instead?`);
7
+ console.error(`<T>, with children:\n\n${children}\n\nid: ${id}\n\nNo context provided. Did you mean to import the server component instead?`);
8
8
  return children;
9
9
  }
10
10
  const translation = useMemo(() => { return ctx === null || ctx === void 0 ? void 0 : ctx.translate(id); }, [children, id]);
11
11
  if (!translation) {
12
- console.warn(`<T>, with children:\n\n${children}\n\nid:\n\n${id}\n\nNo translation found.`);
12
+ console.warn(`<T>, with children:\n\n${children}\n\nid: ${id}\n\nNo translation found.`);
13
13
  return children;
14
14
  }
15
15
  return translation || children;
@@ -1 +1 @@
1
- {"version":3,"file":"T.js","sourceRoot":"","sources":["../../src/client/T.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,EAAa,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAwC;IAC5E,MAAM,GAAG,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC;IAClC,IAAI,CAAC,GAAG,EAAE,CAAC;QACP,OAAO,CAAC,KAAK,CAAC,0BAA0B,QAAQ,cAAc,EAAE,+EAA+E,CAAC,CAAC;QACjJ,OAAO,QAAQ,CAAC;IACpB,CAAC;IACD,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,EAAE,GAAG,OAAO,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,SAAS,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;IACjF,IAAI,CAAC,WAAW,EAAE,CAAC;QACf,OAAO,CAAC,IAAI,CAAC,0BAA0B,QAAQ,cAAc,EAAE,2BAA2B,CAAC,CAAC;QAC5F,OAAO,QAAQ,CAAC;IACpB,CAAC;IACD,OAAO,WAAW,IAAI,QAAQ,CAAC;AACnC,CAAC"}
1
+ {"version":3,"file":"T.js","sourceRoot":"","sources":["../../src/client/T.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;AAEZ,OAAO,EAAa,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAwC;IAC5E,MAAM,GAAG,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC;IAClC,IAAI,CAAC,GAAG,EAAE,CAAC;QACP,OAAO,CAAC,KAAK,CAAC,0BAA0B,QAAQ,WAAW,EAAE,+EAA+E,CAAC,CAAC;QAC9I,OAAO,QAAQ,CAAC;IACpB,CAAC;IACD,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,EAAE,GAAG,OAAO,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,SAAS,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;IACjF,IAAI,CAAC,WAAW,EAAE,CAAC;QACf,OAAO,CAAC,IAAI,CAAC,0BAA0B,QAAQ,WAAW,EAAE,2BAA2B,CAAC,CAAC;QACzF,OAAO,QAAQ,CAAC;IACpB,CAAC;IACD,OAAO,WAAW,IAAI,QAAQ,CAAC;AACnC,CAAC"}
@@ -30,7 +30,7 @@ export default function ClientNumeric(_a) {
30
30
  var { children, id, n, ranges } = _a, branches = __rest(_a, ["children", "id", "n", "ranges"]);
31
31
  const ctx = useContext(GTContext);
32
32
  if (!ctx) {
33
- console.error(`<Numeric>, with children:\n\n${children}\n\nid:\n\n${id}\n\nNo context provided. Did you mean to import the server component instead?`);
33
+ console.error(`<Numeric>, with children:\n\n${children}\n\nid: ${id}\n\nNo context provided. Did you mean to import the server component instead?`);
34
34
  return _jsx(RenderClientVariable, { variables: (typeof n === 'number') ? { n } : undefined, children: children });
35
35
  }
36
36
  const translation = useMemo(() => { return (ctx === null || ctx === void 0 ? void 0 : ctx.translate(id)) || children; }, [children, id]);
@@ -1 +1 @@
1
- {"version":3,"file":"ClientNumeric.js","sourceRoot":"","sources":["../../../src/client/numeric/ClientNumeric.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;;;;;;;;;;;;AAEZ,OAAc,EAAc,UAAU,EAAG,OAAO,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,gBAA2B,MAAM,mCAAmC,CAAC;AAC5E,OAAO,oBAAoB,MAAM,+BAA+B,CAAC;AACjE,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,gBAAgB,MAAM,2BAA2B,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAU9C;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAsD;QAAtD,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,OAA6B,EAAxB,QAAQ,cAAtC,iCAAwC,CAAF;IAExE,MAAM,GAAG,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC;IAClC,IAAI,CAAC,GAAG,EAAE,CAAC;QACP,OAAO,CAAC,KAAK,CAAC,gCAAgC,QAAQ,cAAc,EAAE,+EAA+E,CAAC,CAAC;QACvJ,OAAO,KAAC,oBAAoB,IAAC,SAAS,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,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AAgB,GAAG,OAAO,CAAC,GAAG,EAAE;QAClC,OAAO,KAAC,oBAAoB,IAAC,SAAS,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,YAAG,MAAM,GAAwB,CAAA;IACxH,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAA;IAEf,OAAO,CACH,yBACK,gBAAgB,GACd,CACV,CAAC;AAEN,CAAC;AAAA,CAAC"}
@@ -16,12 +16,12 @@ import { GTContext } from '../ClientProvider';
16
16
  export default function ClientValue({ children, id, branches, values }) {
17
17
  const ctx = useContext(GTContext);
18
18
  if (!ctx) {
19
- console.error(`<Value>, with children:\n\n${children}\n\nid:\n\n${id}\n\nNo context provided. Did you mean to import the server component instead?`);
19
+ console.error(`<Value>, with children:\n\n${children}\n\nid: ${id}\n\nNo context provided. Did you mean to import the server component instead?`);
20
20
  return _jsx(RenderClientVariable, { variables: values ? values : undefined, children: children });
21
21
  }
22
22
  const translation = useMemo(() => { return ctx === null || ctx === void 0 ? void 0 : ctx.translate(id); }, [children, id]);
23
23
  if (!translation) {
24
- console.warn(`<Value>, with children:\n\n${children}\n\nid:\n\n${id}\n\nNo translation found.`);
24
+ console.warn(`<Value>, with children:\n\n${children}\n\nid: ${id}\n\nNo translation found.`);
25
25
  return children;
26
26
  }
27
27
  const branch = useMemo(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"ClientValue.js","sourceRoot":"","sources":["../../../src/client/value/ClientValue.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAc,EAAa,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,cAAc,MAAM,iCAAiC,CAAC;AAC7D,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAU9C;;;;;;;;GAQG;AACH,MAA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xB,OAAO,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,IAAI,OAAO,QAAQ,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,WAAW,CAAC;IACzI,CAAC,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAA;IAEnC,MAAM,gBAAgB,GAAG,OAAO,CAAC,GAAG,EAAE;QAClC,OAAO,KAAC,oBAAoB,IAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,YAAG,MAAM,GAAwB,CAAA;IACxG,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IAEpB,OAAO,CACH,yBACK,gBAAgB,GACd,CACV,CAAA;AAEL,CAAC;AAAA,CAAC"}
package/dist/next.d.ts CHANGED
@@ -11,7 +11,7 @@ import GeneralTranslation from "./types/GeneralTranslationInterface";
11
11
  * @param {string[]} [params.approvedLocales] - List of approved locales. Default is an empty array.
12
12
  * @param {string} [params.defaultLocale] - Default locale for the translation. Default is the first locale in `approvedLocales` or 'en'.
13
13
  * @param {Function} [params.getLocale] - Function to get the current locale. Sets using Next.js request headers if not provided.
14
- * @param {string} [params.renderMethod] - How translations are rendered for the first time. options are "skeleton", "replace", "hang", "subtle". Default is "skeleton".
14
+ * @param {string} [params.renderMethod] - How translations are rendered for the first time. options are "skeleton", "replace", "hang", "subtle".
15
15
  * @param {string} [params.dictionaryName] - Name of the dictionary to use. Default is "default".
16
16
  * @param {Object} [params.dictionary] - Dictionary object containing translations.
17
17
  * @param {number} [params.maxConcurrentRequests] - Maximum number of concurrent requests. Default is 2.
package/dist/next.js CHANGED
@@ -22,7 +22,7 @@ import { getNextDomain, getNextLocale } from "./next/requestFunctions";
22
22
  * @param {string[]} [params.approvedLocales] - List of approved locales. Default is an empty array.
23
23
  * @param {string} [params.defaultLocale] - Default locale for the translation. Default is the first locale in `approvedLocales` or 'en'.
24
24
  * @param {Function} [params.getLocale] - Function to get the current locale. Sets using Next.js request headers if not provided.
25
- * @param {string} [params.renderMethod] - How translations are rendered for the first time. options are "skeleton", "replace", "hang", "subtle". Default is "skeleton".
25
+ * @param {string} [params.renderMethod] - How translations are rendered for the first time. options are "skeleton", "replace", "hang", "subtle".
26
26
  * @param {string} [params.dictionaryName] - Name of the dictionary to use. Default is "default".
27
27
  * @param {Object} [params.dictionary] - Dictionary object containing translations.
28
28
  * @param {number} [params.maxConcurrentRequests] - Maximum number of concurrent requests. Default is 2.
package/dist/server.d.ts CHANGED
@@ -15,7 +15,7 @@ import GeneralTranslation from './types/GeneralTranslationInterface';
15
15
  * @param {string} [params.defaultLocale] - Default locale for the translation. Default is the first locale in `approvedLocales` or 'en'.
16
16
  * @param {Function} [params.getLocale] - Function to get the current locale. Default returns the `defaultLocale`.
17
17
  * @param {boolean} [params.renderPrevious] - Experimental. If there's a previous translation on file remotely, use it as a placeholder while the new translation loads, replacing the role of the default language children in "replace" and "subtle", and the skeleton in "skeleton".
18
- * @param {string} [params.renderMethod] - How translations are rendered for the first time. options are "replace", "hang", "subtle". Default is "skeleton".
18
+ * @param {string} [params.renderMethod] - How translations are rendered for the first time. options are "replace", "hang", "subtle".
19
19
  * @param {string} [params.renderTimeout] - Timeout before rendering a new translation is called off.
20
20
  * @param {string} [params.dictionaryName] - Name of the dictionary to use. Default is "default".
21
21
  * @param {Object} [params.dictionary] - Dictionary object containing default language content.
package/dist/server.js CHANGED
@@ -38,7 +38,7 @@ import defaultGTProps from './types/defaultGTProps';
38
38
  * @param {string} [params.defaultLocale] - Default locale for the translation. Default is the first locale in `approvedLocales` or 'en'.
39
39
  * @param {Function} [params.getLocale] - Function to get the current locale. Default returns the `defaultLocale`.
40
40
  * @param {boolean} [params.renderPrevious] - Experimental. If there's a previous translation on file remotely, use it as a placeholder while the new translation loads, replacing the role of the default language children in "replace" and "subtle", and the skeleton in "skeleton".
41
- * @param {string} [params.renderMethod] - How translations are rendered for the first time. options are "replace", "hang", "subtle". Default is "skeleton".
41
+ * @param {string} [params.renderMethod] - How translations are rendered for the first time. options are "replace", "hang", "subtle".
42
42
  * @param {string} [params.renderTimeout] - Timeout before rendering a new translation is called off.
43
43
  * @param {string} [params.dictionaryName] - Name of the dictionary to use. Default is "default".
44
44
  * @param {Object} [params.dictionary] - Dictionary object containing default language content.
@@ -11,7 +11,7 @@ const defaultGTProps = {
11
11
  getLocale: () => { return 'en '; },
12
12
  // Rendering
13
13
  renderPrevious: true,
14
- renderMethod: "skeleton", // "replace", "hang", "subtle"
14
+ renderMethod: "replace", // "skeleton", "hang", "subtle"
15
15
  renderTimeout: 12500,
16
16
  // Dictionaries
17
17
  dictionaryName: "default",
@@ -1 +1 @@
1
- {"version":3,"file":"defaultGTProps.js","sourceRoot":"","sources":["../../src/types/defaultGTProps.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,mCAAmC,CAAA;AAEjE,MAAM,cAAc,GAAG;IACnB,MAAM,EAAE,iBAAiB,CAAC,YAAY,CAAC;IACvC,SAAS,EAAE,iBAAiB,CAAC,eAAe,CAAC;IAC7C,QAAQ,EAAE,uBAAuB;IACjC,OAAO,EAAE,sBAAsB;IAC/B,YAAY,EAAE,IAAI;IAClB,oBAAoB,EAAE,IAAI;IAC1B,cAAc;IACd,aAAa,EAAE,IAAI;IACnB,SAAS,EAAE,GAAG,EAAE,GAAG,OAAO,KAAK,CAAA,CAAA,CAAC;IAChC,YAAY;IACZ,cAAc,EAAE,IAAI;IACpB,YAAY,EAAE,UAAU,EAAE,8BAA8B;IACxD,aAAa,EAAE,KAAK;IACpB,eAAe;IACf,cAAc,EAAE,SAAS;IACzB,UAAU,EAAE,EAAE;IACd,kBAAkB;IAClB,qBAAqB,EAAE,CAAC;IACxB,aAAa,EAAE,IAAI;IACnB,iBAAiB;IACjB,WAAW,EAAE,GAAG,EAAE,GAAG,OAAO,EAAE,CAAA,CAAC,CAAC;CACnC,CAAA;AAED,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"defaultGTProps.js","sourceRoot":"","sources":["../../src/types/defaultGTProps.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,mCAAmC,CAAA;AAEjE,MAAM,cAAc,GAAG;IACnB,MAAM,EAAE,iBAAiB,CAAC,YAAY,CAAC;IACvC,SAAS,EAAE,iBAAiB,CAAC,eAAe,CAAC;IAC7C,QAAQ,EAAE,uBAAuB;IACjC,OAAO,EAAE,sBAAsB;IAC/B,YAAY,EAAE,IAAI;IAClB,oBAAoB,EAAE,IAAI;IAC1B,cAAc;IACd,aAAa,EAAE,IAAI;IACnB,SAAS,EAAE,GAAG,EAAE,GAAG,OAAO,KAAK,CAAA,CAAA,CAAC;IAChC,YAAY;IACZ,cAAc,EAAE,IAAI;IACpB,YAAY,EAAE,SAAS,EAAE,+BAA+B;IACxD,aAAa,EAAE,KAAK;IACpB,eAAe;IACf,cAAc,EAAE,SAAS;IACzB,UAAU,EAAE,EAAE;IACd,kBAAkB;IAClB,qBAAqB,EAAE,CAAC;IACxB,aAAa,EAAE,IAAI;IACnB,iBAAiB;IACjB,WAAW,EAAE,GAAG,EAAE,GAAG,OAAO,EAAE,CAAA,CAAC,CAAC;CACnC,CAAA;AAED,eAAe,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gt-react",
3
- "version": "3.1.16",
3
+ "version": "3.1.18",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",