@feltmaps/js-sdk 1.7.0-next.15 → 1.7.0-next.17

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,5 +1,5 @@
1
1
  import { z, ZodError } from 'zod';
2
- import { F as FeltController, c6 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, c7 as uiActionTriggerSchema, bV as UIPanelElement, bW as UIPanelElementCreate, c8 as UIPanelElementCreateClonable, c9 as uiPanelCreateSchema, ca as UIButtonElementCreateClonable, cb as MakeClonableSchema, bE as UITextElementCreate, cc as UIButtonGroupElementCreateClonable, bN as UIDividerElementCreate, bQ as UITextInputElementCreate, bT as UISelectElementCreate, bK as UIFlexibleSpaceElementCreate, c4 as ViewportState, cd as PromiseOrNot, ce as UnionToIntersection } from './controller-OkHAvGYe.cjs';
2
+ import { F as FeltController, c2 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, c3 as uiActionTriggerSchema, bS as UIPanelElementCreate, c4 as UIPanelElementCreateClonable, c5 as uiPanelCreateSchema, c6 as UIButtonElementCreateClonable, c7 as MakeClonableSchema, bD as UITextElementCreate, bJ as UIDividerElementCreate, bM as UITextInputElementCreate, bP as UISelectElementCreate, bG as UIFlexibleSpaceElementCreate, c0 as ViewportState, c8 as PromiseOrNot, c9 as UnionToIntersection } from './controller-XgU-ujEt.cjs';
3
3
 
4
4
  type FeltControllerFunctions = Omit<FeltController, "iframe">;
5
5
  type Method<TRequest extends {
@@ -4343,49 +4343,28 @@ declare const DeleteActionTriggerMessage: z.ZodObject<{
4343
4343
  params: string;
4344
4344
  type: "deleteActionTrigger";
4345
4345
  }>;
4346
- declare const CreatePanelMessage: z.ZodObject<{
4347
- type: z.ZodLiteral<"createPanel">;
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">;
4348
4358
  params: z.ZodObject<{
4349
- panel: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<Omit<{
4359
+ panel: z.ZodObject<z.objectUtil.extendShape<{
4350
4360
  type: z.ZodOptional<z.ZodLiteral<"Panel">>;
4351
- id: z.ZodOptional<z.ZodString>;
4352
- onCreate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4353
- id: z.ZodString;
4354
- }, "strip", z.ZodTypeAny, {
4355
- id: string;
4356
- }, {
4357
- id: string;
4358
- }>], z.ZodUnknown>, z.ZodVoid>>;
4359
- onDestroy: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4360
- id: z.ZodString;
4361
- }, "strip", z.ZodTypeAny, {
4362
- id: string;
4363
- }, {
4364
- id: string;
4365
- }>], z.ZodUnknown>, z.ZodVoid>>;
4361
+ id: z.ZodString;
4362
+ onCreate: z.ZodOptional<z.ZodString>;
4363
+ onDestroy: z.ZodOptional<z.ZodString>;
4366
4364
  title: z.ZodOptional<z.ZodString>;
4367
- body: z.ZodArray<z.ZodType<UIPanelElement, z.ZodTypeDef, UIPanelElement>, "many">;
4368
- footer: z.ZodOptional<z.ZodArray<z.ZodType<UIPanelElement, z.ZodTypeDef, UIPanelElement>, "many">>;
4369
- onClickClose: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4370
- id: z.ZodString;
4371
- }, "strip", z.ZodTypeAny, {
4372
- id: string;
4373
- }, {
4374
- id: string;
4375
- }>], z.ZodUnknown>, z.ZodVoid>>;
4376
- }, "body" | "footer">, {
4377
- body: z.ZodArray<z.ZodType<UIPanelElementCreate, z.ZodTypeDef, UIPanelElementCreate>, "many">;
4365
+ body: z.ZodOptional<z.ZodArray<z.ZodType<UIPanelElementCreate, z.ZodTypeDef, UIPanelElementCreate>, "many">>;
4378
4366
  footer: z.ZodOptional<z.ZodArray<z.ZodType<UIPanelElementCreate, z.ZodTypeDef, UIPanelElementCreate>, "many">>;
4379
- }>, z.objectUtil.extendShape<{
4380
- id: z.ZodOptional<z.ZodString>;
4381
- onCreate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4382
- id: z.ZodString;
4383
- }, "strip", z.ZodTypeAny, {
4384
- id: string;
4385
- }, {
4386
- id: string;
4387
- }>], z.ZodUnknown>, z.ZodVoid>>;
4388
- onDestroy: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4367
+ onClickClose: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4389
4368
  id: z.ZodString;
4390
4369
  }, "strip", z.ZodTypeAny, {
4391
4370
  id: string;
@@ -4393,32 +4372,29 @@ declare const CreatePanelMessage: z.ZodObject<{
4393
4372
  id: string;
4394
4373
  }>], z.ZodUnknown>, z.ZodVoid>>;
