x-runtime-lib 0.6.36 → 0.6.38

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.
@@ -7,10 +7,6 @@ type ZTypeBase = {
7
7
  value: string;
8
8
  validator: (v: any) => boolean;
9
9
  };
10
- type ZTypeUndefined = {
11
- ui: 'undefined';
12
- default: undefined;
13
- } & ZTypeBase;
14
10
  type ZTypeWord = {
15
11
  ui: 'word';
16
12
  default: string;
@@ -23,7 +19,7 @@ type ZTypeNumInput = {
23
19
  step?: number;
24
20
  default: string;
25
21
  } & ZTypeBase;
26
- export type ZType = ZTypeUndefined | ZTypeWord | ZTypeNumInput;
22
+ export type ZType = ZTypeWord | ZTypeNumInput;
27
23
  export type ZSlot = {
28
24
  key: string;
29
25
  name: string;
@@ -107,11 +103,6 @@ type ZPropCompSelect = {
107
103
  readonly?: boolean;
108
104
  default: string | undefined;
109
105
  } & ZPropBase;
110
- type ZPropSlotSelect = {
111
- ui: 'slotSelect';
112
- readonly?: boolean;
113
- default: string | undefined;
114
- } & ZPropBase;
115
106
  export type ZProp = ({
116
107
  array?: false;
117
108
  } & ZPropBranch) | ({
@@ -157,9 +148,7 @@ export type ZProp = ({
157
148
  } & ZPropCompSelect) | ({
158
149
  array: true;
159
150
  defaultArray: string[];
160
- } & ZPropCompSelect) | ({
161
- array?: undefined;
162
- } & ZPropSlotSelect);
151
+ } & ZPropCompSelect);
163
152
  export type ZProps = {
164
153
  [key: string]: ZProp[];
165
154
  };
@@ -1,5 +1,4 @@
1
1
  export declare function genId(len: number): string;
2
- export declare function isEmptyStr(v: unknown): boolean;
3
2
  export declare function isPixelStr(v: unknown): boolean;
4
3
  export declare function isPercentStr(v: unknown): boolean;
5
4
  export declare function parsePixelStr(v: unknown): number | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.6.36",
4
+ "version": "0.6.38",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",