@feelflow/ffid-sdk 2.9.0 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-2LD6Y65W.cjs → chunk-55KLWKM7.cjs} +8 -1
- package/dist/{chunk-5SD6KOYJ.js → chunk-6DYAJ6IJ.js} +8 -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/{index-R2ALICqm.d.cts → index-BSuGxrqG.d.cts} +25 -2
- package/dist/{index-R2ALICqm.d.ts → index-BSuGxrqG.d.ts} +25 -2
- package/dist/index.cjs +24 -24
- 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.js +1 -1
- package/package.json +1 -1
|
@@ -621,7 +621,7 @@ function createMembersMethods(deps) {
|
|
|
621
621
|
}
|
|
622
622
|
|
|
623
623
|
// src/client/version-check.ts
|
|
624
|
-
var SDK_VERSION = "2.
|
|
624
|
+
var SDK_VERSION = "2.10.0";
|
|
625
625
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
626
626
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
627
627
|
function sdkHeaders() {
|
|
@@ -3514,6 +3514,7 @@ function FFIDInquiryForm({
|
|
|
3514
3514
|
onSubmit,
|
|
3515
3515
|
onChange,
|
|
3516
3516
|
separateLegalCheckboxes = false,
|
|
3517
|
+
messagePlaceholder,
|
|
3517
3518
|
locale = "ja",
|
|
3518
3519
|
className
|
|
3519
3520
|
}) {
|
|
@@ -3551,6 +3552,11 @@ function FFIDInquiryForm({
|
|
|
3551
3552
|
const [submitting, setSubmitting] = react.useState(false);
|
|
3552
3553
|
const [formError, setFormError] = react.useState(null);
|
|
3553
3554
|
const [successMessage, setSuccessMessage] = react.useState(null);
|
|
3555
|
+
const resolvedMessagePlaceholder = react.useMemo(() => {
|
|
3556
|
+
if (messagePlaceholder === void 0) return void 0;
|
|
3557
|
+
if (typeof messagePlaceholder === "string") return messagePlaceholder;
|
|
3558
|
+
return messagePlaceholder({ category });
|
|
3559
|
+
}, [messagePlaceholder, category]);
|
|
3554
3560
|
const [hydrated, setHydrated] = react.useState(false);
|
|
3555
3561
|
react.useEffect(() => {
|
|
3556
3562
|
setHydrated(true);
|
|
@@ -3780,6 +3786,7 @@ function FFIDInquiryForm({
|
|
|
3780
3786
|
style: { ...inputStyle, minHeight: 180, resize: "vertical" },
|
|
3781
3787
|
value: message,
|
|
3782
3788
|
onChange: (e) => setMessage(e.target.value),
|
|
3789
|
+
placeholder: resolvedMessagePlaceholder,
|
|
3783
3790
|
required: true,
|
|
3784
3791
|
maxLength: 1e4
|
|
3785
3792
|
}
|
|
@@ -619,7 +619,7 @@ function createMembersMethods(deps) {
|
|
|
619
619
|
}
|
|
620
620
|
|
|
621
621
|
// src/client/version-check.ts
|
|
622
|
-
var SDK_VERSION = "2.
|
|
622
|
+
var SDK_VERSION = "2.10.0";
|
|
623
623
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
624
624
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
625
625
|
function sdkHeaders() {
|
|
@@ -3512,6 +3512,7 @@ function FFIDInquiryForm({
|
|
|
3512
3512
|
onSubmit,
|
|
3513
3513
|
onChange,
|
|
3514
3514
|
separateLegalCheckboxes = false,
|
|
3515
|
+
messagePlaceholder,
|
|
3515
3516
|
locale = "ja",
|
|
3516
3517
|
className
|
|
3517
3518
|
}) {
|
|
@@ -3549,6 +3550,11 @@ function FFIDInquiryForm({
|
|
|
3549
3550
|
const [submitting, setSubmitting] = useState(false);
|
|
3550
3551
|
const [formError, setFormError] = useState(null);
|
|
3551
3552
|
const [successMessage, setSuccessMessage] = useState(null);
|
|
3553
|
+
const resolvedMessagePlaceholder = useMemo(() => {
|
|
3554
|
+
if (messagePlaceholder === void 0) return void 0;
|
|
3555
|
+
if (typeof messagePlaceholder === "string") return messagePlaceholder;
|
|
3556
|
+
return messagePlaceholder({ category });
|
|
3557
|
+
}, [messagePlaceholder, category]);
|
|
3552
3558
|
const [hydrated, setHydrated] = useState(false);
|
|
3553
3559
|
useEffect(() => {
|
|
3554
3560
|
setHydrated(true);
|
|
@@ -3778,6 +3784,7 @@ function FFIDInquiryForm({
|
|
|
3778
3784
|
style: { ...inputStyle, minHeight: 180, resize: "vertical" },
|
|
3779
3785
|
value: message,
|
|
3780
3786
|
onChange: (e) => setMessage(e.target.value),
|
|
3787
|
+
placeholder: resolvedMessagePlaceholder,
|
|
3781
3788
|
required: true,
|
|
3782
3789
|
maxLength: 1e4
|
|
3783
3790
|
}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk55KLWKM7_cjs = require('../chunk-55KLWKM7.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 chunk55KLWKM7_cjs.FFIDAnnouncementBadge; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "FFIDAnnouncementList", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk55KLWKM7_cjs.FFIDAnnouncementList; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "FFIDInquiryForm", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk55KLWKM7_cjs.FFIDInquiryForm; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "FFIDLoginButton", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk55KLWKM7_cjs.FFIDLoginButton; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "FFIDOrganizationSwitcher", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk55KLWKM7_cjs.FFIDOrganizationSwitcher; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "FFIDSubscriptionBadge", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk55KLWKM7_cjs.FFIDSubscriptionBadge; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "FFIDUserMenu", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk55KLWKM7_cjs.FFIDUserMenu; }
|
|
34
34
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { H as FFIDAnnouncementBadge,
|
|
1
|
+
export { H as FFIDAnnouncementBadge, ac as FFIDAnnouncementBadgeClassNames, ad as FFIDAnnouncementBadgeProps, I as FFIDAnnouncementList, ae as FFIDAnnouncementListClassNames, af as FFIDAnnouncementListProps, Q as FFIDInquiryForm, R as FFIDInquiryFormCategoryItem, S as FFIDInquiryFormOrganization, T as FFIDInquiryFormPlaceholderContext, U as FFIDInquiryFormPrefill, V as FFIDInquiryFormProps, W as FFIDInquiryFormSubmitData, X as FFIDInquiryFormSubmitResult, Z as FFIDLoginButton, ag as FFIDLoginButtonProps, a3 as FFIDOrganizationSwitcher, ah as FFIDOrganizationSwitcherClassNames, ai as FFIDOrganizationSwitcherProps, a5 as FFIDSubscriptionBadge, aj as FFIDSubscriptionBadgeClassNames, ak as FFIDSubscriptionBadgeProps, a7 as FFIDUserMenu, al as FFIDUserMenuClassNames, am as FFIDUserMenuProps } from '../index-BSuGxrqG.cjs';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { H as FFIDAnnouncementBadge,
|
|
1
|
+
export { H as FFIDAnnouncementBadge, ac as FFIDAnnouncementBadgeClassNames, ad as FFIDAnnouncementBadgeProps, I as FFIDAnnouncementList, ae as FFIDAnnouncementListClassNames, af as FFIDAnnouncementListProps, Q as FFIDInquiryForm, R as FFIDInquiryFormCategoryItem, S as FFIDInquiryFormOrganization, T as FFIDInquiryFormPlaceholderContext, U as FFIDInquiryFormPrefill, V as FFIDInquiryFormProps, W as FFIDInquiryFormSubmitData, X as FFIDInquiryFormSubmitResult, Z as FFIDLoginButton, ag as FFIDLoginButtonProps, a3 as FFIDOrganizationSwitcher, ah as FFIDOrganizationSwitcherClassNames, ai as FFIDOrganizationSwitcherProps, a5 as FFIDSubscriptionBadge, aj as FFIDSubscriptionBadgeClassNames, ak as FFIDSubscriptionBadgeProps, a7 as FFIDUserMenu, al as FFIDUserMenuClassNames, am as FFIDUserMenuProps } from '../index-BSuGxrqG.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-6DYAJ6IJ.js';
|
|
@@ -993,9 +993,32 @@ interface FFIDInquiryFormProps {
|
|
|
993
993
|
* single-checkbox behavior from SDK ≤ 2.8.
|
|
994
994
|
*/
|
|
995
995
|
separateLegalCheckboxes?: boolean;
|
|
996
|
+
/**
|
|
997
|
+
* Overrides the `<textarea>` placeholder. A plain string is applied
|
|
998
|
+
* verbatim; a function is called with the currently selected category
|
|
999
|
+
* so consumers can vary the copy per selection (e.g. different hint
|
|
1000
|
+
* text for "sales" vs "support"). The SDK memoizes the resolved
|
|
1001
|
+
* placeholder keyed on `category` and the `messagePlaceholder`
|
|
1002
|
+
* identity, so the function typically re-runs only when the user
|
|
1003
|
+
* picks a different category or the prop reference changes — keep it
|
|
1004
|
+
* cheap and pure so that contract is safe to rely on.
|
|
1005
|
+
*
|
|
1006
|
+
* When omitted, no `placeholder` attribute is emitted (SDK ≤ 2.9
|
|
1007
|
+
* behavior).
|
|
1008
|
+
*/
|
|
1009
|
+
messagePlaceholder?: string | ((ctx: FFIDInquiryFormPlaceholderContext) => string);
|
|
996
1010
|
locale?: 'ja' | 'en';
|
|
997
1011
|
className?: string;
|
|
998
1012
|
}
|
|
999
|
-
|
|
1013
|
+
/**
|
|
1014
|
+
* Context passed to a function-form `messagePlaceholder`. `category` is
|
|
1015
|
+
* typed `string | null` so a future unselected-state can be introduced
|
|
1016
|
+
* without breaking consumers, even though the current form always has a
|
|
1017
|
+
* non-null category value selected.
|
|
1018
|
+
*/
|
|
1019
|
+
interface FFIDInquiryFormPlaceholderContext {
|
|
1020
|
+
category: string | null;
|
|
1021
|
+
}
|
|
1022
|
+
declare function FFIDInquiryForm({ mode, prefill, organizations, preselectedOrganizationId, categories, termsVersion, privacyVersion, termsHref, privacyHref, turnstileToken, turnstileSlot, onSubmit, onChange, separateLegalCheckboxes, messagePlaceholder, locale, className, }: FFIDInquiryFormProps): react_jsx_runtime.JSX.Element;
|
|
1000
1023
|
|
|
1001
|
-
export { type
|
|
1024
|
+
export { type FFIDOAuthTokenResponse as $, type FFIDAnnouncementsApiResponse as A, type AnnouncementListResponse as B, type FFIDAnnouncementsLogger as C, type Announcement as D, type AnnouncementStatus as E, type FFIDSubscriptionStatus as F, type AnnouncementType as G, FFIDAnnouncementBadge as H, FFIDAnnouncementList as I, type FFIDAnnouncementsError as J, type FFIDAnnouncementsErrorCode as K, type ListAnnouncementsOptions as L, type FFIDAnnouncementsServerResponse as M, type FFIDCacheConfig as N, type FFIDContextValue as O, type FFIDInquiryCategory as P, FFIDInquiryForm as Q, type FFIDInquiryFormCategoryItem as R, type FFIDInquiryFormOrganization as S, type FFIDInquiryFormPlaceholderContext as T, type FFIDInquiryFormPrefill as U, type FFIDInquiryFormProps as V, type FFIDInquiryFormSubmitData as W, type FFIDInquiryFormSubmitResult as X, type FFIDJwtClaims as Y, FFIDLoginButton as Z, type FFIDMemberStatus as _, type FFIDConfig as a, type FFIDOAuthUserInfoMemberRole as a0, type FFIDOAuthUserInfoSubscription as a1, type FFIDOrganizationMember as a2, FFIDOrganizationSwitcher as a3, type FFIDSeatModel as a4, FFIDSubscriptionBadge as a5, type FFIDTokenIntrospectionResponse as a6, FFIDUserMenu as a7, FFID_INQUIRY_CATEGORIES as a8, type UseFFIDAnnouncementsOptions as a9, type UseFFIDAnnouncementsReturn as aa, useFFIDAnnouncements as ab, type FFIDAnnouncementBadgeClassNames as ac, type FFIDAnnouncementBadgeProps as ad, type FFIDAnnouncementListClassNames as ae, type FFIDAnnouncementListProps as af, type FFIDLoginButtonProps as ag, type FFIDOrganizationSwitcherClassNames as ah, type FFIDOrganizationSwitcherProps as ai, type FFIDSubscriptionBadgeClassNames as aj, type FFIDSubscriptionBadgeProps as ak, type FFIDUserMenuClassNames as al, type FFIDUserMenuProps as am, type FFIDApiResponse as b, type FFIDSessionResponse as c, type FFIDRedirectResult as d, type FFIDError as e, type FFIDSubscriptionCheckResponse as f, type FFIDListMembersResponse as g, type FFIDMemberRole as h, type FFIDUpdateMemberRoleResponse as i, type FFIDRemoveMemberResponse as j, type FFIDCreateCheckoutParams as k, type FFIDCheckoutSessionResponse as l, type FFIDCreatePortalParams as m, type FFIDPortalSessionResponse as n, type FFIDVerifyAccessTokenOptions as o, type FFIDOAuthUserInfo as p, type FFIDInquiryCreateParams as q, type FFIDInquiryCreateResponse as r, type FFIDAuthMode as s, type FFIDLogger as t, type FFIDCacheAdapter as u, type FFIDUser as v, type FFIDOrganization as w, type FFIDSubscription as x, type FFIDSubscriptionContextValue as y, type FFIDAnnouncementsClientConfig as z };
|
|
@@ -993,9 +993,32 @@ interface FFIDInquiryFormProps {
|
|
|
993
993
|
* single-checkbox behavior from SDK ≤ 2.8.
|
|
994
994
|
*/
|
|
995
995
|
separateLegalCheckboxes?: boolean;
|
|
996
|
+
/**
|
|
997
|
+
* Overrides the `<textarea>` placeholder. A plain string is applied
|
|
998
|
+
* verbatim; a function is called with the currently selected category
|
|
999
|
+
* so consumers can vary the copy per selection (e.g. different hint
|
|
1000
|
+
* text for "sales" vs "support"). The SDK memoizes the resolved
|
|
1001
|
+
* placeholder keyed on `category` and the `messagePlaceholder`
|
|
1002
|
+
* identity, so the function typically re-runs only when the user
|
|
1003
|
+
* picks a different category or the prop reference changes — keep it
|
|
1004
|
+
* cheap and pure so that contract is safe to rely on.
|
|
1005
|
+
*
|
|
1006
|
+
* When omitted, no `placeholder` attribute is emitted (SDK ≤ 2.9
|
|
1007
|
+
* behavior).
|
|
1008
|
+
*/
|
|
1009
|
+
messagePlaceholder?: string | ((ctx: FFIDInquiryFormPlaceholderContext) => string);
|
|
996
1010
|
locale?: 'ja' | 'en';
|
|
997
1011
|
className?: string;
|
|
998
1012
|
}
|
|
999
|
-
|
|
1013
|
+
/**
|
|
1014
|
+
* Context passed to a function-form `messagePlaceholder`. `category` is
|
|
1015
|
+
* typed `string | null` so a future unselected-state can be introduced
|
|
1016
|
+
* without breaking consumers, even though the current form always has a
|
|
1017
|
+
* non-null category value selected.
|
|
1018
|
+
*/
|
|
1019
|
+
interface FFIDInquiryFormPlaceholderContext {
|
|
1020
|
+
category: string | null;
|
|
1021
|
+
}
|
|
1022
|
+
declare function FFIDInquiryForm({ mode, prefill, organizations, preselectedOrganizationId, categories, termsVersion, privacyVersion, termsHref, privacyHref, turnstileToken, turnstileSlot, onSubmit, onChange, separateLegalCheckboxes, messagePlaceholder, locale, className, }: FFIDInquiryFormProps): react_jsx_runtime.JSX.Element;
|
|
1000
1023
|
|
|
1001
|
-
export { type
|
|
1024
|
+
export { type FFIDOAuthTokenResponse as $, type FFIDAnnouncementsApiResponse as A, type AnnouncementListResponse as B, type FFIDAnnouncementsLogger as C, type Announcement as D, type AnnouncementStatus as E, type FFIDSubscriptionStatus as F, type AnnouncementType as G, FFIDAnnouncementBadge as H, FFIDAnnouncementList as I, type FFIDAnnouncementsError as J, type FFIDAnnouncementsErrorCode as K, type ListAnnouncementsOptions as L, type FFIDAnnouncementsServerResponse as M, type FFIDCacheConfig as N, type FFIDContextValue as O, type FFIDInquiryCategory as P, FFIDInquiryForm as Q, type FFIDInquiryFormCategoryItem as R, type FFIDInquiryFormOrganization as S, type FFIDInquiryFormPlaceholderContext as T, type FFIDInquiryFormPrefill as U, type FFIDInquiryFormProps as V, type FFIDInquiryFormSubmitData as W, type FFIDInquiryFormSubmitResult as X, type FFIDJwtClaims as Y, FFIDLoginButton as Z, type FFIDMemberStatus as _, type FFIDConfig as a, type FFIDOAuthUserInfoMemberRole as a0, type FFIDOAuthUserInfoSubscription as a1, type FFIDOrganizationMember as a2, FFIDOrganizationSwitcher as a3, type FFIDSeatModel as a4, FFIDSubscriptionBadge as a5, type FFIDTokenIntrospectionResponse as a6, FFIDUserMenu as a7, FFID_INQUIRY_CATEGORIES as a8, type UseFFIDAnnouncementsOptions as a9, type UseFFIDAnnouncementsReturn as aa, useFFIDAnnouncements as ab, type FFIDAnnouncementBadgeClassNames as ac, type FFIDAnnouncementBadgeProps as ad, type FFIDAnnouncementListClassNames as ae, type FFIDAnnouncementListProps as af, type FFIDLoginButtonProps as ag, type FFIDOrganizationSwitcherClassNames as ah, type FFIDOrganizationSwitcherProps as ai, type FFIDSubscriptionBadgeClassNames as aj, type FFIDSubscriptionBadgeProps as ak, type FFIDUserMenuClassNames as al, type FFIDUserMenuProps as am, type FFIDApiResponse as b, type FFIDSessionResponse as c, type FFIDRedirectResult as d, type FFIDError as e, type FFIDSubscriptionCheckResponse as f, type FFIDListMembersResponse as g, type FFIDMemberRole as h, type FFIDUpdateMemberRoleResponse as i, type FFIDRemoveMemberResponse as j, type FFIDCreateCheckoutParams as k, type FFIDCheckoutSessionResponse as l, type FFIDCreatePortalParams as m, type FFIDPortalSessionResponse as n, type FFIDVerifyAccessTokenOptions as o, type FFIDOAuthUserInfo as p, type FFIDInquiryCreateParams as q, type FFIDInquiryCreateResponse as r, type FFIDAuthMode as s, type FFIDLogger as t, type FFIDCacheAdapter as u, type FFIDUser as v, type FFIDOrganization as w, type FFIDSubscription as x, type FFIDSubscriptionContextValue as y, type FFIDAnnouncementsClientConfig as z };
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk55KLWKM7_cjs = require('./chunk-55KLWKM7.cjs');
|
|
4
4
|
var react = require('react');
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
|
|
@@ -46,7 +46,7 @@ function createKVCacheAdapter(kv) {
|
|
|
46
46
|
}
|
|
47
47
|
function withFFIDAuth(Component, options = {}) {
|
|
48
48
|
const WrappedComponent = (props) => {
|
|
49
|
-
const { isLoading, isAuthenticated, login } =
|
|
49
|
+
const { isLoading, isAuthenticated, login } = chunk55KLWKM7_cjs.useFFIDContext();
|
|
50
50
|
const hasRedirected = react.useRef(false);
|
|
51
51
|
react.useEffect(() => {
|
|
52
52
|
if (!isLoading && !isAuthenticated && options.redirectToLogin && !hasRedirected.current) {
|
|
@@ -74,91 +74,91 @@ var FFID_NEWSLETTER_TYPES = ["inquiry_followup", "general"];
|
|
|
74
74
|
|
|
75
75
|
Object.defineProperty(exports, "DEFAULT_API_BASE_URL", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunk55KLWKM7_cjs.DEFAULT_API_BASE_URL; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "FFIDAnnouncementBadge", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunk55KLWKM7_cjs.FFIDAnnouncementBadge; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "FFIDAnnouncementList", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunk55KLWKM7_cjs.FFIDAnnouncementList; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "FFIDInquiryForm", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunk55KLWKM7_cjs.FFIDInquiryForm; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "FFIDLoginButton", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunk55KLWKM7_cjs.FFIDLoginButton; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "FFIDOrganizationSwitcher", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunk55KLWKM7_cjs.FFIDOrganizationSwitcher; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "FFIDProvider", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunk55KLWKM7_cjs.FFIDProvider; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "FFIDSubscriptionBadge", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunk55KLWKM7_cjs.FFIDSubscriptionBadge; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "FFIDUserMenu", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunk55KLWKM7_cjs.FFIDUserMenu; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "FFID_ANNOUNCEMENTS_ERROR_CODES", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunk55KLWKM7_cjs.FFID_ANNOUNCEMENTS_ERROR_CODES; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "FFID_INQUIRY_CATEGORIES", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunk55KLWKM7_cjs.FFID_INQUIRY_CATEGORIES; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "createFFIDAnnouncementsClient", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunk55KLWKM7_cjs.createFFIDAnnouncementsClient; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "createFFIDClient", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunk55KLWKM7_cjs.createFFIDClient; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "createTokenStore", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunk55KLWKM7_cjs.createTokenStore; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "generateCodeChallenge", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunk55KLWKM7_cjs.generateCodeChallenge; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "generateCodeVerifier", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunk55KLWKM7_cjs.generateCodeVerifier; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "retrieveCodeVerifier", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunk55KLWKM7_cjs.retrieveCodeVerifier; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "storeCodeVerifier", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunk55KLWKM7_cjs.storeCodeVerifier; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "useFFID", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunk55KLWKM7_cjs.useFFID; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "useFFIDAnnouncements", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunk55KLWKM7_cjs.useFFIDAnnouncements; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "useSubscription", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunk55KLWKM7_cjs.useSubscription; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "withSubscription", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunk55KLWKM7_cjs.withSubscription; }
|
|
162
162
|
});
|
|
163
163
|
exports.FFID_NEWSLETTER_TYPES = FFID_NEWSLETTER_TYPES;
|
|
164
164
|
exports.createKVCacheAdapter = createKVCacheAdapter;
|
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 FFIDListMembersResponse, h as FFIDMemberRole, i as FFIDUpdateMemberRoleResponse, j as FFIDRemoveMemberResponse, k as FFIDCreateCheckoutParams, l as FFIDCheckoutSessionResponse, m as FFIDCreatePortalParams, n as FFIDPortalSessionResponse, o as FFIDVerifyAccessTokenOptions, p as FFIDOAuthUserInfo, q as FFIDInquiryCreateParams, r as FFIDInquiryCreateResponse, s as FFIDAuthMode, t as FFIDLogger, u as FFIDCacheAdapter, v as FFIDUser, w as FFIDOrganization, x as FFIDSubscription, y as FFIDSubscriptionContextValue, z as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, A as FFIDAnnouncementsApiResponse, B as AnnouncementListResponse, C as FFIDAnnouncementsLogger } from './index-
|
|
2
|
-
export { D as Announcement, E as AnnouncementStatus, G as AnnouncementType, H as FFIDAnnouncementBadge, I as FFIDAnnouncementList, J as FFIDAnnouncementsError, K as FFIDAnnouncementsErrorCode, M as FFIDAnnouncementsServerResponse, N as FFIDCacheConfig, O as FFIDContextValue, P as FFIDInquiryCategory, Q as FFIDInquiryForm, R as FFIDInquiryFormCategoryItem, S as FFIDInquiryFormOrganization, T as
|
|
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 FFIDListMembersResponse, h as FFIDMemberRole, i as FFIDUpdateMemberRoleResponse, j as FFIDRemoveMemberResponse, k as FFIDCreateCheckoutParams, l as FFIDCheckoutSessionResponse, m as FFIDCreatePortalParams, n as FFIDPortalSessionResponse, o as FFIDVerifyAccessTokenOptions, p as FFIDOAuthUserInfo, q as FFIDInquiryCreateParams, r as FFIDInquiryCreateResponse, s as FFIDAuthMode, t as FFIDLogger, u as FFIDCacheAdapter, v as FFIDUser, w as FFIDOrganization, x as FFIDSubscription, y as FFIDSubscriptionContextValue, z as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, A as FFIDAnnouncementsApiResponse, B as AnnouncementListResponse, C as FFIDAnnouncementsLogger } from './index-BSuGxrqG.cjs';
|
|
2
|
+
export { D as Announcement, E as AnnouncementStatus, G as AnnouncementType, H as FFIDAnnouncementBadge, I as FFIDAnnouncementList, J as FFIDAnnouncementsError, K as FFIDAnnouncementsErrorCode, M as FFIDAnnouncementsServerResponse, N as FFIDCacheConfig, O as FFIDContextValue, P as FFIDInquiryCategory, Q as FFIDInquiryForm, R as FFIDInquiryFormCategoryItem, S as FFIDInquiryFormOrganization, T as FFIDInquiryFormPlaceholderContext, U as FFIDInquiryFormPrefill, V as FFIDInquiryFormProps, W as FFIDInquiryFormSubmitData, X as FFIDInquiryFormSubmitResult, Y as FFIDJwtClaims, Z as FFIDLoginButton, _ as FFIDMemberStatus, $ as FFIDOAuthTokenResponse, a0 as FFIDOAuthUserInfoMemberRole, a1 as FFIDOAuthUserInfoSubscription, a2 as FFIDOrganizationMember, a3 as FFIDOrganizationSwitcher, a4 as FFIDSeatModel, a5 as FFIDSubscriptionBadge, a6 as FFIDTokenIntrospectionResponse, a7 as FFIDUserMenu, a8 as FFID_INQUIRY_CATEGORIES, a9 as UseFFIDAnnouncementsOptions, aa as UseFFIDAnnouncementsReturn, ab as useFFIDAnnouncements } from './index-BSuGxrqG.cjs';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { ReactNode, ComponentType, FC } from 'react';
|
|
5
5
|
|
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 FFIDListMembersResponse, h as FFIDMemberRole, i as FFIDUpdateMemberRoleResponse, j as FFIDRemoveMemberResponse, k as FFIDCreateCheckoutParams, l as FFIDCheckoutSessionResponse, m as FFIDCreatePortalParams, n as FFIDPortalSessionResponse, o as FFIDVerifyAccessTokenOptions, p as FFIDOAuthUserInfo, q as FFIDInquiryCreateParams, r as FFIDInquiryCreateResponse, s as FFIDAuthMode, t as FFIDLogger, u as FFIDCacheAdapter, v as FFIDUser, w as FFIDOrganization, x as FFIDSubscription, y as FFIDSubscriptionContextValue, z as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, A as FFIDAnnouncementsApiResponse, B as AnnouncementListResponse, C as FFIDAnnouncementsLogger } from './index-
|
|
2
|
-
export { D as Announcement, E as AnnouncementStatus, G as AnnouncementType, H as FFIDAnnouncementBadge, I as FFIDAnnouncementList, J as FFIDAnnouncementsError, K as FFIDAnnouncementsErrorCode, M as FFIDAnnouncementsServerResponse, N as FFIDCacheConfig, O as FFIDContextValue, P as FFIDInquiryCategory, Q as FFIDInquiryForm, R as FFIDInquiryFormCategoryItem, S as FFIDInquiryFormOrganization, T as
|
|
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 FFIDListMembersResponse, h as FFIDMemberRole, i as FFIDUpdateMemberRoleResponse, j as FFIDRemoveMemberResponse, k as FFIDCreateCheckoutParams, l as FFIDCheckoutSessionResponse, m as FFIDCreatePortalParams, n as FFIDPortalSessionResponse, o as FFIDVerifyAccessTokenOptions, p as FFIDOAuthUserInfo, q as FFIDInquiryCreateParams, r as FFIDInquiryCreateResponse, s as FFIDAuthMode, t as FFIDLogger, u as FFIDCacheAdapter, v as FFIDUser, w as FFIDOrganization, x as FFIDSubscription, y as FFIDSubscriptionContextValue, z as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, A as FFIDAnnouncementsApiResponse, B as AnnouncementListResponse, C as FFIDAnnouncementsLogger } from './index-BSuGxrqG.js';
|
|
2
|
+
export { D as Announcement, E as AnnouncementStatus, G as AnnouncementType, H as FFIDAnnouncementBadge, I as FFIDAnnouncementList, J as FFIDAnnouncementsError, K as FFIDAnnouncementsErrorCode, M as FFIDAnnouncementsServerResponse, N as FFIDCacheConfig, O as FFIDContextValue, P as FFIDInquiryCategory, Q as FFIDInquiryForm, R as FFIDInquiryFormCategoryItem, S as FFIDInquiryFormOrganization, T as FFIDInquiryFormPlaceholderContext, U as FFIDInquiryFormPrefill, V as FFIDInquiryFormProps, W as FFIDInquiryFormSubmitData, X as FFIDInquiryFormSubmitResult, Y as FFIDJwtClaims, Z as FFIDLoginButton, _ as FFIDMemberStatus, $ as FFIDOAuthTokenResponse, a0 as FFIDOAuthUserInfoMemberRole, a1 as FFIDOAuthUserInfoSubscription, a2 as FFIDOrganizationMember, a3 as FFIDOrganizationSwitcher, a4 as FFIDSeatModel, a5 as FFIDSubscriptionBadge, a6 as FFIDTokenIntrospectionResponse, a7 as FFIDUserMenu, a8 as FFID_INQUIRY_CATEGORIES, a9 as UseFFIDAnnouncementsOptions, aa as UseFFIDAnnouncementsReturn, ab as useFFIDAnnouncements } from './index-BSuGxrqG.js';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { ReactNode, ComponentType, FC } from 'react';
|
|
5
5
|
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useFFIDContext } from './chunk-
|
|
2
|
-
export { DEFAULT_API_BASE_URL, FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDProvider, FFIDSubscriptionBadge, FFIDUserMenu, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_INQUIRY_CATEGORIES, createFFIDAnnouncementsClient, createFFIDClient, createTokenStore, generateCodeChallenge, generateCodeVerifier, retrieveCodeVerifier, storeCodeVerifier, useFFID, useFFIDAnnouncements, useSubscription, withSubscription } from './chunk-
|
|
1
|
+
import { useFFIDContext } from './chunk-6DYAJ6IJ.js';
|
|
2
|
+
export { DEFAULT_API_BASE_URL, FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDProvider, FFIDSubscriptionBadge, FFIDUserMenu, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_INQUIRY_CATEGORIES, createFFIDAnnouncementsClient, createFFIDClient, createTokenStore, generateCodeChallenge, generateCodeVerifier, retrieveCodeVerifier, storeCodeVerifier, useFFID, useFFIDAnnouncements, useSubscription, withSubscription } from './chunk-6DYAJ6IJ.js';
|
|
3
3
|
import { useRef, useEffect } from 'react';
|
|
4
4
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
|
package/dist/server/index.cjs
CHANGED
|
@@ -617,7 +617,7 @@ function createMembersMethods(deps) {
|
|
|
617
617
|
}
|
|
618
618
|
|
|
619
619
|
// src/client/version-check.ts
|
|
620
|
-
var SDK_VERSION = "2.
|
|
620
|
+
var SDK_VERSION = "2.10.0";
|
|
621
621
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
622
622
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
623
623
|
function sdkHeaders() {
|
package/dist/server/index.js
CHANGED
|
@@ -616,7 +616,7 @@ function createMembersMethods(deps) {
|
|
|
616
616
|
}
|
|
617
617
|
|
|
618
618
|
// src/client/version-check.ts
|
|
619
|
-
var SDK_VERSION = "2.
|
|
619
|
+
var SDK_VERSION = "2.10.0";
|
|
620
620
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
621
621
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
622
622
|
function sdkHeaders() {
|