histropediajs 1.4.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/package.json ADDED
@@ -0,0 +1,101 @@
1
+ {
2
+ "name": "histropediajs",
3
+ "version": "1.4.0",
4
+ "description": "JavaScript library for rendering interactive zoomable timelines in HTML5 canvas.",
5
+ "main": "./dist/histropedia.esm.js",
6
+ "module": "./dist/histropedia.esm.js",
7
+ "types": "./index.d.ts",
8
+ "unpkg": "./dist/histropedia.umd.min.js",
9
+ "jsdelivr": "./dist/histropedia.umd.min.js",
10
+ "type": "module",
11
+ "files": [
12
+ "dist/histropedia.esm.js",
13
+ "dist/histropedia.umd.js",
14
+ "dist/histropedia.umd.min.js",
15
+ "index.d.ts"
16
+ ],
17
+ "exports": {
18
+ ".": {
19
+ "types": "./index.d.ts",
20
+ "import": "./dist/histropedia.esm.js"
21
+ },
22
+ "./package.json": "./package.json"
23
+ },
24
+ "devEngines": {
25
+ "runtime": {
26
+ "name": "node",
27
+ "version": "^20.19.0 || >=22.12.0",
28
+ "onFail": "warn"
29
+ }
30
+ },
31
+ "scripts": {
32
+ "dev": "vite serve ./demo --host",
33
+ "build:es": "vite build --config vite.config.js",
34
+ "build:umd": "vite build --config vite.legacy.config.js",
35
+ "build:umd:min": "MINIFY=true vite build --config vite.legacy.config.js",
36
+ "build:modern": "npm run build:es",
37
+ "build:legacy": "npm run build:umd && npm run build:umd:min",
38
+ "build": "npm run build:modern && npm run build:legacy",
39
+ "prepublish:smoke": "node scripts/prepublish-smoke-test.mjs",
40
+ "prepublishOnly": "npm run build && npm run prepublish:smoke",
41
+ "preview": "vite preview",
42
+ "prepare": "husky",
43
+ "lint": "eslint .",
44
+ "lint:fix": "eslint . --fix",
45
+ "format": "prettier \"**/*.{json,css,md,html}\" --write",
46
+ "format:check": "prettier \"**/*.{json,css,md,html}\" --check",
47
+ "test": "vitest run",
48
+ "test:coverage": "vitest run --coverage",
49
+ "test:ui": "vitest",
50
+ "types:check": "npm run build:es && npm run build:umd && tsc -p tsconfig.types.json && tsc -p tsconfig.types.esm.json && tsc -p tsconfig.types.umd.json"
51
+ },
52
+ "keywords": [
53
+ "timeline",
54
+ "interactive",
55
+ "zoomable",
56
+ "canvas",
57
+ "visualization",
58
+ "data-visualization",
59
+ "chronology",
60
+ "history",
61
+ "historical",
62
+ "dates",
63
+ "events",
64
+ "browser",
65
+ "javascript"
66
+ ],
67
+ "author": "Histropedia",
68
+ "repository": {
69
+ "type": "git",
70
+ "url": "git+https://github.com/histropedia/histropediajs.git"
71
+ },
72
+ "homepage": "https://js.histropedia.com/",
73
+ "bugs": {
74
+ "email": "support@histropedia.com"
75
+ },
76
+ "license": "SEE LICENSE IN LICENSE",
77
+ "devDependencies": {
78
+ "@eslint/js": "^9.34.0",
79
+ "@vitest/coverage-v8": "^3.2.4",
80
+ "eslint": "^9.34.0",
81
+ "eslint-plugin-import": "^2.32.0",
82
+ "eslint-plugin-simple-import-sort": "^12.1.1",
83
+ "globals": "^14.0.0",
84
+ "husky": "^9.1.7",
85
+ "jsdom": "^25.0.1",
86
+ "lint-staged": "^15.5.2",
87
+ "prettier": "^3.6.2",
88
+ "typescript": "6.0.3",
89
+ "vite": "^7.0.4",
90
+ "vitest": "^3.2.4"
91
+ },
92
+ "lint-staged": {
93
+ "**/*.{js,mjs,cjs}": [
94
+ "eslint --fix --no-warn-ignored",
95
+ "prettier --write"
96
+ ],
97
+ "**/*.{json,css,md,html}": [
98
+ "prettier --write"
99
+ ]
100
+ }
101
+ }