@foldkit/ui 0.163.0 → 0.164.0-canary.24f1c43eaaf7

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 (79) hide show
  1. package/dist/anchor/anchor.d.ts +33 -7
  2. package/dist/anchor/anchor.d.ts.map +1 -1
  3. package/dist/anchor/anchor.js +92 -14
  4. package/dist/anchor/public.d.ts +1 -1
  5. package/dist/anchor/public.d.ts.map +1 -1
  6. package/dist/anchor/public.js +1 -1
  7. package/dist/animation/index.d.ts +3 -0
  8. package/dist/animation/index.d.ts.map +1 -1
  9. package/dist/animation/schema.d.ts +13 -4
  10. package/dist/animation/schema.d.ts.map +1 -1
  11. package/dist/animation/schema.js +8 -4
  12. package/dist/animation/update.d.ts +15 -5
  13. package/dist/animation/update.d.ts.map +1 -1
  14. package/dist/animation/update.js +56 -28
  15. package/dist/combobox/multi.d.ts +5 -0
  16. package/dist/combobox/multi.d.ts.map +1 -1
  17. package/dist/combobox/shared.d.ts +19 -7
  18. package/dist/combobox/shared.d.ts.map +1 -1
  19. package/dist/combobox/shared.js +13 -13
  20. package/dist/combobox/single.d.ts +5 -0
  21. package/dist/combobox/single.d.ts.map +1 -1
  22. package/dist/datePicker/index.d.ts +13 -2
  23. package/dist/datePicker/index.d.ts.map +1 -1
  24. package/dist/dialog/index.d.ts +13 -2
  25. package/dist/dialog/index.d.ts.map +1 -1
  26. package/dist/dialog/index.js +22 -8
  27. package/dist/index.d.ts +2 -0
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +2 -0
  30. package/dist/internal/accessibleName.d.ts +9 -0
  31. package/dist/internal/accessibleName.d.ts.map +1 -0
  32. package/dist/internal/accessibleName.js +12 -0
  33. package/dist/internal/range.d.ts +7 -0
  34. package/dist/internal/range.d.ts.map +1 -0
  35. package/dist/internal/range.js +12 -0
  36. package/dist/listbox/multi.d.ts +5 -0
  37. package/dist/listbox/multi.d.ts.map +1 -1
  38. package/dist/listbox/shared.d.ts +15 -4
  39. package/dist/listbox/shared.d.ts.map +1 -1
  40. package/dist/listbox/shared.js +12 -11
  41. package/dist/listbox/single.d.ts +5 -0
  42. package/dist/listbox/single.d.ts.map +1 -1
  43. package/dist/menu/index.d.ts +16 -4
  44. package/dist/menu/index.d.ts.map +1 -1
  45. package/dist/menu/index.js +12 -11
  46. package/dist/meter/index.d.ts +26 -0
  47. package/dist/meter/index.d.ts.map +1 -0
  48. package/dist/meter/index.js +67 -0
  49. package/dist/meter/public.d.ts +3 -0
  50. package/dist/meter/public.d.ts.map +1 -0
  51. package/dist/meter/public.js +1 -0
  52. package/dist/popover/index.d.ts +20 -4
  53. package/dist/popover/index.d.ts.map +1 -1
  54. package/dist/popover/index.js +8 -8
  55. package/dist/progress/index.d.ts +24 -0
  56. package/dist/progress/index.d.ts.map +1 -0
  57. package/dist/progress/index.js +85 -0
  58. package/dist/progress/public.d.ts +3 -0
  59. package/dist/progress/public.d.ts.map +1 -0
  60. package/dist/progress/public.js +1 -0
  61. package/dist/slider/index.d.ts +61 -28
  62. package/dist/slider/index.d.ts.map +1 -1
  63. package/dist/slider/index.js +157 -81
  64. package/dist/slider/public.d.ts +1 -1
  65. package/dist/slider/public.d.ts.map +1 -1
  66. package/dist/slider/public.js +1 -1
  67. package/dist/test/apps/disabledButton.d.ts +14 -6
  68. package/dist/test/apps/disabledButton.d.ts.map +1 -1
  69. package/dist/toast/index.d.ts +89 -44
  70. package/dist/toast/index.d.ts.map +1 -1
  71. package/dist/toast/schema.d.ts +15 -4
  72. package/dist/toast/schema.d.ts.map +1 -1
  73. package/dist/toast/test.d.ts +6 -0
  74. package/dist/toast/test.d.ts.map +1 -1
  75. package/dist/toast/test.js +36 -2
  76. package/dist/toast/update.d.ts +42 -2
  77. package/dist/toast/update.d.ts.map +1 -1
  78. package/dist/tooltip/tooltip.d.ts +7 -7
  79. package/package.json +9 -9
