x-runtime-lib 0.8.82 → 0.8.84

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.
@@ -84,6 +84,11 @@ type ZPropertyCompSelect = {
84
84
  readonly?: boolean;
85
85
  default: string | undefined;
86
86
  } & ZPropertyBase;
87
+ type ZPropertySlotSelect = {
88
+ ui: 'slotSelect';
89
+ readonly?: boolean;
90
+ default: string | undefined;
91
+ } & ZPropertyBase;
87
92
  export type ZProperty = ({
88
93
  array?: false;
89
94
  } & ZPropertyBranch) | ({
@@ -134,14 +139,16 @@ export type ZProperty = ({
134
139
  } & ZPropertyCompSelect) | ({
135
140
  array: true;
136
141
  defaultArray: string[];
137
- } & ZPropertyCompSelect);
138
- export type ZProperties = {
139
- [key: string]: ZProperty[];
140
- };
142
+ } & ZPropertyCompSelect) | ({
143
+ array?: false;
144
+ } & ZPropertySlotSelect) | ({
145
+ array: true;
146
+ defaultArray: string[];
147
+ } & ZPropertySlotSelect);
141
148
  export type ZEvent = {
142
149
  key: string;
143
150
  name: string;
144
- params: {
151
+ params?: {
145
152
  key: string;
146
153
  name: string;
147
154
  type: Type;
@@ -150,50 +157,38 @@ export type ZEvent = {
150
157
  export type ZMethod = {
151
158
  key: string;
152
159
  name: string;
153
- inputs: {
160
+ inputs?: {
154
161
  key: string;
155
162
  name: string;
156
163
  type: Type;
157
164
  }[];
158
- outputs: {
165
+ outputs?: {
159
166
  key: string;
160
167
  name: string;
161
168
  type: Type;
162
169
  }[];
163
170
  };
164
- export type ZSlotProp = {
165
- key: string;
166
- name: string;
167
- type: Type;
168
- };
169
- export type ZSlotMethod = {
171
+ export type ZSlot = {
170
172
  key: string;
171
173
  name: string;
172
- inputs: {
173
- key: string;
174
- name: string;
175
- type: Type;
176
- }[];
177
- outputs: {
174
+ properties?: {
178
175
  key: string;
179
176
  name: string;
180
177
  type: Type;
181
178
  }[];
182
- };
183
- export type ZSlot = {
184
- key: string;
185
- name: string;
186
- props: ZSlotProp[];
187
- methods: ZSlotMethod[];
179
+ events?: ZEvent[];
180
+ methods?: ZMethod[];
188
181
  };
189
182
  export type ZElement = {
190
183
  key: string;
191
184
  name: string;
192
185
  comp: any;
193
- properties: ZProperties;
194
- events: ZEvent[];
195
- methods: ZMethod[];
196
- slots: ZSlot[];
186
+ properties: {
187
+ [key: string]: ZProperty[];
188
+ };
189
+ events?: ZEvent[];
190
+ methods?: ZMethod[];
191
+ slots?: ZSlot[];
197
192
  leaf?: boolean;
198
193
  internal?: boolean;
199
194
  teleport?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.8.82",
4
+ "version": "0.8.84",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",