@feelflow/ffid-sdk 2.9.0 → 2.11.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-5SD6KOYJ.js → chunk-2OAFWUEL.js} +229 -180
- package/dist/{chunk-2LD6Y65W.cjs → chunk-BEHDXUB2.cjs} +229 -180
- 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-BuT9VaRt.d.cts} +137 -29
- package/dist/{index-R2ALICqm.d.ts → index-BuT9VaRt.d.ts} +137 -29
- 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
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { H as FFIDAnnouncementBadge,
|
|
1
|
+
export { H as FFIDAnnouncementBadge, ad as FFIDAnnouncementBadgeClassNames, ae as FFIDAnnouncementBadgeProps, I as FFIDAnnouncementList, af as FFIDAnnouncementListClassNames, ag as FFIDAnnouncementListProps, Q as FFIDInquiryForm, R as FFIDInquiryFormCategoryItem, S as FFIDInquiryFormClassNames, T as FFIDInquiryFormOrganization, U as FFIDInquiryFormPlaceholderContext, V as FFIDInquiryFormPrefill, W as FFIDInquiryFormProps, X as FFIDInquiryFormSubmitData, Y as FFIDInquiryFormSubmitResult, _ as FFIDLoginButton, ah as FFIDLoginButtonProps, a4 as FFIDOrganizationSwitcher, ai as FFIDOrganizationSwitcherClassNames, aj as FFIDOrganizationSwitcherProps, a6 as FFIDSubscriptionBadge, ak as FFIDSubscriptionBadgeClassNames, al as FFIDSubscriptionBadgeProps, a8 as FFIDUserMenu, am as FFIDUserMenuClassNames, an as FFIDUserMenuProps } from '../index-BuT9VaRt.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-2OAFWUEL.js';
|
|
@@ -886,6 +886,85 @@ interface FFIDAnnouncementListProps {
|
|
|
886
886
|
*/
|
|
887
887
|
declare function FFIDAnnouncementList({ announcements, isLoading, className, classNames, style, formatDate, emptyMessage, loadingRender, renderItem, maxContentLines, }: FFIDAnnouncementListProps): react_jsx_runtime.JSX.Element;
|
|
888
888
|
|
|
889
|
+
/**
|
|
890
|
+
* Internals shared with the `FFIDInquiryForm` component.
|
|
891
|
+
*
|
|
892
|
+
* Split out of `FFIDInquiryForm.tsx` to keep that file under the repo's
|
|
893
|
+
* hard file-size limit. Everything exported here is part of the SDK's
|
|
894
|
+
* private surface — do NOT re-export these from `components/index.ts`.
|
|
895
|
+
* The single source of truth for consumers is `FFIDInquiryForm.tsx`.
|
|
896
|
+
*/
|
|
897
|
+
|
|
898
|
+
/** Category option rendered in the form select. */
|
|
899
|
+
interface FFIDInquiryFormCategoryItem {
|
|
900
|
+
value: string;
|
|
901
|
+
label: string;
|
|
902
|
+
group?: string;
|
|
903
|
+
groupLabel?: string;
|
|
904
|
+
}
|
|
905
|
+
/**
|
|
906
|
+
* Per-slot `className` overrides. Every key is optional; when omitted,
|
|
907
|
+
* the slot falls back to SDK defaults. Intended to be combined with
|
|
908
|
+
* `unstyled={true}` for full brand styling (Tailwind / CSS-in-JS /
|
|
909
|
+
* global CSS), but also works on top of the default inline styles when
|
|
910
|
+
* `unstyled={false}` if the consumer wants to layer additional classes.
|
|
911
|
+
*
|
|
912
|
+
* Composition rules:
|
|
913
|
+
* - `form` is applied *in addition to* the top-level `className` prop
|
|
914
|
+
* (both are space-joined on the root `<form>` and on the success
|
|
915
|
+
* `<div role="status">`).
|
|
916
|
+
* - `readOnlyInput` is applied *in addition to* `input` on name / email
|
|
917
|
+
* inputs in `mode='authenticated'`; it is not a standalone class.
|
|
918
|
+
* - `successBlock` is layered on top of `form` on the success view so
|
|
919
|
+
* the wrapper stays themeable while the success-specific layer can
|
|
920
|
+
* add its own class.
|
|
921
|
+
* - `categoryPlaceholderOption` is only rendered when
|
|
922
|
+
* `requireCategorySelection` is true; setting it otherwise is a
|
|
923
|
+
* silent no-op.
|
|
924
|
+
*/
|
|
925
|
+
interface FFIDInquiryFormClassNames {
|
|
926
|
+
/** Root `<form>` (or the success `<div role="status">`). Merges with the top-level `className` prop. */
|
|
927
|
+
form?: string;
|
|
928
|
+
/** Wrapper around each labeled input. */
|
|
929
|
+
field?: string;
|
|
930
|
+
/** `<label>` / `<legend>` elements. */
|
|
931
|
+
label?: string;
|
|
932
|
+
/** `<input>` elements for name / email / company / phone. */
|
|
933
|
+
input?: string;
|
|
934
|
+
/** Extra class added on top of `input` when the input is read-only. */
|
|
935
|
+
readOnlyInput?: string;
|
|
936
|
+
/** `<select>` elements (category + organization). */
|
|
937
|
+
select?: string;
|
|
938
|
+
/** `<textarea>` for the message body. */
|
|
939
|
+
textarea?: string;
|
|
940
|
+
/** Disabled "選択してください" option emitted when `requireCategorySelection` is true. */
|
|
941
|
+
categoryPlaceholderOption?: string;
|
|
942
|
+
/** `<fieldset>` wrapping the newsletter opt-in checkboxes. */
|
|
943
|
+
newsletterFieldset?: string;
|
|
944
|
+
/** `<legend>` of the newsletter fieldset. */
|
|
945
|
+
newsletterLegend?: string;
|
|
946
|
+
/** `<label>` row for each newsletter checkbox. */
|
|
947
|
+
newsletterRow?: string;
|
|
948
|
+
/** Each newsletter `<input type="checkbox">`. */
|
|
949
|
+
newsletterCheckbox?: string;
|
|
950
|
+
/** Wrapper around the legal agreement block. */
|
|
951
|
+
legalBlock?: string;
|
|
952
|
+
/** `<label>` row for each legal checkbox. */
|
|
953
|
+
legalRow?: string;
|
|
954
|
+
/** Each legal `<input type="checkbox">`. */
|
|
955
|
+
legalCheckbox?: string;
|
|
956
|
+
/** Terms / privacy `<a>` links rendered inline with the legal checkbox label. */
|
|
957
|
+
legalLink?: string;
|
|
958
|
+
/** `<p role="alert">` container for the form-level error message. */
|
|
959
|
+
errorText?: string;
|
|
960
|
+
/** `<button type="submit">`. */
|
|
961
|
+
submitButton?: string;
|
|
962
|
+
/** Success `<div role="status">` rendered after a successful submit. */
|
|
963
|
+
successBlock?: string;
|
|
964
|
+
/** Wrapper around the organization `<select>` (authenticated mode). */
|
|
965
|
+
orgSelectWrapper?: string;
|
|
966
|
+
}
|
|
967
|
+
|
|
889
968
|
/**
|
|
890
969
|
* Known category literal with an escape hatch for arbitrary strings, so
|
|
891
970
|
* IDE autocomplete suggests the built-in set while still accepting any
|
|
@@ -914,25 +993,14 @@ interface FFIDInquiryFormPrefill {
|
|
|
914
993
|
/**
|
|
915
994
|
* Preselected category value. Silently ignored if the value does not
|
|
916
995
|
* match any entry in `categories` (or the default list when `categories`
|
|
917
|
-
* is omitted), so consumers can safely forward URL query strings.
|
|
996
|
+
* is omitted), so consumers can safely forward URL query strings. When
|
|
997
|
+
* `requireCategorySelection` is true and this is missing/invalid, the
|
|
998
|
+
* form starts with an empty selection instead of auto-choosing the
|
|
999
|
+
* first option.
|
|
918
1000
|
*/
|
|
919
1001
|
category?: FFIDInquiryCategoryValue;
|
|
920
1002
|
message?: string;
|
|
921
1003
|
}
|
|
922
|
-
/**
|
|
923
|
-
* Category option rendered in the form select. If any item has a
|
|
924
|
-
* `group` the select switches into `<optgroup>` mode; ungrouped items
|
|
925
|
-
* are emitted as bare `<option>` entries before the first `<optgroup>`
|
|
926
|
-
* in DOM order. Groups render in the order each `group` key first
|
|
927
|
-
* appears in `categories`, and the first encountered `groupLabel` wins
|
|
928
|
-
* when a `group` key repeats with inconsistent labels.
|
|
929
|
-
*/
|
|
930
|
-
interface FFIDInquiryFormCategoryItem {
|
|
931
|
-
value: string;
|
|
932
|
-
label: string;
|
|
933
|
-
group?: string;
|
|
934
|
-
groupLabel?: string;
|
|
935
|
-
}
|
|
936
1004
|
interface FFIDInquiryFormSubmitData {
|
|
937
1005
|
name: string;
|
|
938
1006
|
email: string;
|
|
@@ -973,18 +1041,11 @@ interface FFIDInquiryFormProps {
|
|
|
973
1041
|
onSubmit: (data: FFIDInquiryFormSubmitData) => Promise<FFIDInquiryFormSubmitResult>;
|
|
974
1042
|
/**
|
|
975
1043
|
* Called after every change to a field that is part of the submit
|
|
976
|
-
* payload
|
|
977
|
-
*
|
|
978
|
-
*
|
|
979
|
-
*
|
|
980
|
-
*
|
|
981
|
-
* the combined variant) are intentionally excluded — they are not
|
|
982
|
-
* part of `FFIDInquiryFormSubmitData`. Emitted values use the same
|
|
983
|
-
* normalization as `onSubmit` (string fields are trimmed; empty
|
|
984
|
-
* strings become `null` for `company` / `phone`).
|
|
985
|
-
*
|
|
986
|
-
* React StrictMode double-invokes effects in development, so expect
|
|
987
|
-
* two calls per mount in dev builds.
|
|
1044
|
+
* payload. Consent checkboxes are intentionally excluded — they are
|
|
1045
|
+
* not part of `FFIDInquiryFormSubmitData`. Emitted values use the
|
|
1046
|
+
* same normalization as `onSubmit` (trimmed strings; empty
|
|
1047
|
+
* `company`/`phone` become `null`). React StrictMode double-invokes
|
|
1048
|
+
* effects in dev, so expect two calls per mount.
|
|
988
1049
|
*/
|
|
989
1050
|
onChange?: (data: FFIDInquiryFormSubmitData) => void;
|
|
990
1051
|
/**
|
|
@@ -993,9 +1054,56 @@ interface FFIDInquiryFormProps {
|
|
|
993
1054
|
* single-checkbox behavior from SDK ≤ 2.8.
|
|
994
1055
|
*/
|
|
995
1056
|
separateLegalCheckboxes?: boolean;
|
|
1057
|
+
/**
|
|
1058
|
+
* Overrides the `<textarea>` placeholder. A plain string is applied
|
|
1059
|
+
* verbatim; a function is called with the currently selected category
|
|
1060
|
+
* so consumers can vary the copy per selection. Memoized on the
|
|
1061
|
+
* resolved `category` + `messagePlaceholder` identity. Omitting the
|
|
1062
|
+
* prop leaves the textarea with no `placeholder` attribute.
|
|
1063
|
+
*/
|
|
1064
|
+
messagePlaceholder?: string | ((ctx: FFIDInquiryFormPlaceholderContext) => string);
|
|
1065
|
+
/**
|
|
1066
|
+
* When true, the category `<select>` starts empty (unless `prefill.category`
|
|
1067
|
+
* resolves to a valid option) and renders a disabled "選択してください"
|
|
1068
|
+
* placeholder as the first option. Submits are blocked with an error
|
|
1069
|
+
* message until the user explicitly picks a category. Default `false`
|
|
1070
|
+
* preserves the SDK ≤ 2.10 behavior of auto-selecting the first option.
|
|
1071
|
+
*
|
|
1072
|
+
* Use this when the downstream routing depends on an intentional
|
|
1073
|
+
* category choice — the default auto-selection silently misclassifies
|
|
1074
|
+
* inquiries from users who never interacted with the dropdown.
|
|
1075
|
+
*/
|
|
1076
|
+
requireCategorySelection?: boolean;
|
|
1077
|
+
/**
|
|
1078
|
+
* When true, drops every inline `style` attribute the SDK adds.
|
|
1079
|
+
* Structural attributes (`required`, `readOnly`, `noValidate`, `role`,
|
|
1080
|
+
* `data-hydrated`, …) are kept so keyboard / screen-reader semantics
|
|
1081
|
+
* are unchanged. Pair with `classNames` for fully branded rendering.
|
|
1082
|
+
* Default `false` keeps the inline-styled defaults from SDK ≤ 2.10.
|
|
1083
|
+
*/
|
|
1084
|
+
unstyled?: boolean;
|
|
1085
|
+
/**
|
|
1086
|
+
* Per-slot `className` overrides. See `FFIDInquiryFormClassNames` for
|
|
1087
|
+
* the full list of slots. Classes apply **in addition to** any inline
|
|
1088
|
+
* `style` the SDK emits unless `unstyled={true}`.
|
|
1089
|
+
*/
|
|
1090
|
+
classNames?: FFIDInquiryFormClassNames;
|
|
996
1091
|
locale?: 'ja' | 'en';
|
|
1092
|
+
/**
|
|
1093
|
+
* Additional class for the root `<form>` (or the success `<div>`).
|
|
1094
|
+
* Kept for backward compatibility with SDK ≤ 2.10; merges with
|
|
1095
|
+
* `classNames.form` when both are provided.
|
|
1096
|
+
*/
|
|
997
1097
|
className?: string;
|
|
998
1098
|
}
|
|
999
|
-
|
|
1099
|
+
/**
|
|
1100
|
+
* Context passed to a function-form `messagePlaceholder`. When
|
|
1101
|
+
* `requireCategorySelection` is true and nothing is selected yet, the
|
|
1102
|
+
* form passes `null` here.
|
|
1103
|
+
*/
|
|
1104
|
+
interface FFIDInquiryFormPlaceholderContext {
|
|
1105
|
+
category: string | null;
|
|
1106
|
+
}
|
|
1107
|
+
declare function FFIDInquiryForm({ mode, prefill, organizations, preselectedOrganizationId, categories, termsVersion, privacyVersion, termsHref, privacyHref, turnstileToken, turnstileSlot, onSubmit, onChange, separateLegalCheckboxes, messagePlaceholder, requireCategorySelection, unstyled, classNames, locale, className, }: FFIDInquiryFormProps): react_jsx_runtime.JSX.Element;
|
|
1000
1108
|
|
|
1001
|
-
export { type
|
|
1109
|
+
export { type FFIDMemberStatus 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 FFIDInquiryFormClassNames as S, type FFIDInquiryFormOrganization as T, type FFIDInquiryFormPlaceholderContext as U, type FFIDInquiryFormPrefill as V, type FFIDInquiryFormProps as W, type FFIDInquiryFormSubmitData as X, type FFIDInquiryFormSubmitResult as Y, type FFIDJwtClaims as Z, FFIDLoginButton as _, type FFIDConfig as a, type FFIDOAuthTokenResponse as a0, type FFIDOAuthUserInfoMemberRole as a1, type FFIDOAuthUserInfoSubscription as a2, type FFIDOrganizationMember as a3, FFIDOrganizationSwitcher as a4, type FFIDSeatModel as a5, FFIDSubscriptionBadge as a6, type FFIDTokenIntrospectionResponse as a7, FFIDUserMenu as a8, FFID_INQUIRY_CATEGORIES as a9, type UseFFIDAnnouncementsOptions as aa, type UseFFIDAnnouncementsReturn as ab, useFFIDAnnouncements as ac, type FFIDAnnouncementBadgeClassNames as ad, type FFIDAnnouncementBadgeProps as ae, type FFIDAnnouncementListClassNames as af, type FFIDAnnouncementListProps as ag, type FFIDLoginButtonProps as ah, type FFIDOrganizationSwitcherClassNames as ai, type FFIDOrganizationSwitcherProps as aj, type FFIDSubscriptionBadgeClassNames as ak, type FFIDSubscriptionBadgeProps as al, type FFIDUserMenuClassNames as am, type FFIDUserMenuProps as an, 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 };
|
|
@@ -886,6 +886,85 @@ interface FFIDAnnouncementListProps {
|
|
|
886
886
|
*/
|
|
887
887
|
declare function FFIDAnnouncementList({ announcements, isLoading, className, classNames, style, formatDate, emptyMessage, loadingRender, renderItem, maxContentLines, }: FFIDAnnouncementListProps): react_jsx_runtime.JSX.Element;
|
|
888
888
|
|
|
889
|
+
/**
|
|
890
|
+
* Internals shared with the `FFIDInquiryForm` component.
|
|
891
|
+
*
|
|
892
|
+
* Split out of `FFIDInquiryForm.tsx` to keep that file under the repo's
|
|
893
|
+
* hard file-size limit. Everything exported here is part of the SDK's
|
|
894
|
+
* private surface — do NOT re-export these from `components/index.ts`.
|
|
895
|
+
* The single source of truth for consumers is `FFIDInquiryForm.tsx`.
|
|
896
|
+
*/
|
|
897
|
+
|
|
898
|
+
/** Category option rendered in the form select. */
|
|
899
|
+
interface FFIDInquiryFormCategoryItem {
|
|
900
|
+
value: string;
|
|
901
|
+
label: string;
|
|
902
|
+
group?: string;
|
|
903
|
+
groupLabel?: string;
|
|
904
|
+
}
|
|
905
|
+
/**
|
|
906
|
+
* Per-slot `className` overrides. Every key is optional; when omitted,
|
|
907
|
+
* the slot falls back to SDK defaults. Intended to be combined with
|
|
908
|
+
* `unstyled={true}` for full brand styling (Tailwind / CSS-in-JS /
|
|
909
|
+
* global CSS), but also works on top of the default inline styles when
|
|
910
|
+
* `unstyled={false}` if the consumer wants to layer additional classes.
|
|
911
|
+
*
|
|
912
|
+
* Composition rules:
|
|
913
|
+
* - `form` is applied *in addition to* the top-level `className` prop
|
|
914
|
+
* (both are space-joined on the root `<form>` and on the success
|
|
915
|
+
* `<div role="status">`).
|
|
916
|
+
* - `readOnlyInput` is applied *in addition to* `input` on name / email
|
|
917
|
+
* inputs in `mode='authenticated'`; it is not a standalone class.
|
|
918
|
+
* - `successBlock` is layered on top of `form` on the success view so
|
|
919
|
+
* the wrapper stays themeable while the success-specific layer can
|
|
920
|
+
* add its own class.
|
|
921
|
+
* - `categoryPlaceholderOption` is only rendered when
|
|
922
|
+
* `requireCategorySelection` is true; setting it otherwise is a
|
|
923
|
+
* silent no-op.
|
|
924
|
+
*/
|
|
925
|
+
interface FFIDInquiryFormClassNames {
|
|
926
|
+
/** Root `<form>` (or the success `<div role="status">`). Merges with the top-level `className` prop. */
|
|
927
|
+
form?: string;
|
|
928
|
+
/** Wrapper around each labeled input. */
|
|
929
|
+
field?: string;
|
|
930
|
+
/** `<label>` / `<legend>` elements. */
|
|
931
|
+
label?: string;
|
|
932
|
+
/** `<input>` elements for name / email / company / phone. */
|
|
933
|
+
input?: string;
|
|
934
|
+
/** Extra class added on top of `input` when the input is read-only. */
|
|
935
|
+
readOnlyInput?: string;
|
|
936
|
+
/** `<select>` elements (category + organization). */
|
|
937
|
+
select?: string;
|
|
938
|
+
/** `<textarea>` for the message body. */
|
|
939
|
+
textarea?: string;
|
|
940
|
+
/** Disabled "選択してください" option emitted when `requireCategorySelection` is true. */
|
|
941
|
+
categoryPlaceholderOption?: string;
|
|
942
|
+
/** `<fieldset>` wrapping the newsletter opt-in checkboxes. */
|
|
943
|
+
newsletterFieldset?: string;
|
|
944
|
+
/** `<legend>` of the newsletter fieldset. */
|
|
945
|
+
newsletterLegend?: string;
|
|
946
|
+
/** `<label>` row for each newsletter checkbox. */
|
|
947
|
+
newsletterRow?: string;
|
|
948
|
+
/** Each newsletter `<input type="checkbox">`. */
|
|
949
|
+
newsletterCheckbox?: string;
|
|
950
|
+
/** Wrapper around the legal agreement block. */
|
|
951
|
+
legalBlock?: string;
|
|
952
|
+
/** `<label>` row for each legal checkbox. */
|
|
953
|
+
legalRow?: string;
|
|
954
|
+
/** Each legal `<input type="checkbox">`. */
|
|
955
|
+
legalCheckbox?: string;
|
|
956
|
+
/** Terms / privacy `<a>` links rendered inline with the legal checkbox label. */
|
|
957
|
+
legalLink?: string;
|
|
958
|
+
/** `<p role="alert">` container for the form-level error message. */
|
|
959
|
+
errorText?: string;
|
|
960
|
+
/** `<button type="submit">`. */
|
|
961
|
+
submitButton?: string;
|
|
962
|
+
/** Success `<div role="status">` rendered after a successful submit. */
|
|
963
|
+
successBlock?: string;
|
|
964
|
+
/** Wrapper around the organization `<select>` (authenticated mode). */
|
|
965
|
+
orgSelectWrapper?: string;
|
|
966
|
+
}
|
|
967
|
+
|
|
889
968
|
/**
|
|
890
969
|
* Known category literal with an escape hatch for arbitrary strings, so
|
|
891
970
|
* IDE autocomplete suggests the built-in set while still accepting any
|
|
@@ -914,25 +993,14 @@ interface FFIDInquiryFormPrefill {
|
|
|
914
993
|
/**
|
|
915
994
|
* Preselected category value. Silently ignored if the value does not
|
|
916
995
|
* match any entry in `categories` (or the default list when `categories`
|
|
917
|
-
* is omitted), so consumers can safely forward URL query strings.
|
|
996
|
+
* is omitted), so consumers can safely forward URL query strings. When
|
|
997
|
+
* `requireCategorySelection` is true and this is missing/invalid, the
|
|
998
|
+
* form starts with an empty selection instead of auto-choosing the
|
|
999
|
+
* first option.
|
|
918
1000
|
*/
|
|
919
1001
|
category?: FFIDInquiryCategoryValue;
|
|
920
1002
|
message?: string;
|
|
921
1003
|
}
|
|
922
|
-
/**
|
|
923
|
-
* Category option rendered in the form select. If any item has a
|
|
924
|
-
* `group` the select switches into `<optgroup>` mode; ungrouped items
|
|
925
|
-
* are emitted as bare `<option>` entries before the first `<optgroup>`
|
|
926
|
-
* in DOM order. Groups render in the order each `group` key first
|
|
927
|
-
* appears in `categories`, and the first encountered `groupLabel` wins
|
|
928
|
-
* when a `group` key repeats with inconsistent labels.
|
|
929
|
-
*/
|
|
930
|
-
interface FFIDInquiryFormCategoryItem {
|
|
931
|
-
value: string;
|
|
932
|
-
label: string;
|
|
933
|
-
group?: string;
|
|
934
|
-
groupLabel?: string;
|
|
935
|
-
}
|
|
936
1004
|
interface FFIDInquiryFormSubmitData {
|
|
937
1005
|
name: string;
|
|
938
1006
|
email: string;
|
|
@@ -973,18 +1041,11 @@ interface FFIDInquiryFormProps {
|
|
|
973
1041
|
onSubmit: (data: FFIDInquiryFormSubmitData) => Promise<FFIDInquiryFormSubmitResult>;
|
|
974
1042
|
/**
|
|
975
1043
|
* Called after every change to a field that is part of the submit
|
|
976
|
-
* payload
|
|
977
|
-
*
|
|
978
|
-
*
|
|
979
|
-
*
|
|
980
|
-
*
|
|
981
|
-
* the combined variant) are intentionally excluded — they are not
|
|
982
|
-
* part of `FFIDInquiryFormSubmitData`. Emitted values use the same
|
|
983
|
-
* normalization as `onSubmit` (string fields are trimmed; empty
|
|
984
|
-
* strings become `null` for `company` / `phone`).
|
|
985
|
-
*
|
|
986
|
-
* React StrictMode double-invokes effects in development, so expect
|
|
987
|
-
* two calls per mount in dev builds.
|
|
1044
|
+
* payload. Consent checkboxes are intentionally excluded — they are
|
|
1045
|
+
* not part of `FFIDInquiryFormSubmitData`. Emitted values use the
|
|
1046
|
+
* same normalization as `onSubmit` (trimmed strings; empty
|
|
1047
|
+
* `company`/`phone` become `null`). React StrictMode double-invokes
|
|
1048
|
+
* effects in dev, so expect two calls per mount.
|
|
988
1049
|
*/
|
|
989
1050
|
onChange?: (data: FFIDInquiryFormSubmitData) => void;
|
|
990
1051
|
/**
|
|
@@ -993,9 +1054,56 @@ interface FFIDInquiryFormProps {
|
|
|
993
1054
|
* single-checkbox behavior from SDK ≤ 2.8.
|
|
994
1055
|
*/
|
|
995
1056
|
separateLegalCheckboxes?: boolean;
|
|
1057
|
+
/**
|
|
1058
|
+
* Overrides the `<textarea>` placeholder. A plain string is applied
|
|
1059
|
+
* verbatim; a function is called with the currently selected category
|
|
1060
|
+
* so consumers can vary the copy per selection. Memoized on the
|
|
1061
|
+
* resolved `category` + `messagePlaceholder` identity. Omitting the
|
|
1062
|
+
* prop leaves the textarea with no `placeholder` attribute.
|
|
1063
|
+
*/
|
|
1064
|
+
messagePlaceholder?: string | ((ctx: FFIDInquiryFormPlaceholderContext) => string);
|
|
1065
|
+
/**
|
|
1066
|
+
* When true, the category `<select>` starts empty (unless `prefill.category`
|
|
1067
|
+
* resolves to a valid option) and renders a disabled "選択してください"
|
|
1068
|
+
* placeholder as the first option. Submits are blocked with an error
|
|
1069
|
+
* message until the user explicitly picks a category. Default `false`
|
|
1070
|
+
* preserves the SDK ≤ 2.10 behavior of auto-selecting the first option.
|
|
1071
|
+
*
|
|
1072
|
+
* Use this when the downstream routing depends on an intentional
|
|
1073
|
+
* category choice — the default auto-selection silently misclassifies
|
|
1074
|
+
* inquiries from users who never interacted with the dropdown.
|
|
1075
|
+
*/
|
|
1076
|
+
requireCategorySelection?: boolean;
|
|
1077
|
+
/**
|
|
1078
|
+
* When true, drops every inline `style` attribute the SDK adds.
|
|
1079
|
+
* Structural attributes (`required`, `readOnly`, `noValidate`, `role`,
|
|
1080
|
+
* `data-hydrated`, …) are kept so keyboard / screen-reader semantics
|
|
1081
|
+
* are unchanged. Pair with `classNames` for fully branded rendering.
|
|
1082
|
+
* Default `false` keeps the inline-styled defaults from SDK ≤ 2.10.
|
|
1083
|
+
*/
|
|
1084
|
+
unstyled?: boolean;
|
|
1085
|
+
/**
|
|
1086
|
+
* Per-slot `className` overrides. See `FFIDInquiryFormClassNames` for
|
|
1087
|
+
* the full list of slots. Classes apply **in addition to** any inline
|
|
1088
|
+
* `style` the SDK emits unless `unstyled={true}`.
|
|
1089
|
+
*/
|
|
1090
|
+
classNames?: FFIDInquiryFormClassNames;
|
|
996
1091
|
locale?: 'ja' | 'en';
|
|
1092
|
+
/**
|
|
1093
|
+
* Additional class for the root `<form>` (or the success `<div>`).
|
|
1094
|
+
* Kept for backward compatibility with SDK ≤ 2.10; merges with
|
|
1095
|
+
* `classNames.form` when both are provided.
|
|
1096
|
+
*/
|
|
997
1097
|
className?: string;
|
|
998
1098
|
}
|
|
999
|
-
|
|
1099
|
+
/**
|
|
1100
|
+
* Context passed to a function-form `messagePlaceholder`. When
|
|
1101
|
+
* `requireCategorySelection` is true and nothing is selected yet, the
|
|
1102
|
+
* form passes `null` here.
|
|
1103
|
+
*/
|
|
1104
|
+
interface FFIDInquiryFormPlaceholderContext {
|
|
1105
|
+
category: string | null;
|
|
1106
|
+
}
|
|
1107
|
+
declare function FFIDInquiryForm({ mode, prefill, organizations, preselectedOrganizationId, categories, termsVersion, privacyVersion, termsHref, privacyHref, turnstileToken, turnstileSlot, onSubmit, onChange, separateLegalCheckboxes, messagePlaceholder, requireCategorySelection, unstyled, classNames, locale, className, }: FFIDInquiryFormProps): react_jsx_runtime.JSX.Element;
|
|
1000
1108
|
|
|
1001
|
-
export { type
|
|
1109
|
+
export { type FFIDMemberStatus 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 FFIDInquiryFormClassNames as S, type FFIDInquiryFormOrganization as T, type FFIDInquiryFormPlaceholderContext as U, type FFIDInquiryFormPrefill as V, type FFIDInquiryFormProps as W, type FFIDInquiryFormSubmitData as X, type FFIDInquiryFormSubmitResult as Y, type FFIDJwtClaims as Z, FFIDLoginButton as _, type FFIDConfig as a, type FFIDOAuthTokenResponse as a0, type FFIDOAuthUserInfoMemberRole as a1, type FFIDOAuthUserInfoSubscription as a2, type FFIDOrganizationMember as a3, FFIDOrganizationSwitcher as a4, type FFIDSeatModel as a5, FFIDSubscriptionBadge as a6, type FFIDTokenIntrospectionResponse as a7, FFIDUserMenu as a8, FFID_INQUIRY_CATEGORIES as a9, type UseFFIDAnnouncementsOptions as aa, type UseFFIDAnnouncementsReturn as ab, useFFIDAnnouncements as ac, type FFIDAnnouncementBadgeClassNames as ad, type FFIDAnnouncementBadgeProps as ae, type FFIDAnnouncementListClassNames as af, type FFIDAnnouncementListProps as ag, type FFIDLoginButtonProps as ah, type FFIDOrganizationSwitcherClassNames as ai, type FFIDOrganizationSwitcherProps as aj, type FFIDSubscriptionBadgeClassNames as ak, type FFIDSubscriptionBadgeProps as al, type FFIDUserMenuClassNames as am, type FFIDUserMenuProps as an, 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 chunkBEHDXUB2_cjs = require('./chunk-BEHDXUB2.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 } = chunkBEHDXUB2_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 chunkBEHDXUB2_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 chunkBEHDXUB2_cjs.FFIDAnnouncementBadge; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "FFIDAnnouncementList", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkBEHDXUB2_cjs.FFIDAnnouncementList; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "FFIDInquiryForm", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkBEHDXUB2_cjs.FFIDInquiryForm; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "FFIDLoginButton", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkBEHDXUB2_cjs.FFIDLoginButton; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "FFIDOrganizationSwitcher", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkBEHDXUB2_cjs.FFIDOrganizationSwitcher; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "FFIDProvider", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkBEHDXUB2_cjs.FFIDProvider; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "FFIDSubscriptionBadge", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkBEHDXUB2_cjs.FFIDSubscriptionBadge; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "FFIDUserMenu", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkBEHDXUB2_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 chunkBEHDXUB2_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 chunkBEHDXUB2_cjs.FFID_INQUIRY_CATEGORIES; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "createFFIDAnnouncementsClient", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkBEHDXUB2_cjs.createFFIDAnnouncementsClient; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "createFFIDClient", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkBEHDXUB2_cjs.createFFIDClient; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "createTokenStore", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkBEHDXUB2_cjs.createTokenStore; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "generateCodeChallenge", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkBEHDXUB2_cjs.generateCodeChallenge; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "generateCodeVerifier", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkBEHDXUB2_cjs.generateCodeVerifier; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "retrieveCodeVerifier", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkBEHDXUB2_cjs.retrieveCodeVerifier; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "storeCodeVerifier", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkBEHDXUB2_cjs.storeCodeVerifier; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "useFFID", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkBEHDXUB2_cjs.useFFID; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "useFFIDAnnouncements", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkBEHDXUB2_cjs.useFFIDAnnouncements; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "useSubscription", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkBEHDXUB2_cjs.useSubscription; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "withSubscription", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkBEHDXUB2_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
|
|
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-BuT9VaRt.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 FFIDInquiryFormClassNames, T as FFIDInquiryFormOrganization, U as FFIDInquiryFormPlaceholderContext, V as FFIDInquiryFormPrefill, W as FFIDInquiryFormProps, X as FFIDInquiryFormSubmitData, Y as FFIDInquiryFormSubmitResult, Z as FFIDJwtClaims, _ as FFIDLoginButton, $ as FFIDMemberStatus, a0 as FFIDOAuthTokenResponse, a1 as FFIDOAuthUserInfoMemberRole, a2 as FFIDOAuthUserInfoSubscription, a3 as FFIDOrganizationMember, a4 as FFIDOrganizationSwitcher, a5 as FFIDSeatModel, a6 as FFIDSubscriptionBadge, a7 as FFIDTokenIntrospectionResponse, a8 as FFIDUserMenu, a9 as FFID_INQUIRY_CATEGORIES, aa as UseFFIDAnnouncementsOptions, ab as UseFFIDAnnouncementsReturn, ac as useFFIDAnnouncements } from './index-BuT9VaRt.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
|
|
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-BuT9VaRt.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 FFIDInquiryFormClassNames, T as FFIDInquiryFormOrganization, U as FFIDInquiryFormPlaceholderContext, V as FFIDInquiryFormPrefill, W as FFIDInquiryFormProps, X as FFIDInquiryFormSubmitData, Y as FFIDInquiryFormSubmitResult, Z as FFIDJwtClaims, _ as FFIDLoginButton, $ as FFIDMemberStatus, a0 as FFIDOAuthTokenResponse, a1 as FFIDOAuthUserInfoMemberRole, a2 as FFIDOAuthUserInfoSubscription, a3 as FFIDOrganizationMember, a4 as FFIDOrganizationSwitcher, a5 as FFIDSeatModel, a6 as FFIDSubscriptionBadge, a7 as FFIDTokenIntrospectionResponse, a8 as FFIDUserMenu, a9 as FFID_INQUIRY_CATEGORIES, aa as UseFFIDAnnouncementsOptions, ab as UseFFIDAnnouncementsReturn, ac as useFFIDAnnouncements } from './index-BuT9VaRt.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-2OAFWUEL.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-2OAFWUEL.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.11.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.11.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() {
|