@commercelayer/app-elements 2.0.5 → 2.0.7

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.
@@ -2,7 +2,7 @@
2
2
  var qr = Object.defineProperty;
3
3
  var Gr = (a, n, t) => n in a ? qr(a, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[n] = t;
4
4
  var y = (a, n, t) => (Gr(a, typeof n != "symbol" ? n + "" : n, t), t);
5
- import { t as _, c as W, m as lt, a as pt, b as Ce, d as oe, g as Rt, e as zr, f as Xr, s as Ze, h as br, i as Zr, j as kr, k as _r, l as Jr, n as _t, o as en, w as Bt, p as tn, q as jt, r as rn, u as nn, v as Oe, x as Ut, y as an, z as on, A as Pe, B as _e, C as Ne, D as Je, E as xe, F as Ct, G as sn, H as Lt, I as cn, J as ln, K as et, L as tt, M as pn, N as un, O as dn, P as ve, Q as fn, R as hn, S as mn, T as gn, X as Dn } from "./main-B5MFFv8S.js";
5
+ import { t as _, c as W, m as lt, a as pt, b as Ce, d as oe, g as Rt, e as zr, f as Xr, s as Ze, h as br, i as Zr, j as kr, k as _r, l as Jr, n as _t, o as en, w as Bt, p as tn, q as jt, r as rn, u as nn, v as Oe, x as Ut, y as an, z as on, A as Pe, B as _e, C as Ne, D as Je, E as xe, F as Ct, G as sn, H as Lt, I as cn, J as ln, K as et, L as tt, M as pn, N as un, O as dn, P as ve, Q as fn, R as hn, S as mn, T as gn, X as Dn } from "./main-DcmjXGWd.js";
6
6
  import * as M from "react";
7
7
  import f, { createElement as yn, Component as vn, useLayoutEffect as Cr, useEffect as Mr, createRef as wn, forwardRef as bn } from "react";
8
8
  import * as kn from "react-dom";
@@ -124,21 +124,30 @@ export declare function sortAndGroupByDate<T extends Event>(events: T[], { timez
124
124
  */
125
125
  export declare function removeMillisecondsFromIsoDate(isoDate: string): string;
126
126
  /**
127
- * Returns one year date range (minus 1 second) from the specified now date.
127
+ * Creates a date range spanning a specified number of years back from a given reference date.
128
+ * The range includes the start date and ends exactly one second before the reference date to form a precise interval.
128
129
  *
129
- * If `showMilliseconds` is false will remove milliseconds from the Date ISO strings,
130
- * ready to be used, for instance, in Metrics APIs requests.
130
+ * @param now The reference date from which the range is calculated. Typically the current date.
131
+ * @param yearsAgo The number of years to go back from the reference date to determine the start of the range.
132
+ * @param showMilliseconds If set to false, the resulting date strings are formatted to exclude milliseconds.
133
+ * @returns An object containing `date_from` and `date_to` properties. `date_from` is the calculated start date of the range,
134
+ * going back the specified number of years from `now`. `date_to` is adjusted to be one second before `now`,
135
+ * effectively marking the end of the range. Both dates are returned as ISO 8601 formatted strings, with an option
136
+ * to include or exclude milliseconds.
131
137
  *
132
- * Example:
138
+ * Example usage:
133
139
  * ```
134
- * // with showMilliseconds = true
135
- * { date_from: '2022-04-24T13:44:59:452Z', date_to: '2023-04-24T13:45:452Z' }
136
- * // with showMilliseconds = false
137
- * { date_from: '2022-04-24T13:44:59Z', date_to: '2023-04-24T13:45Z' }
140
+ * const range = makeDateYearsRange(new Date(), 1, false);
141
+ * console.log(range);
142
+ * // Output when showMilliseconds is false:
143
+ * // { date_from: '2022-04-24T13:45:01Z, date_to: '2023-04-24T13:45:00Z' }
144
+ * // Output when showMilliseconds is true:
145
+ * // { date_from: '2022-04-24T13:45:01.000Z, date_to: '2023-04-24T13:45:00.000Z' }
138
146
  * ```
139
147
  */
140
- export declare function getLastYearIsoRange({ now, showMilliseconds }: {
148
+ export declare function makeDateYearsRange({ now, yearsAgo, showMilliseconds }: {
141
149
  now: Date;
150
+ yearsAgo: number;
142
151
  showMilliseconds: boolean;
143
152
  }): {
144
153
  date_from: string;
@@ -5570,16 +5570,19 @@ function no(t) {
5570
5570
  }
5571
5571
  function bN({
5572
5572
  now: t,
5573
- showMilliseconds: e = !0
5573
+ yearsAgo: e,
5574
+ showMilliseconds: n = !0
5574
5575
  }) {
5575
- const n = t.toISOString(), r = new Date(
5576
- new Date(t).setFullYear(t.getFullYear() - 1)
5576
+ if (e < 1)
5577
+ throw new Error("Years ago must be greater than 0");
5578
+ const r = t.toISOString(), i = new Date(
5579
+ new Date(t).setFullYear(t.getFullYear() - e)
5577
5580
  );
5578
- r.setSeconds(r.getSeconds() + 1);
5579
- const i = r.toISOString();
5581
+ i.setSeconds(i.getSeconds() + 1);
5582
+ const o = i.toISOString();
5580
5583
  return {
5581
- date_from: e ? i : no(i),
5582
- date_to: e ? n : no(n)
5584
+ date_from: n ? o : no(o),
5585
+ date_to: n ? r : no(r)
5583
5586
  };
5584
5587
  }
5585
5588
  function yN({
@@ -18380,7 +18383,53 @@ function ice({
18380
18383
  n.current = t, r && e != null && e();
18381
18384
  }, [r]), r;
18382
18385
  }
18383
- class sce extends Lh {
18386
+ var Q1 = {}, L1 = iH;
18387
+ if (process.env.NODE_ENV === "production")
18388
+ Q1.createRoot = L1.createRoot, Q1.hydrateRoot = L1.hydrateRoot;
18389
+ else {
18390
+ var Fs = L1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
18391
+ Q1.createRoot = function(t, e) {
18392
+ Fs.usingClientEntryPoint = !0;
18393
+ try {
18394
+ return L1.createRoot(t, e);
18395
+ } finally {
18396
+ Fs.usingClientEntryPoint = !1;
18397
+ }
18398
+ }, Q1.hydrateRoot = function(t, e, n) {
18399
+ Fs.usingClientEntryPoint = !0;
18400
+ try {
18401
+ return L1.hydrateRoot(t, e, n);
18402
+ } finally {
18403
+ Fs.usingClientEntryPoint = !1;
18404
+ }
18405
+ };
18406
+ }
18407
+ function Fpe(t, e) {
18408
+ window[`clApp_${e}`] = {
18409
+ init: (n, r) => {
18410
+ var o;
18411
+ if (n == null)
18412
+ return;
18413
+ const i = Q1.createRoot(n);
18414
+ return i.render(
18415
+ t({
18416
+ ...r,
18417
+ domain: (r == null ? void 0 : r.domain) ?? ((o = window.clAppConfig) == null ? void 0 : o.domain),
18418
+ organizationSlug: sce(r == null ? void 0 : r.organizationSlug),
18419
+ routerBase: oce(r == null ? void 0 : r.routerBase)
18420
+ })
18421
+ ), i;
18422
+ }
18423
+ };
18424
+ }
18425
+ function sce(t) {
18426
+ return he(t) ? void 0 : t;
18427
+ }
18428
+ function oce(t) {
18429
+ if (!(t == null || he(t)))
18430
+ return t.startsWith("/") ? t : `/${t}`;
18431
+ }
18432
+ class lce extends Lh {
18384
18433
  constructor() {
18385
18434
  super(...arguments);
18386
18435
  v2(this, "state", {
@@ -18431,13 +18480,13 @@ class sce extends Lh {
18431
18480
  return this.state.hasError ? this.props.hasContainer === !0 ? /* @__PURE__ */ A.jsx(Vi, { className: "pt-14", children: n }) : n : this.props.children;
18432
18481
  }
18433
18482
  }
18434
- v2(sce, "displayName", "ErrorBoundary");
18435
- const U9 = ba(null), Fpe = () => Br(U9), Dpe = ({
18483
+ v2(lce, "displayName", "ErrorBoundary");
18484
+ const U9 = ba(null), Dpe = () => Br(U9), Lpe = ({
18436
18485
  children: t,
18437
18486
  gtmId: e
18438
18487
  }) => {
18439
18488
  te(() => {
18440
- oce(e) && R6.initialize({ gtmId: e });
18489
+ cce(e) && R6.initialize({ gtmId: e });
18441
18490
  }, [e]);
18442
18491
  const n = lt(
18443
18492
  () => (r, i) => {
@@ -18450,54 +18499,8 @@ const U9 = ba(null), Fpe = () => Br(U9), Dpe = ({
18450
18499
  );
18451
18500
  return e == null || he(e) ? /* @__PURE__ */ A.jsx(A.Fragment, { children: t }) : /* @__PURE__ */ A.jsx(U9.Provider, { value: { push: n }, children: t });
18452
18501
  };
18453
- function oce(t) {
18454
- return /^GTM-[A-Z0-9]{1,7}$/.test(t ?? "");
18455
- }
18456
- var Q1 = {}, L1 = iH;
18457
- if (process.env.NODE_ENV === "production")
18458
- Q1.createRoot = L1.createRoot, Q1.hydrateRoot = L1.hydrateRoot;
18459
- else {
18460
- var Fs = L1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
18461
- Q1.createRoot = function(t, e) {
18462
- Fs.usingClientEntryPoint = !0;
18463
- try {
18464
- return L1.createRoot(t, e);
18465
- } finally {
18466
- Fs.usingClientEntryPoint = !1;
18467
- }
18468
- }, Q1.hydrateRoot = function(t, e, n) {
18469
- Fs.usingClientEntryPoint = !0;
18470
- try {
18471
- return L1.hydrateRoot(t, e, n);
18472
- } finally {
18473
- Fs.usingClientEntryPoint = !1;
18474
- }
18475
- };
18476
- }
18477
- function Lpe(t, e) {
18478
- window[`clApp_${e}`] = {
18479
- init: (n, r) => {
18480
- var o;
18481
- if (n == null)
18482
- return;
18483
- const i = Q1.createRoot(n);
18484
- return i.render(
18485
- t({
18486
- ...r,
18487
- domain: (r == null ? void 0 : r.domain) ?? ((o = window.clAppConfig) == null ? void 0 : o.domain),
18488
- organizationSlug: lce(r == null ? void 0 : r.organizationSlug),
18489
- routerBase: cce(r == null ? void 0 : r.routerBase)
18490
- })
18491
- ), i;
18492
- }
18493
- };
18494
- }
18495
- function lce(t) {
18496
- return he(t) ? void 0 : t;
18497
- }
18498
18502
  function cce(t) {
18499
- if (!(t == null || he(t)))
18500
- return t.startsWith("/") ? t : `/${t}`;
18503
+ return /^GTM-[A-Z0-9]{1,7}$/.test(t ?? "");
18501
18504
  }
18502
18505
  const W9 = ({
18503
18506
  alignItems: t,
@@ -30560,7 +30563,7 @@ function Ay({
30560
30563
  }
30561
30564
  Ay.displayName = "InputCurrencyRange";
30562
30565
  const iAe = rH(
30563
- async () => await import("./InputDateComponent-D2neP55z.js").then((t) => ({
30566
+ async () => await import("./InputDateComponent-Ds-dEbVm.js").then((t) => ({
30564
30567
  default: t.InputDateComponent
30565
30568
  }))
30566
30569
  ), Co = k(
@@ -32559,23 +32562,37 @@ const Eme = Ke(({ item: t, onChange: e }) => {
32559
32562
  }
32560
32563
  );
32561
32564
  Hy.displayName = "ResourceLineItems";
32562
- const Zy = Ke(({ title: t, children: e }) => /* @__PURE__ */ A.jsxs(_e, { top: "4", className: "pb-2 last:pb-0", children: [
32563
- t != null && /* @__PURE__ */ A.jsx(J, { tag: "div", weight: "bold", size: "small", className: "mb-1", children: t }),
32564
- e
32565
+ const Zy = Ke(({ title: t, quantity: e, children: n }) => /* @__PURE__ */ A.jsxs(_e, { top: "4", className: "pb-2 last:pb-0", children: [
32566
+ /* @__PURE__ */ A.jsxs("div", { className: "flex gap-1", children: [
32567
+ t != null && /* @__PURE__ */ A.jsx(J, { tag: "div", weight: "bold", size: "small", className: "mb-1", children: t }),
32568
+ e != null && /* @__PURE__ */ A.jsxs(J, { tag: "div", size: "small", weight: "bold", children: [
32569
+ "x ",
32570
+ e
32571
+ ] })
32572
+ ] }),
32573
+ n
32565
32574
  ] })), Oy = Ke(
32566
32575
  ({ title: t }) => /* @__PURE__ */ A.jsxs("div", { className: "flex items-center gap-1 mb-1", children: [
32567
32576
  /* @__PURE__ */ A.jsx(Qn, { name: "arrowBendDownRight", className: "text-gray-500" }),
32568
32577
  /* @__PURE__ */ A.jsx(J, { variant: "info", tag: "div", size: "small", weight: "medium", children: t })
32569
32578
  ] })
32570
- ), wme = Ke(({ lineItemOptions: t }) => t == null || t.length === 0 ? null : /* @__PURE__ */ A.jsx(_e, { top: "4", children: t.map((e) => /* @__PURE__ */ A.jsx(Zy, { title: e.name ?? void 0, children: Object.entries(e.options).map(([n, r]) => /* @__PURE__ */ A.jsx(
32571
- Oy,
32579
+ ), wme = Ke(({ lineItemOptions: t }) => t == null || t.length === 0 ? null : /* @__PURE__ */ A.jsx(_e, { top: "4", children: t.map((e) => /* @__PURE__ */ A.jsx(
32580
+ Zy,
32572
32581
  {
32573
- title: `${n}: ${Cme(
32574
- r
32575
- )}`
32582
+ title: e.name ?? void 0,
32583
+ quantity: e.quantity,
32584
+ children: Object.entries(e.options).map(([n, r]) => /* @__PURE__ */ A.jsx(
32585
+ Oy,
32586
+ {
32587
+ title: `${n}: ${Cme(
32588
+ r
32589
+ )}`
32590
+ },
32591
+ n
32592
+ ))
32576
32593
  },
32577
- n
32578
- )) }, e.id)) })), xme = Ke(({ reason: t }) => t == null || Object.keys(t).length === 0 ? null : /* @__PURE__ */ A.jsx(_e, { top: "4", children: /* @__PURE__ */ A.jsx(Zy, { title: "Reason", children: Object.entries(t).map(([e, n]) => /* @__PURE__ */ A.jsx(
32594
+ e.id
32595
+ )) })), xme = Ke(({ reason: t }) => t == null || Object.keys(t).length === 0 ? null : /* @__PURE__ */ A.jsx(_e, { top: "4", children: /* @__PURE__ */ A.jsx(Zy, { title: "Reason", children: Object.entries(t).map(([e, n]) => /* @__PURE__ */ A.jsx(
32579
32596
  Oy,
32580
32597
  {
32581
32598
  title: `${e}: ${n}`
@@ -35251,9 +35268,11 @@ function $fe({
35251
35268
  date_field: c.date.field
35252
35269
  } : {
35253
35270
  // default date range for metrics, when no custom date range is set, is 1 year
35271
+ // for archived orders we use 5 years
35254
35272
  ...bN({
35255
35273
  now: /* @__PURE__ */ new Date(),
35256
- showMilliseconds: !1
35274
+ showMilliseconds: !1,
35275
+ yearsAgo: "archived" in u && u.archived === !0 ? 5 : 1
35257
35276
  }),
35258
35277
  date_field: o
35259
35278
  }, b = n.filter(
@@ -35959,10 +35978,10 @@ export {
35959
35978
  Mg as a7,
35960
35979
  cc as a8,
35961
35980
  yN as a9,
35962
- qR as aA,
35963
- Uie as aB,
35964
- hn as aC,
35965
- Lpe as aD,
35981
+ Dpe as aA,
35982
+ qR as aB,
35983
+ Uie as aC,
35984
+ hn as aD,
35966
35985
  W9 as aE,
35967
35986
  uce as aF,
35968
35987
  Di as aG,
@@ -36009,9 +36028,9 @@ export {
36009
36028
  Xie as au,
36010
36029
  Ga as av,
36011
36030
  Xa as aw,
36012
- sce as ax,
36013
- Dpe as ay,
36014
- Fpe as az,
36031
+ Fpe as ax,
36032
+ lce as ay,
36033
+ Lpe as az,
36015
36034
  BS as b,
36016
36035
  Zh as b$,
36017
36036
  Dr as b0,
package/dist/main.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  export { goBack, navigateTo } from './helpers/appsNavigation';
3
3
  export { isAttachmentValidNote, referenceOrigins } from './helpers/attachments';
4
4
  export { currencies, currencyInputSelectOptions, type CurrencyCode } from './helpers/currencies';
5
- export { formatDate, formatDateRange, formatDateWithPredicate, getEventDateInfo, getIsoDateAtDayEdge, getIsoDateAtDaysBefore, getLastYearIsoRange, removeMillisecondsFromIsoDate, sortAndGroupByDate, timeSeparator } from './helpers/date';
5
+ export { formatDate, formatDateRange, formatDateWithPredicate, getEventDateInfo, getIsoDateAtDayEdge, getIsoDateAtDaysBefore, makeDateYearsRange, removeMillisecondsFromIsoDate, sortAndGroupByDate, timeSeparator } from './helpers/date';
6
6
  export { downloadJsonAsFile } from './helpers/downloadJsonAsFile';
7
7
  export { computeFullname, formatDisplayName } from './helpers/name';
8
8
  export { formatResourceName, type TriggerAttribute } from './helpers/resources';
@@ -16,10 +16,10 @@ export { useIsChanged } from './hooks/useIsChanged';
16
16
  export { useOnBlurFromContainer } from './hooks/useOnBlurFromContainer';
17
17
  export { useOverlay } from './hooks/useOverlay';
18
18
  export { CoreSdkProvider, useCoreApi, useCoreSdkProvider } from './providers/CoreSdkProvider';
19
+ export { createApp, type ClAppKey, type ClAppProps } from './providers/createApp';
19
20
  export { ErrorBoundary } from './providers/ErrorBoundary';
20
21
  export { GTMProvider, useTagManager } from './providers/GTMProvider';
21
22
  export { MetaTags, TokenProvider, useTokenProvider, type TokenProviderAllowedApp, type TokenProviderPermissionItem, type TokenProviderRoleActions, type TokenProviderRolePermissions, type TokenProviderTokenApplicationKind } from './providers/TokenProvider';
22
- export { createApp, type ClAppKey, type ClAppProps } from './providers/createApp';
23
23
  export { A, type AProps } from './ui/atoms/A';
24
24
  export { Alert, type AlertProps } from './ui/atoms/Alert';
25
25
  export { Avatar, type AvatarProps } from './ui/atoms/Avatar';
package/dist/main.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { aE as s, bh as t, aF as o, aG as r, aH as n, aI as u, aJ as c, aK as i, aL as l, aM as p, bi as d, aN as b, aO as g, au as S, bj as m, bk as I, bl as k, bm as T, aP as D, ax as R, ay as y, aQ as h, aR as A, bn as C, bA as H, bB as F, bD as P, bF as f, bH as v, bL as B, bN as O, bS as L, bV as G, bY as N, c3 as w, c5 as E, c7 as V, c9 as x, cb as M, cf as W, cg as U, aS as J, aT as Y, bC as j, bE as q, bG as z, bI as Z, bK as _, bM as $, bO as K, bP as Q, bQ as X, bR as aa, bT as ea, bU as sa, bW as ta, bZ as oa, c4 as ra, c6 as na, c8 as ua, ca, cc as ia, cd as la, ce as pa, bo as da, bp as ba, bq as ga, br as Sa, aA as ma, bs as Ia, aU as ka, bt as Ta, bu as Da, aV as Ra, aW as ya, aX as ha, aY as Aa, bv as Ca, cj as Ha, ck as Fa, cn as Pa, co as fa, cp as va, cq as Ba, cr as Oa, cs as La, ct as Ga, aZ as Na, bw as wa, a_ as Ea, a$ as Va, b0 as xa, b1 as Ma, b3 as Wa, b4 as Ua, b5 as Ja, b6 as Ya, b7 as ja, bc as qa, b8 as za, bx as Za, bd as _a, be as $a, b9 as Ka, bf as Qa, ba as Xa, by as ae, aB as ee, bz as se, bg as te, bb as oe, aa as re, aD as ne, ad as ue, ae as ce, Z as ie, _ as le, a9 as pe, b_ as de, bJ as be, $ as ge, a0 as Se, a1 as me, ab as Ie, ac as ke, af as Te, cv as De, cw as Re, b$ as ye, a2 as he, a3 as Ae, a4 as Ce, a5 as He, cx as Fe, cy as Pe, cz as fe, cA as ve, cB as Be, ag as Oe, ah as Le, cC as Ge, cD as Ne, cE as we, cF as Ee, ai as Ve, aj as xe, cG as Me, cH as We, cI as Ue, am as Je, an as Ye, U as je, ak as qe, al as ze, W as Ze, c0 as _e, c1 as $e, c2 as Ke, V as Qe, Y as Xe, a6 as as, cl as es, ch as ss, a7 as ts, a8 as os, ao as rs, av as ns, aw as us, ap as cs, aq as is, bX as ls, ar as ps, as as ds, at as bs, cm as gs, cu as Ss, az as ms, aC as Is, ci as ks, b2 as Ts } from "./main-B5MFFv8S.js";
2
+ import { aE as s, bh as t, aF as o, aG as r, aH as n, aI as u, aJ as c, aK as i, aL as l, aM as p, bi as d, aN as b, aO as g, au as m, bj as S, bk as I, bl as k, bm as D, aP as T, ay as R, az as y, aQ as h, aR as A, bn as C, bA as H, bB as F, bD as P, bF as f, bH as v, bL as B, bN as O, bS as G, bV as L, bY as N, c3 as w, c5 as E, c7 as V, c9 as x, cb as M, cf as W, cg as U, aS as J, aT as Y, bC as j, bE as q, bG as z, bI as Z, bK as _, bM as $, bO as K, bP as Q, bQ as X, bR as aa, bT as ea, bU as sa, bW as ta, bZ as oa, c4 as ra, c6 as na, c8 as ua, ca, cc as ia, cd as la, ce as pa, bo as da, bp as ba, bq as ga, br as ma, aB as Sa, bs as Ia, aU as ka, bt as Da, bu as Ta, aV as Ra, aW as ya, aX as ha, aY as Aa, bv as Ca, cj as Ha, ck as Fa, cn as Pa, co as fa, cp as va, cq as Ba, cr as Oa, cs as Ga, ct as La, aZ as Na, bw as wa, a_ as Ea, a$ as Va, b0 as xa, b1 as Ma, b3 as Wa, b4 as Ua, b5 as Ja, b6 as Ya, b7 as ja, bc as qa, b8 as za, bx as Za, bd as _a, be as $a, b9 as Ka, bf as Qa, ba as Xa, by as ae, aC as ee, bz as se, bg as te, bb as oe, aa as re, ax as ne, ad as ue, ae as ce, Z as ie, _ as le, a9 as pe, b_ as de, bJ as be, $ as ge, a0 as me, a1 as Se, ab as Ie, ac as ke, af as De, cv as Te, cw as Re, b$ as ye, a2 as he, a3 as Ae, a4 as Ce, cx as He, cy as Fe, cz as Pe, cA as fe, cB as ve, ag as Be, ah as Oe, cC as Ge, cD as Le, cE as Ne, cF as we, ai as Ee, aj as Ve, cG as xe, cH as Me, cI as We, am as Ue, an as Je, U as Ye, ak as je, al as qe, W as ze, c0 as Ze, c1 as _e, c2 as $e, a5 as Ke, V as Qe, Y as Xe, a6 as as, cl as es, ch as ss, a7 as ts, a8 as os, ao as rs, av as ns, aw as us, ap as cs, aq as is, bX as ls, ar as ps, as as ds, at as bs, cm as gs, cu as ms, aA as Ss, aD as Is, ci as ks, b2 as Ds } from "./main-DcmjXGWd.js";
3
3
  export {
4
4
  s as A,
5
5
  t as ActionButtons,
@@ -14,12 +14,12 @@ export {
14
14
  d as CardDialog,
15
15
  b as Container,
16
16
  g as CopyToClipboard,
17
- S as CoreSdkProvider,
18
- m as Dropdown,
17
+ m as CoreSdkProvider,
18
+ S as Dropdown,
19
19
  I as DropdownDivider,
20
20
  k as DropdownItem,
21
- T as DropdownSearch,
22
- D as EmptyState,
21
+ D as DropdownSearch,
22
+ T as EmptyState,
23
23
  R as ErrorBoundary,
24
24
  y as GTMProvider,
25
25
  h as Grid,
@@ -32,8 +32,8 @@ export {
32
32
  v as HookedInputCurrency,
33
33
  B as HookedInputDate,
34
34
  O as HookedInputDateRange,
35
- L as HookedInputRadioGroup,
36
- G as HookedInputResourceGroup,
35
+ G as HookedInputRadioGroup,
36
+ L as HookedInputResourceGroup,
37
37
  N as HookedInputSelect,
38
38
  w as HookedInputSimpleSelect,
39
39
  E as HookedInputSpinner,
@@ -68,12 +68,12 @@ export {
68
68
  da as List,
69
69
  ba as ListDetails,
70
70
  ga as ListDetailsItem,
71
- Sa as ListItem,
72
- ma as MetaTags,
71
+ ma as ListItem,
72
+ Sa as MetaTags,
73
73
  Ia as PageError,
74
74
  ka as PageHeading,
75
- Ta as PageLayout,
76
- Da as PageSkeleton,
75
+ Da as PageLayout,
76
+ Ta as PageSkeleton,
77
77
  Ra as Pagination,
78
78
  ya as Progress,
79
79
  ha as RadialProgress,
@@ -86,8 +86,8 @@ export {
86
86
  va as ResourceListItem,
87
87
  Ba as ResourceMetadata,
88
88
  Oa as ResourceOrderTimeline,
89
- La as ResourceShipmentParcels,
90
- Ga as ResourceTags,
89
+ Ga as ResourceShipmentParcels,
90
+ La as ResourceTags,
91
91
  Na as ScrollToTop,
92
92
  wa as SearchBar,
93
93
  Ea as Section,
@@ -122,43 +122,43 @@ export {
122
122
  de as flatSelectValues,
123
123
  be as formatCentsToCurrency,
124
124
  ge as formatDate,
125
- Se as formatDateRange,
126
- me as formatDateWithPredicate,
125
+ me as formatDateRange,
126
+ Se as formatDateWithPredicate,
127
127
  Ie as formatDisplayName,
128
128
  ke as formatResourceName,
129
- Te as getAvatarSrcFromRate,
130
- De as getCustomerDisplayStatus,
129
+ De as getAvatarSrcFromRate,
130
+ Te as getCustomerDisplayStatus,
131
131
  Re as getCustomerStatusName,
132
132
  ye as getDefaultValueFromFlatten,
133
133
  he as getEventDateInfo,
134
134
  Ae as getIsoDateAtDayEdge,
135
135
  Ce as getIsoDateAtDaysBefore,
136
- He as getLastYearIsoRange,
137
- Fe as getOrderDisplayStatus,
138
- Pe as getOrderFulfillmentStatusName,
139
- fe as getOrderPaymentStatusName,
140
- ve as getOrderStatusName,
141
- Be as getOrderTransactionName,
142
- Oe as getParcelTrackingDetail,
143
- Le as getParcelTrackingDetails,
136
+ He as getOrderDisplayStatus,
137
+ Fe as getOrderFulfillmentStatusName,
138
+ Pe as getOrderPaymentStatusName,
139
+ fe as getOrderStatusName,
140
+ ve as getOrderTransactionName,
141
+ Be as getParcelTrackingDetail,
142
+ Oe as getParcelTrackingDetails,
144
143
  Ge as getPromotionDisplayStatus,
145
- Ne as getReturnDisplayStatus,
146
- we as getReturnStatusName,
147
- Ee as getShipmentDisplayStatus,
148
- Ve as getShipmentRate,
149
- xe as getShipmentRates,
150
- Me as getShipmentStatusName,
151
- We as getStockTransferDisplayStatus,
152
- Ue as getStockTransferStatusName,
153
- Je as getUnitOfWeightName,
154
- Ye as getUnitsOfWeightForSelect,
155
- je as goBack,
156
- qe as hasBeenPurchased,
157
- ze as hasSingleTracking,
158
- Ze as isAttachmentValidNote,
159
- _e as isGroupedSelectValues,
160
- $e as isMultiValueSelected,
161
- Ke as isSingleValueSelected,
144
+ Le as getReturnDisplayStatus,
145
+ Ne as getReturnStatusName,
146
+ we as getShipmentDisplayStatus,
147
+ Ee as getShipmentRate,
148
+ Ve as getShipmentRates,
149
+ xe as getShipmentStatusName,
150
+ Me as getStockTransferDisplayStatus,
151
+ We as getStockTransferStatusName,
152
+ Ue as getUnitOfWeightName,
153
+ Je as getUnitsOfWeightForSelect,
154
+ Ye as goBack,
155
+ je as hasBeenPurchased,
156
+ qe as hasSingleTracking,
157
+ ze as isAttachmentValidNote,
158
+ Ze as isGroupedSelectValues,
159
+ _e as isMultiValueSelected,
160
+ $e as isSingleValueSelected,
161
+ Ke as makeDateYearsRange,
162
162
  Qe as navigateTo,
163
163
  Xe as referenceOrigins,
164
164
  as as removeMillisecondsFromIsoDate,
@@ -176,9 +176,9 @@ export {
176
176
  ds as useOnBlurFromContainer,
177
177
  bs as useOverlay,
178
178
  gs as useResourceAddressOverlay,
179
- Ss as useResourceFilters,
180
- ms as useTagManager,
179
+ ms as useResourceFilters,
180
+ Ss as useTagManager,
181
181
  Is as useTokenProvider,
182
182
  ks as useValidationFeedback,
183
- Ts as withSkeletonTemplate
183
+ Ds as withSkeletonTemplate
184
184
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercelayer/app-elements",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "files": [