4395
4374
  }, {
4396
- onCreate: z.ZodOptional<z.ZodString>;
4397
- onDestroy: z.ZodOptional<z.ZodString>;
4398
- }>>, {
4399
4375
  onClickClose: z.ZodOptional<z.ZodString>;
4400
- body: z.ZodArray<z.ZodType<UIPanelElementCreateClonable, z.ZodTypeDef, UIPanelElementCreateClonable>, "many">;
4376
+ body: z.ZodOptional<z.ZodArray<z.ZodType<UIPanelElementCreateClonable, z.ZodTypeDef, UIPanelElementCreateClonable>, "many">>;
4401
4377
  footer: z.ZodOptional<z.ZodArray<z.ZodType<UIPanelElementCreateClonable, z.ZodTypeDef, UIPanelElementCreateClonable>, "many">>;
4402
4378
  }>, "strip", z.ZodTypeAny, {
4403
- body: UIPanelElementCreateClonable[];
4379
+ id: string;
4404
4380
  type?: "Panel" | undefined;
4405
- id?: string | undefined;
4406
4381
  onCreate?: string | undefined;
4407
4382
  onDestroy?: string | undefined;
4408
4383
  title?: string | undefined;
4384
+ body?: UIPanelElementCreateClonable[] | undefined;
4409
4385
  footer?: UIPanelElementCreateClonable[] | undefined;
4410
4386
  onClickClose?: string | undefined;
4411
4387
  }, {
4412
- body: UIPanelElementCreateClonable[];
4388
+ id: string;
4413
4389
  type?: "Panel" | undefined;
4414
- id?: string | undefined;
4415
4390
  onCreate?: string | undefined;
4416
4391
  onDestroy?: string | undefined;
4417
4392
  title?: string | undefined;
4393
+ body?: UIPanelElementCreateClonable[] | undefined;
4418
4394
  footer?: UIPanelElementCreateClonable[] | undefined;
4419
4395
  onClickClose?: string | undefined;
4420
4396
  }>;
4421
- placement: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
4397
+ initialPlacement: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
4422
4398
  after: z.ZodString;
4423
4399
  }, "strip", z.ZodTypeAny, {
4424
4400
  after: string;
@@ -4439,16 +4415,16 @@ declare const CreatePanelMessage: z.ZodObject<{
4439
4415
  }>]>>;
