@dust-tt/sparkle 0.2.187 → 0.2.188

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dust-tt/sparkle",
3
- "version": "0.2.187",
3
+ "version": "0.2.188",
4
4
  "scripts": {
5
5
  "build": "rm -rf dist && rollup -c",
6
6
  "build:with-tw-base": "rollup -c --environment INCLUDE_TW_BASE:true",
@@ -50,8 +50,8 @@ const titleClassNames = {
50
50
  getWindowWidth() <= breakpoints.sm
51
51
  ? "s-text-sm"
52
52
  : getWindowWidth() <= breakpoints.md
53
- ? "s-text-base"
54
- : ""
53
+ ? "s-text-base"
54
+ : ""
55
55
  }`,
56
56
  };
57
57
 
@@ -62,8 +62,8 @@ const subtitleClassNames = {
62
62
  getWindowWidth() <= breakpoints.sm
63
63
  ? "s-text-xs"
64
64
  : getWindowWidth() <= breakpoints.md
65
- ? "s-text-xs"
66
- : "s-text-sm"
65
+ ? "s-text-xs"
66
+ : "s-text-sm"
67
67
  }`,
68
68
  };
69
69
 
@@ -161,7 +161,10 @@ const MinimalVariantContent = ({
161
161
  <div
162
162
  id="assistant-container"
163
163
  className="s-flex s-grow s-flex-col s-justify-start s-gap-2 s-overflow-hidden s-py-1"
164
- onClick={onClick}
164
+ onClick={(e) => {
165
+ e.stopPropagation();
166
+ onClick?.();
167
+ }}
165
168
  >
166
169
  <div className="s-flex s-flex-row s-justify-between s-gap-2 s-overflow-hidden">
167
170
  <div