@palettelab/sdk 0.1.27 → 0.1.28
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/README.md +10 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -506,11 +506,12 @@ const file = folder
|
|
|
506
506
|
: null
|
|
507
507
|
```
|
|
508
508
|
|
|
509
|
-
## OS Notifications
|
|
509
|
+
## Frontend OS Notifications
|
|
510
510
|
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
511
|
+
Use the frontend TypeScript SDK to push a persistent notification into the OS
|
|
512
|
+
notification center (the bell) for the current signed-in user. Unlike a toast,
|
|
513
|
+
it survives past the moment, shows your app's icon and name, and opens/focuses
|
|
514
|
+
your app window when clicked:
|
|
514
515
|
|
|
515
516
|
```ts
|
|
516
517
|
import { notifications } from "@palettelab/sdk"
|
|
@@ -531,10 +532,11 @@ opens by default. `route` is optional; when present it resolves inside the
|
|
|
531
532
|
target app. The source app id is inferred from the URL — pass `appId` to
|
|
532
533
|
override.
|
|
533
534
|
|
|
534
|
-
Use the SDK helper rather than hand-building platform notification API
|
|
535
|
-
Frontend notifications target the calling user and their active
|
|
536
|
-
are delivered live to the OS shell, and show as a toast plus a
|
|
537
|
-
notification-center entry. Use
|
|
535
|
+
Use the frontend SDK helper rather than hand-building platform notification API
|
|
536
|
+
calls. Frontend notifications target the calling user and their active
|
|
537
|
+
organisation, are delivered live to the OS shell, and show as a toast plus a
|
|
538
|
+
notification-center entry. Use the Python backend helper
|
|
539
|
+
`ctx.notifications.push(...)` from `palette_sdk` for cross-user notifications.
|
|
538
540
|
|
|
539
541
|
## Permissions
|
|
540
542
|
|