4440
4416
  }, "strip", z.ZodTypeAny, {
4441
4417
  panel: {
4442
- body: UIPanelElementCreateClonable[];
4418
+ id: string;
4443
4419
  type?: "Panel" | undefined;
4444
- id?: string | undefined;
4445
4420
  onCreate?: string | undefined;
4446
4421
  onDestroy?: string | undefined;
4447
4422
  title?: string | undefined;
4423
+ body?: UIPanelElementCreateClonable[] | undefined;
4448
4424
  footer?: UIPanelElementCreateClonable[] | undefined;
4449
4425
  onClickClose?: string | undefined;
4450
4426
  };
4451
- placement?: {
4427
+ initialPlacement?: {
4452
4428
  after: string;
4453
4429
  } | {
4454
4430
  before: string;
@@ -4457,16 +4433,16 @@ declare const CreatePanelMessage: z.ZodObject<{
4457
4433
  } | undefined;
4458
4434
  }, {
4459
4435
  panel: {
4460
- body: UIPanelElementCreateClonable[];
4436
+ id: string;
4461
4437
  type?: "Panel" | undefined;
4462
- id?: string | undefined;
4463
4438
  onCreate?: string | undefined;
4464
4439
  onDestroy?: string | undefined;
4465
4440
  title?: string | undefined;
4441
+ body?: UIPanelElementCreateClonable[] | undefined;
4466
4442
  footer?: UIPanelElementCreateClonable[] | undefined;
4467
4443
  onClickClose?: string | undefined;
4468
4444
  };
4469
- placement?: {
4445
+ initialPlacement?: {
4470
4446
  after: string;
4471
4447
  } | {
4472
4448
  before: string;
@@ -4477,16 +4453,16 @@ declare const CreatePanelMessage: z.ZodObject<{
4477
4453
  }, z.UnknownKeysParam, z.ZodTypeAny, {
4478
4454
  params: {
4479
4455
  panel: {
4480
- body: UIPanelElementCreateClonable[];
4456
+ id: string;
4481
4457
  type?: "Panel" | undefined;
4482
- id?: string | undefined;
4483
4458
  onCreate?: string | undefined;
4484
4459
  onDestroy?: string | undefined;
4485
4460
  title?: string | undefined;
4461
+ body?: UIPanelElementCreateClonable[] | undefined;
4486
4462
  footer?: UIPanelElementCreateClonable[] | undefined;
4487
4463
  onClickClose?: string | undefined;
4488
4464
  };
4489
- placement?: {
4465
+ initialPlacement?: {
4490
4466
  after: string;
4491
4467
  } | {
4492
4468
  before: string;
@@ -4494,20 +4470,20 @@ declare const CreatePanelMessage: z.ZodObject<{
4494
4470
  at: "start" | "end";
4495
4471
  } | undefined;
4496
4472
  };
4497
- type: "createPanel";
4473
+ type: "createOrUpdatePanel";
4498
4474
  }, {
4499
4475
  params: {
4500
4476
  panel: {
4501
- body: UIPanelElementCreateClonable[];
4477
+ id: string;
4502
4478
  type?: "Panel" | undefined;
4503
- id?: string | undefined;
4504
4479
  onCreate?: string | undefined;
4505
4480
  onDestroy?: string | undefined;
4506
4481
  title?: string | undefined;
4482
+ body?: UIPanelElementCreateClonable[] | undefined;
4507
4483
  footer?: UIPanelElementCreateClonable[] | undefined;
4508
4484
  onClickClose?: string | undefined;
4509
4485
  };
4510
- placement?: {
4486
+ initialPlacement?: {
4511
4487
  after: string;
4512
4488
  } | {
4513
4489
  before: string;
@@ -4515,62 +4491,7 @@ declare const CreatePanelMessage: z.ZodObject<{
4515
4491
  at: "start" | "end";
4516
4492
  } | undefined;
4517
4493
  };
4518
- type: "createPanel";
4519
- }>;
4520
- declare const UpdatePanelMessage: z.ZodObject<{
4521
- type: z.ZodLiteral<"updatePanel">;
4522
- params: z.ZodObject<{
4523
- type: z.ZodOptional<z.ZodOptional<z.ZodLiteral<"Panel">>>;
4524
- id: z.ZodString;
4525
- onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4526
- onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4527
- title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4528
- body: z.ZodOptional<z.ZodArray<z.ZodType<UIPanelElementCreateClonable, z.ZodTypeDef, UIPanelElementCreateClonable>, "many">>;
4529
- footer: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodType<UIPanelElementCreateClonable, z.ZodTypeDef, UIPanelElementCreateClonable>, "many">>>;
4530
- onClickClose: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4531
- }, "strip", z.ZodTypeAny, {
4532
- id: string;
4533
- type?: "Panel" | undefined;
4534
- onCreate?: string | undefined;
4535
- onDestroy?: string | undefined;
4536
- title?: string | undefined;
4537
- body?: UIPanelElementCreateClonable[] | undefined;
4538
- footer?: UIPanelElementCreateClonable[] | undefined;
4539
- onClickClose?: string | undefined;
4540
- }, {
4541
- id: string;
4542
- type?: "Panel" | undefined;
4543
- onCreate?: string | undefined;
4544
- onDestroy?: string | undefined;
4545
- title?: string | undefined;
4546
- body?: UIPanelElementCreateClonable[] | undefined;
4547
- footer?: UIPanelElementCreateClonable[] | undefined;
4548
- onClickClose?: string | undefined;
4549
- }>;
4550
- }, z.UnknownKeysParam, z.ZodTypeAny, {
4551
- params: {
4552
- id: string;
4553
- type?: "Panel" | undefined;
4554
- onCreate?: string | undefined;
4555
- onDestroy?: string | undefined;
4556
- title?: string | undefined;
4557
- body?: UIPanelElementCreateClonable[] | undefined;
4558
- footer?: UIPanelElementCreateClonable[] | undefined;
4559
- onClickClose?: string | undefined;
4560
- };
4561
- type: "updatePanel";
4562
- }, {
4563
- params: {
4564
- id: string;
4565
- type?: "Panel" | undefined;
4566
- onCreate?: string | undefined;
4567
- onDestroy?: string | undefined;
4568
- title?: string | undefined;
4569
- body?: UIPanelElementCreateClonable[] | undefined;
4570
- footer?: UIPanelElementCreateClonable[] | undefined;
4571
- onClickClose?: string | undefined;
4572
- };
4573
- type: "updatePanel";
4494
+ type: "createOrUpdatePanel";
4574
4495
  }>;
4575
4496
  declare const DeletePanelMessage: z.ZodObject<{
4576
4497
  type: z.ZodLiteral<"deletePanel">;
@@ -4760,269 +4681,6 @@ declare const UpdatePanelElementsMessage: z.ZodObject<{
4760
4681
  onCreate?: string | undefined;
4761
4682
  onDestroy?: string | undefined;
4762
4683
  content?: string | undefined;
4763
- }>, z.ZodObject<{
4764
- type: z.ZodLiteral<"ButtonGroup">;
4765
- align: z.ZodOptional<z.ZodOptional<z.ZodEnum<["start", "end"]>>>;
4766
- id: z.ZodString;
4767
- onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4768
- onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4769
- items: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4770
- onCreate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4771
- id: z.ZodString;
4772
- }, "strip", z.ZodTypeAny, {
4773
- id: string;
4774
- }, {
4775
- id: string;
4776
- }>], z.ZodUnknown>, z.ZodVoid>>;
4777
- onDestroy: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4778
- id: z.ZodString;
4779
- }, "strip", z.ZodTypeAny, {
4780
- id: string;
4781
- }, {
4782
- id: string;
4783
- }>], z.ZodUnknown>, z.ZodVoid>>;
4784
- }, {
4785
- id: z.ZodString;
4786
- }>, {
4787
- type: z.ZodLiteral<"Button">;
4788
- label: z.ZodString;
4789
- variant: z.ZodOptional<z.ZodEnum<["filled", "transparent", "outlined"]>>;
4790
- tint: z.ZodOptional<z.ZodEnum<["default", "primary", "accent", "danger"]>>;
4791
- disabled: z.ZodOptional<z.ZodBoolean>;
4792
- onClick: z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4793
- id: z.ZodString;
4794
- }, "strip", z.ZodTypeAny, {
4795
- id: string;
4796
- }, {
4797
- id: string;
4798
- }>], z.ZodUnknown>, z.ZodVoid>;
4799
- }>, {
4800
- id: z.ZodOptional<z.ZodString>;
4801
- onCreate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4802
- id: z.ZodString;
4803
- }, "strip", z.ZodTypeAny, {
4804
- id: string;
4805
- }, {
4806
- id: string;
4807
- }>], z.ZodUnknown>, z.ZodVoid>>;
4808
- onDestroy: 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
- }>, z.objectUtil.extendShape<{
4816
- id: z.ZodOptional<z.ZodString>;
4817
- onCreate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4818
- id: z.ZodString;
4819
- }, "strip", z.ZodTypeAny, {
4820
- id: string;
4821
- }, {
4822
- id: string;
4823
- }>], z.ZodUnknown>, z.ZodVoid>>;
4824
- onDestroy: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4825
- id: z.ZodString;
4826
- }, "strip", z.ZodTypeAny, {
4827
- id: string;
4828
- }, {
4829
- id: string;
4830
- }>], z.ZodUnknown>, z.ZodVoid>>;
4831
- }, {
4832
- onCreate: z.ZodOptional<z.ZodString>;
4833
- onDestroy: z.ZodOptional<z.ZodString>;
4834
- }>>, {
4835
- onClick: z.ZodString;
4836
- }>, "strip", z.ZodTypeAny, {
4837
- type: "Button";
4838
- label: string;
4839
- onClick: string;
4840
- id?: string | undefined;
4841
- onCreate?: string | undefined;
4842
- onDestroy?: string | undefined;
4843
- disabled?: boolean | undefined;
4844
- variant?: "filled" | "transparent" | "outlined" | undefined;
4845
- tint?: "default" | "primary" | "accent" | "danger" | undefined;
4846
- }, {
4847
- type: "Button";
4848
- label: string;
4849
- onClick: string;
4850
- id?: string | undefined;
4851
- onCreate?: string | undefined;
4852
- onDestroy?: string | undefined;
4853
- disabled?: boolean | undefined;
4854
- variant?: "filled" | "transparent" | "outlined" | undefined;
4855
- tint?: "default" | "primary" | "accent" | "danger" | undefined;
4856
- }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4857
- onCreate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4858
- id: z.ZodString;
4859
- }, "strip", z.ZodTypeAny, {
4860
- id: string;
4861
- }, {
4862
- id: string;
4863
- }>], z.ZodUnknown>, z.ZodVoid>>;
4864
- onDestroy: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4865
- id: z.ZodString;
4866
- }, "strip", z.ZodTypeAny, {
4867
- id: string;
4868
- }, {
4869
- id: string;
4870
- }>], z.ZodUnknown>, z.ZodVoid>>;
4871
- }, {
4872
- id: z.ZodString;
4873
- }>, {
4874
- type: z.ZodLiteral<"Text">;
4875
- content: z.ZodString;
4876
- }>, {
4877
- id: z.ZodOptional<z.ZodString>;
4878
- onCreate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4879
- id: z.ZodString;
4880
- }, "strip", z.ZodTypeAny, {
4881
- id: string;
4882
- }, {
4883
- id: string;
4884
- }>], z.ZodUnknown>, z.ZodVoid>>;
4885
- onDestroy: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4886
- id: z.ZodString;
4887
- }, "strip", z.ZodTypeAny, {
4888
- id: string;
4889
- }, {
4890
- id: string;
4891
- }>], z.ZodUnknown>, z.ZodVoid>>;
4892
- }>, z.objectUtil.extendShape<{
4893
- id: z.ZodOptional<z.ZodString>;
4894
- onCreate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4895
- id: z.ZodString;
4896
- }, "strip", z.ZodTypeAny, {
4897
- id: string;
4898
- }, {
4899
- id: string;
4900
- }>], z.ZodUnknown>, z.ZodVoid>>;
4901
- onDestroy: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4902
- id: z.ZodString;
4903
- }, "strip", z.ZodTypeAny, {
4904
- id: string;
4905
- }, {
4906
- id: string;
4907
- }>], z.ZodUnknown>, z.ZodVoid>>;
4908
- }, {
4909
- onCreate: z.ZodOptional<z.ZodString>;
4910
- onDestroy: z.ZodOptional<z.ZodString>;
4911
- }>>, "strip", z.ZodTypeAny, {
4912
- type: "Text";
4913
- content: string;
4914
- id?: string | undefined;
4915
- onCreate?: string | undefined;
4916
- onDestroy?: string | undefined;
4917
- }, {
4918
- type: "Text";
4919
- content: string;
4920
- id?: string | undefined;
4921
- onCreate?: string | undefined;
4922
- onDestroy?: string | undefined;
4923
- }>, z.ZodObject<z.objectUtil.extendShape<{
4924
- type: z.ZodLiteral<"FlexibleSpace">;
4925
- id: z.ZodOptional<z.ZodString>;
4926
- onCreate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4927
- id: z.ZodString;
4928
- }, "strip", z.ZodTypeAny, {
4929
- id: string;
4930
- }, {
4931
- id: string;
4932
- }>], z.ZodUnknown>, z.ZodVoid>>;
4933
- onDestroy: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4934
- id: z.ZodString;
4935
- }, "strip", z.ZodTypeAny, {
4936
- id: string;
4937
- }, {
4938
- id: string;
4939
- }>], z.ZodUnknown>, z.ZodVoid>>;
4940
- }, z.objectUtil.extendShape<{
4941
- id: z.ZodOptional<z.ZodString>;
4942
- onCreate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4943
- id: z.ZodString;
4944
- }, "strip", z.ZodTypeAny, {
4945
- id: string;
4946
- }, {
4947
- id: string;
4948
- }>], z.ZodUnknown>, z.ZodVoid>>;
4949
- onDestroy: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
4950
- id: z.ZodString;
4951
- }, "strip", z.ZodTypeAny, {
4952
- id: string;
4953
- }, {
4954
- id: string;
4955
- }>], z.ZodUnknown>, z.ZodVoid>>;
4956
- }, {
4957
- onCreate: z.ZodOptional<z.ZodString>;
4958
- onDestroy: z.ZodOptional<z.ZodString>;
4959
- }>>, "strip", z.ZodTypeAny, {
4960
- type: "FlexibleSpace";
4961
- id?: string | undefined;
4962
- onCreate?: string | undefined;
4963
- onDestroy?: string | undefined;
4964
- }, {
4965
- type: "FlexibleSpace";
4966
- id?: string | undefined;
4967
- onCreate?: string | undefined;
4968
- onDestroy?: string | undefined;
4969
- }>]>, "many">>;
4970
- }, z.UnknownKeysParam, z.ZodTypeAny, {
4971
- type: "ButtonGroup";
4972
- id: string;
4973
- align?: "start" | "end" | undefined;
4974
- items?: ({
4975
- type: "Button";
4976
- label: string;
4977
- onClick: string;
4978
- id?: string | undefined;
4979
- onCreate?: string | undefined;
4980
- onDestroy?: string | undefined;
4981
- disabled?: boolean | undefined;
4982
- variant?: "filled" | "transparent" | "outlined" | undefined;
4983
- tint?: "default" | "primary" | "accent" | "danger" | undefined;
4984
- } | {
4985
- type: "Text";
4986
- content: string;
4987
- id?: string | undefined;
4988
- onCreate?: string | undefined;
4989
- onDestroy?: string | undefined;
4990
- } | {
4991
- type: "FlexibleSpace";
4992
- id?: string | undefined;
4993
- onCreate?: string | undefined;
4994
- onDestroy?: string | undefined;
4995
- })[] | undefined;
4996
- onCreate?: string | undefined;
4997
- onDestroy?: string | undefined;
4998
- }, {
4999
- type: "ButtonGroup";
5000
- id: string;
5001
- align?: "start" | "end" | undefined;
5002
- items?: ({
5003
- type: "Button";
5004
- label: string;
5005
- onClick: string;
5006
- id?: string | undefined;
5007
- onCreate?: string | undefined;
5008
- onDestroy?: string | undefined;
5009
- disabled?: boolean | undefined;
5010
- variant?: "filled" | "transparent" | "outlined" | undefined;
5011
- tint?: "default" | "primary" | "accent" | "danger" | undefined;
5012
- } | {
5013
- type: "Text";
5014
- content: string;
5015
- id?: string | undefined;
5016
- onCreate?: string | undefined;
5017
- onDestroy?: string | undefined;
5018
- } | {
5019
- type: "FlexibleSpace";
5020
- id?: string | undefined;
5021
- onCreate?: string | undefined;
5022
- onDestroy?: string | undefined;
5023
- })[] | undefined;
5024
- onCreate?: string | undefined;
5025
- onDestroy?: string | undefined;
5026
4684
  }>, z.ZodObject<{
5027
4685
  type: z.ZodLiteral<"TextInput">;
5028
4686
  value: z.ZodOptional<z.ZodString>;
@@ -5140,18 +4798,18 @@ declare const UpdatePanelElementsMessage: z.ZodObject<{
5140
4798
  id: z.ZodString;
5141
4799
  onCreate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5142
4800
  onDestroy: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5143
- items: z.ZodOptional<z.ZodType<(UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | UIButtonGroupElementCreateClonable | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate>)[], z.ZodTypeDef, (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | UIButtonGroupElementCreateClonable | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate>)[]>>;
4801
+ items: z.ZodOptional<z.ZodType<(UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate>)[], z.ZodTypeDef, (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate>)[]>>;
5144
4802
  }, z.UnknownKeysParam, z.ZodTypeAny, {
5145
4803
  type: "Grid";
5146
4804
  id: string;
5147
- items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | UIButtonGroupElementCreateClonable | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate>)[] | undefined;
4805
+ items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate>)[] | undefined;
5148
4806
  onCreate?: string | undefined;
