@feelflow/ffid-sdk 5.22.1 → 5.24.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.
- package/dist/{chunk-W4E7YNH5.js → chunk-C4RNFEME.js} +25 -12
- package/dist/{chunk-42Z2WZEI.cjs → chunk-L5SBAHY3.cjs} +25 -12
- package/dist/components/index.cjs +8 -8
- package/dist/components/index.d.cts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{ffid-client-CEJMpqRZ.d.cts → ffid-client-D0Jh4bO7.d.cts} +5 -2
- package/dist/{ffid-client-DM0ZhIDV.d.ts → ffid-client-DX2PTTFr.d.ts} +5 -2
- package/dist/{index-btouGGKr.d.cts → index-GqflEaKi.d.cts} +5 -2
- package/dist/{index-btouGGKr.d.ts → index-GqflEaKi.d.ts} +5 -2
- package/dist/index.cjs +42 -42
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/server/index.cjs +290 -10
- package/dist/server/index.d.cts +159 -3
- package/dist/server/index.d.ts +159 -3
- package/dist/server/index.js +287 -11
- package/dist/server/test/index.d.cts +1 -1
- package/dist/server/test/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -89,7 +89,9 @@ function createMemoryStore() {
|
|
|
89
89
|
function isTokenData(value) {
|
|
90
90
|
if (typeof value !== "object" || value === null) return false;
|
|
91
91
|
const obj = value;
|
|
92
|
-
return typeof obj.accessToken === "string" && typeof obj.refreshToken === "string" &&
|
|
92
|
+
return typeof obj.accessToken === "string" && typeof obj.refreshToken === "string" && // Number.isFinite also rejects NaN/Infinity (e.g. a crafted `1e999` JSON
|
|
93
|
+
// literal parses to Infinity and would never trip the expiry check — #4271)
|
|
94
|
+
typeof obj.expiresAt === "number" && Number.isFinite(obj.expiresAt);
|
|
93
95
|
}
|
|
94
96
|
function createTokenStore(storageType) {
|
|
95
97
|
if (storageType === "memory") {
|
|
@@ -1225,7 +1227,7 @@ function createNonContractMethods(deps) {
|
|
|
1225
1227
|
}
|
|
1226
1228
|
|
|
1227
1229
|
// src/client/version-check.ts
|
|
1228
|
-
var SDK_VERSION = "5.
|
|
1230
|
+
var SDK_VERSION = "5.24.1";
|
|
1229
1231
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
1230
1232
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
1231
1233
|
function sdkHeaders() {
|
|
@@ -1280,7 +1282,7 @@ function validateTokenResponse(tokenResponse) {
|
|
|
1280
1282
|
if (!tokenResponse.refresh_token) {
|
|
1281
1283
|
invalid.push("refresh_token");
|
|
1282
1284
|
}
|
|
1283
|
-
if (typeof tokenResponse.expires_in !== "number" || tokenResponse.expires_in <= 0) {
|
|
1285
|
+
if (typeof tokenResponse.expires_in !== "number" || !Number.isFinite(tokenResponse.expires_in) || tokenResponse.expires_in <= 0) {
|
|
1284
1286
|
invalid.push("expires_in");
|
|
1285
1287
|
}
|
|
1286
1288
|
if (invalid.length > 0) {
|
|
@@ -1295,8 +1297,15 @@ function createOAuthTokenMethods(deps) {
|
|
|
1295
1297
|
resolvedRedirectUri,
|
|
1296
1298
|
tokenStore,
|
|
1297
1299
|
logger,
|
|
1300
|
+
timeout,
|
|
1298
1301
|
errorCodes
|
|
1299
1302
|
} = deps;
|
|
1303
|
+
function withTimeout(init) {
|
|
1304
|
+
if (timeout !== void 0) {
|
|
1305
|
+
return { ...init, signal: AbortSignal.timeout(timeout) };
|
|
1306
|
+
}
|
|
1307
|
+
return init;
|
|
1308
|
+
}
|
|
1300
1309
|
async function exchangeCodeForTokens(code, codeVerifier, opts) {
|
|
1301
1310
|
const url = `${baseUrl}${OAUTH_TOKEN_ENDPOINT}`;
|
|
1302
1311
|
logger.debug("Exchanging code for tokens:", url);
|
|
@@ -1332,12 +1341,12 @@ function createOAuthTokenMethods(deps) {
|
|
|
1332
1341
|
}
|
|
1333
1342
|
let response;
|
|
1334
1343
|
try {
|
|
1335
|
-
response = await fetch(url, {
|
|
1344
|
+
response = await fetch(url, withTimeout({
|
|
1336
1345
|
method: "POST",
|
|
1337
1346
|
credentials: "omit",
|
|
1338
1347
|
headers: { "Content-Type": "application/x-www-form-urlencoded", ...sdkHeaders() },
|
|
1339
1348
|
body: new URLSearchParams(body).toString()
|
|
1340
|
-
});
|
|
1349
|
+
}));
|
|
1341
1350
|
} catch (error) {
|
|
1342
1351
|
logger.error("Network error during token exchange:", error);
|
|
1343
1352
|
return {
|
|
@@ -1400,7 +1409,7 @@ function createOAuthTokenMethods(deps) {
|
|
|
1400
1409
|
logger.debug("Refreshing access token:", url);
|
|
1401
1410
|
let response;
|
|
1402
1411
|
try {
|
|
1403
|
-
response = await fetch(url, {
|
|
1412
|
+
response = await fetch(url, withTimeout({
|
|
1404
1413
|
method: "POST",
|
|
1405
1414
|
credentials: "omit",
|
|
1406
1415
|
headers: { "Content-Type": "application/x-www-form-urlencoded", ...sdkHeaders() },
|
|
@@ -1409,7 +1418,7 @@ function createOAuthTokenMethods(deps) {
|
|
|
1409
1418
|
refresh_token: tokens.refreshToken,
|
|
1410
1419
|
client_id: clientId
|
|
1411
1420
|
}).toString()
|
|
1412
|
-
});
|
|
1421
|
+
}));
|
|
1413
1422
|
} catch (error) {
|
|
1414
1423
|
logger.error("Network error during token refresh:", error);
|
|
1415
1424
|
return {
|
|
@@ -1479,7 +1488,7 @@ function createOAuthTokenMethods(deps) {
|
|
|
1479
1488
|
async function revokeOAuthToken(token, tokenTypeHint) {
|
|
1480
1489
|
const url = `${baseUrl}${OAUTH_REVOKE_ENDPOINT}`;
|
|
1481
1490
|
try {
|
|
1482
|
-
const response = await fetch(url, {
|
|
1491
|
+
const response = await fetch(url, withTimeout({
|
|
1483
1492
|
method: "POST",
|
|
1484
1493
|
credentials: "omit",
|
|
1485
1494
|
headers: { "Content-Type": "application/x-www-form-urlencoded", ...sdkHeaders() },
|
|
@@ -1488,9 +1497,10 @@ function createOAuthTokenMethods(deps) {
|
|
|
1488
1497
|
client_id: clientId,
|
|
1489
1498
|
token_type_hint: tokenTypeHint
|
|
1490
1499
|
}).toString()
|
|
1491
|
-
});
|
|
1500
|
+
}));
|
|
1492
1501
|
return response.ok;
|
|
1493
|
-
} catch {
|
|
1502
|
+
} catch (err) {
|
|
1503
|
+
logger.debug("Token revoke request failed (client-side; e.g. timeout/network):", err);
|
|
1494
1504
|
return false;
|
|
1495
1505
|
}
|
|
1496
1506
|
}
|
|
@@ -3061,6 +3071,7 @@ function createFFIDClient(config) {
|
|
|
3061
3071
|
resolvedRedirectUri,
|
|
3062
3072
|
tokenStore,
|
|
3063
3073
|
logger,
|
|
3074
|
+
timeout,
|
|
3064
3075
|
errorCodes: FFID_ERROR_CODES
|
|
3065
3076
|
});
|
|
3066
3077
|
async function fetchWithAuth(endpoint, options = {}, authOverride) {
|
|
@@ -3535,6 +3546,7 @@ function FFIDProvider({
|
|
|
3535
3546
|
onError,
|
|
3536
3547
|
authMode,
|
|
3537
3548
|
clientId,
|
|
3549
|
+
timeout,
|
|
3538
3550
|
cleanCallbackUrl = true
|
|
3539
3551
|
}) {
|
|
3540
3552
|
const [user, setUser] = useState(null);
|
|
@@ -3559,9 +3571,10 @@ function FFIDProvider({
|
|
|
3559
3571
|
debug,
|
|
3560
3572
|
logger,
|
|
3561
3573
|
authMode,
|
|
3562
|
-
clientId
|
|
3574
|
+
clientId,
|
|
3575
|
+
timeout
|
|
3563
3576
|
}),
|
|
3564
|
-
[serviceCode, scope, apiBaseUrl, debug, logger, authMode, clientId]
|
|
3577
|
+
[serviceCode, scope, apiBaseUrl, debug, logger, authMode, clientId, timeout]
|
|
3565
3578
|
);
|
|
3566
3579
|
const refresh = useCallback(async () => {
|
|
3567
3580
|
client.logger.debug("Refreshing session...");
|
|
@@ -91,7 +91,9 @@ function createMemoryStore() {
|
|
|
91
91
|
function isTokenData(value) {
|
|
92
92
|
if (typeof value !== "object" || value === null) return false;
|
|
93
93
|
const obj = value;
|
|
94
|
-
return typeof obj.accessToken === "string" && typeof obj.refreshToken === "string" &&
|
|
94
|
+
return typeof obj.accessToken === "string" && typeof obj.refreshToken === "string" && // Number.isFinite also rejects NaN/Infinity (e.g. a crafted `1e999` JSON
|
|
95
|
+
// literal parses to Infinity and would never trip the expiry check — #4271)
|
|
96
|
+
typeof obj.expiresAt === "number" && Number.isFinite(obj.expiresAt);
|
|
95
97
|
}
|
|
96
98
|
function createTokenStore(storageType) {
|
|
97
99
|
if (storageType === "memory") {
|
|
@@ -1227,7 +1229,7 @@ function createNonContractMethods(deps) {
|
|
|
1227
1229
|
}
|
|
1228
1230
|
|
|
1229
1231
|
// src/client/version-check.ts
|
|
1230
|
-
var SDK_VERSION = "5.
|
|
1232
|
+
var SDK_VERSION = "5.24.1";
|
|
1231
1233
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
1232
1234
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
1233
1235
|
function sdkHeaders() {
|
|
@@ -1282,7 +1284,7 @@ function validateTokenResponse(tokenResponse) {
|
|
|
1282
1284
|
if (!tokenResponse.refresh_token) {
|
|
1283
1285
|
invalid.push("refresh_token");
|
|
1284
1286
|
}
|
|
1285
|
-
if (typeof tokenResponse.expires_in !== "number" || tokenResponse.expires_in <= 0) {
|
|
1287
|
+
if (typeof tokenResponse.expires_in !== "number" || !Number.isFinite(tokenResponse.expires_in) || tokenResponse.expires_in <= 0) {
|
|
1286
1288
|
invalid.push("expires_in");
|
|
1287
1289
|
}
|
|
1288
1290
|
if (invalid.length > 0) {
|
|
@@ -1297,8 +1299,15 @@ function createOAuthTokenMethods(deps) {
|
|
|
1297
1299
|
resolvedRedirectUri,
|
|
1298
1300
|
tokenStore,
|
|
1299
1301
|
logger,
|
|
1302
|
+
timeout,
|
|
1300
1303
|
errorCodes
|
|
1301
1304
|
} = deps;
|
|
1305
|
+
function withTimeout(init) {
|
|
1306
|
+
if (timeout !== void 0) {
|
|
1307
|
+
return { ...init, signal: AbortSignal.timeout(timeout) };
|
|
1308
|
+
}
|
|
1309
|
+
return init;
|
|
1310
|
+
}
|
|
1302
1311
|
async function exchangeCodeForTokens(code, codeVerifier, opts) {
|
|
1303
1312
|
const url = `${baseUrl}${OAUTH_TOKEN_ENDPOINT}`;
|
|
1304
1313
|
logger.debug("Exchanging code for tokens:", url);
|
|
@@ -1334,12 +1343,12 @@ function createOAuthTokenMethods(deps) {
|
|
|
1334
1343
|
}
|
|
1335
1344
|
let response;
|
|
1336
1345
|
try {
|
|
1337
|
-
response = await fetch(url, {
|
|
1346
|
+
response = await fetch(url, withTimeout({
|
|
1338
1347
|
method: "POST",
|
|
1339
1348
|
credentials: "omit",
|
|
1340
1349
|
headers: { "Content-Type": "application/x-www-form-urlencoded", ...sdkHeaders() },
|
|
1341
1350
|
body: new URLSearchParams(body).toString()
|
|
1342
|
-
});
|
|
1351
|
+
}));
|
|
1343
1352
|
} catch (error) {
|
|
1344
1353
|
logger.error("Network error during token exchange:", error);
|
|
1345
1354
|
return {
|
|
@@ -1402,7 +1411,7 @@ function createOAuthTokenMethods(deps) {
|
|
|
1402
1411
|
logger.debug("Refreshing access token:", url);
|
|
1403
1412
|
let response;
|
|
1404
1413
|
try {
|
|
1405
|
-
response = await fetch(url, {
|
|
1414
|
+
response = await fetch(url, withTimeout({
|
|
1406
1415
|
method: "POST",
|
|
1407
1416
|
credentials: "omit",
|
|
1408
1417
|
headers: { "Content-Type": "application/x-www-form-urlencoded", ...sdkHeaders() },
|
|
@@ -1411,7 +1420,7 @@ function createOAuthTokenMethods(deps) {
|
|
|
1411
1420
|
refresh_token: tokens.refreshToken,
|
|
1412
1421
|
client_id: clientId
|
|
1413
1422
|
}).toString()
|
|
1414
|
-
});
|
|
1423
|
+
}));
|
|
1415
1424
|
} catch (error) {
|
|
1416
1425
|
logger.error("Network error during token refresh:", error);
|
|
1417
1426
|
return {
|
|
@@ -1481,7 +1490,7 @@ function createOAuthTokenMethods(deps) {
|
|
|
1481
1490
|
async function revokeOAuthToken(token, tokenTypeHint) {
|
|
1482
1491
|
const url = `${baseUrl}${OAUTH_REVOKE_ENDPOINT}`;
|
|
1483
1492
|
try {
|
|
1484
|
-
const response = await fetch(url, {
|
|
1493
|
+
const response = await fetch(url, withTimeout({
|
|
1485
1494
|
method: "POST",
|
|
1486
1495
|
credentials: "omit",
|
|
1487
1496
|
headers: { "Content-Type": "application/x-www-form-urlencoded", ...sdkHeaders() },
|
|
@@ -1490,9 +1499,10 @@ function createOAuthTokenMethods(deps) {
|
|
|
1490
1499
|
client_id: clientId,
|
|
1491
1500
|
token_type_hint: tokenTypeHint
|
|
1492
1501
|
}).toString()
|
|
1493
|
-
});
|
|
1502
|
+
}));
|
|
1494
1503
|
return response.ok;
|
|
1495
|
-
} catch {
|
|
1504
|
+
} catch (err) {
|
|
1505
|
+
logger.debug("Token revoke request failed (client-side; e.g. timeout/network):", err);
|
|
1496
1506
|
return false;
|
|
1497
1507
|
}
|
|
1498
1508
|
}
|
|
@@ -3063,6 +3073,7 @@ function createFFIDClient(config) {
|
|
|
3063
3073
|
resolvedRedirectUri,
|
|
3064
3074
|
tokenStore,
|
|
3065
3075
|
logger,
|
|
3076
|
+
timeout,
|
|
3066
3077
|
errorCodes: FFID_ERROR_CODES
|
|
3067
3078
|
});
|
|
3068
3079
|
async function fetchWithAuth(endpoint, options = {}, authOverride) {
|
|
@@ -3537,6 +3548,7 @@ function FFIDProvider({
|
|
|
3537
3548
|
onError,
|
|
3538
3549
|
authMode,
|
|
3539
3550
|
clientId,
|
|
3551
|
+
timeout,
|
|
3540
3552
|
cleanCallbackUrl = true
|
|
3541
3553
|
}) {
|
|
3542
3554
|
const [user, setUser] = react.useState(null);
|
|
@@ -3561,9 +3573,10 @@ function FFIDProvider({
|
|
|
3561
3573
|
debug,
|
|
3562
3574
|
logger,
|
|
3563
3575
|
authMode,
|
|
3564
|
-
clientId
|
|
3576
|
+
clientId,
|
|
3577
|
+
timeout
|
|
3565
3578
|
}),
|
|
3566
|
-
[serviceCode, scope, apiBaseUrl, debug, logger, authMode, clientId]
|
|
3579
|
+
[serviceCode, scope, apiBaseUrl, debug, logger, authMode, clientId, timeout]
|
|
3567
3580
|
);
|
|
3568
3581
|
const refresh = react.useCallback(async () => {
|
|
3569
3582
|
client.logger.debug("Refreshing session...");
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkL5SBAHY3_cjs = require('../chunk-L5SBAHY3.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "FFIDAnnouncementBadge", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkL5SBAHY3_cjs.FFIDAnnouncementBadge; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "FFIDAnnouncementList", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkL5SBAHY3_cjs.FFIDAnnouncementList; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "FFIDInquiryForm", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkL5SBAHY3_cjs.FFIDInquiryForm; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "FFIDLoginButton", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkL5SBAHY3_cjs.FFIDLoginButton; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "FFIDOrganizationSwitcher", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkL5SBAHY3_cjs.FFIDOrganizationSwitcher; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "FFIDSubscriptionBadge", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkL5SBAHY3_cjs.FFIDSubscriptionBadge; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "FFIDUserMenu", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkL5SBAHY3_cjs.FFIDUserMenu; }
|
|
34
34
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { H as FFIDAnnouncementBadge, ai as FFIDAnnouncementBadgeClassNames, aj as FFIDAnnouncementBadgeProps, I as FFIDAnnouncementList, ak as FFIDAnnouncementListClassNames, al as FFIDAnnouncementListProps, S as FFIDInquiryForm, T as FFIDInquiryFormCategoryItem, U as FFIDInquiryFormClassNames, V as FFIDInquiryFormLegalLayout, W as FFIDInquiryFormOrganization, X as FFIDInquiryFormPlaceholderContext, Y as FFIDInquiryFormPrefill, Z as FFIDInquiryFormProps, _ as FFIDInquiryFormSubmitData, $ as FFIDInquiryFormSubmitResult, a1 as FFIDLoginButton, am as FFIDLoginButtonProps, a4 as FFIDOrganizationSwitcher, an as FFIDOrganizationSwitcherClassNames, ao as FFIDOrganizationSwitcherProps, a9 as FFIDSubscriptionBadge, ap as FFIDSubscriptionBadgeClassNames, aq as FFIDSubscriptionBadgeProps, ab as FFIDUserMenu, ar as FFIDUserMenuClassNames, as as FFIDUserMenuProps } from '../index-
|
|
1
|
+
export { H as FFIDAnnouncementBadge, ai as FFIDAnnouncementBadgeClassNames, aj as FFIDAnnouncementBadgeProps, I as FFIDAnnouncementList, ak as FFIDAnnouncementListClassNames, al as FFIDAnnouncementListProps, S as FFIDInquiryForm, T as FFIDInquiryFormCategoryItem, U as FFIDInquiryFormClassNames, V as FFIDInquiryFormLegalLayout, W as FFIDInquiryFormOrganization, X as FFIDInquiryFormPlaceholderContext, Y as FFIDInquiryFormPrefill, Z as FFIDInquiryFormProps, _ as FFIDInquiryFormSubmitData, $ as FFIDInquiryFormSubmitResult, a1 as FFIDLoginButton, am as FFIDLoginButtonProps, a4 as FFIDOrganizationSwitcher, an as FFIDOrganizationSwitcherClassNames, ao as FFIDOrganizationSwitcherProps, a9 as FFIDSubscriptionBadge, ap as FFIDSubscriptionBadgeClassNames, aq as FFIDSubscriptionBadgeProps, ab as FFIDUserMenu, ar as FFIDUserMenuClassNames, as as FFIDUserMenuProps } from '../index-GqflEaKi.cjs';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { H as FFIDAnnouncementBadge, ai as FFIDAnnouncementBadgeClassNames, aj as FFIDAnnouncementBadgeProps, I as FFIDAnnouncementList, ak as FFIDAnnouncementListClassNames, al as FFIDAnnouncementListProps, S as FFIDInquiryForm, T as FFIDInquiryFormCategoryItem, U as FFIDInquiryFormClassNames, V as FFIDInquiryFormLegalLayout, W as FFIDInquiryFormOrganization, X as FFIDInquiryFormPlaceholderContext, Y as FFIDInquiryFormPrefill, Z as FFIDInquiryFormProps, _ as FFIDInquiryFormSubmitData, $ as FFIDInquiryFormSubmitResult, a1 as FFIDLoginButton, am as FFIDLoginButtonProps, a4 as FFIDOrganizationSwitcher, an as FFIDOrganizationSwitcherClassNames, ao as FFIDOrganizationSwitcherProps, a9 as FFIDSubscriptionBadge, ap as FFIDSubscriptionBadgeClassNames, aq as FFIDSubscriptionBadgeProps, ab as FFIDUserMenu, ar as FFIDUserMenuClassNames, as as FFIDUserMenuProps } from '../index-
|
|
1
|
+
export { H as FFIDAnnouncementBadge, ai as FFIDAnnouncementBadgeClassNames, aj as FFIDAnnouncementBadgeProps, I as FFIDAnnouncementList, ak as FFIDAnnouncementListClassNames, al as FFIDAnnouncementListProps, S as FFIDInquiryForm, T as FFIDInquiryFormCategoryItem, U as FFIDInquiryFormClassNames, V as FFIDInquiryFormLegalLayout, W as FFIDInquiryFormOrganization, X as FFIDInquiryFormPlaceholderContext, Y as FFIDInquiryFormPrefill, Z as FFIDInquiryFormProps, _ as FFIDInquiryFormSubmitData, $ as FFIDInquiryFormSubmitResult, a1 as FFIDLoginButton, am as FFIDLoginButtonProps, a4 as FFIDOrganizationSwitcher, an as FFIDOrganizationSwitcherClassNames, ao as FFIDOrganizationSwitcherProps, a9 as FFIDSubscriptionBadge, ap as FFIDSubscriptionBadgeClassNames, aq as FFIDSubscriptionBadgeProps, ab as FFIDUserMenu, ar as FFIDUserMenuClassNames, as as FFIDUserMenuProps } from '../index-GqflEaKi.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDSubscriptionBadge, FFIDUserMenu } from '../chunk-
|
|
1
|
+
export { FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDSubscriptionBadge, FFIDUserMenu } from '../chunk-C4RNFEME.js';
|
|
@@ -1600,8 +1600,11 @@ interface FFIDConfig {
|
|
|
1600
1600
|
*/
|
|
1601
1601
|
cache?: FFIDCacheConfig | undefined;
|
|
1602
1602
|
/**
|
|
1603
|
-
* Request timeout in milliseconds for FFID API calls.
|
|
1604
|
-
*
|
|
1603
|
+
* Request timeout in milliseconds for FFID API calls. Applies to server-side
|
|
1604
|
+
* token verification / introspection and, in `token` mode, to the client-side
|
|
1605
|
+
* OAuth operations (code exchange / refresh / revoke) — including via the
|
|
1606
|
+
* `FFIDProvider` `timeout` prop (#4260). On timeout the fetch is aborted and
|
|
1607
|
+
* surfaced through the normal error path (e.g. `NETWORK_ERROR`).
|
|
1605
1608
|
* @default undefined (no timeout, uses fetch default)
|
|
1606
1609
|
*/
|
|
1607
1610
|
timeout?: number | undefined;
|
|
@@ -1600,8 +1600,11 @@ interface FFIDConfig {
|
|
|
1600
1600
|
*/
|
|
1601
1601
|
cache?: FFIDCacheConfig | undefined;
|
|
1602
1602
|
/**
|
|
1603
|
-
* Request timeout in milliseconds for FFID API calls.
|
|
1604
|
-
*
|
|
1603
|
+
* Request timeout in milliseconds for FFID API calls. Applies to server-side
|
|
1604
|
+
* token verification / introspection and, in `token` mode, to the client-side
|
|
1605
|
+
* OAuth operations (code exchange / refresh / revoke) — including via the
|
|
1606
|
+
* `FFIDProvider` `timeout` prop (#4260). On timeout the fetch is aborted and
|
|
1607
|
+
* surfaced through the normal error path (e.g. `NETWORK_ERROR`).
|
|
1605
1608
|
* @default undefined (no timeout, uses fetch default)
|
|
1606
1609
|
*/
|
|
1607
1610
|
timeout?: number | undefined;
|
|
@@ -466,8 +466,11 @@ interface FFIDConfig {
|
|
|
466
466
|
*/
|
|
467
467
|
cache?: FFIDCacheConfig | undefined;
|
|
468
468
|
/**
|
|
469
|
-
* Request timeout in milliseconds for FFID API calls.
|
|
470
|
-
*
|
|
469
|
+
* Request timeout in milliseconds for FFID API calls. Applies to server-side
|
|
470
|
+
* token verification / introspection and, in `token` mode, to the client-side
|
|
471
|
+
* OAuth operations (code exchange / refresh / revoke) — including via the
|
|
472
|
+
* `FFIDProvider` `timeout` prop (#4260). On timeout the fetch is aborted and
|
|
473
|
+
* surfaced through the normal error path (e.g. `NETWORK_ERROR`).
|
|
471
474
|
* @default undefined (no timeout, uses fetch default)
|
|
472
475
|
*/
|
|
473
476
|
timeout?: number | undefined;
|
|
@@ -466,8 +466,11 @@ interface FFIDConfig {
|
|
|
466
466
|
*/
|
|
467
467
|
cache?: FFIDCacheConfig | undefined;
|
|
468
468
|
/**
|
|
469
|
-
* Request timeout in milliseconds for FFID API calls.
|
|
470
|
-
*
|
|
469
|
+
* Request timeout in milliseconds for FFID API calls. Applies to server-side
|
|
470
|
+
* token verification / introspection and, in `token` mode, to the client-side
|
|
471
|
+
* OAuth operations (code exchange / refresh / revoke) — including via the
|
|
472
|
+
* `FFIDProvider` `timeout` prop (#4260). On timeout the fetch is aborted and
|
|
473
|
+
* surfaced through the normal error path (e.g. `NETWORK_ERROR`).
|
|
471
474
|
* @default undefined (no timeout, uses fetch default)
|
|
472
475
|
*/
|
|
473
476
|
timeout?: number | undefined;
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkL5SBAHY3_cjs = require('./chunk-L5SBAHY3.cjs');
|
|
4
4
|
var chunkH5O2CCAY_cjs = require('./chunk-H5O2CCAY.cjs');
|
|
5
5
|
var react = require('react');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -54,8 +54,8 @@ function defaultRedirect(url) {
|
|
|
54
54
|
}
|
|
55
55
|
function useRequireActiveSubscription(options) {
|
|
56
56
|
const { redirectTo, allowGrace = true, onRedirect } = options;
|
|
57
|
-
const { isLoading, error } =
|
|
58
|
-
const { effectiveStatus, isBlocked, isGrace } =
|
|
57
|
+
const { isLoading, error } = chunkL5SBAHY3_cjs.useFFIDContext();
|
|
58
|
+
const { effectiveStatus, isBlocked, isGrace } = chunkL5SBAHY3_cjs.useSubscription();
|
|
59
59
|
const hasFetchError = error !== null && effectiveStatus === null;
|
|
60
60
|
const shouldRedirect = !isLoading && !hasFetchError && (isBlocked || !allowGrace && isGrace || effectiveStatus === null);
|
|
61
61
|
react.useEffect(() => {
|
|
@@ -76,7 +76,7 @@ function useRequireActiveSubscription(options) {
|
|
|
76
76
|
}
|
|
77
77
|
function withFFIDAuth(Component, options = {}) {
|
|
78
78
|
const WrappedComponent = (props) => {
|
|
79
|
-
const { isLoading, isAuthenticated, login } =
|
|
79
|
+
const { isLoading, isAuthenticated, login } = chunkL5SBAHY3_cjs.useFFIDContext();
|
|
80
80
|
const hasRedirected = react.useRef(false);
|
|
81
81
|
react.useEffect(() => {
|
|
82
82
|
if (!isLoading && !isAuthenticated && options.redirectToLogin && !hasRedirected.current) {
|
|
@@ -105,155 +105,155 @@ var FFID_NEWSLETTER_DISPATCH_MAX_RECIPIENTS = 1e3;
|
|
|
105
105
|
|
|
106
106
|
Object.defineProperty(exports, "ACCESS_GRANTING_EFFECTIVE_STATUSES", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkL5SBAHY3_cjs.ACCESS_GRANTING_EFFECTIVE_STATUSES; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "BLOCKING_EFFECTIVE_STATUSES", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkL5SBAHY3_cjs.BLOCKING_EFFECTIVE_STATUSES; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "DEFAULT_API_BASE_URL", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkL5SBAHY3_cjs.DEFAULT_API_BASE_URL; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "DEFAULT_OAUTH_SCOPES", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkL5SBAHY3_cjs.DEFAULT_OAUTH_SCOPES; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "EFFECTIVE_SUBSCRIPTION_STATUSES", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkL5SBAHY3_cjs.EFFECTIVE_SUBSCRIPTION_STATUSES; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "FFIDAnnouncementBadge", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkL5SBAHY3_cjs.FFIDAnnouncementBadge; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "FFIDAnnouncementList", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkL5SBAHY3_cjs.FFIDAnnouncementList; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "FFIDInquiryForm", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkL5SBAHY3_cjs.FFIDInquiryForm; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "FFIDLoginButton", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkL5SBAHY3_cjs.FFIDLoginButton; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "FFIDOrganizationSwitcher", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkL5SBAHY3_cjs.FFIDOrganizationSwitcher; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "FFIDProvider", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkL5SBAHY3_cjs.FFIDProvider; }
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "FFIDSDKError", {
|
|
151
151
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunkL5SBAHY3_cjs.FFIDSDKError; }
|
|
153
153
|
});
|
|
154
154
|
Object.defineProperty(exports, "FFIDSubscriptionBadge", {
|
|
155
155
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunkL5SBAHY3_cjs.FFIDSubscriptionBadge; }
|
|
157
157
|
});
|
|
158
158
|
Object.defineProperty(exports, "FFIDUserMenu", {
|
|
159
159
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunkL5SBAHY3_cjs.FFIDUserMenu; }
|
|
161
161
|
});
|
|
162
162
|
Object.defineProperty(exports, "FFID_ANNOUNCEMENTS_ERROR_CODES", {
|
|
163
163
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunkL5SBAHY3_cjs.FFID_ANNOUNCEMENTS_ERROR_CODES; }
|
|
165
165
|
});
|
|
166
166
|
Object.defineProperty(exports, "FFID_ERROR_CODES", {
|
|
167
167
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunkL5SBAHY3_cjs.FFID_ERROR_CODES; }
|
|
169
169
|
});
|
|
170
170
|
Object.defineProperty(exports, "FFID_INQUIRY_CATEGORIES", {
|
|
171
171
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunkL5SBAHY3_cjs.FFID_INQUIRY_CATEGORIES; }
|
|
173
173
|
});
|
|
174
174
|
Object.defineProperty(exports, "FFID_INQUIRY_CATEGORIES_SITE_2026", {
|
|
175
175
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunkL5SBAHY3_cjs.FFID_INQUIRY_CATEGORIES_SITE_2026; }
|
|
177
177
|
});
|
|
178
178
|
Object.defineProperty(exports, "clearState", {
|
|
179
179
|
enumerable: true,
|
|
180
|
-
get: function () { return
|
|
180
|
+
get: function () { return chunkL5SBAHY3_cjs.cleanupStateStorage; }
|
|
181
181
|
});
|
|
182
182
|
Object.defineProperty(exports, "computeEffectiveStatusFromSession", {
|
|
183
183
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunkL5SBAHY3_cjs.computeEffectiveStatusFromSession; }
|
|
185
185
|
});
|
|
186
186
|
Object.defineProperty(exports, "createFFIDAnnouncementsClient", {
|
|
187
187
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunkL5SBAHY3_cjs.createFFIDAnnouncementsClient; }
|
|
189
189
|
});
|
|
190
190
|
Object.defineProperty(exports, "createFFIDClient", {
|
|
191
191
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunkL5SBAHY3_cjs.createFFIDClient; }
|
|
193
193
|
});
|
|
194
194
|
Object.defineProperty(exports, "createTokenStore", {
|
|
195
195
|
enumerable: true,
|
|
196
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunkL5SBAHY3_cjs.createTokenStore; }
|
|
197
197
|
});
|
|
198
198
|
Object.defineProperty(exports, "generateCodeChallenge", {
|
|
199
199
|
enumerable: true,
|
|
200
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunkL5SBAHY3_cjs.generateCodeChallenge; }
|
|
201
201
|
});
|
|
202
202
|
Object.defineProperty(exports, "generateCodeVerifier", {
|
|
203
203
|
enumerable: true,
|
|
204
|
-
get: function () { return
|
|
204
|
+
get: function () { return chunkL5SBAHY3_cjs.generateCodeVerifier; }
|
|
205
205
|
});
|
|
206
206
|
Object.defineProperty(exports, "handleRedirectCallback", {
|
|
207
207
|
enumerable: true,
|
|
208
|
-
get: function () { return
|
|
208
|
+
get: function () { return chunkL5SBAHY3_cjs.handleRedirectCallback; }
|
|
209
209
|
});
|
|
210
210
|
Object.defineProperty(exports, "hasAccessFromUserinfo", {
|
|
211
211
|
enumerable: true,
|
|
212
|
-
get: function () { return
|
|
212
|
+
get: function () { return chunkL5SBAHY3_cjs.hasAccessFromUserinfo; }
|
|
213
213
|
});
|
|
214
214
|
Object.defineProperty(exports, "isBlockedFromUserinfo", {
|
|
215
215
|
enumerable: true,
|
|
216
|
-
get: function () { return
|
|
216
|
+
get: function () { return chunkL5SBAHY3_cjs.isBlockedFromUserinfo; }
|
|
217
217
|
});
|
|
218
218
|
Object.defineProperty(exports, "isFFIDInquiryCategorySite2026", {
|
|
219
219
|
enumerable: true,
|
|
220
|
-
get: function () { return
|
|
220
|
+
get: function () { return chunkL5SBAHY3_cjs.isFFIDInquiryCategorySite2026; }
|
|
221
221
|
});
|
|
222
222
|
Object.defineProperty(exports, "normalizeRedirectUri", {
|
|
223
223
|
enumerable: true,
|
|
224
|
-
get: function () { return
|
|
224
|
+
get: function () { return chunkL5SBAHY3_cjs.normalizeRedirectUri; }
|
|
225
225
|
});
|
|
226
226
|
Object.defineProperty(exports, "retrieveCodeVerifier", {
|
|
227
227
|
enumerable: true,
|
|
228
|
-
get: function () { return
|
|
228
|
+
get: function () { return chunkL5SBAHY3_cjs.retrieveCodeVerifier; }
|
|
229
229
|
});
|
|
230
230
|
Object.defineProperty(exports, "retrieveState", {
|
|
231
231
|
enumerable: true,
|
|
232
|
-
get: function () { return
|
|
232
|
+
get: function () { return chunkL5SBAHY3_cjs.retrieveState; }
|
|
233
233
|
});
|
|
234
234
|
Object.defineProperty(exports, "storeCodeVerifier", {
|
|
235
235
|
enumerable: true,
|
|
236
|
-
get: function () { return
|
|
236
|
+
get: function () { return chunkL5SBAHY3_cjs.storeCodeVerifier; }
|
|
237
237
|
});
|
|
238
238
|
Object.defineProperty(exports, "storeState", {
|
|
239
239
|
enumerable: true,
|
|
240
|
-
get: function () { return
|
|
240
|
+
get: function () { return chunkL5SBAHY3_cjs.storeState; }
|
|
241
241
|
});
|
|
242
242
|
Object.defineProperty(exports, "useFFID", {
|
|
243
243
|
enumerable: true,
|
|
244
|
-
get: function () { return
|
|
244
|
+
get: function () { return chunkL5SBAHY3_cjs.useFFID; }
|
|
245
245
|
});
|
|
246
246
|
Object.defineProperty(exports, "useFFIDAnnouncements", {
|
|
247
247
|
enumerable: true,
|
|
248
|
-
get: function () { return
|
|
248
|
+
get: function () { return chunkL5SBAHY3_cjs.useFFIDAnnouncements; }
|
|
249
249
|
});
|
|
250
250
|
Object.defineProperty(exports, "useSubscription", {
|
|
251
251
|
enumerable: true,
|
|
252
|
-
get: function () { return
|
|
252
|
+
get: function () { return chunkL5SBAHY3_cjs.useSubscription; }
|
|
253
253
|
});
|
|
254
254
|
Object.defineProperty(exports, "withSubscription", {
|
|
255
255
|
enumerable: true,
|
|
256
|
-
get: function () { return
|
|
256
|
+
get: function () { return chunkL5SBAHY3_cjs.withSubscription; }
|
|
257
257
|
});
|
|
258
258
|
Object.defineProperty(exports, "ALL_DENIED_EXCEPT_NECESSARY", {
|
|
259
259
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FFIDSubscriptionStatus, a as FFIDPrompt, b as FFIDConfig, c as FFIDApiResponse, d as FFIDSessionResponse, e as FFIDSignOutResult, f as FFIDRedirectResult, g as FFIDError, h as FFIDSubscriptionCheckResponse, i as FFIDCheckServiceAccessParams, j as FFIDServiceAccessDecision, k as FFIDAnalyticsConfig, l as FFIDVerifyAccessTokenOptions, m as FFIDOAuthUserInfo, n as FFIDInquiryCreateParams, o as FFIDInquiryCreateResponse, p as FFIDAuthMode, q as FFIDLogger, r as FFIDCacheAdapter, s as FFIDUser, t as FFIDOrganization, u as FFIDSubscription, v as FFIDSubscriptionContextValue, E as EffectiveSubscriptionStatus, w as FFIDOAuthUserInfoSubscription, x as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, y as FFIDAnnouncementsApiResponse, A as AnnouncementListResponse, z as FFIDAnnouncementsLogger } from './index-
|
|
2
|
-
export { B as Announcement, C as AnnouncementStatus, D as AnnouncementType, G as EFFECTIVE_SUBSCRIPTION_STATUSES, H as FFIDAnnouncementBadge, I as FFIDAnnouncementList, J as FFIDAnnouncementsError, K as FFIDAnnouncementsErrorCode, M as FFIDAnnouncementsServerResponse, N as FFIDApiResponseMeta, O as FFIDCacheConfig, P as FFIDContextValue, Q as FFIDInquiryCategory, R as FFIDInquiryCategorySite2026, S as FFIDInquiryForm, T as FFIDInquiryFormCategoryItem, U as FFIDInquiryFormClassNames, V as FFIDInquiryFormLegalLayout, W as FFIDInquiryFormOrganization, X as FFIDInquiryFormPlaceholderContext, Y as FFIDInquiryFormPrefill, Z as FFIDInquiryFormProps, _ as FFIDInquiryFormSubmitData, $ as FFIDInquiryFormSubmitResult, a0 as FFIDJwtClaims, a1 as FFIDLoginButton, a2 as FFIDOAuthTokenResponse, a3 as FFIDOAuthUserInfoMemberRole, a4 as FFIDOrganizationSwitcher, a5 as FFIDRedirectErrorCode, a6 as FFIDSeatModel, a7 as FFIDServiceAccessDenialReason, a8 as FFIDServiceAccessFailPolicy, a9 as FFIDSubscriptionBadge, aa as FFIDTokenIntrospectionResponse, ab as FFIDUserMenu, ac as FFID_INQUIRY_CATEGORIES, ad as FFID_INQUIRY_CATEGORIES_SITE_2026, ae as UseFFIDAnnouncementsOptions, af as UseFFIDAnnouncementsReturn, ag as isFFIDInquiryCategorySite2026, ah as useFFIDAnnouncements } from './index-
|
|
1
|
+
import { F as FFIDSubscriptionStatus, a as FFIDPrompt, b as FFIDConfig, c as FFIDApiResponse, d as FFIDSessionResponse, e as FFIDSignOutResult, f as FFIDRedirectResult, g as FFIDError, h as FFIDSubscriptionCheckResponse, i as FFIDCheckServiceAccessParams, j as FFIDServiceAccessDecision, k as FFIDAnalyticsConfig, l as FFIDVerifyAccessTokenOptions, m as FFIDOAuthUserInfo, n as FFIDInquiryCreateParams, o as FFIDInquiryCreateResponse, p as FFIDAuthMode, q as FFIDLogger, r as FFIDCacheAdapter, s as FFIDUser, t as FFIDOrganization, u as FFIDSubscription, v as FFIDSubscriptionContextValue, E as EffectiveSubscriptionStatus, w as FFIDOAuthUserInfoSubscription, x as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, y as FFIDAnnouncementsApiResponse, A as AnnouncementListResponse, z as FFIDAnnouncementsLogger } from './index-GqflEaKi.cjs';
|
|
2
|
+
export { B as Announcement, C as AnnouncementStatus, D as AnnouncementType, G as EFFECTIVE_SUBSCRIPTION_STATUSES, H as FFIDAnnouncementBadge, I as FFIDAnnouncementList, J as FFIDAnnouncementsError, K as FFIDAnnouncementsErrorCode, M as FFIDAnnouncementsServerResponse, N as FFIDApiResponseMeta, O as FFIDCacheConfig, P as FFIDContextValue, Q as FFIDInquiryCategory, R as FFIDInquiryCategorySite2026, S as FFIDInquiryForm, T as FFIDInquiryFormCategoryItem, U as FFIDInquiryFormClassNames, V as FFIDInquiryFormLegalLayout, W as FFIDInquiryFormOrganization, X as FFIDInquiryFormPlaceholderContext, Y as FFIDInquiryFormPrefill, Z as FFIDInquiryFormProps, _ as FFIDInquiryFormSubmitData, $ as FFIDInquiryFormSubmitResult, a0 as FFIDJwtClaims, a1 as FFIDLoginButton, a2 as FFIDOAuthTokenResponse, a3 as FFIDOAuthUserInfoMemberRole, a4 as FFIDOrganizationSwitcher, a5 as FFIDRedirectErrorCode, a6 as FFIDSeatModel, a7 as FFIDServiceAccessDenialReason, a8 as FFIDServiceAccessFailPolicy, a9 as FFIDSubscriptionBadge, aa as FFIDTokenIntrospectionResponse, ab as FFIDUserMenu, ac as FFID_INQUIRY_CATEGORIES, ad as FFID_INQUIRY_CATEGORIES_SITE_2026, ae as UseFFIDAnnouncementsOptions, af as UseFFIDAnnouncementsReturn, ag as isFFIDInquiryCategorySite2026, ah as useFFIDAnnouncements } from './index-GqflEaKi.cjs';
|
|
3
3
|
export { A as ALL_DENIED_EXCEPT_NECESSARY, i as CONSENT_COOKIE_NAME, j as CONSENT_DISMISSAL_TIMESTAMP_KEY, l as COOKIE_VERSION, D as DEFAULT_CONSENT_ERROR_MESSAGES, o as FFIDAnalyticsProvider, p as FFIDAnalyticsProviderProps, c as FFIDConsentCategories, r as FFIDConsentCategoryCode, e as FFIDConsentCategoryMetadata, w as FFIDConsentError, x as FFIDConsentErrorCode, y as FFIDConsentMergeStrategy, B as FFIDConsentMergeWarning, E as FFIDConsentMergeWarningEvent, F as FFIDConsentResult, I as FFIDConsentSource, a as FFIDConsentState, d as FFIDConsentSyncResult, M as FFIDCookieBanner, N as FFIDCookieBannerClassNames, O as FFIDCookieBannerProps, Q as FFIDCookieLink, R as FFIDCookieLinkProps, f as FFIDCookiePolicy, T as FFIDCookieSettings, U as FFIDCookieSettingsClassNames, V as FFIDCookieSettingsProps, _ as FFID_CONSENT_ERROR_CODES, ae as UseFFIDConsentPreferencesReturn, af as UseFFIDConsentReturn, ag as clearConsentDismissalTimestamp, aj as decodeConsentCookie, al as encodeConsentCookie, an as readConsentCookie, ao as readConsentDismissalTimestamp, aq as useFFIDConsent, ar as useFFIDConsentPreferences, as as writeConsentCookie, at as writeConsentDismissalTimestamp } from './FFIDCookieLink-BJgVcJyw.cjs';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { ReactNode, ComponentType, FC } from 'react';
|
|
@@ -1643,7 +1643,7 @@ interface FFIDProviderProps extends FFIDConfig {
|
|
|
1643
1643
|
* - Automatic session refresh
|
|
1644
1644
|
* - Token mode: automatic code exchange and token refresh
|
|
1645
1645
|
*/
|
|
1646
|
-
declare function FFIDProvider({ children, serviceCode, scope, apiBaseUrl, debug, logger, refreshInterval, onAuthStateChange, onError, authMode, clientId, cleanCallbackUrl, }: FFIDProviderProps): react_jsx_runtime.JSX.Element;
|
|
1646
|
+
declare function FFIDProvider({ children, serviceCode, scope, apiBaseUrl, debug, logger, refreshInterval, onAuthStateChange, onError, authMode, clientId, timeout, cleanCallbackUrl, }: FFIDProviderProps): react_jsx_runtime.JSX.Element;
|
|
1647
1647
|
|
|
1648
1648
|
/**
|
|
1649
1649
|
* Return type for useFFID hook
|