@contentrain/wp-import 0.14.3 → 0.15.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.
package/dist/index.mjs CHANGED
@@ -2962,6 +2962,11 @@ function rawToContentrain(input, opts) {
2962
2962
  items: "string",
2963
2963
  label: "Locations",
2964
2964
  order: 50
2965
+ } } : {},
2966
+ ...menus.some((m) => m.title && strip(m.title)) ? { title: {
2967
+ type: "string",
2968
+ label: "Heading",
2969
+ order: 15
2965
2970
  } } : {}
2966
2971
  }
2967
2972
  });
@@ -3051,7 +3056,8 @@ function rawToContentrain(input, opts) {
3051
3056
  slug: addressSlug(m.slug) || `menu-${m.id}`,
3052
3057
  items: m.items.map((i) => itemRef(i.id)),
3053
3058
  ...m.id !== null && m.id > 0 ? { wp_id: m.id } : {},
3054
- ...m.locations?.length ? { locations: m.locations } : {}
3059
+ ...m.locations?.length ? { locations: m.locations } : {},
3060
+ ...m.title && strip(m.title) ? { title: strip(m.title) } : {}
3055
3061
  };
3056
3062
  metas.menus[mid] = importMeta("published");
3057
3063
  for (const i of m.items) {