@nuraly/lumenui 0.5.0 → 0.8.0
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 +22 -0
- package/dist/cdn.js +1 -1
- package/dist/nuralyui.bundle.js +106 -97
- package/dist/nuralyui.bundle.js.gz +0 -0
- package/dist/src/components/canvas/bundle.js +149 -140
- package/dist/src/components/canvas/bundle.js.gz +0 -0
- package/dist/src/components/chatbot/bundle.js +120 -111
- package/dist/src/components/chatbot/bundle.js.gz +0 -0
- package/dist/src/components/chatbot/chatbot.component.d.ts +13 -2
- package/dist/src/components/chatbot/chatbot.component.js +81 -10
- package/dist/src/components/chatbot/chatbot.style.js +31 -42
- package/dist/src/components/chatbot/chatbot.types.d.ts +1 -0
- package/dist/src/components/chatbot/templates/artifact-panel.template.js +13 -13
- package/dist/src/components/chatbot/templates/chatbot-main.template.d.ts +4 -0
- package/dist/src/components/chatbot/templates/chatbot-main.template.js +6 -4
- package/dist/src/components/chatbot/templates/file-upload-area.template.js +3 -3
- package/dist/src/components/chatbot/templates/input-box.template.js +21 -14
- package/dist/src/components/chatbot/templates/message.template.d.ts +3 -8
- package/dist/src/components/chatbot/templates/message.template.js +30 -17
- package/dist/src/components/chatbot/templates/thread-sidebar.template.js +12 -11
- package/package.json +1 -1
- package/packages/themes/dist/default.css +12 -0
package/README.md
CHANGED
|
@@ -174,6 +174,28 @@ Or use our pre-built themes:
|
|
|
174
174
|
<link rel="stylesheet" href="node_modules/@nuralyui/themes/carbon.css">
|
|
175
175
|
```
|
|
176
176
|
|
|
177
|
+
### Required CSS (CDN consumers)
|
|
178
|
+
|
|
179
|
+
Components rely on theme tokens shipped in `@nuraly/lumenui` at `packages/themes/dist/default.css`. Pin the same `${VERSION}` you use for the JS bundle:
|
|
180
|
+
|
|
181
|
+
```html
|
|
182
|
+
<link
|
|
183
|
+
rel="stylesheet"
|
|
184
|
+
href="https://cdn.jsdelivr.net/npm/@nuraly/lumenui@${VERSION}/packages/themes/dist/default.css"
|
|
185
|
+
/>
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
Concrete example with the current version:
|
|
189
|
+
|
|
190
|
+
```html
|
|
191
|
+
<link
|
|
192
|
+
rel="stylesheet"
|
|
193
|
+
href="https://cdn.jsdelivr.net/npm/@nuraly/lumenui@0.7.0/packages/themes/dist/default.css"
|
|
194
|
+
/>
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
The `dist/cdn.js` loader auto-injects this `<link>` (tagged `data-nuralyui-themes`) when no `@nuraly/lumenui` or `@nuralyui/themes` stylesheet is already present. Link your own themes CSS first to override the default (for example to pick `carbon.css`) and the auto-inject is skipped.
|
|
198
|
+
|
|
177
199
|
## 🌍 Browser Support
|
|
178
200
|
|
|
179
201
|
| Chrome | Firefox | Safari | Edge |
|
package/dist/cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";!function(){var e=document.currentScript,t=
|
|
1
|
+
!function(){"use strict";!function(){var e=document.currentScript,t=e&&e.src?e.src.replace(/\/cdn\.js(?:\?.*)?$/,""):"",n=t+"/nuralyui.bundle.js";if(!document.querySelector('script[type="importmap"][data-nuralyui]')){var a=document.createElement("script");a.type="importmap",a.dataset.nuralyui="",a.textContent=JSON.stringify({imports:{"socket.io-client":"https://esm.sh/socket.io-client@4",mermaid:"https://esm.sh/mermaid@11"}}),document.head.appendChild(a)}if(document.head&&!document.querySelector("style[data-nuralyui-fouc]")){var r=document.createElement("style");r.setAttribute("data-nuralyui-fouc",""),r.textContent="nr-chatbot:not(:defined), nr-chatbot:not(:defined) > * { visibility: hidden; }",document.head.appendChild(r)}if(document.head&&!document.querySelector("link[data-nuralyui-themes]")){for(var d=document.head.querySelectorAll('link[rel="stylesheet"]'),i=!1,u=0;u<d.length;u++){var c=d[u].getAttribute("href")||"";if(/@nuraly\/lumenui[^\"]*\/packages\/themes\//.test(c)||/@nuralyui\/themes\//.test(c)){i=!0;break}}if(!i&&t){var l=t.replace(/\/dist$/,"")+"/packages/themes/dist/default.css",s=document.createElement("link");s.rel="stylesheet",s.href=l,s.dataset.nuralyuiThemes="",document.head.appendChild(s)}}var o=document.createElement("link");o.rel="modulepreload",o.href=n,o.crossOrigin="anonymous",document.head.appendChild(o);var m=document.createElement("script");m.type="module",m.src=n,document.head.appendChild(m)}()}();
|