@iyulab/modern-app 0.50.0 → 0.51.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/CHANGELOG.md +12 -0
- package/dist/react/MasterDetailLayout.d.ts +2 -1
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.51.0] - 2026-10-12
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- **`@iyulab/router` is a peer dependency** (`^0.23.0`), not a dependency. The app shell and the app share one
|
|
8
|
+
router: `RouteContext` and the other router types re-exported from this package, `<u-link>`, `navigate()` and the
|
|
9
|
+
new selection channels (`selection()`, `SelectionController`, `useSelection` from `@iyulab/router/react`) all
|
|
10
|
+
need the same copy the shell uses. As a dependency, an app that also installed `@iyulab/router` itself could end up
|
|
11
|
+
with two copies — two registrations of `u-link`, and a selection channel that does not see the shell's router.
|
|
12
|
+
npm 7+ and pnpm install the peer for you; an app that lists `@iyulab/router` should list `^0.23.0`.
|
|
13
|
+
- Requires `@iyulab/router` 0.23 (selection channels — no change to the routing contract).
|
|
14
|
+
|
|
3
15
|
## [0.50.0] - 2026-10-12
|
|
4
16
|
|
|
5
17
|
### Added
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MasterDetailLayout as MasterDetailLayoutElement } from '@iyulab/modern-app/dist/components/MasterDetailLayout.js';
|
|
3
3
|
|
|
4
|
+
type EventOf<K extends string> = K extends keyof HTMLElementEventMap ? HTMLElementEventMap[K] : CustomEvent;
|
|
4
5
|
type MasterDetailLayoutOwnProps = Omit<MasterDetailLayoutElement, keyof HTMLElement>;
|
|
5
6
|
|
|
6
7
|
export declare const MasterDetailLayout: React.ForwardRefExoticComponent<
|
|
@@ -8,7 +9,7 @@ export declare const MasterDetailLayout: React.ForwardRefExoticComponent<
|
|
|
8
9
|
& Omit<React.HTMLAttributes<MasterDetailLayoutElement>, keyof MasterDetailLayoutOwnProps | 'onDetailClose'>
|
|
9
10
|
& React.RefAttributes<MasterDetailLayoutElement>
|
|
10
11
|
& {
|
|
11
|
-
onDetailClose?: (event:
|
|
12
|
+
onDetailClose?: (event: EventOf<'detail-close'>) => void;
|
|
12
13
|
}
|
|
13
14
|
>;
|
|
14
15
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iyulab/modern-app",
|
|
3
3
|
"description": "web-framework by iyulab based on lit-element",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.51.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"iyulab",
|
|
7
7
|
"web-framework",
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
"test:react-types": "tsc -p tsconfig.react-smoke.json"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@iyulab/router": "^0.22.0",
|
|
64
63
|
"i18next": "^26.3.6",
|
|
65
64
|
"lit": "^3.3.3"
|
|
66
65
|
},
|
|
67
66
|
"peerDependencies": {
|
|
68
67
|
"@iyulab/components": ">=2.8.0",
|
|
68
|
+
"@iyulab/router": "^0.23.0",
|
|
69
69
|
"@lit/react": "^1.0.8",
|
|
70
70
|
"react": "^18.0.0 || ^19.0.0"
|
|
71
71
|
},
|
|
@@ -78,14 +78,15 @@
|
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
|
-
"@iyulab/components": "^2.
|
|
81
|
+
"@iyulab/components": "^2.20.3",
|
|
82
|
+
"@iyulab/router": "^0.23.0",
|
|
82
83
|
"@lit/react": "^1.0.8",
|
|
83
84
|
"@types/node": "^26.1.1",
|
|
84
85
|
"@types/react": "^19.3.0",
|
|
85
86
|
"@types/react-dom": "^19.3.0",
|
|
86
87
|
"@vitest/browser-playwright": "^5.0.0",
|
|
87
88
|
"glob": "^13.0.6",
|
|
88
|
-
"happy-dom": "^
|
|
89
|
+
"happy-dom": "^21.0.1",
|
|
89
90
|
"react": "^19.2.7",
|
|
90
91
|
"react-dom": "^19.2.7",
|
|
91
92
|
"typescript": "^6.0.2",
|