@marketrix.ai/widget 1.0.1 → 1.0.2
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/components/MarketrixWidget.d.ts.map +1 -1
- package/dist/index.html +13 -1
- package/dist/index.mjs +1 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarketrixWidget.d.ts","sourceRoot":"","sources":["../../src/components/MarketrixWidget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8C,MAAM,OAAO,CAAC;AAGnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAQhD,UAAU,oBAAoB;IAC5B,MAAM,EAAE,eAAe,CAAC;CACzB;AA6BD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"MarketrixWidget.d.ts","sourceRoot":"","sources":["../../src/components/MarketrixWidget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8C,MAAM,OAAO,CAAC;AAGnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAQhD,UAAU,oBAAoB;IAC5B,MAAM,EAAE,eAAe,CAAC;CACzB;AA6BD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAiH1D,CAAC"}
|
package/dist/index.html
CHANGED
|
@@ -1442,13 +1442,25 @@
|
|
|
1442
1442
|
}
|
|
1443
1443
|
</script>
|
|
1444
1444
|
|
|
1445
|
+
<!-- Import maps for React dependencies (required for static serving) -->
|
|
1446
|
+
<script type="importmap">
|
|
1447
|
+
{
|
|
1448
|
+
"imports": {
|
|
1449
|
+
"react": "https://esm.sh/react@19.2.3",
|
|
1450
|
+
"react-dom": "https://esm.sh/react-dom@19.2.3",
|
|
1451
|
+
"react-dom/client": "https://esm.sh/react-dom@19.2.3/client",
|
|
1452
|
+
"react/jsx-runtime": "https://esm.sh/react@19.2.3/jsx-runtime"
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
</script>
|
|
1456
|
+
|
|
1445
1457
|
<!-- Widget Script (Demo Mode) -->
|
|
1446
1458
|
<script type="module">
|
|
1447
1459
|
const params = new URLSearchParams(window.location.search);
|
|
1448
1460
|
|
|
1449
1461
|
const script = Object.assign(document.createElement('script'), {
|
|
1450
1462
|
type: 'module',
|
|
1451
|
-
src: './
|
|
1463
|
+
src: './index.mjs'
|
|
1452
1464
|
});
|
|
1453
1465
|
|
|
1454
1466
|
script.setAttribute('mtx-id', params.get('mtx-id') ?? '');
|
package/dist/index.mjs
CHANGED
|
@@ -12667,7 +12667,6 @@ const MarketrixWidget$1 = ({ config }) => {
|
|
|
12667
12667
|
config
|
|
12668
12668
|
});
|
|
12669
12669
|
useEffect(() => {
|
|
12670
|
-
if (process.env.NODE_ENV !== "development") return;
|
|
12671
12670
|
const handleKeyDown = (e) => {
|
|
12672
12671
|
if (e.ctrlKey && e.shiftKey && e.key === "D") {
|
|
12673
12672
|
e.preventDefault();
|
|
@@ -12755,7 +12754,7 @@ const MarketrixWidget$1 = ({ config }) => {
|
|
|
12755
12754
|
position: widgetPosition.position
|
|
12756
12755
|
}
|
|
12757
12756
|
),
|
|
12758
|
-
|
|
12757
|
+
showDevPanel && /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(DomTestPanel$2, {}) })
|
|
12759
12758
|
]
|
|
12760
12759
|
}
|
|
12761
12760
|
);
|