@oslokommune/punkt-react 16.21.0 → 16.22.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/CHANGELOG.md CHANGED
@@ -5,6 +5,41 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
5
5
 
6
6
  ---
7
7
 
8
+ ## [16.22.0](https://github.com/oslokommune/punkt/compare/16.21.1...16.22.0) (2026-05-29)
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+ Ingen
12
+
13
+ ### Features
14
+ * Fjern siste rester av Elements fra React-pakken (#3504). Pluss litt småfiksing i TypeScript-greier… Har også måtte justere litt for at Astro skal bygge uten den Lit-shimmen vi brukte for å få Astro til å akseptere bruk av `window` i en del filer.
15
+
16
+
17
+ ### Bug Fixes
18
+ Ingen
19
+
20
+ ### Chores
21
+ Ingen
22
+
23
+ ---
24
+
25
+
26
+ ## [16.21.1](https://github.com/oslokommune/punkt/compare/16.21.0...16.21.1) (2026-05-29)
27
+
28
+ ### ⚠ BREAKING CHANGES
29
+ Ingen
30
+
31
+ ### Features
32
+ Ingen
33
+
34
+ ### Bug Fixes
35
+ Ingen
36
+
37
+ ### Chores
38
+ Ingen
39
+
40
+ ---
41
+
42
+
8
43
  ## [16.21.0](https://github.com/oslokommune/punkt/compare/16.20.0...16.21.0) (2026-05-29)
9
44
 
10
45
  ### ⚠ BREAKING CHANGES
package/dist/index.d.ts CHANGED
@@ -14,12 +14,10 @@ import { IFileTransfer } from './shared-types';
14
14
  import { IFileValidateDetail } from './shared-types';
15
15
  import { InputHTMLAttributes } from 'react';
16
16
  import { IPktComboboxOption } from './shared-types/combobox';
17
- import { IPktConsent as IPktConsent_2 } from '@oslokommune/punkt-elements';
18
17
  import { IPktHeaderMenu as IPktHeaderMenu_2 } from './shared-types';
19
18
  import { IPktSearchInputSuggestion } from './shared-types/searchinput';
20
19
  import { ITimepickerStrings } from './shared-types/timepicker';
21
20
  import { JSX as JSX_2 } from 'react/jsx-runtime';
22
- import { LegacyRef } from 'react';
23
21
  import { LinkHTMLAttributes } from 'react';
24
22
  import { MouseEvent as MouseEvent_2 } from 'react';
25
23
  import { ReactElement } from 'react';
@@ -77,6 +75,8 @@ declare interface Column {
77
75
  text?: string;
78
76
  }
79
77
 
78
+ declare type ConsentDetailsMap = Record<string, boolean>;
79
+
80
80
  /**
81
81
  * A selected file plus metadata used by the FileUpload UI.
82
82
  *
@@ -391,9 +391,17 @@ export declare interface IPktCombobox {
391
391
  children?: ReactNode;
392
392
  }
393
393
 
394
- declare interface IPktConsent extends IPktConsent_2 {
395
- ref?: LegacyRef<HTMLDivElement>;
396
- onToggleConsent?: (e: CustomEvent) => void;
394
+ declare interface IPktConsent extends HTMLAttributes<HTMLElement> {
395
+ devMode?: boolean;
396
+ cookieDomain?: string | null;
397
+ cookieSecure?: string | null;
398
+ cookieExpiryDays?: string | null;
399
+ hotjarId?: string | null;
400
+ googleAnalyticsId?: string | null;
401
+ i18nLanguage?: string;
402
+ triggerType?: TPktConsentTriggerType | null;
403
+ triggerText?: string | null;
404
+ onToggleConsent?: (e: CustomEvent<ConsentDetailsMap>) => void;
397
405
  }
398
406
 
399
407
  export declare interface IPktDatepicker extends Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'> {
@@ -1085,7 +1093,7 @@ export declare const PktCheckbox: ForwardRefExoticComponent<IPktCheckbox & RefAt
1085
1093
 
1086
1094
  export declare const PktCombobox: ForwardRefExoticComponent<IPktCombobox & RefAttributes<HTMLDivElement>>;
1087
1095
 
1088
- export declare const PktConsent: ForwardRefExoticComponent<IPktConsent>;
1096
+ export declare const PktConsent: ForwardRefExoticComponent<IPktConsent & RefAttributes<HTMLElement>>;
1089
1097
 
1090
1098
  export declare const PktDatepicker: ForwardRefExoticComponent<IPktDatepicker & RefAttributes<HTMLDivElement>>;
1091
1099
 
@@ -1271,6 +1279,8 @@ declare type TPktAccordionSkin = TAccordionSkin;
1271
1279
 
1272
1280
  declare type TPktAccordionSkin_2 = TAccordionSkin;
1273
1281
 
1282
+ declare type TPktConsentTriggerType = 'button' | 'link' | 'footerlink' | 'icon';
1283
+
1274
1284
  declare type TPktHeadingLevel = THeadingLevel_2;
1275
1285
 
1276
1286
  declare type TPktHeadingSize = THeadingSize;