@instructure/platform-modules 1.7.0 → 1.9.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 (42) hide show
  1. package/dist/adapters/canvasGraphql/index.d.ts +5 -3
  2. package/dist/adapters/canvasGraphql/index.d.ts.map +1 -1
  3. package/dist/adapters/canvasGraphql/normalize.d.ts +7 -1
  4. package/dist/adapters/canvasGraphql/normalize.d.ts.map +1 -1
  5. package/dist/adapters/canvasGraphql/queries.d.ts +2 -0
  6. package/dist/adapters/canvasGraphql/queries.d.ts.map +1 -1
  7. package/dist/adapters/inMemory.d.ts +4 -2
  8. package/dist/adapters/inMemory.d.ts.map +1 -1
  9. package/dist/adapters/index.d.ts +2 -2
  10. package/dist/adapters/index.d.ts.map +1 -1
  11. package/dist/adapters/types.d.ts +15 -0
  12. package/dist/adapters/types.d.ts.map +1 -1
  13. package/dist/components/ModuleCard.d.ts +1 -0
  14. package/dist/components/ModuleCard.d.ts.map +1 -1
  15. package/dist/components/ModuleCard.stories.d.ts +2 -0
  16. package/dist/components/ModuleCard.stories.d.ts.map +1 -1
  17. package/dist/components/ModuleItemRow.d.ts +8 -3
  18. package/dist/components/ModuleItemRow.d.ts.map +1 -1
  19. package/dist/components/ModulesList.d.ts +0 -1
  20. package/dist/components/ModulesList.d.ts.map +1 -1
  21. package/dist/components/ModulesList.stories.d.ts +1 -1
  22. package/dist/components/ModulesList.stories.d.ts.map +1 -1
  23. package/dist/components/labels.d.ts +9 -3
  24. package/dist/components/labels.d.ts.map +1 -1
  25. package/dist/config/itemMeta.d.ts.map +1 -1
  26. package/dist/config/itemTypes.d.ts +4 -0
  27. package/dist/config/itemTypes.d.ts.map +1 -1
  28. package/dist/config/schemas.d.ts +2 -0
  29. package/dist/config/schemas.d.ts.map +1 -1
  30. package/dist/config/types.d.ts +2 -0
  31. package/dist/config/types.d.ts.map +1 -1
  32. package/dist/config/useFormatters.d.ts +2 -0
  33. package/dist/config/useFormatters.d.ts.map +1 -1
  34. package/dist/hooks/constants.d.ts +2 -0
  35. package/dist/hooks/constants.d.ts.map +1 -1
  36. package/dist/hooks/useModulesPageData.d.ts +2 -0
  37. package/dist/hooks/useModulesPageData.d.ts.map +1 -1
  38. package/dist/index.d.ts +3 -3
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/index.js +1920 -1663
  41. package/locales/en.json +15 -7
  42. package/package.json +7 -3