5149
4807
  onDestroy?: string | undefined;
5150
4808
  grid?: string | undefined;
5151
4809
  }, {
5152
4810
  type: "Grid";
5153
4811
  id: string;
5154
- items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | UIButtonGroupElementCreateClonable | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate>)[] | undefined;
4812
+ items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate>)[] | undefined;
5155
4813
  onCreate?: string | undefined;
5156
4814
  onDestroy?: string | undefined;
5157
4815
  grid?: string | undefined;
@@ -5173,34 +4831,6 @@ declare const UpdatePanelElementsMessage: z.ZodObject<{
5173
4831
  onCreate?: string | undefined;
5174
4832
  onDestroy?: string | undefined;
5175
4833
  content?: string | undefined;
5176
- } | {
5177
- type: "ButtonGroup";
5178
- id: string;
5179
- align?: "start" | "end" | undefined;
5180
- items?: ({
5181
- type: "Button";
5182
- label: string;
5183
- onClick: string;
5184
- id?: string | undefined;
5185
- onCreate?: string | undefined;
5186
- onDestroy?: string | undefined;
5187
- disabled?: boolean | undefined;
5188
- variant?: "filled" | "transparent" | "outlined" | undefined;
5189
- tint?: "default" | "primary" | "accent" | "danger" | undefined;
5190
- } | {
5191
- type: "Text";
5192
- content: string;
5193
- id?: string | undefined;
5194
- onCreate?: string | undefined;
5195
- onDestroy?: string | undefined;
5196
- } | {
5197
- type: "FlexibleSpace";
5198
- id?: string | undefined;
5199
- onCreate?: string | undefined;
5200
- onDestroy?: string | undefined;
5201
- })[] | undefined;
5202
- onCreate?: string | undefined;
5203
- onDestroy?: string | undefined;
5204
4834
  } | {
5205
4835
  type: "TextInput";
5206
4836
  id: string;
@@ -5239,7 +4869,7 @@ declare const UpdatePanelElementsMessage: z.ZodObject<{
5239
4869
  } | {
5240
4870
  type: "Grid";
5241
4871
  id: string;
5242
- items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | UIButtonGroupElementCreateClonable | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate>)[] | undefined;
4872
+ items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate>)[] | undefined;
5243
4873
  onCreate?: string | undefined;
