@molecule/app-ide-panel-logic 1.4.0 → 1.4.2
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/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-11-
|
|
6
|
+
Generated: 2026-11-26T03:29:46.588Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-ide-panel-logic
|
|
@@ -1986,7 +1986,7 @@ function chatCardBg(accent?: string, pct?: number): string
|
|
|
1986
1986
|
|
|
1987
1987
|
**Returns:** A `color-mix` background colour.
|
|
1988
1988
|
|
|
1989
|
-
#### `chatCardStyle(accent)`
|
|
1989
|
+
#### `chatCardStyle(accent, borderPct)`
|
|
1990
1990
|
|
|
1991
1991
|
The single container chrome shared by every boxed info card in the chat
|
|
1992
1992
|
timeline: subtle tint, full 1px border on all sides, one padding, one radius.
|
|
@@ -1995,11 +1995,17 @@ Spread it first, then add layout (`display`/`gap`/`alignItems`) and the
|
|
|
1995
1995
|
bottom-margin rhythm at the call site — e.g.
|
|
1996
1996
|
`style={{ display: 'flex', gap: 10, marginBottom: TIMELINE_ITEM_GAP, ...chatCardStyle(accent) }}`.
|
|
1997
1997
|
|
|
1998
|
+
A card that deepens its frame on hover sets the whole `border` to
|
|
1999
|
+
`chatCardStyle(accent, 70).border`, never `borderColor` alone: the frame is a shorthand
|
|
2000
|
+
holding a CSS variable, and a longhand written over it leaves its other longhands with no
|
|
2001
|
+
readable value (`getPropertyValue` returns `''`), in a browser and in the conformance kit.
|
|
2002
|
+
|
|
1998
2003
|
```typescript
|
|
1999
|
-
function chatCardStyle(accent?: string): ChatCardStyle
|
|
2004
|
+
function chatCardStyle(accent?: string, borderPct?: number): ChatCardStyle
|
|
2000
2005
|
```
|
|
2001
2006
|
|
|
2002
2007
|
- `accent` — Tint/border source colour. Defaults to the theme primary (neutral cards).
|
|
2008
|
+
- `borderPct` — Opacity of the accent in the border mix (percent). Defaults to the resting 40.
|
|
2003
2009
|
|
|
2004
2010
|
**Returns:** The container `style` chrome (border, background, padding, radius).
|
|
2005
2011
|
|
|
@@ -3544,9 +3550,9 @@ const COARSE_POINTER_QUERY: '(pointer: coarse)'
|
|
|
3544
3550
|
Peer dependencies:
|
|
3545
3551
|
|
|
3546
3552
|
- `@molecule/app-ai-chat` ^1.8.0
|
|
3547
|
-
- `@molecule/app-ai-models` ^1.0
|
|
3553
|
+
- `@molecule/app-ai-models` ^1.4.0
|
|
3548
3554
|
- `@molecule/app-code-editor` ^1.0.1
|
|
3549
|
-
- `@molecule/app-i18n` ^1.0
|
|
3555
|
+
- `@molecule/app-i18n` ^1.2.0
|
|
3550
3556
|
- `@molecule/app-icons` ^1.0.1
|
|
3551
3557
|
- `@molecule/app-ide` ^1.0.1
|
|
3552
3558
|
- `@molecule/app-live-preview` ^1.0.1
|
|
@@ -74,8 +74,14 @@ export interface ChatCardStyle {
|
|
|
74
74
|
* bottom-margin rhythm at the call site — e.g.
|
|
75
75
|
* `style={{ display: 'flex', gap: 10, marginBottom: TIMELINE_ITEM_GAP, ...chatCardStyle(accent) }}`.
|
|
76
76
|
*
|
|
77
|
+
* A card that deepens its frame on hover sets the whole `border` to
|
|
78
|
+
* `chatCardStyle(accent, 70).border`, never `borderColor` alone: the frame is a shorthand
|
|
79
|
+
* holding a CSS variable, and a longhand written over it leaves its other longhands with no
|
|
80
|
+
* readable value (`getPropertyValue` returns `''`), in a browser and in the conformance kit.
|
|
81
|
+
*
|
|
77
82
|
* @param accent - Tint/border source colour. Defaults to the theme primary (neutral cards).
|
|
83
|
+
* @param borderPct - Opacity of the accent in the border mix (percent). Defaults to the resting 40.
|
|
78
84
|
* @returns The container `style` chrome (border, background, padding, radius).
|
|
79
85
|
*/
|
|
80
|
-
export declare function chatCardStyle(accent?: string): ChatCardStyle;
|
|
86
|
+
export declare function chatCardStyle(accent?: string, borderPct?: number): ChatCardStyle;
|
|
81
87
|
//# sourceMappingURL=chat-card-style.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-card-style.d.ts","sourceRoot":"","sources":["../../src/components/chat-card-style.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,sCAAsC,CAAA;AAE3E,wEAAwE;AACxE,eAAO,MAAM,mBAAmB,KAAK,CAAA;AAErC;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,MAAM,GAAE,MAAiC,EAAE,GAAG,SAAK,GAAG,MAAM,CAE1F;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,MAAM,GAAE,MAAiC,EAAE,GAAG,SAAK,GAAG,MAAM,CAEtF;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,qBAAqB;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,+BAA+B;IAC/B,YAAY,EAAE,MAAM,CAAA;IACpB,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAA;IACd,6BAA6B;IAC7B,UAAU,EAAE,MAAM,CAAA;CACnB;AAED
|
|
1
|
+
{"version":3,"file":"chat-card-style.d.ts","sourceRoot":"","sources":["../../src/components/chat-card-style.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,sCAAsC,CAAA;AAE3E,wEAAwE;AACxE,eAAO,MAAM,mBAAmB,KAAK,CAAA;AAErC;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,MAAM,GAAE,MAAiC,EAAE,GAAG,SAAK,GAAG,MAAM,CAE1F;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,MAAM,GAAE,MAAiC,EAAE,GAAG,SAAK,GAAG,MAAM,CAEtF;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,qBAAqB;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,+BAA+B;IAC/B,YAAY,EAAE,MAAM,CAAA;IACpB,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAA;IACd,6BAA6B;IAC7B,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAC3B,MAAM,GAAE,MAAiC,EACzC,SAAS,SAAK,GACb,aAAa,CAOf"}
|
|
@@ -64,14 +64,20 @@ export function chatCardBg(accent = CHAT_CARD_NEUTRAL_ACCENT, pct = 10) {
|
|
|
64
64
|
* bottom-margin rhythm at the call site — e.g.
|
|
65
65
|
* `style={{ display: 'flex', gap: 10, marginBottom: TIMELINE_ITEM_GAP, ...chatCardStyle(accent) }}`.
|
|
66
66
|
*
|
|
67
|
+
* A card that deepens its frame on hover sets the whole `border` to
|
|
68
|
+
* `chatCardStyle(accent, 70).border`, never `borderColor` alone: the frame is a shorthand
|
|
69
|
+
* holding a CSS variable, and a longhand written over it leaves its other longhands with no
|
|
70
|
+
* readable value (`getPropertyValue` returns `''`), in a browser and in the conformance kit.
|
|
71
|
+
*
|
|
67
72
|
* @param accent - Tint/border source colour. Defaults to the theme primary (neutral cards).
|
|
73
|
+
* @param borderPct - Opacity of the accent in the border mix (percent). Defaults to the resting 40.
|
|
68
74
|
* @returns The container `style` chrome (border, background, padding, radius).
|
|
69
75
|
*/
|
|
70
|
-
export function chatCardStyle(accent = CHAT_CARD_NEUTRAL_ACCENT) {
|
|
76
|
+
export function chatCardStyle(accent = CHAT_CARD_NEUTRAL_ACCENT, borderPct = 40) {
|
|
71
77
|
return {
|
|
72
78
|
padding: '10px 12px',
|
|
73
79
|
borderRadius: 8,
|
|
74
|
-
border: `1px solid ${chatCardBorder(accent)}`,
|
|
80
|
+
border: `1px solid ${chatCardBorder(accent, borderPct)}`,
|
|
75
81
|
background: chatCardBg(accent),
|
|
76
82
|
};
|
|
77
83
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-card-style.js","sourceRoot":"","sources":["../../src/components/chat-card-style.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,mCAAmC,CAAA;AAE3E,wEAAwE;AACxE,MAAM,CAAC,MAAM,mBAAmB,GAAG,EAAE,CAAA;AAErC;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,SAAiB,wBAAwB,EAAE,GAAG,GAAG,EAAE;IAChF,OAAO,sBAAsB,MAAM,IAAI,GAAG,iBAAiB,CAAA;AAC7D,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,UAAU,CAAC,SAAiB,wBAAwB,EAAE,GAAG,GAAG,EAAE;IAC5E,OAAO,sBAAsB,MAAM,IAAI,GAAG,iBAAiB,CAAA;AAC7D,CAAC;AAiBD
|
|
1
|
+
{"version":3,"file":"chat-card-style.js","sourceRoot":"","sources":["../../src/components/chat-card-style.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,mCAAmC,CAAA;AAE3E,wEAAwE;AACxE,MAAM,CAAC,MAAM,mBAAmB,GAAG,EAAE,CAAA;AAErC;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,SAAiB,wBAAwB,EAAE,GAAG,GAAG,EAAE;IAChF,OAAO,sBAAsB,MAAM,IAAI,GAAG,iBAAiB,CAAA;AAC7D,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,UAAU,CAAC,SAAiB,wBAAwB,EAAE,GAAG,GAAG,EAAE;IAC5E,OAAO,sBAAsB,MAAM,IAAI,GAAG,iBAAiB,CAAA;AAC7D,CAAC;AAiBD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,aAAa,CAC3B,SAAiB,wBAAwB,EACzC,SAAS,GAAG,EAAE;IAEd,OAAO;QACL,OAAO,EAAE,WAAW;QACpB,YAAY,EAAE,CAAC;QACf,MAAM,EAAE,aAAa,cAAc,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE;QACxD,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC;KAC/B,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-ide-panel-logic",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "Framework-neutral logic of the molecule.dev IDE panels (chat, preview, file explorer, tests), shared by every framework's IDE package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@molecule/app-ai-chat": "^1.8.0",
|
|
43
|
-
"@molecule/app-ai-models": "^1.0
|
|
43
|
+
"@molecule/app-ai-models": "^1.4.0",
|
|
44
44
|
"@molecule/app-code-editor": "^1.0.1",
|
|
45
|
-
"@molecule/app-i18n": "^1.0
|
|
45
|
+
"@molecule/app-i18n": "^1.2.0",
|
|
46
46
|
"@molecule/app-icons": "^1.0.1",
|
|
47
47
|
"@molecule/app-ide": "^1.0.1",
|
|
48
48
|
"@molecule/app-live-preview": "^1.0.1",
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
"@molecule/app-ai-chat": "1.8.1",
|
|
53
53
|
"@molecule/app-ai-models": "1.4.4",
|
|
54
54
|
"@molecule/app-code-editor": "1.0.3",
|
|
55
|
-
"@molecule/app-i18n": "1.
|
|
55
|
+
"@molecule/app-i18n": "1.3.0",
|
|
56
56
|
"@molecule/app-icons": "1.0.4",
|
|
57
57
|
"@molecule/app-ide": "1.1.0",
|
|
58
58
|
"@molecule/app-live-preview": "1.0.3",
|
|
59
59
|
"@molecule/app-locales-ide": "1.12.0",
|
|
60
60
|
"@molecule/app-storage": "1.1.1",
|
|
61
61
|
"@types/node": "26.6.5",
|
|
62
|
-
"jsdom": "
|
|
62
|
+
"jsdom": "31.0.1",
|
|
63
63
|
"typescript": "6.0.3",
|
|
64
64
|
"vitest": "4.1.12"
|
|
65
65
|
},
|