package/locales/en.json CHANGED
@@ -1,5 +1,9 @@
1
1
  {
2
2
  "pageTitle": "Course modules",
3
+ "pageHeading": "%{courseName} Modules",
4
+ "breadcrumbLabel": "Breadcrumb",
5
+ "breadcrumbCourses": "Courses",
6
+ "breadcrumbModules": "Modules",
3
7
  "modulesLoadedAnnouncement": {
4
8
  "one": "%{count} module loaded",
5
9
  "other": "%{count} modules loaded"
@@ -107,17 +111,19 @@
107
111
  "dueByline": "Due %{when}",
108
112
  "unlockByline": "Will unlock on %{when}",
109
113
  "unlockedByline": "Unlocked on %{when}",
114
+ "estimatedDurationByline": "%{duration} to complete",
115
+ "remainingDurationByline": "%{duration} remaining",
116
+ "estimatedDurationHoursAndMinutes": "%{hours}h %{minutes}m",
117
+ "estimatedDurationHours": "%{count}h",
118
+ "estimatedDurationMinutesAbbreviated": "%{count}m",
110
119
  "pointsAbbreviated": {
111
120
  "one": "%{count} pt",
112
121
  "other": "%{count} pts"
113
122
  },
114
- "progressSummary": {
115
- "one": "%{percent}% | %{met} of %{count} requirement met",
116
- "other": "%{percent}% | %{met} of %{count} requirements met"
117
- },
123
+ "progressSummary": "%{met} of %{count}",
118
124
  "progressScreenReaderValue": {
119
- "one": "%{percent}% complete, %{met} of %{count} requirement met",
120
- "other": "%{percent}% complete, %{met} of %{count} requirements met"
125
+ "one": "%{met} of %{count} requirement met",
126
+ "other": "%{met} of %{count} requirements met"
121
127
  },
122
128
  "moduleProgressOverviewPercentLabel": "%{percent}%",
123
129
  "moduleProgressOverviewSummary": {
@@ -131,7 +137,9 @@
131
137
  },
132
138
  "moduleProgressOverviewGroupLabel": "Module progress",
133
139
  "moduleProgressSegmentLabel": "%{name}: %{status}",
134
- "durationMinutes": "%{count} min",
140
+ "durationMinutes": "%{count}min",
141
+ "durationHours": "%{count}hr",
142
+ "durationHoursAndMinutes": "%{hours}hr %{minutes}min",
135
143
  "itemUnpublishedLabel": "Unpublished",
136
144
  "itemUntitled": "Untitled item",
137
145
  "opensInNewWindow": "opens in a new window",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/platform-modules",
3
- "version": "1.7.0",
3
+ "version": "1.9.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -20,6 +20,7 @@
20
20
  "@instructure/emotion": "^11.0.0",
21
21
  "@instructure/ui-a11y-content": "^11.0.0",
22
22
  "@instructure/ui-alerts": "^11.7.0",
23
+ "@instructure/ui-breadcrumb": "^11.7.0",
23
24
  "@instructure/ui-buttons": "^11.7.0",
24
25
  "@instructure/ui-checkbox": "^11.7.0",
25
26
  "@instructure/ui-color-utils": "^11.7.0",
@@ -49,13 +50,15 @@
49
50
  "dependencies": {
50
51
  "graphql-tag": "^2.12.6",
51
52
  "p-limit": "^6.1.0",
52
- "@instructure/platform-instui-bindings": "0.6.5",
53
+ "@instructure/platform-canvas-fetch": "0.1.3",
54
+ "@instructure/platform-instui-bindings": "0.7.0",
53
55
  "@instructure/platform-with-breakpoints": "0.3.0"
54
56
  },
55
57
  "devDependencies": {
56
58
  "@instructure/emotion": "11.7.4",
57
59
  "@instructure/ui-a11y-content": "11.7.4",
58
60
  "@instructure/ui-alerts": "11.7.4",
61
+ "@instructure/ui-breadcrumb": "11.7.4",
59
62
  "@instructure/ui-buttons": "11.7.4",
60
63
  "@instructure/ui-checkbox": "11.7.4",
61
64
  "@instructure/ui-color-utils": "11.7.4",
@@ -87,12 +90,13 @@
87
90
  "@vitest/coverage-v8": "^4.0.17",
88
91
  "graphql": "^16.9.0",
89
92
  "jsdom": "^25.0.0",
93
+ "msw": "^2.7.0",
90
94
  "typescript": "^5.3.0",
91
95
  "vite": "^6.0.0",
92
96
  "vite-plugin-dts": "^4.0.0",
93
97
  "vitest": "^4.0.0",
94
98
  "zod": "^3.23.8",
95
- "@instructure/platform-mock-canvas-api": "0.5.1"
99
+ "@instructure/platform-mock-canvas-api": "0.6.0"
96
100
  },
97
101
  "scripts": {
98
102
  "build": "vite build",