@cloudlet/toast 1.4.0-rc.1 → 1.5.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 (83) hide show
  1. package/CHANGELOG.md +181 -0
  2. package/README.md +30 -5
  3. package/dist/agent.d.ts.map +1 -1
  4. package/dist/agent.js +19 -15
  5. package/dist/agent.js.map +1 -1
  6. package/dist/center-react.d.ts +286 -0
  7. package/dist/center-react.d.ts.map +1 -0
  8. package/dist/center-react.js +2 -0
  9. package/dist/center.d.ts +3 -0
  10. package/dist/center.d.ts.map +1 -0
  11. package/dist/center.js +1 -0
  12. package/dist/core/agent-port.d.ts +2 -0
  13. package/dist/core/agent-port.d.ts.map +1 -1
  14. package/dist/core/agent-port.js +3 -0
  15. package/dist/core/agent-port.js.map +1 -1
  16. package/dist/react/card.d.ts +4 -0
  17. package/dist/react/card.d.ts.map +1 -1
  18. package/dist/react/card.js +3 -8
  19. package/dist/react/card.js.map +1 -1
  20. package/dist/react/center-backdrop.d.ts +69 -0
  21. package/dist/react/center-backdrop.d.ts.map +1 -0
  22. package/dist/react/center-backdrop.js +81 -0
  23. package/dist/react/center-backdrop.js.map +1 -0
  24. package/dist/react/center-clear.d.ts +16 -0
  25. package/dist/react/center-clear.d.ts.map +1 -0
  26. package/dist/react/center-clear.js +24 -0
  27. package/dist/react/center-clear.js.map +1 -0
  28. package/dist/react/center-gestures.d.ts +47 -0
  29. package/dist/react/center-gestures.d.ts.map +1 -0
  30. package/dist/react/center-gestures.js +74 -0
  31. package/dist/react/center-gestures.js.map +1 -0
  32. package/dist/react/center-motion.d.ts +174 -0
  33. package/dist/react/center-motion.d.ts.map +1 -0
  34. package/dist/react/center-motion.js +344 -0
  35. package/dist/react/center-motion.js.map +1 -0
  36. package/dist/react/center.d.ts +15 -0
  37. package/dist/react/center.d.ts.map +1 -0
  38. package/dist/react/center.js +1287 -0
  39. package/dist/react/center.js.map +1 -0
  40. package/dist/react/focus.d.ts +7 -0
  41. package/dist/react/focus.d.ts.map +1 -0
  42. package/dist/react/focus.js +14 -0
  43. package/dist/react/focus.js.map +1 -0
  44. package/dist/react/gestures.d.ts +33 -2
  45. package/dist/react/gestures.d.ts.map +1 -1
  46. package/dist/react/gestures.js +181 -149
  47. package/dist/react/gestures.js.map +1 -1
  48. package/dist/react/host.d.ts.map +1 -1
  49. package/dist/react/host.js +287 -283
  50. package/dist/react/host.js.map +1 -1
  51. package/dist/react/motion.d.ts +18 -11
  52. package/dist/react/motion.d.ts.map +1 -1
  53. package/dist/react/motion.js +6 -3
  54. package/dist/react/motion.js.map +1 -1
  55. package/dist/react/reduced.d.ts +24 -0
  56. package/dist/react/reduced.d.ts.map +1 -0
  57. package/dist/react/reduced.js +35 -0
  58. package/dist/react/reduced.js.map +1 -0
  59. package/dist/react/zoom.d.ts +12 -0
  60. package/dist/react/zoom.d.ts.map +1 -0
  61. package/dist/react/zoom.js +21 -0
  62. package/dist/react/zoom.js.map +1 -0
  63. package/dist/react.d.ts +4 -0
  64. package/dist/react.d.ts.map +1 -1
  65. package/dist/styles.css +1 -1
  66. package/package.json +3 -2
  67. package/src/agent.ts +11 -6
  68. package/src/center-react.ts +300 -0
  69. package/src/center.ts +27 -0
  70. package/src/core/agent-port.ts +3 -0
  71. package/src/react/card.tsx +5 -6
  72. package/src/react/center-backdrop.tsx +151 -0
  73. package/src/react/center-clear.ts +56 -0
  74. package/src/react/center-gestures.ts +143 -0
  75. package/src/react/center-motion.ts +504 -0
  76. package/src/react/center.tsx +1557 -0
  77. package/src/react/focus.ts +18 -0
  78. package/src/react/gestures.ts +127 -37
  79. package/src/react/host.tsx +17 -5
  80. package/src/react/motion.ts +16 -9
  81. package/src/react/reduced.ts +52 -0
  82. package/src/react/zoom.ts +26 -0
  83. package/src/react.ts +4 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,186 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.5.0 — 2026-12-01
