@generaltranslation/react-core 11.0.3 → 11.0.4
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/CHANGELOG.md +11 -0
- package/dist/utils/internal/writeChildrenAsObjects.cjs +1 -1
- package/dist/utils/internal/writeChildrenAsObjects.cjs.map +1 -1
- package/dist/utils/internal/writeChildrenAsObjects.mjs +1 -1
- package/dist/utils/internal/writeChildrenAsObjects.mjs.map +1 -1
- package/package.json +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @generaltranslation/react-core
|
|
2
2
|
|
|
3
|
+
## 11.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1849](https://github.com/generaltranslation/gt/pull/1849) [`d23766c`](https://github.com/generaltranslation/gt/commit/d23766c78a2c1be278d85e896d2521453734a6eb) Thanks [@bgub](https://github.com/bgub)! - Remove duplicated GTProp computation in `writeChildrenAsObjects`. The result of `createGTProp()` was immediately overwritten by an inline copy of the same logic, and because both copies recursed into plural/branch subtrees, each level of `<Plural>`/`<Branch>` nesting doubled the serialization work. Branch subtrees are now serialized once.
|
|
8
|
+
|
|
9
|
+
- [#1848](https://github.com/generaltranslation/gt/pull/1848) [`1f33d5f`](https://github.com/generaltranslation/gt/commit/1f33d5f76ffc879d2d21aa2508e07e1d3b66c4e3) Thanks [@bgub](https://github.com/bgub)! - Remove unused dependencies: `@generaltranslation/supported-locales` from gt-react, gt-next, gt-i18n, and @generaltranslation/react-core, and `@generaltranslation/format` from gt-react. Nothing in these packages imports them, so this only reduces install weight.
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`006e071`](https://github.com/generaltranslation/gt/commit/006e071bf87ffe80f2d18958ddfa8f18cc2d85d2), [`7fb4a74`](https://github.com/generaltranslation/gt/commit/7fb4a74c52065694a40deafcf4596acc09e17f58), [`1f33d5f`](https://github.com/generaltranslation/gt/commit/1f33d5f76ffc879d2d21aa2508e07e1d3b66c4e3)]:
|
|
12
|
+
- gt-i18n@1.0.2
|
|
13
|
+
|
|
3
14
|
## 11.0.3
|
|
4
15
|
|
|
5
16
|
## 11.0.2
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../variables/getVariableName.cjs`),t=require(`../utils.cjs`);let n=require(`generaltranslation/internal`),r=require(`@generaltranslation/format/types`);const i=e=>{if(!e)return``;let{type:t,props:n}=e;if(t&&typeof t==`function`){if(`displayName`in t&&typeof t.displayName==`string`&&t.displayName)return t.displayName;if(`name`in t&&typeof t.name==`string`&&t.name)return t.name}return t&&typeof t==`string`?t:n.href?`a`:n[`data-_gt`]?.id?`C${n[`data-_gt`].id}`:`function`},a=(e,t,n)=>{let i=Object.entries(r.HTML_CONTENT_PROPS).reduce((e,[n,r])=>{let i=t[r];return typeof i==`string`&&(e[n]=i),e},{});if(e===`plural
|
|
1
|
+
require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../variables/getVariableName.cjs`),t=require(`../utils.cjs`);let n=require(`generaltranslation/internal`),r=require(`@generaltranslation/format/types`);const i=e=>{if(!e)return``;let{type:t,props:n}=e;if(t&&typeof t==`function`){if(`displayName`in t&&typeof t.displayName==`string`&&t.displayName)return t.displayName;if(`name`in t&&typeof t.name==`string`&&t.name)return t.name}return t&&typeof t==`string`?t:n.href?`a`:n[`data-_gt`]?.id?`C${n[`data-_gt`].id}`:`function`},a=(e,t,n)=>{let i=Object.entries(r.HTML_CONTENT_PROPS).reduce((e,[n,r])=>{let i=t[r];return typeof i==`string`&&(e[n]=i),e},{});if((e===`plural`||e===`branch`)&&n){let t={};Object.entries(n).forEach(([e,n])=>{t[e]=c(n)}),i={...i,b:t,t:e===`plural`?`p`:`b`}}return Object.keys(i).length?i:void 0},o=t=>{let{props:r}=t,o={t:i(t)};if(r[`data-_gt`]){let t=r[`data-_gt`],i=t.transformation;if(i===`variable`){let i=t.variableType||`variable`,a=e.getVariableName(r,i),o=(0,n.minifyVariableType)(i);return{i:t.id,k:a,v:o}}o.i=t.id,o.d=a(i,r,t.branches)}return r.children&&(o.c=c(r.children)),o},s=e=>t.isValidTaggedElement(e)?o(e):typeof e==`number`?e.toString():e;function c(e){return Array.isArray(e)?e.map(s):s(e)}exports.writeChildrenAsObjects=c;
|
|
2
2
|
//# sourceMappingURL=writeChildrenAsObjects.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeChildrenAsObjects.cjs","names":["HTML_CONTENT_PROPS","getVariableName","isValidTaggedElement"],"sources":["../../../src/utils/internal/writeChildrenAsObjects.ts"],"sourcesContent":["import { getVariableName } from '../variables/getVariableName';\nimport { TaggedChild, TaggedChildren, TaggedElement } from '../../utils/types';\nimport { isValidTaggedElement } from '../../utils/utils';\nimport { minifyVariableType } from 'generaltranslation/internal';\nimport {\n GTProp,\n HTML_CONTENT_PROPS,\n HtmlContentPropKeysRecord,\n JsxChild,\n JsxChildren,\n JsxElement,\n Variable,\n} from '@generaltranslation/format/types';\nimport type { Transformation } from 'generaltranslation/types';\n\n/**\n * Gets the tag name of a React element.\n * @param {ReactElement} child - The React element.\n * @returns {string} - The tag name of the React element.\n */\nconst getTagName = (child: TaggedElement): string => {\n if (!child) return '';\n const { type, props } = child;\n if (type && typeof type === 'function') {\n if (\n 'displayName' in type &&\n typeof type.displayName === 'string' &&\n type.displayName\n )\n return type.displayName;\n if ('name' in type && typeof type.name === 'string' && type.name)\n return type.name;\n }\n if (type && typeof type === 'string') return type;\n if (props.href) return 'a';\n if (props['data-_gt']?.id) return `C${props['data-_gt'].id}`;\n return 'function';\n};\nconst createGTProp = (\n transformation: Transformation,\n props: Record<string, unknown>,\n branches?: Record<string, TaggedChildren>\n): GTProp | undefined => {\n // Add translatable HTML content props\n let newGTProp: GTProp = Object.entries(HTML_CONTENT_PROPS).reduce<GTProp>(\n (acc, [minifiedName, fullName]) => {\n const value = props[fullName];\n if (typeof value === 'string') {\n acc[minifiedName as keyof HtmlContentPropKeysRecord] = value;\n }\n return acc;\n },\n {}\n );\n\n // Check if plural\n if (transformation === 'plural'
|
|
1
|
+
{"version":3,"file":"writeChildrenAsObjects.cjs","names":["HTML_CONTENT_PROPS","getVariableName","isValidTaggedElement"],"sources":["../../../src/utils/internal/writeChildrenAsObjects.ts"],"sourcesContent":["import { getVariableName } from '../variables/getVariableName';\nimport { TaggedChild, TaggedChildren, TaggedElement } from '../../utils/types';\nimport { isValidTaggedElement } from '../../utils/utils';\nimport { minifyVariableType } from 'generaltranslation/internal';\nimport {\n GTProp,\n HTML_CONTENT_PROPS,\n HtmlContentPropKeysRecord,\n JsxChild,\n JsxChildren,\n JsxElement,\n Variable,\n} from '@generaltranslation/format/types';\nimport type { Transformation } from 'generaltranslation/types';\n\n/**\n * Gets the tag name of a React element.\n * @param {ReactElement} child - The React element.\n * @returns {string} - The tag name of the React element.\n */\nconst getTagName = (child: TaggedElement): string => {\n if (!child) return '';\n const { type, props } = child;\n if (type && typeof type === 'function') {\n if (\n 'displayName' in type &&\n typeof type.displayName === 'string' &&\n type.displayName\n )\n return type.displayName;\n if ('name' in type && typeof type.name === 'string' && type.name)\n return type.name;\n }\n if (type && typeof type === 'string') return type;\n if (props.href) return 'a';\n if (props['data-_gt']?.id) return `C${props['data-_gt'].id}`;\n return 'function';\n};\nconst createGTProp = (\n transformation: Transformation,\n props: Record<string, unknown>,\n branches?: Record<string, TaggedChildren>\n): GTProp | undefined => {\n // Add translatable HTML content props\n let newGTProp: GTProp = Object.entries(HTML_CONTENT_PROPS).reduce<GTProp>(\n (acc, [minifiedName, fullName]) => {\n const value = props[fullName];\n if (typeof value === 'string') {\n acc[minifiedName as keyof HtmlContentPropKeysRecord] = value;\n }\n return acc;\n },\n {}\n );\n\n // Check if plural or branch\n if (\n (transformation === 'plural' || transformation === 'branch') &&\n branches\n ) {\n const newBranches: Record<string, JsxChildren> = {};\n Object.entries(branches).forEach(\n ([key, value]: [string, TaggedChildren]) => {\n newBranches[key] = writeChildrenAsObjects(value);\n }\n );\n newGTProp = {\n ...newGTProp,\n b: newBranches,\n t: transformation === 'plural' ? 'p' : 'b',\n };\n }\n\n return Object.keys(newGTProp).length ? newGTProp : undefined;\n};\n\n/**\n * Handles a single child element.\n * @param {TaggedElement} child - The child to handle.\n * @returns {JsxElement | Variable} The minified element.\n */\nconst handleSingleChildElement = (\n child: TaggedElement\n): JsxElement | Variable => {\n const { props } = child;\n const minifiedElement: JsxElement = {\n t: getTagName(child),\n };\n if (props['data-_gt']) {\n // Get generaltranslation props\n const generaltranslation = props['data-_gt'];\n\n // Check if variable\n const transformation = generaltranslation.transformation;\n if (transformation === 'variable') {\n const variableType = generaltranslation.variableType || 'variable';\n const variableName = getVariableName(props, variableType);\n const minifiedVariableType = minifyVariableType(variableType);\n return {\n i: generaltranslation.id,\n k: variableName,\n v: minifiedVariableType,\n };\n }\n\n // Add id\n minifiedElement.i = generaltranslation.id;\n\n // Add GT prop\n minifiedElement.d = createGTProp(\n transformation as Transformation,\n props,\n generaltranslation.branches\n );\n }\n if (props.children) {\n minifiedElement.c = writeChildrenAsObjects(props.children);\n }\n return minifiedElement;\n};\n\nconst handleSingleChild = (child: TaggedChild): JsxChild => {\n if (isValidTaggedElement(child)) {\n return handleSingleChildElement(child);\n }\n if (typeof child === 'number') return child.toString();\n return child as JsxChild;\n};\n\n/**\n * Transforms children elements into objects, processing each child recursively if needed.\n * TaggedChildren are transformed into JsxChildren\n * @param {Children} children - The children to process.\n * @returns {object} The processed children as objects.\n */\nexport function writeChildrenAsObjects(children: TaggedChildren): JsxChildren {\n const result = Array.isArray(children)\n ? children.map(handleSingleChild)\n : handleSingleChild(children);\n return result;\n}\n"],"mappings":"yNAoBA,MAAM,EAAc,GAAiC,CACnD,GAAI,CAAC,EAAO,MAAO,GACnB,GAAM,CAAE,OAAM,SAAU,EACxB,GAAI,GAAQ,OAAO,GAAS,WAAY,CACtC,GACE,gBAAiB,GACjB,OAAO,EA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A,qBAAqB,EAAM,CACtB,EAAyB,EAAM,CAEpC,OAAO,GAAU,SAAiB,EAAM,UAAU,CAC/C,EAST,SAAgB,EAAuB,EAAuC,CAI5E,OAHe,MAAM,QAAQ,EAAS,CAClC,EAAS,IAAI,EAAkB,CAC/B,EAAkB,EAAS"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{getVariableName as e}from"../variables/getVariableName.mjs";import{isValidTaggedElement as t}from"../utils.mjs";import{minifyVariableType as n}from"generaltranslation/internal";import{HTML_CONTENT_PROPS as r}from"@generaltranslation/format/types";const i=e=>{if(!e)return``;let{type:t,props:n}=e;if(t&&typeof t==`function`){if(`displayName`in t&&typeof t.displayName==`string`&&t.displayName)return t.displayName;if(`name`in t&&typeof t.name==`string`&&t.name)return t.name}return t&&typeof t==`string`?t:n.href?`a`:n[`data-_gt`]?.id?`C${n[`data-_gt`].id}`:`function`},a=(e,t,n)=>{let i=Object.entries(r).reduce((e,[n,r])=>{let i=t[r];return typeof i==`string`&&(e[n]=i),e},{});if(e===`plural
|
|
1
|
+
import{getVariableName as e}from"../variables/getVariableName.mjs";import{isValidTaggedElement as t}from"../utils.mjs";import{minifyVariableType as n}from"generaltranslation/internal";import{HTML_CONTENT_PROPS as r}from"@generaltranslation/format/types";const i=e=>{if(!e)return``;let{type:t,props:n}=e;if(t&&typeof t==`function`){if(`displayName`in t&&typeof t.displayName==`string`&&t.displayName)return t.displayName;if(`name`in t&&typeof t.name==`string`&&t.name)return t.name}return t&&typeof t==`string`?t:n.href?`a`:n[`data-_gt`]?.id?`C${n[`data-_gt`].id}`:`function`},a=(e,t,n)=>{let i=Object.entries(r).reduce((e,[n,r])=>{let i=t[r];return typeof i==`string`&&(e[n]=i),e},{});if((e===`plural`||e===`branch`)&&n){let t={};Object.entries(n).forEach(([e,n])=>{t[e]=c(n)}),i={...i,b:t,t:e===`plural`?`p`:`b`}}return Object.keys(i).length?i:void 0},o=t=>{let{props:r}=t,o={t:i(t)};if(r[`data-_gt`]){let t=r[`data-_gt`],i=t.transformation;if(i===`variable`){let i=t.variableType||`variable`,a=e(r,i),o=n(i);return{i:t.id,k:a,v:o}}o.i=t.id,o.d=a(i,r,t.branches)}return r.children&&(o.c=c(r.children)),o},s=e=>t(e)?o(e):typeof e==`number`?e.toString():e;function c(e){return Array.isArray(e)?e.map(s):s(e)}export{c as writeChildrenAsObjects};
|
|
2
2
|
//# sourceMappingURL=writeChildrenAsObjects.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeChildrenAsObjects.mjs","names":[],"sources":["../../../src/utils/internal/writeChildrenAsObjects.ts"],"sourcesContent":["import { getVariableName } from '../variables/getVariableName';\nimport { TaggedChild, TaggedChildren, TaggedElement } from '../../utils/types';\nimport { isValidTaggedElement } from '../../utils/utils';\nimport { minifyVariableType } from 'generaltranslation/internal';\nimport {\n GTProp,\n HTML_CONTENT_PROPS,\n HtmlContentPropKeysRecord,\n JsxChild,\n JsxChildren,\n JsxElement,\n Variable,\n} from '@generaltranslation/format/types';\nimport type { Transformation } from 'generaltranslation/types';\n\n/**\n * Gets the tag name of a React element.\n * @param {ReactElement} child - The React element.\n * @returns {string} - The tag name of the React element.\n */\nconst getTagName = (child: TaggedElement): string => {\n if (!child) return '';\n const { type, props } = child;\n if (type && typeof type === 'function') {\n if (\n 'displayName' in type &&\n typeof type.displayName === 'string' &&\n type.displayName\n )\n return type.displayName;\n if ('name' in type && typeof type.name === 'string' && type.name)\n return type.name;\n }\n if (type && typeof type === 'string') return type;\n if (props.href) return 'a';\n if (props['data-_gt']?.id) return `C${props['data-_gt'].id}`;\n return 'function';\n};\nconst createGTProp = (\n transformation: Transformation,\n props: Record<string, unknown>,\n branches?: Record<string, TaggedChildren>\n): GTProp | undefined => {\n // Add translatable HTML content props\n let newGTProp: GTProp = Object.entries(HTML_CONTENT_PROPS).reduce<GTProp>(\n (acc, [minifiedName, fullName]) => {\n const value = props[fullName];\n if (typeof value === 'string') {\n acc[minifiedName as keyof HtmlContentPropKeysRecord] = value;\n }\n return acc;\n },\n {}\n );\n\n // Check if plural\n if (transformation === 'plural'
|
|
1
|
+
{"version":3,"file":"writeChildrenAsObjects.mjs","names":[],"sources":["../../../src/utils/internal/writeChildrenAsObjects.ts"],"sourcesContent":["import { getVariableName } from '../variables/getVariableName';\nimport { TaggedChild, TaggedChildren, TaggedElement } from '../../utils/types';\nimport { isValidTaggedElement } from '../../utils/utils';\nimport { minifyVariableType } from 'generaltranslation/internal';\nimport {\n GTProp,\n HTML_CONTENT_PROPS,\n HtmlContentPropKeysRecord,\n JsxChild,\n JsxChildren,\n JsxElement,\n Variable,\n} from '@generaltranslation/format/types';\nimport type { Transformation } from 'generaltranslation/types';\n\n/**\n * Gets the tag name of a React element.\n * @param {ReactElement} child - The React element.\n * @returns {string} - The tag name of the React element.\n */\nconst getTagName = (child: TaggedElement): string => {\n if (!child) return '';\n const { type, props } = child;\n if (type && typeof type === 'function') {\n if (\n 'displayName' in type &&\n typeof type.displayName === 'string' &&\n type.displayName\n )\n return type.displayName;\n if ('name' in type && typeof type.name === 'string' && type.name)\n return type.name;\n }\n if (type && typeof type === 'string') return type;\n if (props.href) return 'a';\n if (props['data-_gt']?.id) return `C${props['data-_gt'].id}`;\n return 'function';\n};\nconst createGTProp = (\n transformation: Transformation,\n props: Record<string, unknown>,\n branches?: Record<string, TaggedChildren>\n): GTProp | undefined => {\n // Add translatable HTML content props\n let newGTProp: GTProp = Object.entries(HTML_CONTENT_PROPS).reduce<GTProp>(\n (acc, [minifiedName, fullName]) => {\n const value = props[fullName];\n if (typeof value === 'string') {\n acc[minifiedName as keyof HtmlContentPropKeysRecord] = value;\n }\n return acc;\n },\n {}\n );\n\n // Check if plural or branch\n if (\n (transformation === 'plural' || transformation === 'branch') &&\n branches\n ) {\n const newBranches: Record<string, JsxChildren> = {};\n Object.entries(branches).forEach(\n ([key, value]: [string, TaggedChildren]) => {\n newBranches[key] = writeChildrenAsObjects(value);\n }\n );\n newGTProp = {\n ...newGTProp,\n b: newBranches,\n t: transformation === 'plural' ? 'p' : 'b',\n };\n }\n\n return Object.keys(newGTProp).length ? newGTProp : undefined;\n};\n\n/**\n * Handles a single child element.\n * @param {TaggedElement} child - The child to handle.\n * @returns {JsxElement | Variable} The minified element.\n */\nconst handleSingleChildElement = (\n child: TaggedElement\n): JsxElement | Variable => {\n const { props } = child;\n const minifiedElement: JsxElement = {\n t: getTagName(child),\n };\n if (props['data-_gt']) {\n // Get generaltranslation props\n const generaltranslation = props['data-_gt'];\n\n // Check if variable\n const transformation = generaltranslation.transformation;\n if (transformation === 'variable') {\n const variableType = generaltranslation.variableType || 'variable';\n const variableName = getVariableName(props, variableType);\n const minifiedVariableType = minifyVariableType(variableType);\n return {\n i: generaltranslation.id,\n k: variableName,\n v: minifiedVariableType,\n };\n }\n\n // Add id\n minifiedElement.i = generaltranslation.id;\n\n // Add GT prop\n minifiedElement.d = createGTProp(\n transformation as Transformation,\n props,\n generaltranslation.branches\n );\n }\n if (props.children) {\n minifiedElement.c = writeChildrenAsObjects(props.children);\n }\n return minifiedElement;\n};\n\nconst handleSingleChild = (child: TaggedChild): JsxChild => {\n if (isValidTaggedElement(child)) {\n return handleSingleChildElement(child);\n }\n if (typeof child === 'number') return child.toString();\n return child as JsxChild;\n};\n\n/**\n * Transforms children elements into objects, processing each child recursively if needed.\n * TaggedChildren are transformed into JsxChildren\n * @param {Children} children - The children to process.\n * @returns {object} The processed children as objects.\n */\nexport function writeChildrenAsObjects(children: TaggedChildren): JsxChildren {\n const result = Array.isArray(children)\n ? children.map(handleSingleChild)\n : handleSingleChild(children);\n return result;\n}\n"],"mappings":"8PAoBA,MAAM,EAAc,GAAiC,CACnD,GAAI,CAAC,EAAO,MAAO,GACnB,GAAM,CAAE,OAAM,SAAU,EACxB,GAAI,GAAQ,OAAO,GAAS,WAAY,CACtC,GACE,gBAAiB,GACjB,OAAO,EAAK,aAAgB,UAC5B,EAAK,YAEL,OAAO,EAAK,YACd,GAAI,SAAU,GA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EAAuC,CAI5E,OAHe,MAAM,QAAQ,EAAS,CAClC,EAAS,IAAI,EAAkB,CAC/B,EAAkB,EAAS"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@generaltranslation/react-core",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.4",
|
|
4
4
|
"description": "A pure React library for internationalization",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -11,10 +11,9 @@
|
|
|
11
11
|
"react": ">=18.0.0"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@generaltranslation/supported-locales": "2.1.3",
|
|
15
14
|
"@generaltranslation/format": "0.1.2",
|
|
16
15
|
"generaltranslation": "9.0.0",
|
|
17
|
-
"gt-i18n": "1.0.
|
|
16
|
+
"gt-i18n": "1.0.2"
|
|
18
17
|
},
|
|
19
18
|
"repository": {
|
|
20
19
|
"type": "git",
|