@wix/form-public 0.197.0 → 0.198.0

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.cjs CHANGED
@@ -30206,6 +30206,12 @@ function createFormView(_ref) {
30206
30206
  } else if ("name" in form) {
30207
30207
  nameView = form.name ?? "";
30208
30208
  }
30209
+ if ((form.fields ?? []).some((field) => {
30210
+ var _field$view;
30211
+ return ((_field$view = field.view) == null ? void 0 : _field$view.fieldType) === FIELD_TYPES.APPOINTMENT;
30212
+ })) {
30213
+ useFieldsV2 = false;
30214
+ }
30209
30215
  const hasSmallLayout = (_layout$small = layout.small) == null ? void 0 : _layout$small.items;
30210
30216
  const isSmallBreakpoint = isMobile2 && hasSmallLayout;
30211
30217
  const fieldViews = (useFieldsV2 && platformizedFields ? platformizedFields : fields).filter((field) => includeHiddenFields || !field.hidden).filter((field) => {
@@ -30257,11 +30263,11 @@ function applyMobileLayout(form) {
30257
30263
  };
30258
30264
  }
30259
30265
  function createFieldView(field, layout, path, recursive, isMobile2, breakpoint) {
30260
- var _field$view;
30266
+ var _field$view2;
30261
30267
  if (breakpoint === void 0) {
30262
30268
  breakpoint = DEFAULT_BREAKPOINT;
30263
30269
  }
30264
- if (!(field.id && (_field$view = field.view) != null && _field$view.fieldType)) {
30270
+ if (!(field.id && (_field$view2 = field.view) != null && _field$view2.fieldType)) {
30265
30271
  return;
30266
30272
  }
30267
30273
  if (!layout) {