@fayz-ai/admin 0.65.2 → 0.65.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationInbox.d.ts","sourceRoot":"","sources":["../../../src/components/notifications/NotificationInbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAE7D,UAAU,sBAAsB;IAC9B,aAAa,EAAE,YAAY,EAAE,CAAA;IAC7B,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,mBAAmB,CAAC,EAAE,CAAC,YAAY,EAAE,YAAY,KAAK,IAAI,CAAA;IAC1D,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AA8BD,wBAAgB,iBAAiB,CAAC,EAChC,aAAa,EACb,UAAU,EACV,aAAa,EACb,mBAAmB,EACnB,YAAY,EACZ,SAAS,GACV,EAAE,sBAAsB,qBA8HxB"}
1
+ {"version":3,"file":"NotificationInbox.d.ts","sourceRoot":"","sources":["../../../src/components/notifications/NotificationInbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAE7D,UAAU,sBAAsB;IAC9B,aAAa,EAAE,YAAY,EAAE,CAAA;IAC7B,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,mBAAmB,CAAC,EAAE,CAAC,YAAY,EAAE,YAAY,KAAK,IAAI,CAAA;IAC1D,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAiCD,wBAAgB,iBAAiB,CAAC,EAChC,aAAa,EACb,UAAU,EACV,aAAa,EACb,mBAAmB,EACnB,YAAY,EACZ,SAAS,GACV,EAAE,sBAAsB,qBA8HxB"}
package/dist/index.js CHANGED
@@ -11740,21 +11740,21 @@ function playChime() {
11740
11740
  if (!Ctx) return;
11741
11741
  const ctx = new Ctx();
11742
11742
  const now = ctx.currentTime;
11743
- for (const [freq, delay] of [[880, 0], [1320, 0.09]]) {
11743
+ for (const [freq, delay] of [[880, 0], [1320, 0.09], [880, 0.42], [1320, 0.51]]) {
11744
11744
  const osc = ctx.createOscillator();
11745
11745
  const gain = ctx.createGain();
11746
11746
  osc.type = "sine";
11747
11747
  osc.frequency.value = freq;
11748
11748
  gain.gain.setValueAtTime(1e-4, now + delay);
11749
- gain.gain.exponentialRampToValueAtTime(0.18, now + delay + 0.02);
11750
- gain.gain.exponentialRampToValueAtTime(1e-4, now + delay + 0.28);
11749
+ gain.gain.exponentialRampToValueAtTime(0.26, now + delay + 0.02);
11750
+ gain.gain.exponentialRampToValueAtTime(1e-4, now + delay + 0.34);
11751
11751
  osc.connect(gain);
11752
11752
  gain.connect(ctx.destination);
11753
11753
  osc.start(now + delay);
11754
- osc.stop(now + delay + 0.3);
11754
+ osc.stop(now + delay + 0.36);
11755
11755
  }
11756
11756
  setTimeout(() => void ctx.close().catch(() => {
11757
- }), 900);
11757
+ }), 1300);
11758
11758
  } catch {
11759
11759
  }
11760
11760
  }
@@ -11885,13 +11885,16 @@ var TYPE_ICONS2 = {
11885
11885
  info: Info,
11886
11886
  success: CheckCircle2,
11887
11887
  warning: AlertTriangle,
11888
- error: AlertCircle
11888
+ error: AlertCircle,
11889
+ // A product reached its minimum (plugin-inventory 031): something to act on.
11890
+ "inventory.stock_low": AlertTriangle
11889
11891
  };
11890
11892
  var TYPE_COLORS2 = {
11891
11893
  info: "text-info",
11892
11894
  success: "text-success",
11893
11895
  warning: "text-warning",
11894
- error: "text-destructive"
11896
+ error: "text-destructive",
11897
+ "inventory.stock_low": "text-warning"
11895
11898
  };
11896
11899
  function timeAgo(dateString) {
11897
11900
  const then = new Date(dateString).getTime();