@@ -56,6 +56,7 @@ export declare const makeEntry: <A, I>(payloadSchema: Schema.Codec<A, I>) => Sch
56
56
  readonly id: Schema.String;
57
57
  readonly isShowing: Schema.Boolean;
58
58
  readonly transitionState: Schema.Literals<readonly ["Idle", "EnterStart", "EnterAnimating", "LeaveStart", "LeaveAnimating"]>;
59
+ readonly transitionGeneration: Schema.Number;
59
60
  }>;
60
61
  readonly maybeDuration: Schema.Option<Schema.DurationFromMillis>;
61
62
  readonly pendingDismissVersion: Schema.Number;
@@ -93,6 +94,7 @@ export declare const makeModel: <A, I>(payloadSchema: Schema.Codec<A, I>) => Sch
93
94
  readonly id: Schema.String;
94
95
  readonly isShowing: Schema.Boolean;
95
96
  readonly transitionState: Schema.Literals<readonly ["Idle", "EnterStart", "EnterAnimating", "LeaveStart", "LeaveAnimating"]>;
97
+ readonly transitionGeneration: Schema.Number;
96
98
  }>;
97
99
  readonly maybeDuration: Schema.Option<Schema.DurationFromMillis>;
98
100
  readonly pendingDismissVersion: Schema.Number;
@@ -142,8 +144,12 @@ export declare const Message: import("foldkit/message").MessageUnion<{
142
144
  message: import("foldkit/message").MessageUnion<{
143
145
  readonly Showed: {};
144
146
  readonly Hid: {};
145
- readonly CompletedWaitForPaint: {};
146
- readonly EndedAnimation: {};
147
+ readonly CompletedWaitForPaint: {
148
+ generation: Schema.Number;
149
+ };
150
+ readonly EndedAnimation: {
151
+ generation: Schema.Number;
152
+ };
147
153
  }>;
148
154
  };
149
155
  readonly PressedEntryPointer: {
@@ -190,6 +196,7 @@ export declare const makeMessage: <A, I>(payloadSchema: Schema.Codec<A, I>) => i
190
196
  readonly id: Schema.String;
191
197
  readonly isShowing: Schema.Boolean;
192
198
  readonly transitionState: Schema.Literals<readonly ["Idle", "EnterStart", "EnterAnimating", "LeaveStart", "LeaveAnimating"]>;
199
+ readonly transitionGeneration: Schema.Number;
193
200
  }>;
194
201
  readonly maybeDuration: Schema.Option<Schema.DurationFromMillis>;
195
202
  readonly pendingDismissVersion: Schema.Number;
@@ -232,8 +239,12 @@ export declare const makeMessage: <A, I>(payloadSchema: Schema.Codec<A, I>) => i
232
239
  message: import("foldkit/message").MessageUnion<{
233
240
  readonly Showed: {};
234
241
  readonly Hid: {};
235
- readonly CompletedWaitForPaint: {};
236
- readonly EndedAnimation: {};
242
+ readonly CompletedWaitForPaint: {
243
+ generation: Schema.Number;
244
+ };
245
+ readonly EndedAnimation: {
246
+ generation: Schema.Number;
247
+ };
237
248
  }>;
238
249
  };
