@feelflow/ffid-sdk 5.4.0 → 5.5.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.
@@ -341,9 +341,32 @@ type GetDocumentWire = z.infer<typeof GetDocumentWireSchema>;
341
341
  /**
342
342
  * Warning event surfaced to `onConsentChange(state, warning)` after a `/sync`
343
343
  * call. Spec §5.3 requires non-null warnings to be visible to the user.
344
+ *
345
+ * @remarks
346
+ * Multi-locale consumers should pattern-match on `code` and resolve their own
347
+ * copy. The `message` field defaults to the SDK's built-in Japanese copy
348
+ * (`DEFAULT_MERGE_WARNING_MESSAGES`); pass `mergeWarningMessages` on
349
+ * `<FFIDAnalyticsProvider>` to inject locale-specific overrides without
350
+ * losing the warning event itself.
344
351
  */
345
352
  interface FFIDConsentMergeWarningEvent {
346
353
  code: FFIDConsentMergeWarning;
354
+ /**
355
+ * Human-readable copy. Defaults to the SDK's built-in Japanese copy unless
356
+ * `<FFIDAnalyticsProvider mergeWarningMessages={...}>` overrides it.
357
+ *
358
+ * @deprecated Scheduled for removal in `@feelflow/ffid-sdk` v6.0 so that
359
+ * `FFIDConsentMergeWarningEvent` becomes symmetric with
360
+ * `FFIDConsentSyncResult.warning` (code-only). Consumers should
361
+ * pattern-match on `code` and resolve copy in their own i18n layer.
362
+ *
363
+ * Migration: replace `event.message` reads with `messages[event.code]`
364
+ * where `messages` is typed as
365
+ * `Record<FFIDConsentMergeWarning, string>` (not `Partial<...>`) so
366
+ * TypeScript exhaustiveness-checks every enum value at compile time
367
+ * and the dictionary can never leak `undefined` the way an unchecked
368
+ * `event.message` could in pre-v5.5 SDKs.
369
+ */
347
370
  message: string;
348
371
  }
349
372
  /**
@@ -708,11 +731,27 @@ interface FFIDAnalyticsProviderProps {
708
731
  * suppressed by a UX dismissal.
709
732
  */
710
733
  dismissalCooldownMinutes?: number;
734
+ /**
735
+ * Per-locale override map for `FFIDConsentMergeWarningEvent.message`.
736
+ *
737
+ * The Provider derives `message` for the `onConsentChange(state, warning)`
738
+ * callback from this map, falling back to `DEFAULT_MERGE_WARNING_MESSAGES`
739
+ * (JP) for any missing key. Pass only the keys you need to translate —
740
+ * partial overrides are merged with the defaults.
741
+ *
742
+ * Note: the underlying `code` (`FFIDConsentMergeWarning`) is the canonical
743
+ * identifier — multi-locale consumers should prefer pattern-matching on
744
+ * `warning.code` over reading `warning.message` directly. The `message`
745
+ * field is `@deprecated` and scheduled for removal in v6.0; this prop is
746
+ * the interim escape hatch so non-JP consumers don't have to wait for the
747
+ * v6.0 major to surface localized copy.
748
+ */
749
+ mergeWarningMessages?: Partial<Record<FFIDConsentMergeWarning, string>>;
711
750
  /** Optional fetch override (mainly for tests). */
712
751
  fetchImpl?: typeof fetch;
713
752
  children: ReactNode;
714
753
  }
715
- declare function FFIDAnalyticsProvider({ baseUrl, serviceApiKey, getAccessToken, gaMeasurementId, sentryReplay, sentry, onConsentChange, onError, autoShowBanner, dismissalCooldownMinutes, fetchImpl, children, }: FFIDAnalyticsProviderProps): React.JSX.Element;
754
+ declare function FFIDAnalyticsProvider({ baseUrl, serviceApiKey, getAccessToken, gaMeasurementId, sentryReplay, sentry, onConsentChange, onError, autoShowBanner, dismissalCooldownMinutes, mergeWarningMessages, fetchImpl, children, }: FFIDAnalyticsProviderProps): React.JSX.Element;
716
755
 
717
756
  interface FFIDConsentContextValue {
718
757
  /** Current consent state. Always non-null; "not yet decided" is encoded by `hasDecided=false`. */
@@ -341,9 +341,32 @@ type GetDocumentWire = z.infer<typeof GetDocumentWireSchema>;
341
341
  /**
342
342
  * Warning event surfaced to `onConsentChange(state, warning)` after a `/sync`
343
343
  * call. Spec §5.3 requires non-null warnings to be visible to the user.
344
+ *
345
+ * @remarks
346
+ * Multi-locale consumers should pattern-match on `code` and resolve their own
347
+ * copy. The `message` field defaults to the SDK's built-in Japanese copy
348
+ * (`DEFAULT_MERGE_WARNING_MESSAGES`); pass `mergeWarningMessages` on
349
+ * `<FFIDAnalyticsProvider>` to inject locale-specific overrides without
350
+ * losing the warning event itself.
344
351
  */
345
352
  interface FFIDConsentMergeWarningEvent {
346
353
  code: FFIDConsentMergeWarning;
354
+ /**
355
+ * Human-readable copy. Defaults to the SDK's built-in Japanese copy unless
356
+ * `<FFIDAnalyticsProvider mergeWarningMessages={...}>` overrides it.
357
+ *
358
+ * @deprecated Scheduled for removal in `@feelflow/ffid-sdk` v6.0 so that
359
+ * `FFIDConsentMergeWarningEvent` becomes symmetric with
360
+ * `FFIDConsentSyncResult.warning` (code-only). Consumers should
361
+ * pattern-match on `code` and resolve copy in their own i18n layer.
362
+ *
363
+ * Migration: replace `event.message` reads with `messages[event.code]`
364
+ * where `messages` is typed as
365
+ * `Record<FFIDConsentMergeWarning, string>` (not `Partial<...>`) so
366
+ * TypeScript exhaustiveness-checks every enum value at compile time
367
+ * and the dictionary can never leak `undefined` the way an unchecked
368
+ * `event.message` could in pre-v5.5 SDKs.
369
+ */
347
370
  message: string;
348
371
  }
349
372
  /**
@@ -708,11 +731,27 @@ interface FFIDAnalyticsProviderProps {
708
731
  * suppressed by a UX dismissal.
709
732
  */
710
733
  dismissalCooldownMinutes?: number;
734
+ /**
735
+ * Per-locale override map for `FFIDConsentMergeWarningEvent.message`.
736
+ *
737
+ * The Provider derives `message` for the `onConsentChange(state, warning)`
738
+ * callback from this map, falling back to `DEFAULT_MERGE_WARNING_MESSAGES`
739
+ * (JP) for any missing key. Pass only the keys you need to translate —
740
+ * partial overrides are merged with the defaults.
741
+ *
742
+ * Note: the underlying `code` (`FFIDConsentMergeWarning`) is the canonical
743
+ * identifier — multi-locale consumers should prefer pattern-matching on
744
+ * `warning.code` over reading `warning.message` directly. The `message`
745
+ * field is `@deprecated` and scheduled for removal in v6.0; this prop is
746
+ * the interim escape hatch so non-JP consumers don't have to wait for the
747
+ * v6.0 major to surface localized copy.
748
+ */
749
+ mergeWarningMessages?: Partial<Record<FFIDConsentMergeWarning, string>>;
711
750
  /** Optional fetch override (mainly for tests). */
712
751
  fetchImpl?: typeof fetch;
713
752
  children: ReactNode;
714
753
  }
715
- declare function FFIDAnalyticsProvider({ baseUrl, serviceApiKey, getAccessToken, gaMeasurementId, sentryReplay, sentry, onConsentChange, onError, autoShowBanner, dismissalCooldownMinutes, fetchImpl, children, }: FFIDAnalyticsProviderProps): React.JSX.Element;
754
+ declare function FFIDAnalyticsProvider({ baseUrl, serviceApiKey, getAccessToken, gaMeasurementId, sentryReplay, sentry, onConsentChange, onError, autoShowBanner, dismissalCooldownMinutes, mergeWarningMessages, fetchImpl, children, }: FFIDAnalyticsProviderProps): React.JSX.Element;
716
755
 
