@qw-ui/core 0.3.0-next.10 → 0.3.0-next.11
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.
|
@@ -16,6 +16,8 @@ export type QwVisualState = "default" | "hover" | "active" | "focus-visible" | "
|
|
|
16
16
|
export type QwVisualTheme = "light" | "dark";
|
|
17
17
|
/** 框架轴。 */
|
|
18
18
|
export type QwVisualFramework = "react" | "vue";
|
|
19
|
+
/** visual target 的查找作用域;省略时先查 demo canvas,再回退到整页。 */
|
|
20
|
+
export type QwVisualTargetScope = "canvas" | "page";
|
|
19
21
|
/** 视口配置(预留扩展;默认 mobile = 390×844 @2x,与 G3 一致)。 */
|
|
20
22
|
export type QwVisualViewport = "mobile";
|
|
21
23
|
/**
|
|
@@ -101,6 +103,8 @@ export interface QwVisualScenario {
|
|
|
101
103
|
demo: string;
|
|
102
104
|
/** 对应 demo 中 `data-visual-target` 的值。 */
|
|
103
105
|
target: string;
|
|
106
|
+
/** Portal 等已知整页目标可声明 page,避免先等待 canvas 查找超时。 */
|
|
107
|
+
targetScope?: QwVisualTargetScope;
|
|
104
108
|
/** 本场景要验证的视觉状态列表。 */
|
|
105
109
|
states: QwVisualState[];
|
|
106
110
|
/** 主题列表,默认 light + dark(主题 delta 使用;parity 仍跑双主题)。 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qw-ui/core",
|
|
3
|
-
"version": "0.3.0-next.
|
|
3
|
+
"version": "0.3.0-next.11",
|
|
4
4
|
"description": "L2 · Headless Core — zag.js machine 薄包装,纯 TS / SSR-safe,零样式。",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "qw-ui contributors",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"@zag-js/dialog": "^1.42.0",
|
|
104
104
|
"@zag-js/tabs": "^1.42.0",
|
|
105
105
|
"@zag-js/utils": "1.42.0",
|
|
106
|
-
"@qw-ui/icons": "^0.3.0-next.
|
|
106
|
+
"@qw-ui/icons": "^0.3.0-next.11"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
109
|
"@microsoft/api-extractor": "^7.58.9",
|