239
250
  readonly PressedEntryPointer: {
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/toast/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAQzC;;;;kDAIkD;AAClD,eAAO,MAAM,OAAO,mEAA2D,CAAA;AAC/E,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC,IAAI,CAAA;AAIzC,gFAAgF;AAChF,eAAO,MAAM,QAAQ,6GAOnB,CAAA;AACF,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC,IAAI,CAAA;AAI3C,oEAAoE;AACpE,eAAO,MAAM,cAAc,6CAAqC,CAAA;AAChE,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,IAAI,CAAA;AAOvD;;;;;;0CAM0C;AAC1C,eAAO,MAAM,UAAU;;;QAGnB,SAAS;QACT,MAAM;QACN,QAAQ;;;QAGR,OAAO;;;QAGP,OAAO;QACP,SAAS;;EAEX,CAAA;AACF,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC,IAAI,CAAA;AAE/C,2EAA2E;AAC3E,eAAO,MAAM,uBAAuB,KAAK,CAAA;AAEzC,gEAAgE;AAChE,eAAO,MAAM,uBAAuB,EAAE,cAAwB,CAAA;AAE9D;wDACwD;AACxD,eAAO,MAAM,qBAAqB,mBAAuB,CAAA;AAIzD;;;;;;6BAM6B;AAC7B,eAAO,MAAM,SAAS,GAAI,CAAC,EAAE,CAAC,iBAAiB,MAAM,CAAC,KAAK,CAAC,CAAC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gBAAgB,mBAAsB,CAAA"}
@@ -24,6 +24,12 @@ export type DrainEntryInput = Readonly<{
24
24
  * - exit animation: `WaitForPaint` then `CompletedWaitForPaint`
25
25
  * - exit settle: `WaitForAnimationSettled` then `EndedAnimation`
26
26
  *
27
+ * The enter steps match animation transition generation `1`, which the
28
+ * entry's `Showed` starts, and the exit steps match generation `2`, which its
29
+ * `Hid` starts. Each step matches only its own generation, so the helper also
30
+ * an entry whose enter the test has already resolved. These versions are
31
+ * separate from the auto-dismiss timer `version`.
32
+ *
27
33
  * Each step resolves with the child's raw result Message. `resolveAll` replays
28
34
  * the matched Command's own recorded wrapping, so a parent that embeds the
29
35
  * toast Submodel drains the same way without restating its `Got*` lift.
@@ -1 +1 @@
1
- {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../src/toast/test.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,eAAe,CAAA;AAMtC;;;2BAG2B;AAC3B,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;IACrC,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAC,CAAA;AAIF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,UAAU,0BAGpB,eAAe,iKAUf,CAAA"}
1
+ {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../src/toast/test.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,eAAe,CAAA;AAMtC;;;2BAG2B;AAC3B,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;IACrC,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAC,CAAA;AAMF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,UAAU,0BAGpB,eAAe,iKAoCf,CAAA"}
@@ -4,6 +4,8 @@ import * as Animation from '../animation/index.js';
4
4
  import { Message } from './schema.js';
5
5
  import { WaitBeforeDismissal } from './update.js';
6
6
  const DEFAULT_VERSION = 0;
7
+ const ENTER_TRANSITION_GENERATION = 1;
8
+ const LEAVE_TRANSITION_GENERATION = 2;
7
9
  /** Builds a `Story.Command.resolveAll` step that drains a single toast
8
10
  * entry's full animation and dismiss lifecycle. Resolving these Commands in
9
11
  * order takes a freshly shown entry from its enter animation through
@@ -21,6 +23,12 @@ const DEFAULT_VERSION = 0;
21
23
  * - exit animation: `WaitForPaint` then `CompletedWaitForPaint`
22
24
  * - exit settle: `WaitForAnimationSettled` then `EndedAnimation`
23
25
  *
26
+ * The enter steps match animation transition generation `1`, which the
27
+ * entry's `Showed` starts, and the exit steps match generation `2`, which its
28
+ * `Hid` starts. Each step matches only its own generation, so the helper also
29
+ * an entry whose enter the test has already resolved. These versions are
30
+ * separate from the auto-dismiss timer `version`.
31
+ *
24
32
  * Each step resolves with the child's raw result Message. `resolveAll` replays
25
33
  * the matched Command's own recorded wrapping, so a parent that embeds the
26
34
  * toast Submodel drains the same way without restating its `Got*` lift.
@@ -35,7 +43,33 @@ const DEFAULT_VERSION = 0;
35
43
  * )
36
44
  * ```
37
45
  */
38
- export const drainEntry = ({ entryId, version = DEFAULT_VERSION, }) => __foldkitBrandViewResult((Story.Command.resolveAll([Animation.WaitForPaint, Animation.Message.CompletedWaitForPaint()], [Animation.WaitForAnimationSettled, Animation.Message.EndedAnimation()], [
46
+ export const drainEntry = ({ entryId, version = DEFAULT_VERSION, }) => __foldkitBrandViewResult((Story.Command.resolveAll([
47
+ Animation.WaitForPaint({ generation: ENTER_TRANSITION_GENERATION }),
48
+ Animation.Message.CompletedWaitForPaint({
49
+ generation: ENTER_TRANSITION_GENERATION,
50
+ }),
51
+ ], [
52
+ Animation.WaitForAnimationSettled({
53
+ id: entryId,
54
+ generation: ENTER_TRANSITION_GENERATION,
55
+ }),
56
+ Animation.Message.EndedAnimation({
57
+ generation: ENTER_TRANSITION_GENERATION,
58
+ }),
59
+ ], [
39
60
  WaitBeforeDismissal,
40
61
  Message.CompletedWaitBeforeDismissal({ entryId, version }),
41
- ], [Animation.WaitForPaint, Animation.Message.CompletedWaitForPaint()], [Animation.WaitForAnimationSettled, Animation.Message.EndedAnimation()])), "@foldkit/ui/toast/test.js#drainEntry");
62
+ ], [
63
+ Animation.WaitForPaint({ generation: LEAVE_TRANSITION_GENERATION }),
64
+ Animation.Message.CompletedWaitForPaint({
65
+ generation: LEAVE_TRANSITION_GENERATION,
66
+ }),
67
+ ], [
68
+ Animation.WaitForAnimationSettled({
69
+ id: entryId,
70
+ generation: LEAVE_TRANSITION_GENERATION,
71
+ }),
72
+ Animation.Message.EndedAnimation({
73
+ generation: LEAVE_TRANSITION_GENERATION,
74
+ }),
75
+ ])), "@foldkit/ui/toast/test.js#drainEntry");
@@ -52,6 +52,7 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
52
52
  readonly id: Schema.String;
53
53
  readonly isShowing: Schema.Boolean;
54
54
  readonly transitionState: Schema.Literals<readonly ["Idle", "EnterStart", "EnterAnimating", "LeaveStart", "LeaveAnimating"]>;
55
+ readonly transitionGeneration: Schema.Number;
55
56
  }>;
56
57
  readonly maybeDuration: Schema.Option<Schema.DurationFromMillis>;
57
58
  readonly pendingDismissVersion: Schema.Number;
@@ -84,6 +85,7 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
84
85
  readonly id: Schema.String;
85
86
  readonly isShowing: Schema.Boolean;
86
87
  readonly transitionState: Schema.Literals<readonly ["Idle", "EnterStart", "EnterAnimating", "LeaveStart", "LeaveAnimating"]>;
88
+ readonly transitionGeneration: Schema.Number;
87
89
  }>;
88
90
  readonly maybeDuration: Schema.Option<Schema.DurationFromMillis>;
89
91
  readonly pendingDismissVersion: Schema.Number;
@@ -121,6 +123,7 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
121
123
  readonly id: Schema.String;
122
124
  readonly isShowing: Schema.Boolean;
123
125
  readonly transitionState: Schema.Literals<readonly ["Idle", "EnterStart", "EnterAnimating", "LeaveStart", "LeaveAnimating"]>;
126
+ readonly transitionGeneration: Schema.Number;
124
127
  }>;
125
128
  readonly maybeDuration: Schema.Option<Schema.DurationFromMillis>;
126
129
  readonly pendingDismissVersion: Schema.Number;
@@ -163,8 +166,12 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
163
166
  message: import("foldkit/message").MessageUnion<{
164
167
  readonly Showed: {};
165
168
  readonly Hid: {};
166
- readonly CompletedWaitForPaint: {};
167
- readonly EndedAnimation: {};
169
+ readonly CompletedWaitForPaint: {
170
+ generation: Schema.Number;
171
+ };
172
+ readonly EndedAnimation: {
173
+ generation: Schema.Number;
174
+ };
168
175
  }>;
169
176
  };
