windmill-components 1.13.13 → 1.13.14

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/package.json +1 -1
  2. package/utils.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-components",
3
- "version": "1.13.13",
3
+ "version": "1.13.14",
4
4
  "devDependencies": {
5
5
  "@sveltejs/adapter-node": "^1.0.0-next.78",
6
6
  "@sveltejs/adapter-static": "^1.0.0-next.34",
package/utils.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable @typescript-eslint/explicit-module-boundary-types */
2
- import { toast } from '@zerodevx/svelte-toast';
2
+ import toast from '@zerodevx/svelte-toast';
3
3
  export function isToday(someDate) {
4
4
  const today = new Date();
5
5
  return (someDate.getDate() == today.getDate() &&
@@ -41,7 +41,7 @@ export function getToday() {
41
41
  }
42
42
  export function sendUserToast(message, error = false) {
43
43
  if (error) {
44
- toast.push(message, {
44
+ toast.toast.push(message, {
45
45
  theme: {
46
46
  '--toastBackground': '#FEE2E2',
47
47
  '--toastBarBackground': '#FEE2E2'
@@ -49,7 +49,7 @@ export function sendUserToast(message, error = false) {
49
49
  });
50
50
  }
51
51
  else
52
- toast.push(message);
52
+ toast.toast.push(message);
53
53
  }
54
54
  export function truncateHash(hash) {
55
55
  if (hash.length >= 6) {