@uniformdev/tms-sdk 20.8.2-alpha.21 → 20.8.2-alpha.31

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/index.esm.js CHANGED
@@ -381,8 +381,8 @@ var processOverrideTranslation = ({
381
381
  if (!originalSlotComponent) {
382
382
  return;
383
383
  }
384
- walkNodeTree(slotComponent, ({ node: component, actions }) => {
385
- if (!component._id || !component.type) {
384
+ walkNodeTree(slotComponent, ({ node: component, type, actions }) => {
385
+ if (type !== "component" || !component._id || !component.type) {
386
386
  actions.stopProcessingDescendants();
387
387
  return;
388
388
  }
@@ -746,7 +746,11 @@ var translateComposition = ({
746
746
  if (!draft.composition._locales.includes(uniformTargetLocale)) {
747
747
  draft.composition._locales.push(uniformTargetLocale);
748
748
  }
749
- walkNodeTree3(draft.composition, ({ node: component, actions }) => {
749
+ walkNodeTree3(draft.composition, ({ node: component, type, actions }) => {
750
+ if (type !== "component") {
751
+ actions.stopProcessingDescendants();
752
+ return;
753
+ }
750
754
  if (!component.type || !component._id) {
751
755
  actions.stopProcessingDescendants();
752
756
  return;
package/dist/index.js CHANGED
@@ -409,8 +409,8 @@ var processOverrideTranslation = ({
409
409
  if (!originalSlotComponent) {
410
410
  return;
411
411
  }
412
- (0, import_canvas.walkNodeTree)(slotComponent, ({ node: component, actions }) => {
413
- if (!component._id || !component.type) {
412
+ (0, import_canvas.walkNodeTree)(slotComponent, ({ node: component, type, actions }) => {
413
+ if (type !== "component" || !component._id || !component.type) {
414
414
  actions.stopProcessingDescendants();
415
415
  return;
416
416
  }
@@ -774,7 +774,11 @@ var translateComposition = ({
774
774
  if (!draft.composition._locales.includes(uniformTargetLocale)) {
775
775
  draft.composition._locales.push(uniformTargetLocale);
776
776
  }
777
- (0, import_canvas5.walkNodeTree)(draft.composition, ({ node: component, actions }) => {
777
+ (0, import_canvas5.walkNodeTree)(draft.composition, ({ node: component, type, actions }) => {
778
+ if (type !== "component") {
779
+ actions.stopProcessingDescendants();
780
+ return;
781
+ }
778
782
  if (!component.type || !component._id) {
779
783
  actions.stopProcessingDescendants();
780
784
  return;
package/dist/index.mjs CHANGED
@@ -381,8 +381,8 @@ var processOverrideTranslation = ({
381
381
  if (!originalSlotComponent) {
382
382
  return;
383
383
  }
384
- walkNodeTree(slotComponent, ({ node: component, actions }) => {
385
- if (!component._id || !component.type) {
384
+ walkNodeTree(slotComponent, ({ node: component, type, actions }) => {
385
+ if (type !== "component" || !component._id || !component.type) {
386
386
  actions.stopProcessingDescendants();
387
387
  return;
388
388
  }
@@ -746,7 +746,11 @@ var translateComposition = ({
746
746
  if (!draft.composition._locales.includes(uniformTargetLocale)) {
747
747
  draft.composition._locales.push(uniformTargetLocale);
748
748
  }
749
- walkNodeTree3(draft.composition, ({ node: component, actions }) => {
749
+ walkNodeTree3(draft.composition, ({ node: component, type, actions }) => {
750
+ if (type !== "component") {
751
+ actions.stopProcessingDescendants();
752
+ return;
753
+ }
750
754
  if (!component.type || !component._id) {
751
755
  actions.stopProcessingDescendants();
752
756
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/tms-sdk",
3
- "version": "20.8.2-alpha.21+42bfa4ce42",
3
+ "version": "20.8.2-alpha.31+dc19eea5f9",
4
4
  "description": "Uniform Translation Management System SDK",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -33,12 +33,12 @@
33
33
  "access": "public"
34
34
  },
35
35
  "dependencies": {
36
- "@uniformdev/canvas": "20.8.2-alpha.21+42bfa4ce42",
37
- "@uniformdev/mesh-sdk": "20.8.2-alpha.21+42bfa4ce42",
38
- "@uniformdev/richtext": "20.8.2-alpha.21+42bfa4ce42",
36
+ "@uniformdev/canvas": "20.8.2-alpha.31+dc19eea5f9",
37
+ "@uniformdev/mesh-sdk": "20.8.2-alpha.31+dc19eea5f9",
38
+ "@uniformdev/richtext": "20.8.2-alpha.31+dc19eea5f9",
39
39
  "dequal": "2.0.3",
40
40
  "fast-xml-parser": "4.4.1",
41
41
  "immer": "10.1.1"
42
42
  },
43
- "gitHead": "42bfa4ce42d4efdd35192096f1d4c23577e6cf2b"
43
+ "gitHead": "dc19eea5f979ff3b4526db1dd75a2e1e0f4f43f7"
44
44
  }