@opengeni/react 6.0.0-canary.0 → 6.1.0-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.
Files changed (68) hide show
  1. package/README.md +17 -0
  2. package/dist/capability-catalog-row.d.ts +20 -0
  3. package/dist/{chunk-VRBL3F5E.js → chunk-5GAL23FF.js} +10 -2
  4. package/dist/{chunk-VRBL3F5E.js.map → chunk-5GAL23FF.js.map} +1 -1
  5. package/dist/{chunk-IHQII5WO.js → chunk-G5JFM6ZE.js} +29 -4
  6. package/dist/chunk-G5JFM6ZE.js.map +1 -0
  7. package/dist/{chunk-UMECRJRV.js → chunk-HJ5VJ4JB.js} +21 -12
  8. package/dist/chunk-HJ5VJ4JB.js.map +1 -0
  9. package/dist/{chunk-R4KRSFGA.js → chunk-IP4BUBKH.js} +3 -3
  10. package/dist/{chunk-CC7AVRIJ.js → chunk-KZ4QDBGM.js} +87 -14
  11. package/dist/chunk-KZ4QDBGM.js.map +1 -0
  12. package/dist/{chunk-PZ27MCZP.js → chunk-L5VJYZIW.js} +34 -4
  13. package/dist/chunk-L5VJYZIW.js.map +1 -0
  14. package/dist/{chunk-45XEUVTK.js → chunk-UWVY3OXF.js} +12 -5
  15. package/dist/chunk-UWVY3OXF.js.map +1 -0
  16. package/dist/components/message-timeline.d.ts +2 -2
  17. package/dist/composer.js +4 -4
  18. package/dist/connect-panel.d.ts +2 -1
  19. package/dist/connect-setup.d.ts +3 -1
  20. package/dist/connect.d.ts +1 -0
  21. package/dist/connect.js +620 -424
  22. package/dist/connect.js.map +1 -1
  23. package/dist/connection-catalog.d.ts +6 -1
  24. package/dist/connection-installed.d.ts +1 -0
  25. package/dist/connection-logo.d.ts +4 -2
  26. package/dist/discovery-cache.d.ts +5 -0
  27. package/dist/index.js +7 -7
  28. package/dist/{model-policy-picker-menu-3R336DP2.js → model-policy-picker-menu-RVOQ4ZZG.js} +4 -4
  29. package/dist/model-policy.d.ts +6 -2
  30. package/dist/model-policy.js +1 -1
  31. package/dist/plugin-discovery.d.ts +4 -0
  32. package/dist/realtime.js +2 -2
  33. package/dist/session-ui.js +6 -6
  34. package/dist/session.js +1 -1
  35. package/dist/skill-discovery.d.ts +11 -0
  36. package/dist/timeline/projection.d.ts +3 -1
  37. package/dist/timeline/turn-summary.d.ts +2 -2
  38. package/package.json +3 -3
  39. package/src/capability-catalog-row.tsx +94 -0
  40. package/src/components/markdown.tsx +32 -3
  41. package/src/components/message-timeline.tsx +88 -4
  42. package/src/components/model-picker.tsx +11 -3
  43. package/src/components/model-policy-picker-menu.tsx +10 -3
  44. package/src/components/session-conversation.tsx +1 -3
  45. package/src/components/session-status.tsx +2 -2
  46. package/src/connect-panel.tsx +19 -8
  47. package/src/connect-setup.tsx +49 -14
  48. package/src/connect.ts +6 -0
  49. package/src/connection-catalog.tsx +61 -39
  50. package/src/connection-installed.tsx +2 -0
  51. package/src/connection-logo.tsx +14 -10
  52. package/src/discovery-cache.ts +42 -0
  53. package/src/hooks/use-session-events.ts +24 -2
  54. package/src/model-policy.ts +21 -0
  55. package/src/plugin-details.tsx +8 -5
  56. package/src/plugin-discovery.tsx +87 -71
  57. package/src/skill-discovery.tsx +101 -56
  58. package/src/timeline/projection.ts +31 -1
  59. package/src/timeline/turn-summary.tsx +3 -3
  60. package/styles/compiled.css +27 -0
  61. package/styles/connect.css +56 -15
  62. package/dist/chunk-45XEUVTK.js.map +0 -1
  63. package/dist/chunk-CC7AVRIJ.js.map +0 -1
  64. package/dist/chunk-IHQII5WO.js.map +0 -1
  65. package/dist/chunk-PZ27MCZP.js.map +0 -1
  66. package/dist/chunk-UMECRJRV.js.map +0 -1
  67. /package/dist/{chunk-R4KRSFGA.js.map → chunk-IP4BUBKH.js.map} +0 -0
  68. /package/dist/{model-policy-picker-menu-3R336DP2.js.map → model-policy-picker-menu-RVOQ4ZZG.js.map} +0 -0