5244
4874
  onDestroy?: string | undefined;
5245
4875
  grid?: string | undefined;
@@ -5261,34 +4891,6 @@ declare const UpdatePanelElementsMessage: z.ZodObject<{
5261
4891
  onCreate?: string | undefined;
5262
4892
  onDestroy?: string | undefined;
5263
4893
  content?: string | undefined;
5264
- } | {
5265
- type: "ButtonGroup";
5266
- id: string;
5267
- align?: "start" | "end" | undefined;
5268
- items?: ({
5269
- type: "Button";
5270
- label: string;
5271
- onClick: string;
5272
- id?: string | undefined;
5273
- onCreate?: string | undefined;
5274
- onDestroy?: string | undefined;
5275
- disabled?: boolean | undefined;
5276
- variant?: "filled" | "transparent" | "outlined" | undefined;
5277
- tint?: "default" | "primary" | "accent" | "danger" | undefined;
5278
- } | {
5279
- type: "Text";
5280
- content: string;
5281
- id?: string | undefined;
5282
- onCreate?: string | undefined;
5283
- onDestroy?: string | undefined;
5284
- } | {
5285
- type: "FlexibleSpace";
5286
- id?: string | undefined;
5287
- onCreate?: string | undefined;
5288
- onDestroy?: string | undefined;
5289
- })[] | undefined;
5290
- onCreate?: string | undefined;
5291
- onDestroy?: string | undefined;
5292
4894
  } | {
5293
4895
  type: "TextInput";
5294
4896
  id: string;
@@ -5327,7 +4929,7 @@ declare const UpdatePanelElementsMessage: z.ZodObject<{
5327
4929
  } | {
5328
4930
  type: "Grid";
5329
4931
  id: string;
5330
- items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | UIButtonGroupElementCreateClonable | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate>)[] | undefined;
4932
+ items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate>)[] | undefined;
5331
4933
  onCreate?: string | undefined;
