@feelflow/ffid-sdk 5.16.1 → 5.17.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-DrF5UXkd.d.cts → FFIDCookieLink-BJgVcJyw.d.cts} +16 -1
- package/dist/{FFIDCookieLink-DrF5UXkd.d.ts → FFIDCookieLink-BJgVcJyw.d.ts} +16 -1
- package/dist/{chunk-HAR75DTJ.js → chunk-G7VOX64X.js} +2 -0
- package/dist/{chunk-H2D52XCL.cjs → chunk-H5O2CCAY.cjs} +2 -0
- package/dist/{chunk-SNSIVY3Q.cjs → chunk-HBPYSPBY.cjs} +17 -6
- package/dist/{chunk-XT4BAOKZ.js → chunk-HLCHSKAF.js} +17 -6
- 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-9-lh0G_h.d.ts → ffid-client-BtS84epg.d.ts} +28 -1
- package/dist/{ffid-client-CKFxY60u.d.cts → ffid-client-DZEK3tkP.d.cts} +28 -1
- package/dist/{index-CsVJTuPv.d.cts → index-CG0vObax.d.cts} +14 -1
- package/dist/{index-CsVJTuPv.d.ts → index-CG0vObax.d.ts} +14 -1
- package/dist/index.cjs +62 -62
- package/dist/index.d.cts +48 -5
- package/dist/index.d.ts +48 -5
- package/dist/index.js +3 -3
- package/dist/server/index.cjs +14 -6
- package/dist/server/index.d.cts +2 -2
- package/dist/server/index.d.ts +2 -2
- package/dist/server/index.js +14 -6
- package/dist/server/test/index.d.cts +1 -1
- package/dist/server/test/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -616,6 +616,16 @@ declare global {
|
|
|
616
616
|
interface Window {
|
|
617
617
|
dataLayer?: unknown[];
|
|
618
618
|
gtag?: (...args: unknown[]) => void;
|
|
619
|
+
/**
|
|
620
|
+
* Set once `consent default` has been pushed onto THIS window's
|
|
621
|
+
* `dataLayer`. The default is page-global and only needs to land once
|
|
622
|
+
* before GA loads, so the bridge dedups on the window — the same scope
|
|
623
|
+
* that owns `dataLayer`/`gtag` — rather than per bridge instance. This
|
|
624
|
+
* survives provider remounts and multiple bridge instances, which a
|
|
625
|
+
* per-React-ref guard cannot (it never sees the shared global dataLayer),
|
|
626
|
+
* fixing the ≈142× duplicate `consent default` pushes seen in prod (#3982).
|
|
627
|
+
*/
|
|
628
|
+
__ffidConsentDefaultApplied?: boolean;
|
|
619
629
|
}
|
|
620
630
|
}
|
|
621
631
|
interface GtagBridgeOptions {
|
|
@@ -657,7 +667,12 @@ declare function mapCategoriesToGtagParams(cats: FFIDConsentCategories): GtagCon
|
|
|
657
667
|
interface GtagBridge {
|
|
658
668
|
/**
|
|
659
669
|
* Push `consent default` with ALL_DENIED_EXCEPT_NECESSARY. Must be called
|
|
660
|
-
* **synchronously** before any GA script tag is added.
|
|
670
|
+
* **synchronously** before any GA script tag is added.
|
|
671
|
+
*
|
|
672
|
+
* Idempotent at the window scope: `consent default` is pushed at most once
|
|
673
|
+
* per window's `dataLayer`, no matter how many bridge instances call it
|
|
674
|
+
* (provider remount, a second provider, strict-mode double-mount). The
|
|
675
|
+
* default is page-global and only needs to land once before GA loads (#3982).
|
|
661
676
|
*/
|
|
662
677
|
setDefaultConsent(): void;
|
|
663
678
|
/**
|
|
@@ -616,6 +616,16 @@ declare global {
|
|
|
616
616
|
interface Window {
|
|
617
617
|
dataLayer?: unknown[];
|
|
618
618
|
gtag?: (...args: unknown[]) => void;
|
|
619
|
+
/**
|
|
620
|
+
* Set once `consent default` has been pushed onto THIS window's
|
|
621
|
+
* `dataLayer`. The default is page-global and only needs to land once
|
|
622
|
+
* before GA loads, so the bridge dedups on the window — the same scope
|
|
623
|
+
* that owns `dataLayer`/`gtag` — rather than per bridge instance. This
|
|
624
|
+
* survives provider remounts and multiple bridge instances, which a
|
|
625
|
+
* per-React-ref guard cannot (it never sees the shared global dataLayer),
|
|
626
|
+
* fixing the ≈142× duplicate `consent default` pushes seen in prod (#3982).
|
|
627
|
+
*/
|
|
628
|
+
__ffidConsentDefaultApplied?: boolean;
|
|
619
629
|
}
|
|
620
630
|
}
|
|
621
631
|
interface GtagBridgeOptions {
|
|
@@ -657,7 +667,12 @@ declare function mapCategoriesToGtagParams(cats: FFIDConsentCategories): GtagCon
|
|
|
657
667
|
interface GtagBridge {
|
|
658
668
|
/**
|
|
659
669
|
* Push `consent default` with ALL_DENIED_EXCEPT_NECESSARY. Must be called
|
|
660
|
-
* **synchronously** before any GA script tag is added.
|
|
670
|
+
* **synchronously** before any GA script tag is added.
|
|
671
|
+
*
|
|
672
|
+
* Idempotent at the window scope: `consent default` is pushed at most once
|
|
673
|
+
* per window's `dataLayer`, no matter how many bridge instances call it
|
|
674
|
+
* (provider remount, a second provider, strict-mode double-mount). The
|
|
675
|
+
* default is page-global and only needs to land once before GA loads (#3982).
|
|
661
676
|
*/
|
|
662
677
|
setDefaultConsent(): void;
|
|
663
678
|
/**
|
|
@@ -1015,12 +1015,14 @@ function createGtagBridge(opts = {}) {
|
|
|
1015
1015
|
}
|
|
1016
1016
|
return {
|
|
1017
1017
|
setDefaultConsent() {
|
|
1018
|
+
if (!win || win.__ffidConsentDefaultApplied) return;
|
|
1018
1019
|
const denyParams = mapCategoriesToGtagParams({
|
|
1019
1020
|
functional: false,
|
|
1020
1021
|
analytics: false,
|
|
1021
1022
|
marketing: false
|
|
1022
1023
|
});
|
|
1023
1024
|
command("consent", "default", denyParams);
|
|
1025
|
+
win.__ffidConsentDefaultApplied = true;
|
|
1024
1026
|
},
|
|
1025
1027
|
updateConsent(cats) {
|
|
1026
1028
|
command("consent", "update", mapCategoriesToGtagParams(cats));
|
|
@@ -1017,12 +1017,14 @@ function createGtagBridge(opts = {}) {
|
|
|
1017
1017
|
}
|
|
1018
1018
|
return {
|
|
1019
1019
|
setDefaultConsent() {
|
|
1020
|
+
if (!win || win.__ffidConsentDefaultApplied) return;
|
|
1020
1021
|
const denyParams = mapCategoriesToGtagParams({
|
|
1021
1022
|
functional: false,
|
|
1022
1023
|
analytics: false,
|
|
1023
1024
|
marketing: false
|
|
1024
1025
|
});
|
|
1025
1026
|
command("consent", "default", denyParams);
|
|
1027
|
+
win.__ffidConsentDefaultApplied = true;
|
|
1026
1028
|
},
|
|
1027
1029
|
updateConsent(cats) {
|
|
1028
1030
|
command("consent", "update", mapCategoriesToGtagParams(cats));
|
|
@@ -1095,7 +1095,7 @@ function createNonContractMethods(deps) {
|
|
|
1095
1095
|
}
|
|
1096
1096
|
|
|
1097
1097
|
// src/client/version-check.ts
|
|
1098
|
-
var SDK_VERSION = "5.
|
|
1098
|
+
var SDK_VERSION = "5.17.0";
|
|
1099
1099
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
1100
1100
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
1101
1101
|
function sdkHeaders() {
|
|
@@ -1941,6 +1941,9 @@ function createRedirectMethods(deps) {
|
|
|
1941
1941
|
if (options?.screenHint === SCREEN_HINT_SIGNUP) {
|
|
1942
1942
|
params.set(SCREEN_HINT_PARAM, SCREEN_HINT_SIGNUP);
|
|
1943
1943
|
}
|
|
1944
|
+
if (options?.prompt) {
|
|
1945
|
+
params.set("prompt", options.prompt);
|
|
1946
|
+
}
|
|
1944
1947
|
const authorizeUrl = `${baseUrl}${OAUTH_AUTHORIZE_ENDPOINT}?${params.toString()}`;
|
|
1945
1948
|
logger.debug("Redirecting to authorize:", authorizeUrl);
|
|
1946
1949
|
recordRedirectAttempt(authorizeKey, now, logger);
|
|
@@ -1960,12 +1963,12 @@ function createRedirectMethods(deps) {
|
|
|
1960
1963
|
if (authMode === "token") {
|
|
1961
1964
|
return redirectToAuthorize(options);
|
|
1962
1965
|
}
|
|
1963
|
-
const targetUrl = options?.screenHint === SCREEN_HINT_SIGNUP ? getSignupUrl() : getLoginUrl();
|
|
1966
|
+
const targetUrl = options?.screenHint === SCREEN_HINT_SIGNUP ? getSignupUrl() : getLoginUrl(void 0, options?.prompt ? { prompt: options.prompt } : void 0);
|
|
1964
1967
|
logger.debug("Redirecting to auth page:", targetUrl);
|
|
1965
1968
|
window.location.href = targetUrl;
|
|
1966
1969
|
return { success: true };
|
|
1967
1970
|
}
|
|
1968
|
-
function getLoginUrl(redirectUrl) {
|
|
1971
|
+
function getLoginUrl(redirectUrl, options) {
|
|
1969
1972
|
let redirect;
|
|
1970
1973
|
if (redirectUrl != null) {
|
|
1971
1974
|
redirect = redirectUrl;
|
|
@@ -1975,7 +1978,8 @@ function createRedirectMethods(deps) {
|
|
|
1975
1978
|
logger.warn("getLoginUrl: SSR \u74B0\u5883\u3067 redirectUrl \u304C\u672A\u6307\u5B9A\u306E\u305F\u3081\u7A7A\u6587\u5B57\u306B\u30D5\u30A9\u30FC\u30EB\u30D0\u30C3\u30AF\u3057\u307E\u3059");
|
|
1976
1979
|
redirect = "";
|
|
1977
1980
|
}
|
|
1978
|
-
|
|
1981
|
+
const promptSuffix = options?.prompt ? `&prompt=${encodeURIComponent(options.prompt)}` : "";
|
|
1982
|
+
return `${baseUrl}/login?redirect=${encodeURIComponent(redirect)}&service=${encodeURIComponent(serviceCode)}${promptSuffix}`;
|
|
1979
1983
|
}
|
|
1980
1984
|
function getSignupUrl(redirectUrl) {
|
|
1981
1985
|
let redirect;
|
|
@@ -2007,7 +2011,10 @@ function createRedirectMethods(deps) {
|
|
|
2007
2011
|
window.location.href = logoutUrl;
|
|
2008
2012
|
return { success: true };
|
|
2009
2013
|
}
|
|
2010
|
-
|
|
2014
|
+
async function switchAccount(options) {
|
|
2015
|
+
return redirectToLogin({ ...options, prompt: "select_account" });
|
|
2016
|
+
}
|
|
2017
|
+
return { redirectToLogin, redirectToAuthorize, getLoginUrl, getSignupUrl, getLogoutUrl, redirectToLogout, switchAccount };
|
|
2011
2018
|
}
|
|
2012
2019
|
|
|
2013
2020
|
// src/client/redirect-uri.ts
|
|
@@ -2981,7 +2988,7 @@ function createFFIDClient(config) {
|
|
|
2981
2988
|
}
|
|
2982
2989
|
return signOutCookie();
|
|
2983
2990
|
}
|
|
2984
|
-
const { redirectToLogin, redirectToAuthorize, getLoginUrl, getSignupUrl, getLogoutUrl, redirectToLogout } = createRedirectMethods({
|
|
2991
|
+
const { redirectToLogin, redirectToAuthorize, getLoginUrl, getSignupUrl, getLogoutUrl, redirectToLogout, switchAccount } = createRedirectMethods({
|
|
2985
2992
|
authMode,
|
|
2986
2993
|
baseUrl,
|
|
2987
2994
|
clientId,
|
|
@@ -3175,6 +3182,7 @@ function createFFIDClient(config) {
|
|
|
3175
3182
|
redirectToLogin,
|
|
3176
3183
|
redirectToAuthorize,
|
|
3177
3184
|
redirectToLogout,
|
|
3185
|
+
switchAccount,
|
|
3178
3186
|
getLoginUrl,
|
|
3179
3187
|
getLogoutUrl,
|
|
3180
3188
|
getSignupUrl,
|
|
@@ -3631,6 +3639,9 @@ function useFFID() {
|
|
|
3631
3639
|
error: context.error,
|
|
3632
3640
|
login: context.login,
|
|
3633
3641
|
logout: context.logout,
|
|
3642
|
+
getLogoutUrl: client.getLogoutUrl,
|
|
3643
|
+
redirectToLogout: client.redirectToLogout,
|
|
3644
|
+
switchAccount: client.switchAccount,
|
|
3634
3645
|
switchOrganization: context.switchOrganization,
|
|
3635
3646
|
refresh: context.refresh,
|
|
3636
3647
|
getLoginUrl: client.getLoginUrl,
|
|
@@ -1093,7 +1093,7 @@ function createNonContractMethods(deps) {
|
|
|
1093
1093
|
}
|
|
1094
1094
|
|
|
1095
1095
|
// src/client/version-check.ts
|
|
1096
|
-
var SDK_VERSION = "5.
|
|
1096
|
+
var SDK_VERSION = "5.17.0";
|
|
1097
1097
|
var SDK_USER_AGENT = `FFID-SDK/${SDK_VERSION} (TypeScript)`;
|
|
1098
1098
|
var SDK_VERSION_HEADER = "X-FFID-SDK-Version";
|
|
1099
1099
|
function sdkHeaders() {
|
|
@@ -1939,6 +1939,9 @@ function createRedirectMethods(deps) {
|
|
|
1939
1939
|
if (options?.screenHint === SCREEN_HINT_SIGNUP) {
|
|
1940
1940
|
params.set(SCREEN_HINT_PARAM, SCREEN_HINT_SIGNUP);
|
|
1941
1941
|
}
|
|
1942
|
+
if (options?.prompt) {
|
|
1943
|
+
params.set("prompt", options.prompt);
|
|
1944
|
+
}
|
|
1942
1945
|
const authorizeUrl = `${baseUrl}${OAUTH_AUTHORIZE_ENDPOINT}?${params.toString()}`;
|
|
1943
1946
|
logger.debug("Redirecting to authorize:", authorizeUrl);
|
|
1944
1947
|
recordRedirectAttempt(authorizeKey, now, logger);
|
|
@@ -1958,12 +1961,12 @@ function createRedirectMethods(deps) {
|
|
|
1958
1961
|
if (authMode === "token") {
|
|
1959
1962
|
return redirectToAuthorize(options);
|
|
1960
1963
|
}
|
|
1961
|
-
const targetUrl = options?.screenHint === SCREEN_HINT_SIGNUP ? getSignupUrl() : getLoginUrl();
|
|
1964
|
+
const targetUrl = options?.screenHint === SCREEN_HINT_SIGNUP ? getSignupUrl() : getLoginUrl(void 0, options?.prompt ? { prompt: options.prompt } : void 0);
|
|
1962
1965
|
logger.debug("Redirecting to auth page:", targetUrl);
|
|
1963
1966
|
window.location.href = targetUrl;
|
|
1964
1967
|
return { success: true };
|
|
1965
1968
|
}
|
|
1966
|
-
function getLoginUrl(redirectUrl) {
|
|
1969
|
+
function getLoginUrl(redirectUrl, options) {
|
|
1967
1970
|
let redirect;
|
|
1968
1971
|
if (redirectUrl != null) {
|
|
1969
1972
|
redirect = redirectUrl;
|
|
@@ -1973,7 +1976,8 @@ function createRedirectMethods(deps) {
|
|
|
1973
1976
|
logger.warn("getLoginUrl: SSR \u74B0\u5883\u3067 redirectUrl \u304C\u672A\u6307\u5B9A\u306E\u305F\u3081\u7A7A\u6587\u5B57\u306B\u30D5\u30A9\u30FC\u30EB\u30D0\u30C3\u30AF\u3057\u307E\u3059");
|
|
1974
1977
|
redirect = "";
|
|
1975
1978
|
}
|
|
1976
|
-
|
|
1979
|
+
const promptSuffix = options?.prompt ? `&prompt=${encodeURIComponent(options.prompt)}` : "";
|
|
1980
|
+
return `${baseUrl}/login?redirect=${encodeURIComponent(redirect)}&service=${encodeURIComponent(serviceCode)}${promptSuffix}`;
|
|
1977
1981
|
}
|
|
1978
1982
|
function getSignupUrl(redirectUrl) {
|
|
1979
1983
|
let redirect;
|
|
@@ -2005,7 +2009,10 @@ function createRedirectMethods(deps) {
|
|
|
2005
2009
|
window.location.href = logoutUrl;
|
|
2006
2010
|
return { success: true };
|
|
2007
2011
|
}
|
|
2008
|
-
|
|
2012
|
+
async function switchAccount(options) {
|
|
2013
|
+
return redirectToLogin({ ...options, prompt: "select_account" });
|
|
2014
|
+
}
|
|
2015
|
+
return { redirectToLogin, redirectToAuthorize, getLoginUrl, getSignupUrl, getLogoutUrl, redirectToLogout, switchAccount };
|
|
2009
2016
|
}
|
|
2010
2017
|
|
|
2011
2018
|
// src/client/redirect-uri.ts
|
|
@@ -2979,7 +2986,7 @@ function createFFIDClient(config) {
|
|
|
2979
2986
|
}
|
|
2980
2987
|
return signOutCookie();
|
|
2981
2988
|
}
|
|
2982
|
-
const { redirectToLogin, redirectToAuthorize, getLoginUrl, getSignupUrl, getLogoutUrl, redirectToLogout } = createRedirectMethods({
|
|
2989
|
+
const { redirectToLogin, redirectToAuthorize, getLoginUrl, getSignupUrl, getLogoutUrl, redirectToLogout, switchAccount } = createRedirectMethods({
|
|
2983
2990
|
authMode,
|
|
2984
2991
|
baseUrl,
|
|
2985
2992
|
clientId,
|
|
@@ -3173,6 +3180,7 @@ function createFFIDClient(config) {
|
|
|
3173
3180
|
redirectToLogin,
|
|
3174
3181
|
redirectToAuthorize,
|
|
3175
3182
|
redirectToLogout,
|
|
3183
|
+
switchAccount,
|
|
3176
3184
|
getLoginUrl,
|
|
3177
3185
|
getLogoutUrl,
|
|
3178
3186
|
getSignupUrl,
|
|
@@ -3629,6 +3637,9 @@ function useFFID() {
|
|
|
3629
3637
|
error: context.error,
|
|
3630
3638
|
login: context.login,
|
|
3631
3639
|
logout: context.logout,
|
|
3640
|
+
getLogoutUrl: client.getLogoutUrl,
|
|
3641
|
+
redirectToLogout: client.redirectToLogout,
|
|
3642
|
+
switchAccount: client.switchAccount,
|
|
3632
3643
|
switchOrganization: context.switchOrganization,
|
|
3633
3644
|
refresh: context.refresh,
|
|
3634
3645
|
getLoginUrl: client.getLoginUrl,
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHBPYSPBY_cjs = require('../chunk-HBPYSPBY.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 chunkHBPYSPBY_cjs.FFIDAnnouncementBadge; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "FFIDAnnouncementList", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkHBPYSPBY_cjs.FFIDAnnouncementList; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "FFIDInquiryForm", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkHBPYSPBY_cjs.FFIDInquiryForm; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "FFIDLoginButton", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkHBPYSPBY_cjs.FFIDLoginButton; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "FFIDOrganizationSwitcher", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkHBPYSPBY_cjs.FFIDOrganizationSwitcher; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "FFIDSubscriptionBadge", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkHBPYSPBY_cjs.FFIDSubscriptionBadge; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "FFIDUserMenu", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkHBPYSPBY_cjs.FFIDUserMenu; }
|
|
34
34
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { G as FFIDAnnouncementBadge, ag as FFIDAnnouncementBadgeClassNames, ah as FFIDAnnouncementBadgeProps, H as FFIDAnnouncementList, ai as FFIDAnnouncementListClassNames, aj as FFIDAnnouncementListProps, Q as FFIDInquiryForm, R as FFIDInquiryFormCategoryItem, S as FFIDInquiryFormClassNames, T as FFIDInquiryFormLegalLayout, U as FFIDInquiryFormOrganization, V as FFIDInquiryFormPlaceholderContext, W as FFIDInquiryFormPrefill, X as FFIDInquiryFormProps, Y as FFIDInquiryFormSubmitData, Z as FFIDInquiryFormSubmitResult, $ as FFIDLoginButton, ak as FFIDLoginButtonProps, a2 as FFIDOrganizationSwitcher, al as FFIDOrganizationSwitcherClassNames, am as FFIDOrganizationSwitcherProps, a7 as FFIDSubscriptionBadge, an as FFIDSubscriptionBadgeClassNames, ao as FFIDSubscriptionBadgeProps, a9 as FFIDUserMenu, ap as FFIDUserMenuClassNames, aq as FFIDUserMenuProps } from '../index-CG0vObax.cjs';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { G as FFIDAnnouncementBadge, ag as FFIDAnnouncementBadgeClassNames, ah as FFIDAnnouncementBadgeProps, H as FFIDAnnouncementList, ai as FFIDAnnouncementListClassNames, aj as FFIDAnnouncementListProps, Q as FFIDInquiryForm, R as FFIDInquiryFormCategoryItem, S as FFIDInquiryFormClassNames, T as FFIDInquiryFormLegalLayout, U as FFIDInquiryFormOrganization, V as FFIDInquiryFormPlaceholderContext, W as FFIDInquiryFormPrefill, X as FFIDInquiryFormProps, Y as FFIDInquiryFormSubmitData, Z as FFIDInquiryFormSubmitResult, $ as FFIDLoginButton, ak as FFIDLoginButtonProps, a2 as FFIDOrganizationSwitcher, al as FFIDOrganizationSwitcherClassNames, am as FFIDOrganizationSwitcherProps, a7 as FFIDSubscriptionBadge, an as FFIDSubscriptionBadgeClassNames, ao as FFIDSubscriptionBadgeProps, a9 as FFIDUserMenu, ap as FFIDUserMenuClassNames, aq as FFIDUserMenuProps } from '../index-CG0vObax.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-HLCHSKAF.js';
|
package/dist/consent/index.cjs
CHANGED
|
@@ -1,258 +1,258 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkH5O2CCAY_cjs = require('../chunk-H5O2CCAY.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 chunkH5O2CCAY_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 chunkH5O2CCAY_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 chunkH5O2CCAY_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 chunkH5O2CCAY_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 chunkH5O2CCAY_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 chunkH5O2CCAY_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 chunkH5O2CCAY_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 chunkH5O2CCAY_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 chunkH5O2CCAY_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 chunkH5O2CCAY_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 chunkH5O2CCAY_cjs.DeviceIdSchema; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "FFIDAnalyticsProvider", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkH5O2CCAY_cjs.FFIDAnalyticsProvider; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "FFIDConsentCategoriesSchema", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkH5O2CCAY_cjs.FFIDConsentCategoriesSchema; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "FFIDConsentCategoryCodeSchema", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkH5O2CCAY_cjs.FFIDConsentCategoryCodeSchema; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "FFIDConsentCategoryMetadataSchema", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkH5O2CCAY_cjs.FFIDConsentCategoryMetadataSchema; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "FFIDConsentContext", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkH5O2CCAY_cjs.FFIDConsentContext; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "FFIDConsentError", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkH5O2CCAY_cjs.FFIDConsentError; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "FFIDConsentMergeStrategySchema", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkH5O2CCAY_cjs.FFIDConsentMergeStrategySchema; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "FFIDConsentMergeWarningSchema", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkH5O2CCAY_cjs.FFIDConsentMergeWarningSchema; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "FFIDConsentSourceSchema", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkH5O2CCAY_cjs.FFIDConsentSourceSchema; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "FFIDConsentStateSchema", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkH5O2CCAY_cjs.FFIDConsentStateSchema; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "FFIDConsentUpdateSchema", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkH5O2CCAY_cjs.FFIDConsentUpdateSchema; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "FFIDCookieBanner", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkH5O2CCAY_cjs.FFIDCookieBanner; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "FFIDCookieLink", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkH5O2CCAY_cjs.FFIDCookieLink; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "FFIDCookiePolicySchema", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkH5O2CCAY_cjs.FFIDCookiePolicySchema; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "FFIDCookieSettings", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkH5O2CCAY_cjs.FFIDCookieSettings; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "FFIDInternalConsentSourceSchema", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkH5O2CCAY_cjs.FFIDInternalConsentSourceSchema; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "FFIDPublicConsentSourceSchema", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkH5O2CCAY_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 chunkH5O2CCAY_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 chunkH5O2CCAY_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 chunkH5O2CCAY_cjs.GetCategoriesWireSchema; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "GetConsentMeWireSchema", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkH5O2CCAY_cjs.GetConsentMeWireSchema; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "GetDocumentWireSchema", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkH5O2CCAY_cjs.GetDocumentWireSchema; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "PostConsentRequestSchema", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkH5O2CCAY_cjs.PostConsentRequestSchema; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "PostConsentWireSchema", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkH5O2CCAY_cjs.PostConsentWireSchema; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "PostSyncRequestSchema", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkH5O2CCAY_cjs.PostSyncRequestSchema; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "PostSyncWireSchema", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkH5O2CCAY_cjs.PostSyncWireSchema; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "PostWithdrawWireSchema", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkH5O2CCAY_cjs.PostWithdrawWireSchema; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "clearConsentDismissalTimestamp", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkH5O2CCAY_cjs.clearConsentDismissalTimestamp; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "clearConsentSessionMirror", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkH5O2CCAY_cjs.clearConsentSessionMirror; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "clearDeviceId", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkH5O2CCAY_cjs.clearDeviceId; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "createConsentClient", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkH5O2CCAY_cjs.createConsentClient; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "createGtagBridge", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkH5O2CCAY_cjs.createGtagBridge; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "decodeConsentCookie", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkH5O2CCAY_cjs.decodeConsentCookie; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "deleteConsentCookie", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkH5O2CCAY_cjs.deleteConsentCookie; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "encodeConsentCookie", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkH5O2CCAY_cjs.encodeConsentCookie; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "generateDeviceId", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkH5O2CCAY_cjs.generateDeviceId; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "getOrCreateDeviceId", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkH5O2CCAY_cjs.getOrCreateDeviceId; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "isUuidV7", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkH5O2CCAY_cjs.isUuidV7; }
|
|
202
202
|
});
|
|
203
203
|
Object.defineProperty(exports, "isValidDeviceId", {
|
|
204
204
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkH5O2CCAY_cjs.isValidDeviceId; }
|
|
206
206
|
});
|
|
207
207
|
Object.defineProperty(exports, "mapCategoriesToGtagParams", {
|
|
208
208
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkH5O2CCAY_cjs.mapCategoriesToGtagParams; }
|
|
210
210
|
});
|
|
211
211
|
Object.defineProperty(exports, "mapConsentWireToState", {
|
|
212
212
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkH5O2CCAY_cjs.mapConsentWireToState; }
|
|
214
214
|
});
|
|
215
215
|
Object.defineProperty(exports, "mapMeWireToState", {
|
|
216
216
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkH5O2CCAY_cjs.mapMeWireToState; }
|
|
218
218
|
});
|
|
219
219
|
Object.defineProperty(exports, "mapSyncWireToResult", {
|
|
220
220
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkH5O2CCAY_cjs.mapSyncWireToResult; }
|
|
222
222
|
});
|
|
223
223
|
Object.defineProperty(exports, "mapWithdrawWireToState", {
|
|
224
224
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkH5O2CCAY_cjs.mapWithdrawWireToState; }
|
|
226
226
|
});
|
|
227
227
|
Object.defineProperty(exports, "readConsentCookie", {
|
|
228
228
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkH5O2CCAY_cjs.readConsentCookie; }
|
|
230
230
|
});
|
|
231
231
|
Object.defineProperty(exports, "readConsentDismissalTimestamp", {
|
|
232
232
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkH5O2CCAY_cjs.readConsentDismissalTimestamp; }
|
|
234
234
|
});
|
|
235
235
|
Object.defineProperty(exports, "readConsentSessionMirror", {
|
|
236
236
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkH5O2CCAY_cjs.readConsentSessionMirror; }
|
|
238
238
|
});
|
|
239
239
|
Object.defineProperty(exports, "useFFIDConsent", {
|
|
240
240
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkH5O2CCAY_cjs.useFFIDConsent; }
|
|
242
242
|
});
|
|
243
243
|
Object.defineProperty(exports, "useFFIDConsentPreferences", {
|
|
244
244
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunkH5O2CCAY_cjs.useFFIDConsentPreferences; }
|
|
246
246
|
});
|
|
247
247
|
Object.defineProperty(exports, "writeConsentCookie", {
|
|
248
248
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunkH5O2CCAY_cjs.writeConsentCookie; }
|
|
250
250
|
});
|
|
251
251
|
Object.defineProperty(exports, "writeConsentDismissalTimestamp", {
|
|
252
252
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunkH5O2CCAY_cjs.writeConsentDismissalTimestamp; }
|
|
254
254
|
});
|
|
255
255
|
Object.defineProperty(exports, "writeConsentSessionMirror", {
|
|
256
256
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunkH5O2CCAY_cjs.writeConsentSessionMirror; }
|
|
258
258
|
});
|