foldkit 0.111.1 → 0.112.0

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 (222) hide show
  1. package/README.md +2 -2
  2. package/dist/devTools/host.d.ts +6 -0
  3. package/dist/devTools/host.d.ts.map +1 -0
  4. package/dist/devTools/host.js +4 -0
  5. package/dist/dom/dom.d.ts +6 -1
  6. package/dist/dom/dom.d.ts.map +1 -1
  7. package/dist/dom/dom.js +24 -1
  8. package/dist/html/index.d.ts +4 -3
  9. package/dist/html/index.d.ts.map +1 -1
  10. package/dist/html/index.js +4 -3
  11. package/dist/html/submodel.d.ts +2 -2
  12. package/dist/html/submodel.d.ts.map +1 -1
  13. package/dist/index.d.ts +0 -1
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +0 -1
  16. package/dist/runtime/public.d.ts +1 -1
  17. package/dist/runtime/public.d.ts.map +1 -1
  18. package/dist/runtime/runtime.d.ts +14 -1
  19. package/dist/runtime/runtime.d.ts.map +1 -1
  20. package/dist/runtime/runtime.js +7 -4
  21. package/dist/runtime/subscription.d.ts +1 -1
  22. package/dist/subscription/public.d.ts +1 -1
  23. package/dist/subscription/public.d.ts.map +1 -1
  24. package/package.json +12 -93
  25. package/dist/devTools/overlay-styles.d.ts +0 -3
  26. package/dist/devTools/overlay-styles.d.ts.map +0 -1
  27. package/dist/devTools/overlay-styles.js +0 -706
  28. package/dist/devTools/overlay.d.ts +0 -63
  29. package/dist/devTools/overlay.d.ts.map +0 -1
  30. package/dist/devTools/overlay.js +0 -1244
  31. package/dist/test/apps/disabledButton.d.ts +0 -38
  32. package/dist/test/apps/disabledButton.d.ts.map +0 -1
  33. package/dist/test/apps/disabledButton.js +0 -71
  34. package/dist/ui/anchor.d.ts +0 -38
  35. package/dist/ui/anchor.d.ts.map +0 -1
  36. package/dist/ui/anchor.js +0 -142
  37. package/dist/ui/animation/index.d.ts +0 -49
  38. package/dist/ui/animation/index.d.ts.map +0 -1
  39. package/dist/ui/animation/index.js +0 -74
  40. package/dist/ui/animation/public.d.ts +0 -3
  41. package/dist/ui/animation/public.d.ts.map +0 -1
  42. package/dist/ui/animation/public.js +0 -1
  43. package/dist/ui/animation/schema.d.ts +0 -43
  44. package/dist/ui/animation/schema.d.ts.map +0 -1
  45. package/dist/ui/animation/schema.js +0 -41
  46. package/dist/ui/animation/update.d.ts +0 -24
  47. package/dist/ui/animation/update.d.ts.map +0 -1
  48. package/dist/ui/animation/update.js +0 -67
  49. package/dist/ui/button/index.d.ts +0 -17
  50. package/dist/ui/button/index.d.ts.map +0 -1
  51. package/dist/ui/button/index.js +0 -22
  52. package/dist/ui/button/public.d.ts +0 -3
  53. package/dist/ui/button/public.d.ts.map +0 -1
  54. package/dist/ui/button/public.js +0 -1
  55. package/dist/ui/calendar/index.d.ts +0 -462
  56. package/dist/ui/calendar/index.d.ts.map +0 -1
  57. package/dist/ui/calendar/index.js +0 -824
  58. package/dist/ui/calendar/public.d.ts +0 -3
  59. package/dist/ui/calendar/public.d.ts.map +0 -1
  60. package/dist/ui/calendar/public.js +0 -1
  61. package/dist/ui/checkbox/index.d.ts +0 -119
  62. package/dist/ui/checkbox/index.d.ts.map +0 -1
  63. package/dist/ui/checkbox/index.js +0 -110
  64. package/dist/ui/checkbox/public.d.ts +0 -3
  65. package/dist/ui/checkbox/public.d.ts.map +0 -1
  66. package/dist/ui/checkbox/public.js +0 -1
  67. package/dist/ui/combobox/multi.d.ts +0 -184
  68. package/dist/ui/combobox/multi.d.ts.map +0 -1
  69. package/dist/ui/combobox/multi.js +0 -81
  70. package/dist/ui/combobox/multiPublic.d.ts +0 -3
  71. package/dist/ui/combobox/multiPublic.d.ts.map +0 -1
  72. package/dist/ui/combobox/multiPublic.js +0 -1
  73. package/dist/ui/combobox/public.d.ts +0 -7
  74. package/dist/ui/combobox/public.d.ts.map +0 -1
  75. package/dist/ui/combobox/public.js +0 -3
  76. package/dist/ui/combobox/shared.d.ts +0 -422
  77. package/dist/ui/combobox/shared.d.ts.map +0 -1
  78. package/dist/ui/combobox/shared.js +0 -707
  79. package/dist/ui/combobox/single.d.ts +0 -199
  80. package/dist/ui/combobox/single.d.ts.map +0 -1
  81. package/dist/ui/combobox/single.js +0 -106
  82. package/dist/ui/datePicker/index.d.ts +0 -457
  83. package/dist/ui/datePicker/index.d.ts.map +0 -1
  84. package/dist/ui/datePicker/index.js +0 -317
  85. package/dist/ui/datePicker/public.d.ts +0 -3
  86. package/dist/ui/datePicker/public.d.ts.map +0 -1
  87. package/dist/ui/datePicker/public.js +0 -1
  88. package/dist/ui/dialog/index.d.ts +0 -155
  89. package/dist/ui/dialog/index.d.ts.map +0 -1
  90. package/dist/ui/dialog/index.js +0 -208
  91. package/dist/ui/dialog/public.d.ts +0 -3
  92. package/dist/ui/dialog/public.d.ts.map +0 -1
  93. package/dist/ui/dialog/public.js +0 -1
  94. package/dist/ui/disclosure/index.d.ts +0 -110
  95. package/dist/ui/disclosure/index.d.ts.map +0 -1
  96. package/dist/ui/disclosure/index.js +0 -110
  97. package/dist/ui/disclosure/public.d.ts +0 -3
  98. package/dist/ui/disclosure/public.d.ts.map +0 -1
  99. package/dist/ui/disclosure/public.js +0 -1
  100. package/dist/ui/dragAndDrop/index.d.ts +0 -540
  101. package/dist/ui/dragAndDrop/index.d.ts.map +0 -1
  102. package/dist/ui/dragAndDrop/index.js +0 -535
  103. package/dist/ui/dragAndDrop/public.d.ts +0 -3
  104. package/dist/ui/dragAndDrop/public.d.ts.map +0 -1
  105. package/dist/ui/dragAndDrop/public.js +0 -1
  106. package/dist/ui/fieldset/index.d.ts +0 -21
  107. package/dist/ui/fieldset/index.d.ts.map +0 -1
  108. package/dist/ui/fieldset/index.js +0 -25
  109. package/dist/ui/fieldset/public.d.ts +0 -3
  110. package/dist/ui/fieldset/public.d.ts.map +0 -1
  111. package/dist/ui/fieldset/public.js +0 -1
  112. package/dist/ui/fileDrop/index.d.ts +0 -109
  113. package/dist/ui/fileDrop/index.d.ts.map +0 -1
  114. package/dist/ui/fileDrop/index.js +0 -126
  115. package/dist/ui/fileDrop/public.d.ts +0 -3
  116. package/dist/ui/fileDrop/public.d.ts.map +0 -1
  117. package/dist/ui/fileDrop/public.js +0 -1
  118. package/dist/ui/group.d.ts +0 -8
  119. package/dist/ui/group.d.ts.map +0 -1
  120. package/dist/ui/group.js +0 -13
  121. package/dist/ui/index.d.ts +0 -25
  122. package/dist/ui/index.d.ts.map +0 -1
  123. package/dist/ui/index.js +0 -24
  124. package/dist/ui/input/index.d.ts +0 -26
  125. package/dist/ui/input/index.d.ts.map +0 -1
  126. package/dist/ui/input/index.js +0 -43
  127. package/dist/ui/input/public.d.ts +0 -3
  128. package/dist/ui/input/public.d.ts.map +0 -1
  129. package/dist/ui/input/public.js +0 -1
  130. package/dist/ui/keyboard.d.ts +0 -6
  131. package/dist/ui/keyboard.d.ts.map +0 -1
  132. package/dist/ui/keyboard.js +0 -9
  133. package/dist/ui/listbox/multi.d.ts +0 -190
  134. package/dist/ui/listbox/multi.d.ts.map +0 -1
  135. package/dist/ui/listbox/multi.js +0 -65
  136. package/dist/ui/listbox/multiPublic.d.ts +0 -3
  137. package/dist/ui/listbox/multiPublic.d.ts.map +0 -1
  138. package/dist/ui/listbox/multiPublic.js +0 -1
  139. package/dist/ui/listbox/public.d.ts +0 -7
  140. package/dist/ui/listbox/public.d.ts.map +0 -1
  141. package/dist/ui/listbox/public.js +0 -3
  142. package/dist/ui/listbox/shared.d.ts +0 -431
  143. package/dist/ui/listbox/shared.d.ts.map +0 -1
  144. package/dist/ui/listbox/shared.js +0 -669
  145. package/dist/ui/listbox/single.d.ts +0 -208
  146. package/dist/ui/listbox/single.d.ts.map +0 -1
  147. package/dist/ui/listbox/single.js +0 -73
  148. package/dist/ui/menu/index.d.ts +0 -367
  149. package/dist/ui/menu/index.d.ts.map +0 -1
  150. package/dist/ui/menu/index.js +0 -681
  151. package/dist/ui/menu/public.d.ts +0 -4
  152. package/dist/ui/menu/public.d.ts.map +0 -1
  153. package/dist/ui/menu/public.js +0 -1
  154. package/dist/ui/popover/index.d.ts +0 -267
  155. package/dist/ui/popover/index.d.ts.map +0 -1
  156. package/dist/ui/popover/index.js +0 -345
  157. package/dist/ui/popover/public.d.ts +0 -4
  158. package/dist/ui/popover/public.d.ts.map +0 -1
  159. package/dist/ui/popover/public.js +0 -1
  160. package/dist/ui/radioGroup/index.d.ts +0 -169
  161. package/dist/ui/radioGroup/index.d.ts.map +0 -1
  162. package/dist/ui/radioGroup/index.js +0 -196
  163. package/dist/ui/radioGroup/public.d.ts +0 -3
  164. package/dist/ui/radioGroup/public.d.ts.map +0 -1
  165. package/dist/ui/radioGroup/public.js +0 -1
  166. package/dist/ui/select/index.d.ts +0 -24
  167. package/dist/ui/select/index.d.ts.map +0 -1
  168. package/dist/ui/select/index.js +0 -40
  169. package/dist/ui/select/public.d.ts +0 -3
  170. package/dist/ui/select/public.d.ts.map +0 -1
  171. package/dist/ui/select/public.js +0 -1
  172. package/dist/ui/slider/index.d.ts +0 -318
  173. package/dist/ui/slider/index.d.ts.map +0 -1
  174. package/dist/ui/slider/index.js +0 -336
  175. package/dist/ui/slider/public.d.ts +0 -3
  176. package/dist/ui/slider/public.d.ts.map +0 -1
  177. package/dist/ui/slider/public.js +0 -1
  178. package/dist/ui/switch/index.d.ts +0 -99
  179. package/dist/ui/switch/index.d.ts.map +0 -1
  180. package/dist/ui/switch/index.js +0 -106
  181. package/dist/ui/switch/public.d.ts +0 -3
  182. package/dist/ui/switch/public.d.ts.map +0 -1
  183. package/dist/ui/switch/public.js +0 -1
  184. package/dist/ui/tabs/index.d.ts +0 -155
  185. package/dist/ui/tabs/index.d.ts.map +0 -1
  186. package/dist/ui/tabs/index.js +0 -184
  187. package/dist/ui/tabs/public.d.ts +0 -3
  188. package/dist/ui/tabs/public.d.ts.map +0 -1
  189. package/dist/ui/tabs/public.js +0 -1
  190. package/dist/ui/textarea/index.d.ts +0 -26
  191. package/dist/ui/textarea/index.d.ts.map +0 -1
  192. package/dist/ui/textarea/index.js +0 -44
  193. package/dist/ui/textarea/public.d.ts +0 -3
  194. package/dist/ui/textarea/public.d.ts.map +0 -1
  195. package/dist/ui/textarea/public.js +0 -1
  196. package/dist/ui/toast/index.d.ts +0 -608
  197. package/dist/ui/toast/index.d.ts.map +0 -1
  198. package/dist/ui/toast/index.js +0 -145
  199. package/dist/ui/toast/public.d.ts +0 -4
  200. package/dist/ui/toast/public.d.ts.map +0 -1
  201. package/dist/ui/toast/public.js +0 -1
  202. package/dist/ui/toast/schema.d.ts +0 -154
  203. package/dist/ui/toast/schema.d.ts.map +0 -1
  204. package/dist/ui/toast/schema.js +0 -93
  205. package/dist/ui/toast/update.d.ts +0 -510
  206. package/dist/ui/toast/update.d.ts.map +0 -1
  207. package/dist/ui/toast/update.js +0 -225
  208. package/dist/ui/tooltip/index.d.ts +0 -170
  209. package/dist/ui/tooltip/index.d.ts.map +0 -1
  210. package/dist/ui/tooltip/index.js +0 -252
  211. package/dist/ui/tooltip/public.d.ts +0 -4
  212. package/dist/ui/tooltip/public.d.ts.map +0 -1
  213. package/dist/ui/tooltip/public.js +0 -1
  214. package/dist/ui/typeahead.d.ts +0 -4
  215. package/dist/ui/typeahead.d.ts.map +0 -1
  216. package/dist/ui/typeahead.js +0 -14
  217. package/dist/ui/virtualList/index.d.ts +0 -202
  218. package/dist/ui/virtualList/index.d.ts.map +0 -1
  219. package/dist/ui/virtualList/index.js +0 -391
  220. package/dist/ui/virtualList/public.d.ts +0 -3
  221. package/dist/ui/virtualList/public.d.ts.map +0 -1
  222. package/dist/ui/virtualList/public.js +0 -1
