@smarter.sh/ui-chat 0.2.10 → 0.2.13
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/README.md +3 -0
- package/dist/smarter-chat-library.es.js +3431 -3438
- package/dist/smarter-chat-library.es.js.map +1 -1
- package/dist/smarter-chat-library.umd.js +37 -37
- package/dist/smarter-chat-library.umd.js.map +1 -1
- package/dist/ui-chat.css +1 -1
- package/package.json +9 -9
- package/src/components/Console/Component.jsx +43 -49
- package/src/components/SmarterChat/Component.jsx +11 -10
- package/src/components/SmarterChat/api.js +0 -2
- package/src/components/SmarterChat/styles.css +2 -2
- package/src/components/SmarterChat/utils.jsx +0 -1
package/README.md
CHANGED
|
@@ -32,6 +32,7 @@ const sessionCookieName = rootElement.getAttribute("smarter-session-cookie-name"
|
|
|
32
32
|
const cookieDomain = rootElement.getAttribute("smarter-cookie-domain") || "platform.smarter.sh";
|
|
33
33
|
const authSessionCookieName = rootElement.getAttribute("django-session-cookie-name") || "sessionid";
|
|
34
34
|
const csrftoken = rootElement.getAttribute("django-csrftoken");
|
|
35
|
+
const debugMode = rootElement.getAttribute("smarter-debug-mode") === "true";
|
|
35
36
|
const debugCookieName = "debug";
|
|
36
37
|
|
|
37
38
|
root.render(
|
|
@@ -44,9 +45,11 @@ root.render(
|
|
|
44
45
|
csrftoken={csrftoken}
|
|
45
46
|
debugCookieName={debugCookieName}
|
|
46
47
|
debugCookieExpiration={debugCookieExpiration}
|
|
48
|
+
debugMode={debugMode}
|
|
47
49
|
sessionCookieName={sessionCookieName}
|
|
48
50
|
sessionCookieExpiration={sessionCookieExpiration}
|
|
49
51
|
authSessionCookieName={authSessionCookieName}
|
|
52
|
+
showConsole={true}
|
|
50
53
|
cookieDomain={cookieDomain}
|
|
51
54
|
/>
|
|
52
55
|
</React.StrictMode>,
|