@noriginmedia/norigin-spatial-navigation-core 3.0.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.
@@ -0,0 +1,21 @@
1
+ declare const measureLayout: (node: HTMLElement) => {
2
+ x: number;
3
+ y: number;
4
+ width: number;
5
+ height: number;
6
+ left: number;
7
+ top: number;
8
+ readonly right: any;
9
+ readonly bottom: any;
10
+ };
11
+ export default measureLayout;
12
+ export declare const getBoundingClientRect: (node: HTMLElement) => {
13
+ x: number;
14
+ y: number;
15
+ width: number;
16
+ height: number;
17
+ left: number;
18
+ top: number;
19
+ readonly right: any;
20
+ readonly bottom: any;
21
+ };
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@noriginmedia/norigin-spatial-navigation-core",
3
+ "version": "3.0.0",
4
+ "description": "Core spatial navigation logic for web and TV.",
5
+ "main": "dist/index.cjs",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.mjs",
11
+ "require": "./dist/index.cjs",
12
+ "types": "./dist/index.d.ts"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "scripts": {
19
+ "eslint": "eslint src",
20
+ "build": "rm -rf dist && rollup -c && tsc --emitDeclarationOnly",
21
+ "test": "jest --collect-coverage"
22
+ },
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+https://github.com/NoriginMedia/norigin-spatial-navigation.git"
26
+ },
27
+ "keywords": [
28
+ "spatial-navigation",
29
+ "remote-control-navigation",
30
+ "tv-navigation"
31
+ ],
32
+ "author": "Norigin Media",
33
+ "license": "MIT",
34
+ "bugs": {
35
+ "url": "https://github.com/NoriginMedia/norigin-spatial-navigation/issues"
36
+ },
37
+ "homepage": "https://devportal.noriginmedia.com/docs/Norigin-Spatial-Navigation/",
38
+ "dependencies": {
39
+ "lodash-es": "^4.17.21"
40
+ },
41
+ "devDependencies": {
42
+ "@rollup/plugin-commonjs": "^29.0.0",
43
+ "@rollup/plugin-node-resolve": "^16.0.0",
44
+ "@rollup/plugin-typescript": "^12.1.2",
45
+ "@types/jest": "^29.5.12",
46
+ "@types/lodash-es": "^4.17.12",
47
+ "jest": "^29.7.0",
48
+ "jest-environment-jsdom": "^29.7.0",
49
+ "prettier": "^2.5.1",
50
+ "rollup": "^4.28.1",
51
+ "ts-jest": "^29.1.4",
52
+ "tslib": "^2.8.1",
53
+ "typescript": "^5.9.3"
54
+ }
55
+ }