@usecrow/ui 0.1.56 → 0.1.57

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.cjs CHANGED
@@ -3539,7 +3539,8 @@ function CrowWidget({
3539
3539
  getIdentityToken,
3540
3540
  context,
3541
3541
  toolRenderers,
3542
- language
3542
+ language,
3543
+ customCss
3543
3544
  }) {
3544
3545
  const effectiveGetIdentityToken = getIdentityToken || window.__crow_identity_token_fetcher;
3545
3546
  const effectiveOnToolResult = onToolResult || window.__crow_on_tool_result;
@@ -4065,7 +4066,14 @@ function CrowWidget({
4065
4066
  )
4066
4067
  ] })
4067
4068
  ] });
4068
- return /* @__PURE__ */ jsxRuntime.jsx(ShadowContainer, { styles: WIDGET_CSS, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "crow-widget-root", style: cssVars, children: /* @__PURE__ */ jsxRuntime.jsxs(
4069
+ const combinedStyles = React3.useMemo(
4070
+ () => customCss ? `${WIDGET_CSS}
4071
+
4072
+ /* Custom CSS */
4073
+ ${customCss}` : WIDGET_CSS,
4074
+ [customCss]
4075
+ );
4076
+ return /* @__PURE__ */ jsxRuntime.jsx(ShadowContainer, { styles: combinedStyles, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "crow-widget-root", style: cssVars, children: /* @__PURE__ */ jsxRuntime.jsxs(
4069
4077
  WidgetStyleProvider,
4070
4078
  {
4071
4079
  styles,