@c15t/react 0.0.1-rc.11 → 0.0.1-rc.12
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/components/consent-manager-dialog/__tests__/utils.cjs +5 -0
- package/dist/components/consent-manager-dialog/__tests__/utils.d.ts.map +1 -1
- package/dist/components/consent-manager-dialog/__tests__/utils.js +5 -0
- package/dist/components/consent-manager-widget/__tests__/utils.cjs +5 -0
- package/dist/components/consent-manager-widget/__tests__/utils.d.ts.map +1 -1
- package/dist/components/consent-manager-widget/__tests__/utils.js +5 -0
- package/dist/components/consent-manager-widget/atoms/accordion.d.ts.map +1 -1
- package/dist/components/cookie-banner/__tests__/utils.cjs +5 -0
- package/dist/components/cookie-banner/__tests__/utils.d.ts.map +1 -1
- package/dist/components/cookie-banner/__tests__/utils.js +5 -0
- package/dist/components/shared/primitives/box.cjs +1 -1
- package/dist/components/shared/primitives/box.d.ts.map +1 -1
- package/dist/components/shared/primitives/box.js +1 -1
- package/dist/components/shared/primitives/button.cjs +52 -2
- package/dist/components/shared/primitives/button.d.ts.map +1 -1
- package/dist/components/shared/primitives/button.js +52 -2
- package/dist/components/shared/ui/accordion/accordion.d.ts.map +1 -1
- package/dist/components/shared/ui/logo.cjs +7 -49
- package/dist/components/shared/ui/logo.d.ts.map +1 -1
- package/dist/components/shared/ui/logo.js +7 -49
- package/dist/context/consent-manager-context.d.ts +29 -9
- package/dist/context/consent-manager-context.d.ts.map +1 -1
- package/dist/context/theme-context.cjs +7 -1
- package/dist/context/theme-context.d.ts +1 -1
- package/dist/context/theme-context.d.ts.map +1 -1
- package/dist/context/theme-context.js +7 -1
- package/dist/hooks/use-consent-client.cjs +41 -0
- package/dist/hooks/use-consent-client.d.ts +26 -0
- package/dist/hooks/use-consent-client.d.ts.map +1 -0
- package/dist/hooks/use-consent-client.js +9 -0
- package/dist/hooks/use-consent-manager.cjs +5 -1
- package/dist/hooks/use-consent-manager.d.ts +7 -1
- package/dist/hooks/use-consent-manager.d.ts.map +1 -1
- package/dist/hooks/use-consent-manager.js +5 -1
- package/dist/index.cjs +39 -15
- package/dist/index.d.ts +8 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -4
- package/dist/providers/consent-manager-provider.cjs +10 -6
- package/dist/providers/consent-manager-provider.d.ts +6 -2
- package/dist/providers/consent-manager-provider.d.ts.map +1 -1
- package/dist/providers/consent-manager-provider.js +10 -6
- package/dist/types/consent-manager.d.ts +59 -87
- package/dist/types/consent-manager.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = function(exports1) {
|
|
16
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
useConsentClient: ()=>useConsentClient
|
|
28
|
+
});
|
|
29
|
+
const external_react_namespaceObject = require("react");
|
|
30
|
+
const consent_manager_context_cjs_namespaceObject = require("../context/consent-manager-context.cjs");
|
|
31
|
+
function useConsentClient() {
|
|
32
|
+
const context = (0, external_react_namespaceObject.useContext)(consent_manager_context_cjs_namespaceObject.ConsentStateContext);
|
|
33
|
+
if (void 0 === context) throw new Error('useConsentClient must be used within a ConsentManagerProvider');
|
|
34
|
+
if (null === context.client) throw new Error('No API client available. Make sure to provide clientOptions to ConsentManagerProvider.');
|
|
35
|
+
return context.client;
|
|
36
|
+
}
|
|
37
|
+
var __webpack_export_target__ = exports;
|
|
38
|
+
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
39
|
+
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
40
|
+
value: true
|
|
41
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @packageDocumentation
|
|
3
|
+
* Hook for accessing the c15t API client instance.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Hook for accessing the c15t API client instance.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* This hook provides access to the c15t API client, allowing components
|
|
10
|
+
* to interact with the consent management API for operations like:
|
|
11
|
+
* - Fetching consent purposes
|
|
12
|
+
* - Updating consent preferences on the server
|
|
13
|
+
* - Retrieving consent history
|
|
14
|
+
*
|
|
15
|
+
* The hook must be used within a ConsentManagerProvider component
|
|
16
|
+
* that has been initialized with clientOptions.
|
|
17
|
+
*
|
|
18
|
+
* @throws {Error}
|
|
19
|
+
* Throws if used outside of a ConsentManagerProvider context or if
|
|
20
|
+
* no client was initialized (missing clientOptions).
|
|
21
|
+
*
|
|
22
|
+
* @returns The c15t API client instance
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export declare function useConsentClient(): import("c15t").c15tClient;
|
|
26
|
+
//# sourceMappingURL=use-consent-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-consent-client.d.ts","sourceRoot":"","sources":["../../src/hooks/use-consent-client.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,gBAAgB,8BAgB/B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE__context_consent_manager_context_js_ee8f06d2__ from "../context/consent-manager-context.js";
|
|
3
|
+
function useConsentClient() {
|
|
4
|
+
const context = (0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(__WEBPACK_EXTERNAL_MODULE__context_consent_manager_context_js_ee8f06d2__.ConsentStateContext);
|
|
5
|
+
if (void 0 === context) throw new Error('useConsentClient must be used within a ConsentManagerProvider');
|
|
6
|
+
if (null === context.client) throw new Error('No API client available. Make sure to provide clientOptions to ConsentManagerProvider.');
|
|
7
|
+
return context.client;
|
|
8
|
+
}
|
|
9
|
+
export { useConsentClient };
|
|
@@ -31,9 +31,13 @@ const consent_manager_context_cjs_namespaceObject = require("../context/consent-
|
|
|
31
31
|
function useConsentManager() {
|
|
32
32
|
const context = (0, external_react_namespaceObject.useContext)(consent_manager_context_cjs_namespaceObject.ConsentStateContext);
|
|
33
33
|
if (void 0 === context) throw new Error('useConsentManager must be used within a ConsentManagerProvider');
|
|
34
|
+
const storeState = context.store.getState();
|
|
34
35
|
return {
|
|
35
36
|
...context.state,
|
|
36
|
-
...
|
|
37
|
+
...storeState,
|
|
38
|
+
...context.client ? {
|
|
39
|
+
client: context.client
|
|
40
|
+
} : {}
|
|
37
41
|
};
|
|
38
42
|
}
|
|
39
43
|
var __webpack_export_target__ = exports;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @packageDocumentation
|
|
3
|
+
* Hook for accessing and managing consent state.
|
|
4
|
+
*/
|
|
1
5
|
/**
|
|
2
6
|
* Hook for accessing and managing consent state.
|
|
3
7
|
*
|
|
@@ -7,6 +11,7 @@
|
|
|
7
11
|
* - Methods to update consents
|
|
8
12
|
* - Compliance settings and region detection
|
|
9
13
|
* - State persistence and retrieval
|
|
14
|
+
* - The API client (if configured)
|
|
10
15
|
*
|
|
11
16
|
* The hook must be used within a ConsentManagerProvider component.
|
|
12
17
|
*
|
|
@@ -17,6 +22,7 @@
|
|
|
17
22
|
* @public
|
|
18
23
|
*/
|
|
19
24
|
export declare function useConsentManager(): {
|
|
25
|
+
client?: import("c15t").c15tClient | undefined;
|
|
20
26
|
consents: import("c15t").ConsentState;
|
|
21
27
|
consentInfo: {
|
|
22
28
|
time: number;
|
|
@@ -48,7 +54,7 @@ export declare function useConsentManager(): {
|
|
|
48
54
|
setDetectedCountry: (country: string) => void;
|
|
49
55
|
setLocationInfo: (location: import("c15t").LocationInfo | null) => void;
|
|
50
56
|
setJurisdictionInfo: (jurisdiction: import("c15t").JurisdictionInfo | null) => void;
|
|
51
|
-
fetchConsentBannerInfo: (
|
|
57
|
+
fetchConsentBannerInfo: () => Promise<import("c15t").ConsentBannerResponse | undefined>;
|
|
52
58
|
getDisplayedConsents: () => typeof import("c15t").consentTypes;
|
|
53
59
|
hasConsented: () => boolean;
|
|
54
60
|
clearAllData: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-consent-manager.d.ts","sourceRoot":"","sources":["../../src/hooks/use-consent-manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-consent-manager.d.ts","sourceRoot":"","sources":["../../src/hooks/use-consent-manager.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;uCAmBqiE,CAAC;;;;;;;;;;;;;;;;;;;;EADtkE"}
|
|
@@ -3,9 +3,13 @@ import * as __WEBPACK_EXTERNAL_MODULE__context_consent_manager_context_js_ee8f06
|
|
|
3
3
|
function useConsentManager() {
|
|
4
4
|
const context = (0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(__WEBPACK_EXTERNAL_MODULE__context_consent_manager_context_js_ee8f06d2__.ConsentStateContext);
|
|
5
5
|
if (void 0 === context) throw new Error('useConsentManager must be used within a ConsentManagerProvider');
|
|
6
|
+
const storeState = context.store.getState();
|
|
6
7
|
return {
|
|
7
8
|
...context.state,
|
|
8
|
-
...
|
|
9
|
+
...storeState,
|
|
10
|
+
...context.client ? {
|
|
11
|
+
client: context.client
|
|
12
|
+
} : {}
|
|
9
13
|
};
|
|
10
14
|
}
|
|
11
15
|
export { useConsentManager };
|
package/dist/index.cjs
CHANGED
|
@@ -9,12 +9,24 @@ var __webpack_modules__ = {
|
|
|
9
9
|
"./components/cookie-banner/cookie-banner": function(module) {
|
|
10
10
|
module.exports = require("./components/cookie-banner/cookie-banner.cjs");
|
|
11
11
|
},
|
|
12
|
-
"
|
|
13
|
-
module.exports = require("./hooks/
|
|
12
|
+
"./hooks/use-color-scheme": function(module) {
|
|
13
|
+
module.exports = require("./hooks/use-color-scheme.cjs");
|
|
14
|
+
},
|
|
15
|
+
"./hooks/use-consent-client": function(module) {
|
|
16
|
+
module.exports = require("./hooks/use-consent-client.cjs");
|
|
17
|
+
},
|
|
18
|
+
"./hooks/use-consent-manager": function(module) {
|
|
19
|
+
module.exports = require("./hooks/use-consent-manager.cjs");
|
|
20
|
+
},
|
|
21
|
+
"./hooks/use-translations": function(module) {
|
|
22
|
+
module.exports = require("./hooks/use-translations.cjs");
|
|
14
23
|
},
|
|
15
24
|
"./providers/consent-manager-provider": function(module) {
|
|
16
25
|
module.exports = require("./providers/consent-manager-provider.cjs");
|
|
17
26
|
},
|
|
27
|
+
"./utils/translations": function(module) {
|
|
28
|
+
module.exports = require("./utils/translations.cjs");
|
|
29
|
+
},
|
|
18
30
|
c15t: function(module) {
|
|
19
31
|
module.exports = require("c15t");
|
|
20
32
|
}
|
|
@@ -63,30 +75,42 @@ var __webpack_exports__ = {};
|
|
|
63
75
|
(()=>{
|
|
64
76
|
__webpack_require__.r(__webpack_exports__);
|
|
65
77
|
__webpack_require__.d(__webpack_exports__, {
|
|
66
|
-
ConsentManagerDialog: ()=>
|
|
67
|
-
ConsentManagerProvider: ()=>
|
|
68
|
-
ConsentManagerWidget: ()=>
|
|
78
|
+
ConsentManagerDialog: ()=>_components_consent_manager_dialog_consent_manager_dialog__WEBPACK_IMPORTED_MODULE_2__.ConsentManagerDialog,
|
|
79
|
+
ConsentManagerProvider: ()=>_providers_consent_manager_provider__WEBPACK_IMPORTED_MODULE_3__.ConsentManagerProvider,
|
|
80
|
+
ConsentManagerWidget: ()=>_components_consent_manager_widget_consent_manager_widget__WEBPACK_IMPORTED_MODULE_1__.ConsentManagerWidget,
|
|
69
81
|
CookieBanner: ()=>_components_cookie_banner_cookie_banner__WEBPACK_IMPORTED_MODULE_0__.CookieBanner,
|
|
70
|
-
|
|
82
|
+
createConsentClient: ()=>c15t__WEBPACK_IMPORTED_MODULE_8__.createConsentClient,
|
|
83
|
+
useColorScheme: ()=>_hooks_use_color_scheme__WEBPACK_IMPORTED_MODULE_6__.useColorScheme,
|
|
84
|
+
useConsentClient: ()=>_hooks_use_consent_client__WEBPACK_IMPORTED_MODULE_7__.useConsentClient,
|
|
85
|
+
useConsentManager: ()=>_hooks_use_consent_manager__WEBPACK_IMPORTED_MODULE_4__.useConsentManager,
|
|
86
|
+
useTranslations: ()=>_hooks_use_translations__WEBPACK_IMPORTED_MODULE_5__.useTranslations
|
|
71
87
|
});
|
|
72
88
|
var _components_cookie_banner_cookie_banner__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./components/cookie-banner/cookie-banner");
|
|
73
|
-
var
|
|
74
|
-
var
|
|
75
|
-
var
|
|
89
|
+
var _components_consent_manager_widget_consent_manager_widget__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./components/consent-manager-widget/consent-manager-widget");
|
|
90
|
+
var _components_consent_manager_dialog_consent_manager_dialog__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./components/consent-manager-dialog/consent-manager-dialog");
|
|
91
|
+
var _providers_consent_manager_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./providers/consent-manager-provider");
|
|
92
|
+
var _hooks_use_consent_manager__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./hooks/use-consent-manager");
|
|
93
|
+
var _hooks_use_translations__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./hooks/use-translations");
|
|
94
|
+
var _hooks_use_color_scheme__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./hooks/use-color-scheme");
|
|
95
|
+
var _hooks_use_consent_client__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./hooks/use-consent-client");
|
|
96
|
+
var c15t__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("c15t");
|
|
97
|
+
var _utils_translations__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("./utils/translations");
|
|
76
98
|
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
77
|
-
for(var __WEBPACK_IMPORT_KEY__ in
|
|
99
|
+
for(var __WEBPACK_IMPORT_KEY__ in _utils_translations__WEBPACK_IMPORTED_MODULE_9__)if ([
|
|
100
|
+
"useColorScheme",
|
|
101
|
+
"useTranslations",
|
|
102
|
+
"ConsentManagerWidget",
|
|
103
|
+
"createConsentClient",
|
|
78
104
|
"CookieBanner",
|
|
79
|
-
"
|
|
105
|
+
"useConsentManager",
|
|
80
106
|
"default",
|
|
81
107
|
"ConsentManagerProvider",
|
|
82
|
-
"
|
|
108
|
+
"useConsentClient",
|
|
83
109
|
"ConsentManagerDialog"
|
|
84
110
|
].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
85
|
-
return
|
|
111
|
+
return _utils_translations__WEBPACK_IMPORTED_MODULE_9__[key];
|
|
86
112
|
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
87
113
|
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
88
|
-
var _providers_consent_manager_provider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./providers/consent-manager-provider");
|
|
89
|
-
var c15t__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("c15t");
|
|
90
114
|
})();
|
|
91
115
|
var __webpack_export_target__ = exports;
|
|
92
116
|
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
export { CookieBanner } from './components/cookie-banner/cookie-banner';
|
|
2
2
|
export type { CookieBannerProps } from './components/cookie-banner/cookie-banner';
|
|
3
|
-
export type { CookieBannerTheme } from './components/cookie-banner/theme';
|
|
4
|
-
export { ConsentManagerDialog } from './components/consent-manager-dialog/consent-manager-dialog';
|
|
5
|
-
export type { ConsentManagerDialogProps } from './components/consent-manager-dialog/consent-manager-dialog';
|
|
6
|
-
export type { ConsentManagerDialogTheme } from './components/consent-manager-dialog/theme';
|
|
7
3
|
export { ConsentManagerWidget } from './components/consent-manager-widget/consent-manager-widget';
|
|
8
4
|
export type { ConsentManagerWidgetProps } from './components/consent-manager-widget/types';
|
|
9
|
-
export
|
|
10
|
-
export
|
|
5
|
+
export { ConsentManagerDialog } from './components/consent-manager-dialog/consent-manager-dialog';
|
|
6
|
+
export type { ConsentManagerDialogProps } from './components/consent-manager-dialog/consent-manager-dialog';
|
|
11
7
|
export { ConsentManagerProvider } from './providers/consent-manager-provider';
|
|
12
|
-
export
|
|
8
|
+
export { useConsentManager } from './hooks/use-consent-manager';
|
|
9
|
+
export { useTranslations } from './hooks/use-translations';
|
|
10
|
+
export { useColorScheme } from './hooks/use-color-scheme';
|
|
11
|
+
export { useConsentClient } from './hooks/use-consent-client';
|
|
12
|
+
export { createConsentClient, type c15tClient, type c15tClientOptions, } from 'c15t';
|
|
13
13
|
export type { ConsentManagerProviderProps } from './types/consent-manager';
|
|
14
|
-
export
|
|
15
|
-
export type { CallbackFunction, Callbacks, AllConsentNames, ConsentType, ConsentState, ComplianceRegion, ComplianceSettings, PrivacySettings, HasConsentedProps, } from 'c15t';
|
|
14
|
+
export * from './utils/translations';
|
|
16
15
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,YAAY,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAClF,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,YAAY,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,4DAA4D,CAAC;AAClG,YAAY,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAC3F,OAAO,EAAE,oBAAoB,EAAE,MAAM,4DAA4D,CAAC;AAClG,YAAY,EAAE,yBAAyB,EAAE,MAAM,4DAA4D,CAAC;AAC5G,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAG9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAG9D,OAAO,EACN,mBAAmB,EACnB,KAAK,UAAU,EACf,KAAK,iBAAiB,GACtB,MAAM,MAAM,CAAC;AAGd,YAAY,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAG3E,cAAc,sBAAsB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
import * as __WEBPACK_EXTERNAL_MODULE__components_cookie_banner_cookie_banner_js_aba0c776__ from "./components/cookie-banner/cookie-banner.js";
|
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE__components_consent_manager_dialog_consent_manager_dialog_js_d74113dd__ from "./components/consent-manager-dialog/consent-manager-dialog.js";
|
|
3
2
|
import * as __WEBPACK_EXTERNAL_MODULE__components_consent_manager_widget_consent_manager_widget_js_080fb908__ from "./components/consent-manager-widget/consent-manager-widget.js";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__components_consent_manager_dialog_consent_manager_dialog_js_d74113dd__ from "./components/consent-manager-dialog/consent-manager-dialog.js";
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE__providers_consent_manager_provider_js_7459f585__ from "./providers/consent-manager-provider.js";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__hooks_use_consent_manager_js_2b895421__ from "./hooks/use-consent-manager.js";
|
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE__hooks_use_translations_js_78932b91__ from "./hooks/use-translations.js";
|
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE__hooks_use_color_scheme_js_41dc75de__ from "./hooks/use-color-scheme.js";
|
|
8
|
+
import * as __WEBPACK_EXTERNAL_MODULE__hooks_use_consent_client_js_2afe8c6b__ from "./hooks/use-consent-client.js";
|
|
5
9
|
import * as __WEBPACK_EXTERNAL_MODULE_c15t__ from "c15t";
|
|
6
|
-
export * from "./
|
|
10
|
+
export * from "./utils/translations.js";
|
|
7
11
|
var __webpack_exports__ConsentManagerDialog = __WEBPACK_EXTERNAL_MODULE__components_consent_manager_dialog_consent_manager_dialog_js_d74113dd__.ConsentManagerDialog;
|
|
8
12
|
var __webpack_exports__ConsentManagerProvider = __WEBPACK_EXTERNAL_MODULE__providers_consent_manager_provider_js_7459f585__.ConsentManagerProvider;
|
|
9
13
|
var __webpack_exports__ConsentManagerWidget = __WEBPACK_EXTERNAL_MODULE__components_consent_manager_widget_consent_manager_widget_js_080fb908__.ConsentManagerWidget;
|
|
10
14
|
var __webpack_exports__CookieBanner = __WEBPACK_EXTERNAL_MODULE__components_cookie_banner_cookie_banner_js_aba0c776__.CookieBanner;
|
|
11
|
-
var
|
|
12
|
-
|
|
15
|
+
var __webpack_exports__createConsentClient = __WEBPACK_EXTERNAL_MODULE_c15t__.createConsentClient;
|
|
16
|
+
var __webpack_exports__useColorScheme = __WEBPACK_EXTERNAL_MODULE__hooks_use_color_scheme_js_41dc75de__.useColorScheme;
|
|
17
|
+
var __webpack_exports__useConsentClient = __WEBPACK_EXTERNAL_MODULE__hooks_use_consent_client_js_2afe8c6b__.useConsentClient;
|
|
18
|
+
var __webpack_exports__useConsentManager = __WEBPACK_EXTERNAL_MODULE__hooks_use_consent_manager_js_2b895421__.useConsentManager;
|
|
19
|
+
var __webpack_exports__useTranslations = __WEBPACK_EXTERNAL_MODULE__hooks_use_translations_js_78932b91__.useTranslations;
|
|
20
|
+
export { __webpack_exports__ConsentManagerDialog as ConsentManagerDialog, __webpack_exports__ConsentManagerProvider as ConsentManagerProvider, __webpack_exports__ConsentManagerWidget as ConsentManagerWidget, __webpack_exports__CookieBanner as CookieBanner, __webpack_exports__createConsentClient as createConsentClient, __webpack_exports__useColorScheme as useColorScheme, __webpack_exports__useConsentClient as useConsentClient, __webpack_exports__useConsentManager as useConsentManager, __webpack_exports__useTranslations as useTranslations };
|
|
@@ -34,7 +34,7 @@ const consent_manager_context_cjs_namespaceObject = require("../context/consent-
|
|
|
34
34
|
const translations_cjs_namespaceObject = require("../utils/translations.cjs");
|
|
35
35
|
const theme_context_cjs_namespaceObject = require("../context/theme-context.cjs");
|
|
36
36
|
const use_color_scheme_cjs_namespaceObject = require("../hooks/use-color-scheme.cjs");
|
|
37
|
-
function ConsentManagerProvider({ children, initialGdprTypes, initialComplianceSettings, namespace = 'c15tStore', noStyle = false, translationConfig, trackingBlockerConfig, theme, disableAnimation = false, scrollLock = false, trapFocus = true, colorScheme = 'system' }) {
|
|
37
|
+
function ConsentManagerProvider({ children, initialGdprTypes, initialComplianceSettings, namespace = 'c15tStore', noStyle = false, translationConfig, trackingBlockerConfig, client, theme, disableAnimation = false, scrollLock = false, trapFocus = true, colorScheme = 'system' }) {
|
|
38
38
|
const preparedTranslationConfig = (0, external_react_namespaceObject.useMemo)(()=>{
|
|
39
39
|
const mergedConfig = (0, translations_cjs_namespaceObject.mergeTranslationConfigs)(external_c15t_namespaceObject.defaultTranslationConfig, translationConfig);
|
|
40
40
|
const defaultLanguage = (0, translations_cjs_namespaceObject.detectBrowserLanguage)(mergedConfig.translations, mergedConfig.defaultLanguage, mergedConfig.disableAutoLanguageSwitch);
|
|
@@ -46,15 +46,17 @@ function ConsentManagerProvider({ children, initialGdprTypes, initialComplianceS
|
|
|
46
46
|
translationConfig
|
|
47
47
|
]);
|
|
48
48
|
const store = (0, external_react_namespaceObject.useMemo)(()=>{
|
|
49
|
-
const
|
|
49
|
+
const storeConfig = {
|
|
50
50
|
trackingBlockerConfig
|
|
51
|
-
}
|
|
51
|
+
};
|
|
52
|
+
const store = (0, external_c15t_namespaceObject.createConsentManagerStore)(client, namespace, storeConfig);
|
|
52
53
|
store.getState().setTranslationConfig(preparedTranslationConfig);
|
|
53
54
|
return store;
|
|
54
55
|
}, [
|
|
55
56
|
namespace,
|
|
56
57
|
preparedTranslationConfig,
|
|
57
|
-
trackingBlockerConfig
|
|
58
|
+
trackingBlockerConfig,
|
|
59
|
+
client
|
|
58
60
|
]);
|
|
59
61
|
const [state, setState] = (0, external_react_namespaceObject.useState)(store.getState());
|
|
60
62
|
(0, external_react_namespaceObject.useEffect)(()=>{
|
|
@@ -76,10 +78,12 @@ function ConsentManagerProvider({ children, initialGdprTypes, initialComplianceS
|
|
|
76
78
|
]);
|
|
77
79
|
const contextValue = (0, external_react_namespaceObject.useMemo)(()=>({
|
|
78
80
|
state,
|
|
79
|
-
store
|
|
81
|
+
store,
|
|
82
|
+
client
|
|
80
83
|
}), [
|
|
81
84
|
state,
|
|
82
|
-
store
|
|
85
|
+
store,
|
|
86
|
+
client
|
|
83
87
|
]);
|
|
84
88
|
const themeContextValue = (0, external_react_namespaceObject.useMemo)(()=>({
|
|
85
89
|
theme,
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import type { ConsentManagerProviderProps } from '../types/consent-manager';
|
|
2
|
+
/**
|
|
3
|
+
* @packageDocumentation
|
|
4
|
+
* Provider component for consent management functionality.
|
|
5
|
+
*/
|
|
2
6
|
/**
|
|
3
7
|
* Provider component for consent management functionality.
|
|
4
8
|
*
|
|
5
9
|
* @remarks
|
|
6
10
|
* This component initializes and manages the consent management system, including:
|
|
7
11
|
* - Setting up the consent store with initial configuration
|
|
12
|
+
* - Using the provided API client instance
|
|
8
13
|
* - Detecting user's region for compliance
|
|
9
14
|
* - Managing consent state updates
|
|
10
15
|
* - Providing access to consent management throughout the app
|
|
11
|
-
* - Injecting default styles (unless noStyle is true)
|
|
12
16
|
*
|
|
13
17
|
* @public
|
|
14
18
|
*/
|
|
15
|
-
export declare function ConsentManagerProvider({ children, initialGdprTypes, initialComplianceSettings, namespace, noStyle, translationConfig, trackingBlockerConfig, theme, disableAnimation, scrollLock, trapFocus, colorScheme, }: ConsentManagerProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function ConsentManagerProvider({ children, initialGdprTypes, initialComplianceSettings, namespace, noStyle, translationConfig, trackingBlockerConfig, client, theme, disableAnimation, scrollLock, trapFocus, colorScheme, }: ConsentManagerProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
16
20
|
//# sourceMappingURL=consent-manager-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consent-manager-provider.d.ts","sourceRoot":"","sources":["../../src/providers/consent-manager-provider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"consent-manager-provider.d.ts","sourceRoot":"","sources":["../../src/providers/consent-manager-provider.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAQ5E;;;GAGG;AAEH;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CAAC,EACtC,QAAQ,EACR,gBAAgB,EAChB,yBAAyB,EACzB,SAAuB,EACvB,OAAe,EACf,iBAAiB,EACjB,qBAAqB,EACrB,MAAM,EACN,KAAK,EACL,gBAAwB,EACxB,UAAkB,EAClB,SAAgB,EAChB,WAAsB,GACtB,EAAE,2BAA2B,2CAmG7B"}
|
|
@@ -6,7 +6,7 @@ import * as __WEBPACK_EXTERNAL_MODULE__context_consent_manager_context_js_ee8f06
|
|
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE__utils_translations_js_c2629c1f__ from "../utils/translations.js";
|
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE__context_theme_context_js_fbb05439__ from "../context/theme-context.js";
|
|
8
8
|
import * as __WEBPACK_EXTERNAL_MODULE__hooks_use_color_scheme_js_939e374b__ from "../hooks/use-color-scheme.js";
|
|
9
|
-
function ConsentManagerProvider({ children, initialGdprTypes, initialComplianceSettings, namespace = 'c15tStore', noStyle = false, translationConfig, trackingBlockerConfig, theme, disableAnimation = false, scrollLock = false, trapFocus = true, colorScheme = 'system' }) {
|
|
9
|
+
function ConsentManagerProvider({ children, initialGdprTypes, initialComplianceSettings, namespace = 'c15tStore', noStyle = false, translationConfig, trackingBlockerConfig, client, theme, disableAnimation = false, scrollLock = false, trapFocus = true, colorScheme = 'system' }) {
|
|
10
10
|
const preparedTranslationConfig = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
|
|
11
11
|
const mergedConfig = (0, __WEBPACK_EXTERNAL_MODULE__utils_translations_js_c2629c1f__.mergeTranslationConfigs)(__WEBPACK_EXTERNAL_MODULE_c15t__.defaultTranslationConfig, translationConfig);
|
|
12
12
|
const defaultLanguage = (0, __WEBPACK_EXTERNAL_MODULE__utils_translations_js_c2629c1f__.detectBrowserLanguage)(mergedConfig.translations, mergedConfig.defaultLanguage, mergedConfig.disableAutoLanguageSwitch);
|
|
@@ -18,15 +18,17 @@ function ConsentManagerProvider({ children, initialGdprTypes, initialComplianceS
|
|
|
18
18
|
translationConfig
|
|
19
19
|
]);
|
|
20
20
|
const store = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
|
|
21
|
-
const
|
|
21
|
+
const storeConfig = {
|
|
22
22
|
trackingBlockerConfig
|
|
23
|
-
}
|
|
23
|
+
};
|
|
24
|
+
const store = (0, __WEBPACK_EXTERNAL_MODULE_c15t__.createConsentManagerStore)(client, namespace, storeConfig);
|
|
24
25
|
store.getState().setTranslationConfig(preparedTranslationConfig);
|
|
25
26
|
return store;
|
|
26
27
|
}, [
|
|
27
28
|
namespace,
|
|
28
29
|
preparedTranslationConfig,
|
|
29
|
-
trackingBlockerConfig
|
|
30
|
+
trackingBlockerConfig,
|
|
31
|
+
client
|
|
30
32
|
]);
|
|
31
33
|
const [state, setState] = (0, __WEBPACK_EXTERNAL_MODULE_react__.useState)(store.getState());
|
|
32
34
|
(0, __WEBPACK_EXTERNAL_MODULE_react__.useEffect)(()=>{
|
|
@@ -48,10 +50,12 @@ function ConsentManagerProvider({ children, initialGdprTypes, initialComplianceS
|
|
|
48
50
|
]);
|
|
49
51
|
const contextValue = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
|
|
50
52
|
state,
|
|
51
|
-
store
|
|
53
|
+
store,
|
|
54
|
+
client
|
|
52
55
|
}), [
|
|
53
56
|
state,
|
|
54
|
-
store
|
|
57
|
+
store,
|
|
58
|
+
client
|
|
55
59
|
]);
|
|
56
60
|
const themeContextValue = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>({
|
|
57
61
|
theme,
|
|
@@ -1,127 +1,99 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @packageDocumentation
|
|
3
|
+
* Type definitions for the consent manager components.
|
|
4
|
+
*/
|
|
5
|
+
import type { AllConsentNames, ComplianceSettings, TrackingBlockerConfig, TranslationConfig, c15tClient } from 'c15t';
|
|
2
6
|
import type { ReactNode } from 'react';
|
|
3
|
-
import type { ConsentManagerDialogTheme } from '../components/consent-manager-dialog/theme';
|
|
4
|
-
import type { CookieBannerTheme } from '../components/cookie-banner/theme';
|
|
5
|
-
import type { ColorScheme } from '../hooks/use-color-scheme';
|
|
6
7
|
/**
|
|
7
|
-
* Configuration options for the ConsentManagerProvider
|
|
8
|
-
*
|
|
9
|
-
* @remarks
|
|
10
|
-
* These props allow you to configure the initial state and behavior of the consent manager,
|
|
11
|
-
* including GDPR types, compliance settings, and namespace configuration.
|
|
8
|
+
* Configuration options for the ConsentManagerProvider.
|
|
12
9
|
*
|
|
13
10
|
* @public
|
|
14
11
|
*/
|
|
15
|
-
export interface ConsentManagerProviderProps
|
|
12
|
+
export interface ConsentManagerProviderProps {
|
|
16
13
|
/**
|
|
17
|
-
*
|
|
18
|
-
* React elements to be rendered within the consent manager context.
|
|
14
|
+
* React children to render within the provider.
|
|
19
15
|
*/
|
|
20
16
|
children: ReactNode;
|
|
21
17
|
/**
|
|
22
|
-
*
|
|
23
|
-
* Array of consent types to be pre-configured for GDPR compliance.
|
|
24
|
-
* These types define what kinds of cookies and tracking are initially allowed.
|
|
18
|
+
* Initial GDPR consent types to activate.
|
|
25
19
|
*/
|
|
26
20
|
initialGdprTypes?: AllConsentNames[];
|
|
27
21
|
/**
|
|
28
|
-
*
|
|
29
|
-
* Region-specific compliance settings that define how the consent manager
|
|
30
|
-
* should behave in different geographical regions.
|
|
22
|
+
* Initial compliance settings for different regions.
|
|
31
23
|
*/
|
|
32
|
-
initialComplianceSettings?: Record<
|
|
24
|
+
initialComplianceSettings?: Record<string, Partial<ComplianceSettings>>;
|
|
33
25
|
/**
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* @default false
|
|
26
|
+
* Custom namespace for the store instance.
|
|
27
|
+
* @default 'c15tStore'
|
|
37
28
|
*/
|
|
38
|
-
|
|
29
|
+
namespace?: string;
|
|
39
30
|
/**
|
|
40
|
-
*
|
|
41
|
-
* Whether to disable animations
|
|
31
|
+
* Whether to disable default styles.
|
|
42
32
|
* @default false
|
|
43
33
|
*/
|
|
44
|
-
|
|
34
|
+
noStyle?: boolean;
|
|
45
35
|
/**
|
|
46
|
-
*
|
|
47
|
-
* Theme configuration for the consent manager
|
|
48
|
-
*/
|
|
49
|
-
theme?: CookieBannerTheme & ConsentManagerDialogTheme;
|
|
50
|
-
/**
|
|
51
|
-
* @remarks
|
|
52
|
-
* The configuration allows you to:
|
|
53
|
-
* - Define translations for multiple languages through the translations object
|
|
54
|
-
* - Set a default language via defaultLanguage prop
|
|
55
|
-
* - Control automatic language switching based on browser settings with disableAutoLanguageSwitch
|
|
56
|
-
* - Override specific translation keys while keeping defaults for others
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* ```tsx
|
|
60
|
-
* <ConsentManagerProvider
|
|
61
|
-
* translationConfig={{
|
|
62
|
-
* translations: {
|
|
63
|
-
* de: {
|
|
64
|
-
* cookieBanner: {
|
|
65
|
-
* title: 'Cookie-Einstellungen',
|
|
66
|
-
* description: 'Wir verwenden Cookies...'
|
|
67
|
-
* }
|
|
68
|
-
* }
|
|
69
|
-
* },
|
|
70
|
-
* defaultLanguage: 'en',
|
|
71
|
-
* disableAutoLanguageSwitch: false
|
|
72
|
-
* }}
|
|
73
|
-
* >
|
|
74
|
-
* {children}
|
|
75
|
-
* </ConsentManagerProvider>
|
|
76
|
-
* ```
|
|
36
|
+
* Custom translation configuration.
|
|
77
37
|
*/
|
|
78
38
|
translationConfig?: Partial<TranslationConfig>;
|
|
79
39
|
/**
|
|
80
|
-
*
|
|
81
|
-
* The configuration allows you to:
|
|
82
|
-
* - Define translations for multiple languages through the translations object
|
|
83
|
-
* - Set a default language via defaultLanguage prop
|
|
84
|
-
* - Control automatic language switching based on browser settings with disableAutoLanguageSwitch
|
|
85
|
-
* - Override specific translation keys while keeping defaults for others
|
|
86
|
-
*
|
|
87
|
-
* @example
|
|
88
|
-
* ```tsx
|
|
89
|
-
* <ConsentManagerProvider
|
|
90
|
-
* trackingBlockerConfig={{}}
|
|
91
|
-
* />
|
|
40
|
+
* Configuration for the tracking blocker.
|
|
92
41
|
*/
|
|
93
42
|
trackingBlockerConfig?: TrackingBlockerConfig;
|
|
94
43
|
/**
|
|
95
|
-
*
|
|
96
|
-
*
|
|
44
|
+
* An existing c15tClient instance to use.
|
|
45
|
+
* This is required for the provider to work properly.
|
|
46
|
+
*/
|
|
47
|
+
client: c15tClient;
|
|
48
|
+
/**
|
|
49
|
+
* Visual theme to apply.
|
|
50
|
+
*/
|
|
51
|
+
theme?: 'light' | 'dark';
|
|
52
|
+
/**
|
|
53
|
+
* Whether to disable animations.
|
|
54
|
+
* @default false
|
|
55
|
+
*/
|
|
56
|
+
disableAnimation?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Whether to lock scroll when dialogs are open.
|
|
97
59
|
* @default false
|
|
98
60
|
*/
|
|
99
61
|
scrollLock?: boolean;
|
|
100
62
|
/**
|
|
101
|
-
* Whether to trap focus
|
|
63
|
+
* Whether to trap focus within dialogs.
|
|
102
64
|
* @default true
|
|
103
65
|
*/
|
|
104
66
|
trapFocus?: boolean;
|
|
105
67
|
/**
|
|
106
|
-
*
|
|
107
|
-
* Color scheme to use for the consent manager, defaults to 'system'
|
|
68
|
+
* Color scheme preference.
|
|
108
69
|
* @default 'system'
|
|
109
70
|
*/
|
|
110
|
-
colorScheme?:
|
|
71
|
+
colorScheme?: 'light' | 'dark' | 'system';
|
|
111
72
|
}
|
|
112
73
|
/**
|
|
113
|
-
*
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
74
|
+
* Props for components that need to check consent status.
|
|
75
|
+
*/
|
|
76
|
+
export interface HasConsentedProps {
|
|
77
|
+
/**
|
|
78
|
+
* The consent type to check for.
|
|
79
|
+
*/
|
|
80
|
+
consentType?: AllConsentNames;
|
|
81
|
+
/**
|
|
82
|
+
* Content to render when consent is granted.
|
|
83
|
+
*/
|
|
84
|
+
children: ReactNode;
|
|
85
|
+
/**
|
|
86
|
+
* Optional content to render when consent is not granted.
|
|
87
|
+
*/
|
|
88
|
+
fallback?: ReactNode;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Props for components that need to access a specific store namespace.
|
|
120
92
|
*/
|
|
121
|
-
export interface
|
|
122
|
-
/**
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
93
|
+
export interface NamespaceProps {
|
|
94
|
+
/**
|
|
95
|
+
* Namespace for the consent store instance.
|
|
96
|
+
*/
|
|
97
|
+
namespace?: string;
|
|
126
98
|
}
|
|
127
99
|
//# sourceMappingURL=consent-manager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consent-manager.d.ts","sourceRoot":"","sources":["../../src/types/consent-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,eAAe,EACf,
|
|
1
|
+
{"version":3,"file":"consent-manager.d.ts","sourceRoot":"","sources":["../../src/types/consent-manager.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACX,eAAe,EACf,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EACjB,UAAU,EACV,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC3C;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAC;IAErC;;OAEG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAExE;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAE/C;;OAEG;IACH,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAE9C;;;OAGG;IACH,MAAM,EAAE,UAAU,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAEzB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;CAC1C;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAE9B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c15t/react",
|
|
3
|
-
"version": "0.0.1-rc.
|
|
3
|
+
"version": "0.0.1-rc.12",
|
|
4
4
|
"license": "GPL-3.0-only",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"motion": "^12.4.10",
|
|
66
66
|
"tailwind-variants": "^0.3.1",
|
|
67
67
|
"zustand": "^5.0.3",
|
|
68
|
-
"c15t": "0.0.1-rc.
|
|
68
|
+
"c15t": "0.0.1-rc.12"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@c15t/typescript-config": "0.0.1-beta.1"
|