@apolitical/component-library 4.5.11-beta.1 → 4.5.11-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.
package/index.mjs CHANGED
@@ -4473,7 +4473,7 @@ const dp = ({ children: e, locale: t, messages: n }) => {
4473
4473
  function Qs() {
4474
4474
  return Ve(Vt);
4475
4475
  }
4476
- const fp = ({ children: e, user: t }) => /* @__PURE__ */ c.jsx(Vt.Provider, { value: t, children: e }), id = Et({
4476
+ const fp = ({ children: e, user: t, updateDetails: n }) => /* @__PURE__ */ c.jsx(Vt.Provider, { value: { ...t, updateDetails: n }, children: e }), id = Et({
4477
4477
  registerOverlay: () => {
4478
4478
  },
4479
4479
  unregisterOverlay: () => {
@@ -4504,7 +4504,7 @@ const fp = ({ children: e, user: t }) => /* @__PURE__ */ c.jsx(Vt.Provider, { va
4504
4504
  {
4505
4505
  locale: o,
4506
4506
  messages: n == null ? void 0 : n.messages,
4507
- children: /* @__PURE__ */ c.jsx(mh, { children: /* @__PURE__ */ c.jsx(fp, { user: a, children: /* @__PURE__ */ c.jsx(mp, { children: /* @__PURE__ */ c.jsx(sp, { showDevTools: r, children: /* @__PURE__ */ c.jsx(cp, { user: a, children: t }) }) }) }) })
4507
+ children: /* @__PURE__ */ c.jsx(mh, { children: /* @__PURE__ */ c.jsx(fp, { user: a, updateDetails: i, children: /* @__PURE__ */ c.jsx(mp, { children: /* @__PURE__ */ c.jsx(sp, { showDevTools: r, children: /* @__PURE__ */ c.jsx(cp, { user: a, children: t }) }) }) }) })
4508
4508
  }
4509
4509
  ) });
4510
4510
  };
@@ -20778,7 +20778,8 @@ const oC = ({ functions: e, meta: t = {}, gtm: n }) => {
20778
20778
  type: "text",
20779
20779
  label: r.formatMessage({ id: `${a}jobTitle` }),
20780
20780
  placeholder: r.formatMessage({ id: `${a}jobTitle_placeholder` }),
20781
- value: i.jobTitle
20781
+ value: i.jobTitle,
20782
+ validation: [{ condition: "required" }]
20782
20783
  },
20783
20784
  {
20784
20785
  id: "organization",
@@ -20787,7 +20788,8 @@ const oC = ({ functions: e, meta: t = {}, gtm: n }) => {
20787
20788
  placeholder: r.formatMessage({
20788
20789
  id: `${a}organization_placeholder`
20789
20790
  }),
20790
- value: i.organization
20791
+ value: i.organization,
20792
+ validation: [{ condition: "required" }]
20791
20793
  },
20792
20794
  {
20793
20795
  id: "location",
@@ -20795,6 +20797,7 @@ const oC = ({ functions: e, meta: t = {}, gtm: n }) => {
20795
20797
  label: r.formatMessage({ id: `${a}location` }),
20796
20798
  placeholder: r.formatMessage({ id: `${a}location_placeholder` }),
20797
20799
  value: (f = i.location) == null ? void 0 : f.country,
20800
+ validation: [{ condition: "required" }],
20798
20801
  functions: {
20799
20802
  onChange: () => {
20800
20803
  },
@@ -21403,7 +21406,7 @@ const mC = ({
21403
21406
  ...r.props.functions,
21404
21407
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
21405
21408
  onSuccess: (b) => {
21406
- console.log("AMENDED"), r.props.functions.onSuccess && r.props.functions.onSuccess(b), p();
21409
+ r.props.functions.onSuccess && r.props.functions.onSuccess(b), p();
21407
21410
  },
21408
21411
  onCancel: () => {
21409
21412
  r.props.functions.onCancel && r.props.functions.onCancel(), p();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "4.5.11-beta.1",
3
+ "version": "4.5.11-beta.3",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {