@inploi/plugin-chatbot 3.7.0 → 3.8.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/dist/chatbot.d.ts CHANGED
@@ -12,11 +12,11 @@ export declare const chatbotPlugin: ({ _internal_domManager: dom, theme, }: {
12
12
  hue: number;
13
13
  /** Chroma multiplier. Values between 0 and 1.5 work best. */
14
14
  chroma?: number;
15
+ mode: 'light' | 'dark';
15
16
  };
16
17
  /** @deprecated For internal usage only */
17
18
  _internal_domManager?: {
18
- getOrCreateChatbotElement: () => HTMLDivElement;
19
- addStyle: (css: string, id: string) => void;
19
+ getOrCreateChatbotElement: () => HTMLElement;
20
20
  } | undefined;
21
21
  }) => ({ apiClient, logger, analytics }: {
22
22
  apiClient: import("@inploi/sdk").ApiClient;
@@ -1,5 +1,4 @@
1
1
  export declare const createChatbotDomManager: () => {
2
- getOrCreateChatbotElement: () => HTMLDivElement;
3
- addStyle: (css: string, id: string) => void;
2
+ getOrCreateChatbotElement: () => HTMLElement;
4
3
  };
5
4
  export type ChatbotDomManager = ReturnType<typeof createChatbotDomManager>;
@@ -1,8 +1,8 @@
1
1
  import { Signal } from '@preact/signals';
2
2
  import { JobApplication } from './chatbot.api';
3
3
  import { DistributivePick } from './chatbot.utils';
4
- import { ChatInput } from './ui/chat-input/chat-input';
5
- import { ChatbotInput } from './ui/chat-input/chat-input';
4
+ import { ChatInput } from './components/chat-input/chat-input';
5
+ import { ChatbotInput } from './components/chat-input/chat-input';
6
6
  export declare const getCacheKey: (application: JobApplication) => string;
7
7
  export type ViewState = 'maximised' | 'minimised';
8
8
  export declare const viewState: Signal<ViewState>;
@@ -160,14 +160,14 @@ export declare const getHeadOrThrow: (nodes: FlowNode[]) => {
160
160
  isHead?: boolean | undefined;
161
161
  nextId?: string | undefined;
162
162
  };
163
- export declare const getApplicationSubmissionsPayload: (submissions: KeyToSubmissionMap) => Record<string, string | string[] | import("./ui/chat-input/chat-input.file").FileToUpload[] | null>;
164
- export declare const isSubmissionOfType: <T extends "boolean" | "text" | "multiple-choice" | "file">(type: T) => (submission?: ApplicationSubmission) => submission is Extract<Pick<import("./ui/chat-input/chat-input.text").TextPayload, "value" | "type">, {
163
+ export declare const getApplicationSubmissionsPayload: (submissions: KeyToSubmissionMap) => Record<string, string | string[] | import("./components/chat-input/chat-input.file").FileToUpload[] | null>;
164
+ export declare const isSubmissionOfType: <T extends "boolean" | "text" | "multiple-choice" | "file">(type: T) => (submission?: ApplicationSubmission) => submission is Extract<Pick<import("./components/chat-input/chat-input.text").TextPayload, "value" | "type">, {
165
165
  type: T;
166
- }> | Extract<Pick<import("./ui/chat-input/chat-input.multiple-choice").MultipleChoicePayload, "value" | "type">, {
166
+ }> | Extract<Pick<import("./components/chat-input/chat-input.multiple-choice").MultipleChoicePayload, "value" | "type">, {
167
167
  type: T;
168
- }> | Extract<Pick<import("./ui/chat-input/chat-input.boolean").BooleanChoicePayload, "value" | "type">, {
168
+ }> | Extract<Pick<import("./components/chat-input/chat-input.boolean").BooleanChoicePayload, "value" | "type">, {
169
169
  type: T;
170
- }> | Extract<Pick<import("./ui/chat-input/chat-input.file").FilePayload, "value" | "type">, {
170
+ }> | Extract<Pick<import("./components/chat-input/chat-input.file").FilePayload, "value" | "type">, {
171
171
  type: T;
172
172
  }>;
173
173
  export declare function gzip(string: string): string | Promise<string>;