@liip/liipgpt 3.11.0 → 3.11.2

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 (48) hide show
  1. package/LICENSE +201 -88
  2. package/NOTICE +22 -0
  3. package/button/liipgpt-button.iife.js +1 -0
  4. package/button/liipgpt-button.js +1 -0
  5. package/chat/liipgpt-chat.iife.js +3 -2
  6. package/chat/liipgpt-chat.js +3 -2
  7. package/config/index.cjs +4 -1
  8. package/config/index.d.ts +8 -0
  9. package/config/index.js +5 -1
  10. package/configurator/_app/env.js +1 -1
  11. package/configurator/_app/immutable/chunks/{B7XnzOtp.js → 59Qy4pzN.js} +1 -1
  12. package/configurator/_app/immutable/chunks/{eDqi3535.js → 6ikKRAEA.js} +1 -1
  13. package/configurator/_app/immutable/chunks/{BCwS08XI.js → BBBsf1IY.js} +2 -2
  14. package/configurator/_app/immutable/chunks/{D-JCQPQm.js → BZRp1cWz.js} +1 -1
  15. package/configurator/_app/immutable/chunks/{Ck-AVw0N.js → Bzr04ZcD.js} +1 -1
  16. package/configurator/_app/immutable/chunks/{B1_pfFrT.js → C1yKSdkL.js} +1 -1
  17. package/configurator/_app/immutable/chunks/{DjnNQ9cM.js → C32fguu7.js} +1 -1
  18. package/configurator/_app/immutable/chunks/{BJUZhA68.js → CD6_VnKE.js} +1 -1
  19. package/configurator/_app/immutable/chunks/CIHHNprL.js +1 -0
  20. package/configurator/_app/immutable/chunks/{_oGHvI2z.js → COh_IaBC.js} +1 -1
  21. package/configurator/_app/immutable/chunks/Ct3VxfiR.js +1 -0
  22. package/configurator/_app/immutable/chunks/CzUv7c8S.js +1 -0
  23. package/configurator/_app/immutable/chunks/{ZTjVhqEP.js → DBQyBiSh.js} +2 -2
  24. package/configurator/_app/immutable/chunks/{CzUbCS7s.js → MXZgHzgQ.js} +1 -1
  25. package/configurator/_app/immutable/chunks/{avJin-Fq.js → SzunIEqj.js} +1 -1
  26. package/configurator/_app/immutable/chunks/{CMvCHhSP.js → s6x81Lfq.js} +1 -1
  27. package/configurator/_app/immutable/entry/{app.J7WXZUmQ.js → app.B_61kXQ4.js} +2 -2
  28. package/configurator/_app/immutable/entry/start.BOhSSe81.js +1 -0
  29. package/configurator/_app/immutable/nodes/{0.RUKKNLNS.js → 0.Bi08LRX0.js} +2 -1
  30. package/configurator/_app/immutable/nodes/{1.QacfMzbd.js → 1.E_trvDMx.js} +1 -1
  31. package/configurator/_app/immutable/nodes/{2.B9VbxGZZ.js → 2.BNeVNh0R.js} +9 -9
  32. package/configurator/_app/immutable/nodes/{3.CIoPlU9V.js → 3.D1rPht9H.js} +1 -1
  33. package/configurator/_app/version.json +1 -1
  34. package/configurator/index.html +6 -6
  35. package/configurator/sidebar.html +6 -6
  36. package/index.cjs +5 -1
  37. package/index.d.ts +45 -0
  38. package/index.js +6 -1
  39. package/package.json +4 -2
  40. package/search-summary/liipgpt-search-summary.iife.js +2 -1
  41. package/search-summary/liipgpt-search-summary.js +4 -3
  42. package/search-summary/{load-chat-config-D1K0jXrB.js → load-chat-config-BnSgm085.js} +2 -1
  43. package/search-summary/translations-utils-J0hLe4am.js +2 -0
  44. package/configurator/_app/immutable/chunks/D3wB30_g.js +0 -1
  45. package/configurator/_app/immutable/chunks/pHVM4a9g.js +0 -1
  46. package/configurator/_app/immutable/chunks/s8dY_eYY.js +0 -1
  47. package/configurator/_app/immutable/entry/start.BqxvRB3w.js +0 -1
  48. package/search-summary/translations-utils-E4InubIu.js +0 -1
package/index.cjs CHANGED
@@ -1,3 +1,4 @@
1
+ /*! @liip/liipgpt | Copyright 2025-2026 Liip AG | Apache-2.0 | see LICENSE and NOTICE */
1
2
  var __create = Object.create;
2
3
  var __getProtoOf = Object.getPrototypeOf;
