@liip/liipgpt 2.0.0 → 2.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.
- package/button/liipgpt-button.iife.js +175 -172
- package/chat/liipgpt-chat.iife.js +201 -198
- package/config/index.cjs +30 -6
- package/config/index.d.ts +2591 -185
- package/config/index.js +30 -6
- package/configurator/_app/env.js +1 -1
- package/configurator/_app/immutable/chunks/{BtLfsQWl.js → 7tLp1xC_.js} +1 -1
- package/configurator/_app/immutable/chunks/{Daj9x7sZ.js → BOW8nxZh.js} +1 -1
- package/configurator/_app/immutable/chunks/{pxprCMm0.js → BXqV06iJ.js} +1 -1
- package/configurator/_app/immutable/chunks/B_uz94sO.js +209 -0
- package/configurator/_app/immutable/chunks/CvYGSlFU.js +1 -0
- package/configurator/_app/immutable/chunks/{D-Dn-KSg.js → D2c6aJfp.js} +1 -1
- package/configurator/_app/immutable/chunks/DYN93pDG.js +3 -0
- package/configurator/_app/immutable/chunks/Gpwjp1Zy.js +1 -0
- package/configurator/_app/immutable/chunks/Xsk8EJFw.js +228 -0
- package/configurator/_app/immutable/entry/{app.B4WSrzpv.js → app.fguqgOLS.js} +2 -2
- package/configurator/_app/immutable/entry/start.Zr9z0Xq-.js +1 -0
- package/configurator/_app/immutable/nodes/0.BZKTPwId.js +58 -0
- package/configurator/_app/immutable/nodes/{1.C9w5e9w0.js → 1.Dmvv4SAG.js} +1 -1
- package/configurator/_app/immutable/nodes/2.BcY5smXV.js +30 -0
- package/configurator/_app/immutable/nodes/{3.BaHVKKga.js → 3.DRC-4F3Q.js} +8 -8
- package/configurator/_app/version.json +1 -1
- package/configurator/index.html +6 -6
- package/configurator/sidebar.html +6 -6
- package/index.cjs +30 -6
- package/index.d.ts +4233 -333
- package/index.js +30 -6
- package/package.json +1 -1
- package/configurator/_app/immutable/chunks/BWd1KRA2.js +0 -67
- package/configurator/_app/immutable/chunks/CBFTM35p.js +0 -367
- package/configurator/_app/immutable/chunks/CP9-4jcs.js +0 -1
- package/configurator/_app/immutable/chunks/ChcTJagy.js +0 -3
- package/configurator/_app/immutable/chunks/LjIoA1Wm.js +0 -1
- package/configurator/_app/immutable/entry/start.GK6q9XMZ.js +0 -1
- package/configurator/_app/immutable/nodes/0.B7euNXzq.js +0 -58
- package/configurator/_app/immutable/nodes/2.CWOgfthk.js +0 -28
package/config/index.js
CHANGED
|
@@ -4017,7 +4017,7 @@ var componentSchema = exports_external.object({
|
|
|
4017
4017
|
focus: componentSchemaBase.optional()
|
|
4018
4018
|
}).and(componentSchemaBase);
|
|
4019
4019
|
var fontSchema = exports_external.object({
|
|
4020
|
-
family: exports_external.string()
|
|
4020
|
+
family: exports_external.string().optional()
|
|
4021
4021
|
});
|
|
4022
4022
|
var svgsSchema = exports_external.record(exports_external.enum([
|
|
4023
4023
|
"predefinedQuestion",
|
|
@@ -4055,14 +4055,30 @@ var svgsSchema = exports_external.record(exports_external.enum([
|
|
|
4055
4055
|
"darkMode"
|
|
4056
4056
|
]), exports_external.string());
|
|
4057
4057
|
var tokensSchema = exports_external.object({
|
|
4058
|
-
font: fontSchema,
|
|
4058
|
+
font: fontSchema.optional(),
|
|
4059
4059
|
colors: exports_external.object({
|
|
4060
4060
|
brand: colorSchema,
|
|
4061
4061
|
accent: colorSchema.optional(),
|
|
4062
4062
|
highlight: colorSchema,
|
|
4063
4063
|
grey: colorSchema
|
|
4064
4064
|
}),
|
|
4065
|
-
base: exports_external.object({
|
|
4065
|
+
base: exports_external.object({
|
|
4066
|
+
fontSizeXs: sizeDefinitionSchema.optional(),
|
|
4067
|
+
fontSizeSm: sizeDefinitionSchema.optional(),
|
|
4068
|
+
fontSizeBody: sizeDefinitionSchema.optional(),
|
|
4069
|
+
fontSizeH3: sizeDefinitionSchema.optional(),
|
|
4070
|
+
fontSizeH2: sizeDefinitionSchema.optional(),
|
|
4071
|
+
fontSizeH1: sizeDefinitionSchema.optional(),
|
|
4072
|
+
fontWeightNormal: exports_external.string().optional(),
|
|
4073
|
+
fontWeightBold: exports_external.string().optional(),
|
|
4074
|
+
fontWeightTitle: exports_external.string().optional(),
|
|
4075
|
+
lineHeightDefault: exports_external.string().optional(),
|
|
4076
|
+
lineHeightSnug: exports_external.string().optional(),
|
|
4077
|
+
lineHeightTight: exports_external.string().optional(),
|
|
4078
|
+
borderRadius: sizeDefinitionSchema.optional(),
|
|
4079
|
+
lineColor: exports_external.string().optional(),
|
|
4080
|
+
boxShadow: exports_external.string().optional()
|
|
4081
|
+
}),
|
|
4066
4082
|
components: exports_external.record(exports_external.string(), componentSchema),
|
|
4067
4083
|
svgs: svgsSchema
|
|
4068
4084
|
});
|
|
@@ -4135,11 +4151,19 @@ var themeSchema2 = objectType({
|
|
|
4135
4151
|
}).optional()
|
|
4136
4152
|
}).optional(),
|
|
4137
4153
|
font: objectType({
|
|
4138
|
-
size: sizeDefinitionClampSchema.optional(),
|
|
4139
4154
|
family: stringType().optional(),
|
|
4140
|
-
urls: arrayType(stringType()).optional()
|
|
4155
|
+
urls: arrayType(stringType()).optional(),
|
|
4156
|
+
sizeXs: sizeDefinitionSchema.optional(),
|
|
4157
|
+
sizeSm: sizeDefinitionSchema.optional(),
|
|
4158
|
+
sizeBody: sizeDefinitionSchema.optional(),
|
|
4159
|
+
sizeH3: sizeDefinitionSchema.optional(),
|
|
4160
|
+
sizeH2: sizeDefinitionSchema.optional(),
|
|
4161
|
+
sizeH1: sizeDefinitionSchema.optional(),
|
|
4162
|
+
weightNormal: stringType().optional(),
|
|
4163
|
+
weightBold: stringType().optional(),
|
|
4164
|
+
weightTitle: stringType().optional()
|
|
4141
4165
|
}).optional(),
|
|
4142
|
-
borderRadius:
|
|
4166
|
+
borderRadius: sizeDefinitionSchema.optional(),
|
|
4143
4167
|
fineGrained: fineGrainedThemeSchema.optional()
|
|
4144
4168
|
});
|
|
4145
4169
|
|
package/configurator/_app/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const env={"PUBLIC_API_URL":"https://liipgpt.api.dev.genai.liip.ch/liipgpt","PUBLIC_CI_COMMIT_TAG":"2.
|
|
1
|
+
export const env={"PUBLIC_API_URL":"https://liipgpt.api.dev.genai.liip.ch/liipgpt","PUBLIC_CI_COMMIT_TAG":"2.1.1"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./NZTpNUN0.js";import{p as J,I as b,a as d,J as K,b as n,d as L,v as k,G as x,K as N,F as q,L as O,M as P,c as R,N as T,f as B,s as E,t as U,g as j,O as S,e as w,r as z}from"./TMezqz9A.js";import{i as F}from"./Cgm2UlUC.js";import{a as A}from"./
|
|
1
|
+
import"./NZTpNUN0.js";import{p as J,I as b,a as d,J as K,b as n,d as L,v as k,G as x,K as N,F as q,L as O,M as P,c as R,N as T,f as B,s as E,t as U,g as j,O as S,e as w,r as z}from"./TMezqz9A.js";import{i as F}from"./Cgm2UlUC.js";import{a as A}from"./B_uz94sO.js";import{p as M}from"./CfQtRUjK.js";var D=(u,a)=>a()(),H=B('<div class="chat-app__container"><div class="error-message svelte-4thrqu">Server is unreachable, please try later... <button class="error-message__retry-button svelte-4thrqu">Retry</button></div></div>'),Q=B(" <!>",1);const V={hash:"svelte-4thrqu",code:`
|
|
2
2
|
/* These styles are inline, because at this point theme loading has failed. */.error-message.svelte-4thrqu {display:table;z-index:1000;width:auto;margin:2rem auto;padding:2rem;border-radius:2px;background:white;color:oklch(27.8% 0.033 256.848);font-family:-apple-system,
|
|
3
3
|
BlinkMacSystemFont,
|
|
4
4
|
avenir next,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./NZTpNUN0.js";import{p as k,F as B,G as d,H as m,d as T,v as r,c as A}from"./TMezqz9A.js";import{p as o,s as R}from"./CfQtRUjK.js";import{C as U}from"./
|
|
1
|
+
import"./NZTpNUN0.js";import{p as k,F as B,G as d,H as m,d as T,v as r,c as A}from"./TMezqz9A.js";import{p as o,s as R}from"./CfQtRUjK.js";import{C as U}from"./CvYGSlFU.js";import{E as _}from"./7tLp1xC_.js";function E(S,t){k(t,!0);let a=o(t,"forceTheme",7),l=o(t,"apiUrl",7),i=o(t,"apiKey",7),u=o(t,"speechRecognitionApiKey",7),n=o(t,"lang",7),y=o(t,"features",7),s=o(t,"loaderBackground",7),g=o(t,"loaderColor",7),f=o(t,"flyout",7),c=o(t,"flyoutStyle",7),p=o(t,"flyoutClass",7),h=m(()=>({forceTheme:a(),apiUrl:l(),apiKey:i(),speechRecognitionApiKey:u(),lang:n(),features:y(),loaderBackground:s(),loaderColor:g(),flyout:f(),flyoutStyle:c(),flyoutClass:p()}));{const e=(b,K=B)=>{U(b,R({host:t.$$host,get onError(){return K()}},()=>d(h)))};let C=m(()=>d(h).flyout??!1);_(S,{get silent(){return d(C)},body:e,$$slots:{body:!0}})}return T({get forceTheme(){return a()},set forceTheme(e){a(e),r()},get apiUrl(){return l()},set apiUrl(e){l(e),r()},get apiKey(){return i()},set apiKey(e){i(e),r()},get speechRecognitionApiKey(){return u()},set speechRecognitionApiKey(e){u(e),r()},get lang(){return n()},set lang(e){n(e),r()},get features(){return y()},set features(e){y(e),r()},get loaderBackground(){return s()},set loaderBackground(e){s(e),r()},get loaderColor(){return g()},set loaderColor(e){g(e),r()},get flyout(){return f()},set flyout(e){f(e),r()},get flyoutStyle(){return c()},set flyoutStyle(e){c(e),r()},get flyoutClass(){return p()},set flyoutClass(e){p(e),r()}})}customElements.define("liipgpt-chat",A(E,{forceTheme:{attribute:"force-theme",type:"String"},apiUrl:{attribute:"api-url",type:"String"},apiKey:{attribute:"api-key",type:"String"},speechRecognitionApiKey:{attribute:"speech-recognition-api-key",type:"String"},lang:{attribute:"lang",type:"String"},features:{attribute:"features",type:"String"},loaderBackground:{attribute:"loader-background",type:"String"},loaderColor:{attribute:"loader-color",type:"String"},flyout:{attribute:"flyout",type:"Boolean"},flyoutStyle:{attribute:"flyout-style",type:"String"},flyoutClass:{attribute:"flyout-class",type:"String"}},[],[],!0));export{E as LiipGPTChat};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as d,ab as m,u,o as b,ay as i,az as h,G as g,aA as k,W as v,aB as y}from"./TMezqz9A.js";import{s as x,p as c}from"./
|
|
1
|
+
import{h as d,ab as m,u,o as b,ay as i,az as h,G as g,aA as k,W as v,aB as y}from"./TMezqz9A.js";import{s as x,p as c}from"./DYN93pDG.js";function B(r=!1){const t=d,e=t.l.u;if(!e)return;let o=()=>k(t.s);if(r){let a=0,s={};const _=v(()=>{let l=!1;const f=t.s;for(const n in f)f[n]!==s[n]&&(s[n]=f[n],l=!0);return l&&a++,a});o=()=>g(_)}e.b.length&&m(()=>{p(t,o),i(e.b)}),u(()=>{const a=b(()=>e.m.map(h));return()=>{for(const s of a)typeof s=="function"&&s()}}),e.a.length&&u(()=>{p(t,o),i(e.a)})}function p(r,t){if(r.l.s)for(const e of r.l.s)g(e);t()}y();const $={get error(){return c.error},get status(){return c.status},get url(){return c.url}};x.updated.check;const G=$;export{B as i,G as p};
|