@commercetools-frontend/cookie-consent 2.0.2 → 2.0.3

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.
@@ -1 +1 @@
1
- export { CookieConsentBanner } from './cookie-consent-banner';
1
+ export { CookieConsentBanner } from "./cookie-consent-banner.js";
@@ -1 +1 @@
1
- export { default as CookieConsentModal } from './cookie-consent-modal';
1
+ export { default as CookieConsentModal } from "./cookie-consent-modal.js";
@@ -1,4 +1,4 @@
1
- export { useCookieConsent } from './use-cookie-consent';
2
- export { useSkipCookieConsent } from './use-skip-cookie-consent';
3
- export { CookieConsentModal } from './cookie-consent-modal';
4
- export { CookieConsentBanner } from './cookie-consent-banner';
1
+ export { useCookieConsent } from "./use-cookie-consent/index.js";
2
+ export { useSkipCookieConsent } from "./use-skip-cookie-consent/index.js";
3
+ export { CookieConsentModal } from "./cookie-consent-modal/index.js";
4
+ export { CookieConsentBanner } from "./cookie-consent-banner/index.js";
@@ -1 +1 @@
1
- export { useCookieConsent } from './use-cookie-consent';
1
+ export { useCookieConsent } from "./use-cookie-consent.js";
@@ -1,4 +1,4 @@
1
- import { setConsentCookie, COOKIE_CONSENT_GROUPS } from '../../core';
1
+ import { setConsentCookie, COOKIE_CONSENT_GROUPS } from "../../core/index.js";
2
2
  type TConsentOptions = {
3
3
  skipConsent?: boolean;
4
4
  cookieName?: string;
@@ -1 +1 @@
1
- export { useSkipCookieConsent } from './use-skip-cookie-consent';
1
+ export { useSkipCookieConsent } from "./use-skip-cookie-consent.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/cookie-consent",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "A package integrating with OneTrust cookie consent",
5
5
  "license": "MIT",
6
6
  "main": "dist/commercetools-frontend-cookie-consent.cjs.js",
@@ -17,20 +17,20 @@
17
17
  "@babel/core": "^7.21.0",
18
18
  "@babel/runtime": "^7.21.0",
19
19
  "@babel/runtime-corejs3": "^7.21.0",
20
- "@commercetools-frontend/application-components": "^22.3.0",
21
- "@commercetools-uikit/collapsible-panel": "^16.0.0",
22
- "@commercetools-uikit/design-system": "^16.0.0",
23
- "@commercetools-uikit/grid": "^16.0.0",
24
- "@commercetools-uikit/link": "^16.0.0",
25
- "@commercetools-uikit/primary-button": "^16.0.0",
26
- "@commercetools-uikit/spacings": "^16.0.0",
27
- "@commercetools-uikit/text": "^16.0.0",
28
- "@commercetools-uikit/toggle-input": "^16.0.0"
20
+ "@commercetools-frontend/application-components": "^22.4.0",
21
+ "@commercetools-uikit/collapsible-panel": "^16.5.0",
22
+ "@commercetools-uikit/design-system": "^16.5.0",
23
+ "@commercetools-uikit/grid": "^16.5.0",
24
+ "@commercetools-uikit/link": "^16.5.0",
25
+ "@commercetools-uikit/primary-button": "^16.5.0",
26
+ "@commercetools-uikit/spacings": "^16.5.0",
27
+ "@commercetools-uikit/text": "^16.5.0",
28
+ "@commercetools-uikit/toggle-input": "^16.5.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@commercetools-frontend/application-shell": "22.3.0",
32
- "@commercetools-frontend/application-shell-connectors": "22.3.0",
33
- "@types/node": "18.16.18",
31
+ "@commercetools-frontend/application-shell": "22.4.0",
32
+ "@commercetools-frontend/application-shell-connectors": "22.4.0",
33
+ "@types/node": "20.4.4",
34
34
  "@types/react": "17.0.62",
35
35
  "@emotion/react": "11.11.1",
36
36
  "react": "17.0.2",
@@ -1,3 +0,0 @@
1
- export declare const COOKIE_CONSENT_LINKS: {
2
- PRIVACY_POLICY: string;
3
- };
@@ -1,23 +0,0 @@
1
- declare const _default: {
2
- bannerMessage: {
3
- id: string;
4
- description: string;
5
- defaultMessage: string;
6
- };
7
- privacyPolicyLink: {
8
- id: string;
9
- description: string;
10
- defaultMessage: string;
11
- };
12
- bannerCookiesModalLink: {
13
- id: string;
14
- description: string;
15
- defaultMessage: string;
16
- };
17
- buttonLabel: {
18
- id: string;
19
- description: string;
20
- defaultMessage: string;
21
- };
22
- };
23
- export default _default;
@@ -1,19 +0,0 @@
1
- import { IntlShape } from 'react-intl';
2
- type Detail = {
3
- label: string;
4
- value: string;
5
- };
6
- type Link = Detail & {
7
- to: string;
8
- };
9
- export type CookieDetails = {
10
- name: Link;
11
- host: Detail;
12
- duration: Detail;
13
- type: Detail;
14
- category: Detail;
15
- description: Detail;
16
- };
17
- export declare const createEssentialCookieDetails: (intl: IntlShape) => Array<CookieDetails>;
18
- export declare const createPerformanceCookieDetails: (intl: IntlShape) => Array<CookieDetails>;
19
- export {};
@@ -1,173 +0,0 @@
1
- export declare const modalMessages: {
2
- title: {
3
- id: string;
4
- description: string;
5
- defaultMessage: string;
6
- };
7
- primaryButtonLabel: {
8
- id: string;
9
- description: string;
10
- defaultMessage: string;
11
- };
12
- secondaryButtonLabel: {
13
- id: string;
14
- description: string;
15
- defaultMessage: string;
16
- };
17
- mainDescription: {
18
- id: string;
19
- description: string;
20
- defaultMessage: string;
21
- };
22
- privacyPolicyLink: {
23
- id: string;
24
- description: string;
25
- defaultMessage: string;
26
- };
27
- necessaryCookiesHeader: {
28
- id: string;
29
- description: string;
30
- defaultMessage: string;
31
- };
32
- necessaryCookiesDescription: {
33
- id: string;
34
- description: string;
35
- defaultMessage: string;
36
- };
37
- necessaryCookiesHeaderState: {
38
- id: string;
39
- description: string;
40
- defaultMessage: string;
41
- };
42
- performanceCookiesHeader: {
43
- id: string;
44
- description: string;
45
- defaultMessage: string;
46
- };
47
- performanceCookiesDescription: {
48
- id: string;
49
- description: string;
50
- defaultMessage: string;
51
- };
52
- cookieInformationLink: {
53
- id: string;
54
- description: string;
55
- defaultMessage: string;
56
- };
57
- navigateBackLink: {
58
- id: string;
59
- description: string;
60
- defaultMessage: string;
61
- };
62
- };
63
- export declare const cookieDetailLabels: {
64
- nameLabel: {
65
- id: string;
66
- description: string;
67
- defaultMessage: string;
68
- };
69
- hostLabel: {
70
- id: string;
71
- description: string;
72
- defaultMessage: string;
73
- };
74
- durationLabel: {
75
- id: string;
76
- description: string;
77
- defaultMessage: string;
78
- };
79
- typeLabel: {
80
- id: string;
81
- description: string;
82
- defaultMessage: string;
83
- };
84
- categoryLabel: {
85
- id: string;
86
- description: string;
87
- defaultMessage: string;
88
- };
89
- descriptionLabel: {
90
- id: string;
91
- description: string;
92
- defaultMessage: string;
93
- };
94
- };
95
- export declare const cookieDetailValues: {
96
- duration9Months: {
97
- id: string;
98
- description: string;
99
- defaultMessage: string;
100
- };
101
- duration1Week: {
102
- id: string;
103
- description: string;
104
- defaultMessage: string;
105
- };
106
- durationSession: {
107
- id: string;
108
- description: string;
109
- defaultMessage: string;
110
- };
111
- duration1Year: {
112
- id: string;
113
- description: string;
114
- defaultMessage: string;
115
- };
116
- duration1Day: {
117
- id: string;
118
- description: string;
119
- defaultMessage: string;
120
- };
121
- typeFirstParty: {
122
- id: string;
123
- description: string;
124
- defaultMessage: string;
125
- };
126
- categoryStrictlyNecessary: {
127
- id: string;
128
- description: string;
129
- defaultMessage: string;
130
- };
131
- categoryPerformance: {
132
- id: string;
133
- description: string;
134
- defaultMessage: string;
135
- };
136
- };
137
- export declare const cookieDetailDescriptions: {
138
- essentialCookieDescription1: {
139
- id: string;
140
- description: string;
141
- defaultMessage: string;
142
- };
143
- essentialCookieDescription2: {
144
- id: string;
145
- description: string;
146
- defaultMessage: string;
147
- };
148
- essentialCookieDescription3: {
149
- id: string;
150
- description: string;
151
- defaultMessage: string;
152
- };
153
- performanceCookieDescription1: {
154
- id: string;
155
- description: string;
156
- defaultMessage: string;
157
- };
158
- performanceCookieDescription2: {
159
- id: string;
160
- description: string;
161
- defaultMessage: string;
162
- };
163
- performanceCookieDescription3: {
164
- id: string;
165
- description: string;
166
- defaultMessage: string;
167
- };
168
- performanceCookieDescription4: {
169
- id: string;
170
- description: string;
171
- defaultMessage: string;
172
- };
173
- };