@lilaquadrat/chat 0.1.16 → 0.1.18

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 (68) hide show
  1. package/dist/wc/lilaquadrat-studio-chat.js +5 -5
  2. package/dist/wc/lilaquadrat-studio-chat.umd.cjs +1 -1
  3. package/package.json +24 -23
  4. package/dist/app/assets/de-DD_Cd2_H.js +0 -1
  5. package/dist/app/assets/loadFonts-BZPSkxb8.js +0 -1
  6. package/dist/app/assets/main-CMstByrm.js +0 -2
  7. package/dist/app/assets/preload-helper-OSX1TyOM.js +0 -1
  8. package/dist/app/assets/support-C4cC4Lzu.js +0 -2
  9. package/dist/app/assets/support-agent-DX9ndFJx.js +0 -1
  10. package/dist/app/assets/web-component-C7H8-BJp.js +0 -1
  11. package/dist/app/index.html +0 -37
  12. package/dist/app/support/index.html +0 -43
  13. package/dist/studio-chat-module.js +0 -0
  14. package/dist/studio-chat-module.umd.cjs +0 -1
  15. package/dist/types/src/bot/botClient.d.ts +0 -40
  16. package/dist/types/src/bot/botManager.d.ts +0 -3
  17. package/dist/types/src/composables/useChatBootstrap.d.ts +0 -27
  18. package/dist/types/src/composables/useChatVisibility.d.ts +0 -18
  19. package/dist/types/src/composables/useTriggerEvent.d.ts +0 -10
  20. package/dist/types/src/composables/useWebSocket.d.ts +0 -11
  21. package/dist/types/src/config/auth.d.ts +0 -19
  22. package/dist/types/src/config/bootstrap.agent.d.ts +0 -86
  23. package/dist/types/src/config/bootstrap.d.ts +0 -10
  24. package/dist/types/src/config/chatConfig.d.ts +0 -83
  25. package/dist/types/src/config/components.shared.d.ts +0 -18
  26. package/dist/types/src/config/users.d.ts +0 -27
  27. package/dist/types/src/helpers/date.d.ts +0 -7
  28. package/dist/types/src/helpers/handleMessages.d.ts +0 -2
  29. package/dist/types/src/helpers/loadComponents.d.ts +0 -10
  30. package/dist/types/src/helpers/participants.d.ts +0 -50
  31. package/dist/types/src/helpers/rights.d.ts +0 -19
  32. package/dist/types/src/helpers/sdkOptions.d.ts +0 -17
  33. package/dist/types/src/helpers/sounds.d.ts +0 -8
  34. package/dist/types/src/helpers/supportStatus.d.ts +0 -15
  35. package/dist/types/src/interfaces/Conversation.d.ts +0 -44
  36. package/dist/types/src/interfaces/ConversationSla.d.ts +0 -9
  37. package/dist/types/src/interfaces/IncomingFrame.d.ts +0 -71
  38. package/dist/types/src/interfaces/Message.d.ts +0 -18
  39. package/dist/types/src/interfaces/ParticipantDocument.d.ts +0 -13
  40. package/dist/types/src/libs/StudioSDK.d.ts +0 -148
  41. package/dist/types/src/libs/chatSession.d.ts +0 -113
  42. package/dist/types/src/libs/resize.d.ts +0 -79
  43. package/dist/types/src/libs/websocketManager.d.ts +0 -54
  44. package/dist/types/src/locales/de.d.ts +0 -113
  45. package/dist/types/src/locales/en.d.ts +0 -113
  46. package/dist/types/src/main.d.ts +0 -1
  47. package/dist/types/src/mixins/groupMessages.d.ts +0 -14
  48. package/dist/types/src/mixins/hardCopy.d.ts +0 -2
  49. package/dist/types/src/mixins/logger.d.ts +0 -8
  50. package/dist/types/src/mixins/traceable.d.ts +0 -11
  51. package/dist/types/src/plugins/i18n.d.ts +0 -122
  52. package/dist/types/src/standalone/auth.d.ts +0 -26
  53. package/dist/types/src/standalone/main.d.ts +0 -1
  54. package/dist/types/src/standalone/settings.d.ts +0 -63
  55. package/dist/types/src/standalone-support/main.d.ts +0 -1
  56. package/dist/types/src/stores/bots.store.d.ts +0 -69
  57. package/dist/types/src/stores/calls.store.d.ts +0 -14
  58. package/dist/types/src/stores/contacts.store.d.ts +0 -87
  59. package/dist/types/src/stores/conversations.store.d.ts +0 -2228
  60. package/dist/types/src/stores/main.store.d.ts +0 -184
  61. package/dist/types/src/stores/supportConversations.store.d.ts +0 -65
  62. package/dist/types/src/stores/user.store.d.ts +0 -8
  63. package/dist/types/src/stores/usersCache.store.d.ts +0 -31
  64. package/dist/types/src/styles/loadFonts.d.ts +0 -15
  65. package/dist/types/src/support-agent.d.ts +0 -18
  66. package/dist/types/tsconfig.build.tsbuildinfo +0 -1
  67. package/dist/wc-support/lilaquadrat-studio-support.js +0 -9
  68. package/dist/wc-support/lilaquadrat-studio-support.umd.cjs +0 -1
