@opengeni/react 3.7.0-canary.0 → 3.7.0-canary.1
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/artifacts.js +24 -5
- package/dist/artifacts.js.map +1 -1
- package/dist/{browser-viewer-E5DDEFQ4.js → browser-viewer-NTD6UIPR.js} +3 -3
- package/dist/{chunk-W2RGYBCV.js → chunk-24M4YBCL.js} +4 -4
- package/dist/{chunk-DOK4KZF2.js → chunk-5IXTJTK3.js} +1322 -392
- package/dist/chunk-5IXTJTK3.js.map +1 -0
- package/dist/chunk-5PQJOCX5.js +902 -0
- package/dist/chunk-5PQJOCX5.js.map +1 -0
- package/dist/{chunk-R55HFTT3.js → chunk-INGB2N5R.js} +4305 -4019
- package/dist/chunk-INGB2N5R.js.map +1 -0
- package/dist/{chunk-FJBOU2TH.js → chunk-MOWYEBCQ.js} +1728 -12
- package/dist/chunk-MOWYEBCQ.js.map +1 -0
- package/dist/chunk-PAJU5KKL.js +331 -0
- package/dist/chunk-PAJU5KKL.js.map +1 -0
- package/dist/{chunk-VTOREEXF.js → chunk-PLYRL5ER.js} +24 -2
- package/dist/{chunk-VTOREEXF.js.map → chunk-PLYRL5ER.js.map} +1 -1
- package/dist/{chunk-YVCHAQZY.js → chunk-ZFOFY5ST.js} +27 -349
- package/dist/chunk-ZFOFY5ST.js.map +1 -0
- package/dist/components/artifacts/published-html-artifact-frame.d.ts +3 -2
- package/dist/components/session-chrome.d.ts +37 -4
- package/dist/components/session-commands-panel.d.ts +6 -0
- package/dist/components/session-conversation.d.ts +14 -0
- package/dist/components/timeline-anchor.d.ts +21 -0
- package/dist/composer.js +2 -3
- package/dist/conversation-timeline.d.ts +5 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +716 -914
- package/dist/index.js.map +1 -1
- package/dist/interaction.js +2 -2
- package/dist/lib/format.d.ts +5 -0
- package/dist/machines.js +3 -2
- package/dist/session-ui.d.ts +3 -0
- package/dist/session-ui.js +14 -4
- package/dist/session.js +19 -19
- package/dist/timeline/types.d.ts +3 -1
- package/package.json +2 -2
- package/src/components/artifacts/published-html-artifact-frame.tsx +27 -4
- package/src/components/machine-input-display.ts +6 -0
- package/src/components/message-timeline.tsx +320 -197
- package/src/components/session-chrome.tsx +498 -125
- package/src/components/session-commands-panel.tsx +113 -0
- package/src/components/session-conversation.tsx +141 -0
- package/src/components/timeline-anchor.tsx +91 -0
- package/src/conversation-timeline.ts +83 -0
- package/src/hooks/use-session-background-commands.ts +21 -10
- package/src/hooks/use-session-events.ts +36 -14
- package/src/hooks/use-session.ts +23 -2
- package/src/index.ts +4 -0
- package/src/lib/format.ts +32 -0
- package/src/session-ui.ts +3 -0
- package/src/timeline/projection.ts +6 -12
- package/src/timeline/types.ts +4 -0
- package/styles/compiled.css +495 -411
- package/styles/index.css +23 -0
- package/dist/chunk-7EAFGICR.js +0 -302
- package/dist/chunk-7EAFGICR.js.map +0 -1
- package/dist/chunk-C6WDLHBA.js +0 -2590
- package/dist/chunk-C6WDLHBA.js.map +0 -1
- package/dist/chunk-DOK4KZF2.js.map +0 -1
- package/dist/chunk-FJBOU2TH.js.map +0 -1
- package/dist/chunk-R55HFTT3.js.map +0 -1
- package/dist/chunk-YVCHAQZY.js.map +0 -1
- /package/dist/{browser-viewer-E5DDEFQ4.js.map → browser-viewer-NTD6UIPR.js.map} +0 -0
- /package/dist/{chunk-W2RGYBCV.js.map → chunk-24M4YBCL.js.map} +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Component, type ReactNode } from "react";
|
|
2
|
+
type Anchor = {
|
|
3
|
+
element: HTMLElement;
|
|
4
|
+
key: string | null;
|
|
5
|
+
text: string | null;
|
|
6
|
+
top: number;
|
|
7
|
+
};
|
|
8
|
+
export type TimelineAnchor = Anchor[];
|
|
9
|
+
/** Read the old DOM immediately before React changes it, not when a fetch starts. */
|
|
10
|
+
export declare class TimelineBeforeLayout extends Component<{
|
|
11
|
+
capture: () => void;
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
}> {
|
|
14
|
+
getSnapshotBeforeUpdate(): null;
|
|
15
|
+
componentDidUpdate(): void;
|
|
16
|
+
render(): ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export declare function captureTimelineAnchor(scroller: HTMLElement): TimelineAnchor | null;
|
|
19
|
+
/** Return only the correction native browser anchoring has not already made. */
|
|
20
|
+
export declare function timelineAnchorCorrection(scroller: HTMLElement, anchors: TimelineAnchor): number | null;
|
|
21
|
+
export {};
|
package/dist/composer.js
CHANGED
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
useChatComposer,
|
|
38
38
|
useChatComposerController,
|
|
39
39
|
useVoiceInput
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-INGB2N5R.js";
|
|
41
41
|
import {
|
|
42
42
|
BillingClassMark,
|
|
43
43
|
ModelPolicyPicker,
|
|
@@ -47,12 +47,11 @@ import {
|
|
|
47
47
|
PickerNavRow,
|
|
48
48
|
defaultModelPolicyPickerMessages
|
|
49
49
|
} from "./chunk-4JFUT22W.js";
|
|
50
|
-
import "./chunk-7EAFGICR.js";
|
|
51
50
|
import "./chunk-VZTQ73XT.js";
|
|
52
51
|
import "./chunk-IOLVN74D.js";
|
|
52
|
+
import "./chunk-PLYRL5ER.js";
|
|
53
53
|
import "./chunk-KZ73RL76.js";
|
|
54
54
|
import "./chunk-NEXLLTP4.js";
|
|
55
|
-
import "./chunk-VTOREEXF.js";
|
|
56
55
|
import "./chunk-WMGF4Z7X.js";
|
|
57
56
|
import "./chunk-22KP6LR5.js";
|
|
58
57
|
export {
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ComposerState } from "./hooks/use-composer.js";
|
|
2
|
+
import type { UseTurnQueueResult } from "./hooks/use-turn-queue.js";
|
|
3
|
+
import type { TimelineItem } from "./timeline/types.js";
|
|
4
|
+
/** Keep pending prompts in the queue, not duplicated in the conversation. */
|
|
5
|
+
export declare function conversationTimeline(items: TimelineItem[], queue: Pick<UseTurnQueueResult, "queue" | "snapshot" | "acceptedSteers">, composer: Pick<ComposerState, "optimisticMessages" | "retryOptimisticMessage" | "removeOptimisticMessage">): TimelineItem[];
|
package/dist/index.d.ts
CHANGED
|
@@ -112,6 +112,8 @@ export type { ConfirmState, SlashCommandContext, SlashCommandHandlers, UseSlashC
|
|
|
112
112
|
export { CommandPalette } from "./components/command-palette.js";
|
|
113
113
|
export type { CommandPaletteProps } from "./components/command-palette.js";
|
|
114
114
|
export { ChatComposer } from "./components/chat-composer.js";
|
|
115
|
+
export { SessionConversation } from "./components/session-conversation.js";
|
|
116
|
+
export type { SessionConversationProps } from "./components/session-conversation.js";
|
|
115
117
|
export type { ChatComposerProps } from "./components/chat-composer.js";
|
|
116
118
|
export { ComposerTranscriptionControl } from "./components/composer-transcription-control.js";
|
|
117
119
|
export type { ComposerTranscriptionControlProps, ComposerTranscriptionMessages, } from "./components/composer-transcription-control.js";
|
|
@@ -167,4 +169,5 @@ export type { SuperGrokAccountsClientLike, UseSuperGrokAccountsOptions, UseSuper
|
|
|
167
169
|
export { gitFileDiffToPatch } from "./lib/git-patch.js";
|
|
168
170
|
export { xtermThemeFromTokens } from "./lib/xterm-theme.js";
|
|
169
171
|
export { cn } from "./lib/cn.js";
|
|
170
|
-
export { CREDIT_EXHAUSTION_MESSAGE, formatBytes, formatClockTime, formatRelativeTime, humanizeFailureReason, isCreditExhaustion, stringifyPayload, truncate, tryParseJson, } from "./lib/format.js";
|
|
172
|
+
export { CREDIT_EXHAUSTION_MESSAGE, formatBytes, formatClockTime, formatRelativeTime, humanizeFailureReason, presentFailure, isCreditExhaustion, stringifyPayload, truncate, tryParseJson, } from "./lib/format.js";
|
|
173
|
+
export { SessionCommandsPanel } from "./components/session-commands-panel.js";
|