@commercetools-frontend/cookie-consent 2.4.4 → 2.4.6

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.
@@ -26,5 +26,10 @@ declare function getParsedConsentCookieGroups(cookieValue?: string | undefined,
26
26
  };
27
27
  declare function generateConsentCookie(consentGroups: Partial<TConsentGroups>): string;
28
28
  declare function setConsentCookie(consentGroups: Partial<TConsentGroups>, domain?: string): void;
29
+ /**
30
+ * Checks and potentially revokes the consent cookie based on its date stamp.
31
+ *
32
+ * If the cookie's date stamp is older than the revocation date, it deletes the cookie.
33
+ */
29
34
  declare function unsetConsentCookie(revocationDate: Date): void;
30
35
  export { type TConsentGroups, CONSENT_COOKIE_NAME, getRawConsentCookie, getParsedConsentCookieGroups, setConsentCookie, unsetConsentCookie, generateConsentCookie, COOKIE_CONSENT_GROUPS, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/cookie-consent",
3
- "version": "2.4.4",
3
+ "version": "2.4.6",
4
4
  "description": "A package integrating with OneTrust cookie consent",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,25 +22,25 @@
22
22
  "@babel/core": "^7.22.11",
23
23
  "@babel/runtime": "^7.21.0",
24
24
  "@babel/runtime-corejs3": "^7.21.0",
25
- "@commercetools-frontend/application-components": "npm:@commercetools-frontend/application-components@^22.30.3",
26
- "@commercetools-uikit/collapsible-panel": "npm:@commercetools-uikit/collapsible-panel@^19.10.0",
27
- "@commercetools-uikit/design-system": "npm:@commercetools-uikit/design-system@^19.10.0",
28
- "@commercetools-uikit/grid": "npm:@commercetools-uikit/grid@^19.10.0",
29
- "@commercetools-uikit/link": "npm:@commercetools-uikit/link@^19.10.0",
30
- "@commercetools-uikit/primary-button": "npm:@commercetools-uikit/primary-button@^19.10.0",
31
- "@commercetools-uikit/spacings": "npm:@commercetools-uikit/spacings@^19.10.0",
32
- "@commercetools-uikit/text": "npm:@commercetools-uikit/text@^19.10.0",
33
- "@commercetools-uikit/toggle-input": "npm:@commercetools-uikit/toggle-input@^19.10.0"
25
+ "@commercetools-frontend/application-components": "npm:@commercetools-frontend/application-components@^22.35.0",
26
+ "@commercetools-uikit/collapsible-panel": "npm:@commercetools-uikit/collapsible-panel@^19.13.0",
27
+ "@commercetools-uikit/design-system": "npm:@commercetools-uikit/design-system@^19.13.0",
28
+ "@commercetools-uikit/grid": "npm:@commercetools-uikit/grid@^19.13.0",
29
+ "@commercetools-uikit/link": "npm:@commercetools-uikit/link@^19.13.0",
30
+ "@commercetools-uikit/primary-button": "npm:@commercetools-uikit/primary-button@^19.13.0",
31
+ "@commercetools-uikit/spacings": "npm:@commercetools-uikit/spacings@^19.13.0",
32
+ "@commercetools-uikit/text": "npm:@commercetools-uikit/text@^19.13.0",
33
+ "@commercetools-uikit/toggle-input": "npm:@commercetools-uikit/toggle-input@^19.13.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@apollo/client": "3.7.10",
37
- "@commercetools-frontend/application-shell": "22.30.3",
38
- "@commercetools-frontend/application-shell-connectors": "22.30.3",
39
- "@emotion/react": "^11.11.1",
37
+ "@commercetools-frontend/application-shell": "22.35.0",
38
+ "@commercetools-frontend/application-shell-connectors": "22.35.0",
39
+ "@emotion/react": "11.13.3",
40
40
  "@testing-library/react": "12.1.5",
41
41
  "@testing-library/react-hooks": "8.0.1",
42
42
  "@types/jest": "^29.5.2",
43
- "@types/node": "20.14.15",
43
+ "@types/node": "20.16.10",
44
44
  "@types/react": "17.0.80",
45
45
  "@types/testing-library__jest-dom": "^5.14.6",
46
46
  "react": "17.0.2",
@@ -48,8 +48,8 @@
48
48
  "typescript": "5.2.2"
49
49
  },
50
50
  "peerDependencies": {
51
- "@commercetools-frontend/application-shell": "^22.30.3",
52
- "@commercetools-frontend/application-shell-connectors": "^22.30.3",
51
+ "@commercetools-frontend/application-shell": "^22.35.0",
52
+ "@commercetools-frontend/application-shell-connectors": "^22.35.0",
53
53
  "@emotion/react": "11.x",
54
54
  "react": "17.x",
55
55
  "react-intl": "6.x"