@inploi/plugin-job-search 3.1.1 → 3.1.2

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.
@@ -1333,6 +1333,7 @@ var qc = ["other", "few", "many", "two", "one", "zero"], oi = ({
1333
1333
  }
1334
1334
  return o;
1335
1335
  }, ii = ut(null), Kc = (e) => ({
1336
+ defaultTerms: e,
1336
1337
  TranslationProvider: ({ terms: t, children: n, locale: r }) => {
1337
1338
  const o = Q(() => oi({ locale: r, terms: e, overrides: t }), [t, r]);
1338
1339
  return /* @__PURE__ */ u(ii.Provider, { value: { t: o, locale: r }, children: n });
@@ -1348,7 +1349,7 @@ var qc = ["other", "few", "many", "two", "one", "zero"], oi = ({
1348
1349
  locale: n
1349
1350
  }) => oi({ terms: e, overrides: t, locale: n })
1350
1351
  });
1351
- const { TranslationProvider: zm, useTranslation: oe, createTFunction: Bm } = Kc({
1352
+ const { TranslationProvider: zm, useTranslation: oe, createTFunction: Bm, defaultTerms: qm } = Kc({
1352
1353
  type_to_search_jobs: "Type to search jobs",
1353
1354
  type_to_search: "Type to search",
1354
1355
  jobs_found: { one: "{{count}} job found", other: "{{count}} jobs found" },
@@ -1457,7 +1458,7 @@ const ai = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Gc =
1457
1458
  }, []);
1458
1459
  return t(o == null ? void 0 : o.base, d, l, i == null ? void 0 : i.class, i == null ? void 0 : i.className);
1459
1460
  }, cx: t };
1460
- }, { compose: qm, cva: he, cx: Km } = Gc(), Ve = he({
1461
+ }, { compose: Km, cva: he, cx: Gm } = Gc(), Ve = he({
1461
1462
  base: "fr animate-selected-tag justify-center touch-hitbox text-style-filter ease-expo-out disabled:text-interactive-neutral-bg-hover disabled:bg-interactive-neutral-bg disabled:hover:disabled:bg-interactive-neutral-bg flex cursor-pointer items-center transition-all duration-snappy active:scale-95",
1462
1463
  variants: {
1463
1464
  variant: {
@@ -1495,7 +1496,7 @@ const ai = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Gc =
1495
1496
  position: "relative",
1496
1497
  size: "sm"
1497
1498
  }
1498
- }), Gm = ({ error: e, resetError: t }) => {
1499
+ }), Ym = ({ error: e, resetError: t }) => {
1499
1500
  const { t: n } = oe();
1500
1501
  return /* @__PURE__ */ u(
1501
1502
  "div",
@@ -1690,7 +1691,7 @@ const Yc = {
1690
1691
  /* @__PURE__ */ u("rect", { x: "4", y: "5", width: "16", height: "5.5", rx: "1" }),
1691
1692
  /* @__PURE__ */ u("rect", { x: "4", y: "13.5", width: "16", height: "5.5", rx: "1" })
1692
1693
  ] })
1693
- }, Ym = ({ theme: e }) => /* @__PURE__ */ u("svg", { xmlns: "http://www.w3.org/2000/svg", style: { display: "none" }, children: /* @__PURE__ */ u("defs", { children: Object.entries(Yc).map(([t, n]) => {
1694
+ }, Zm = ({ theme: e }) => /* @__PURE__ */ u("svg", { xmlns: "http://www.w3.org/2000/svg", style: { display: "none" }, children: /* @__PURE__ */ u("defs", { children: Object.entries(Yc).map(([t, n]) => {
1694
1695
  var r;
1695
1696
  return /* @__PURE__ */ u("symbol", { id: `i-icon-${t}`, children: /* @__PURE__ */ u(
1696
1697
  "g",
@@ -2954,7 +2955,7 @@ const Ee = (e) => {
2954
2955
  "job-card-stroke-color-active": e("color.a-9"),
2955
2956
  "job-card-stroke-width": Ee(t).with({ highlights: "stroke", highcontrast: !0 }, () => "1.5px").otherwise(() => "1px")
2956
2957
  };
2957
- }).component(() => ({})), Yl = ql({ prefix: "i-" }), Zm = (e) => {
2958
+ }).component(() => ({})), Yl = ql({ prefix: "i-" }), Xm = (e) => {
2958
2959
  const t = Gl.from({ theme: e.theme, getToken: Yl }), n = Object.entries(t.declarations).map(([o, i]) => `${o}: ${i};`);
2959
2960
  return `.inploi-job-search${e.widgetId ? `[data-widget-id="${e.widgetId}"]` : ""} {
2960
2961
  ${n.concat(n).join(`
@@ -4180,7 +4181,7 @@ var rd = function(e) {
4180
4181
  return null;
4181
4182
  };
4182
4183
  };
4183
- const ks = "Dialog", [Ts, Xm] = Oo(ks), [ad, ot] = Ts(ks), sd = (e) => {
4184
+ const ks = "Dialog", [Ts, Jm] = Oo(ks), [ad, ot] = Ts(ks), sd = (e) => {
4184
4185
  const { __scopeDialog: t, children: n, open: r, defaultOpen: o, onOpenChange: i, modal: a = !0 } = e, s = T(null), c = T(null), [d = !1, p] = fs({
4185
4186
  prop: r,
4186
4187
  defaultProp: o,
@@ -5645,7 +5646,7 @@ const Us = "Popper", [zs, Bs] = Oo(Us), [wf, qs] = zs(Us), xf = (e) => {
5645
5646
  }), r ? null : /* @__PURE__ */ E(rt.div, Y({}, o, {
5646
5647
  ref: s
5647
5648
  }));
5648
- }), Ks = "PopperContent", [Ef, Jm] = zs(Ks), Sf = /* @__PURE__ */ Z((e, t) => {
5649
+ }), Ks = "PopperContent", [Ef, Qm] = zs(Ks), Sf = /* @__PURE__ */ Z((e, t) => {
5649
5650
  var n, r, o, i, a, s, c, d;
5650
5651
  const { __scopePopper: p, side: l = "bottom", sideOffset: h = 0, align: f = "center", alignOffset: m = 0, arrowPadding: v = 0, avoidCollisions: _ = !0, collisionBoundary: g = [], collisionPadding: b = 0, sticky: w = "partial", hideWhenDetached: y = !1, updatePositionStrategy: x = "optimized", onPlaced: $, ...S } = e, C = qs(Ks, p), [O, P] = k(null), L = Pe(
5651
5652
  t,
@@ -5785,7 +5786,7 @@ function Gs(e) {
5785
5786
  n
5786
5787
  ];
5787
5788
  }
5788
- const kf = xf, Tf = Cf, Pf = Sf, Ys = "Popover", [Zs, Qm] = Oo(Ys, [
5789
+ const kf = xf, Tf = Cf, Pf = Sf, Ys = "Popover", [Zs, e_] = Oo(Ys, [
5789
5790
  Bs
5790
5791
  ]), Mo = Bs(), [Rf, Dt] = Zs(Ys), Df = (e) => {
5791
5792
  const { __scopePopover: t, children: n, open: r, defaultOpen: o, onOpenChange: i, modal: a = !1 } = e, s = Mo(t), c = T(null), [d, p] = k(!1), [l = !1, h] = fs({
@@ -6592,14 +6593,14 @@ const nh = /* @__PURE__ */ Qa(th), ro = "|", rh = (e, t) => {
6592
6593
  }, ih = (e) => {
6593
6594
  const t = e.get("view");
6594
6595
  return t === "list" || t === "map" ? t : "list";
6595
- }, e_ = ({ searchParams: e }) => ({ properties: t }) => ({
6596
+ }, t_ = ({ searchParams: e }) => ({ properties: t }) => ({
6596
6597
  filters: Hn(rh(t, e), "defaultValue"),
6597
6598
  mode: oh(e),
6598
6599
  geo: ah(e),
6599
6600
  page: kn(e.get("page")) ?? 1,
6600
6601
  view: ih(e),
6601
6602
  query: e.get("query") ?? ""
6602
- }), t_ = (e, t) => {
6603
+ }), n_ = (e, t) => {
6603
6604
  var n, r;
6604
6605
  if (e.filters !== void 0) {
6605
6606
  const o = Un({
@@ -7859,7 +7860,7 @@ const km = /* @__PURE__ */ Qa(Am), Wt = ({ chars: e }) => /* @__PURE__ */ u(
7859
7860
  default:
7860
7861
  yt(_);
7861
7862
  }
7862
- }, Lm = xo(() => import("./map-5a267e29.js").then((e) => e.Map)), Im = ({
7863
+ }, Lm = xo(() => import("./map-c85e417c.js").then((e) => e.Map)), Im = ({
7863
7864
  state: e,
7864
7865
  rpcClient: t,
7865
7866
  mapConfig: n,
@@ -8009,7 +8010,7 @@ const km = /* @__PURE__ */ Qa(Am), Wt = ({ chars: e }) => /* @__PURE__ */ u(
8009
8010
  Array.isArray(r) ? r : r ? [r] : []
8010
8011
  ];
8011
8012
  }).filter(([, t]) => t !== void 0 && t.length > 0)
8012
- ), da = (e) => (e == null ? void 0 : e.type) === "bounds" ? void 0 : e, n_ = ({
8013
+ ), da = (e) => (e == null ? void 0 : e.type) === "bounds" ? void 0 : e, r_ = ({
8013
8014
  rpcClient: e,
8014
8015
  logger: t,
8015
8016
  properties: n,
@@ -8228,31 +8229,32 @@ export {
8228
8229
  T as A,
8229
8230
  zt as D,
8230
8231
  Ca as E,
8231
- Ym as I,
8232
+ Zm as I,
8232
8233
  Um as J,
8233
8234
  zm as T,
8234
- Gm as U,
8235
+ Ym as U,
8235
8236
  E as _,
8236
- Zm as a,
8237
- n_ as b,
8237
+ Xm as a,
8238
+ r_ as b,
8238
8239
  Bm as c,
8239
8240
  Dn as d,
8240
- dn as e,
8241
+ qm as e,
8241
8242
  Rr as f,
8242
8243
  Fc as g,
8243
- Qa as h,
8244
+ dn as h,
8244
8245
  gc as i,
8245
- k as j,
8246
+ Qa as j,
8246
8247
  I as k,
8247
8248
  N as l,
8248
- sh as m,
8249
- u as n,
8250
- rh as o,
8251
- oh as p,
8252
- ih as q,
8253
- e_ as r,
8249
+ k as m,
8250
+ sh as n,
8251
+ u as o,
8252
+ rh as p,
8253
+ oh as q,
8254
+ ih as r,
8254
8255
  t_ as s,
8255
- ah as t,
8256
+ n_ as t,
8256
8257
  oe as u,
8258
+ ah as v,
8257
8259
  R as y
8258
8260
  };
package/dist/utils.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./utils-b018217a.cjs");require("@inploi/sdk");exports.getGeolocationFromSearchParams=e.getGeolocationFromSearchParams;exports.getModeFromSearchParams=e.getModeFromSearchParams;exports.getStatefulPropertiesFromSearchParams=e.getStatefulPropertiesFromSearchParams;exports.getViewFromSearchParams=e.getViewFromSearchParams;exports.getWidgetStateFromSearchParams=e.getWidgetStateFromSearchParams;exports.setWidgetStateToSearchParams=e.setWidgetStateToSearchParams;exports.useDebouncedValue=e.useDebouncedValue;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./utils-3bc4549a.cjs");require("@inploi/sdk");exports.getGeolocationFromSearchParams=e.getGeolocationFromSearchParams;exports.getModeFromSearchParams=e.getModeFromSearchParams;exports.getStatefulPropertiesFromSearchParams=e.getStatefulPropertiesFromSearchParams;exports.getViewFromSearchParams=e.getViewFromSearchParams;exports.getWidgetStateFromSearchParams=e.getWidgetStateFromSearchParams;exports.setWidgetStateToSearchParams=e.setWidgetStateToSearchParams;exports.useDebouncedValue=e.useDebouncedValue;
package/dist/utils.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t, p as s, o, q as m, r as S, s as c, m as g } from "./utils-6de04e1b.js";
1
+ import { v as t, q as s, p as o, r as m, s as S, t as c, n as g } from "./utils-97f73af2.js";
2
2
  import "@inploi/sdk";
3
3
  export {
4
4
  t as getGeolocationFromSearchParams,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inploi/plugin-job-search",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "type": "module",
5
5
  "main": "dist/plugin-job-search.js",
6
6
  "types": "dist/index.d.ts",
@@ -68,7 +68,7 @@
68
68
  "vite-tsconfig-paths": "^4.3.2",
69
69
  "@inploi/core": "1.16.1",
70
70
  "@inploi/design-tokens": "0.2.1",
71
- "@inploi/i18n": "0.1.3",
71
+ "@inploi/i18n": "0.1.4",
72
72
  "eslint-config-custom": "0.1.0"
73
73
  },
74
74
  "msw": {