@plitzi/sdk-elements 0.37.1 → 0.37.2

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.
Files changed (164) hide show
  1. package/CHANGELOG.md +151 -0
  2. package/dist/Component/ComponentProvider.d.ts +1 -1
  3. package/dist/Element/JsxManager.d.ts +1 -1
  4. package/dist/Element/LayoutBody.d.ts +1 -1
  5. package/dist/Element/PluginManager.d.ts +1 -1
  6. package/dist/Element/PluginRemote.d.ts +1 -1
  7. package/dist/Element/ReplicaProvider.d.ts +1 -1
  8. package/dist/Element/helpers/pluginSelector.d.ts +1 -1
  9. package/dist/Element/hocs/withElement.d.ts +1 -1
  10. package/dist/Element/hooks/useRootElementInteractions.mjs +7 -1
  11. package/dist/components/ElementAdvancedEditor.d.ts +1 -1
  12. package/dist/dataSource/GlobalSources.mjs +24 -22
  13. package/dist/elements/advanced/BlockHtml/BlockHtml.d.ts +2 -2
  14. package/dist/elements/advanced/BlockHtml/Settings.d.ts +1 -1
  15. package/dist/elements/advanced/BlockHtml/index.d.ts +1 -1
  16. package/dist/elements/advanced/BlockJsx/BlockJsx.d.ts +2 -2
  17. package/dist/elements/advanced/BlockJsx/Settings.d.ts +1 -1
  18. package/dist/elements/advanced/BlockJsx/index.d.ts +1 -1
  19. package/dist/elements/advanced/Custom/Custom.d.ts +2 -2
  20. package/dist/elements/advanced/Custom/Settings.d.ts +1 -1
  21. package/dist/elements/advanced/Custom/index.d.ts +1 -1
  22. package/dist/elements/advanced/NodeHtml/index.d.ts +1 -1
  23. package/dist/elements/advanced/PlitziSdk/Settings.d.ts +1 -1
  24. package/dist/elements/advanced/Reference/Reference.d.ts +2 -2
  25. package/dist/elements/advanced/Reference/Settings.d.ts +1 -1
  26. package/dist/elements/advanced/Reference/index.d.ts +1 -1
  27. package/dist/elements/basic/Button/Button.d.ts +2 -2
  28. package/dist/elements/basic/Button/Settings.d.ts +1 -1
  29. package/dist/elements/basic/Button/index.d.ts +1 -1
  30. package/dist/elements/basic/Dropdown/Dropdown.d.ts +2 -2
  31. package/dist/elements/basic/Dropdown/DropdownPopup/DropdownPopup.d.ts +2 -2
  32. package/dist/elements/basic/Dropdown/DropdownPopup/Settings.d.ts +1 -1
  33. package/dist/elements/basic/Dropdown/DropdownPopup/declaration.d.ts +2 -1
  34. package/dist/elements/basic/Dropdown/DropdownPopup/declaration.mjs +2 -1
  35. package/dist/elements/basic/Dropdown/DropdownPopup/index.d.ts +3 -2
  36. package/dist/elements/basic/Dropdown/Settings.d.ts +1 -1
  37. package/dist/elements/basic/Dropdown/index.d.ts +4 -3
  38. package/dist/elements/basic/Heading/Heading.d.ts +2 -2
  39. package/dist/elements/basic/Heading/Settings.d.ts +1 -1
  40. package/dist/elements/basic/Heading/index.d.ts +1 -1
  41. package/dist/elements/basic/Link/Link.d.ts +2 -2
  42. package/dist/elements/basic/Link/Link.mjs +1 -1
  43. package/dist/elements/basic/Link/Settings.d.ts +1 -1
  44. package/dist/elements/basic/Link/index.d.ts +1 -1
  45. package/dist/elements/basic/Markdown/Markdown.d.ts +2 -2
  46. package/dist/elements/basic/Markdown/Settings.d.ts +1 -1
  47. package/dist/elements/basic/Markdown/index.d.ts +1 -1
  48. package/dist/elements/basic/Paragraph/Paragraph.d.ts +2 -2
  49. package/dist/elements/basic/Paragraph/Settings.d.ts +1 -1
  50. package/dist/elements/basic/Paragraph/index.d.ts +1 -1
  51. package/dist/elements/basic/RichText/RichText.d.ts +2 -2
  52. package/dist/elements/basic/RichText/Settings.d.ts +1 -1
  53. package/dist/elements/basic/RichText/index.d.ts +1 -1
  54. package/dist/elements/basic/Text/Settings.d.ts +1 -1
  55. package/dist/elements/basic/Text/Text.d.ts +2 -2
  56. package/dist/elements/basic/Text/index.d.ts +1 -1
  57. package/dist/elements/basic/ThemeToggle/ThemeToggle.d.ts +2 -2
  58. package/dist/elements/basic/ThemeToggle/ThemeToggle.mjs +55 -62
  59. package/dist/elements/basic/ThemeToggle/declaration.d.ts +12 -1
  60. package/dist/elements/basic/ThemeToggle/declaration.mjs +8 -1
  61. package/dist/elements/basic/ThemeToggle/index.d.ts +13 -2
  62. package/dist/elements/declarations/index.d.ts +314 -5
  63. package/dist/elements/form/Form/Form.d.ts +2 -2
  64. package/dist/elements/form/Form/Form.mjs +37 -57
  65. package/dist/elements/form/Form/Settings.d.ts +1 -1
  66. package/dist/elements/form/Form/declaration.d.ts +57 -0
  67. package/dist/elements/form/Form/declaration.mjs +55 -0
  68. package/dist/elements/form/Form/index.d.ts +59 -2
  69. package/dist/elements/form/FormControl/FormControl.d.ts +2 -2
  70. package/dist/elements/form/FormControl/FormControl.mjs +33 -41
  71. package/dist/elements/form/FormControl/Settings.d.ts +1 -1
  72. package/dist/elements/form/FormControl/components/Label.d.ts +1 -1
  73. package/dist/elements/form/FormControl/declaration.d.ts +12 -0
  74. package/dist/elements/form/FormControl/declaration.mjs +10 -0
  75. package/dist/elements/form/FormControl/hocs/withFieldValue.d.ts +1 -1
  76. package/dist/elements/form/FormControl/index.d.ts +14 -2
  77. package/dist/elements/form/FormControl/inputs/Checkbox.d.ts +1 -1
  78. package/dist/elements/form/FormControl/inputs/Hidden.d.ts +1 -1
  79. package/dist/elements/form/FormControl/inputs/Input.d.ts +1 -1
  80. package/dist/elements/form/FormControl/inputs/Select.d.ts +1 -1
  81. package/dist/elements/form/FormControl/inputs/Textarea.d.ts +1 -1
  82. package/dist/elements/internal/LayoutContainer/LayoutContainer.d.ts +2 -2
  83. package/dist/elements/internal/LayoutContainer/Settings.d.ts +1 -1
  84. package/dist/elements/internal/LayoutContainer/index.d.ts +1 -1
  85. package/dist/elements/internal/LayoutPicker/LayoutPicker.d.ts +1 -1
  86. package/dist/elements/internal/Loading/Loading.d.ts +2 -2
  87. package/dist/elements/internal/Loading/index.d.ts +1 -1
  88. package/dist/elements/internal/NotFound/NotFound.d.ts +2 -2
  89. package/dist/elements/internal/NotFound/index.d.ts +1 -1
  90. package/dist/elements/internal/Page/Page.d.ts +2 -2
  91. package/dist/elements/internal/Page/Page.mjs +34 -43
  92. package/dist/elements/internal/Page/Settings.d.ts +1 -1
  93. package/dist/elements/internal/Page/declaration.d.ts +13 -0
  94. package/dist/elements/internal/Page/declaration.mjs +11 -0
  95. package/dist/elements/internal/Page/index.d.ts +14 -1
  96. package/dist/elements/media/FontAwesome/FontAwesome.d.ts +2 -2
  97. package/dist/elements/media/FontAwesome/Settings.d.ts +1 -1
  98. package/dist/elements/media/FontAwesome/index.d.ts +1 -1
  99. package/dist/elements/media/Image/Image.d.ts +2 -2
  100. package/dist/elements/media/Image/Settings.d.ts +1 -1
  101. package/dist/elements/media/Image/index.d.ts +1 -1
  102. package/dist/elements/media/Video/Settings.d.ts +1 -1
  103. package/dist/elements/media/Video/Video.d.ts +2 -2
  104. package/dist/elements/media/Video/index.d.ts +1 -1
  105. package/dist/elements/provider/ApiContainer/ApiContainer.d.ts +11 -2
  106. package/dist/elements/provider/ApiContainer/ApiContainer.mjs +119 -161
  107. package/dist/elements/provider/ApiContainer/Settings.d.ts +2 -1
  108. package/dist/elements/provider/ApiContainer/Settings.mjs +129 -122
  109. package/dist/elements/provider/ApiContainer/components/FiltersInput/FiltersInput.d.ts +1 -1
  110. package/dist/elements/provider/ApiContainer/declaration.d.ts +75 -0
  111. package/dist/elements/provider/ApiContainer/declaration.mjs +72 -1
  112. package/dist/elements/provider/ApiContainer/helpers/providerOutcome.d.ts +25 -0
  113. package/dist/elements/provider/ApiContainer/helpers/providerOutcome.mjs +7 -0
  114. package/dist/elements/provider/ApiContainer/hooks/useAutoRefresh.d.ts +21 -0
  115. package/dist/elements/provider/ApiContainer/hooks/useAutoRefresh.mjs +18 -0
  116. package/dist/elements/provider/ApiContainer/index.d.ts +76 -1
  117. package/dist/elements/structure/Container/Container.d.ts +2 -2
  118. package/dist/elements/structure/Container/Settings.d.ts +1 -1
  119. package/dist/elements/structure/Container/index.d.ts +1 -1
  120. package/dist/elements/structure/DialogContainer/DialogContainer.d.ts +2 -2
  121. package/dist/elements/structure/DialogContainer/DialogContainer.mjs +10 -60
  122. package/dist/elements/structure/DialogContainer/Settings.d.ts +1 -1
  123. package/dist/elements/structure/DialogContainer/declaration.d.ts +82 -1
  124. package/dist/elements/structure/DialogContainer/declaration.mjs +62 -1
  125. package/dist/elements/structure/DialogContainer/index.d.ts +83 -2
  126. package/dist/elements/structure/List/List.d.ts +2 -2
  127. package/dist/elements/structure/List/ListItem/ListItem.d.ts +2 -2
  128. package/dist/elements/structure/List/ListItem/Settings.d.ts +1 -1
  129. package/dist/elements/structure/List/ListItem/index.d.ts +1 -1
  130. package/dist/elements/structure/List/Settings.d.ts +1 -1
  131. package/dist/elements/structure/List/index.d.ts +2 -2
  132. package/dist/elements/structure/List/modes/ListBasic.d.ts +1 -1
  133. package/dist/elements/structure/List/modes/ListControlled/ListControlled.d.ts +1 -1
  134. package/dist/elements/structure/List/modes/ListControlled/ListControlledItem.d.ts +1 -1
  135. package/dist/elements/structure/ModalContainer/ModalContainer.d.ts +2 -2
  136. package/dist/elements/structure/ModalContainer/ModalContainer.mjs +10 -37
  137. package/dist/elements/structure/ModalContainer/Settings.d.ts +1 -1
  138. package/dist/elements/structure/ModalContainer/declaration.d.ts +48 -2
  139. package/dist/elements/structure/ModalContainer/declaration.mjs +40 -2
  140. package/dist/elements/structure/ModalContainer/index.d.ts +49 -3
  141. package/dist/elements/structure/Pagination/Pagination.d.ts +2 -2
  142. package/dist/elements/structure/Pagination/Pagination.mjs +45 -50
  143. package/dist/elements/structure/Pagination/Settings.d.ts +1 -1
  144. package/dist/elements/structure/Pagination/declaration.d.ts +11 -0
  145. package/dist/elements/structure/Pagination/declaration.mjs +7 -0
  146. package/dist/elements/structure/Pagination/index.d.ts +12 -1
  147. package/dist/elements/structure/TabContainer/Settings.d.ts +1 -1
  148. package/dist/elements/structure/TabContainer/TabContainer.d.ts +2 -2
  149. package/dist/elements/structure/TabContainer/TabContainerBody/Settings.d.ts +1 -1
  150. package/dist/elements/structure/TabContainer/TabContainerBody/TabContainerBody.d.ts +2 -2
  151. package/dist/elements/structure/TabContainer/TabContainerBody/declaration.d.ts +1 -0
  152. package/dist/elements/structure/TabContainer/TabContainerBody/declaration.mjs +1 -0
  153. package/dist/elements/structure/TabContainer/TabContainerBody/index.d.ts +2 -1
  154. package/dist/elements/structure/TabContainer/TabContainerHeader/Settings.d.ts +1 -1
  155. package/dist/elements/structure/TabContainer/TabContainerHeader/TabContainerHeader.d.ts +2 -2
  156. package/dist/elements/structure/TabContainer/TabContainerHeader/declaration.d.ts +1 -0
  157. package/dist/elements/structure/TabContainer/TabContainerHeader/declaration.mjs +1 -0
  158. package/dist/elements/structure/TabContainer/TabContainerHeader/index.d.ts +2 -1
  159. package/dist/elements/structure/TabContainer/TabContainerItem/Settings.d.ts +1 -1
  160. package/dist/elements/structure/TabContainer/TabContainerItem/TabContainerItem.d.ts +2 -2
  161. package/dist/elements/structure/TabContainer/TabContainerItem/index.d.ts +1 -1
  162. package/dist/elements/structure/TabContainer/index.d.ts +6 -4
  163. package/dist/index.d.ts +351 -42
  164. package/package.json +17 -9
