@opengeni/react 0.36.1 → 0.40.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 +92 -2
- package/dist/{chunk-J2RVJ6JX.js → chunk-4IJCL7YO.js} +13 -2
- package/dist/chunk-4IJCL7YO.js.map +1 -0
- package/dist/{chunk-7CJOAW3V.js → chunk-EB67J347.js} +1 -135
- package/dist/chunk-EB67J347.js.map +1 -0
- package/dist/chunk-EKZH6IDG.js +141 -0
- package/dist/chunk-EKZH6IDG.js.map +1 -0
- package/dist/{chunk-OKKMZDQF.js → chunk-JALF5FI3.js} +9 -7
- package/dist/{chunk-OKKMZDQF.js.map → chunk-JALF5FI3.js.map} +1 -1
- package/dist/{chunk-Z5FV355Z.js → chunk-KR2SK5GJ.js} +1382 -724
- package/dist/chunk-KR2SK5GJ.js.map +1 -0
- package/dist/{chunk-N4XEBE23.js → chunk-OMCFRWHL.js} +22 -13
- package/dist/{chunk-N4XEBE23.js.map → chunk-OMCFRWHL.js.map} +1 -1
- package/dist/{chunk-FT2TXNGZ.js → chunk-Q2NCKWTK.js} +183 -18
- package/dist/chunk-Q2NCKWTK.js.map +1 -0
- package/dist/{chunk-22RM4GMO.js → chunk-SJKT4TKW.js} +26 -2
- package/dist/chunk-SJKT4TKW.js.map +1 -0
- package/dist/{chunk-ALA3UGWB.js → chunk-SXIQK54Z.js} +8 -6
- package/dist/{chunk-ALA3UGWB.js.map → chunk-SXIQK54Z.js.map} +1 -1
- package/dist/chunk-WZT5G5OR.js +433 -0
- package/dist/chunk-WZT5G5OR.js.map +1 -0
- package/dist/client.d.ts +2 -0
- package/dist/components/chat-composer.d.ts +7 -1
- package/dist/components/human-input-form.d.ts +16 -6
- package/dist/components/human-input-surface.d.ts +19 -0
- package/dist/components/machine-input-display.d.ts +12 -0
- package/dist/components/message-timeline.d.ts +6 -1
- package/dist/components/model-policy-picker.d.ts +78 -0
- package/dist/components/session-chrome.d.ts +2 -1
- package/dist/components/tip-follow.d.ts +30 -0
- package/dist/composer.d.ts +2 -0
- package/dist/composer.js +22 -5
- package/dist/hooks/use-composer.d.ts +10 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +2261 -2230
- package/dist/index.js.map +1 -1
- package/dist/machines.js +4 -3
- package/dist/model-policy.d.ts +12 -4
- package/dist/model-policy.js +5 -1
- package/dist/realtime/dropdown-menu.d.ts +16 -0
- package/dist/realtime/realtime-control.d.ts +126 -0
- package/dist/realtime.d.ts +11 -0
- package/dist/realtime.js +1023 -0
- package/dist/realtime.js.map +1 -0
- package/dist/session-context.d.ts +7 -1
- package/dist/session-ui.d.ts +2 -0
- package/dist/session-ui.js +6 -4
- package/dist/session.js +5 -4
- package/dist/timeline/compute-label.d.ts +2 -0
- package/dist/timeline/index.d.ts +1 -0
- package/dist/timeline/types.d.ts +5 -0
- package/package.json +7 -2
- package/src/client.ts +13 -0
- package/src/components/chat-composer.tsx +19 -5
- package/src/components/composer-transcription-control.tsx +2 -2
- package/src/components/composer.tsx +14 -5
- package/src/components/human-input-form.tsx +506 -186
- package/src/components/human-input-surface.tsx +80 -0
- package/src/components/machine-input-display.ts +83 -0
- package/src/components/message-timeline.tsx +348 -308
- package/src/components/model-policy-picker.tsx +587 -0
- package/src/components/sandbox-files.tsx +1 -1
- package/src/components/session-chrome.tsx +141 -15
- package/src/components/tip-follow.ts +127 -6
- package/src/composer.ts +13 -0
- package/src/hooks/use-composer.ts +229 -29
- package/src/index.ts +19 -0
- package/src/model-policy.ts +51 -7
- package/src/realtime/dropdown-menu.tsx +123 -0
- package/src/realtime/realtime-control.tsx +1178 -0
- package/src/realtime.ts +27 -0
- package/src/session-context.ts +16 -0
- package/src/session-ui.ts +2 -0
- package/src/timeline/compute-label.tsx +18 -0
- package/src/timeline/index.ts +3 -0
- package/src/timeline/projection.ts +21 -1
- package/src/timeline/tool-renderers.tsx +232 -43
- package/src/timeline/types.ts +5 -0
- package/styles/index.css +61 -0
- package/styles/tokens.css +2 -0
- package/dist/chunk-22RM4GMO.js.map +0 -1
- package/dist/chunk-7CJOAW3V.js.map +0 -1
- package/dist/chunk-FT2TXNGZ.js.map +0 -1
- package/dist/chunk-J2RVJ6JX.js.map +0 -1
- package/dist/chunk-Z5FV355Z.js.map +0 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
shouldSteerOnKey,
|
|
3
3
|
shouldSubmitOnKey
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Q2NCKWTK.js";
|
|
5
5
|
import {
|
|
6
6
|
groupPickerRowsByBillingClass
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SJKT4TKW.js";
|
|
8
8
|
import {
|
|
9
9
|
Tooltip,
|
|
10
10
|
TooltipContent,
|
|
11
11
|
TooltipProvider,
|
|
12
12
|
TooltipTrigger
|
|
13
13
|
} from "./chunk-ATSTR5P3.js";
|
|
14
|
-
import {
|
|
15
|
-
cn
|
|
16
|
-
} from "./chunk-TK7G6XLT.js";
|
|
17
14
|
import {
|
|
18
15
|
composerSubmissionErrorMessage,
|
|
19
16
|
formatBytes,
|
|
20
17
|
formatRelativeTime
|
|
21
18
|
} from "./chunk-LAKLF4PA.js";
|
|
19
|
+
import {
|
|
20
|
+
cn
|
|
21
|
+
} from "./chunk-TK7G6XLT.js";
|
|
22
22
|
|
|
23
23
|
// src/hooks/use-transcription.ts
|
|
24
24
|
import {
|
|
@@ -1964,7 +1964,11 @@ var Footer = forwardRef(function ComposerFooter({ className, ...props }, ref) {
|
|
|
1964
1964
|
{
|
|
1965
1965
|
...props,
|
|
1966
1966
|
ref,
|
|
1967
|
-
className: cn(
|
|
1967
|
+
className: cn(
|
|
1968
|
+
"flex items-end gap-1.5 px-2 pb-2 pt-0.5 sm:px-2.5 sm:pb-2.5",
|
|
1969
|
+
"max-sm:items-center max-sm:gap-1",
|
|
1970
|
+
className
|
|
1971
|
+
)
|
|
1968
1972
|
}
|
|
1969
1973
|
);
|
|
1970
1974
|
});
|
|
@@ -1975,7 +1979,11 @@ var Controls = forwardRef(
|
|
|
1975
1979
|
{
|
|
1976
1980
|
...props,
|
|
1977
1981
|
ref,
|
|
1978
|
-
className: cn(
|
|
1982
|
+
className: cn(
|
|
1983
|
+
"flex min-w-0 flex-1 flex-wrap items-center gap-1.5",
|
|
1984
|
+
"max-sm:flex-nowrap max-sm:gap-1",
|
|
1985
|
+
className
|
|
1986
|
+
)
|
|
1979
1987
|
}
|
|
1980
1988
|
);
|
|
1981
1989
|
}
|
|
@@ -2015,6 +2023,7 @@ var AttachButton = forwardRef(
|
|
|
2015
2023
|
type: "file",
|
|
2016
2024
|
accept,
|
|
2017
2025
|
multiple,
|
|
2026
|
+
"data-og-composer-attach": true,
|
|
2018
2027
|
className: "hidden",
|
|
2019
2028
|
onChange: controller.handleFileChange
|
|
2020
2029
|
}
|
|
@@ -2031,7 +2040,7 @@ var AttachButton = forwardRef(
|
|
|
2031
2040
|
className: cn(
|
|
2032
2041
|
"inline-flex size-8 items-center justify-center rounded-og-md",
|
|
2033
2042
|
"text-og-fg-muted transition-colors duration-150 hover:bg-og-surface-2 hover:text-og-fg",
|
|
2034
|
-
"disabled:cursor-not-allowed disabled:opacity-50 pointer-coarse:size-
|
|
2043
|
+
"disabled:cursor-not-allowed disabled:opacity-50 pointer-coarse:size-9",
|
|
2035
2044
|
className
|
|
2036
2045
|
),
|
|
2037
2046
|
children: children ?? /* @__PURE__ */ jsx3(PaperclipIcon, { className: "size-4" })
|
|
@@ -2080,7 +2089,7 @@ var PauseButton = forwardRef(
|
|
|
2080
2089
|
disabled: busy,
|
|
2081
2090
|
"aria-label": ariaLabel ?? controller.messages.pauseAriaLabel,
|
|
2082
2091
|
className: cn(
|
|
2083
|
-
"inline-flex size-8 items-center justify-center rounded-og-md border border-og-border pointer-coarse:size-
|
|
2092
|
+
"inline-flex size-8 items-center justify-center rounded-og-md border border-og-border pointer-coarse:size-9",
|
|
2084
2093
|
"bg-og-surface-2 text-og-fg-muted transition-colors duration-150",
|
|
2085
2094
|
"hover:border-og-status-waiting/50 hover:text-og-status-waiting",
|
|
2086
2095
|
"disabled:opacity-50",
|
|
@@ -2106,7 +2115,7 @@ var SendButton = forwardRef(
|
|
|
2106
2115
|
"data-og-tip": tip,
|
|
2107
2116
|
"aria-label": ariaLabel ?? (controller.paused ? controller.messages.sendAndResumeAriaLabel : controller.messages.sendMessageAriaLabel),
|
|
2108
2117
|
className: cn(
|
|
2109
|
-
"inline-flex size-8 items-center justify-center rounded-og-md pointer-coarse:size-
|
|
2118
|
+
"inline-flex size-8 items-center justify-center rounded-og-md pointer-coarse:size-9",
|
|
2110
2119
|
"bg-og-accent text-og-accent-fg shadow-og-sm",
|
|
2111
2120
|
"transition-[background-color,transform,opacity] duration-150 ease-og-spring",
|
|
2112
2121
|
"hover:bg-og-accent-strong active:scale-95",
|
|
@@ -2574,7 +2583,7 @@ function ComposerTranscriptionControl({
|
|
|
2574
2583
|
transition: { duration: 0.16, ease: [0.22, 1, 0.36, 1] },
|
|
2575
2584
|
className: cn(
|
|
2576
2585
|
"inline-flex h-8 items-center gap-1 rounded-og-md border border-og-border/80",
|
|
2577
|
-
"bg-og-surface-2/70 pl-2 pr-1 pointer-coarse:h-
|
|
2586
|
+
"bg-og-surface-2/70 pl-2 pr-1 pointer-coarse:h-9"
|
|
2578
2587
|
),
|
|
2579
2588
|
children: [
|
|
2580
2589
|
status === "requesting-permission" ? /* @__PURE__ */ jsx4(
|
|
@@ -2646,7 +2655,7 @@ function ComposerTranscriptionControl({
|
|
|
2646
2655
|
"aria-pressed": false,
|
|
2647
2656
|
"aria-disabled": unavailableMessage !== null,
|
|
2648
2657
|
className: cn(
|
|
2649
|
-
"inline-flex size-8 shrink-0 items-center justify-center rounded-og-md pointer-coarse:size-
|
|
2658
|
+
"inline-flex size-8 shrink-0 items-center justify-center rounded-og-md pointer-coarse:size-9",
|
|
2650
2659
|
"text-og-fg-muted transition-colors duration-150 motion-reduce:transition-none",
|
|
2651
2660
|
unavailableMessage ? "cursor-not-allowed opacity-45" : "hover:bg-og-surface-2 hover:text-og-fg"
|
|
2652
2661
|
),
|
|
@@ -2811,4 +2820,4 @@ export {
|
|
|
2811
2820
|
Status,
|
|
2812
2821
|
ComposerTranscriptionControl
|
|
2813
2822
|
};
|
|
2814
|
-
//# sourceMappingURL=chunk-
|
|
2823
|
+
//# sourceMappingURL=chunk-OMCFRWHL.js.map
|