@uniformdev/tms-sdk 20.8.2-alpha.31 → 20.9.1-alpha.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/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, type, actions }) => {
385
- if (type !== "component" || !component._id || !component.type) {
384
+ walkNodeTree(slotComponent, ({ node: component, actions }) => {
385
+ if (!component._id || !component.type) {
386
386
  actions.stopProcessingDescendants();
387
387
  return;
388
388
  }
@@ -746,11 +746,7 @@ 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, type, actions }) => {
750
- if (type !== "component") {
751
- actions.stopProcessingDescendants();
752
- return;
753
- }
749
+ walkNodeTree3(draft.composition, ({ node: component, actions }) => {
754
750
  if (!component.type || !component._id) {
755
751
  actions.stopProcessingDescendants();
756
752
  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, type, actions }) => {
413
- if (type !== "component" || !component._id || !component.type) {
412
+ (0, import_canvas.walkNodeTree)(slotComponent, ({ node: component, actions }) => {
413
+ if (!component._id || !component.type) {
414
414
  actions.stopProcessingDescendants();
415
415
  return;
416
416
  }
@@ -774,11 +774,7 @@ 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, type, actions }) => {
778
- if (type !== "component") {
779
- actions.stopProcessingDescendants();
780
- return;
781
- }
777
+ (0, import_canvas5.walkNodeTree)(draft.composition, ({ node: component, actions }) => {
782
778
  if (!component.type || !component._id) {
783
779
  actions.stopProcessingDescendants();
784
780
  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, type, actions }) => {
385
- if (type !== "component" || !component._id || !component.type) {
384
+ walkNodeTree(slotComponent, ({ node: component, actions }) => {
385
+ if (!component._id || !component.type) {
386
386
  actions.stopProcessingDescendants();
387
387
  return;
388
388
  }
@@ -746,11 +746,7 @@ 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, type, actions }) => {
750
- if (type !== "component") {
751
- actions.stopProcessingDescendants();
752
- return;
753
- }
749
+ walkNodeTree3(draft.composition, ({ node: component, actions }) => {
754
750
  if (!component.type || !component._id) {
755
751
  actions.stopProcessingDescendants();
756
752
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/tms-sdk",
3
- "version": "20.8.2-alpha.31+dc19eea5f9",
3
+ "version": "20.9.1-alpha.3+9f10f56702",
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.31+dc19eea5f9",
37
- "@uniformdev/mesh-sdk": "20.8.2-alpha.31+dc19eea5f9",
38
- "@uniformdev/richtext": "20.8.2-alpha.31+dc19eea5f9",
36
+ "@uniformdev/canvas": "20.9.1-alpha.3+9f10f56702",
37
+ "@uniformdev/mesh-sdk": "20.9.1-alpha.3+9f10f56702",
38
+ "@uniformdev/richtext": "20.9.1-alpha.3+9f10f56702",
39
39
  "dequal": "2.0.3",
40
40
  "fast-xml-parser": "4.4.1",
41
41
  "immer": "10.1.1"
42
42
  },
43
- "gitHead": "dc19eea5f979ff3b4526db1dd75a2e1e0f4f43f7"
43
+ "gitHead": "9f10f5670229b812c73e7db447e82c2617687f3a"
44
44
  }