@feltmaps/js-sdk 1.7.0-next.2 → 1.7.0-next.20

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.
@@ -1,13 +1,13 @@
1
1
  import { z, ZodError } from 'zod';
2
- import { bw as UnwrapPromise, F as FeltController, z as zInfer, c as ElementChangeCallbackParams, f as ElementGroupChangeCallbackParams, E as Element, D as MapInteractionEvent, $ as LayerChangeCallbackParams, a2 as LayerGroupChangeCallbackParams, a5 as LegendItemChangeCallbackParams, at as LayerFilters, as as LayerBoundaries, ap as FilterTernary, aO as EntityNode, bn as ToolType, bl as ToolSettingsChangeEvent, bu as ViewportState, bx as UnionToIntersection, by as PromiseOrNot } from './controller-D6A8BZsm.cjs';
2
+ import { F as FeltController, cf as UnwrapPromise, z as zInfer, c as ElementChangeCallbackParams, f as ElementGroupChangeCallbackParams, E as Element, D as MapInteractionEvent, ap as FilterTernary, $ as LayerChangeCallbackParams, a2 as LayerGroupChangeCallbackParams, a5 as LegendItemChangeCallbackParams, at as LayerFilters, as as LayerBoundaries, aO as EntityNode, bn as ToolType, bl as ToolSettingsChangeEvent, cg as uiActionTriggerSchema, bS as UIPanelElementCreate, ch as UIPanelElementCreateClonable, ci as uiPanelCreateSchema, cj as UIButtonElementCreateClonable, ck as MakeClonableSchema, bD as UITextElementCreate, bJ as UIDividerElementCreate, bM as UITextInputElementCreate, bP as UISelectElementCreate, bG as UIFlexibleSpaceElementCreate, cl as UIButtonRowElementCreateClonable, b$ as UICheckboxGroupElementCreate, c2 as UIRadioGroupElementCreate, c5 as UIToggleGroupElementCreate, cd as ViewportState, cm as PromiseOrNot, cn as UnionToIntersection } from './controller-9JZIE1UX.cjs';
3
3
 
4
4
  type FeltControllerFunctions = Omit<FeltController, "iframe">;
5
5
  type Method<TRequest extends {
6
6
  type: keyof FeltControllerFunctions;
7
7
  params?: any;
8
- }> = {
8
+ }, TResponse = UnwrapPromise<ReturnType<FeltControllerFunctions[TRequest["type"]]>>> = {
9
9
  request: TRequest;
10
- response: UnwrapPromise<ReturnType<FeltControllerFunctions[TRequest["type"]]>>;
10
+ response: TResponse;
11
11
  };
12
12
  type Listener<TOptions, TParams> = {
13
13
  options: TOptions;
@@ -2816,11 +2816,11 @@ declare const GetFeaturesMessage: z.ZodObject<{
2816
2816
  coordinates: [number, number][][][];
2817
2817
  } | undefined;
2818
2818
  filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2819
+ search?: string | undefined;
2819
2820
  sorting?: {
2820
2821
  attribute: string;
2821
2822
  direction: "asc" | "desc";
2822
2823
  } | undefined;
2823
- search?: string | undefined;
2824
2824
  pagination?: string | null | undefined;
2825
2825
  }, {
2826
2826
  layerId: string;
@@ -2832,11 +2832,11 @@ declare const GetFeaturesMessage: z.ZodObject<{
2832
2832
  coordinates: [number, number][][][];
2833
2833
  } | undefined;
2834
2834
  filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2835
+ search?: string | undefined;
2835
2836
  sorting?: {
2836
2837
  attribute: string;
2837
2838
  direction: "asc" | "desc";
2838
2839
  } | undefined;
2839
- search?: string | undefined;
2840
2840
  pagination?: string | null | undefined;
2841
2841
  }>;
2842
2842
  }, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -2850,11 +2850,11 @@ declare const GetFeaturesMessage: z.ZodObject<{
2850
2850
  coordinates: [number, number][][][];
2851
2851
  } | undefined;
2852
2852
  filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2853
+ search?: string | undefined;
2853
2854
  sorting?: {
2854
2855
  attribute: string;
2855
2856
  direction: "asc" | "desc";
2856
2857
  } | undefined;
2857
- search?: string | undefined;
2858
2858
  pagination?: string | null | undefined;
2859
2859
  };
2860
2860
  type: "getFeatures";
@@ -2869,11 +2869,11 @@ declare const GetFeaturesMessage: z.ZodObject<{
2869
2869
  coordinates: [number, number][][][];
2870
2870
  } | undefined;
2871
2871
  filters?: boolean | [string | null, "in" | "ni", (string | number | boolean | null)[] | null] | [string | null, "lt" | "gt" | "le" | "ge" | "eq" | "ne" | "cn" | "nc" | "is" | "isnt", string | number | boolean | null] | FilterTernary | null | undefined;
2872
+ search?: string | undefined;
2872
2873
  sorting?: {
2873
2874
  attribute: string;
2874
2875
  direction: "asc" | "desc";
2875
2876
  } | undefined;
2876
- search?: string | undefined;
2877
2877
  pagination?: string | null | undefined;
2878
2878
  };
2879
2879
  type: "getFeatures";
@@ -3707,23 +3707,23 @@ declare const ClearSelectionMessage: z.ZodObject<{
3707
3707
  features: z.ZodOptional<z.ZodBoolean>;
3708
3708
  elements: z.ZodOptional<z.ZodBoolean>;
3709
3709
  }, "strip", z.ZodTypeAny, {
3710
- features?: boolean | undefined;
3711
3710
  elements?: boolean | undefined;
3712
- }, {
3713
3711
  features?: boolean | undefined;
3712
+ }, {
3714
3713
  elements?: boolean | undefined;
3714
+ features?: boolean | undefined;
3715
3715
  }>>;
3716
3716
  }, z.UnknownKeysParam, z.ZodTypeAny, {
3717
3717
  type: "clearSelection";
3718
3718
  params?: {
3719
- features?: boolean | undefined;
3720
3719
  elements?: boolean | undefined;
3720
+ features?: boolean | undefined;
3721
3721
  } | undefined;
3722
3722
  }, {
3723
3723
  type: "clearSelection";
3724
3724
  params?: {
3725
- features?: boolean | undefined;
3726
3725
  elements?: boolean | undefined;
3726
+ features?: boolean | undefined;
3727
3727
  } | undefined;
3728
3728
  }>;
