@inploi/plugin-chatbot 14.17.0 → 14.17.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.
- package/README.md +9 -2
- package/cdn/index.js +5 -5
- package/dist/chatbot-body-045352bb.cjs +5 -0
- package/dist/chatbot-body-977addfb.js +4447 -0
- package/dist/components/chat-input/chat-input.address-countries.test.d.ts +1 -0
- package/dist/components/chat-input/chat-input.address.d.ts +1 -1
- package/dist/components/chat-input/chat-input.d.ts +3 -2
- package/dist/components/job-alerts-offer.d.ts +6 -0
- package/dist/components/job-alerts-privacy-line.test.d.ts +1 -0
- package/dist/{index-9976f9fd.cjs → index-62545280.cjs} +3 -3
- package/dist/{index-eeb96c22.js → index-c55803dd.js} +17 -16
- package/dist/plugin-chatbot.cjs +1 -1
- package/dist/plugin-chatbot.js +1 -1
- package/package.json +5 -5
- package/dist/chatbot-body-126a69ce.cjs +0 -5
- package/dist/chatbot-body-493e57db.js +0 -4453
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,4 +2,4 @@ import { AddressInputPayload } from '@inploi/flows/engine';
|
|
|
2
2
|
import { JSX } from 'preact';
|
|
3
3
|
import { ChatInputProps } from './chat-input';
|
|
4
4
|
|
|
5
|
-
export declare const ChatInputAddress: ({ input, onSubmitSuccess, logger }: ChatInputProps<AddressInputPayload>) => JSX.Element;
|
|
5
|
+
export declare const ChatInputAddress: ({ input, onSubmitSuccess, logger, rpcClient, }: ChatInputProps<AddressInputPayload>) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChatbotInput, FlowSubmission } from '@inploi/flows/engine';
|
|
2
|
-
import { AnalyticsService, Logger } from '@inploi/sdk';
|
|
2
|
+
import { AnalyticsService, InploiRpcClient, Logger } from '@inploi/sdk';
|
|
3
3
|
|
|
4
4
|
export type SubmitSuccessFn = (submission: FlowSubmission | null) => void;
|
|
5
5
|
export type ChatInputProps<T extends ChatbotInput> = {
|
|
@@ -7,5 +7,6 @@ export type ChatInputProps<T extends ChatbotInput> = {
|
|
|
7
7
|
input: Omit<T, 'submission'>;
|
|
8
8
|
logger: Logger;
|
|
9
9
|
analytics: Pick<AnalyticsService, 'log'>;
|
|
10
|
+
rpcClient?: InploiRpcClient;
|
|
10
11
|
};
|
|
11
|
-
export declare const ChatInput: ({ logger, analytics }: Pick<ChatInputProps<ChatbotInput>, "logger" | "analytics">) => import("preact").JSX.Element;
|
|
12
|
+
export declare const ChatInput: ({ logger, analytics, rpcClient, }: Pick<ChatInputProps<ChatbotInput>, "logger" | "analytics" | "rpcClient">) => import("preact").JSX.Element;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { InploiRpcClient } from '@inploi/sdk';
|
|
2
2
|
import { StartedFlow } from '../chatbot.state';
|
|
3
|
+
import { TFunction } from '../i18n';
|
|
3
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Names the employer as the sender, unless the host translated the neutral line but not the named one: then the host's
|
|
7
|
+
* own words stay rather than switching the page to English mid-offer.
|
|
8
|
+
*/
|
|
9
|
+
export declare const privacyLine: (t: TFunction, employer: string | undefined) => string;
|
|
4
10
|
export declare const JobAlertsOffer: ({ flow, rpcClient }: {
|
|
5
11
|
flow: StartedFlow;
|
|
6
12
|
rpcClient: InploiRpcClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|