@instructure/platform-widget-dashboard 7.6.0 → 7.7.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/dist/components/DashboardTabs.d.ts.map +1 -1
- package/dist/hooks/useWidgetDashboardContext.d.ts +13 -1
- package/dist/hooks/useWidgetDashboardContext.d.ts.map +1 -1
- package/dist/index.js +3334 -3332
- package/dist/types/widget.d.ts +7 -0
- package/dist/types/widget.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/components/CoursesTab.canvas.d.ts +0 -4
- package/dist/components/CoursesTab.canvas.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardTabs.d.ts","sourceRoot":"","sources":["../../src/components/DashboardTabs.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"DashboardTabs.d.ts","sourceRoot":"","sources":["../../src/components/DashboardTabs.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAgE1B,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { AccountInfo, CurrentUser, DashboardFeatures, DashboardPreferences, ObservedUser, SharedCourseData, WidgetRegistry } from '../types';
|
|
3
3
|
export type { SharedCourseData };
|
|
4
|
-
export declare const WidgetDashboardProvider: ({ children, preferences, observedUsersList, canAddObservee, currentUser, observedUserId, currentUserRoles, sharedCourseData, dashboardFeatures, hubBaseUrl, accountName, accountDashboardUrl, accounts, customWidgets, isDark: isDarkProp, widgetDashboardOverridable, addOakMountPoint, onSaveWidgetConfig, }: {
|
|
4
|
+
export declare const WidgetDashboardProvider: ({ children, preferences, observedUsersList, canAddObservee, currentUser, observedUserId, currentUserRoles, sharedCourseData, dashboardFeatures, hubBaseUrl, accountName, accountDashboardUrl, accounts, customWidgets, renderCoursesTab, isDark: isDarkProp, widgetDashboardOverridable, addOakMountPoint, onSaveWidgetConfig, }: {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
preferences?: DashboardPreferences;
|
|
7
7
|
observedUsersList?: ObservedUser[];
|
|
@@ -23,6 +23,11 @@ export declare const WidgetDashboardProvider: ({ children, preferences, observed
|
|
|
23
23
|
* context consumers.
|
|
24
24
|
*/
|
|
25
25
|
customWidgets?: WidgetRegistry;
|
|
26
|
+
/**
|
|
27
|
+
* Host-supplied renderer for the Courses tab content. Canvas passes its
|
|
28
|
+
* dashboard-card–backed CoursesTab here; omit it for non-Canvas hosts.
|
|
29
|
+
*/
|
|
30
|
+
renderCoursesTab?: () => React.ReactNode;
|
|
26
31
|
isDark?: boolean;
|
|
27
32
|
widgetDashboardOverridable?: boolean;
|
|
28
33
|
addOakMountPoint?: boolean;
|
|
@@ -40,6 +45,13 @@ export declare function useWidgetDashboard(): {
|
|
|
40
45
|
hubBaseUrl?: string;
|
|
41
46
|
accounts: AccountInfo[];
|
|
42
47
|
customWidgets: WidgetRegistry;
|
|
48
|
+
/**
|
|
49
|
+
* Host-supplied renderer for the Courses tab content. The real Courses tab
|
|
50
|
+
* mounts Canvas-only dependencies (dashboard cards) that cannot live inside
|
|
51
|
+
* this host-agnostic package, so Canvas injects it here. When omitted (e.g.
|
|
52
|
+
* Storybook / non-Canvas hosts) DashboardTabs renders a stub instead.
|
|
53
|
+
*/
|
|
54
|
+
renderCoursesTab?: () => React.ReactNode;
|
|
43
55
|
isDark: boolean;
|
|
44
56
|
setIsDark: (isDark: boolean) => void;
|
|
45
57
|
widgetDashboardOverridable: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWidgetDashboardContext.d.ts","sourceRoot":"","sources":["../../src/hooks/useWidgetDashboardContext.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAoE,MAAM,OAAO,CAAA;AACxF,OAAO,KAAK,EACV,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACf,MAAM,UAAU,CAAA;AAGjB,YAAY,EAAE,gBAAgB,EAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"useWidgetDashboardContext.d.ts","sourceRoot":"","sources":["../../src/hooks/useWidgetDashboardContext.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAoE,MAAM,OAAO,CAAA;AACxF,OAAO,KAAK,EACV,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACf,MAAM,UAAU,CAAA;AAGjB,YAAY,EAAE,gBAAgB,EAAE,CAAA;AAyDhC,eAAO,MAAM,uBAAuB,GAAI,kUAoBrC;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,WAAW,CAAC,EAAE,oBAAoB,CAAA;IAClC,iBAAiB,CAAC,EAAE,YAAY,EAAE,CAAA;IAClC,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,WAAW,GAAG,IAAI,CAAA;IAChC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC3B,gBAAgB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACrC,iBAAiB,CAAC,EAAE,iBAAiB,CAAA;IACrC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACnC,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAA;IACxB;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,cAAc,CAAA;IAC9B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,CAAA;IACxC,MAAM,CAAC,EAAE,OAAO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