@linzjs/windows 10.0.0 → 10.1.1

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.
@@ -1,5 +1,5 @@
1
1
  import { useEffect, useRef } from 'react';
2
- import { useIsomorphicLayoutEffect } from 'usehooks-ts';
2
+ import { useIsomorphicLayoutEffect } from './useIsomorphicLayoutEffect';
3
3
 
4
4
  /**
5
5
  * Copied from usehooks-ts
package/dist/index.scss CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  // set universal box sizing, plus the declaration in the HTML above
26
26
  *,
27
- *:before,
28
- *:after {
27
+ *::before,
28
+ *::after {
29
29
  box-sizing: inherit;
30
30
  }
@@ -1,15 +1,18 @@
1
- import { PropsWithChildren } from 'react';
1
+ import { CSSProperties, PropsWithChildren } from 'react';
2
2
 
3
3
  import { PanelContext } from './PanelContext';
4
4
  import { PanelInstanceContext } from './PanelInstanceContext';
5
5
  import { v4 } from '../common/uuid';
6
+ import clsx from 'clsx';
6
7
 
7
8
  export interface PanelInlineProps {
8
9
  title: string;
9
- width: number;
10
+ className?: string;
11
+ width?: CSSProperties['width'];
12
+ height?: CSSProperties['height'];
10
13
  }
11
14
 
12
- export const PanelInline = ({ title, width, children }: PropsWithChildren<PanelInlineProps>) => {
15
+ export const PanelInline = ({ title, className, width, height, children }: PropsWithChildren<PanelInlineProps>) => {
13
16
  return (
14
17
  <PanelContext.Provider value={{ resizeable: false, resizePanel: () => {}, initialResizePanel: () => {} }}>
15
18
  <PanelInstanceContext.Provider
@@ -31,7 +34,7 @@ export const PanelInline = ({ title, width, children }: PropsWithChildren<PanelI
31
34
  bounds: undefined,
32
35
  }}
33
36
  >
34
- <div className={'WindowPanel'} title={title} style={{ width }}>
37
+ <div className={clsx('WindowPanel', className)} title={title} style={{ width, height }}>
35
38
  {children}
36
39
  </div>
37
40
  </PanelInstanceContext.Provider>
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "popout"
14
14
  ],
15
15
  "main": "./dist/index.ts",
16
- "version": "10.0.0",
16
+ "version": "10.1.1",
17
17
  "peerDependencies": {
18
18
  "@linzjs/lui": ">=23",
19
19
  "react": ">=18",
@@ -30,13 +30,13 @@
30
30
  "node": ">=22"
31
31
  },
32
32
  "scripts": {
33
- "build": "mkdirp ./dist && run-s clean lintall bundle",
34
- "yalc": "run-s clean bundle && yalc push",
33
+ "build": "node -e \"require('fs').mkdirSync('./dist',{recursive:true})\" && npm run clean && npm run lintall && npm run bundle",
34
+ "yalc": "npm run clean && npm run bundle && yalc push",
35
35
  "clean": "node -e \"fs.rmSync('dist', { recursive: true, force: true })\"",
36
36
  "bundle": "tsc --noEmit && rollup -c",
37
37
  "test": "vitest run",
38
38
  "test:watch": "vitest --watch",
39
- "lintall": "run-s lint:style lint:oxlint",
39
+ "lintall": "npm run lint:style && npm run lint:oxlint",
40
40
  "lint:style": "stylelint src/**/*.scss src/**/*.css --fix",
41
41
  "lint:oxlint": "oxlint ./src",
42
42
  "lint:fix": "oxlint --fix ./src",
@@ -54,8 +54,8 @@
54
54
  },
55
55
  "devDependencies": {
56
56
  "@chromatic-com/storybook": "^4.1.3",
57
- "@linzjs/lui": "^24.11.0",
58
- "@linzjs/step-ag-grid": "^29.14.1",
57
+ "@linzjs/lui": "^24.13.0",
58
+ "@linzjs/step-ag-grid": "^31.2.1",
59
59
  "@rollup/plugin-commonjs": "^28.0.9",
60
60
  "@rollup/plugin-node-resolve": "^16.0.3",
61
61
  "@storybook/addon-docs": "9.1.20",
@@ -69,19 +69,17 @@
69
69
  "@types/react": "^18.3.28",
70
70
  "@types/react-dom": "^18.3.7",
71
71
  "@vitejs/plugin-react-swc": "^4.3.0",
72
- "@vitest/ui": "^4.1.2",
72
+ "@vitest/ui": "^4.1.5",
73
73
  "ag-grid-community": "34.2.0",
74
74
  "ag-grid-react": "34.2.0",
75
75
  "jsdom": "^27.3.0",
76
- "mkdirp": "^3.0.1",
77
- "npm-run-all": "^4.1.5",
78
- "oxfmt": "^0.43.0",
79
- "oxlint": "^1.58.0",
76
+ "oxfmt": "^0.47.0",
77
+ "oxlint": "^1.62.0",
80
78
  "react": "^18.3.1",
81
79
  "react-dom": "18.3.1",
82
- "rollup": "^4.60.1",
80
+ "rollup": "^4.60.2",
83
81
  "rollup-plugin-copy": "^3.5.0",
84
- "sass": "^1.98.0",
82
+ "sass": "^1.99.0",
85
83
  "storybook": "9.1.20",
86
84
  "stylelint": "^16.26.1",
87
85
  "stylelint-config-recommended": "^17.0.0",
@@ -90,9 +88,9 @@
90
88
  "stylelint-prettier": "5.0.3",
91
89
  "stylelint-scss": "6.14.0",
92
90
  "typescript": "^5.9.3",
93
- "vite": "^7.3.1",
91
+ "vite": "^7.3.2",
94
92
  "vite-tsconfig-paths": "^5.1.4",
95
- "vitest": "^4.1.0"
93
+ "vitest": "^4.1.5"
96
94
  },
97
95
  "browserslist": {
98
96
  "production": [
@@ -105,10 +103,5 @@
105
103
  "last 1 firefox version",
106
104
  "last 1 safari version"
107
105
  ]
108
- },
109
- "husky": {
110
- "hooks": {
111
- "pre-commit": "npm run lintall"
112
- }
113
106
  }
114
107
  }