@epam/ai-dial-conversation-input 1.0.0-dev.539 → 1.0.0-dev.547
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/components/Input/Input.d.ts.map +1 -1
- package/hooks/useMessageState.d.ts +4 -2
- package/hooks/useMessageState.d.ts.map +1 -1
- package/index.js +390 -387
- package/models/ConversationInput.d.ts +6 -1
- package/models/ConversationInput.d.ts.map +1 -1
- package/models/Input.d.ts +6 -1
- package/models/Input.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAeA,OAAO,EAEL,KAAK,EAAE,EAMR,MAAM,OAAO,CAAC;AAOf,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAUrD,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAeA,OAAO,EAEL,KAAK,EAAE,EAMR,MAAM,OAAO,CAAC;AAOf,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAUrD,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CA+ahC,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
2
|
/** Parameters for the {@link useMessageState} hook. */
|
|
3
3
|
interface UseMessageStateParams {
|
|
4
|
-
/**
|
|
4
|
+
/** Message value supplied by the parent. */
|
|
5
5
|
messageProp: string;
|
|
6
|
+
/** Optional token that forces resync even when the message value is unchanged. */
|
|
7
|
+
messageRevision?: number;
|
|
6
8
|
}
|
|
7
9
|
/** Return value of the {@link useMessageState} hook. */
|
|
8
10
|
export interface UseMessageStateResult {
|
|
@@ -19,6 +21,6 @@ export interface UseMessageStateResult {
|
|
|
19
21
|
* Manages textarea message value, parent-prop sync, and multi-line detection
|
|
20
22
|
* for the `Input` component.
|
|
21
23
|
*/
|
|
22
|
-
export declare const useMessageState: ({ messageProp, }: UseMessageStateParams) => UseMessageStateResult;
|
|
24
|
+
export declare const useMessageState: ({ messageProp, messageRevision, }: UseMessageStateParams) => UseMessageStateResult;
|
|
23
25
|
export {};
|
|
24
26
|
//# sourceMappingURL=useMessageState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMessageState.d.ts","sourceRoot":"","sources":["../../src/hooks/useMessageState.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,cAAc,EAKf,MAAM,OAAO,CAAC;AAEf,uDAAuD;AACvD,UAAU,qBAAqB;IAC7B,
|
|
1
|
+
{"version":3,"file":"useMessageState.d.ts","sourceRoot":"","sources":["../../src/hooks/useMessageState.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,cAAc,EAKf,MAAM,OAAO,CAAC;AAEf,uDAAuD;AACvD,UAAU,qBAAqB;IAC7B,4CAA4C;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,kFAAkF;IAClF,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wDAAwD;AACxD,MAAM,WAAW,qBAAqB;IACpC,8BAA8B;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,UAAU,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7C,gDAAgD;IAChD,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;IACzD,wEAAwE;IACxE,WAAW,EAAE,OAAO,CAAC;CACtB;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,mCAG7B,qBAAqB,KAAG,qBA8B1B,CAAC"}
|