@feelflow/ffid-sdk 5.35.0 → 6.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/{chunk-WG2YHUGO.cjs → chunk-CI6RBG77.cjs} +1 -1
- package/dist/{chunk-53IBN7NO.js → chunk-NBBHMLXO.js} +1 -1
- package/dist/components/index.cjs +8 -8
- package/dist/components/index.js +1 -1
- package/dist/index.cjs +58 -58
- package/dist/index.js +2 -2
- package/dist/legal/index.cjs +16 -1
- package/dist/legal/index.d.cts +32 -5
- package/dist/legal/index.d.ts +32 -5
- package/dist/legal/index.js +16 -1
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +1 -1
- package/package.json +1 -1
|
@@ -1677,7 +1677,7 @@ function validateTokenResponse(tokenResponse) {
|
|
|
1677
1677
|
}
|
|
1678
1678
|
|
|
1679
1679
|
// src/client/version-check.ts
|
|
1680
|
-
var SDK_VERSION = "
|
|
1680
|
+
var SDK_VERSION = "6.0.0";
|
|
1681
1681
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
1682
1682
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
1683
1683
|
function sdkHeaders() {
|
|
@@ -1675,7 +1675,7 @@ function validateTokenResponse(tokenResponse) {
|
|
|
1675
1675
|
}
|
|
1676
1676
|
|
|
1677
1677
|
// src/client/version-check.ts
|
|
1678
|
-
var SDK_VERSION = "
|
|
1678
|
+
var SDK_VERSION = "6.0.0";
|
|
1679
1679
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
1680
1680
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
1681
1681
|
function sdkHeaders() {
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCI6RBG77_cjs = require('../chunk-CI6RBG77.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 chunkCI6RBG77_cjs.FFIDAnnouncementBadge; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "FFIDAnnouncementList", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkCI6RBG77_cjs.FFIDAnnouncementList; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "FFIDInquiryForm", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkCI6RBG77_cjs.FFIDInquiryForm; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "FFIDLoginButton", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkCI6RBG77_cjs.FFIDLoginButton; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "FFIDOrganizationSwitcher", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkCI6RBG77_cjs.FFIDOrganizationSwitcher; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "FFIDSubscriptionBadge", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkCI6RBG77_cjs.FFIDSubscriptionBadge; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "FFIDUserMenu", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkCI6RBG77_cjs.FFIDUserMenu; }
|
|
34
34
|
});
|
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-NBBHMLXO.js';
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCI6RBG77_cjs = require('./chunk-CI6RBG77.cjs');
|
|
4
4
|
var chunkH5O2CCAY_cjs = require('./chunk-H5O2CCAY.cjs');
|
|
5
5
|
var react = require('react');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -54,8 +54,8 @@ function defaultRedirect(url) {
|
|
|
54
54
|
}
|
|
55
55
|
function useRequireActiveSubscription(options) {
|
|
56
56
|
const { redirectTo, allowGrace = true, onRedirect } = options;
|
|
57
|
-
const { isLoading, error } =
|
|
58
|
-
const { effectiveStatus, isBlocked, isGrace } =
|
|
57
|
+
const { isLoading, error } = chunkCI6RBG77_cjs.useFFIDContext();
|
|
58
|
+
const { effectiveStatus, isBlocked, isGrace } = chunkCI6RBG77_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 } = chunkCI6RBG77_cjs.useFFIDContext();
|
|
80
80
|
const hasRedirected = react.useRef(false);
|
|
81
81
|
react.useEffect(() => {
|
|
82
82
|
if (!isLoading && !isAuthenticated && options.redirectToLogin && !hasRedirected.current) {
|
|
@@ -105,219 +105,219 @@ 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 chunkCI6RBG77_cjs.ACCESS_GRANTING_EFFECTIVE_STATUSES; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "BLOCKING_EFFECTIVE_STATUSES", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkCI6RBG77_cjs.BLOCKING_EFFECTIVE_STATUSES; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "CATALOG_HASH_PATTERN", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkCI6RBG77_cjs.CATALOG_HASH_PATTERN; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "DEFAULT_API_BASE_URL", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkCI6RBG77_cjs.DEFAULT_API_BASE_URL; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "DEFAULT_OAUTH_SCOPES", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkCI6RBG77_cjs.DEFAULT_OAUTH_SCOPES; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "EFFECTIVE_SUBSCRIPTION_STATUSES", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkCI6RBG77_cjs.EFFECTIVE_SUBSCRIPTION_STATUSES; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "FFIDAnnouncementBadge", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkCI6RBG77_cjs.FFIDAnnouncementBadge; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "FFIDAnnouncementList", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkCI6RBG77_cjs.FFIDAnnouncementList; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "FFIDCatalogHashError", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkCI6RBG77_cjs.FFIDCatalogHashError; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "FFIDInquiryForm", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkCI6RBG77_cjs.FFIDInquiryForm; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "FFIDLoginButton", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkCI6RBG77_cjs.FFIDLoginButton; }
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "FFIDOrganizationSwitcher", {
|
|
151
151
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunkCI6RBG77_cjs.FFIDOrganizationSwitcher; }
|
|
153
153
|
});
|
|
154
154
|
Object.defineProperty(exports, "FFIDProvider", {
|
|
155
155
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunkCI6RBG77_cjs.FFIDProvider; }
|
|
157
157
|
});
|
|
158
158
|
Object.defineProperty(exports, "FFIDSDKError", {
|
|
159
159
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunkCI6RBG77_cjs.FFIDSDKError; }
|
|
161
161
|
});
|
|
162
162
|
Object.defineProperty(exports, "FFIDSubscriptionBadge", {
|
|
163
163
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunkCI6RBG77_cjs.FFIDSubscriptionBadge; }
|
|
165
165
|
});
|
|
166
166
|
Object.defineProperty(exports, "FFIDUserMenu", {
|
|
167
167
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunkCI6RBG77_cjs.FFIDUserMenu; }
|
|
169
169
|
});
|
|
170
170
|
Object.defineProperty(exports, "FFID_ANNOUNCEMENTS_ERROR_CODES", {
|
|
171
171
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunkCI6RBG77_cjs.FFID_ANNOUNCEMENTS_ERROR_CODES; }
|
|
173
173
|
});
|
|
174
174
|
Object.defineProperty(exports, "FFID_CATALOG_ENVIRONMENTS", {
|
|
175
175
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunkCI6RBG77_cjs.FFID_CATALOG_ENVIRONMENTS; }
|
|
177
177
|
});
|
|
178
178
|
Object.defineProperty(exports, "FFID_CATALOG_PUBLICATION_STATUSES", {
|
|
179
179
|
enumerable: true,
|
|
180
|
-
get: function () { return
|
|
180
|
+
get: function () { return chunkCI6RBG77_cjs.FFID_CATALOG_PUBLICATION_STATUSES; }
|
|
181
181
|
});
|
|
182
182
|
Object.defineProperty(exports, "FFID_ERROR_CODES", {
|
|
183
183
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunkCI6RBG77_cjs.FFID_ERROR_CODES; }
|
|
185
185
|
});
|
|
186
186
|
Object.defineProperty(exports, "FFID_INQUIRY_ACQUISITION_SOURCES", {
|
|
187
187
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunkCI6RBG77_cjs.FFID_INQUIRY_ACQUISITION_SOURCES; }
|
|
189
189
|
});
|
|
190
190
|
Object.defineProperty(exports, "FFID_INQUIRY_CATEGORIES", {
|
|
191
191
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunkCI6RBG77_cjs.FFID_INQUIRY_CATEGORIES; }
|
|
193
193
|
});
|
|
194
194
|
Object.defineProperty(exports, "FFID_INQUIRY_CATEGORIES_SITE_2026", {
|
|
195
195
|
enumerable: true,
|
|
196
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunkCI6RBG77_cjs.FFID_INQUIRY_CATEGORIES_SITE_2026; }
|
|
197
197
|
});
|
|
198
198
|
Object.defineProperty(exports, "canonicalizeCatalogValue", {
|
|
199
199
|
enumerable: true,
|
|
200
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunkCI6RBG77_cjs.canonicalizeCatalogValue; }
|
|
201
201
|
});
|
|
202
202
|
Object.defineProperty(exports, "clearState", {
|
|
203
203
|
enumerable: true,
|
|
204
|
-
get: function () { return
|
|
204
|
+
get: function () { return chunkCI6RBG77_cjs.cleanupStateStorage; }
|
|
205
205
|
});
|
|
206
206
|
Object.defineProperty(exports, "computeEffectiveStatusFromSession", {
|
|
207
207
|
enumerable: true,
|
|
208
|
-
get: function () { return
|
|
208
|
+
get: function () { return chunkCI6RBG77_cjs.computeEffectiveStatusFromSession; }
|
|
209
209
|
});
|
|
210
210
|
Object.defineProperty(exports, "computeFFIDCheckoutCopyHash", {
|
|
211
211
|
enumerable: true,
|
|
212
|
-
get: function () { return
|
|
212
|
+
get: function () { return chunkCI6RBG77_cjs.computeFFIDCheckoutCopyHash; }
|
|
213
213
|
});
|
|
214
214
|
Object.defineProperty(exports, "computeLegalDisclosureHash", {
|
|
215
215
|
enumerable: true,
|
|
216
|
-
get: function () { return
|
|
216
|
+
get: function () { return chunkCI6RBG77_cjs.computeLegalDisclosureHash; }
|
|
217
217
|
});
|
|
218
218
|
Object.defineProperty(exports, "computePaymentConfigurationHash", {
|
|
219
219
|
enumerable: true,
|
|
220
|
-
get: function () { return
|
|
220
|
+
get: function () { return chunkCI6RBG77_cjs.computePaymentConfigurationHash; }
|
|
221
221
|
});
|
|
222
222
|
Object.defineProperty(exports, "computePraxisCopyHash", {
|
|
223
223
|
enumerable: true,
|
|
224
|
-
get: function () { return
|
|
224
|
+
get: function () { return chunkCI6RBG77_cjs.computePraxisCopyHash; }
|
|
225
225
|
});
|
|
226
226
|
Object.defineProperty(exports, "computeScopeHash", {
|
|
227
227
|
enumerable: true,
|
|
228
|
-
get: function () { return
|
|
228
|
+
get: function () { return chunkCI6RBG77_cjs.computeScopeHash; }
|
|
229
229
|
});
|
|
230
230
|
Object.defineProperty(exports, "computeTaxConfigurationHash", {
|
|
231
231
|
enumerable: true,
|
|
232
|
-
get: function () { return
|
|
232
|
+
get: function () { return chunkCI6RBG77_cjs.computeTaxConfigurationHash; }
|
|
233
233
|
});
|
|
234
234
|
Object.defineProperty(exports, "createFFIDAnnouncementsClient", {
|
|
235
235
|
enumerable: true,
|
|
236
|
-
get: function () { return
|
|
236
|
+
get: function () { return chunkCI6RBG77_cjs.createFFIDAnnouncementsClient; }
|
|
237
237
|
});
|
|
238
238
|
Object.defineProperty(exports, "createFFIDClient", {
|
|
239
239
|
enumerable: true,
|
|
240
|
-
get: function () { return
|
|
240
|
+
get: function () { return chunkCI6RBG77_cjs.createFFIDClient; }
|
|
241
241
|
});
|
|
242
242
|
Object.defineProperty(exports, "createTokenStore", {
|
|
243
243
|
enumerable: true,
|
|
244
|
-
get: function () { return
|
|
244
|
+
get: function () { return chunkCI6RBG77_cjs.createTokenStore; }
|
|
245
245
|
});
|
|
246
246
|
Object.defineProperty(exports, "generateCodeChallenge", {
|
|
247
247
|
enumerable: true,
|
|
248
|
-
get: function () { return
|
|
248
|
+
get: function () { return chunkCI6RBG77_cjs.generateCodeChallenge; }
|
|
249
249
|
});
|
|
250
250
|
Object.defineProperty(exports, "generateCodeVerifier", {
|
|
251
251
|
enumerable: true,
|
|
252
|
-
get: function () { return
|
|
252
|
+
get: function () { return chunkCI6RBG77_cjs.generateCodeVerifier; }
|
|
253
253
|
});
|
|
254
254
|
Object.defineProperty(exports, "handleRedirectCallback", {
|
|
255
255
|
enumerable: true,
|
|
256
|
-
get: function () { return
|
|
256
|
+
get: function () { return chunkCI6RBG77_cjs.handleRedirectCallback; }
|
|
257
257
|
});
|
|
258
258
|
Object.defineProperty(exports, "hasAccessFromUserinfo", {
|
|
259
259
|
enumerable: true,
|
|
260
|
-
get: function () { return
|
|
260
|
+
get: function () { return chunkCI6RBG77_cjs.hasAccessFromUserinfo; }
|
|
261
261
|
});
|
|
262
262
|
Object.defineProperty(exports, "hashCanonicalJson", {
|
|
263
263
|
enumerable: true,
|
|
264
|
-
get: function () { return
|
|
264
|
+
get: function () { return chunkCI6RBG77_cjs.hashCanonicalJson; }
|
|
265
265
|
});
|
|
266
266
|
Object.defineProperty(exports, "isBlockedFromUserinfo", {
|
|
267
267
|
enumerable: true,
|
|
268
|
-
get: function () { return
|
|
268
|
+
get: function () { return chunkCI6RBG77_cjs.isBlockedFromUserinfo; }
|
|
269
269
|
});
|
|
270
270
|
Object.defineProperty(exports, "isFFIDInquiryAcquisitionSource", {
|
|
271
271
|
enumerable: true,
|
|
272
|
-
get: function () { return
|
|
272
|
+
get: function () { return chunkCI6RBG77_cjs.isFFIDInquiryAcquisitionSource; }
|
|
273
273
|
});
|
|
274
274
|
Object.defineProperty(exports, "isFFIDInquiryCategorySite2026", {
|
|
275
275
|
enumerable: true,
|
|
276
|
-
get: function () { return
|
|
276
|
+
get: function () { return chunkCI6RBG77_cjs.isFFIDInquiryCategorySite2026; }
|
|
277
277
|
});
|
|
278
278
|
Object.defineProperty(exports, "normalizeRedirectUri", {
|
|
279
279
|
enumerable: true,
|
|
280
|
-
get: function () { return
|
|
280
|
+
get: function () { return chunkCI6RBG77_cjs.normalizeRedirectUri; }
|
|
281
281
|
});
|
|
282
282
|
Object.defineProperty(exports, "retrieveCodeVerifier", {
|
|
283
283
|
enumerable: true,
|
|
284
|
-
get: function () { return
|
|
284
|
+
get: function () { return chunkCI6RBG77_cjs.retrieveCodeVerifier; }
|
|
285
285
|
});
|
|
286
286
|
Object.defineProperty(exports, "retrieveState", {
|
|
287
287
|
enumerable: true,
|
|
288
|
-
get: function () { return
|
|
288
|
+
get: function () { return chunkCI6RBG77_cjs.retrieveState; }
|
|
289
289
|
});
|
|
290
290
|
Object.defineProperty(exports, "sha256Hex", {
|
|
291
291
|
enumerable: true,
|
|
292
|
-
get: function () { return
|
|
292
|
+
get: function () { return chunkCI6RBG77_cjs.sha256Hex; }
|
|
293
293
|
});
|
|
294
294
|
Object.defineProperty(exports, "storeCodeVerifier", {
|
|
295
295
|
enumerable: true,
|
|
296
|
-
get: function () { return
|
|
296
|
+
get: function () { return chunkCI6RBG77_cjs.storeCodeVerifier; }
|
|
297
297
|
});
|
|
298
298
|
Object.defineProperty(exports, "storeState", {
|
|
299
299
|
enumerable: true,
|
|
300
|
-
get: function () { return
|
|
300
|
+
get: function () { return chunkCI6RBG77_cjs.storeState; }
|
|
301
301
|
});
|
|
302
302
|
Object.defineProperty(exports, "useFFID", {
|
|
303
303
|
enumerable: true,
|
|
304
|
-
get: function () { return
|
|
304
|
+
get: function () { return chunkCI6RBG77_cjs.useFFID; }
|
|
305
305
|
});
|
|
306
306
|
Object.defineProperty(exports, "useFFIDAnnouncements", {
|
|
307
307
|
enumerable: true,
|
|
308
|
-
get: function () { return
|
|
308
|
+
get: function () { return chunkCI6RBG77_cjs.useFFIDAnnouncements; }
|
|
309
309
|
});
|
|
310
310
|
Object.defineProperty(exports, "useSubscription", {
|
|
311
311
|
enumerable: true,
|
|
312
|
-
get: function () { return
|
|
312
|
+
get: function () { return chunkCI6RBG77_cjs.useSubscription; }
|
|
313
313
|
});
|
|
314
314
|
Object.defineProperty(exports, "validatePublishedCatalog", {
|
|
315
315
|
enumerable: true,
|
|
316
|
-
get: function () { return
|
|
316
|
+
get: function () { return chunkCI6RBG77_cjs.validatePublishedCatalog; }
|
|
317
317
|
});
|
|
318
318
|
Object.defineProperty(exports, "withSubscription", {
|
|
319
319
|
enumerable: true,
|
|
320
|
-
get: function () { return
|
|
320
|
+
get: function () { return chunkCI6RBG77_cjs.withSubscription; }
|
|
321
321
|
});
|
|
322
322
|
Object.defineProperty(exports, "ALL_DENIED_EXCEPT_NECESSARY", {
|
|
323
323
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useFFIDContext, useSubscription } from './chunk-
|
|
2
|
-
export { ACCESS_GRANTING_EFFECTIVE_STATUSES, 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_ANNOUNCEMENTS_ERROR_CODES, FFID_CATALOG_ENVIRONMENTS, FFID_CATALOG_PUBLICATION_STATUSES, FFID_ERROR_CODES, FFID_INQUIRY_ACQUISITION_SOURCES, FFID_INQUIRY_CATEGORIES, FFID_INQUIRY_CATEGORIES_SITE_2026, canonicalizeCatalogValue, cleanupStateStorage as clearState, computeEffectiveStatusFromSession, computeFFIDCheckoutCopyHash, computeLegalDisclosureHash, computePaymentConfigurationHash, computePraxisCopyHash, computeScopeHash, computeTaxConfigurationHash, createFFIDAnnouncementsClient, createFFIDClient, createTokenStore, generateCodeChallenge, generateCodeVerifier, handleRedirectCallback, hasAccessFromUserinfo, hashCanonicalJson, isBlockedFromUserinfo, isFFIDInquiryAcquisitionSource, isFFIDInquiryCategorySite2026, normalizeRedirectUri, retrieveCodeVerifier, retrieveState, sha256Hex, storeCodeVerifier, storeState, useFFID, useFFIDAnnouncements, useSubscription, validatePublishedCatalog, withSubscription } from './chunk-
|
|
1
|
+
import { useFFIDContext, useSubscription } from './chunk-NBBHMLXO.js';
|
|
2
|
+
export { ACCESS_GRANTING_EFFECTIVE_STATUSES, 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_ANNOUNCEMENTS_ERROR_CODES, FFID_CATALOG_ENVIRONMENTS, FFID_CATALOG_PUBLICATION_STATUSES, FFID_ERROR_CODES, FFID_INQUIRY_ACQUISITION_SOURCES, FFID_INQUIRY_CATEGORIES, FFID_INQUIRY_CATEGORIES_SITE_2026, canonicalizeCatalogValue, cleanupStateStorage as clearState, computeEffectiveStatusFromSession, computeFFIDCheckoutCopyHash, computeLegalDisclosureHash, computePaymentConfigurationHash, computePraxisCopyHash, computeScopeHash, computeTaxConfigurationHash, createFFIDAnnouncementsClient, createFFIDClient, createTokenStore, generateCodeChallenge, generateCodeVerifier, handleRedirectCallback, hasAccessFromUserinfo, hashCanonicalJson, isBlockedFromUserinfo, isFFIDInquiryAcquisitionSource, isFFIDInquiryCategorySite2026, normalizeRedirectUri, retrieveCodeVerifier, retrieveState, sha256Hex, storeCodeVerifier, storeState, useFFID, useFFIDAnnouncements, useSubscription, validatePublishedCatalog, withSubscription } from './chunk-NBBHMLXO.js';
|
|
3
3
|
export { ALL_DENIED_EXCEPT_NECESSARY, CONSENT_COOKIE_NAME, CONSENT_DISMISSAL_TIMESTAMP_KEY, COOKIE_VERSION, DEFAULT_CONSENT_ERROR_MESSAGES, FFIDAnalyticsProvider, FFIDConsentError, FFIDCookieBanner, FFIDCookieLink, FFIDCookieSettings, FFID_CONSENT_ERROR_CODES, clearConsentDismissalTimestamp, decodeConsentCookie, encodeConsentCookie, readConsentCookie, readConsentDismissalTimestamp, useFFIDConsent, useFFIDConsentPreferences, writeConsentCookie, writeConsentDismissalTimestamp } from './chunk-G7VOX64X.js';
|
|
4
4
|
import { useEffect, useRef } from 'react';
|
|
5
5
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
package/dist/legal/index.cjs
CHANGED
|
@@ -16,7 +16,14 @@ var FFID_LEGAL_ERROR_CODES = {
|
|
|
16
16
|
/** Server returned error without structured error body */
|
|
17
17
|
UNKNOWN_ERROR: "UNKNOWN_ERROR",
|
|
18
18
|
/** Input validation failed (empty required parameters) */
|
|
19
|
-
VALIDATION_ERROR: "VALIDATION_ERROR"
|
|
19
|
+
VALIDATION_ERROR: "VALIDATION_ERROR",
|
|
20
|
+
/**
|
|
21
|
+
* `externalUserEmail` was missing or blank (since 6.0.0).
|
|
22
|
+
*
|
|
23
|
+
* The same code the API returns with HTTP 422, so a consumer can branch on
|
|
24
|
+
* one value whether the request was refused locally or by the server.
|
|
25
|
+
*/
|
|
26
|
+
EXTERNAL_USER_EMAIL_REQUIRED: "EXTERNAL_USER_EMAIL_REQUIRED"
|
|
20
27
|
};
|
|
21
28
|
var noopLogger = {
|
|
22
29
|
debug: () => {
|
|
@@ -125,6 +132,14 @@ function createFFIDLegalClient(config) {
|
|
|
125
132
|
}
|
|
126
133
|
};
|
|
127
134
|
}
|
|
135
|
+
if (typeof request.externalUserEmail !== "string" || !request.externalUserEmail.trim()) {
|
|
136
|
+
return {
|
|
137
|
+
error: {
|
|
138
|
+
code: FFID_LEGAL_ERROR_CODES.EXTERNAL_USER_EMAIL_REQUIRED,
|
|
139
|
+
message: "externalUserEmail is required"
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
}
|
|
128
143
|
return fetchWithApiKey("/agreements", {
|
|
129
144
|
method: "POST",
|
|
130
145
|
body: JSON.stringify(request)
|
package/dist/legal/index.d.cts
CHANGED
|
@@ -79,10 +79,21 @@ interface FFIDServiceUserAgreement {
|
|
|
79
79
|
id: string;
|
|
80
80
|
/** Service ID (UUID) */
|
|
81
81
|
serviceId: string;
|
|
82
|
-
/**
|
|
82
|
+
/**
|
|
83
|
+
* Opaque user identifier owned by the calling service (its own primary key,
|
|
84
|
+
* or the upstream IdP's `sub`).
|
|
85
|
+
*
|
|
86
|
+
* Do **not** put an FFID user ID here — FFID resolves its own linkage from
|
|
87
|
+
* `externalUserEmail` and exposes it as {@link FFIDServiceUserAgreement.userId}.
|
|
88
|
+
*/
|
|
83
89
|
externalUserId: string;
|
|
84
|
-
/** External user email
|
|
90
|
+
/** External user email recorded at agreement time */
|
|
85
91
|
externalUserEmail: string | null;
|
|
92
|
+
/**
|
|
93
|
+
* FFID user this consent resolved to, or `null` when no FFID account matched
|
|
94
|
+
* `externalUserEmail`. The consent record is kept either way.
|
|
95
|
+
*/
|
|
96
|
+
userId: string | null;
|
|
86
97
|
/** Document ID (UUID) */
|
|
87
98
|
documentId: string;
|
|
88
99
|
/** Agreement timestamp (ISO 8601) */
|
|
@@ -108,10 +119,19 @@ interface FFIDServiceUserAgreement {
|
|
|
108
119
|
* Request to record an agreement
|
|
109
120
|
*/
|
|
110
121
|
interface FFIDRecordAgreementRequest {
|
|
111
|
-
/**
|
|
122
|
+
/**
|
|
123
|
+
* Opaque user identifier owned by the calling service (its own primary key,
|
|
124
|
+
* or the upstream IdP's `sub`). Do **not** send an FFID user ID.
|
|
125
|
+
*/
|
|
112
126
|
externalUserId: string;
|
|
113
|
-
/**
|
|
114
|
-
|
|
127
|
+
/**
|
|
128
|
+
* External user email. **Required.**
|
|
129
|
+
*
|
|
130
|
+
* FFID uses it as the only input for resolving this consent to an FFID user,
|
|
131
|
+
* and rejects the request with HTTP 422 (`EXTERNAL_USER_EMAIL_REQUIRED`) when
|
|
132
|
+
* it is missing or blank.
|
|
133
|
+
*/
|
|
134
|
+
externalUserEmail: string;
|
|
115
135
|
/** Document ID to agree to */
|
|
116
136
|
documentId: string;
|
|
117
137
|
/** Method of agreement (defaults to 'click_through') */
|
|
@@ -295,6 +315,13 @@ declare const FFID_LEGAL_ERROR_CODES: {
|
|
|
295
315
|
readonly UNKNOWN_ERROR: "UNKNOWN_ERROR";
|
|
296
316
|
/** Input validation failed (empty required parameters) */
|
|
297
317
|
readonly VALIDATION_ERROR: "VALIDATION_ERROR";
|
|
318
|
+
/**
|
|
319
|
+
* `externalUserEmail` was missing or blank (since 6.0.0).
|
|
320
|
+
*
|
|
321
|
+
* The same code the API returns with HTTP 422, so a consumer can branch on
|
|
322
|
+
* one value whether the request was refused locally or by the server.
|
|
323
|
+
*/
|
|
324
|
+
readonly EXTERNAL_USER_EMAIL_REQUIRED: "EXTERNAL_USER_EMAIL_REQUIRED";
|
|
298
325
|
};
|
|
299
326
|
/**
|
|
300
327
|
* Creates an FFID Legal API client instance
|
package/dist/legal/index.d.ts
CHANGED
|
@@ -79,10 +79,21 @@ interface FFIDServiceUserAgreement {
|
|
|
79
79
|
id: string;
|
|
80
80
|
/** Service ID (UUID) */
|
|
81
81
|
serviceId: string;
|
|
82
|
-
/**
|
|
82
|
+
/**
|
|
83
|
+
* Opaque user identifier owned by the calling service (its own primary key,
|
|
84
|
+
* or the upstream IdP's `sub`).
|
|
85
|
+
*
|
|
86
|
+
* Do **not** put an FFID user ID here — FFID resolves its own linkage from
|
|
87
|
+
* `externalUserEmail` and exposes it as {@link FFIDServiceUserAgreement.userId}.
|
|
88
|
+
*/
|
|
83
89
|
externalUserId: string;
|
|
84
|
-
/** External user email
|
|
90
|
+
/** External user email recorded at agreement time */
|
|
85
91
|
externalUserEmail: string | null;
|
|
92
|
+
/**
|
|
93
|
+
* FFID user this consent resolved to, or `null` when no FFID account matched
|
|
94
|
+
* `externalUserEmail`. The consent record is kept either way.
|
|
95
|
+
*/
|
|
96
|
+
userId: string | null;
|
|
86
97
|
/** Document ID (UUID) */
|
|
87
98
|
documentId: string;
|
|
88
99
|
/** Agreement timestamp (ISO 8601) */
|
|
@@ -108,10 +119,19 @@ interface FFIDServiceUserAgreement {
|
|
|
108
119
|
* Request to record an agreement
|
|
109
120
|
*/
|
|
110
121
|
interface FFIDRecordAgreementRequest {
|
|
111
|
-
/**
|
|
122
|
+
/**
|
|
123
|
+
* Opaque user identifier owned by the calling service (its own primary key,
|
|
124
|
+
* or the upstream IdP's `sub`). Do **not** send an FFID user ID.
|
|
125
|
+
*/
|
|
112
126
|
externalUserId: string;
|
|
113
|
-
/**
|
|
114
|
-
|
|
127
|
+
/**
|
|
128
|
+
* External user email. **Required.**
|
|
129
|
+
*
|
|
130
|
+
* FFID uses it as the only input for resolving this consent to an FFID user,
|
|
131
|
+
* and rejects the request with HTTP 422 (`EXTERNAL_USER_EMAIL_REQUIRED`) when
|
|
132
|
+
* it is missing or blank.
|
|
133
|
+
*/
|
|
134
|
+
externalUserEmail: string;
|
|
115
135
|
/** Document ID to agree to */
|
|
116
136
|
documentId: string;
|
|
117
137
|
/** Method of agreement (defaults to 'click_through') */
|
|
@@ -295,6 +315,13 @@ declare const FFID_LEGAL_ERROR_CODES: {
|
|
|
295
315
|
readonly UNKNOWN_ERROR: "UNKNOWN_ERROR";
|
|
296
316
|
/** Input validation failed (empty required parameters) */
|
|
297
317
|
readonly VALIDATION_ERROR: "VALIDATION_ERROR";
|
|
318
|
+
/**
|
|
319
|
+
* `externalUserEmail` was missing or blank (since 6.0.0).
|
|
320
|
+
*
|
|
321
|
+
* The same code the API returns with HTTP 422, so a consumer can branch on
|
|
322
|
+
* one value whether the request was refused locally or by the server.
|
|
323
|
+
*/
|
|
324
|
+
readonly EXTERNAL_USER_EMAIL_REQUIRED: "EXTERNAL_USER_EMAIL_REQUIRED";
|
|
298
325
|
};
|
|
299
326
|
/**
|
|
300
327
|
* Creates an FFID Legal API client instance
|
package/dist/legal/index.js
CHANGED
|
@@ -15,7 +15,14 @@ var FFID_LEGAL_ERROR_CODES = {
|
|
|
15
15
|
/** Server returned error without structured error body */
|
|
16
16
|
UNKNOWN_ERROR: "UNKNOWN_ERROR",
|
|
17
17
|
/** Input validation failed (empty required parameters) */
|
|
18
|
-
VALIDATION_ERROR: "VALIDATION_ERROR"
|
|
18
|
+
VALIDATION_ERROR: "VALIDATION_ERROR",
|
|
19
|
+
/**
|
|
20
|
+
* `externalUserEmail` was missing or blank (since 6.0.0).
|
|
21
|
+
*
|
|
22
|
+
* The same code the API returns with HTTP 422, so a consumer can branch on
|
|
23
|
+
* one value whether the request was refused locally or by the server.
|
|
24
|
+
*/
|
|
25
|
+
EXTERNAL_USER_EMAIL_REQUIRED: "EXTERNAL_USER_EMAIL_REQUIRED"
|
|
19
26
|
};
|
|
20
27
|
var noopLogger = {
|
|
21
28
|
debug: () => {
|
|
@@ -124,6 +131,14 @@ function createFFIDLegalClient(config) {
|
|
|
124
131
|
}
|
|
125
132
|
};
|
|
126
133
|
}
|
|
134
|
+
if (typeof request.externalUserEmail !== "string" || !request.externalUserEmail.trim()) {
|
|
135
|
+
return {
|
|
136
|
+
error: {
|
|
137
|
+
code: FFID_LEGAL_ERROR_CODES.EXTERNAL_USER_EMAIL_REQUIRED,
|
|
138
|
+
message: "externalUserEmail is required"
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
}
|
|
127
142
|
return fetchWithApiKey("/agreements", {
|
|
128
143
|
method: "POST",
|
|
129
144
|
body: JSON.stringify(request)
|
package/dist/server/index.cjs
CHANGED
|
@@ -1672,7 +1672,7 @@ function validateTokenResponse(tokenResponse) {
|
|
|
1672
1672
|
}
|
|
1673
1673
|
|
|
1674
1674
|
// src/client/version-check.ts
|
|
1675
|
-
var SDK_VERSION = "
|
|
1675
|
+
var SDK_VERSION = "6.0.0";
|
|
1676
1676
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
1677
1677
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
1678
1678
|
function sdkHeaders() {
|
package/dist/server/index.js
CHANGED
|
@@ -1671,7 +1671,7 @@ function validateTokenResponse(tokenResponse) {
|
|
|
1671
1671
|
}
|
|
1672
1672
|
|
|
1673
1673
|
// src/client/version-check.ts
|
|
1674
|
-
var SDK_VERSION = "
|
|
1674
|
+
var SDK_VERSION = "6.0.0";
|
|
1675
1675
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
1676
1676
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
1677
1677
|
function sdkHeaders() {
|