@yext/visual-editor 0.0.35 → 0.0.36

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.
@@ -27550,26 +27550,29 @@ const qc = {
27550
27550
  }) => {
27551
27551
  var i;
27552
27552
  const r = Be();
27553
- if (n.items.constantValueEnabled)
27553
+ if (n != null && n.items.constantValueEnabled)
27554
27554
  return /* @__PURE__ */ d.jsx(
27555
27555
  $m,
27556
27556
  {
27557
27557
  styles: e,
27558
27558
  sectionHeading: t,
27559
- resolvedFAQs: n.FAQs ?? []
27559
+ resolvedFAQs: (n == null ? void 0 : n.FAQs) ?? []
27560
27560
  }
27561
27561
  );
27562
- const a = (i = he(r, n.items) || []) == null ? void 0 : i.slice(
27562
+ const a = (i = he(
27563
+ r,
27564
+ n == null ? void 0 : n.items
27565
+ ) || []) == null ? void 0 : i.slice(
27563
27566
  0,
27564
- typeof n.limit != "number" ? void 0 : n.limit
27567
+ typeof (n == null ? void 0 : n.limit) != "number" || n == null ? void 0 : n.limit
27565
27568
  ).map((s) => {
27566
27569
  var l, c;
27567
27570
  return {
27568
27571
  question: je(
27569
27572
  s,
27570
- (l = n.subfields) == null ? void 0 : l.questionField
27573
+ (l = n == null ? void 0 : n.subfields) == null ? void 0 : l.questionField
27571
27574
  ) ?? "",
27572
- answer: je(s, (c = n.subfields) == null ? void 0 : c.answerField) ?? ""
27575
+ answer: je(s, (c = n == null ? void 0 : n.subfields) == null ? void 0 : c.answerField) ?? ""
27573
27576
  };
27574
27577
  }).filter(({ question: s, answer: l }) => s !== "" && l !== "");
27575
27578
  return /* @__PURE__ */ d.jsx(
@@ -27607,7 +27610,8 @@ const qc = {
27607
27610
  liveVisibility: !0
27608
27611
  },
27609
27612
  resolveFields(e, { fields: t }) {
27610
- return e.props.collection.items.constantValueEnabled ? (delete t.collection.objectFields.limit, {
27613
+ var n, r, o;
27614
+ return (n = e.props.collection) != null && n.items.constantValueEnabled ? (delete t.collection.objectFields.limit, {
27611
27615
  ...t,
27612
27616
  collection: {
27613
27617
  ...t.collection,
@@ -27643,7 +27647,7 @@ const qc = {
27643
27647
  isCollection: !0,
27644
27648
  disableConstantValueToggle: !0,
27645
27649
  filter: {
27646
- directChildrenOf: e.props.collection.items.field,
27650
+ directChildrenOf: (r = e.props.collection) == null ? void 0 : r.items.field,
27647
27651
  types: ["type.string"]
27648
27652
  }
27649
27653
  }),
@@ -27652,7 +27656,7 @@ const qc = {
27652
27656
  isCollection: !0,
27653
27657
  disableConstantValueToggle: !0,
27654
27658
  filter: {
27655
- directChildrenOf: e.props.collection.items.field,
27659
+ directChildrenOf: (o = e.props.collection) == null ? void 0 : o.items.field,
27656
27660
  types: ["type.string"]
27657
27661
  }
27658
27662
  })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yext/visual-editor",
3
3
  "description": "Component library for Yext Pages Visual Editor",
4
- "version": "0.0.35",
4
+ "version": "0.0.36",
5
5
  "type": "module",
6
6
  "author": "sumo@yext.com",
7
7
  "types": "dist/index.d.ts",