@matchain/matchid-sdk-react 0.1.55-alpha.12 → 0.1.55-alpha.13

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.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-X4IQIC5B.mjs";
8
8
  import {
9
9
  api_exports
10
- } from "./chunk-LEFO352N.mjs";
10
+ } from "./chunk-25VAJMUX.mjs";
11
11
  import {
12
12
  MatchProvider,
13
13
  ModalProvider,
@@ -17,7 +17,7 @@ import {
17
17
  ui_exports,
18
18
  useMatch,
19
19
  wagmiConfig
20
- } from "./chunk-BZ2PI27T.mjs";
20
+ } from "./chunk-BB4OTBUS.mjs";
21
21
  import "./chunk-2E4Y2HA7.mjs";
22
22
  import "./chunk-K33FHUZM.mjs";
23
23
  import "./chunk-LA4YEM4O.mjs";
package/dist/ui.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { B as Button, C as ConfirmModal, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-QPdWAVPk.mjs';
2
- export { A as AlphaAvatar, D as Drawer, e as HashPanel, L as Lottie, M as ModalDrawer, R as Radio, a as Skeleton, S as Switch, T as Tabs } from './index-B4lczvhL.mjs';
2
+ export { A as AlphaAvatar, D as Drawer, e as HashPanel, L as Lottie, M as ModalDrawer, R as Radio, a as Skeleton, S as Switch, T as Tabs } from './index-Dx4OFZhG.mjs';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
5
  import './types-DEsY_CPH.mjs';
package/dist/ui.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { B as Button, C as ConfirmModal, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from './index-B80rDuha.js';
2
- export { A as AlphaAvatar, D as Drawer, e as HashPanel, L as Lottie, M as ModalDrawer, R as Radio, a as Skeleton, S as Switch, T as Tabs } from './index-UJfUO0uH.js';
2
+ export { A as AlphaAvatar, D as Drawer, e as HashPanel, L as Lottie, M as ModalDrawer, R as Radio, a as Skeleton, S as Switch, T as Tabs } from './index-hiCo96Vc.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
5
  import './types-DEsY_CPH.js';
package/dist/ui.js CHANGED
@@ -38,7 +38,7 @@ __export(ui_exports, {
38
38
  Field: () => Field,
39
39
  HashPanel: () => HashPanel_default,
40
40
  Input: () => Input,
41
- Lottie: () => Lottie,
41
+ Lottie: () => Lottie_default,
42
42
  Modal: () => Modal,
43
43
  ModalDrawer: () => ModalDrawer,
44
44
  ModalWithHeader: () => ModalWithHeader,
@@ -1438,7 +1438,7 @@ function HashPanel({
1438
1438
  /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: `matchid-hashpanel-status`, style: {
1439
1439
  color: statusValue.color
1440
1440
  }, children: statusValue.text }),
1441
- statusValue.lottie ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Lottie, { animationData: statusValue.lottie, style: {
1441
+ statusValue.lottie ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Lottie_default, { animationData: statusValue.lottie, style: {
1442
1442
  width: "96px",
1443
1443
  height: "96px"
1444
1444
  } }) : /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("img", { src: statusValue.icon, alt: statusValue.text, className: `matchid-hashpanel-img` }),
@@ -1564,14 +1564,19 @@ function Tabs(props) {
1564
1564
  }
1565
1565
 
1566
1566
  // src/ui/Lottie/index.tsx
1567
- var import_lottie_react = __toESM(require("lottie-react"));
1567
+ var import_react43 = require("react");
1568
1568
  var import_jsx_runtime99 = require("react/jsx-runtime");
1569
- function Lottie(props) {
1570
- console.log("Lottie", props);
1571
- const result = /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_lottie_react.default, { loop: true, autoplay: true, ...props });
1572
- console.log("result", result);
1573
- return result;
1574
- }
1569
+ var LazyLottie = (props) => {
1570
+ const [LottieReact, setLottieReact] = (0, import_react43.useState)(null);
1571
+ (0, import_react43.useEffect)(() => {
1572
+ import("lottie-react").then((mod) => {
1573
+ setLottieReact(mod.default || mod);
1574
+ });
1575
+ }, []);
1576
+ if (!LottieReact) return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { children: "Loading..." });
1577
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(LottieReact, { loop: true, autoplay: true, ...props });
1578
+ };
1579
+ var Lottie_default = LazyLottie;
1575
1580
  // Annotate the CommonJS export names for ESM import in node:
1576
1581
  0 && (module.exports = {
1577
1582
  AlphaAvatar,