@stainless-api/docs-ai-chat 0.1.0-beta.1 → 0.1.0-beta.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/CHANGELOG.md +12 -0
- package/package.json +7 -4
- package/plugin.tsx +1 -3
- package/src/AiChat.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @stainless-api/docs-ai-chat
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a1502cf: fix: close AIChat when clicking on SVG elements outside its bounds
|
|
8
|
+
- 88a9894: patch vite optimizeDeps for docs-ai-chat
|
|
9
|
+
- Updated dependencies [2a79bae]
|
|
10
|
+
- Updated dependencies [88a9894]
|
|
11
|
+
- @stainless-api/ui-primitives@0.1.0-beta.38
|
|
12
|
+
- @stainless-api/docs@0.1.0-beta.61
|
|
13
|
+
- @stainless-api/docs-ui@0.1.0-beta.51
|
|
14
|
+
|
|
3
15
|
## 0.1.0-beta.1
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stainless-api/docs-ai-chat",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"peerDependencies": {
|
|
9
9
|
"react": ">=19.0.0",
|
|
10
10
|
"react-dom": ">=19.0.0",
|
|
11
|
-
"@stainless-api/docs": "0.1.0-beta.
|
|
12
|
-
"@stainless-api/docs-ui": "0.1.0-beta.
|
|
13
|
-
"@stainless-api/ui-primitives": "0.1.0-beta.
|
|
11
|
+
"@stainless-api/docs": "0.1.0-beta.61",
|
|
12
|
+
"@stainless-api/docs-ui": "0.1.0-beta.51",
|
|
13
|
+
"@stainless-api/ui-primitives": "0.1.0-beta.38"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@streamparser/json-whatwg": "^0.0.22",
|
|
@@ -33,6 +33,9 @@
|
|
|
33
33
|
"exports": {
|
|
34
34
|
"./plugin": {
|
|
35
35
|
"import": "./plugin.tsx"
|
|
36
|
+
},
|
|
37
|
+
"./src/AiChat.tsx": {
|
|
38
|
+
"import": "./src/AiChat.tsx"
|
|
36
39
|
}
|
|
37
40
|
},
|
|
38
41
|
"scripts": {
|
package/plugin.tsx
CHANGED
package/src/AiChat.tsx
CHANGED
|
@@ -30,7 +30,7 @@ export default function DocsChat({
|
|
|
30
30
|
const ac = new AbortController();
|
|
31
31
|
// “focus” in/out with click
|
|
32
32
|
window.addEventListener('click', (e) => {
|
|
33
|
-
if (!(e.target instanceof
|
|
33
|
+
if (!(e.target instanceof Element)) return;
|
|
34
34
|
if (baseRef.current?.contains(e.target)) { setFocused(true); }
|
|
35
35
|
else { setFocused(false); }
|
|
36
36
|
}, { signal: ac.signal });
|