@linkurious/ogma-annotations 1.1.26 → 2.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.
- package/Readme.md +3 -132
- package/dist/index.js +65 -24
- package/dist/index.mjs +6559 -1898
- package/dist/ogma-annotations.css +1 -0
- package/dist/types/index.d.ts +1352 -307
- package/package.json +45 -15
package/package.json
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linkurious/ogma-annotations",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Headless annotation plugin for Ogma",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
7
7
|
"module": "dist/index.mjs",
|
|
8
8
|
"browser": "dist/index.js",
|
|
9
9
|
"types": "dist/types/index.d.ts",
|
|
10
|
+
"style": "dist/ogma-annotations.css",
|
|
10
11
|
"files": [
|
|
11
12
|
"dist/*.mjs",
|
|
12
13
|
"dist/*.js",
|
|
13
|
-
"dist
|
|
14
|
+
"dist/**/*.css",
|
|
14
15
|
"dist/types"
|
|
15
16
|
],
|
|
16
17
|
"exports": {
|
|
@@ -21,10 +22,23 @@
|
|
|
21
22
|
"default": "./dist/index.mjs"
|
|
22
23
|
},
|
|
23
24
|
"./style.css": {
|
|
24
|
-
"
|
|
25
|
-
|
|
25
|
+
"style": {
|
|
26
|
+
"default": "./src/style.css"
|
|
27
|
+
},
|
|
28
|
+
"import": {
|
|
29
|
+
"types": "./src/style.d.ts",
|
|
30
|
+
"default": "./src/style.css"
|
|
31
|
+
},
|
|
32
|
+
"require": {
|
|
33
|
+
"types": "./src/style.d.ts",
|
|
34
|
+
"default": "./src/style.css"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"./umd": {
|
|
38
|
+
"types": "./dist/types/index.d.ts",
|
|
39
|
+
"import": "./dist/index.js",
|
|
40
|
+
"require": "./dist/index.js"
|
|
26
41
|
},
|
|
27
|
-
"./umd": "./dist/index.js",
|
|
28
42
|
"./esm": "./dist/index.mjs"
|
|
29
43
|
},
|
|
30
44
|
"scripts": {
|
|
@@ -41,11 +55,12 @@
|
|
|
41
55
|
"lint": "eslint --ext ts --ext js src",
|
|
42
56
|
"types": "tsc --d -emitDeclarationOnly --outDir dist/types",
|
|
43
57
|
"preview": "vite preview",
|
|
44
|
-
"docs:build": "typedoc
|
|
58
|
+
"docs:build": "typedoc && node scripts/organize-sidebar.mjs",
|
|
45
59
|
"postdocs:build": "npm run build:demo",
|
|
46
60
|
"test": "npm run test:unit",
|
|
47
61
|
"test:unit": "vitest run -c test/unit/vitest.config.mts",
|
|
48
62
|
"test:watch": "vitest watch -c test/unit/vitest.config.mts",
|
|
63
|
+
"test:benchmark": "vitest bench --run",
|
|
49
64
|
"test:e2e": "vitest run -c test/e2e/vitest.config.mts",
|
|
50
65
|
"test:e2e:watch": "vitest watch -c test/e2e/vitest.config.mts"
|
|
51
66
|
},
|
|
@@ -70,28 +85,43 @@
|
|
|
70
85
|
"@linkurious/ogma": ">=4.5.6 || ^5.0.0"
|
|
71
86
|
},
|
|
72
87
|
"dependencies": {
|
|
73
|
-
"@borgar/textbox": "1.
|
|
74
|
-
"@types/geojson": "7946.0.13",
|
|
88
|
+
"@borgar/textbox": "1.8.0",
|
|
75
89
|
"eventemitter3": "5.0.1",
|
|
76
|
-
"geojson": "
|
|
90
|
+
"geojson": "0.5.0",
|
|
91
|
+
"rbush": "4.0.1",
|
|
92
|
+
"zundo": "2.3.0",
|
|
93
|
+
"zustand": "5.0.7"
|
|
77
94
|
},
|
|
78
95
|
"devDependencies": {
|
|
79
96
|
"@linkurious/eslint-config-ogma": "1.0.14",
|
|
80
|
-
"
|
|
97
|
+
"@types/geojson": "7946.0.13",
|
|
98
|
+
"@types/rbush": "4.0.0",
|
|
81
99
|
"get-port": "7.0.0",
|
|
82
100
|
"jsdom": "24.0.0",
|
|
83
|
-
"playwright": "1.
|
|
84
|
-
"typedoc": "
|
|
85
|
-
"typedoc-plugin-markdown": "
|
|
101
|
+
"playwright": "1.57.0",
|
|
102
|
+
"typedoc": "0.28.15",
|
|
103
|
+
"typedoc-plugin-markdown": "4.9.0",
|
|
104
|
+
"typedoc-vitepress-theme": "1.1.2",
|
|
86
105
|
"typescript": "5.3.3",
|
|
106
|
+
"vanilla-colorful": "0.7.2",
|
|
87
107
|
"vite": "latest",
|
|
88
108
|
"vite-plugin-dts": "^4.1.0",
|
|
89
|
-
"vitest": "latest"
|
|
109
|
+
"vitest": "latest",
|
|
110
|
+
"vitest-canvas-mock": "1.1.3"
|
|
90
111
|
},
|
|
91
112
|
"eslintConfig": {
|
|
92
113
|
"extends": [
|
|
93
114
|
"@linkurious/eslint-config-ogma"
|
|
94
|
-
]
|
|
115
|
+
],
|
|
116
|
+
"rules": {
|
|
117
|
+
"@typescript-eslint/no-unused-vars": [
|
|
118
|
+
"error",
|
|
119
|
+
{
|
|
120
|
+
"argsIgnorePattern": "^_",
|
|
121
|
+
"varsIgnorePattern": "^_"
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
}
|
|
95
125
|
},
|
|
96
126
|
"prettier": {
|
|
97
127
|
"printWidth": 80,
|