@@ -1,63 +0,0 @@
1
- import type { Feature } from '@/stores/main.store';
2
- import type { SupportAgentConfig } from '@/config/bootstrap.agent';
3
- /** Keycloak SPA client settings. Mirrors the `keycloak` key of studio-app's settings.json. */
4
- export interface StandaloneKeycloakSettings {
5
- url: string;
6
- realm: string;
7
- clientId: string;
8
- }
9
- /**
10
- * Runtime configuration of a standalone deployment, served as a plain file next to the
11
- * bundle (`/settings/settings.json`) rather than baked in at build time — one artifact,
12
- * configured per domain. Same file path and shape as studio-app so ops handling is identical.
13
- */
14
- export interface StandaloneSettings {
15
- /** dev bypass: skip Keycloak entirely and use `devToken`. Mirrors studio-app's `settings.dev`. */
16
- dev?: boolean;
17
- /** the token handed to the chat when `dev` is set. Pair with the backend's ENV=dev / DEV_USER. */
18
- devToken?: string;
19
- /** Keycloak public client. Required outside dev mode. */
20
- keycloak?: StandaloneKeycloakSettings;
21
- /** passed straight into the chat element's config */
22
- chat: {
23
- features?: Feature[];
24
- wsUrl?: string;
25
- apiUrl?: string;
26
- mediaUrl?: string;
27
- /** @deprecated ignored — the backend owns the support team, see ChatModuleConfig.support */
28
- support?: {
29
- participants: string[];
30
- };
31
- sound?: boolean | {
32
- enabled?: boolean;
33
- volume?: number;
34
- };
35
- };
36
- /** document title of the deployment */
37
- title?: string;
38
- }
39
- export declare const SETTINGS_URL = "/settings/settings.json";
40
- /**
41
- * Load the deployment settings. Always uncached — the file is edited in place on the
42
- * server and a stale copy would point the app at the wrong backend or Keycloak client.
43
- */
44
- export default function loadSettings(): Promise<StandaloneSettings>;
45
- /** the endpoint-ish fields of `chat` the support-agent element accepts. */
46
- export type SupportAgentEndpoints = Pick<SupportAgentConfig, 'wsUrl' | 'apiUrl' | 'mediaUrl' | 'sound'>;
47
- /**
48
- * Narrow the settings' `chat` section to what <lilaquadrat-studio-support> accepts.
49
- *
50
- * The same settings.json shape serves both deployments, so the agent shell reads a `chat` section
51
- * that may legitimately carry customer-only keys. This picks fields EXPLICITLY rather than
52
- * spreading, and the two it drops are dropped on purpose:
53
- *
54
- * - `features`: the agent bundle decides its own mode — applySupportAgentConfig forces
55
- * ['support']. A host-supplied `features` reaching the console is exactly the confusion
56
- * `appRole` exists to prevent (a support console rendering the customer's chat header).
57
- * - `support: { participants }`: already deprecated and ignored — the backend owns the support
58
- * team (everyone holding the `support:member` scope), so a client-side list can only drift.
59
- *
60
- * A spread would smuggle both past SupportAgentConfig's excess-property check, since the check
61
- * only fires on object literals, not on spread-in values.
62
- */
63
- export declare function supportAgentEndpoints(settings: StandaloneSettings): SupportAgentEndpoints;
@@ -1 +0,0 @@
1
- export {};
@@ -1,69 +0,0 @@
1
- import { type ChatUser } from '@/config/users';
2
- export type BotStatus = 'idle' | 'connecting' | 'connected' | 'disconnected';
3
- export interface Bot {
4
- id: string;
5
- userId: number;
6
- name: string;
7
- status: BotStatus;
8
- autoReply: boolean;
9
- }
10
- /** the persisted bots exposed as chat users, so they can be picked as conversation participants */
11
- export declare function botUsers(): ChatUser[];
12
- /**
13
- * Debugging bots — each behaves like a separate user of the chat. The roster is
14
- * persisted to localStorage so it survives reloads; wiring a bot to actually
15
- * connect/send comes later.
16
- */
17
- export declare const useBotsStore: import("pinia").StoreDefinition<"bots", Pick<{
18
- bots: import("vue").Ref<{
19
- id: string;
20
- userId: number;
21
- name: string;
22
- status: BotStatus;
23
- autoReply: boolean;
24
- }[], Bot[] | {
25
- id: string;
26
- userId: number;
27
- name: string;
28
- status: BotStatus;
29
- autoReply: boolean;
30
- }[]>;
31
- addBot: () => string;
32
- removeBot: (id: string) => void;
33
- setStatus: (id: string, status: BotStatus) => void;
34
- }, "bots">, Pick<{
35
- bots: import("vue").Ref<{
36
- id: string;
37
- userId: number;
38
- name: string;
39
- status: BotStatus;
40
- autoReply: boolean;
41
- }[], Bot[] | {
42
- id: string;
43
- userId: number;
44
- name: string;
45
- status: BotStatus;
46
- autoReply: boolean;
47
- }[]>;
48
- addBot: () => string;
49
- removeBot: (id: string) => void;
50
- setStatus: (id: string, status: BotStatus) => void;
51
- }, never>, Pick<{
52
- bots: import("vue").Ref<{
53
- id: string;
54
- userId: number;
55
- name: string;
56
- status: BotStatus;
57
- autoReply: boolean;
58
- }[], Bot[] | {
59
- id: string;
60
- userId: number;
61
- name: string;
62
- status: BotStatus;
63
- autoReply: boolean;
64
- }[]>;
65
- addBot: () => string;
66
- removeBot: (id: string) => void;
67
- setStatus: (id: string, status: BotStatus) => void;
68
- }, "addBot" | "removeBot" | "setStatus">>;
69
- export default useBotsStore;
@@ -1,14 +0,0 @@
1
- export declare const useCallStore: import("pinia").StoreDefinition<"calls", Pick<{
2
- calls: import("vue").Ref<Record<string, "resolved" | "rejected" | "pending">, Record<string, "resolved" | "rejected" | "pending">>;
3
- addCall: () => string;
4
- updateCall: (id: string, state: "pending" | "resolved" | "rejected") => void;
5
- }, "calls">, Pick<{
6
- calls: import("vue").Ref<Record<string, "resolved" | "rejected" | "pending">, Record<string, "resolved" | "rejected" | "pending">>;
7
- addCall: () => string;
8
- updateCall: (id: string, state: "pending" | "resolved" | "rejected") => void;
9
- }, never>, Pick<{
10
- calls: import("vue").Ref<Record<string, "resolved" | "rejected" | "pending">, Record<string, "resolved" | "rejected" | "pending">>;
11
- addCall: () => string;
12
- updateCall: (id: string, state: "pending" | "resolved" | "rejected") => void;
13
- }, "addCall" | "updateCall">>;
14
- export default useCallStore;
@@ -1,87 +0,0 @@
1
- import type { ChatUser } from '@/config/users';
2
- export declare const useContactsStore: import("pinia").StoreDefinition<"contacts", Pick<{
3
- contacts: import("vue").ComputedRef<{
4
- id: string;
5
- prename?: string;
6
- lastname?: string;
7
- name?: string;
8
- status?: string;
9
- }[]>;
10
- users: import("vue").Ref<{
11
- id: string;
12
- prename?: string;
13
- lastname?: string;
14
- name?: string;
15
- status?: string;
16
- }[], ChatUser[] | {
17
- id: string;
18
- prename?: string;
19
- lastname?: string;
20
- name?: string;
21
- status?: string;
22
- }[]>;
23
- loadUsers: (search?: string) => Promise<{
24
- id: string;
25
- prename?: string;
26
- lastname?: string;
27
- name?: string;
28
- status?: string;
29
- }[]>;
30
- }, "users">, Pick<{
31
- contacts: import("vue").ComputedRef<{
32
- id: string;
33
- prename?: string;
34
- lastname?: string;
35
- name?: string;
36
- status?: string;
37
- }[]>;
38
- users: import("vue").Ref<{
39
- id: string;
40
- prename?: string;
41
- lastname?: string;
42
- name?: string;
43
- status?: string;
44
- }[], ChatUser[] | {
45
- id: string;
46
- prename?: string;
47
- lastname?: string;
48
- name?: string;
49
- status?: string;
50
- }[]>;
51
- loadUsers: (search?: string) => Promise<{
52
- id: string;
53
- prename?: string;
54
- lastname?: string;
55
- name?: string;
56
- status?: string;
57
- }[]>;
58
- }, "contacts">, Pick<{
59
- contacts: import("vue").ComputedRef<{
60
- id: string;
61
- prename?: string;
62
- lastname?: string;
63
- name?: string;
64
- status?: string;
65
- }[]>;
66
- users: import("vue").Ref<{
67
- id: string;
68
- prename?: string;
69
- lastname?: string;
70
- name?: string;
71
- status?: string;
72
- }[], ChatUser[] | {
73
- id: string;
74
- prename?: string;
75
- lastname?: string;
76
- name?: string;
77
- status?: string;
78
- }[]>;
79
- loadUsers: (search?: string) => Promise<{
80
- id: string;
81
- prename?: string;
82
- lastname?: string;
83
- name?: string;
84
- status?: string;
85
- }[]>;
86
- }, "loadUsers">>;
87
- export default useContactsStore;