@liip/liipgpt 3.5.8 → 3.6.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/README.md +26 -3
- package/button/liipgpt-button.iife.js +28 -28
- package/chat/liipgpt-chat.iife.js +22 -22
- package/config/index.cjs +15 -5
- package/config/index.d.ts +18 -0
- package/config/index.js +15 -5
- package/configurator/_app/env.js +1 -1
- package/configurator/_app/immutable/chunks/B5M3tt1h.js +70 -0
- package/configurator/_app/immutable/chunks/BF-6zfFW.js +16 -0
- package/configurator/_app/immutable/chunks/BLUZvgID.js +2 -0
- package/configurator/_app/immutable/chunks/BdBqI4to.js +1 -0
- package/configurator/_app/immutable/chunks/BgnzWwt-.js +1 -0
- package/configurator/_app/immutable/chunks/BmUm-Ak4.js +15 -0
- package/configurator/_app/immutable/chunks/BpIo1_hS.js +61 -0
- package/configurator/_app/immutable/chunks/C00ruT0L.js +3 -0
- package/configurator/_app/immutable/chunks/CX0dfddQ.js +1 -0
- package/configurator/_app/immutable/chunks/CibALFW0.js +1 -0
- package/configurator/_app/immutable/chunks/CnzkQxWo.js +1 -0
- package/configurator/_app/immutable/chunks/CqCdl07t.js +1 -0
- package/configurator/_app/immutable/chunks/Ct405RO9.js +1 -0
- package/configurator/_app/immutable/chunks/CwB4sTdn.js +5 -0
- package/configurator/_app/immutable/chunks/{CTfJzKVa.js → DABlUYYh.js} +1 -1
- package/configurator/_app/immutable/chunks/DFBUyDYh.js +29 -0
- package/configurator/_app/immutable/chunks/DFfTn9KD.js +1 -0
- package/configurator/_app/immutable/chunks/DV91TmsB.js +293 -0
- package/configurator/_app/immutable/chunks/DVeOoWpz.js +1 -0
- package/configurator/_app/immutable/chunks/{CTzwhpj8.js → DzLbPreo.js} +1 -1
- package/configurator/_app/immutable/chunks/MRyhzcyW.js +39 -0
- package/configurator/_app/immutable/chunks/dq9OZHm7.js +143 -0
- package/configurator/_app/immutable/chunks/tFLMI64R.js +1 -0
- package/configurator/_app/immutable/chunks/vVBttUZh.js +1 -0
- package/configurator/_app/immutable/entry/app.BPWZQddg.js +2 -0
- package/configurator/_app/immutable/entry/start.CpjUPnYE.js +1 -0
- package/configurator/_app/immutable/nodes/0.DxuzEfw5.js +157 -0
- package/configurator/_app/immutable/nodes/1.B-APb2B8.js +1 -0
- package/configurator/_app/immutable/nodes/{2.CLnAd2XI.js → 2.CfEhZdph.js} +12 -11
- package/configurator/_app/immutable/nodes/3.Bn5RTTEX.js +952 -0
- package/configurator/_app/version.json +1 -1
- package/configurator/index.html +11 -10
- package/configurator/sidebar.html +11 -10
- package/index.cjs +19 -8
- package/index.d.ts +39 -2
- package/index.js +19 -8
- package/package.json +6 -1
- package/search-summary/liipgpt-search-summary.iife.js +421 -0
- package/configurator/_app/immutable/chunks/BdP-K7KO.js +0 -3
- package/configurator/_app/immutable/chunks/BxKMs1I8.js +0 -1
- package/configurator/_app/immutable/chunks/CWcBN6O4.js +0 -1
- package/configurator/_app/immutable/chunks/CZtIlAOR.js +0 -1
- package/configurator/_app/immutable/chunks/CaZV0epm.js +0 -1
- package/configurator/_app/immutable/chunks/CabPM0Ap.js +0 -331
- package/configurator/_app/immutable/chunks/D-Grdat-.js +0 -89
- package/configurator/_app/immutable/chunks/D4_PZTQK.js +0 -1
- package/configurator/_app/immutable/chunks/DOSn06Ce.js +0 -16
- package/configurator/_app/immutable/chunks/DUJlwB59.js +0 -15
- package/configurator/_app/immutable/chunks/IgoyT4Lq.js +0 -143
- package/configurator/_app/immutable/chunks/Nv9VA5OP.js +0 -1
- package/configurator/_app/immutable/entry/app.BAf4MomM.js +0 -2
- package/configurator/_app/immutable/entry/start.BcnC7b6j.js +0 -1
- package/configurator/_app/immutable/nodes/0.aATc5D3u.js +0 -157
- package/configurator/_app/immutable/nodes/1.DAZ8_HBw.js +0 -1
- package/configurator/_app/immutable/nodes/3.gGHjwkkz.js +0 -954
- /package/configurator/_app/immutable/chunks/{CNhGYG1q.js → Bo0U8J3e.js} +0 -0
- /package/configurator/_app/immutable/chunks/{D1hYfEew.js → CFKVnMbq.js} +0 -0
- /package/configurator/_app/immutable/chunks/{C8mohMXa.js → DjVmpym-.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1780471773329"}
|
package/configurator/index.html
CHANGED
|
@@ -4,20 +4,21 @@
|
|
|
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/
|
|
9
|
-
<link href="./_app/immutable/chunks/
|
|
10
|
-
<link href="./_app/immutable/chunks/
|
|
11
|
-
<link href="./_app/immutable/
|
|
12
|
-
<link href="./_app/immutable/
|
|
13
|
-
<link href="./_app/immutable/chunks/
|
|
7
|
+
<link href="./_app/immutable/entry/start.CpjUPnYE.js" rel="modulepreload">
|
|
8
|
+
<link href="./_app/immutable/chunks/DABlUYYh.js" rel="modulepreload">
|
|
9
|
+
<link href="./_app/immutable/chunks/C00ruT0L.js" rel="modulepreload">
|
|
10
|
+
<link href="./_app/immutable/chunks/CibALFW0.js" rel="modulepreload">
|
|
11
|
+
<link href="./_app/immutable/chunks/Bo0U8J3e.js" rel="modulepreload">
|
|
12
|
+
<link href="./_app/immutable/entry/app.BPWZQddg.js" rel="modulepreload">
|
|
13
|
+
<link href="./_app/immutable/chunks/DjVmpym-.js" rel="modulepreload">
|
|
14
|
+
<link href="./_app/immutable/chunks/CFKVnMbq.js" rel="modulepreload">
|
|
14
15
|
|
|
15
16
|
</head>
|
|
16
17
|
<body data-sveltekit-preload-data="hover">
|
|
17
18
|
<div style="display: contents">
|
|
18
19
|
<script>
|
|
19
20
|
{
|
|
20
|
-
|
|
21
|
+
__sveltekit_ueip3m = {
|
|
21
22
|
base: new URL(".", location).pathname.slice(0, -1),
|
|
22
23
|
assets: "/configurator"
|
|
23
24
|
};
|
|
@@ -25,8 +26,8 @@
|
|
|
25
26
|
const element = document.currentScript.parentElement;
|
|
26
27
|
|
|
27
28
|
Promise.all([
|
|
28
|
-
import("./_app/immutable/entry/start.
|
|
29
|
-
import("./_app/immutable/entry/app.
|
|
29
|
+
import("./_app/immutable/entry/start.CpjUPnYE.js"),
|
|
30
|
+
import("./_app/immutable/entry/app.BPWZQddg.js")
|
|
30
31
|
]).then(([kit, app]) => {
|
|
31
32
|
kit.start(app, element);
|
|
32
33
|
});
|
|
@@ -4,20 +4,21 @@
|
|
|
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/
|
|
9
|
-
<link href="./_app/immutable/chunks/
|
|
10
|
-
<link href="./_app/immutable/chunks/
|
|
11
|
-
<link href="./_app/immutable/
|
|
12
|
-
<link href="./_app/immutable/
|
|
13
|
-
<link href="./_app/immutable/chunks/
|
|
7
|
+
<link href="./_app/immutable/entry/start.CpjUPnYE.js" rel="modulepreload">
|
|
8
|
+
<link href="./_app/immutable/chunks/DABlUYYh.js" rel="modulepreload">
|
|
9
|
+
<link href="./_app/immutable/chunks/C00ruT0L.js" rel="modulepreload">
|
|
10
|
+
<link href="./_app/immutable/chunks/CibALFW0.js" rel="modulepreload">
|
|
11
|
+
<link href="./_app/immutable/chunks/Bo0U8J3e.js" rel="modulepreload">
|
|
12
|
+
<link href="./_app/immutable/entry/app.BPWZQddg.js" rel="modulepreload">
|
|
13
|
+
<link href="./_app/immutable/chunks/DjVmpym-.js" rel="modulepreload">
|
|
14
|
+
<link href="./_app/immutable/chunks/CFKVnMbq.js" rel="modulepreload">
|
|
14
15
|
|
|
15
16
|
</head>
|
|
16
17
|
<body data-sveltekit-preload-data="hover">
|
|
17
18
|
<div style="display: contents">
|
|
18
19
|
<script>
|
|
19
20
|
{
|
|
20
|
-
|
|
21
|
+
__sveltekit_ueip3m = {
|
|
21
22
|
base: new URL(".", location).pathname.slice(0, -1),
|
|
22
23
|
assets: "/configurator"
|
|
23
24
|
};
|
|
@@ -25,8 +26,8 @@
|
|
|
25
26
|
const element = document.currentScript.parentElement;
|
|
26
27
|
|
|
27
28
|
Promise.all([
|
|
28
|
-
import("./_app/immutable/entry/start.
|
|
29
|
-
import("./_app/immutable/entry/app.
|
|
29
|
+
import("./_app/immutable/entry/start.CpjUPnYE.js"),
|
|
30
|
+
import("./_app/immutable/entry/app.BPWZQddg.js")
|
|
30
31
|
]).then(([kit, app]) => {
|
|
31
32
|
kit.start(app, element);
|
|
32
33
|
});
|
package/index.cjs
CHANGED
|
@@ -19740,13 +19740,23 @@ var translationSchema = exports_external.object({
|
|
|
19740
19740
|
selectNone: exports_external.string(),
|
|
19741
19741
|
resetToDefaults: exports_external.string(),
|
|
19742
19742
|
messageTooLong: exports_external.string(),
|
|
19743
|
-
changeTopic: exports_external.string()
|
|
19743
|
+
changeTopic: exports_external.string(),
|
|
19744
|
+
searchSummaryExpand: exports_external.string(),
|
|
19745
|
+
searchSummaryCollapse: exports_external.string(),
|
|
19746
|
+
searchSummaryOptInDefault: exports_external.string(),
|
|
19747
|
+
searchSummaryOptOut: exports_external.string(),
|
|
19748
|
+
searchSummaryError: exports_external.string(),
|
|
19749
|
+
searchSummaryDisclaimer: exports_external.string().optional(),
|
|
19750
|
+
ariaSearchSummaryExpand: exports_external.string(),
|
|
19751
|
+
ariaSearchSummaryCollapse: exports_external.string(),
|
|
19752
|
+
ariaSearchSummaryOptOut: exports_external.string()
|
|
19744
19753
|
});
|
|
19745
19754
|
var allLanguages = ["en", "de", "fr", "it"];
|
|
19746
19755
|
var languagesSchema = exports_external.enum(allLanguages);
|
|
19747
|
-
var
|
|
19756
|
+
var translationOverrideSchema = translationSchema.partial().extend({
|
|
19748
19757
|
selectors: exports_external.record(exports_external.string(), chatSelectorTranslationSchema).optional()
|
|
19749
|
-
})
|
|
19758
|
+
});
|
|
19759
|
+
var translationsPartialSchema = exports_external.partialRecord(languagesSchema, translationOverrideSchema);
|
|
19750
19760
|
var errorTranslationsSchema = exports_external.record(languagesSchema, errorTranslationSchema);
|
|
19751
19761
|
var piiTranslationsSchema = exports_external.record(languagesSchema, piiTranslationSchema);
|
|
19752
19762
|
|
|
@@ -20135,7 +20145,7 @@ var menuItemSchema = exports_external.object({
|
|
|
20135
20145
|
target: exports_external.enum(["_blank", "_self"]).optional()
|
|
20136
20146
|
});
|
|
20137
20147
|
var predefinedQuestionSchema = exports_external.object({
|
|
20138
|
-
id: exports_external.string(),
|
|
20148
|
+
id: exports_external.string().optional(),
|
|
20139
20149
|
label: exports_external.string().nullable(),
|
|
20140
20150
|
question: exports_external.string(),
|
|
20141
20151
|
switchQuestionId: exports_external.string().optional()
|
|
@@ -20201,7 +20211,7 @@ var completeChatConfigSchema = exports_external.object({
|
|
|
20201
20211
|
supportedLanguages: exports_external.array(languagesSchema),
|
|
20202
20212
|
classification: classificationConfigSchema.optional(),
|
|
20203
20213
|
theme: themeSchema2,
|
|
20204
|
-
translations:
|
|
20214
|
+
translations: translationsPartialSchema,
|
|
20205
20215
|
buttonHref: exports_external.string().optional(),
|
|
20206
20216
|
addQueryToUrlParams: exports_external.boolean().optional(),
|
|
20207
20217
|
addRetrievalQuestionToUrlParams: exports_external.boolean().optional(),
|
|
@@ -20333,7 +20343,7 @@ class ServerStorage {
|
|
|
20333
20343
|
var agnosticStorage = globalThis.localStorage ?? new ServerStorage;
|
|
20334
20344
|
|
|
20335
20345
|
// src/lib/client/api/get-user-data.ts
|
|
20336
|
-
var getUserData = async (restClient) => {
|
|
20346
|
+
var getUserData = async (restClient, startParameters) => {
|
|
20337
20347
|
try {
|
|
20338
20348
|
const userId = agnosticStorage.getItem("liipgpt:uID") || agnosticStorage.getItem("uID");
|
|
20339
20349
|
const init = {
|
|
@@ -20344,7 +20354,8 @@ var getUserData = async (restClient) => {
|
|
|
20344
20354
|
},
|
|
20345
20355
|
body: JSON.stringify({
|
|
20346
20356
|
referrer: globalThis?.document?.referrer || null,
|
|
20347
|
-
uID: userId
|
|
20357
|
+
uID: userId,
|
|
20358
|
+
...startParameters ? { startParameters } : {}
|
|
20348
20359
|
})
|
|
20349
20360
|
};
|
|
20350
20361
|
const response = await restClient.fetchData("/login", userDataResponseSchema, {}, init).catch((e) => {
|
|
@@ -20983,7 +20994,7 @@ class LiipGPTClientPrimitive {
|
|
|
20983
20994
|
const restClient = new RestClient(restOptions);
|
|
20984
20995
|
this.internalData = {
|
|
20985
20996
|
restClient,
|
|
20986
|
-
metadata: getUserData(restClient),
|
|
20997
|
+
metadata: getUserData(restClient, options2.startParameters),
|
|
20987
20998
|
searchResponseMap: new Map,
|
|
20988
20999
|
chatResponseMap: new Map,
|
|
20989
21000
|
conversationMap: new Map
|
package/index.d.ts
CHANGED
|
@@ -5055,7 +5055,7 @@ export declare const menuItemSchema: z.ZodObject<{
|
|
|
5055
5055
|
}>>;
|
|
5056
5056
|
}, z.core.$strip>;
|
|
5057
5057
|
export declare const predefinedQuestionSchema: z.ZodObject<{
|
|
5058
|
-
id: z.ZodString
|
|
5058
|
+
id: z.ZodOptional<z.ZodString>;
|
|
5059
5059
|
label: z.ZodNullable<z.ZodString>;
|
|
5060
5060
|
question: z.ZodString;
|
|
5061
5061
|
switchQuestionId: z.ZodOptional<z.ZodString>;
|
|
@@ -5096,7 +5096,7 @@ export declare const classificationResponseSchema: z.ZodObject<{
|
|
|
5096
5096
|
}, z.core.$strip>;
|
|
5097
5097
|
export declare const predefinedQuestionsResponseSchema: z.ZodObject<{
|
|
5098
5098
|
predefinedQuestions: z.ZodArray<z.ZodObject<{
|
|
5099
|
-
id: z.ZodString
|
|
5099
|
+
id: z.ZodOptional<z.ZodString>;
|
|
5100
5100
|
label: z.ZodNullable<z.ZodString>;
|
|
5101
5101
|
question: z.ZodString;
|
|
5102
5102
|
switchQuestionId: z.ZodOptional<z.ZodString>;
|
|
@@ -5234,6 +5234,15 @@ export declare const fullTranslations: z.ZodRecord<z.ZodEnum<{
|
|
|
5234
5234
|
resetToDefaults: z.ZodString;
|
|
5235
5235
|
messageTooLong: z.ZodString;
|
|
5236
5236
|
changeTopic: z.ZodString;
|
|
5237
|
+
searchSummaryExpand: z.ZodString;
|
|
5238
|
+
searchSummaryCollapse: z.ZodString;
|
|
5239
|
+
searchSummaryOptInDefault: z.ZodString;
|
|
5240
|
+
searchSummaryOptOut: z.ZodString;
|
|
5241
|
+
searchSummaryError: z.ZodString;
|
|
5242
|
+
searchSummaryDisclaimer: z.ZodOptional<z.ZodString>;
|
|
5243
|
+
ariaSearchSummaryExpand: z.ZodString;
|
|
5244
|
+
ariaSearchSummaryCollapse: z.ZodString;
|
|
5245
|
+
ariaSearchSummaryOptOut: z.ZodString;
|
|
5237
5246
|
}, z.core.$strip>>;
|
|
5238
5247
|
export declare const selectedTopicSchema: z.ZodObject<{
|
|
5239
5248
|
label: z.ZodString;
|
|
@@ -6031,6 +6040,15 @@ export declare const completeChatConfigSchema: z.ZodObject<{
|
|
|
6031
6040
|
resetToDefaults: z.ZodOptional<z.ZodString>;
|
|
6032
6041
|
messageTooLong: z.ZodOptional<z.ZodString>;
|
|
6033
6042
|
changeTopic: z.ZodOptional<z.ZodString>;
|
|
6043
|
+
searchSummaryExpand: z.ZodOptional<z.ZodString>;
|
|
6044
|
+
searchSummaryCollapse: z.ZodOptional<z.ZodString>;
|
|
6045
|
+
searchSummaryOptInDefault: z.ZodOptional<z.ZodString>;
|
|
6046
|
+
searchSummaryOptOut: z.ZodOptional<z.ZodString>;
|
|
6047
|
+
searchSummaryError: z.ZodOptional<z.ZodString>;
|
|
6048
|
+
searchSummaryDisclaimer: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
6049
|
+
ariaSearchSummaryExpand: z.ZodOptional<z.ZodString>;
|
|
6050
|
+
ariaSearchSummaryCollapse: z.ZodOptional<z.ZodString>;
|
|
6051
|
+
ariaSearchSummaryOptOut: z.ZodOptional<z.ZodString>;
|
|
6034
6052
|
selectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6035
6053
|
name: z.ZodString;
|
|
6036
6054
|
namePlural: z.ZodOptional<z.ZodString>;
|
|
@@ -8603,6 +8621,15 @@ export declare const chatConfigSchema: z.ZodObject<{
|
|
|
8603
8621
|
resetToDefaults: z.ZodOptional<z.ZodString>;
|
|
8604
8622
|
messageTooLong: z.ZodOptional<z.ZodString>;
|
|
8605
8623
|
changeTopic: z.ZodOptional<z.ZodString>;
|
|
8624
|
+
searchSummaryExpand: z.ZodOptional<z.ZodString>;
|
|
8625
|
+
searchSummaryCollapse: z.ZodOptional<z.ZodString>;
|
|
8626
|
+
searchSummaryOptInDefault: z.ZodOptional<z.ZodString>;
|
|
8627
|
+
searchSummaryOptOut: z.ZodOptional<z.ZodString>;
|
|
8628
|
+
searchSummaryError: z.ZodOptional<z.ZodString>;
|
|
8629
|
+
searchSummaryDisclaimer: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
8630
|
+
ariaSearchSummaryExpand: z.ZodOptional<z.ZodString>;
|
|
8631
|
+
ariaSearchSummaryCollapse: z.ZodOptional<z.ZodString>;
|
|
8632
|
+
ariaSearchSummaryOptOut: z.ZodOptional<z.ZodString>;
|
|
8606
8633
|
selectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
8607
8634
|
name: z.ZodString;
|
|
8608
8635
|
namePlural: z.ZodOptional<z.ZodString>;
|
|
@@ -11175,6 +11202,15 @@ export declare const chatConfigSchemaWithLegacyThemeName: z.ZodIntersection<z.Zo
|
|
|
11175
11202
|
resetToDefaults: z.ZodOptional<z.ZodString>;
|
|
11176
11203
|
messageTooLong: z.ZodOptional<z.ZodString>;
|
|
11177
11204
|
changeTopic: z.ZodOptional<z.ZodString>;
|
|
11205
|
+
searchSummaryExpand: z.ZodOptional<z.ZodString>;
|
|
11206
|
+
searchSummaryCollapse: z.ZodOptional<z.ZodString>;
|
|
11207
|
+
searchSummaryOptInDefault: z.ZodOptional<z.ZodString>;
|
|
11208
|
+
searchSummaryOptOut: z.ZodOptional<z.ZodString>;
|
|
11209
|
+
searchSummaryError: z.ZodOptional<z.ZodString>;
|
|
11210
|
+
searchSummaryDisclaimer: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
11211
|
+
ariaSearchSummaryExpand: z.ZodOptional<z.ZodString>;
|
|
11212
|
+
ariaSearchSummaryCollapse: z.ZodOptional<z.ZodString>;
|
|
11213
|
+
ariaSearchSummaryOptOut: z.ZodOptional<z.ZodString>;
|
|
11178
11214
|
selectors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
11179
11215
|
name: z.ZodString;
|
|
11180
11216
|
namePlural: z.ZodOptional<z.ZodString>;
|
|
@@ -13053,6 +13089,7 @@ export type LiipGPTClientOptions = {
|
|
|
13053
13089
|
speechRecognitionApiKey?: string;
|
|
13054
13090
|
strict?: boolean;
|
|
13055
13091
|
EventSource?: Constructor$1<EventSource>;
|
|
13092
|
+
startParameters?: Record<string, unknown>;
|
|
13056
13093
|
};
|
|
13057
13094
|
export type Language = "en" | "de" | "fr" | "it";
|
|
13058
13095
|
export type ReferenceData = {
|
package/index.js
CHANGED
|
@@ -19665,13 +19665,23 @@ var translationSchema = exports_external.object({
|
|
|
19665
19665
|
selectNone: exports_external.string(),
|
|
19666
19666
|
resetToDefaults: exports_external.string(),
|
|
19667
19667
|
messageTooLong: exports_external.string(),
|
|
19668
|
-
changeTopic: exports_external.string()
|
|
19668
|
+
changeTopic: exports_external.string(),
|
|
19669
|
+
searchSummaryExpand: exports_external.string(),
|
|
19670
|
+
searchSummaryCollapse: exports_external.string(),
|
|
19671
|
+
searchSummaryOptInDefault: exports_external.string(),
|
|
19672
|
+
searchSummaryOptOut: exports_external.string(),
|
|
19673
|
+
searchSummaryError: exports_external.string(),
|
|
19674
|
+
searchSummaryDisclaimer: exports_external.string().optional(),
|
|
19675
|
+
ariaSearchSummaryExpand: exports_external.string(),
|
|
19676
|
+
ariaSearchSummaryCollapse: exports_external.string(),
|
|
19677
|
+
ariaSearchSummaryOptOut: exports_external.string()
|
|
19669
19678
|
});
|
|
19670
19679
|
var allLanguages = ["en", "de", "fr", "it"];
|
|
19671
19680
|
var languagesSchema = exports_external.enum(allLanguages);
|
|
19672
|
-
var
|
|
19681
|
+
var translationOverrideSchema = translationSchema.partial().extend({
|
|
19673
19682
|
selectors: exports_external.record(exports_external.string(), chatSelectorTranslationSchema).optional()
|
|
19674
|
-
})
|
|
19683
|
+
});
|
|
19684
|
+
var translationsPartialSchema = exports_external.partialRecord(languagesSchema, translationOverrideSchema);
|
|
19675
19685
|
var errorTranslationsSchema = exports_external.record(languagesSchema, errorTranslationSchema);
|
|
19676
19686
|
var piiTranslationsSchema = exports_external.record(languagesSchema, piiTranslationSchema);
|
|
19677
19687
|
|
|
@@ -20060,7 +20070,7 @@ var menuItemSchema = exports_external.object({
|
|
|
20060
20070
|
target: exports_external.enum(["_blank", "_self"]).optional()
|
|
20061
20071
|
});
|
|
20062
20072
|
var predefinedQuestionSchema = exports_external.object({
|
|
20063
|
-
id: exports_external.string(),
|
|
20073
|
+
id: exports_external.string().optional(),
|
|
20064
20074
|
label: exports_external.string().nullable(),
|
|
20065
20075
|
question: exports_external.string(),
|
|
20066
20076
|
switchQuestionId: exports_external.string().optional()
|
|
@@ -20126,7 +20136,7 @@ var completeChatConfigSchema = exports_external.object({
|
|
|
20126
20136
|
supportedLanguages: exports_external.array(languagesSchema),
|
|
20127
20137
|
classification: classificationConfigSchema.optional(),
|
|
20128
20138
|
theme: themeSchema2,
|
|
20129
|
-
translations:
|
|
20139
|
+
translations: translationsPartialSchema,
|
|
20130
20140
|
buttonHref: exports_external.string().optional(),
|
|
20131
20141
|
addQueryToUrlParams: exports_external.boolean().optional(),
|
|
20132
20142
|
addRetrievalQuestionToUrlParams: exports_external.boolean().optional(),
|
|
@@ -20258,7 +20268,7 @@ class ServerStorage {
|
|
|
20258
20268
|
var agnosticStorage = globalThis.localStorage ?? new ServerStorage;
|
|
20259
20269
|
|
|
20260
20270
|
// src/lib/client/api/get-user-data.ts
|
|
20261
|
-
var getUserData = async (restClient) => {
|
|
20271
|
+
var getUserData = async (restClient, startParameters) => {
|
|
20262
20272
|
try {
|
|
20263
20273
|
const userId = agnosticStorage.getItem("liipgpt:uID") || agnosticStorage.getItem("uID");
|
|
20264
20274
|
const init = {
|
|
@@ -20269,7 +20279,8 @@ var getUserData = async (restClient) => {
|
|
|
20269
20279
|
},
|
|
20270
20280
|
body: JSON.stringify({
|
|
20271
20281
|
referrer: globalThis?.document?.referrer || null,
|
|
20272
|
-
uID: userId
|
|
20282
|
+
uID: userId,
|
|
20283
|
+
...startParameters ? { startParameters } : {}
|
|
20273
20284
|
})
|
|
20274
20285
|
};
|
|
20275
20286
|
const response = await restClient.fetchData("/login", userDataResponseSchema, {}, init).catch((e) => {
|
|
@@ -20908,7 +20919,7 @@ class LiipGPTClientPrimitive {
|
|
|
20908
20919
|
const restClient = new RestClient(restOptions);
|
|
20909
20920
|
this.internalData = {
|
|
20910
20921
|
restClient,
|
|
20911
|
-
metadata: getUserData(restClient),
|
|
20922
|
+
metadata: getUserData(restClient, options2.startParameters),
|
|
20912
20923
|
searchResponseMap: new Map,
|
|
20913
20924
|
chatResponseMap: new Map,
|
|
20914
20925
|
conversationMap: new Map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liip/liipgpt",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.1",
|
|
4
4
|
"description": "LiipGPT Chat and Library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
"./button": {
|
|
22
22
|
"import": "./button/liipgpt-button.iife.js",
|
|
23
23
|
"require": "./button/liipgpt-button.iife.js"
|
|
24
|
+
},
|
|
25
|
+
"./search-summary": {
|
|
26
|
+
"import": "./search-summary/liipgpt-search-summary.iife.js",
|
|
27
|
+
"require": "./search-summary/liipgpt-search-summary.iife.js"
|
|
24
28
|
}
|
|
25
29
|
},
|
|
26
30
|
"files": [
|
|
@@ -30,6 +34,7 @@
|
|
|
30
34
|
"config/**/*.{js,cjs,d.ts}",
|
|
31
35
|
"button/**/*.{js,cjs,d.ts}",
|
|
32
36
|
"chat/**/*.{js,cjs,d.ts}",
|
|
37
|
+
"search-summary/**/*.{js,cjs,d.ts}",
|
|
33
38
|
"configurator"
|
|
34
39
|
],
|
|
35
40
|
"keywords": [],
|