x-runtime-lib 0.8.224 → 0.9.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/dist/composables/element/piece/index.d.ts +0 -1
- package/dist/composables/{element/piece/ui/color/v1/index.d.ts → runtime/color.d.ts} +1 -1
- package/dist/composables/runtime/index.d.ts +1 -0
- package/dist/element/_common/items/index.d.ts +0 -1
- package/dist/element/_common/props/index.d.ts +0 -1
- package/dist/element/_common/types/colorTypes/v1/index.d.ts +2 -0
- package/dist/element/_common/types/index.d.ts +1 -0
- package/dist/index.js +2229 -2493
- package/dist/types/protocol.d.ts +22 -7
- package/dist/utils/misc.d.ts +6 -4
- package/package.json +1 -1
- package/dist/element/_common/items/colorModeItems/v1/index.d.ts +0 -2
- package/dist/element/_common/props/color/v1/index.d.ts +0 -2
package/dist/types/protocol.d.ts
CHANGED
|
@@ -7,27 +7,42 @@ export type CompType = (typeof compTypes)[number];
|
|
|
7
7
|
export type Tag = 'pageUi' | 'compUi' | 'page3d' | 'comp3d';
|
|
8
8
|
export declare function getTag(type: string, subtype: string): Tag;
|
|
9
9
|
export type ZItem = {
|
|
10
|
-
title: string;
|
|
11
10
|
value: string;
|
|
11
|
+
title: string;
|
|
12
12
|
};
|
|
13
13
|
type ZTypeBase = {
|
|
14
14
|
title: string;
|
|
15
|
-
value: string;
|
|
16
15
|
validator: (v: any) => boolean;
|
|
17
16
|
};
|
|
18
17
|
type ZTypeWord = {
|
|
19
|
-
|
|
18
|
+
value: 'word';
|
|
20
19
|
default: string;
|
|
21
20
|
} & ZTypeBase;
|
|
22
|
-
type
|
|
23
|
-
|
|
21
|
+
type ZTypePixel = {
|
|
22
|
+
value: 'pixel';
|
|
24
23
|
precision?: number;
|
|
25
24
|
min?: number;
|
|
26
25
|
max?: number;
|
|
27
26
|
step?: number;
|
|
28
27
|
default: string;
|
|
29
28
|
} & ZTypeBase;
|
|
30
|
-
|
|
29
|
+
type ZTypePercent = {
|
|
30
|
+
value: 'percent';
|
|
31
|
+
precision?: number;
|
|
32
|
+
min?: number;
|
|
33
|
+
max?: number;
|
|
34
|
+
step?: number;
|
|
35
|
+
default: string;
|
|
36
|
+
} & ZTypeBase;
|
|
37
|
+
type ZTypeRegularColor = {
|
|
38
|
+
value: 'regularColor';
|
|
39
|
+
default: string;
|
|
40
|
+
} & ZTypeBase;
|
|
41
|
+
type ZTypeThemeColor = {
|
|
42
|
+
value: 'themeColor';
|
|
43
|
+
default: string;
|
|
44
|
+
} & ZTypeBase;
|
|
45
|
+
export type ZType = ZTypeWord | ZTypePixel | ZTypePercent | ZTypeRegularColor | ZTypeThemeColor;
|
|
31
46
|
type ZPropertyBranch = {
|
|
32
47
|
key: string;
|
|
33
48
|
name: string;
|
|
@@ -77,7 +92,7 @@ type ZPropertyJsonEditor = {
|
|
|
77
92
|
} & ZPropertyBase;
|
|
78
93
|
type ZPropertyMultiTypes = {
|
|
79
94
|
ui: 'multiTypes';
|
|
80
|
-
types: 'borderWidthTypesV1' | 'leftRightTypesV1' | 'marginTypesV1' | 'paddingTypesV1' | 'sizeTypesV1' | 'tableColumnAlignTypesV1' | 'topBottomTypesV1';
|
|
95
|
+
types: 'borderWidthTypesV1' | 'colorTypesV1' | 'leftRightTypesV1' | 'marginTypesV1' | 'paddingTypesV1' | 'sizeTypesV1' | 'tableColumnAlignTypesV1' | 'topBottomTypesV1';
|
|
81
96
|
default: string;
|
|
82
97
|
} & ZPropertyBase;
|
|
83
98
|
type ZPropertySelectComp = {
|
package/dist/utils/misc.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export declare function genId(len: number): string;
|
|
2
|
-
export declare function
|
|
3
|
-
export declare function
|
|
4
|
-
export declare function
|
|
5
|
-
export declare function
|
|
2
|
+
export declare function isPixel(v: unknown): boolean;
|
|
3
|
+
export declare function parsePixel(v: unknown): number | undefined;
|
|
4
|
+
export declare function isPercent(v: unknown): boolean;
|
|
5
|
+
export declare function parsePercent(v: unknown): number | undefined;
|
|
6
|
+
export declare function isHexColor(v: unknown): boolean;
|
|
7
|
+
export declare function isThemeColor(v: unknown): boolean;
|
|
6
8
|
export declare const breakpoints: string[];
|
|
7
9
|
export declare const reverseBreakpoints: string[];
|
|
8
10
|
export type Breakpoint = (typeof breakpoints)[number];
|
package/package.json
CHANGED