libre-webui 0.19.2 → 0.19.3

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.
Files changed (91) hide show
  1. package/backend/dist/index.d.ts.map +1 -1
  2. package/backend/dist/index.js +61 -2
  3. package/backend/dist/index.js.map +1 -1
  4. package/backend/dist/routes/artifacts.d.ts +3 -0
  5. package/backend/dist/routes/artifacts.d.ts.map +1 -0
  6. package/backend/dist/routes/artifacts.js +167 -0
  7. package/backend/dist/routes/artifacts.js.map +1 -0
  8. package/backend/package.json +1 -1
  9. package/frontend/dist/apple-touch-icon.png +0 -0
  10. package/frontend/dist/artifact-runtime/.build-fingerprint +1 -0
  11. package/frontend/dist/artifact-runtime/babel.js +613 -0
  12. package/frontend/dist/artifact-runtime/chart.js +3 -0
  13. package/frontend/dist/artifact-runtime/d3.js +5 -0
  14. package/frontend/dist/artifact-runtime/fonts.js +255 -0
  15. package/frontend/dist/artifact-runtime/framer-motion.js +10 -0
  16. package/frontend/dist/artifact-runtime/lodash.js +20 -0
  17. package/frontend/dist/artifact-runtime/lucide-react.js +1 -0
  18. package/frontend/dist/artifact-runtime/mathjs.js +54 -0
  19. package/frontend/dist/artifact-runtime/mermaid.js +3535 -0
  20. package/frontend/dist/artifact-runtime/papaparse.js +10 -0
  21. package/frontend/dist/artifact-runtime/plotly.js +3790 -0
  22. package/frontend/dist/artifact-runtime/react.js +9 -0
  23. package/frontend/dist/artifact-runtime/recharts.js +69 -0
  24. package/frontend/dist/artifact-runtime/runtime.js +1 -0
  25. package/frontend/dist/artifact-runtime/tailwind.js +952 -0
  26. package/frontend/dist/artifact-runtime/three.js +5271 -0
  27. package/frontend/dist/artifact-runtime/tone.js +210 -0
  28. package/frontend/dist/assets/index-ZxtmHZ3Y.js +83 -0
  29. package/frontend/dist/assets/index-mBbb8flG.css +1 -0
  30. package/frontend/dist/favicon-dark.png +0 -0
  31. package/frontend/dist/favicon-light.png +0 -0
  32. package/frontend/dist/favicon.svg +1 -0
  33. package/frontend/dist/fonts/inter.css +254 -0
  34. package/frontend/dist/fonts/v20-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7W0Q5n-wU.woff2 +0 -0
  35. package/frontend/dist/fonts/v20-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0Q5nw.woff2 +0 -0
  36. package/frontend/dist/fonts/v20-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7W0Q5n-wU.woff2 +0 -0
  37. package/frontend/dist/fonts/v20-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7W0Q5n-wU.woff2 +0 -0
  38. package/frontend/dist/fonts/v20-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7W0Q5n-wU.woff2 +0 -0
  39. package/frontend/dist/fonts/v20-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7W0Q5n-wU.woff2 +0 -0
  40. package/frontend/dist/fonts/v20-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7W0Q5n-wU.woff2 +0 -0
  41. package/frontend/dist/icon-192.png +0 -0
  42. package/frontend/dist/icon-512.png +0 -0
  43. package/frontend/dist/index.html +15 -10
  44. package/frontend/dist/js/ArtifactContainer-DZV5ZT6g.js +1 -0
  45. package/frontend/dist/js/{ArtifactDemoPage-BlVBMy6a.js → ArtifactDemoPage-BX6d2sWa.js} +58 -2
  46. package/frontend/dist/js/ArtifactSandboxFrame-CSDSSxMI.js +151 -0
  47. package/frontend/dist/js/ArtifactSlideOutPanel-BYy4Yv_U.js +1 -0
  48. package/frontend/dist/js/ChatPage-Bk1fO2xt.js +16 -0
  49. package/frontend/dist/js/FirstTimeSetup-ByfcKmYo.js +1 -0
  50. package/frontend/dist/js/{GalleryPage-BnaFZERr.js → GalleryPage-DLLiZj6X.js} +1 -1
  51. package/frontend/dist/js/{HomePage-BvpoUzGG.js → HomePage-DHuuGx-r.js} +1 -1
  52. package/frontend/dist/js/{LibreClawPage-B-6rO5Jl.js → LibreClawPage-BfCXrQ-e.js} +1 -1
  53. package/frontend/dist/js/{ModelSelector-BV1kuaVg.js → ModelSelector-BET34RYg.js} +1 -1
  54. package/frontend/dist/js/{ModelsPage-D5H70fs3.js → ModelsPage-BxLpqELH.js} +1 -1
  55. package/frontend/dist/js/{NotesPage-D9b3JxCx.js → NotesPage-BC62unJU.js} +1 -1
  56. package/frontend/dist/js/{PersonasPage-CJOGnyQV.js → PersonasPage-BsOyNy8l.js} +2 -2
  57. package/frontend/dist/js/{PluginUsagePage-DHNMWquK.js → PluginUsagePage-CLpKYGwg.js} +1 -1
  58. package/frontend/dist/js/{RichMessageContent-C7NG7gs-.js → RichMessageContent-BTcjK7f1.js} +1 -1
  59. package/frontend/dist/js/SettingsModal-ao0lVJHy.js +1 -0
  60. package/frontend/dist/js/{SystemPage-BsPen2Qb.js → SystemPage-ZMCqqgBt.js} +1 -1
  61. package/frontend/dist/js/{UserManagementPage-I9i5r0V3.js → UserManagementPage-6PsAs-Uy.js} +1 -1
  62. package/frontend/dist/js/WorkPage-t7NVWt81.js +5 -0
  63. package/frontend/dist/js/api-F_fsjYA7.js +19 -0
  64. package/frontend/dist/js/{appStore-CLIS0fvz.js → appStore-ne0eCPTX.js} +2 -2
  65. package/frontend/dist/js/{authStore-CsCkBmaG.js → authStore-DqsiGpyN.js} +1 -1
  66. package/frontend/dist/js/{chatStore-DRY8C0J1.js → chatStore-DRg2vRDS.js} +2 -2
  67. package/frontend/dist/js/config-DZsEwEPX.js +1 -0
  68. package/frontend/dist/js/{estree-CrfVSazx.js → estree-CWs-Kavs.js} +1 -1
  69. package/frontend/dist/js/{html-BbJLJMaV.js → html-DrDcdqPC.js} +1 -1
  70. package/frontend/dist/js/{markdown-DiMg1QLf.js → markdown-CbB02VPB.js} +1 -1
  71. package/frontend/dist/js/{messageCodeStyles-CfzjQF-R.js → messageCodeStyles-D1gR4Bnk.js} +1 -1
  72. package/frontend/dist/js/{standalone-Vs6LnjM6.js → standalone-BIvqjowG.js} +1 -1
  73. package/frontend/dist/js/{typescript-BhVG1zGU.js → typescript-kUuRGkxH.js} +1 -1
  74. package/frontend/dist/js/{ui-Dj9IFugT.js → ui-D4PVoJDa.js} +2 -2
  75. package/frontend/dist/logo-dark.png +0 -0
  76. package/frontend/dist/logo-dark.svg +1 -0
  77. package/frontend/dist/logo-light.png +0 -0
  78. package/frontend/dist/logo-light.svg +1 -0
  79. package/frontend/dist/logo.svg +1 -6
  80. package/frontend/dist/maskable-512.png +0 -0
  81. package/package.json +2 -2
  82. package/frontend/dist/assets/index-B9H3vQ-n.css +0 -1
  83. package/frontend/dist/assets/index-D4LhtFTX.js +0 -38
  84. package/frontend/dist/js/ArtifactContainer-DvuGeXXu.js +0 -1
  85. package/frontend/dist/js/ArtifactSlideOutPanel-CaPMk1Qj.js +0 -1
  86. package/frontend/dist/js/ChatPage-D4UBhGLk.js +0 -16
  87. package/frontend/dist/js/FirstTimeSetup-DJiDNTXY.js +0 -1
  88. package/frontend/dist/js/SettingsModal-DEBxDPne.js +0 -1
  89. package/frontend/dist/js/WorkPage-e30yqvJe.js +0 -5
  90. package/frontend/dist/js/api-jwjnjqx6.js +0 -19
  91. package/frontend/dist/js/artifactHtml-C0Hu9I1u.js +0 -41
