@tagit/ai-client-react 1.1.0 → 1.1.1
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":"ContentBlockRenderer.d.ts","sourceRoot":"","sources":["../../src/renderers/ContentBlockRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGzD,UAAU,yBAAyB;IACjC,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,eAAO,MAAM,oBAAoB,sEAI9B,yBAAyB,
|
|
1
|
+
{"version":3,"file":"ContentBlockRenderer.d.ts","sourceRoot":"","sources":["../../src/renderers/ContentBlockRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGzD,UAAU,yBAAyB;IACjC,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,eAAO,MAAM,oBAAoB,sEAI9B,yBAAyB,uBAM1B,CAAC"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { Fragment as _Fragment, jsx as _jsx
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { MarkdownRenderer } from './MarkdownRenderer.js';
|
|
4
4
|
export const ContentBlockRenderer = React.memo(function ContentBlockRenderer({ role, content, showStreamingCursor = false, }) {
|
|
5
5
|
if (role === 'user') {
|
|
6
6
|
return _jsx(_Fragment, { children: content });
|
|
7
7
|
}
|
|
8
|
-
if (showStreamingCursor) {
|
|
9
|
-
return (_jsxs("div", { className: "tagIt-chat-md-root tagIt-chat-md-streaming", children: [content, _jsx("span", { className: "tagIt-chat-streaming-cursor", "aria-hidden": "true" })] }));
|
|
10
|
-
}
|
|
11
8
|
return _jsx(MarkdownRenderer, { markdown: content, showStreamingCursor: showStreamingCursor });
|
|
12
9
|
});
|
|
13
10
|
//# sourceMappingURL=ContentBlockRenderer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentBlockRenderer.js","sourceRoot":"","sources":["../../src/renderers/ContentBlockRenderer.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAQzD,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,oBAAoB,CAAC,EAC3E,IAAI,EACJ,OAAO,EACP,mBAAmB,GAAG,KAAK,GACD;IAC1B,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;QACpB,OAAO,4BAAG,OAAO,GAAI,CAAC;IACxB,CAAC;IAED,
|
|
1
|
+
{"version":3,"file":"ContentBlockRenderer.js","sourceRoot":"","sources":["../../src/renderers/ContentBlockRenderer.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAQzD,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,oBAAoB,CAAC,EAC3E,IAAI,EACJ,OAAO,EACP,mBAAmB,GAAG,KAAK,GACD;IAC1B,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;QACpB,OAAO,4BAAG,OAAO,GAAI,CAAC;IACxB,CAAC;IAED,OAAO,KAAC,gBAAgB,IAAC,QAAQ,EAAE,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,GAAI,CAAC;AAC3F,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tagit/ai-client-react",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Self-contained React chat widget and hooks for TagIt AI client",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"recharts": "^2.15.4",
|
|
44
44
|
"rehype-highlight": "^7.0.2",
|
|
45
45
|
"remark-gfm": "^4.0.1",
|
|
46
|
-
"@tagit/ai-client-core": "1.1.
|
|
46
|
+
"@tagit/ai-client-core": "1.1.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"react": "^18.0.0",
|
package/src/chat-widget.css
CHANGED
|
@@ -472,6 +472,12 @@
|
|
|
472
472
|
overflow: visible;
|
|
473
473
|
}
|
|
474
474
|
|
|
475
|
+
.tagIt-chat-widget-mobile-fullscreen.tagIt-chat-widget-closed .tagIt-chat-panel {
|
|
476
|
+
visibility: hidden;
|
|
477
|
+
pointer-events: none;
|
|
478
|
+
transform: translateY(100dvh) !important;
|
|
479
|
+
}
|
|
480
|
+
|
|
475
481
|
.tagIt-chat-widget-mobile-fullscreen .tagIt-chat-panel {
|
|
476
482
|
position: fixed;
|
|
477
483
|
inset: 0;
|
|
@@ -496,10 +502,10 @@
|
|
|
496
502
|
.tagIt-chat-widget-mobile-fullscreen.tagIt-chat-side-right .tagIt-chat-tab,
|
|
497
503
|
.tagIt-chat-widget-mobile-fullscreen.tagIt-chat-side-left .tagIt-chat-tab {
|
|
498
504
|
position: fixed;
|
|
499
|
-
right: 12px;
|
|
505
|
+
right: max(12px, env(safe-area-inset-right, 0px));
|
|
500
506
|
left: auto;
|
|
501
507
|
top: auto;
|
|
502
|
-
bottom: 18px;
|
|
508
|
+
bottom: max(18px, env(safe-area-inset-bottom, 0px));
|
|
503
509
|
transform: none;
|
|
504
510
|
border-radius: 999px;
|
|
505
511
|
pointer-events: auto;
|
|
@@ -507,7 +513,7 @@
|
|
|
507
513
|
|
|
508
514
|
.tagIt-chat-widget-mobile-fullscreen.tagIt-chat-side-right .tagIt-chat-tab-open,
|
|
509
515
|
.tagIt-chat-widget-mobile-fullscreen.tagIt-chat-side-left .tagIt-chat-tab-open {
|
|
510
|
-
right: 12px;
|
|
516
|
+
right: max(12px, env(safe-area-inset-right, 0px));
|
|
511
517
|
left: auto;
|
|
512
518
|
}
|
|
513
519
|
|