@instructure/platform-widget-dashboard 11.3.2 → 11.3.3
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/widgets/TodoListWidget/types.d.ts +3 -5
- package/dist/components/widgets/TodoListWidget/types.d.ts.map +1 -1
- package/dist/components/widgets/TodoListWidget/utils.d.ts +1 -2
- package/dist/components/widgets/TodoListWidget/utils.d.ts.map +1 -1
- package/dist/index.js +749 -754
- package/package.json +1 -1
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const PLANNABLE_TYPES: readonly ["assignment", "quiz", "discussion_topic", "announcement", "wiki_page", "calendar_event", "planner_note", "assessment_request", "discussion_topic_checkpoint"];
|
|
3
|
-
export type PlannableType = (typeof PLANNABLE_TYPES)[number];
|
|
4
2
|
export declare const plannerOverrideSchema: z.ZodObject<{
|
|
5
3
|
id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
6
4
|
plannable_type: z.ZodString;
|
|
@@ -138,7 +136,7 @@ export declare const plannableSchema: z.ZodObject<{
|
|
|
138
136
|
export type Plannable = z.infer<typeof plannableSchema>;
|
|
139
137
|
export declare const plannerItemSchema: z.ZodObject<{
|
|
140
138
|
plannable_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
141
|
-
plannable_type: z.
|
|
139
|
+
plannable_type: z.ZodString;
|
|
142
140
|
plannable: z.ZodObject<{
|
|
143
141
|
id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
144
142
|
title: z.ZodString;
|
|
@@ -287,7 +285,7 @@ export declare const plannerItemSchema: z.ZodObject<{
|
|
|
287
285
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
288
286
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
289
287
|
plannable_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
290
|
-
plannable_type: z.
|
|
288
|
+
plannable_type: z.ZodString;
|
|
291
289
|
plannable: z.ZodObject<{
|
|
292
290
|
id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
293
291
|
title: z.ZodString;
|
|
@@ -436,7 +434,7 @@ export declare const plannerItemSchema: z.ZodObject<{
|
|
|
436
434
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
437
435
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
438
436
|
plannable_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
439
|
-
plannable_type: z.
|
|
437
|
+
plannable_type: z.ZodString;
|
|
440
438
|
plannable: z.ZodObject<{
|
|
441
439
|
id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
442
440
|
title: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/widgets/TodoListWidget/types.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/widgets/TodoListWidget/types.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAOvB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAalB,CAAA;AAEhB,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEnE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAWnB,CAAA;AAEhB,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAErE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAyBZ,CAAA;AAEhB,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AAEvD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAwBd,CAAA;AAEhB,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE3D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAYd,CAAA;AAEhB,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { WidgetDashboardTranslations } from '../../../contexts/TranslationsContext';
|
|
2
|
-
import { PlannableType } from './types';
|
|
3
2
|
type TranslationFunction = (key: string, options?: Record<string, any>) => string;
|
|
4
3
|
export declare function formatDate(dateString: string | undefined, translations: WidgetDashboardTranslations, translate: TranslationFunction, locale: string, timeZone: string): string;
|
|
5
4
|
export declare function formatAnnouncementDate(dateString: string | undefined, t: TranslationFunction, locale: string, timeZone: string): string;
|
|
6
|
-
export declare function getPlannableTypeLabel(type:
|
|
5
|
+
export declare function getPlannableTypeLabel(type: string, translations: WidgetDashboardTranslations): string;
|
|
7
6
|
export declare function isOverdue(dateString: string | undefined): boolean;
|
|
8
7
|
export declare function isClosed(lockAt: string | null | undefined): boolean;
|
|
9
8
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/widgets/TodoListWidget/utils.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAA;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/widgets/TodoListWidget/utils.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAA;AAExF,KAAK,mBAAmB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAA;AAEjF,wBAAgB,UAAU,CACxB,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,YAAY,EAAE,2BAA2B,EACzC,SAAS,EAAE,mBAAmB,EAC9B,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,GACf,MAAM,CA2BR;AAED,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,CAAC,EAAE,mBAAmB,EACtB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,GACf,MAAM,CAUR;AAED,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,2BAA2B,GACxC,MAAM,CAyBR;AAED,wBAAgB,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAKjE;AAED,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAGnE"}
|