5332
4934
  onDestroy?: string | undefined;
5333
4935
  grid?: string | undefined;
@@ -5352,34 +4954,6 @@ declare const UpdatePanelElementsMessage: z.ZodObject<{
5352
4954
  onCreate?: string | undefined;
5353
4955
  onDestroy?: string | undefined;
5354
4956
  content?: string | undefined;
5355
- } | {
5356
- type: "ButtonGroup";
5357
- id: string;
5358
- align?: "start" | "end" | undefined;
5359
- items?: ({
5360
- type: "Button";
5361
- label: string;
5362
- onClick: string;
5363
- id?: string | undefined;
5364
- onCreate?: string | undefined;
5365
- onDestroy?: string | undefined;
5366
- disabled?: boolean | undefined;
5367
- variant?: "filled" | "transparent" | "outlined" | undefined;
5368
- tint?: "default" | "primary" | "accent" | "danger" | undefined;
5369
- } | {
5370
- type: "Text";
5371
- content: string;
5372
- id?: string | undefined;
5373
- onCreate?: string | undefined;
5374
- onDestroy?: string | undefined;
5375
- } | {
5376
- type: "FlexibleSpace";
5377
- id?: string | undefined;
5378
- onCreate?: string | undefined;
5379
- onDestroy?: string | undefined;
5380
- })[] | undefined;
5381
- onCreate?: string | undefined;
5382
- onDestroy?: string | undefined;
5383
4957
  } | {
5384
4958
  type: "TextInput";
5385
4959
  id: string;
@@ -5418,7 +4992,7 @@ declare const UpdatePanelElementsMessage: z.ZodObject<{
5418
4992
  } | {
5419
4993
  type: "Grid";
5420
4994
  id: string;
5421
- items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | UIButtonGroupElementCreateClonable | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate>)[] | undefined;
4995
+ items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate>)[] | undefined;
5422
4996
  onCreate?: string | undefined;
