@itwin/presentation-hierarchies-react 2.0.0-alpha.61 → 2.0.0-alpha.63

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.
Files changed (25) hide show
  1. package/CHANGELOG.md +96 -0
  2. package/README.md +62 -53
  3. package/lib/presentation-hierarchies-react/UseTree.js +1 -2
  4. package/lib/presentation-hierarchies-react/UseTree.js.map +1 -1
  5. package/lib/presentation-hierarchies-react/Utils.js.map +1 -1
  6. package/lib/presentation-hierarchies-react/internal/TreeActions.js +2 -7
  7. package/lib/presentation-hierarchies-react/internal/TreeActions.js.map +1 -1
  8. package/lib/presentation-hierarchies-react/internal/TreeLoader.js.map +1 -1
  9. package/lib/presentation-hierarchies-react/internal/TreeModel.js +0 -2
  10. package/lib/presentation-hierarchies-react/internal/TreeModel.js.map +1 -1
  11. package/lib/presentation-hierarchies-react/internal/UseUnifiedSelection.js.map +1 -1
  12. package/lib/presentation-hierarchies-react/stratakit/ErrorItemRenderer.js +133 -132
  13. package/lib/presentation-hierarchies-react/stratakit/ErrorItemRenderer.js.map +1 -1
  14. package/lib/presentation-hierarchies-react/stratakit/RootErrorRenderer.js +5 -4
  15. package/lib/presentation-hierarchies-react/stratakit/RootErrorRenderer.js.map +1 -1
  16. package/lib/presentation-hierarchies-react/stratakit/TreeAction.d.ts +4 -2
  17. package/lib/presentation-hierarchies-react/stratakit/TreeAction.d.ts.map +1 -1
  18. package/lib/presentation-hierarchies-react/stratakit/TreeAction.js +37 -13
  19. package/lib/presentation-hierarchies-react/stratakit/TreeAction.js.map +1 -1
  20. package/lib/presentation-hierarchies-react/stratakit/TreeNodeRenameAction.d.ts +1 -0
  21. package/lib/presentation-hierarchies-react/stratakit/TreeNodeRenameAction.d.ts.map +1 -1
  22. package/lib/presentation-hierarchies-react/stratakit/TreeNodeRenderer.d.ts.map +1 -1
  23. package/lib/presentation-hierarchies-react/stratakit/TreeNodeRenderer.js +152 -140
  24. package/lib/presentation-hierarchies-react/stratakit/TreeNodeRenderer.js.map +1 -1
  25. package/package.json +43 -59
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/presentation-hierarchies-react",
3
- "version": "2.0.0-alpha.61",
3
+ "version": "2.0.0-alpha.63",
4
4
  "description": "React components based on `@itwin/presentation-hierarchies`",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -41,99 +41,83 @@
41
41
  "./package.json": "./package.json"
42
42
  },
43
43
  "dependencies": {
44
- "@itwin/core-bentley": "^5.7.2",
45
- "@tanstack/react-virtual": "^3.13.13",
44
+ "@itwin/core-bentley": "^5.10.0",
45
+ "@stratakit/icons": "^0.4.0",
46
+ "@stratakit/structures": "^0.5.8",
47
+ "@tanstack/react-virtual": "^3.13.24",
46
48
  "classnames": "^2.5.1",
47
49
  "immer": "^10.2.0",
48
50
  "react-compiler-runtime": "^1.0.0",
49
51
  "react-error-boundary": "^4.1.2",
50
52
  "rxjs": "^7.8.2",
51
- "@itwin/presentation-shared": "2.0.0-alpha.9",
52
- "@itwin/unified-selection": "^1.6.8",
53
- "@itwin/presentation-hierarchies": "2.0.0-alpha.14"
53
+ "@itwin/presentation-hierarchies": "2.0.0-alpha.16",
54
+ "@itwin/presentation-shared": "2.0.0-alpha.11",
55
+ "@itwin/unified-selection": "^1.8.1-alpha.0"
54
56
  },
55
57
  "peerDependencies": {
56
- "@stratakit/bricks": "^0.5.4",
57
- "@stratakit/foundations": "^0.4.7",
58
- "@stratakit/icons": "^0.3.1",
59
- "@stratakit/structures": "^0.5.6",
60
- "react": "^17.0 || ^18.0",
61
- "react-dom": "^17.0 || ^18.0"
58
+ "@mui/material": "^9.0.0",
59
+ "@stratakit/mui": "^0.5.0",
60
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
61
+ "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
62
62
  },
