x-runtime-lib 0.9.54 → 0.9.56
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/index.d.ts +35 -5
- package/dist/index.js +1056 -870
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -119,7 +119,7 @@ export declare function duplicateNodePair(src: NodePair): NodePair;
|
|
|
119
119
|
|
|
120
120
|
export declare function duplicateNodePairs(srcs: NodePair[]): NodePair[];
|
|
121
121
|
|
|
122
|
-
export declare const elementKeys: readonly ["globality_v1", "inline_slot_v1", "multiple_ref_v1", "multiple_slot_v1", "ref_v1", "render_switch_v1", "slot_v1", "ui_activator_v1", "ui_avatar_v1", "ui_badge_v1", "ui_banner_v1", "ui_breadcrumbs_v1", "ui_bar_chart_v1", "ui_btn_v1", "ui_btn_toggle_v1", "ui_card_v1", "ui_checkbox_v1", "ui_chip_v1", "ui_chip_group_v1", "ui_color_picker_v1", "ui_column_v1", "ui_combobox_v1", "ui_container_v1", "ui_data_table_client_v1", "ui_data_table_server_v1", "ui_date_picker_v1", "ui_dialog_v1", "ui_divider_v1", "ui_expansion_panel_v1", "ui_fab_v1", "ui_file_input_v1", "ui_flexbox_v1", "ui_flexbox_entry_v1", "ui_form_v1", "ui_hover_v1", "ui_icon_v1", "ui_item_group_v1", "ui_line_chart_v1", "ui_list_v1", "ui_menu_v1", "ui_number_input_v1", "ui_opt_input_v1", "ui_pagination_v1", "ui_positioner_v1", "ui_progress_circular_v1", "ui_progress_linear_v1", "ui_radio_v1", "ui_radio_group_v1", "ui_range_slider_v1", "ui_rating_v1", "ui_row_v1", "ui_select_v1", "ui_slider_v1", "ui_slide_group_v1", "ui_spacer_v1", "ui_speed_dial_v1", "ui_stepper_v1", "ui_stepper_header_v1", "ui_stepper_item_v1", "ui_stepper_window_v1", "ui_stepper_window_item_v1", "ui_switch_v1", "ui_tab_v1", "ui_table_v1", "ui_table_body_v1", "ui_table_body_cell_v1", "ui_table_head_v1", "ui_table_head_cell_v1", "ui_table_row_v1", "ui_tabs_v1", "ui_text_v1", "ui_textarea_v1", "ui_text_field_v1", "ui_timeline_v1", "ui_timeline_item_v1", "ui_tooltip_v1", "ui_windows_v1", "3d_ambient_light_v1", "3d_box_geometry_v1", "3d_directional_light_v1", "3d_group_v1", "3d_keyboard_controls_v1", "3d_map_controls_v1", "3d_mesh_v1", "3d_mesh_basic_material_v1", "3d_orbit_controls_v1", "3d_orthographic_camera_v1", "3d_perspective_camera_v1", "3d_point_light_v1", "3d_sphere_geometry_v1", "3d_spot_light_v1"];
|
|
122
|
+
export declare const elementKeys: readonly ["globality_v1", "inline_slot_v1", "multiple_ref_v1", "multiple_slot_v1", "ref_v1", "render_switch_v1", "slot_v1", "ui_activator_v1", "ui_avatar_v1", "ui_badge_v1", "ui_banner_v1", "ui_breadcrumbs_v1", "ui_bar_chart_v1", "ui_btn_v1", "ui_btn_toggle_v1", "ui_card_v1", "ui_checkbox_v1", "ui_chip_v1", "ui_chip_group_v1", "ui_color_picker_v1", "ui_column_v1", "ui_combobox_v1", "ui_container_v1", "ui_data_table_client_v1", "ui_data_table_server_v1", "ui_date_picker_v1", "ui_dialog_v1", "ui_divider_v1", "ui_expansion_panel_v1", "ui_fab_v1", "ui_file_input_v1", "ui_flexbox_v1", "ui_flexbox_entry_v1", "ui_form_v1", "ui_hover_v1", "ui_icon_v1", "ui_image_v1", "ui_item_group_v1", "ui_line_chart_v1", "ui_list_v1", "ui_menu_v1", "ui_number_input_v1", "ui_opt_input_v1", "ui_pagination_v1", "ui_positioner_v1", "ui_progress_circular_v1", "ui_progress_linear_v1", "ui_radio_v1", "ui_radio_group_v1", "ui_range_slider_v1", "ui_rating_v1", "ui_row_v1", "ui_select_v1", "ui_slider_v1", "ui_slide_group_v1", "ui_spacer_v1", "ui_speed_dial_v1", "ui_stepper_v1", "ui_stepper_header_v1", "ui_stepper_item_v1", "ui_stepper_window_v1", "ui_stepper_window_item_v1", "ui_switch_v1", "ui_tab_v1", "ui_table_v1", "ui_table_body_v1", "ui_table_body_cell_v1", "ui_table_head_v1", "ui_table_head_cell_v1", "ui_table_row_v1", "ui_tabs_v1", "ui_text_v1", "ui_textarea_v1", "ui_text_field_v1", "ui_timeline_v1", "ui_timeline_item_v1", "ui_tooltip_v1", "ui_windows_v1", "3d_ambient_light_v1", "3d_box_geometry_v1", "3d_directional_light_v1", "3d_group_v1", "3d_keyboard_controls_v1", "3d_map_controls_v1", "3d_mesh_v1", "3d_mesh_basic_material_v1", "3d_orbit_controls_v1", "3d_orthographic_camera_v1", "3d_perspective_camera_v1", "3d_point_light_v1", "3d_sphere_geometry_v1", "3d_spot_light_v1"];
|
|
123
123
|
|
|
124
124
|
export declare interface ElementProps {
|
|
125
125
|
nodeId: string;
|
|
@@ -187,7 +187,22 @@ export declare function getNodeLite(nodeLites: NodeLite[], id: string): NodeLite
|
|
|
187
187
|
|
|
188
188
|
export declare function getPropertyDefault(property: ZProperty): any;
|
|
189
189
|
|
|
190
|
-
export declare function getPropertyDefaultArray(property: ZProperty): any[] | string[] | (number | null)[] | boolean[] | (
|
|
190
|
+
export declare function getPropertyDefaultArray(property: ZProperty): any[] | string[] | (number | null)[] | boolean[] | ({
|
|
191
|
+
id: string;
|
|
192
|
+
name: string;
|
|
193
|
+
properties?: {
|
|
194
|
+
id: string;
|
|
195
|
+
name: string;
|
|
196
|
+
type: Type;
|
|
197
|
+
value: any;
|
|
198
|
+
}[];
|
|
199
|
+
} | null)[] | ({
|
|
200
|
+
id: string;
|
|
201
|
+
name: string;
|
|
202
|
+
} | null)[] | ({
|
|
203
|
+
id: string;
|
|
204
|
+
names: string[];
|
|
205
|
+
} | null)[] | ("" | "required" | "email" | "minLength" | "maxLength" | "length")[];
|
|
191
206
|
|
|
192
207
|
export declare function getRadius(val: unknown): string | undefined;
|
|
193
208
|
|
|
@@ -867,7 +882,10 @@ export declare type ZProperty = ({
|
|
|
867
882
|
|
|
868
883
|
declare type ZPropertyAdaptSlot = {
|
|
869
884
|
ui: 'adaptSlot';
|
|
870
|
-
default:
|
|
885
|
+
default: {
|
|
886
|
+
id: string;
|
|
887
|
+
names: string[];
|
|
888
|
+
} | null;
|
|
871
889
|
} & ZPropertyBase;
|
|
872
890
|
|
|
873
891
|
declare type ZPropertyBase = {
|
|
@@ -887,7 +905,16 @@ declare type ZPropertyBranch = {
|
|
|
887
905
|
|
|
888
906
|
declare type ZPropertyComp = {
|
|
889
907
|
ui: 'comp';
|
|
890
|
-
default:
|
|
908
|
+
default: {
|
|
909
|
+
id: string;
|
|
910
|
+
name: string;
|
|
911
|
+
properties?: {
|
|
912
|
+
id: string;
|
|
913
|
+
name: string;
|
|
914
|
+
type: Type;
|
|
915
|
+
value: any;
|
|
916
|
+
}[];
|
|
917
|
+
} | null;
|
|
891
918
|
} & ZPropertyBase;
|
|
892
919
|
|
|
893
920
|
declare type ZPropertyDummy = {
|
|
@@ -943,7 +970,10 @@ declare type ZPropertySelect = {
|
|
|
943
970
|
|
|
944
971
|
declare type ZPropertySlot = {
|
|
945
972
|
ui: 'slot';
|
|
946
|
-
default:
|
|
973
|
+
default: {
|
|
974
|
+
id: string;
|
|
975
|
+
name: string;
|
|
976
|
+
} | null;
|
|
947
977
|
} & ZPropertyBase;
|
|
948
978
|
|
|
949
979
|
declare type ZPropertySwitch = {
|