@oslokommune/punkt-react 12.42.4 → 12.42.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-react",
3
- "version": "12.42.4",
3
+ "version": "12.42.6",
4
4
  "description": "React komponentbibliotek til Punkt, et designsystem laget av Oslo Origo",
5
5
  "homepage": "https://punkt.oslo.kommune.no",
6
6
  "author": "Team Designsystem, Oslo Origo",
@@ -38,7 +38,7 @@
38
38
  "dependencies": {
39
39
  "@lit-labs/ssr-dom-shim": "^1.2.1",
40
40
  "@lit/react": "^1.0.7",
41
- "@oslokommune/punkt-elements": "^12.42.4",
41
+ "@oslokommune/punkt-elements": "^12.42.6",
42
42
  "angular-html-parser": "^6.0.2",
43
43
  "html-format": "^1.1.7",
44
44
  "prettier": "^3.3.3",
@@ -49,7 +49,7 @@
49
49
  "devDependencies": {
50
50
  "@babel/plugin-proposal-private-property-in-object": "^7.18.6",
51
51
  "@oslokommune/punkt-assets": "^12.39.2",
52
- "@oslokommune/punkt-css": "^12.42.4",
52
+ "@oslokommune/punkt-css": "^12.42.5",
53
53
  "@testing-library/jest-dom": "^6.5.0",
54
54
  "@testing-library/react": "^16.0.1",
55
55
  "@testing-library/user-event": "^14.5.2",
@@ -112,5 +112,5 @@
112
112
  "url": "https://github.com/oslokommune/punkt/issues"
113
113
  },
114
114
  "license": "MIT",
115
- "gitHead": "c1841153a3aec61d53b50b34c69ca74dd022d1ef"
115
+ "gitHead": "1d82a7a76a25908e1453c48520da98dfeeae19c2"
116
116
  }
@@ -35,6 +35,10 @@ export interface IPktFooter extends React.HTMLAttributes<HTMLDivElement> {
35
35
  includeConsent?: boolean
36
36
  hotjarId?: string | null
37
37
  googleAnalyticsId?: string | null
38
+ devMode?: boolean
39
+ cookieDomain?: string | null
40
+ cookieSecure?: string | null
41
+ cookieExpiryDays?: string | null
38
42
  onToggleConsent?: (e: CustomEvent) => void
39
43
  }
40
44
 
@@ -49,6 +53,10 @@ export const PktFooter: React.FC<IPktFooter> = ({
49
53
  includeConsent = false,
50
54
  hotjarId = null,
51
55
  googleAnalyticsId = null,
56
+ devMode = false,
57
+ cookieDomain = null,
58
+ cookieSecure = null,
59
+ cookieExpiryDays = null,
52
60
  onToggleConsent = (e: CustomEvent) => {
53
61
  console.log(e.detail)
54
62
  },
@@ -128,6 +136,10 @@ export const PktFooter: React.FC<IPktFooter> = ({
128
136
  triggerType="footerlink"
129
137
  hotjarId={hotjarId}
130
138
  googleAnalyticsId={googleAnalyticsId}
139
+ devMode={devMode}
140
+ cookieDomain={cookieDomain}
141
+ cookieSecure={cookieSecure}
142
+ cookieExpiryDays={cookieExpiryDays}
131
143
  onToggleConsent={onToggleConsent}
132
144
  />
133
145
  </li>
@@ -18,6 +18,11 @@ export interface IPktFooterSimple extends React.HTMLAttributes<HTMLDivElement> {
18
18
  includeConsent?: boolean
19
19
  hotjarId?: string | null
20
20
  googleAnalyticsId?: string | null
21
+ devMode?: boolean
22
+ cookieDomain?: string | null
23
+ cookieSecure?: string | null
24
+ cookieExpiryDays?: string | null
25
+ onToggleConsent?: (e: CustomEvent) => void
21
26
  }
22
27
 
23
28
  export const PktFooterSimple: React.FC<IPktFooterSimple> = ({
@@ -28,6 +33,13 @@ export const PktFooterSimple: React.FC<IPktFooterSimple> = ({
28
33
  includeConsent = false,
29
34
  hotjarId = null,
30
35
  googleAnalyticsId = null,
36
+ devMode = false,
37
+ cookieDomain = null,
38
+ cookieSecure = null,
39
+ cookieExpiryDays = null,
40
+ onToggleConsent = (e: CustomEvent) => {
41
+ console.log(e.detail)
42
+ },
31
43
  className,
32
44
  }) => {
33
45
  const classNames = [className, 'pkt-footer-simple'].filter(Boolean).join(' ')
@@ -72,7 +84,16 @@ export const PktFooterSimple: React.FC<IPktFooterSimple> = ({
72
84
  </li>
73
85
  {includeConsent && (
74
86
  <li className="pkt-footer-simple__list-item">
75
- <PktConsent triggerType="footerlink" hotjarId={hotjarId} googleAnalyticsId={googleAnalyticsId} />
87
+ <PktConsent
88
+ triggerType="footerlink"
89
+ hotjarId={hotjarId}
90
+ googleAnalyticsId={googleAnalyticsId}
91
+ devMode={devMode}
92
+ cookieDomain={cookieDomain}
93
+ cookieSecure={cookieSecure}
94
+ cookieExpiryDays={cookieExpiryDays}
95
+ onToggleConsent={onToggleConsent}
96
+ />
76
97
  </li>
77
98
  )}
78
99
  </ul>