@@ -37,6 +37,81 @@ export declare const elementDeclarations: {
37
37
  readonly ApiContainer: {
38
38
  readonly type: "apiContainer";
39
39
  readonly sourceType: "apiContainer";
40
+ readonly triggers: {
41
+ readonly onApiError: {
42
+ readonly action: "onApiError";
43
+ readonly title: "On Api Error";
44
+ readonly type: "trigger";
45
+ readonly params: {};
46
+ readonly preview: {
47
+ readonly url: "";
48
+ readonly method: "";
49
+ readonly status: "";
50
+ readonly data: "";
51
+ };
52
+ };
53
+ readonly onApiSuccess: {
54
+ readonly action: "onApiSuccess";
55
+ readonly title: "On Api Success";
56
+ readonly type: "trigger";
57
+ readonly params: {};
58
+ readonly preview: {
59
+ readonly url: "";
60
+ readonly method: "";
61
+ readonly status: "";
62
+ readonly data: "";
63
+ };
64
+ };
65
+ };
66
+ readonly callbacks: {
67
+ readonly performQuery: {
68
+ readonly action: "performQuery";
69
+ readonly title: "Perform Query";
70
+ readonly type: "callback";
71
+ readonly preview: {};
72
+ readonly params: {};
73
+ };
74
+ readonly loadMore: {
75
+ readonly action: "loadMore";
76
+ readonly title: "Load More";
77
+ readonly type: "callback";
78
+ readonly preview: {};
79
+ readonly params: {};
80
+ };
81
+ readonly goToPage: {
82
+ readonly action: "goToPage";
83
+ readonly title: "Go To Page";
84
+ readonly type: "callback";
85
+ readonly preview: {};
86
+ readonly params: {
87
+ readonly page: {
88
+ readonly label: "Page";
89
+ readonly defaultValue: "1";
90
+ readonly type: "text";
91
+ };
92
+ };
93
+ };
94
+ readonly writeRecord: {
95
+ readonly action: "writeRecord";
96
+ readonly title: "Write Record";
97
+ readonly type: "callback";
98
+ readonly preview: {
99
+ readonly action: "create";
100
+ };
101
+ readonly params: {
102
+ readonly action: {
103
+ readonly label: "Endpoint";
104
+ readonly defaultValue: "create";
105
+ readonly type: "text";
106
+ };
107
+ readonly recordId: {
108
+ readonly label: "Record Id";
109
+ readonly defaultValue: "";
110
+ readonly type: "text";
111
+ };
112
+ };
113
+ };
114
+ };
40
115
  readonly content: {
41
116
  readonly attributes: {
42
117
  readonly query: "";
@@ -434,6 +509,87 @@ export declare const elementDeclarations: {
434
509
  readonly DialogContainer: {
435
510
  readonly type: "dialogContainer";
436
511
  readonly sourceType: "dialogContainer";
512
+ readonly triggers: {
513
+ readonly onDialogAccept: {
514
+ readonly action: "onDialogAccept";
515
+ readonly title: "On Dialog Accept";
516
+ readonly type: "trigger";
517
+ readonly params: {
518
+ readonly metadata: {
519
+ readonly type: "text";
520
+ readonly defaultValue: "";
521
+ };
522
+ };
523
+ readonly preview: {
524
+ readonly metadata: "";
525
+ };
526
+ };
527
+ readonly onDialogReject: {
528
+ readonly action: "onDialogReject";
529
+ readonly title: "On Dialog Reject";
530
+ readonly type: "trigger";
531
+ readonly params: {
532
+ readonly metadata: {
533
+ readonly type: "text";
534
+ readonly defaultValue: "";
535
+ };
536
+ };
537
+ readonly preview: {
538
+ readonly metadata: "";
539
+ };
540
+ };
541
+ readonly onDialogOpen: {
542
+ readonly action: "onDialogOpen";
543
+ readonly title: "On Dialog Open";
544
+ readonly type: "trigger";
545
+ readonly params: {
546
+ readonly metadata: {
547
+ readonly type: "text";
548
+ readonly defaultValue: "";
549
+ };
550
+ };
551
+ readonly preview: {
552
+ readonly metadata: "";
553
+ };
554
+ };
555
+ readonly onDialogClose: {
556
+ readonly action: "onDialogClose";
557
+ readonly title: "On Dialog Close";
558
+ readonly type: "trigger";
559
+ readonly params: {
560
+ readonly metadata: {
561
+ readonly type: "text";
562
+ readonly defaultValue: "";
563
+ };
564
+ };
565
+ readonly preview: {
566
+ readonly metadata: "";
567
+ };
568
+ };
569
+ };
570
+ readonly callbacks: {
571
+ readonly openDialog: {
572
+ readonly action: "openDialog";
573
+ readonly title: "Open Dialog";
574
+ readonly type: "callback";
575
+ readonly params: {
576
+ readonly metadata: {
577
+ readonly type: "text";
578
+ readonly defaultValue: "";
579
+ };
580
+ };
581
+ readonly preview: {
582
+ readonly metadata: "";
583
+ };
584
+ };
585
+ readonly closeDialog: {
586
+ readonly action: "closeDialog";
587
+ readonly title: "Close Dialog";
588
+ readonly type: "callback";
589
+ readonly preview: {};
590
+ readonly params: {};
591
+ };
592
+ };
437
593
  readonly content: {
438
594
  readonly attributes: {
439
595
  readonly headerLabel: "Dialog Header";
@@ -515,7 +671,7 @@ export declare const elementDeclarations: {
515
671
  readonly left: "50%";
516
672
  readonly width: "500px";
517
673
  readonly height: "300px";
518
- readonly 'background-color': "white";
674
+ readonly 'background-color': "light-dark(white, oklch(0.21 0.006 285.885))";
519
675
  readonly transform: "translate3d(-50%, -50%, 0px)";
520
676
  readonly 'padding-top': "20px";
521
677
  readonly 'padding-bottom': "20px";
@@ -664,6 +820,7 @@ export declare const elementDeclarations: {
664
820
  }>>;
665
821
  readonly DropdownPopup: {
666
822
  readonly type: "dropdownPopup";
823
+ readonly ancestorType: "dropdown";
667
824
  readonly content: {
668
825
  readonly attributes: {};
669
826
  readonly definition: {
@@ -701,7 +858,7 @@ export declare const elementDeclarations: {
701
858
  readonly style: {
702
859
  readonly base: {
703
860
  readonly default: {
704
- readonly 'background-color': "white";
861
+ readonly 'background-color': "light-dark(white, oklch(0.21 0.006 285.885))";
705
862
  readonly 'padding-right': "4px";
706
863
  readonly 'padding-bottom': "4px";
707
864
  readonly 'padding-left': "4px";
@@ -784,6 +941,63 @@ export declare const elementDeclarations: {
784
941
  readonly Form: {
785
942
  readonly type: "form";
786
943
  readonly sourceType: "apiContainer";
944
+ readonly triggers: {
945
+ readonly onSubmit: {
946
+ readonly action: "onSubmit";
947
+ readonly title: "On Form Submit";
948
+ readonly type: "trigger";
949
+ readonly params: {};
950
+ readonly preview: {
951
+ readonly values: {};
952
+ readonly actionUrl: "";
953
+ readonly method: "";
954
+ };
955
+ };
956
+ };
957
+ readonly callbacks: {
958
+ readonly performReset: {
959
+ readonly action: "performReset";
960
+ readonly title: "Reset Form";
961
+ readonly type: "callback";
962
+ readonly params: {};
963
+ };
964
+ readonly setFieldValue: {
965
+ readonly action: "setFieldValue";
966
+ readonly title: "Set Field Value";
967
+ readonly type: "callback";
968
+ readonly preview: {};
969
+ readonly params: {
970
+ readonly name: {
971
+ readonly label: "Field Name";
972
+ readonly defaultValue: undefined;
973
+ readonly type: "select";
974
+ readonly options: [];
975
+ };
976
+ readonly value: {
977
+ readonly type: "text";
978
+ readonly defaultValue: "";
979
+ };
980
+ };
981
+ };
982
+ readonly setFieldError: {
983
+ readonly action: "setFieldError";
984
+ readonly title: "Set Field Error";
985
+ readonly type: "callback";
986
+ readonly preview: {};
987
+ readonly params: {
988
+ readonly name: {
989
+ readonly label: "Field Name";
990
+ readonly defaultValue: undefined;
991
+ readonly type: "select";
992
+ readonly options: [];
993
+ };
994
+ readonly error: {
995
+ readonly type: "text";
996
+ readonly defaultValue: "";
997
+ };
998
+ };
999
+ };
1000
+ };
787
1001
  readonly content: {
788
1002
  readonly attributes: {
789
1003
  readonly method: "get";
@@ -844,6 +1058,18 @@ export declare const elementDeclarations: {
844
1058
  }>>;
845
1059
  readonly FormControl: {
846
1060
  readonly type: "formControl";
1061
+ readonly triggers: {
1062
+ readonly onChange: {
1063
+ readonly action: "onChange";
1064
+ readonly title: "On Change";
1065
+ readonly type: "trigger";
1066
+ readonly params: {};
1067
+ readonly preview: {
1068
+ readonly value: "";
1069
+ readonly name: "";
1070
+ };
1071
+ };
1072
+ };
847
1073
  readonly content: {
848
1074
  readonly attributes: {
849
1075
  readonly subType: "text";
@@ -1889,6 +2115,52 @@ export declare const elementDeclarations: {
1889
2115
  readonly ModalContainer: {
1890
2116
  readonly type: "modalContainer";
1891
2117
  readonly sourceType: "modalContainer";
2118
+ readonly triggers: {
2119
+ readonly onModalOpen: {
2120
+ readonly action: "onModalOpen";
2121
+ readonly title: "On Modal Open";
2122
+ readonly type: "trigger";
2123
+ readonly params: {
2124
+ readonly metadata: {
2125
+ readonly type: "text";
2126
+ readonly defaultValue: "";
2127
+ };
2128
+ };
2129
+ readonly preview: {
2130
+ readonly metadata: "";
2131
+ };
2132
+ };
2133
+ readonly onModalClose: {
2134
+ readonly action: "onModalClose";
2135
+ readonly title: "On Modal Close";
2136
+ readonly type: "trigger";
2137
+ readonly preview: {};
2138
+ readonly params: {};
2139
+ };
2140
+ };
2141
+ readonly callbacks: {
2142
+ readonly openModal: {
2143
+ readonly action: "openModal";
2144
+ readonly title: "Open Modal";
2145
+ readonly type: "callback";
2146
+ readonly params: {
2147
+ readonly metadata: {
2148
+ readonly type: "text";
2149
+ readonly defaultValue: "";
2150
+ };
2151
+ };
2152
+ readonly preview: {
2153
+ readonly metadata: "";
2154
+ };
2155
+ };
2156
+ readonly closeModal: {
2157
+ readonly action: "closeModal";
2158
+ readonly title: "Close Modal";
2159
+ readonly type: "callback";
2160
+ readonly params: {};
2161
+ readonly preview: {};
2162
+ };
2163
+ };
1892
2164
  readonly content: {
1893
2165
  readonly attributes: {
1894
2166
  readonly title: "Modal Header";
@@ -1965,7 +2237,7 @@ export declare const elementDeclarations: {
1965
2237
  readonly left: "50%";
1966
2238
  readonly width: "500px";
1967
2239
  readonly height: "300px";
1968
- readonly 'background-color': "white";
2240
+ readonly 'background-color': "light-dark(white, oklch(0.21 0.006 285.885))";
1969
2241
  readonly transform: "translate3d(-50%, -50%, 0px)";
1970
2242
  readonly 'border-top-left-radius': "8px";
1971
2243
  readonly 'border-top-right-radius': "8px";
@@ -1979,7 +2251,7 @@ export declare const elementDeclarations: {
1979
2251
  readonly 'align-items': "center";
1980
2252
  readonly 'justify-content': "space-between";
1981
2253
  readonly 'border-bottom-width': "1px";
1982
- readonly 'border-bottom-color': "#d1d5db";
2254
+ readonly 'border-bottom-color': "light-dark(#d1d5db, oklch(0.37 0.013 285.805))";
1983
2255
  readonly 'border-bottom-style': "solid";
1984
2256
  readonly 'padding-left': "20px";
1985
2257
  readonly 'padding-right': "20px";
@@ -2416,6 +2688,19 @@ export declare const elementDeclarations: {
2416
2688
  } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<unknown>;
2417
2689
  readonly Page: {
2418
2690
  readonly type: "page";
2691
+ readonly triggers: {
2692
+ readonly onPageLoad: {
2693
+ readonly action: "onPageLoad";
2694
+ readonly title: "On Page Load";
2695
+ readonly type: "trigger";
2696
+ readonly params: {};
2697
+ readonly preview: {
2698
+ readonly pageId: "";
2699
+ readonly routeParams: "";
2700
+ readonly queryParams: "";
2701
+ };
2702
+ };
2703
+ };
2419
2704
  readonly content: {
2420
2705
  readonly attributes: {
2421
2706
  readonly enabled: true;
@@ -2491,6 +2776,17 @@ export declare const elementDeclarations: {
2491
2776
  }>>;
2492
2777
  readonly Pagination: {
2493
2778
  readonly type: "pagination";
2779
+ readonly triggers: {
2780
+ readonly onPageChange: {
2781
+ readonly action: "onPageChange";
2782
+ readonly title: "On Page Change";
2783
+ readonly type: "trigger";
2784
+ readonly params: {};
2785
+ readonly preview: {
2786
+ readonly page: "1";
2787
+ };
2788
+ };
2789
+ };
2494
2790
  readonly content: {
2495
2791
  readonly attributes: {
2496
2792
  readonly pageInfo: {};
@@ -2775,6 +3071,7 @@ export declare const elementDeclarations: {
2775
3071
  } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<unknown>;
2776
3072
  readonly TabContainerBody: {
2777
3073
  readonly type: "tabContainerBody";
3074
+ readonly ancestorType: "tabContainer";
2778
3075
  readonly content: {
2779
3076
  readonly attributes: {};
2780
3077
  readonly definition: {
@@ -2824,6 +3121,7 @@ export declare const elementDeclarations: {
2824
3121
  } & import('@plitzi/sdk-shared/authoring/declare').ElementAttributesBrand<unknown>;
2825
3122
  readonly TabContainerHeader: {
2826
3123
  readonly type: "tabContainerHeader";
3124
+ readonly ancestorType: "tabContainer";
2827
3125
  readonly content: {
2828
3126
  readonly attributes: {};
2829
3127
  readonly definition: {
@@ -2975,6 +3273,17 @@ export declare const elementDeclarations: {
2975
3273
  }>>;
2976
3274
  readonly ThemeToggle: {
2977
3275
  readonly type: "themeToggle";
3276
+ readonly triggers: {
3277
+ readonly onThemeChange: {
3278
+ readonly action: "onThemeChange";
3279
+ readonly title: "On Theme Change";
3280
+ readonly type: "trigger";
3281
+ readonly params: {};
3282
+ readonly preview: {
3283
+ readonly theme: "dark";
3284
+ };
3285
+ };
3286
+ };
2978
3287
  readonly content: {
2979
3288
  readonly attributes: {
2980
3289
  readonly subType: "switch";
@@ -2986,7 +3295,7 @@ export declare const elementDeclarations: {
2986
3295
  readonly definition: {
2987
3296
  readonly label: "Theme Toggle";
2988
3297
  readonly type: "themeToggle";
2989
- readonly description: "Lets a visitor choose light or dark. It writes the choice on the document root, where a space stylesheet is already looking for it, and remembers it — so the machine decides until somebody says otherwise. It ships no colours of its own: style it with the space own classes, and use `data-theme-icon` to decide which icon each scheme shows.";
3298
+ readonly description: "Lets a visitor choose light or dark. It writes the choice on the document root, where a space stylesheet is already looking for it, and remembers it — so the machine decides until somebody says otherwise. It ships no colours of its own: style it with the space own classes. It shows the icon of the scheme in use by default; key a rule off `data-theme-icon` to change that.";
2990
3299
  readonly items: readonly [];
2991
3300
  readonly bindings: {};
2992
3301
  readonly styleSelectors: {
@@ -35,9 +35,9 @@ export type FormContextValue = {
35
35
  setFieldValue: (name: string, value: FieldValue | null) => void;
36
36
  setFieldError: (name: string, error: string) => void;
37
37
  };
38
- declare const Form: ({ ref, className, children, method, actionUrl, managedByInteractions, noValidate, errors, values }: FormProps) => import("react").JSX.Element;
38
+ declare const Form: ({ ref, className, children, method, actionUrl, managedByInteractions, noValidate, errors, values }: FormProps) => import('react').JSX.Element;
39
39
  declare const _default: {
40
- (props: import('../../../Element/hocs/withElement').WithElementProps<FormProps>): import("react").JSX.Element;
40
+ (props: import('../../../Element/hocs/withElement').WithElementProps<FormProps>): import('react').JSX.Element;
41
41
  displayName: string;
42
42
  };
43
43
  export default _default;
@@ -106,17 +106,13 @@ var b = ({ ref: e, className: b = "", children: x, method: S = "get", actionUrl:
106
106
  fields: G
107
107
  });
108
108
  let q = s(() => ({ onSubmit: {
109
- action: "onSubmit",
110
- title: "On Form Submit",
111
- type: "trigger",
112
- params: {},
109
+ ...r.triggers.onSubmit,
113
110
  preview: {
111
+ ...r.triggers.onSubmit.preview,
114
112
  values: Object.values(O).reduce((e, t) => ({
115
113
  ...e,
116
114
  [t.name]: ""
117
- }), {}),
118
- actionUrl: "",
119
- method: ""
115
+ }), {})
120
116
  }
121
117
  } }), [O]), J = a((e) => {
122
118
  let t = [...A.current].reduce((e, [t, n]) => {
@@ -165,59 +161,43 @@ var b = ({ ref: e, className: b = "", children: x, method: S = "get", actionUrl:
165
161
  }, [U]), Z = a((e) => {
166
162
  let { name: t, error: n } = e;
167
163
  W(t, n);
168
- }, [W]), Q = s(() => ({
169
- performReset: {
170
- action: "performReset",
171
- title: `Reset ${N}`,
172
- type: "callback",
173
- callback: Y,
174
- params: {}
175
- },
176
- setFieldValue: {
177
- action: "setFieldValue",
178
- title: `Set Field Value ${N}`,
179
- type: "callback",
180
- callback: X,
181
- preview: {},
182
- params: {
183
- name: {
184
- label: "Field Name",
185
- defaultValue: void 0,
186
- type: "select",
187
- options: Object.values(O).map((e) => ({
188
- value: e.name,
189
- label: e.name
190
- }))
191
- },
192
- value: {
193
- type: "text",
194
- defaultValue: ""
164
+ }, [W]), Q = s(() => {
165
+ let { performReset: e, setFieldValue: t, setFieldError: n } = r.callbacks, i = Object.values(O).map((e) => ({
166
+ value: e.name,
167
+ label: e.name
168
+ }));
169
+ return {
170
+ performReset: {
171
+ ...e,
172
+ title: `Reset ${N}`,
173
+ callback: Y
174
+ },
175
+ setFieldValue: {
176
+ ...t,
177
+ title: `Set Field Value ${N}`,
178
+ callback: X,
179
+ params: {
180
+ ...t.params,
181
+ name: {
182
+ ...t.params.name,
183
+ options: i
184
+ }
195
185
  }
196
- }
197
- },
198
- setFieldError: {
199
- action: "setFieldError",
200
- title: `Set Field Error ${N}`,
201
- type: "callback",
202
- callback: Z,
203
- preview: {},
204
- params: {
205
- name: {
206
- label: "Field Name",
207
- defaultValue: void 0,
208
- type: "select",
209
- options: Object.values(O).map((e) => ({
210
- value: e.name,
211
- label: e.name
212
- }))
213
- },
214
- error: {
215
- type: "text",
216
- defaultValue: ""
186
+ },
187
+ setFieldError: {
188
+ ...n,
189
+ title: `Set Field Error ${N}`,
190
+ callback: Z,
191
+ params: {
192
+ ...n.params,
193
+ name: {
194
+ ...n.params.name,
195
+ options: i
196
+ }
217
197
  }
218
198
  }
219
- }
220
- }), [
199
+ };
200
+ }, [
221
201
  N,
222
202
  Y,
223
203
  X,
@@ -5,5 +5,5 @@ type SettingsProps = {
5
5
  actionUrl?: string;
6
6
  onUpdate?: (key: string, value: string | boolean | number) => void;
7
7
  };
8
- declare const Settings: ({ method, managedByInteractions, noValidate, actionUrl, onUpdate }: SettingsProps) => import("react").JSX.Element;
8
+ declare const Settings: ({ method, managedByInteractions, noValidate, actionUrl, onUpdate }: SettingsProps) => import('react').JSX.Element;
9
9
  export default Settings;
@@ -5,6 +5,63 @@ export type FormAttributes = AuthorableAttributes<FormProps>;
5
5
  declare const declaration: {
6
6
  readonly type: "form";
7
7
  readonly sourceType: "apiContainer";
8
+ readonly triggers: {
9
+ readonly onSubmit: {
10
+ readonly action: "onSubmit";
11
+ readonly title: "On Form Submit";
12
+ readonly type: "trigger";
13
+ readonly params: {};
14
+ readonly preview: {
15
+ readonly values: {};
16
+ readonly actionUrl: "";
17
+ readonly method: "";
18
+ };
19
+ };
20
+ };
21
+ readonly callbacks: {
22
+ readonly performReset: {
23
+ readonly action: "performReset";
24
+ readonly title: "Reset Form";
25
+ readonly type: "callback";
26
+ readonly params: {};
27
+ };
28
+ readonly setFieldValue: {
29
+ readonly action: "setFieldValue";
30
+ readonly title: "Set Field Value";
31
+ readonly type: "callback";
32
+ readonly preview: {};
33
+ readonly params: {
34
+ readonly name: {
35
+ readonly label: "Field Name";
36
+ readonly defaultValue: undefined;
37
+ readonly type: "select";
38
+ readonly options: [];
39
+ };
40
+ readonly value: {
41
+ readonly type: "text";
42
+ readonly defaultValue: "";
43
+ };
44
+ };
45
+ };
46
+ readonly setFieldError: {
47
+ readonly action: "setFieldError";
48
+ readonly title: "Set Field Error";
49
+ readonly type: "callback";
50
+ readonly preview: {};
51
+ readonly params: {
52
+ readonly name: {
53
+ readonly label: "Field Name";
54
+ readonly defaultValue: undefined;
55
+ readonly type: "select";
56
+ readonly options: [];
57
+ };
58
+ readonly error: {
59
+ readonly type: "text";
60
+ readonly defaultValue: "";
61
+ };
62
+ };
63
+ };
64
+ };
8
65
  readonly content: {
9
66
  readonly attributes: {
10
67
  readonly method: "get";
@@ -3,6 +3,61 @@ import { elementDeclaration as e } from "@plitzi/sdk-shared/authoring/declare";
3
3
  var t = e()({
4
4
  type: "form",
5
5
  sourceType: "apiContainer",
6
+ triggers: { onSubmit: {
7
+ action: "onSubmit",
8
+ title: "On Form Submit",
9
+ type: "trigger",
10
+ params: {},
11
+ preview: {
12
+ values: {},
13
+ actionUrl: "",
14
+ method: ""
15
+ }
16
+ } },
17
+ callbacks: {
18
+ performReset: {
19
+ action: "performReset",
20
+ title: "Reset Form",
21
+ type: "callback",
22
+ params: {}
23
+ },
24
+ setFieldValue: {
25
+ action: "setFieldValue",
26
+ title: "Set Field Value",
27
+ type: "callback",
28
+ preview: {},
29
+ params: {
30
+ name: {
31
+ label: "Field Name",
32
+ defaultValue: void 0,
33
+ type: "select",
34
+ options: []
35
+ },
36
+ value: {
37
+ type: "text",
38
+ defaultValue: ""
39
+ }
40
+ }
41
+ },
42
+ setFieldError: {
43
+ action: "setFieldError",
44
+ title: "Set Field Error",
45
+ type: "callback",
46
+ preview: {},
47
+ params: {
48
+ name: {
49
+ label: "Field Name",
50
+ defaultValue: void 0,
51
+ type: "select",
52
+ options: []
53
+ },
54
+ error: {
55
+ type: "text",
56
+ defaultValue: ""
57
+ }
58
+ }
59
+ }
60
+ },
6
61
  content: {
7
62
  attributes: {
8
63
  method: "get",