170
177
  readonly PressedEntryPointer: {
@@ -202,6 +209,7 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
202
209
  readonly id: Schema.String;
203
210
  readonly isShowing: Schema.Boolean;
204
211
  readonly transitionState: Schema.Literals<readonly ["Idle", "EnterStart", "EnterAnimating", "LeaveStart", "LeaveAnimating"]>;
212
+ readonly transitionGeneration: Schema.Number;
205
213
  }>;
206
214
  readonly maybeDuration: Schema.Option<Schema.DurationFromMillis>;
207
215
  readonly pendingDismissVersion: Schema.Number;
@@ -238,6 +246,7 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
238
246
  readonly id: string;
239
247
  readonly isShowing: boolean;
240
248
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
249
+ readonly transitionGeneration: number;
241
250
  };
242
251
  readonly maybeDuration: Option.Option<Duration.Duration>;
243
252
  readonly pendingDismissVersion: number;
@@ -276,6 +285,7 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
276
285
  readonly id: string;
277
286
  readonly isShowing: boolean;
278
287
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
288
+ readonly transitionGeneration: number;
279
289
  };
280
290
  readonly maybeDuration: Option.Option<Duration.Duration>;
281
291
  readonly pendingDismissVersion: number;
@@ -312,6 +322,7 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
312
322
  readonly id: string;
