@liip/liipgpt 3.6.6 → 3.7.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/button/liipgpt-button.iife.js +8 -8
- package/chat/liipgpt-chat.iife.js +19 -19
- package/config/index.cjs +10 -1
- package/config/index.d.ts +8 -0
- package/config/index.js +10 -1
- package/configurator/_app/env.js +1 -1
- package/configurator/_app/immutable/chunks/{dgLflWK3.js → 7oe4YkCP.js} +2 -2
- package/configurator/_app/immutable/chunks/{Ct405RO9.js → C0FfTxd-.js} +1 -1
- package/configurator/_app/immutable/chunks/{D9izXPjZ.js → C44XFFk1.js} +1 -1
- package/configurator/_app/immutable/chunks/{COBaZaOi.js → CG82rIPn.js} +2 -2
- package/configurator/_app/immutable/chunks/{CmSp37Zg.js → CLIirUbv.js} +3 -3
- package/configurator/_app/immutable/chunks/{jMDVv85c.js → CMlXs0zR.js} +1 -1
- package/configurator/_app/immutable/chunks/{B-hpNbtj.js → CzVuCgPt.js} +1 -1
- package/configurator/_app/immutable/chunks/D1EjYV4X.js +1 -0
- package/configurator/_app/immutable/chunks/{mmrLjPYJ.js → DEXLjy8F.js} +1 -1
- package/configurator/_app/immutable/chunks/{CwrZBvVS.js → DRgXMAej.js} +1 -1
- package/configurator/_app/immutable/chunks/DaqY3Yc5.js +61 -0
- package/configurator/_app/immutable/chunks/Djc2CDZL.js +1 -0
- package/configurator/_app/immutable/chunks/DlFt-05G.js +1 -0
- package/configurator/_app/immutable/chunks/{CvIUpsE2.js → Dmocya4I.js} +5 -5
- package/configurator/_app/immutable/chunks/Dn-8Wrys.js +2 -0
- package/configurator/_app/immutable/chunks/{ZDmpvzUI.js → DrOLA3Pz.js} +1 -1
- package/configurator/_app/immutable/entry/{app.E2ldf754.js → app.DVMov4zD.js} +2 -2
- package/configurator/_app/immutable/entry/start.DbzW6hb9.js +1 -0
- package/configurator/_app/immutable/nodes/{0.Ll1kqQ46.js → 0.DSJ64uDY.js} +2 -2
- package/configurator/_app/immutable/nodes/{1.CoQietVY.js → 1.Dpfcltpd.js} +1 -1
- package/configurator/_app/immutable/nodes/{2.BQPbJpTW.js → 2.BYCMfO_y.js} +3 -3
- package/configurator/_app/immutable/nodes/{3.D869uPuW.js → 3.yXZWk1TH.js} +1 -1
- package/configurator/_app/version.json +1 -1
- package/configurator/index.html +6 -6
- package/configurator/sidebar.html +6 -6
- package/index.cjs +38 -18
- package/index.d.ts +28 -0
- package/index.js +38 -18
- package/package.json +1 -1
- package/search-summary/liipgpt-search-summary.iife.js +29 -29
- package/configurator/_app/immutable/chunks/2Hh8DJQG.js +0 -1
- package/configurator/_app/immutable/chunks/B0fliJXa.js +0 -2
- package/configurator/_app/immutable/chunks/B3LnmtSW.js +0 -1
- package/configurator/_app/immutable/chunks/BClMDlJ1.js +0 -61
- package/configurator/_app/immutable/chunks/Bd-qHRpI.js +0 -1
- package/configurator/_app/immutable/entry/start.M4_rYTfO.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{A as e,B as t,C as n,Ct as r,Dt as i,E as a,Gt as o,J as s,K as c,Lt as l,Mt as u,Rt as d,St as f,Tt as p,U as m,V as h,Wt as g,X as _,Y as v,_ as y,_t as b,bt as x,c as S,et as C,ht as w,i as T,j as ee,k as E,kt as D,mt as O,nt as k,o as A,ot as j,rt as M,s as N,tt as P,u as F,v as I,w as te,x as ne,xt as re,y as ie}from"../chunks/rEsbAd0y.js";import"../chunks/
|
|
1
|
+
import{A as e,B as t,C as n,Ct as r,Dt as i,E as a,Gt as o,J as s,K as c,Lt as l,Mt as u,Rt as d,St as f,Tt as p,U as m,V as h,Wt as g,X as _,Y as v,_ as y,_t as b,bt as x,c as S,et as C,ht as w,i as T,j as ee,k as E,kt as D,mt as O,nt as k,o as A,ot as j,rt as M,s as N,tt as P,u as F,v as I,w as te,x as ne,xt as re,y as ie}from"../chunks/rEsbAd0y.js";import"../chunks/DrOLA3Pz.js";import"../chunks/Bo0U8J3e.js";import"../chunks/CFKVnMbq.js";import{n as ae,t as oe}from"../chunks/C0FfTxd-.js";import{i as se,r as ce}from"../chunks/CLIirUbv.js";import"../chunks/CZzAbm1q.js";import"../chunks/Dmocya4I.js";import"../chunks/DKyUMEyV.js";import"../chunks/tFLMI64R.js";import"../chunks/CPPDi2Fg.js";import"../chunks/CMlXs0zR.js";import{n as le,r as ue,t as de}from"../chunks/DEXLjy8F.js";import"../chunks/DaqY3Yc5.js";import"../chunks/D1EjYV4X.js";import"../chunks/DlFt-05G.js";import"../chunks/7oe4YkCP.js";import"../chunks/CG82rIPn.js";import"../chunks/C44XFFk1.js";(()=>{var e=`4.2.2`;function t(e){let t=[0];for(let n=0;n<e.length;n++)e.charCodeAt(n)===10&&t.push(n+1);function n(e){let n=0,r=t.length;for(;r>0;){let i=(r|0)>>1,a=n+i;t[a]<=e?(n=a+1,r=r-i-1):r=i}--n;let i=e-t[n];return{line:n+1,column:i}}function r({line:e,column:n}){--e,e=Math.min(Math.max(e,0),t.length-1);let r=t[e],i=t[e+1]??r;return Math.min(Math.max(r+n,0),i)}return{find:n,findOffset:r}}var n=92,r=47,i=42,a=34,o=39,s=58,c=59,l=10,u=13,d=32,f=9,p=123,m=125,h=40,g=41,_=91,v=93,y=45,b=64,x=33,S=class e extends Error{loc;constructor(n,r){if(r){let e=r[0],i=t(e.code).find(r[1]);n=`${e.file}:${i.line}:${i.column+1}: ${n}`}super(n),this.name=`CssSyntaxError`,this.loc=r,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};function C(e,t){let C=t?.from?{file:t.from,code:e}:null;e[0]===``&&(e=` `+e.slice(1));let E=[],D=[],O=[],k=null,A=null,j=``,M=``,N=0,P;for(let t=0;t<e.length;t++){let F=e.charCodeAt(t);if(!(F===u&&(P=e.charCodeAt(t+1),P===l)))if(F===n)j===``&&(N=t),j+=e.slice(t,t+2),t+=1;else if(F===r&&e.charCodeAt(t+1)===i){let a=t;for(let a=t+2;a<e.length;a++)if(P=e.charCodeAt(a),P===n)a+=1;else if(P===i&&e.charCodeAt(a+1)===r){t=a+1;break}let o=e.slice(a,t+1);if(o.charCodeAt(2)===x){let e=ve(o.slice(2,-2));D.push(e),C&&(e.src=[C,a,t+1],e.dst=[C,a,t+1])}}else if(F===o||F===a){let n=ee(e,t,F,C);j+=e.slice(t,n+1),t=n}else{if((F===d||F===l||F===f)&&(P=e.charCodeAt(t+1))&&(P===d||P===l||P===f||P===u&&(P=e.charCodeAt(t+2))&&P==l))continue;if(F===l){if(j.length===0)continue;P=j.charCodeAt(j.length-1),P!==d&&P!==l&&P!==f&&(j+=` `)}else if(F===y&&e.charCodeAt(t+1)===y&&j.length===0){let l=``,u=t,d=-1;for(let f=t+2;f<e.length;f++)if(P=e.charCodeAt(f),P===n)f+=1;else if(P===o||P===a)f=ee(e,f,P,C);else if(P===r&&e.charCodeAt(f+1)===i){for(let t=f+2;t<e.length;t++)if(P=e.charCodeAt(t),P===n)t+=1;else if(P===i&&e.charCodeAt(t+1)===r){f=t+1;break}}else if(d===-1&&P===s)d=j.length+f-u;else if(P===c&&l.length===0){j+=e.slice(u,f),t=f;break}else if(P===h)l+=`)`;else if(P===_)l+=`]`;else if(P===p)l+=`}`;else if((P===m||e.length-1===f)&&l.length===0){t=f-1,j+=e.slice(u,f);break}else (P===g||P===v||P===m)&&l.length>0&&e[f]===l[l.length-1]&&(l=l.slice(0,-1));let f=T(j,d);if(!f)throw new S(`Invalid custom property, expected a value`,C?[C,u,t]:null);C&&(f.src=[C,u,t],f.dst=[C,u,t]),k?k.nodes.push(f):E.push(f),j=``}else if(F===c&&j.charCodeAt(0)===b)A=w(j),C&&(A.src=[C,N,t],A.dst=[C,N,t]),k?k.nodes.push(A):E.push(A),j=``,A=null;else if(F===c&&M[M.length-1]!==`)`){let e=T(j);if(!e){if(j.length===0)continue;throw new S(`Invalid declaration: \`${j.trim()}\``,C?[C,N,t]:null)}C&&(e.src=[C,N,t],e.dst=[C,N,t]),k?k.nodes.push(e):E.push(e),j=``}else if(F===p&&M[M.length-1]!==`)`)M+=`}`,A=H(j.trim()),C&&(A.src=[C,N,t],A.dst=[C,N,t]),k&&k.nodes.push(A),O.push(k),k=A,j=``,A=null;else if(F===m&&M[M.length-1]!==`)`){if(M===``)throw new S(`Missing opening {`,C?[C,t,t]:null);if(M=M.slice(0,-1),j.length>0)if(j.charCodeAt(0)===b)A=w(j),C&&(A.src=[C,N,t],A.dst=[C,N,t]),k?k.nodes.push(A):E.push(A),j=``,A=null;else{let e=j.indexOf(`:`);if(k){let n=T(j,e);if(!n)throw new S(`Invalid declaration: \`${j.trim()}\``,C?[C,N,t]:null);C&&(n.src=[C,N,t],n.dst=[C,N,t]),k.nodes.push(n)}}let e=O.pop()??null;e===null&&k&&E.push(k),k=e,j=``,A=null}else if(F===h)M+=`)`,j+=`(`;else if(F===g){if(M[M.length-1]!==`)`)throw new S(`Missing opening (`,C?[C,t,t]:null);M=M.slice(0,-1),j+=`)`}else{if(j.length===0&&(F===d||F===l||F===f))continue;j===``&&(N=t),j+=String.fromCharCode(F)}}}if(j.charCodeAt(0)===b){let t=w(j);C&&(t.src=[C,N,e.length],t.dst=[C,N,e.length]),E.push(t)}if(M.length>0&&k){if(k.kind===`rule`)throw new S(`Missing closing } at ${k.selector}`,k.src?[k.src[0],k.src[1],k.src[1]]:null);if(k.kind===`at-rule`)throw new S(`Missing closing } at ${k.name} ${k.params}`,k.src?[k.src[0],k.src[1],k.src[1]]:null)}return D.length>0?D.concat(E):E}function w(e,t=[]){let n=e,r=``;for(let t=5;t<e.length;t++){let i=e.charCodeAt(t);if(i===d||i===f||i===h){n=e.slice(0,t),r=e.slice(t);break}}return V(n.trim(),r.trim(),t)}function T(e,t=e.indexOf(`:`)){if(t===-1)return null;let n=e.indexOf(`!important`,t+1);return U(e.slice(0,t).trim(),e.slice(t+1,n===-1?e.length:n).trim(),n!==-1)}function ee(e,t,r,i=null){let a;for(let o=t+1;o<e.length;o++)if(a=e.charCodeAt(o),a===n)o+=1;else{if(a===r)return o;if(a===c&&(e.charCodeAt(o+1)===l||e.charCodeAt(o+1)===u&&e.charCodeAt(o+2)===l))throw new S(`Unterminated string: ${e.slice(t,o+1)+String.fromCharCode(r)}`,i?[i,t,o+1]:null);if(a===l||a===u&&e.charCodeAt(o+1)===l)throw new S(`Unterminated string: ${e.slice(t,o)+String.fromCharCode(r)}`,i?[i,t,o+1]:null)}return t}function E(e){if(arguments.length===0)throw TypeError("`CSS.escape` requires an argument.");let t=String(e),n=t.length,r=-1,i,a=``,o=t.charCodeAt(0);if(n===1&&o===45)return`\\`+t;for(;++r<n;){if(i=t.charCodeAt(r),i===0){a+=`�`;continue}if(i>=1&&i<=31||i===127||r===0&&i>=48&&i<=57||r===1&&i>=48&&i<=57&&o===45){a+=`\\`+i.toString(16)+` `;continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){a+=t.charAt(r);continue}a+=`\\`+t.charAt(r)}return a}function D(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,e=>e.length>2?String.fromCodePoint(Number.parseInt(e.slice(1).trim(),16)):e[1])}var O=new Map([[`--font`,[`--font-weight`,`--font-size`]],[`--inset`,[`--inset-shadow`,`--inset-ring`]],[`--text`,[`--text-color`,`--text-decoration-color`,`--text-decoration-thickness`,`--text-indent`,`--text-shadow`,`--text-underline-offset`]],[`--grid-column`,[`--grid-column-start`,`--grid-column-end`]],[`--grid-row`,[`--grid-row-start`,`--grid-row-end`]]]);function k(e,t){return(O.get(t)??[]).some(t=>e===t||e.startsWith(`${t}-`))}var A=class{constructor(e=new Map,t=new Set([])){this.values=e,this.keyframes=t}prefix=null;get size(){return this.values.size}add(e,t,n=0,r){if(e.endsWith(`-*`)){if(t!==`initial`)throw Error(`Invalid theme value \`${t}\` for namespace \`${e}\``);e===`--*`?this.values.clear():this.clearNamespace(e.slice(0,-2),0)}if(n&4){let t=this.values.get(e);if(t&&!(t.options&4))return}t===`initial`?this.values.delete(e):this.values.set(e,{value:t,options:n,src:r})}keysInNamespaces(e){let t=[];for(let n of e){let e=`${n}-`;for(let r of this.values.keys())r.startsWith(e)&&r.indexOf(`--`,2)===-1&&(k(r,n)||t.push(r.slice(e.length)))}return t}get(e){for(let t of e){let e=this.values.get(t);if(e)return e.value}return null}hasDefault(e){return(this.getOptions(e)&4)==4}getOptions(e){return e=D(this.#e(e)),this.values.get(e)?.options??0}entries(){return this.prefix?Array.from(this.values,e=>(e[0]=this.prefixKey(e[0]),e)):this.values.entries()}prefixKey(e){return this.prefix?`--${this.prefix}-${e.slice(2)}`:e}#e(e){return this.prefix?`--${e.slice(3+this.prefix.length)}`:e}clearNamespace(e,t){let n=O.get(e)??[];e:for(let r of this.values.keys())if(r.startsWith(e)){if(t!==0&&(this.getOptions(r)&t)!==t)continue;for(let e of n)if(r.startsWith(e))continue e;this.values.delete(r)}}#t(e,t){for(let n of t){let t=e===null?n:`${n}-${e}`;if(!this.values.has(t))if(e!==null&&e.includes(`.`)){if(t=`${n}-${e.replaceAll(`.`,`_`)}`,!this.values.has(t))continue}else continue;if(!k(t,n))return t}return null}#n(e){let t=this.values.get(e);if(!t)return null;let n=null;return t.options&2&&(n=t.value),`var(${E(this.prefixKey(e))}${n?`, ${n}`:``})`}markUsedVariable(e){let t=D(this.#e(e)),n=this.values.get(t);if(!n)return!1;let r=n.options&16;return n.options|=16,!r}resolve(e,t,n=0){let r=this.#t(e,t);if(!r)return null;let i=this.values.get(r);return(n|i.options)&1?i.value:this.#n(r)}resolveValue(e,t){let n=this.#t(e,t);return n?this.values.get(n).value:null}resolveWith(e,t,n=[]){let r=this.#t(e,t);if(!r)return null;let i={};for(let e of n){let t=`${r}${e}`,n=this.values.get(t);n&&(n.options&1?i[e]=n.value:i[e]=this.#n(t))}let a=this.values.get(r);return a.options&1?[a.value,i]:[this.#n(r),i]}namespace(e){let t=new Map,n=`${e}-`;for(let[r,i]of this.values)r===e?t.set(null,i.value):r.startsWith(`${n}-`)?t.set(r.slice(e.length),i.value):r.startsWith(n)&&t.set(r.slice(n.length),i.value);return t}addKeyframes(e){this.keyframes.add(e)}getKeyframes(){return Array.from(this.keyframes)}},j=class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return t===void 0&&(t=this.factory(e,this),this.set(e,t)),t}};function M(e){return{kind:`word`,value:e}}function N(e,t){return{kind:`function`,value:e,nodes:t}}function P(e){return{kind:`separator`,value:e}}function F(e){let t=``;for(let n of e)switch(n.kind){case`word`:case`separator`:t+=n.value;break;case`function`:t+=n.value+`(`+F(n.nodes)+`)`}return t}var I=92,te=41,ne=58,re=44,ie=34,ae=61,oe=62,se=60,ce=10,le=40,ue=39,de=47,fe=32,pe=9;function L(e){e=e.replaceAll(`\r
|
|
2
2
|
`,`
|
|
3
3
|
`);let t=[],n=[],r=null,i=``,a;for(let o=0;o<e.length;o++){let s=e.charCodeAt(o);switch(s){case I:i+=e[o]+e[o+1],o++;break;case de:{if(i.length>0){let e=M(i);r?r.nodes.push(e):t.push(e),i=``}let n=M(e[o]);r?r.nodes.push(n):t.push(n);break}case ne:case re:case ae:case oe:case se:case ce:case fe:case pe:{if(i.length>0){let e=M(i);r?r.nodes.push(e):t.push(e),i=``}let n=o,s=o+1;for(;s<e.length&&(a=e.charCodeAt(s),!(a!==ne&&a!==re&&a!==ae&&a!==oe&&a!==se&&a!==ce&&a!==fe&&a!==pe));s++);o=s-1;let c=P(e.slice(n,s));r?r.nodes.push(c):t.push(c);break}case ue:case ie:{let t=o;for(let t=o+1;t<e.length;t++)if(a=e.charCodeAt(t),a===I)t+=1;else if(a===s){o=t;break}i+=e.slice(t,o+1);break}case le:{let e=N(i,[]);i=``,r?r.nodes.push(e):t.push(e),n.push(e),r=e;break}case te:{let e=n.pop();if(i.length>0){let t=M(i);e?.nodes.push(t),i=``}r=n.length>0?n[n.length-1]:null;break}default:i+=String.fromCharCode(s)}}return i.length>0&&t.push(M(i)),t}var me=(e=>(e[e.Continue=0]=`Continue`,e[e.Skip=1]=`Skip`,e[e.Stop=2]=`Stop`,e[e.Replace=3]=`Replace`,e[e.ReplaceSkip=4]=`ReplaceSkip`,e[e.ReplaceStop=5]=`ReplaceStop`,e))(me||{}),R={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function z(e,t){typeof t==`function`?he(e,t):he(e,t.enter,t.exit)}function he(e,t=()=>R.Continue,n=()=>R.Continue){let r={value:[e,0,null],prev:null},i={parent:null,depth:0,path(){let e=[],t=r;for(;t;){let n=t.value[2];n&&e.push(n),t=t.prev}return e.reverse(),e}};for(;r!==null;){let e=r.value,a=e[0],o=e[1],s=e[2];if(o>=a.length){r=r.prev,--i.depth;continue}if(i.parent=s,o>=0){let n=a[o],s=t(n,i)??R.Continue;switch(s.kind){case 0:n.nodes&&n.nodes.length>0&&(i.depth+=1,r={value:[n.nodes,0,n],prev:r}),e[1]=~o;continue;case 2:return;case 1:e[1]=~o;continue;case 3:a.splice(o,1,...s.nodes);continue;case 5:a.splice(o,1,...s.nodes);return;case 4:a.splice(o,1,...s.nodes),e[1]+=s.nodes.length;continue;default:throw Error(`Invalid \`WalkAction.${me[s.kind]??`Unknown(${s.kind})`}\` in enter.`)}}let c=~o,l=a[c],u=n(l,i)??R.Continue;switch(u.kind){case 0:e[1]=c+1;continue;case 2:return;case 3:a.splice(c,1,...u.nodes),e[1]=c+u.nodes.length;continue;case 5:a.splice(c,1,...u.nodes);return;case 4:a.splice(c,1,...u.nodes),e[1]=c+u.nodes.length;continue;default:throw Error(`Invalid \`WalkAction.${me[u.kind]??`Unknown(${u.kind})`}\` in exit.`)}}}function ge(e){let t=[];return z(L(e),e=>{if(!(e.kind!==`function`||e.value!==`var`))return z(e.nodes,e=>{e.kind!==`word`||e.value[0]!==`-`||e.value[1]!==`-`||t.push(e.value)}),R.Skip}),t}var _e=64;function B(e,t=[]){return{kind:`rule`,selector:e,nodes:t}}function V(e,t=``,n=[]){return{kind:`at-rule`,name:e,params:t,nodes:n}}function H(e,t=[]){return e.charCodeAt(0)===_e?w(e,t):B(e,t)}function U(e,t,n=!1){return{kind:`declaration`,property:e,value:t,important:n}}function ve(e){return{kind:`comment`,value:e}}function ye(e,t){return{kind:`context`,context:e,nodes:t}}function W(e){return{kind:`at-root`,nodes:e}}function be(e){switch(e.kind){case`rule`:return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(be),src:e.src,dst:e.dst};case`at-rule`:return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(be),src:e.src,dst:e.dst};case`at-root`:return{kind:e.kind,nodes:e.nodes.map(be),src:e.src,dst:e.dst};case`context`:return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(be),src:e.src,dst:e.dst};case`declaration`:return{kind:e.kind,property:e.property,value:e.value,important:e.important,src:e.src,dst:e.dst};case`comment`:return{kind:e.kind,value:e.value,src:e.src,dst:e.dst};default:throw Error(`Unknown node kind: ${e.kind}`)}}function xe(e){return{depth:e.depth,get context(){let t={};for(let n of e.path())n.kind===`context`&&Object.assign(t,n.context);return Object.defineProperty(this,`context`,{value:t}),t},get parent(){let e=this.path().pop()??null;return Object.defineProperty(this,`parent`,{value:e}),e},path(){return e.path().filter(e=>e.kind!==`context`)}}}function Se(e,t,n=3){let r=[],i=new Set,a=new j(()=>new Set),o=new j(()=>new Set),s=new Set,c=new Set,l=[],u=[],d=new j(()=>new Set);function f(e,p,m={},h=0){if(e.kind===`declaration`){if(e.property===`--tw-sort`||e.value===void 0||e.value===null)return;if(m.theme&&e.property[0]===`-`&&e.property[1]===`-`){if(e.value===`initial`){e.value=void 0;return}m.keyframes||a.get(p).add(e)}if(e.value.includes(`var(`))if(m.theme&&e.property[0]===`-`&&e.property[1]===`-`)for(let t of ge(e.value))d.get(t).add(e.property);else t.trackUsedVariables(e.value);if(e.property===`animation`)for(let t of Ee(e.value))c.add(t);n&2&&e.value.includes(`color-mix(`)&&!m.supportsColorMix&&!m.keyframes&&o.get(p).add(e),p.push(e)}else if(e.kind===`rule`){let t=[];for(let n of e.nodes)f(n,t,m,h+1);let n={},r=new Set;for(let e of t){if(e.kind!==`declaration`)continue;let t=`${e.property}:${e.value}:${e.important}`;n[t]??=[],n[t].push(e)}for(let e in n)for(let t=0;t<n[e].length-1;++t)r.add(n[e][t]);if(r.size>0&&(t=t.filter(e=>!r.has(e))),t.length===0)return;e.selector===`&`?p.push(...t):p.push({...e,nodes:t})}else if(e.kind===`at-rule`&&e.name===`@property`&&h===0){if(i.has(e.params))return;if(n&1){let t=e.params,n=null,r=!1;for(let t of e.nodes)t.kind===`declaration`&&(t.property===`initial-value`?n=t.value:t.property===`inherits`&&(r=t.value===`true`));let i=U(t,n??`initial`);i.src=e.src,r?l.push(i):u.push(i)}i.add(e.params);let t={...e,nodes:[]};for(let n of e.nodes)f(n,t.nodes,m,h+1);p.push(t)}else if(e.kind===`at-rule`){e.name===`@keyframes`?m={...m,keyframes:!0}:e.name===`@supports`&&e.params.includes(`color-mix(`)&&(m={...m,supportsColorMix:!0});let t={...e,nodes:[]};for(let n of e.nodes)f(n,t.nodes,m,h+1);e.name===`@keyframes`&&m.theme&&s.add(t),(t.nodes.length>0||t.name===`@layer`||t.name===`@charset`||t.name===`@custom-media`||t.name===`@namespace`||t.name===`@import`)&&p.push(t)}else if(e.kind===`at-root`)for(let t of e.nodes){let e=[];f(t,e,m,0);for(let t of e)r.push(t)}else if(e.kind===`context`){if(e.context.reference)return;for(let t of e.nodes)f(t,p,{...m,...e.context},h)}else e.kind===`comment`&&p.push(e)}let p=[];for(let t of e)f(t,p,{},0);e:for(let[e,n]of a)for(let r of n){if(Te(r.property,t.theme,d)){if(r.property.startsWith(t.theme.prefixKey(`--animate-`)))for(let e of Ee(r.value))c.add(e);continue}let n=e.indexOf(r);if(e.splice(n,1),e.length===0){let t=we(p,t=>t.kind===`rule`&&t.nodes===e);if(!t||t.length===0)continue e;t.unshift({kind:`at-root`,nodes:p});do{let e=t.pop();if(!e)break;let n=t[t.length-1];if(!n||n.kind!==`at-root`&&n.kind!==`at-rule`)break;let r=n.nodes.indexOf(e);if(r===-1)break;n.nodes.splice(r,1)}while(!0);continue e}}for(let e of s)if(!c.has(e.params)){let t=r.indexOf(e);r.splice(t,1)}if(p=p.concat(r),n&2)for(let[e,n]of o)for(let r of n){let n=e.indexOf(r);if(n===-1||r.value==null)continue;let i=L(r.value),a=!1;if(z(i,e=>{if(e.kind!==`function`||e.value!==`color-mix`)return;let n=!1,r=!1;if(z(e.nodes,e=>{if(e.kind==`word`&&e.value.toLowerCase()===`currentcolor`){r=!0,a=!0;return}let i=e,o=null,s=new Set;do{if(i.kind!==`function`||i.value!==`var`)return;let e=i.nodes[0];if(!e||e.kind!==`word`)return;let c=e.value;if(s.has(c)){n=!0;return}if(s.add(c),a=!0,o=t.theme.resolveValue(null,[e.value]),!o){n=!0;return}if(o.toLowerCase()===`currentcolor`){r=!0;return}i=o.startsWith(`var(`)?L(o)[0]:null}while(i);return R.Replace({kind:`word`,value:o})}),n||r){let t=e.nodes.findIndex(e=>e.kind===`separator`&&e.value.trim().includes(`,`));if(t===-1)return;let n=e.nodes.length>t?e.nodes[t+1]:null;return n?R.Replace(n):void 0}else if(a){let t=e.nodes[2];t.kind===`word`&&(t.value===`oklab`||t.value===`oklch`||t.value===`lab`||t.value===`lch`)&&(t.value=`srgb`)}}),!a)continue;let o={...r,value:F(i)},s=H(`@supports (color: color-mix(in lab, red, red))`,[r]);s.src=r.src,e.splice(n,1,o,s)}if(n&1){let e=[];if(l.length>0){let t=H(`:root, :host`,l);t.src=l[0].src,e.push(t)}if(u.length>0){let t=H(`*, ::before, ::after, ::backdrop`,u);t.src=u[0].src,e.push(t)}if(e.length>0){let t=p.findIndex(e=>!(e.kind===`comment`||e.kind===`at-rule`&&(e.name===`@charset`||e.name===`@import`))),n=V(`@layer`,`properties`,[]);n.src=e[0].src,p.splice(t<0?p.length:t,0,n);let r=H(`@layer properties`,[V(`@supports`,`((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))`,e)]);r.src=e[0].src,r.nodes[0].src=e[0].src,p.push(r)}}return p}function Ce(e,t){let n=0,r={file:null,code:``};function i(e,a=0){let o=``,s=` `.repeat(a);if(e.kind===`declaration`){if(o+=`${s}${e.property}: ${e.value}${e.important?` !important`:``};
|
|
4
4
|
`,t){n+=s.length;let t=n;n+=e.property.length,n+=2,n+=e.value?.length??0,e.important&&(n+=11);let i=n;n+=2,e.dst=[r,t,i]}}else if(e.kind===`rule`){if(o+=`${s}${e.selector} {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1784209760554"}
|
package/configurator/index.html
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<link rel="icon" href="./favicon.png" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
-
<link href="./_app/immutable/entry/start.
|
|
8
|
-
<link href="./_app/immutable/chunks/
|
|
7
|
+
<link href="./_app/immutable/entry/start.DbzW6hb9.js" rel="modulepreload">
|
|
8
|
+
<link href="./_app/immutable/chunks/DrOLA3Pz.js" rel="modulepreload">
|
|
9
9
|
<link href="./_app/immutable/chunks/rEsbAd0y.js" rel="modulepreload">
|
|
10
10
|
<link href="./_app/immutable/chunks/CibALFW0.js" rel="modulepreload">
|
|
11
11
|
<link href="./_app/immutable/chunks/Bo0U8J3e.js" rel="modulepreload">
|
|
12
|
-
<link href="./_app/immutable/entry/app.
|
|
12
|
+
<link href="./_app/immutable/entry/app.DVMov4zD.js" rel="modulepreload">
|
|
13
13
|
<link href="./_app/immutable/chunks/DjVmpym-.js" rel="modulepreload">
|
|
14
14
|
<link href="./_app/immutable/chunks/CFKVnMbq.js" rel="modulepreload">
|
|
15
15
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<div style="display: contents">
|
|
19
19
|
<script>
|
|
20
20
|
{
|
|
21
|
-
|
|
21
|
+
__sveltekit_19w61kh = {
|
|
22
22
|
base: new URL(".", location).pathname.slice(0, -1),
|
|
23
23
|
assets: "/configurator"
|
|
24
24
|
};
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
const element = document.currentScript.parentElement;
|
|
27
27
|
|
|
28
28
|
Promise.all([
|
|
29
|
-
import("./_app/immutable/entry/start.
|
|
30
|
-
import("./_app/immutable/entry/app.
|
|
29
|
+
import("./_app/immutable/entry/start.DbzW6hb9.js"),
|
|
30
|
+
import("./_app/immutable/entry/app.DVMov4zD.js")
|
|
31
31
|
]).then(([kit, app]) => {
|
|
32
32
|
kit.start(app, element);
|
|
33
33
|
});
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<link rel="icon" href="./favicon.png" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
-
<link href="./_app/immutable/entry/start.
|
|
8
|
-
<link href="./_app/immutable/chunks/
|
|
7
|
+
<link href="./_app/immutable/entry/start.DbzW6hb9.js" rel="modulepreload">
|
|
8
|
+
<link href="./_app/immutable/chunks/DrOLA3Pz.js" rel="modulepreload">
|
|
9
9
|
<link href="./_app/immutable/chunks/rEsbAd0y.js" rel="modulepreload">
|
|
10
10
|
<link href="./_app/immutable/chunks/CibALFW0.js" rel="modulepreload">
|
|
11
11
|
<link href="./_app/immutable/chunks/Bo0U8J3e.js" rel="modulepreload">
|
|
12
|
-
<link href="./_app/immutable/entry/app.
|
|
12
|
+
<link href="./_app/immutable/entry/app.DVMov4zD.js" rel="modulepreload">
|
|
13
13
|
<link href="./_app/immutable/chunks/DjVmpym-.js" rel="modulepreload">
|
|
14
14
|
<link href="./_app/immutable/chunks/CFKVnMbq.js" rel="modulepreload">
|
|
15
15
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<div style="display: contents">
|
|
19
19
|
<script>
|
|
20
20
|
{
|
|
21
|
-
|
|
21
|
+
__sveltekit_19w61kh = {
|
|
22
22
|
base: new URL(".", location).pathname.slice(0, -1),
|
|
23
23
|
assets: "/configurator"
|
|
24
24
|
};
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
const element = document.currentScript.parentElement;
|
|
27
27
|
|
|
28
28
|
Promise.all([
|
|
29
|
-
import("./_app/immutable/entry/start.
|
|
30
|
-
import("./_app/immutable/entry/app.
|
|
29
|
+
import("./_app/immutable/entry/start.DbzW6hb9.js"),
|
|
30
|
+
import("./_app/immutable/entry/app.DVMov4zD.js")
|
|
31
31
|
]).then(([kit, app]) => {
|
|
32
32
|
kit.start(app, element);
|
|
33
33
|
});
|
package/index.cjs
CHANGED
|
@@ -72,6 +72,7 @@ __export(exports_client, {
|
|
|
72
72
|
menuItemSchema: () => menuItemSchema,
|
|
73
73
|
fullTranslations: () => fullTranslations,
|
|
74
74
|
conversationStateSchema: () => conversationStateSchema,
|
|
75
|
+
conversationHistorySchema: () => conversationHistorySchema,
|
|
75
76
|
completeChatConfigSchema: () => completeChatConfigSchema,
|
|
76
77
|
classificationResponseSchema: () => classificationResponseSchema,
|
|
77
78
|
classificationConfigSchema: () => classificationConfigSchema,
|
|
@@ -19578,6 +19579,23 @@ function date4(params) {
|
|
|
19578
19579
|
|
|
19579
19580
|
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/external.js
|
|
19580
19581
|
config(en_default());
|
|
19582
|
+
// src/lib/client/schemas/search-reference-schema.ts
|
|
19583
|
+
var metadataValueSchema = exports_external.union([exports_external.string(), exports_external.number(), exports_external.boolean(), exports_external.array(exports_external.string()), exports_external.array(exports_external.number()), exports_external.array(exports_external.boolean())]);
|
|
19584
|
+
var referenceContentSchema = exports_external.object({
|
|
19585
|
+
title: exports_external.string(),
|
|
19586
|
+
description: exports_external.string().optional(),
|
|
19587
|
+
badge: exports_external.string().optional(),
|
|
19588
|
+
breadcrumbs: exports_external.array(exports_external.string()).optional(),
|
|
19589
|
+
previewImage: exports_external.string().optional(),
|
|
19590
|
+
date: exports_external.string().datetime().optional()
|
|
19591
|
+
});
|
|
19592
|
+
var searchReferenceSchema = exports_external.object({
|
|
19593
|
+
url: exports_external.string().url(),
|
|
19594
|
+
score: exports_external.number(),
|
|
19595
|
+
metadata: exports_external.record(exports_external.string(), metadataValueSchema),
|
|
19596
|
+
language: exports_external.string().optional()
|
|
19597
|
+
}).extend(referenceContentSchema.shape);
|
|
19598
|
+
|
|
19581
19599
|
// src/lib/config/schemas/translations-schema.ts
|
|
19582
19600
|
var errorTranslationSchema = exports_external.object({
|
|
19583
19601
|
blocked: exports_external.string(),
|
|
@@ -19741,9 +19759,13 @@ var translationSchema = exports_external.object({
|
|
|
19741
19759
|
searchSummaryOptOut: exports_external.string(),
|
|
19742
19760
|
searchSummaryError: exports_external.string(),
|
|
19743
19761
|
searchSummaryDisclaimer: exports_external.string().optional(),
|
|
19762
|
+
searchSummaryLoading: exports_external.string(),
|
|
19763
|
+
searchSummaryFollowUpPlaceholder: exports_external.string(),
|
|
19764
|
+
searchSummaryFollowUpSubmit: exports_external.string(),
|
|
19744
19765
|
ariaSearchSummaryExpand: exports_external.string(),
|
|
19745
19766
|
ariaSearchSummaryCollapse: exports_external.string(),
|
|
19746
19767
|
ariaSearchSummaryOptOut: exports_external.string(),
|
|
19768
|
+
ariaSearchSummaryFollowUpInput: exports_external.string(),
|
|
19747
19769
|
jsonLdEventDate: exports_external.string(),
|
|
19748
19770
|
jsonLdEventLocation: exports_external.string(),
|
|
19749
19771
|
jsonLdEventDescription: exports_external.string(),
|
|
@@ -19817,23 +19839,6 @@ var chatMessageEmbedSchema = exports_external.intersection(exports_external.disc
|
|
|
19817
19839
|
alvaConfidenceComponentSchema
|
|
19818
19840
|
]), chatMessageEmbedBaseSchema);
|
|
19819
19841
|
|
|
19820
|
-
// src/lib/client/schemas/search-reference-schema.ts
|
|
19821
|
-
var metadataValueSchema = exports_external.union([exports_external.string(), exports_external.number(), exports_external.boolean(), exports_external.array(exports_external.string()), exports_external.array(exports_external.number()), exports_external.array(exports_external.boolean())]);
|
|
19822
|
-
var referenceContentSchema = exports_external.object({
|
|
19823
|
-
title: exports_external.string(),
|
|
19824
|
-
description: exports_external.string().optional(),
|
|
19825
|
-
badge: exports_external.string().optional(),
|
|
19826
|
-
breadcrumbs: exports_external.array(exports_external.string()).optional(),
|
|
19827
|
-
previewImage: exports_external.string().optional(),
|
|
19828
|
-
date: exports_external.string().datetime().optional()
|
|
19829
|
-
});
|
|
19830
|
-
var searchReferenceSchema = exports_external.object({
|
|
19831
|
-
url: exports_external.string().url(),
|
|
19832
|
-
score: exports_external.number(),
|
|
19833
|
-
metadata: exports_external.record(exports_external.string(), metadataValueSchema),
|
|
19834
|
-
language: exports_external.string().optional()
|
|
19835
|
-
}).extend(referenceContentSchema.shape);
|
|
19836
|
-
|
|
19837
19842
|
// src/lib/config/schemas/chat-message-schema.ts
|
|
19838
19843
|
var pageStateSchema = exports_external.enum(["start", "chat"]);
|
|
19839
19844
|
var routeSchema = exports_external.discriminatedUnion("name", [
|
|
@@ -19914,6 +19919,10 @@ var chatMessageBotLoadingSchema = botMessageBaseSchema.extend({
|
|
|
19914
19919
|
});
|
|
19915
19920
|
var chatContentSchema = exports_external.union([chatMessageBotLoadingSchema, chatMessageBotStreamingSchema]);
|
|
19916
19921
|
var chatMessageSchema = exports_external.union([chatContentSchema, chatMessageUserSchema, chatMessageEmbedSchema]);
|
|
19922
|
+
var conversationHistorySchema = exports_external.array(exports_external.object({
|
|
19923
|
+
question: exports_external.string(),
|
|
19924
|
+
answer: exports_external.string()
|
|
19925
|
+
}));
|
|
19917
19926
|
|
|
19918
19927
|
// src/lib/config/schemas/theme-schema.ts
|
|
19919
19928
|
var sizeDefinitionClampSchema = exports_external.object({
|
|
@@ -20197,7 +20206,8 @@ var userDataResponseSchema = exports_external.union([
|
|
|
20197
20206
|
var fullTranslations = exports_external.record(languagesSchema, translationSchema);
|
|
20198
20207
|
var selectedTopicSchema = exports_external.object({
|
|
20199
20208
|
label: exports_external.string(),
|
|
20200
|
-
placeholder: exports_external.string()
|
|
20209
|
+
placeholder: exports_external.string(),
|
|
20210
|
+
locked: exports_external.boolean().optional()
|
|
20201
20211
|
});
|
|
20202
20212
|
var chatSelectorConfigSchema = exports_external.object({
|
|
20203
20213
|
settingName: exports_external.string(),
|
|
@@ -21267,6 +21277,16 @@ class LiipGPTClientPrimitive {
|
|
|
21267
21277
|
async getChatConfig() {
|
|
21268
21278
|
return this.internalData.restClient.fetchData("/chatconfig", chatConfigSchemaWithLegacyThemeName);
|
|
21269
21279
|
}
|
|
21280
|
+
async getChatHistory(cID, uID) {
|
|
21281
|
+
try {
|
|
21282
|
+
const response = await this.internalData.restClient.postData("/chathistory", { cID, uID });
|
|
21283
|
+
const parsed = conversationHistorySchema.safeParse(await response.json());
|
|
21284
|
+
return parsed.success ? parsed.data : [];
|
|
21285
|
+
} catch (error48) {
|
|
21286
|
+
console.error("Failed to load chat history:", error48);
|
|
21287
|
+
return [];
|
|
21288
|
+
}
|
|
21289
|
+
}
|
|
21270
21290
|
async getPredefinedQuestions(params) {
|
|
21271
21291
|
const data = await this.internalData.restClient.fetchData("/topics/questions", predefinedQuestionsResponseSchema, params);
|
|
21272
21292
|
return data.predefinedQuestions;
|
package/index.d.ts
CHANGED
|
@@ -4907,6 +4907,10 @@ export declare const chatMessageSchema: z.ZodUnion<readonly [
|
|
|
4907
4907
|
hideChatInput: z.ZodOptional<z.ZodBoolean>;
|
|
4908
4908
|
}, z.core.$strip>>
|
|
4909
4909
|
]>;
|
|
4910
|
+
export declare const conversationHistorySchema: z.ZodArray<z.ZodObject<{
|
|
4911
|
+
question: z.ZodString;
|
|
4912
|
+
answer: z.ZodString;
|
|
4913
|
+
}, z.core.$strip>>;
|
|
4910
4914
|
export type PageState = z.infer<typeof pageStateSchema>;
|
|
4911
4915
|
export type Route = z.infer<typeof routeSchema>;
|
|
4912
4916
|
export type ChatMessageUser = z.infer<typeof chatMessageUserSchema>;
|
|
@@ -4921,6 +4925,7 @@ export type ChatMessageBotStreaming = z.infer<typeof chatMessageBotStreamingSche
|
|
|
4921
4925
|
export type ChatMessageBotLoading = z.infer<typeof chatMessageBotLoadingSchema>;
|
|
4922
4926
|
export type ChatErrors = z.infer<typeof chatErrorsSchema>;
|
|
4923
4927
|
export type OnError = (error: ChatErrors) => void;
|
|
4928
|
+
export type ConversationHistoryEntry = z.infer<typeof conversationHistorySchema>[number];
|
|
4924
4929
|
export type MarkdownRendererOptions = {
|
|
4925
4930
|
extensions?: MarkedExtension[];
|
|
4926
4931
|
/**
|
|
@@ -5251,9 +5256,13 @@ export declare const fullTranslations: z.ZodRecord<z.ZodEnum<{
|
|
|
5251
5256
|
searchSummaryOptOut: z.ZodString;
|
|
5252
5257
|
searchSummaryError: z.ZodString;
|
|
5253
5258
|
searchSummaryDisclaimer: z.ZodOptional<z.ZodString>;
|
|
5259
|
+
searchSummaryLoading: z.ZodString;
|
|
5260
|
+
searchSummaryFollowUpPlaceholder: z.ZodString;
|
|
5261
|
+
searchSummaryFollowUpSubmit: z.ZodString;
|
|
5254
5262
|
ariaSearchSummaryExpand: z.ZodString;
|
|
5255
5263
|
ariaSearchSummaryCollapse: z.ZodString;
|
|
5256
5264
|
ariaSearchSummaryOptOut: z.ZodString;
|
|
5265
|
+
ariaSearchSummaryFollowUpInput: z.ZodString;
|
|
5257
5266
|
jsonLdEventDate: z.ZodString;
|
|
5258
5267
|
jsonLdEventLocation: z.ZodString;
|
|
5259
5268
|
jsonLdEventDescription: z.ZodString;
|
|
@@ -5268,6 +5277,7 @@ export declare const fullTranslations: z.ZodRecord<z.ZodEnum<{
|
|
|
5268
5277
|
export declare const selectedTopicSchema: z.ZodObject<{
|
|
5269
5278
|
label: z.ZodString;
|
|
5270
5279
|
placeholder: z.ZodString;
|
|
5280
|
+
locked: z.ZodOptional<z.ZodBoolean>;
|
|
5271
5281
|
}, z.core.$strip>;
|
|
5272
5282
|
declare const chatSelectorConfigSchema: z.ZodObject<{
|
|
5273
5283
|
settingName: z.ZodString;
|
|
@@ -6233,9 +6243,13 @@ export declare const completeChatConfigSchema: z.ZodObject<{
|
|
|
6233
6243
|
searchSummaryOptOut: z.ZodOptional<z.ZodString>;
|
|
6234
6244
|
searchSummaryError: z.ZodOptional<z.ZodString>;
|
|
6235
6245
|
searchSummaryDisclaimer: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
6246
|
+
searchSummaryLoading: z.ZodOptional<z.ZodString>;
|
|
6247
|
+
searchSummaryFollowUpPlaceholder: z.ZodOptional<z.ZodString>;
|
|
6248
|
+
searchSummaryFollowUpSubmit: z.ZodOptional<z.ZodString>;
|
|
6236
6249
|
ariaSearchSummaryExpand: z.ZodOptional<z.ZodString>;
|
|
6237
6250
|
ariaSearchSummaryCollapse: z.ZodOptional<z.ZodString>;
|
|
6238
6251
|
ariaSearchSummaryOptOut: z.ZodOptional<z.ZodString>;
|
|
6252
|
+
ariaSearchSummaryFollowUpInput: z.ZodOptional<z.ZodString>;
|
|
6239
6253
|
jsonLdEventDate: z.ZodOptional<z.ZodString>;
|
|
6240
6254
|
jsonLdEventLocation: z.ZodOptional<z.ZodString>;
|
|
6241
6255
|
jsonLdEventDescription: z.ZodOptional<z.ZodString>;
|
|
@@ -8896,9 +8910,13 @@ export declare const chatConfigSchema: z.ZodObject<{
|
|
|
8896
8910
|
searchSummaryOptOut: z.ZodOptional<z.ZodString>;
|
|
8897
8911
|
searchSummaryError: z.ZodOptional<z.ZodString>;
|
|
8898
8912
|
searchSummaryDisclaimer: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
8913
|
+
searchSummaryLoading: z.ZodOptional<z.ZodString>;
|
|
8914
|
+
searchSummaryFollowUpPlaceholder: z.ZodOptional<z.ZodString>;
|
|
8915
|
+
searchSummaryFollowUpSubmit: z.ZodOptional<z.ZodString>;
|
|
8899
8916
|
ariaSearchSummaryExpand: z.ZodOptional<z.ZodString>;
|
|
8900
8917
|
ariaSearchSummaryCollapse: z.ZodOptional<z.ZodString>;
|
|
8901
8918
|
ariaSearchSummaryOptOut: z.ZodOptional<z.ZodString>;
|
|
8919
|
+
ariaSearchSummaryFollowUpInput: z.ZodOptional<z.ZodString>;
|
|
8902
8920
|
jsonLdEventDate: z.ZodOptional<z.ZodString>;
|
|
8903
8921
|
jsonLdEventLocation: z.ZodOptional<z.ZodString>;
|
|
8904
8922
|
jsonLdEventDescription: z.ZodOptional<z.ZodString>;
|
|
@@ -11559,9 +11577,13 @@ export declare const chatConfigSchemaWithLegacyThemeName: z.ZodIntersection<z.Zo
|
|
|
11559
11577
|
searchSummaryOptOut: z.ZodOptional<z.ZodString>;
|
|
11560
11578
|
searchSummaryError: z.ZodOptional<z.ZodString>;
|
|
11561
11579
|
searchSummaryDisclaimer: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
11580
|
+
searchSummaryLoading: z.ZodOptional<z.ZodString>;
|
|
11581
|
+
searchSummaryFollowUpPlaceholder: z.ZodOptional<z.ZodString>;
|
|
11582
|
+
searchSummaryFollowUpSubmit: z.ZodOptional<z.ZodString>;
|
|
11562
11583
|
ariaSearchSummaryExpand: z.ZodOptional<z.ZodString>;
|
|
11563
11584
|
ariaSearchSummaryCollapse: z.ZodOptional<z.ZodString>;
|
|
11564
11585
|
ariaSearchSummaryOptOut: z.ZodOptional<z.ZodString>;
|
|
11586
|
+
ariaSearchSummaryFollowUpInput: z.ZodOptional<z.ZodString>;
|
|
11565
11587
|
jsonLdEventDate: z.ZodOptional<z.ZodString>;
|
|
11566
11588
|
jsonLdEventLocation: z.ZodOptional<z.ZodString>;
|
|
11567
11589
|
jsonLdEventDescription: z.ZodOptional<z.ZodString>;
|
|
@@ -13597,6 +13619,12 @@ declare class LiipGPTClientPrimitive {
|
|
|
13597
13619
|
}): Promise<void>;
|
|
13598
13620
|
search(query: string, options?: SearchOptions): Promise<SearchResponse>;
|
|
13599
13621
|
getChatConfig(): Promise<ChatConfig>;
|
|
13622
|
+
/**
|
|
13623
|
+
* Reloads a prior conversation (e.g. a search-summary handover). `cID` and `uID` travel in the
|
|
13624
|
+
* POST body so they never appear in a URL/Referer. Backend enforces ownership and returns `[]`
|
|
13625
|
+
* when `cID` does not belong to `uID`; any failure degrades to `[]` so the chat opens cleanly.
|
|
13626
|
+
*/
|
|
13627
|
+
getChatHistory(cID: string, uID: string): Promise<ConversationHistoryEntry[]>;
|
|
13600
13628
|
getPredefinedQuestions(params: PredefinedQuestionsParams): Promise<PredefinedQuestion[]>;
|
|
13601
13629
|
transcribeAudio(audioBlob: Blob, options?: TranscribeOptions): Promise<SpeechToTextResult>;
|
|
13602
13630
|
}
|
package/index.js
CHANGED
|
@@ -19501,6 +19501,23 @@ function date4(params) {
|
|
|
19501
19501
|
|
|
19502
19502
|
// node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/external.js
|
|
19503
19503
|
config(en_default());
|
|
19504
|
+
// src/lib/client/schemas/search-reference-schema.ts
|
|
19505
|
+
var metadataValueSchema = exports_external.union([exports_external.string(), exports_external.number(), exports_external.boolean(), exports_external.array(exports_external.string()), exports_external.array(exports_external.number()), exports_external.array(exports_external.boolean())]);
|
|
19506
|
+
var referenceContentSchema = exports_external.object({
|
|
19507
|
+
title: exports_external.string(),
|
|
19508
|
+
description: exports_external.string().optional(),
|
|
19509
|
+
badge: exports_external.string().optional(),
|
|
19510
|
+
breadcrumbs: exports_external.array(exports_external.string()).optional(),
|
|
19511
|
+
previewImage: exports_external.string().optional(),
|
|
19512
|
+
date: exports_external.string().datetime().optional()
|
|
19513
|
+
});
|
|
19514
|
+
var searchReferenceSchema = exports_external.object({
|
|
19515
|
+
url: exports_external.string().url(),
|
|
19516
|
+
score: exports_external.number(),
|
|
19517
|
+
metadata: exports_external.record(exports_external.string(), metadataValueSchema),
|
|
19518
|
+
language: exports_external.string().optional()
|
|
19519
|
+
}).extend(referenceContentSchema.shape);
|
|
19520
|
+
|
|
19504
19521
|
// src/lib/config/schemas/translations-schema.ts
|
|
19505
19522
|
var errorTranslationSchema = exports_external.object({
|
|
19506
19523
|
blocked: exports_external.string(),
|
|
@@ -19664,9 +19681,13 @@ var translationSchema = exports_external.object({
|
|
|
19664
19681
|
searchSummaryOptOut: exports_external.string(),
|
|
19665
19682
|
searchSummaryError: exports_external.string(),
|
|
19666
19683
|
searchSummaryDisclaimer: exports_external.string().optional(),
|
|
19684
|
+
searchSummaryLoading: exports_external.string(),
|
|
19685
|
+
searchSummaryFollowUpPlaceholder: exports_external.string(),
|
|
19686
|
+
searchSummaryFollowUpSubmit: exports_external.string(),
|
|
19667
19687
|
ariaSearchSummaryExpand: exports_external.string(),
|
|
19668
19688
|
ariaSearchSummaryCollapse: exports_external.string(),
|
|
19669
19689
|
ariaSearchSummaryOptOut: exports_external.string(),
|
|
19690
|
+
ariaSearchSummaryFollowUpInput: exports_external.string(),
|
|
19670
19691
|
jsonLdEventDate: exports_external.string(),
|
|
19671
19692
|
jsonLdEventLocation: exports_external.string(),
|
|
19672
19693
|
jsonLdEventDescription: exports_external.string(),
|
|
@@ -19740,23 +19761,6 @@ var chatMessageEmbedSchema = exports_external.intersection(exports_external.disc
|
|
|
19740
19761
|
alvaConfidenceComponentSchema
|
|
19741
19762
|
]), chatMessageEmbedBaseSchema);
|
|
19742
19763
|
|
|
19743
|
-
// src/lib/client/schemas/search-reference-schema.ts
|
|
19744
|
-
var metadataValueSchema = exports_external.union([exports_external.string(), exports_external.number(), exports_external.boolean(), exports_external.array(exports_external.string()), exports_external.array(exports_external.number()), exports_external.array(exports_external.boolean())]);
|
|
19745
|
-
var referenceContentSchema = exports_external.object({
|
|
19746
|
-
title: exports_external.string(),
|
|
19747
|
-
description: exports_external.string().optional(),
|
|
19748
|
-
badge: exports_external.string().optional(),
|
|
19749
|
-
breadcrumbs: exports_external.array(exports_external.string()).optional(),
|
|
19750
|
-
previewImage: exports_external.string().optional(),
|
|
19751
|
-
date: exports_external.string().datetime().optional()
|
|
19752
|
-
});
|
|
19753
|
-
var searchReferenceSchema = exports_external.object({
|
|
19754
|
-
url: exports_external.string().url(),
|
|
19755
|
-
score: exports_external.number(),
|
|
19756
|
-
metadata: exports_external.record(exports_external.string(), metadataValueSchema),
|
|
19757
|
-
language: exports_external.string().optional()
|
|
19758
|
-
}).extend(referenceContentSchema.shape);
|
|
19759
|
-
|
|
19760
19764
|
// src/lib/config/schemas/chat-message-schema.ts
|
|
19761
19765
|
var pageStateSchema = exports_external.enum(["start", "chat"]);
|
|
19762
19766
|
var routeSchema = exports_external.discriminatedUnion("name", [
|
|
@@ -19837,6 +19841,10 @@ var chatMessageBotLoadingSchema = botMessageBaseSchema.extend({
|
|
|
19837
19841
|
});
|
|
19838
19842
|
var chatContentSchema = exports_external.union([chatMessageBotLoadingSchema, chatMessageBotStreamingSchema]);
|
|
19839
19843
|
var chatMessageSchema = exports_external.union([chatContentSchema, chatMessageUserSchema, chatMessageEmbedSchema]);
|
|
19844
|
+
var conversationHistorySchema = exports_external.array(exports_external.object({
|
|
19845
|
+
question: exports_external.string(),
|
|
19846
|
+
answer: exports_external.string()
|
|
19847
|
+
}));
|
|
19840
19848
|
|
|
19841
19849
|
// src/lib/config/schemas/theme-schema.ts
|
|
19842
19850
|
var sizeDefinitionClampSchema = exports_external.object({
|
|
@@ -20120,7 +20128,8 @@ var userDataResponseSchema = exports_external.union([
|
|
|
20120
20128
|
var fullTranslations = exports_external.record(languagesSchema, translationSchema);
|
|
20121
20129
|
var selectedTopicSchema = exports_external.object({
|
|
20122
20130
|
label: exports_external.string(),
|
|
20123
|
-
placeholder: exports_external.string()
|
|
20131
|
+
placeholder: exports_external.string(),
|
|
20132
|
+
locked: exports_external.boolean().optional()
|
|
20124
20133
|
});
|
|
20125
20134
|
var chatSelectorConfigSchema = exports_external.object({
|
|
20126
20135
|
settingName: exports_external.string(),
|
|
@@ -21190,6 +21199,16 @@ class LiipGPTClientPrimitive {
|
|
|
21190
21199
|
async getChatConfig() {
|
|
21191
21200
|
return this.internalData.restClient.fetchData("/chatconfig", chatConfigSchemaWithLegacyThemeName);
|
|
21192
21201
|
}
|
|
21202
|
+
async getChatHistory(cID, uID) {
|
|
21203
|
+
try {
|
|
21204
|
+
const response = await this.internalData.restClient.postData("/chathistory", { cID, uID });
|
|
21205
|
+
const parsed = conversationHistorySchema.safeParse(await response.json());
|
|
21206
|
+
return parsed.success ? parsed.data : [];
|
|
21207
|
+
} catch (error48) {
|
|
21208
|
+
console.error("Failed to load chat history:", error48);
|
|
21209
|
+
return [];
|
|
21210
|
+
}
|
|
21211
|
+
}
|
|
21193
21212
|
async getPredefinedQuestions(params) {
|
|
21194
21213
|
const data = await this.internalData.restClient.fetchData("/topics/questions", predefinedQuestionsResponseSchema, params);
|
|
21195
21214
|
return data.predefinedQuestions;
|
|
@@ -21263,6 +21282,7 @@ export {
|
|
|
21263
21282
|
menuItemSchema,
|
|
21264
21283
|
fullTranslations,
|
|
21265
21284
|
conversationStateSchema,
|
|
21285
|
+
conversationHistorySchema,
|
|
21266
21286
|
completeChatConfigSchema,
|
|
21267
21287
|
classificationResponseSchema,
|
|
21268
21288
|
classificationConfigSchema,
|