4
+
5
+ The notification center. A new subpath, `@cloudlet/toast/center`, shows your app's own
6
+ notifications in a panel at the edge of the page: newest first, gathered into groups that stack and
7
+ expand, with an unread state, actions and swipes. It takes an array from your app, wherever the
8
+ notifications come from (a REST API, a WebSocket, local state), and never changes it: dismissing,
9
+ clearing, actions and reading come back to you as callbacks, you update the array, and the panel
10
+ animates the difference. Connect it in three lines: `const center = useNotificationCenter()`, spread
11
+ `center.triggerProps` on your own button, and render
12
+ `<NotificationCenter center={center} notifications={items} onDismiss={…} />`. It is apart from the
13
+ Toaster: toasts never go into it, and the root entry does not load it. Documentation:
14
+ https://cloudlet.dev/docs/components/notification-center. In a shadcn/ui project the registry item
15
+ `notification-center` (`npx shadcn@latest add @cloudlet/notification-center`) adds the panel and a
16
+ bell button with a badge of the count you give it, on your theme's tokens. Swipes of the Toaster,
17
+ the Island and the center no longer fly away after a few pixels on a trackpad. This release also
18
+ carries the Island's fix for CSS `zoom` from 1.4.1, which was never published to npm: upgrading
19
+ from 1.4.0 needs nothing else.
20
+
21
+ ### The center
22
+
23
+ - `NotificationCenter` takes `notifications`, an array of `NotificationItem`: `id` (stable and
24
+ unique: the panel follows a notification by it across arrays), `title`, `description`, `time` (a
25
+ `Date` or milliseconds since the epoch), `group`, `kind`, `read`, `icon`, `actions`
26
+ (`{ id, label }[]`) and `data` (the app's own, handed back untouched). The panel shows them newest
27
+ first by `time` (equal times keep the array's order); an item without a string `id`, or with the
28
+ `id` of an earlier one, is left out. `kind` `success`, `error`, `info`, `warning` or `loading`
29
+ draws the Toaster's status icon and tint and a hidden word for screen readers; any other string is
30
+ the app's own kind (`data-kind` on the card).
31
+ - The panel never changes the list. `onDismiss(id)` is asked by a card's clear button and by a
32
+ swipe, `onClear(ids)` by a group's two-step Clear (its ids, newest first) and by the header's
33
+ Clear all (every id), `onAction(id, actionId)` by an action button (the card stays unless the app
34
+ removes it), and `onRead(ids)` reports the unread notifications (`read: false`) the person has
35
+ seen: those listed when the panel opens and those that arrive while it is open on a visible page,
36
+ each id once per opening. With only `onClear`, a dismiss calls `onClear([id])`; with only
37
+ `onDismiss`, a clear calls it for each id; with neither, there are no clear buttons and no swipes.
38
+ - Each new array is laid out against the previous one: a notification that arrives while the panel
39
+ is open grows in at the top and is spoken in the panel's polite live region; one the app took out
40
+ leaves as an inert copy while the others move to their places. A card swiped away springs back
41
+ while the app decides and flies on with the swipe's speed when the app takes it out within 600 ms,
42
+ from wherever it has sprung back to; one the app takes out later (a server that confirms later)
43
+ leaves as any other, and one it keeps (it refused) stays.
44
+ - `renderNotification(item, parts)` draws a card's content from the default parts: `icon`, `title`
45
+ (the heading with `titleId`), `description`, `actions`, `time` (with the clear button in its
46
+ place), `content` (all of them as the default card lays them out), `dismiss()` and
47
+ `action(actionId)`. The panel keeps the card's frame, its motion and its swipe.
48
+ - An unread notification (`read: false`) has a dot and `data-read="false"`, and a hidden "Unread"
49
+ before its title. The bell's count is the app's own, from its `read` flags.
50
+
51
+ ### The panel and your buttons
52
+
53
+ - `useNotificationCenter(options?)` gives `open`, `setOpen` and `triggerProps` for the app's own
54
+ button (`aria-expanded`, `aria-haspopup: 'dialog'`, `aria-controls` naming the panel while it is
55
+ open, a `ref` and a click that opens or closes the center). Uncontrolled with `defaultOpen`, or
56
+ controlled with `open` and `onOpenChange`, where the app may say no by keeping `open` (the next
57
+ Escape, press outside or click asks again); `setOpen` is the same function every render. Spread
58
+ `triggerProps` on as many buttons as you like: each opens and closes the center, and focus comes
59
+ back to the one that opened it. `NotificationCenter` takes the result as `center`; without it the
60
+ panel takes `open`, `defaultOpen` and `onOpenChange` itself.
61
+ - `<NotificationCenter />` is a non-modal dialog portalled into `document.body` on the Toaster's
62
+ layer, named by its visible heading "Notifications", with a round close button and a column of
63
+ cards at the right edge (`side="left"` for the left; physical, also in RTL), or "No
64
+ notifications". A card's time ("now", "2m", "1h", "3d", then a date) gives way to its clear button
65
+ on hover and while focus is in the card. Tab goes from the header's buttons to the cards from top
66
+ to bottom, with no stop on the list itself. The server and the first client render draw no panel,
67
+ even for an open center.
68
+ - Props: `center`, `open`, `defaultOpen`, `onOpenChange`, `notifications`, `onDismiss`, `onClear`,
69
+ `onAction`, `onRead`, `renderNotification`, `side`, `theme`, `dir`, `labels`, `classNames` by
70
+ part, `backdrop`, `motion`, `reducedMotion` and `nonce`. The labels are `title`, `close`, `clear`,
71
+ `empty`, `kind`, `unread`, `time` and those of groups below; the column is
72
+ `--cloudlet-center-width` wide (392px, never more than the viewport less 12px), and the panel's
73
+ root carries `.cloudlet-host`, so the Toaster's tokens and themes style it too.
74
+ - The panel closes the way a non-modal panel does: Escape while focus is in the panel, on one of the
75
+ center's buttons or on the page's body (no other Escape handler hears it; Escape in a field of the
76
+ page or during an IME composition is left alone), and a primary press anywhere outside the panel
77
+ and the center's buttons, which goes on to the page. Opening moves focus to the panel's heading;
78
+ closing from inside moves it to the button that opened the center, else to what had focus before,
79
+ else to the center's first button. A card that leaves while focus is in it hands focus to the card
80
+ that followed it, else to the heading.
81
+ - Motion. The drawer slides in from its edge and out on one critically damped spring of its
82
+ position, the cards trailing one another (12 % of the way each, up to the eighth), the header
83
+ appearing in the second half of the way; pressing the button again mid-way turns it from where it
84
+ is. A closing panel is inert and hidden from assistive technology at once. `motion` takes
85
+ `timeScale` and `overrides`, the Toaster's debugging channel; `reducedMotion` works as the
86
+ Toaster's (the system and `data-reduced-motion` on an ancestor still win), and under reduced motion
87
+ the column, the backdrop's layers and the cards fade for 80 ms instead of moving; `nonce` goes on
88
+ the panel's own `<style>`, whose CSSOM rules carry every frame (no style attribute).
89
+ - Swipes. Two fingers on a trackpad, or a finger, towards the drawer's edge drag the drawer (it
90
+ resists outwards past open); let go past the threshold, it asks the app to close the center and
91
+ keeps the swipe's speed. Away from the edge on a card, the card follows and fades; past the
92
+ threshold it asks the app to dismiss it. A sideways trackpad stream over the panel never reaches
93
+ the browser's back and forward swipe, while the page's own scrolling waits on no listener of the
94
+ panel; buttons start no swipe, sides count from the physical edge, and reduced motion turns the
95
+ swipes off while the buttons stay.
96
+
97
+ ### Groups
98
+
99
+ - Notifications with the same nonempty `group` form a group, standing where its newest notification
100
+ stands. Two or more are a stack: the newest card in full, up to two edges of the cards under it,
101
+ and a button below, "Deploys · 2 more", that expands it, as a click on the stack does. Expanded,
102
+ the group shows all its cards under a row with its name and count and "Show less". The group is a
103
+ `role="group"` named "Deploys, 3 notifications"; its cards' titles are `h4`. Every group is
104
+ collapsed again when the center opens.
105
+ - A group and the whole list clear in two presses, as the Island's Clear all does: "Clear" in an
106
+ expanded group's heading row, a clear button in place of a collapsed stack's top card's time, and
107
+ "Clear all" in the header from two notifications. The first press arms the button ("Clear 3", in
108
+ the error tint, said by a polite status); the second within 3 seconds calls `onClear` with the
109
+ ids. A button disarms when its time runs out, when focus leaves it and when it leaves.
110
+ - The stacks move: expanding spreads the cards out of the stack on a spring that a click mid-way
111
+ turns, collapsing gathers them back, the heading row and the button under the stack swap with a
112
+ blur, and a notification arriving in a collapsed stack grows in on top.
113
+ - Labels `group`, `more`, `stack`, `showLess`, `clearGroup`, `clearGroupConfirm`, `clearStack`,
114
+ `clearAll` and `clearAllConfirm`; parts `group`, `group-header`, `group-title`, `show-less`,
115
+ `group-list`, `edge`, `more`, `clear-all`, `group-clear` and `stack-clear`; a motion constant
116
+ `stack` (`step` 10 px, `shrink` 0.06, `expand` and `collapse` the Island's shape springs, `reveal`
117
+ 160 ms, `blur` 4 px, `cascade` 0).
118
+
119
+ ### Backdrop
120
+
121
+ - `backdrop` is `blur` (the default), `tint` or `none`, live, said in the root's `data-backdrop`.
122
+ `blur` blurs the page under the column and a band past it progressively: four layers of
123
+ `backdrop-filter` under a tone, one in Safari and every browser on iOS and iPadOS, and the tone of
124
+ `tint` in a window narrower than 48rem and without `backdrop-filter`. `tint` is a tone of the
125
+ background, even under the column and fading out across the band; `none` draws nothing.
126
+ - The blur turns into the tone of `tint` under `prefers-reduced-transparency: reduce` and under
127
+ `data-reduced-transparency` on an ancestor of the panel. Tokens `--cloudlet-center-tint`,
128
+ `--cloudlet-center-backdrop-reach`, `--cloudlet-center-blur` and `--cloudlet-center-blur-tint`
129
+ set its look without JavaScript and keep the text on the backdrop at 4.5:1 over a busy page; in
130
+ forced colours a center with a backdrop gets a solid `Canvas` column. The backdrop fades with the
131
+ drawer, and `motion.overrides.backdrop` takes `layers` and `scrollTint` for the laboratory.
132
+
133
+ ### API
134
+
135
+ - `@cloudlet/toast/center` exports `NotificationCenter` and `useNotificationCenter`, and the types
136
+ `NotificationItem`, `NotificationItemAction`, `NotificationParts`, `NotificationCenterProps`,
137
+ `NotificationCenterOpenOptions`, `NotificationCenterComponent`, `NotificationCenterLabels`,
138
+ `NotificationCenterPart`, `NotificationCenterMotion`, `NotificationCenterMotionConstants`,
139
+ `NotificationCenterMotionOverrides`, `NotificationCenterBackdropConstants`,
140
+ `NotificationCenterTriggerProps`, `UseNotificationCenter` and `UseNotificationCenterResult`. The
141
+ root entry and `@cloudlet/toast/agent` are unchanged.
142
+
143
+ ### Fixes
144
+
145
+ - The Island fits its content under a CSS `zoom` on an ancestor, such as `html { zoom: 1.5 }`, a
146
+ `zoom` below 1 or two nested ones. The shell used to be measured in viewport pixels and drawn in
147
+ CSS pixels inside the same zoom, so it grew by the zoom (at 2.4 an open Island covered the page);
148
+ the room the host takes in the viewport had the same mistake. The heading's morph between the
149
+ pill and the Island now starts where the title was, and a swipe of the pill or the slides follows
150
+ the finger, with its thresholds scaled with the interface. Without a `zoom` nothing changes.
151
+ - Swipes no longer fly away after a few pixels on a trackpad. The release speed was the last step
152
+ of the event stream, so wheel events delivered in a burst gave huge speeds and a flick of 24 px
153
+ committed. Now the speed is measured over the last 100 ms of the swipe and capped at 3 px a
154
+ millisecond, and a swipe commits past 40 % of the swiped dimension or as a real flick: at least
155
+ 60 px released at 0.6 px a millisecond or faster (a flick back still cancels, and a pause before
156
+ letting go is no flick). A finger that rests before it flicks is timed from when it moves, and
157
+ moves the browser delivers late in one event are timed by their own times. The content follows
158
+ the finger 1:1. This applies to the Toaster's pill,
159
+ the Island's slides and its collapse, and the notification center.
160
+ - A pending operation's cancel button always reads `labels.cancel`: it leaves once cancellation is
161
+ requested, so `labels.cancellationRequested` was never shown and is now documented as kept for
162
+ compatibility only.
163
+ - `toasterAgent`'s `subscribe`: every listener that throws reaches the controller's diagnostics as
164
+ its own `listener-error`, not only the first, and a second subscriber that subscribes while a
165
+ change is still being delivered no longer hears that change again (it gets an empty array, as
166
+ the first subscriber always did).
167
+
168
+ ## 1.4.0 — 2026-11-29
169
+
170
+ The stable release of 1.4.0-rc.1, published to npm as `latest` (`npm install @cloudlet/toast`); the
171
+ code is the prerelease's. New since 1.3.0: the `reducedMotion` prop, `source` on every event and
172
+ close notice, and the experimental `@cloudlet/toast/agent` subpath, which connects a controller to
173
+ the kit's agent bridge `@cloudlet/agent` (https://cloudlet.dev/docs/agents); the root entry does not
174
+ load it. Two things to check when you upgrade from 1.3.0: an ancestor with `data-reduced-motion` now
175
+ calms the Toaster, and code that builds an event, a close notice or an Island snapshot by hand now
176
+ adds `source`. Every change is listed in this changelog under 1.4.0-rc.1.
177
+
178
+ ### Documentation
179
+
180
+ - The README has an Agents section: what `@cloudlet/toast/agent` does, the line that connects a
181
+ controller to `@cloudlet/agent`, and links to https://cloudlet.dev/docs/agents and the adapter's
182
+ reference.
183
+
3
184
  ## 1.4.0-rc.1 — 2026-11-28
4
185
 
5
186
  A trial prerelease under the npm `next` dist-tag (`npm install @cloudlet/toast@next`); `latest` stays
package/README.md CHANGED
@@ -70,13 +70,38 @@ Full documentation: **https://cloudlet.dev/docs/components/toaster**
70
70
  - Guides: Notifications & time, Operations & cancellation, Forms, Positioning & offsets, Styling,
71
71
  SSR & Next.js, Content Security Policy, Accessibility (including what is and is not tested).
72
72
  - Reference: `createCloudlet`, the controller, Toaster props, labels & announcements, types.
73
- - Experimental: `@cloudlet/toast/agent` exports `toasterAgent(controller)`, which lets the kit's agent
74
- bridge, `@cloudlet/agent`, read the controller and run steps on it under the app's permission. It
75
- may change in any minor release. The adapter speaks agent protocol 1, and the bridge refuses an
76
- adapter with another protocol number with a `TypeError` at `connect`, so neither package depends on
77
- the other: any `@cloudlet/agent` 0.x that understands protocol 1 works with it.
73
+ - Notification center: `@cloudlet/toast/center` shows your app's own notifications (an array from
74
+ your server, a socket or local state) in a panel that your own button opens, in groups, at
75
+ **https://cloudlet.dev/docs/components/notification-center**.
76
+ - Agents: how an AI agent in your app reads and drives the Toaster, at
77
+ **https://cloudlet.dev/docs/agents**.
78
78
  - The [changelog](CHANGELOG.md) lists every change, including migration from `1.0.0-rc.0`.