63
63
  "peerDependenciesMeta": {
64
- "@stratakit/bricks": {
64
+ "@mui/material": {
65
65
  "optional": true
66
66
  },
67
- "@stratakit/foundations": {
68
- "optional": true
69
- },
70
- "@stratakit/structures": {
71
- "optional": true
72
- },
73
- "@stratakit/icons": {
67
+ "@stratakit/mui": {
74
68
  "optional": true
75
69
  }
76
70
  },
77
71
  "devDependencies": {
78
- "@itwin/build-tools": "^5.7.2",
79
- "@itwin/eslint-plugin": "5.1.0",
80
- "@rolldown/plugin-babel": "^0.2.2",
81
- "@stratakit/bricks": "^0.5.4",
82
- "@stratakit/foundations": "^0.4.7",
83
- "@stratakit/icons": "^0.3.1",
84
- "@stratakit/structures": "^0.5.6",
72
+ "@itwin/build-tools": "^5.10.0",
73
+ "@itwin/eslint-plugin": "^6.1.0",
74
+ "@mui/material": "^9.0.0",
75
+ "@rolldown/plugin-babel": "^0.2.3",
76
+ "@stratakit/mui": "^0.5.0",
85
77
  "@testing-library/dom": "^10.4.1",
86
78
  "@testing-library/react": "^16.3.2",
87
79
  "@testing-library/user-event": "^14.6.1",
88
- "@types/chai": "^5.2.3",
89
- "@types/chai-as-promised": "^8.0.2",
90
- "@types/jsdom": "^21.1.7",
91
- "@types/mocha": "^10.0.10",
92
- "@types/node": "^24.12.0",
93
- "@types/react": "^18.3.28",
94
- "@types/react-dom": "^18.3.7",
95
- "@types/sinon": "^17.0.4",
96
- "@types/sinon-chai": "^4.0.0",
97
- "@vitejs/plugin-react": "^6.0.1",
80
+ "@types/node": "^24.13.1",
81
+ "@types/react": "^19.2.17",
82
+ "@types/react-dom": "^19.2.3",
83
+ "@vitejs/plugin-react": "^6.0.2",
84
+ "@vitest/browser-playwright": "^4.1.8",
85
+ "@vitest/coverage-v8": "^4.1.8",
86
+ "axe-core": "^4.11.4",
98
87
  "babel-plugin-react-compiler": "^1.0.0",
99
- "chai": "^5.3.3",
100
- "chai-as-promised": "^8.0.2",
101
- "cpx2": "^7.0.2",
102
- "cross-env": "^7.0.3",
103
88
  "eslint": "^9.39.4",
104
89
  "eslint-plugin-react": "^7.37.5",
105
- "eslint-plugin-react-hooks": "^7.0.1",
106
- "fast-glob": "^3.3.3",
107
- "global-jsdom": "^26.0.0",
108
- "ignore-styles": "^5.0.1",
109
- "jsdom": "^26.1.0",
110
- "mocha": "^11.7.5",
111
- "react": "^18.3.1",
112
- "react-dom": "^18.3.1",
90
+ "eslint-plugin-react-hooks": "^7.1.1",
91
+ "happy-dom": "^20.10.1",
92
+ "playwright": "^1.59.1",
93
+ "react": "^19.2.7",
94
+ "react-dom": "^19.2.7",
113
95
  "rimraf": "^6.1.3",
114
- "sinon": "^19.0.5",
115
- "sinon-chai": "^4.0.1",
116
- "tsdown": "^0.21.4",
117
- "typescript": "~5.7.3",
118
- "vite": "^8.0.0",
96
+ "tsdown": "^0.21.10",
97
+ "typescript": "~6.0.3",
98
+ "vitest": "^4.1.8",
99
+ "vitest-browser-react": "^2.2.0",
119
100
  "presentation-test-utilities": "0.0.1"
120
101
  },
121
102
  "scripts": {
122
- "build": "tsdown && npm run -s build:locale && npm run -s copy && npm run -s build:test",
103
+ "build": "npm run -s typecheck && tsdown && npm run -s build:locale && npm run -s copy",
123
104
  "build:locale": "tsc -p tsconfig.utils.json && node ./lib/build/utils/BuildLocale.js",
124
105
  "copy": "npm run -s copy:css && npm run -s copy:assets",
125
106
  "copy:css": "cpx \"./src/**/*.css\" \"./lib\"",
126
107
  "copy:assets": "cpx \"./src/public/**/*\" \"./lib/public\"",
127
- "build:test": "tsdown --config tsdown.test.config.ts",
128
108
  "clean": "rimraf lib build",
129
109
  "cover": "npm -s test",
130
110
  "lint": "eslint \"./src/**/*.{ts,tsx}\"",
131
- "test:dev": "node --experimental-test-module-mocks --enable-source-maps --import presentation-test-utilities/node-hooks/ignore-styles ./node_modules/mocha/bin/mocha.js --config ./.mocharc.json",
132
- "test": "npm run test:dev -- --parallel --jobs=4",
111
+ "test": "vitest run --project hierarchies-react-unit",
112
+ "test:watch": "vitest --project hierarchies-react-unit",
113
+ "test:components": "vitest run --project hierarchies-react-components",
114
+ "test:components:update": "vitest run --project hierarchies-react-components --update",
133
115
  "extract-api": "betools extract-api --entry=lib/presentation-hierarchies-react-extract --apiReportFolder=./api --apiReportTempFolder=./api/temp --apiSummaryFolder=./api --includeUnexportedApis",
134
116
  "check-internal": "node ../../scripts/checkInternal.js --apiSummary ./api/presentation-hierarchies-react-extract.api.md",
117
+ "typecheck": "tsc -p tsconfig.json --noEmit",
135
118
  "update-extractions": "node ../../scripts/updateExtractions.js --targets=./README.md",
136
119
  "check-extractions": "node ../../scripts/updateExtractions.js --targets=./README.md --check",
137
- "validate-markdowns": "node ../../scripts/validateMarkdowns.js README.md"
120
+ "validate-markdowns": "node ../../scripts/validateMarkdowns.js README.md",
121
+ "install-browsers": "pnpm playwright install chromium"
138
122
  }
139
123
  }