@@ -0,0 +1 @@
1
+ (function(){var e=`react`,t=`babel`,n=`tailwind`,r=`fonts`,i={react:e,"react-dom":e,"react-dom/client":e,"react/jsx-runtime":e,"react/jsx-dev-runtime":e,recharts:`recharts`,"lucide-react":`lucide-react`,d3:`d3`,three:`three`,papaparse:`papaparse`,lodash:`lodash`,"lodash-es":`lodash`,mermaid:`mermaid`,"chart.js":`chart`,"chart.js/auto":`chart`,tone:`tone`,mathjs:`mathjs`,"plotly.js":`plotly`,"plotly.js-dist-min":`plotly`,"framer-motion":`framer-motion`,"motion/react":`framer-motion`,motion:`framer-motion`,"three/addons/controls/OrbitControls.js":`three`,"three/examples/jsm/controls/OrbitControls.js":`three`},a=[{pattern:/cdn\.tailwindcss\.com/i,bundle:n},{pattern:/(?:^|\/)tailwindcss(?:@[\d.]+)?(?:\/|$)/i,bundle:n},{pattern:/(?:^|\/)chart\.js(?:@[\d.]+)?(?:\/|$|\?)/i,bundle:`chart`},{pattern:/(?:^|\/)chart(?:\.min)?\.js(?:$|\?)/i,bundle:`chart`},{pattern:/(?:^|\/)d3(?:@[\d.]+)?(?:\/|$|\?)/i,bundle:`d3`},{pattern:/(?:^|\/)d3(?:\.min)?\.js(?:$|\?)/i,bundle:`d3`},{pattern:/(?:^|\/)three(?:@[\d.]+)?(?:\/|$|\?)/i,bundle:`three`},{pattern:/(?:^|\/)three(?:\.min)?\.js(?:$|\?)/i,bundle:`three`},{pattern:/papaparse/i,bundle:`papaparse`},{pattern:/(?:^|\/)lodash(?:@[\d.]+)?(?:\/|$|\?)/i,bundle:`lodash`},{pattern:/(?:^|\/)lodash(?:\.min)?\.js(?:$|\?)/i,bundle:`lodash`},{pattern:/fonts\.(?:googleapis|gstatic)\.com/i,bundle:r},{pattern:/mermaid/i,bundle:`mermaid`},{pattern:/(?:^|\/)tone(?:@[\d.]+)?(?:\/|$|\?)|tone(?:\.min)?\.js/i,bundle:`tone`},{pattern:/mathjs|math(?:\.min)?\.js/i,bundle:`mathjs`},{pattern:/plotly/i,bundle:`plotly`},{pattern:/framer-motion|(?:^|\/)motion(?:@[\d.]+)?(?:\/|$)/i,bundle:`framer-motion`},{pattern:/react-dom/i,bundle:e},{pattern:/(?:^|\/)react(?:@[\d.]+)?(?:\/|$|\?)/i,bundle:e},{pattern:/babel(?:-standalone|\/standalone)/i,bundle:t}];function o(e){if(i[e])return e;let t=a.find(({pattern:t})=>t.test(e))?.bundle??Object.values(i).find(t=>e.startsWith(`${t}/`));return t?Object.entries(i).find(([,e])=>e===t)?.[0]??null:null}var s=`root`,c={modules:{},register(e,t){for(let n of e)this.modules[n]=t},require(e){let t=this.modules[e];if(t!==void 0)return t;let n=o(e),r=n===null?void 0:this.modules[n];if(r!==void 0)return r;throw Error(`"${e}" is not one of the libraries available to artifacts.`)},runReact(){g()},runMermaid(){_()},runInline(e){try{h(m(e))}catch(e){d(`This script could not run.`,f(e))}}},l=()=>{let e=window.__libreArtifactSource;return typeof e==`string`?e.trim():``},u=()=>document.getElementById(s),d=(e,t)=>{let n=u();if(!n)return;let r=document.createElement(`div`);r.setAttribute(`data-testid`,`artifact-runtime-error`),r.style.cssText=`margin:16px;padding:16px;border:1px solid #f0a5a5;border-radius:12px;background:#fff5f5;color:#7f1d1d;font:13px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;word-break:break-word;`;let i=document.createElement(`strong`);i.textContent=e,i.style.cssText=`display:block;margin-bottom:8px;font:600 13px/1.4 system-ui,sans-serif;`,r.append(i,document.createTextNode(t)),n.replaceChildren(r)},f=e=>e instanceof Error?`${e.message}\n\n${e.stack??``}`.trim():String(e),p=e=>{if(typeof e.default==`function`)return e.default;for(let[t,n]of Object.entries(e))if(typeof n==`function`&&/^[A-Z]/.test(t))return n;return null},m=e=>{let t=c.modules.__babel;if(!t)throw Error(`The artifact compiler was not loaded.`);let n=t.transform(e,{filename:`artifact.tsx`,sourceType:`module`,presets:[`typescript`,[`react`,{runtime:`automatic`}]],plugins:[`transform-modules-commonjs`]});if(!n?.code)throw Error(`The artifact produced no runnable code.`);return n.code},h=e=>{let t={exports:{}};return Function(`require`,`module`,`exports`,e)(e=>c.require(e),t,t.exports),t.exports},g=async()=>{let e=l(),t=u();if(!e||!t){d(`Nothing to render.`,`The artifact carried no source.`);return}let n;try{n=h(m(e))}catch(e){d(`This artifact could not be compiled.`,f(e));return}try{let e=c.require(`react`),{createRoot:r}=c.require(`react-dom/client`),i=p(n);if(!i){t.childElementCount===0&&d(`This artifact exported no component.`,`Export the component as the module default, for example: export default function App() { ... }`);return}r(t).render(e.createElement(e.StrictMode,null,e.createElement(i)))}catch(e){d(`This artifact failed to run.`,f(e))}},_=async()=>{let e=l(),t=u();if(!(!e||!t))try{let n=c.require(`mermaid`);n.initialize({startOnLoad:!1,theme:document.documentElement.dataset.colorScheme===`dark`?`dark`:`default`,securityLevel:`strict`,fontFamily:`system-ui, -apple-system, Segoe UI, Roboto, sans-serif`});let{svg:r}=await n.render(`libre-artifact-diagram`,e),i=new DOMParser().parseFromString(r,`image/svg+xml`).documentElement;if(!i||i.nodeName===`parsererror`)throw Error(`The diagram could not be parsed.`);t.replaceChildren(document.importNode(i,!0))}catch(e){d(`This diagram could not be drawn.`,f(e))}};window.addEventListener(`unhandledrejection`,e=>{d(`This artifact raised an unhandled error.`,String(e.reason))}),window.__libreArtifactRuntime=c})();