@streamscloud/kit 0.1.4 → 0.1.5-1771200198570

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.
@@ -2,25 +2,22 @@ import { ToasterHost } from './toaster-host.svelte';
2
2
  export class Toastr {
3
3
  static async error(message, options) {
4
4
  const toast = await ToasterHost.ensure();
5
- toast.error(message, patchOptions(options));
5
+ toast.error(message, options);
6
6
  }
7
7
  static async success(message, options) {
8
8
  const toast = await ToasterHost.ensure();
9
- toast.success(message, patchOptions(options));
9
+ toast.success(message, options);
10
10
  }
11
11
  static async warning(message, options) {
12
12
  const toast = await ToasterHost.ensure();
13
- toast.warning(message, patchOptions(options));
13
+ toast.warning(message, options);
14
14
  }
15
15
  static async info(message, options) {
16
16
  const toast = await ToasterHost.ensure();
17
- toast.info(message, patchOptions(options));
17
+ toast.info(message, options);
18
18
  }
19
19
  static async promise(promise, messages) {
20
20
  const toast = await ToasterHost.ensure();
21
21
  toast.promise(promise, messages);
22
22
  }
23
23
  }
24
- const patchOptions = (options) => {
25
- return { ...options, duration: 100000 };
26
- };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamscloud/kit",
3
- "version": "0.1.4",
3
+ "version": "0.1.5-1771200198570",
4
4
  "author": "StreamsCloud",
5
5
  "repository": {
6
6
  "type": "git",
@@ -189,6 +189,9 @@
189
189
  "sass": "./dist/styles/_theme.scss"
190
190
  }
191
191
  },
192
+ "dependencies": {
193
+ "svelte-sonner": "^1.0.7"
194
+ },
192
195
  "peerDependencies": {
193
196
  "@fluentui/svg-icons": "^1.1.318",
194
197
  "@popperjs/core": "^2.11.8",
@@ -199,7 +202,6 @@
199
202
  "nanoid": "^5.1.6",
200
203
  "rfdc": "^1.4.1",
201
204
  "svelte": "^5.50.0",
202
- "svelte-sonner": "^1.0.7",
203
205
  "wheel-gestures": "^2.2.48",
204
206
  "yup": "^1.6.1"
205
207
  },