obi-sdk 0.19.50-beta.7 → 0.19.50

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.
@@ -22,7 +22,7 @@ export type CourseDialogContentProps = {
22
22
  */
23
23
  controlBarProps: ControlBarProps;
24
24
  /**
25
- * Courses shown in the right-hand selection panel.
25
+ * Courses shown in the course selection panel.
26
26
  */
27
27
  courses: CoursePanelCourse[];
28
28
  /**
@@ -30,15 +30,31 @@ export type CourseDialogContentProps = {
30
30
  */
31
31
  coursePanelProps?: Omit<React.ComponentProps<typeof CoursePanel>, "courses">;
32
32
  /**
33
- * Optional replacement content for the right-hand panel.
33
+ * Optional replacement content for the middle panel.
34
34
  * When provided, this replaces the default CoursePanel, allowing
35
- * the dialog to show chat or other alternate content.
35
+ * the dialog to show an outline or other alternate content.
36
+ */
37
+ middlePanel?: React.ReactNode;
38
+ /**
39
+ * Optional third panel rendered to the right of the middle panel.
40
+ * When provided, this displays alongside the course list/outline,
41
+ * enabling chat or other messaging content.
36
42
  */
37
43
  rightPanel?: React.ReactNode;
44
+ /**
45
+ * When true, indicates that the course outline is currently being shown.
46
+ * Used to determine when to show the return to PiP button.
47
+ */
48
+ isCourseOutlineOpen?: boolean;
49
+ /**
50
+ * Called when the return to PiP button is clicked.
51
+ * The button is only shown when isCourseOutlineOpen is true and this callback is provided.
52
+ */
53
+ onReturnToPiP?: () => void;
38
54
  className?: string;
39
55
  };
40
56
  /**
41
- * CourseDialogContent renders the two-panel course selection UI without owning dialog state.
57
+ * CourseDialogContent renders the panelled course selection UI without owning dialog state.
42
58
  * This makes it easy to reuse in Storybook without needing to click a trigger to open.
43
59
  */
44
60
  export declare function CourseDialogContent(props: CourseDialogContentProps): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "obi-sdk",
3
- "version": "0.19.50-beta.7",
3
+ "version": "0.19.50",
4
4
  "description": "JavaScript SDK for Obi",
5
5
  "type": "module",
6
6
  "main": "dist/obi-sdk.umd.js",