@hiver/connector-agent 4.12.0-oneClickAuto-beta.1 → 4.12.0-oneClickAuto-beta.3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/write-form/index.tsx"],"names":[],"mappings":"AA+CA,OAAO,KAAK,EAA+B,UAAU,EAAE,MAAM,eAAe,CAAC;AAyB7E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAE1D,OAAO,KAAK,EAA+B,UAAU,EAAc,MAAM,cAAc,CAAC;AAGxF,eAAO,MAAM,iBAAiB,wCAAwC,CAAC;AAEvE,UAAU,cAAc;IACtB,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAClC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC,CAAC;IACxE,cAAc,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC/D,eAAe,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;IAC3E,iBAAiB,CAAC,EAAE,CAAC,aAAa,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CAC1D;AACD,QAAA,MAAM,SAAS,gJAWZ,cAAc,4CA0jBhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/write-form/components/write-form/index.tsx"],"names":[],"mappings":"AA+CA,OAAO,KAAK,EAA+B,UAAU,EAAE,MAAM,eAAe,CAAC;AAyB7E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAE1D,OAAO,KAAK,EAA+B,UAAU,EAAc,MAAM,cAAc,CAAC;AAGxF,eAAO,MAAM,iBAAiB,wCAAwC,CAAC;AAEvE,UAAU,cAAc;IACtB,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAClC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC,CAAC;IACxE,cAAc,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IAC/D,eAAe,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;IAC3E,iBAAiB,CAAC,EAAE,CAAC,aAAa,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CAC1D;AACD,QAAA,MAAM,SAAS,gJAWZ,cAAc,4CA+jBhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
package/index.es.js CHANGED
@@ -15796,12 +15796,12 @@ const al = (e) => !!e && typeof e == "object" && "value" in e && "label" in e, E
15796
15796
  }
15797
15797
  }, G8 = (e) => ({
15798
15798
  fontSize: 14,
15799
- lineHeight: "18px",
15799
+ lineHeight: "20px",
15800
15800
  minHeight: 36,
15801
- py: 0.75,
15802
- pl: 1,
15803
- pr: 1.5,
15804
- mx: 1,
15801
+ py: 1,
15802
+ pl: 2,
15803
+ pr: 2.5,
15804
+ mx: 0,
15805
15805
  borderRadius: "4px",
15806
15806
  color: "#343C45",
15807
15807
  backgroundColor: e ? "#F6F8FC" : "transparent",
@@ -16048,7 +16048,7 @@ const al = (e) => !!e && typeof e == "object" && "value" in e && "label" in e, E
16048
16048
  paddingBottom: 1
16049
16049
  }, q8 = {
16050
16050
  lineHeight: 1,
16051
- padding: "12px",
16051
+ padding: "12px 12px 2px",
16052
16052
  backgroundColor: "#FFFFFF",
16053
16053
  position: "sticky",
16054
16054
  top: 0,
@@ -16099,14 +16099,14 @@ const al = (e) => !!e && typeof e == "object" && "value" in e && "label" in e, E
16099
16099
  display: "grid",
16100
16100
  gridTemplateColumns: "1fr 1fr",
16101
16101
  alignItems: "center",
16102
- backgroundColor: "#ECEFF6",
16102
+ backgroundColor: "#F6F8FC",
16103
16103
  borderRadius: "8px",
16104
16104
  padding: "3px"
16105
16105
  }, a0 = (e) => ({
16106
16106
  border: "none",
16107
16107
  borderRadius: "8px",
16108
16108
  backgroundColor: e ? "#FFFFFF" : "transparent",
16109
- color: e ? "#2066D7" : "#343C45",
16109
+ color: e ? "#196fe0" : "#343C45",
16110
16110
  lineHeight: "24px",
16111
16111
  padding: "4px 12px",
16112
16112
  cursor: "pointer"
@@ -16562,16 +16562,7 @@ const al = (e) => !!e && typeof e == "object" && "value" in e && "label" in e, E
16562
16562
  type: "button",
16563
16563
  sx: a0(m === "options"),
16564
16564
  onClick: Y("options"),
16565
- children: /* @__PURE__ */ u.jsx(
16566
- K,
16567
- {
16568
- variant: "caption",
16569
- fontSize: 14,
16570
- fontWeight: 500,
16571
- color: m === "options" ? V.palette.gray.gray1 : V.palette.gray.gray3,
16572
- children: "Options"
16573
- }
16574
- )
16565
+ children: /* @__PURE__ */ u.jsx(K, { variant: "caption", fontSize: 14, fontWeight: 400, color: "inherit", children: "Options" })
16575
16566
  }
16576
16567
  ),
16577
16568
  /* @__PURE__ */ u.jsx(
@@ -16581,16 +16572,7 @@ const al = (e) => !!e && typeof e == "object" && "value" in e && "label" in e, E
16581
16572
  type: "button",
16582
16573
  sx: a0(m === "custom"),
16583
16574
  onClick: Y("custom"),
16584
- children: /* @__PURE__ */ u.jsx(
16585
- K,
16586
- {
16587
- variant: "caption",
16588
- fontSize: 14,
16589
- fontWeight: 500,
16590
- color: m === "custom" ? V.palette.gray.gray1 : V.palette.gray.gray3,
16591
- children: "Custom Object"
16592
- }
16593
- )
16575
+ children: /* @__PURE__ */ u.jsx(K, { variant: "caption", fontSize: 14, fontWeight: 400, color: "inherit", children: "Custom Object" })
16594
16576
  }
16595
16577
  )
