botframework-webchat-component 4.18.1-main.20251002.d92f9fb → 4.18.1-main.20251008.96f366b
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/TextBox-BEU2rUID.d.mts +6 -6
- package/dist/TextBox-BEU2rUID.d.ts +6 -6
- package/dist/_dtsroll-chunks/XgxqMcDN-empty-object.d.ts +38 -0
- package/dist/botframework-webchat-component.component.js +1 -1
- package/dist/botframework-webchat-component.component.mjs +1 -1
- package/dist/botframework-webchat-component.d.mts +7 -7
- package/dist/botframework-webchat-component.d.ts +7 -7
- package/dist/botframework-webchat-component.decorator.d.mts +9 -9
- package/dist/botframework-webchat-component.decorator.d.ts +9 -9
- package/dist/botframework-webchat-component.decorator.mjs +1 -1
- package/dist/botframework-webchat-component.decorator.mjs.map +1 -1
- package/dist/botframework-webchat-component.hook.js +1 -1
- package/dist/botframework-webchat-component.hook.mjs +1 -1
- package/dist/botframework-webchat-component.internal.d.mts +23 -16
- package/dist/botframework-webchat-component.internal.d.ts +23 -16
- package/dist/botframework-webchat-component.internal.js +1 -1
- package/dist/botframework-webchat-component.internal.mjs +1 -1
- package/dist/botframework-webchat-component.js +1 -1
- package/dist/botframework-webchat-component.mjs +1 -1
- package/dist/chunk-5PIGLQ27.js +2 -0
- package/dist/chunk-5PIGLQ27.js.map +1 -0
- package/dist/chunk-CLVERWY2.mjs +2 -0
- package/dist/chunk-CLVERWY2.mjs.map +1 -0
- package/dist/{chunk-GQFIO7PQ.mjs → chunk-JNLFCKRZ.mjs} +3 -3
- package/dist/{chunk-GQFIO7PQ.mjs.map → chunk-JNLFCKRZ.mjs.map} +1 -1
- package/dist/{chunk-ARM6KDEN.js → chunk-KSCTCFOO.js} +2 -2
- package/dist/{chunk-ARM6KDEN.js.map → chunk-KSCTCFOO.js.map} +1 -1
- package/dist/{chunk-KWVJBQOL.mjs → chunk-N4ARAHT4.mjs} +2 -2
- package/dist/{chunk-KWVJBQOL.mjs.map → chunk-N4ARAHT4.mjs.map} +1 -1
- package/dist/{chunk-JVHPNRWA.js → chunk-NVCWKHER.js} +2 -2
- package/dist/{chunk-JVHPNRWA.js.map → chunk-NVCWKHER.js.map} +1 -1
- package/dist/{chunk-HMFXYQWA.js → chunk-OI3KYXK3.js} +8 -8
- package/dist/{chunk-HMFXYQWA.js.map → chunk-OI3KYXK3.js.map} +1 -1
- package/dist/{chunk-UT5V3O7Y.mjs → chunk-OUCJ7NTA.mjs} +2 -2
- package/dist/{chunk-OKAKE4OW.mjs → chunk-Q2B4JJGH.mjs} +2 -2
- package/dist/{chunk-OKAKE4OW.mjs.map → chunk-Q2B4JJGH.mjs.map} +1 -1
- package/dist/{chunk-ZQ5JXLOF.js → chunk-V4UF3UH3.js} +2 -2
- package/dist/{chunk-ZQ5JXLOF.js.map → chunk-V4UF3UH3.js.map} +1 -1
- package/dist/component-CcyOIxZA.d.ts +59 -59
- package/dist/component-DJP2vWXb.d.mts +59 -59
- package/dist/hook-CTaaeKhK.d.ts +3 -2
- package/dist/hook-n8v6lR9c.d.mts +3 -2
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +14 -11
- package/src/Utils/createIconComponent.tsx +81 -29
- package/dist/chunk-7XEUBYCM.mjs +0 -2
- package/dist/chunk-7XEUBYCM.mjs.map +0 -1
- package/dist/chunk-F2CRJQTT.js +0 -2
- package/dist/chunk-F2CRJQTT.js.map +0 -1
- /package/dist/{chunk-UT5V3O7Y.mjs.map → chunk-OUCJ7NTA.mjs.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as valibot from 'valibot';
|
|
2
2
|
import { InferInput } from 'valibot';
|
|
3
|
-
import
|
|
3
|
+
import React__default__default from 'react';
|
|
4
4
|
|
|
5
5
|
declare function useSendBoxSpeechInterimsVisible(): [boolean];
|
|
6
6
|
declare const basicSendBoxPropsSchema: valibot.SchemaWithPipe<readonly [valibot.ObjectSchema<{
|
|
@@ -9,16 +9,16 @@ declare const basicSendBoxPropsSchema: valibot.SchemaWithPipe<readonly [valibot.
|
|
|
9
9
|
className?: string;
|
|
10
10
|
}>]>;
|
|
11
11
|
type BasicSendBoxProps = InferInput<typeof basicSendBoxPropsSchema>;
|
|
12
|
-
declare function BasicSendBox(props: BasicSendBoxProps):
|
|
13
|
-
declare const _default$1:
|
|
12
|
+
declare function BasicSendBox(props: BasicSendBoxProps): React__default__default.JSX.Element;
|
|
13
|
+
declare const _default$1: React__default__default.MemoExoticComponent<typeof BasicSendBox>;
|
|
14
14
|
|
|
15
15
|
declare function useMicrophoneButtonClick(): () => void;
|
|
16
16
|
declare function useMicrophoneButtonDisabled(): [boolean];
|
|
17
17
|
type MicrophoneButtonProps = Readonly<{
|
|
18
18
|
className?: string | undefined;
|
|
19
19
|
}>;
|
|
20
|
-
declare const _default:
|
|
21
|
-
({ className }: MicrophoneButtonProps):
|
|
20
|
+
declare const _default: React__default__default.MemoExoticComponent<{
|
|
21
|
+
({ className }: MicrophoneButtonProps): React__default__default.JSX.Element;
|
|
22
22
|
displayName: string;
|
|
23
23
|
}>;
|
|
24
24
|
|
|
@@ -41,6 +41,6 @@ declare function useTextBoxSubmit(): SubmitTextBoxFunction;
|
|
|
41
41
|
declare function useTextBoxValue(): [string, (textBoxValue: string) => void];
|
|
42
42
|
declare const TextBox: ({ className }: Readonly<{
|
|
43
43
|
className?: string | undefined;
|
|
44
|
-
}>) =>
|
|
44
|
+
}>) => React__default__default.JSX.Element;
|
|
45
45
|
|
|
46
46
|
export { TextBox as T, _default$1 as _, _default as a, useMicrophoneButtonDisabled as b, useSendBoxSpeechInterimsVisible as c, useTextBoxSubmit as d, useTextBoxValue as e, useMicrophoneButtonClick as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as valibot from 'valibot';
|
|
2
2
|
import { InferInput } from 'valibot';
|
|
3
|
-
import
|
|
3
|
+
import React__default__default from 'react';
|
|
4
4
|
|
|
5
5
|
declare function useSendBoxSpeechInterimsVisible(): [boolean];
|
|
6
6
|
declare const basicSendBoxPropsSchema: valibot.SchemaWithPipe<readonly [valibot.ObjectSchema<{
|
|
@@ -9,16 +9,16 @@ declare const basicSendBoxPropsSchema: valibot.SchemaWithPipe<readonly [valibot.
|
|
|
9
9
|
className?: string;
|
|
10
10
|
}>]>;
|
|
11
11
|
type BasicSendBoxProps = InferInput<typeof basicSendBoxPropsSchema>;
|
|
12
|
-
declare function BasicSendBox(props: BasicSendBoxProps):
|
|
13
|
-
declare const _default$1:
|
|
12
|
+
declare function BasicSendBox(props: BasicSendBoxProps): React__default__default.JSX.Element;
|
|
13
|
+
declare const _default$1: React__default__default.MemoExoticComponent<typeof BasicSendBox>;
|
|
14
14
|
|
|
15
15
|
declare function useMicrophoneButtonClick(): () => void;
|
|
16
16
|
declare function useMicrophoneButtonDisabled(): [boolean];
|
|
17
17
|
type MicrophoneButtonProps = Readonly<{
|
|
18
18
|
className?: string | undefined;
|
|
19
19
|
}>;
|
|
20
|
-
declare const _default:
|
|
21
|
-
({ className }: MicrophoneButtonProps):
|
|
20
|
+
declare const _default: React__default__default.MemoExoticComponent<{
|
|
21
|
+
({ className }: MicrophoneButtonProps): React__default__default.JSX.Element;
|
|
22
22
|
displayName: string;
|
|
23
23
|
}>;
|
|
24
24
|
|
|
@@ -41,6 +41,6 @@ declare function useTextBoxSubmit(): SubmitTextBoxFunction;
|
|
|
41
41
|
declare function useTextBoxValue(): [string, (textBoxValue: string) => void];
|
|
42
42
|
declare const TextBox: ({ className }: Readonly<{
|
|
43
43
|
className?: string | undefined;
|
|
44
|
-
}>) =>
|
|
44
|
+
}>) => React__default__default.JSX.Element;
|
|
45
45
|
|
|
46
46
|
export { TextBox as T, _default$1 as _, _default as a, useMicrophoneButtonDisabled as b, useSendBoxSpeechInterimsVisible as c, useTextBoxSubmit as d, useTextBoxValue as e, useMicrophoneButtonClick as u };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3
|
+
interface SymbolConstructor {
|
|
4
|
+
readonly observable: symbol;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
declare const emptyObjectSymbol: unique symbol;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
Represents a strictly empty plain object, the `{}` value.
|
|
12
|
+
|
|
13
|
+
When you annotate something as the type `{}`, it can be anything except `null` and `undefined`. This means that you cannot use `{}` to represent an empty plain object ([read more](https://stackoverflow.com/questions/47339869/typescript-empty-object-and-any-difference/52193484#52193484)).
|
|
14
|
+
|
|
15
|
+
@example
|
|
16
|
+
```
|
|
17
|
+
import type {EmptyObject} from 'type-fest';
|
|
18
|
+
|
|
19
|
+
// The following illustrates the problem with `{}`.
|
|
20
|
+
const foo1: {} = {}; // Pass
|
|
21
|
+
const foo2: {} = []; // Pass
|
|
22
|
+
const foo3: {} = 42; // Pass
|
|
23
|
+
const foo4: {} = {a: 1}; // Pass
|
|
24
|
+
|
|
25
|
+
// With `EmptyObject` only the first case is valid.
|
|
26
|
+
const bar1: EmptyObject = {}; // Pass
|
|
27
|
+
const bar2: EmptyObject = 42; // Fail
|
|
28
|
+
const bar3: EmptyObject = []; // Fail
|
|
29
|
+
const bar4: EmptyObject = {a: 1}; // Fail
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Unfortunately, `Record<string, never>`, `Record<keyof any, never>` and `Record<never, never>` do not work. See {@link https://github.com/sindresorhus/type-fest/issues/395 #395}.
|
|
33
|
+
|
|
34
|
+
@category Object
|
|
35
|
+
*/
|
|
36
|
+
type EmptyObject = {[emptyObjectSymbol]?: never};
|
|
37
|
+
|
|
38
|
+
export type { EmptyObject as E };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkOI3KYXK3js = require('./chunk-OI3KYXK3.js');var _chunkUNY4Z36Ajs = require('./chunk-UNY4Z36A.js');var _chunkV4UF3UH3js = require('./chunk-V4UF3UH3.js');require('./chunk-NVCWKHER.js');require('./chunk-5PIGLQ27.js');require('./chunk-DTBTDRBU.js');exports.AccessKeySinkSurface = _chunkOI3KYXK3js.A; exports.AttachmentBar = _chunkV4UF3UH3js.E; exports.AudioContent = _chunkOI3KYXK3js.a; exports.Avatar = _chunkOI3KYXK3js.D; exports.BasicConnectivityStatus = _chunkOI3KYXK3js.x; exports.BasicSendBox = _chunkV4UF3UH3js.$; exports.BasicSendBoxToolbar = _chunkOI3KYXK3js.v; exports.BasicToaster = _chunkOI3KYXK3js.y; exports.BasicTranscript = _chunkOI3KYXK3js.z; exports.BasicWebChat = _chunkOI3KYXK3js.B; exports.Bubble = _chunkOI3KYXK3js.l; exports.Composer = _chunkOI3KYXK3js.w; exports.DictationInterims = _chunkV4UF3UH3js.F; exports.ErrorBox = _chunkOI3KYXK3js.E; exports.FileContent = _chunkOI3KYXK3js.b; exports.HTMLVideoContent = _chunkOI3KYXK3js.g; exports.ImageContent = _chunkOI3KYXK3js.c; exports.LocalizedString = _chunkOI3KYXK3js.e; exports.MicrophoneButton = _chunkV4UF3UH3js.M; exports.ReactWebChat = _chunkOI3KYXK3js.C; exports.SendButton = _chunkV4UF3UH3js.O; exports.SendStatus = _chunkOI3KYXK3js.n; exports.SendTextBox = _chunkV4UF3UH3js.Z; exports.SpeakActivity = _chunkOI3KYXK3js.t; exports.SuggestedActions = _chunkV4UF3UH3js.V; exports.TextArea = _chunkOI3KYXK3js.d; exports.TextContent = _chunkOI3KYXK3js.f; exports.ThemeProvider = _chunkUNY4Z36Ajs.c; exports.Timestamp = _chunkOI3KYXK3js.p; exports.UploadButton = _chunkOI3KYXK3js.u; exports.VideoContent = _chunkOI3KYXK3js.j; exports.VimeoContent = _chunkOI3KYXK3js.h; exports.YouTubeContent = _chunkOI3KYXK3js.i;
|
|
2
2
|
//# sourceMappingURL=botframework-webchat-component.component.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{A as C,B as D,C as E,D as F,E as G,a,b,c,d as k,e as l,f as m,g as n,h as o,i as p,j as q,l as r,n as s,p as t,t as u,u as v,v as w,w as y,x as z,y as A,z as B}from"./chunk-
|
|
1
|
+
import{A as C,B as D,C as E,D as F,E as G,a,b,c,d as k,e as l,f as m,g as n,h as o,i as p,j as q,l as r,n as s,p as t,t as u,u as v,v as w,w as y,x as z,y as A,z as B}from"./chunk-JNLFCKRZ.mjs";import{c as x}from"./chunk-DCGLROWJ.mjs";import{$ as j,E as d,F as e,M as f,O as g,V as h,Z as i}from"./chunk-Q2B4JJGH.mjs";import"./chunk-N4ARAHT4.mjs";import"./chunk-CLVERWY2.mjs";import"./chunk-URQVHMKV.mjs";export{C as AccessKeySinkSurface,d as AttachmentBar,a as AudioContent,F as Avatar,z as BasicConnectivityStatus,j as BasicSendBox,w as BasicSendBoxToolbar,A as BasicToaster,B as BasicTranscript,D as BasicWebChat,r as Bubble,y as Composer,e as DictationInterims,G as ErrorBox,b as FileContent,n as HTMLVideoContent,c as ImageContent,l as LocalizedString,f as MicrophoneButton,E as ReactWebChat,g as SendButton,s as SendStatus,i as SendTextBox,u as SpeakActivity,h as SuggestedActions,k as TextArea,m as TextContent,x as ThemeProvider,t as Timestamp,v as UploadButton,q as VideoContent,o as VimeoContent,p as YouTubeContent};
|
|
2
2
|
//# sourceMappingURL=botframework-webchat-component.component.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ActivityMiddleware, ActivityStatusMiddleware, AttachmentMiddleware } from 'botframework-webchat-api';
|
|
2
2
|
export { concatMiddleware, localize } from 'botframework-webchat-api';
|
|
3
3
|
export { WebChatActivity } from 'botframework-webchat-core';
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
6
|
-
import { EmptyObject } from '
|
|
4
|
+
import * as React__default from 'react';
|
|
5
|
+
import React__default__default, { MutableRefObject, ComponentType, ChangeEvent, FocusEvent, KeyboardEvent, SyntheticEvent } from 'react';
|
|
6
|
+
import { E as EmptyObject } from './_dtsroll-chunks/XgxqMcDN-empty-object.js';
|
|
7
7
|
import { W as WaitUntilable } from './hook-n8v6lR9c.mjs';
|
|
8
8
|
export { S as SendBoxFocusOptions, c as createStyleSet, h as hooks, b as useDictateAbortable, d as useFocus, e as useMakeThumbnail, f as useObserveScrollPosition, g as useObserveTranscriptFocus, i as useRegisterFocusSendBox, j as useRenderMarkdownAsHTML, k as useScrollDown, l as useScrollTo, m as useScrollToEnd, n as useScrollUp, u as useSendFiles, a as useSendMessage, o as useShouldReduceMotion, p as useStyleSet, q as useTransformHTMLContent, r as useTypingIndicatorVisible, s as useWebSpeechPonyfill } from './hook-n8v6lR9c.mjs';
|
|
9
9
|
export { S as AccessKeySinkSurface, x as AttachmentBar, k as AudioContent, r as Avatar, B as BasicConnectivityStatus, j as BasicSendBoxToolbar, _ as BasicToaster, g as BasicTranscript, h as BasicWebChat, i as BasicWebChatProps, s as Bubble, d as Components, C as Composer, e as ComposerProps, y as DictationInterims, w as ErrorBox, l as FileContent, H as HTMLContentTransformEnhancer, a as HTMLContentTransformFunction, b as HTMLContentTransformMiddleware, c as HTMLContentTransformRequest, m as HTMLVideoContent, I as ImageContent, E as LocalizedString, R as ReactWebChat, f as ReactWebChatProps, z as SendButton, u as SendStatus, t as SpeakActivity, A as SuggestedActions, T as TextArea, n as TextContent, F as ThemeProvider, v as Timestamp, D as UploadButton, o as VideoContent, p as VimeoContent, q as YouTubeContent, R as default } from './component-DJP2vWXb.mjs';
|
|
@@ -37,7 +37,7 @@ type ContextType = {
|
|
|
37
37
|
suggestedActionsAccessKey: any;
|
|
38
38
|
webSpeechPonyfill: any;
|
|
39
39
|
};
|
|
40
|
-
declare const context:
|
|
40
|
+
declare const context: React__default.Context<ContextType>;
|
|
41
41
|
|
|
42
42
|
declare function createCoreMiddleware$1(): ActivityMiddleware[];
|
|
43
43
|
|
|
@@ -68,10 +68,10 @@ type InputTargetProps<H> = {
|
|
|
68
68
|
value?: string;
|
|
69
69
|
};
|
|
70
70
|
type PropsOf<T> = T extends ComponentType<infer P> ? P : never;
|
|
71
|
-
declare function withEmoji<T extends ComponentType<P>, P extends InputTargetProps<H> = PropsOf<T>, H extends HTMLInputElement | HTMLTextAreaElement = P extends InputTargetProps<infer H> ? H : never>(componentType: T):
|
|
71
|
+
declare function withEmoji<T extends ComponentType<P>, P extends InputTargetProps<H> = PropsOf<T>, H extends HTMLInputElement | HTMLTextAreaElement = P extends InputTargetProps<infer H> ? H : never>(componentType: T): React__default__default.ForwardRefExoticComponent<React__default__default.PropsWithoutRef<Readonly<Omit<P, "onChange" | "emojiMap"> & {
|
|
72
72
|
emojiMap?: Map<string, string>;
|
|
73
73
|
onChange?: (value: string | undefined) => void;
|
|
74
|
-
}>> &
|
|
74
|
+
}>> & React__default__default.RefAttributes<H>>;
|
|
75
75
|
|
|
76
76
|
declare const buildInfoObject: {
|
|
77
77
|
readonly buildTool?: string | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ActivityMiddleware, ActivityStatusMiddleware, AttachmentMiddleware } from 'botframework-webchat-api';
|
|
2
2
|
export { concatMiddleware, localize } from 'botframework-webchat-api';
|
|
3
3
|
export { WebChatActivity } from 'botframework-webchat-core';
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
6
|
-
import { EmptyObject } from '
|
|
4
|
+
import * as React__default from 'react';
|
|
5
|
+
import React__default__default, { MutableRefObject, ComponentType, ChangeEvent, FocusEvent, KeyboardEvent, SyntheticEvent } from 'react';
|
|
6
|
+
import { E as EmptyObject } from './_dtsroll-chunks/XgxqMcDN-empty-object.js';
|
|
7
7
|
import { W as WaitUntilable } from './hook-CTaaeKhK.js';
|
|
8
8
|
export { S as SendBoxFocusOptions, c as createStyleSet, h as hooks, b as useDictateAbortable, d as useFocus, e as useMakeThumbnail, f as useObserveScrollPosition, g as useObserveTranscriptFocus, i as useRegisterFocusSendBox, j as useRenderMarkdownAsHTML, k as useScrollDown, l as useScrollTo, m as useScrollToEnd, n as useScrollUp, u as useSendFiles, a as useSendMessage, o as useShouldReduceMotion, p as useStyleSet, q as useTransformHTMLContent, r as useTypingIndicatorVisible, s as useWebSpeechPonyfill } from './hook-CTaaeKhK.js';
|
|
9
9
|
export { S as AccessKeySinkSurface, x as AttachmentBar, k as AudioContent, r as Avatar, B as BasicConnectivityStatus, j as BasicSendBoxToolbar, _ as BasicToaster, g as BasicTranscript, h as BasicWebChat, i as BasicWebChatProps, s as Bubble, d as Components, C as Composer, e as ComposerProps, y as DictationInterims, w as ErrorBox, l as FileContent, H as HTMLContentTransformEnhancer, a as HTMLContentTransformFunction, b as HTMLContentTransformMiddleware, c as HTMLContentTransformRequest, m as HTMLVideoContent, I as ImageContent, E as LocalizedString, R as ReactWebChat, f as ReactWebChatProps, z as SendButton, u as SendStatus, t as SpeakActivity, A as SuggestedActions, T as TextArea, n as TextContent, F as ThemeProvider, v as Timestamp, D as UploadButton, o as VideoContent, p as VimeoContent, q as YouTubeContent, R as default } from './component-CcyOIxZA.js';
|
|
@@ -37,7 +37,7 @@ type ContextType = {
|
|
|
37
37
|
suggestedActionsAccessKey: any;
|
|
38
38
|
webSpeechPonyfill: any;
|
|
39
39
|
};
|
|
40
|
-
declare const context:
|
|
40
|
+
declare const context: React__default.Context<ContextType>;
|
|
41
41
|
|
|
42
42
|
declare function createCoreMiddleware$1(): ActivityMiddleware[];
|
|
43
43
|
|
|
@@ -68,10 +68,10 @@ type InputTargetProps<H> = {
|
|
|
68
68
|
value?: string;
|
|
69
69
|
};
|
|
70
70
|
type PropsOf<T> = T extends ComponentType<infer P> ? P : never;
|
|
71
|
-
declare function withEmoji<T extends ComponentType<P>, P extends InputTargetProps<H> = PropsOf<T>, H extends HTMLInputElement | HTMLTextAreaElement = P extends InputTargetProps<infer H> ? H : never>(componentType: T):
|
|
71
|
+
declare function withEmoji<T extends ComponentType<P>, P extends InputTargetProps<H> = PropsOf<T>, H extends HTMLInputElement | HTMLTextAreaElement = P extends InputTargetProps<infer H> ? H : never>(componentType: T): React__default__default.ForwardRefExoticComponent<React__default__default.PropsWithoutRef<Readonly<Omit<P, "onChange" | "emojiMap"> & {
|
|
72
72
|
emojiMap?: Map<string, string>;
|
|
73
73
|
onChange?: (value: string | undefined) => void;
|
|
74
|
-
}>> &
|
|
74
|
+
}>> & React__default__default.RefAttributes<H>>;
|
|
75
75
|
|
|
76
76
|
declare const buildInfoObject: {
|
|
77
77
|
readonly buildTool?: string | undefined;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import * as valibot from 'valibot';
|
|
2
2
|
import { InferInput } from 'valibot';
|
|
3
|
-
import
|
|
3
|
+
import React__default__default, { ReactNode } from 'react';
|
|
4
4
|
|
|
5
5
|
declare const webChatDecoratorPropsSchema: valibot.SchemaWithPipe<readonly [valibot.ObjectSchema<{
|
|
6
|
-
readonly children: valibot.OptionalSchema<valibot.CustomSchema<
|
|
6
|
+
readonly children: valibot.OptionalSchema<valibot.CustomSchema<React__default__default.ReactNode, undefined>, undefined>;
|
|
7
7
|
}, undefined>, valibot.ReadonlyAction<{
|
|
8
|
-
children?:
|
|
8
|
+
children?: React__default__default.ReactNode;
|
|
9
9
|
}>]>;
|
|
10
10
|
type WebChatDecoratorProps = InferInput<typeof webChatDecoratorPropsSchema>;
|
|
11
|
-
declare function WebChatDecorator(props: WebChatDecoratorProps):
|
|
12
|
-
declare const _default$2:
|
|
11
|
+
declare function WebChatDecorator(props: WebChatDecoratorProps): React__default__default.JSX.Element;
|
|
12
|
+
declare const _default$2: React__default__default.MemoExoticComponent<typeof WebChatDecorator>;
|
|
13
13
|
|
|
14
14
|
declare function BorderLoader({ children, showLoader }: Readonly<{
|
|
15
15
|
children?: ReactNode | undefined;
|
|
16
16
|
showLoader?: boolean;
|
|
17
|
-
}>):
|
|
18
|
-
declare const _default$1:
|
|
17
|
+
}>): React__default__default.JSX.Element;
|
|
18
|
+
declare const _default$1: React__default__default.MemoExoticComponent<typeof BorderLoader>;
|
|
19
19
|
|
|
20
20
|
declare function BorderFlair({ children, showFlair }: Readonly<{
|
|
21
21
|
children?: ReactNode | undefined;
|
|
22
22
|
showFlair?: boolean;
|
|
23
|
-
}>):
|
|
24
|
-
declare const _default:
|
|
23
|
+
}>): React__default__default.JSX.Element;
|
|
24
|
+
declare const _default: React__default__default.MemoExoticComponent<typeof BorderFlair>;
|
|
25
25
|
|
|
26
26
|
export { _default as BorderFlair, _default$1 as BorderLoader, _default$2 as WebChatDecorator };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import * as valibot from 'valibot';
|
|
2
2
|
import { InferInput } from 'valibot';
|
|
3
|
-
import
|
|
3
|
+
import React__default__default, { ReactNode } from 'react';
|
|
4
4
|
|
|
5
5
|
declare const webChatDecoratorPropsSchema: valibot.SchemaWithPipe<readonly [valibot.ObjectSchema<{
|
|
6
|
-
readonly children: valibot.OptionalSchema<valibot.CustomSchema<
|
|
6
|
+
readonly children: valibot.OptionalSchema<valibot.CustomSchema<React__default__default.ReactNode, undefined>, undefined>;
|
|
7
7
|
}, undefined>, valibot.ReadonlyAction<{
|
|
8
|
-
children?:
|
|
8
|
+
children?: React__default__default.ReactNode;
|
|
9
9
|
}>]>;
|
|
10
10
|
type WebChatDecoratorProps = InferInput<typeof webChatDecoratorPropsSchema>;
|
|
11
|
-
declare function WebChatDecorator(props: WebChatDecoratorProps):
|
|
12
|
-
declare const _default$2:
|
|
11
|
+
declare function WebChatDecorator(props: WebChatDecoratorProps): React__default__default.JSX.Element;
|
|
12
|
+
declare const _default$2: React__default__default.MemoExoticComponent<typeof WebChatDecorator>;
|
|
13
13
|
|
|
14
14
|
declare function BorderLoader({ children, showLoader }: Readonly<{
|
|
15
15
|
children?: ReactNode | undefined;
|
|
16
16
|
showLoader?: boolean;
|
|
17
|
-
}>):
|
|
18
|
-
declare const _default$1:
|
|
17
|
+
}>): React__default__default.JSX.Element;
|
|
18
|
+
declare const _default$1: React__default__default.MemoExoticComponent<typeof BorderLoader>;
|
|
19
19
|
|
|
20
20
|
declare function BorderFlair({ children, showFlair }: Readonly<{
|
|
21
21
|
children?: ReactNode | undefined;
|
|
22
22
|
showFlair?: boolean;
|
|
23
|
-
}>):
|
|
24
|
-
declare const _default:
|
|
23
|
+
}>): React__default__default.JSX.Element;
|
|
24
|
+
declare const _default: React__default__default.MemoExoticComponent<typeof BorderFlair>;
|
|
25
25
|
|
|
26
26
|
export { _default as BorderFlair, _default$1 as BorderLoader, _default$2 as WebChatDecorator };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as p,c as f}from"./chunk-DCGLROWJ.mjs";import{b as F,c as s,d}from"./chunk-URQVHMKV.mjs";import{createActivityBorderMiddleware as g,DecoratorComposer as M}from"botframework-webchat-api/decorator";import t,{memo as O}from"react";import{object as R,optional as j,pipe as G,readonly as Y}from"valibot";import v,{Fragment as L,memo as C,useCallback as S,useState as N}from"react";import T from"classnames";var l={"border-flair":"wEWpITq_border-flair","border-flair--complete":"wEWpITq_border-flair--complete"},c=l,X=l["border-flair"];var Z=l["border-flair--complete"];function W({children:a,showFlair:r=!0}){let e=d(c),[o,h]=N(!1),x=S(w=>(w.animationName===c["borderAnimation-angle"]||w.animationName===c["borderFlair-animation"])&&h(!0),[]);return!r&&o&&h(!1),v.createElement(L,null,a,r&&v.createElement("div",{className:T(e["border-flair"],o&&e["border-flair--complete"]),onAnimationEnd:x}))}var i=C(W);import m,{Fragment as A,memo as D}from"react";var n={"border-loader__loader":"w17q6fa_border-loader__loader","border-loader__track":"w17q6fa_border-loader__track"},_=n,br=n["border-loader__loader"];var lr=n["border-loader__track"];function B({children:a,showLoader:r=!0}){let e=d(_);return m.createElement(A,null,a,r&&m.createElement("div",{className:e["border-loader__track"]},m.createElement("div",{className:e["border-loader__loader"]})))}var b=D(B);import P,{memo as E}from"react";var z="@property --webchat-decorator-borderFlair-animated-angle{syntax: \"<number>\"; inherits: true; initial-value: 0;}@property --webchat-decorator-borderFlair-animated-color1{syntax: \"<color>\"; inherits: true; initial-value: #0000;}@property --webchat-decorator-borderFlair-animated-color2{syntax: \"<color>\"; inherits: true; initial-value: #0000;}@property --webchat-decorator-borderFlair-animated-color3{syntax: \"<color>\"; inherits: true; initial-value: #0000;}@keyframes borderAnimation-angle{0%{--webchat-decorator-borderFlair-animated-angle: .75}to{--webchat-decorator-borderFlair-animated-angle: 2.75}}@keyframes borderAnimation-color1{0%{--webchat-decorator-borderFlair-animated-color1: var(--webchat-decorator-borderFlair-color1Fade)}33%{--webchat-decorator-borderFlair-animated-color1: var(--webchat-decorator-borderFlair-color1)}83%{--webchat-decorator-borderFlair-animated-color1: var(--webchat-decorator-borderFlair-color1)}to{--webchat-decorator-borderFlair-animated-color1: var(--webchat-decorator-borderFlair-color1Fade)}}@keyframes borderAnimation-color2{0%{--webchat-decorator-borderFlair-animated-color2: var(--webchat-decorator-borderFlair-color2Fade)}33%{--webchat-decorator-borderFlair-animated-color2: var(--webchat-decorator-borderFlair-color2)}83%{--webchat-decorator-borderFlair-animated-color2: var(--webchat-decorator-borderFlair-color2)}to{--webchat-decorator-borderFlair-animated-color2: var(--webchat-decorator-borderFlair-color2Fade)}}@keyframes borderAnimation-color3{0%{--webchat-decorator-borderFlair-animated-color3: var(--webchat-decorator-borderFlair-color3Fade)}33%{--webchat-decorator-borderFlair-animated-color3: var(--webchat-decorator-borderFlair-color3)}83%{--webchat-decorator-borderFlair-animated-color3: var(--webchat-decorator-borderFlair-color3)}to{--webchat-decorator-borderFlair-animated-color3: var(--webchat-decorator-borderFlair-color3Fade)}}.webchat .wEWpITq_border-flair{--webchat-decorator-borderFlair-color1: var(--webchat-borderFlair-color1, var(--webchat__border-animation--color-1));--webchat-decorator-borderFlair-color2: var(--webchat-borderFlair-color2, var(--webchat__border-animation--color-2));--webchat-decorator-borderFlair-color3: var(--webchat-borderFlair-color3, var(--webchat__border-animation--color-3));--webchat-decorator-borderFlair-color1Fade: var(--webchat-borderFlair-color1Fade, transparent);--webchat-decorator-borderFlair-color2Fade: var(--webchat-borderFlair-color2Fade, transparent);--webchat-decorator-borderFlair-color3Fade: var(--webchat-borderFlair-color1Fade, transparent);--webchat-decorator-borderFlair-borderSize: var(--webchat-borderFlair-borderSize, 2px);--webchat-decorator-borderFlair-backgroundSize: calc(100% + (2 * var(--webchat-decorator-borderFlair-borderSize)));--webchat-decorator-borderFlair-borderGradient: linear-gradient(calc(var(--webchat-decorator-borderFlair-animated-angle) * 180deg + 45deg), var(--webchat-decorator-borderFlair-animated-color1), var(--webchat-decorator-borderFlair-animated-color2), var(--webchat-decorator-borderFlair-animated-color3));--webchat-decorator-borderFlair-borderMask: linear-gradient(#fff0, #fff0) padding-box, linear-gradient(#fff, #fff) border-box;background:var(--webchat-decorator-borderFlair-borderGradient) center center / var(--webchat-decorator-borderFlair-backgroundSize) var(--webchat-decorator-borderFlair-backgroundSize);border:var(--webchat-decorator-borderFlair-borderSize) solid transparent;border-radius:inherit;isolation:isolate;-webkit-mask:var(--webchat-decorator-borderFlair-borderMask);-webkit-mask-composite:clear;mask:var(--webchat-decorator-borderFlair-borderMask);pointer-events:none;animation:2s linear forwards borderAnimation-angle,1.2s linear forwards borderAnimation-color1,1.2s linear .2s forwards borderAnimation-color2,1.2s linear .4s forwards borderAnimation-color3;position:absolute;inset:0;mask-composite:intersect}.webchat .wEWpITq_border-flair--complete{animation-play-state:paused}@supports ((-moz-appearance: none)){@keyframes borderFlair-animation{0%{--webchat-decorator-borderFlair-animated: 0}1%{--webchat-decorator-borderFlair-animated: .01}2%{--webchat-decorator-borderFlair-animated: .02}3%{--webchat-decorator-borderFlair-animated: .03}4%{--webchat-decorator-borderFlair-animated: .04}5%{--webchat-decorator-borderFlair-animated: .05}6%{--webchat-decorator-borderFlair-animated: .06}7%{--webchat-decorator-borderFlair-animated: .07}8%{--webchat-decorator-borderFlair-animated: .08}9%{--webchat-decorator-borderFlair-animated: .09}10%{--webchat-decorator-borderFlair-animated: .1}11%{--webchat-decorator-borderFlair-animated: .11}12%{--webchat-decorator-borderFlair-animated: .12}13%{--webchat-decorator-borderFlair-animated: .13}14%{--webchat-decorator-borderFlair-animated: .14}15%{--webchat-decorator-borderFlair-animated: .15}16%{--webchat-decorator-borderFlair-animated: .16}17%{--webchat-decorator-borderFlair-animated: .17}18%{--webchat-decorator-borderFlair-animated: .18}19%{--webchat-decorator-borderFlair-animated: .19}20%{--webchat-decorator-borderFlair-animated: .2}21%{--webchat-decorator-borderFlair-animated: .21}22%{--webchat-decorator-borderFlair-animated: .22}23%{--webchat-decorator-borderFlair-animated: .23}24%{--webchat-decorator-borderFlair-animated: .24}25%{--webchat-decorator-borderFlair-animated: .25}26%{--webchat-decorator-borderFlair-animated: .26}27%{--webchat-decorator-borderFlair-animated: .27}28%{--webchat-decorator-borderFlair-animated: .28}29%{--webchat-decorator-borderFlair-animated: .29}30%{--webchat-decorator-borderFlair-animated: .3}31%{--webchat-decorator-borderFlair-animated: .31}32%{--webchat-decorator-borderFlair-animated: .32}33%{--webchat-decorator-borderFlair-animated: .33}34%{--webchat-decorator-borderFlair-animated: .34}35%{--webchat-decorator-borderFlair-animated: .35}36%{--webchat-decorator-borderFlair-animated: .36}37%{--webchat-decorator-borderFlair-animated: .37}38%{--webchat-decorator-borderFlair-animated: .38}39%{--webchat-decorator-borderFlair-animated: .39}40%{--webchat-decorator-borderFlair-animated: .4}41%{--webchat-decorator-borderFlair-animated: .41}42%{--webchat-decorator-borderFlair-animated: .42}43%{--webchat-decorator-borderFlair-animated: .43}44%{--webchat-decorator-borderFlair-animated: .44}45%{--webchat-decorator-borderFlair-animated: .45}46%{--webchat-decorator-borderFlair-animated: .46}47%{--webchat-decorator-borderFlair-animated: .47}48%{--webchat-decorator-borderFlair-animated: .48}49%{--webchat-decorator-borderFlair-animated: .49}50%{--webchat-decorator-borderFlair-animated: .5}51%{--webchat-decorator-borderFlair-animated: .51}52%{--webchat-decorator-borderFlair-animated: .52}53%{--webchat-decorator-borderFlair-animated: .53}54%{--webchat-decorator-borderFlair-animated: .54}55%{--webchat-decorator-borderFlair-animated: .55}56%{--webchat-decorator-borderFlair-animated: .56}57%{--webchat-decorator-borderFlair-animated: .57}58%{--webchat-decorator-borderFlair-animated: .58}59%{--webchat-decorator-borderFlair-animated: .59}60%{--webchat-decorator-borderFlair-animated: .6}61%{--webchat-decorator-borderFlair-animated: .61}62%{--webchat-decorator-borderFlair-animated: .62}63%{--webchat-decorator-borderFlair-animated: .63}64%{--webchat-decorator-borderFlair-animated: .64}65%{--webchat-decorator-borderFlair-animated: .65}66%{--webchat-decorator-borderFlair-animated: .66}67%{--webchat-decorator-borderFlair-animated: .67}68%{--webchat-decorator-borderFlair-animated: .68}69%{--webchat-decorator-borderFlair-animated: .69}70%{--webchat-decorator-borderFlair-animated: .7}71%{--webchat-decorator-borderFlair-animated: .71}72%{--webchat-decorator-borderFlair-animated: .72}73%{--webchat-decorator-borderFlair-animated: .73}74%{--webchat-decorator-borderFlair-animated: .74}75%{--webchat-decorator-borderFlair-animated: .75}76%{--webchat-decorator-borderFlair-animated: .76}77%{--webchat-decorator-borderFlair-animated: .77}78%{--webchat-decorator-borderFlair-animated: .78}79%{--webchat-decorator-borderFlair-animated: .79}80%{--webchat-decorator-borderFlair-animated: .8}81%{--webchat-decorator-borderFlair-animated: .81}82%{--webchat-decorator-borderFlair-animated: .82}83%{--webchat-decorator-borderFlair-animated: .83}84%{--webchat-decorator-borderFlair-animated: .84}85%{--webchat-decorator-borderFlair-animated: .85}86%{--webchat-decorator-borderFlair-animated: .86}87%{--webchat-decorator-borderFlair-animated: .87}88%{--webchat-decorator-borderFlair-animated: .88}89%{--webchat-decorator-borderFlair-animated: .89}90%{--webchat-decorator-borderFlair-animated: .9}91%{--webchat-decorator-borderFlair-animated: .91}92%{--webchat-decorator-borderFlair-animated: .92}93%{--webchat-decorator-borderFlair-animated: .93}94%{--webchat-decorator-borderFlair-animated: .94}95%{--webchat-decorator-borderFlair-animated: .95}96%{--webchat-decorator-borderFlair-animated: .96}97%{--webchat-decorator-borderFlair-animated: .97}98%{--webchat-decorator-borderFlair-animated: .98}99%{--webchat-decorator-borderFlair-animated: .99}to{--webchat-decorator-borderFlair-animated: 1}}.webchat .wEWpITq_border-flair{--webchat-decorator-borderFlair-animated-angle: calc(.75 + 2 * var(--webchat-decorator-borderFlair-animated));--webchat-decorator-borderFlair-animated-color1: color-mix(in srgb, var(--webchat-decorator-borderFlair-color1) calc((1 - abs(var(--webchat-decorator-borderFlair-animated) * 3 - 1.5))*100%) , var(--webchat-decorator-borderFlair-color1Fade));--webchat-decorator-borderFlair-animated-color2: color-mix(in srgb, var(--webchat-decorator-borderFlair-color2) calc((1 - abs(var(--webchat-decorator-borderFlair-animated) * 3 - 1.75))*100%) , var(--webchat-decorator-borderFlair-color2Fade));--webchat-decorator-borderFlair-animated-color3: color-mix(in srgb, var(--webchat-decorator-borderFlair-color3) calc((1 - abs(var(--webchat-decorator-borderFlair-animated) * 3 - 2))*100%) , var(--webchat-decorator-borderFlair-color3Fade));animation:2s linear forwards borderFlair-animation}}@keyframes borderAnimation-position{0%{width:33%;left:-33%}to{width:33%;left:100%}}.webchat .w17q6fa_border-loader__track{--webchat-decorator-borderLoader-borderSize: var(--webchat-borderLoader-borderSize, 4px);background-color:var(--webchat-colorNeutralBackground6, #e6e6e6);height:var(--webchat-decorator-borderLoader-borderSize);width:100%;position:relative}.webchat .w17q6fa_border-loader__loader{--webchat-decorator-borderLoader-color1: var(--webchat-borderLoader-color1, var(--webchat__border-animation--color-1));--webchat-decorator-borderLoader-color2: var(--webchat-borderLoader-color2, var(--webchat__border-animation--color-2));--webchat-decorator-borderLoader-color3: var(--webchat-borderLoader-color3, var(--webchat__border-animation--color-3));--webchat-decorator-borderLoader-color1Fade: var(--webchat-borderLoader-color1Fade, transparent);--webchat-decorator-borderLoader-color3Fade: var(--webchat-borderLoader-color1Fade, transparent);background:linear-gradient(90deg,var(--webchat-decorator-borderLoader-color1Fade) 0%,var(--webchat-decorator-borderLoader-color1) 35%,var(--webchat-decorator-borderLoader-color2) 70%,var(--webchat-decorator-borderLoader-color3) 92%,var(--webchat-decorator-borderLoader-color3Fade)) no-repeat;height:var(--webchat-decorator-borderLoader-borderSize);isolation:isolate;width:100%;animation:3s linear infinite borderAnimation-position;position:absolute;inset:0}\n",u=p(z);var q=u("component/decorator");function I({children:a}){return P.createElement(f,{styles:q},a)}var y=E(I);var H=Object.freeze([g(function({request:r,Next:e,...o}){return t.createElement(i,{showFlair:o.showFlair??r.livestreamingState==="completing"},t.createElement(e,{...o,showFlair:!1}))}),g(function({request:r,Next:e,...o}){return t.createElement(b,{showLoader:o.showLoader??r.livestreamingState==="preparing"},t.createElement(e,{...o,showLoader:!1}))})]),J=G(R({children:j(F())}),Y());function K(a){let{children:r}=s(J,a);return t.createElement(y,null,t.createElement(M,{middleware:H},r))}var k=O(K);export{i as BorderFlair,b as BorderLoader,k as WebChatDecorator};
|
|
1
|
+
import{b as p,c as f}from"./chunk-DCGLROWJ.mjs";import{b as F,c as s,d}from"./chunk-URQVHMKV.mjs";import{createActivityBorderMiddleware as g,DecoratorComposer as M}from"botframework-webchat-api/decorator";import t,{memo as O}from"react";import{object as R,optional as j,pipe as G,readonly as Y}from"valibot";import v,{Fragment as L,memo as C,useCallback as S,useState as N}from"react";import T from"classnames";var l={"border-flair":"wEWpITq_border-flair","border-flair--complete":"wEWpITq_border-flair--complete"},c=l,X=l["border-flair"];var Z=l["border-flair--complete"];function W({children:a,showFlair:r=!0}){let e=d(c),[o,h]=N(!1),x=S(w=>(w.animationName===c["borderAnimation-angle"]||w.animationName===c["borderFlair-animation"])&&h(!0),[]);return!r&&o&&h(!1),v.createElement(L,null,a,r&&v.createElement("div",{className:T(e["border-flair"],o&&e["border-flair--complete"]),onAnimationEnd:x}))}var i=C(W);import m,{Fragment as A,memo as D}from"react";var n={"border-loader__track":"w17q6fa_border-loader__track","border-loader__loader":"w17q6fa_border-loader__loader"},_=n,br=n["border-loader__track"];var lr=n["border-loader__loader"];function B({children:a,showLoader:r=!0}){let e=d(_);return m.createElement(A,null,a,r&&m.createElement("div",{className:e["border-loader__track"]},m.createElement("div",{className:e["border-loader__loader"]})))}var b=D(B);import P,{memo as E}from"react";var z="@property --webchat-decorator-borderFlair-animated-angle{syntax: \"<number>\"; inherits: true; initial-value: 0;}@property --webchat-decorator-borderFlair-animated-color1{syntax: \"<color>\"; inherits: true; initial-value: #0000;}@property --webchat-decorator-borderFlair-animated-color2{syntax: \"<color>\"; inherits: true; initial-value: #0000;}@property --webchat-decorator-borderFlair-animated-color3{syntax: \"<color>\"; inherits: true; initial-value: #0000;}@keyframes borderAnimation-angle{0%{--webchat-decorator-borderFlair-animated-angle: .75}to{--webchat-decorator-borderFlair-animated-angle: 2.75}}@keyframes borderAnimation-color1{0%{--webchat-decorator-borderFlair-animated-color1: var(--webchat-decorator-borderFlair-color1Fade)}33%{--webchat-decorator-borderFlair-animated-color1: var(--webchat-decorator-borderFlair-color1)}83%{--webchat-decorator-borderFlair-animated-color1: var(--webchat-decorator-borderFlair-color1)}to{--webchat-decorator-borderFlair-animated-color1: var(--webchat-decorator-borderFlair-color1Fade)}}@keyframes borderAnimation-color2{0%{--webchat-decorator-borderFlair-animated-color2: var(--webchat-decorator-borderFlair-color2Fade)}33%{--webchat-decorator-borderFlair-animated-color2: var(--webchat-decorator-borderFlair-color2)}83%{--webchat-decorator-borderFlair-animated-color2: var(--webchat-decorator-borderFlair-color2)}to{--webchat-decorator-borderFlair-animated-color2: var(--webchat-decorator-borderFlair-color2Fade)}}@keyframes borderAnimation-color3{0%{--webchat-decorator-borderFlair-animated-color3: var(--webchat-decorator-borderFlair-color3Fade)}33%{--webchat-decorator-borderFlair-animated-color3: var(--webchat-decorator-borderFlair-color3)}83%{--webchat-decorator-borderFlair-animated-color3: var(--webchat-decorator-borderFlair-color3)}to{--webchat-decorator-borderFlair-animated-color3: var(--webchat-decorator-borderFlair-color3Fade)}}.webchat .wEWpITq_border-flair{--webchat-decorator-borderFlair-color1: var(--webchat-borderFlair-color1, var(--webchat__border-animation--color-1));--webchat-decorator-borderFlair-color2: var(--webchat-borderFlair-color2, var(--webchat__border-animation--color-2));--webchat-decorator-borderFlair-color3: var(--webchat-borderFlair-color3, var(--webchat__border-animation--color-3));--webchat-decorator-borderFlair-color1Fade: var(--webchat-borderFlair-color1Fade, transparent);--webchat-decorator-borderFlair-color2Fade: var(--webchat-borderFlair-color2Fade, transparent);--webchat-decorator-borderFlair-color3Fade: var(--webchat-borderFlair-color1Fade, transparent);--webchat-decorator-borderFlair-borderSize: var(--webchat-borderFlair-borderSize, 2px);--webchat-decorator-borderFlair-backgroundSize: calc(100% + (2 * var(--webchat-decorator-borderFlair-borderSize)));--webchat-decorator-borderFlair-borderGradient: linear-gradient(calc(var(--webchat-decorator-borderFlair-animated-angle) * 180deg + 45deg), var(--webchat-decorator-borderFlair-animated-color1), var(--webchat-decorator-borderFlair-animated-color2), var(--webchat-decorator-borderFlair-animated-color3));--webchat-decorator-borderFlair-borderMask: linear-gradient(#fff0, #fff0) padding-box, linear-gradient(#fff, #fff) border-box;background:var(--webchat-decorator-borderFlair-borderGradient) center center / var(--webchat-decorator-borderFlair-backgroundSize) var(--webchat-decorator-borderFlair-backgroundSize);border:var(--webchat-decorator-borderFlair-borderSize) solid transparent;border-radius:inherit;isolation:isolate;-webkit-mask:var(--webchat-decorator-borderFlair-borderMask);-webkit-mask-composite:clear;mask:var(--webchat-decorator-borderFlair-borderMask);pointer-events:none;animation:2s linear forwards borderAnimation-angle,1.2s linear forwards borderAnimation-color1,1.2s linear .2s forwards borderAnimation-color2,1.2s linear .4s forwards borderAnimation-color3;position:absolute;inset:0;mask-composite:intersect}.webchat .wEWpITq_border-flair--complete{animation-play-state:paused}@supports ((-moz-appearance: none)){@keyframes borderFlair-animation{0%{--webchat-decorator-borderFlair-animated: 0}1%{--webchat-decorator-borderFlair-animated: .01}2%{--webchat-decorator-borderFlair-animated: .02}3%{--webchat-decorator-borderFlair-animated: .03}4%{--webchat-decorator-borderFlair-animated: .04}5%{--webchat-decorator-borderFlair-animated: .05}6%{--webchat-decorator-borderFlair-animated: .06}7%{--webchat-decorator-borderFlair-animated: .07}8%{--webchat-decorator-borderFlair-animated: .08}9%{--webchat-decorator-borderFlair-animated: .09}10%{--webchat-decorator-borderFlair-animated: .1}11%{--webchat-decorator-borderFlair-animated: .11}12%{--webchat-decorator-borderFlair-animated: .12}13%{--webchat-decorator-borderFlair-animated: .13}14%{--webchat-decorator-borderFlair-animated: .14}15%{--webchat-decorator-borderFlair-animated: .15}16%{--webchat-decorator-borderFlair-animated: .16}17%{--webchat-decorator-borderFlair-animated: .17}18%{--webchat-decorator-borderFlair-animated: .18}19%{--webchat-decorator-borderFlair-animated: .19}20%{--webchat-decorator-borderFlair-animated: .2}21%{--webchat-decorator-borderFlair-animated: .21}22%{--webchat-decorator-borderFlair-animated: .22}23%{--webchat-decorator-borderFlair-animated: .23}24%{--webchat-decorator-borderFlair-animated: .24}25%{--webchat-decorator-borderFlair-animated: .25}26%{--webchat-decorator-borderFlair-animated: .26}27%{--webchat-decorator-borderFlair-animated: .27}28%{--webchat-decorator-borderFlair-animated: .28}29%{--webchat-decorator-borderFlair-animated: .29}30%{--webchat-decorator-borderFlair-animated: .3}31%{--webchat-decorator-borderFlair-animated: .31}32%{--webchat-decorator-borderFlair-animated: .32}33%{--webchat-decorator-borderFlair-animated: .33}34%{--webchat-decorator-borderFlair-animated: .34}35%{--webchat-decorator-borderFlair-animated: .35}36%{--webchat-decorator-borderFlair-animated: .36}37%{--webchat-decorator-borderFlair-animated: .37}38%{--webchat-decorator-borderFlair-animated: .38}39%{--webchat-decorator-borderFlair-animated: .39}40%{--webchat-decorator-borderFlair-animated: .4}41%{--webchat-decorator-borderFlair-animated: .41}42%{--webchat-decorator-borderFlair-animated: .42}43%{--webchat-decorator-borderFlair-animated: .43}44%{--webchat-decorator-borderFlair-animated: .44}45%{--webchat-decorator-borderFlair-animated: .45}46%{--webchat-decorator-borderFlair-animated: .46}47%{--webchat-decorator-borderFlair-animated: .47}48%{--webchat-decorator-borderFlair-animated: .48}49%{--webchat-decorator-borderFlair-animated: .49}50%{--webchat-decorator-borderFlair-animated: .5}51%{--webchat-decorator-borderFlair-animated: .51}52%{--webchat-decorator-borderFlair-animated: .52}53%{--webchat-decorator-borderFlair-animated: .53}54%{--webchat-decorator-borderFlair-animated: .54}55%{--webchat-decorator-borderFlair-animated: .55}56%{--webchat-decorator-borderFlair-animated: .56}57%{--webchat-decorator-borderFlair-animated: .57}58%{--webchat-decorator-borderFlair-animated: .58}59%{--webchat-decorator-borderFlair-animated: .59}60%{--webchat-decorator-borderFlair-animated: .6}61%{--webchat-decorator-borderFlair-animated: .61}62%{--webchat-decorator-borderFlair-animated: .62}63%{--webchat-decorator-borderFlair-animated: .63}64%{--webchat-decorator-borderFlair-animated: .64}65%{--webchat-decorator-borderFlair-animated: .65}66%{--webchat-decorator-borderFlair-animated: .66}67%{--webchat-decorator-borderFlair-animated: .67}68%{--webchat-decorator-borderFlair-animated: .68}69%{--webchat-decorator-borderFlair-animated: .69}70%{--webchat-decorator-borderFlair-animated: .7}71%{--webchat-decorator-borderFlair-animated: .71}72%{--webchat-decorator-borderFlair-animated: .72}73%{--webchat-decorator-borderFlair-animated: .73}74%{--webchat-decorator-borderFlair-animated: .74}75%{--webchat-decorator-borderFlair-animated: .75}76%{--webchat-decorator-borderFlair-animated: .76}77%{--webchat-decorator-borderFlair-animated: .77}78%{--webchat-decorator-borderFlair-animated: .78}79%{--webchat-decorator-borderFlair-animated: .79}80%{--webchat-decorator-borderFlair-animated: .8}81%{--webchat-decorator-borderFlair-animated: .81}82%{--webchat-decorator-borderFlair-animated: .82}83%{--webchat-decorator-borderFlair-animated: .83}84%{--webchat-decorator-borderFlair-animated: .84}85%{--webchat-decorator-borderFlair-animated: .85}86%{--webchat-decorator-borderFlair-animated: .86}87%{--webchat-decorator-borderFlair-animated: .87}88%{--webchat-decorator-borderFlair-animated: .88}89%{--webchat-decorator-borderFlair-animated: .89}90%{--webchat-decorator-borderFlair-animated: .9}91%{--webchat-decorator-borderFlair-animated: .91}92%{--webchat-decorator-borderFlair-animated: .92}93%{--webchat-decorator-borderFlair-animated: .93}94%{--webchat-decorator-borderFlair-animated: .94}95%{--webchat-decorator-borderFlair-animated: .95}96%{--webchat-decorator-borderFlair-animated: .96}97%{--webchat-decorator-borderFlair-animated: .97}98%{--webchat-decorator-borderFlair-animated: .98}99%{--webchat-decorator-borderFlair-animated: .99}to{--webchat-decorator-borderFlair-animated: 1}}.webchat .wEWpITq_border-flair{--webchat-decorator-borderFlair-animated-angle: calc(.75 + 2 * var(--webchat-decorator-borderFlair-animated));--webchat-decorator-borderFlair-animated-color1: color-mix(in srgb, var(--webchat-decorator-borderFlair-color1) calc((1 - abs(var(--webchat-decorator-borderFlair-animated) * 3 - 1.5))*100%) , var(--webchat-decorator-borderFlair-color1Fade));--webchat-decorator-borderFlair-animated-color2: color-mix(in srgb, var(--webchat-decorator-borderFlair-color2) calc((1 - abs(var(--webchat-decorator-borderFlair-animated) * 3 - 1.75))*100%) , var(--webchat-decorator-borderFlair-color2Fade));--webchat-decorator-borderFlair-animated-color3: color-mix(in srgb, var(--webchat-decorator-borderFlair-color3) calc((1 - abs(var(--webchat-decorator-borderFlair-animated) * 3 - 2))*100%) , var(--webchat-decorator-borderFlair-color3Fade));animation:2s linear forwards borderFlair-animation}}@keyframes borderAnimation-position{0%{width:33%;left:-33%}to{width:33%;left:100%}}.webchat .w17q6fa_border-loader__track{--webchat-decorator-borderLoader-borderSize: var(--webchat-borderLoader-borderSize, 4px);background-color:var(--webchat-colorNeutralBackground6, #e6e6e6);height:var(--webchat-decorator-borderLoader-borderSize);width:100%;position:relative}.webchat .w17q6fa_border-loader__loader{--webchat-decorator-borderLoader-color1: var(--webchat-borderLoader-color1, var(--webchat__border-animation--color-1));--webchat-decorator-borderLoader-color2: var(--webchat-borderLoader-color2, var(--webchat__border-animation--color-2));--webchat-decorator-borderLoader-color3: var(--webchat-borderLoader-color3, var(--webchat__border-animation--color-3));--webchat-decorator-borderLoader-color1Fade: var(--webchat-borderLoader-color1Fade, transparent);--webchat-decorator-borderLoader-color3Fade: var(--webchat-borderLoader-color1Fade, transparent);background:linear-gradient(90deg,var(--webchat-decorator-borderLoader-color1Fade) 0%,var(--webchat-decorator-borderLoader-color1) 35%,var(--webchat-decorator-borderLoader-color2) 70%,var(--webchat-decorator-borderLoader-color3) 92%,var(--webchat-decorator-borderLoader-color3Fade)) no-repeat;height:var(--webchat-decorator-borderLoader-borderSize);isolation:isolate;width:100%;animation:3s linear infinite borderAnimation-position;position:absolute;inset:0}\n",u=p(z);var q=u("component/decorator");function I({children:a}){return P.createElement(f,{styles:q},a)}var y=E(I);var H=Object.freeze([g(function({request:r,Next:e,...o}){return t.createElement(i,{showFlair:o.showFlair??r.livestreamingState==="completing"},t.createElement(e,{...o,showFlair:!1}))}),g(function({request:r,Next:e,...o}){return t.createElement(b,{showLoader:o.showLoader??r.livestreamingState==="preparing"},t.createElement(e,{...o,showLoader:!1}))})]),J=G(R({children:j(F())}),Y());function K(a){let{children:r}=s(J,a);return t.createElement(y,null,t.createElement(M,{middleware:H},r))}var k=O(K);export{i as BorderFlair,b as BorderLoader,k as WebChatDecorator};
|
|
2
2
|
//# sourceMappingURL=botframework-webchat-component.decorator.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/decorator/private/WebChatDecorator.tsx","../src/decorator/private/BorderFlair.tsx","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/component/src/decorator/private/BorderFlair.module.css?css_module","../src/decorator/private/BorderLoader.tsx","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/component/src/decorator/private/BorderLoader.module.css?css_module","../src/decorator/private/WebChatTheme.tsx","../src/decorator/private/createStyles.ts"],"sourcesContent":["/* eslint-disable prefer-arrow-callback */\nimport {\n createActivityBorderMiddleware,\n DecoratorComposer,\n type DecoratorMiddleware\n} from 'botframework-webchat-api/decorator';\nimport { reactNode, validateProps } from '@msinternal/botframework-webchat-react-valibot';\nimport React, { memo } from 'react';\nimport { object, optional, pipe, readonly, type InferInput } from 'valibot';\n\nimport BorderFlair from './BorderFlair';\nimport BorderLoader from './BorderLoader';\nimport WebChatTheme from './WebChatTheme';\n\nconst middleware: readonly DecoratorMiddleware[] = Object.freeze([\n createActivityBorderMiddleware(function BorderFlairDecorator({ request, Next, ...props }) {\n return (\n <BorderFlair showFlair={props.showFlair ?? request.livestreamingState === 'completing'}>\n <Next {...props} showFlair={false} />\n </BorderFlair>\n );\n }),\n createActivityBorderMiddleware(function BorderLoaderDecorator({ request, Next, ...props }) {\n return (\n <BorderLoader showLoader={props.showLoader ?? request.livestreamingState === 'preparing'}>\n <Next {...props} showLoader={false} />\n </BorderLoader>\n );\n })\n]);\n\nconst webChatDecoratorPropsSchema = pipe(\n object({\n children: optional(reactNode())\n }),\n readonly()\n);\n\ntype WebChatDecoratorProps = InferInput<typeof webChatDecoratorPropsSchema>;\n\nfunction WebChatDecorator(props: WebChatDecoratorProps) {\n const { children } = validateProps(webChatDecoratorPropsSchema, props);\n\n return (\n <WebChatTheme>\n <DecoratorComposer middleware={middleware}>{children}</DecoratorComposer>\n </WebChatTheme>\n );\n}\n\nexport default memo(WebChatDecorator);\nexport { webChatDecoratorPropsSchema, type WebChatDecoratorProps };\n","import React, { Fragment, memo, useCallback, useState, type ReactNode } from 'react';\nimport cx from 'classnames';\nimport { useStyles } from '@msinternal/botframework-webchat-styles/react';\n\nimport styles from './BorderFlair.module.css';\n\nfunction BorderFlair({\n children,\n showFlair = true\n}: Readonly<{ children?: ReactNode | undefined; showFlair?: boolean }>) {\n const classNames = useStyles(styles);\n const [isComplete, setComplete] = useState(false);\n\n const handleAnimationEnd = useCallback(\n event =>\n (event.animationName === styles['borderAnimation-angle'] ||\n event.animationName === styles['borderFlair-animation']) &&\n setComplete(true),\n []\n );\n\n if (!showFlair && isComplete) {\n setComplete(false);\n }\n\n return (\n <Fragment>\n {children}\n {showFlair && (\n <div\n className={cx(classNames['border-flair'], isComplete && classNames['border-flair--complete'])}\n onAnimationEnd={handleAnimationEnd}\n />\n )}\n </Fragment>\n );\n}\n\nexport default memo(BorderFlair);\n","import \"/__w/1/s/BotFramework-WebChat/packages/component/src/decorator/private/BorderFlair.module_built.css\";\nconst classes = {\"border-flair\":\"wEWpITq_border-flair\",\"border-flair--complete\":\"wEWpITq_border-flair--complete\"}\nexport default classes\n\nconst _border_flair0 = classes[\"border-flair\"]\nexport { _border_flair0 as \"border-flair\" }\n\nconst _border_flair__complete0 = classes[\"border-flair--complete\"]\nexport { _border_flair__complete0 as \"border-flair--complete\" }\n","import React, { Fragment, memo, type ReactNode } from 'react';\nimport { useStyles } from '@msinternal/botframework-webchat-styles/react';\n\nimport styles from './BorderLoader.module.css';\n\nfunction BorderLoader({\n children,\n showLoader = true\n}: Readonly<{ children?: ReactNode | undefined; showLoader?: boolean }>) {\n const classNames = useStyles(styles);\n\n return (\n <Fragment>\n {children}\n {showLoader && (\n <div className={classNames['border-loader__track']}>\n <div className={classNames['border-loader__loader']} />\n </div>\n )}\n </Fragment>\n );\n}\n\nexport default memo(BorderLoader);\n","import \"/__w/1/s/BotFramework-WebChat/packages/component/src/decorator/private/BorderLoader.module_built.css\";\nconst classes = {\"border-
|
|
1
|
+
{"version":3,"sources":["../src/decorator/private/WebChatDecorator.tsx","../src/decorator/private/BorderFlair.tsx","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/component/src/decorator/private/BorderFlair.module.css?css_module","../src/decorator/private/BorderLoader.tsx","unplugin-lightningcss:/__w/1/s/BotFramework-WebChat/packages/component/src/decorator/private/BorderLoader.module.css?css_module","../src/decorator/private/WebChatTheme.tsx","../src/decorator/private/createStyles.ts"],"sourcesContent":["/* eslint-disable prefer-arrow-callback */\nimport {\n createActivityBorderMiddleware,\n DecoratorComposer,\n type DecoratorMiddleware\n} from 'botframework-webchat-api/decorator';\nimport { reactNode, validateProps } from '@msinternal/botframework-webchat-react-valibot';\nimport React, { memo } from 'react';\nimport { object, optional, pipe, readonly, type InferInput } from 'valibot';\n\nimport BorderFlair from './BorderFlair';\nimport BorderLoader from './BorderLoader';\nimport WebChatTheme from './WebChatTheme';\n\nconst middleware: readonly DecoratorMiddleware[] = Object.freeze([\n createActivityBorderMiddleware(function BorderFlairDecorator({ request, Next, ...props }) {\n return (\n <BorderFlair showFlair={props.showFlair ?? request.livestreamingState === 'completing'}>\n <Next {...props} showFlair={false} />\n </BorderFlair>\n );\n }),\n createActivityBorderMiddleware(function BorderLoaderDecorator({ request, Next, ...props }) {\n return (\n <BorderLoader showLoader={props.showLoader ?? request.livestreamingState === 'preparing'}>\n <Next {...props} showLoader={false} />\n </BorderLoader>\n );\n })\n]);\n\nconst webChatDecoratorPropsSchema = pipe(\n object({\n children: optional(reactNode())\n }),\n readonly()\n);\n\ntype WebChatDecoratorProps = InferInput<typeof webChatDecoratorPropsSchema>;\n\nfunction WebChatDecorator(props: WebChatDecoratorProps) {\n const { children } = validateProps(webChatDecoratorPropsSchema, props);\n\n return (\n <WebChatTheme>\n <DecoratorComposer middleware={middleware}>{children}</DecoratorComposer>\n </WebChatTheme>\n );\n}\n\nexport default memo(WebChatDecorator);\nexport { webChatDecoratorPropsSchema, type WebChatDecoratorProps };\n","import React, { Fragment, memo, useCallback, useState, type ReactNode } from 'react';\nimport cx from 'classnames';\nimport { useStyles } from '@msinternal/botframework-webchat-styles/react';\n\nimport styles from './BorderFlair.module.css';\n\nfunction BorderFlair({\n children,\n showFlair = true\n}: Readonly<{ children?: ReactNode | undefined; showFlair?: boolean }>) {\n const classNames = useStyles(styles);\n const [isComplete, setComplete] = useState(false);\n\n const handleAnimationEnd = useCallback(\n event =>\n (event.animationName === styles['borderAnimation-angle'] ||\n event.animationName === styles['borderFlair-animation']) &&\n setComplete(true),\n []\n );\n\n if (!showFlair && isComplete) {\n setComplete(false);\n }\n\n return (\n <Fragment>\n {children}\n {showFlair && (\n <div\n className={cx(classNames['border-flair'], isComplete && classNames['border-flair--complete'])}\n onAnimationEnd={handleAnimationEnd}\n />\n )}\n </Fragment>\n );\n}\n\nexport default memo(BorderFlair);\n","import \"/__w/1/s/BotFramework-WebChat/packages/component/src/decorator/private/BorderFlair.module_built.css\";\nconst classes = {\"border-flair\":\"wEWpITq_border-flair\",\"border-flair--complete\":\"wEWpITq_border-flair--complete\"}\nexport default classes\n\nconst _border_flair0 = classes[\"border-flair\"]\nexport { _border_flair0 as \"border-flair\" }\n\nconst _border_flair__complete0 = classes[\"border-flair--complete\"]\nexport { _border_flair__complete0 as \"border-flair--complete\" }\n","import React, { Fragment, memo, type ReactNode } from 'react';\nimport { useStyles } from '@msinternal/botframework-webchat-styles/react';\n\nimport styles from './BorderLoader.module.css';\n\nfunction BorderLoader({\n children,\n showLoader = true\n}: Readonly<{ children?: ReactNode | undefined; showLoader?: boolean }>) {\n const classNames = useStyles(styles);\n\n return (\n <Fragment>\n {children}\n {showLoader && (\n <div className={classNames['border-loader__track']}>\n <div className={classNames['border-loader__loader']} />\n </div>\n )}\n </Fragment>\n );\n}\n\nexport default memo(BorderLoader);\n","import \"/__w/1/s/BotFramework-WebChat/packages/component/src/decorator/private/BorderLoader.module_built.css\";\nconst classes = {\"border-loader__track\":\"w17q6fa_border-loader__track\",\"border-loader__loader\":\"w17q6fa_border-loader__loader\"}\nexport default classes\n\nconst _border_loader__track0 = classes[\"border-loader__track\"]\nexport { _border_loader__track0 as \"border-loader__track\" }\n\nconst _border_loader__loader0 = classes[\"border-loader__loader\"]\nexport { _border_loader__loader0 as \"border-loader__loader\" }\n","import React, { memo, type ReactNode } from 'react';\n\nimport ThemeProvider from '../../providers/Theme/ThemeProvider';\nimport createStyles from './createStyles';\n\ntype WebChatThemeProps = Readonly<{\n readonly children?: ReactNode | undefined;\n}>;\n\nconst styles = createStyles('component/decorator');\n\nfunction WebChatTheme({ children }: WebChatThemeProps) {\n return <ThemeProvider styles={styles}>{children}</ThemeProvider>;\n}\n\nexport default memo(WebChatTheme);\nexport { type WebChatThemeProps };\n","import { makeCreateStyles } from '@msinternal/botframework-webchat-styles';\n\nexport const decoratorStyleContent = '@--DECORATOR-STYLES-CONTENT--@';\n\nexport default makeCreateStyles(decoratorStyleContent);\n"],"mappings":"kGACA,OACE,kCAAAA,EACA,qBAAAC,MAEK,qCAEP,OAAOC,GAAS,QAAAC,MAAY,QAC5B,OAAS,UAAAC,EAAQ,YAAAC,EAAU,QAAAC,EAAM,YAAAC,MAAiC,UCRlE,OAAOC,GAAS,YAAAC,EAAU,QAAAC,EAAM,eAAAC,EAAa,YAAAC,MAAgC,QAC7E,OAAOC,MAAQ,aCAf,IAAMC,EAAU,CAAC,eAAe,uBAAuB,yBAAyB,gCAAgC,EACzGC,EAAQD,EAETE,EAAiBF,EAAQ,cAAc,EAG7C,IAAMG,EAA2BC,EAAQ,wBAAwB,EDDjE,SAASC,EAAY,CACnB,SAAAC,EACA,UAAAC,EAAY,EACd,EAAwE,CACtE,IAAMC,EAAaC,EAAUC,CAAM,EAC7B,CAACC,EAAYC,CAAW,EAAIC,EAAS,EAAK,EAE1CC,EAAqBC,EACzBC,IACGA,EAAM,gBAAkBN,EAAO,uBAAuB,GACrDM,EAAM,gBAAkBN,EAAO,uBAAuB,IACxDE,EAAY,EAAI,EAClB,CAAC,CACH,EAEA,MAAI,CAACL,GAAaI,GAChBC,EAAY,EAAK,EAIjBK,EAAA,cAACC,EAAA,KACEZ,EACAC,GACCU,EAAA,cAAC,OACC,UAAWE,EAAGX,EAAW,cAAc,EAAGG,GAAcH,EAAW,wBAAwB,CAAC,EAC5F,eAAgBM,EAClB,CAEJ,CAEJ,CAEA,IAAOM,EAAQC,EAAKhB,CAAW,EEtC/B,OAAOiB,GAAS,YAAAC,EAAU,QAAAC,MAA4B,QCCtD,IAAMC,EAAU,CAAC,uBAAuB,+BAA+B,wBAAwB,+BAA+B,EACvHC,EAAQD,EAETE,GAAyBF,EAAQ,sBAAsB,EAG7D,IAAMG,GAA0BC,EAAQ,uBAAuB,EDF/D,SAASC,EAAa,CACpB,SAAAC,EACA,WAAAC,EAAa,EACf,EAAyE,CACvE,IAAMC,EAAaC,EAAUC,CAAM,EAEnC,OACEC,EAAA,cAACC,EAAA,KACEN,EACAC,GACCI,EAAA,cAAC,OAAI,UAAWH,EAAW,sBAAsB,GAC/CG,EAAA,cAAC,OAAI,UAAWH,EAAW,uBAAuB,EAAG,CACvD,CAEJ,CAEJ,CAEA,IAAOK,EAAQC,EAAKT,CAAY,EEvBhC,OAAOU,GAAS,QAAAC,MAA4B,QCErC,IAAMC,EAAwB,inWAE9BC,EAAQC,EAAiBF,CAAqB,EDKrD,IAAMG,EAASC,EAAa,qBAAqB,EAEjD,SAASC,EAAa,CAAE,SAAAC,CAAS,EAAsB,CACrD,OAAOC,EAAA,cAACC,EAAA,CAAc,OAAQL,GAASG,CAAS,CAClD,CAEA,IAAOG,EAAQC,EAAKL,CAAY,ELDhC,IAAMM,EAA6C,OAAO,OAAO,CAC/DC,EAA+B,SAA8B,CAAE,QAAAC,EAAS,KAAAC,EAAM,GAAGC,CAAM,EAAG,CACxF,OACEC,EAAA,cAACC,EAAA,CAAY,UAAWF,EAAM,WAAaF,EAAQ,qBAAuB,cACxEG,EAAA,cAACF,EAAA,CAAM,GAAGC,EAAO,UAAW,GAAO,CACrC,CAEJ,CAAC,EACDH,EAA+B,SAA+B,CAAE,QAAAC,EAAS,KAAAC,EAAM,GAAGC,CAAM,EAAG,CACzF,OACEC,EAAA,cAACE,EAAA,CAAa,WAAYH,EAAM,YAAcF,EAAQ,qBAAuB,aAC3EG,EAAA,cAACF,EAAA,CAAM,GAAGC,EAAO,WAAY,GAAO,CACtC,CAEJ,CAAC,CACH,CAAC,EAEKI,EAA8BC,EAClCC,EAAO,CACL,SAAUC,EAASC,EAAU,CAAC,CAChC,CAAC,EACDC,EAAS,CACX,EAIA,SAASC,EAAiBV,EAA8B,CACtD,GAAM,CAAE,SAAAW,CAAS,EAAIC,EAAcR,EAA6BJ,CAAK,EAErE,OACEC,EAAA,cAACY,EAAA,KACCZ,EAAA,cAACa,EAAA,CAAkB,WAAYlB,GAAae,CAAS,CACvD,CAEJ,CAEA,IAAOI,EAAQC,EAAKN,CAAgB","names":["createActivityBorderMiddleware","DecoratorComposer","React","memo","object","optional","pipe","readonly","React","Fragment","memo","useCallback","useState","cx","classes","BorderFlair_module_default","_border_flair0","_border_flair__complete0","classes","BorderFlair","children","showFlair","classNames","f","BorderFlair_module_default","isComplete","setComplete","useState","handleAnimationEnd","useCallback","event","React","Fragment","cx","BorderFlair_default","memo","React","Fragment","memo","classes","BorderLoader_module_default","_border_loader__track0","_border_loader__loader0","classes","BorderLoader","children","showLoader","classNames","f","BorderLoader_module_default","React","Fragment","BorderLoader_default","memo","React","memo","decoratorStyleContent","createStyles_default","r","styles","createStyles_default","WebChatTheme","children","React","ThemeProvider_default","WebChatTheme_default","memo","middleware","createActivityBorderMiddleware","request","Next","props","React","BorderFlair_default","BorderLoader_default","webChatDecoratorPropsSchema","pipe","object","optional","c","readonly","WebChatDecorator","children","o","WebChatTheme_default","DecoratorComposer","WebChatDecorator_default","memo"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKSCTCFOOjs = require('./chunk-KSCTCFOO.js');var _chunkV4UF3UH3js = require('./chunk-V4UF3UH3.js');var _chunk5PIGLQ27js = require('./chunk-5PIGLQ27.js');require('./chunk-DTBTDRBU.js');exports.useActiveTyping = _chunkKSCTCFOOjs.b; exports.useActivities = _chunkKSCTCFOOjs.c; exports.useActivityKeys = _chunkKSCTCFOOjs.d; exports.useActivityKeysByRead = _chunkKSCTCFOOjs.e; exports.useAvatarForBot = _chunkKSCTCFOOjs.f; exports.useAvatarForUser = _chunkKSCTCFOOjs.g; exports.useBuildRenderActivityCallback = _chunkKSCTCFOOjs.h; exports.useByteFormatter = _chunkKSCTCFOOjs.i; exports.useConnectivityStatus = _chunkKSCTCFOOjs.j; exports.useCreateActivityRenderer = _chunkKSCTCFOOjs.k; exports.useCreateActivityStatusRenderer = _chunkKSCTCFOOjs.l; exports.useCreateAttachmentForScreenReaderRenderer = _chunkKSCTCFOOjs.m; exports.useCreateAvatarRenderer = _chunkKSCTCFOOjs.n; exports.useCreateScrollToEndButtonRenderer = _chunkKSCTCFOOjs.o; exports.useDateFormatter = _chunkKSCTCFOOjs.p; exports.useDebouncedNotifications = _chunkKSCTCFOOjs.q; exports.useDictateAbortable = _chunkV4UF3UH3js.i; exports.useDictateInterims = _chunkKSCTCFOOjs.r; exports.useDictateState = _chunkKSCTCFOOjs.s; exports.useDirection = _chunkKSCTCFOOjs.t; exports.useDisabled = _chunkKSCTCFOOjs.u; exports.useDismissNotification = _chunkKSCTCFOOjs.v; exports.useEmitTypingIndicator = _chunkKSCTCFOOjs.w; exports.useFocus = _chunkV4UF3UH3js.l; exports.useGetActivitiesByKey = _chunkKSCTCFOOjs.x; exports.useGetActivityByKey = _chunkKSCTCFOOjs.y; exports.useGetHasAcknowledgedByActivityKey = _chunkKSCTCFOOjs.z; exports.useGetKeyByActivity = _chunkKSCTCFOOjs.A; exports.useGetKeyByActivityId = _chunkKSCTCFOOjs.B; exports.useGetSendTimeoutForActivity = _chunkKSCTCFOOjs.C; exports.useGrammars = _chunkKSCTCFOOjs.D; exports.useGroupActivities = _chunkKSCTCFOOjs.E; exports.useGroupActivitiesByName = _chunkKSCTCFOOjs.F; exports.useGroupTimestamp = _chunkKSCTCFOOjs.G; exports.useLanguage = _chunkKSCTCFOOjs.H; exports.useLastAcknowledgedActivityKey = _chunkKSCTCFOOjs.I; exports.useLastReadActivityKey = _chunkKSCTCFOOjs.J; exports.useLocalizer = _chunkKSCTCFOOjs.K; exports.useMakeThumbnail = _chunkV4UF3UH3js.o; exports.useMarkActivityAsSpoken = _chunkKSCTCFOOjs.L; exports.useMarkActivityKeyAsRead = _chunkKSCTCFOOjs.M; exports.useMarkAllAsAcknowledged = _chunkKSCTCFOOjs.N; exports.useMicrophoneButtonClick = _chunkV4UF3UH3js.K; exports.useMicrophoneButtonDisabled = _chunkV4UF3UH3js.L; exports.useNotifications = _chunkKSCTCFOOjs.O; exports.useObserveScrollPosition = _chunkV4UF3UH3js.p; exports.useObserveTranscriptFocus = _chunkV4UF3UH3js.q; exports.usePerformCardAction = _chunkKSCTCFOOjs.P; exports.usePonyfill = _chunkKSCTCFOOjs.Q; exports.usePostActivity = _chunkKSCTCFOOjs.R; exports.useReferenceGrammarID = _chunkKSCTCFOOjs.S; exports.useRegisterFocusSendBox = _chunkV4UF3UH3js.k; exports.useRelativeTimeFormatter = _chunkKSCTCFOOjs.T; exports.useRenderAttachment = _chunkKSCTCFOOjs.U; exports.useRenderMarkdownAsHTML = _chunkV4UF3UH3js.e; exports.useRenderToast = _chunkKSCTCFOOjs.V; exports.useRenderTypingIndicator = _chunkKSCTCFOOjs.W; exports.useScrollDown = _chunkV4UF3UH3js.t; exports.useScrollTo = _chunkV4UF3UH3js.u; exports.useScrollToEnd = _chunkV4UF3UH3js.v; exports.useScrollUp = _chunkV4UF3UH3js.w; exports.useSendBoxAttachments = _chunkKSCTCFOOjs.X; exports.useSendBoxSpeechInterimsVisible = _chunkV4UF3UH3js._; exports.useSendBoxValue = _chunkKSCTCFOOjs.Y; exports.useSendEvent = _chunkKSCTCFOOjs.Z; exports.useSendFiles = _chunkV4UF3UH3js.x; exports.useSendMessage = _chunkV4UF3UH3js.y; exports.useSendMessageBack = _chunkKSCTCFOOjs._; exports.useSendPostBack = _chunkKSCTCFOOjs.$; exports.useSendStatusByActivityKey = _chunkKSCTCFOOjs.aa; exports.useSendTimeoutForActivity = _chunkKSCTCFOOjs.ba; exports.useSendTypingIndicator = _chunkKSCTCFOOjs.ca; exports.useSetNotification = _chunkKSCTCFOOjs.da; exports.useShouldReduceMotion = _chunkV4UF3UH3js.g; exports.useShouldSpeakIncomingActivity = _chunkKSCTCFOOjs.ea; exports.useStartDictate = _chunkKSCTCFOOjs.fa; exports.useStopDictate = _chunkKSCTCFOOjs.ga; exports.useStyleOptions = _chunkKSCTCFOOjs.ha; exports.useStyleSet = _chunk5PIGLQ27js.c; exports.useSubmitSendBox = _chunkKSCTCFOOjs.ia; exports.useSuggestedActions = _chunkKSCTCFOOjs.ja; exports.useSuggestedActionsHooks = _chunkKSCTCFOOjs.ka; exports.useTextBoxSubmit = _chunkV4UF3UH3js.X; exports.useTextBoxValue = _chunkV4UF3UH3js.Y; exports.useTimeoutForSend = _chunkKSCTCFOOjs.la; exports.useTrackDimension = _chunkKSCTCFOOjs.ma; exports.useTrackEvent = _chunkKSCTCFOOjs.na; exports.useTrackException = _chunkKSCTCFOOjs.oa; exports.useTrackTiming = _chunkKSCTCFOOjs.pa; exports.useTransformHTMLContent = _chunkV4UF3UH3js.d; exports.useTypingIndicatorVisible = _chunkV4UF3UH3js.A; exports.useUIState = _chunkKSCTCFOOjs.qa; exports.useUserID = _chunkKSCTCFOOjs.ra; exports.useUsername = _chunkKSCTCFOOjs.sa; exports.useVoiceSelector = _chunkKSCTCFOOjs.ta; exports.useWebSpeechPonyfill = _chunkV4UF3UH3js.z;
|
|
2
2
|
//# sourceMappingURL=botframework-webchat-component.hook.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$ as va,A as W,B as X,C as Y,D as Z,E as _,F as $,G as aa,H as ba,I as ca,J as da,K as ea,L as fa,M as ga,N as ha,O as ia,P as ja,Q as ka,R as la,S as ma,T as na,U as oa,V as pa,W as qa,X as ra,Y as sa,Z as ta,_ as ua,aa as wa,b as x,ba as xa,c as y,ca as ya,d as z,da as za,e as A,ea as Aa,f as B,fa as Ba,g as C,ga as Ca,h as D,ha as Da,i as E,ia as Ea,j as F,ja as Fa,k as G,ka as Ga,l as H,la as Ha,m as I,ma as Ia,n as J,na as Ja,o as K,oa as Ka,p as L,pa as La,q as M,qa as Ma,r as N,ra as Na,s as O,sa as Oa,t as P,ta as Pa,u as Q,v as R,w as S,x as T,y as U,z as V}from"./chunk-
|
|
1
|
+
import{$ as va,A as W,B as X,C as Y,D as Z,E as _,F as $,G as aa,H as ba,I as ca,J as da,K as ea,L as fa,M as ga,N as ha,O as ia,P as ja,Q as ka,R as la,S as ma,T as na,U as oa,V as pa,W as qa,X as ra,Y as sa,Z as ta,_ as ua,aa as wa,b as x,ba as xa,c as y,ca as ya,d as z,da as za,e as A,ea as Aa,f as B,fa as Ba,g as C,ga as Ca,h as D,ha as Da,i as E,ia as Ea,j as F,ja as Fa,k as G,ka as Ga,l as H,la as Ha,m as I,ma as Ia,n as J,na as Ja,o as K,oa as Ka,p as L,pa as La,q as M,qa as Ma,r as N,ra as Na,s as O,sa as Oa,t as P,ta as Pa,u as Q,v as R,w as S,x as T,y as U,z as V}from"./chunk-OUCJ7NTA.mjs";import{A as r,K as s,L as t,X as u,Y as v,_ as w,d as b,e as c,g as d,i as e,k as f,l as g,o as h,p as i,q as j,t as k,u as l,v as m,w as n,x as o,y as p,z as q}from"./chunk-Q2B4JJGH.mjs";import{c as a}from"./chunk-CLVERWY2.mjs";import"./chunk-URQVHMKV.mjs";export{x as useActiveTyping,y as useActivities,z as useActivityKeys,A as useActivityKeysByRead,B as useAvatarForBot,C as useAvatarForUser,D as useBuildRenderActivityCallback,E as useByteFormatter,F as useConnectivityStatus,G as useCreateActivityRenderer,H as useCreateActivityStatusRenderer,I as useCreateAttachmentForScreenReaderRenderer,J as useCreateAvatarRenderer,K as useCreateScrollToEndButtonRenderer,L as useDateFormatter,M as useDebouncedNotifications,e as useDictateAbortable,N as useDictateInterims,O as useDictateState,P as useDirection,Q as useDisabled,R as useDismissNotification,S as useEmitTypingIndicator,g as useFocus,T as useGetActivitiesByKey,U as useGetActivityByKey,V as useGetHasAcknowledgedByActivityKey,W as useGetKeyByActivity,X as useGetKeyByActivityId,Y as useGetSendTimeoutForActivity,Z as useGrammars,_ as useGroupActivities,$ as useGroupActivitiesByName,aa as useGroupTimestamp,ba as useLanguage,ca as useLastAcknowledgedActivityKey,da as useLastReadActivityKey,ea as useLocalizer,h as useMakeThumbnail,fa as useMarkActivityAsSpoken,ga as useMarkActivityKeyAsRead,ha as useMarkAllAsAcknowledged,s as useMicrophoneButtonClick,t as useMicrophoneButtonDisabled,ia as useNotifications,i as useObserveScrollPosition,j as useObserveTranscriptFocus,ja as usePerformCardAction,ka as usePonyfill,la as usePostActivity,ma as useReferenceGrammarID,f as useRegisterFocusSendBox,na as useRelativeTimeFormatter,oa as useRenderAttachment,c as useRenderMarkdownAsHTML,pa as useRenderToast,qa as useRenderTypingIndicator,k as useScrollDown,l as useScrollTo,m as useScrollToEnd,n as useScrollUp,ra as useSendBoxAttachments,w as useSendBoxSpeechInterimsVisible,sa as useSendBoxValue,ta as useSendEvent,o as useSendFiles,p as useSendMessage,ua as useSendMessageBack,va as useSendPostBack,wa as useSendStatusByActivityKey,xa as useSendTimeoutForActivity,ya as useSendTypingIndicator,za as useSetNotification,d as useShouldReduceMotion,Aa as useShouldSpeakIncomingActivity,Ba as useStartDictate,Ca as useStopDictate,Da as useStyleOptions,a as useStyleSet,Ea as useSubmitSendBox,Fa as useSuggestedActions,Ga as useSuggestedActionsHooks,u as useTextBoxSubmit,v as useTextBoxValue,Ha as useTimeoutForSend,Ia as useTrackDimension,Ja as useTrackEvent,Ka as useTrackException,La as useTrackTiming,b as useTransformHTMLContent,r as useTypingIndicatorVisible,Ma as useUIState,Na as useUserID,Oa as useUsername,Pa as useVoiceSelector,q as useWebSpeechPonyfill};
|
|
2
2
|
//# sourceMappingURL=botframework-webchat-component.hook.mjs.map
|