@fluid-app/portal-sdk 0.1.106 → 0.1.108
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/{AppDownloadScreen-BBpvNeFO.mjs → AppDownloadScreen-BvcyEKCk.mjs} +2 -2
- package/dist/{AppDownloadScreen-BBpvNeFO.mjs.map → AppDownloadScreen-BvcyEKCk.mjs.map} +1 -1
- package/dist/{AppDownloadScreen-Da79ffTK.cjs → AppDownloadScreen-DzFc_CDn.cjs} +2 -2
- package/dist/{AppDownloadScreen-Da79ffTK.cjs.map → AppDownloadScreen-DzFc_CDn.cjs.map} +1 -1
- package/dist/{AppDownloadScreen-R3rcFWzL.cjs → AppDownloadScreen-Uc9N7K_K.cjs} +2 -2
- package/dist/{ContactsScreen-CGyCNeZy.mjs → ContactsScreen-BNqIi0XS.mjs} +5 -5
- package/dist/{ContactsScreen-CGyCNeZy.mjs.map → ContactsScreen-BNqIi0XS.mjs.map} +1 -1
- package/dist/{ContactsScreen-CFC32ATZ.cjs → ContactsScreen-C6cCTl51.cjs} +5 -5
- package/dist/{ContactsScreen-CFC32ATZ.cjs.map → ContactsScreen-C6cCTl51.cjs.map} +1 -1
- package/dist/{ContactsScreen-D81raD2s.cjs → ContactsScreen-D2DYk3A-.cjs} +6 -6
- package/dist/{FluidProvider-DbYLBGGg.cjs → FluidProvider-NnE6s3O0.cjs} +6 -458
- package/dist/FluidProvider-NnE6s3O0.cjs.map +1 -0
- package/dist/{FluidProvider-B59bzF__.mjs → FluidProvider-dTwaHRzI.mjs} +7 -483
- package/dist/FluidProvider-dTwaHRzI.mjs.map +1 -0
- package/dist/{MessagingScreen-TCOhXTPN.cjs → MessagingScreen-C_tCav2Y.cjs} +4 -4
- package/dist/{MessagingScreen-DsH-L7vB.cjs → MessagingScreen-DH0YxaOG.cjs} +8 -10
- package/dist/{MessagingScreen-DsH-L7vB.cjs.map → MessagingScreen-DH0YxaOG.cjs.map} +1 -1
- package/dist/{MessagingScreen-6SfuZqDC.mjs → MessagingScreen-Dv8HVEt-.mjs} +8 -10
- package/dist/MessagingScreen-Dv8HVEt-.mjs.map +1 -0
- package/dist/{MessagingScreen-Bg-7zNye.mjs → MessagingScreen-IzNlAXvD.mjs} +4 -4
- package/dist/{MySiteScreen-DDX4xcMv.cjs → MySiteScreen-Bda8FzQ9.cjs} +3 -3
- package/dist/{MySiteScreen-BHiMCIZ_.cjs → MySiteScreen-DydtAGvt.cjs} +3 -3
- package/dist/{MySiteScreen-BHiMCIZ_.cjs.map → MySiteScreen-DydtAGvt.cjs.map} +1 -1
- package/dist/{MySiteScreen-BI089vJc.mjs → MySiteScreen-t89PLodk.mjs} +3 -3
- package/dist/{MySiteScreen-BI089vJc.mjs.map → MySiteScreen-t89PLodk.mjs.map} +1 -1
- package/dist/{OrdersScreen-BQVbdyrZ.cjs → OrdersScreen-BhJkW3TG.cjs} +4 -4
- package/dist/{OrdersScreen-BQVbdyrZ.cjs.map → OrdersScreen-BhJkW3TG.cjs.map} +1 -1
- package/dist/{OrdersScreen-CaESWLWt.mjs → OrdersScreen-DP1WdqVT.mjs} +4 -4
- package/dist/{OrdersScreen-CaESWLWt.mjs.map → OrdersScreen-DP1WdqVT.mjs.map} +1 -1
- package/dist/{OrdersScreen-BsPW-2wm.cjs → OrdersScreen-DvaV61fj.cjs} +3 -3
- package/dist/{ProductsScreen-Bp_XLYgP.mjs → ProductsScreen-CFLI7j5s.mjs} +7 -7
- package/dist/{ProductsScreen-BFnsUrY1.cjs → ProductsScreen-CI9G5UJh.cjs} +7 -7
- package/dist/{ProductsScreen-ClC1fTWG.mjs → ProductsScreen-sEcByLGy.mjs} +5 -5
- package/dist/{ProductsScreen-ClC1fTWG.mjs.map → ProductsScreen-sEcByLGy.mjs.map} +1 -1
- package/dist/{ProductsScreen-D-mnWuJW.cjs → ProductsScreen-ssonMzdl.cjs} +5 -5
- package/dist/{ProductsScreen-D-mnWuJW.cjs.map → ProductsScreen-ssonMzdl.cjs.map} +1 -1
- package/dist/{ProfileScreen-COpbffE9.cjs → ProfileScreen-BPvudlCM.cjs} +10 -9
- package/dist/{ProfileScreen-COpbffE9.cjs.map → ProfileScreen-BPvudlCM.cjs.map} +1 -1
- package/dist/{ProfileScreen-B1zSJuVE.mjs → ProfileScreen-BWiBC4y3.mjs} +10 -9
- package/dist/{ProfileScreen-B1zSJuVE.mjs.map → ProfileScreen-BWiBC4y3.mjs.map} +1 -1
- package/dist/{ProfileScreen-p9Zqln4n.cjs → ProfileScreen-Bc4znBmb.cjs} +2 -2
- package/dist/{ShareablesScreen-BSOBA2bP.cjs → ShareablesScreen-BvBfPJ69.cjs} +7 -7
- package/dist/{ShareablesScreen-BOwl9-B0.mjs → ShareablesScreen-CIrWSh5q.mjs} +8 -7
- package/dist/{ShareablesScreen-BOwl9-B0.mjs.map → ShareablesScreen-CIrWSh5q.mjs.map} +1 -1
- package/dist/{ShareablesScreen-Bmghdz71.mjs → ShareablesScreen-CtQckby8.mjs} +7 -7
- package/dist/{ShareablesScreen-9toTptRT.cjs → ShareablesScreen-D3JVKFVA.cjs} +9 -8
- package/dist/{ShareablesScreen-9toTptRT.cjs.map → ShareablesScreen-D3JVKFVA.cjs.map} +1 -1
- package/dist/{ShopScreen-Cbv-zrHK.cjs → ShopScreen-BTTKNmtT.cjs} +6 -7
- package/dist/ShopScreen-BTTKNmtT.cjs.map +1 -0
- package/dist/{ShopScreen-BwNZxqnT.mjs → ShopScreen-CDscN4-a.mjs} +6 -7
- package/dist/{ShopScreen-BwNZxqnT.mjs.map → ShopScreen-CDscN4-a.mjs.map} +1 -1
- package/dist/{ShopScreen-M2hCxrwQ.cjs → ShopScreen-TWpb8sxs.cjs} +2 -2
- package/dist/{SubscriptionsScreen-CJwOjaBY.cjs → SubscriptionsScreen-B0drtNfN.cjs} +4 -4
- package/dist/{SubscriptionsScreen-CJwOjaBY.cjs.map → SubscriptionsScreen-B0drtNfN.cjs.map} +1 -1
- package/dist/{SubscriptionsScreen-YsIehRb5.mjs → SubscriptionsScreen-D-BXah4H.mjs} +4 -4
- package/dist/{SubscriptionsScreen-YsIehRb5.mjs.map → SubscriptionsScreen-D-BXah4H.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-Bfu-mgGS.cjs → SubscriptionsScreen-WtnN9Ka0.cjs} +4 -4
- package/dist/{UpgradeScreen-DI7DK6qt.cjs → UpgradeScreen-C-aIQL-y.cjs} +1 -1
- package/dist/{UpgradeScreen-DI7DK6qt.cjs.map → UpgradeScreen-C-aIQL-y.cjs.map} +1 -1
- package/dist/{UpgradeScreen-DfDZG52l.cjs → UpgradeScreen-CWgcMBwb.cjs} +1 -1
- package/dist/{UpgradeScreen-CTXUueQY.mjs → UpgradeScreen-GTOZCURK.mjs} +1 -1
- package/dist/{UpgradeScreen-CTXUueQY.mjs.map → UpgradeScreen-GTOZCURK.mjs.map} +1 -1
- package/dist/{dist-oYNtEpKP.mjs → dist-B1HwSrso.mjs} +2 -2
- package/dist/{dist-oYNtEpKP.mjs.map → dist-B1HwSrso.mjs.map} +1 -1
- package/dist/{dist-BSbac3uh.cjs → dist-BF_4vk1z.cjs} +1 -1
- package/dist/{dist-BSbac3uh.cjs.map → dist-BF_4vk1z.cjs.map} +1 -1
- package/dist/{dist-DRVtlgQ1.cjs → dist-BbS_7TvS.cjs} +1 -1
- package/dist/{dist-DRVtlgQ1.cjs.map → dist-BbS_7TvS.cjs.map} +1 -1
- package/dist/{dist-NMbUD0qE.mjs → dist-CMGXkSgZ.mjs} +1 -1
- package/dist/{dist-NMbUD0qE.mjs.map → dist-CMGXkSgZ.mjs.map} +1 -1
- package/dist/{dist-Ck9MGRmE.cjs → dist-DkYXiQQ1.cjs} +2 -2
- package/dist/{dist-Ck9MGRmE.cjs.map → dist-DkYXiQQ1.cjs.map} +1 -1
- package/dist/{es-BCKjXBqj.mjs → es-B84KtbcD.mjs} +1 -1
- package/dist/{es-BCKjXBqj.mjs.map → es-B84KtbcD.mjs.map} +1 -1
- package/dist/{es-DlWO6buB.cjs → es-BSkb3AZk.cjs} +1 -1
- package/dist/{es-DlWO6buB.cjs.map → es-BSkb3AZk.cjs.map} +1 -1
- package/dist/index.cjs +54 -75
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +70 -185
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +70 -185
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +53 -59
- package/dist/index.mjs.map +1 -1
- package/dist/{order-detail-CtTwAXfP.mjs → order-detail-B8jb-YB6.mjs} +1 -1
- package/dist/{order-detail-CtTwAXfP.mjs.map → order-detail-B8jb-YB6.mjs.map} +1 -1
- package/dist/{order-detail-CksE8d5w.cjs → order-detail-Bq7_UZ75.cjs} +1 -1
- package/dist/{order-detail-CksE8d5w.cjs.map → order-detail-Bq7_UZ75.cjs.map} +1 -1
- package/dist/{products-BAtIML76.cjs → products-3BKfOxrs.cjs} +1 -1
- package/dist/{products-BAtIML76.cjs.map → products-3BKfOxrs.cjs.map} +1 -1
- package/dist/{products-StJIeia3.mjs → products-DtutnMu9.mjs} +1 -1
- package/dist/{products-StJIeia3.mjs.map → products-DtutnMu9.mjs.map} +1 -1
- package/dist/{sortable.esm-DSrWP4x9.mjs → sortable.esm-Cz-CP2N8.mjs} +1 -1
- package/dist/{sortable.esm-DSrWP4x9.mjs.map → sortable.esm-Cz-CP2N8.mjs.map} +1 -1
- package/dist/{src-DryOJTBW.mjs → src-CN7diUEw.mjs} +1 -1
- package/dist/{src-DryOJTBW.mjs.map → src-CN7diUEw.mjs.map} +1 -1
- package/dist/{src-xEfkv04t.cjs → src-D5RNExKx.cjs} +6 -6
- package/dist/{src-xEfkv04t.cjs.map → src-D5RNExKx.cjs.map} +1 -1
- package/dist/{src-DjlwUaws.mjs → src-Dhvv96Yt.mjs} +6 -6
- package/dist/{src-DjlwUaws.mjs.map → src-Dhvv96Yt.mjs.map} +1 -1
- package/dist/{src-CMByt6YP.cjs → src-Zv3-NSUf.cjs} +1 -1
- package/dist/{src-CMByt6YP.cjs.map → src-Zv3-NSUf.cjs.map} +1 -1
- package/dist/{use-account-clients-CFM5q2J-.cjs → use-account-clients-CDTUFb6O.cjs} +5 -70
- package/dist/use-account-clients-CDTUFb6O.cjs.map +1 -0
- package/dist/{use-account-clients-BVe69HZV.mjs → use-account-clients-vDDhNW8x.mjs} +6 -65
- package/dist/use-account-clients-vDDhNW8x.mjs.map +1 -0
- package/dist/{use-current-user-CrHH290V.cjs → use-current-user-C7O5SJ_L.cjs} +3 -3
- package/dist/{use-current-user-CrHH290V.cjs.map → use-current-user-C7O5SJ_L.cjs.map} +1 -1
- package/dist/{use-current-user-SmbdS--3.mjs → use-current-user-Czzb9Zc4.mjs} +3 -3
- package/dist/{use-current-user-SmbdS--3.mjs.map → use-current-user-Czzb9Zc4.mjs.map} +1 -1
- package/dist/{use-customer-account-C1ypS2wX.mjs → use-customer-account-DHZ8wLs9.mjs} +6 -7
- package/dist/use-customer-account-DHZ8wLs9.mjs.map +1 -0
- package/dist/{use-customer-account-_IaCM92S.cjs → use-customer-account-zgiEdZ89.cjs} +6 -7
- package/dist/use-customer-account-zgiEdZ89.cjs.map +1 -0
- package/dist/{use-fluid-api-f1PKU6dS.mjs → use-fluid-api-D0kldm0L.mjs} +2 -2
- package/dist/{use-fluid-api-f1PKU6dS.mjs.map → use-fluid-api-D0kldm0L.mjs.map} +1 -1
- package/dist/{use-fluid-api-C2evcv_D.cjs → use-fluid-api-Wjw57-uD.cjs} +2 -2
- package/dist/{use-fluid-api-C2evcv_D.cjs.map → use-fluid-api-Wjw57-uD.cjs.map} +1 -1
- package/dist/use-fluid-auth-BPwsWZNu.cjs +50 -0
- package/dist/use-fluid-auth-BPwsWZNu.cjs.map +1 -0
- package/dist/use-fluid-auth-Dy5K7BQ9.mjs +45 -0
- package/dist/use-fluid-auth-Dy5K7BQ9.mjs.map +1 -0
- package/package.json +9 -9
- package/dist/FluidProvider-B59bzF__.mjs.map +0 -1
- package/dist/FluidProvider-DbYLBGGg.cjs.map +0 -1
- package/dist/MessagingScreen-6SfuZqDC.mjs.map +0 -1
- package/dist/ShopScreen-Cbv-zrHK.cjs.map +0 -1
- package/dist/use-account-clients-BVe69HZV.mjs.map +0 -1
- package/dist/use-account-clients-CFM5q2J-.cjs.map +0 -1
- package/dist/use-customer-account-C1ypS2wX.mjs.map +0 -1
- package/dist/use-customer-account-_IaCM92S.cjs.map +0 -1
- /package/dist/{src-BakNjVTk.mjs → src-B7j_mfeS.mjs} +0 -0
- /package/dist/{src-C_kOrGdZ.cjs → src-Bp-dRR29.cjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require("./chunk-9hOWP6kD.cjs");
|
|
2
|
-
require("./FluidProvider-
|
|
2
|
+
require("./FluidProvider-NnE6s3O0.cjs");
|
|
3
3
|
require("./PointsWidget-DG0QQHqL.cjs");
|
|
4
4
|
require("./error-state-Bpq2CYvz.cjs");
|
|
5
5
|
require("./ScreenRenderer-DFcTR685.cjs");
|
|
@@ -34,10 +34,10 @@ require("./TableWidget-DiqQBV7-.cjs");
|
|
|
34
34
|
require("./ToDoWidget-DZUvDwnJ.cjs");
|
|
35
35
|
require("./VideoWidget-BmVIIfvM.cjs");
|
|
36
36
|
require("./ScreenHeaderContext-DpVOhFzT.cjs");
|
|
37
|
-
require("./dist-
|
|
38
|
-
const require_ContactsScreen = require("./ContactsScreen-
|
|
39
|
-
require("./order-detail-
|
|
40
|
-
require("./src-
|
|
41
|
-
require("./dist-
|
|
37
|
+
require("./dist-BbS_7TvS.cjs");
|
|
38
|
+
const require_ContactsScreen = require("./ContactsScreen-C6cCTl51.cjs");
|
|
39
|
+
require("./order-detail-Bq7_UZ75.cjs");
|
|
40
|
+
require("./src-Bp-dRR29.cjs");
|
|
41
|
+
require("./dist-DkYXiQQ1.cjs");
|
|
42
42
|
exports.ContactsScreen = require_ContactsScreen.ContactsScreen;
|
|
43
43
|
exports.contactsScreenPropertySchema = require_ContactsScreen.contactsScreenPropertySchema;
|
|
@@ -27,7 +27,6 @@ const require_VideoWidget = require("./VideoWidget-BmVIIfvM.cjs");
|
|
|
27
27
|
let react = require("react");
|
|
28
28
|
let _tanstack_react_query = require("@tanstack/react-query");
|
|
29
29
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
30
|
-
let node_buffer = require("node:buffer");
|
|
31
30
|
let zod = require("zod");
|
|
32
31
|
let colorjs_io = require("colorjs.io");
|
|
33
32
|
colorjs_io = require_chunk.__toESM(colorjs_io);
|
|
@@ -1159,210 +1158,6 @@ const URL_PARAMS = {
|
|
|
1159
1158
|
function isBrowser() {
|
|
1160
1159
|
return typeof window !== "undefined" && typeof document !== "undefined";
|
|
1161
1160
|
}
|
|
1162
|
-
new TextEncoder();
|
|
1163
|
-
const decoder = new TextDecoder();
|
|
1164
|
-
//#endregion
|
|
1165
|
-
//#region ../../../node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/runtime/base64url.js
|
|
1166
|
-
function normalize(input) {
|
|
1167
|
-
let encoded = input;
|
|
1168
|
-
if (encoded instanceof Uint8Array) encoded = decoder.decode(encoded);
|
|
1169
|
-
return encoded;
|
|
1170
|
-
}
|
|
1171
|
-
const decode$1 = (input) => new Uint8Array(node_buffer.Buffer.from(normalize(input), "base64url"));
|
|
1172
|
-
//#endregion
|
|
1173
|
-
//#region ../../../node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/util/errors.js
|
|
1174
|
-
var JOSEError = class extends Error {
|
|
1175
|
-
static code = "ERR_JOSE_GENERIC";
|
|
1176
|
-
code = "ERR_JOSE_GENERIC";
|
|
1177
|
-
constructor(message, options) {
|
|
1178
|
-
super(message, options);
|
|
1179
|
-
this.name = this.constructor.name;
|
|
1180
|
-
Error.captureStackTrace?.(this, this.constructor);
|
|
1181
|
-
}
|
|
1182
|
-
};
|
|
1183
|
-
var JWTInvalid = class extends JOSEError {
|
|
1184
|
-
static code = "ERR_JWT_INVALID";
|
|
1185
|
-
code = "ERR_JWT_INVALID";
|
|
1186
|
-
};
|
|
1187
|
-
Symbol.asyncIterator;
|
|
1188
|
-
//#endregion
|
|
1189
|
-
//#region ../../../node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/lib/is_object.js
|
|
1190
|
-
function isObjectLike(value) {
|
|
1191
|
-
return typeof value === "object" && value !== null;
|
|
1192
|
-
}
|
|
1193
|
-
function isObject(input) {
|
|
1194
|
-
if (!isObjectLike(input) || Object.prototype.toString.call(input) !== "[object Object]") return false;
|
|
1195
|
-
if (Object.getPrototypeOf(input) === null) return true;
|
|
1196
|
-
let proto = input;
|
|
1197
|
-
while (Object.getPrototypeOf(proto) !== null) proto = Object.getPrototypeOf(proto);
|
|
1198
|
-
return Object.getPrototypeOf(input) === proto;
|
|
1199
|
-
}
|
|
1200
|
-
const decode = decode$1;
|
|
1201
|
-
//#endregion
|
|
1202
|
-
//#region ../../../node_modules/.pnpm/jose@5.10.0/node_modules/jose/dist/node/esm/util/decode_jwt.js
|
|
1203
|
-
function decodeJwt(jwt) {
|
|
1204
|
-
if (typeof jwt !== "string") throw new JWTInvalid("JWTs must use Compact JWS serialization, JWT must be a string");
|
|
1205
|
-
const { 1: payload, length } = jwt.split(".");
|
|
1206
|
-
if (length === 5) throw new JWTInvalid("Only JWTs using Compact JWS serialization can be decoded");
|
|
1207
|
-
if (length !== 3) throw new JWTInvalid("Invalid JWT");
|
|
1208
|
-
if (!payload) throw new JWTInvalid("JWTs must contain a payload");
|
|
1209
|
-
let decoded;
|
|
1210
|
-
try {
|
|
1211
|
-
decoded = decode(payload);
|
|
1212
|
-
} catch {
|
|
1213
|
-
throw new JWTInvalid("Failed to base64url decode the payload");
|
|
1214
|
-
}
|
|
1215
|
-
let result;
|
|
1216
|
-
try {
|
|
1217
|
-
result = JSON.parse(decoder.decode(decoded));
|
|
1218
|
-
} catch {
|
|
1219
|
-
throw new JWTInvalid("Failed to parse the decoded payload as JSON");
|
|
1220
|
-
}
|
|
1221
|
-
if (!isObject(result)) throw new JWTInvalid("Invalid JWT Claims Set");
|
|
1222
|
-
return result;
|
|
1223
|
-
}
|
|
1224
|
-
//#endregion
|
|
1225
|
-
//#region ../../platform/auth/src/token-utils.ts
|
|
1226
|
-
/**
|
|
1227
|
-
* Token Utilities
|
|
1228
|
-
*
|
|
1229
|
-
* Functions for decoding, validating, and checking JWT tokens.
|
|
1230
|
-
*/
|
|
1231
|
-
/**
|
|
1232
|
-
* Extract a JWTPayload from a jose-decoded JWT payload.
|
|
1233
|
-
*
|
|
1234
|
-
* Type assertions are required because jose's payload type uses `unknown`
|
|
1235
|
-
* for custom claims. This helper centralises the mapping so that
|
|
1236
|
-
* both {@link decodeToken} and {@link verifyToken} share the same logic.
|
|
1237
|
-
*/
|
|
1238
|
-
function extractPayloadFromJose(decoded) {
|
|
1239
|
-
const rawUserType = decoded.user_type;
|
|
1240
|
-
const rawOgUserType = decoded.og_user_type;
|
|
1241
|
-
return {
|
|
1242
|
-
id: typeof decoded.id === "number" ? decoded.id : void 0,
|
|
1243
|
-
email: typeof decoded.email === "string" ? decoded.email : void 0,
|
|
1244
|
-
full_name: typeof decoded.full_name === "string" ? decoded.full_name : void 0,
|
|
1245
|
-
user_type: typeof rawUserType === "string" && isUserType(rawUserType) ? rawUserType : "rep",
|
|
1246
|
-
og_user_type: typeof rawOgUserType === "string" && isUserType(rawOgUserType) ? rawOgUserType : void 0,
|
|
1247
|
-
company_id: typeof decoded.company_id === "number" ? decoded.company_id : void 0,
|
|
1248
|
-
exp: decoded.exp,
|
|
1249
|
-
auth_type: typeof decoded.auth_type === "string" ? decoded.auth_type : void 0
|
|
1250
|
-
};
|
|
1251
|
-
}
|
|
1252
|
-
/**
|
|
1253
|
-
* Decode a JWT token and extract its payload.
|
|
1254
|
-
*
|
|
1255
|
-
* **Security note:** This function does NOT verify the JWT signature.
|
|
1256
|
-
* It only decodes the payload. Any valid JWT structure will be accepted,
|
|
1257
|
-
* regardless of who signed it.
|
|
1258
|
-
*
|
|
1259
|
-
* Client-side token decoding is used for UX purposes only (displaying
|
|
1260
|
-
* user info, role-based UI). The real security boundary is the server-side
|
|
1261
|
-
* API, which verifies the signature on every request.
|
|
1262
|
-
*
|
|
1263
|
-
* For signature verification, use {@link verifyToken} with a JWKS URL.
|
|
1264
|
-
*
|
|
1265
|
-
* @param token - The JWT token string
|
|
1266
|
-
* @returns The decoded JWT payload, or null if decoding fails
|
|
1267
|
-
*/
|
|
1268
|
-
function decodeToken(token) {
|
|
1269
|
-
try {
|
|
1270
|
-
return extractPayloadFromJose(decodeJwt(token));
|
|
1271
|
-
} catch (error) {
|
|
1272
|
-
console.error("[FluidAuth] Failed to decode JWT token:", error);
|
|
1273
|
-
return null;
|
|
1274
|
-
}
|
|
1275
|
-
}
|
|
1276
|
-
/**
|
|
1277
|
-
* Check if a token has expired.
|
|
1278
|
-
* Includes a configurable grace period to account for clock skew.
|
|
1279
|
-
*
|
|
1280
|
-
* @param token - The JWT token string
|
|
1281
|
-
* @param gracePeriodMs - Grace period in milliseconds (default: 30 seconds)
|
|
1282
|
-
* @returns true if the token is expired, false otherwise
|
|
1283
|
-
*/
|
|
1284
|
-
function isTokenExpired(token, gracePeriodMs = AUTH_CONSTANTS.TOKEN_GRACE_PERIOD_MS) {
|
|
1285
|
-
try {
|
|
1286
|
-
const decoded = decodeJwt(token);
|
|
1287
|
-
if (!decoded.exp) return false;
|
|
1288
|
-
const expirationTime = decoded.exp * 1e3;
|
|
1289
|
-
return Date.now() > expirationTime + gracePeriodMs;
|
|
1290
|
-
} catch {
|
|
1291
|
-
return true;
|
|
1292
|
-
}
|
|
1293
|
-
}
|
|
1294
|
-
/**
|
|
1295
|
-
* Validate a JWT token for format and expiration.
|
|
1296
|
-
*
|
|
1297
|
-
* **Security note:** This function checks JWT structure and expiration
|
|
1298
|
-
* but does NOT verify the signature. It is a UX-level check only.
|
|
1299
|
-
* For signature verification, use {@link verifyToken} with a JWKS URL.
|
|
1300
|
-
*
|
|
1301
|
-
* @param token - The JWT token string
|
|
1302
|
-
* @param gracePeriodMs - Grace period for expiration check (default: 30 seconds)
|
|
1303
|
-
* @returns Validation result with status and decoded payload if valid
|
|
1304
|
-
*/
|
|
1305
|
-
function validateToken(token, gracePeriodMs = AUTH_CONSTANTS.TOKEN_GRACE_PERIOD_MS) {
|
|
1306
|
-
if (!token || token.trim() === "") return {
|
|
1307
|
-
isValid: false,
|
|
1308
|
-
error: "Token is empty or not provided"
|
|
1309
|
-
};
|
|
1310
|
-
const payload = decodeToken(token);
|
|
1311
|
-
if (!payload) return {
|
|
1312
|
-
isValid: false,
|
|
1313
|
-
error: "Token has invalid format"
|
|
1314
|
-
};
|
|
1315
|
-
if (isTokenExpired(token, gracePeriodMs)) return {
|
|
1316
|
-
isValid: false,
|
|
1317
|
-
payload,
|
|
1318
|
-
error: "Token has expired"
|
|
1319
|
-
};
|
|
1320
|
-
return {
|
|
1321
|
-
isValid: true,
|
|
1322
|
-
payload
|
|
1323
|
-
};
|
|
1324
|
-
}
|
|
1325
|
-
/**
|
|
1326
|
-
* Type guard to check if a validation result is valid.
|
|
1327
|
-
* Enables TypeScript narrowing of the result type.
|
|
1328
|
-
*
|
|
1329
|
-
* @param result - The validation result to check
|
|
1330
|
-
* @returns true if the token is valid (narrows payload to non-optional)
|
|
1331
|
-
*/
|
|
1332
|
-
function isValidToken(result) {
|
|
1333
|
-
return result.isValid === true;
|
|
1334
|
-
}
|
|
1335
|
-
/**
|
|
1336
|
-
* Get the expiration time of a token as a Date.
|
|
1337
|
-
*
|
|
1338
|
-
* @param token - The JWT token string
|
|
1339
|
-
* @returns The expiration Date, or null if token has no expiration or is invalid
|
|
1340
|
-
*/
|
|
1341
|
-
function getTokenExpiration(token) {
|
|
1342
|
-
try {
|
|
1343
|
-
const decoded = decodeJwt(token);
|
|
1344
|
-
if (!decoded.exp) return null;
|
|
1345
|
-
return /* @__PURE__ */ new Date(decoded.exp * 1e3);
|
|
1346
|
-
} catch {
|
|
1347
|
-
return null;
|
|
1348
|
-
}
|
|
1349
|
-
}
|
|
1350
|
-
/**
|
|
1351
|
-
* Get the time remaining until token expiration in milliseconds.
|
|
1352
|
-
*
|
|
1353
|
-
* @param token - The JWT token string
|
|
1354
|
-
* @returns Milliseconds until expiration, or 0 if expired/invalid, or Infinity if no expiration
|
|
1355
|
-
*/
|
|
1356
|
-
function getTokenTimeRemaining(token) {
|
|
1357
|
-
try {
|
|
1358
|
-
const decoded = decodeJwt(token);
|
|
1359
|
-
if (!decoded.exp) return Infinity;
|
|
1360
|
-
const remaining = decoded.exp * 1e3 - Date.now();
|
|
1361
|
-
return Math.max(0, remaining);
|
|
1362
|
-
} catch {
|
|
1363
|
-
return 0;
|
|
1364
|
-
}
|
|
1365
|
-
}
|
|
1366
1161
|
//#endregion
|
|
1367
1162
|
//#region ../../platform/auth/src/token-storage.ts
|
|
1368
1163
|
/**
|
|
@@ -1372,33 +1167,6 @@ function getTokenTimeRemaining(token) {
|
|
|
1372
1167
|
* cookies and localStorage.
|
|
1373
1168
|
*/
|
|
1374
1169
|
/**
|
|
1375
|
-
* Parse cookies from document.cookie string into an object.
|
|
1376
|
-
*/
|
|
1377
|
-
function parseCookies() {
|
|
1378
|
-
if (!isBrowser()) return {};
|
|
1379
|
-
const cookies = {};
|
|
1380
|
-
const cookieString = document.cookie;
|
|
1381
|
-
if (!cookieString) return cookies;
|
|
1382
|
-
cookieString.split(";").forEach((cookie) => {
|
|
1383
|
-
const [name, ...valueParts] = cookie.trim().split("=");
|
|
1384
|
-
if (name) cookies[name] = decodeURIComponent(valueParts.join("="));
|
|
1385
|
-
});
|
|
1386
|
-
return cookies;
|
|
1387
|
-
}
|
|
1388
|
-
/**
|
|
1389
|
-
* Set a cookie with the given options.
|
|
1390
|
-
*/
|
|
1391
|
-
function setCookie(name, value, options = {}) {
|
|
1392
|
-
if (!isBrowser()) return;
|
|
1393
|
-
const { maxAge = AUTH_CONSTANTS.COOKIE_MAX_AGE, path = "/", sameSite = "lax", secure = window.location.protocol === "https:" } = options;
|
|
1394
|
-
let cookieString = `${name}=${encodeURIComponent(value)}`;
|
|
1395
|
-
cookieString += `; path=${path}`;
|
|
1396
|
-
cookieString += `; max-age=${maxAge}`;
|
|
1397
|
-
cookieString += `; samesite=${sameSite}`;
|
|
1398
|
-
if (secure) cookieString += "; secure";
|
|
1399
|
-
document.cookie = cookieString;
|
|
1400
|
-
}
|
|
1401
|
-
/**
|
|
1402
1170
|
* Delete a cookie by setting its max-age to 0.
|
|
1403
1171
|
*/
|
|
1404
1172
|
function deleteCookie(name, path = "/") {
|
|
@@ -1406,53 +1174,6 @@ function deleteCookie(name, path = "/") {
|
|
|
1406
1174
|
document.cookie = `${name}=; path=${path}; max-age=0`;
|
|
1407
1175
|
}
|
|
1408
1176
|
/**
|
|
1409
|
-
* Get the stored auth token.
|
|
1410
|
-
* Checks cookie first, then falls back to localStorage.
|
|
1411
|
-
*
|
|
1412
|
-
* @param config - Optional auth config for custom cookie key
|
|
1413
|
-
* @returns The stored token or null if not found
|
|
1414
|
-
*/
|
|
1415
|
-
function getStoredToken(config) {
|
|
1416
|
-
if (!isBrowser()) return null;
|
|
1417
|
-
const cookieKey = config?.cookieKey ?? STORAGE_KEYS.AUTH_COOKIE;
|
|
1418
|
-
const localStorageKey = STORAGE_KEYS.USER_TOKEN;
|
|
1419
|
-
const cookieToken = parseCookies()[cookieKey];
|
|
1420
|
-
if (cookieToken) return cookieToken;
|
|
1421
|
-
try {
|
|
1422
|
-
return localStorage.getItem(localStorageKey);
|
|
1423
|
-
} catch {
|
|
1424
|
-
return null;
|
|
1425
|
-
}
|
|
1426
|
-
}
|
|
1427
|
-
/**
|
|
1428
|
-
* Store an auth token in both cookie and localStorage.
|
|
1429
|
-
* Using both provides redundancy and compatibility with different auth flows.
|
|
1430
|
-
*
|
|
1431
|
-
* @param token - The JWT token to store
|
|
1432
|
-
* @param config - Optional auth config for custom storage options
|
|
1433
|
-
*/
|
|
1434
|
-
function storeToken(token, config) {
|
|
1435
|
-
if (!isBrowser()) return;
|
|
1436
|
-
const cookieKey = config?.cookieKey ?? STORAGE_KEYS.AUTH_COOKIE;
|
|
1437
|
-
const maxAge = config?.cookieMaxAge ?? AUTH_CONSTANTS.COOKIE_MAX_AGE;
|
|
1438
|
-
try {
|
|
1439
|
-
const sameSite = window.self !== window.top ? "none" : "lax";
|
|
1440
|
-
setCookie(cookieKey, token, {
|
|
1441
|
-
maxAge,
|
|
1442
|
-
path: "/",
|
|
1443
|
-
sameSite,
|
|
1444
|
-
secure: sameSite === "none" || window.location.protocol === "https:"
|
|
1445
|
-
});
|
|
1446
|
-
} catch (error) {
|
|
1447
|
-
console.warn("[FluidAuth] Failed to store token in cookie:", error);
|
|
1448
|
-
}
|
|
1449
|
-
try {
|
|
1450
|
-
localStorage.setItem(STORAGE_KEYS.USER_TOKEN, token);
|
|
1451
|
-
} catch (error) {
|
|
1452
|
-
console.warn("[FluidAuth] Failed to store token in localStorage:", error);
|
|
1453
|
-
}
|
|
1454
|
-
}
|
|
1455
|
-
/**
|
|
1456
1177
|
* Clear all stored auth tokens from cookies and localStorage.
|
|
1457
1178
|
*
|
|
1458
1179
|
* @param config - Optional auth config for custom cookie key
|
|
@@ -1468,15 +1189,6 @@ function clearTokens(config) {
|
|
|
1468
1189
|
localStorage.removeItem(STORAGE_KEYS.COMPANY_TOKEN);
|
|
1469
1190
|
} catch {}
|
|
1470
1191
|
}
|
|
1471
|
-
/**
|
|
1472
|
-
* Check if any auth token is stored.
|
|
1473
|
-
*
|
|
1474
|
-
* @param config - Optional auth config
|
|
1475
|
-
* @returns true if a token is stored, false otherwise
|
|
1476
|
-
*/
|
|
1477
|
-
function hasStoredToken(config) {
|
|
1478
|
-
return getStoredToken(config) !== null;
|
|
1479
|
-
}
|
|
1480
1192
|
//#endregion
|
|
1481
1193
|
//#region ../../platform/auth/src/url-token.ts
|
|
1482
1194
|
/**
|
|
@@ -1492,35 +1204,6 @@ function hasStoredToken(config) {
|
|
|
1492
1204
|
* starter template prevents the token from leaking in referrer headers.
|
|
1493
1205
|
*/
|
|
1494
1206
|
/**
|
|
1495
|
-
* Extract the auth token from the URL query parameters.
|
|
1496
|
-
*
|
|
1497
|
-
* @param tokenKey - The URL parameter name (default: "fluidUserToken")
|
|
1498
|
-
* @returns The token value or null if not present
|
|
1499
|
-
*/
|
|
1500
|
-
function extractTokenFromUrl(tokenKey = URL_PARAMS.USER_TOKEN) {
|
|
1501
|
-
if (!isBrowser()) return null;
|
|
1502
|
-
try {
|
|
1503
|
-
return new URLSearchParams(window.location.search).get(tokenKey);
|
|
1504
|
-
} catch {
|
|
1505
|
-
return null;
|
|
1506
|
-
}
|
|
1507
|
-
}
|
|
1508
|
-
/**
|
|
1509
|
-
* Extract the company token from the URL query parameters.
|
|
1510
|
-
* This is a legacy parameter that may still be used in some flows.
|
|
1511
|
-
*
|
|
1512
|
-
* @param tokenKey - The URL parameter name (default: "fluidCompanyToken")
|
|
1513
|
-
* @returns The token value or null if not present
|
|
1514
|
-
*/
|
|
1515
|
-
function extractCompanyTokenFromUrl(tokenKey = URL_PARAMS.COMPANY_TOKEN) {
|
|
1516
|
-
if (!isBrowser()) return null;
|
|
1517
|
-
try {
|
|
1518
|
-
return new URLSearchParams(window.location.search).get(tokenKey);
|
|
1519
|
-
} catch {
|
|
1520
|
-
return null;
|
|
1521
|
-
}
|
|
1522
|
-
}
|
|
1523
|
-
/**
|
|
1524
1207
|
* Remove the auth token from the URL without reloading the page.
|
|
1525
1208
|
* This prevents the token from being accidentally shared via URL copy/paste
|
|
1526
1209
|
* or appearing in browser history.
|
|
@@ -1542,45 +1225,6 @@ function cleanTokenFromUrl(tokenKey = URL_PARAMS.USER_TOKEN) {
|
|
|
1542
1225
|
console.warn("[FluidAuth] Failed to clean token from URL:", error);
|
|
1543
1226
|
}
|
|
1544
1227
|
}
|
|
1545
|
-
/**
|
|
1546
|
-
* Check if the URL contains an auth token parameter.
|
|
1547
|
-
*
|
|
1548
|
-
* @param tokenKey - The URL parameter name (default: "fluidUserToken")
|
|
1549
|
-
* @returns true if the URL contains the token parameter
|
|
1550
|
-
*/
|
|
1551
|
-
function hasTokenInUrl(tokenKey = URL_PARAMS.USER_TOKEN) {
|
|
1552
|
-
if (!isBrowser()) return false;
|
|
1553
|
-
try {
|
|
1554
|
-
return new URLSearchParams(window.location.search).has(tokenKey);
|
|
1555
|
-
} catch {
|
|
1556
|
-
return false;
|
|
1557
|
-
}
|
|
1558
|
-
}
|
|
1559
|
-
/**
|
|
1560
|
-
* Extract all auth-related tokens from the URL at once.
|
|
1561
|
-
*
|
|
1562
|
-
* @param userTokenKey - The URL parameter name for user token
|
|
1563
|
-
* @param companyTokenKey - The URL parameter name for company token
|
|
1564
|
-
* @returns Object with both token values (or null if not present)
|
|
1565
|
-
*/
|
|
1566
|
-
function extractAllTokensFromUrl(userTokenKey = URL_PARAMS.USER_TOKEN, companyTokenKey = URL_PARAMS.COMPANY_TOKEN) {
|
|
1567
|
-
if (!isBrowser()) return {
|
|
1568
|
-
userToken: null,
|
|
1569
|
-
companyToken: null
|
|
1570
|
-
};
|
|
1571
|
-
try {
|
|
1572
|
-
const searchParams = new URLSearchParams(window.location.search);
|
|
1573
|
-
return {
|
|
1574
|
-
userToken: searchParams.get(userTokenKey),
|
|
1575
|
-
companyToken: searchParams.get(companyTokenKey)
|
|
1576
|
-
};
|
|
1577
|
-
} catch {
|
|
1578
|
-
return {
|
|
1579
|
-
userToken: null,
|
|
1580
|
-
companyToken: null
|
|
1581
|
-
};
|
|
1582
|
-
}
|
|
1583
|
-
}
|
|
1584
1228
|
zod.z.object({
|
|
1585
1229
|
id: zod.z.number(),
|
|
1586
1230
|
name: zod.z.string(),
|
|
@@ -2985,13 +2629,11 @@ function authReducer(state, action) {
|
|
|
2985
2629
|
switch (action.type) {
|
|
2986
2630
|
case "SET_AUTH": return {
|
|
2987
2631
|
isLoading: false,
|
|
2988
|
-
token: null,
|
|
2989
2632
|
user: action.user,
|
|
2990
2633
|
error: action.error
|
|
2991
2634
|
};
|
|
2992
2635
|
case "CLEAR_AUTH": return {
|
|
2993
2636
|
...state,
|
|
2994
|
-
token: null,
|
|
2995
2637
|
user: null,
|
|
2996
2638
|
error: null
|
|
2997
2639
|
};
|
|
@@ -3003,7 +2645,6 @@ function authReducer(state, action) {
|
|
|
3003
2645
|
}
|
|
3004
2646
|
const initialAuthState = {
|
|
3005
2647
|
isLoading: true,
|
|
3006
|
-
token: null,
|
|
3007
2648
|
user: null,
|
|
3008
2649
|
error: null
|
|
3009
2650
|
};
|
|
@@ -3036,7 +2677,7 @@ function FluidAuthProvider({ children, config }) {
|
|
|
3036
2677
|
const configRef = (0, react.useRef)(config);
|
|
3037
2678
|
configRef.current = config;
|
|
3038
2679
|
const [state, dispatch] = (0, react.useReducer)(authReducer, initialAuthState);
|
|
3039
|
-
const { isLoading,
|
|
2680
|
+
const { isLoading, user, error } = state;
|
|
3040
2681
|
(0, react.useEffect)(() => {
|
|
3041
2682
|
const initializeAuth = async () => {
|
|
3042
2683
|
const handleUnauthenticated = () => {
|
|
@@ -3083,11 +2724,9 @@ function FluidAuthProvider({ children, config }) {
|
|
|
3083
2724
|
isAuthenticated: user !== null,
|
|
3084
2725
|
isLoading,
|
|
3085
2726
|
user,
|
|
3086
|
-
token,
|
|
3087
2727
|
clearAuth,
|
|
3088
2728
|
error
|
|
3089
2729
|
}), [
|
|
3090
|
-
token,
|
|
3091
2730
|
isLoading,
|
|
3092
2731
|
user,
|
|
3093
2732
|
clearAuth,
|
|
@@ -3295,21 +2934,20 @@ function FluidProvider({ config, children, queryClient, initialTheme, themeConta
|
|
|
3295
2934
|
*/
|
|
3296
2935
|
function CustomerIdEnricher({ baseUrl, getApiHeaders, variables, registry, themeProviderProps, onAuthError, children }) {
|
|
3297
2936
|
const authContext = useFluidAuthOptional();
|
|
3298
|
-
const
|
|
2937
|
+
const isAuthenticated = authContext?.isAuthenticated ?? false;
|
|
3299
2938
|
const userId = authContext?.user?.id;
|
|
3300
2939
|
const onAuthErrorRef = (0, react.useRef)(onAuthError);
|
|
3301
2940
|
onAuthErrorRef.current = onAuthError;
|
|
3302
2941
|
const fluidPayApi = (0, react.useMemo)(() => {
|
|
3303
2942
|
return createFluidPayApi(createFetchClient({
|
|
3304
2943
|
baseUrl: baseUrl.endsWith("/api") ? baseUrl : `${baseUrl.replace(/\/+$/, "")}/api`,
|
|
3305
|
-
getAuthToken: () => token,
|
|
3306
2944
|
onAuthError: () => onAuthErrorRef.current?.()
|
|
3307
2945
|
}));
|
|
3308
|
-
}, [baseUrl
|
|
2946
|
+
}, [baseUrl]);
|
|
3309
2947
|
const { data: customerData } = (0, _tanstack_react_query.useQuery)({
|
|
3310
2948
|
queryKey: ["fluidPayAccount", userId],
|
|
3311
|
-
queryFn: () => fluidPayApi.customers.fetchAccount(
|
|
3312
|
-
enabled:
|
|
2949
|
+
queryFn: () => fluidPayApi.customers.fetchAccount(""),
|
|
2950
|
+
enabled: isAuthenticated
|
|
3313
2951
|
});
|
|
3314
2952
|
const customerId = customerData?.customer?.id;
|
|
3315
2953
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FluidPayCoreProvider, {
|
|
@@ -3465,18 +3103,6 @@ Object.defineProperty(exports, "SHADE_STEPS", {
|
|
|
3465
3103
|
return SHADE_STEPS;
|
|
3466
3104
|
}
|
|
3467
3105
|
});
|
|
3468
|
-
Object.defineProperty(exports, "STORAGE_KEYS", {
|
|
3469
|
-
enumerable: true,
|
|
3470
|
-
get: function() {
|
|
3471
|
-
return STORAGE_KEYS;
|
|
3472
|
-
}
|
|
3473
|
-
});
|
|
3474
|
-
Object.defineProperty(exports, "URL_PARAMS", {
|
|
3475
|
-
enumerable: true,
|
|
3476
|
-
get: function() {
|
|
3477
|
-
return URL_PARAMS;
|
|
3478
|
-
}
|
|
3479
|
-
});
|
|
3480
3106
|
Object.defineProperty(exports, "USER_TYPES", {
|
|
3481
3107
|
enumerable: true,
|
|
3482
3108
|
get: function() {
|
|
@@ -3549,12 +3175,6 @@ Object.defineProperty(exports, "createWidgetRegistry", {
|
|
|
3549
3175
|
return createWidgetRegistry;
|
|
3550
3176
|
}
|
|
3551
3177
|
});
|
|
3552
|
-
Object.defineProperty(exports, "decodeToken", {
|
|
3553
|
-
enumerable: true,
|
|
3554
|
-
get: function() {
|
|
3555
|
-
return decodeToken;
|
|
3556
|
-
}
|
|
3557
|
-
});
|
|
3558
3178
|
Object.defineProperty(exports, "deleteDatabase", {
|
|
3559
3179
|
enumerable: true,
|
|
3560
3180
|
get: function() {
|
|
@@ -3573,24 +3193,6 @@ Object.defineProperty(exports, "deserialiseTheme", {
|
|
|
3573
3193
|
return deserialiseTheme;
|
|
3574
3194
|
}
|
|
3575
3195
|
});
|
|
3576
|
-
Object.defineProperty(exports, "extractAllTokensFromUrl", {
|
|
3577
|
-
enumerable: true,
|
|
3578
|
-
get: function() {
|
|
3579
|
-
return extractAllTokensFromUrl;
|
|
3580
|
-
}
|
|
3581
|
-
});
|
|
3582
|
-
Object.defineProperty(exports, "extractCompanyTokenFromUrl", {
|
|
3583
|
-
enumerable: true,
|
|
3584
|
-
get: function() {
|
|
3585
|
-
return extractCompanyTokenFromUrl;
|
|
3586
|
-
}
|
|
3587
|
-
});
|
|
3588
|
-
Object.defineProperty(exports, "extractTokenFromUrl", {
|
|
3589
|
-
enumerable: true,
|
|
3590
|
-
get: function() {
|
|
3591
|
-
return extractTokenFromUrl;
|
|
3592
|
-
}
|
|
3593
|
-
});
|
|
3594
3196
|
Object.defineProperty(exports, "generateShades", {
|
|
3595
3197
|
enumerable: true,
|
|
3596
3198
|
get: function() {
|
|
@@ -3621,60 +3223,18 @@ Object.defineProperty(exports, "getForegroundColor", {
|
|
|
3621
3223
|
return getForegroundColor;
|
|
3622
3224
|
}
|
|
3623
3225
|
});
|
|
3624
|
-
Object.defineProperty(exports, "getStoredToken", {
|
|
3625
|
-
enumerable: true,
|
|
3626
|
-
get: function() {
|
|
3627
|
-
return getStoredToken;
|
|
3628
|
-
}
|
|
3629
|
-
});
|
|
3630
|
-
Object.defineProperty(exports, "getTokenExpiration", {
|
|
3631
|
-
enumerable: true,
|
|
3632
|
-
get: function() {
|
|
3633
|
-
return getTokenExpiration;
|
|
3634
|
-
}
|
|
3635
|
-
});
|
|
3636
|
-
Object.defineProperty(exports, "getTokenTimeRemaining", {
|
|
3637
|
-
enumerable: true,
|
|
3638
|
-
get: function() {
|
|
3639
|
-
return getTokenTimeRemaining;
|
|
3640
|
-
}
|
|
3641
|
-
});
|
|
3642
|
-
Object.defineProperty(exports, "hasStoredToken", {
|
|
3643
|
-
enumerable: true,
|
|
3644
|
-
get: function() {
|
|
3645
|
-
return hasStoredToken;
|
|
3646
|
-
}
|
|
3647
|
-
});
|
|
3648
|
-
Object.defineProperty(exports, "hasTokenInUrl", {
|
|
3649
|
-
enumerable: true,
|
|
3650
|
-
get: function() {
|
|
3651
|
-
return hasTokenInUrl;
|
|
3652
|
-
}
|
|
3653
|
-
});
|
|
3654
3226
|
Object.defineProperty(exports, "isApiError", {
|
|
3655
3227
|
enumerable: true,
|
|
3656
3228
|
get: function() {
|
|
3657
3229
|
return isApiError;
|
|
3658
3230
|
}
|
|
3659
3231
|
});
|
|
3660
|
-
Object.defineProperty(exports, "isTokenExpired", {
|
|
3661
|
-
enumerable: true,
|
|
3662
|
-
get: function() {
|
|
3663
|
-
return isTokenExpired;
|
|
3664
|
-
}
|
|
3665
|
-
});
|
|
3666
3232
|
Object.defineProperty(exports, "isUserType", {
|
|
3667
3233
|
enumerable: true,
|
|
3668
3234
|
get: function() {
|
|
3669
3235
|
return isUserType;
|
|
3670
3236
|
}
|
|
3671
3237
|
});
|
|
3672
|
-
Object.defineProperty(exports, "isValidToken", {
|
|
3673
|
-
enumerable: true,
|
|
3674
|
-
get: function() {
|
|
3675
|
-
return isValidToken;
|
|
3676
|
-
}
|
|
3677
|
-
});
|
|
3678
3238
|
Object.defineProperty(exports, "mergeDarkOverrides", {
|
|
3679
3239
|
enumerable: true,
|
|
3680
3240
|
get: function() {
|
|
@@ -3717,12 +3277,6 @@ Object.defineProperty(exports, "serialiseTheme", {
|
|
|
3717
3277
|
return serialiseTheme;
|
|
3718
3278
|
}
|
|
3719
3279
|
});
|
|
3720
|
-
Object.defineProperty(exports, "storeToken", {
|
|
3721
|
-
enumerable: true,
|
|
3722
|
-
get: function() {
|
|
3723
|
-
return storeToken;
|
|
3724
|
-
}
|
|
3725
|
-
});
|
|
3726
3280
|
Object.defineProperty(exports, "toNavigationItem", {
|
|
3727
3281
|
enumerable: true,
|
|
3728
3282
|
get: function() {
|
|
@@ -3789,12 +3343,6 @@ Object.defineProperty(exports, "useThemeContext", {
|
|
|
3789
3343
|
return useThemeContext;
|
|
3790
3344
|
}
|
|
3791
3345
|
});
|
|
3792
|
-
Object.defineProperty(exports, "validateToken", {
|
|
3793
|
-
enumerable: true,
|
|
3794
|
-
get: function() {
|
|
3795
|
-
return validateToken;
|
|
3796
|
-
}
|
|
3797
|
-
});
|
|
3798
3346
|
Object.defineProperty(exports, "widgetPropertySchemas", {
|
|
3799
3347
|
enumerable: true,
|
|
3800
3348
|
get: function() {
|
|
@@ -3802,4 +3350,4 @@ Object.defineProperty(exports, "widgetPropertySchemas", {
|
|
|
3802
3350
|
}
|
|
3803
3351
|
});
|
|
3804
3352
|
|
|
3805
|
-
//# sourceMappingURL=FluidProvider-
|
|
3353
|
+
//# sourceMappingURL=FluidProvider-NnE6s3O0.cjs.map
|