@oslokommune/punkt-elements 19.10.1 → 19.10.2
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.11.0](https://github.com/oslokommune/punkt/compare/19.10.1...19.11.0) (2026-10-07)
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
|
|
8
13
|
## [19.10.1](https://github.com/oslokommune/punkt/compare/19.10.0...19.10.1) (2026-10-07)
|
|
9
14
|
|
|
10
15
|
### Bug Fixes
|
|
@@ -3,9 +3,12 @@ export declare class PunktDocs extends PktElement {
|
|
|
3
3
|
private darkMode;
|
|
4
4
|
private readonly storageKey;
|
|
5
5
|
private router;
|
|
6
|
+
private toc?;
|
|
7
|
+
private tocPage;
|
|
6
8
|
connectedCallback(): void;
|
|
7
9
|
private get isHeaderFullPage();
|
|
8
10
|
render(): import('lit-html').TemplateResult<1>;
|
|
11
|
+
updated(): void;
|
|
9
12
|
private goto;
|
|
10
13
|
private getInitialDarkMode;
|
|
11
14
|
private applyDarkMode;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PktElement } from '../base-elements/element';
|
|
2
|
+
export declare class TableOfContents extends PktElement {
|
|
3
|
+
private headings;
|
|
4
|
+
private activeId;
|
|
5
|
+
private open;
|
|
6
|
+
private toggle?;
|
|
7
|
+
private watcher?;
|
|
8
|
+
refresh(page: Element | null): Promise<void>;
|
|
9
|
+
connectedCallback(): void;
|
|
10
|
+
disconnectedCallback(): void;
|
|
11
|
+
private onOutsideClick;
|
|
12
|
+
private onClick;
|
|
13
|
+
private onKeyDown;
|
|
14
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ITocHeading {
|
|
2
|
+
id: string;
|
|
3
|
+
text: string;
|
|
4
|
+
level: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const ensureHeadingIds: (root: ParentNode, selector?: string) => ITocHeading[];
|
|
7
|
+
export declare const getTocHeadings: (root: ParentNode) => ITocHeading[];
|
|
8
|
+
export declare const scrollToHash: (behavior?: ScrollBehavior) => void;
|
|
9
|
+
export declare const watchActiveHeading: (ids: string[], onChange: (id: string) => void, offset?: number) => {
|
|
10
|
+
update: () => void;
|
|
11
|
+
stop: () => void;
|
|
12
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-elements",
|
|
3
|
-
"version": "19.10.
|
|
3
|
+
"version": "19.10.2",
|
|
4
4
|
"description": "Komponentbiblioteket til Punkt, designsystem for Oslo kommune",
|
|
5
5
|
"homepage": "https://punkt.oslo.kommune.no",
|
|
6
6
|
"author": "Team Designsystem, Oslo kommune",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"engines": {
|
|
85
85
|
"node": "^22.19.0 || ^24.0.0 || ^26.0.0"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "6540d3913c1b6a0a74e6857fda9c214714d6cd96"
|
|
88
88
|
}
|