@commercelayer/app-elements 5.5.0 → 5.5.1

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,5 +1,5 @@
1
1
  "use client";
2
- import { u as Se, j as se, I as Ee } from "./main-ClKWD_hr.js";
2
+ import { u as Se, j as se, I as Ee } from "./main-Dncz1fnB.js";
3
3
  import U, { memo as ce, useState as k, useEffect as L, useRef as y, useCallback as ue, forwardRef as Ie } from "react";
4
4
  import { f as Ce } from "./fetchCoreResourcesSuggestions-CZkDwjO2.js";
5
5
  function Le(e, t, r) {
@@ -2,12 +2,12 @@
2
2
  var Vr = Object.defineProperty;
3
3
  var qr = (a, o, t) => o in a ? Vr(a, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[o] = t;
4
4
  var y = (a, o, t) => qr(a, typeof o != "symbol" ? o + "" : o, t);
5
- import { c as Z, t as M, m as mr, a as vr, w as me, x as he, y as pt, z as Qe, A as Dr, E as jr, F as $r, G as nt, H as gr, J as Gr, K as yr, L as wr, M as Xr, N as zr, O as At, P as Zr, Q as Jr, R as Ht, S as en, T as Le, U as tn, j as ne, V as z, W as Te, X as _e, o as _t, Y as Pt, Z as br, _ as Tt, $ as _r, a0 as rn, a1 as Ee, a2 as Wt, a3 as nn, a4 as an, a5 as on, a6 as sn, a7 as at, a8 as ln, I as cn, v as un, a9 as dn, aa as pn, ab as fn } from "./main-ClKWD_hr.js";
5
+ import { c as Z, t as M, m as mr, a as vr, w as me, x as he, y as pt, z as Qe, A as Dr, E as jr, F as $r, G as nt, H as gr, J as Gr, K as yr, L as wr, M as Xr, N as zr, O as At, P as Zr, Q as Jr, R as Ht, S as en, T as Le, U as tn, j as ne, V as z, W as Te, X as _e, o as _t, Y as Pt, Z as br, _ as Tt, $ as _r, a0 as rn, a1 as Ee, a2 as Wt, a3 as nn, a4 as an, a5 as on, a6 as sn, a7 as at, a8 as ln, I as cn, v as un, a9 as dn, aa as pn, ab as fn } from "./main-Dncz1fnB.js";
6
6
  import * as k from "react";
7
7
  import f, { useLayoutEffect as kr, useEffect as Nt, cloneElement as Mr, createRef as Ce, Component as G, useRef as kt, useCallback as hn, createElement as mn, forwardRef as vn, useMemo as Dn } from "react";
8
8
  import * as gn from "react-dom";
9
9
  import yn from "react-dom";
10
- import { p as wn } from "./parseISO-DltoM17h.js";
10
+ import { p as wn } from "./parseISO-DFqToJvK.js";
11
11
  function Cr(a, o, t) {
12
12
  return Z(a, +M(a) + o);
13
13
  }
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { t as k, b as H, d as Z, j as t, i as E, g as G, e as Q, f as h, h as j, k as $, D as P, l as S, n as v, B as z, o as T, p as U, q as ee, r as te, s as ae, v as C, I as le, C as ne } from "./main-ClKWD_hr.js";
2
+ import { t as k, b as H, d as Z, j as t, i as E, g as G, e as Q, f as h, h as j, k as $, D as P, l as S, n as v, B as z, o as T, p as U, q as ee, r as te, s as ae, v as C, I as le, C as ne } from "./main-Dncz1fnB.js";
3
3
  import "react-hook-form";
4
4
  import I, { useReducer as se, useCallback as w, useMemo as re, createContext as ie, useContext as ue, useState as g, useEffect as N, useRef as ce } from "react";
5
5
  import { a as de } from "./fetchCoreResourcesSuggestions-CZkDwjO2.js";
6
- import { p as A } from "./parseISO-DltoM17h.js";
6
+ import { p as A } from "./parseISO-DFqToJvK.js";
7
7
  function q(e, a) {
8
8
  const l = e.match(
9
9
  /(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/
@@ -27388,8 +27388,9 @@ function jK(t) {
27388
27388
  return /* @__PURE__ */ u.jsx(Tn.DropdownIndicator, { ...t, className: "p-0", children: /* @__PURE__ */ u.jsx("button", { type: "button", className: "px-2 cursor-pointer", children: /* @__PURE__ */ u.jsx(
27389
27389
  "svg",
27390
27390
  {
27391
- width: "16",
27392
- height: "14",
27391
+ width: "12",
27392
+ height: "auto",
27393
+ viewBox: "0 0 16 14",
27393
27394
  fill: "none",
27394
27395
  xmlns: "http://www.w3.org/2000/svg",
27395
27396
  children: /* @__PURE__ */ u.jsx(
@@ -27619,14 +27620,14 @@ const GK = (t) => ({
27619
27620
  }),
27620
27621
  option: (e, { isSelected: a, isFocused: n, isDisabled: s }) => ({
27621
27622
  ...e,
27622
- padding: "0.625rem 1rem",
27623
- backgroundColor: a ? "#404141" : n ? "#F8F8F8" : "transparent",
27624
- color: a ? "#fff" : s ? "#BBBEBE" : "rgb(40 41 41)",
27625
- fontSize: 16,
27626
- fontWeight: 500,
27623
+ padding: "0.375rem 1rem",
27624
+ backgroundColor: a ? "#EDEEEE" : n ? "#F8F8F8" : "transparent",
27625
+ color: s ? "#BBBEBE" : "rgb(40 41 41)",
27626
+ fontSize: 15,
27627
+ fontWeight: a ? 700 : 500,
27627
27628
  cursor: "pointer",
27628
27629
  "&:active": {
27629
- backgroundColor: a ? "#101111" : "rgb(248 248 248)"
27630
+ backgroundColor: a ? "#EDEEEE" : "rgb(248 248 248)"
27630
27631
  },
27631
27632
  "&:first-of-type": {
27632
27633
  borderTopLeftRadius: 5,
@@ -30591,7 +30592,7 @@ function g1e(t, { type: e } = { type: "default" }) {
30591
30592
  });
30592
30593
  }
30593
30594
  const Zte = Qr(
30594
- async () => await import("./CodeEditorComponent-CyKOXTx9.js").then((t) => ({
30595
+ async () => await import("./CodeEditorComponent-ioY-kydb.js").then((t) => ({
30595
30596
  default: t.CodeEditor
30596
30597
  }))
30597
30598
  ), Bg = O((t, e) => /* @__PURE__ */ u.jsx(Kr, { fallback: /* @__PURE__ */ u.jsx(a0, { className: "h-11 w-full" }), children: /* @__PURE__ */ u.jsx(Zte, { ...t, ref: e }) }));
@@ -31480,7 +31481,7 @@ function Yg({
31480
31481
  }
31481
31482
  Yg.displayName = "InputCurrencyRange";
31482
31483
  const Gte = Qr(
31483
- async () => await import("./InputDateComponent-CX954J1N.js").then((t) => ({
31484
+ async () => await import("./InputDateComponent-BuVP44xp.js").then((t) => ({
31484
31485
  default: t.InputDateComponent
31485
31486
  }))
31486
31487
  ), Jr = O(
@@ -33181,7 +33182,7 @@ function b0e({
33181
33182
  }
33182
33183
  g0e.displayName = "HookedMarketWithCurrencySelector";
33183
33184
  const y0e = Qr(
33184
- async () => await import("./RuleEngineComponent-BJQQwo47.js").then((t) => ({
33185
+ async () => await import("./RuleEngineComponent-CGOH-VpI.js").then((t) => ({
33185
33186
  default: t.RuleEngine
33186
33187
  }))
33187
33188
  ), v0e = (t) => /* @__PURE__ */ u.jsx(Kr, { fallback: /* @__PURE__ */ u.jsx(a0, { className: "h-11 w-full" }), children: /* @__PURE__ */ u.jsx(y0e, { ...t }) });
@@ -34625,15 +34626,15 @@ const X0e = ({
34625
34626
  user: e,
34626
34627
  t: a
34627
34628
  }) => {
34628
- var c, d, m;
34629
- const s = (((c = t.stock_transfers) == null ? void 0 : c.filter(
34630
- (p) => p.status !== "completed" && p.status !== "cancelled" && p.status !== "draft"
34629
+ var d, m, p;
34630
+ const s = (((d = t.stock_transfers) == null ? void 0 : d.filter(
34631
+ (f) => f.status !== "completed" && f.status !== "cancelled" && f.status !== "draft"
34631
34632
  )) ?? []).length > 0, i = z0e(
34632
34633
  t,
34633
34634
  s
34634
- ), o = ((d = t.stock_location) == null ? void 0 : d.name) != null ? `${a("common.from")} ${t.stock_location.name} ` : ((m = t.shipping_method) == null ? void 0 : m.name) != null ? `${t.shipping_method.name} ` : "", l = t.number != null ? `#${t.number}` : "";
34635
+ ), o = G(t.reference) ? "" : `Ref. ${t.reference} · `, l = ((m = t.stock_location) == null ? void 0 : m.name) != null ? `${a("common.from")} ${t.stock_location.name} ` : ((p = t.shipping_method) == null ? void 0 : p.name) != null ? `${t.shipping_method.name} ` : "", c = t.number != null ? `#${t.number}` : "";
34635
34636
  return {
34636
- name: `${a("resources.shipments.name")} ${l}`,
34637
+ name: `${a("resources.shipments.name")} ${c}`,
34637
34638
  description: /* @__PURE__ */ u.jsx(
34638
34639
  Dn,
34639
34640
  {
@@ -34644,7 +34645,7 @@ const X0e = ({
34644
34645
  timezone: e == null ? void 0 : e.timezone,
34645
34646
  locale: e == null ? void 0 : e.locale
34646
34647
  }),
34647
- additionalInfos: o
34648
+ additionalInfos: `${o}${l}`
34648
34649
  }
34649
34650
  ),
34650
34651
  icon: !s && t.status === "upcoming" ? /* @__PURE__ */ u.jsx($s, { icon: "truck" }) : /* @__PURE__ */ u.jsx(Bn, { icon: i.icon, color: i.color })
package/dist/main.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { b5 as s, bJ as t, bK as o, b6 as r, b7 as c, b8 as n, b9 as u, B as i, ba as d, bb as l, bc as p, bL as b, bd as g, C as m, be as S, bf as I, aS as k, D as T, s as D, l as R, bM as y, bg as C, aW as h, aX as A, bY as P, bh as H, bi as F, bN as f, c5 as v, c6 as B, c7 as L, c8 as O, ca as E, cd as N, cg as G, ch as M, cl as w, cn as V, cs as x, cu as W, cw as J, cy as U, cA as q, cC as Y, cG as j, cH as z, cI as K, bj as Q, a_ as X, n as Z, f as _, c9 as $, cb as aa, ce as ea, cf as sa, r as ta, q as oa, ci as ra, cj as ca, ck as na, cm as ua, co as ia, h as da, cv as la, cx as pa, cz as ba, cB as ga, cD as ma, cE as Sa, cF as Ia, bO as ka, bP as Ta, bQ as Da, bR as Ra, bZ as ya, b3 as Ca, bS as ha, bk as Aa, bT as Pa, bU as Ha, bl as Fa, bm as fa, bn as va, bo as Ba, bV as La, cN as Oa, cO as Ea, cQ as Na, cR as Ga, cS as Ma, cT as wa, cU as Va, cV as xa, cX as Wa, cY as Ja, cZ as Ua, b_ as qa, cL as Ya, bp as ja, b$ as za, bq as Ka, br as Qa, bs as Xa, bt as Za, bv as _a, bw as $a, bx as ae, by as ee, bz as se, bE as te, bA as oe, c0 as re, bF as ce, bG as ne, bB as ue, bH as ie, bC as de, c1 as le, c3 as pe, b4 as be, c4 as ge, bI as me, bD as Se, b0 as Ie, aw as ke, aV as Te, bW as De, bX as Re, ag as ye, ah as Ce, as as he, b2 as Ae, cq as Pe, cc as He, ai as Fe, aj as fe, ak as ve, ax as Be, ay as Le, aA as Oe, d0 as Ee, d1 as Ne, cr as Ge, al as Me, am as we, an as Ve, d2 as xe, d3 as We, d4 as Je, d5 as Ue, d6 as qe, aB as Ye, aC as je, cW as ze, d7 as Ke, cM as Qe, az as Xe, d8 as Ze, d9 as _e, da as $e, aD as as, aE as es, db as ss, dc as ts, dd as os, aI as rs, aJ as cs, ac as ns, aF as us, aG as is, aZ as ds, ae as ls, a8 as ps, ct as bs, au as gs, av as ms, p as Ss, k as Is, ao as ks, at as Ts, ad as Ds, aH as Rs, af as ys, ap as Cs, cJ as hs, aq as As, a$ as Ps, ar as Hs, c2 as Fs, aK as fs, aL as vs, aT as Bs, aU as Ls, aM as Os, aN as Es, aO as Ns, cp as Gs, aP as Ms, aQ as ws, aR as Vs, cP as xs, c_ as Ws, c$ as Js, aY as Us, u as qs, b1 as Ys, cK as js, bu as zs } from "./main-ClKWD_hr.js";
2
+ import { b5 as s, bJ as t, bK as o, b6 as r, b7 as c, b8 as n, b9 as u, B as i, ba as d, bb as l, bc as p, bL as b, bd as g, C as m, be as S, bf as I, aS as k, D as T, s as D, l as R, bM as y, bg as C, aW as h, aX as A, bY as P, bh as H, bi as F, bN as f, c5 as v, c6 as B, c7 as L, c8 as O, ca as E, cd as N, cg as G, ch as M, cl as w, cn as V, cs as x, cu as W, cw as J, cy as U, cA as q, cC as Y, cG as j, cH as z, cI as K, bj as Q, a_ as X, n as Z, f as _, c9 as $, cb as aa, ce as ea, cf as sa, r as ta, q as oa, ci as ra, cj as ca, ck as na, cm as ua, co as ia, h as da, cv as la, cx as pa, cz as ba, cB as ga, cD as ma, cE as Sa, cF as Ia, bO as ka, bP as Ta, bQ as Da, bR as Ra, bZ as ya, b3 as Ca, bS as ha, bk as Aa, bT as Pa, bU as Ha, bl as Fa, bm as fa, bn as va, bo as Ba, bV as La, cN as Oa, cO as Ea, cQ as Na, cR as Ga, cS as Ma, cT as wa, cU as Va, cV as xa, cX as Wa, cY as Ja, cZ as Ua, b_ as qa, cL as Ya, bp as ja, b$ as za, bq as Ka, br as Qa, bs as Xa, bt as Za, bv as _a, bw as $a, bx as ae, by as ee, bz as se, bE as te, bA as oe, c0 as re, bF as ce, bG as ne, bB as ue, bH as ie, bC as de, c1 as le, c3 as pe, b4 as be, c4 as ge, bI as me, bD as Se, b0 as Ie, aw as ke, aV as Te, bW as De, bX as Re, ag as ye, ah as Ce, as as he, b2 as Ae, cq as Pe, cc as He, ai as Fe, aj as fe, ak as ve, ax as Be, ay as Le, aA as Oe, d0 as Ee, d1 as Ne, cr as Ge, al as Me, am as we, an as Ve, d2 as xe, d3 as We, d4 as Je, d5 as Ue, d6 as qe, aB as Ye, aC as je, cW as ze, d7 as Ke, cM as Qe, az as Xe, d8 as Ze, d9 as _e, da as $e, aD as as, aE as es, db as ss, dc as ts, dd as os, aI as rs, aJ as cs, ac as ns, aF as us, aG as is, aZ as ds, ae as ls, a8 as ps, ct as bs, au as gs, av as ms, p as Ss, k as Is, ao as ks, at as Ts, ad as Ds, aH as Rs, af as ys, ap as Cs, cJ as hs, aq as As, a$ as Ps, ar as Hs, c2 as Fs, aK as fs, aL as vs, aT as Bs, aU as Ls, aM as Os, aN as Es, aO as Ns, cp as Gs, aP as Ms, aQ as ws, aR as Vs, cP as xs, c_ as Ws, c$ as Js, aY as Us, u as qs, b1 as Ys, cK as js, bu as zs } from "./main-Dncz1fnB.js";
3
3
  export {
4
4
  s as A,
5
5
  t as ActionButtons,
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { c as p, t as D, m as N, a as g } from "./main-ClKWD_hr.js";
2
+ import { c as p, t as D, m as N, a as g } from "./main-Dncz1fnB.js";
3
3
  function W(t, e) {
4
4
  const n = () => p(e == null ? void 0 : e.in, NaN), a = I(t);
5
5
  let s;
@@ -684,6 +684,30 @@ export declare const presetResourceListItem: {
684
684
  readonly updated_at: "";
685
685
  };
686
686
  };
687
+ shipmentWithReference: {
688
+ type: "shipments";
689
+ id: string;
690
+ created_at: string;
691
+ updated_at: string;
692
+ number: string;
693
+ status: "picking";
694
+ reference: string;
695
+ stock_location: {
696
+ readonly type: "stock_locations";
697
+ readonly id: "";
698
+ readonly name: "US Warehouse";
699
+ readonly created_at: "";
700
+ readonly updated_at: "";
701
+ };
702
+ shipping_method: {
703
+ readonly type: "shipping_methods";
704
+ readonly id: "";
705
+ readonly name: "Standard Shipping";
706
+ readonly price_amount_cents: 0;
707
+ readonly created_at: "";
708
+ readonly updated_at: "";
709
+ };
710
+ };
687
711
  shipmentWithStockTransfer: {
688
712
  type: "shipments";
689
713
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercelayer/app-elements",
3
- "version": "5.5.0",
3
+ "version": "5.5.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "files": [