3
4
  var __defProp = Object.defineProperty;
@@ -80,6 +81,7 @@ __export(exports_client, {
80
81
  chatMessageUserSchema: () => chatMessageUserSchema,
81
82
  checkForPii: () => checkForPii,
82
83
  classificationConfigSchema: () => classificationConfigSchema,
84
+ classificationGroupSchema: () => classificationGroupSchema,
83
85
  classificationResponseSchema: () => classificationResponseSchema,
84
86
  completeChatConfigSchema: () => completeChatConfigSchema,
85
87
  conversationHistorySchema: () => conversationHistorySchema,
@@ -4428,9 +4430,11 @@ var predefinedQuestionSchema = import_mini7.z.object({
4428
4430
  question: import_mini7.z.string(),
4429
4431
  switchQuestionId: import_mini7.z.optional(import_mini7.z.string())
4430
4432
  });
4433
+ var classificationGroupSchema = import_mini7.z.enum(["quality", "impact"]);
4431
4434
  var classificationConfigSchema = import_mini7.z.object({
4432
4435
  impact: import_mini7.z.optional(classificationOptionSchema),
4433
- quality: import_mini7.z.optional(classificationOptionSchema)
4436
+ quality: import_mini7.z.optional(classificationOptionSchema),
4437
+ order: import_mini7.z.optional(import_mini7.z.array(classificationGroupSchema))
4434
4438
  });
4435
4439
  var classificationResponseSchema = import_mini7.z.object({
4436
4440
  classification: import_mini7.z.optional(classificationConfigSchema)
package/index.d.ts CHANGED
@@ -1433,6 +1433,10 @@ export declare const predefinedQuestionSchema: z.ZodMiniObject<{
1433
1433
  question: z.ZodMiniString<string>;
1434
1434
  switchQuestionId: z.ZodMiniOptional<z.ZodMiniString<string>>;
1435
1435
  }, z.core.$strip>;
1436
+ export declare const classificationGroupSchema: z.ZodMiniEnum<{
1437
+ quality: "quality";
1438
+ impact: "impact";
1439
+ }>;
1436
1440
  export declare const classificationConfigSchema: z.ZodMiniObject<{
1437
1441
  impact: z.ZodMiniOptional<z.ZodMiniObject<{
1438
1442
  label: z.ZodMiniString<string>;
@@ -1448,6 +1452,14 @@ export declare const classificationConfigSchema: z.ZodMiniObject<{
1448
1452
  value: z.ZodMiniNumber<number>;
1449
1453
  }, z.core.$strip>>;
1450
1454
  }, z.core.$strip>>;
1455
+ /**
1456
+ * Order the classification groups are rendered in, defaults to ["quality", "impact"].
1457
+ * Configured groups that are missing from the list are appended in the default order.
1458
+ */
1459
+ order: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniEnum<{
1460
+ quality: "quality";
1461
+ impact: "impact";
1462
+ }>>>;
1451
1463
  }, z.core.$strip>;
1452
1464
  export declare const classificationResponseSchema: z.ZodMiniObject<{
1453
1465
  classification: z.ZodMiniOptional<z.ZodMiniObject<{
@@ -1465,6 +1477,14 @@ export declare const classificationResponseSchema: z.ZodMiniObject<{
1465
1477
  value: z.ZodMiniNumber<number>;
1466
1478
  }, z.core.$strip>>;
1467
1479
  }, z.core.$strip>>;
1480
+ /**
1481
+ * Order the classification groups are rendered in, defaults to ["quality", "impact"].
1482
+ * Configured groups that are missing from the list are appended in the default order.
1483
+ */
1484
+ order: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniEnum<{
1485
+ quality: "quality";
1486
+ impact: "impact";
1487
+ }>>>;
1468
1488
  }, z.core.$strip>>;
1469
1489
  }, z.core.$strip>;
1470
1490
  export declare const predefinedQuestionsResponseSchema: z.ZodMiniObject<{
@@ -1834,6 +1854,14 @@ export declare const completeChatConfigSchema: z.ZodMiniObject<{
1834
1854
  value: z.ZodMiniNumber<number>;
1835
1855
  }, z.core.$strip>>;
1836
1856
  }, z.core.$strip>>;
1857
+ /**
1858
+ * Order the classification groups are rendered in, defaults to ["quality", "impact"].
1859
+ * Configured groups that are missing from the list are appended in the default order.
1860
+ */
1861
+ order: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniEnum<{
1862
+ quality: "quality";
1863
+ impact: "impact";
1864
+ }>>>;
1837
1865
  }, z.core.$strip>>;
1838
1866
  /** When set, a custom form is shown as an option below each bot answer and submitted by email */
1839
1867
  answerForm: z.ZodMiniOptional<z.ZodMiniObject<{
@@ -4606,6 +4634,14 @@ export declare const chatConfigSchema: z.ZodMiniObject<{
4606
4634
  value: z.ZodMiniNumber<number>;
4607
4635
  }, z.core.$strip>>;
4608
4636
  }, z.core.$strip>>;
4637
+ /**
4638
+ * Order the classification groups are rendered in, defaults to ["quality", "impact"].
4639
+ * Configured groups that are missing from the list are appended in the default order.
4640
+ */
4641
+ order: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniEnum<{
4642
+ quality: "quality";
4643
+ impact: "impact";
4644
+ }>>>;
4609
4645
  }, z.core.$strip>>>;
4610
4646
  answerForm: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniObject<{
4611
4647
  /**
@@ -7354,6 +7390,14 @@ export declare const chatConfigSchemaWithLegacyThemeName: z.ZodMiniIntersection<
7354
7390
  value: z.ZodMiniNumber<number>;
7355
7391
  }, z.core.$strip>>;
7356
7392
  }, z.core.$strip>>;
7393
+ /**
7394
+ * Order the classification groups are rendered in, defaults to ["quality", "impact"].
7395
+ * Configured groups that are missing from the list are appended in the default order.
7396
+ */
7397
+ order: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniEnum<{
7398
+ quality: "quality";
7399
+ impact: "impact";
7400
+ }>>>;
7357
7401
  }, z.core.$strip>>>;
7358
7402
  answerForm: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniObject<{
7359
7403
  /**
@@ -10059,6 +10103,7 @@ export declare const chatConfigSchemaWithLegacyThemeName: z.ZodMiniIntersection<
10059
10103
  export type MenuItem = z.infer<typeof menuItemSchema>;
10060
10104
  export type PredefinedQuestion = z.infer<typeof predefinedQuestionSchema>;
10061
10105
  export type ClassificationConfig = z.infer<typeof classificationConfigSchema>;
10106
+ export type ClassificationGroup = z.infer<typeof classificationGroupSchema>;
10062
10107
  export type AnswerFormConfig = z.infer<typeof answerFormSchema>;
10063
10108
  export type AnswerFormField = z.infer<typeof answerFormFieldSchema>;
10064
10109
  export type ClassificationResponse = z.infer<typeof classificationResponseSchema>;
package/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ /*! @liip/liipgpt | Copyright 2025-2026 Liip AG | Apache-2.0 | see LICENSE and NOTICE */
2
+
1
3
  // node_modules/.bun/dompurify@3.3.3/node_modules/dompurify/dist/purify.es.mjs
2
4
  /*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */
3
5
  var {
@@ -4331,9 +4333,11 @@ var predefinedQuestionSchema = z7.object({
4331
4333
  question: z7.string(),
4332
4334
  switchQuestionId: z7.optional(z7.string())
4333
4335
  });
4336
+ var classificationGroupSchema = z7.enum(["quality", "impact"]);
4334
4337
  var classificationConfigSchema = z7.object({
4335
4338
  impact: z7.optional(classificationOptionSchema),
4336
- quality: z7.optional(classificationOptionSchema)
4339
+ quality: z7.optional(classificationOptionSchema),
4340
+ order: z7.optional(z7.array(classificationGroupSchema))
4337
4341
  });
4338
4342
  var classificationResponseSchema = z7.object({
4339
4343
  classification: z7.optional(classificationConfigSchema)
@@ -5556,6 +5560,7 @@ export {
5556
5560
  chatMessageUserSchema,
5557
5561
  checkForPii,
5558
5562
  classificationConfigSchema,
5563
+ classificationGroupSchema,
5559
5564
  classificationResponseSchema,
5560
5565
  completeChatConfigSchema,
5561
5566
  conversationHistorySchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liip/liipgpt",
3
- "version": "3.11.0",
3
+ "version": "3.11.2",
4
4
  "description": "LiipGPT Chat and Library",
5
5
  "type": "module",
6
6
  "exports": {
@@ -28,6 +28,8 @@
28
28
  }
29
29
  },
30
30
  "files": [
31
+ "LICENSE",
32
+ "NOTICE",
31
33
  "index.d.ts",
32
34
  "index.js",
33
35
  "index.cjs",
@@ -39,7 +41,7 @@
39
41
  ],
40
42
  "keywords": [],
41
43
  "author": "falkz",
42
- "license": "LicenseRef-LiipGPT",
44
+ "license": "Apache-2.0",
43
45
  "dependencies": {
44
46
  "zod": "^4.3.6"
45
47
  }