@iyulab/modern-app 0.19.0 → 0.19.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.19.1] - 2026-09-13
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- **Development-mode warning when the sidebar shell has no sized ancestor.** `u-sidebar-layout`
|
|
8
|
+
fills its parent with `height: 100%`; when a custom root has no height the shell sits at its own
|
|
9
|
+
chrome height (about 133px) and the route area is a few lines tall, with no error. It now says so
|
|
10
|
+
once (`[@iyulab/modern-app]`, development builds only) and points at the fix
|
|
11
|
+
(`#app { height: 100vh }` — `app.load()` already does this for `document.body`).
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- **`@iyulab/router` range is now `^0.12.0`** (was `^0.11.0`, which a 0.x caret does not extend
|
|
16
|
+
to 0.12). Router 0.12.0 adds `RouteConfig.key`, so a route rendered through `app.load()` can now
|
|
17
|
+
keep its content across query-string-only navigations by declaring `key: ctx => ctx.pathname`.
|
|
18
|
+
Nothing in this package's own behaviour changes.
|
|
19
|
+
|
|
3
20
|
## [0.19.0] - 2026-09-10
|
|
4
21
|
|
|
5
22
|
### Changed
|
|
@@ -24,6 +24,14 @@ export declare class SidebarLayout extends StyledElement<SidebarParts> {
|
|
|
24
24
|
connectedCallback(): void;
|
|
25
25
|
disconnectedCallback(): void;
|
|
26
26
|
protected willUpdate(changedProperties: PropertyValues): void;
|
|
27
|
+
protected firstUpdated(changedProperties: PropertyValues): void;
|
|
28
|
+
/**
|
|
29
|
+
* 개발 모드 사용 안내(HD-61 ⒝): 이 셸은 `:host { height: 100% }` 로 부모를 채우는데, 부모(커스텀
|
|
30
|
+
* root)에 높이가 없으면 걸릴 곳이 없어 자기 크롬 높이(실측 약 133px)로 앉는다 — 오류도 경고도 없이
|
|
31
|
+
* 라우트 콘텐츠 영역이 몇 줄짜리 띠가 된다. 첫 배치 뒤 한 번 재서 알린다.
|
|
32
|
+
* 임계값은 규칙이라 손으로 쓴다 — 앱 셸이 200px 보다 낮은 것이 의도인 경우는 없다.
|
|
33
|
+
*/
|
|
34
|
+
private warnIfUnsized;
|
|
27
35
|
render(): typeof nothing | import('lit-html').TemplateResult<1>;
|
|
28
36
|
/** 사이드바 아이템 렌더링 */
|
|
29
37
|
private renderItem;
|
|
@@ -96,6 +96,10 @@ var v = class extends i {
|
|
|
96
96
|
willUpdate(e) {
|
|
97
97
|
super.willUpdate(e), e.has("config") && (this.styles = this.config?.styles);
|
|
98
98
|
}
|
|
99
|
+
firstUpdated(e) {
|
|
100
|
+
super.firstUpdated(e), this.warnIfUnsized();
|
|
101
|
+
}
|
|
102
|
+
warnIfUnsized() {}
|
|
99
103
|
render() {
|
|
100
104
|
return this.config ? s`
|
|
101
105
|
<!-- Mobile Header -->
|
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.19.
|
|
4
|
+
"version": "0.19.1",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"iyulab",
|
|
7
7
|
"web-framework",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"typecheck": "tsc --noEmit"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@iyulab/router": "^0.
|
|
63
|
+
"@iyulab/router": "^0.12.0",
|
|
64
64
|
"i18next": "^26.3.6",
|
|
65
65
|
"lit": "^3.3.3"
|
|
66
66
|
},
|