@marketrix.ai/widget 1.0.7 → 1.0.8

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":"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"}
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,CAyH1D,CAAC"}
package/dist/index.mjs CHANGED
@@ -12669,7 +12669,15 @@ class WidgetErrorBoundary extends React.Component {
12669
12669
  const MarketrixWidget$1 = ({ config }) => {
12670
12670
  const [isScreenSharing2, setIsScreenSharing] = useState(false);
12671
12671
  const [showDevPanel, setShowDevPanel] = useState(false);
12672
- const { state, actions, marketrixConfig, shouldShow, getWidgetPosition: getWidgetPosition2, settings } = useWidget({
12672
+ const {
12673
+ state,
12674
+ actions,
12675
+ marketrixConfig,
12676
+ shouldShow,
12677
+ getWidgetPosition: getWidgetPosition2,
12678
+ settings,
12679
+ isPreviewMode
12680
+ } = useWidget({
12673
12681
  config
12674
12682
  });
12675
12683
  useEffect(() => {
@@ -12706,7 +12714,7 @@ const MarketrixWidget$1 = ({ config }) => {
12706
12714
  "div",
12707
12715
  {
12708
12716
  className: "marketrix-widget relative",
12709
- style: customStyles,
12717
+ style: { ...customStyles, ...isPreviewMode && { width: "100%", height: "100%" } },
12710
12718
  "data-widget-mode": (settings == null ? void 0 : settings.widget_feature_human) ? "hybrid" : "ai",
12711
12719
  children: [
12712
12720
  state.isTaskRunning && /* @__PURE__ */ jsx(