@commercelayer/app-elements 1.12.3 → 1.12.4
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,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { r as O, a as Rn, t as F, b as Ct, c as Te, d as _, g as Mr, _ as Vt, s as He, e as lr, f as ba, h as Y, i as R, j as N, k, l as C, m as I, n as ka, o as dr, p as Ln, q as Ca, u as Ma, v as xa, w as zr, x as Sa, y as Xr, z as Oa, A as Ta, B as _a, C as An, D as ae, E as Ae, F as nt, G as Ft, H as fr, I as xr, J as Ea, K as Gr, L as Pa, M as Na, N as Ia, O as Ya, P as Ht, Q as Ke, R as Ra, S as La, T as Aa, X as Fa } from "./main-a6ce8ff2.js";
|
|
2
3
|
import * as j from "react";
|
|
3
4
|
import v, { createElement as Ha, Component as Ba, createRef as Ua, forwardRef as ja } from "react";
|
|
4
5
|
import * as Wa from "react-dom";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
var HI = Object.defineProperty;
|
|
2
3
|
var jI = (t, e, n) => e in t ? HI(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
4
|
var Rl = (t, e, n) => (jI(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
@@ -9879,6 +9880,8 @@ function YN() {
|
|
|
9879
9880
|
}
|
|
9880
9881
|
YN.displayName = "MetaTags";
|
|
9881
9882
|
function V2() {
|
|
9883
|
+
if (typeof window > "u")
|
|
9884
|
+
return null;
|
|
9882
9885
|
const [t] = window.location.hostname.split(".");
|
|
9883
9886
|
if (t === void 0)
|
|
9884
9887
|
throw new Error("Cannot access to the organization slug.");
|
|
@@ -13848,6 +13851,8 @@ const io = (t) => {
|
|
|
13848
13851
|
}, Zf = ({
|
|
13849
13852
|
accessToken: t
|
|
13850
13853
|
}) => {
|
|
13854
|
+
if (typeof window > "u")
|
|
13855
|
+
return "live";
|
|
13851
13856
|
const e = "live", n = new URLSearchParams(window.location.search).get("mode");
|
|
13852
13857
|
if (n === "test" || n === "live")
|
|
13853
13858
|
return n;
|
|
@@ -14240,7 +14245,7 @@ function Dg({
|
|
|
14240
14245
|
function TK({
|
|
14241
14246
|
appSlug: t
|
|
14242
14247
|
}) {
|
|
14243
|
-
return window.localStorage.getItem(
|
|
14248
|
+
return typeof window > "u" ? null : window.localStorage.getItem(
|
|
14244
14249
|
Dg({ appSlug: t, item: "accessToken" })
|
|
14245
14250
|
);
|
|
14246
14251
|
}
|
|
@@ -14248,7 +14253,7 @@ function DK({
|
|
|
14248
14253
|
appSlug: t,
|
|
14249
14254
|
accessToken: e
|
|
14250
14255
|
}) {
|
|
14251
|
-
window.localStorage.setItem(
|
|
14256
|
+
typeof window > "u" || window.localStorage.setItem(
|
|
14252
14257
|
Dg({ appSlug: t, item: "accessToken" }),
|
|
14253
14258
|
e
|
|
14254
14259
|
);
|
|
@@ -24178,7 +24183,7 @@ function Gb({
|
|
|
24178
24183
|
}
|
|
24179
24184
|
Gb.displayName = "InputCurrencyRange";
|
|
24180
24185
|
const rue = ZI(
|
|
24181
|
-
async () => await import("./InputDateComponent-
|
|
24186
|
+
async () => await import("./InputDateComponent-41c3fe81.js").then((t) => ({
|
|
24182
24187
|
default: t.InputDateComponent
|
|
24183
24188
|
}))
|
|
24184
24189
|
), ks = G(
|
package/dist/main.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { aA as c, bd as i, aB as p, aC as b, aD as l, aE as d, aF as g, aG as m, aH as S, aI as I, aJ as k, be as T, aK as D, aL as R, ar as y, bf as h, bg as C, bh as A, bi as H, aM as P, au as f, av as B, aN as F, aO as v, bu as N, bv as O, bx as w, bz as L, bB as G, bF as V, bH as x, bM as E, bP as M, bR as W, bY as U, b_ as J, c0 as j, c2 as q, c4 as z, c8 as Y, c9 as Z, aP as $, aQ as K, bw as Q, by as X, bA as _, bC as aa, bE as ea, bG as sa, bI as ta, bJ as oa, bK as ra, bL as na, bN as ua, bO as ca, bQ as ia, bS as pa, bZ as ba, b$ as la, c1 as da, c3 as ga, c5 as ma, c6 as Sa, c7 as Ia, bj as ka, bk as Ta, bl as Da, bm as Ra, ax as ya, bn as ha, aR as Ca, bo as Aa, bp as Ha, aS as Pa, aT as fa, aU as Ba, aV as Fa, bq as va, cc as Na, cd as Oa, ce as wa, cf as La, cg as Ga, ch as Va, ci as xa, cj as Ea, ck as Ma, aW as Wa, br as Ua, aX as Ja, aY as ja, aZ as qa, a_ as za, b0 as Ya, b1 as Za, b2 as $a, b3 as Ka, b4 as Qa, b9 as Xa, b5 as _a, bs as ae, ba as ee, bb as se, b6 as te, bc as oe, b7 as re, bt as ne, ay as ue, b8 as ce, a8 as ie, ab as pe, ac as be, Z as le, a7 as de, bT as ge, bD as me, $ as Se, a0 as Ie, a1 as ke, a9 as Te, aa as De, ad as Re, cm as ye, cn as he, bU as Ce, a2 as Ae, a3 as He, a4 as Pe, co as fe, cp as Be, cq as Fe, cr as ve, cs as Ne, ct as Oe, ae as we, af as Le, cu as Ge, cv as Ve, cw as xe, cx as Ee, ag as Me, ah as We, cy as Ue, cz as Je, cA as je, ak as qe, al as ze, U as Ye, ai as Ze, aj as $e, W as Ke, bV as Qe, bW as Xe, bX as _e, V as as, Y as es, ca as ss, a5 as ts, a6 as os, am as rs, as as ns, at as us, an as cs, ao as is, ap as ps, aq as bs, cl as ls, aw as ds, az as gs, cb as ms, a$ as Ss } from "./main-a6ce8ff2.js";
|
|
2
3
|
import "react";
|
|
3
4
|
import "react-dom";
|
|
4
5
|
import "@commercelayer/sdk";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Mode } from './types';
|
|
2
|
-
export declare function getOrgSlugFromCurrentUrl(): string;
|
|
2
|
+
export declare function getOrgSlugFromCurrentUrl(): string | null;
|
|
3
3
|
export declare function makeDashboardUrl({ domain, mode, organizationSlug }: {
|
|
4
4
|
domain?: string;
|
|
5
5
|
mode?: Mode;
|