tsichart-core 2.0.0-beta.2 → 2.0.0-beta.6

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsichart-core",
3
- "version": "2.0.0-beta.2",
3
+ "version": "2.0.0-beta.6",
4
4
  "description": "Framework-agnostic time series charting library - Core package",
5
5
  "keywords": [
6
6
  "timeseries",
@@ -42,8 +42,14 @@
42
42
  "import": "./dist/utils/index.mjs",
43
43
  "require": "./dist/utils/index.js"
44
44
  },
45
- "./styles": "./dist/styles/index.css",
46
- "./styles/*": "./dist/styles/*.css"
45
+ "./styles": {
46
+ "types": "./src/styles.d.ts",
47
+ "default": "./dist/styles/index.css"
48
+ },
49
+ "./styles/*": {
50
+ "types": "./src/styles.d.ts",
51
+ "default": "./dist/styles/*.css"
52
+ }
47
53
  },
48
54
  "sideEffects": [
49
55
  "*.css",
@@ -51,6 +57,7 @@
51
57
  ],
52
58
  "files": [
53
59
  "dist",
60
+ "src/styles.d.ts",
54
61
  "README.md",
55
62
  "LICENSE"
56
63
  ],
@@ -65,6 +72,16 @@
65
72
  "homepage": "https://aenas11.github.io/tsichart-core/",
66
73
  "author": "Alex Sysoiev <alexander.sysoev@gmail.com>",
67
74
  "license": "MIT",
75
+ "scripts": {
76
+ "build": "rollup -c rollup.config.mjs",
77
+ "dev": "rollup -c --watch",
78
+ "dev:server": "webpack serve --config webpack.dev.js",
79
+ "dev:build": "webpack --config webpack.dev.js",
80
+ "test": "jest",
81
+ "test:watch": "jest --watch",
82
+ "test:coverage": "jest --coverage",
83
+ "clean": "shx rm -rf dist coverage dev-dist"
84
+ },
68
85
  "peerDependencies": {
69
86
  "d3": "^7.0.0"
70
87
  },
@@ -88,6 +105,8 @@
88
105
  "@testing-library/jest-dom": "^6.9.1",
89
106
  "@types/jest": "^29.5.14",
90
107
  "@types/node": "^24.7.2",
108
+ "css-loader": "^7.1.2",
109
+ "html-webpack-plugin": "^5.6.0",
91
110
  "jest": "^29.7.0",
92
111
  "jest-canvas-mock": "^2.5.2",
93
112
  "jest-environment-jsdom": "^29.7.0",
@@ -100,16 +119,15 @@
100
119
  "rollup-plugin-typescript2": "^0.36.0",
101
120
  "rollup-plugin-visualizer": "^6.0.4",
102
121
  "sass": "1.93.2",
122
+ "sass-loader": "^16.0.5",
103
123
  "shx": "^0.4.0",
124
+ "style-loader": "^4.0.0",
104
125
  "ts-jest": "^29.4.5",
126
+ "ts-loader": "^9.5.4",
105
127
  "tslib": "^2.8.1",
106
- "typescript": "^5.9.3"
107
- },
108
- "scripts": {
109
- "build": "rollup -c rollup.config.mjs",
110
- "test": "jest",
111
- "test:watch": "jest --watch",
112
- "test:coverage": "jest --coverage",
113
- "clean": "shx rm -rf dist coverage"
128
+ "typescript": "^5.9.3",
129
+ "webpack": "^5.102.1",
130
+ "webpack-cli": "^6.0.1",
131
+ "webpack-dev-server": "^5.2.2"
114
132
  }
115
- }
133
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Type declarations for CSS imports
3
+ * This allows TypeScript to resolve CSS module imports without errors
4
+ */
5
+
6
+ declare module 'tsichart-core/styles' {
7
+ const styles: string;
8
+ export default styles;
9
+ }
10
+
11
+ declare module 'tsichart-core/styles/*' {
12
+ const styles: string;
13
+ export default styles;
14
+ }
15
+
16
+ // Generic CSS module declarations
17
+ declare module '*.css' {
18
+ const content: string;
19
+ export default content;
20
+ }
21
+
22
+ declare module '*.scss' {
23
+ const content: string;
24
+ export default content;
25
+ }