@overmap-ai/core 1.0.38-component-fields.37 → 1.0.38-component-fields.39

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.
@@ -19,6 +19,7 @@ interface FormBuilderProps {
19
19
  * @default true
20
20
  */
21
21
  showTabs?: boolean;
22
+ tabsListClassName?: string;
22
23
  }
23
24
  export declare const FormBuilder: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<FormBuilderProps & import("react").RefAttributes<HTMLDivElement>>>;
24
25
  export {};
@@ -5740,7 +5740,7 @@ class UserFormSubmissionService extends BaseApiService {
5740
5740
  method: HttpMethod.POST,
5741
5741
  url: `/forms/submission/${payload.offline_id}/attachments/`,
5742
5742
  payload: submissionAttachmentPayload,
5743
- blockers: [payload.component, payload.issue, payload.form_revision].filter(
5743
+ blockers: [payload.component, payload.component_stage, payload.issue, payload.form_revision].filter(
5744
5744
  (x) => x !== void 0
5745
5745
  ),
5746
5746
  blocks: [submissionAttachmentPayload.offline_id]
@@ -5769,7 +5769,9 @@ class UserFormSubmissionService extends BaseApiService {
5769
5769
  method: HttpMethod.POST,
5770
5770
  url: `/forms/revisions/${payload.form_revision}/respond/`,
5771
5771
  payload: { ...payloadWithoutFiles, project: activeProjectId },
5772
- blockers: [payload.issue, payload.component].filter((x) => x !== void 0),
5772
+ blockers: [payload.issue, payload.component, payload.component_stage].filter(
5773
+ (x) => x !== void 0
5774
+ ),
5773
5775
  blocks: [payload.offline_id]
5774
5776
  });
5775
5777
  const attachFilesPromises = this.getAttachFilesPromises(files, payload);
@@ -5811,7 +5813,9 @@ class UserFormSubmissionService extends BaseApiService {
5811
5813
  method: HttpMethod.PATCH,
5812
5814
  url: `/forms/submissions/${submission.offline_id}/`,
5813
5815
  payload: fullResult,
5814
- blockers: [fullResult.issue, fullResult.component].filter((x) => x !== void 0),
5816
+ blockers: [fullResult.issue, fullResult.component, fullResult.component_stage].filter(
5817
+ (x) => x !== void 0
5818
+ ),
5815
5819
  blocks: [fullResult.offline_id]
5816
5820
  });
5817
5821
  return Promise.all([promise, ...attachFilesPromises]).then(() => promise);
@@ -11687,7 +11691,8 @@ const FormBuilder = memo(
11687
11691
  showExplainerText = true,
11688
11692
  showFormTitle = true,
11689
11693
  fieldsOnly = false,
11690
- showTabs = true
11694
+ showTabs = true,
11695
+ tabsListClassName
11691
11696
  } = props;
11692
11697
  const { showError } = useToast();
11693
11698
  const validate = useCallback(
@@ -11752,7 +11757,7 @@ const FormBuilder = memo(
11752
11757
  });
11753
11758
  const previewSchema = useMemo(() => formRevisionToSchema(formik.values), [formik.values]);
11754
11759
  return /* @__PURE__ */ jsx(Tabs.Root, { ref, defaultValue: "edit", children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "2", children: [
11755
- showTabs && /* @__PURE__ */ jsxs(Tabs.List, { className: styles$7.tabsList, children: [
11760
+ showTabs && /* @__PURE__ */ jsxs(Tabs.List, { className: classNames$1(styles$7.tabsList, tabsListClassName), children: [
11756
11761
  /* @__PURE__ */ jsx(Tabs.Trigger, { className: styles$7.tabTrigger, value: "edit", children: /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "2", children: [
11757
11762
  /* @__PURE__ */ jsx(Pencil1Icon, {}),
11758
11763
  "Edit"