@oslokommune/punkt-react 19.1.0 → 19.2.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,11 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
5
5
 
6
6
  ---
7
7
 
8
+ ## [19.2.0](https://github.com/oslokommune/punkt/compare/19.1.0...19.2.0) (2026-09-28)
9
+
10
+ ---
11
+
12
+
8
13
  ## [19.1.0](https://github.com/oslokommune/punkt/compare/19.0.5...19.1.0) (2026-09-25)
9
14
 
10
15
  ### Features
@@ -3,18 +3,6 @@ import { IPktFooterSimpleProps } from '../../shared-types';
3
3
  import { TFooterConsentConfig } from '../footer/FooterGlobal';
4
4
  export interface IPktFooterSimple extends IPktFooterSimpleProps<string>, TFooterConsentConfig, Omit<HTMLAttributes<HTMLElement>, 'children'> {
5
5
  onDataError?: (error: Error) => void;
6
- /**
7
- * @deprecated The privacy link now comes from the global footer's payload.
8
- * Only rendered (in the secondary footer) when explicitly set to a
9
- * non-default value.
10
- */
11
- personvernOgInfoLink?: string;
12
- /**
13
- * @deprecated The accessibility link now comes from the global footer's
14
- * payload. Only rendered (in the secondary footer) when explicitly set
15
- * to a non-default value.
16
- */
17
- tilgjengelighetLink?: string;
18
6
  }
19
7
  /**
20
8
  * PktFooterSimple — kompakt footer: en sentrert rad med pil-lenker i det
@@ -17,4 +17,10 @@ export type IAlertSpecProps = {
17
17
  ariaLive?: TAriaLive;
18
18
  size?: TAlertSize;
19
19
  closeAlert?: boolean;
20
+ /** @deprecated Bruk `size` i stedet. Uten eksplisitt `size` gir compact størrelsen 'small'. */
21
+ compact?: boolean;
22
+ };
23
+ /** Default for the deprecated `compact` prop — single source of truth for both frameworks. */
24
+ export declare const ALERT_DEFAULTS: {
25
+ readonly compact: false;
20
26
  };
@@ -89,17 +89,29 @@ export interface IPktFooterProps<IconType = string> extends IPktFooterBase<IconT
89
89
  export interface IPktFooterSimpleProps<IconType = string> extends IPktFooterBase<IconType> {
90
90
  /** Custom links shown as a compact row in the secondary (grey) footer. */
91
91
  links?: IPktFooterLink[];
92
+ /**
93
+ * @deprecated The privacy link now comes from the global footer's payload.
94
+ * Only rendered (in the secondary footer) when explicitly set to a
95
+ * non-default value.
96
+ */
97
+ personvernOgInfoLink?: string;
98
+ /**
99
+ * @deprecated The accessibility link now comes from the global footer's
100
+ * payload. Only rendered (in the secondary footer) when explicitly set
101
+ * to a non-default value.
102
+ */
103
+ tilgjengelighetLink?: string;
92
104
  }
93
105
  /**
94
106
  * Documented FooterSimple props (subset of `IPktFooterSimpleProps`).
95
107
  * Used for typed component specs in documentation.
96
108
  */
97
- export type IFooterSimpleSpecProps = Pick<IPktFooterSimpleProps, 'links' | 'skipGlobal' | 'data' | 'dataUrl' | 'locale' | 'openLinksInNewTab' | 'includeConsent' | 'googleAnalyticsId' | 'hotjarId'>;
109
+ export type IFooterSimpleSpecProps = Pick<IPktFooterSimpleProps, 'links' | 'skipGlobal' | 'data' | 'dataUrl' | 'locale' | 'openLinksInNewTab' | 'includeConsent' | 'googleAnalyticsId' | 'hotjarId' | 'personvernOgInfoLink' | 'tilgjengelighetLink'>;
98
110
  /**
99
111
  * Documented Footer props (subset of `IPktFooterProps`).
100
112
  * Used for typed component specs in documentation.
101
113
  */
