@opengeni/react 3.8.0-canary.1 → 4.0.1-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -24
- package/dist/artifacts.js +7 -7
- package/dist/{browser-viewer-SS46LUAC.js → browser-viewer-NTD6UIPR.js} +3 -3
- package/dist/{chunk-VEPNNDNG.js → chunk-24M4YBCL.js} +4 -4
- package/dist/{chunk-ELIYWBZR.js → chunk-BV5A4OTE.js} +4 -4
- package/dist/{chunk-7W6PVVTK.js → chunk-HO6X4FHG.js} +2559 -1037
- package/dist/chunk-HO6X4FHG.js.map +1 -0
- package/dist/{chunk-BXJOQFCD.js → chunk-HUMIRRYI.js} +84 -221
- package/dist/chunk-HUMIRRYI.js.map +1 -0
- package/dist/{chunk-7BWFU6H4.js → chunk-Z7WBDB4E.js} +395 -287
- package/dist/chunk-Z7WBDB4E.js.map +1 -0
- package/dist/components/human-input-form.d.ts +3 -1
- package/dist/components/human-input-surface.d.ts +3 -2
- package/dist/components/session-conversation.d.ts +2 -0
- package/dist/composer.js +2 -3
- package/dist/{computer-viewer-FWEZISW4.js → computer-viewer-7TEZC6Y2.js} +3 -3
- package/dist/hooks/use-codex-accounts.d.ts +11 -1
- package/dist/hooks/use-session-events.d.ts +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +44 -34
- package/dist/index.js.map +1 -1
- package/dist/interaction.js +8 -8
- package/dist/older-history.d.ts +3 -2
- package/dist/{platform-activity-row-BJHUHXAT.js → platform-activity-row-27LKAWZD.js} +2 -2
- package/dist/platform-activity-row-27LKAWZD.js.map +1 -0
- package/dist/realtime.js +3 -3
- package/dist/session-ui.js +6 -9
- package/dist/session.js +1 -1
- package/dist/timeline/types.d.ts +3 -0
- package/package.json +2 -6
- package/src/components/human-input-form.tsx +185 -53
- package/src/components/human-input-surface.tsx +3 -0
- package/src/components/message-timeline.tsx +41 -6
- package/src/components/session-commands-panel.tsx +7 -1
- package/src/components/session-conversation.tsx +4 -1
- package/src/hooks/use-codex-accounts.ts +32 -5
- package/src/hooks/use-session-events.ts +16 -277
- package/src/index.ts +0 -1
- package/src/older-history.ts +22 -4
- package/src/timeline/platform-activity-row.tsx +4 -1
- package/src/timeline/projection.ts +99 -9
- package/src/timeline/types.ts +3 -0
- package/dist/chat.d.ts +0 -37
- package/dist/chat.js +0 -315
- package/dist/chat.js.map +0 -1
- package/dist/chunk-7BWFU6H4.js.map +0 -1
- package/dist/chunk-7W6PVVTK.js.map +0 -1
- package/dist/chunk-BXJOQFCD.js.map +0 -1
- package/dist/chunk-HQV2I5HV.js +0 -124
- package/dist/chunk-HQV2I5HV.js.map +0 -1
- package/dist/chunk-YAIPFO5D.js +0 -1416
- package/dist/chunk-YAIPFO5D.js.map +0 -1
- package/dist/platform-activity-row-BJHUHXAT.js.map +0 -1
- package/src/chat.tsx +0 -393
- /package/dist/{browser-viewer-SS46LUAC.js.map → browser-viewer-NTD6UIPR.js.map} +0 -0
- /package/dist/{chunk-VEPNNDNG.js.map → chunk-24M4YBCL.js.map} +0 -0
- /package/dist/{chunk-ELIYWBZR.js.map → chunk-BV5A4OTE.js.map} +0 -0
- /package/dist/{computer-viewer-FWEZISW4.js.map → computer-viewer-7TEZC6Y2.js.map} +0 -0
package/README.md
CHANGED
|
@@ -24,31 +24,12 @@ ancestor. Components are styled with Tailwind v4 utilities mapped onto the
|
|
|
24
24
|
tokens, Radix primitives for behavior, and Motion for state-communicating
|
|
25
25
|
animation. Override the tokens to rebrand everything.
|
|
26
26
|
|
|
27
|
-
##
|
|
27
|
+
## Conversation UI
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
`
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
```tsx
|
|
34
|
-
import { OpenGeniChat } from "@opengeni/react/chat";
|
|
35
|
-
|
|
36
|
-
<OpenGeniChat handlerUrl="/api/chat" conversation="c_9" placeholder="Ask anything" />;
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
It posts `{ message }`, renders the streamed reply with `Markdown`, and shows a
|
|
40
|
-
card with buttons when the agent stops for an approval or a structured
|
|
41
|
-
human-input request (answered through `POST /api/chat/respond`). Optional props:
|
|
42
|
-
`headers` for the host's auth header, `authKey`, `className`, and `renderMessage`.
|
|
43
|
-
Changed header values clear messages, pending cards, drafts and in-flight
|
|
44
|
-
requests before restoring the new identity's history. Header callbacks are
|
|
45
|
-
resolved on each host render; re-render when their credentials change. For
|
|
46
|
-
cookie authentication, pass `authKey={JSON.stringify([tenantId, userId])}` and
|
|
47
|
-
change it on sign-in, sign-out and tenant switches, even when `conversation`
|
|
48
|
-
stays the same. `authKey` is a local reset key and is never sent to the handler.
|
|
49
|
-
`SessionConversation` below is the full-surface upgrade on the same session
|
|
50
|
-
(files, queue, model picker, approvals with policies) once the host proxies the
|
|
51
|
-
session routes.
|
|
29
|
+
Use `SessionConversation` for an existing session, or compose `MessageTimeline`
|
|
30
|
+
and `ChatComposer` with the session hooks. These use the normal SDK through
|
|
31
|
+
your authenticated host routes. For custom or compatible frontends, the backend
|
|
32
|
+
`@opengeni/sdk/chat` adapters provide the `createChatHandler` protocol.
|
|
52
33
|
|
|
53
34
|
## Editable Office artifacts
|
|
54
35
|
|
package/dist/artifacts.js
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
EditablePresentationArtifactSurface,
|
|
3
|
-
PresentationArtifactSurface,
|
|
4
|
-
PresentationEditor,
|
|
5
|
-
PresentationProjectionArtifactSurface,
|
|
6
|
-
PresentationProjectionEditor
|
|
7
|
-
} from "./chunk-PEI6RANI.js";
|
|
8
1
|
import {
|
|
9
2
|
DocumentArtifactSurface,
|
|
10
3
|
DocumentEditor,
|
|
@@ -19,6 +12,13 @@ import {
|
|
|
19
12
|
SpreadsheetGrid,
|
|
20
13
|
SpreadsheetProjectionGrid
|
|
21
14
|
} from "./chunk-ICA6R6TW.js";
|
|
15
|
+
import {
|
|
16
|
+
EditablePresentationArtifactSurface,
|
|
17
|
+
PresentationArtifactSurface,
|
|
18
|
+
PresentationEditor,
|
|
19
|
+
PresentationProjectionArtifactSurface,
|
|
20
|
+
PresentationProjectionEditor
|
|
21
|
+
} from "./chunk-PEI6RANI.js";
|
|
22
22
|
import {
|
|
23
23
|
ArtifactSurface,
|
|
24
24
|
EditableArtifactMessage
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BrowserViewer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-24M4YBCL.js";
|
|
4
4
|
import "./chunk-H5YGYNXS.js";
|
|
5
5
|
import "./chunk-5YK2ZDIG.js";
|
|
6
|
+
import "./chunk-JVYQRRC4.js";
|
|
6
7
|
import "./chunk-PLYRL5ER.js";
|
|
7
8
|
import "./chunk-KZ73RL76.js";
|
|
8
9
|
import "./chunk-NEXLLTP4.js";
|
|
9
|
-
import "./chunk-JVYQRRC4.js";
|
|
10
10
|
import "./chunk-22KP6LR5.js";
|
|
11
11
|
export {
|
|
12
12
|
BrowserViewer
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=browser-viewer-
|
|
14
|
+
//# sourceMappingURL=browser-viewer-NTD6UIPR.js.map
|
|
@@ -15,6 +15,9 @@ import {
|
|
|
15
15
|
encodeStreamOpen,
|
|
16
16
|
interactionHostPlatform
|
|
17
17
|
} from "./chunk-5YK2ZDIG.js";
|
|
18
|
+
import {
|
|
19
|
+
copyTextToClipboard
|
|
20
|
+
} from "./chunk-JVYQRRC4.js";
|
|
18
21
|
import {
|
|
19
22
|
formatBytes
|
|
20
23
|
} from "./chunk-PLYRL5ER.js";
|
|
@@ -24,9 +27,6 @@ import {
|
|
|
24
27
|
import {
|
|
25
28
|
useEmbeddedBrowserInteraction
|
|
26
29
|
} from "./chunk-NEXLLTP4.js";
|
|
27
|
-
import {
|
|
28
|
-
copyTextToClipboard
|
|
29
|
-
} from "./chunk-JVYQRRC4.js";
|
|
30
30
|
import {
|
|
31
31
|
cn
|
|
32
32
|
} from "./chunk-22KP6LR5.js";
|
|
@@ -3904,4 +3904,4 @@ export {
|
|
|
3904
3904
|
useSiteAuthConnections,
|
|
3905
3905
|
BrowserViewer
|
|
3906
3906
|
};
|
|
3907
|
-
//# sourceMappingURL=chunk-
|
|
3907
|
+
//# sourceMappingURL=chunk-24M4YBCL.js.map
|
|
@@ -17,15 +17,15 @@ import {
|
|
|
17
17
|
encodeStreamClose,
|
|
18
18
|
encodeStreamOpen
|
|
19
19
|
} from "./chunk-5YK2ZDIG.js";
|
|
20
|
+
import {
|
|
21
|
+
copyTextToClipboard
|
|
22
|
+
} from "./chunk-JVYQRRC4.js";
|
|
20
23
|
import {
|
|
21
24
|
usePageLiveActivity
|
|
22
25
|
} from "./chunk-KZ73RL76.js";
|
|
23
26
|
import {
|
|
24
27
|
useEmbeddedComputerInteraction
|
|
25
28
|
} from "./chunk-NEXLLTP4.js";
|
|
26
|
-
import {
|
|
27
|
-
copyTextToClipboard
|
|
28
|
-
} from "./chunk-JVYQRRC4.js";
|
|
29
29
|
import {
|
|
30
30
|
cn
|
|
31
31
|
} from "./chunk-22KP6LR5.js";
|
|
@@ -2297,4 +2297,4 @@ export {
|
|
|
2297
2297
|
ComputerViewer,
|
|
2298
2298
|
computerKey
|
|
2299
2299
|
};
|
|
2300
|
-
//# sourceMappingURL=chunk-
|
|
2300
|
+
//# sourceMappingURL=chunk-BV5A4OTE.js.map
|