@@ -1,510 +0,0 @@
1
- import { Duration, Effect, Option, Schema as S } from 'effect';
2
- import * as Command from '../../command/index.js';
3
- import { type InitConfig, type Variant } from './schema.js';
4
- /** Input for `show()`. `payload` is the consumer-defined content shape for an
5
- * entry. Omit `duration` to use the container's `defaultDuration`; pass
6
- * `sticky: true` to skip auto-dismiss entirely. */
7
- export type ShowInput<A> = Readonly<{
8
- payload: A;
9
- variant?: Variant;
10
- duration?: Duration.Input;
11
- sticky?: boolean;
12
- }>;
13
- /** Schedules an auto-dismiss timer for an entry. The result Message carries a
14
- * version so stale timers (from hover or manual dismiss) are discarded in
15
- * the update function. Static. The Command definition doesn't depend on
16
- * payload. */
17
- export declare const DismissAfter: Command.CommandDefinitionWithArgs<"DismissAfter", {
18
- entryId: S.String;
19
- version: S.Number;
20
- duration: S.DurationFromMillis;
21
- }, Effect.Effect<{
22
- readonly _tag: "ElapsedDuration";
23
- readonly entryId: string;
24
- readonly version: number;
25
- }, never, never>>;
26
- /** Factory that binds Toast's runtime (update fn, helpers, commands) to a
27
- * specific payload schema. Called by `make` in index.ts; inner helpers close
28
- * over the payload-specific Entry / Model / Added types so generics don't
29
- * have to propagate through every helper signature.
30
- *
31
- * @internal Consumers should use `Ui.Toast.make(PayloadSchema)`. This is
32
- * only exported so `index.ts` can wire the view into the bound runtime. */
33
- export declare const makeRuntime: <A, I>(payloadSchema: S.Codec<A, I>) => {
34
- readonly Entry: S.Struct<{
35
- readonly id: S.String;
36
- readonly variant: S.Literals<readonly ["Info", "Success", "Warning", "Error"]>;
37
- readonly animation: S.Struct<{
38
- readonly id: S.String;
39
- readonly isShowing: S.Boolean;
40
- readonly transitionState: S.Literals<readonly ["Idle", "EnterStart", "EnterAnimating", "LeaveStart", "LeaveAnimating"]>;
41
- }>;
42
- readonly maybeDuration: S.Option<S.DurationFromMillis>;
43
- readonly pendingDismissVersion: S.Number;
44
- readonly isHovered: S.Boolean;
45
- readonly payload: S.Codec<A, I, never, never>;
46
- }>;
47
- readonly Model: S.Struct<{
48
- readonly id: S.String;
49
- readonly defaultDuration: S.DurationFromMillis;
50
- readonly entries: S.$Array<S.Struct<{
51
- readonly id: S.String;
52
- readonly variant: S.Literals<readonly ["Info", "Success", "Warning", "Error"]>;
53
- readonly animation: S.Struct<{
54
- readonly id: S.String;
55
- readonly isShowing: S.Boolean;
56
- readonly transitionState: S.Literals<readonly ["Idle", "EnterStart", "EnterAnimating", "LeaveStart", "LeaveAnimating"]>;
57
- }>;
58
- readonly maybeDuration: S.Option<S.DurationFromMillis>;
59
- readonly pendingDismissVersion: S.Number;
60
- readonly isHovered: S.Boolean;
61
- readonly payload: S.Codec<A, I, never, never>;
62
- }>>;
63
- readonly nextEntryKey: S.Number;
64
- }>;
65
- readonly Message: S.Union<readonly [import("../../schema/index.js").CallableTaggedStruct<"Added", {
66
- entry: S.Struct<{
67
- readonly id: S.String;
68
- readonly variant: S.Literals<readonly ["Info", "Success", "Warning", "Error"]>;
69
- readonly animation: S.Struct<{
70
- readonly id: S.String;
71
- readonly isShowing: S.Boolean;
72
- readonly transitionState: S.Literals<readonly ["Idle", "EnterStart", "EnterAnimating", "LeaveStart", "LeaveAnimating"]>;
73
- }>;
74
- readonly maybeDuration: S.Option<S.DurationFromMillis>;
75
- readonly pendingDismissVersion: S.Number;
76
- readonly isHovered: S.Boolean;
77
- readonly payload: S.Codec<A, I, never, never>;
78
- }>;
79
- }>, import("../../schema/index.js").CallableTaggedStruct<"Dismissed", {
80
- entryId: S.String;
81
- }>, import("../../schema/index.js").CallableTaggedStruct<"DismissedAll", {}>, import("../../schema/index.js").CallableTaggedStruct<"ElapsedDuration", {
82
- entryId: S.String;
83
- version: S.Number;
84
- }>, import("../../schema/index.js").CallableTaggedStruct<"HoveredEntry", {
85
- entryId: S.String;
86
- }>, import("../../schema/index.js").CallableTaggedStruct<"LeftEntry", {
87
- entryId: S.String;
88
- }>, import("../../schema/index.js").CallableTaggedStruct<"GotAnimationMessage", {
89
- entryId: S.String;
90
- message: S.Union<[import("../../schema/index.js").CallableTaggedStruct<"Showed", {}>, import("../../schema/index.js").CallableTaggedStruct<"Hid", {}>, import("../../schema/index.js").CallableTaggedStruct<"AdvancedAnimationFrame", {}>, import("../../schema/index.js").CallableTaggedStruct<"EndedAnimation", {}>]>;
91
- }>]>;
92
- readonly OutMessage: S.Union<readonly [import("../../schema/index.js").CallableTaggedStruct<"DismissedToast", {
93
- payload: S.Codec<A, I, never, never>;
94
- }>]>;
95
- readonly Added: import("../../schema/index.js").CallableTaggedStruct<"Added", {
96
- entry: S.Struct<{
97
- readonly id: S.String;
98
- readonly variant: S.Literals<readonly ["Info", "Success", "Warning", "Error"]>;
99
- readonly animation: S.Struct<{
100
- readonly id: S.String;
101
- readonly isShowing: S.Boolean;
102
- readonly transitionState: S.Literals<readonly ["Idle", "EnterStart", "EnterAnimating", "LeaveStart", "LeaveAnimating"]>;
103
- }>;
104
- readonly maybeDuration: S.Option<S.DurationFromMillis>;
105
- readonly pendingDismissVersion: S.Number;
106
- readonly isHovered: S.Boolean;
107
- readonly payload: S.Codec<A, I, never, never>;
108
- }>;
109
- }>;
110
- readonly DismissedToast: import("../../schema/index.js").CallableTaggedStruct<"DismissedToast", {
111
- payload: S.Codec<A, I, never, never>;
112
- }>;
113
- readonly init: (config: InitConfig) => {
114
- readonly id: string;
115
- readonly defaultDuration: Duration.Duration;
116
- readonly entries: readonly {
117
- readonly id: string;
118
- readonly variant: "Error" | "Success" | "Info" | "Warning";
119
- readonly animation: {
120
- readonly id: string;
121
- readonly isShowing: boolean;
122
- readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
123
- };
124
- readonly maybeDuration: Option.Option<Duration.Duration>;
125
- readonly pendingDismissVersion: number;
126
- readonly isHovered: boolean;
127
- readonly payload: A;
128
- }[];
129
- readonly nextEntryKey: number;
130
- };
131
- readonly update: (model: {
132
- readonly id: string;
133
- readonly defaultDuration: Duration.Duration;
134
- readonly entries: readonly {
135
- readonly id: string;
136
- readonly variant: "Error" | "Success" | "Info" | "Warning";
137
- readonly animation: {
138
- readonly id: string;
139
- readonly isShowing: boolean;
140
- readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
141
- };
142
- readonly maybeDuration: Option.Option<Duration.Duration>;
143
- readonly pendingDismissVersion: number;
144
- readonly isHovered: boolean;
145
- readonly payload: A;
146
- }[];
147
- readonly nextEntryKey: number;
148
- }, message: {
149
- readonly _tag: "Dismissed";
150
- readonly entryId: string;
151
- } | {
152
- readonly _tag: "DismissedAll";
153
- } | {
154
- readonly _tag: "ElapsedDuration";
155
- readonly entryId: string;
156
- readonly version: number;
157
- } | {
158
- readonly _tag: "HoveredEntry";
159
- readonly entryId: string;
160
- } | {
161
- readonly _tag: "LeftEntry";
162
- readonly entryId: string;
163
- } | {
164
- readonly _tag: "GotAnimationMessage";
165
- readonly entryId: string;
166
- readonly message: {
167
- readonly _tag: "Showed";
168
- } | {
169
- readonly _tag: "Hid";
170
- } | {
171
- readonly _tag: "AdvancedAnimationFrame";
172
- } | {
173
- readonly _tag: "EndedAnimation";
174
- };
175
- } | {
176
- readonly _tag: "Added";
177
- readonly entry: {
178
- readonly id: string;
179
- readonly variant: "Error" | "Success" | "Info" | "Warning";
180
- readonly animation: {
181
- readonly id: string;
182
- readonly isShowing: boolean;
183
- readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
184
- };
185
- readonly maybeDuration: Option.Option<Duration.Duration>;
186
- readonly pendingDismissVersion: number;
187
- readonly isHovered: boolean;
188
- readonly payload: A;
189
- };
190
- }) => readonly [{
191
- readonly id: string;
192
- readonly defaultDuration: Duration.Duration;
193
- readonly entries: readonly {
194
- readonly id: string;
195
- readonly variant: "Error" | "Success" | "Info" | "Warning";
196
- readonly animation: {
197
- readonly id: string;
198
- readonly isShowing: boolean;
199
- readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
200
- };
201
- readonly maybeDuration: Option.Option<Duration.Duration>;
202
- readonly pendingDismissVersion: number;
203
- readonly isHovered: boolean;
204
- readonly payload: A;
205
- }[];
206
- readonly nextEntryKey: number;
207
- }, readonly Readonly<{
208
- name: string;
209
- args?: Record<string, unknown>;
210
- effect: Effect.Effect<{
211
- readonly _tag: "Dismissed";
212
- readonly entryId: string;
213
- } | {
214
- readonly _tag: "DismissedAll";
215
- } | {
216
- readonly _tag: "ElapsedDuration";
217
- readonly entryId: string;
218
- readonly version: number;
219
- } | {
220
- readonly _tag: "HoveredEntry";
221
- readonly entryId: string;
222
- } | {
223
- readonly _tag: "LeftEntry";
224
- readonly entryId: string;
225
- } | {
226
- readonly _tag: "GotAnimationMessage";
227
- readonly entryId: string;
228
- readonly message: {
229
- readonly _tag: "Showed";
230
- } | {
231
- readonly _tag: "Hid";
232
- } | {
233
- readonly _tag: "AdvancedAnimationFrame";
234
- } | {
235
- readonly _tag: "EndedAnimation";
236
- };
237
- } | {
238
- readonly _tag: "Added";
239
- readonly entry: {
240
- readonly id: string;
241
- readonly variant: "Error" | "Success" | "Info" | "Warning";
242
- readonly animation: {
243
- readonly id: string;
244
- readonly isShowing: boolean;
245
- readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
246
- };
247
- readonly maybeDuration: Option.Option<Duration.Duration>;
248
- readonly pendingDismissVersion: number;
249
- readonly isHovered: boolean;
250
- readonly payload: A;
251
- };
252
- }, never, never>;
253
- }>[], Option.Option<{
254
- readonly _tag: "DismissedToast";
255
- readonly payload: A;
256
- }>];
257
- readonly show: (model: {
258
- readonly id: string;
259
- readonly defaultDuration: Duration.Duration;
260
- readonly entries: readonly {
261
- readonly id: string;
262
- readonly variant: "Error" | "Success" | "Info" | "Warning";
263
- readonly animation: {
264
- readonly id: string;
265
- readonly isShowing: boolean;
266
- readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
267
- };
268
- readonly maybeDuration: Option.Option<Duration.Duration>;
269
- readonly pendingDismissVersion: number;
270
- readonly isHovered: boolean;
271
- readonly payload: A;
272
- }[];
273
- readonly nextEntryKey: number;
274
- }, input: ShowInput<A>) => readonly [{
275
- readonly id: string;
276
- readonly defaultDuration: Duration.Duration;
277
- readonly entries: readonly {
278
- readonly id: string;
279
- readonly variant: "Error" | "Success" | "Info" | "Warning";
280
- readonly animation: {
281
- readonly id: string;
282
- readonly isShowing: boolean;
283
- readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
284
- };
285
- readonly maybeDuration: Option.Option<Duration.Duration>;
286
- readonly pendingDismissVersion: number;
287
- readonly isHovered: boolean;
288
- readonly payload: A;
289
- }[];
290
- readonly nextEntryKey: number;
291
- }, readonly Readonly<{
292
- name: string;
293
- args?: Record<string, unknown>;
294
- effect: Effect.Effect<{
295
- readonly _tag: "Dismissed";
296
- readonly entryId: string;
297
- } | {
298
- readonly _tag: "DismissedAll";
299
- } | {
300
- readonly _tag: "ElapsedDuration";
301
- readonly entryId: string;
302
- readonly version: number;
303
- } | {
304
- readonly _tag: "HoveredEntry";
305
- readonly entryId: string;
306
- } | {
307
- readonly _tag: "LeftEntry";
308
- readonly entryId: string;
309
- } | {
310
- readonly _tag: "GotAnimationMessage";
311
- readonly entryId: string;
312
- readonly message: {
313
- readonly _tag: "Showed";
314
- } | {
315
- readonly _tag: "Hid";
316
- } | {
317
- readonly _tag: "AdvancedAnimationFrame";
318
- } | {
319
- readonly _tag: "EndedAnimation";
320
- };
321
- } | {
322
- readonly _tag: "Added";
323
- readonly entry: {
324
- readonly id: string;
325
- readonly variant: "Error" | "Success" | "Info" | "Warning";
326
- readonly animation: {
327
- readonly id: string;
328
- readonly isShowing: boolean;
329
- readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
330
- };
331
- readonly maybeDuration: Option.Option<Duration.Duration>;
332
- readonly pendingDismissVersion: number;
333
- readonly isHovered: boolean;
334
- readonly payload: A;
335
- };
336
- }, never, never>;
337
- }>[], Option.Option<{
338
- readonly _tag: "DismissedToast";
339
- readonly payload: A;
340
- }>];
341
- readonly dismiss: (model: {
342
- readonly id: string;
343
- readonly defaultDuration: Duration.Duration;
344
- readonly entries: readonly {
345
- readonly id: string;
346
- readonly variant: "Error" | "Success" | "Info" | "Warning";
347
- readonly animation: {
348
- readonly id: string;
349
- readonly isShowing: boolean;
350
- readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
351
- };
352
- readonly maybeDuration: Option.Option<Duration.Duration>;
353
- readonly pendingDismissVersion: number;
354
- readonly isHovered: boolean;
355
- readonly payload: A;
356
- }[];
357
- readonly nextEntryKey: number;
358
- }, entryId: string) => readonly [{
359
- readonly id: string;
360
- readonly defaultDuration: Duration.Duration;
361
- readonly entries: readonly {
362
- readonly id: string;
363
- readonly variant: "Error" | "Success" | "Info" | "Warning";
364
- readonly animation: {
365
- readonly id: string;
366
- readonly isShowing: boolean;
367
- readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
368
- };
369
- readonly maybeDuration: Option.Option<Duration.Duration>;
370
- readonly pendingDismissVersion: number;
371
- readonly isHovered: boolean;
372
- readonly payload: A;
373
- }[];
374
- readonly nextEntryKey: number;
375
- }, readonly Readonly<{
376
- name: string;
377
- args?: Record<string, unknown>;
378
- effect: Effect.Effect<{
379
- readonly _tag: "Dismissed";
380
- readonly entryId: string;
381
- } | {
382
- readonly _tag: "DismissedAll";
383
- } | {
384
- readonly _tag: "ElapsedDuration";
385
- readonly entryId: string;
386
- readonly version: number;
387
- } | {
388
- readonly _tag: "HoveredEntry";
389
- readonly entryId: string;
390
- } | {
391
- readonly _tag: "LeftEntry";
392
- readonly entryId: string;
393
- } | {
394
- readonly _tag: "GotAnimationMessage";
395
- readonly entryId: string;
396
- readonly message: {
397
- readonly _tag: "Showed";
398
- } | {
399
- readonly _tag: "Hid";
400
- } | {
401
- readonly _tag: "AdvancedAnimationFrame";
402
- } | {
403
- readonly _tag: "EndedAnimation";
404
- };
405
- } | {
406
- readonly _tag: "Added";
407
- readonly entry: {
408
- readonly id: string;
409
- readonly variant: "Error" | "Success" | "Info" | "Warning";
410
- readonly animation: {
411
- readonly id: string;
412
- readonly isShowing: boolean;
413
- readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
414
- };
415
- readonly maybeDuration: Option.Option<Duration.Duration>;
416
- readonly pendingDismissVersion: number;
417
- readonly isHovered: boolean;
418
- readonly payload: A;
419
- };
420
- }, never, never>;
421
- }>[], Option.Option<{
422
- readonly _tag: "DismissedToast";
423
- readonly payload: A;
424
- }>];
425
- readonly dismissAll: (model: {
426
- readonly id: string;
427
- readonly defaultDuration: Duration.Duration;
428
- readonly entries: readonly {
429
- readonly id: string;
430
- readonly variant: "Error" | "Success" | "Info" | "Warning";
431
- readonly animation: {
432
- readonly id: string;
433
- readonly isShowing: boolean;
434
- readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
435
- };
436
- readonly maybeDuration: Option.Option<Duration.Duration>;
437
- readonly pendingDismissVersion: number;
438
- readonly isHovered: boolean;
439
- readonly payload: A;
440
- }[];
441
- readonly nextEntryKey: number;
442
- }) => readonly [{
443
- readonly id: string;
444
- readonly defaultDuration: Duration.Duration;
445
- readonly entries: readonly {
446
- readonly id: string;
447
- readonly variant: "Error" | "Success" | "Info" | "Warning";
448
- readonly animation: {
449
- readonly id: string;
450
- readonly isShowing: boolean;
451
- readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
452
- };
453
- readonly maybeDuration: Option.Option<Duration.Duration>;
454
- readonly pendingDismissVersion: number;
455
- readonly isHovered: boolean;
456
- readonly payload: A;
457
- }[];
458
- readonly nextEntryKey: number;
459
- }, readonly Readonly<{
460
- name: string;
461
- args?: Record<string, unknown>;
462
- effect: Effect.Effect<{
463
- readonly _tag: "Dismissed";
464
- readonly entryId: string;
465
- } | {
466
- readonly _tag: "DismissedAll";
467
- } | {
468
- readonly _tag: "ElapsedDuration";
469
- readonly entryId: string;
470
- readonly version: number;
471
- } | {
472
- readonly _tag: "HoveredEntry";
473
- readonly entryId: string;
474
- } | {
475
- readonly _tag: "LeftEntry";
476
- readonly entryId: string;
477
- } | {
478
- readonly _tag: "GotAnimationMessage";
479
- readonly entryId: string;
480
- readonly message: {
481
- readonly _tag: "Showed";
482
- } | {
483
- readonly _tag: "Hid";
484
- } | {
485
- readonly _tag: "AdvancedAnimationFrame";
486
- } | {
487
- readonly _tag: "EndedAnimation";
488
- };
489
- } | {
490
- readonly _tag: "Added";
491
- readonly entry: {
492
- readonly id: string;
493
- readonly variant: "Error" | "Success" | "Info" | "Warning";
494
- readonly animation: {
495
- readonly id: string;
496
- readonly isShowing: boolean;
497
- readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
498
- };
499
- readonly maybeDuration: Option.Option<Duration.Duration>;
500
- readonly pendingDismissVersion: number;
501
- readonly isHovered: boolean;
502
- readonly payload: A;
503
- };
504
- }, never, never>;
505
- }>[], Option.Option<{
506
- readonly _tag: "DismissedToast";
507
- readonly payload: A;
508
- }>];
509
- };
510
- //# sourceMappingURL=update.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/ui/toast/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EACR,MAAM,EAGN,MAAM,EACN,MAAM,IAAI,CAAC,EACZ,MAAM,QAAQ,CAAA;AAEf,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAA;AAcjD,OAAO,EAML,KAAK,UAAU,EACf,KAAK,OAAO,EAOb,MAAM,aAAa,CAAA;AAIpB;;oDAEoD;AACpD,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI,QAAQ,CAAC;IAClC,OAAO,EAAE,CAAC,CAAA;IACV,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAA;IACzB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAC,CAAA;AAEF;;;eAGe;AACf,eAAO,MAAM,YAAY;;;;;;;;iBAUxB,CAAA;AAID;;;;;;4EAM4E;AAC5E,eAAO,MAAM,WAAW,GAAI,CAAC,EAAE,CAAC,EAAE,eAAe,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BA6ItC,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+IG,SAAS,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAIP,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoB/C,CAAA"}