@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/cdn/index.js +28 -32
- package/dist/chatbot.d.ts +2 -2
- package/dist/chatbot.dom.d.ts +1 -2
- package/dist/chatbot.state.d.ts +2 -2
- package/dist/chatbot.utils.d.ts +5 -5
- package/dist/{index-1808db67.js → index-b616116f.js} +481 -3424
- package/dist/{index-09e54786.cjs → index-efb34443.cjs} +481 -3424
- package/dist/interpreter.d.ts +1 -1
- package/dist/{job-application-content-43128b7f.cjs → job-application-content-8b7e62bb.cjs} +25 -23
- package/dist/{job-application-content-205c66b2.js → job-application-content-b9799966.js} +25 -23
- package/dist/plugin-chatbot.cjs +1 -1
- package/dist/plugin-chatbot.js +1 -1
- package/package.json +5 -3
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: () =>
|
|
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;
|
package/dist/chatbot.dom.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export declare const createChatbotDomManager: () => {
|
|
2
|
-
getOrCreateChatbotElement: () =>
|
|
3
|
-
addStyle: (css: string, id: string) => void;
|
|
2
|
+
getOrCreateChatbotElement: () => HTMLElement;
|
|
4
3
|
};
|
|
5
4
|
export type ChatbotDomManager = ReturnType<typeof createChatbotDomManager>;
|
package/dist/chatbot.state.d.ts
CHANGED
|
@@ -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 './
|
|
5
|
-
import { ChatbotInput } from './
|
|
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>;
|
package/dist/chatbot.utils.d.ts
CHANGED
|
@@ -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("./
|
|
164
|
-
export declare const isSubmissionOfType: <T extends "boolean" | "text" | "multiple-choice" | "file">(type: T) => (submission?: ApplicationSubmission) => submission is Extract<Pick<import("./
|
|
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("./
|
|
166
|
+
}> | Extract<Pick<import("./components/chat-input/chat-input.multiple-choice").MultipleChoicePayload, "value" | "type">, {
|
|
167
167
|
type: T;
|
|
168
|
-
}> | Extract<Pick<import("./
|
|
168
|
+
}> | Extract<Pick<import("./components/chat-input/chat-input.boolean").BooleanChoicePayload, "value" | "type">, {
|
|
169
169
|
type: T;
|
|
170
|
-
}> | Extract<Pick<import("./
|
|
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>;
|