102
- export type IFooterSpecProps = Pick<IPktFooterProps, 'columns' | 'skipGlobal' | 'data' | 'dataUrl' | 'locale' | 'openLinksInNewTab' | 'includeConsent' | 'googleAnalyticsId' | 'hotjarId'>;
114
+ export type IFooterSpecProps = Pick<IPktFooterProps, 'columns' | 'skipGlobal' | 'data' | 'dataUrl' | 'locale' | 'openLinksInNewTab' | 'includeConsent' | 'googleAnalyticsId' | 'hotjarId' | 'columnOne' | 'columnTwo' | 'personvernOgInfoLink' | 'tilgjengelighetLink' | 'socialLinks'>;
103
115
  /** Historical defaults for the deprecated link props — used to detect explicit overrides. */
104
116
  export declare const DEFAULT_FOOTER_PERSONVERN_URL = "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/";
105
117
  export declare const DEFAULT_FOOTER_TILGJENGELIGHET_URL = "https://www.oslo.kommune.no/tilgjengelighet/";
@@ -1,7 +1,7 @@
1
1
  export type { Booleanish } from './booleanish';
2
2
  export { booleanishConverter, nullableBooleanishConverter } from './booleanish';
3
3
  export { ARIA_LIVE_VALUES, type TAriaBoolean, type TAriaBooleanMixed, type TAriaCurrent, type TAriaHasPopup, type TAriaInvalid, type TAriaLive, type TAriaRelevant, type TAriaSort, type TAriaAutoComplete, type TAriaOrientation, type IAriaAttributes, type TAlertRole, } from './aria';
4
- export { ALERT_SKINS, ALERT_SIZES, type TAlertSkin, type TAlertSize, type IAlertSpecProps, } from './alert';
4
+ export { ALERT_SKINS, ALERT_SIZES, ALERT_DEFAULTS, type TAlertSkin, type TAlertSize, type IAlertSpecProps, } from './alert';
5
5
  export type { THeadingLevel, THeadingSize, THeadingWeight } from './heading';
6
6
  export type { User, Representing, UserMenuItem, InternalMenuItemBase, InternalMenuLink, InternalMenuButton, TInternalMenuItem, TSlotMenuVariant, THeaderMenu, TLogOutButtonPlacement, THeaderPosition, THeaderScrollBehavior, } from './header';
7
7
  export { convertUserMenuItem } from './header';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-react",
3
- "version": "19.1.0",
3
+ "version": "19.2.0",
4
4
  "description": "React komponentbibliotek til Punkt, designsystem for Oslo kommune",
5
5
  "homepage": "https://punkt.oslo.kommune.no",
6
6
  "author": "Team Designsystem, Oslo kommune",
@@ -101,5 +101,5 @@
101
101
  "url": "https://github.com/oslokommune/punkt/issues"
102
102
  },
103
103
  "license": "MIT",
104
- "gitHead": "bd527643a5ec58336f592a065ba7d7037d8597be"
104
+ "gitHead": "9ffef14fdbc5993d24cba60a16324095834103f5"
105
105
  }
@@ -16,18 +16,6 @@ import { FooterGlobal, useGlobalFooterData, type TFooterConsentConfig } from '..
16
16
  export interface IPktFooterSimple
17
17
  extends IPktFooterSimpleProps<string>, TFooterConsentConfig, Omit<HTMLAttributes<HTMLElement>, 'children'> {
18
18
  onDataError?: (error: Error) => void
19
- /**
20
- * @deprecated The privacy link now comes from the global footer's payload.
21
- * Only rendered (in the secondary footer) when explicitly set to a
22
- * non-default value.
23
- */
24
- personvernOgInfoLink?: string
25
- /**
26
- * @deprecated The accessibility link now comes from the global footer's
27
- * payload. Only rendered (in the secondary footer) when explicitly set
28
- * to a non-default value.
29
- */
30
- tilgjengelighetLink?: string
31
19
  }
32
20
 
33
21
  const SimpleLink: FC<{ link: IPktFooterLink; openLinksInNewTab: boolean }> = ({ link, openLinksInNewTab }) => {