@mx-cartographer/experiences 5.2.17-alpha.mega1 → 5.2.19-alpha.sms1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [5.2.18] - 04-16-2025
2
+
3
+ - **ADDED** - EmptyState component under common and added story for the same
4
+
1
5
  ## [5.2.17] - 04-16-2025
2
6
 
3
7
  - **FIXED** - Notifications mobile responsiveness, padding, and background color adjustments.
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ interface EmptyWidgetProps {
3
+ buttonText: string;
4
+ header: string;
5
+ icon: string;
6
+ onClick: () => void;
7
+ subText: string;
8
+ }
9
+ export declare const EmptyState: React.FC<EmptyWidgetProps>;
10
+ export {};
package/dist/index.es.js CHANGED
@@ -3974,7 +3974,7 @@ class _c {
3974
3974
  this.api = new Lt(t, i), await this.loadBeats();
3975
3975
  };
3976
3976
  loadBeats = async () => {
3977
- const t = await this.api.getBeats(), n = (await this.api.getOffers()).map((r) => Jc(r));
3977
+ const t = await this.api.getBeats(), i = await this.api.getOffers(), n = i.length > 0 ? i.map((r) => Jc(r)) : [];
3978
3978
  F(() => {
3979
3979
  this.beats = Zc(t, n, "active_at", "desc");
3980
3980
  });