@voiceflow/utils-designer 1.26.14 → 1.27.1

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.
@@ -195,7 +195,7 @@ exports.markupToSlate = (0, bidirectional_adapter_1.createMultiAdapter)((markup,
195
195
  })
196
196
  .when((value) => !slate_1.Text.isText(value) && value.type === base_types_1.BaseText.ElementType.VARIABLE, (item) => {
197
197
  const { id, name } = item;
198
- const isSlot = item.isSlot ?? id !== name;
198
+ const isSlot = item.isSlot ?? ('isSystem' in item ? false : id !== name);
199
199
  return isSlot ? { entityID: id } : { variableID: id };
200
200
  })
201
201
  .when((value) => slate_1.Text.isText(value), (item) => {
@@ -177,7 +177,7 @@ export const markupToSlate = createMultiAdapter((markup, { iteration = 0, entiti
177
177
  })
178
178
  .when((value) => !Text.isText(value) && value.type === BaseText.ElementType.VARIABLE, (item) => {
179
179
  const { id, name } = item;
180
- const isSlot = item.isSlot ?? id !== name;
180
+ const isSlot = item.isSlot ?? ('isSystem' in item ? false : id !== name);
181
181
  return isSlot ? { entityID: id } : { variableID: id };
182
182
  })
183
183
  .when((value) => Text.isText(value), (item) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voiceflow/utils-designer",
3
- "version": "1.26.14",
3
+ "version": "1.27.1",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./build/cjs/main.d.ts",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@voiceflow/common": "8.3.0",
34
- "@voiceflow/dtos": "1.130.0",
34
+ "@voiceflow/dtos": "1.131.1",
35
35
  "bidirectional-adapter": "1.2.1",
36
36
  "slate": "^0.103.0",
37
37
  "ts-pattern": "5.0.5",
@@ -43,5 +43,5 @@
43
43
  "volta": {
44
44
  "extends": "../../package.json"
45
45
  },
46
- "gitHead": "666cacd10299b5db53e166370200a292dc3418af"
46
+ "gitHead": "6033917c6c9c2a05deb687317306d3364072779f"
47
47
  }