@foldkit/ui 0.150.0 → 0.151.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.
- package/dist/animation/update.d.ts +10 -9
- package/dist/animation/update.d.ts.map +1 -1
- package/dist/animation/update.js +27 -35
- package/dist/calendar/index.d.ts +100 -11
- package/dist/calendar/index.d.ts.map +1 -1
- package/dist/calendar/index.js +66 -80
- package/dist/checkbox/index.d.ts +3 -4
- package/dist/checkbox/index.d.ts.map +1 -1
- package/dist/checkbox/index.js +3 -4
- package/dist/combobox/multi.d.ts +40 -51
- package/dist/combobox/multi.d.ts.map +1 -1
- package/dist/combobox/multi.js +19 -16
- package/dist/combobox/shared.d.ts +20 -20
- package/dist/combobox/shared.d.ts.map +1 -1
- package/dist/combobox/shared.js +134 -128
- package/dist/combobox/single.d.ts +38 -51
- package/dist/combobox/single.d.ts.map +1 -1
- package/dist/combobox/single.js +21 -17
- package/dist/datePicker/index.d.ts +182 -15
- package/dist/datePicker/index.d.ts.map +1 -1
- package/dist/datePicker/index.js +37 -54
- package/dist/dialog/index.d.ts +45 -7
- package/dist/dialog/index.d.ts.map +1 -1
- package/dist/dialog/index.js +54 -49
- package/dist/disclosure/index.d.ts +3 -4
- package/dist/disclosure/index.d.ts.map +1 -1
- package/dist/disclosure/index.js +3 -4
- package/dist/dragAndDrop/index.d.ts +96 -7
- package/dist/dragAndDrop/index.d.ts.map +1 -1
- package/dist/dragAndDrop/index.js +49 -61
- package/dist/fileDrop/index.d.ts +26 -11
- package/dist/fileDrop/index.d.ts.map +1 -1
- package/dist/fileDrop/index.js +16 -23
- package/dist/listbox/multi.d.ts +39 -52
- package/dist/listbox/multi.d.ts.map +1 -1
- package/dist/listbox/multi.js +9 -7
- package/dist/listbox/shared.d.ts +14 -22
- package/dist/listbox/shared.d.ts.map +1 -1
- package/dist/listbox/shared.js +113 -114
- package/dist/listbox/single.d.ts +40 -55
- package/dist/listbox/single.d.ts.map +1 -1
- package/dist/listbox/single.js +8 -7
- package/dist/menu/index.d.ts +131 -37
- package/dist/menu/index.d.ts.map +1 -1
- package/dist/menu/index.js +111 -120
- package/dist/popover/index.d.ts +71 -10
- package/dist/popover/index.d.ts.map +1 -1
- package/dist/popover/index.js +80 -73
- package/dist/radioGroup/index.d.ts +31 -19
- package/dist/radioGroup/index.d.ts.map +1 -1
- package/dist/radioGroup/index.js +18 -18
- package/dist/slider/index.d.ts +44 -13
- package/dist/slider/index.d.ts.map +1 -1
- package/dist/slider/index.js +33 -38
- package/dist/switch/index.d.ts +3 -4
- package/dist/switch/index.d.ts.map +1 -1
- package/dist/switch/index.js +3 -4
- package/dist/tabs/index.d.ts +31 -17
- package/dist/tabs/index.d.ts.map +1 -1
- package/dist/tabs/index.js +17 -17
- package/dist/test/apps/disabledButton.d.ts +17 -17
- package/dist/test/apps/disabledButton.d.ts.map +1 -1
- package/dist/test/apps/disabledButton.js +6 -4
- package/dist/toast/index.d.ts +96 -100
- package/dist/toast/index.d.ts.map +1 -1
- package/dist/toast/update.d.ts +97 -100
- package/dist/toast/update.d.ts.map +1 -1
- package/dist/toast/update.js +60 -58
- package/dist/tooltip/index.d.ts +2 -1
- package/dist/tooltip/index.d.ts.map +1 -1
- package/dist/tooltip/index.js +1 -1
- package/dist/tooltip/tooltip.d.ts +5 -10
- package/dist/tooltip/tooltip.d.ts.map +1 -1
- package/dist/tooltip/tooltip.js +45 -48
- package/dist/virtualList/index.d.ts +30 -29
- package/dist/virtualList/index.d.ts.map +1 -1
- package/dist/virtualList/index.js +21 -21
- package/package.json +3 -3
package/dist/toast/index.d.ts
CHANGED
|
@@ -297,28 +297,26 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
297
297
|
readonly isHovered: boolean;
|
|
298
298
|
readonly payload: A;
|
|
299
299
|
};
|
|
300
|
-
}) =>
|
|
301
|
-
|
|
302
|
-
readonly defaultDuration: import("effect/Duration").Duration;
|
|
303
|
-
readonly entries: readonly {
|
|
300
|
+
}) => Readonly<{
|
|
301
|
+
model: {
|
|
304
302
|
readonly id: string;
|
|
305
|
-
readonly
|
|
306
|
-
readonly
|
|
303
|
+
readonly defaultDuration: import("effect/Duration").Duration;
|
|
304
|
+
readonly entries: readonly {
|
|
307
305
|
readonly id: string;
|
|
308
|
-
readonly
|
|
309
|
-
readonly
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
306
|
+
readonly variant: "Error" | "Info" | "Success" | "Warning";
|
|
307
|
+
readonly animation: {
|
|
308
|
+
readonly id: string;
|
|
309
|
+
readonly isShowing: boolean;
|
|
310
|
+
readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
|
|
311
|
+
};
|
|
312
|
+
readonly maybeDuration: import("effect/Option").Option<import("effect/Duration").Duration>;
|
|
313
|
+
readonly pendingDismissVersion: number;
|
|
314
|
+
readonly isHovered: boolean;
|
|
315
|
+
readonly payload: A;
|
|
316
|
+
}[];
|
|
317
|
+
readonly nextEntryKey: number;
|
|
318
|
+
};
|
|
319
|
+
commands?: import("foldkit/update").Commands<{
|
|
322
320
|
readonly _tag: "DismissedAll";
|
|
323
321
|
} | {
|
|
324
322
|
readonly _tag: "GotAnimationMessage";
|
|
@@ -360,11 +358,12 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
360
358
|
readonly isHovered: boolean;
|
|
361
359
|
readonly payload: A;
|
|
362
360
|
};
|
|
363
|
-
}, never
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
361
|
+
}, never>;
|
|
362
|
+
outMessage?: {
|
|
363
|
+
readonly _tag: "DismissedToast";
|
|
364
|
+
readonly payload: A;
|
|
365
|
+
};
|
|
366
|
+
}>;
|
|
368
367
|
readonly show: (model: {
|
|
369
368
|
readonly id: string;
|
|
370
369
|
readonly defaultDuration: import("effect/Duration").Duration;
|
|
@@ -387,28 +386,26 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
387
386
|
variant?: Variant;
|
|
388
387
|
duration?: import("effect/Duration").Input;
|
|
389
388
|
sticky?: boolean;
|
|
390
|
-
}>) =>
|
|
391
|
-
|
|
392
|
-
readonly defaultDuration: import("effect/Duration").Duration;
|
|
393
|
-
readonly entries: readonly {
|
|
389
|
+
}>) => Readonly<{
|
|
390
|
+
model: {
|
|
394
391
|
readonly id: string;
|
|
395
|
-
readonly
|
|
396
|
-
readonly
|
|
392
|
+
readonly defaultDuration: import("effect/Duration").Duration;
|
|
393
|
+
readonly entries: readonly {
|
|
397
394
|
readonly id: string;
|
|
398
|
-
readonly
|
|
399
|
-
readonly
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
395
|
+
readonly variant: "Error" | "Info" | "Success" | "Warning";
|
|
396
|
+
readonly animation: {
|
|
397
|
+
readonly id: string;
|
|
398
|
+
readonly isShowing: boolean;
|
|
399
|
+
readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
|
|
400
|
+
};
|
|
401
|
+
readonly maybeDuration: import("effect/Option").Option<import("effect/Duration").Duration>;
|
|
402
|
+
readonly pendingDismissVersion: number;
|
|
403
|
+
readonly isHovered: boolean;
|
|
404
|
+
readonly payload: A;
|
|
405
|
+
}[];
|
|
406
|
+
readonly nextEntryKey: number;
|
|
407
|
+
};
|
|
408
|
+
commands?: import("foldkit/update").Commands<{
|
|
412
409
|
readonly _tag: "DismissedAll";
|
|
413
410
|
} | {
|
|
414
411
|
readonly _tag: "GotAnimationMessage";
|
|
@@ -450,11 +447,12 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
450
447
|
readonly isHovered: boolean;
|
|
451
448
|
readonly payload: A;
|
|
452
449
|
};
|
|
453
|
-
}, never
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
450
|
+
}, never>;
|
|
451
|
+
outMessage?: {
|
|
452
|
+
readonly _tag: "DismissedToast";
|
|
453
|
+
readonly payload: A;
|
|
454
|
+
};
|
|
455
|
+
}>;
|
|
458
456
|
readonly dismiss: (model: {
|
|
459
457
|
readonly id: string;
|
|
460
458
|
readonly defaultDuration: import("effect/Duration").Duration;
|
|
@@ -472,28 +470,26 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
472
470
|
readonly payload: A;
|
|
473
471
|
}[];
|
|
474
472
|
readonly nextEntryKey: number;
|
|
475
|
-
}, entryId: string) =>
|
|
476
|
-
|
|
477
|
-
readonly defaultDuration: import("effect/Duration").Duration;
|
|
478
|
-
readonly entries: readonly {
|
|
473
|
+
}, entryId: string) => Readonly<{
|
|
474
|
+
model: {
|
|
479
475
|
readonly id: string;
|
|
480
|
-
readonly
|
|
481
|
-
readonly
|
|
476
|
+
readonly defaultDuration: import("effect/Duration").Duration;
|
|
477
|
+
readonly entries: readonly {
|
|
482
478
|
readonly id: string;
|
|
483
|
-
readonly
|
|
484
|
-
readonly
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
479
|
+
readonly variant: "Error" | "Info" | "Success" | "Warning";
|
|
480
|
+
readonly animation: {
|
|
481
|
+
readonly id: string;
|
|
482
|
+
readonly isShowing: boolean;
|
|
483
|
+
readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
|
|
484
|
+
};
|
|
485
|
+
readonly maybeDuration: import("effect/Option").Option<import("effect/Duration").Duration>;
|
|
486
|
+
readonly pendingDismissVersion: number;
|
|
487
|
+
readonly isHovered: boolean;
|
|
488
|
+
readonly payload: A;
|
|
489
|
+
}[];
|
|
490
|
+
readonly nextEntryKey: number;
|
|
491
|
+
};
|
|
492
|
+
commands?: import("foldkit/update").Commands<{
|
|
497
493
|
readonly _tag: "DismissedAll";
|
|
498
494
|
} | {
|
|
499
495
|
readonly _tag: "GotAnimationMessage";
|
|
@@ -535,11 +531,12 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
535
531
|
readonly isHovered: boolean;
|
|
536
532
|
readonly payload: A;
|
|
537
533
|
};
|
|
538
|
-
}, never
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
534
|
+
}, never>;
|
|
535
|
+
outMessage?: {
|
|
536
|
+
readonly _tag: "DismissedToast";
|
|
537
|
+
readonly payload: A;
|
|
538
|
+
};
|
|
539
|
+
}>;
|
|
543
540
|
readonly dismissAll: (model: {
|
|
544
541
|
readonly id: string;
|
|
545
542
|
readonly defaultDuration: import("effect/Duration").Duration;
|
|
@@ -557,28 +554,26 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
557
554
|
readonly payload: A;
|
|
558
555
|
}[];
|
|
559
556
|
readonly nextEntryKey: number;
|
|
560
|
-
}) =>
|
|
561
|
-
|
|
562
|
-
readonly defaultDuration: import("effect/Duration").Duration;
|
|
563
|
-
readonly entries: readonly {
|
|
557
|
+
}) => Readonly<{
|
|
558
|
+
model: {
|
|
564
559
|
readonly id: string;
|
|
565
|
-
readonly
|
|
566
|
-
readonly
|
|
560
|
+
readonly defaultDuration: import("effect/Duration").Duration;
|
|
561
|
+
readonly entries: readonly {
|
|
567
562
|
readonly id: string;
|
|
568
|
-
readonly
|
|
569
|
-
readonly
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
563
|
+
readonly variant: "Error" | "Info" | "Success" | "Warning";
|
|
564
|
+
readonly animation: {
|
|
565
|
+
readonly id: string;
|
|
566
|
+
readonly isShowing: boolean;
|
|
567
|
+
readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
|
|
568
|
+
};
|
|
569
|
+
readonly maybeDuration: import("effect/Option").Option<import("effect/Duration").Duration>;
|
|
570
|
+
readonly pendingDismissVersion: number;
|
|
571
|
+
readonly isHovered: boolean;
|
|
572
|
+
readonly payload: A;
|
|
573
|
+
}[];
|
|
574
|
+
readonly nextEntryKey: number;
|
|
575
|
+
};
|
|
576
|
+
commands?: import("foldkit/update").Commands<{
|
|
582
577
|
readonly _tag: "DismissedAll";
|
|
583
578
|
} | {
|
|
584
579
|
readonly _tag: "GotAnimationMessage";
|
|
@@ -620,10 +615,11 @@ export declare const make: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
620
615
|
readonly isHovered: boolean;
|
|
621
616
|
readonly payload: A;
|
|
622
617
|
};
|
|
623
|
-
}, never
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
618
|
+
}, never>;
|
|
619
|
+
outMessage?: {
|
|
620
|
+
readonly _tag: "DismissedToast";
|
|
621
|
+
readonly payload: A;
|
|
622
|
+
};
|
|
623
|
+
}>;
|
|
628
624
|
};
|
|
629
625
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,MAAM,IAAI,CAAC,EAAE,MAAM,QAAQ,CAAA;AAChD,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,IAAI,EAAmB,MAAM,cAAc,CAAA;AAG9E,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACx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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyF1B,CAAA"}
|
package/dist/toast/update.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Duration, Effect, Option, Schema as S } from 'effect';
|
|
2
2
|
import * as Command from 'foldkit/command';
|
|
3
|
+
import * as Update from 'foldkit/update';
|
|
3
4
|
import { type InitConfig, type Variant } from './schema.js';
|
|
4
5
|
/** Input for `show()`. `payload` is the consumer-defined content shape for an
|
|
5
6
|
* entry. Omit `duration` to use the container's `defaultDuration`; pass
|
|
@@ -202,28 +203,26 @@ export declare const makeRuntime: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
202
203
|
readonly isHovered: boolean;
|
|
203
204
|
readonly payload: A;
|
|
204
205
|
};
|
|
205
|
-
}) =>
|
|
206
|
-
|
|
207
|
-
readonly defaultDuration: Duration.Duration;
|
|
208
|
-
readonly entries: readonly {
|
|
206
|
+
}) => Readonly<{
|
|
207
|
+
model: {
|
|
209
208
|
readonly id: string;
|
|
210
|
-
readonly
|
|
211
|
-
readonly
|
|
209
|
+
readonly defaultDuration: Duration.Duration;
|
|
210
|
+
readonly entries: readonly {
|
|
212
211
|
readonly id: string;
|
|
213
|
-
readonly
|
|
214
|
-
readonly
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
212
|
+
readonly variant: "Error" | "Info" | "Success" | "Warning";
|
|
213
|
+
readonly animation: {
|
|
214
|
+
readonly id: string;
|
|
215
|
+
readonly isShowing: boolean;
|
|
216
|
+
readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
|
|
217
|
+
};
|
|
218
|
+
readonly maybeDuration: Option.Option<Duration.Duration>;
|
|
219
|
+
readonly pendingDismissVersion: number;
|
|
220
|
+
readonly isHovered: boolean;
|
|
221
|
+
readonly payload: A;
|
|
222
|
+
}[];
|
|
223
|
+
readonly nextEntryKey: number;
|
|
224
|
+
};
|
|
225
|
+
commands?: Update.Commands<{
|
|
227
226
|
readonly _tag: "GotAnimationMessage";
|
|
228
227
|
readonly entryId: string;
|
|
229
228
|
readonly message: {
|
|
@@ -265,11 +264,12 @@ export declare const makeRuntime: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
265
264
|
readonly isHovered: boolean;
|
|
266
265
|
readonly payload: A;
|
|
267
266
|
};
|
|
268
|
-
}, never
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
267
|
+
}, never>;
|
|
268
|
+
outMessage?: {
|
|
269
|
+
readonly _tag: "DismissedToast";
|
|
270
|
+
readonly payload: A;
|
|
271
|
+
};
|
|
272
|
+
}>;
|
|
273
273
|
readonly show: (model: {
|
|
274
274
|
readonly id: string;
|
|
275
275
|
readonly defaultDuration: Duration.Duration;
|
|
@@ -287,28 +287,26 @@ export declare const makeRuntime: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
287
287
|
readonly payload: A;
|
|
288
288
|
}[];
|
|
289
289
|
readonly nextEntryKey: number;
|
|
290
|
-
}, input: ShowInput<A>) =>
|
|
291
|
-
|
|
292
|
-
readonly defaultDuration: Duration.Duration;
|
|
293
|
-
readonly entries: readonly {
|
|
290
|
+
}, input: ShowInput<A>) => Readonly<{
|
|
291
|
+
model: {
|
|
294
292
|
readonly id: string;
|
|
295
|
-
readonly
|
|
296
|
-
readonly
|
|
293
|
+
readonly defaultDuration: Duration.Duration;
|
|
294
|
+
readonly entries: readonly {
|
|
297
295
|
readonly id: string;
|
|
298
|
-
readonly
|
|
299
|
-
readonly
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
296
|
+
readonly variant: "Error" | "Info" | "Success" | "Warning";
|
|
297
|
+
readonly animation: {
|
|
298
|
+
readonly id: string;
|
|
299
|
+
readonly isShowing: boolean;
|
|
300
|
+
readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
|
|
301
|
+
};
|
|
302
|
+
readonly maybeDuration: Option.Option<Duration.Duration>;
|
|
303
|
+
readonly pendingDismissVersion: number;
|
|
304
|
+
readonly isHovered: boolean;
|
|
305
|
+
readonly payload: A;
|
|
306
|
+
}[];
|
|
307
|
+
readonly nextEntryKey: number;
|
|
308
|
+
};
|
|
309
|
+
commands?: Update.Commands<{
|
|
312
310
|
readonly _tag: "GotAnimationMessage";
|
|
313
311
|
readonly entryId: string;
|
|
314
312
|
readonly message: {
|
|
@@ -350,11 +348,12 @@ export declare const makeRuntime: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
350
348
|
readonly isHovered: boolean;
|
|
351
349
|
readonly payload: A;
|
|
352
350
|
};
|
|
353
|
-
}, never
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
351
|
+
}, never>;
|
|
352
|
+
outMessage?: {
|
|
353
|
+
readonly _tag: "DismissedToast";
|
|
354
|
+
readonly payload: A;
|
|
355
|
+
};
|
|
356
|
+
}>;
|
|
358
357
|
readonly dismiss: (model: {
|
|
359
358
|
readonly id: string;
|
|
360
359
|
readonly defaultDuration: Duration.Duration;
|
|
@@ -372,28 +371,26 @@ export declare const makeRuntime: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
372
371
|
readonly payload: A;
|
|
373
372
|
}[];
|
|
374
373
|
readonly nextEntryKey: number;
|
|
375
|
-
}, entryId: string) =>
|
|
376
|
-
|
|
377
|
-
readonly defaultDuration: Duration.Duration;
|
|
378
|
-
readonly entries: readonly {
|
|
374
|
+
}, entryId: string) => Readonly<{
|
|
375
|
+
model: {
|
|
379
376
|
readonly id: string;
|
|
380
|
-
readonly
|
|
381
|
-
readonly
|
|
377
|
+
readonly defaultDuration: Duration.Duration;
|
|
378
|
+
readonly entries: readonly {
|
|
382
379
|
readonly id: string;
|
|
383
|
-
readonly
|
|
384
|
-
readonly
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
380
|
+
readonly variant: "Error" | "Info" | "Success" | "Warning";
|
|
381
|
+
readonly animation: {
|
|
382
|
+
readonly id: string;
|
|
383
|
+
readonly isShowing: boolean;
|
|
384
|
+
readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
|
|
385
|
+
};
|
|
386
|
+
readonly maybeDuration: Option.Option<Duration.Duration>;
|
|
387
|
+
readonly pendingDismissVersion: number;
|
|
388
|
+
readonly isHovered: boolean;
|
|
389
|
+
readonly payload: A;
|
|
390
|
+
}[];
|
|
391
|
+
readonly nextEntryKey: number;
|
|
392
|
+
};
|
|
393
|
+
commands?: Update.Commands<{
|
|
397
394
|
readonly _tag: "GotAnimationMessage";
|
|
398
395
|
readonly entryId: string;
|
|
399
396
|
readonly message: {
|
|
@@ -435,11 +432,12 @@ export declare const makeRuntime: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
435
432
|
readonly isHovered: boolean;
|
|
436
433
|
readonly payload: A;
|
|
437
434
|
};
|
|
438
|
-
}, never
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
435
|
+
}, never>;
|
|
436
|
+
outMessage?: {
|
|
437
|
+
readonly _tag: "DismissedToast";
|
|
438
|
+
readonly payload: A;
|
|
439
|
+
};
|
|
440
|
+
}>;
|
|
443
441
|
readonly dismissAll: (model: {
|
|
444
442
|
readonly id: string;
|
|
445
443
|
readonly defaultDuration: Duration.Duration;
|
|
@@ -457,28 +455,26 @@ export declare const makeRuntime: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
457
455
|
readonly payload: A;
|
|
458
456
|
}[];
|
|
459
457
|
readonly nextEntryKey: number;
|
|
460
|
-
}) =>
|
|
461
|
-
|
|
462
|
-
readonly defaultDuration: Duration.Duration;
|
|
463
|
-
readonly entries: readonly {
|
|
458
|
+
}) => Readonly<{
|
|
459
|
+
model: {
|
|
464
460
|
readonly id: string;
|
|
465
|
-
readonly
|
|
466
|
-
readonly
|
|
461
|
+
readonly defaultDuration: Duration.Duration;
|
|
462
|
+
readonly entries: readonly {
|
|
467
463
|
readonly id: string;
|
|
468
|
-
readonly
|
|
469
|
-
readonly
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
464
|
+
readonly variant: "Error" | "Info" | "Success" | "Warning";
|
|
465
|
+
readonly animation: {
|
|
466
|
+
readonly id: string;
|
|
467
|
+
readonly isShowing: boolean;
|
|
468
|
+
readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
|
|
469
|
+
};
|
|
470
|
+
readonly maybeDuration: Option.Option<Duration.Duration>;
|
|
471
|
+
readonly pendingDismissVersion: number;
|
|
472
|
+
readonly isHovered: boolean;
|
|
473
|
+
readonly payload: A;
|
|
474
|
+
}[];
|
|
475
|
+
readonly nextEntryKey: number;
|
|
476
|
+
};
|
|
477
|
+
commands?: Update.Commands<{
|
|
482
478
|
readonly _tag: "GotAnimationMessage";
|
|
483
479
|
readonly entryId: string;
|
|
484
480
|
readonly message: {
|
|
@@ -520,10 +516,11 @@ export declare const makeRuntime: <A, I>(payloadSchema: S.Codec<A, I>) => {
|
|
|
520
516
|
readonly isHovered: boolean;
|
|
521
517
|
readonly payload: A;
|
|
522
518
|
};
|
|
523
|
-
}, never
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
519
|
+
}, never>;
|
|
520
|
+
outMessage?: {
|
|
521
|
+
readonly _tag: "DismissedToast";
|
|
522
|
+
readonly payload: A;
|
|
523
|
+
};
|
|
524
|
+
}>;
|
|
528
525
|
};
|
|
529
526
|
//# sourceMappingURL=update.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../src/toast/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EACR,MAAM,EAGN,MAAM,EACN,MAAM,IAAI,CAAC,EAEZ,MAAM,QAAQ,CAAA;AACf,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../src/toast/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EACR,MAAM,EAGN,MAAM,EACN,MAAM,IAAI,CAAC,EAEZ,MAAM,QAAQ,CAAA;AACf,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAA;AAE1C,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAA;AAaxC,OAAO,EAEL,KAAK,UAAU,EAEf,KAAK,OAAO,EAKb,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,mBAAmB;;;;;;;;iBAa9B,CAAA;AAIF;;;;;;4EAM4E;AAC5E,eAAO,MAAM,WAAW,GAAI,CAAC,EAAE,CAAC,EAAE,eAAe,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;;;;;;;;;;;;;;;;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