313
323
  readonly isShowing: boolean;
314
324
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
325
+ readonly transitionGeneration: number;
315
326
  };
316
327
  readonly maybeDuration: Option.Option<Duration.Duration>;
317
328
  readonly pendingDismissVersion: number;
@@ -355,8 +366,10 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
355
366
  readonly entryId: string;
356
367
  readonly message: {
357
368
  readonly _tag: "CompletedWaitForPaint";
369
+ readonly generation: number;
358
370
  } | {
359
371
  readonly _tag: "EndedAnimation";
372
+ readonly generation: number;
360
373
  } | {
361
374
  readonly _tag: "Hid";
362
375
  } | {
@@ -394,6 +407,7 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
394
407
  readonly id: string;
395
408
  readonly isShowing: boolean;
396
409
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
410
+ readonly transitionGeneration: number;
397
411
  };
398
412
  readonly maybeDuration: Option.Option<Duration.Duration>;
399
413
  readonly pendingDismissVersion: number;
@@ -431,6 +445,7 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
431
445
  readonly id: string;
432
446
  readonly isShowing: boolean;
433
447
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
448
+ readonly transitionGeneration: number;
434
449
  };
435
450
  readonly maybeDuration: Option.Option<Duration.Duration>;
436
451
  readonly pendingDismissVersion: number;
@@ -474,8 +489,10 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
474
489
  readonly entryId: string;
475
490
  readonly message: {
476
491
  readonly _tag: "CompletedWaitForPaint";
492
+ readonly generation: number;
477
493
  } | {
478
494
  readonly _tag: "EndedAnimation";
495
+ readonly generation: number;
479
496
  } | {
480
497
  readonly _tag: "Hid";
481
498
  } | {
@@ -518,6 +535,7 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
518
535
  readonly id: string;
519
536
  readonly isShowing: boolean;
520
537
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
538
+ readonly transitionGeneration: number;
521
539
  };
522
540
  readonly maybeDuration: Option.Option<Duration.Duration>;
523
541
  readonly pendingDismissVersion: number;
@@ -556,6 +574,7 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
556
574
  readonly id: string;
557
575
  readonly isShowing: boolean;
558
576
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
577
+ readonly transitionGeneration: number;
559
578
  };
560
579
  readonly maybeDuration: Option.Option<Duration.Duration>;
561
580
  readonly pendingDismissVersion: number;
@@ -593,6 +612,7 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
593
612
  readonly id: string;
594
613
  readonly isShowing: boolean;
595
614
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
615
+ readonly transitionGeneration: number;
596
616
  };
597
617
  readonly maybeDuration: Option.Option<Duration.Duration>;
598
618
  readonly pendingDismissVersion: number;
@@ -636,8 +656,10 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
636
656
  readonly entryId: string;
