x-runtime-lib 0.5.11 → 0.5.13

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.
@@ -18,6 +18,14 @@ type ZTypeInput = {
18
18
  step: number;
19
19
  } & ZTypeBase;
20
20
  export type ZType = ZTypeWord | ZTypeInput;
21
+ export type ZSlot = {
22
+ key: string;
23
+ name: string;
24
+ params: {
25
+ key: string;
26
+ name: string;
27
+ }[];
28
+ };
21
29
  export type ZEvent = {
22
30
  key: string;
23
31
  name: string;
@@ -97,6 +105,11 @@ type ZPropCompSelect = {
97
105
  readonly?: boolean;
98
106
  default: string;
99
107
  } & ZPropBase;
108
+ type ZPropSlotSelect = {
109
+ ui: 'slotSelect';
110
+ readonly?: boolean;
111
+ default: string;
112
+ } & ZPropBase;
100
113
  export type ZProp = ({
101
114
  array?: false;
102
115
  } & ZPropBranch) | ({
@@ -142,7 +155,9 @@ export type ZProp = ({
142
155
  } & ZPropCompSelect) | ({
143
156
  array: true;
144
157
  defaultArray: string[];
145
- } & ZPropCompSelect);
158
+ } & ZPropCompSelect) | ({
159
+ array?: undefined;
160
+ } & ZPropSlotSelect);
146
161
  export type ZProps = {
147
162
  [key: string]: ZProp[];
148
163
  };
@@ -150,7 +165,7 @@ export type ZElement = {
150
165
  key: string;
151
166
  name: string;
152
167
  comp: any;
153
- leaf: boolean;
168
+ slots: ZSlot[];
154
169
  events: ZEvent[];
155
170
  methods: ZMethod[];
156
171
  props: ZProps;
@@ -169,6 +184,7 @@ export type ZPkg = {
169
184
  elements: Set<string>;
170
185
  globalityKey: string;
171
186
  refKey: string;
187
+ packageKey: string;
172
188
  groups: ZGroup[];
173
189
  };
174
190
  export type ZPkgs = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.5.11",
4
+ "version": "0.5.13",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",