79
79
 
80
+ ## Agents (experimental)
81
+
82
+ `@cloudlet/toast/agent` exports `toasterAgent(controller)`, the Toaster's adapter for the kit's agent
83
+ bridge, `@cloudlet/agent`: an agent in your app reads the notifications and runs steps on them under
84
+ the app's permission. Pressing an action and submitting a form need a person unless the action's
85
+ `agent` marker says otherwise; such a step opens the Island for the person instead.
86
+
87
+ ```ts
88
+ import { createAgent } from '@cloudlet/agent';
89
+ import { createCloudlet } from '@cloudlet/toast';
90
+ import { toasterAgent } from '@cloudlet/toast/agent';
91
+
92
+ const cloudlet = createCloudlet();
93
+ const agent = createAgent();
94
+ const disconnect = agent.connect(toasterAgent(cloudlet));
95
+
96
+ agent.snapshot(); // the Toaster's record, then one per notification
97
+ disconnect();
98
+ ```
99
+
100
+ The subpath may change in any minor release; the main entry never loads it. The adapter speaks agent
101
+ protocol 1, and the bridge refuses an adapter with another protocol number with a `TypeError` at
102
+ `connect`, so neither package depends on the other: any `@cloudlet/agent` 0.x that understands
103
+ protocol 1 works with it. Records, verbs and messages: https://cloudlet.dev/docs/agents/api/toast.
104
+
80
105
  ## Contributing and security
