@squadico/chatbot 1.5.2 → 1.6.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/README.md +4 -4
- package/dist/answer-BDuY6oLY.js.map +1 -1
- package/dist/answer-Bi8GWLyA.cjs.map +1 -1
- package/dist/chatbot.global.js +11 -11
- package/dist/chatbot.global.js.map +1 -1
- package/dist/components/AgentRail.d.ts +3 -3
- package/dist/components/AgentRail.d.ts.map +1 -1
- package/dist/components/ChatbotWidget.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/client.d.ts +4 -0
- package/dist/lib/client.d.ts.map +1 -1
- package/dist/lib/conversation.d.ts +10 -4
- package/dist/lib/conversation.d.ts.map +1 -1
- package/dist/lib/useChat.d.ts +10 -2
- package/dist/lib/useChat.d.ts.map +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/dist/{src-B7GLD1Xs.js → src-9RHZ3YFb.js} +600 -537
- package/dist/src-9RHZ3YFb.js.map +1 -0
- package/dist/src-BaM2DlJ3.cjs +7 -0
- package/dist/src-BaM2DlJ3.cjs.map +1 -0
- package/dist/widgets/extras-loader.d.ts +1 -1
- package/package.json +1 -1
- package/dist/lib/rail.d.ts +0 -20
- package/dist/lib/rail.d.ts.map +0 -1
- package/dist/src-B7GLD1Xs.js.map +0 -1
- package/dist/src-DuYhMbNf.cjs +0 -7
- package/dist/src-DuYhMbNf.cjs.map +0 -1
|
@@ -9,7 +9,7 @@ export declare function captureScript(): {
|
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* Where the extras file sits for a main script at `src`: beside it, or in
|
|
12
|
-
* `dist/` under a short CDN URL (`…/@squadico/chatbot@1.
|
|
12
|
+
* `dist/` under a short CDN URL (`…/@squadico/chatbot@1.6.0`), where jsDelivr
|
|
13
13
|
* and unpkg serve the main file named by the package's `jsdelivr` / `unpkg`
|
|
14
14
|
* fields.
|
|
15
15
|
*/
|
package/package.json
CHANGED
package/dist/lib/rail.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Who the agent rail says is being talked to, and what a click changes.
|
|
3
|
-
*
|
|
4
|
-
* Nothing here routes. The server reads a handle leading a message and keeps
|
|
5
|
-
* the conversation with whoever answered last, so the rail only has to read the
|
|
6
|
-
* holder off the transcript, and make the next message lead with the handle
|
|
7
|
-
* somebody picked — exactly as if they had typed it.
|
|
8
|
-
*/
|
|
9
|
-
import type { ChatMessage } from '../types';
|
|
10
|
-
/** The handle of the agent that answered last, else the one the panel opened on. */
|
|
11
|
-
export declare function activeHandle(messages: ChatMessage[], opened?: string): string | undefined;
|
|
12
|
-
/**
|
|
13
|
-
* The message to send once somebody picked `target` in the rail.
|
|
14
|
-
*
|
|
15
|
-
* Led by the handle when it names somebody else than the agent answering now.
|
|
16
|
-
* A message the visitor already addressed themselves is theirs and left alone:
|
|
17
|
-
* what they typed wins over what they clicked.
|
|
18
|
-
*/
|
|
19
|
-
export declare function addressed(text: string, target: string | undefined, holder: string | undefined): string;
|
|
20
|
-
//# sourceMappingURL=rail.d.ts.map
|
package/dist/lib/rail.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rail.d.ts","sourceRoot":"","sources":["../../src/lib/rail.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAE3C,oFAAoF;AACpF,wBAAgB,YAAY,CAAC,QAAQ,EAAE,WAAW,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAMzF;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAGtG"}
|