@feelflow/ffid-sdk 5.4.0 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FFIDCookieLink-Bt0f1gyo.d.cts → FFIDCookieLink-CE01gYc4.d.cts} +40 -1
- package/dist/{FFIDCookieLink-Bt0f1gyo.d.ts → FFIDCookieLink-CE01gYc4.d.ts} +40 -1
- package/dist/{chunk-RWA4L5WT.js → chunk-4SJKXEYB.js} +1 -1
- package/dist/{chunk-IVKFKMLQ.js → chunk-KJ7FUNA6.js} +21 -3
- package/dist/{chunk-QZN4WZCV.cjs → chunk-Q5SZVLNB.cjs} +20 -2
- package/dist/{chunk-UOXRMTUI.cjs → chunk-WGSEZSZI.cjs} +1 -1
- package/dist/components/index.cjs +8 -8
- package/dist/components/index.d.cts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/consent/index.cjs +64 -64
- package/dist/consent/index.d.cts +2 -2
- package/dist/consent/index.d.ts +2 -2
- package/dist/consent/index.js +1 -1
- package/dist/{ffid-client-w1s-JnFf.d.ts → ffid-client-BXl7Dop7.d.ts} +61 -53
- package/dist/{ffid-client-CARfFhtf.d.cts → ffid-client-CmxQxkoK.d.cts} +61 -53
- package/dist/{index-lAvUS_oz.d.cts → index-_oO5sHjX.d.cts} +1 -54
- package/dist/{index-lAvUS_oz.d.ts → index-_oO5sHjX.d.ts} +1 -54
- package/dist/index.cjs +57 -57
- package/dist/index.d.cts +65 -4
- package/dist/index.d.ts +65 -4
- package/dist/index.js +3 -3
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.d.cts +2 -2
- package/dist/server/index.d.ts +2 -2
- package/dist/server/index.js +1 -1
- package/dist/server/test/index.d.cts +1 -1
- package/dist/server/test/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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`. */
|
|
@@ -840,7 +840,7 @@ function createProfileMethods(deps) {
|
|
|
840
840
|
}
|
|
841
841
|
|
|
842
842
|
// src/client/version-check.ts
|
|
843
|
-
var SDK_VERSION = "5.
|
|
843
|
+
var SDK_VERSION = "5.6.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,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { createContext, useCallback, useState, useRef, useEffect,
|
|
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
|
-
|
|
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
|
-
|
|
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(() => {
|
|
@@ -842,7 +842,7 @@ function createProfileMethods(deps) {
|
|
|
842
842
|
}
|
|
843
843
|
|
|
844
844
|
// src/client/version-check.ts
|
|
845
|
-
var SDK_VERSION = "5.
|
|
845
|
+
var SDK_VERSION = "5.6.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,34 +1,34 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWGSEZSZI_cjs = require('../chunk-WGSEZSZI.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 chunkWGSEZSZI_cjs.FFIDAnnouncementBadge; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "FFIDAnnouncementList", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkWGSEZSZI_cjs.FFIDAnnouncementList; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "FFIDInquiryForm", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkWGSEZSZI_cjs.FFIDInquiryForm; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "FFIDLoginButton", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkWGSEZSZI_cjs.FFIDLoginButton; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "FFIDOrganizationSwitcher", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkWGSEZSZI_cjs.FFIDOrganizationSwitcher; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "FFIDSubscriptionBadge", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkWGSEZSZI_cjs.FFIDSubscriptionBadge; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "FFIDUserMenu", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkWGSEZSZI_cjs.FFIDUserMenu; }
|
|
34
34
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { M as FFIDAnnouncementBadge, al as FFIDAnnouncementBadgeClassNames, am as FFIDAnnouncementBadgeProps, N as FFIDAnnouncementList, an as FFIDAnnouncementListClassNames, ao as FFIDAnnouncementListProps, V as FFIDInquiryForm, W as FFIDInquiryFormCategoryItem, X as FFIDInquiryFormClassNames, Y as FFIDInquiryFormLegalLayout, Z as FFIDInquiryFormOrganization, _ as FFIDInquiryFormPlaceholderContext, $ as FFIDInquiryFormPrefill, a0 as FFIDInquiryFormProps, a1 as FFIDInquiryFormSubmitData, a2 as FFIDInquiryFormSubmitResult, a4 as FFIDLoginButton, ap as FFIDLoginButtonProps, a7 as FFIDOrganizationSwitcher, aq as FFIDOrganizationSwitcherClassNames, ar as FFIDOrganizationSwitcherProps, ac as FFIDSubscriptionBadge, as as FFIDSubscriptionBadgeClassNames, at as FFIDSubscriptionBadgeProps, ae as FFIDUserMenu, au as FFIDUserMenuClassNames, av as FFIDUserMenuProps } from '../index-_oO5sHjX.cjs';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { M as FFIDAnnouncementBadge, al as FFIDAnnouncementBadgeClassNames, am as FFIDAnnouncementBadgeProps, N as FFIDAnnouncementList, an as FFIDAnnouncementListClassNames, ao as FFIDAnnouncementListProps, V as FFIDInquiryForm, W as FFIDInquiryFormCategoryItem, X as FFIDInquiryFormClassNames, Y as FFIDInquiryFormLegalLayout, Z as FFIDInquiryFormOrganization, _ as FFIDInquiryFormPlaceholderContext, $ as FFIDInquiryFormPrefill, a0 as FFIDInquiryFormProps, a1 as FFIDInquiryFormSubmitData, a2 as FFIDInquiryFormSubmitResult, a4 as FFIDLoginButton, ap as FFIDLoginButtonProps, a7 as FFIDOrganizationSwitcher, aq as FFIDOrganizationSwitcherClassNames, ar as FFIDOrganizationSwitcherProps, ac as FFIDSubscriptionBadge, as as FFIDSubscriptionBadgeClassNames, at as FFIDSubscriptionBadgeProps, ae as FFIDUserMenu, au as FFIDUserMenuClassNames, av as FFIDUserMenuProps } from '../index-_oO5sHjX.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDSubscriptionBadge, FFIDUserMenu } from '../chunk-
|
|
1
|
+
export { FFIDAnnouncementBadge, FFIDAnnouncementList, FFIDInquiryForm, FFIDLoginButton, FFIDOrganizationSwitcher, FFIDSubscriptionBadge, FFIDUserMenu } from '../chunk-4SJKXEYB.js';
|
package/dist/consent/index.cjs
CHANGED
|
@@ -1,258 +1,258 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
49
|
+
get: function () { return chunkQ5SZVLNB_cjs.DeviceIdSchema; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "FFIDAnalyticsProvider", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkQ5SZVLNB_cjs.FFIDAnalyticsProvider; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "FFIDConsentCategoriesSchema", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkQ5SZVLNB_cjs.FFIDConsentCategoriesSchema; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "FFIDConsentCategoryCodeSchema", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkQ5SZVLNB_cjs.FFIDConsentCategoryCodeSchema; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "FFIDConsentCategoryMetadataSchema", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkQ5SZVLNB_cjs.FFIDConsentCategoryMetadataSchema; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "FFIDConsentContext", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkQ5SZVLNB_cjs.FFIDConsentContext; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "FFIDConsentError", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkQ5SZVLNB_cjs.FFIDConsentError; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "FFIDConsentMergeStrategySchema", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkQ5SZVLNB_cjs.FFIDConsentMergeStrategySchema; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "FFIDConsentMergeWarningSchema", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkQ5SZVLNB_cjs.FFIDConsentMergeWarningSchema; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "FFIDConsentSourceSchema", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkQ5SZVLNB_cjs.FFIDConsentSourceSchema; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "FFIDConsentStateSchema", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkQ5SZVLNB_cjs.FFIDConsentStateSchema; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "FFIDConsentUpdateSchema", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkQ5SZVLNB_cjs.FFIDConsentUpdateSchema; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "FFIDCookieBanner", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkQ5SZVLNB_cjs.FFIDCookieBanner; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "FFIDCookieLink", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkQ5SZVLNB_cjs.FFIDCookieLink; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "FFIDCookiePolicySchema", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkQ5SZVLNB_cjs.FFIDCookiePolicySchema; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "FFIDCookieSettings", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkQ5SZVLNB_cjs.FFIDCookieSettings; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "FFIDInternalConsentSourceSchema", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkQ5SZVLNB_cjs.FFIDInternalConsentSourceSchema; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "FFIDPublicConsentSourceSchema", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
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
|
|
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
|
|
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
|
|
129
|
+
get: function () { return chunkQ5SZVLNB_cjs.GetCategoriesWireSchema; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "GetConsentMeWireSchema", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkQ5SZVLNB_cjs.GetConsentMeWireSchema; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "GetDocumentWireSchema", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkQ5SZVLNB_cjs.GetDocumentWireSchema; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "PostConsentRequestSchema", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkQ5SZVLNB_cjs.PostConsentRequestSchema; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "PostConsentWireSchema", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkQ5SZVLNB_cjs.PostConsentWireSchema; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "PostSyncRequestSchema", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkQ5SZVLNB_cjs.PostSyncRequestSchema; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "PostSyncWireSchema", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkQ5SZVLNB_cjs.PostSyncWireSchema; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "PostWithdrawWireSchema", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkQ5SZVLNB_cjs.PostWithdrawWireSchema; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "clearConsentDismissalTimestamp", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkQ5SZVLNB_cjs.clearConsentDismissalTimestamp; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "clearConsentSessionMirror", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkQ5SZVLNB_cjs.clearConsentSessionMirror; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "clearDeviceId", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkQ5SZVLNB_cjs.clearDeviceId; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "createConsentClient", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkQ5SZVLNB_cjs.createConsentClient; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "createGtagBridge", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkQ5SZVLNB_cjs.createGtagBridge; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "decodeConsentCookie", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkQ5SZVLNB_cjs.decodeConsentCookie; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "deleteConsentCookie", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkQ5SZVLNB_cjs.deleteConsentCookie; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "encodeConsentCookie", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkQ5SZVLNB_cjs.encodeConsentCookie; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "generateDeviceId", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkQ5SZVLNB_cjs.generateDeviceId; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "getOrCreateDeviceId", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkQ5SZVLNB_cjs.getOrCreateDeviceId; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "isUuidV7", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkQ5SZVLNB_cjs.isUuidV7; }
|
|
202
202
|
});
|
|
203
203
|
Object.defineProperty(exports, "isValidDeviceId", {
|
|
204
204
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkQ5SZVLNB_cjs.isValidDeviceId; }
|
|
206
206
|
});
|
|
207
207
|
Object.defineProperty(exports, "mapCategoriesToGtagParams", {
|
|
208
208
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkQ5SZVLNB_cjs.mapCategoriesToGtagParams; }
|
|
210
210
|
});
|
|
211
211
|
Object.defineProperty(exports, "mapConsentWireToState", {
|
|
212
212
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkQ5SZVLNB_cjs.mapConsentWireToState; }
|
|
214
214
|
});
|
|
215
215
|
Object.defineProperty(exports, "mapMeWireToState", {
|
|
216
216
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkQ5SZVLNB_cjs.mapMeWireToState; }
|
|
218
218
|
});
|
|
219
219
|
Object.defineProperty(exports, "mapSyncWireToResult", {
|
|
220
220
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkQ5SZVLNB_cjs.mapSyncWireToResult; }
|
|
222
222
|
});
|
|
223
223
|
Object.defineProperty(exports, "mapWithdrawWireToState", {
|
|
224
224
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkQ5SZVLNB_cjs.mapWithdrawWireToState; }
|
|
226
226
|
});
|
|
227
227
|
Object.defineProperty(exports, "readConsentCookie", {
|
|
228
228
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkQ5SZVLNB_cjs.readConsentCookie; }
|
|
230
230
|
});
|
|
231
231
|
Object.defineProperty(exports, "readConsentDismissalTimestamp", {
|
|
232
232
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkQ5SZVLNB_cjs.readConsentDismissalTimestamp; }
|
|
234
234
|
});
|
|
235
235
|
Object.defineProperty(exports, "readConsentSessionMirror", {
|
|
236
236
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkQ5SZVLNB_cjs.readConsentSessionMirror; }
|
|
238
238
|
});
|
|
239
239
|
Object.defineProperty(exports, "useFFIDConsent", {
|
|
240
240
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkQ5SZVLNB_cjs.useFFIDConsent; }
|
|
242
242
|
});
|
|
243
243
|
Object.defineProperty(exports, "useFFIDConsentPreferences", {
|
|
244
244
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunkQ5SZVLNB_cjs.useFFIDConsentPreferences; }
|
|
246
246
|
});
|
|
247
247
|
Object.defineProperty(exports, "writeConsentCookie", {
|
|
248
248
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunkQ5SZVLNB_cjs.writeConsentCookie; }
|
|
250
250
|
});
|
|
251
251
|
Object.defineProperty(exports, "writeConsentDismissalTimestamp", {
|
|
252
252
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunkQ5SZVLNB_cjs.writeConsentDismissalTimestamp; }
|
|
254
254
|
});
|
|
255
255
|
Object.defineProperty(exports, "writeConsentSessionMirror", {
|
|
256
256
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunkQ5SZVLNB_cjs.writeConsentSessionMirror; }
|
|
258
258
|
});
|