81
106
 
82
107
  Issues and ideas: [GitHub issues](https://github.com/Meerzus/cloudlet/issues), with the
@@ -1 +1 @@
1
- {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAIpE,OAAO,KAAK,EAA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vE,qFAAqF;IACrF,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;CACjC;AAED,2EAA2E;AAC3E,MAAM,WAAW,mBAAmB;IAClC,qGAAqG;IACrG,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AAsFD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,SAAS,kBAAkB,EAClE,UAAU,EAAE,IAAI,CAAC,kBAAkB,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,EAC3D,OAAO,CAAC,EAAE,mBAAmB,GAC5B,YAAY,CAyXd"}
package/dist/agent.js CHANGED
@@ -367,33 +367,37 @@ function b(r, f) {
367
367
  name: b,
368
368
  snapshot: F,
369
369
  subscribe: (e) => {
370
- let t = (t) => {
371
- e(t);
370
+ let t;
371
+ if (A.size) t = {
372
+ call: e,
373
+ from: C.read().controller.revision
372
374
  };
373
- if (!A.size) {
375
+ else {
374
376
  F();
375
- let e = C.read(), t = e.controller;
377
+ let r = C.read(), i = r.controller;
376
378
  D.clear();
377
- for (let n of t.notifications) {
378
- let t = n.operation;
379
- D.set(n.handle, {
380
- label: n.content.title,
381
- action: n.action.status,
379
+ for (let e of i.notifications) {
380
+ let t = e.operation;
381
+ D.set(e.handle, {
382
+ label: e.content.title,
383
+ action: e.action.status,
382
384
  operation: t ? {
383
385
  token: t.token,
384
386
  value: t.status === "pending" && t.cancelRequested ? "cancel-requested" : t.status
385
387
  } : null,
386
- authors: e.forms.get(n.handle)?.authors ?? h
388
+ authors: r.forms.get(e.handle)?.authors ?? h
387
389
  });
388
390
  }
389
- O = t.island.current ? E(t.island.current) : null, k = t.revision, j = C.subscribe((e) => {
390
- let t = W(e), n;
391
+ O = i.island.current ? E(i.island.current) : null, k = i.revision, t = {
392
+ call: e,
393
+ from: k
394
+ }, j = C.subscribe((e) => {
395
+ let t = W(e), r = e.controller.revision;
391
396
  for (let e of [...A]) if (A.has(e)) try {
392
- e(t);
397
+ e.call(r <= e.from ? n : t);
393
398
  } catch (e) {
394
- n ??= { error: e };
399
+ C.report(e);
395
400
  }
396
- if (n) throw n.error;
397
401
  });
398
402
  }
399
403
  return A.add(t), () => {