@oslokommune/punkt-react 19.10.0 → 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 +5 -0
- package/dist/shared-utils/heading-ids.d.ts +12 -0
- package/package.json +3 -3
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.0](https://github.com/oslokommune/punkt/compare/19.9.1...19.10.0) (2026-10-07)
|
|
9
14
|
|
|
10
15
|
### Features
|
|
@@ -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-react",
|
|
3
|
-
"version": "19.10.
|
|
3
|
+
"version": "19.10.2",
|
|
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",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@eslint/eslintrc": "^3.3.5",
|
|
42
42
|
"@eslint/js": "^10.0.1",
|
|
43
43
|
"@oslokommune/punkt-assets": "^19.0.4",
|
|
44
|
-
"@oslokommune/punkt-css": "^19.
|
|
44
|
+
"@oslokommune/punkt-css": "^19.10.2",
|
|
45
45
|
"@testing-library/jest-dom": "^6.9.1",
|
|
46
46
|
"@testing-library/react": "^16.3.2",
|
|
47
47
|
"@testing-library/user-event": "^14.6.1",
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"url": "https://github.com/oslokommune/punkt/issues"
|
|
102
102
|
},
|
|
103
103
|
"license": "MIT",
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "6540d3913c1b6a0a74e6857fda9c214714d6cd96"
|
|
105
105
|
}
|