@xsolla/backpack-js 1.9.2 → 1.9.3-rc.0
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/dist/BackpackElement.d.ts +1 -0
- package/dist/backpack-js.js +24 -11
- package/dist/backpack-js.umd.cjs +181 -181
- package/dist/index.d.ts +7 -0
- package/dist/types.d.ts +13 -0
- package/package.json +1 -1
|
@@ -27,6 +27,7 @@ export declare class BackpackElement extends HTMLElement {
|
|
|
27
27
|
enableAnalytics: boolean;
|
|
28
28
|
externalId: string | undefined;
|
|
29
29
|
openItem: string | undefined;
|
|
30
|
+
reauthRedirectUri: string | undefined;
|
|
30
31
|
|
|
31
32
|
connectedCallback(): void;
|
|
32
33
|
disconnectedCallback(): void;
|
package/dist/backpack-js.js
CHANGED
|
@@ -79075,20 +79075,21 @@ function yat({
|
|
|
79075
79075
|
onUnauthorized: w,
|
|
79076
79076
|
enableAnalytics: C = !0,
|
|
79077
79077
|
externalId: B,
|
|
79078
|
-
openItem: P
|
|
79078
|
+
openItem: P,
|
|
79079
|
+
reauthRedirectUri: D
|
|
79079
79080
|
}) {
|
|
79080
|
-
const
|
|
79081
|
+
const M = !!t;
|
|
79081
79082
|
S.useEffect(() => {
|
|
79082
79083
|
}, [a, !!b]);
|
|
79083
|
-
const
|
|
79084
|
+
const k = S.useRef(w);
|
|
79084
79085
|
S.useEffect(() => {
|
|
79085
|
-
|
|
79086
|
+
k.current = w;
|
|
79086
79087
|
}, [w]);
|
|
79087
|
-
const
|
|
79088
|
+
const O = S.useMemo(() => {
|
|
79088
79089
|
if (w)
|
|
79089
79090
|
return () => {
|
|
79090
|
-
const
|
|
79091
|
-
return
|
|
79091
|
+
const T = k.current;
|
|
79092
|
+
return T ? T({
|
|
79092
79093
|
url: void 0,
|
|
79093
79094
|
method: void 0,
|
|
79094
79095
|
hadAuthorizationHeader: !!t
|
|
@@ -79098,7 +79099,7 @@ function yat({
|
|
|
79098
79099
|
return /* @__PURE__ */ E.jsx(Sve, { children: /* @__PURE__ */ E.jsx(
|
|
79099
79100
|
gOe,
|
|
79100
79101
|
{
|
|
79101
|
-
isAuthenticated:
|
|
79102
|
+
isAuthenticated: M,
|
|
79102
79103
|
isGuest: a,
|
|
79103
79104
|
showFilterChips: o,
|
|
79104
79105
|
userAccessToken: t,
|
|
@@ -79109,7 +79110,7 @@ function yat({
|
|
|
79109
79110
|
onSignIn: b,
|
|
79110
79111
|
onLogout: p,
|
|
79111
79112
|
onClickPurchase: y,
|
|
79112
|
-
onUnauthorized:
|
|
79113
|
+
onUnauthorized: O,
|
|
79113
79114
|
descriptionBySku: s,
|
|
79114
79115
|
configurationId: l,
|
|
79115
79116
|
apiBaseUrl: c,
|
|
@@ -79119,6 +79120,7 @@ function yat({
|
|
|
79119
79120
|
enableSalvage: g,
|
|
79120
79121
|
enableWheel3dModel: m,
|
|
79121
79122
|
openItem: P,
|
|
79123
|
+
reauthRedirectUri: D,
|
|
79122
79124
|
web3Provider: aat,
|
|
79123
79125
|
enableAnalytics: C,
|
|
79124
79126
|
metrikaExternalId: B,
|
|
@@ -79145,7 +79147,8 @@ const bat = [
|
|
|
79145
79147
|
"page-background",
|
|
79146
79148
|
"enable-analytics",
|
|
79147
79149
|
"external-id",
|
|
79148
|
-
"open-item"
|
|
79150
|
+
"open-item",
|
|
79151
|
+
"reauth-redirect-uri"
|
|
79149
79152
|
];
|
|
79150
79153
|
function Pu(t, e) {
|
|
79151
79154
|
if (t == null) return e;
|
|
@@ -79350,6 +79353,12 @@ class Cat extends HTMLElement {
|
|
|
79350
79353
|
set openItem(e) {
|
|
79351
79354
|
this._config.openItem = (e == null ? void 0 : e.trim()) || void 0, this._scheduleRender();
|
|
79352
79355
|
}
|
|
79356
|
+
get reauthRedirectUri() {
|
|
79357
|
+
return this._config.reauthRedirectUri;
|
|
79358
|
+
}
|
|
79359
|
+
set reauthRedirectUri(e) {
|
|
79360
|
+
this._config.reauthRedirectUri = (e == null ? void 0 : e.trim()) || void 0, this._scheduleRender();
|
|
79361
|
+
}
|
|
79353
79362
|
connectedCallback() {
|
|
79354
79363
|
this._frameMode = VW(this, null);
|
|
79355
79364
|
const e = this.parentElement;
|
|
@@ -79427,6 +79436,9 @@ class Cat extends HTMLElement {
|
|
|
79427
79436
|
case "open-item":
|
|
79428
79437
|
this._config.openItem = (r == null ? void 0 : r.trim()) || void 0;
|
|
79429
79438
|
break;
|
|
79439
|
+
case "reauth-redirect-uri":
|
|
79440
|
+
this._config.reauthRedirectUri = (r == null ? void 0 : r.trim()) || void 0;
|
|
79441
|
+
break;
|
|
79430
79442
|
}
|
|
79431
79443
|
this._scheduleRender();
|
|
79432
79444
|
}
|
|
@@ -79469,7 +79481,7 @@ class Cat extends HTMLElement {
|
|
|
79469
79481
|
this._root.render(S.createElement(yat, i));
|
|
79470
79482
|
}
|
|
79471
79483
|
}
|
|
79472
|
-
const Sat = "1.9.
|
|
79484
|
+
const Sat = "1.9.3-rc.0", Iat = {
|
|
79473
79485
|
version: Sat
|
|
79474
79486
|
}, Mat = Iat.version;
|
|
79475
79487
|
VEe("backpack-js", Mat);
|
|
@@ -134883,6 +134895,7 @@ const ewt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
134883
134895
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
134884
134896
|
export {
|
|
134885
134897
|
Cat as BackpackElement,
|
|
134898
|
+
RRe as handleReauthCallback,
|
|
134886
134899
|
wwt as refetch,
|
|
134887
134900
|
Iwt as reload,
|
|
134888
134901
|
YOe as useItemById
|