@feelflow/ffid-sdk 5.3.0 → 5.3.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-JSMMSHTG.cjs → chunk-AAMNUM62.cjs} +1 -1
- package/dist/{chunk-WI6KNKLQ.js → chunk-ARKFHB72.js} +1 -1
- 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-0T67Ecne.d.cts → ffid-client-CARfFhtf.d.cts} +28 -1
- package/dist/{ffid-client-VCjIHfXW.d.ts → ffid-client-w1s-JnFf.d.ts} +28 -1
- package/dist/{index-Iop5EM8B.d.cts → index-DfnHXRMX.d.cts} +28 -1
- package/dist/{index-Iop5EM8B.d.ts → index-DfnHXRMX.d.ts} +28 -1
- package/dist/index.cjs +32 -32
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.d.cts +2 -2
- package/dist/server/index.d.ts +2 -2
- package/dist/server/index.js +1 -1
- package/dist/server/test/index.d.cts +1 -1
- package/dist/server/test/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -842,7 +842,7 @@ function createProfileMethods(deps) {
|
|
|
842
842
|
}
|
|
843
843
|
|
|
844
844
|
// src/client/version-check.ts
|
|
845
|
-
var SDK_VERSION = "5.3.
|
|
845
|
+
var SDK_VERSION = "5.3.1";
|
|
846
846
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
847
847
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
848
848
|
function sdkHeaders() {
|
|
@@ -840,7 +840,7 @@ function createProfileMethods(deps) {
|
|
|
840
840
|
}
|
|
841
841
|
|
|
842
842
|
// src/client/version-check.ts
|
|
843
|
-
var SDK_VERSION = "5.3.
|
|
843
|
+
var SDK_VERSION = "5.3.1";
|
|
844
844
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
845
845
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
846
846
|
function sdkHeaders() {
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkAAMNUM62_cjs = require('../chunk-AAMNUM62.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 chunkAAMNUM62_cjs.FFIDAnnouncementBadge; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "FFIDAnnouncementList", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkAAMNUM62_cjs.FFIDAnnouncementList; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "FFIDInquiryForm", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkAAMNUM62_cjs.FFIDInquiryForm; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "FFIDLoginButton", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkAAMNUM62_cjs.FFIDLoginButton; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "FFIDOrganizationSwitcher", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkAAMNUM62_cjs.FFIDOrganizationSwitcher; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "FFIDSubscriptionBadge", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkAAMNUM62_cjs.FFIDSubscriptionBadge; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "FFIDUserMenu", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkAAMNUM62_cjs.FFIDUserMenu; }
|
|
34
34
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { S as FFIDAnnouncementBadge, av as FFIDAnnouncementBadgeClassNames, aw as FFIDAnnouncementBadgeProps, T as FFIDAnnouncementList, ax as FFIDAnnouncementListClassNames, ay as FFIDAnnouncementListProps, a0 as FFIDInquiryForm, a1 as FFIDInquiryFormCategoryItem, a2 as FFIDInquiryFormClassNames, a3 as FFIDInquiryFormLegalLayout, a4 as FFIDInquiryFormOrganization, a5 as FFIDInquiryFormPlaceholderContext, a6 as FFIDInquiryFormPrefill, a7 as FFIDInquiryFormProps, a8 as FFIDInquiryFormSubmitData, a9 as FFIDInquiryFormSubmitResult, ab as FFIDLoginButton, az as FFIDLoginButtonProps, ah as FFIDOrganizationSwitcher, aA as FFIDOrganizationSwitcherClassNames, aB as FFIDOrganizationSwitcherProps, am as FFIDSubscriptionBadge, aC as FFIDSubscriptionBadgeClassNames, aD as FFIDSubscriptionBadgeProps, ao as FFIDUserMenu, aE as FFIDUserMenuClassNames, aF as FFIDUserMenuProps } from '../index-
|
|
1
|
+
export { S as FFIDAnnouncementBadge, av as FFIDAnnouncementBadgeClassNames, aw as FFIDAnnouncementBadgeProps, T as FFIDAnnouncementList, ax as FFIDAnnouncementListClassNames, ay as FFIDAnnouncementListProps, a0 as FFIDInquiryForm, a1 as FFIDInquiryFormCategoryItem, a2 as FFIDInquiryFormClassNames, a3 as FFIDInquiryFormLegalLayout, a4 as FFIDInquiryFormOrganization, a5 as FFIDInquiryFormPlaceholderContext, a6 as FFIDInquiryFormPrefill, a7 as FFIDInquiryFormProps, a8 as FFIDInquiryFormSubmitData, a9 as FFIDInquiryFormSubmitResult, ab as FFIDLoginButton, az as FFIDLoginButtonProps, ah as FFIDOrganizationSwitcher, aA as FFIDOrganizationSwitcherClassNames, aB as FFIDOrganizationSwitcherProps, am as FFIDSubscriptionBadge, aC as FFIDSubscriptionBadgeClassNames, aD as FFIDSubscriptionBadgeProps, ao as FFIDUserMenu, aE as FFIDUserMenuClassNames, aF as FFIDUserMenuProps } from '../index-DfnHXRMX.cjs';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { S as FFIDAnnouncementBadge, av as FFIDAnnouncementBadgeClassNames, aw as FFIDAnnouncementBadgeProps, T as FFIDAnnouncementList, ax as FFIDAnnouncementListClassNames, ay as FFIDAnnouncementListProps, a0 as FFIDInquiryForm, a1 as FFIDInquiryFormCategoryItem, a2 as FFIDInquiryFormClassNames, a3 as FFIDInquiryFormLegalLayout, a4 as FFIDInquiryFormOrganization, a5 as FFIDInquiryFormPlaceholderContext, a6 as FFIDInquiryFormPrefill, a7 as FFIDInquiryFormProps, a8 as FFIDInquiryFormSubmitData, a9 as FFIDInquiryFormSubmitResult, ab as FFIDLoginButton, az as FFIDLoginButtonProps, ah as FFIDOrganizationSwitcher, aA as FFIDOrganizationSwitcherClassNames, aB as FFIDOrganizationSwitcherProps, am as FFIDSubscriptionBadge, aC as FFIDSubscriptionBadgeClassNames, aD as FFIDSubscriptionBadgeProps, ao as FFIDUserMenu, aE as FFIDUserMenuClassNames, aF as FFIDUserMenuProps } from '../index-
|
|
1
|
+
export { S as FFIDAnnouncementBadge, av as FFIDAnnouncementBadgeClassNames, aw as FFIDAnnouncementBadgeProps, T as FFIDAnnouncementList, ax as FFIDAnnouncementListClassNames, ay as FFIDAnnouncementListProps, a0 as FFIDInquiryForm, a1 as FFIDInquiryFormCategoryItem, a2 as FFIDInquiryFormClassNames, a3 as FFIDInquiryFormLegalLayout, a4 as FFIDInquiryFormOrganization, a5 as FFIDInquiryFormPlaceholderContext, a6 as FFIDInquiryFormPrefill, a7 as FFIDInquiryFormProps, a8 as FFIDInquiryFormSubmitData, a9 as FFIDInquiryFormSubmitResult, ab as FFIDLoginButton, az as FFIDLoginButtonProps, ah as FFIDOrganizationSwitcher, aA as FFIDOrganizationSwitcherClassNames, aB as FFIDOrganizationSwitcherProps, am as FFIDSubscriptionBadge, aC as FFIDSubscriptionBadgeClassNames, aD as FFIDSubscriptionBadgeProps, ao as FFIDUserMenu, aE as FFIDUserMenuClassNames, aF as FFIDUserMenuProps } from '../index-DfnHXRMX.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-ARKFHB72.js';
|
|
@@ -688,7 +688,13 @@ interface FFIDOAuthUserInfoSubscription {
|
|
|
688
688
|
organizationId: string | null;
|
|
689
689
|
hasSeatAssignment: boolean | null;
|
|
690
690
|
}
|
|
691
|
-
/**
|
|
691
|
+
/**
|
|
692
|
+
* Unified user-identity shape returned by `getSession()` (→ `/oauth/userinfo`)
|
|
693
|
+
* and `verifyAccessToken()` (JWT or introspect path). `subscription` and
|
|
694
|
+
* `organizationId` are scope-gated on `/oauth/userinfo` (FFID #3380, requires
|
|
695
|
+
* `subscription:read`); JWT-verify additionally omits `subscription` always.
|
|
696
|
+
* See per-field JSDoc — misreading `undefined` is a security regression.
|
|
697
|
+
*/
|
|
692
698
|
interface FFIDOAuthUserInfo {
|
|
693
699
|
sub: string;
|
|
694
700
|
email: string | null;
|
|
@@ -698,7 +704,28 @@ interface FFIDOAuthUserInfo {
|
|
|
698
704
|
department?: string | null | undefined;
|
|
699
705
|
position?: string | null | undefined;
|
|
700
706
|
phoneNumber?: string | null | undefined;
|
|
707
|
+
/**
|
|
708
|
+
* Organization UUID, `null` if token is not org-bound, or `undefined` if the
|
|
709
|
+
* granted scope omits `subscription:read` (FFID #3380; widen scope to receive
|
|
710
|
+
* — NOT "no organization").
|
|
711
|
+
*/
|
|
701
712
|
organizationId?: string | null | undefined;
|
|
713
|
+
/**
|
|
714
|
+
* Subscription summary for `(user, service, organization)`. Branch on
|
|
715
|
+
* `effectiveStatus` (5.3.0+) for access decisions.
|
|
716
|
+
*
|
|
717
|
+
* `undefined` here means either (a) `/oauth/userinfo` granted scope omits
|
|
718
|
+
* `subscription:read` (FFID #3380), or (b) caller used `verifyAccessToken`
|
|
719
|
+
* with `verifyStrategy: 'jwt'` (and no `includeProfile: true`) — JWT payload
|
|
720
|
+
* does not carry subscription claims. NEITHER means "no contract":
|
|
721
|
+
* contractless users hit HTTP 403 upstream and never reach this field.
|
|
722
|
+
* Treating `undefined` as "no contract" is a **security regression** that
|
|
723
|
+
* would grant non-paying UX to a paying user. `DEFAULT_OAUTH_SCOPES` grants
|
|
724
|
+
* `subscription:read`; narrow-scope or jwt-only callers should branch
|
|
725
|
+
* explicitly instead of `userinfo.subscription!`.
|
|
726
|
+
*
|
|
727
|
+
* @see {@link FFIDOAuthUserInfoSubscription.effectiveStatus}
|
|
728
|
+
*/
|
|
702
729
|
subscription?: FFIDOAuthUserInfoSubscription | undefined;
|
|
703
730
|
}
|
|
704
731
|
/** Options for verifyAccessToken */
|
|
@@ -688,7 +688,13 @@ interface FFIDOAuthUserInfoSubscription {
|
|
|
688
688
|
organizationId: string | null;
|
|
689
689
|
hasSeatAssignment: boolean | null;
|
|
690
690
|
}
|
|
691
|
-
/**
|
|
691
|
+
/**
|
|
692
|
+
* Unified user-identity shape returned by `getSession()` (→ `/oauth/userinfo`)
|
|
693
|
+
* and `verifyAccessToken()` (JWT or introspect path). `subscription` and
|
|
694
|
+
* `organizationId` are scope-gated on `/oauth/userinfo` (FFID #3380, requires
|
|
695
|
+
* `subscription:read`); JWT-verify additionally omits `subscription` always.
|
|
696
|
+
* See per-field JSDoc — misreading `undefined` is a security regression.
|
|
697
|
+
*/
|
|
692
698
|
interface FFIDOAuthUserInfo {
|
|
693
699
|
sub: string;
|
|
694
700
|
email: string | null;
|
|
@@ -698,7 +704,28 @@ interface FFIDOAuthUserInfo {
|
|
|
698
704
|
department?: string | null | undefined;
|
|
699
705
|
position?: string | null | undefined;
|
|
700
706
|
phoneNumber?: string | null | undefined;
|
|
707
|
+
/**
|
|
708
|
+
* Organization UUID, `null` if token is not org-bound, or `undefined` if the
|
|
709
|
+
* granted scope omits `subscription:read` (FFID #3380; widen scope to receive
|
|
710
|
+
* — NOT "no organization").
|
|
711
|
+
*/
|
|
701
712
|
organizationId?: string | null | undefined;
|
|
713
|
+
/**
|
|
714
|
+
* Subscription summary for `(user, service, organization)`. Branch on
|
|
715
|
+
* `effectiveStatus` (5.3.0+) for access decisions.
|
|
716
|
+
*
|
|
717
|
+
* `undefined` here means either (a) `/oauth/userinfo` granted scope omits
|
|
718
|
+
* `subscription:read` (FFID #3380), or (b) caller used `verifyAccessToken`
|
|
719
|
+
* with `verifyStrategy: 'jwt'` (and no `includeProfile: true`) — JWT payload
|
|
720
|
+
* does not carry subscription claims. NEITHER means "no contract":
|
|
721
|
+
* contractless users hit HTTP 403 upstream and never reach this field.
|
|
722
|
+
* Treating `undefined` as "no contract" is a **security regression** that
|
|
723
|
+
* would grant non-paying UX to a paying user. `DEFAULT_OAUTH_SCOPES` grants
|
|
724
|
+
* `subscription:read`; narrow-scope or jwt-only callers should branch
|
|
725
|
+
* explicitly instead of `userinfo.subscription!`.
|
|
726
|
+
*
|
|
727
|
+
* @see {@link FFIDOAuthUserInfoSubscription.effectiveStatus}
|
|
728
|
+
*/
|
|
702
729
|
subscription?: FFIDOAuthUserInfoSubscription | undefined;
|
|
703
730
|
}
|
|
704
731
|
/** Options for verifyAccessToken */
|
|
@@ -255,7 +255,13 @@ interface FFIDOAuthUserInfoSubscription {
|
|
|
255
255
|
organizationId: string | null;
|
|
256
256
|
hasSeatAssignment: boolean | null;
|
|
257
257
|
}
|
|
258
|
-
/**
|
|
258
|
+
/**
|
|
259
|
+
* Unified user-identity shape returned by `getSession()` (→ `/oauth/userinfo`)
|
|
260
|
+
* and `verifyAccessToken()` (JWT or introspect path). `subscription` and
|
|
261
|
+
* `organizationId` are scope-gated on `/oauth/userinfo` (FFID #3380, requires
|
|
262
|
+
* `subscription:read`); JWT-verify additionally omits `subscription` always.
|
|
263
|
+
* See per-field JSDoc — misreading `undefined` is a security regression.
|
|
264
|
+
*/
|
|
259
265
|
interface FFIDOAuthUserInfo {
|
|
260
266
|
sub: string;
|
|
261
267
|
email: string | null;
|
|
@@ -265,7 +271,28 @@ interface FFIDOAuthUserInfo {
|
|
|
265
271
|
department?: string | null | undefined;
|
|
266
272
|
position?: string | null | undefined;
|
|
267
273
|
phoneNumber?: string | null | undefined;
|
|
274
|
+
/**
|
|
275
|
+
* Organization UUID, `null` if token is not org-bound, or `undefined` if the
|
|
276
|
+
* granted scope omits `subscription:read` (FFID #3380; widen scope to receive
|
|
277
|
+
* — NOT "no organization").
|
|
278
|
+
*/
|
|
268
279
|
organizationId?: string | null | undefined;
|
|
280
|
+
/**
|
|
281
|
+
* Subscription summary for `(user, service, organization)`. Branch on
|
|
282
|
+
* `effectiveStatus` (5.3.0+) for access decisions.
|
|
283
|
+
*
|
|
284
|
+
* `undefined` here means either (a) `/oauth/userinfo` granted scope omits
|
|
285
|
+
* `subscription:read` (FFID #3380), or (b) caller used `verifyAccessToken`
|
|
286
|
+
* with `verifyStrategy: 'jwt'` (and no `includeProfile: true`) — JWT payload
|
|
287
|
+
* does not carry subscription claims. NEITHER means "no contract":
|
|
288
|
+
* contractless users hit HTTP 403 upstream and never reach this field.
|
|
289
|
+
* Treating `undefined` as "no contract" is a **security regression** that
|
|
290
|
+
* would grant non-paying UX to a paying user. `DEFAULT_OAUTH_SCOPES` grants
|
|
291
|
+
* `subscription:read`; narrow-scope or jwt-only callers should branch
|
|
292
|
+
* explicitly instead of `userinfo.subscription!`.
|
|
293
|
+
*
|
|
294
|
+
* @see {@link FFIDOAuthUserInfoSubscription.effectiveStatus}
|
|
295
|
+
*/
|
|
269
296
|
subscription?: FFIDOAuthUserInfoSubscription | undefined;
|
|
270
297
|
}
|
|
271
298
|
/** Options for verifyAccessToken */
|
|
@@ -255,7 +255,13 @@ interface FFIDOAuthUserInfoSubscription {
|
|
|
255
255
|
organizationId: string | null;
|
|
256
256
|
hasSeatAssignment: boolean | null;
|
|
257
257
|
}
|
|
258
|
-
/**
|
|
258
|
+
/**
|
|
259
|
+
* Unified user-identity shape returned by `getSession()` (→ `/oauth/userinfo`)
|
|
260
|
+
* and `verifyAccessToken()` (JWT or introspect path). `subscription` and
|
|
261
|
+
* `organizationId` are scope-gated on `/oauth/userinfo` (FFID #3380, requires
|
|
262
|
+
* `subscription:read`); JWT-verify additionally omits `subscription` always.
|
|
263
|
+
* See per-field JSDoc — misreading `undefined` is a security regression.
|
|
264
|
+
*/
|
|
259
265
|
interface FFIDOAuthUserInfo {
|
|
260
266
|
sub: string;
|
|
261
267
|
email: string | null;
|
|
@@ -265,7 +271,28 @@ interface FFIDOAuthUserInfo {
|
|
|
265
271
|
department?: string | null | undefined;
|
|
266
272
|
position?: string | null | undefined;
|
|
267
273
|
phoneNumber?: string | null | undefined;
|
|
274
|
+
/**
|
|
275
|
+
* Organization UUID, `null` if token is not org-bound, or `undefined` if the
|
|
276
|
+
* granted scope omits `subscription:read` (FFID #3380; widen scope to receive
|
|
277
|
+
* — NOT "no organization").
|
|
278
|
+
*/
|
|
268
279
|
organizationId?: string | null | undefined;
|
|
280
|
+
/**
|
|
281
|
+
* Subscription summary for `(user, service, organization)`. Branch on
|
|
282
|
+
* `effectiveStatus` (5.3.0+) for access decisions.
|
|
283
|
+
*
|
|
284
|
+
* `undefined` here means either (a) `/oauth/userinfo` granted scope omits
|
|
285
|
+
* `subscription:read` (FFID #3380), or (b) caller used `verifyAccessToken`
|
|
286
|
+
* with `verifyStrategy: 'jwt'` (and no `includeProfile: true`) — JWT payload
|
|
287
|
+
* does not carry subscription claims. NEITHER means "no contract":
|
|
288
|
+
* contractless users hit HTTP 403 upstream and never reach this field.
|
|
289
|
+
* Treating `undefined` as "no contract" is a **security regression** that
|
|
290
|
+
* would grant non-paying UX to a paying user. `DEFAULT_OAUTH_SCOPES` grants
|
|
291
|
+
* `subscription:read`; narrow-scope or jwt-only callers should branch
|
|
292
|
+
* explicitly instead of `userinfo.subscription!`.
|
|
293
|
+
*
|
|
294
|
+
* @see {@link FFIDOAuthUserInfoSubscription.effectiveStatus}
|
|
295
|
+
*/
|
|
269
296
|
subscription?: FFIDOAuthUserInfoSubscription | undefined;
|
|
270
297
|
}
|
|
271
298
|
/** Options for verifyAccessToken */
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkAAMNUM62_cjs = require('./chunk-AAMNUM62.cjs');
|
|
4
4
|
var chunkQZN4WZCV_cjs = require('./chunk-QZN4WZCV.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 } = chunkAAMNUM62_cjs.useFFIDContext();
|
|
58
|
+
const { effectiveStatus, isBlocked, isGrace } = chunkAAMNUM62_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 } = chunkAAMNUM62_cjs.useFFIDContext();
|
|
80
80
|
const hasRedirected = react.useRef(false);
|
|
81
81
|
react.useEffect(() => {
|
|
82
82
|
if (!isLoading && !isAuthenticated && options.redirectToLogin && !hasRedirected.current) {
|
|
@@ -105,115 +105,115 @@ var FFID_NEWSLETTER_DISPATCH_MAX_RECIPIENTS = 1e3;
|
|
|
105
105
|
|
|
106
106
|
Object.defineProperty(exports, "DEFAULT_API_BASE_URL", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkAAMNUM62_cjs.DEFAULT_API_BASE_URL; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "DEFAULT_OAUTH_SCOPES", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkAAMNUM62_cjs.DEFAULT_OAUTH_SCOPES; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "FFIDAnnouncementBadge", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkAAMNUM62_cjs.FFIDAnnouncementBadge; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "FFIDAnnouncementList", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkAAMNUM62_cjs.FFIDAnnouncementList; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "FFIDInquiryForm", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkAAMNUM62_cjs.FFIDInquiryForm; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "FFIDLoginButton", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkAAMNUM62_cjs.FFIDLoginButton; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "FFIDOrganizationSwitcher", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkAAMNUM62_cjs.FFIDOrganizationSwitcher; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "FFIDProvider", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkAAMNUM62_cjs.FFIDProvider; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "FFIDSDKError", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkAAMNUM62_cjs.FFIDSDKError; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "FFIDSubscriptionBadge", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkAAMNUM62_cjs.FFIDSubscriptionBadge; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "FFIDUserMenu", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkAAMNUM62_cjs.FFIDUserMenu; }
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "FFID_ANNOUNCEMENTS_ERROR_CODES", {
|
|
151
151
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunkAAMNUM62_cjs.FFID_ANNOUNCEMENTS_ERROR_CODES; }
|
|
153
153
|
});
|
|
154
154
|
Object.defineProperty(exports, "FFID_INQUIRY_CATEGORIES", {
|
|
155
155
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunkAAMNUM62_cjs.FFID_INQUIRY_CATEGORIES; }
|
|
157
157
|
});
|
|
158
158
|
Object.defineProperty(exports, "FFID_INQUIRY_CATEGORIES_SITE_2026", {
|
|
159
159
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunkAAMNUM62_cjs.FFID_INQUIRY_CATEGORIES_SITE_2026; }
|
|
161
161
|
});
|
|
162
162
|
Object.defineProperty(exports, "computeEffectiveStatusFromSession", {
|
|
163
163
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunkAAMNUM62_cjs.computeEffectiveStatusFromSession; }
|
|
165
165
|
});
|
|
166
166
|
Object.defineProperty(exports, "createFFIDAnnouncementsClient", {
|
|
167
167
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunkAAMNUM62_cjs.createFFIDAnnouncementsClient; }
|
|
169
169
|
});
|
|
170
170
|
Object.defineProperty(exports, "createFFIDClient", {
|
|
171
171
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunkAAMNUM62_cjs.createFFIDClient; }
|
|
173
173
|
});
|
|
174
174
|
Object.defineProperty(exports, "createTokenStore", {
|
|
175
175
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunkAAMNUM62_cjs.createTokenStore; }
|
|
177
177
|
});
|
|
178
178
|
Object.defineProperty(exports, "generateCodeChallenge", {
|
|
179
179
|
enumerable: true,
|
|
180
|
-
get: function () { return
|
|
180
|
+
get: function () { return chunkAAMNUM62_cjs.generateCodeChallenge; }
|
|
181
181
|
});
|
|
182
182
|
Object.defineProperty(exports, "generateCodeVerifier", {
|
|
183
183
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunkAAMNUM62_cjs.generateCodeVerifier; }
|
|
185
185
|
});
|
|
186
186
|
Object.defineProperty(exports, "isFFIDInquiryCategorySite2026", {
|
|
187
187
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunkAAMNUM62_cjs.isFFIDInquiryCategorySite2026; }
|
|
189
189
|
});
|
|
190
190
|
Object.defineProperty(exports, "normalizeRedirectUri", {
|
|
191
191
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunkAAMNUM62_cjs.normalizeRedirectUri; }
|
|
193
193
|
});
|
|
194
194
|
Object.defineProperty(exports, "retrieveCodeVerifier", {
|
|
195
195
|
enumerable: true,
|
|
196
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunkAAMNUM62_cjs.retrieveCodeVerifier; }
|
|
197
197
|
});
|
|
198
198
|
Object.defineProperty(exports, "storeCodeVerifier", {
|
|
199
199
|
enumerable: true,
|
|
200
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunkAAMNUM62_cjs.storeCodeVerifier; }
|
|
201
201
|
});
|
|
202
202
|
Object.defineProperty(exports, "useFFID", {
|
|
203
203
|
enumerable: true,
|
|
204
|
-
get: function () { return
|
|
204
|
+
get: function () { return chunkAAMNUM62_cjs.useFFID; }
|
|
205
205
|
});
|
|
206
206
|
Object.defineProperty(exports, "useFFIDAnnouncements", {
|
|
207
207
|
enumerable: true,
|
|
208
|
-
get: function () { return
|
|
208
|
+
get: function () { return chunkAAMNUM62_cjs.useFFIDAnnouncements; }
|
|
209
209
|
});
|
|
210
210
|
Object.defineProperty(exports, "useSubscription", {
|
|
211
211
|
enumerable: true,
|
|
212
|
-
get: function () { return
|
|
212
|
+
get: function () { return chunkAAMNUM62_cjs.useSubscription; }
|
|
213
213
|
});
|
|
214
214
|
Object.defineProperty(exports, "withSubscription", {
|
|
215
215
|
enumerable: true,
|
|
216
|
-
get: function () { return
|
|
216
|
+
get: function () { return chunkAAMNUM62_cjs.withSubscription; }
|
|
217
217
|
});
|
|
218
218
|
Object.defineProperty(exports, "ALL_DENIED_EXCEPT_NECESSARY", {
|
|
219
219
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FFIDSubscriptionStatus, a as FFIDConfig, b as FFIDApiResponse, c as FFIDSessionResponse, d as FFIDRedirectResult, e as FFIDError, f as FFIDSubscriptionCheckResponse, g as FFIDCheckServiceAccessParams, h as FFIDServiceAccessDecision, i as FFIDListMembersResponse, j as FFIDAddMemberParams, k as FFIDAddMemberResponse, l as FFIDAddMemberRequest, m as FFIDMemberRole, n as FFIDUpdateMemberRoleResponse, o as FFIDRemoveMemberResponse, p as FFIDProfileCallOptions, q as FFIDUserProfile, r as FFIDUpdateUserProfileRequest, s as FFIDAnalyticsConfig, t as FFIDCreateCheckoutParams, u as FFIDCheckoutSessionResponse, v as FFIDCreatePortalParams, w as FFIDPortalSessionResponse, x as FFIDVerifyAccessTokenOptions, y as FFIDOAuthUserInfo, z as FFIDInquiryCreateParams, A as FFIDInquiryCreateResponse, B as FFIDAuthMode, C as FFIDLogger, D as FFIDCacheAdapter, E as FFIDUser, G as FFIDOrganization, H as FFIDSubscription, I as FFIDSubscriptionContextValue, J as EffectiveSubscriptionStatus, K as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, M as FFIDAnnouncementsApiResponse, N as AnnouncementListResponse, O as FFIDAnnouncementsLogger } from './index-
|
|
2
|
-
export { P as Announcement, Q as AnnouncementStatus, R as AnnouncementType, S as FFIDAnnouncementBadge, T as FFIDAnnouncementList, U as FFIDAnnouncementsError, V as FFIDAnnouncementsErrorCode, W as FFIDAnnouncementsServerResponse, X as FFIDAssignableMemberRole, Y as FFIDCacheConfig, Z as FFIDContextValue, _ as FFIDInquiryCategory, $ as FFIDInquiryCategorySite2026, a0 as FFIDInquiryForm, a1 as FFIDInquiryFormCategoryItem, a2 as FFIDInquiryFormClassNames, a3 as FFIDInquiryFormLegalLayout, a4 as FFIDInquiryFormOrganization, a5 as FFIDInquiryFormPlaceholderContext, a6 as FFIDInquiryFormPrefill, a7 as FFIDInquiryFormProps, a8 as FFIDInquiryFormSubmitData, a9 as FFIDInquiryFormSubmitResult, aa as FFIDJwtClaims, ab as FFIDLoginButton, ac as FFIDMemberStatus, ad as FFIDOAuthTokenResponse, ae as FFIDOAuthUserInfoMemberRole, af as FFIDOAuthUserInfoSubscription, ag as FFIDOrganizationMember, ah as FFIDOrganizationSwitcher, ai as FFIDRedirectErrorCode, aj as FFIDSeatModel, ak as FFIDServiceAccessDenialReason, al as FFIDServiceAccessFailPolicy, am as FFIDSubscriptionBadge, an as FFIDTokenIntrospectionResponse, ao as FFIDUserMenu, ap as FFID_INQUIRY_CATEGORIES, aq as FFID_INQUIRY_CATEGORIES_SITE_2026, ar as UseFFIDAnnouncementsOptions, as as UseFFIDAnnouncementsReturn, at as isFFIDInquiryCategorySite2026, au as useFFIDAnnouncements } from './index-
|
|
1
|
+
import { F as FFIDSubscriptionStatus, a as FFIDConfig, b as FFIDApiResponse, c as FFIDSessionResponse, d as FFIDRedirectResult, e as FFIDError, f as FFIDSubscriptionCheckResponse, g as FFIDCheckServiceAccessParams, h as FFIDServiceAccessDecision, i as FFIDListMembersResponse, j as FFIDAddMemberParams, k as FFIDAddMemberResponse, l as FFIDAddMemberRequest, m as FFIDMemberRole, n as FFIDUpdateMemberRoleResponse, o as FFIDRemoveMemberResponse, p as FFIDProfileCallOptions, q as FFIDUserProfile, r as FFIDUpdateUserProfileRequest, s as FFIDAnalyticsConfig, t as FFIDCreateCheckoutParams, u as FFIDCheckoutSessionResponse, v as FFIDCreatePortalParams, w as FFIDPortalSessionResponse, x as FFIDVerifyAccessTokenOptions, y as FFIDOAuthUserInfo, z as FFIDInquiryCreateParams, A as FFIDInquiryCreateResponse, B as FFIDAuthMode, C as FFIDLogger, D as FFIDCacheAdapter, E as FFIDUser, G as FFIDOrganization, H as FFIDSubscription, I as FFIDSubscriptionContextValue, J as EffectiveSubscriptionStatus, K as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, M as FFIDAnnouncementsApiResponse, N as AnnouncementListResponse, O as FFIDAnnouncementsLogger } from './index-DfnHXRMX.cjs';
|
|
2
|
+
export { P as Announcement, Q as AnnouncementStatus, R as AnnouncementType, S as FFIDAnnouncementBadge, T as FFIDAnnouncementList, U as FFIDAnnouncementsError, V as FFIDAnnouncementsErrorCode, W as FFIDAnnouncementsServerResponse, X as FFIDAssignableMemberRole, Y as FFIDCacheConfig, Z as FFIDContextValue, _ as FFIDInquiryCategory, $ as FFIDInquiryCategorySite2026, a0 as FFIDInquiryForm, a1 as FFIDInquiryFormCategoryItem, a2 as FFIDInquiryFormClassNames, a3 as FFIDInquiryFormLegalLayout, a4 as FFIDInquiryFormOrganization, a5 as FFIDInquiryFormPlaceholderContext, a6 as FFIDInquiryFormPrefill, a7 as FFIDInquiryFormProps, a8 as FFIDInquiryFormSubmitData, a9 as FFIDInquiryFormSubmitResult, aa as FFIDJwtClaims, ab as FFIDLoginButton, ac as FFIDMemberStatus, ad as FFIDOAuthTokenResponse, ae as FFIDOAuthUserInfoMemberRole, af as FFIDOAuthUserInfoSubscription, ag as FFIDOrganizationMember, ah as FFIDOrganizationSwitcher, ai as FFIDRedirectErrorCode, aj as FFIDSeatModel, ak as FFIDServiceAccessDenialReason, al as FFIDServiceAccessFailPolicy, am as FFIDSubscriptionBadge, an as FFIDTokenIntrospectionResponse, ao as FFIDUserMenu, ap as FFID_INQUIRY_CATEGORIES, aq as FFID_INQUIRY_CATEGORIES_SITE_2026, ar as UseFFIDAnnouncementsOptions, as as UseFFIDAnnouncementsReturn, at as isFFIDInquiryCategorySite2026, au as useFFIDAnnouncements } from './index-DfnHXRMX.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-Bt0f1gyo.cjs';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { ReactNode, ComponentType, FC } from 'react';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FFIDSubscriptionStatus, a as FFIDConfig, b as FFIDApiResponse, c as FFIDSessionResponse, d as FFIDRedirectResult, e as FFIDError, f as FFIDSubscriptionCheckResponse, g as FFIDCheckServiceAccessParams, h as FFIDServiceAccessDecision, i as FFIDListMembersResponse, j as FFIDAddMemberParams, k as FFIDAddMemberResponse, l as FFIDAddMemberRequest, m as FFIDMemberRole, n as FFIDUpdateMemberRoleResponse, o as FFIDRemoveMemberResponse, p as FFIDProfileCallOptions, q as FFIDUserProfile, r as FFIDUpdateUserProfileRequest, s as FFIDAnalyticsConfig, t as FFIDCreateCheckoutParams, u as FFIDCheckoutSessionResponse, v as FFIDCreatePortalParams, w as FFIDPortalSessionResponse, x as FFIDVerifyAccessTokenOptions, y as FFIDOAuthUserInfo, z as FFIDInquiryCreateParams, A as FFIDInquiryCreateResponse, B as FFIDAuthMode, C as FFIDLogger, D as FFIDCacheAdapter, E as FFIDUser, G as FFIDOrganization, H as FFIDSubscription, I as FFIDSubscriptionContextValue, J as EffectiveSubscriptionStatus, K as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, M as FFIDAnnouncementsApiResponse, N as AnnouncementListResponse, O as FFIDAnnouncementsLogger } from './index-
|
|
2
|
-
export { P as Announcement, Q as AnnouncementStatus, R as AnnouncementType, S as FFIDAnnouncementBadge, T as FFIDAnnouncementList, U as FFIDAnnouncementsError, V as FFIDAnnouncementsErrorCode, W as FFIDAnnouncementsServerResponse, X as FFIDAssignableMemberRole, Y as FFIDCacheConfig, Z as FFIDContextValue, _ as FFIDInquiryCategory, $ as FFIDInquiryCategorySite2026, a0 as FFIDInquiryForm, a1 as FFIDInquiryFormCategoryItem, a2 as FFIDInquiryFormClassNames, a3 as FFIDInquiryFormLegalLayout, a4 as FFIDInquiryFormOrganization, a5 as FFIDInquiryFormPlaceholderContext, a6 as FFIDInquiryFormPrefill, a7 as FFIDInquiryFormProps, a8 as FFIDInquiryFormSubmitData, a9 as FFIDInquiryFormSubmitResult, aa as FFIDJwtClaims, ab as FFIDLoginButton, ac as FFIDMemberStatus, ad as FFIDOAuthTokenResponse, ae as FFIDOAuthUserInfoMemberRole, af as FFIDOAuthUserInfoSubscription, ag as FFIDOrganizationMember, ah as FFIDOrganizationSwitcher, ai as FFIDRedirectErrorCode, aj as FFIDSeatModel, ak as FFIDServiceAccessDenialReason, al as FFIDServiceAccessFailPolicy, am as FFIDSubscriptionBadge, an as FFIDTokenIntrospectionResponse, ao as FFIDUserMenu, ap as FFID_INQUIRY_CATEGORIES, aq as FFID_INQUIRY_CATEGORIES_SITE_2026, ar as UseFFIDAnnouncementsOptions, as as UseFFIDAnnouncementsReturn, at as isFFIDInquiryCategorySite2026, au as useFFIDAnnouncements } from './index-
|
|
1
|
+
import { F as FFIDSubscriptionStatus, a as FFIDConfig, b as FFIDApiResponse, c as FFIDSessionResponse, d as FFIDRedirectResult, e as FFIDError, f as FFIDSubscriptionCheckResponse, g as FFIDCheckServiceAccessParams, h as FFIDServiceAccessDecision, i as FFIDListMembersResponse, j as FFIDAddMemberParams, k as FFIDAddMemberResponse, l as FFIDAddMemberRequest, m as FFIDMemberRole, n as FFIDUpdateMemberRoleResponse, o as FFIDRemoveMemberResponse, p as FFIDProfileCallOptions, q as FFIDUserProfile, r as FFIDUpdateUserProfileRequest, s as FFIDAnalyticsConfig, t as FFIDCreateCheckoutParams, u as FFIDCheckoutSessionResponse, v as FFIDCreatePortalParams, w as FFIDPortalSessionResponse, x as FFIDVerifyAccessTokenOptions, y as FFIDOAuthUserInfo, z as FFIDInquiryCreateParams, A as FFIDInquiryCreateResponse, B as FFIDAuthMode, C as FFIDLogger, D as FFIDCacheAdapter, E as FFIDUser, G as FFIDOrganization, H as FFIDSubscription, I as FFIDSubscriptionContextValue, J as EffectiveSubscriptionStatus, K as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, M as FFIDAnnouncementsApiResponse, N as AnnouncementListResponse, O as FFIDAnnouncementsLogger } from './index-DfnHXRMX.js';
|
|
2
|
+
export { P as Announcement, Q as AnnouncementStatus, R as AnnouncementType, S as FFIDAnnouncementBadge, T as FFIDAnnouncementList, U as FFIDAnnouncementsError, V as FFIDAnnouncementsErrorCode, W as FFIDAnnouncementsServerResponse, X as FFIDAssignableMemberRole, Y as FFIDCacheConfig, Z as FFIDContextValue, _ as FFIDInquiryCategory, $ as FFIDInquiryCategorySite2026, a0 as FFIDInquiryForm, a1 as FFIDInquiryFormCategoryItem, a2 as FFIDInquiryFormClassNames, a3 as FFIDInquiryFormLegalLayout, a4 as FFIDInquiryFormOrganization, a5 as FFIDInquiryFormPlaceholderContext, a6 as FFIDInquiryFormPrefill, a7 as FFIDInquiryFormProps, a8 as FFIDInquiryFormSubmitData, a9 as FFIDInquiryFormSubmitResult, aa as FFIDJwtClaims, ab as FFIDLoginButton, ac as FFIDMemberStatus, ad as FFIDOAuthTokenResponse, ae as FFIDOAuthUserInfoMemberRole, af as FFIDOAuthUserInfoSubscription, ag as FFIDOrganizationMember, ah as FFIDOrganizationSwitcher, ai as FFIDRedirectErrorCode, aj as FFIDSeatModel, ak as FFIDServiceAccessDenialReason, al as FFIDServiceAccessFailPolicy, am as FFIDSubscriptionBadge, an as FFIDTokenIntrospectionResponse, ao as FFIDUserMenu, ap as FFID_INQUIRY_CATEGORIES, aq as FFID_INQUIRY_CATEGORIES_SITE_2026, ar as UseFFIDAnnouncementsOptions, as as UseFFIDAnnouncementsReturn, at as isFFIDInquiryCategorySite2026, au as useFFIDAnnouncements } from './index-DfnHXRMX.js';
|
|
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-Bt0f1gyo.js';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { ReactNode, ComponentType, FC } from 'react';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useFFIDContext, useSubscription } from './chunk-
|
|
2
|
-
export { DEFAULT_API_BASE_URL, DEFAULT_OAUTH_SCOPES, FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDProvider, FFIDSDKError, FFIDSubscriptionBadge, FFIDUserMenu, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_INQUIRY_CATEGORIES, FFID_INQUIRY_CATEGORIES_SITE_2026, computeEffectiveStatusFromSession, createFFIDAnnouncementsClient, createFFIDClient, createTokenStore, generateCodeChallenge, generateCodeVerifier, isFFIDInquiryCategorySite2026, normalizeRedirectUri, retrieveCodeVerifier, storeCodeVerifier, useFFID, useFFIDAnnouncements, useSubscription, withSubscription } from './chunk-
|
|
1
|
+
import { useFFIDContext, useSubscription } from './chunk-ARKFHB72.js';
|
|
2
|
+
export { DEFAULT_API_BASE_URL, DEFAULT_OAUTH_SCOPES, FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDProvider, FFIDSDKError, FFIDSubscriptionBadge, FFIDUserMenu, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_INQUIRY_CATEGORIES, FFID_INQUIRY_CATEGORIES_SITE_2026, computeEffectiveStatusFromSession, createFFIDAnnouncementsClient, createFFIDClient, createTokenStore, generateCodeChallenge, generateCodeVerifier, isFFIDInquiryCategorySite2026, normalizeRedirectUri, retrieveCodeVerifier, storeCodeVerifier, useFFID, useFFIDAnnouncements, useSubscription, withSubscription } from './chunk-ARKFHB72.js';
|
|
3
3
|
export { ALL_DENIED_EXCEPT_NECESSARY, CONSENT_COOKIE_NAME, CONSENT_DISMISSAL_TIMESTAMP_KEY, COOKIE_VERSION, DEFAULT_CONSENT_ERROR_MESSAGES, FFIDAnalyticsProvider, FFIDConsentError, FFIDCookieBanner, FFIDCookieLink, FFIDCookieSettings, FFID_CONSENT_ERROR_CODES, clearConsentDismissalTimestamp, decodeConsentCookie, encodeConsentCookie, readConsentCookie, readConsentDismissalTimestamp, useFFIDConsent, useFFIDConsentPreferences, writeConsentCookie, writeConsentDismissalTimestamp } from './chunk-IVKFKMLQ.js';
|
|
4
4
|
import { useEffect, useRef } from 'react';
|
|
5
5
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
package/dist/server/index.cjs
CHANGED
|
@@ -837,7 +837,7 @@ function createProfileMethods(deps) {
|
|
|
837
837
|
}
|
|
838
838
|
|
|
839
839
|
// src/client/version-check.ts
|
|
840
|
-
var SDK_VERSION = "5.3.
|
|
840
|
+
var SDK_VERSION = "5.3.1";
|
|
841
841
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
842
842
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
843
843
|
function sdkHeaders() {
|
package/dist/server/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FFIDLogger, a as FFIDError, b as FFIDCacheAdapter, c as FFIDVerifyAccessTokenOptions, d as FFIDApiResponse, e as FFIDOAuthUserInfo } from '../ffid-client-
|
|
2
|
-
export { f as FFIDAddMemberParams, g as FFIDAddMemberRequest, h as FFIDAddMemberResponse, i as FFIDAssignableMemberRole, j as FFIDCacheConfig, k as FFIDClient, l as FFIDConfig, m as FFIDListMembersResponse, n as FFIDMemberRole, o as FFIDOrganization, p as FFIDOrganizationMember, q as FFIDOtpSendResponse, r as FFIDOtpVerifyResponse, s as FFIDPasswordResetConfirmResponse, t as FFIDPasswordResetResponse, u as FFIDPasswordResetVerifyResponse, v as FFIDProfileCallOptions, w as FFIDRemoveMemberResponse, x as FFIDResetSessionResponse, y as FFIDSubscription, z as FFIDUpdateMemberRoleResponse, A as FFIDUpdateUserProfileRequest, B as FFIDUser, C as FFIDUserProfile, T as TokenData, D as TokenStore, E as createFFIDClient, G as createTokenStore } from '../ffid-client-
|
|
1
|
+
import { F as FFIDLogger, a as FFIDError, b as FFIDCacheAdapter, c as FFIDVerifyAccessTokenOptions, d as FFIDApiResponse, e as FFIDOAuthUserInfo } from '../ffid-client-CARfFhtf.cjs';
|
|
2
|
+
export { f as FFIDAddMemberParams, g as FFIDAddMemberRequest, h as FFIDAddMemberResponse, i as FFIDAssignableMemberRole, j as FFIDCacheConfig, k as FFIDClient, l as FFIDConfig, m as FFIDListMembersResponse, n as FFIDMemberRole, o as FFIDOrganization, p as FFIDOrganizationMember, q as FFIDOtpSendResponse, r as FFIDOtpVerifyResponse, s as FFIDPasswordResetConfirmResponse, t as FFIDPasswordResetResponse, u as FFIDPasswordResetVerifyResponse, v as FFIDProfileCallOptions, w as FFIDRemoveMemberResponse, x as FFIDResetSessionResponse, y as FFIDSubscription, z as FFIDUpdateMemberRoleResponse, A as FFIDUpdateUserProfileRequest, B as FFIDUser, C as FFIDUserProfile, T as TokenData, D as TokenStore, E as createFFIDClient, G as createTokenStore } from '../ffid-client-CARfFhtf.cjs';
|
|
3
3
|
export { D as DEFAULT_API_BASE_URL, a as DEFAULT_OAUTH_SCOPES } from '../constants-D61jqRIO.cjs';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import '../types-5g_Bg6Ey.cjs';
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FFIDLogger, a as FFIDError, b as FFIDCacheAdapter, c as FFIDVerifyAccessTokenOptions, d as FFIDApiResponse, e as FFIDOAuthUserInfo } from '../ffid-client-
|
|
2
|
-
export { f as FFIDAddMemberParams, g as FFIDAddMemberRequest, h as FFIDAddMemberResponse, i as FFIDAssignableMemberRole, j as FFIDCacheConfig, k as FFIDClient, l as FFIDConfig, m as FFIDListMembersResponse, n as FFIDMemberRole, o as FFIDOrganization, p as FFIDOrganizationMember, q as FFIDOtpSendResponse, r as FFIDOtpVerifyResponse, s as FFIDPasswordResetConfirmResponse, t as FFIDPasswordResetResponse, u as FFIDPasswordResetVerifyResponse, v as FFIDProfileCallOptions, w as FFIDRemoveMemberResponse, x as FFIDResetSessionResponse, y as FFIDSubscription, z as FFIDUpdateMemberRoleResponse, A as FFIDUpdateUserProfileRequest, B as FFIDUser, C as FFIDUserProfile, T as TokenData, D as TokenStore, E as createFFIDClient, G as createTokenStore } from '../ffid-client-
|
|
1
|
+
import { F as FFIDLogger, a as FFIDError, b as FFIDCacheAdapter, c as FFIDVerifyAccessTokenOptions, d as FFIDApiResponse, e as FFIDOAuthUserInfo } from '../ffid-client-w1s-JnFf.js';
|
|
2
|
+
export { f as FFIDAddMemberParams, g as FFIDAddMemberRequest, h as FFIDAddMemberResponse, i as FFIDAssignableMemberRole, j as FFIDCacheConfig, k as FFIDClient, l as FFIDConfig, m as FFIDListMembersResponse, n as FFIDMemberRole, o as FFIDOrganization, p as FFIDOrganizationMember, q as FFIDOtpSendResponse, r as FFIDOtpVerifyResponse, s as FFIDPasswordResetConfirmResponse, t as FFIDPasswordResetResponse, u as FFIDPasswordResetVerifyResponse, v as FFIDProfileCallOptions, w as FFIDRemoveMemberResponse, x as FFIDResetSessionResponse, y as FFIDSubscription, z as FFIDUpdateMemberRoleResponse, A as FFIDUpdateUserProfileRequest, B as FFIDUser, C as FFIDUserProfile, T as TokenData, D as TokenStore, E as createFFIDClient, G as createTokenStore } from '../ffid-client-w1s-JnFf.js';
|
|
3
3
|
export { D as DEFAULT_API_BASE_URL, a as DEFAULT_OAUTH_SCOPES } from '../constants-D61jqRIO.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import '../types-5g_Bg6Ey.js';
|
package/dist/server/index.js
CHANGED
|
@@ -836,7 +836,7 @@ function createProfileMethods(deps) {
|
|
|
836
836
|
}
|
|
837
837
|
|
|
838
838
|
// src/client/version-check.ts
|
|
839
|
-
var SDK_VERSION = "5.3.
|
|
839
|
+
var SDK_VERSION = "5.3.1";
|
|
840
840
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
841
841
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
842
842
|
function sdkHeaders() {
|