@feelflow/ffid-sdk 8.0.0 → 9.0.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/{FFIDCookieLink-Bwr0FBrV.d.cts → FFIDCookieLink-yt5SUr-W.d.cts} +47 -3
- package/dist/{FFIDCookieLink-Bwr0FBrV.d.ts → FFIDCookieLink-yt5SUr-W.d.ts} +47 -3
- package/dist/{chunk-RNCK5E3Y.cjs → chunk-Q2ZQJS36.cjs} +5 -7
- package/dist/{chunk-XELXXL2F.cjs → chunk-RZCQ22GH.cjs} +29 -9
- package/dist/{chunk-RHBZHSRD.js → chunk-S2AEBJRX.js} +29 -9
- package/dist/{chunk-YKBAFPX5.js → chunk-TUXIJEEZ.js} +5 -7
- package/dist/components/index.cjs +8 -8
- package/dist/components/index.js +1 -1
- package/dist/consent/index.cjs +63 -63
- package/dist/consent/index.d.cts +2 -2
- package/dist/consent/index.d.ts +2 -2
- package/dist/consent/index.js +1 -1
- package/dist/{ffid-client-BaEmw7jP.d.cts → ffid-client-6aLs9Fqc.d.cts} +9 -4
- package/dist/{ffid-client-5GAPcRIG.d.ts → ffid-client-B0cORHac.d.ts} +9 -4
- package/dist/index.cjs +95 -95
- package/dist/index.d.cts +10 -5
- package/dist/index.d.ts +10 -5
- package/dist/index.js +3 -3
- package/dist/server/index.cjs +5 -7
- package/dist/server/index.d.cts +2 -2
- package/dist/server/index.d.ts +2 -2
- package/dist/server/index.js +5 -7
- package/dist/server/test/index.d.cts +1 -1
- package/dist/server/test/index.d.ts +1 -1
- package/dist/webhooks/index.d.cts +109 -6
- package/dist/webhooks/index.d.ts +109 -6
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkQ2ZQJS36_cjs = require('./chunk-Q2ZQJS36.cjs');
|
|
4
|
+
var chunkRZCQ22GH_cjs = require('./chunk-RZCQ22GH.cjs');
|
|
5
5
|
var react = require('react');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
|
|
@@ -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 } = chunkQ2ZQJS36_cjs.useFFIDContext();
|
|
58
|
+
const { effectiveStatus, isBlocked, isGrace } = chunkQ2ZQJS36_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 } = chunkQ2ZQJS36_cjs.useFFIDContext();
|
|
80
80
|
const hasRedirected = react.useRef(false);
|
|
81
81
|
react.useEffect(() => {
|
|
82
82
|
if (!isLoading && !isAuthenticated && options.redirectToLogin && !hasRedirected.current) {
|
|
@@ -105,363 +105,363 @@ var FFID_NEWSLETTER_DISPATCH_MAX_RECIPIENTS = 1e3;
|
|
|
105
105
|
|
|
106
106
|
Object.defineProperty(exports, "ACCESS_GRANTING_EFFECTIVE_STATUSES", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkQ2ZQJS36_cjs.ACCESS_GRANTING_EFFECTIVE_STATUSES; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "AGENCY_INVITE_COOKIE_MAX_AGE_SEC", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkQ2ZQJS36_cjs.AGENCY_INVITE_COOKIE_MAX_AGE_SEC; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "AGENCY_INVITE_COOKIE_NAME", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkQ2ZQJS36_cjs.AGENCY_INVITE_COOKIE_NAME; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "AGENCY_INVITE_TOKEN_PARAM", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkQ2ZQJS36_cjs.AGENCY_INVITE_TOKEN_PARAM; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "AGENCY_INVITE_TOKEN_REDACTION", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkQ2ZQJS36_cjs.AGENCY_INVITE_TOKEN_REDACTION; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "BLOCKING_EFFECTIVE_STATUSES", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkQ2ZQJS36_cjs.BLOCKING_EFFECTIVE_STATUSES; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "CATALOG_HASH_PATTERN", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkQ2ZQJS36_cjs.CATALOG_HASH_PATTERN; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "DEFAULT_API_BASE_URL", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkQ2ZQJS36_cjs.DEFAULT_API_BASE_URL; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "DEFAULT_OAUTH_SCOPES", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkQ2ZQJS36_cjs.DEFAULT_OAUTH_SCOPES; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "EFFECTIVE_SUBSCRIPTION_STATUSES", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkQ2ZQJS36_cjs.EFFECTIVE_SUBSCRIPTION_STATUSES; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "FFIDAnnouncementBadge", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkQ2ZQJS36_cjs.FFIDAnnouncementBadge; }
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "FFIDAnnouncementList", {
|
|
151
151
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunkQ2ZQJS36_cjs.FFIDAnnouncementList; }
|
|
153
153
|
});
|
|
154
154
|
Object.defineProperty(exports, "FFIDCatalogHashError", {
|
|
155
155
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunkQ2ZQJS36_cjs.FFIDCatalogHashError; }
|
|
157
157
|
});
|
|
158
158
|
Object.defineProperty(exports, "FFIDInquiryForm", {
|
|
159
159
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunkQ2ZQJS36_cjs.FFIDInquiryForm; }
|
|
161
161
|
});
|
|
162
162
|
Object.defineProperty(exports, "FFIDLoginButton", {
|
|
163
163
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunkQ2ZQJS36_cjs.FFIDLoginButton; }
|
|
165
165
|
});
|
|
166
166
|
Object.defineProperty(exports, "FFIDOrganizationSwitcher", {
|
|
167
167
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunkQ2ZQJS36_cjs.FFIDOrganizationSwitcher; }
|
|
169
169
|
});
|
|
170
170
|
Object.defineProperty(exports, "FFIDProvider", {
|
|
171
171
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunkQ2ZQJS36_cjs.FFIDProvider; }
|
|
173
173
|
});
|
|
174
174
|
Object.defineProperty(exports, "FFIDSDKError", {
|
|
175
175
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunkQ2ZQJS36_cjs.FFIDSDKError; }
|
|
177
177
|
});
|
|
178
178
|
Object.defineProperty(exports, "FFIDSubscriptionBadge", {
|
|
179
179
|
enumerable: true,
|
|
180
|
-
get: function () { return
|
|
180
|
+
get: function () { return chunkQ2ZQJS36_cjs.FFIDSubscriptionBadge; }
|
|
181
181
|
});
|
|
182
182
|
Object.defineProperty(exports, "FFIDUserMenu", {
|
|
183
183
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunkQ2ZQJS36_cjs.FFIDUserMenu; }
|
|
185
185
|
});
|
|
186
186
|
Object.defineProperty(exports, "FFID_ALLOWED_ORGANIZATION_LOGO_MIME_TYPES", {
|
|
187
187
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunkQ2ZQJS36_cjs.FFID_ALLOWED_ORGANIZATION_LOGO_MIME_TYPES; }
|
|
189
189
|
});
|
|
190
190
|
Object.defineProperty(exports, "FFID_ANNOUNCEMENTS_ERROR_CODES", {
|
|
191
191
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunkQ2ZQJS36_cjs.FFID_ANNOUNCEMENTS_ERROR_CODES; }
|
|
193
193
|
});
|
|
194
194
|
Object.defineProperty(exports, "FFID_CATALOG_ENVIRONMENTS", {
|
|
195
195
|
enumerable: true,
|
|
196
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunkQ2ZQJS36_cjs.FFID_CATALOG_ENVIRONMENTS; }
|
|
197
197
|
});
|
|
198
198
|
Object.defineProperty(exports, "FFID_CATALOG_PUBLICATION_STATUSES", {
|
|
199
199
|
enumerable: true,
|
|
200
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunkQ2ZQJS36_cjs.FFID_CATALOG_PUBLICATION_STATUSES; }
|
|
201
201
|
});
|
|
202
202
|
Object.defineProperty(exports, "FFID_COMPANY_SIZE_CODES", {
|
|
203
203
|
enumerable: true,
|
|
204
|
-
get: function () { return
|
|
204
|
+
get: function () { return chunkQ2ZQJS36_cjs.FFID_COMPANY_SIZE_CODES; }
|
|
205
205
|
});
|
|
206
206
|
Object.defineProperty(exports, "FFID_ERROR_CODES", {
|
|
207
207
|
enumerable: true,
|
|
208
|
-
get: function () { return
|
|
208
|
+
get: function () { return chunkQ2ZQJS36_cjs.FFID_ERROR_CODES; }
|
|
209
209
|
});
|
|
210
210
|
Object.defineProperty(exports, "FFID_INDUSTRY_CODES", {
|
|
211
211
|
enumerable: true,
|
|
212
|
-
get: function () { return
|
|
212
|
+
get: function () { return chunkQ2ZQJS36_cjs.FFID_INDUSTRY_CODES; }
|
|
213
213
|
});
|
|
214
214
|
Object.defineProperty(exports, "FFID_INQUIRY_ACQUISITION_SOURCES", {
|
|
215
215
|
enumerable: true,
|
|
216
|
-
get: function () { return
|
|
216
|
+
get: function () { return chunkQ2ZQJS36_cjs.FFID_INQUIRY_ACQUISITION_SOURCES; }
|
|
217
217
|
});
|
|
218
218
|
Object.defineProperty(exports, "FFID_INQUIRY_CATEGORIES", {
|
|
219
219
|
enumerable: true,
|
|
220
|
-
get: function () { return
|
|
220
|
+
get: function () { return chunkQ2ZQJS36_cjs.FFID_INQUIRY_CATEGORIES; }
|
|
221
221
|
});
|
|
222
222
|
Object.defineProperty(exports, "FFID_INQUIRY_CATEGORIES_SITE_2026", {
|
|
223
223
|
enumerable: true,
|
|
224
|
-
get: function () { return
|
|
224
|
+
get: function () { return chunkQ2ZQJS36_cjs.FFID_INQUIRY_CATEGORIES_SITE_2026; }
|
|
225
225
|
});
|
|
226
226
|
Object.defineProperty(exports, "FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_BYTES", {
|
|
227
227
|
enumerable: true,
|
|
228
|
-
get: function () { return
|
|
228
|
+
get: function () { return chunkQ2ZQJS36_cjs.FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_BYTES; }
|
|
229
229
|
});
|
|
230
230
|
Object.defineProperty(exports, "FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_MB", {
|
|
231
231
|
enumerable: true,
|
|
232
|
-
get: function () { return
|
|
232
|
+
get: function () { return chunkQ2ZQJS36_cjs.FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_MB; }
|
|
233
233
|
});
|
|
234
234
|
Object.defineProperty(exports, "FFID_ORGANIZATION_PROFILE_ERROR_CODES", {
|
|
235
235
|
enumerable: true,
|
|
236
|
-
get: function () { return
|
|
236
|
+
get: function () { return chunkQ2ZQJS36_cjs.FFID_ORGANIZATION_PROFILE_ERROR_CODES; }
|
|
237
237
|
});
|
|
238
238
|
Object.defineProperty(exports, "FFID_SUBSCRIPTION_ERROR_CODES", {
|
|
239
239
|
enumerable: true,
|
|
240
|
-
get: function () { return
|
|
240
|
+
get: function () { return chunkQ2ZQJS36_cjs.FFID_SUBSCRIPTION_ERROR_CODES; }
|
|
241
241
|
});
|
|
242
242
|
Object.defineProperty(exports, "canonicalizeCatalogValue", {
|
|
243
243
|
enumerable: true,
|
|
244
|
-
get: function () { return
|
|
244
|
+
get: function () { return chunkQ2ZQJS36_cjs.canonicalizeCatalogValue; }
|
|
245
245
|
});
|
|
246
246
|
Object.defineProperty(exports, "captureAgencyInviteToken", {
|
|
247
247
|
enumerable: true,
|
|
248
|
-
get: function () { return
|
|
248
|
+
get: function () { return chunkQ2ZQJS36_cjs.captureAgencyInviteToken; }
|
|
249
249
|
});
|
|
250
250
|
Object.defineProperty(exports, "clearAgencyInviteToken", {
|
|
251
251
|
enumerable: true,
|
|
252
|
-
get: function () { return
|
|
252
|
+
get: function () { return chunkQ2ZQJS36_cjs.clearAgencyInviteToken; }
|
|
253
253
|
});
|
|
254
254
|
Object.defineProperty(exports, "clearState", {
|
|
255
255
|
enumerable: true,
|
|
256
|
-
get: function () { return
|
|
256
|
+
get: function () { return chunkQ2ZQJS36_cjs.cleanupStateStorage; }
|
|
257
257
|
});
|
|
258
258
|
Object.defineProperty(exports, "computeEffectiveStatusFromSession", {
|
|
259
259
|
enumerable: true,
|
|
260
|
-
get: function () { return
|
|
260
|
+
get: function () { return chunkQ2ZQJS36_cjs.computeEffectiveStatusFromSession; }
|
|
261
261
|
});
|
|
262
262
|
Object.defineProperty(exports, "computeFFIDCheckoutCopyHash", {
|
|
263
263
|
enumerable: true,
|
|
264
|
-
get: function () { return
|
|
264
|
+
get: function () { return chunkQ2ZQJS36_cjs.computeFFIDCheckoutCopyHash; }
|
|
265
265
|
});
|
|
266
266
|
Object.defineProperty(exports, "computeLegalDisclosureHash", {
|
|
267
267
|
enumerable: true,
|
|
268
|
-
get: function () { return
|
|
268
|
+
get: function () { return chunkQ2ZQJS36_cjs.computeLegalDisclosureHash; }
|
|
269
269
|
});
|
|
270
270
|
Object.defineProperty(exports, "computePaymentConfigurationHash", {
|
|
271
271
|
enumerable: true,
|
|
272
|
-
get: function () { return
|
|
272
|
+
get: function () { return chunkQ2ZQJS36_cjs.computePaymentConfigurationHash; }
|
|
273
273
|
});
|
|
274
274
|
Object.defineProperty(exports, "computePraxisCopyHash", {
|
|
275
275
|
enumerable: true,
|
|
276
|
-
get: function () { return
|
|
276
|
+
get: function () { return chunkQ2ZQJS36_cjs.computePraxisCopyHash; }
|
|
277
277
|
});
|
|
278
278
|
Object.defineProperty(exports, "computeScopeHash", {
|
|
279
279
|
enumerable: true,
|
|
280
|
-
get: function () { return
|
|
280
|
+
get: function () { return chunkQ2ZQJS36_cjs.computeScopeHash; }
|
|
281
281
|
});
|
|
282
282
|
Object.defineProperty(exports, "computeTaxConfigurationHash", {
|
|
283
283
|
enumerable: true,
|
|
284
|
-
get: function () { return
|
|
284
|
+
get: function () { return chunkQ2ZQJS36_cjs.computeTaxConfigurationHash; }
|
|
285
285
|
});
|
|
286
286
|
Object.defineProperty(exports, "createFFIDAnnouncementsClient", {
|
|
287
287
|
enumerable: true,
|
|
288
|
-
get: function () { return
|
|
288
|
+
get: function () { return chunkQ2ZQJS36_cjs.createFFIDAnnouncementsClient; }
|
|
289
289
|
});
|
|
290
290
|
Object.defineProperty(exports, "createFFIDClient", {
|
|
291
291
|
enumerable: true,
|
|
292
|
-
get: function () { return
|
|
292
|
+
get: function () { return chunkQ2ZQJS36_cjs.createFFIDClient; }
|
|
293
293
|
});
|
|
294
294
|
Object.defineProperty(exports, "createTokenStore", {
|
|
295
295
|
enumerable: true,
|
|
296
|
-
get: function () { return
|
|
296
|
+
get: function () { return chunkQ2ZQJS36_cjs.createTokenStore; }
|
|
297
297
|
});
|
|
298
298
|
Object.defineProperty(exports, "generateCodeChallenge", {
|
|
299
299
|
enumerable: true,
|
|
300
|
-
get: function () { return
|
|
300
|
+
get: function () { return chunkQ2ZQJS36_cjs.generateCodeChallenge; }
|
|
301
301
|
});
|
|
302
302
|
Object.defineProperty(exports, "generateCodeVerifier", {
|
|
303
303
|
enumerable: true,
|
|
304
|
-
get: function () { return
|
|
304
|
+
get: function () { return chunkQ2ZQJS36_cjs.generateCodeVerifier; }
|
|
305
305
|
});
|
|
306
306
|
Object.defineProperty(exports, "handleRedirectCallback", {
|
|
307
307
|
enumerable: true,
|
|
308
|
-
get: function () { return
|
|
308
|
+
get: function () { return chunkQ2ZQJS36_cjs.handleRedirectCallback; }
|
|
309
309
|
});
|
|
310
310
|
Object.defineProperty(exports, "hasAccessFromUserinfo", {
|
|
311
311
|
enumerable: true,
|
|
312
|
-
get: function () { return
|
|
312
|
+
get: function () { return chunkQ2ZQJS36_cjs.hasAccessFromUserinfo; }
|
|
313
313
|
});
|
|
314
314
|
Object.defineProperty(exports, "hashCanonicalJson", {
|
|
315
315
|
enumerable: true,
|
|
316
|
-
get: function () { return
|
|
316
|
+
get: function () { return chunkQ2ZQJS36_cjs.hashCanonicalJson; }
|
|
317
317
|
});
|
|
318
318
|
Object.defineProperty(exports, "isBlockedFromUserinfo", {
|
|
319
319
|
enumerable: true,
|
|
320
|
-
get: function () { return
|
|
320
|
+
get: function () { return chunkQ2ZQJS36_cjs.isBlockedFromUserinfo; }
|
|
321
321
|
});
|
|
322
322
|
Object.defineProperty(exports, "isFFIDInquiryAcquisitionSource", {
|
|
323
323
|
enumerable: true,
|
|
324
|
-
get: function () { return
|
|
324
|
+
get: function () { return chunkQ2ZQJS36_cjs.isFFIDInquiryAcquisitionSource; }
|
|
325
325
|
});
|
|
326
326
|
Object.defineProperty(exports, "isFFIDInquiryCategorySite2026", {
|
|
327
327
|
enumerable: true,
|
|
328
|
-
get: function () { return
|
|
328
|
+
get: function () { return chunkQ2ZQJS36_cjs.isFFIDInquiryCategorySite2026; }
|
|
329
329
|
});
|
|
330
330
|
Object.defineProperty(exports, "normalizeRedirectUri", {
|
|
331
331
|
enumerable: true,
|
|
332
|
-
get: function () { return
|
|
332
|
+
get: function () { return chunkQ2ZQJS36_cjs.normalizeRedirectUri; }
|
|
333
333
|
});
|
|
334
334
|
Object.defineProperty(exports, "readAgencyInviteCookie", {
|
|
335
335
|
enumerable: true,
|
|
336
|
-
get: function () { return
|
|
336
|
+
get: function () { return chunkQ2ZQJS36_cjs.readAgencyInviteCookie; }
|
|
337
337
|
});
|
|
338
338
|
Object.defineProperty(exports, "readAgencyInviteToken", {
|
|
339
339
|
enumerable: true,
|
|
340
|
-
get: function () { return
|
|
340
|
+
get: function () { return chunkQ2ZQJS36_cjs.readAgencyInviteToken; }
|
|
341
341
|
});
|
|
342
342
|
Object.defineProperty(exports, "redactAgencyInviteToken", {
|
|
343
343
|
enumerable: true,
|
|
344
|
-
get: function () { return
|
|
344
|
+
get: function () { return chunkQ2ZQJS36_cjs.redactAgencyInviteToken; }
|
|
345
345
|
});
|
|
346
346
|
Object.defineProperty(exports, "retrieveCodeVerifier", {
|
|
347
347
|
enumerable: true,
|
|
348
|
-
get: function () { return
|
|
348
|
+
get: function () { return chunkQ2ZQJS36_cjs.retrieveCodeVerifier; }
|
|
349
349
|
});
|
|
350
350
|
Object.defineProperty(exports, "retrieveState", {
|
|
351
351
|
enumerable: true,
|
|
352
|
-
get: function () { return
|
|
352
|
+
get: function () { return chunkQ2ZQJS36_cjs.retrieveState; }
|
|
353
353
|
});
|
|
354
354
|
Object.defineProperty(exports, "sha256Hex", {
|
|
355
355
|
enumerable: true,
|
|
356
|
-
get: function () { return
|
|
356
|
+
get: function () { return chunkQ2ZQJS36_cjs.sha256Hex; }
|
|
357
357
|
});
|
|
358
358
|
Object.defineProperty(exports, "storeCodeVerifier", {
|
|
359
359
|
enumerable: true,
|
|
360
|
-
get: function () { return
|
|
360
|
+
get: function () { return chunkQ2ZQJS36_cjs.storeCodeVerifier; }
|
|
361
361
|
});
|
|
362
362
|
Object.defineProperty(exports, "storeState", {
|
|
363
363
|
enumerable: true,
|
|
364
|
-
get: function () { return
|
|
364
|
+
get: function () { return chunkQ2ZQJS36_cjs.storeState; }
|
|
365
365
|
});
|
|
366
366
|
Object.defineProperty(exports, "useFFID", {
|
|
367
367
|
enumerable: true,
|
|
368
|
-
get: function () { return
|
|
368
|
+
get: function () { return chunkQ2ZQJS36_cjs.useFFID; }
|
|
369
369
|
});
|
|
370
370
|
Object.defineProperty(exports, "useFFIDAnnouncements", {
|
|
371
371
|
enumerable: true,
|
|
372
|
-
get: function () { return
|
|
372
|
+
get: function () { return chunkQ2ZQJS36_cjs.useFFIDAnnouncements; }
|
|
373
373
|
});
|
|
374
374
|
Object.defineProperty(exports, "useSubscription", {
|
|
375
375
|
enumerable: true,
|
|
376
|
-
get: function () { return
|
|
376
|
+
get: function () { return chunkQ2ZQJS36_cjs.useSubscription; }
|
|
377
377
|
});
|
|
378
378
|
Object.defineProperty(exports, "validatePublishedCatalog", {
|
|
379
379
|
enumerable: true,
|
|
380
|
-
get: function () { return
|
|
380
|
+
get: function () { return chunkQ2ZQJS36_cjs.validatePublishedCatalog; }
|
|
381
381
|
});
|
|
382
382
|
Object.defineProperty(exports, "withSubscription", {
|
|
383
383
|
enumerable: true,
|
|
384
|
-
get: function () { return
|
|
384
|
+
get: function () { return chunkQ2ZQJS36_cjs.withSubscription; }
|
|
385
385
|
});
|
|
386
386
|
Object.defineProperty(exports, "ALL_DENIED_EXCEPT_NECESSARY", {
|
|
387
387
|
enumerable: true,
|
|
388
|
-
get: function () { return
|
|
388
|
+
get: function () { return chunkRZCQ22GH_cjs.ALL_DENIED_EXCEPT_NECESSARY; }
|
|
389
389
|
});
|
|
390
390
|
Object.defineProperty(exports, "CONSENT_COOKIE_NAME", {
|
|
391
391
|
enumerable: true,
|
|
392
|
-
get: function () { return
|
|
392
|
+
get: function () { return chunkRZCQ22GH_cjs.CONSENT_COOKIE_NAME; }
|
|
393
393
|
});
|
|
394
394
|
Object.defineProperty(exports, "CONSENT_DISMISSAL_TIMESTAMP_KEY", {
|
|
395
395
|
enumerable: true,
|
|
396
|
-
get: function () { return
|
|
396
|
+
get: function () { return chunkRZCQ22GH_cjs.CONSENT_DISMISSAL_TIMESTAMP_KEY; }
|
|
397
397
|
});
|
|
398
398
|
Object.defineProperty(exports, "COOKIE_VERSION", {
|
|
399
399
|
enumerable: true,
|
|
400
|
-
get: function () { return
|
|
400
|
+
get: function () { return chunkRZCQ22GH_cjs.COOKIE_VERSION; }
|
|
401
401
|
});
|
|
402
402
|
Object.defineProperty(exports, "DEFAULT_CONSENT_ERROR_MESSAGES", {
|
|
403
403
|
enumerable: true,
|
|
404
|
-
get: function () { return
|
|
404
|
+
get: function () { return chunkRZCQ22GH_cjs.DEFAULT_CONSENT_ERROR_MESSAGES; }
|
|
405
405
|
});
|
|
406
406
|
Object.defineProperty(exports, "FFIDAnalyticsProvider", {
|
|
407
407
|
enumerable: true,
|
|
408
|
-
get: function () { return
|
|
408
|
+
get: function () { return chunkRZCQ22GH_cjs.FFIDAnalyticsProvider; }
|
|
409
409
|
});
|
|
410
410
|
Object.defineProperty(exports, "FFIDConsentError", {
|
|
411
411
|
enumerable: true,
|
|
412
|
-
get: function () { return
|
|
412
|
+
get: function () { return chunkRZCQ22GH_cjs.FFIDConsentError; }
|
|
413
413
|
});
|
|
414
414
|
Object.defineProperty(exports, "FFIDCookieBanner", {
|
|
415
415
|
enumerable: true,
|
|
416
|
-
get: function () { return
|
|
416
|
+
get: function () { return chunkRZCQ22GH_cjs.FFIDCookieBanner; }
|
|
417
417
|
});
|
|
418
418
|
Object.defineProperty(exports, "FFIDCookieLink", {
|
|
419
419
|
enumerable: true,
|
|
420
|
-
get: function () { return
|
|
420
|
+
get: function () { return chunkRZCQ22GH_cjs.FFIDCookieLink; }
|
|
421
421
|
});
|
|
422
422
|
Object.defineProperty(exports, "FFIDCookieSettings", {
|
|
423
423
|
enumerable: true,
|
|
424
|
-
get: function () { return
|
|
424
|
+
get: function () { return chunkRZCQ22GH_cjs.FFIDCookieSettings; }
|
|
425
425
|
});
|
|
426
426
|
Object.defineProperty(exports, "FFID_CONSENT_ERROR_CODES", {
|
|
427
427
|
enumerable: true,
|
|
428
|
-
get: function () { return
|
|
428
|
+
get: function () { return chunkRZCQ22GH_cjs.FFID_CONSENT_ERROR_CODES; }
|
|
429
429
|
});
|
|
430
430
|
Object.defineProperty(exports, "clearConsentDismissalTimestamp", {
|
|
431
431
|
enumerable: true,
|
|
432
|
-
get: function () { return
|
|
432
|
+
get: function () { return chunkRZCQ22GH_cjs.clearConsentDismissalTimestamp; }
|
|
433
433
|
});
|
|
434
434
|
Object.defineProperty(exports, "decodeConsentCookie", {
|
|
435
435
|
enumerable: true,
|
|
436
|
-
get: function () { return
|
|
436
|
+
get: function () { return chunkRZCQ22GH_cjs.decodeConsentCookie; }
|
|
437
437
|
});
|
|
438
438
|
Object.defineProperty(exports, "encodeConsentCookie", {
|
|
439
439
|
enumerable: true,
|
|
440
|
-
get: function () { return
|
|
440
|
+
get: function () { return chunkRZCQ22GH_cjs.encodeConsentCookie; }
|
|
441
441
|
});
|
|
442
442
|
Object.defineProperty(exports, "readConsentCookie", {
|
|
443
443
|
enumerable: true,
|
|
444
|
-
get: function () { return
|
|
444
|
+
get: function () { return chunkRZCQ22GH_cjs.readConsentCookie; }
|
|
445
445
|
});
|
|
446
446
|
Object.defineProperty(exports, "readConsentDismissalTimestamp", {
|
|
447
447
|
enumerable: true,
|
|
448
|
-
get: function () { return
|
|
448
|
+
get: function () { return chunkRZCQ22GH_cjs.readConsentDismissalTimestamp; }
|
|
449
449
|
});
|
|
450
450
|
Object.defineProperty(exports, "useFFIDConsent", {
|
|
451
451
|
enumerable: true,
|
|
452
|
-
get: function () { return
|
|
452
|
+
get: function () { return chunkRZCQ22GH_cjs.useFFIDConsent; }
|
|
453
453
|
});
|
|
454
454
|
Object.defineProperty(exports, "useFFIDConsentPreferences", {
|
|
455
455
|
enumerable: true,
|
|
456
|
-
get: function () { return
|
|
456
|
+
get: function () { return chunkRZCQ22GH_cjs.useFFIDConsentPreferences; }
|
|
457
457
|
});
|
|
458
458
|
Object.defineProperty(exports, "writeConsentCookie", {
|
|
459
459
|
enumerable: true,
|
|
460
|
-
get: function () { return
|
|
460
|
+
get: function () { return chunkRZCQ22GH_cjs.writeConsentCookie; }
|
|
461
461
|
});
|
|
462
462
|
Object.defineProperty(exports, "writeConsentDismissalTimestamp", {
|
|
463
463
|
enumerable: true,
|
|
464
|
-
get: function () { return
|
|
464
|
+
get: function () { return chunkRZCQ22GH_cjs.writeConsentDismissalTimestamp; }
|
|
465
465
|
});
|
|
466
466
|
exports.FFID_NEWSLETTER_DISPATCH_MAX_RECIPIENTS = FFID_NEWSLETTER_DISPATCH_MAX_RECIPIENTS;
|
|
467
467
|
exports.FFID_NEWSLETTER_TYPES = FFID_NEWSLETTER_TYPES;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as FFIDSubscriptionStatus, a as FFIDOAuthUserInfoSubscription, b as FFIDAccountType, c as FFIDPrompt, d as FFIDConfig, e as FFIDApiResponse, f as FFIDSessionResponse, g as FFIDSignOutResult, h as FFIDError, i as FFIDSubscriptionCheckResponse, j as FFIDCheckServiceAccessParams, k as FFIDServiceAccessDecision, l as FFIDAnalyticsConfig, m as FFIDVerifyAccessTokenOptions, n as FFIDOAuthUserInfo, o as FFIDInquiryCreateParams, p as FFIDInquiryCreateResponse, T as TokenStore, q as FFIDAuthMode, r as FFIDLogger, s as FFIDCacheAdapter, t as FFIDUser, u as FFIDOrganization, v as FFIDSubscription, w as FFIDSubscriptionContextValue, E as EffectiveSubscriptionStatus, x as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, y as FFIDAnnouncementsApiResponse, A as AnnouncementListResponse, z as FFIDAnnouncementsLogger } from './index-BG7g99pK.cjs';
|
|
2
2
|
export { B as Announcement, C as AnnouncementStatus, D as AnnouncementType, G as EFFECTIVE_SUBSCRIPTION_STATUSES, H as FFIDAnnouncementBadge, I as FFIDAnnouncementList, J as FFIDAnnouncementsError, K as FFIDAnnouncementsErrorCode, M as FFIDAnnouncementsServerResponse, N as FFIDApiResponseMeta, O as FFIDCacheConfig, P as FFIDContextValue, Q as FFIDInquiryAcquisitionSource, R as FFIDInquiryCategory, S as FFIDInquiryCategorySite2026, U as FFIDInquiryForm, V as FFIDInquiryFormCategoryItem, W as FFIDInquiryFormClassNames, X as FFIDInquiryFormLegalLayout, Y as FFIDInquiryFormOrganization, Z as FFIDInquiryFormPlaceholderContext, _ as FFIDInquiryFormPrefill, $ as FFIDInquiryFormProps, a0 as FFIDInquiryFormSubmitData, a1 as FFIDInquiryFormSubmitResult, a2 as FFIDJwtClaims, a3 as FFIDLoginButton, a4 as FFIDOAuthUserInfoMemberRole, a5 as FFIDOrganizationSwitcher, a6 as FFIDSeatAssignmentClaim, a7 as FFIDSeatAssignmentStatus, a8 as FFIDSeatModel, a9 as FFIDServiceAccessDenialReason, aa as FFIDServiceAccessFailPolicy, ab as FFIDSubscriptionBadge, ac as FFIDUserMenu, ad as FFID_INQUIRY_ACQUISITION_SOURCES, ae as FFID_INQUIRY_CATEGORIES, af as FFID_INQUIRY_CATEGORIES_SITE_2026, ag as TokenData, ah as UseFFIDAnnouncementsOptions, ai as UseFFIDAnnouncementsReturn, aj as createTokenStore, ak as isFFIDInquiryAcquisitionSource, al as isFFIDInquiryCategorySite2026, am as useFFIDAnnouncements } from './index-BG7g99pK.cjs';
|
|
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, n as FFIDAnalyticsProvider, o as FFIDAnalyticsProviderProps, c as FFIDConsentCategories, q as FFIDConsentCategoryCode, e as FFIDConsentCategoryMetadata, v as FFIDConsentError, w as FFIDConsentErrorCode, x as FFIDConsentMergeStrategy, z as FFIDConsentMergeWarning, B as FFIDConsentMergeWarningEvent, F as FFIDConsentResult, H as FFIDConsentSource, a as FFIDConsentState, d as FFIDConsentSyncResult, L as FFIDCookieBanner, M as FFIDCookieBannerClassNames, N as FFIDCookieBannerProps, O as FFIDCookieLink, Q as FFIDCookieLinkProps, f as FFIDCookiePolicy, S as FFIDCookieSettings, T as FFIDCookieSettingsClassNames, U as FFIDCookieSettingsProps, Z as FFID_CONSENT_ERROR_CODES, ad as UseFFIDConsentPreferencesReturn, ae as UseFFIDConsentReturn, af as clearConsentDismissalTimestamp, ai as decodeConsentCookie, ak as encodeConsentCookie, am as readConsentCookie, an as readConsentDismissalTimestamp, ap as useFFIDConsent, aq as useFFIDConsentPreferences, ar as writeConsentCookie, as as writeConsentDismissalTimestamp } from './FFIDCookieLink-
|
|
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, n as FFIDAnalyticsProvider, o as FFIDAnalyticsProviderProps, c as FFIDConsentCategories, q as FFIDConsentCategoryCode, e as FFIDConsentCategoryMetadata, v as FFIDConsentError, w as FFIDConsentErrorCode, x as FFIDConsentMergeStrategy, z as FFIDConsentMergeWarning, B as FFIDConsentMergeWarningEvent, F as FFIDConsentResult, H as FFIDConsentSource, a as FFIDConsentState, d as FFIDConsentSyncResult, L as FFIDCookieBanner, M as FFIDCookieBannerClassNames, N as FFIDCookieBannerProps, O as FFIDCookieLink, Q as FFIDCookieLinkProps, f as FFIDCookiePolicy, S as FFIDCookieSettings, T as FFIDCookieSettingsClassNames, U as FFIDCookieSettingsProps, Z as FFID_CONSENT_ERROR_CODES, ad as UseFFIDConsentPreferencesReturn, ae as UseFFIDConsentReturn, af as clearConsentDismissalTimestamp, ai as decodeConsentCookie, ak as encodeConsentCookie, am as readConsentCookie, an as readConsentDismissalTimestamp, ap as useFFIDConsent, aq as useFFIDConsentPreferences, ar as writeConsentCookie, as as writeConsentDismissalTimestamp } from './FFIDCookieLink-yt5SUr-W.cjs';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { ReactNode, ComponentType, FC } from 'react';
|
|
6
6
|
import 'zod';
|
|
@@ -187,6 +187,8 @@ interface FFIDPlanInfo {
|
|
|
187
187
|
maxSeats: number | null;
|
|
188
188
|
seatSelectionEnabled: boolean;
|
|
189
189
|
trialDays: number;
|
|
190
|
+
/** flat: period fee; per_seat: multiply by selected quantity. Older servers omit this. */
|
|
191
|
+
pricingModel?: 'per_seat' | 'flat';
|
|
190
192
|
/**
|
|
191
193
|
* Monthly price in the smallest currency unit.
|
|
192
194
|
*
|
|
@@ -422,12 +424,12 @@ interface FFIDPlanChangeLineItem {
|
|
|
422
424
|
interface FFIDPlanChangePreviewBase {
|
|
423
425
|
/** Discriminant for preview response variants (reserved for future unions with e.g. seat-change previews) */
|
|
424
426
|
type: 'plan-change';
|
|
425
|
-
/** Current plan display info. `price` is the total
|
|
427
|
+
/** Current plan display info. `price` is the period total: flat fee, or per-seat price times quantity. */
|
|
426
428
|
currentPlan: {
|
|
427
429
|
name: string;
|
|
428
430
|
price: number;
|
|
429
431
|
};
|
|
430
|
-
/** New plan display info. `price` is the total
|
|
432
|
+
/** New plan display info. `price` is the period total: flat fee, or per-seat price times quantity. */
|
|
431
433
|
newPlan: {
|
|
432
434
|
name: string;
|
|
433
435
|
price: number;
|
|
@@ -501,7 +503,8 @@ interface FFIDSeatChangeLineItem {
|
|
|
501
503
|
* `proratedAmount` is computed locally. `isEstimate=false`: it reflects Stripe's live
|
|
502
504
|
* proration calculation.
|
|
503
505
|
*
|
|
504
|
-
* `nextInvoiceAmount` is
|
|
506
|
+
* `nextInvoiceAmount` is a local estimate: flat period fee, or `unitPrice * newQuantity`.
|
|
507
|
+
* Flat capacity changes have zero prorated cost.
|
|
505
508
|
*
|
|
506
509
|
* `pricingUnavailable=true` means custom pricing or an unverified contracted Stripe
|
|
507
510
|
* Price. Hide amounts; zero is not a quote. `custom_pricing` permits the existing
|
|
@@ -514,6 +517,8 @@ interface FFIDSeatChangeLineItem {
|
|
|
514
517
|
* external consumers should guide users to the FFID portal for seat changes.
|
|
515
518
|
*/
|
|
516
519
|
interface FFIDSeatChangePreview {
|
|
520
|
+
/** flat: unitPrice is the whole period fee; per_seat: multiply by capacity. */
|
|
521
|
+
pricingModel?: 'per_seat' | 'flat';
|
|
517
522
|
/** Discriminant for preview response variants (pairs with `FFIDPlanChangePreview.type`) */
|
|
518
523
|
type: 'seat-change';
|
|
519
524
|
currentQuantity: number;
|
|
@@ -527,7 +532,7 @@ interface FFIDSeatChangePreview {
|
|
|
527
532
|
* be reserved. Also `0` when `pricingUnavailable === true`; hide it instead of quoting zero.
|
|
528
533
|
*/
|
|
529
534
|
proratedAmount: number;
|
|
530
|
-
/** Next invoice full amount —
|
|
535
|
+
/** Next invoice full amount — flat period fee or per-seat price times newQuantity */
|
|
531
536
|
nextInvoiceAmount: number;
|
|
532
537
|
nextInvoiceDate: string | null;
|
|
533
538
|
currency: FFIDSupportedCurrency;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as FFIDSubscriptionStatus, a as FFIDOAuthUserInfoSubscription, b as FFIDAccountType, c as FFIDPrompt, d as FFIDConfig, e as FFIDApiResponse, f as FFIDSessionResponse, g as FFIDSignOutResult, h as FFIDError, i as FFIDSubscriptionCheckResponse, j as FFIDCheckServiceAccessParams, k as FFIDServiceAccessDecision, l as FFIDAnalyticsConfig, m as FFIDVerifyAccessTokenOptions, n as FFIDOAuthUserInfo, o as FFIDInquiryCreateParams, p as FFIDInquiryCreateResponse, T as TokenStore, q as FFIDAuthMode, r as FFIDLogger, s as FFIDCacheAdapter, t as FFIDUser, u as FFIDOrganization, v as FFIDSubscription, w as FFIDSubscriptionContextValue, E as EffectiveSubscriptionStatus, x as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, y as FFIDAnnouncementsApiResponse, A as AnnouncementListResponse, z as FFIDAnnouncementsLogger } from './index-BG7g99pK.js';
|
|
2
2
|
export { B as Announcement, C as AnnouncementStatus, D as AnnouncementType, G as EFFECTIVE_SUBSCRIPTION_STATUSES, H as FFIDAnnouncementBadge, I as FFIDAnnouncementList, J as FFIDAnnouncementsError, K as FFIDAnnouncementsErrorCode, M as FFIDAnnouncementsServerResponse, N as FFIDApiResponseMeta, O as FFIDCacheConfig, P as FFIDContextValue, Q as FFIDInquiryAcquisitionSource, R as FFIDInquiryCategory, S as FFIDInquiryCategorySite2026, U as FFIDInquiryForm, V as FFIDInquiryFormCategoryItem, W as FFIDInquiryFormClassNames, X as FFIDInquiryFormLegalLayout, Y as FFIDInquiryFormOrganization, Z as FFIDInquiryFormPlaceholderContext, _ as FFIDInquiryFormPrefill, $ as FFIDInquiryFormProps, a0 as FFIDInquiryFormSubmitData, a1 as FFIDInquiryFormSubmitResult, a2 as FFIDJwtClaims, a3 as FFIDLoginButton, a4 as FFIDOAuthUserInfoMemberRole, a5 as FFIDOrganizationSwitcher, a6 as FFIDSeatAssignmentClaim, a7 as FFIDSeatAssignmentStatus, a8 as FFIDSeatModel, a9 as FFIDServiceAccessDenialReason, aa as FFIDServiceAccessFailPolicy, ab as FFIDSubscriptionBadge, ac as FFIDUserMenu, ad as FFID_INQUIRY_ACQUISITION_SOURCES, ae as FFID_INQUIRY_CATEGORIES, af as FFID_INQUIRY_CATEGORIES_SITE_2026, ag as TokenData, ah as UseFFIDAnnouncementsOptions, ai as UseFFIDAnnouncementsReturn, aj as createTokenStore, ak as isFFIDInquiryAcquisitionSource, al as isFFIDInquiryCategorySite2026, am as useFFIDAnnouncements } from './index-BG7g99pK.js';
|
|
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, n as FFIDAnalyticsProvider, o as FFIDAnalyticsProviderProps, c as FFIDConsentCategories, q as FFIDConsentCategoryCode, e as FFIDConsentCategoryMetadata, v as FFIDConsentError, w as FFIDConsentErrorCode, x as FFIDConsentMergeStrategy, z as FFIDConsentMergeWarning, B as FFIDConsentMergeWarningEvent, F as FFIDConsentResult, H as FFIDConsentSource, a as FFIDConsentState, d as FFIDConsentSyncResult, L as FFIDCookieBanner, M as FFIDCookieBannerClassNames, N as FFIDCookieBannerProps, O as FFIDCookieLink, Q as FFIDCookieLinkProps, f as FFIDCookiePolicy, S as FFIDCookieSettings, T as FFIDCookieSettingsClassNames, U as FFIDCookieSettingsProps, Z as FFID_CONSENT_ERROR_CODES, ad as UseFFIDConsentPreferencesReturn, ae as UseFFIDConsentReturn, af as clearConsentDismissalTimestamp, ai as decodeConsentCookie, ak as encodeConsentCookie, am as readConsentCookie, an as readConsentDismissalTimestamp, ap as useFFIDConsent, aq as useFFIDConsentPreferences, ar as writeConsentCookie, as as writeConsentDismissalTimestamp } from './FFIDCookieLink-
|
|
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, n as FFIDAnalyticsProvider, o as FFIDAnalyticsProviderProps, c as FFIDConsentCategories, q as FFIDConsentCategoryCode, e as FFIDConsentCategoryMetadata, v as FFIDConsentError, w as FFIDConsentErrorCode, x as FFIDConsentMergeStrategy, z as FFIDConsentMergeWarning, B as FFIDConsentMergeWarningEvent, F as FFIDConsentResult, H as FFIDConsentSource, a as FFIDConsentState, d as FFIDConsentSyncResult, L as FFIDCookieBanner, M as FFIDCookieBannerClassNames, N as FFIDCookieBannerProps, O as FFIDCookieLink, Q as FFIDCookieLinkProps, f as FFIDCookiePolicy, S as FFIDCookieSettings, T as FFIDCookieSettingsClassNames, U as FFIDCookieSettingsProps, Z as FFID_CONSENT_ERROR_CODES, ad as UseFFIDConsentPreferencesReturn, ae as UseFFIDConsentReturn, af as clearConsentDismissalTimestamp, ai as decodeConsentCookie, ak as encodeConsentCookie, am as readConsentCookie, an as readConsentDismissalTimestamp, ap as useFFIDConsent, aq as useFFIDConsentPreferences, ar as writeConsentCookie, as as writeConsentDismissalTimestamp } from './FFIDCookieLink-yt5SUr-W.js';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { ReactNode, ComponentType, FC } from 'react';
|
|
6
6
|
import 'zod';
|
|
@@ -187,6 +187,8 @@ interface FFIDPlanInfo {
|
|
|
187
187
|
maxSeats: number | null;
|
|
188
188
|
seatSelectionEnabled: boolean;
|
|
189
189
|
trialDays: number;
|
|
190
|
+
/** flat: period fee; per_seat: multiply by selected quantity. Older servers omit this. */
|
|
191
|
+
pricingModel?: 'per_seat' | 'flat';
|
|
190
192
|
/**
|
|
191
193
|
* Monthly price in the smallest currency unit.
|
|
192
194
|
*
|
|
@@ -422,12 +424,12 @@ interface FFIDPlanChangeLineItem {
|
|
|
422
424
|
interface FFIDPlanChangePreviewBase {
|
|
423
425
|
/** Discriminant for preview response variants (reserved for future unions with e.g. seat-change previews) */
|
|
424
426
|
type: 'plan-change';
|
|
425
|
-
/** Current plan display info. `price` is the total
|
|
427
|
+
/** Current plan display info. `price` is the period total: flat fee, or per-seat price times quantity. */
|
|
426
428
|
currentPlan: {
|
|
427
429
|
name: string;
|
|
428
430
|
price: number;
|
|
429
431
|
};
|
|
430
|
-
/** New plan display info. `price` is the total
|
|
432
|
+
/** New plan display info. `price` is the period total: flat fee, or per-seat price times quantity. */
|
|
431
433
|
newPlan: {
|
|
432
434
|
name: string;
|
|
433
435
|
price: number;
|
|
@@ -501,7 +503,8 @@ interface FFIDSeatChangeLineItem {
|
|
|
501
503
|
* `proratedAmount` is computed locally. `isEstimate=false`: it reflects Stripe's live
|
|
502
504
|
* proration calculation.
|
|
503
505
|
*
|
|
504
|
-
* `nextInvoiceAmount` is
|
|
506
|
+
* `nextInvoiceAmount` is a local estimate: flat period fee, or `unitPrice * newQuantity`.
|
|
507
|
+
* Flat capacity changes have zero prorated cost.
|
|
505
508
|
*
|
|
506
509
|
* `pricingUnavailable=true` means custom pricing or an unverified contracted Stripe
|
|
507
510
|
* Price. Hide amounts; zero is not a quote. `custom_pricing` permits the existing
|
|
@@ -514,6 +517,8 @@ interface FFIDSeatChangeLineItem {
|
|
|
514
517
|
* external consumers should guide users to the FFID portal for seat changes.
|
|
515
518
|
*/
|
|
516
519
|
interface FFIDSeatChangePreview {
|
|
520
|
+
/** flat: unitPrice is the whole period fee; per_seat: multiply by capacity. */
|
|
521
|
+
pricingModel?: 'per_seat' | 'flat';
|
|
517
522
|
/** Discriminant for preview response variants (pairs with `FFIDPlanChangePreview.type`) */
|
|
518
523
|
type: 'seat-change';
|
|
519
524
|
currentQuantity: number;
|
|
@@ -527,7 +532,7 @@ interface FFIDSeatChangePreview {
|
|
|
527
532
|
* be reserved. Also `0` when `pricingUnavailable === true`; hide it instead of quoting zero.
|
|
528
533
|
*/
|
|
529
534
|
proratedAmount: number;
|
|
530
|
-
/** Next invoice full amount —
|
|
535
|
+
/** Next invoice full amount — flat period fee or per-seat price times newQuantity */
|
|
531
536
|
nextInvoiceAmount: number;
|
|
532
537
|
nextInvoiceDate: string | null;
|
|
533
538
|
currency: FFIDSupportedCurrency;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useFFIDContext, useSubscription } from './chunk-
|
|
2
|
-
export { ACCESS_GRANTING_EFFECTIVE_STATUSES, AGENCY_INVITE_COOKIE_MAX_AGE_SEC, AGENCY_INVITE_COOKIE_NAME, AGENCY_INVITE_TOKEN_PARAM, AGENCY_INVITE_TOKEN_REDACTION, BLOCKING_EFFECTIVE_STATUSES, CATALOG_HASH_PATTERN, DEFAULT_API_BASE_URL, DEFAULT_OAUTH_SCOPES, EFFECTIVE_SUBSCRIPTION_STATUSES, FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDCatalogHashError, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDProvider, FFIDSDKError, FFIDSubscriptionBadge, FFIDUserMenu, FFID_ALLOWED_ORGANIZATION_LOGO_MIME_TYPES, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_CATALOG_ENVIRONMENTS, FFID_CATALOG_PUBLICATION_STATUSES, FFID_COMPANY_SIZE_CODES, FFID_ERROR_CODES, FFID_INDUSTRY_CODES, FFID_INQUIRY_ACQUISITION_SOURCES, FFID_INQUIRY_CATEGORIES, FFID_INQUIRY_CATEGORIES_SITE_2026, FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_BYTES, FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_MB, FFID_ORGANIZATION_PROFILE_ERROR_CODES, FFID_SUBSCRIPTION_ERROR_CODES, canonicalizeCatalogValue, captureAgencyInviteToken, clearAgencyInviteToken, cleanupStateStorage as clearState, computeEffectiveStatusFromSession, computeFFIDCheckoutCopyHash, computeLegalDisclosureHash, computePaymentConfigurationHash, computePraxisCopyHash, computeScopeHash, computeTaxConfigurationHash, createFFIDAnnouncementsClient, createFFIDClient, createTokenStore, generateCodeChallenge, generateCodeVerifier, handleRedirectCallback, hasAccessFromUserinfo, hashCanonicalJson, isBlockedFromUserinfo, isFFIDInquiryAcquisitionSource, isFFIDInquiryCategorySite2026, normalizeRedirectUri, readAgencyInviteCookie, readAgencyInviteToken, redactAgencyInviteToken, retrieveCodeVerifier, retrieveState, sha256Hex, storeCodeVerifier, storeState, useFFID, useFFIDAnnouncements, useSubscription, validatePublishedCatalog, withSubscription } from './chunk-
|
|
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-
|
|
1
|
+
import { useFFIDContext, useSubscription } from './chunk-TUXIJEEZ.js';
|
|
2
|
+
export { ACCESS_GRANTING_EFFECTIVE_STATUSES, AGENCY_INVITE_COOKIE_MAX_AGE_SEC, AGENCY_INVITE_COOKIE_NAME, AGENCY_INVITE_TOKEN_PARAM, AGENCY_INVITE_TOKEN_REDACTION, BLOCKING_EFFECTIVE_STATUSES, CATALOG_HASH_PATTERN, DEFAULT_API_BASE_URL, DEFAULT_OAUTH_SCOPES, EFFECTIVE_SUBSCRIPTION_STATUSES, FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDCatalogHashError, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDProvider, FFIDSDKError, FFIDSubscriptionBadge, FFIDUserMenu, FFID_ALLOWED_ORGANIZATION_LOGO_MIME_TYPES, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_CATALOG_ENVIRONMENTS, FFID_CATALOG_PUBLICATION_STATUSES, FFID_COMPANY_SIZE_CODES, FFID_ERROR_CODES, FFID_INDUSTRY_CODES, FFID_INQUIRY_ACQUISITION_SOURCES, FFID_INQUIRY_CATEGORIES, FFID_INQUIRY_CATEGORIES_SITE_2026, FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_BYTES, FFID_MAX_ORGANIZATION_LOGO_FILE_SIZE_MB, FFID_ORGANIZATION_PROFILE_ERROR_CODES, FFID_SUBSCRIPTION_ERROR_CODES, canonicalizeCatalogValue, captureAgencyInviteToken, clearAgencyInviteToken, cleanupStateStorage as clearState, computeEffectiveStatusFromSession, computeFFIDCheckoutCopyHash, computeLegalDisclosureHash, computePaymentConfigurationHash, computePraxisCopyHash, computeScopeHash, computeTaxConfigurationHash, createFFIDAnnouncementsClient, createFFIDClient, createTokenStore, generateCodeChallenge, generateCodeVerifier, handleRedirectCallback, hasAccessFromUserinfo, hashCanonicalJson, isBlockedFromUserinfo, isFFIDInquiryAcquisitionSource, isFFIDInquiryCategorySite2026, normalizeRedirectUri, readAgencyInviteCookie, readAgencyInviteToken, redactAgencyInviteToken, retrieveCodeVerifier, retrieveState, sha256Hex, storeCodeVerifier, storeState, useFFID, useFFIDAnnouncements, useSubscription, validatePublishedCatalog, withSubscription } from './chunk-TUXIJEEZ.js';
|
|
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-S2AEBJRX.js';
|
|
4
4
|
import { useEffect, useRef } from 'react';
|
|
5
5
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
6
6
|
|