@cloudlet/toast 1.4.0-rc.1 → 1.4.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/CHANGELOG.md +16 -0
- package/README.md +27 -5
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.4.0 — 2026-11-29
|
|
4
|
+
|
|
5
|
+
The stable release of 1.4.0-rc.1, published to npm as `latest` (`npm install @cloudlet/toast`); the
|
|
6
|
+
code is the prerelease's. New since 1.3.0: the `reducedMotion` prop, `source` on every event and
|
|
7
|
+
close notice, and the experimental `@cloudlet/toast/agent` subpath, which connects a controller to
|
|
8
|
+
the kit's agent bridge `@cloudlet/agent` (https://cloudlet.dev/docs/agents); the root entry does not
|
|
9
|
+
load it. Two things to check when you upgrade from 1.3.0: an ancestor with `data-reduced-motion` now
|
|
10
|
+
calms the Toaster, and code that builds an event, a close notice or an Island snapshot by hand now
|
|
11
|
+
adds `source`. Every change is listed in this changelog under 1.4.0-rc.1.
|
|
12
|
+
|
|
13
|
+
### Documentation
|
|
14
|
+
|
|
15
|
+
- The README has an Agents section: what `@cloudlet/toast/agent` does, the line that connects a
|
|
16
|
+
controller to `@cloudlet/agent`, and links to https://cloudlet.dev/docs/agents and the adapter's
|
|
17
|
+
reference.
|
|
18
|
+
|
|
3
19
|
## 1.4.0-rc.1 — 2026-11-28
|
|
4
20
|
|
|
5
21
|
A trial prerelease under the npm `next` dist-tag (`npm install @cloudlet/toast@next`); `latest` stays
|
package/README.md
CHANGED
|
@@ -70,13 +70,35 @@ 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
|
-
-
|
|
74
|
-
|
|
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
|
+
- Agents: how an AI agent in your app reads and drives the Toaster, at
|
|
74
|
+
**https://cloudlet.dev/docs/agents**.
|
|
78
75
|
- The [changelog](CHANGELOG.md) lists every change, including migration from `1.0.0-rc.0`.
|
|
79
76
|
|
|
77
|
+
## Agents (experimental)
|
|
78
|
+
|
|
79
|
+
`@cloudlet/toast/agent` exports `toasterAgent(controller)`, the Toaster's adapter for the kit's agent
|
|
80
|
+
bridge, `@cloudlet/agent`: an agent in your app reads the notifications and runs steps on them under
|
|
81
|
+
the app's permission. Pressing an action and submitting a form need a person unless the action's
|
|
82
|
+
`agent` marker says otherwise; such a step opens the Island for the person instead.
|
|
83
|
+
|
|
84
|
+
```ts
|
|
85
|
+
import { createAgent } from '@cloudlet/agent';
|
|
86
|
+
import { createCloudlet } from '@cloudlet/toast';
|
|
87
|
+
import { toasterAgent } from '@cloudlet/toast/agent';
|
|
88
|
+
|
|
89
|
+
const cloudlet = createCloudlet();
|
|
90
|
+
const agent = createAgent();
|
|
91
|
+
const disconnect = agent.connect(toasterAgent(cloudlet));
|
|
92
|
+
|
|
93
|
+
agent.snapshot(); // the Toaster's record, then one per notification
|
|
94
|
+
disconnect();
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
The subpath may change in any minor release; the main entry never loads it. The adapter speaks agent
|
|
98
|
+
protocol 1, and the bridge refuses an adapter with another protocol number with a `TypeError` at
|
|
99
|
+
`connect`, so neither package depends on the other: any `@cloudlet/agent` 0.x that understands
|
|
100
|
+
protocol 1 works with it. Records, verbs and messages: https://cloudlet.dev/docs/agents/api/toast.
|
|
101
|
+
|
|
80
102
|
## Contributing and security
|
|
81
103
|
|
|
82
104
|
Issues and ideas: [GitHub issues](https://github.com/Meerzus/cloudlet/issues), with the
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudlet/toast",
|
|
3
|
-
"version": "1.4.0
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Cloudlet notifications and async operations with an SSR-safe React renderer",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://cloudlet.dev/toaster",
|
|
7
7
|
"repository": { "type": "git", "url": "git+https://github.com/Meerzus/cloudlet.git", "directory": "packages/toast" },
|
|
8
8
|
"bugs": "https://github.com/Meerzus/cloudlet/issues",
|
|
9
9
|
"keywords": ["react", "notifications", "toast", "snackbar", "accessibility", "async", "operations", "ssr"],
|
|
10
|
-
"publishConfig": { "access": "public", "tag": "
|
|
10
|
+
"publishConfig": { "access": "public", "tag": "latest" },
|
|
11
11
|
"type": "module",
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
13
13
|
"exports": {
|