@opencx/widget-react-headless 5.0.0-beta.0 → 5.0.0-beta.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 +17 -0
- package/dist/index.cjs +19 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2160 -2034
- package/dist/index.js.map +1 -1
- package/dist/package.json.d.ts +1 -1
- package/dist/src/ComponentRegistry.d.ts.map +1 -1
- package/dist/src/ConversationWorkspace.d.ts +58 -0
- package/dist/src/ConversationWorkspace.d.ts.map +1 -0
- package/dist/src/WidgetProvider.d.ts.map +1 -1
- package/dist/src/__tests__/ComponentRegistry.spec.d.ts +2 -0
- package/dist/src/__tests__/ComponentRegistry.spec.d.ts.map +1 -0
- package/dist/src/__tests__/ConversationWorkspace.spec.d.ts +2 -0
- package/dist/src/__tests__/ConversationWorkspace.spec.d.ts.map +1 -0
- package/dist/src/__tests__/WidgetProvider.capabilities.spec.d.ts +2 -0
- package/dist/src/__tests__/WidgetProvider.capabilities.spec.d.ts.map +1 -0
- package/dist/src/agent-chat/AgentChatContext.d.ts +2 -0
- package/dist/src/agent-chat/AgentChatContext.d.ts.map +1 -1
- package/dist/src/hooks/__tests__/use-composer-draft.spec.d.ts +2 -0
- package/dist/src/hooks/__tests__/use-composer-draft.spec.d.ts.map +1 -0
- package/dist/src/hooks/useComposerDraft.d.ts +11 -0
- package/dist/src/hooks/useComposerDraft.d.ts.map +1 -0
- package/dist/src/hooks/useSessions.d.ts +4 -0
- package/dist/src/hooks/useSessions.d.ts.map +1 -1
- package/dist/src/hooks/useUploadFiles.d.ts +6 -14
- package/dist/src/hooks/useUploadFiles.d.ts.map +1 -1
- package/dist/src/hooks/useWidgetRouter.d.ts +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/package.json.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComponentRegistry.d.ts","sourceRoot":"","sources":["../../src/ComponentRegistry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,qBAAa,iBAAiB;IAC5B,UAAU,EAAE,mBAAmB,EAAE,CAAM;gBAE3B,IAAI,EAAE;QAAE,UAAU,CAAC,EAAE,mBAAmB,EAAE,CAAA;KAAE;
|
|
1
|
+
{"version":3,"file":"ComponentRegistry.d.ts","sourceRoot":"","sources":["../../src/ComponentRegistry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,qBAAa,iBAAiB;IAC5B,UAAU,EAAE,mBAAmB,EAAE,CAAM;gBAE3B,IAAI,EAAE;QAAE,UAAU,CAAC,EAAE,mBAAmB,EAAE,CAAA;KAAE;IAexD,QAAQ,CAAC,SAAS,EAAE,mBAAmB;IAavC,OAAO,CAAC,GAAG;IAQJ,YAAY,CAAC,GAAG,EAAE,MAAM;CAGhC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PrimitiveState, WidgetCtx } from '@opencx/widget-core';
|
|
3
|
+
import { AgentChatUiValue } from './agent-chat/AgentChatContext';
|
|
4
|
+
export type CompanionChat = {
|
|
5
|
+
id: number;
|
|
6
|
+
ctx: WidgetCtx;
|
|
7
|
+
title: string;
|
|
8
|
+
working: boolean;
|
|
9
|
+
hasSession: boolean;
|
|
10
|
+
hasDraft: boolean;
|
|
11
|
+
ui: AgentChatUiValue;
|
|
12
|
+
/** A closed tab may finish its current turn before its runtime is released. */
|
|
13
|
+
closed?: boolean;
|
|
14
|
+
};
|
|
15
|
+
/** Keeps each send engine mounted while the visible conversation changes. */
|
|
16
|
+
export declare class ConversationWorkspace {
|
|
17
|
+
private root;
|
|
18
|
+
state: PrimitiveState<{
|
|
19
|
+
chats: CompanionChat[];
|
|
20
|
+
activeId: number;
|
|
21
|
+
}>;
|
|
22
|
+
private nextId;
|
|
23
|
+
private mountVersion;
|
|
24
|
+
private disposed;
|
|
25
|
+
constructor(root: WidgetCtx);
|
|
26
|
+
private makeChat;
|
|
27
|
+
/** Attach only after commit: Strict Mode may discard render-time workspaces. */
|
|
28
|
+
mount: () => () => void;
|
|
29
|
+
dispose: () => void;
|
|
30
|
+
select: (id: number) => void;
|
|
31
|
+
close: (id: number) => void;
|
|
32
|
+
private releaseChat;
|
|
33
|
+
private isWorking;
|
|
34
|
+
canCreateChat: () => boolean;
|
|
35
|
+
private isEmpty;
|
|
36
|
+
open: (sessionId?: string) => WidgetCtx | undefined;
|
|
37
|
+
update: (id: number, update: Partial<Pick<CompanionChat, "title" | "working" | "hasSession" | "hasDraft" | "ui">>) => void;
|
|
38
|
+
}
|
|
39
|
+
/** Optional only for shared hooks that also serve popover and inline widgets. */
|
|
40
|
+
export declare function useConversationWorkspace(): {
|
|
41
|
+
workspace: ConversationWorkspace | null;
|
|
42
|
+
chats: CompanionChat[];
|
|
43
|
+
openChats: CompanionChat[];
|
|
44
|
+
activeId: number;
|
|
45
|
+
};
|
|
46
|
+
export declare function useCompanionChats(): {
|
|
47
|
+
selectChat: (id: number) => void;
|
|
48
|
+
closeChat: (id: number) => void;
|
|
49
|
+
newChat: (sessionId?: string) => WidgetCtx | undefined;
|
|
50
|
+
chats: CompanionChat[];
|
|
51
|
+
openChats: CompanionChat[];
|
|
52
|
+
activeId: number;
|
|
53
|
+
};
|
|
54
|
+
export declare function CompanionConversationProvider({ widgetCtx, children, }: {
|
|
55
|
+
widgetCtx: WidgetCtx;
|
|
56
|
+
children: (active: WidgetCtx) => React.ReactNode;
|
|
57
|
+
}): React.JSX.Element;
|
|
58
|
+
//# sourceMappingURL=ConversationWorkspace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationWorkspace.d.ts","sourceRoot":"","sources":["../../src/ConversationWorkspace.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwD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AQvC;AAED,wBAAgB,iBAAiB;qBAnKjB,MAAM;oBAkBP,MAAM;0BAmEC,MAAM;;;;EAwF3B;AAgCD,wBAAgB,6BAA6B,CAAC,EAC5C,SAAS,EACT,QAAQ,GACT,EAAE;IACD,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,KAAK,CAAC,SAAS,CAAC;CAClD,qBA6BA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetProvider.d.ts","sourceRoot":"","sources":["../../src/WidgetProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AAEf,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,YAAY,EAEjB,SAAS,EACV,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"WidgetProvider.d.ts","sourceRoot":"","sources":["../../src/WidgetProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AAEf,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,YAAY,EAEjB,SAAS,EACV,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,UAAU,mBAAmB;IAC3B,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,YAAY,CAAC;IACrB,UAAU,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACnC,cAAc,EAAE,iBAAiB,CAAC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;CACrE;AAID,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EAAE,MAAM,EACf,QAAQ,EACR,UAAU,EACV,OAAO,EACP,gBAAgB,EAChB,cAAc,GACf,EAAE;IACD,OAAO,EAAE,YAAY,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACnC,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACnC;;;;;OAKG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,KAAK,CAAC,SAAS,CAAC;CACpD,GAAG,KAAK,CAAC,YAAY,GAAG,IAAI,CAoF5B;AAED,wBAAgB,SAAS,wBAMxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComponentRegistry.spec.d.ts","sourceRoot":"","sources":["../../../src/__tests__/ComponentRegistry.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationWorkspace.spec.d.ts","sourceRoot":"","sources":["../../../src/__tests__/ConversationWorkspace.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WidgetProvider.capabilities.spec.d.ts","sourceRoot":"","sources":["../../../src/__tests__/WidgetProvider.capabilities.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -44,6 +44,8 @@ export type AgentChatUiValue = {
|
|
|
44
44
|
*/
|
|
45
45
|
pendingClarification: AskQuestionsRequest | null;
|
|
46
46
|
};
|
|
47
|
+
export declare const DEFAULT_AGENT_CHAT_UI: AgentChatUiValue;
|
|
48
|
+
export declare const AgentChatContext: React.Context<AgentChatUiValue | null>;
|
|
47
49
|
/** Reads the agent streaming state; safe defaults when not in an agent surface. */
|
|
48
50
|
export declare function useAgentChatUi(): AgentChatUiValue;
|
|
49
51
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentChatContext.d.ts","sourceRoot":"","sources":["../../../src/agent-chat/AgentChatContext.tsx"],"names":[],"mappings":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,"file":"use-composer-draft.spec.d.ts","sourceRoot":"","sources":["../../../../src/hooks/__tests__/use-composer-draft.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SetStateAction } from 'react';
|
|
2
|
+
import { WidgetMention } from '@opencx/widget-core';
|
|
3
|
+
/** The composer reads and writes its conversation's draft directly. */
|
|
4
|
+
export declare function useComposerDraft(): {
|
|
5
|
+
setText: (value: SetStateAction<string>) => void;
|
|
6
|
+
setMentions: (value: SetStateAction<WidgetMention[]>) => void;
|
|
7
|
+
clearSubmitted: () => boolean;
|
|
8
|
+
text: string;
|
|
9
|
+
mentions: WidgetMention[];
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=useComposerDraft.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useComposerDraft.d.ts","sourceRoot":"","sources":["../../../src/hooks/useComposerDraft.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIzD,uEAAuE;AACvE,wBAAgB,gBAAgB;qBAKpB,cAAc,CAAC,MAAM,CAAC;yBAQtB,cAAc,CAAC,aAAa,EAAE,CAAC;;;;EAc1C"}
|
|
@@ -16,6 +16,10 @@ export declare function useSessions(): {
|
|
|
16
16
|
readonly success: false;
|
|
17
17
|
readonly error: "Session is not opened";
|
|
18
18
|
readonly data?: undefined;
|
|
19
|
+
} | {
|
|
20
|
+
readonly success: false;
|
|
21
|
+
readonly error: "Session was reset";
|
|
22
|
+
readonly data?: undefined;
|
|
19
23
|
} | {
|
|
20
24
|
readonly success: true;
|
|
21
25
|
readonly data: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSessions.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSessions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSessions.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSessions.ts"],"names":[],"mappings":"AAMA,wBAAgB,WAAW;;;;;;;;;;;;;;;;;qBAgCihE,CAAC;;;;qBAA0H,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAA2lC,CAAC;;;;sBAAwG,CAAC;mBAA6B,CAAC;iBAA2B,CAAC;;qBAA0C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EADj9G"}
|
|
@@ -1,22 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
file: File;
|
|
5
|
-
fileUrl?: string;
|
|
6
|
-
progress: number;
|
|
7
|
-
error?: string;
|
|
8
|
-
}
|
|
9
|
-
declare function useUploadFiles(): {
|
|
10
|
-
allFiles: FileWithProgress[];
|
|
1
|
+
export type { FileWithProgress } from '@opencx/widget-core';
|
|
2
|
+
export declare function useUploadFiles(): {
|
|
3
|
+
allFiles: import('@opencx/widget-core').FileWithProgress[];
|
|
11
4
|
appendFiles: (files: File[]) => void;
|
|
12
|
-
handleCancelUpload: (
|
|
13
|
-
successFiles: FileWithProgress[];
|
|
5
|
+
handleCancelUpload: (id: string) => void;
|
|
6
|
+
successFiles: import('@opencx/widget-core').FileWithProgress[];
|
|
14
7
|
emptyTheFiles: () => void;
|
|
15
|
-
getFileById: (id: string) => FileWithProgress | undefined;
|
|
8
|
+
getFileById: (id: string) => import('@opencx/widget-core').FileWithProgress | undefined;
|
|
16
9
|
getUploadProgress: (id: string) => number;
|
|
17
10
|
getUploadStatus: (id: string) => "success" | "error" | "pending" | "uploading" | undefined;
|
|
18
11
|
hasErrors: boolean;
|
|
19
12
|
isUploading: boolean;
|
|
20
13
|
};
|
|
21
|
-
export { useUploadFiles, type FileWithProgress };
|
|
22
14
|
//# sourceMappingURL=useUploadFiles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUploadFiles.d.ts","sourceRoot":"","sources":["../../../src/hooks/useUploadFiles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useUploadFiles.d.ts","sourceRoot":"","sources":["../../../src/hooks/useUploadFiles.ts"],"names":[],"mappings":"AAIA,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,wBAAgB,cAAc;;;;;;sBAeR,MAAM;4BACA,MAAM;0BAER,MAAM;;;EAK/B"}
|
|
@@ -3,6 +3,6 @@ export declare function useWidgetRouter(): {
|
|
|
3
3
|
screen: import('@opencx/widget-core').ScreenU;
|
|
4
4
|
};
|
|
5
5
|
toSessionsScreen: () => void;
|
|
6
|
-
toChatScreen: (sessionId?: string) =>
|
|
6
|
+
toChatScreen: (sessionId?: string) => import('@opencx/widget-core').WidgetCtx | undefined;
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=useWidgetRouter.d.ts.map
|
package/dist/src/index.d.ts
CHANGED
|
@@ -22,4 +22,6 @@ export { useWidgetLayout, WidgetLayoutProvider } from './hooks/useWidgetLayout';
|
|
|
22
22
|
export { useModes } from './hooks/useModes';
|
|
23
23
|
export { useCsat } from './hooks/useCsat';
|
|
24
24
|
export { useDictation } from './hooks/useDictation';
|
|
25
|
+
export { useCompanionChats } from './ConversationWorkspace';
|
|
26
|
+
export { useComposerDraft } from './hooks/useComposerDraft';
|
|
25
27
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,YAAY,EACV,Y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OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencx/widget-react-headless",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "5.0.0-beta.
|
|
4
|
+
"version": "5.0.0-beta.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"uuid": "^11.0.4",
|
|
22
22
|
"zod": "^4.3.6",
|
|
23
|
-
"@opencx/widget-core": "5.0.0-beta.
|
|
23
|
+
"@opencx/widget-core": "5.0.0-beta.2"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@types/react": ">=18 <20",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"ai": "^7.0.31",
|
|
36
36
|
"react": "^19.2.8",
|
|
37
37
|
"react-dom": "^19.2.8",
|
|
38
|
-
"@opencx/
|
|
39
|
-
"@opencx/
|
|
38
|
+
"@opencx/tsconfig": "0.0.2",
|
|
39
|
+
"@opencx/eslint-config": "0.0.1"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"clean": "rm -rf node_modules dist .turbo",
|