@instructure/platform-widget-dashboard 16.5.1 → 16.6.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/components/NotificationAlert.d.ts.map +1 -1
- package/dist/components/widgets/DirectoryWidget/DirectoryWidget.d.ts.map +1 -1
- package/dist/components/widgets/PeopleWidget/PeopleWidget.d.ts.map +1 -1
- package/dist/components/widgets/TodoListWidget/TodoItem.d.ts +1 -0
- package/dist/components/widgets/TodoListWidget/TodoItem.d.ts.map +1 -1
- package/dist/components/widgets/TodoListWidget/TodoListWidget.d.ts.map +1 -1
- package/dist/components/widgets/TodoListWidget/hooks/usePlannerItems.d.ts.map +1 -1
- package/dist/hooks/useEducatorCourses.d.ts.map +1 -1
- package/dist/index.js +15644 -21194
- package/dist/utils/roleUtils.d.ts +4 -0
- package/dist/utils/roleUtils.d.ts.map +1 -0
- package/dist/widgetRegistry.d.ts +1 -1
- package/dist/widgetRegistry.d.ts.map +1 -1
- package/package.json +5 -6
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { WidgetDashboardTranslations } from '../contexts/TranslationsContext';
|
|
2
|
+
/** Returns the translated label for a built-in role, or the custom role name unchanged. */
|
|
3
|
+
export declare function readableRoleName(role: string, translations: WidgetDashboardTranslations): string;
|
|
4
|
+
//# sourceMappingURL=roleUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roleUtils.d.ts","sourceRoot":"","sources":["../../src/utils/roleUtils.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAA;AAElF,2FAA2F;AAC3F,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,2BAA2B,GAAG,MAAM,CAMhG"}
|
package/dist/widgetRegistry.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { WidgetRegistry } from './types';
|
|
|
2
2
|
export declare const widgetRegistry: WidgetRegistry;
|
|
3
3
|
/**
|
|
4
4
|
* Filters a widget registry down to the widgets available for a given role.
|
|
5
|
-
* Pass no role to get learner widgets (those
|
|
5
|
+
* Pass no role to get learner widgets (those with no `roles` field or tagged `student`).
|
|
6
6
|
*/
|
|
7
7
|
export declare const getWidgetsForRole: (registry: WidgetRegistry, role?: string) => WidgetRegistry;
|
|
8
8
|
//# sourceMappingURL=widgetRegistry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widgetRegistry.d.ts","sourceRoot":"","sources":["../src/widgetRegistry.tsx"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE7C,eAAO,MAAM,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"widgetRegistry.d.ts","sourceRoot":"","sources":["../src/widgetRegistry.tsx"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE7C,eAAO,MAAM,cAAc,EAAE,cA2F5B,CAAA;AAQD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,UAAU,cAAc,EAAE,OAAO,MAAM,KAAG,cACwB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/platform-widget-dashboard",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.6.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@instructure/platform-canvas-fetch": "0.1.3",
|
|
25
25
|
"@instructure/platform-color-picker": "0.2.2",
|
|
26
26
|
"@instructure/platform-get-cookie": "0.2.1",
|
|
27
|
-
"@instructure/platform-grades": "0.2.
|
|
27
|
+
"@instructure/platform-grades": "0.2.18",
|
|
28
28
|
"@instructure/platform-image-utils": "0.2.0",
|
|
29
29
|
"@instructure/platform-instui-bindings": "0.9.0",
|
|
30
30
|
"@instructure/platform-message-students-modal": "0.2.11",
|
|
@@ -78,12 +78,11 @@
|
|
|
78
78
|
"@instructure/platform-alerts": "1.0.1",
|
|
79
79
|
"@instructure/platform-canvas-fetch": "0.1.3",
|
|
80
80
|
"@instructure/platform-datetime": "0.2.0",
|
|
81
|
-
"@instructure/platform-grades": "0.2.
|
|
82
|
-
"@instructure/platform-graphql-types": "0.2.
|
|
81
|
+
"@instructure/platform-grades": "0.2.18",
|
|
82
|
+
"@instructure/platform-graphql-types": "0.2.12",
|
|
83
83
|
"@instructure/platform-query": "0.2.2",
|
|
84
84
|
"@instructure/platform-sanitize": "^0.7.2",
|
|
85
85
|
"@tanstack/query-persist-client-core": "^5.0.0",
|
|
86
|
-
"sanitize-html": "^2.17.7",
|
|
87
86
|
"zod": "^3.23.8"
|
|
88
87
|
},
|
|
89
88
|
"devDependencies": {
|
|
@@ -102,7 +101,7 @@
|
|
|
102
101
|
"vite": "^6.0.0",
|
|
103
102
|
"vite-plugin-dts": "^4.0.0",
|
|
104
103
|
"vitest": "^4.0.0",
|
|
105
|
-
"@instructure/platform-mock-canvas-api": "0.12.
|
|
104
|
+
"@instructure/platform-mock-canvas-api": "0.12.2",
|
|
106
105
|
"@instructure/ui-a11y-content": "11.7.4",
|
|
107
106
|
"@instructure/ui-alerts": "11.7.4",
|
|
108
107
|
"@instructure/ui-avatar": "11.7.4",
|