5423
4997
  onDestroy?: string | undefined;
5424
4998
  grid?: string | undefined;
@@ -5443,34 +5017,6 @@ declare const UpdatePanelElementsMessage: z.ZodObject<{
5443
5017
  onCreate?: string | undefined;
5444
5018
  onDestroy?: string | undefined;
5445
5019
  content?: string | undefined;
5446
- } | {
5447
- type: "ButtonGroup";
5448
- id: string;
5449
- align?: "start" | "end" | undefined;
5450
- items?: ({
5451
- type: "Button";
5452
- label: string;
5453
- onClick: string;
5454
- id?: string | undefined;
5455
- onCreate?: string | undefined;
5456
- onDestroy?: string | undefined;
5457
- disabled?: boolean | undefined;
5458
- variant?: "filled" | "transparent" | "outlined" | undefined;
5459
- tint?: "default" | "primary" | "accent" | "danger" | undefined;
5460
- } | {
5461
- type: "Text";
5462
- content: string;
5463
- id?: string | undefined;
5464
- onCreate?: string | undefined;
5465
- onDestroy?: string | undefined;
5466
- } | {
5467
- type: "FlexibleSpace";
5468
- id?: string | undefined;
5469
- onCreate?: string | undefined;
5470
- onDestroy?: string | undefined;
5471
- })[] | undefined;
5472
- onCreate?: string | undefined;
5473
- onDestroy?: string | undefined;
5474
5020
  } | {
5475
5021
  type: "TextInput";
5476
5022
  id: string;
@@ -5509,7 +5055,7 @@ declare const UpdatePanelElementsMessage: z.ZodObject<{
5509
5055
  } | {
5510
5056
  type: "Grid";
5511
5057
  id: string;
5512
- items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | UIButtonGroupElementCreateClonable | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate>)[] | undefined;
5058
+ items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate>)[] | undefined;
5513
5059
  onCreate?: string | undefined;
5514
5060
  onDestroy?: string | undefined;
5515
5061
  grid?: string | undefined;