717
756
  interface FFIDConsentContextValue {
718
757
  /** Current consent state. Always non-null; "not yet decided" is encoded by `hasDecided=false`. */
@@ -842,7 +842,7 @@ function createProfileMethods(deps) {
842
842
  }
843
843
 
844
844
  // src/client/version-check.ts
845
- var SDK_VERSION = "5.4.0";
845
+ var SDK_VERSION = "5.5.0";
846
846
  var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
847
847
  var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
848
848
  function sdkHeaders() {
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { createContext, useCallback, useState, useRef, useEffect, useMemo, useContext } from 'react';
2
+ import { createContext, useMemo, useCallback, useState, useRef, useEffect, useContext } from 'react';
3
3
  import { jsx, jsxs } from 'react/jsx-runtime';
4
4
 
5
5
  var FFIDConsentCategoryCodeSchema = z.enum([
@@ -1071,10 +1071,18 @@ function FFIDAnalyticsProvider({
1071
1071
  onError,
1072
1072
  autoShowBanner = true,
1073
1073
  dismissalCooldownMinutes = DEFAULT_DISMISSAL_COOLDOWN_MINUTES,
1074
+ mergeWarningMessages,
1074
1075
  fetchImpl,
1075
1076
  children
1076
1077
  }) {
1077
1078
  const cooldownMs = Number.isFinite(dismissalCooldownMinutes) && dismissalCooldownMinutes > 0 ? dismissalCooldownMinutes * MS_PER_MINUTE : 0;
1079
+ const resolvedMergeWarningMessages = useMemo(
1080
+ () => ({
1081
+ ...DEFAULT_MERGE_WARNING_MESSAGES,
1082
+ ...mergeWarningMessages
1083
+ }),
1084
+ [mergeWarningMessages]
1085
+ );
1078
1086
  const isWithinDismissalCooldown = useCallback(() => {
1079
1087
  if (cooldownMs <= 0) return false;
1080
1088
  const dismissedAt = readConsentDismissalTimestamp();
@@ -1311,7 +1319,16 @@ function FFIDAnalyticsProvider({
1311
1319
  persistCategories(result.value.state.categories);
1312
1320
  const warning = result.value.warning ? {
1313
1321
  code: result.value.warning,
1314
- message: DEFAULT_MERGE_WARNING_MESSAGES[result.value.warning]
1322
+ // Belt-and-suspenders fallback per spec §5.3: an empty-string
1323
+ // override (`mergeWarningMessages={{ code: '' }}`) or a future
1324
+ // wire-schema widening that adds a new `FFIDConsentMergeWarning`
1325
+ // literal without a default copy would otherwise leak `''` /
1326
+ // `undefined` into `warning.message`, silently breaking consumers
1327
+ // that render it (`<Toast>{warning.message}</Toast>`,
1328
+ // `Sentry.setContext`). Truthy-fallback preserves visibility of
1329
+ // the JP default; consumers wanting to suppress display should
1330
+ // pattern-match on `code` instead of mutating `message`.
1331
+ message: resolvedMergeWarningMessages[result.value.warning] || DEFAULT_MERGE_WARNING_MESSAGES[result.value.warning]
1315
1332
  } : null;
1316
1333
  onConsentChange?.(result.value.state, warning);
1317
1334
  return result;
@@ -1320,7 +1337,8 @@ function FFIDAnalyticsProvider({
1320
1337
  ensurePolicyVersion,
1321
1338
  onConsentChange,
1322
1339
  onError,
1323
- persistCategories
1340
+ persistCategories,
1341
+ resolvedMergeWarningMessages
1324
1342
  ]);
1325
1343
  const openBanner = useCallback(() => setIsBannerOpen(true), []);
1326
1344
  const closeBanner = useCallback(() => {
@@ -1073,10 +1073,18 @@ function FFIDAnalyticsProvider({
1073
1073
  onError,
1074
1074
  autoShowBanner = true,
1075
1075
  dismissalCooldownMinutes = DEFAULT_DISMISSAL_COOLDOWN_MINUTES,
1076
+ mergeWarningMessages,
1076
1077
  fetchImpl,
1077
1078
  children
1078
1079
  }) {
1079
1080
  const cooldownMs = Number.isFinite(dismissalCooldownMinutes) && dismissalCooldownMinutes > 0 ? dismissalCooldownMinutes * MS_PER_MINUTE : 0;
1081
+ const resolvedMergeWarningMessages = react.useMemo(
1082
+ () => ({
1083
+ ...DEFAULT_MERGE_WARNING_MESSAGES,
1084
+ ...mergeWarningMessages
1085
+ }),
1086
+ [mergeWarningMessages]
1087
+ );
1080
1088
  const isWithinDismissalCooldown = react.useCallback(() => {
1081
1089
  if (cooldownMs <= 0) return false;
1082
1090
  const dismissedAt = readConsentDismissalTimestamp();
@@ -1313,7 +1321,16 @@ function FFIDAnalyticsProvider({
1313
1321
  persistCategories(result.value.state.categories);
1314
1322
  const warning = result.value.warning ? {
1315
1323
  code: result.value.warning,
1316
- message: DEFAULT_MERGE_WARNING_MESSAGES[result.value.warning]
1324
+ // Belt-and-suspenders fallback per spec §5.3: an empty-string
1325
+ // override (`mergeWarningMessages={{ code: '' }}`) or a future
1326
+ // wire-schema widening that adds a new `FFIDConsentMergeWarning`
1327
+ // literal without a default copy would otherwise leak `''` /
1328
+ // `undefined` into `warning.message`, silently breaking consumers
1329
+ // that render it (`<Toast>{warning.message}</Toast>`,
1330
+ // `Sentry.setContext`). Truthy-fallback preserves visibility of
1331
+ // the JP default; consumers wanting to suppress display should
1332
+ // pattern-match on `code` instead of mutating `message`.
1333
+ message: resolvedMergeWarningMessages[result.value.warning] || DEFAULT_MERGE_WARNING_MESSAGES[result.value.warning]
1317
1334
  } : null;
1318
1335
  onConsentChange?.(result.value.state, warning);
1319
1336
  return result;
@@ -1322,7 +1339,8 @@ function FFIDAnalyticsProvider({
1322
1339
  ensurePolicyVersion,
1323
1340
  onConsentChange,
1324
1341
  onError,
1325
- persistCategories
1342
+ persistCategories,
1343
+ resolvedMergeWarningMessages
1326
1344
  ]);
1327
1345
  const openBanner = react.useCallback(() => setIsBannerOpen(true), []);
1328
1346
  const closeBanner = react.useCallback(() => {
@@ -840,7 +840,7 @@ function createProfileMethods(deps) {
840
840
  }
841
841
 
842
842
  // src/client/version-check.ts
843
- var SDK_VERSION = "5.4.0";
843
+ var SDK_VERSION = "5.5.0";
844
844
  var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
845
845
  var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
846
846
  function sdkHeaders() {
@@ -1,34 +1,34 @@
1
1
  'use strict';
2
2
 
3
- var chunkUOXRMTUI_cjs = require('../chunk-UOXRMTUI.cjs');
3
+ var chunkJKP3MBTT_cjs = require('../chunk-JKP3MBTT.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "FFIDAnnouncementBadge", {
8
8
  enumerable: true,
9
- get: function () { return chunkUOXRMTUI_cjs.FFIDAnnouncementBadge; }
9
+ get: function () { return chunkJKP3MBTT_cjs.FFIDAnnouncementBadge; }
10
10
  });
11
11
  Object.defineProperty(exports, "FFIDAnnouncementList", {
12
12
  enumerable: true,
13
- get: function () { return chunkUOXRMTUI_cjs.FFIDAnnouncementList; }
13
+ get: function () { return chunkJKP3MBTT_cjs.FFIDAnnouncementList; }
14
14
  });
15
15
  Object.defineProperty(exports, "FFIDInquiryForm", {
16
16
  enumerable: true,
17
- get: function () { return chunkUOXRMTUI_cjs.FFIDInquiryForm; }
17
+ get: function () { return chunkJKP3MBTT_cjs.FFIDInquiryForm; }
18
18
  });
19
19
  Object.defineProperty(exports, "FFIDLoginButton", {
20
20
  enumerable: true,
21
- get: function () { return chunkUOXRMTUI_cjs.FFIDLoginButton; }
21
+ get: function () { return chunkJKP3MBTT_cjs.FFIDLoginButton; }
22
22
  });
23
23
  Object.defineProperty(exports, "FFIDOrganizationSwitcher", {
24
24
  enumerable: true,
25
- get: function () { return chunkUOXRMTUI_cjs.FFIDOrganizationSwitcher; }
25
+ get: function () { return chunkJKP3MBTT_cjs.FFIDOrganizationSwitcher; }
26
26
  });
27
27
  Object.defineProperty(exports, "FFIDSubscriptionBadge", {
28
28
  enumerable: true,
29
- get: function () { return chunkUOXRMTUI_cjs.FFIDSubscriptionBadge; }
29
+ get: function () { return chunkJKP3MBTT_cjs.FFIDSubscriptionBadge; }
30
30
  });
31
31
  Object.defineProperty(exports, "FFIDUserMenu", {
32
32
  enumerable: true,
33
- get: function () { return chunkUOXRMTUI_cjs.FFIDUserMenu; }
33
+ get: function () { return chunkJKP3MBTT_cjs.FFIDUserMenu; }
34
34
  });
@@ -1 +1 @@
1
- export { FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDSubscriptionBadge, FFIDUserMenu } from '../chunk-RWA4L5WT.js';
1
+ export { FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDSubscriptionBadge, FFIDUserMenu } from '../chunk-WNYMSUHN.js';
@@ -1,258 +1,258 @@
1
1
  'use strict';
2
2
 
3
- var chunkQZN4WZCV_cjs = require('../chunk-QZN4WZCV.cjs');
3
+ var chunkQ5SZVLNB_cjs = require('../chunk-Q5SZVLNB.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "ALL_DENIED_EXCEPT_NECESSARY", {
8
8
  enumerable: true,
9
- get: function () { return chunkQZN4WZCV_cjs.ALL_DENIED_EXCEPT_NECESSARY; }
9
+ get: function () { return chunkQ5SZVLNB_cjs.ALL_DENIED_EXCEPT_NECESSARY; }
10
10
  });
11
11
  Object.defineProperty(exports, "CONSENT_COOKIE_MAX_AGE_SEC", {
12
12
  enumerable: true,
13
- get: function () { return chunkQZN4WZCV_cjs.CONSENT_COOKIE_MAX_AGE_SEC; }
13
+ get: function () { return chunkQ5SZVLNB_cjs.CONSENT_COOKIE_MAX_AGE_SEC; }
14
14
  });
15
15
  Object.defineProperty(exports, "CONSENT_COOKIE_NAME", {
16
16
  enumerable: true,
17
- get: function () { return chunkQZN4WZCV_cjs.CONSENT_COOKIE_NAME; }
17
+ get: function () { return chunkQ5SZVLNB_cjs.CONSENT_COOKIE_NAME; }
18
18
  });
19
19
  Object.defineProperty(exports, "CONSENT_DISMISSAL_TIMESTAMP_KEY", {
20
20
  enumerable: true,
21
- get: function () { return chunkQZN4WZCV_cjs.CONSENT_DISMISSAL_TIMESTAMP_KEY; }
21
+ get: function () { return chunkQ5SZVLNB_cjs.CONSENT_DISMISSAL_TIMESTAMP_KEY; }
22
22
  });
23
23
  Object.defineProperty(exports, "CONSENT_SESSION_STORAGE_KEY", {
24
24
  enumerable: true,
25
- get: function () { return chunkQZN4WZCV_cjs.CONSENT_SESSION_STORAGE_KEY; }
25
+ get: function () { return chunkQ5SZVLNB_cjs.CONSENT_SESSION_STORAGE_KEY; }
26
26
  });
27
27
  Object.defineProperty(exports, "COOKIE_VERSION", {
28
28
  enumerable: true,
29
- get: function () { return chunkQZN4WZCV_cjs.COOKIE_VERSION; }
29
+ get: function () { return chunkQ5SZVLNB_cjs.COOKIE_VERSION; }
30
30
  });
31
31
  Object.defineProperty(exports, "DEFAULT_CONSENT_ERROR_MESSAGES", {
32
32
  enumerable: true,
33
- get: function () { return chunkQZN4WZCV_cjs.DEFAULT_CONSENT_ERROR_MESSAGES; }
33
+ get: function () { return chunkQ5SZVLNB_cjs.DEFAULT_CONSENT_ERROR_MESSAGES; }
34
34
  });
35
35
  Object.defineProperty(exports, "DEFAULT_MERGE_WARNING_MESSAGES", {
36
36
  enumerable: true,
37
- get: function () { return chunkQZN4WZCV_cjs.DEFAULT_MERGE_WARNING_MESSAGES; }
37
+ get: function () { return chunkQ5SZVLNB_cjs.DEFAULT_MERGE_WARNING_MESSAGES; }
38
38
  });
39
39
  Object.defineProperty(exports, "DEVICE_ID_LOCAL_STORAGE_KEY", {
40
40
  enumerable: true,
41
- get: function () { return chunkQZN4WZCV_cjs.DEVICE_ID_LOCAL_STORAGE_KEY; }
41
+ get: function () { return chunkQ5SZVLNB_cjs.DEVICE_ID_LOCAL_STORAGE_KEY; }
42
42
  });
43
43
  Object.defineProperty(exports, "DEVICE_ID_SESSION_STORAGE_KEY", {
44
44
  enumerable: true,
45
- get: function () { return chunkQZN4WZCV_cjs.DEVICE_ID_SESSION_STORAGE_KEY; }
45
+ get: function () { return chunkQ5SZVLNB_cjs.DEVICE_ID_SESSION_STORAGE_KEY; }
46
46
  });
47
47
  Object.defineProperty(exports, "DeviceIdSchema", {
48
48
  enumerable: true,
49
- get: function () { return chunkQZN4WZCV_cjs.DeviceIdSchema; }
49
+ get: function () { return chunkQ5SZVLNB_cjs.DeviceIdSchema; }
50
50
  });
51
51
  Object.defineProperty(exports, "FFIDAnalyticsProvider", {
52
52
  enumerable: true,
53
- get: function () { return chunkQZN4WZCV_cjs.FFIDAnalyticsProvider; }
53
+ get: function () { return chunkQ5SZVLNB_cjs.FFIDAnalyticsProvider; }
54
54
  });
55
55
  Object.defineProperty(exports, "FFIDConsentCategoriesSchema", {
56
56
  enumerable: true,
57
- get: function () { return chunkQZN4WZCV_cjs.FFIDConsentCategoriesSchema; }
57
+ get: function () { return chunkQ5SZVLNB_cjs.FFIDConsentCategoriesSchema; }
58
58
  });
59
59
  Object.defineProperty(exports, "FFIDConsentCategoryCodeSchema", {
60
60
  enumerable: true,
61
- get: function () { return chunkQZN4WZCV_cjs.FFIDConsentCategoryCodeSchema; }
61
+ get: function () { return chunkQ5SZVLNB_cjs.FFIDConsentCategoryCodeSchema; }
62
62
  });
63
63
  Object.defineProperty(exports, "FFIDConsentCategoryMetadataSchema", {
64
64
  enumerable: true,
65
- get: function () { return chunkQZN4WZCV_cjs.FFIDConsentCategoryMetadataSchema; }
65
+ get: function () { return chunkQ5SZVLNB_cjs.FFIDConsentCategoryMetadataSchema; }
66
66
  });
67
67
  Object.defineProperty(exports, "FFIDConsentContext", {
68
68
  enumerable: true,
69
- get: function () { return chunkQZN4WZCV_cjs.FFIDConsentContext; }
69
+ get: function () { return chunkQ5SZVLNB_cjs.FFIDConsentContext; }
70
70
  });
71
71
  Object.defineProperty(exports, "FFIDConsentError", {
72
72
  enumerable: true,
73
- get: function () { return chunkQZN4WZCV_cjs.FFIDConsentError; }
73
+ get: function () { return chunkQ5SZVLNB_cjs.FFIDConsentError; }
74
74
  });
75
75
  Object.defineProperty(exports, "FFIDConsentMergeStrategySchema", {
76
76
  enumerable: true,
77
- get: function () { return chunkQZN4WZCV_cjs.FFIDConsentMergeStrategySchema; }
77
+ get: function () { return chunkQ5SZVLNB_cjs.FFIDConsentMergeStrategySchema; }
78
78
  });
79
79
  Object.defineProperty(exports, "FFIDConsentMergeWarningSchema", {
80
80
  enumerable: true,
81
- get: function () { return chunkQZN4WZCV_cjs.FFIDConsentMergeWarningSchema; }
81
+ get: function () { return chunkQ5SZVLNB_cjs.FFIDConsentMergeWarningSchema; }
82
82
  });
83
83
  Object.defineProperty(exports, "FFIDConsentSourceSchema", {
84
84
  enumerable: true,
85
- get: function () { return chunkQZN4WZCV_cjs.FFIDConsentSourceSchema; }
85
+ get: function () { return chunkQ5SZVLNB_cjs.FFIDConsentSourceSchema; }
86
86
  });
87
87
  Object.defineProperty(exports, "FFIDConsentStateSchema", {
88
88
  enumerable: true,
89
- get: function () { return chunkQZN4WZCV_cjs.FFIDConsentStateSchema; }
89
+ get: function () { return chunkQ5SZVLNB_cjs.FFIDConsentStateSchema; }
90
90
  });
91
91
  Object.defineProperty(exports, "FFIDConsentUpdateSchema", {
92
92
  enumerable: true,
93
- get: function () { return chunkQZN4WZCV_cjs.FFIDConsentUpdateSchema; }
93
+ get: function () { return chunkQ5SZVLNB_cjs.FFIDConsentUpdateSchema; }
94
94
  });
95
95
  Object.defineProperty(exports, "FFIDCookieBanner", {
96
96
  enumerable: true,
97
- get: function () { return chunkQZN4WZCV_cjs.FFIDCookieBanner; }
97
+ get: function () { return chunkQ5SZVLNB_cjs.FFIDCookieBanner; }
98
98
  });
99
99
  Object.defineProperty(exports, "FFIDCookieLink", {
100
100
  enumerable: true,
101
- get: function () { return chunkQZN4WZCV_cjs.FFIDCookieLink; }
101
+ get: function () { return chunkQ5SZVLNB_cjs.FFIDCookieLink; }
102
102
  });
103
103
  Object.defineProperty(exports, "FFIDCookiePolicySchema", {
104
104
  enumerable: true,
105
- get: function () { return chunkQZN4WZCV_cjs.FFIDCookiePolicySchema; }
105
+ get: function () { return chunkQ5SZVLNB_cjs.FFIDCookiePolicySchema; }
106
106
  });
107
107
  Object.defineProperty(exports, "FFIDCookieSettings", {
108
108
  enumerable: true,
109
- get: function () { return chunkQZN4WZCV_cjs.FFIDCookieSettings; }
109
+ get: function () { return chunkQ5SZVLNB_cjs.FFIDCookieSettings; }
110
110
  });
111
111
  Object.defineProperty(exports, "FFIDInternalConsentSourceSchema", {
112
112
  enumerable: true,
113
- get: function () { return chunkQZN4WZCV_cjs.FFIDInternalConsentSourceSchema; }
113
+ get: function () { return chunkQ5SZVLNB_cjs.FFIDInternalConsentSourceSchema; }
114
114
  });
115
115
  Object.defineProperty(exports, "FFIDPublicConsentSourceSchema", {
116
116
  enumerable: true,
117
- get: function () { return chunkQZN4WZCV_cjs.FFIDPublicConsentSourceSchema; }
117
+ get: function () { return chunkQ5SZVLNB_cjs.FFIDPublicConsentSourceSchema; }
118
118
  });
119
119
  Object.defineProperty(exports, "FFID_CONSENT_ERROR_CODES", {
120
120
  enumerable: true,
121
- get: function () { return chunkQZN4WZCV_cjs.FFID_CONSENT_ERROR_CODES; }
121
+ get: function () { return chunkQ5SZVLNB_cjs.FFID_CONSENT_ERROR_CODES; }
122
122
  });
123
123
  Object.defineProperty(exports, "FFID_CONSENT_NOT_DECIDED_STATE", {
124
124
  enumerable: true,
125
- get: function () { return chunkQZN4WZCV_cjs.FFID_CONSENT_NOT_DECIDED_STATE; }
125
+ get: function () { return chunkQ5SZVLNB_cjs.FFID_CONSENT_NOT_DECIDED_STATE; }
126
126
  });
127
127
  Object.defineProperty(exports, "GetCategoriesWireSchema", {
128
128
  enumerable: true,
129
- get: function () { return chunkQZN4WZCV_cjs.GetCategoriesWireSchema; }
129
+ get: function () { return chunkQ5SZVLNB_cjs.GetCategoriesWireSchema; }
130
130
  });
131
131
  Object.defineProperty(exports, "GetConsentMeWireSchema", {
132
132
  enumerable: true,
133
- get: function () { return chunkQZN4WZCV_cjs.GetConsentMeWireSchema; }
133
+ get: function () { return chunkQ5SZVLNB_cjs.GetConsentMeWireSchema; }
134
134
  });
135
135
  Object.defineProperty(exports, "GetDocumentWireSchema", {
136
136
  enumerable: true,
137
- get: function () { return chunkQZN4WZCV_cjs.GetDocumentWireSchema; }
137
+ get: function () { return chunkQ5SZVLNB_cjs.GetDocumentWireSchema; }
138
138
  });
139
139
  Object.defineProperty(exports, "PostConsentRequestSchema", {
140
140
  enumerable: true,
141
- get: function () { return chunkQZN4WZCV_cjs.PostConsentRequestSchema; }
141
+ get: function () { return chunkQ5SZVLNB_cjs.PostConsentRequestSchema; }
142
142
  });
143
143
  Object.defineProperty(exports, "PostConsentWireSchema", {
144
144
  enumerable: true,
145
- get: function () { return chunkQZN4WZCV_cjs.PostConsentWireSchema; }
145
+ get: function () { return chunkQ5SZVLNB_cjs.PostConsentWireSchema; }
146
146
  });
147
147
  Object.defineProperty(exports, "PostSyncRequestSchema", {
148
148
  enumerable: true,
149
- get: function () { return chunkQZN4WZCV_cjs.PostSyncRequestSchema; }
149
+ get: function () { return chunkQ5SZVLNB_cjs.PostSyncRequestSchema; }
150
150
  });
151
151
  Object.defineProperty(exports, "PostSyncWireSchema", {
152
152
  enumerable: true,
153
- get: function () { return chunkQZN4WZCV_cjs.PostSyncWireSchema; }
153
+ get: function () { return chunkQ5SZVLNB_cjs.PostSyncWireSchema; }
154
154
  });
155
155
  Object.defineProperty(exports, "PostWithdrawWireSchema", {
156
156
  enumerable: true,
157
- get: function () { return chunkQZN4WZCV_cjs.PostWithdrawWireSchema; }
157
+ get: function () { return chunkQ5SZVLNB_cjs.PostWithdrawWireSchema; }
158
158
  });
159
159
  Object.defineProperty(exports, "clearConsentDismissalTimestamp", {
160
160
  enumerable: true,
161
- get: function () { return chunkQZN4WZCV_cjs.clearConsentDismissalTimestamp; }
161
+ get: function () { return chunkQ5SZVLNB_cjs.clearConsentDismissalTimestamp; }
162
162
  });
163
163
  Object.defineProperty(exports, "clearConsentSessionMirror", {
164
164
  enumerable: true,
165
- get: function () { return chunkQZN4WZCV_cjs.clearConsentSessionMirror; }
165
+ get: function () { return chunkQ5SZVLNB_cjs.clearConsentSessionMirror; }
166
166
  });
167
167
  Object.defineProperty(exports, "clearDeviceId", {
168
168
  enumerable: true,
169
- get: function () { return chunkQZN4WZCV_cjs.clearDeviceId; }
169
+ get: function () { return chunkQ5SZVLNB_cjs.clearDeviceId; }
170
170
  });
171
171
  Object.defineProperty(exports, "createConsentClient", {
172
172
  enumerable: true,
173
- get: function () { return chunkQZN4WZCV_cjs.createConsentClient; }
173
+ get: function () { return chunkQ5SZVLNB_cjs.createConsentClient; }
174
174
  });
175
175
  Object.defineProperty(exports, "createGtagBridge", {
176
176
  enumerable: true,
177
- get: function () { return chunkQZN4WZCV_cjs.createGtagBridge; }
177
+ get: function () { return chunkQ5SZVLNB_cjs.createGtagBridge; }
178
178
  });
179
179
  Object.defineProperty(exports, "decodeConsentCookie", {
180
180
  enumerable: true,
181
- get: function () { return chunkQZN4WZCV_cjs.decodeConsentCookie; }
181
+ get: function () { return chunkQ5SZVLNB_cjs.decodeConsentCookie; }
182
182
  });
183
183
  Object.defineProperty(exports, "deleteConsentCookie", {
184
184
  enumerable: true,
185
- get: function () { return chunkQZN4WZCV_cjs.deleteConsentCookie; }
185
+ get: function () { return chunkQ5SZVLNB_cjs.deleteConsentCookie; }
186
186
  });
187
187
  Object.defineProperty(exports, "encodeConsentCookie", {
188
188
  enumerable: true,
189
- get: function () { return chunkQZN4WZCV_cjs.encodeConsentCookie; }
189
+ get: function () { return chunkQ5SZVLNB_cjs.encodeConsentCookie; }
190
190
  });
191
191
  Object.defineProperty(exports, "generateDeviceId", {
192
192
  enumerable: true,
193
- get: function () { return chunkQZN4WZCV_cjs.generateDeviceId; }
193
+ get: function () { return chunkQ5SZVLNB_cjs.generateDeviceId; }
194
194
  });
195
195
  Object.defineProperty(exports, "getOrCreateDeviceId", {
196
196
  enumerable: true,
197
- get: function () { return chunkQZN4WZCV_cjs.getOrCreateDeviceId; }
197
+ get: function () { return chunkQ5SZVLNB_cjs.getOrCreateDeviceId; }
198
198
  });
199
199
  Object.defineProperty(exports, "isUuidV7", {
200
200
  enumerable: true,
201
- get: function () { return chunkQZN4WZCV_cjs.isUuidV7; }
201
+ get: function () { return chunkQ5SZVLNB_cjs.isUuidV7; }
202
202
  });
203
203
  Object.defineProperty(exports, "isValidDeviceId", {
204
204
  enumerable: true,
205
- get: function () { return chunkQZN4WZCV_cjs.isValidDeviceId; }
205
+ get: function () { return chunkQ5SZVLNB_cjs.isValidDeviceId; }
206
206
  });
207
207
  Object.defineProperty(exports, "mapCategoriesToGtagParams", {
208
208
  enumerable: true,
209
- get: function () { return chunkQZN4WZCV_cjs.mapCategoriesToGtagParams; }
209
+ get: function () { return chunkQ5SZVLNB_cjs.mapCategoriesToGtagParams; }
210
210
  });
211
211
  Object.defineProperty(exports, "mapConsentWireToState", {
212
212
  enumerable: true,
213
- get: function () { return chunkQZN4WZCV_cjs.mapConsentWireToState; }
213
+ get: function () { return chunkQ5SZVLNB_cjs.mapConsentWireToState; }
214
214
  });
215
215
  Object.defineProperty(exports, "mapMeWireToState", {
216
216
  enumerable: true,
217
- get: function () { return chunkQZN4WZCV_cjs.mapMeWireToState; }
217
+ get: function () { return chunkQ5SZVLNB_cjs.mapMeWireToState; }
218
218
  });
219
219
  Object.defineProperty(exports, "mapSyncWireToResult", {
220
220
  enumerable: true,
221
- get: function () { return chunkQZN4WZCV_cjs.mapSyncWireToResult; }
221
+ get: function () { return chunkQ5SZVLNB_cjs.mapSyncWireToResult; }
222
222
  });
223
223
  Object.defineProperty(exports, "mapWithdrawWireToState", {
224
224
  enumerable: true,
225
- get: function () { return chunkQZN4WZCV_cjs.mapWithdrawWireToState; }
225
+ get: function () { return chunkQ5SZVLNB_cjs.mapWithdrawWireToState; }
226
226
  });
227
227
  Object.defineProperty(exports, "readConsentCookie", {
228
228
  enumerable: true,
229
- get: function () { return chunkQZN4WZCV_cjs.readConsentCookie; }
229
+ get: function () { return chunkQ5SZVLNB_cjs.readConsentCookie; }
230
230
  });
231
231
  Object.defineProperty(exports, "readConsentDismissalTimestamp", {
232
232
  enumerable: true,
233
- get: function () { return chunkQZN4WZCV_cjs.readConsentDismissalTimestamp; }
233
+ get: function () { return chunkQ5SZVLNB_cjs.readConsentDismissalTimestamp; }
234
234
  });
235
235
  Object.defineProperty(exports, "readConsentSessionMirror", {
236
236
  enumerable: true,
237
- get: function () { return chunkQZN4WZCV_cjs.readConsentSessionMirror; }
237
+ get: function () { return chunkQ5SZVLNB_cjs.readConsentSessionMirror; }
238
238
  });
239
239
  Object.defineProperty(exports, "useFFIDConsent", {
240
240
  enumerable: true,
241
- get: function () { return chunkQZN4WZCV_cjs.useFFIDConsent; }
241
+ get: function () { return chunkQ5SZVLNB_cjs.useFFIDConsent; }
242
242
  });
243
243
  Object.defineProperty(exports, "useFFIDConsentPreferences", {
244
244
  enumerable: true,
245
- get: function () { return chunkQZN4WZCV_cjs.useFFIDConsentPreferences; }
245
+ get: function () { return chunkQ5SZVLNB_cjs.useFFIDConsentPreferences; }
246
246
  });
247
247
  Object.defineProperty(exports, "writeConsentCookie", {
248
248
  enumerable: true,
249
- get: function () { return chunkQZN4WZCV_cjs.writeConsentCookie; }
249
+ get: function () { return chunkQ5SZVLNB_cjs.writeConsentCookie; }
250
250
  });
251
251
  Object.defineProperty(exports, "writeConsentDismissalTimestamp", {
252
252
  enumerable: true,
253
- get: function () { return chunkQZN4WZCV_cjs.writeConsentDismissalTimestamp; }
253
+ get: function () { return chunkQ5SZVLNB_cjs.writeConsentDismissalTimestamp; }
254
254
  });
255
255
  Object.defineProperty(exports, "writeConsentSessionMirror", {
256
256
  enumerable: true,
257
- get: function () { return chunkQZN4WZCV_cjs.writeConsentSessionMirror; }
257
+ get: function () { return chunkQ5SZVLNB_cjs.writeConsentSessionMirror; }
258
258
  });
@@ -1,5 +1,5 @@
1
- import { F as FFIDConsentResult, a as FFIDConsentState, b as FFIDConsentUpdate, c as FFIDConsentCategories, d as FFIDConsentSyncResult, e as FFIDConsentCategoryMetadata, f as FFIDCookiePolicy, P as PostConsentWire, G as GetConsentMeWire, g as PostSyncWire, h as PostWithdrawWire } from '../FFIDCookieLink-Bt0f1gyo.cjs';
2
- export { A as ALL_DENIED_EXCEPT_NECESSARY, C as CONSENT_COOKIE_MAX_AGE_SEC, i as CONSENT_COOKIE_NAME, j as CONSENT_DISMISSAL_TIMESTAMP_KEY, k as CONSENT_SESSION_STORAGE_KEY, l as COOKIE_VERSION, D as DEFAULT_CONSENT_ERROR_MESSAGES, m as DEFAULT_MERGE_WARNING_MESSAGES, n as DeviceIdSchema, o as FFIDAnalyticsProvider, p as FFIDAnalyticsProviderProps, q as FFIDConsentCategoriesSchema, r as FFIDConsentCategoryCode, s as FFIDConsentCategoryCodeSchema, t as FFIDConsentCategoryMetadataSchema, u as FFIDConsentContext, v as FFIDConsentContextValue, w as FFIDConsentError, x as FFIDConsentErrorCode, y as FFIDConsentMergeStrategy, z as FFIDConsentMergeStrategySchema, B as FFIDConsentMergeWarning, E as FFIDConsentMergeWarningEvent, H as FFIDConsentMergeWarningSchema, I as FFIDConsentSource, J as FFIDConsentSourceSchema, K as FFIDConsentStateSchema, L as FFIDConsentUpdateSchema, M as FFIDCookieBanner, N as FFIDCookieBannerClassNames, O as FFIDCookieBannerProps, Q as FFIDCookieLink, R as FFIDCookieLinkProps, S as FFIDCookiePolicySchema, T as FFIDCookieSettings, U as FFIDCookieSettingsClassNames, V as FFIDCookieSettingsProps, W as FFIDInternalConsentSource, X as FFIDInternalConsentSourceSchema, Y as FFIDPublicConsentSource, Z as FFIDPublicConsentSourceSchema, _ as FFID_CONSENT_ERROR_CODES, $ as FFID_CONSENT_NOT_DECIDED_STATE, a0 as GetCategoriesWire, a1 as GetCategoriesWireSchema, a2 as GetConsentMeWireSchema, a3 as GetDocumentWire, a4 as GetDocumentWireSchema, a5 as GtagBridge, a6 as GtagBridgeOptions, a7 as PostConsentRequest, a8 as PostConsentRequestSchema, a9 as PostConsentWireSchema, aa as PostSyncRequest, ab as PostSyncRequestSchema, ac as PostSyncWireSchema, ad as PostWithdrawWireSchema, ae as UseFFIDConsentPreferencesReturn, af as UseFFIDConsentReturn, ag as clearConsentDismissalTimestamp, ah as clearConsentSessionMirror, ai as createGtagBridge, aj as decodeConsentCookie, ak as deleteConsentCookie, al as encodeConsentCookie, am as mapCategoriesToGtagParams, an as readConsentCookie, ao as readConsentDismissalTimestamp, ap as readConsentSessionMirror, aq as useFFIDConsent, ar as useFFIDConsentPreferences, as as writeConsentCookie, at as writeConsentDismissalTimestamp, au as writeConsentSessionMirror } from '../FFIDCookieLink-Bt0f1gyo.cjs';
1
+ import { F as FFIDConsentResult, a as FFIDConsentState, b as FFIDConsentUpdate, c as FFIDConsentCategories, d as FFIDConsentSyncResult, e as FFIDConsentCategoryMetadata, f as FFIDCookiePolicy, P as PostConsentWire, G as GetConsentMeWire, g as PostSyncWire, h as PostWithdrawWire } from '../FFIDCookieLink-CE01gYc4.cjs';
2
+ export { A as ALL_DENIED_EXCEPT_NECESSARY, C as CONSENT_COOKIE_MAX_AGE_SEC, i as CONSENT_COOKIE_NAME, j as CONSENT_DISMISSAL_TIMESTAMP_KEY, k as CONSENT_SESSION_STORAGE_KEY, l as COOKIE_VERSION, D as DEFAULT_CONSENT_ERROR_MESSAGES, m as DEFAULT_MERGE_WARNING_MESSAGES, n as DeviceIdSchema, o as FFIDAnalyticsProvider, p as FFIDAnalyticsProviderProps, q as FFIDConsentCategoriesSchema, r as FFIDConsentCategoryCode, s as FFIDConsentCategoryCodeSchema, t as FFIDConsentCategoryMetadataSchema, u as FFIDConsentContext, v as FFIDConsentContextValue, w as FFIDConsentError, x as FFIDConsentErrorCode, y as FFIDConsentMergeStrategy, z as FFIDConsentMergeStrategySchema, B as FFIDConsentMergeWarning, E as FFIDConsentMergeWarningEvent, H as FFIDConsentMergeWarningSchema, I as FFIDConsentSource, J as FFIDConsentSourceSchema, K as FFIDConsentStateSchema, L as FFIDConsentUpdateSchema, M as FFIDCookieBanner, N as FFIDCookieBannerClassNames, O as FFIDCookieBannerProps, Q as FFIDCookieLink, R as FFIDCookieLinkProps, S as FFIDCookiePolicySchema, T as FFIDCookieSettings, U as FFIDCookieSettingsClassNames, V as FFIDCookieSettingsProps, W as FFIDInternalConsentSource, X as FFIDInternalConsentSourceSchema, Y as FFIDPublicConsentSource, Z as FFIDPublicConsentSourceSchema, _ as FFID_CONSENT_ERROR_CODES, $ as FFID_CONSENT_NOT_DECIDED_STATE, a0 as GetCategoriesWire, a1 as GetCategoriesWireSchema, a2 as GetConsentMeWireSchema, a3 as GetDocumentWire, a4 as GetDocumentWireSchema, a5 as GtagBridge, a6 as GtagBridgeOptions, a7 as PostConsentRequest, a8 as PostConsentRequestSchema, a9 as PostConsentWireSchema, aa as PostSyncRequest, ab as PostSyncRequestSchema, ac as PostSyncWireSchema, ad as PostWithdrawWireSchema, ae as UseFFIDConsentPreferencesReturn, af as UseFFIDConsentReturn, ag as clearConsentDismissalTimestamp, ah as clearConsentSessionMirror, ai as createGtagBridge, aj as decodeConsentCookie, ak as deleteConsentCookie, al as encodeConsentCookie, am as mapCategoriesToGtagParams, an as readConsentCookie, ao as readConsentDismissalTimestamp, ap as readConsentSessionMirror, aq as useFFIDConsent, ar as useFFIDConsentPreferences, as as writeConsentCookie, at as writeConsentDismissalTimestamp, au as writeConsentSessionMirror } from '../FFIDCookieLink-CE01gYc4.cjs';
3
3
  import 'react';
4
4
  import 'zod';
5
5
 
@@ -1,5 +1,5 @@
1
- import { F as FFIDConsentResult, a as FFIDConsentState, b as FFIDConsentUpdate, c as FFIDConsentCategories, d as FFIDConsentSyncResult, e as FFIDConsentCategoryMetadata, f as FFIDCookiePolicy, P as PostConsentWire, G as GetConsentMeWire, g as PostSyncWire, h as PostWithdrawWire } from '../FFIDCookieLink-Bt0f1gyo.js';
2
- export { A as ALL_DENIED_EXCEPT_NECESSARY, C as CONSENT_COOKIE_MAX_AGE_SEC, i as CONSENT_COOKIE_NAME, j as CONSENT_DISMISSAL_TIMESTAMP_KEY, k as CONSENT_SESSION_STORAGE_KEY, l as COOKIE_VERSION, D as DEFAULT_CONSENT_ERROR_MESSAGES, m as DEFAULT_MERGE_WARNING_MESSAGES, n as DeviceIdSchema, o as FFIDAnalyticsProvider, p as FFIDAnalyticsProviderProps, q as FFIDConsentCategoriesSchema, r as FFIDConsentCategoryCode, s as FFIDConsentCategoryCodeSchema, t as FFIDConsentCategoryMetadataSchema, u as FFIDConsentContext, v as FFIDConsentContextValue, w as FFIDConsentError, x as FFIDConsentErrorCode, y as FFIDConsentMergeStrategy, z as FFIDConsentMergeStrategySchema, B as FFIDConsentMergeWarning, E as FFIDConsentMergeWarningEvent, H as FFIDConsentMergeWarningSchema, I as FFIDConsentSource, J as FFIDConsentSourceSchema, K as FFIDConsentStateSchema, L as FFIDConsentUpdateSchema, M as FFIDCookieBanner, N as FFIDCookieBannerClassNames, O as FFIDCookieBannerProps, Q as FFIDCookieLink, R as FFIDCookieLinkProps, S as FFIDCookiePolicySchema, T as FFIDCookieSettings, U as FFIDCookieSettingsClassNames, V as FFIDCookieSettingsProps, W as FFIDInternalConsentSource, X as FFIDInternalConsentSourceSchema, Y as FFIDPublicConsentSource, Z as FFIDPublicConsentSourceSchema, _ as FFID_CONSENT_ERROR_CODES, $ as FFID_CONSENT_NOT_DECIDED_STATE, a0 as GetCategoriesWire, a1 as GetCategoriesWireSchema, a2 as GetConsentMeWireSchema, a3 as GetDocumentWire, a4 as GetDocumentWireSchema, a5 as GtagBridge, a6 as GtagBridgeOptions, a7 as PostConsentRequest, a8 as PostConsentRequestSchema, a9 as PostConsentWireSchema, aa as PostSyncRequest, ab as PostSyncRequestSchema, ac as PostSyncWireSchema, ad as PostWithdrawWireSchema, ae as UseFFIDConsentPreferencesReturn, af as UseFFIDConsentReturn, ag as clearConsentDismissalTimestamp, ah as clearConsentSessionMirror, ai as createGtagBridge, aj as decodeConsentCookie, ak as deleteConsentCookie, al as encodeConsentCookie, am as mapCategoriesToGtagParams, an as readConsentCookie, ao as readConsentDismissalTimestamp, ap as readConsentSessionMirror, aq as useFFIDConsent, ar as useFFIDConsentPreferences, as as writeConsentCookie, at as writeConsentDismissalTimestamp, au as writeConsentSessionMirror } from '../FFIDCookieLink-Bt0f1gyo.js';
1
+ import { F as FFIDConsentResult, a as FFIDConsentState, b as FFIDConsentUpdate, c as FFIDConsentCategories, d as FFIDConsentSyncResult, e as FFIDConsentCategoryMetadata, f as FFIDCookiePolicy, P as PostConsentWire, G as GetConsentMeWire, g as PostSyncWire, h as PostWithdrawWire } from '../FFIDCookieLink-CE01gYc4.js';
2
+ export { A as ALL_DENIED_EXCEPT_NECESSARY, C as CONSENT_COOKIE_MAX_AGE_SEC, i as CONSENT_COOKIE_NAME, j as CONSENT_DISMISSAL_TIMESTAMP_KEY, k as CONSENT_SESSION_STORAGE_KEY, l as COOKIE_VERSION, D as DEFAULT_CONSENT_ERROR_MESSAGES, m as DEFAULT_MERGE_WARNING_MESSAGES, n as DeviceIdSchema, o as FFIDAnalyticsProvider, p as FFIDAnalyticsProviderProps, q as FFIDConsentCategoriesSchema, r as FFIDConsentCategoryCode, s as FFIDConsentCategoryCodeSchema, t as FFIDConsentCategoryMetadataSchema, u as FFIDConsentContext, v as FFIDConsentContextValue, w as FFIDConsentError, x as FFIDConsentErrorCode, y as FFIDConsentMergeStrategy, z as FFIDConsentMergeStrategySchema, B as FFIDConsentMergeWarning, E as FFIDConsentMergeWarningEvent, H as FFIDConsentMergeWarningSchema, I as FFIDConsentSource, J as FFIDConsentSourceSchema, K as FFIDConsentStateSchema, L as FFIDConsentUpdateSchema, M as FFIDCookieBanner, N as FFIDCookieBannerClassNames, O as FFIDCookieBannerProps, Q as FFIDCookieLink, R as FFIDCookieLinkProps, S as FFIDCookiePolicySchema, T as FFIDCookieSettings, U as FFIDCookieSettingsClassNames, V as FFIDCookieSettingsProps, W as FFIDInternalConsentSource, X as FFIDInternalConsentSourceSchema, Y as FFIDPublicConsentSource, Z as FFIDPublicConsentSourceSchema, _ as FFID_CONSENT_ERROR_CODES, $ as FFID_CONSENT_NOT_DECIDED_STATE, a0 as GetCategoriesWire, a1 as GetCategoriesWireSchema, a2 as GetConsentMeWireSchema, a3 as GetDocumentWire, a4 as GetDocumentWireSchema, a5 as GtagBridge, a6 as GtagBridgeOptions, a7 as PostConsentRequest, a8 as PostConsentRequestSchema, a9 as PostConsentWireSchema, aa as PostSyncRequest, ab as PostSyncRequestSchema, ac as PostSyncWireSchema, ad as PostWithdrawWireSchema, ae as UseFFIDConsentPreferencesReturn, af as UseFFIDConsentReturn, ag as clearConsentDismissalTimestamp, ah as clearConsentSessionMirror, ai as createGtagBridge, aj as decodeConsentCookie, ak as deleteConsentCookie, al as encodeConsentCookie, am as mapCategoriesToGtagParams, an as readConsentCookie, ao as readConsentDismissalTimestamp, ap as readConsentSessionMirror, aq as useFFIDConsent, ar as useFFIDConsentPreferences, as as writeConsentCookie, at as writeConsentDismissalTimestamp, au as writeConsentSessionMirror } from '../FFIDCookieLink-CE01gYc4.js';
3
3
  import 'react';
4
4
  import 'zod';
5
5
 
@@ -1 +1 @@
1
- export { ALL_DENIED_EXCEPT_NECESSARY, CONSENT_COOKIE_MAX_AGE_SEC, CONSENT_COOKIE_NAME, CONSENT_DISMISSAL_TIMESTAMP_KEY, CONSENT_SESSION_STORAGE_KEY, COOKIE_VERSION, DEFAULT_CONSENT_ERROR_MESSAGES, DEFAULT_MERGE_WARNING_MESSAGES, DEVICE_ID_LOCAL_STORAGE_KEY, DEVICE_ID_SESSION_STORAGE_KEY, DeviceIdSchema, FFIDAnalyticsProvider, FFIDConsentCategoriesSchema, FFIDConsentCategoryCodeSchema, FFIDConsentCategoryMetadataSchema, FFIDConsentContext, FFIDConsentError, FFIDConsentMergeStrategySchema, FFIDConsentMergeWarningSchema, FFIDConsentSourceSchema, FFIDConsentStateSchema, FFIDConsentUpdateSchema, FFIDCookieBanner, FFIDCookieLink, FFIDCookiePolicySchema, FFIDCookieSettings, FFIDInternalConsentSourceSchema, FFIDPublicConsentSourceSchema, FFID_CONSENT_ERROR_CODES, FFID_CONSENT_NOT_DECIDED_STATE, GetCategoriesWireSchema, GetConsentMeWireSchema, GetDocumentWireSchema, PostConsentRequestSchema, PostConsentWireSchema, PostSyncRequestSchema, PostSyncWireSchema, PostWithdrawWireSchema, clearConsentDismissalTimestamp, clearConsentSessionMirror, clearDeviceId, createConsentClient, createGtagBridge, decodeConsentCookie, deleteConsentCookie, encodeConsentCookie, generateDeviceId, getOrCreateDeviceId, isUuidV7, isValidDeviceId, mapCategoriesToGtagParams, mapConsentWireToState, mapMeWireToState, mapSyncWireToResult, mapWithdrawWireToState, readConsentCookie, readConsentDismissalTimestamp, readConsentSessionMirror, useFFIDConsent, useFFIDConsentPreferences, writeConsentCookie, writeConsentDismissalTimestamp, writeConsentSessionMirror } from '../chunk-IVKFKMLQ.js';
1
+ export { ALL_DENIED_EXCEPT_NECESSARY, CONSENT_COOKIE_MAX_AGE_SEC, CONSENT_COOKIE_NAME, CONSENT_DISMISSAL_TIMESTAMP_KEY, CONSENT_SESSION_STORAGE_KEY, COOKIE_VERSION, DEFAULT_CONSENT_ERROR_MESSAGES, DEFAULT_MERGE_WARNING_MESSAGES, DEVICE_ID_LOCAL_STORAGE_KEY, DEVICE_ID_SESSION_STORAGE_KEY, DeviceIdSchema, FFIDAnalyticsProvider, FFIDConsentCategoriesSchema, FFIDConsentCategoryCodeSchema, FFIDConsentCategoryMetadataSchema, FFIDConsentContext, FFIDConsentError, FFIDConsentMergeStrategySchema, FFIDConsentMergeWarningSchema, FFIDConsentSourceSchema, FFIDConsentStateSchema, FFIDConsentUpdateSchema, FFIDCookieBanner, FFIDCookieLink, FFIDCookiePolicySchema, FFIDCookieSettings, FFIDInternalConsentSourceSchema, FFIDPublicConsentSourceSchema, FFID_CONSENT_ERROR_CODES, FFID_CONSENT_NOT_DECIDED_STATE, GetCategoriesWireSchema, GetConsentMeWireSchema, GetDocumentWireSchema, PostConsentRequestSchema, PostConsentWireSchema, PostSyncRequestSchema, PostSyncWireSchema, PostWithdrawWireSchema, clearConsentDismissalTimestamp, clearConsentSessionMirror, clearDeviceId, createConsentClient, createGtagBridge, decodeConsentCookie, deleteConsentCookie, encodeConsentCookie, generateDeviceId, getOrCreateDeviceId, isUuidV7, isValidDeviceId, mapCategoriesToGtagParams, mapConsentWireToState, mapMeWireToState, mapSyncWireToResult, mapWithdrawWireToState, readConsentCookie, readConsentDismissalTimestamp, readConsentSessionMirror, useFFIDConsent, useFFIDConsentPreferences, writeConsentCookie, writeConsentDismissalTimestamp, writeConsentSessionMirror } from '../chunk-KJ7FUNA6.js';
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkUOXRMTUI_cjs = require('./chunk-UOXRMTUI.cjs');
4
- var chunkQZN4WZCV_cjs = require('./chunk-QZN4WZCV.cjs');
3
+ var chunkJKP3MBTT_cjs = require('./chunk-JKP3MBTT.cjs');
4
+ var chunkQ5SZVLNB_cjs = require('./chunk-Q5SZVLNB.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 } = chunkUOXRMTUI_cjs.useFFIDContext();
58
- const { effectiveStatus, isBlocked, isGrace } = chunkUOXRMTUI_cjs.useSubscription();
57
+ const { isLoading, error } = chunkJKP3MBTT_cjs.useFFIDContext();
58
+ const { effectiveStatus, isBlocked, isGrace } = chunkJKP3MBTT_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 } = chunkUOXRMTUI_cjs.useFFIDContext();
79
+ const { isLoading, isAuthenticated, login } = chunkJKP3MBTT_cjs.useFFIDContext();
80
80
  const hasRedirected = react.useRef(false);
81
81
  react.useEffect(() => {
82
82
  if (!isLoading && !isAuthenticated && options.redirectToLogin && !hasRedirected.current) {
@@ -105,211 +105,211 @@ 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 chunkUOXRMTUI_cjs.ACCESS_GRANTING_EFFECTIVE_STATUSES; }
108
+ get: function () { return chunkJKP3MBTT_cjs.ACCESS_GRANTING_EFFECTIVE_STATUSES; }
109
109
  });
110
110
  Object.defineProperty(exports, "BLOCKING_EFFECTIVE_STATUSES", {
111
111
  enumerable: true,
112
- get: function () { return chunkUOXRMTUI_cjs.BLOCKING_EFFECTIVE_STATUSES; }
112
+ get: function () { return chunkJKP3MBTT_cjs.BLOCKING_EFFECTIVE_STATUSES; }
113
113
  });
114
114
  Object.defineProperty(exports, "DEFAULT_API_BASE_URL", {
115
115
  enumerable: true,
116
- get: function () { return chunkUOXRMTUI_cjs.DEFAULT_API_BASE_URL; }
116
+ get: function () { return chunkJKP3MBTT_cjs.DEFAULT_API_BASE_URL; }
117
117
  });
118
118
  Object.defineProperty(exports, "DEFAULT_OAUTH_SCOPES", {
119
119
  enumerable: true,
120
- get: function () { return chunkUOXRMTUI_cjs.DEFAULT_OAUTH_SCOPES; }
120
+ get: function () { return chunkJKP3MBTT_cjs.DEFAULT_OAUTH_SCOPES; }
121
121
  });
122
122
  Object.defineProperty(exports, "FFIDAnnouncementBadge", {
123
123
  enumerable: true,
124
- get: function () { return chunkUOXRMTUI_cjs.FFIDAnnouncementBadge; }
124
+ get: function () { return chunkJKP3MBTT_cjs.FFIDAnnouncementBadge; }
125
125
  });
126
126
  Object.defineProperty(exports, "FFIDAnnouncementList", {
127
127
  enumerable: true,
128
- get: function () { return chunkUOXRMTUI_cjs.FFIDAnnouncementList; }
128
+ get: function () { return chunkJKP3MBTT_cjs.FFIDAnnouncementList; }
129
129
  });
130
130
  Object.defineProperty(exports, "FFIDInquiryForm", {
131
131
  enumerable: true,
132
- get: function () { return chunkUOXRMTUI_cjs.FFIDInquiryForm; }
132
+ get: function () { return chunkJKP3MBTT_cjs.FFIDInquiryForm; }
133
133
  });
134
134
  Object.defineProperty(exports, "FFIDLoginButton", {
135
135
  enumerable: true,
136
- get: function () { return chunkUOXRMTUI_cjs.FFIDLoginButton; }
136
+ get: function () { return chunkJKP3MBTT_cjs.FFIDLoginButton; }
137
137
  });
138
138
  Object.defineProperty(exports, "FFIDOrganizationSwitcher", {
139
139
  enumerable: true,
140
- get: function () { return chunkUOXRMTUI_cjs.FFIDOrganizationSwitcher; }
140
+ get: function () { return chunkJKP3MBTT_cjs.FFIDOrganizationSwitcher; }
141
141
  });
142
142
  Object.defineProperty(exports, "FFIDProvider", {
143
143
  enumerable: true,
144
- get: function () { return chunkUOXRMTUI_cjs.FFIDProvider; }
144
+ get: function () { return chunkJKP3MBTT_cjs.FFIDProvider; }
145
145
  });
146
146
  Object.defineProperty(exports, "FFIDSDKError", {
147
147
  enumerable: true,
148
- get: function () { return chunkUOXRMTUI_cjs.FFIDSDKError; }
148
+ get: function () { return chunkJKP3MBTT_cjs.FFIDSDKError; }
149
149
  });
150
150
  Object.defineProperty(exports, "FFIDSubscriptionBadge", {
151
151
  enumerable: true,
152
- get: function () { return chunkUOXRMTUI_cjs.FFIDSubscriptionBadge; }
152
+ get: function () { return chunkJKP3MBTT_cjs.FFIDSubscriptionBadge; }
153
153
  });
154
154
  Object.defineProperty(exports, "FFIDUserMenu", {
155
155
  enumerable: true,
156
- get: function () { return chunkUOXRMTUI_cjs.FFIDUserMenu; }
156
+ get: function () { return chunkJKP3MBTT_cjs.FFIDUserMenu; }
157
157
  });
158
158
  Object.defineProperty(exports, "FFID_ANNOUNCEMENTS_ERROR_CODES", {
159
159
  enumerable: true,
160
- get: function () { return chunkUOXRMTUI_cjs.FFID_ANNOUNCEMENTS_ERROR_CODES; }
160
+ get: function () { return chunkJKP3MBTT_cjs.FFID_ANNOUNCEMENTS_ERROR_CODES; }
161
161
  });
162
162
  Object.defineProperty(exports, "FFID_INQUIRY_CATEGORIES", {
163
163
  enumerable: true,
164
- get: function () { return chunkUOXRMTUI_cjs.FFID_INQUIRY_CATEGORIES; }
164
+ get: function () { return chunkJKP3MBTT_cjs.FFID_INQUIRY_CATEGORIES; }
165
165
  });
166
166
  Object.defineProperty(exports, "FFID_INQUIRY_CATEGORIES_SITE_2026", {
167
167
  enumerable: true,
168
- get: function () { return chunkUOXRMTUI_cjs.FFID_INQUIRY_CATEGORIES_SITE_2026; }
168
+ get: function () { return chunkJKP3MBTT_cjs.FFID_INQUIRY_CATEGORIES_SITE_2026; }
169
169
  });
170
170
  Object.defineProperty(exports, "computeEffectiveStatusFromSession", {
171
171
  enumerable: true,
172
- get: function () { return chunkUOXRMTUI_cjs.computeEffectiveStatusFromSession; }
172
+ get: function () { return chunkJKP3MBTT_cjs.computeEffectiveStatusFromSession; }
173
173
  });
174
174
  Object.defineProperty(exports, "createFFIDAnnouncementsClient", {
175
175
  enumerable: true,
176
- get: function () { return chunkUOXRMTUI_cjs.createFFIDAnnouncementsClient; }
176
+ get: function () { return chunkJKP3MBTT_cjs.createFFIDAnnouncementsClient; }
177
177
  });
178
178
  Object.defineProperty(exports, "createFFIDClient", {
179
179
  enumerable: true,
180
- get: function () { return chunkUOXRMTUI_cjs.createFFIDClient; }
180
+ get: function () { return chunkJKP3MBTT_cjs.createFFIDClient; }
181
181
  });
182
182
  Object.defineProperty(exports, "createTokenStore", {
183
183
  enumerable: true,
184
- get: function () { return chunkUOXRMTUI_cjs.createTokenStore; }
184
+ get: function () { return chunkJKP3MBTT_cjs.createTokenStore; }
185
185
  });
186
186
  Object.defineProperty(exports, "generateCodeChallenge", {
187
187
  enumerable: true,
188
- get: function () { return chunkUOXRMTUI_cjs.generateCodeChallenge; }
188
+ get: function () { return chunkJKP3MBTT_cjs.generateCodeChallenge; }
189
189
  });
190
190
  Object.defineProperty(exports, "generateCodeVerifier", {
191
191
  enumerable: true,
192
- get: function () { return chunkUOXRMTUI_cjs.generateCodeVerifier; }
192
+ get: function () { return chunkJKP3MBTT_cjs.generateCodeVerifier; }
193
193
  });
194
194
  Object.defineProperty(exports, "hasAccessFromUserinfo", {
195
195
  enumerable: true,
196
- get: function () { return chunkUOXRMTUI_cjs.hasAccessFromUserinfo; }
196
+ get: function () { return chunkJKP3MBTT_cjs.hasAccessFromUserinfo; }
197
197
  });
198
198
  Object.defineProperty(exports, "isBlockedFromUserinfo", {
199
199
  enumerable: true,
200
- get: function () { return chunkUOXRMTUI_cjs.isBlockedFromUserinfo; }
200
+ get: function () { return chunkJKP3MBTT_cjs.isBlockedFromUserinfo; }
201
201
  });
202
202
  Object.defineProperty(exports, "isFFIDInquiryCategorySite2026", {
203
203
  enumerable: true,
204
- get: function () { return chunkUOXRMTUI_cjs.isFFIDInquiryCategorySite2026; }
204
+ get: function () { return chunkJKP3MBTT_cjs.isFFIDInquiryCategorySite2026; }
205
205
  });
206
206
  Object.defineProperty(exports, "normalizeRedirectUri", {
207
207
  enumerable: true,
208
- get: function () { return chunkUOXRMTUI_cjs.normalizeRedirectUri; }
208
+ get: function () { return chunkJKP3MBTT_cjs.normalizeRedirectUri; }
209
209
  });
210
210
  Object.defineProperty(exports, "retrieveCodeVerifier", {
211
211
  enumerable: true,
212
- get: function () { return chunkUOXRMTUI_cjs.retrieveCodeVerifier; }
212
+ get: function () { return chunkJKP3MBTT_cjs.retrieveCodeVerifier; }
213
213
  });
214
214
  Object.defineProperty(exports, "storeCodeVerifier", {
215
215
  enumerable: true,
216
- get: function () { return chunkUOXRMTUI_cjs.storeCodeVerifier; }
216
+ get: function () { return chunkJKP3MBTT_cjs.storeCodeVerifier; }
217
217
  });
218
218
  Object.defineProperty(exports, "useFFID", {
219
219
  enumerable: true,
220
- get: function () { return chunkUOXRMTUI_cjs.useFFID; }
220
+ get: function () { return chunkJKP3MBTT_cjs.useFFID; }
221
221
  });
222
222
  Object.defineProperty(exports, "useFFIDAnnouncements", {
223
223
  enumerable: true,
224
- get: function () { return chunkUOXRMTUI_cjs.useFFIDAnnouncements; }
224
+ get: function () { return chunkJKP3MBTT_cjs.useFFIDAnnouncements; }
225
225
  });
226
226
  Object.defineProperty(exports, "useSubscription", {
227
227
  enumerable: true,
228
- get: function () { return chunkUOXRMTUI_cjs.useSubscription; }
228
+ get: function () { return chunkJKP3MBTT_cjs.useSubscription; }
229
229
  });
230
230
  Object.defineProperty(exports, "withSubscription", {
231
231
  enumerable: true,
232
- get: function () { return chunkUOXRMTUI_cjs.withSubscription; }
232
+ get: function () { return chunkJKP3MBTT_cjs.withSubscription; }
233
233
  });
234
234
  Object.defineProperty(exports, "ALL_DENIED_EXCEPT_NECESSARY", {
235
235
  enumerable: true,
236
- get: function () { return chunkQZN4WZCV_cjs.ALL_DENIED_EXCEPT_NECESSARY; }
236
+ get: function () { return chunkQ5SZVLNB_cjs.ALL_DENIED_EXCEPT_NECESSARY; }
237
237
  });
238
238
  Object.defineProperty(exports, "CONSENT_COOKIE_NAME", {
239
239
  enumerable: true,
240
- get: function () { return chunkQZN4WZCV_cjs.CONSENT_COOKIE_NAME; }
240
+ get: function () { return chunkQ5SZVLNB_cjs.CONSENT_COOKIE_NAME; }
241
241
  });
242
242
  Object.defineProperty(exports, "CONSENT_DISMISSAL_TIMESTAMP_KEY", {
243
243
  enumerable: true,
244
- get: function () { return chunkQZN4WZCV_cjs.CONSENT_DISMISSAL_TIMESTAMP_KEY; }
244
+ get: function () { return chunkQ5SZVLNB_cjs.CONSENT_DISMISSAL_TIMESTAMP_KEY; }
245
245
  });
246
246
  Object.defineProperty(exports, "COOKIE_VERSION", {
247
247
  enumerable: true,
248
- get: function () { return chunkQZN4WZCV_cjs.COOKIE_VERSION; }
248
+ get: function () { return chunkQ5SZVLNB_cjs.COOKIE_VERSION; }
249
249
  });
250
250
  Object.defineProperty(exports, "DEFAULT_CONSENT_ERROR_MESSAGES", {
251
251
  enumerable: true,
252
- get: function () { return chunkQZN4WZCV_cjs.DEFAULT_CONSENT_ERROR_MESSAGES; }
252
+ get: function () { return chunkQ5SZVLNB_cjs.DEFAULT_CONSENT_ERROR_MESSAGES; }
253
253
  });
254
254
  Object.defineProperty(exports, "FFIDAnalyticsProvider", {
255
255
  enumerable: true,
256
- get: function () { return chunkQZN4WZCV_cjs.FFIDAnalyticsProvider; }
256
+ get: function () { return chunkQ5SZVLNB_cjs.FFIDAnalyticsProvider; }
257
257
  });
258
258
  Object.defineProperty(exports, "FFIDConsentError", {
259
259
  enumerable: true,
260
- get: function () { return chunkQZN4WZCV_cjs.FFIDConsentError; }
260
+ get: function () { return chunkQ5SZVLNB_cjs.FFIDConsentError; }
261
261
  });
262
262
  Object.defineProperty(exports, "FFIDCookieBanner", {
263
263
  enumerable: true,
264
- get: function () { return chunkQZN4WZCV_cjs.FFIDCookieBanner; }
264
+ get: function () { return chunkQ5SZVLNB_cjs.FFIDCookieBanner; }
265
265
  });
266
266
  Object.defineProperty(exports, "FFIDCookieLink", {
267
267
  enumerable: true,
268
- get: function () { return chunkQZN4WZCV_cjs.FFIDCookieLink; }
268
+ get: function () { return chunkQ5SZVLNB_cjs.FFIDCookieLink; }
269
269
  });
270
270
  Object.defineProperty(exports, "FFIDCookieSettings", {
271
271
  enumerable: true,
272
- get: function () { return chunkQZN4WZCV_cjs.FFIDCookieSettings; }
272
+ get: function () { return chunkQ5SZVLNB_cjs.FFIDCookieSettings; }
273
273
  });
274
274
  Object.defineProperty(exports, "FFID_CONSENT_ERROR_CODES", {
275
275
  enumerable: true,
276
- get: function () { return chunkQZN4WZCV_cjs.FFID_CONSENT_ERROR_CODES; }
276
+ get: function () { return chunkQ5SZVLNB_cjs.FFID_CONSENT_ERROR_CODES; }
277
277
  });
278
278
  Object.defineProperty(exports, "clearConsentDismissalTimestamp", {
279
279
  enumerable: true,
280
- get: function () { return chunkQZN4WZCV_cjs.clearConsentDismissalTimestamp; }
280
+ get: function () { return chunkQ5SZVLNB_cjs.clearConsentDismissalTimestamp; }
281
281
  });
282
282
  Object.defineProperty(exports, "decodeConsentCookie", {
283
283
  enumerable: true,
284
- get: function () { return chunkQZN4WZCV_cjs.decodeConsentCookie; }
284
+ get: function () { return chunkQ5SZVLNB_cjs.decodeConsentCookie; }
285
285
  });
286
286
  Object.defineProperty(exports, "encodeConsentCookie", {
287
287
  enumerable: true,
288
- get: function () { return chunkQZN4WZCV_cjs.encodeConsentCookie; }
288
+ get: function () { return chunkQ5SZVLNB_cjs.encodeConsentCookie; }
289
289
  });
290
290
  Object.defineProperty(exports, "readConsentCookie", {
291
291
  enumerable: true,
292
- get: function () { return chunkQZN4WZCV_cjs.readConsentCookie; }
292
+ get: function () { return chunkQ5SZVLNB_cjs.readConsentCookie; }
293
293
  });
294
294
  Object.defineProperty(exports, "readConsentDismissalTimestamp", {
295
295
  enumerable: true,
296
- get: function () { return chunkQZN4WZCV_cjs.readConsentDismissalTimestamp; }
296
+ get: function () { return chunkQ5SZVLNB_cjs.readConsentDismissalTimestamp; }
297
297
  });
298
298
  Object.defineProperty(exports, "useFFIDConsent", {
299
299
  enumerable: true,
300
- get: function () { return chunkQZN4WZCV_cjs.useFFIDConsent; }
300
+ get: function () { return chunkQ5SZVLNB_cjs.useFFIDConsent; }
301
301
  });
302
302
  Object.defineProperty(exports, "useFFIDConsentPreferences", {
303
303
  enumerable: true,
304
- get: function () { return chunkQZN4WZCV_cjs.useFFIDConsentPreferences; }
304
+ get: function () { return chunkQ5SZVLNB_cjs.useFFIDConsentPreferences; }
305
305
  });
306
306
  Object.defineProperty(exports, "writeConsentCookie", {
307
307
  enumerable: true,
308
- get: function () { return chunkQZN4WZCV_cjs.writeConsentCookie; }
308
+ get: function () { return chunkQ5SZVLNB_cjs.writeConsentCookie; }
309
309
  });
310
310
  Object.defineProperty(exports, "writeConsentDismissalTimestamp", {
311
311
  enumerable: true,
312
- get: function () { return chunkQZN4WZCV_cjs.writeConsentDismissalTimestamp; }
312
+ get: function () { return chunkQ5SZVLNB_cjs.writeConsentDismissalTimestamp; }
313
313
  });
314
314
  exports.FFID_NEWSLETTER_DISPATCH_MAX_RECIPIENTS = FFID_NEWSLETTER_DISPATCH_MAX_RECIPIENTS;
315
315
  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 FFIDConfig, b as FFIDApiResponse, c as FFIDSessionResponse, d as FFIDRedirectResult, e as FFIDError, f as FFIDSubscriptionCheckResponse, g as FFIDCheckServiceAccessParams, h as FFIDServiceAccessDecision, i as FFIDListMembersResponse, j as FFIDAddMemberParams, k as FFIDAddMemberResponse, l as FFIDAddMemberRequest, m as FFIDMemberRole, n as FFIDUpdateMemberRoleResponse, o as FFIDRemoveMemberResponse, p as FFIDProfileCallOptions, q as FFIDUserProfile, r as FFIDUpdateUserProfileRequest, s as FFIDAnalyticsConfig, t as FFIDCreateCheckoutParams, u as FFIDCheckoutSessionResponse, v as FFIDCreatePortalParams, w as FFIDPortalSessionResponse, x as FFIDVerifyAccessTokenOptions, y as FFIDOAuthUserInfo, z as FFIDInquiryCreateParams, A as FFIDInquiryCreateResponse, B as FFIDAuthMode, C as FFIDLogger, D as FFIDCacheAdapter, E as FFIDUser, G as FFIDOrganization, H as FFIDSubscription, I as FFIDSubscriptionContextValue, J as EffectiveSubscriptionStatus, K as FFIDOAuthUserInfoSubscription, L as FFIDAnnouncementsClientConfig, M as ListAnnouncementsOptions, N as FFIDAnnouncementsApiResponse, O as AnnouncementListResponse, P as FFIDAnnouncementsLogger } from './index-lAvUS_oz.cjs';
2
2
  export { Q as Announcement, R as AnnouncementStatus, S as AnnouncementType, T as FFIDAnnouncementBadge, U as FFIDAnnouncementList, V as FFIDAnnouncementsError, W as FFIDAnnouncementsErrorCode, X as FFIDAnnouncementsServerResponse, Y as FFIDAssignableMemberRole, Z as FFIDCacheConfig, _ as FFIDContextValue, $ as FFIDInquiryCategory, a0 as FFIDInquiryCategorySite2026, a1 as FFIDInquiryForm, a2 as FFIDInquiryFormCategoryItem, a3 as FFIDInquiryFormClassNames, a4 as FFIDInquiryFormLegalLayout, a5 as FFIDInquiryFormOrganization, a6 as FFIDInquiryFormPlaceholderContext, a7 as FFIDInquiryFormPrefill, a8 as FFIDInquiryFormProps, a9 as FFIDInquiryFormSubmitData, aa as FFIDInquiryFormSubmitResult, ab as FFIDJwtClaims, ac as FFIDLoginButton, ad as FFIDMemberStatus, ae as FFIDOAuthTokenResponse, af as FFIDOAuthUserInfoMemberRole, ag as FFIDOrganizationMember, ah as FFIDOrganizationSwitcher, ai as FFIDRedirectErrorCode, aj as FFIDSeatModel, ak as FFIDServiceAccessDenialReason, al as FFIDServiceAccessFailPolicy, am as FFIDSubscriptionBadge, an as FFIDTokenIntrospectionResponse, ao as FFIDUserMenu, ap as FFID_INQUIRY_CATEGORIES, aq as FFID_INQUIRY_CATEGORIES_SITE_2026, ar as UseFFIDAnnouncementsOptions, as as UseFFIDAnnouncementsReturn, at as isFFIDInquiryCategorySite2026, au as useFFIDAnnouncements } from './index-lAvUS_oz.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, o as FFIDAnalyticsProvider, p as FFIDAnalyticsProviderProps, c as FFIDConsentCategories, r as FFIDConsentCategoryCode, e as FFIDConsentCategoryMetadata, w as FFIDConsentError, x as FFIDConsentErrorCode, y as FFIDConsentMergeStrategy, B as FFIDConsentMergeWarning, E as FFIDConsentMergeWarningEvent, F as FFIDConsentResult, I as FFIDConsentSource, a as FFIDConsentState, d as FFIDConsentSyncResult, M as FFIDCookieBanner, N as FFIDCookieBannerClassNames, O as FFIDCookieBannerProps, Q as FFIDCookieLink, R as FFIDCookieLinkProps, f as FFIDCookiePolicy, T as FFIDCookieSettings, U as FFIDCookieSettingsClassNames, V as FFIDCookieSettingsProps, _ as FFID_CONSENT_ERROR_CODES, ae as UseFFIDConsentPreferencesReturn, af as UseFFIDConsentReturn, ag as clearConsentDismissalTimestamp, aj as decodeConsentCookie, al as encodeConsentCookie, an as readConsentCookie, ao as readConsentDismissalTimestamp, aq as useFFIDConsent, ar as useFFIDConsentPreferences, as as writeConsentCookie, at as writeConsentDismissalTimestamp } from './FFIDCookieLink-Bt0f1gyo.cjs';
3
+ export { A as ALL_DENIED_EXCEPT_NECESSARY, i as CONSENT_COOKIE_NAME, j as CONSENT_DISMISSAL_TIMESTAMP_KEY, l as COOKIE_VERSION, D as DEFAULT_CONSENT_ERROR_MESSAGES, o as FFIDAnalyticsProvider, p as FFIDAnalyticsProviderProps, c as FFIDConsentCategories, r as FFIDConsentCategoryCode, e as FFIDConsentCategoryMetadata, w as FFIDConsentError, x as FFIDConsentErrorCode, y as FFIDConsentMergeStrategy, B as FFIDConsentMergeWarning, E as FFIDConsentMergeWarningEvent, F as FFIDConsentResult, I as FFIDConsentSource, a as FFIDConsentState, d as FFIDConsentSyncResult, M as FFIDCookieBanner, N as FFIDCookieBannerClassNames, O as FFIDCookieBannerProps, Q as FFIDCookieLink, R as FFIDCookieLinkProps, f as FFIDCookiePolicy, T as FFIDCookieSettings, U as FFIDCookieSettingsClassNames, V as FFIDCookieSettingsProps, _ as FFID_CONSENT_ERROR_CODES, ae as UseFFIDConsentPreferencesReturn, af as UseFFIDConsentReturn, ag as clearConsentDismissalTimestamp, aj as decodeConsentCookie, al as encodeConsentCookie, an as readConsentCookie, ao as readConsentDismissalTimestamp, aq as useFFIDConsent, ar as useFFIDConsentPreferences, as as writeConsentCookie, at as writeConsentDismissalTimestamp } from './FFIDCookieLink-CE01gYc4.cjs';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import { ReactNode, ComponentType, FC } from 'react';
6
6
  import 'zod';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { F as FFIDSubscriptionStatus, a as FFIDConfig, b as FFIDApiResponse, c as FFIDSessionResponse, d as FFIDRedirectResult, e as FFIDError, f as FFIDSubscriptionCheckResponse, g as FFIDCheckServiceAccessParams, h as FFIDServiceAccessDecision, i as FFIDListMembersResponse, j as FFIDAddMemberParams, k as FFIDAddMemberResponse, l as FFIDAddMemberRequest, m as FFIDMemberRole, n as FFIDUpdateMemberRoleResponse, o as FFIDRemoveMemberResponse, p as FFIDProfileCallOptions, q as FFIDUserProfile, r as FFIDUpdateUserProfileRequest, s as FFIDAnalyticsConfig, t as FFIDCreateCheckoutParams, u as FFIDCheckoutSessionResponse, v as FFIDCreatePortalParams, w as FFIDPortalSessionResponse, x as FFIDVerifyAccessTokenOptions, y as FFIDOAuthUserInfo, z as FFIDInquiryCreateParams, A as FFIDInquiryCreateResponse, B as FFIDAuthMode, C as FFIDLogger, D as FFIDCacheAdapter, E as FFIDUser, G as FFIDOrganization, H as FFIDSubscription, I as FFIDSubscriptionContextValue, J as EffectiveSubscriptionStatus, K as FFIDOAuthUserInfoSubscription, L as FFIDAnnouncementsClientConfig, M as ListAnnouncementsOptions, N as FFIDAnnouncementsApiResponse, O as AnnouncementListResponse, P as FFIDAnnouncementsLogger } from './index-lAvUS_oz.js';
2
2
  export { Q as Announcement, R as AnnouncementStatus, S as AnnouncementType, T as FFIDAnnouncementBadge, U as FFIDAnnouncementList, V as FFIDAnnouncementsError, W as FFIDAnnouncementsErrorCode, X as FFIDAnnouncementsServerResponse, Y as FFIDAssignableMemberRole, Z as FFIDCacheConfig, _ as FFIDContextValue, $ as FFIDInquiryCategory, a0 as FFIDInquiryCategorySite2026, a1 as FFIDInquiryForm, a2 as FFIDInquiryFormCategoryItem, a3 as FFIDInquiryFormClassNames, a4 as FFIDInquiryFormLegalLayout, a5 as FFIDInquiryFormOrganization, a6 as FFIDInquiryFormPlaceholderContext, a7 as FFIDInquiryFormPrefill, a8 as FFIDInquiryFormProps, a9 as FFIDInquiryFormSubmitData, aa as FFIDInquiryFormSubmitResult, ab as FFIDJwtClaims, ac as FFIDLoginButton, ad as FFIDMemberStatus, ae as FFIDOAuthTokenResponse, af as FFIDOAuthUserInfoMemberRole, ag as FFIDOrganizationMember, ah as FFIDOrganizationSwitcher, ai as FFIDRedirectErrorCode, aj as FFIDSeatModel, ak as FFIDServiceAccessDenialReason, al as FFIDServiceAccessFailPolicy, am as FFIDSubscriptionBadge, an as FFIDTokenIntrospectionResponse, ao as FFIDUserMenu, ap as FFID_INQUIRY_CATEGORIES, aq as FFID_INQUIRY_CATEGORIES_SITE_2026, ar as UseFFIDAnnouncementsOptions, as as UseFFIDAnnouncementsReturn, at as isFFIDInquiryCategorySite2026, au as useFFIDAnnouncements } from './index-lAvUS_oz.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, o as FFIDAnalyticsProvider, p as FFIDAnalyticsProviderProps, c as FFIDConsentCategories, r as FFIDConsentCategoryCode, e as FFIDConsentCategoryMetadata, w as FFIDConsentError, x as FFIDConsentErrorCode, y as FFIDConsentMergeStrategy, B as FFIDConsentMergeWarning, E as FFIDConsentMergeWarningEvent, F as FFIDConsentResult, I as FFIDConsentSource, a as FFIDConsentState, d as FFIDConsentSyncResult, M as FFIDCookieBanner, N as FFIDCookieBannerClassNames, O as FFIDCookieBannerProps, Q as FFIDCookieLink, R as FFIDCookieLinkProps, f as FFIDCookiePolicy, T as FFIDCookieSettings, U as FFIDCookieSettingsClassNames, V as FFIDCookieSettingsProps, _ as FFID_CONSENT_ERROR_CODES, ae as UseFFIDConsentPreferencesReturn, af as UseFFIDConsentReturn, ag as clearConsentDismissalTimestamp, aj as decodeConsentCookie, al as encodeConsentCookie, an as readConsentCookie, ao as readConsentDismissalTimestamp, aq as useFFIDConsent, ar as useFFIDConsentPreferences, as as writeConsentCookie, at as writeConsentDismissalTimestamp } from './FFIDCookieLink-Bt0f1gyo.js';
3
+ export { A as ALL_DENIED_EXCEPT_NECESSARY, i as CONSENT_COOKIE_NAME, j as CONSENT_DISMISSAL_TIMESTAMP_KEY, l as COOKIE_VERSION, D as DEFAULT_CONSENT_ERROR_MESSAGES, o as FFIDAnalyticsProvider, p as FFIDAnalyticsProviderProps, c as FFIDConsentCategories, r as FFIDConsentCategoryCode, e as FFIDConsentCategoryMetadata, w as FFIDConsentError, x as FFIDConsentErrorCode, y as FFIDConsentMergeStrategy, B as FFIDConsentMergeWarning, E as FFIDConsentMergeWarningEvent, F as FFIDConsentResult, I as FFIDConsentSource, a as FFIDConsentState, d as FFIDConsentSyncResult, M as FFIDCookieBanner, N as FFIDCookieBannerClassNames, O as FFIDCookieBannerProps, Q as FFIDCookieLink, R as FFIDCookieLinkProps, f as FFIDCookiePolicy, T as FFIDCookieSettings, U as FFIDCookieSettingsClassNames, V as FFIDCookieSettingsProps, _ as FFID_CONSENT_ERROR_CODES, ae as UseFFIDConsentPreferencesReturn, af as UseFFIDConsentReturn, ag as clearConsentDismissalTimestamp, aj as decodeConsentCookie, al as encodeConsentCookie, an as readConsentCookie, ao as readConsentDismissalTimestamp, aq as useFFIDConsent, ar as useFFIDConsentPreferences, as as writeConsentCookie, at as writeConsentDismissalTimestamp } from './FFIDCookieLink-CE01gYc4.js';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import { ReactNode, ComponentType, FC } from 'react';
6
6
  import 'zod';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { useFFIDContext, useSubscription } from './chunk-RWA4L5WT.js';
2
- export { ACCESS_GRANTING_EFFECTIVE_STATUSES, BLOCKING_EFFECTIVE_STATUSES, DEFAULT_API_BASE_URL, DEFAULT_OAUTH_SCOPES, FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDProvider, FFIDSDKError, FFIDSubscriptionBadge, FFIDUserMenu, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_INQUIRY_CATEGORIES, FFID_INQUIRY_CATEGORIES_SITE_2026, computeEffectiveStatusFromSession, createFFIDAnnouncementsClient, createFFIDClient, createTokenStore, generateCodeChallenge, generateCodeVerifier, hasAccessFromUserinfo, isBlockedFromUserinfo, isFFIDInquiryCategorySite2026, normalizeRedirectUri, retrieveCodeVerifier, storeCodeVerifier, useFFID, useFFIDAnnouncements, useSubscription, withSubscription } from './chunk-RWA4L5WT.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-IVKFKMLQ.js';
1
+ import { useFFIDContext, useSubscription } from './chunk-WNYMSUHN.js';
2
+ export { ACCESS_GRANTING_EFFECTIVE_STATUSES, BLOCKING_EFFECTIVE_STATUSES, DEFAULT_API_BASE_URL, DEFAULT_OAUTH_SCOPES, FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDProvider, FFIDSDKError, FFIDSubscriptionBadge, FFIDUserMenu, FFID_ANNOUNCEMENTS_ERROR_CODES, FFID_INQUIRY_CATEGORIES, FFID_INQUIRY_CATEGORIES_SITE_2026, computeEffectiveStatusFromSession, createFFIDAnnouncementsClient, createFFIDClient, createTokenStore, generateCodeChallenge, generateCodeVerifier, hasAccessFromUserinfo, isBlockedFromUserinfo, isFFIDInquiryCategorySite2026, normalizeRedirectUri, retrieveCodeVerifier, storeCodeVerifier, useFFID, useFFIDAnnouncements, useSubscription, withSubscription } from './chunk-WNYMSUHN.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-KJ7FUNA6.js';
4
4
  import { useEffect, useRef } from 'react';
5
5
  import { jsx, Fragment } from 'react/jsx-runtime';
6
6
 
@@ -837,7 +837,7 @@ function createProfileMethods(deps) {
837
837
  }
838
838
 
839
839
  // src/client/version-check.ts
840
- var SDK_VERSION = "5.4.0";
840
+ var SDK_VERSION = "5.5.0";
841
841
  var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
842
842
  var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
843
843
  function sdkHeaders() {
@@ -836,7 +836,7 @@ function createProfileMethods(deps) {
836
836
  }
837
837
 
838
838
  // src/client/version-check.ts
839
- var SDK_VERSION = "5.4.0";
839
+ var SDK_VERSION = "5.5.0";
840
840
  var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
841
841
  var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
842
842
  function sdkHeaders() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feelflow/ffid-sdk",
3
- "version": "5.4.0",
3
+ "version": "5.5.0",
4
4
  "description": "FeelFlow ID Platform SDK for React/Next.js applications",
5
5
  "keywords": [
6
6
  "feelflow",