@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.
Files changed (2) hide show
  1. package/README.md +10 -8
  2. 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
- Push a persistent notification into the OS notification center (the bell).
512
- Unlike a toast, it survives past the moment, shows your app's icon and name,
513
- and opens/focuses your app window when clicked:
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 calls.
535
- Frontend notifications target the calling user and their active organisation,
536
- are delivered live to the OS shell, and show as a toast plus a
537
- notification-center entry. Use a plugin backend for cross-user notifications.
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@palettelab/sdk",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "description": "Palette Platform SDK for building plugins and apps",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",