@instructure/platform-modules 1.7.0 → 1.8.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/locales/en.json CHANGED
@@ -107,17 +107,19 @@
107
107
  "dueByline": "Due %{when}",
108
108
  "unlockByline": "Will unlock on %{when}",
109
109
  "unlockedByline": "Unlocked on %{when}",
110
+ "estimatedDurationByline": "%{duration} to complete",
111
+ "remainingDurationByline": "%{duration} remaining",
112
+ "estimatedDurationHoursAndMinutes": "%{hours}h %{minutes}m",
113
+ "estimatedDurationHours": "%{count}h",
114
+ "estimatedDurationMinutesAbbreviated": "%{count}m",
110
115
  "pointsAbbreviated": {
111
116
  "one": "%{count} pt",
112
117
  "other": "%{count} pts"
113
118
  },
114
- "progressSummary": {
115
- "one": "%{percent}% | %{met} of %{count} requirement met",
116
- "other": "%{percent}% | %{met} of %{count} requirements met"
117
- },
119
+ "progressSummary": "%{met} of %{count}",
118
120
  "progressScreenReaderValue": {
119
- "one": "%{percent}% complete, %{met} of %{count} requirement met",
120
- "other": "%{percent}% complete, %{met} of %{count} requirements met"
121
+ "one": "%{met} of %{count} requirement met",
122
+ "other": "%{met} of %{count} requirements met"
121
123
  },
122
124
  "moduleProgressOverviewPercentLabel": "%{percent}%",
123
125
  "moduleProgressOverviewSummary": {
@@ -131,7 +133,9 @@
131
133
  },
132
134
  "moduleProgressOverviewGroupLabel": "Module progress",
133
135
  "moduleProgressSegmentLabel": "%{name}: %{status}",
134
- "durationMinutes": "%{count} min",
136
+ "durationMinutes": "%{count}min",
137
+ "durationHours": "%{count}hr",
138
+ "durationHoursAndMinutes": "%{hours}hr %{minutes}min",
135
139
  "itemUnpublishedLabel": "Unpublished",
136
140
  "itemUntitled": "Untitled item",
137
141
  "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.8.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -49,7 +49,8 @@
49
49
  "dependencies": {
50
50
  "graphql-tag": "^2.12.6",
51
51
  "p-limit": "^6.1.0",
52
- "@instructure/platform-instui-bindings": "0.6.5",
52
+ "@instructure/platform-canvas-fetch": "0.1.3",
53
+ "@instructure/platform-instui-bindings": "0.7.0",
53
54
  "@instructure/platform-with-breakpoints": "0.3.0"
54
55
  },
55
56
  "devDependencies": {
@@ -87,12 +88,13 @@
87
88
  "@vitest/coverage-v8": "^4.0.17",
88
89
  "graphql": "^16.9.0",
89
90
  "jsdom": "^25.0.0",
91
+ "msw": "^2.7.0",
90
92
  "typescript": "^5.3.0",
91
93
  "vite": "^6.0.0",
92
94
  "vite-plugin-dts": "^4.0.0",
93
95
  "vitest": "^4.0.0",
94
96
  "zod": "^3.23.8",
95
- "@instructure/platform-mock-canvas-api": "0.5.1"
97
+ "@instructure/platform-mock-canvas-api": "0.6.0"
96
98
  },
97
99
  "scripts": {
98
100
  "build": "vite build",