@changebot/widgets-react 0.2.3 → 0.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.
Files changed (2) hide show
  1. package/README.md +2 -3
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -216,7 +216,6 @@ A toast notification component that displays brief update notifications. Automat
216
216
  | ------------- | -------------------------------------------------------------------- | ---------------- | --------------------------------------------------------------- |
217
217
  | `scope` | `string` | `"default"` | Scope to connect to (must match provider scope) |
218
218
  | `position` | `"top-left"` \| `"top-right"` \| `"bottom-left"` \| `"bottom-right"` | `"bottom-right"` | Screen position for the toast |
219
- | `autoDismiss` | `number` | - | Auto-dismiss after N seconds (optional) |
220
219
  | `theme` | `Theme` | - | Fixed theme (see Theming section) |
221
220
  | `light` | `Theme` | - | Theme for light mode (auto-switches based on system preference) |
222
221
  | `dark` | `Theme` | - | Theme for dark mode (auto-switches based on system preference) |
@@ -236,7 +235,7 @@ await toastRef.current?.dismiss();
236
235
  #### Example
237
236
 
238
237
  ```tsx
239
- <ChangebotToast position="bottom-right" autoDismiss={5} theme="tokyo-night" />
238
+ <ChangebotToast position="bottom-right" theme="tokyo-night" />
240
239
  ```
241
240
 
242
241
  ---
@@ -386,7 +385,7 @@ function App() {
386
385
  <ChangebotPanel mode="drawer-right" theme="catppuccin-mocha" />
387
386
 
388
387
  {/* Toast appears for toast-highlighted updates */}
389
- <ChangebotToast position="bottom-right" autoDismiss={5} theme="catppuccin-mocha" />
388
+ <ChangebotToast position="bottom-right" theme="catppuccin-mocha" />
390
389
  </>
391
390
  );
392
391
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@changebot/widgets-react",
3
- "version": "0.2.3",
3
+ "version": "0.4.0",
4
4
  "description": "React wrapper components for Changebot widgets",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@stencil/react-output-target": "^1.2.0",
17
- "@changebot/core": "^0.2.3"
17
+ "@changebot/core": "^0.4.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/react": "^18.2.0",