3729
3729
  type SelectionSchema = {
@@ -3743,10 +3743,10 @@ declare const SetToolMessage: z.ZodObject<{
3743
3743
  type: z.ZodLiteral<"setTool">;
3744
3744
  params: z.ZodNullable<z.ZodEnum<["circle", "highlighter", "line", "marker", "note", "pin", "polygon", "route", "text", "link"]>>;
3745
3745
  }, z.UnknownKeysParam, z.ZodTypeAny, {
3746
- params: "text" | "note" | "circle" | "highlighter" | "line" | "link" | "marker" | "pin" | "polygon" | "route" | null;
3746
+ params: "text" | "link" | "note" | "circle" | "highlighter" | "line" | "marker" | "pin" | "polygon" | "route" | null;
3747
3747
  type: "setTool";
3748
3748
  }, {
3749
- params: "text" | "note" | "circle" | "highlighter" | "line" | "link" | "marker" | "pin" | "polygon" | "route" | null;
3749
+ params: "text" | "link" | "note" | "circle" | "highlighter" | "line" | "marker" | "pin" | "polygon" | "route" | null;
3750
3750
  type: "setTool";
3751
3751
  }>;
3752
3752
  declare const GetToolMessage: z.ZodObject<{
@@ -3767,6 +3767,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
3767
3767
  frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>>;
3768
3768
  afterCreation: z.ZodOptional<z.ZodEnum<["enter name", "add another", "select"]>>;
3769
3769
  }, {
3770
+ showInspector: z.ZodOptional<z.ZodBoolean>;
3770
3771
  tool: z.ZodLiteral<"pin">;
3771
3772
  }>, "strip", z.ZodTypeAny, {
3772
3773
  tool: "pin";
@@ -3774,12 +3775,14 @@ declare const SetToolSettingsMessage: z.ZodObject<{
3774
3775
  color?: string | undefined;
3775
3776
  frame?: "frame-circle" | "frame-square" | null | undefined;
3776
3777
  afterCreation?: "enter name" | "add another" | "select" | undefined;
3778
+ showInspector?: boolean | undefined;
3777
3779
  }, {
3778
3780
  tool: "pin";
3779
3781
  symbol?: string | undefined;
3780
3782
  color?: string | undefined;
3781
3783
  frame?: "frame-circle" | "frame-square" | null | undefined;
3782
3784
  afterCreation?: "enter name" | "add another" | "select" | undefined;
3785
+ showInspector?: boolean | undefined;
3783
3786
  }>, z.ZodObject<z.objectUtil.extendShape<{
3784
3787
  color: z.ZodOptional<z.ZodString>;
3785
3788
  strokeOpacity: z.ZodOptional<z.ZodNumber>;
@@ -3787,6 +3790,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
3787
3790
  strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
3788
3791
  distanceMarker: z.ZodOptional<z.ZodBoolean>;
3789
3792
  }, {
3793
+ showInspector: z.ZodOptional<z.ZodBoolean>;
3790
3794
  tool: z.ZodLiteral<"line">;
3791
3795
  }>, "strip", z.ZodTypeAny, {
3792
3796
  tool: "line";
@@ -3795,6 +3799,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
3795
3799
  strokeWidth?: number | undefined;
3796
3800
  strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
3797
3801
  distanceMarker?: boolean | undefined;
3802
+ showInspector?: boolean | undefined;
3798
3803
  }, {
3799
3804
  tool: "line";
3800
3805
  color?: string | undefined;
@@ -3802,6 +3807,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
3802
3807
  strokeWidth?: number | undefined;
3803
3808
  strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
3804
3809
  distanceMarker?: boolean | undefined;
3810
+ showInspector?: boolean | undefined;
3805
3811
  }>, z.ZodObject<z.objectUtil.extendShape<{
3806
3812
  color: z.ZodOptional<z.ZodString>;
3807
3813
  strokeOpacity: z.ZodOptional<z.ZodNumber>;
@@ -3811,6 +3817,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
3811
3817
  routingMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>>;
3812
3818
  endCaps: z.ZodOptional<z.ZodBoolean>;
3813
3819
  }, {
3820
+ showInspector: z.ZodOptional<z.ZodBoolean>;
3814
3821
  tool: z.ZodLiteral<"route">;
3815
3822
  }>, "strip", z.ZodTypeAny, {
3816
3823
  tool: "route";
@@ -3821,6 +3828,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
3821
3828
  distanceMarker?: boolean | undefined;
3822
3829
  routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
3823
3830
  endCaps?: boolean | undefined;
3831
+ showInspector?: boolean | undefined;
3824
3832
  }, {
3825
3833
  tool: "route";
3826
3834
  color?: string | undefined;
@@ -3830,6 +3838,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
3830
3838
  distanceMarker?: boolean | undefined;
3831
3839
  routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
3832
3840
  endCaps?: boolean | undefined;
3841
+ showInspector?: boolean | undefined;
3833
3842
  }>, z.ZodObject<z.objectUtil.extendShape<{
3834
3843
  color: z.ZodOptional<z.ZodString>;
3835
3844
  strokeOpacity: z.ZodOptional<z.ZodNumber>;
@@ -3838,6 +3847,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
3838
3847
  fillOpacity: z.ZodOptional<z.ZodNumber>;
3839
3848
  areaMarker: z.ZodOptional<z.ZodBoolean>;
3840
3849
  }, {
3850
+ showInspector: z.ZodOptional<z.ZodBoolean>;
3841
3851
  tool: z.ZodLiteral<"polygon">;
3842
3852
  }>, "strip", z.ZodTypeAny, {
3843
3853
  tool: "polygon";
@@ -3847,6 +3857,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
3847
3857
  strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
3848
3858
  fillOpacity?: number | undefined;
3849
3859
  areaMarker?: boolean | undefined;
3860
+ showInspector?: boolean | undefined;
3850
3861
  }, {
3851
3862
  tool: "polygon";
3852
3863
  color?: string | undefined;
@@ -3855,6 +3866,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
3855
3866
  strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
3856
3867
  fillOpacity?: number | undefined;
3857
3868
  areaMarker?: boolean | undefined;
3869
+ showInspector?: boolean | undefined;
3858
3870
  }>, z.ZodObject<z.objectUtil.extendShape<{
3859
3871
  color: z.ZodOptional<z.ZodString>;
3860
3872
  strokeOpacity: z.ZodOptional<z.ZodNumber>;
@@ -3863,6 +3875,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
3863
3875
  fillOpacity: z.ZodOptional<z.ZodNumber>;
3864
3876
  radiusMarker: z.ZodOptional<z.ZodBoolean>;
3865
3877
  }, {
3878
+ showInspector: z.ZodOptional<z.ZodBoolean>;
3866
3879
  tool: z.ZodLiteral<"circle">;
3867
3880
  }>, "strip", z.ZodTypeAny, {
3868
3881
  tool: "circle";
@@ -3872,6 +3885,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
3872
3885
  strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
3873
3886
  fillOpacity?: number | undefined;
3874
3887
  radiusMarker?: boolean | undefined;
3888
+ showInspector?: boolean | undefined;
3875
3889
  }, {
3876
3890
  tool: "circle";
3877
3891
  color?: string | undefined;
@@ -3880,28 +3894,33 @@ declare const SetToolSettingsMessage: z.ZodObject<{
3880
3894
  strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
3881
3895
  fillOpacity?: number | undefined;
3882
3896
  radiusMarker?: boolean | undefined;
3897
+ showInspector?: boolean | undefined;
3883
3898
  }>, z.ZodObject<z.objectUtil.extendShape<{
3884
3899
  color: z.ZodOptional<z.ZodString>;
3885
3900
  opacity: z.ZodOptional<z.ZodNumber>;
3886
3901
  size: z.ZodOptional<z.ZodNumber>;
3887
3902
  }, {
3903
+ showInspector: z.ZodOptional<z.ZodBoolean>;
3888
3904
  tool: z.ZodLiteral<"marker">;
3889
3905
  }>, "strip", z.ZodTypeAny, {
3890
3906
  tool: "marker";
3891
3907
  color?: string | undefined;
3892
3908
  opacity?: number | undefined;
3893
3909
  size?: number | undefined;
3910
+ showInspector?: boolean | undefined;
3894
3911
  }, {
3895
3912
  tool: "marker";
3896
3913
  color?: string | undefined;
3897
3914
  opacity?: number | undefined;
3898
3915
  size?: number | undefined;
3916
+ showInspector?: boolean | undefined;
3899
3917
  }>, z.ZodObject<z.objectUtil.extendShape<{
3900
3918
  color: z.ZodOptional<z.ZodString>;
3901
3919
  opacity: z.ZodOptional<z.ZodNumber>;
3902
3920
  renderHoles: z.ZodOptional<z.ZodBoolean>;
3903
3921
  size: z.ZodOptional<z.ZodNumber>;
3904
3922
  }, {
3923
+ showInspector: z.ZodOptional<z.ZodBoolean>;
3905
3924
  tool: z.ZodLiteral<"highlighter">;
3906
3925
  }>, "strip", z.ZodTypeAny, {
3907
3926
  tool: "highlighter";
@@ -3909,44 +3928,52 @@ declare const SetToolSettingsMessage: z.ZodObject<{
3909
3928
  opacity?: number | undefined;
3910
3929
  size?: number | undefined;
3911
3930
  renderHoles?: boolean | undefined;
3931
+ showInspector?: boolean | undefined;
3912
3932
  }, {
3913
3933
  tool: "highlighter";
3914
3934
  color?: string | undefined;
3915
3935
  opacity?: number | undefined;
3916
3936
  size?: number | undefined;
3917
3937
  renderHoles?: boolean | undefined;
3938
+ showInspector?: boolean | undefined;
3918
3939
  }>, z.ZodObject<z.objectUtil.extendShape<{
3919
3940
  color: z.ZodOptional<z.ZodString>;
3920
3941
  align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
3921
3942
  style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
3922
3943
  }, {
3944
+ showInspector: z.ZodOptional<z.ZodBoolean>;
3923
3945
  tool: z.ZodLiteral<"text">;
3924
3946
  }>, "strip", z.ZodTypeAny, {
3925
3947
  tool: "text";
3926
3948
  color?: string | undefined;
3927
3949
  align?: "center" | "left" | "right" | undefined;
3928
3950
  style?: "italic" | "light" | "regular" | "caps" | undefined;
3951
+ showInspector?: boolean | undefined;
3929
3952
  }, {
3930
3953
  tool: "text";
3931
3954
  color?: string | undefined;
3932
3955
  align?: "center" | "left" | "right" | undefined;
3933
3956
  style?: "italic" | "light" | "regular" | "caps" | undefined;
3957
+ showInspector?: boolean | undefined;
3934
3958
  }>, z.ZodObject<z.objectUtil.extendShape<{
3935
3959
  color: z.ZodOptional<z.ZodString>;
3936
3960
  align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
3937
3961
  style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
3938
3962
  }, {
3963
+ showInspector: z.ZodOptional<z.ZodBoolean>;
3939
3964
  tool: z.ZodLiteral<"note">;
3940
3965
  }>, "strip", z.ZodTypeAny, {
3941
3966
  tool: "note";
3942
3967
  color?: string | undefined;
3943
3968
  align?: "center" | "left" | "right" | undefined;
3944
3969
  style?: "italic" | "light" | "regular" | "caps" | undefined;
3970
+ showInspector?: boolean | undefined;
3945
3971
  }, {
3946
3972
  tool: "note";
3947
3973
  color?: string | undefined;
3948
3974
  align?: "center" | "left" | "right" | undefined;
3949
3975
  style?: "italic" | "light" | "regular" | "caps" | undefined;
3976
+ showInspector?: boolean | undefined;
3950
3977
  }>]>;
3951
3978
  }, z.UnknownKeysParam, z.ZodTypeAny, {
3952
3979
  params: {
@@ -3955,6 +3982,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
3955
3982
  color?: string | undefined;
3956
3983
  frame?: "frame-circle" | "frame-square" | null | undefined;
3957
3984
  afterCreation?: "enter name" | "add another" | "select" | undefined;
3985
+ showInspector?: boolean | undefined;
3958
3986
  } | {
3959
3987
  tool: "line";
3960
3988
  color?: string | undefined;
@@ -3962,6 +3990,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
3962
3990
  strokeWidth?: number | undefined;
3963
3991
  strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
3964
3992
  distanceMarker?: boolean | undefined;
3993
+ showInspector?: boolean | undefined;
3965
3994
  } | {
3966
3995
  tool: "route";
3967
3996
  color?: string | undefined;
@@ -3971,6 +4000,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
3971
4000
  distanceMarker?: boolean | undefined;
3972
4001
  routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
3973
4002
  endCaps?: boolean | undefined;
4003
+ showInspector?: boolean | undefined;
3974
4004
  } | {
3975
4005
  tool: "polygon";
3976
4006
  color?: string | undefined;
@@ -3979,6 +4009,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
3979
4009
  strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
3980
4010
  fillOpacity?: number | undefined;
3981
4011
  areaMarker?: boolean | undefined;
4012
+ showInspector?: boolean | undefined;
3982
4013
  } | {
3983
4014
  tool: "circle";
3984
4015
  color?: string | undefined;
@@ -3987,27 +4018,32 @@ declare const SetToolSettingsMessage: z.ZodObject<{
3987
4018
  strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
3988
4019
  fillOpacity?: number | undefined;
3989
4020
  radiusMarker?: boolean | undefined;
4021
+ showInspector?: boolean | undefined;
3990
4022
  } | {
3991
4023
  tool: "marker";
3992
4024
  color?: string | undefined;
3993
4025
  opacity?: number | undefined;
3994
4026
  size?: number | undefined;
4027
+ showInspector?: boolean | undefined;
3995
4028
  } | {
3996
4029
  tool: "highlighter";
3997
4030
  color?: string | undefined;
3998
4031
  opacity?: number | undefined;
3999
4032
  size?: number | undefined;
4000
4033
  renderHoles?: boolean | undefined;
4034
+ showInspector?: boolean | undefined;
4001
4035
  } | {
4002
4036
  tool: "text";
4003
4037
  color?: string | undefined;
4004
4038
  align?: "center" | "left" | "right" | undefined;
4005
4039
  style?: "italic" | "light" | "regular" | "caps" | undefined;
4040
+ showInspector?: boolean | undefined;
4006
4041
  } | {
4007
4042
  tool: "note";
4008
4043
  color?: string | undefined;
4009
4044
  align?: "center" | "left" | "right" | undefined;
4010
4045
  style?: "italic" | "light" | "regular" | "caps" | undefined;
4046
+ showInspector?: boolean | undefined;
4011
4047
  };
4012
4048
  type: "setToolSettings";
4013
4049
  }, {
@@ -4017,6 +4053,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
4017
4053
  color?: string | undefined;
4018
4054
  frame?: "frame-circle" | "frame-square" | null | undefined;
4019
4055
  afterCreation?: "enter name" | "add another" | "select" | undefined;
4056
+ showInspector?: boolean | undefined;
4020
4057
  } | {
4021
4058
  tool: "line";
4022
4059
  color?: string | undefined;
@@ -4024,6 +4061,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
4024
4061
  strokeWidth?: number | undefined;
4025
4062
  strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
4026
4063
  distanceMarker?: boolean | undefined;
4064
+ showInspector?: boolean | undefined;
4027
4065
  } | {
4028
4066
  tool: "route";
4029
4067
  color?: string | undefined;
@@ -4033,6 +4071,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
4033
4071
  distanceMarker?: boolean | undefined;
4034
4072
  routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
4035
4073
  endCaps?: boolean | undefined;
4074
+ showInspector?: boolean | undefined;
4036
4075
  } | {
4037
4076
  tool: "polygon";
4038
4077
  color?: string | undefined;
@@ -4041,6 +4080,7 @@ declare const SetToolSettingsMessage: z.ZodObject<{
4041
4080
  strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
4042
4081
  fillOpacity?: number | undefined;
4043
4082
  areaMarker?: boolean | undefined;
4083
+ showInspector?: boolean | undefined;
4044
4084
  } | {
4045
4085
  tool: "circle";
4046
4086
  color?: string | undefined;
@@ -4049,27 +4089,32 @@ declare const SetToolSettingsMessage: z.ZodObject<{
4049
4089
  strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
4050
4090
  fillOpacity?: number | undefined;
4051
4091
  radiusMarker?: boolean | undefined;
4092
+ showInspector?: boolean | undefined;
4052
4093
  } | {
4053
4094
  tool: "marker";
4054
4095
  color?: string | undefined;
4055
4096
  opacity?: number | undefined;
4056
4097
  size?: number | undefined;
4098
+ showInspector?: boolean | undefined;
4057
4099
  } | {
4058
4100
  tool: "highlighter";
4059
4101
  color?: string | undefined;
4060
4102
  opacity?: number | undefined;
4061
4103
  size?: number | undefined;
4062
4104
  renderHoles?: boolean | undefined;
4105
+ showInspector?: boolean | undefined;
4063
4106
  } | {
4064
4107
  tool: "text";
4065
4108
  color?: string | undefined;
4066
4109
  align?: "center" | "left" | "right" | undefined;
4067
4110
  style?: "italic" | "light" | "regular" | "caps" | undefined;
4111
+ showInspector?: boolean | undefined;
4068
4112
  } | {
4069
4113
  tool: "note";
4070
4114
  color?: string | undefined;
4071
4115
  align?: "center" | "left" | "right" | undefined;
4072
4116
  style?: "italic" | "light" | "regular" | "caps" | undefined;
4117
+ showInspector?: boolean | undefined;
4073
4118
  };
4074
4119
  type: "setToolSettings";
4075
4120
  }>;
@@ -4096,6 +4141,1737 @@ type ToolsSchema = {
4096
4141
  };
4097
4142
  };
4098
4143
 
4144
+ declare const CreateActionTriggerMessage: z.ZodObject<{
4145
+ type: z.ZodLiteral<"createActionTrigger">;
4146
+ params: z.ZodObject<{
4147
+ actionTrigger: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4148
+ id: z.ZodOptional<z.ZodString>;
4149
+ onCreate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4150
+ id: z.ZodString;
4151
+ }, "strip", z.ZodTypeAny, {
4152
+ id: string;
4153
+ }, {
4154
+ id: string;
4155
+ }>], z.ZodUnknown>, z.ZodVoid>>;
4156
+ onDestroy: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4157
+ id: z.ZodString;
4158
+ }, "strip", z.ZodTypeAny, {
4159
+ id: string;
4160
+ }, {
4161
+ id: string;
4162
+ }>], z.ZodUnknown>, z.ZodVoid>>;
4163
+ }, {
4164
+ onCreate: z.ZodOptional<z.ZodString>;
4165
+ onDestroy: z.ZodOptional<z.ZodString>;
4166
+ }>, {
4167
+ type: z.ZodLiteral<"ActionTrigger">;
4168
+ label: z.ZodString;
4169
+ disabled: z.ZodOptional<z.ZodBoolean>;
4170
+ }>, {
4171
+ type: z.ZodUndefined;
4172
+ }>, {
4173
+ onTrigger: z.ZodString;
4174
+ }>, "strip", z.ZodTypeAny, {
4175
+ label: string;
4176
+ onTrigger: string;
4177
+ type?: undefined;
4178
+ id?: string | undefined;
4179
+ onCreate?: string | undefined;
4180
+ onDestroy?: string | undefined;
4181
+ disabled?: boolean | undefined;
4182
+ }, {
4183
+ label: string;
4184
+ onTrigger: string;
4185
+ type?: undefined;
4186
+ id?: string | undefined;
4187
+ onCreate?: string | undefined;
4188
+ onDestroy?: string | undefined;
4189
+ disabled?: boolean | undefined;
4190
+ }>;
4191
+ placement: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
4192
+ after: z.ZodString;
4193
+ }, "strip", z.ZodTypeAny, {
4194
+ after: string;
4195
+ }, {
4196
+ after: string;
4197
+ }>, z.ZodObject<{
4198
+ before: z.ZodString;
4199
+ }, "strip", z.ZodTypeAny, {
4200
+ before: string;
4201
+ }, {
4202
+ before: string;
4203
+ }>, z.ZodObject<{
4204
+ at: z.ZodEnum<["start", "end"]>;
4205
+ }, "strip", z.ZodTypeAny, {
4206
+ at: "start" | "end";
4207
+ }, {
4208
+ at: "start" | "end";
4209
+ }>]>>;
4210
+ }, "strip", z.ZodTypeAny, {
4211
+ actionTrigger: {
4212
+ label: string;
4213
+ onTrigger: string;
4214
+ type?: undefined;
4215
+ id?: string | undefined;
4216
+ onCreate?: string | undefined;
4217
+ onDestroy?: string | undefined;
4218
+ disabled?: boolean | undefined;
4219
+ };
4220
+ placement?: {
4221
+ after: string;
4222
+ } | {
4223
+ before: string;
4224
+ } | {
4225
+ at: "start" | "end";
4226
+ } | undefined;
4227
+ }, {
4228
+ actionTrigger: {
4229
+ label: string;
4230
+ onTrigger: string;
4231
+ type?: undefined;
4232
+ id?: string | undefined;
4233
+ onCreate?: string | undefined;
4234
+ onDestroy?: string | undefined;
4235
+ disabled?: boolean | undefined;
4236
+ };
4237
+ placement?: {
4238
+ after: string;
4239
+ } | {
4240
+ before: string;
4241
+ } | {
4242
+ at: "start" | "end";
4243
+ } | undefined;
4244
+ }>;
4245
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
4246
+ params: {
4247
+ actionTrigger: {
4248
+ label: string;
4249
+ onTrigger: string;
4250
+ type?: undefined;
4251
+ id?: string | undefined;
4252
+ onCreate?: string | undefined;
4253
+ onDestroy?: string | undefined;
4254
+ disabled?: boolean | undefined;
4255
+ };
4256
+ placement?: {
4257
+ after: string;
4258
+ } | {
4259
+ before: string;
4260
+ } | {
4261
+ at: "start" | "end";
4262
+ } | undefined;
4263
+ };
4264
+ type: "createActionTrigger";
4265
+ }, {
4266
+ params: {
4267
+ actionTrigger: {
4268
+ label: string;
4269
+ onTrigger: string;
4270
+ type?: undefined;
4271
+ id?: string | undefined;
4272
+ onCreate?: string | undefined;
4273
+ onDestroy?: string | undefined;
4274
+ disabled?: boolean | undefined;
4275
+ };
4276
+ placement?: {
4277
+ after: string;
4278
+ } | {
4279
+ before: string;
4280
+ } | {
4281
+ at: "start" | "end";
4282
+ } | undefined;
4283
+ };
4284
+ type: "createActionTrigger";
4285
+ }>;
4286
+ declare const UpdateActionTriggerMessage: z.ZodObject<{
4287
+ type: z.ZodLiteral<"updateActionTrigger">;
4288
+ params: z.ZodObject<{
4289
+ type: z.ZodOptional<z.ZodUndefined>;
4290
+ id: z.ZodString;
4291
+ onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4292
+ onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4293
+ label: z.ZodOptional<z.ZodString>;
4294
+ disabled: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4295
+ onTrigger: z.ZodOptional<z.ZodString>;
4296
+ }, "strip", z.ZodTypeAny, {
4297
+ id: string;
4298
+ type?: undefined;
4299
+ onCreate?: string | undefined;
4300
+ onDestroy?: string | undefined;
4301
+ label?: string | undefined;
4302
+ disabled?: boolean | undefined;
4303
+ onTrigger?: string | undefined;
4304
+ }, {
4305
+ id: string;
4306
+ type?: undefined;
4307
+ onCreate?: string | undefined;
4308
+ onDestroy?: string | undefined;
4309
+ label?: string | undefined;
4310
+ disabled?: boolean | undefined;
4311
+ onTrigger?: string | undefined;
4312
+ }>;
4313
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
4314
+ params: {
4315
+ id: string;
4316
+ type?: undefined;
4317
+ onCreate?: string | undefined;
4318
+ onDestroy?: string | undefined;
4319
+ label?: string | undefined;
4320
+ disabled?: boolean | undefined;
4321
+ onTrigger?: string | undefined;
4322
+ };
4323
+ type: "updateActionTrigger";
4324
+ }, {
4325
+ params: {
4326
+ id: string;
4327
+ type?: undefined;
4328
+ onCreate?: string | undefined;
4329
+ onDestroy?: string | undefined;
4330
+ label?: string | undefined;
4331
+ disabled?: boolean | undefined;
4332
+ onTrigger?: string | undefined;
4333
+ };
4334
+ type: "updateActionTrigger";
4335
+ }>;
4336
+ declare const DeleteActionTriggerMessage: z.ZodObject<{
4337
+ type: z.ZodLiteral<"deleteActionTrigger">;
4338
+ params: z.ZodString;
4339
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
4340
+ params: string;
4341
+ type: "deleteActionTrigger";
4342
+ }, {
4343
+ params: string;
4344
+ type: "deleteActionTrigger";
4345
+ }>;
4346
+ declare const CreatePanelIdMessage: z.ZodObject<{
4347
+ type: z.ZodLiteral<"createPanelId">;
4348
+ params: z.ZodVoid;
4349
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
4350
+ type: "createPanelId";
4351
+ params?: void | undefined;
4352
+ }, {
4353
+ type: "createPanelId";
4354
+ params?: void | undefined;
4355
+ }>;
4356
+ declare const CreateOrUpdatePanelMessage: z.ZodObject<{
4357
+ type: z.ZodLiteral<"createOrUpdatePanel">;
4358
+ params: z.ZodObject<{
4359
+ panel: z.ZodObject<z.objectUtil.extendShape<{
4360
+ type: z.ZodOptional<z.ZodLiteral<"Panel">>;
4361
+ id: z.ZodString;
4362
+ onCreate: z.ZodOptional<z.ZodString>;
4363
+ onDestroy: z.ZodOptional<z.ZodString>;
4364
+ title: z.ZodOptional<z.ZodString>;
4365
+ body: z.ZodOptional<z.ZodArray<z.ZodType<UIPanelElementCreate, z.ZodTypeDef, UIPanelElementCreate>, "many">>;
4366
+ footer: z.ZodOptional<z.ZodArray<z.ZodType<UIPanelElementCreate, z.ZodTypeDef, UIPanelElementCreate>, "many">>;
4367
+ onClickClose: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4368
+ id: z.ZodString;
4369
+ }, "strip", z.ZodTypeAny, {
4370
+ id: string;
4371
+ }, {
4372
+ id: string;
4373
+ }>], z.ZodUnknown>, z.ZodVoid>>;
4374
+ }, {
4375
+ onClickClose: z.ZodOptional<z.ZodString>;
4376
+ body: z.ZodOptional<z.ZodArray<z.ZodType<UIPanelElementCreateClonable, z.ZodTypeDef, UIPanelElementCreateClonable>, "many">>;
4377
+ footer: z.ZodOptional<z.ZodArray<z.ZodType<UIPanelElementCreateClonable, z.ZodTypeDef, UIPanelElementCreateClonable>, "many">>;
4378
+ }>, "strip", z.ZodTypeAny, {
4379
+ id: string;
4380
+ type?: "Panel" | undefined;
4381
+ onCreate?: string | undefined;
4382
+ onDestroy?: string | undefined;
4383
+ title?: string | undefined;
4384
+ body?: UIPanelElementCreateClonable[] | undefined;
4385
+ footer?: UIPanelElementCreateClonable[] | undefined;
4386
+ onClickClose?: string | undefined;
4387
+ }, {
4388
+ id: string;
4389
+ type?: "Panel" | undefined;
4390
+ onCreate?: string | undefined;
4391
+ onDestroy?: string | undefined;
4392
+ title?: string | undefined;
4393
+ body?: UIPanelElementCreateClonable[] | undefined;
4394
+ footer?: UIPanelElementCreateClonable[] | undefined;
4395
+ onClickClose?: string | undefined;
4396
+ }>;
4397
+ initialPlacement: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
4398
+ after: z.ZodString;
4399
+ }, "strip", z.ZodTypeAny, {
4400
+ after: string;
4401
+ }, {
4402
+ after: string;
4403
+ }>, z.ZodObject<{
4404
+ before: z.ZodString;
4405
+ }, "strip", z.ZodTypeAny, {
4406
+ before: string;
4407
+ }, {
4408
+ before: string;
4409
+ }>, z.ZodObject<{
4410
+ at: z.ZodEnum<["start", "end"]>;
4411
+ }, "strip", z.ZodTypeAny, {
4412
+ at: "start" | "end";
4413
+ }, {
4414
+ at: "start" | "end";
4415
+ }>]>>;
4416
+ }, "strip", z.ZodTypeAny, {
4417
+ panel: {
4418
+ id: string;
4419
+ type?: "Panel" | undefined;
4420
+ onCreate?: string | undefined;
4421
+ onDestroy?: string | undefined;
4422
+ title?: string | undefined;
4423
+ body?: UIPanelElementCreateClonable[] | undefined;
4424
+ footer?: UIPanelElementCreateClonable[] | undefined;
4425
+ onClickClose?: string | undefined;
4426
+ };
4427
+ initialPlacement?: {
4428
+ after: string;
4429
+ } | {
4430
+ before: string;
4431
+ } | {
4432
+ at: "start" | "end";
4433
+ } | undefined;
4434
+ }, {
4435
+ panel: {
4436
+ id: string;
4437
+ type?: "Panel" | undefined;
4438
+ onCreate?: string | undefined;
4439
+ onDestroy?: string | undefined;
4440
+ title?: string | undefined;
4441
+ body?: UIPanelElementCreateClonable[] | undefined;
4442
+ footer?: UIPanelElementCreateClonable[] | undefined;
4443
+ onClickClose?: string | undefined;
4444
+ };
4445
+ initialPlacement?: {
4446
+ after: string;
4447
+ } | {
4448
+ before: string;
4449
+ } | {
4450
+ at: "start" | "end";
4451
+ } | undefined;
4452
+ }>;
4453
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
4454
+ params: {
4455
+ panel: {
4456
+ id: string;
4457
+ type?: "Panel" | undefined;
4458
+ onCreate?: string | undefined;
4459
+ onDestroy?: string | undefined;
4460
+ title?: string | undefined;
4461
+ body?: UIPanelElementCreateClonable[] | undefined;
4462
+ footer?: UIPanelElementCreateClonable[] | undefined;
4463
+ onClickClose?: string | undefined;
4464
+ };
4465
+ initialPlacement?: {
4466
+ after: string;
4467
+ } | {
4468
+ before: string;
4469
+ } | {
4470
+ at: "start" | "end";
4471
+ } | undefined;
4472
+ };
4473
+ type: "createOrUpdatePanel";
4474
+ }, {
4475
+ params: {
4476
+ panel: {
4477
+ id: string;
4478
+ type?: "Panel" | undefined;
4479
+ onCreate?: string | undefined;
4480
+ onDestroy?: string | undefined;
4481
+ title?: string | undefined;
4482
+ body?: UIPanelElementCreateClonable[] | undefined;
4483
+ footer?: UIPanelElementCreateClonable[] | undefined;
4484
+ onClickClose?: string | undefined;
4485
+ };
4486
+ initialPlacement?: {
4487
+ after: string;
4488
+ } | {
4489
+ before: string;
4490
+ } | {
4491
+ at: "start" | "end";
4492
+ } | undefined;
4493
+ };
4494
+ type: "createOrUpdatePanel";
4495
+ }>;
4496
+ declare const DeletePanelMessage: z.ZodObject<{
4497
+ type: z.ZodLiteral<"deletePanel">;
4498
+ params: z.ZodString;
4499
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
4500
+ params: string;
4501
+ type: "deletePanel";
4502
+ }, {
4503
+ params: string;
4504
+ type: "deletePanel";
4505
+ }>;
4506
+ declare const CreatePanelElementsMessage: z.ZodObject<{
4507
+ type: z.ZodLiteral<"createPanelElements">;
4508
+ params: z.ZodObject<{
4509
+ panelId: z.ZodString;
4510
+ elements: z.ZodArray<z.ZodObject<{
4511
+ element: z.ZodType<UIPanelElementCreateClonable, z.ZodTypeDef, UIPanelElementCreateClonable>;
4512
+ container: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"body">, z.ZodLiteral<"footer">, z.ZodObject<{
4513
+ id: z.ZodString;
4514
+ }, "strip", z.ZodTypeAny, {
4515
+ id: string;
4516
+ }, {
4517
+ id: string;
4518
+ }>]>>;
4519
+ placement: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
4520
+ after: z.ZodString;
4521
+ }, "strip", z.ZodTypeAny, {
4522
+ after: string;
4523
+ }, {
4524
+ after: string;
4525
+ }>, z.ZodObject<{
4526
+ before: z.ZodString;
4527
+ }, "strip", z.ZodTypeAny, {
4528
+ before: string;
4529
+ }, {
4530
+ before: string;
4531
+ }>, z.ZodObject<{
4532
+ at: z.ZodEnum<["start", "end"]>;
4533
+ }, "strip", z.ZodTypeAny, {
4534
+ at: "start" | "end";
4535
+ }, {
4536
+ at: "start" | "end";
4537
+ }>]>>;
4538
+ }, "strip", z.ZodTypeAny, {
4539
+ element: UIPanelElementCreateClonable;
4540
+ placement?: {
4541
+ after: string;
4542
+ } | {
4543
+ before: string;
4544
+ } | {
4545
+ at: "start" | "end";
4546
+ } | undefined;
4547
+ container?: "body" | "footer" | {
4548
+ id: string;
4549
+ } | undefined;
4550
+ }, {
4551
+ element: UIPanelElementCreateClonable;
4552
+ placement?: {
4553
+ after: string;
4554
+ } | {
4555
+ before: string;
4556
+ } | {
4557
+ at: "start" | "end";
4558
+ } | undefined;
4559
+ container?: "body" | "footer" | {
4560
+ id: string;
4561
+ } | undefined;
4562
+ }>, "many">;
4563
+ }, "strip", z.ZodTypeAny, {
4564
+ panelId: string;
4565
+ elements: {
4566
+ element: UIPanelElementCreateClonable;
4567
+ placement?: {
4568
+ after: string;
4569
+ } | {
4570
+ before: string;
4571
+ } | {
4572
+ at: "start" | "end";
4573
+ } | undefined;
4574
+ container?: "body" | "footer" | {
4575
+ id: string;
4576
+ } | undefined;
4577
+ }[];
4578
+ }, {
4579
+ panelId: string;
4580
+ elements: {
4581
+ element: UIPanelElementCreateClonable;
4582
+ placement?: {
4583
+ after: string;
4584
+ } | {
4585
+ before: string;
4586
+ } | {
4587
+ at: "start" | "end";
4588
+ } | undefined;
4589
+ container?: "body" | "footer" | {
4590
+ id: string;
4591
+ } | undefined;
4592
+ }[];
4593
+ }>;
4594
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
4595
+ params: {
4596
+ panelId: string;
4597
+ elements: {
4598
+ element: UIPanelElementCreateClonable;
4599
+ placement?: {
4600
+ after: string;
4601
+ } | {
4602
+ before: string;
4603
+ } | {
4604
+ at: "start" | "end";
4605
+ } | undefined;
4606
+ container?: "body" | "footer" | {
4607
+ id: string;
4608
+ } | undefined;
4609
+ }[];
4610
+ };
4611
+ type: "createPanelElements";
4612
+ }, {
4613
+ params: {
4614
+ panelId: string;
4615
+ elements: {
4616
+ element: UIPanelElementCreateClonable;
4617
+ placement?: {
4618
+ after: string;
4619
+ } | {
4620
+ before: string;
4621
+ } | {
4622
+ at: "start" | "end";
4623
+ } | undefined;
4624
+ container?: "body" | "footer" | {
4625
+ id: string;
4626
+ } | undefined;
4627
+ }[];
4628
+ };
4629
+ type: "createPanelElements";
4630
+ }>;
4631
+ declare const UpdatePanelElementsMessage: z.ZodObject<{
4632
+ type: z.ZodLiteral<"updatePanelElements">;
4633
+ params: z.ZodObject<{
4634
+ panelId: z.ZodString;
4635
+ elements: z.ZodArray<z.ZodObject<{
4636
+ element: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4637
+ type: z.ZodLiteral<"Button">;
4638
+ label: z.ZodOptional<z.ZodString>;
4639
+ variant: z.ZodOptional<z.ZodOptional<z.ZodEnum<["filled", "transparent", "outlined"]>>>;
4640
+ tint: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "primary", "accent", "danger"]>>>;
4641
+ disabled: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4642
+ id: z.ZodString;
4643
+ onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4644
+ onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4645
+ onClick: z.ZodOptional<z.ZodString>;
4646
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
4647
+ type: "Button";
4648
+ id: string;
4649
+ onCreate?: string | undefined;
4650
+ onDestroy?: string | undefined;
4651
+ label?: string | undefined;
4652
+ disabled?: boolean | undefined;
4653
+ variant?: "filled" | "transparent" | "outlined" | undefined;
4654
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
4655
+ onClick?: string | undefined;
4656
+ }, {
4657
+ type: "Button";
4658
+ id: string;
4659
+ onCreate?: string | undefined;
4660
+ onDestroy?: string | undefined;
4661
+ label?: string | undefined;
4662
+ disabled?: boolean | undefined;
4663
+ variant?: "filled" | "transparent" | "outlined" | undefined;
4664
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
4665
+ onClick?: string | undefined;
4666
+ }>, z.ZodObject<{
4667
+ type: z.ZodLiteral<"Text">;
4668
+ content: z.ZodOptional<z.ZodString>;
4669
+ id: z.ZodString;
4670
+ onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4671
+ onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4672
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
4673
+ type: "Text";
4674
+ id: string;
4675
+ onCreate?: string | undefined;
4676
+ onDestroy?: string | undefined;
4677
+ content?: string | undefined;
4678
+ }, {
4679
+ type: "Text";
4680
+ id: string;
4681
+ onCreate?: string | undefined;
4682
+ onDestroy?: string | undefined;
4683
+ content?: string | undefined;
4684
+ }>, z.ZodObject<{
4685
+ type: z.ZodLiteral<"TextInput">;
4686
+ value: z.ZodOptional<z.ZodString>;
4687
+ placeholder: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4688
+ label: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4689
+ id: z.ZodString;
4690
+ onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4691
+ onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4692
+ onChange: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4693
+ onBlur: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4694
+ onFocus: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4695
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
4696
+ type: "TextInput";
4697
+ id: string;
4698
+ value?: string | undefined;
4699
+ onCreate?: string | undefined;
4700
+ onDestroy?: string | undefined;
4701
+ label?: string | undefined;
4702
+ placeholder?: string | undefined;
4703
+ onChange?: string | undefined;
4704
+ onBlur?: string | undefined;
4705
+ onFocus?: string | undefined;
4706
+ }, {
4707
+ type: "TextInput";
4708
+ id: string;
4709
+ value?: string | undefined;
4710
+ onCreate?: string | undefined;
4711
+ onDestroy?: string | undefined;
4712
+ label?: string | undefined;
4713
+ placeholder?: string | undefined;
4714
+ onChange?: string | undefined;
4715
+ onBlur?: string | undefined;
4716
+ onFocus?: string | undefined;
4717
+ }>, z.ZodObject<{
4718
+ type: z.ZodLiteral<"Select">;
4719
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
4720
+ label: z.ZodString;
4721
+ value: z.ZodString;
4722
+ disabled: z.ZodOptional<z.ZodBoolean>;
4723
+ }, "strip", z.ZodTypeAny, {
4724
+ value: string;
4725
+ label: string;
4726
+ disabled?: boolean | undefined;
4727
+ }, {
4728
+ value: string;
4729
+ label: string;
4730
+ disabled?: boolean | undefined;
4731
+ }>, "many">>;
4732
+ value: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4733
+ placeholder: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4734
+ search: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
4735
+ label: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4736
+ id: z.ZodString;
4737
+ onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4738
+ onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4739
+ onChange: z.ZodOptional<z.ZodString>;
4740
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
4741
+ type: "Select";
4742
+ id: string;
4743
+ options?: {
4744
+ value: string;
4745
+ label: string;
4746
+ disabled?: boolean | undefined;
4747
+ }[] | undefined;
4748
+ value?: string | undefined;
4749
+ onCreate?: string | undefined;
4750
+ onDestroy?: string | undefined;
4751
+ label?: string | undefined;
4752
+ placeholder?: string | undefined;
4753
+ onChange?: string | undefined;
4754
+ search?: boolean | undefined;
4755
+ }, {
4756
+ type: "Select";
4757
+ id: string;
4758
+ options?: {
4759
+ value: string;
4760
+ label: string;
4761
+ disabled?: boolean | undefined;
4762
+ }[] | undefined;
4763
+ value?: string | undefined;
4764
+ onCreate?: string | undefined;
4765
+ onDestroy?: string | undefined;
4766
+ label?: string | undefined;
4767
+ placeholder?: string | undefined;
4768
+ onChange?: string | undefined;
4769
+ search?: boolean | undefined;
4770
+ }>, z.ZodObject<{
4771
+ type: z.ZodLiteral<"Divider">;
4772
+ id: z.ZodString;
4773
+ onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4774
+ onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4775
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
4776
+ type: "Divider";
4777
+ id: string;
4778
+ onCreate?: string | undefined;
4779
+ onDestroy?: string | undefined;
4780
+ }, {
4781
+ type: "Divider";
4782
+ id: string;
4783
+ onCreate?: string | undefined;
4784
+ onDestroy?: string | undefined;
4785
+ }>, z.ZodObject<{
4786
+ type: z.ZodLiteral<"FlexibleSpace">;
4787
+ id: z.ZodString;
4788
+ onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4789
+ onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4790
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
4791
+ type: "FlexibleSpace";
4792
+ id: string;
4793
+ onCreate?: string | undefined;
4794
+ onDestroy?: string | undefined;
4795
+ }, {
4796
+ type: "FlexibleSpace";
4797
+ id: string;
4798
+ onCreate?: string | undefined;
4799
+ onDestroy?: string | undefined;
4800
+ }>, z.ZodObject<{
4801
+ type: z.ZodLiteral<"ButtonRow">;
4802
+ align: z.ZodOptional<z.ZodOptional<z.ZodEnum<["start", "end"]>>>;
4803
+ label: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4804
+ id: z.ZodString;
4805
+ onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4806
+ onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4807
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4808
+ onCreate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4809
+ id: z.ZodString;
4810
+ }, "strip", z.ZodTypeAny, {
4811
+ id: string;
4812
+ }, {
4813
+ id: string;
4814
+ }>], z.ZodUnknown>, z.ZodVoid>>;
4815
+ onDestroy: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4816
+ id: z.ZodString;
4817
+ }, "strip", z.ZodTypeAny, {
4818
+ id: string;
4819
+ }, {
4820
+ id: string;
4821
+ }>], z.ZodUnknown>, z.ZodVoid>>;
4822
+ }, {
4823
+ id: z.ZodString;
4824
+ }>, {
4825
+ type: z.ZodLiteral<"Button">;
4826
+ label: z.ZodString;
4827
+ variant: z.ZodOptional<z.ZodEnum<["filled", "transparent", "outlined"]>>;
4828
+ tint: z.ZodOptional<z.ZodEnum<["default", "primary", "accent", "danger"]>>;
4829
+ disabled: z.ZodOptional<z.ZodBoolean>;
4830
+ onClick: z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4831
+ id: z.ZodString;
4832
+ }, "strip", z.ZodTypeAny, {
4833
+ id: string;
4834
+ }, {
4835
+ id: string;
4836
+ }>], z.ZodUnknown>, z.ZodVoid>;
4837
+ }>, {
4838
+ id: z.ZodOptional<z.ZodString>;
4839
+ onCreate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4840
+ id: z.ZodString;
4841
+ }, "strip", z.ZodTypeAny, {
4842
+ id: string;
4843
+ }, {
4844
+ id: string;
4845
+ }>], z.ZodUnknown>, z.ZodVoid>>;
4846
+ onDestroy: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4847
+ id: z.ZodString;
4848
+ }, "strip", z.ZodTypeAny, {
4849
+ id: string;
4850
+ }, {
4851
+ id: string;
4852
+ }>], z.ZodUnknown>, z.ZodVoid>>;
4853
+ }>, z.objectUtil.extendShape<{
4854
+ id: z.ZodOptional<z.ZodString>;
4855
+ onCreate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4856
+ id: z.ZodString;
4857
+ }, "strip", z.ZodTypeAny, {
4858
+ id: string;
4859
+ }, {
4860
+ id: string;
4861
+ }>], z.ZodUnknown>, z.ZodVoid>>;
4862
+ onDestroy: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4863
+ id: z.ZodString;
4864
+ }, "strip", z.ZodTypeAny, {
4865
+ id: string;
4866
+ }, {
4867
+ id: string;
4868
+ }>], z.ZodUnknown>, z.ZodVoid>>;
4869
+ }, {
4870
+ onCreate: z.ZodOptional<z.ZodString>;
4871
+ onDestroy: z.ZodOptional<z.ZodString>;
4872
+ }>>, {
4873
+ onClick: z.ZodString;
4874
+ }>, "strip", z.ZodTypeAny, {
4875
+ type: "Button";
4876
+ label: string;
4877
+ onClick: string;
4878
+ id?: string | undefined;
4879
+ onCreate?: string | undefined;
4880
+ onDestroy?: string | undefined;
4881
+ disabled?: boolean | undefined;
4882
+ variant?: "filled" | "transparent" | "outlined" | undefined;
4883
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
4884
+ }, {
4885
+ type: "Button";
4886
+ label: string;
4887
+ onClick: string;
4888
+ id?: string | undefined;
4889
+ onCreate?: string | undefined;
4890
+ onDestroy?: string | undefined;
4891
+ disabled?: boolean | undefined;
4892
+ variant?: "filled" | "transparent" | "outlined" | undefined;
4893
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
4894
+ }>, "many">>;
4895
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
4896
+ type: "ButtonRow";
4897
+ id: string;
4898
+ align?: "start" | "end" | undefined;
4899
+ items?: {
4900
+ type: "Button";
4901
+ label: string;
4902
+ onClick: string;
4903
+ id?: string | undefined;
4904
+ onCreate?: string | undefined;
4905
+ onDestroy?: string | undefined;
4906
+ disabled?: boolean | undefined;
4907
+ variant?: "filled" | "transparent" | "outlined" | undefined;
4908
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
4909
+ }[] | undefined;
4910
+ onCreate?: string | undefined;
4911
+ onDestroy?: string | undefined;
4912
+ label?: string | undefined;
4913
+ }, {
4914
+ type: "ButtonRow";
4915
+ id: string;
4916
+ align?: "start" | "end" | undefined;
4917
+ items?: {
4918
+ type: "Button";
4919
+ label: string;
4920
+ onClick: string;
4921
+ id?: string | undefined;
4922
+ onCreate?: string | undefined;
4923
+ onDestroy?: string | undefined;
4924
+ disabled?: boolean | undefined;
4925
+ variant?: "filled" | "transparent" | "outlined" | undefined;
4926
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
4927
+ }[] | undefined;
4928
+ onCreate?: string | undefined;
4929
+ onDestroy?: string | undefined;
4930
+ label?: string | undefined;
4931
+ }>, z.ZodObject<{
4932
+ type: z.ZodLiteral<"CheckboxGroup">;
4933
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
4934
+ label: z.ZodString;
4935
+ value: z.ZodString;
4936
+ disabled: z.ZodOptional<z.ZodBoolean>;
4937
+ }, "strip", z.ZodTypeAny, {
4938
+ value: string;
4939
+ label: string;
4940
+ disabled?: boolean | undefined;
4941
+ }, {
4942
+ value: string;
4943
+ label: string;
4944
+ disabled?: boolean | undefined;
4945
+ }>, "many">>;
4946
+ value: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4947
+ label: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4948
+ id: z.ZodString;
4949
+ onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4950
+ onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4951
+ onChange: z.ZodOptional<z.ZodString>;
4952
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
4953
+ type: "CheckboxGroup";
4954
+ id: string;
4955
+ options?: {
4956
+ value: string;
4957
+ label: string;
4958
+ disabled?: boolean | undefined;
4959
+ }[] | undefined;
4960
+ value?: string[] | undefined;
4961
+ onCreate?: string | undefined;
4962
+ onDestroy?: string | undefined;
4963
+ label?: string | undefined;
4964
+ onChange?: string | undefined;
4965
+ }, {
4966
+ type: "CheckboxGroup";
4967
+ id: string;
4968
+ options?: {
4969
+ value: string;
4970
+ label: string;
4971
+ disabled?: boolean | undefined;
4972
+ }[] | undefined;
4973
+ value?: string[] | undefined;
4974
+ onCreate?: string | undefined;
4975
+ onDestroy?: string | undefined;
4976
+ label?: string | undefined;
4977
+ onChange?: string | undefined;
4978
+ }>, z.ZodObject<{
4979
+ type: z.ZodLiteral<"RadioGroup">;
4980
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
4981
+ label: z.ZodString;
4982
+ value: z.ZodString;
4983
+ disabled: z.ZodOptional<z.ZodBoolean>;
4984
+ }, "strip", z.ZodTypeAny, {
4985
+ value: string;
4986
+ label: string;
4987
+ disabled?: boolean | undefined;
4988
+ }, {
4989
+ value: string;
4990
+ label: string;
4991
+ disabled?: boolean | undefined;
4992
+ }>, "many">>;
4993
+ value: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4994
+ label: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4995
+ id: z.ZodString;
4996
+ onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4997
+ onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4998
+ onChange: z.ZodOptional<z.ZodString>;
4999
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
5000
+ type: "RadioGroup";
5001
+ id: string;
5002
+ options?: {
5003
+ value: string;
5004
+ label: string;
5005
+ disabled?: boolean | undefined;
5006
+ }[] | undefined;
5007
+ value?: string | undefined;
5008
+ onCreate?: string | undefined;
5009
+ onDestroy?: string | undefined;
5010
+ label?: string | undefined;
5011
+ onChange?: string | undefined;
5012
+ }, {
5013
+ type: "RadioGroup";
5014
+ id: string;
5015
+ options?: {
5016
+ value: string;
5017
+ label: string;
5018
+ disabled?: boolean | undefined;
5019
+ }[] | undefined;
5020
+ value?: string | undefined;
5021
+ onCreate?: string | undefined;
5022
+ onDestroy?: string | undefined;
5023
+ label?: string | undefined;
5024
+ onChange?: string | undefined;
5025
+ }>, z.ZodObject<{
5026
+ type: z.ZodLiteral<"ToggleGroup">;
5027
+ alignment: z.ZodOptional<z.ZodOptional<z.ZodEnum<["start", "end"]>>>;
5028
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
5029
+ label: z.ZodString;
5030
+ value: z.ZodString;
5031
+ disabled: z.ZodOptional<z.ZodBoolean>;
5032
+ }, "strip", z.ZodTypeAny, {
5033
+ value: string;
5034
+ label: string;
5035
+ disabled?: boolean | undefined;
5036
+ }, {
5037
+ value: string;
5038
+ label: string;
5039
+ disabled?: boolean | undefined;
5040
+ }>, "many">>;
5041
+ value: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5042
+ label: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5043
+ id: z.ZodString;
5044
+ onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5045
+ onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5046
+ onChange: z.ZodOptional<z.ZodString>;
5047
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
5048
+ type: "ToggleGroup";
5049
+ id: string;
5050
+ options?: {
5051
+ value: string;
5052
+ label: string;
5053
+ disabled?: boolean | undefined;
5054
+ }[] | undefined;
5055
+ value?: string[] | undefined;
5056
+ onCreate?: string | undefined;
5057
+ onDestroy?: string | undefined;
5058
+ label?: string | undefined;
5059
+ onChange?: string | undefined;
5060
+ alignment?: "start" | "end" | undefined;
5061
+ }, {
5062
+ type: "ToggleGroup";
5063
+ id: string;
5064
+ options?: {
5065
+ value: string;
5066
+ label: string;
5067
+ disabled?: boolean | undefined;
5068
+ }[] | undefined;
5069
+ value?: string[] | undefined;
5070
+ onCreate?: string | undefined;
5071
+ onDestroy?: string | undefined;
5072
+ label?: string | undefined;
5073
+ onChange?: string | undefined;
5074
+ alignment?: "start" | "end" | undefined;
5075
+ }>, z.ZodObject<{
5076
+ type: z.ZodLiteral<"Grid">;
5077
+ grid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5078
+ verticalAlignment: z.ZodOptional<z.ZodOptional<z.ZodEnum<["top", "center", "bottom"]>>>;
5079
+ horizontalDistribution: z.ZodOptional<z.ZodOptional<z.ZodEnum<["start", "center", "end", "space-between", "space-around", "space-evenly"]>>>;
5080
+ id: z.ZodString;
5081
+ onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5082
+ onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5083
+ items: z.ZodOptional<z.ZodType<(UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate> | UIButtonRowElementCreateClonable | MakeClonableSchema<UICheckboxGroupElementCreate> | MakeClonableSchema<UIRadioGroupElementCreate> | MakeClonableSchema<UIToggleGroupElementCreate>)[], z.ZodTypeDef, (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate> | UIButtonRowElementCreateClonable | MakeClonableSchema<UICheckboxGroupElementCreate> | MakeClonableSchema<UIRadioGroupElementCreate> | MakeClonableSchema<UIToggleGroupElementCreate>)[]>>;
5084
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
5085
+ type: "Grid";
5086
+ id: string;
5087
+ items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate> | UIButtonRowElementCreateClonable | MakeClonableSchema<UICheckboxGroupElementCreate> | MakeClonableSchema<UIRadioGroupElementCreate> | MakeClonableSchema<UIToggleGroupElementCreate>)[] | undefined;
5088
+ onCreate?: string | undefined;
5089
+ onDestroy?: string | undefined;
5090
+ grid?: string | undefined;
5091
+ verticalAlignment?: "center" | "top" | "bottom" | undefined;
5092
+ horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
5093
+ }, {
5094
+ type: "Grid";
5095
+ id: string;
5096
+ items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate> | UIButtonRowElementCreateClonable | MakeClonableSchema<UICheckboxGroupElementCreate> | MakeClonableSchema<UIRadioGroupElementCreate> | MakeClonableSchema<UIToggleGroupElementCreate>)[] | undefined;
5097
+ onCreate?: string | undefined;
5098
+ onDestroy?: string | undefined;
5099
+ grid?: string | undefined;
5100
+ verticalAlignment?: "center" | "top" | "bottom" | undefined;
5101
+ horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
5102
+ }>]>;
5103
+ }, "strip", z.ZodTypeAny, {
5104
+ element: {
5105
+ type: "Button";
5106
+ id: string;
5107
+ onCreate?: string | undefined;
5108
+ onDestroy?: string | undefined;
5109
+ label?: string | undefined;
5110
+ disabled?: boolean | undefined;
5111
+ variant?: "filled" | "transparent" | "outlined" | undefined;
5112
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
5113
+ onClick?: string | undefined;
5114
+ } | {
5115
+ type: "Text";
5116
+ id: string;
5117
+ onCreate?: string | undefined;
5118
+ onDestroy?: string | undefined;
5119
+ content?: string | undefined;
5120
+ } | {
5121
+ type: "TextInput";
5122
+ id: string;
5123
+ value?: string | undefined;
5124
+ onCreate?: string | undefined;
5125
+ onDestroy?: string | undefined;
5126
+ label?: string | undefined;
5127
+ placeholder?: string | undefined;
5128
+ onChange?: string | undefined;
5129
+ onBlur?: string | undefined;
5130
+ onFocus?: string | undefined;
5131
+ } | {
5132
+ type: "Select";
5133
+ id: string;
5134
+ options?: {
5135
+ value: string;
5136
+ label: string;
5137
+ disabled?: boolean | undefined;
5138
+ }[] | undefined;
5139
+ value?: string | undefined;
5140
+ onCreate?: string | undefined;
5141
+ onDestroy?: string | undefined;
5142
+ label?: string | undefined;
5143
+ placeholder?: string | undefined;
5144
+ onChange?: string | undefined;
5145
+ search?: boolean | undefined;
5146
+ } | {
5147
+ type: "Divider";
5148
+ id: string;
5149
+ onCreate?: string | undefined;
5150
+ onDestroy?: string | undefined;
5151
+ } | {
5152
+ type: "FlexibleSpace";
5153
+ id: string;
5154
+ onCreate?: string | undefined;
5155
+ onDestroy?: string | undefined;
5156
+ } | {
5157
+ type: "ButtonRow";
5158
+ id: string;
5159
+ align?: "start" | "end" | undefined;
5160
+ items?: {
5161
+ type: "Button";
5162
+ label: string;
5163
+ onClick: string;
5164
+ id?: string | undefined;
5165
+ onCreate?: string | undefined;
5166
+ onDestroy?: string | undefined;
5167
+ disabled?: boolean | undefined;
5168
+ variant?: "filled" | "transparent" | "outlined" | undefined;
5169
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
5170
+ }[] | undefined;
5171
+ onCreate?: string | undefined;
5172
+ onDestroy?: string | undefined;
5173
+ label?: string | undefined;
5174
+ } | {
5175
+ type: "CheckboxGroup";
5176
+ id: string;
5177
+ options?: {
5178
+ value: string;
5179
+ label: string;
5180
+ disabled?: boolean | undefined;
5181
+ }[] | undefined;
5182
+ value?: string[] | undefined;
5183
+ onCreate?: string | undefined;
5184
+ onDestroy?: string | undefined;
5185
+ label?: string | undefined;
5186
+ onChange?: string | undefined;
5187
+ } | {
5188
+ type: "RadioGroup";
5189
+ id: string;
5190
+ options?: {
5191
+ value: string;
5192
+ label: string;
5193
+ disabled?: boolean | undefined;
5194
+ }[] | undefined;
5195
+ value?: string | undefined;
5196
+ onCreate?: string | undefined;
5197
+ onDestroy?: string | undefined;
5198
+ label?: string | undefined;
5199
+ onChange?: string | undefined;
5200
+ } | {
5201
+ type: "ToggleGroup";
5202
+ id: string;
5203
+ options?: {
5204
+ value: string;
5205
+ label: string;
5206
+ disabled?: boolean | undefined;
5207
+ }[] | undefined;
5208
+ value?: string[] | undefined;
5209
+ onCreate?: string | undefined;
5210
+ onDestroy?: string | undefined;
5211
+ label?: string | undefined;
5212
+ onChange?: string | undefined;
5213
+ alignment?: "start" | "end" | undefined;
5214
+ } | {
5215
+ type: "Grid";
5216
+ id: string;
5217
+ items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate> | UIButtonRowElementCreateClonable | MakeClonableSchema<UICheckboxGroupElementCreate> | MakeClonableSchema<UIRadioGroupElementCreate> | MakeClonableSchema<UIToggleGroupElementCreate>)[] | undefined;
5218
+ onCreate?: string | undefined;
5219
+ onDestroy?: string | undefined;
5220
+ grid?: string | undefined;
5221
+ verticalAlignment?: "center" | "top" | "bottom" | undefined;
5222
+ horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
5223
+ };
5224
+ }, {
5225
+ element: {
5226
+ type: "Button";
5227
+ id: string;
5228
+ onCreate?: string | undefined;
5229
+ onDestroy?: string | undefined;
5230
+ label?: string | undefined;
5231
+ disabled?: boolean | undefined;
5232
+ variant?: "filled" | "transparent" | "outlined" | undefined;
5233
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
5234
+ onClick?: string | undefined;
5235
+ } | {
5236
+ type: "Text";
5237
+ id: string;
5238
+ onCreate?: string | undefined;
5239
+ onDestroy?: string | undefined;
5240
+ content?: string | undefined;
5241
+ } | {
5242
+ type: "TextInput";
5243
+ id: string;
5244
+ value?: string | undefined;
5245
+ onCreate?: string | undefined;
5246
+ onDestroy?: string | undefined;
5247
+ label?: string | undefined;
5248
+ placeholder?: string | undefined;
5249
+ onChange?: string | undefined;
5250
+ onBlur?: string | undefined;
5251
+ onFocus?: string | undefined;
5252
+ } | {
5253
+ type: "Select";
5254
+ id: string;
5255
+ options?: {
5256
+ value: string;
5257
+ label: string;
5258
+ disabled?: boolean | undefined;
5259
+ }[] | undefined;
5260
+ value?: string | undefined;
5261
+ onCreate?: string | undefined;
5262
+ onDestroy?: string | undefined;
5263
+ label?: string | undefined;
5264
+ placeholder?: string | undefined;
5265
+ onChange?: string | undefined;
5266
+ search?: boolean | undefined;
5267
+ } | {
5268
+ type: "Divider";
5269
+ id: string;
5270
+ onCreate?: string | undefined;
5271
+ onDestroy?: string | undefined;
5272
+ } | {
5273
+ type: "FlexibleSpace";
5274
+ id: string;
5275
+ onCreate?: string | undefined;
5276
+ onDestroy?: string | undefined;
5277
+ } | {
5278
+ type: "ButtonRow";
5279
+ id: string;
5280
+ align?: "start" | "end" | undefined;
5281
+ items?: {
5282
+ type: "Button";
5283
+ label: string;
5284
+ onClick: string;
5285
+ id?: string | undefined;
5286
+ onCreate?: string | undefined;
5287
+ onDestroy?: string | undefined;
5288
+ disabled?: boolean | undefined;
5289
+ variant?: "filled" | "transparent" | "outlined" | undefined;
5290
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
5291
+ }[] | undefined;
5292
+ onCreate?: string | undefined;
5293
+ onDestroy?: string | undefined;
5294
+ label?: string | undefined;
5295
+ } | {
5296
+ type: "CheckboxGroup";
5297
+ id: string;
5298
+ options?: {
5299
+ value: string;
5300
+ label: string;
5301
+ disabled?: boolean | undefined;
5302
+ }[] | undefined;
5303
+ value?: string[] | undefined;
5304
+ onCreate?: string | undefined;
5305
+ onDestroy?: string | undefined;
5306
+ label?: string | undefined;
5307
+ onChange?: string | undefined;
5308
+ } | {
5309
+ type: "RadioGroup";
5310
+ id: string;
5311
+ options?: {
5312
+ value: string;
5313
+ label: string;
5314
+ disabled?: boolean | undefined;
5315
+ }[] | undefined;
5316
+ value?: string | undefined;
5317
+ onCreate?: string | undefined;
5318
+ onDestroy?: string | undefined;
5319
+ label?: string | undefined;
5320
+ onChange?: string | undefined;
5321
+ } | {
5322
+ type: "ToggleGroup";
5323
+ id: string;
5324
+ options?: {
5325
+ value: string;
5326
+ label: string;
5327
+ disabled?: boolean | undefined;
5328
+ }[] | undefined;
5329
+ value?: string[] | undefined;
5330
+ onCreate?: string | undefined;
5331
+ onDestroy?: string | undefined;
5332
+ label?: string | undefined;
5333
+ onChange?: string | undefined;
5334
+ alignment?: "start" | "end" | undefined;
5335
+ } | {
5336
+ type: "Grid";
5337
+ id: string;
5338
+ items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate> | UIButtonRowElementCreateClonable | MakeClonableSchema<UICheckboxGroupElementCreate> | MakeClonableSchema<UIRadioGroupElementCreate> | MakeClonableSchema<UIToggleGroupElementCreate>)[] | undefined;
5339
+ onCreate?: string | undefined;
5340
+ onDestroy?: string | undefined;
5341
+ grid?: string | undefined;
5342
+ verticalAlignment?: "center" | "top" | "bottom" | undefined;
5343
+ horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
5344
+ };
5345
+ }>, "many">;
5346
+ }, "strip", z.ZodTypeAny, {
5347
+ panelId: string;
5348
+ elements: {
5349
+ element: {
5350
+ type: "Button";
5351
+ id: string;
5352
+ onCreate?: string | undefined;
5353
+ onDestroy?: string | undefined;
5354
+ label?: string | undefined;
5355
+ disabled?: boolean | undefined;
5356
+ variant?: "filled" | "transparent" | "outlined" | undefined;
5357
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
5358
+ onClick?: string | undefined;
5359
+ } | {
5360
+ type: "Text";
5361
+ id: string;
5362
+ onCreate?: string | undefined;
5363
+ onDestroy?: string | undefined;
5364
+ content?: string | undefined;
5365
+ } | {
5366
+ type: "TextInput";
5367
+ id: string;
5368
+ value?: string | undefined;
5369
+ onCreate?: string | undefined;
5370
+ onDestroy?: string | undefined;
5371
+ label?: string | undefined;
5372
+ placeholder?: string | undefined;
5373
+ onChange?: string | undefined;
5374
+ onBlur?: string | undefined;
5375
+ onFocus?: string | undefined;
5376
+ } | {
5377
+ type: "Select";
5378
+ id: string;
5379
+ options?: {
5380
+ value: string;
5381
+ label: string;
5382
+ disabled?: boolean | undefined;
5383
+ }[] | undefined;
5384
+ value?: string | undefined;
5385
+ onCreate?: string | undefined;
5386
+ onDestroy?: string | undefined;
5387
+ label?: string | undefined;
5388
+ placeholder?: string | undefined;
5389
+ onChange?: string | undefined;
5390
+ search?: boolean | undefined;
5391
+ } | {
5392
+ type: "Divider";
5393
+ id: string;
5394
+ onCreate?: string | undefined;
5395
+ onDestroy?: string | undefined;
5396
+ } | {
5397
+ type: "FlexibleSpace";
5398
+ id: string;
5399
+ onCreate?: string | undefined;
5400
+ onDestroy?: string | undefined;
5401
+ } | {
5402
+ type: "ButtonRow";
5403
+ id: string;
5404
+ align?: "start" | "end" | undefined;
5405
+ items?: {
5406
+ type: "Button";
5407
+ label: string;
5408
+ onClick: string;
5409
+ id?: string | undefined;
5410
+ onCreate?: string | undefined;
5411
+ onDestroy?: string | undefined;
5412
+ disabled?: boolean | undefined;
5413
+ variant?: "filled" | "transparent" | "outlined" | undefined;
5414
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
5415
+ }[] | undefined;
5416
+ onCreate?: string | undefined;
5417
+ onDestroy?: string | undefined;
5418
+ label?: string | undefined;
5419
+ } | {
5420
+ type: "CheckboxGroup";
5421
+ id: string;
5422
+ options?: {
5423
+ value: string;
5424
+ label: string;
5425
+ disabled?: boolean | undefined;
5426
+ }[] | undefined;
5427
+ value?: string[] | undefined;
5428
+ onCreate?: string | undefined;
5429
+ onDestroy?: string | undefined;
5430
+ label?: string | undefined;
5431
+ onChange?: string | undefined;
5432
+ } | {
5433
+ type: "RadioGroup";
5434
+ id: string;
5435
+ options?: {
5436
+ value: string;
5437
+ label: string;
5438
+ disabled?: boolean | undefined;
5439
+ }[] | undefined;
5440
+ value?: string | undefined;
5441
+ onCreate?: string | undefined;
5442
+ onDestroy?: string | undefined;
5443
+ label?: string | undefined;
5444
+ onChange?: string | undefined;
5445
+ } | {
5446
+ type: "ToggleGroup";
5447
+ id: string;
5448
+ options?: {
5449
+ value: string;
5450
+ label: string;
5451
+ disabled?: boolean | undefined;
5452
+ }[] | undefined;
5453
+ value?: string[] | undefined;
5454
+ onCreate?: string | undefined;
5455
+ onDestroy?: string | undefined;
5456
+ label?: string | undefined;
5457
+ onChange?: string | undefined;
5458
+ alignment?: "start" | "end" | undefined;
5459
+ } | {
5460
+ type: "Grid";
5461
+ id: string;
5462
+ items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate> | UIButtonRowElementCreateClonable | MakeClonableSchema<UICheckboxGroupElementCreate> | MakeClonableSchema<UIRadioGroupElementCreate> | MakeClonableSchema<UIToggleGroupElementCreate>)[] | undefined;
5463
+ onCreate?: string | undefined;
5464
+ onDestroy?: string | undefined;
5465
+ grid?: string | undefined;
5466
+ verticalAlignment?: "center" | "top" | "bottom" | undefined;
5467
+ horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
5468
+ };
5469
+ }[];
5470
+ }, {
5471
+ panelId: string;
5472
+ elements: {
5473
+ element: {
5474
+ type: "Button";
5475
+ id: string;
5476
+ onCreate?: string | undefined;
5477
+ onDestroy?: string | undefined;
5478
+ label?: string | undefined;
5479
+ disabled?: boolean | undefined;
5480
+ variant?: "filled" | "transparent" | "outlined" | undefined;
5481
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
5482
+ onClick?: string | undefined;
5483
+ } | {
5484
+ type: "Text";
5485
+ id: string;
5486
+ onCreate?: string | undefined;
5487
+ onDestroy?: string | undefined;
5488
+ content?: string | undefined;
5489
+ } | {
5490
+ type: "TextInput";
5491
+ id: string;
5492
+ value?: string | undefined;
5493
+ onCreate?: string | undefined;
5494
+ onDestroy?: string | undefined;
5495
+ label?: string | undefined;
5496
+ placeholder?: string | undefined;
5497
+ onChange?: string | undefined;
5498
+ onBlur?: string | undefined;
5499
+ onFocus?: string | undefined;
5500
+ } | {
5501
+ type: "Select";
5502
+ id: string;
5503
+ options?: {
5504
+ value: string;
5505
+ label: string;
5506
+ disabled?: boolean | undefined;
5507
+ }[] | undefined;
5508
+ value?: string | undefined;
5509
+ onCreate?: string | undefined;
5510
+ onDestroy?: string | undefined;
5511
+ label?: string | undefined;
5512
+ placeholder?: string | undefined;
5513
+ onChange?: string | undefined;
5514
+ search?: boolean | undefined;
5515
+ } | {
5516
+ type: "Divider";
5517
+ id: string;
5518
+ onCreate?: string | undefined;
5519
+ onDestroy?: string | undefined;
5520
+ } | {
5521
+ type: "FlexibleSpace";
5522
+ id: string;
5523
+ onCreate?: string | undefined;
5524
+ onDestroy?: string | undefined;
5525
+ } | {
5526
+ type: "ButtonRow";
5527
+ id: string;
5528
+ align?: "start" | "end" | undefined;
5529
+ items?: {
5530
+ type: "Button";
5531
+ label: string;
5532
+ onClick: string;
5533
+ id?: string | undefined;
5534
+ onCreate?: string | undefined;
5535
+ onDestroy?: string | undefined;
5536
+ disabled?: boolean | undefined;
5537
+ variant?: "filled" | "transparent" | "outlined" | undefined;
5538
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
5539
+ }[] | undefined;
5540
+ onCreate?: string | undefined;
5541
+ onDestroy?: string | undefined;
5542
+ label?: string | undefined;
5543
+ } | {
5544
+ type: "CheckboxGroup";
5545
+ id: string;
5546
+ options?: {
5547
+ value: string;
5548
+ label: string;
5549
+ disabled?: boolean | undefined;
5550
+ }[] | undefined;
5551
+ value?: string[] | undefined;
5552
+ onCreate?: string | undefined;
5553
+ onDestroy?: string | undefined;
5554
+ label?: string | undefined;
5555
+ onChange?: string | undefined;
5556
+ } | {
5557
+ type: "RadioGroup";
5558
+ id: string;
5559
+ options?: {
5560
+ value: string;
5561
+ label: string;
5562
+ disabled?: boolean | undefined;
5563
+ }[] | undefined;
5564
+ value?: string | undefined;
5565
+ onCreate?: string | undefined;
5566
+ onDestroy?: string | undefined;
5567
+ label?: string | undefined;
5568
+ onChange?: string | undefined;
5569
+ } | {
5570
+ type: "ToggleGroup";
5571
+ id: string;
5572
+ options?: {
5573
+ value: string;
5574
+ label: string;
5575
+ disabled?: boolean | undefined;
5576
+ }[] | undefined;
5577
+ value?: string[] | undefined;
5578
+ onCreate?: string | undefined;
5579
+ onDestroy?: string | undefined;
5580
+ label?: string | undefined;
5581
+ onChange?: string | undefined;
5582
+ alignment?: "start" | "end" | undefined;
5583
+ } | {
5584
+ type: "Grid";
5585
+ id: string;
5586
+ items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate> | UIButtonRowElementCreateClonable | MakeClonableSchema<UICheckboxGroupElementCreate> | MakeClonableSchema<UIRadioGroupElementCreate> | MakeClonableSchema<UIToggleGroupElementCreate>)[] | undefined;
5587
+ onCreate?: string | undefined;
5588
+ onDestroy?: string | undefined;
5589
+ grid?: string | undefined;
5590
+ verticalAlignment?: "center" | "top" | "bottom" | undefined;
5591
+ horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
5592
+ };
5593
+ }[];
5594
+ }>;
5595
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
5596
+ params: {
5597
+ panelId: string;
5598
+ elements: {
5599
+ element: {
5600
+ type: "Button";
5601
+ id: string;
5602
+ onCreate?: string | undefined;
5603
+ onDestroy?: string | undefined;
5604
+ label?: string | undefined;
5605
+ disabled?: boolean | undefined;
5606
+ variant?: "filled" | "transparent" | "outlined" | undefined;
5607
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
5608
+ onClick?: string | undefined;
5609
+ } | {
5610
+ type: "Text";
5611
+ id: string;
5612
+ onCreate?: string | undefined;
5613
+ onDestroy?: string | undefined;
5614
+ content?: string | undefined;
5615
+ } | {
5616
+ type: "TextInput";
5617
+ id: string;
5618
+ value?: string | undefined;
5619
+ onCreate?: string | undefined;
5620
+ onDestroy?: string | undefined;
5621
+ label?: string | undefined;
5622
+ placeholder?: string | undefined;
5623
+ onChange?: string | undefined;
5624
+ onBlur?: string | undefined;
5625
+ onFocus?: string | undefined;
5626
+ } | {
5627
+ type: "Select";
5628
+ id: string;
5629
+ options?: {
5630
+ value: string;
5631
+ label: string;
5632
+ disabled?: boolean | undefined;
5633
+ }[] | undefined;
5634
+ value?: string | undefined;
5635
+ onCreate?: string | undefined;
5636
+ onDestroy?: string | undefined;
5637
+ label?: string | undefined;
5638
+ placeholder?: string | undefined;
5639
+ onChange?: string | undefined;
5640
+ search?: boolean | undefined;
5641
+ } | {
5642
+ type: "Divider";
5643
+ id: string;
5644
+ onCreate?: string | undefined;
5645
+ onDestroy?: string | undefined;
5646
+ } | {
5647
+ type: "FlexibleSpace";
5648
+ id: string;
5649
+ onCreate?: string | undefined;
5650
+ onDestroy?: string | undefined;
5651
+ } | {
5652
+ type: "ButtonRow";
5653
+ id: string;
5654
+ align?: "start" | "end" | undefined;
5655
+ items?: {
5656
+ type: "Button";
5657
+ label: string;
5658
+ onClick: string;
5659
+ id?: string | undefined;
5660
+ onCreate?: string | undefined;
5661
+ onDestroy?: string | undefined;
5662
+ disabled?: boolean | undefined;
5663
+ variant?: "filled" | "transparent" | "outlined" | undefined;
5664
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
5665
+ }[] | undefined;
5666
+ onCreate?: string | undefined;
5667
+ onDestroy?: string | undefined;
5668
+ label?: string | undefined;
5669
+ } | {
5670
+ type: "CheckboxGroup";
5671
+ id: string;
5672
+ options?: {
5673
+ value: string;
5674
+ label: string;
5675
+ disabled?: boolean | undefined;
5676
+ }[] | undefined;
5677
+ value?: string[] | undefined;
5678
+ onCreate?: string | undefined;
5679
+ onDestroy?: string | undefined;
5680
+ label?: string | undefined;
5681
+ onChange?: string | undefined;
5682
+ } | {
5683
+ type: "RadioGroup";
5684
+ id: string;
5685
+ options?: {
5686
+ value: string;
5687
+ label: string;
5688
+ disabled?: boolean | undefined;
5689
+ }[] | undefined;
5690
+ value?: string | undefined;
5691
+ onCreate?: string | undefined;
5692
+ onDestroy?: string | undefined;
5693
+ label?: string | undefined;
5694
+ onChange?: string | undefined;
5695
+ } | {
5696
+ type: "ToggleGroup";
5697
+ id: string;
5698
+ options?: {
5699
+ value: string;
5700
+ label: string;
5701
+ disabled?: boolean | undefined;
5702
+ }[] | undefined;
5703
+ value?: string[] | undefined;
5704
+ onCreate?: string | undefined;
5705
+ onDestroy?: string | undefined;
5706
+ label?: string | undefined;
5707
+ onChange?: string | undefined;
5708
+ alignment?: "start" | "end" | undefined;
5709
+ } | {
5710
+ type: "Grid";
5711
+ id: string;
5712
+ items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate> | UIButtonRowElementCreateClonable | MakeClonableSchema<UICheckboxGroupElementCreate> | MakeClonableSchema<UIRadioGroupElementCreate> | MakeClonableSchema<UIToggleGroupElementCreate>)[] | undefined;
5713
+ onCreate?: string | undefined;
5714
+ onDestroy?: string | undefined;
5715
+ grid?: string | undefined;
5716
+ verticalAlignment?: "center" | "top" | "bottom" | undefined;
5717
+ horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
5718
+ };
5719
+ }[];
5720
+ };
5721
+ type: "updatePanelElements";
5722
+ }, {
5723
+ params: {
5724
+ panelId: string;
5725
+ elements: {
5726
+ element: {
5727
+ type: "Button";
5728
+ id: string;
5729
+ onCreate?: string | undefined;
5730
+ onDestroy?: string | undefined;
5731
+ label?: string | undefined;
5732
+ disabled?: boolean | undefined;
5733
+ variant?: "filled" | "transparent" | "outlined" | undefined;
5734
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
5735
+ onClick?: string | undefined;
5736
+ } | {
5737
+ type: "Text";
5738
+ id: string;
5739
+ onCreate?: string | undefined;
5740
+ onDestroy?: string | undefined;
5741
+ content?: string | undefined;
5742
+ } | {
5743
+ type: "TextInput";
5744
+ id: string;
5745
+ value?: string | undefined;
5746
+ onCreate?: string | undefined;
5747
+ onDestroy?: string | undefined;
5748
+ label?: string | undefined;
5749
+ placeholder?: string | undefined;
5750
+ onChange?: string | undefined;
5751
+ onBlur?: string | undefined;
5752
+ onFocus?: string | undefined;
5753
+ } | {
5754
+ type: "Select";
5755
+ id: string;
5756
+ options?: {
5757
+ value: string;
5758
+ label: string;
5759
+ disabled?: boolean | undefined;
5760
+ }[] | undefined;
5761
+ value?: string | undefined;
5762
+ onCreate?: string | undefined;
5763
+ onDestroy?: string | undefined;
5764
+ label?: string | undefined;
5765
+ placeholder?: string | undefined;
5766
+ onChange?: string | undefined;
5767
+ search?: boolean | undefined;
5768
+ } | {
5769
+ type: "Divider";
5770
+ id: string;
5771
+ onCreate?: string | undefined;
5772
+ onDestroy?: string | undefined;
5773
+ } | {
5774
+ type: "FlexibleSpace";
5775
+ id: string;
5776
+ onCreate?: string | undefined;
5777
+ onDestroy?: string | undefined;
5778
+ } | {
5779
+ type: "ButtonRow";
5780
+ id: string;
5781
+ align?: "start" | "end" | undefined;
5782
+ items?: {
5783
+ type: "Button";
5784
+ label: string;
5785
+ onClick: string;
5786
+ id?: string | undefined;
5787
+ onCreate?: string | undefined;
5788
+ onDestroy?: string | undefined;
5789
+ disabled?: boolean | undefined;
5790
+ variant?: "filled" | "transparent" | "outlined" | undefined;
5791
+ tint?: "default" | "primary" | "accent" | "danger" | undefined;
5792
+ }[] | undefined;
5793
+ onCreate?: string | undefined;
5794
+ onDestroy?: string | undefined;
5795
+ label?: string | undefined;
5796
+ } | {
5797
+ type: "CheckboxGroup";
5798
+ id: string;
5799
+ options?: {
5800
+ value: string;
5801
+ label: string;
5802
+ disabled?: boolean | undefined;
5803
+ }[] | undefined;
5804
+ value?: string[] | undefined;
5805
+ onCreate?: string | undefined;
5806
+ onDestroy?: string | undefined;
5807
+ label?: string | undefined;
5808
+ onChange?: string | undefined;
5809
+ } | {
5810
+ type: "RadioGroup";
5811
+ id: string;
5812
+ options?: {
5813
+ value: string;
5814
+ label: string;
5815
+ disabled?: boolean | undefined;
5816
+ }[] | undefined;
5817
+ value?: string | undefined;
5818
+ onCreate?: string | undefined;
5819
+ onDestroy?: string | undefined;
5820
+ label?: string | undefined;
5821
+ onChange?: string | undefined;
5822
+ } | {
5823
+ type: "ToggleGroup";
5824
+ id: string;
5825
+ options?: {
5826
+ value: string;
5827
+ label: string;
5828
+ disabled?: boolean | undefined;
5829
+ }[] | undefined;
5830
+ value?: string[] | undefined;
5831
+ onCreate?: string | undefined;
5832
+ onDestroy?: string | undefined;
5833
+ label?: string | undefined;
5834
+ onChange?: string | undefined;
5835
+ alignment?: "start" | "end" | undefined;
5836
+ } | {
5837
+ type: "Grid";
5838
+ id: string;
5839
+ items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate> | UIButtonRowElementCreateClonable | MakeClonableSchema<UICheckboxGroupElementCreate> | MakeClonableSchema<UIRadioGroupElementCreate> | MakeClonableSchema<UIToggleGroupElementCreate>)[] | undefined;
5840
+ onCreate?: string | undefined;
5841
+ onDestroy?: string | undefined;
5842
+ grid?: string | undefined;
5843
+ verticalAlignment?: "center" | "top" | "bottom" | undefined;
5844
+ horizontalDistribution?: "center" | "start" | "end" | "space-between" | "space-around" | "space-evenly" | undefined;
5845
+ };
5846
+ }[];
5847
+ };
5848
+ type: "updatePanelElements";
5849
+ }>;
5850
+ declare const DeletePanelElementsMessage: z.ZodObject<{
5851
+ type: z.ZodLiteral<"deletePanelElements">;
5852
+ params: z.ZodObject<{
5853
+ panelId: z.ZodString;
5854
+ elements: z.ZodArray<z.ZodString, "many">;
5855
+ }, "strip", z.ZodTypeAny, {
5856
+ panelId: string;
5857
+ elements: string[];
5858
+ }, {
5859
+ panelId: string;
5860
+ elements: string[];
5861
+ }>;
5862
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
5863
+ params: {
5864
+ panelId: string;
5865
+ elements: string[];
5866
+ };
5867
+ type: "deletePanelElements";
5868
+ }, {
5869
+ params: {
5870
+ panelId: string;
5871
+ elements: string[];
5872
+ };
5873
+ type: "deletePanelElements";
5874
+ }>;
4099
5875
  declare const UiControlsMessage: z.ZodObject<{
4100
5876
  type: z.ZodLiteral<"updateUiControls">;
4101
5877
  params: z.ZodObject<{
@@ -4239,6 +6015,15 @@ declare const HideLayerDataTableMessage: z.ZodObject<{
4239
6015
  }>;
4240
6016
  type UiSchema = {
4241
6017
  methods: {
6018
+ createActionTrigger: Method<zInfer<typeof CreateActionTriggerMessage>, zInfer<typeof uiActionTriggerSchema.clonable>>;
6019
+ updateActionTrigger: Method<zInfer<typeof UpdateActionTriggerMessage>, zInfer<typeof uiActionTriggerSchema.clonable>>;
6020
+ deleteActionTrigger: Method<zInfer<typeof DeleteActionTriggerMessage>>;
6021
+ createPanelId: Method<zInfer<typeof CreatePanelIdMessage>>;
6022
+ createOrUpdatePanel: Method<zInfer<typeof CreateOrUpdatePanelMessage>, zInfer<typeof uiPanelCreateSchema.clonable>>;
6023
+ deletePanel: Method<zInfer<typeof DeletePanelMessage>>;
6024
+ createPanelElements: Method<zInfer<typeof CreatePanelElementsMessage>, zInfer<typeof uiPanelCreateSchema.clonable>>;
6025
+ updatePanelElements: Method<zInfer<typeof UpdatePanelElementsMessage>, zInfer<typeof uiPanelCreateSchema.clonable>>;
6026
+ deletePanelElements: Method<zInfer<typeof DeletePanelElementsMessage>>;
4242
6027
  updateUiControls: Method<zInfer<typeof UiControlsMessage>>;
4243
6028
  setOnMapInteractionsUi: Method<zInfer<typeof OnMapInteractionsMessage>>;
4244
6029
  showLayerDataTable: Method<zInfer<typeof ShowLayerDataTableMessage>>;
@@ -4385,7 +6170,11 @@ type FeltHandlers = {
4385
6170
  listeners: FeltListenerHandlers;
4386
6171
  };
4387
6172
  type MethodSpec = UnionToIntersection<AllModules["methods"]>;
4388
- type ListenerSpec = UnionToIntersection<AllModules["listeners"]>;
6173
+ type ListenerSpec = UnionToIntersection<AllModules["listeners"]> & {
6174
+ onGenericEvent: Listener<{
6175
+ id: string;
6176
+ }, void>;
6177
+ };
4389
6178
  type ExtractMethodParams<T extends Record<string, AnyFunction | {
4390
6179
  request: {
4391
6180
  params?: any;