@pushwoosh/kit-charts 0.0.24 → 0.0.25

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.
@@ -269,9 +269,10 @@ actually reads is here: `tsconfig.json`, `playground/tsconfig.json`,
269
269
  `pushwoosh.config.js`, and `jest.config.js`.
270
270
 
271
271
  `jest.config.js` is hand-written because the engine has no test runner. The
272
- `playground` script calls webpack directly for the same reason in reverse: the
273
- engine's `lib:command:playground` currently only prints the command it would run —
274
- its spawn is commented out upstream — so deferring to it would start nothing.
272
+ `playground` script runs the command `lib:command:playground` prints (backticks, like the
273
+ engine's `app:command:*`): since engine 3.1.3 it names webpack-dev-server and the playground
274
+ config by absolute paths inside the engine, so the package needs no webpack of its own.
275
+ `pushwoosh.config.js` still points `resolveLoader` at the engine's dependencies for the loaders.
275
276
 
276
277
  ## Testing
277
278
 
@@ -1,5 +1,6 @@
1
+ import { type Ref } from 'react';
1
2
  import { type Size } from '../types/geometry';
2
3
  export declare function useSize<T extends HTMLElement>(): [
3
- React.RefObject<T>,
4
+ Ref<T>,
4
5
  Size
5
6
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/kit-charts",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "description": "Small React chart library on SVG, with a Highcharts-shaped configuration model",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -29,7 +29,7 @@
29
29
  "@pushwoosh/kit-constants": "^2.1.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@pushwoosh/frontend-builder-engine": "^3.1.0",
32
+ "@pushwoosh/frontend-builder-engine": "^3.1.3",
33
33
  "@testing-library/dom": "^10.4.2",
34
34
  "@testing-library/jest-dom": "^6.9.1",
35
35
  "@testing-library/react": "^16.3.0",
@@ -44,10 +44,7 @@
44
44
  "react-dom": "^18.3.1",
45
45
  "styled-components": "^5.3.11",
46
46
  "ts-jest": "^29.4.6",
47
- "typescript": "^6.0.3",
48
- "webpack": "^5.94.0",
49
- "webpack-cli": "^6.0.1",
50
- "webpack-dev-server": "^5.0.4"
47
+ "typescript": "^6.0.3"
51
48
  },
52
49
  "peerDependencies": {
53
50
  "react": ">=18.0.0",
@@ -59,7 +56,7 @@
59
56
  "scripts": {
60
57
  "start": "pnpm run playground",
61
58
  "build": "pushwoosh-engine lib:build && cp ai-documentation.md LICENSE dist/",
62
- "playground": "webpack serve --config ./node_modules/@pushwoosh/frontend-builder-engine/lib/webpack.playground.config.js --stats-error-details",
59
+ "playground": "`pushwoosh-engine lib:command:playground`",
63
60
  "check": "pnpm run check:lint && pnpm run check:types",
64
61
  "check:lint": "echo \"Run check:lint\" && NODE_ENV=production eslint ./src ./playground ./tests",
65
62
  "check:lint-fix": "echo \"Run check:lint\" && NODE_ENV=production eslint ./src ./playground ./tests --fix",