translation-chat-sdk 0.1.4 → 0.1.5

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/types.d.ts CHANGED
@@ -102,3 +102,12 @@ export type ChatActions = {
102
102
  clearMessages: () => void;
103
103
  };
104
104
  export type ChatContextValue = ChatState & ChatActions;
105
+ export type SelectedContext = {
106
+ text: string;
107
+ context: InstructionContext;
108
+ };
109
+ export type ChatWidgetHandle = {
110
+ focus: () => void;
111
+ setContext: (context: SelectedContext | null) => void;
112
+ clearContext: () => void;
113
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "translation-chat-sdk",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "React SDK for the Translation Studio chat/patch experience.",
5
5
  "main": "dist/translation-chat-sdk.cjs.js",
6
6
  "module": "dist/translation-chat-sdk.es.js",