@@ -5536,34 +5082,6 @@ declare const UpdatePanelElementsMessage: z.ZodObject<{
5536
5082
  onCreate?: string | undefined;
5537
5083
  onDestroy?: string | undefined;
5538
5084
  content?: string | undefined;
5539
- } | {
5540
- type: "ButtonGroup";
5541
- id: string;
5542
- align?: "start" | "end" | undefined;
5543
- items?: ({
5544
- type: "Button";
5545
- label: string;
5546
- onClick: string;
5547
- id?: string | undefined;
5548
- onCreate?: string | undefined;
5549
- onDestroy?: string | undefined;
5550
- disabled?: boolean | undefined;
5551
- variant?: "filled" | "transparent" | "outlined" | undefined;
5552
- tint?: "default" | "primary" | "accent" | "danger" | undefined;
5553
- } | {
5554
- type: "Text";
5555
- content: string;
5556
- id?: string | undefined;
5557
- onCreate?: string | undefined;
5558
- onDestroy?: string | undefined;
5559
- } | {
5560
- type: "FlexibleSpace";
5561
- id?: string | undefined;
5562
- onCreate?: string | undefined;
5563
- onDestroy?: string | undefined;
5564
- })[] | undefined;
5565
- onCreate?: string | undefined;
5566
- onDestroy?: string | undefined;
5567
5085
  } | {
5568
5086
  type: "TextInput";
5569
5087
  id: string;
@@ -5602,7 +5120,7 @@ declare const UpdatePanelElementsMessage: z.ZodObject<{
5602
5120
  } | {
5603
5121
  type: "Grid";
5604
5122
  id: string;
5605
- items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | UIButtonGroupElementCreateClonable | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate>)[] | undefined;
5123
+ items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate>)[] | undefined;
5606
5124
  onCreate?: string | undefined;
5607
5125
  onDestroy?: string | undefined;
5608
5126
  grid?: string | undefined;
@@ -5630,34 +5148,6 @@ declare const UpdatePanelElementsMessage: z.ZodObject<{
5630
5148
  onCreate?: string | undefined;
5631
5149
  onDestroy?: string | undefined;
5632
5150
  content?: string | undefined;
5633
- } | {
5634
- type: "ButtonGroup";
5635
- id: string;
5636
- align?: "start" | "end" | undefined;
5637
- items?: ({
5638
- type: "Button";
5639
- label: string;
5640
- onClick: string;
5641
- id?: string | undefined;
5642
- onCreate?: string | undefined;
5643
- onDestroy?: string | undefined;
5644
- disabled?: boolean | undefined;
5645
- variant?: "filled" | "transparent" | "outlined" | undefined;
5646
- tint?: "default" | "primary" | "accent" | "danger" | undefined;
5647
- } | {
5648
- type: "Text";
5649
- content: string;
5650
- id?: string | undefined;
5651
- onCreate?: string | undefined;
5652
- onDestroy?: string | undefined;
5653
- } | {
5654
- type: "FlexibleSpace";
5655
- id?: string | undefined;
5656
- onCreate?: string | undefined;
5657
- onDestroy?: string | undefined;
5658
- })[] | undefined;
5659
- onCreate?: string | undefined;
5660
- onDestroy?: string | undefined;
5661
5151
  } | {
5662
5152
  type: "TextInput";
5663
5153
  id: string;
@@ -5696,7 +5186,7 @@ declare const UpdatePanelElementsMessage: z.ZodObject<{
5696
5186
  } | {
5697
5187
  type: "Grid";
5698
5188
  id: string;
5699
- items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | UIButtonGroupElementCreateClonable | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate>)[] | undefined;
5189
+ items?: (UIButtonElementCreateClonable | MakeClonableSchema<UITextElementCreate> | MakeClonableSchema<UIDividerElementCreate> | MakeClonableSchema<UITextInputElementCreate> | MakeClonableSchema<UISelectElementCreate> | MakeClonableSchema<UIFlexibleSpaceElementCreate>)[] | undefined;
5700
5190
  onCreate?: string | undefined;
5701
5191
  onDestroy?: string | undefined;
5702
5192
  grid?: string | undefined;
@@ -5876,8 +5366,8 @@ type UiSchema = {
5876
5366
  createActionTrigger: Method<zInfer<typeof CreateActionTriggerMessage>, zInfer<typeof uiActionTriggerSchema.clonable>>;
5877
5367
  updateActionTrigger: Method<zInfer<typeof UpdateActionTriggerMessage>, zInfer<typeof uiActionTriggerSchema.clonable>>;
5878
5368
  deleteActionTrigger: Method<zInfer<typeof DeleteActionTriggerMessage>>;
5879
- createPanel: Method<zInfer<typeof CreatePanelMessage>, zInfer<typeof uiPanelCreateSchema.clonable>>;
5880
- updatePanel: Method<zInfer<typeof UpdatePanelMessage>, zInfer<typeof uiPanelCreateSchema.clonable>>;
5369
+ createPanelId: Method<zInfer<typeof CreatePanelIdMessage>>;
5370
+ createOrUpdatePanel: Method<zInfer<typeof CreateOrUpdatePanelMessage>, zInfer<typeof uiPanelCreateSchema.clonable>>;
5881
5371
  deletePanel: Method<zInfer<typeof DeletePanelMessage>>;
5882
5372
  createPanelElements: Method<zInfer<typeof CreatePanelElementsMessage>, zInfer<typeof uiPanelCreateSchema.clonable>>;
5883
5373
  updatePanelElements: Method<zInfer<typeof UpdatePanelElementsMessage>, zInfer<typeof uiPanelCreateSchema.clonable>>;