16596
16578
  ] }) }),
@@ -16603,7 +16585,7 @@ const al = (e) => !!e && typeof e == "object" && "value" in e && "label" in e, E
16603
16585
  observerProps: I,
16604
16586
  optionsProps: _,
16605
16587
  setSearch: R,
16606
- searchOffset: 62
16588
+ searchOffset: 52
16607
16589
  }) : s.map((q) => {
16608
16590
  const ne = q.options.length > 0;
16609
16591
  return /* @__PURE__ */ u.jsxs(
@@ -16830,7 +16812,7 @@ const ME = ({
16830
16812
  variables: o,
16831
16813
  connectorLogo: i,
16832
16814
  isSaving: s,
16833
- title: a = "Pre-fill fields",
16815
+ title: a,
16834
16816
  isLoading: c = !1,
16835
16817
  defaultValues: l,
16836
16818
  customFields: d,
@@ -16878,10 +16860,7 @@ const ME = ({
16878
16860
  /* @__PURE__ */ u.jsxs(j, { direction: "row", alignItems: "center", gap: 2, children: [
16879
16861
  /* @__PURE__ */ u.jsx(IE, {}),
16880
16862
  /* @__PURE__ */ u.jsx(j, { gap: 0.5, flex: 1, minWidth: 0, children: /* @__PURE__ */ u.jsxs(j, { direction: "row", alignItems: "center", gap: 0.5, children: [
16881
- /* @__PURE__ */ u.jsxs(K, { variant: "h6", fontSize: 18, fontWeight: 600, color: V.palette.gray.gray1, children: [
16882
- "Pre-fill fields for ",
16883
- a
16884
- ] }),
16863
+ /* @__PURE__ */ u.jsx(K, { variant: "h6", fontSize: 18, fontWeight: 600, color: V.palette.gray.gray1, children: a }),
16885
16864
  /* @__PURE__ */ u.jsx(xe, { title: "Assign default values to create fields", placement: "top", children: /* @__PURE__ */ u.jsx(it, { size: "small", "aria-label": "About mapping fields", sx: { padding: "4px" }, children: /* @__PURE__ */ u.jsx(Qe.InfoOutlined, { sx: { fontSize: 18, color: V.palette.gray.gray3 } }) }) })
16886
16865
  ] }) })
16887
16866
  ] }),
@@ -19105,7 +19084,7 @@ const i_ = T(yl)`
19105
19084
  fields: w,
19106
19085
  connectorLogo: o,
19107
19086
  variables: i,
19108
- title: c,
19087
+ title: `Pre-fill fields for ${c}`,
19109
19088
  isLoading: l || v,
19110
19089
  isSaving: C,
19111
19090
  fetchOptions: I,
@@ -19304,7 +19283,12 @@ const I_ = T(j)`
19304
19283
  data: _t,
19305
19284
  isNudgeRequired: Fn,
19306
19285
  enabledRef: Cr
19307
- } = o2({ formId: Yn, conversationId: v, inboxIds: C, enabled: !t });
19286
+ } = o2({
19287
+ formId: Yn,
19288
+ conversationId: v,
19289
+ inboxIds: C,
19290
+ enabled: !t && !!N
19291
+ });
19308
19292
  se(() => {
19309
19293
  _t && vt(_t);
19310
19294
  }, [_t, vt]), se(() => {
@@ -20813,7 +20797,7 @@ const dl = /* @__PURE__ */ new Set(), LA = (e, t) => {
20813
20797
  formId: te,
20814
20798
  conversationId: i,
20815
20799
  inboxIds: n,
20816
- enabled: E && !!te,
20800
+ enabled: E && !!te && !!e,
20817
20801
  setMapFormOpen: tt
20818
20802
  }
20819
20803
  ),