637
657
  readonly message: {
638
658
  readonly _tag: "CompletedWaitForPaint";
659
+ readonly generation: number;
639
660
  } | {
640
661
  readonly _tag: "EndedAnimation";
662
+ readonly generation: number;
641
663
  } | {
642
664
  readonly _tag: "Hid";
643
665
  } | {
@@ -680,6 +702,7 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
680
702
  readonly id: string;
681
703
  readonly isShowing: boolean;
682
704
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
705
+ readonly transitionGeneration: number;
683
706
  };
684
707
  readonly maybeDuration: Option.Option<Duration.Duration>;
685
708
  readonly pendingDismissVersion: number;
@@ -718,6 +741,7 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
718
741
  readonly id: string;
719
742
  readonly isShowing: boolean;
720
743
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
744
+ readonly transitionGeneration: number;
721
745
  };
722
746
  readonly maybeDuration: Option.Option<Duration.Duration>;
723
747
  readonly pendingDismissVersion: number;
@@ -755,6 +779,7 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
755
779
  readonly id: string;
756
780
  readonly isShowing: boolean;
757
781
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
782
+ readonly transitionGeneration: number;
758
783
  };
759
784
  readonly maybeDuration: Option.Option<Duration.Duration>;
760
785
  readonly pendingDismissVersion: number;
@@ -798,8 +823,10 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
798
823
  readonly entryId: string;
799
824
  readonly message: {
800
825
  readonly _tag: "CompletedWaitForPaint";
826
+ readonly generation: number;
801
827
  } | {
802
828
  readonly _tag: "EndedAnimation";
829
+ readonly generation: number;
803
830
  } | {
804
831
  readonly _tag: "Hid";
805
832
  } | {
@@ -842,6 +869,7 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
842
869
  readonly id: string;
843
870
  readonly isShowing: boolean;
844
871
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
872
+ readonly transitionGeneration: number;
845
873
  };
846
874
  readonly maybeDuration: Option.Option<Duration.Duration>;
847
875
  readonly pendingDismissVersion: number;
@@ -880,6 +908,7 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
880
908
  readonly id: string;
881
909
  readonly isShowing: boolean;
882
910
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
911
+ readonly transitionGeneration: number;
883
912
  };
884
913
  readonly maybeDuration: Option.Option<Duration.Duration>;
885
914
  readonly pendingDismissVersion: number;
@@ -917,6 +946,7 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
917
946
  readonly id: string;
918
947
  readonly isShowing: boolean;
919
948
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
949
+ readonly transitionGeneration: number;
920
950
  };
921
951
  readonly maybeDuration: Option.Option<Duration.Duration>;
922
952
  readonly pendingDismissVersion: number;
@@ -960,8 +990,10 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
960
990
  readonly entryId: string;
961
991
  readonly message: {
962
992
  readonly _tag: "CompletedWaitForPaint";
993
+ readonly generation: number;
963
994
  } | {
964
995
  readonly _tag: "EndedAnimation";
996
+ readonly generation: number;
965
997
  } | {
966
998
  readonly _tag: "Hid";
967
999
  } | {
@@ -1005,6 +1037,7 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
1005
1037
  readonly id: string;
1006
1038
  readonly isShowing: boolean;
1007
1039
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
1040
+ readonly transitionGeneration: number;
1008
1041
  };
1009
1042
  readonly maybeDuration: Option.Option<Duration.Duration>;
1010
1043
  readonly pendingDismissVersion: number;
@@ -1041,6 +1074,7 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
1041
1074
  readonly id: string;
1042
1075
  readonly isShowing: boolean;
1043
1076
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
1077
+ readonly transitionGeneration: number;
1044
1078
  };
1045
1079
  readonly maybeDuration: Option.Option<Duration.Duration>;
1046
1080
  readonly pendingDismissVersion: number;
@@ -1084,8 +1118,10 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
1084
1118
  readonly entryId: string;
