@vpdev2/metakyc 1.0.86 → 1.0.88

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.js CHANGED
@@ -1970,7 +1970,7 @@ class ct {
1970
1970
  const d = ((o = r == null ? void 0 : r.identityProviders) == null ? void 0 : o.sardinai) || {};
1971
1971
  return {
1972
1972
  clientId: d.clientId || a.clientId,
1973
- sessionKey: d.sessionKey || a.sessionKey,
1973
+ sessionKey: d.sessionKey || (r == null ? void 0 : r.sardinSessionKey) || a.sessionKey,
1974
1974
  environment: d.environment || a.environment || "production",
1975
1975
  flow: d.flow || a.flow,
1976
1976
  region: d.region,
@@ -2028,7 +2028,12 @@ class Pr {
2028
2028
  "danger-bg": t.dangerBg,
2029
2029
  "success-bg": t.successBg,
2030
2030
  "warning-bg": t.warningBg,
2031
- "info-bg": t.infoBg
2031
+ "info-bg": t.infoBg,
2032
+ // Header/Footer overrides (optional)
2033
+ "header-bg": t.headerBg,
2034
+ "header-text": t.headerText,
2035
+ "footer-bg": t.footerBg,
2036
+ "footer-text": t.footerText
2032
2037
  };
2033
2038
  a != null && a.fontFamily && (n["font-family"] = a.fontFamily), a != null && a.headingFont && (n["heading-font"] = a.headingFont), a != null && a.fontSize && Object.entries(a.fontSize).forEach(([u, m]) => {
2034
2039
  n[`font-size-${u}`] = m;
@@ -7155,7 +7160,7 @@ function ie(e, t) {
7155
7160
  const r = Jr.exec(a);
7156
7161
  return r ? t(r[1]) : e;
7157
7162
  }
7158
- const Yt = "1.0.86", Ri = Gt(null), di = `metakyc-translations-${Yt}-`, ea = ({
7163
+ const Yt = "1.0.88", Ri = Gt(null), di = `metakyc-translations-${Yt}-`, ea = ({
7159
7164
  locale: e,
7160
7165
  fetchTranslations: t,
7161
7166
  children: a
@@ -7899,8 +7904,8 @@ function Ii() {
7899
7904
  l.current = !0, r(!0), o(null);
7900
7905
  try {
7901
7906
  if (A.applicantAdditionalDatas || (A.applicantAdditionalDatas = []), (S = t.identityProviders) != null && S.sardinai) {
7902
- const N = u();
7903
- _.debug(`SardinAI session key generated: ${N}`), A.applicantAdditionalDatas.push({
7907
+ const N = t.sardinSessionKey || u();
7908
+ _.debug(`SardinAI session key: ${N} (pre-generated: ${!!t.sardinSessionKey})`), A.applicantAdditionalDatas.push({
7904
7909
  paramName: "sessionKey",
7905
7910
  value: N
7906
7911
  });
@@ -8130,6 +8135,8 @@ const ne = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
8130
8135
  borderBottomWidth: "1px",
8131
8136
  borderBottomStyle: "solid",
8132
8137
  borderBottomColor: "var(--metakyc-border, #e5e7eb)",
8138
+ backgroundColor: "var(--metakyc-header-bg, transparent)",
8139
+ color: "var(--metakyc-header-text, inherit)",
8133
8140
  ...a
8134
8141
  },
8135
8142
  ...r,
@@ -8152,6 +8159,8 @@ const ne = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
8152
8159
  borderTopWidth: "1px",
8153
8160
  borderTopStyle: "solid",
8154
8161
  borderTopColor: "var(--metakyc-border, #e5e7eb)",
8162
+ backgroundColor: "var(--metakyc-footer-bg, transparent)",
8163
+ color: "var(--metakyc-footer-text, inherit)",
8155
8164
  ...a
8156
8165
  },
8157
8166
  ...r,
@@ -11774,7 +11783,7 @@ const hi = ({
11774
11783
  borderRadius: "8px",
11775
11784
  border: "1px solid var(--metakyc-border, #e5e7eb)",
11776
11785
  backgroundColor: "var(--metakyc-surface, var(--metakyc-background, #ffffff))",
11777
- color: "var(--metakyc-text-secondary, #6b7280)",
11786
+ color: "var(--metakyc-header-text, var(--metakyc-text-secondary, #6b7280))",
11778
11787
  fontSize: "13px",
11779
11788
  fontWeight: 500,
11780
11789
  cursor: "pointer",
@@ -11878,24 +11887,24 @@ const hi = ({
11878
11887
  "div",
11879
11888
  {
11880
11889
  className: "metakyc-header-title flex items-center text-xl font-bold",
11881
- style: { color: "var(--metakyc-text-primary, #111827)", justifyContent: "space-between" },
11890
+ style: { color: "var(--metakyc-header-text, var(--metakyc-text-primary, #111827))", justifyContent: "space-between" },
11882
11891
  children: [
11883
11892
  /* @__PURE__ */ s("div", { className: "flex items-center", style: { minWidth: 0 }, children: [
11884
11893
  m && /* @__PURE__ */ i(Ga, { config: r.logo }),
11885
11894
  m && g && /* @__PURE__ */ i(
11886
11895
  "span",
11887
11896
  {
11888
- style: { fontSize: "1.5rem", fontWeight: 300, color: "var(--metakyc-text-muted, #9ca3af)", margin: "0 12px" },
11897
+ style: { fontSize: "1.5rem", fontWeight: 300, color: "var(--metakyc-header-text, var(--metakyc-text-muted, #9ca3af))", margin: "0 12px" },
11889
11898
  children: "|"
11890
11899
  }
11891
11900
  ),
11892
- g && /* @__PURE__ */ i("span", { style: { color: "var(--metakyc-text-primary, #111827)" }, children: d })
11901
+ g && /* @__PURE__ */ i("span", { style: { color: "var(--metakyc-header-text, var(--metakyc-text-primary, #111827))" }, children: d })
11893
11902
  ] }),
11894
11903
  y && /* @__PURE__ */ i(Xa, {})
11895
11904
  ]
11896
11905
  }
11897
11906
  ),
11898
- u && /* @__PURE__ */ i("p", { className: "text-sm mt-1", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: u })
11907
+ u && /* @__PURE__ */ i("p", { className: "text-sm mt-1", style: { color: "var(--metakyc-header-text, var(--metakyc-text-secondary, #6b7280))" }, children: u })
11899
11908
  ] });
11900
11909
  }, Mi = Gt(null), ji = () => Qt(Mi);
11901
11910
  function It() {
@@ -14023,11 +14032,12 @@ const cn = ({
14023
14032
  const $ = y.filter((ge) => ge.visibility !== !1), R = $.findIndex((ge) => ge.order === g.order), P = R >= 0 ? R + 1 : 1, j = $.length, Z = j > 1 ? (R + 1) / j * 100 : 100;
14024
14033
  return /* @__PURE__ */ s("div", { className: "metakyc-progress-wrapper", style: {
14025
14034
  marginBottom: "24px",
14026
- backgroundColor: "var(--metakyc-surface, var(--metakyc-background, #ffffff))",
14035
+ backgroundColor: "var(--metakyc-header-bg, var(--metakyc-surface, var(--metakyc-background, #ffffff)))",
14027
14036
  borderRadius: "0.75rem",
14028
14037
  border: "1px solid var(--metakyc-border, #e5e7eb)",
14029
14038
  padding: "1rem 1.5rem",
14030
- overflow: "hidden"
14039
+ overflow: "hidden",
14040
+ color: "var(--metakyc-header-text, inherit)"
14031
14041
  }, children: [
14032
14042
  /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "flex-start", justifyContent: "space-between", marginBottom: "16px", gap: "8px", flexWrap: "wrap" }, children: [
14033
14043
  /* @__PURE__ */ i(Rt, {}),