@athenaintel/react 0.11.1 → 0.11.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/index.js CHANGED
@@ -33,7 +33,7 @@ import { runsMaterialize, StatewireThread, useStatewireSendCommand, useStatewire
33
33
  import { useAuiState } from "@assistant-ui/store";
34
34
  import * as ReactDOM from "react-dom";
35
35
  import ReactDOM__default, { flushSync } from "react-dom";
36
- const version$1 = "0.11.1";
36
+ const version$1 = "0.11.2";
37
37
  const packageJson = {
38
38
  version: version$1
39
39
  };
@@ -16523,6 +16523,9 @@ function TooltipContent({
16523
16523
  "data-slot": "tooltip-content",
16524
16524
  sideOffset,
16525
16525
  className: cn(
16526
+ // Portaled outside the provider wrapper — carries the SDK scope
16527
+ // classes itself so tokens and the scoped reset still apply.
16528
+ "athena-sdk athena-sdk-chrome",
16526
16529
  "bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
16527
16530
  className
16528
16531
  ),
@@ -20982,10 +20985,14 @@ function AthenaProvider({
20982
20985
  );
20983
20986
  }
20984
20987
  let result = /* @__PURE__ */ jsx(PostHogProvider, { config: posthogConfig, children: inner });
20985
- if (themeStyleVars) {
20986
- result = /* @__PURE__ */ jsx("div", { className: "athena-themed", style: themeStyleVars, children: result });
20987
- }
20988
- return result;
20988
+ return /* @__PURE__ */ jsx(
20989
+ "div",
20990
+ {
20991
+ className: themeStyleVars ? "athena-sdk athena-themed" : "athena-sdk",
20992
+ style: themeStyleVars,
20993
+ children: result
20994
+ }
20995
+ );
20989
20996
  }
20990
20997
  function OrderedMap(content) {
20991
20998
  this.content = content;
@@ -55435,7 +55442,7 @@ const MentionSuggestionPopup = forwardRef(({ store, query, command: command2, cl
55435
55442
  {
55436
55443
  ref: refs.setFloating,
55437
55444
  style: floatingStyles,
55438
- className: "z-[9999]",
55445
+ className: "athena-sdk athena-sdk-chrome z-[9999]",
55439
55446
  onMouseDown: (e) => e.preventDefault(),
55440
55447
  children: /* @__PURE__ */ jsx(
55441
55448
  MentionSuggestionList,
@@ -62742,7 +62749,7 @@ const AthenaAssetEmbed = ({
62742
62749
  if (error2) onError == null ? void 0 : onError(new Error(error2));
62743
62750
  }, [error2, onError]);
62744
62751
  if (isLoading) {
62745
- return loadingFallback ?? /* @__PURE__ */ jsxs("output", { className: "flex h-full w-full items-center justify-center", children: [
62752
+ return loadingFallback ?? /* @__PURE__ */ jsxs("output", { className: "athena-sdk-chrome flex h-full w-full items-center justify-center", children: [
62746
62753
  /* @__PURE__ */ jsx(LoaderCircle, { className: "size-6 animate-spin text-muted-foreground" }),
62747
62754
  /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Loading asset" })
62748
62755
  ] });
@@ -62753,7 +62760,7 @@ const AthenaAssetEmbed = ({
62753
62760
  return errorFallback ?? /* @__PURE__ */ jsxs(
62754
62761
  "div",
62755
62762
  {
62756
- className: "flex h-full w-full items-center justify-center gap-2 p-4 text-sm text-muted-foreground",
62763
+ className: "athena-sdk-chrome flex h-full w-full items-center justify-center gap-2 p-4 text-sm text-muted-foreground",
62757
62764
  role: "alert",
62758
62765
  children: [
62759
62766
  /* @__PURE__ */ jsx(CircleAlert, { className: "size-4 text-destructive" }),
@@ -63126,21 +63133,27 @@ const AthenaLayout = ({
63126
63133
  /* @__PURE__ */ jsx(
63127
63134
  "div",
63128
63135
  {
63129
- className: "flex h-full w-1 shrink-0 cursor-col-resize items-center bg-border/40 transition-colors hover:bg-border active:bg-primary/30",
63136
+ className: "athena-sdk-chrome flex h-full w-1 shrink-0 cursor-col-resize items-center bg-border/40 transition-colors hover:bg-border active:bg-primary/30",
63130
63137
  onPointerDown,
63131
63138
  onPointerMove,
63132
63139
  onPointerUp
63133
63140
  }
63134
63141
  ),
63135
- /* @__PURE__ */ jsx("div", { className: "flex h-full flex-1 flex-col overflow-hidden", children: /* @__PURE__ */ jsx(AssetPanel, { manageAssetPanelHostRegistration: false }) })
63142
+ /* @__PURE__ */ jsx("div", { className: "athena-sdk-chrome flex h-full flex-1 flex-col overflow-hidden", children: /* @__PURE__ */ jsx(AssetPanel, { manageAssetPanelHostRegistration: false }) })
63136
63143
  ] });
63137
63144
  };
63138
63145
  function ThreadList({ className }) {
63139
63146
  const statewireList = useAthenaStatewireThreadList();
63140
63147
  if (statewireList) {
63141
- return /* @__PURE__ */ jsx(StatewireThreadList, { list: statewireList, className });
63148
+ return /* @__PURE__ */ jsx(
63149
+ StatewireThreadList,
63150
+ {
63151
+ list: statewireList,
63152
+ className: cn("athena-sdk-chrome", className)
63153
+ }
63154
+ );
63142
63155
  }
63143
- return /* @__PURE__ */ jsx(LegacyThreadList, { className });
63156
+ return /* @__PURE__ */ jsx(LegacyThreadList, { className: cn("athena-sdk-chrome", className) });
63144
63157
  }
63145
63158
  function LegacyThreadList({ className }) {
63146
63159
  const refresh = useRefreshThreadList();