gt-next 6.13.2 → 6.13.3

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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # gt-next
2
2
 
3
+ ## 6.13.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1068](https://github.com/generaltranslation/gt/pull/1068) [`94b95ef`](https://github.com/generaltranslation/gt/commit/94b95ef662b81dac51416ecc64f3318339171f0b) Thanks [@ErnestM1234](https://github.com/ErnestM1234)! - fix: runtime calculation for the injection of 'data-' attribute in jsx
8
+
9
+ - Updated dependencies [[`94b95ef`](https://github.com/generaltranslation/gt/commit/94b95ef662b81dac51416ecc64f3318339171f0b)]:
10
+ - @generaltranslation/compiler@1.1.23
11
+ - gt-react@10.11.2
12
+
3
13
  ## 6.13.2
4
14
 
5
15
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"Branch.d.ts","sourceRoot":"","sources":["../../src/branches/Branch.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,iBAAS,MAAM,CAAC,EACd,QAAQ,EACR,MAAM,EACN,GAAG,QAAQ,EACZ,EAAE;IACD,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAQpB;kBAhBQ,MAAM;;;AAmBf,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Branch.d.ts","sourceRoot":"","sources":["../../src/branches/Branch.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,iBAAS,MAAM,CAAC,EACd,QAAQ,EACR,MAAM,EACN,GAAG,QAAQ,EACZ,EAAE;IACD,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAWpB;kBAnBQ,MAAM;;;AAsBf,eAAe,MAAM,CAAC"}
@@ -37,8 +37,11 @@ var jsx_runtime_1 = require("react/jsx-runtime");
37
37
  */
38
38
  function Branch(_a) {
39
39
  var children = _a.children, branch = _a.branch, branches = __rest(_a, ["children", "branch"]);
40
- // const { 'data-_gt': generaltranslation, ...branches } = props;
41
40
  branch = branch === null || branch === void 0 ? void 0 : branch.toString();
41
+ // ignore data-* attributes
42
+ if (typeof branch === 'string' && branch.startsWith('data-')) {
43
+ branch = undefined;
44
+ }
42
45
  var renderedBranch = branch && typeof branches[branch] !== 'undefined'
43
46
  ? branches[branch]
44
47
  : children;
@@ -1 +1 @@
1
- {"version":3,"file":"Branch.js","sourceRoot":"","sources":["../../src/branches/Branch.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAS,MAAM,CAAC,EAQf;IAPC,IAAA,QAAQ,cAAA,EACR,MAAM,YAAA,EACH,QAAQ,cAHG,sBAIf,CADY;IAMX,iEAAiE;IACjE,MAAM,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,EAAE,CAAC;IAC5B,IAAM,cAAc,GAClB,MAAM,IAAI,OAAO,QAAQ,CAAC,MAAM,CAAC,KAAK,WAAW;QAC/C,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;QAClB,CAAC,CAAC,QAAQ,CAAC;IACf,OAAO,2DAAG,cAAc,GAAI,CAAC;AAC/B,CAAC;AACD,gEAAgE;AAChE,MAAM,CAAC,IAAI,GAAG,QAAQ,CAAC;AACvB,kBAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Branch.js","sourceRoot":"","sources":["../../src/branches/Branch.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAS,MAAM,CAAC,EAQf;IAPC,IAAA,QAAQ,cAAA,EACR,MAAM,YAAA,EACH,QAAQ,cAHG,sBAIf,CADY;IAMX,MAAM,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,EAAE,CAAC;IAC5B,2BAA2B;IAC3B,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QAC7D,MAAM,GAAG,SAAS,CAAC;IACrB,CAAC;IACD,IAAM,cAAc,GAClB,MAAM,IAAI,OAAO,QAAQ,CAAC,MAAM,CAAC,KAAK,WAAW;QAC/C,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;QAClB,CAAC,CAAC,QAAQ,CAAC;IACf,OAAO,2DAAG,cAAc,GAAI,CAAC;AAC/B,CAAC;AACD,gEAAgE;AAChE,MAAM,CAAC,IAAI,GAAG,QAAQ,CAAC;AACvB,kBAAe,MAAM,CAAC"}
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gt-next",
3
- "version": "6.13.2",
3
+ "version": "6.13.3",
4
4
  "description": "A Next.js library for automatic internationalization.",
5
5
  "main": "dist/index.server.js",
6
6
  "peerDependencies": {
@@ -14,9 +14,9 @@
14
14
  ],
15
15
  "dependencies": {
16
16
  "@generaltranslation/supported-locales": "2.0.46",
17
- "@generaltranslation/compiler": "1.1.22",
17
+ "@generaltranslation/compiler": "1.1.23",
18
18
  "@generaltranslation/next-internal": "0.1.0",
19
- "gt-react": "10.11.1",
19
+ "gt-react": "10.11.2",
20
20
  "generaltranslation": "8.1.13",
21
21
  "gt-i18n": "0.4.1"
22
22
  },