1085
1119
  readonly message: {
1086
1120
  readonly _tag: "CompletedWaitForPaint";
1121
+ readonly generation: number;
1087
1122
  } | {
1088
1123
  readonly _tag: "EndedAnimation";
1124
+ readonly generation: number;
1089
1125
  } | {
1090
1126
  readonly _tag: "Hid";
1091
1127
  } | {
@@ -1128,6 +1164,7 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
1128
1164
  readonly id: string;
1129
1165
  readonly isShowing: boolean;
1130
1166
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
1167
+ readonly transitionGeneration: number;
1131
1168
  };
1132
1169
  readonly maybeDuration: Option.Option<Duration.Duration>;
1133
1170
  readonly pendingDismissVersion: number;
@@ -1164,6 +1201,7 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
1164
1201
  readonly id: string;
1165
1202
  readonly isShowing: boolean;
1166
1203
  readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
1204
+ readonly transitionGeneration: number;
1167
1205
  };
1168
1206
  readonly maybeDuration: Option.Option<Duration.Duration>;
1169
1207
  readonly pendingDismissVersion: number;
@@ -1207,8 +1245,10 @@ export declare const makeRuntime: <A, I>(payloadSchema: Schema.Codec<A, I>) => {
1207
1245
  readonly entryId: string;
1208
1246
  readonly message: {
1209
1247
  readonly _tag: "CompletedWaitForPaint";
1248
+ readonly generation: number;
1210
1249
  } | {
1211
1250
  readonly _tag: "EndedAnimation";
1251
+ readonly generation: number;
1212
1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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiG/C,CAAA"}
@@ -103,6 +103,13 @@ export declare const view: import("foldkit/submodel").View<{
103
103
  readonly pendingShowVersion: number;
104
104
  readonly maybeLastPointerType: Option.Option<string>;
105
105
  }, {
106
+ readonly _tag: "PressedEscape";
107
+ } | {
108
+ readonly _tag: "CompletedWaitBeforeShowing";
109
+ readonly version: number;
110
+ } | {
111
+ readonly _tag: "CompletedAnchorTooltip";
112
+ } | {
106
113
  readonly _tag: "BlurredTrigger";
107
114
  } | {
108
115
  readonly _tag: "EnteredTrigger";
@@ -110,13 +117,6 @@ export declare const view: import("foldkit/submodel").View<{
110
117
  readonly _tag: "FocusedTrigger";
111
118
  } | {
112
119
  readonly _tag: "LeftTrigger";
113
- } | {
114
- readonly _tag: "PressedEscape";
115
- } | {
116
- readonly _tag: "CompletedWaitBeforeShowing";
117
- readonly version: number;
118
- } | {
119
- readonly _tag: "CompletedAnchorTooltip";
120
120
  } | {
121
121
  readonly _tag: "PressedPointerOnTrigger";
122
122
  readonly pointerType: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foldkit/ui",
3
- "version": "0.163.0",
3
+ "version": "0.164.0-canary.24f1c43eaaf7",
4
4
  "description": "Headless, accessible UI components for Foldkit",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -121,21 +121,21 @@
121
121
  "dist"
122
122
  ],
123
123
  "peerDependencies": {
124
- "effect": "4.0.0-rc.116",
125
- "foldkit": ">=0.163.0"
124
+ "effect": "4.0.0-rc.117",
125
+ "foldkit": "0.164.0-canary.24f1c43eaaf7"
126
126
  },
127
127
  "dependencies": {
128
128
  "@floating-ui/dom": "^1.8.0"
129
129
  },
130
130
  "devDependencies": {
131
- "@effect/vitest": "4.0.0-rc.116",
132
- "effect": "4.0.0-rc.116",
133
- "happy-dom": "^20.11.13",
131
+ "@effect/vitest": "4.0.0-rc.117",
132
+ "effect": "4.0.0-rc.117",
133
+ "happy-dom": "^20.14.5",
134
134
  "rimraf": "^6.1.3",
135
135
  "typescript": "^7.0.2",
136
- "vitest": "^5.0.0",
137
- "@foldkit/vite-plugin": "0.24.0",
138
- "foldkit": "0.163.0"
136
+ "vitest": "^5.0.2",
137
+ "@foldkit/vite-plugin": "0.25.0-canary.24f1c43eaaf7",
138
+ "foldkit": "0.164.0-canary.24f1c43eaaf7"
139
139
  },
140
140
  "keywords": [
141
141
  "foldkit",