@@ -98,8 +98,8 @@ export type MessageTimelineProps = {
98
98
  hasNewer?: boolean | undefined;
99
99
  /** A newer history page is being fetched. */
100
100
  loadingNewer?: boolean | undefined;
101
- /** Page forward through history without loading the whole gap to the tip. */
102
- onLoadNewer?: (() => void) | undefined;
101
+ /** Page forward through history. Return the request promise to enable inline error/retry. */
102
+ onLoadNewer?: (() => unknown) | undefined;
103
103
  /**
104
104
  * Reload the live tip window. When omitted, Jump to latest only re-pins and
105
105
  * scrolls the in-memory window.
package/dist/composer.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ModelPolicyPickerMenu
3
- } from "./chunk-UMECRJRV.js";
3
+ } from "./chunk-HJ5VJ4JB.js";
4
4
  import {
5
5
  Actions,
6
6
  AttachButton,
@@ -40,7 +40,7 @@ import {
40
40
  useChatComposer,
41
41
  useChatComposerController,
42
42
  useVoiceInput
43
- } from "./chunk-45XEUVTK.js";
43
+ } from "./chunk-UWVY3OXF.js";
44
44
  import "./chunk-HQV2I5HV.js";
45
45
  import {
46
46
  BillingClassMark,
@@ -49,13 +49,13 @@ import {
49
49
  PickerBackHeader,
50
50
  PickerNavRow,
51
51
  defaultModelPolicyPickerMessages
52
- } from "./chunk-R4KRSFGA.js";
52
+ } from "./chunk-IP4BUBKH.js";
53
53
  import "./chunk-VZTQ73XT.js";
54
54
  import "./chunk-NYESIADM.js";
55
55
  import "./chunk-PLYRL5ER.js";
56
56
  import "./chunk-KZ73RL76.js";
57
57
  import "./chunk-NEXLLTP4.js";
58
- import "./chunk-VRBL3F5E.js";
58
+ import "./chunk-5GAL23FF.js";
59
59
  import "./chunk-22KP6LR5.js";
60
60
  export {
61
61
  Actions,
@@ -1,7 +1,8 @@
1
1
  import { type ConnectSetupProps } from "./connect-setup.js";
2
2
  export type ConnectPanelProps = ConnectSetupProps & {
3
3
  returnUrl: string;
4
- title?: string;
4
+ /** Null omits the heading when the host already supplies one. */
5
+ title?: string | null;
5
6
  showAccounts?: boolean;
6
7
  presentation?: "select" | "catalog";
7
8
  };
@@ -6,7 +6,9 @@ export type ConnectSetupProps = {
6
6
  /** Host pagination must retain selections across pages and submit the final set. */
7
7
  onBrowseResources?: (attempt: ConnectAttempt) => void | Promise<unknown>;
8
8
  className?: string;
9
+ /** Provider-specific label supplied by the embedding host. */
10
+ authorizeLabel?: string | undefined;
9
11
  };
10
- /** Unstyled setup surface. No provider secrets enter React state. Host owns
12
+ /** Controller-backed setup surface, styled by opt-in connect.css. No provider secrets enter React state. Host owns
11
13
  * chooser, controller lifetime, navigation and recovery after full redirect. */
12
14
  export declare function ConnectSetup(props: ConnectSetupProps): import("react").JSX.Element;
package/dist/connect.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { CapabilityCatalogRow, CapabilityCatalogIndicator, type CapabilityCatalogRowProps, type CapabilityCatalogStatus, } from "./capability-catalog-row.js";
1
2
  export { SkillDiscovery, type SkillDiscoveryProps, type SkillDiscoveryClient, type SkillDiscoveryItem, type SkillDiscoveryPage, } from "./skill-discovery.js";
2
3
  import type { ConnectController } from "@opengeni/connect";
3
4
  export { ConnectSetup, type ConnectSetupProps } from "./connect-setup.js";