@aitronos/freddy-plugins 0.1.30 → 0.1.32

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/dist/index.d.ts CHANGED
@@ -495,8 +495,8 @@ export declare const useSnackBar: () => {
495
495
  toastType: ToastType;
496
496
  duration?: number | undefined;
497
497
  }[]>;
498
- showToast: (snack: Snack) => void;
499
- removeToast: (snack: Snack) => void;
498
+ addSnackBar: (snack: Snack) => void;
499
+ removeSnackBar: (snack: Snack) => void;
500
500
  };
501
501
 
502
502
  export declare const useToast: () => {
package/dist/index.js CHANGED
@@ -1146,21 +1146,21 @@ function k5(C, A) {
1146
1146
  ]));
1147
1147
  }
1148
1148
  const Y8 = /* @__PURE__ */ B(x5, [["render", k5]]), z5 = {}, G5 = {
1149
- viewBox: "0 0 24 24",
1150
- fill: "none",
1151
- xmlns: "http://www.w3.org/2000/svg"
1149
+ xmlns: "http://www.w3.org/2000/svg",
1150
+ viewBox: "0 0 22 21",
1151
+ fill: "none"
1152
1152
  };
1153
1153
  function O5(C, A) {
1154
1154
  return e(), o("svg", G5, A[0] || (A[0] = [
1155
1155
  t("path", {
1156
- d: "M16.613 16.0862C13.98 17.5692 12.477 20.6412 12 21.5012V8.00122C12.415 7.25522 13.602 5.11724 15.632 3.66524C16.487 3.05324 16.914 2.74724 17.457 3.02524C18 3.30524 18 3.92124 18 5.15224V13.9922C18 14.6582 18 14.9912 17.863 15.2242C17.727 15.4582 17.355 15.6672 16.613 16.0862Z",
1156
+ d: "M15.613 14.0862C12.98 15.5692 11.477 18.6412 11 19.5012V6.00122C11.415 5.25522 12.602 3.11724 14.632 1.66524C15.487 1.05324 15.914 0.747235 16.457 1.02524C17 1.30524 17 1.92124 17 3.15224V11.9922C17 12.6582 17 12.9912 16.863 13.2242C16.727 13.4582 16.355 13.6672 15.613 14.0862Z",
1157
1157
  stroke: "currentColor",
1158
1158
  "stroke-width": "1.5",
1159
1159
  "stroke-linecap": "round",
1160
1160
  "stroke-linejoin": "round"
1161
1161
  }, null, -1),
1162
1162
  t("path", {
1163
- d: "M12 7.80607C11.313 7.08407 9.322 5.37007 5.98 4.77007C4.288 4.46507 3.442 4.31307 2.72 4.89607C2 5.48007 2 6.42607 2 8.32107V15.1301C2 16.8621 2 17.7281 2.463 18.2691C2.925 18.8091 3.943 18.9931 5.981 19.3591C7.796 19.6851 9.213 20.2061 10.239 20.7291C11.249 21.2431 11.753 21.5001 12 21.5001C12.247 21.5001 12.752 21.2431 13.76 20.7291C14.787 20.2061 16.204 19.6851 18.02 19.3591C20.056 18.9931 21.075 18.8091 21.537 18.2691C22 17.7281 22 16.8621 22 15.1291V8.32207C22 6.42807 22 5.48107 21.28 4.89707C20.557 4.31307 19 4.77007 18 5.50007",
1163
+ d: "M11 5.80607C10.313 5.08407 8.322 3.37007 4.98 2.77007C3.288 2.46507 2.442 2.31307 1.72 2.89607C1 3.48007 1 4.42607 1 6.32107V13.1301C1 14.8621 1 15.7281 1.463 16.2691C1.925 16.8091 2.943 16.9931 4.981 17.3591C6.796 17.6851 8.213 18.2061 9.239 18.7291C10.249 19.2431 10.753 19.5001 11 19.5001C11.247 19.5001 11.752 19.2431 12.76 18.7291C13.787 18.2061 15.204 17.6851 17.02 17.3591C19.056 16.9931 20.075 16.8091 20.537 16.2691C21 15.7281 21 14.8621 21 13.1291V6.32207C21 4.42807 21 3.48107 20.28 2.89707C19.557 2.31307 18 2.77007 17 3.50007",
1164
1164
  stroke: "currentColor",
1165
1165
  "stroke-width": "1.5",
1166
1166
  "stroke-linecap": "round",
@@ -1986,14 +1986,14 @@ const p6 = /* @__PURE__ */ B(q3, [["render", $3]]), A7 = ["placeholder"], d6 = /
1986
1986
  }
1987
1987
  }), c = I([]), C7 = () => ({
1988
1988
  snackQueue: c,
1989
- showToast: (n) => {
1989
+ addSnackBar: (n) => {
1990
1990
  const s = n.duration ?? 3e3;
1991
1991
  c.value.push(n), s > 0 && setTimeout(() => {
1992
1992
  const i = c.value.indexOf(n);
1993
1993
  i !== -1 && c.value.splice(i, 1);
1994
1994
  }, s);
1995
1995
  },
1996
- removeToast: (n) => {
1996
+ removeSnackBar: (n) => {
1997
1997
  const s = c.value.indexOf(n);
1998
1998
  s !== -1 && c.value.splice(s, 1);
1999
1999
  }