@instructure/platform-rubrics 0.3.0 → 0.4.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 (72) hide show
  1. package/dist/_internal/RubricAssignment/hooks/useAssignmentRubric.d.ts +4 -0
  2. package/dist/_internal/RubricAssignment/hooks/useAssignmentRubric.d.ts.map +1 -0
  3. package/dist/_internal/RubricAssignment/queries/gql.d.ts +4 -0
  4. package/dist/_internal/RubricAssignment/queries/gql.d.ts.map +1 -0
  5. package/dist/_internal/RubricAssignment/queries/mutations.d.ts +22 -0
  6. package/dist/_internal/RubricAssignment/queries/mutations.d.ts.map +1 -0
  7. package/dist/_internal/RubricAssignment/queries/queries.d.ts +92 -0
  8. package/dist/_internal/RubricAssignment/queries/queries.d.ts.map +1 -0
  9. package/dist/_internal/RubricAssignment/types.d.ts +6 -0
  10. package/dist/_internal/RubricAssignment/types.d.ts.map +1 -0
  11. package/dist/_internal/RubricForm/useSaveRubricForm.d.ts.map +1 -1
  12. package/dist/_internal/ViewRubrics/queries/gql.d.ts.map +1 -1
  13. package/dist/_internal/ViewRubrics/queries/queries.d.ts +3 -29
  14. package/dist/_internal/ViewRubrics/queries/queries.d.ts.map +1 -1
  15. package/dist/_internal/ViewRubrics/useRubricsQuery.d.ts.map +1 -1
  16. package/dist/_internal/constants/i18n.d.ts +59 -0
  17. package/dist/_internal/constants/i18n.d.ts.map +1 -1
  18. package/dist/_internal/hooks/useRubricsPlatformUiContext.d.ts +1 -0
  19. package/dist/_internal/hooks/useRubricsPlatformUiContext.d.ts.map +1 -1
  20. package/dist/_internal/utils/rubricMapping.d.ts +8 -8
  21. package/dist/_internal/utils/rubricMapping.d.ts.map +1 -1
  22. package/dist/canvas/RubricAssignment/components/DeleteConfirmModal.d.ts +8 -0
  23. package/dist/canvas/RubricAssignment/components/DeleteConfirmModal.d.ts.map +1 -0
  24. package/dist/canvas/{RubricForm → RubricAssignment}/components/EditConfirmModal.d.ts +1 -2
  25. package/dist/canvas/RubricAssignment/components/EditConfirmModal.d.ts.map +1 -0
  26. package/dist/canvas/RubricAssignment/components/RubricAssignmentContainer.d.ts +29 -0
  27. package/dist/canvas/RubricAssignment/components/RubricAssignmentContainer.d.ts.map +1 -0
  28. package/dist/canvas/RubricAssignment/components/RubricCreateModal.d.ts +15 -0
  29. package/dist/canvas/RubricAssignment/components/RubricCreateModal.d.ts.map +1 -0
  30. package/dist/canvas/RubricAssignment/components/RubricSearchTray/RubricContextSelect.d.ts +9 -0
  31. package/dist/canvas/RubricAssignment/components/RubricSearchTray/RubricContextSelect.d.ts.map +1 -0
  32. package/dist/canvas/RubricAssignment/components/RubricSearchTray/RubricSearchFooter.d.ts +7 -0
  33. package/dist/canvas/RubricAssignment/components/RubricSearchTray/RubricSearchFooter.d.ts.map +1 -0
  34. package/dist/canvas/RubricAssignment/components/RubricSearchTray/RubricSearchRow.d.ts +9 -0
  35. package/dist/canvas/RubricAssignment/components/RubricSearchTray/RubricSearchRow.d.ts.map +1 -0
  36. package/dist/canvas/RubricAssignment/components/RubricSearchTray/RubricSearchTray.d.ts +10 -0
  37. package/dist/canvas/RubricAssignment/components/RubricSearchTray/RubricSearchTray.d.ts.map +1 -0
  38. package/dist/canvas/RubricAssignment/components/RubricSearchTray/RubricsForContext.d.ts +12 -0
  39. package/dist/canvas/RubricAssignment/components/RubricSearchTray/RubricsForContext.d.ts.map +1 -0
  40. package/dist/canvas/RubricAssignment/components/RubricSelfAssessmentSettings.d.ts +14 -0
  41. package/dist/canvas/RubricAssignment/components/RubricSelfAssessmentSettings.d.ts.map +1 -0
  42. package/dist/canvas/RubricForm/components/RubricCriteriaContainer.d.ts +2 -1
  43. package/dist/canvas/RubricForm/components/RubricCriteriaContainer.d.ts.map +1 -1
  44. package/dist/canvas/RubricForm/components/RubricCriteriaRow.d.ts +4 -1
  45. package/dist/canvas/RubricForm/components/RubricCriteriaRow.d.ts.map +1 -1
  46. package/dist/canvas/RubricForm/components/RubricFormFooter.d.ts +1 -2
  47. package/dist/canvas/RubricForm/components/RubricFormFooter.d.ts.map +1 -1
  48. package/dist/canvas/RubricForm/index.d.ts +7 -10
  49. package/dist/canvas/RubricForm/index.d.ts.map +1 -1
  50. package/dist/canvas/ViewRubrics/ImportRubric/ImportFailuresModal.d.ts +9 -0
  51. package/dist/canvas/ViewRubrics/ImportRubric/ImportFailuresModal.d.ts.map +1 -0
  52. package/dist/canvas/ViewRubrics/ImportRubric/ImportRubricTray.d.ts +11 -0
  53. package/dist/canvas/ViewRubrics/ImportRubric/ImportRubricTray.d.ts.map +1 -0
  54. package/dist/canvas/ViewRubrics/ImportRubric/ImportTable.d.ts +8 -0
  55. package/dist/canvas/ViewRubrics/ImportRubric/ImportTable.d.ts.map +1 -0
  56. package/dist/canvas/ViewRubrics/ImportRubric/index.d.ts +11 -0
  57. package/dist/canvas/ViewRubrics/ImportRubric/index.d.ts.map +1 -0
  58. package/dist/canvas/ViewRubrics/RubricPopover.d.ts +1 -0
  59. package/dist/canvas/ViewRubrics/RubricPopover.d.ts.map +1 -1
  60. package/dist/canvas/ViewRubrics/RubricTable.d.ts +1 -0
  61. package/dist/canvas/ViewRubrics/RubricTable.d.ts.map +1 -1
  62. package/dist/canvas/ViewRubrics/ViewRubricsPaginated.d.ts.map +1 -1
  63. package/dist/canvas/ViewRubrics/shared.d.ts +10 -24
  64. package/dist/canvas/ViewRubrics/shared.d.ts.map +1 -1
  65. package/dist/canvas/index.d.ts +5 -0
  66. package/dist/canvas/index.d.ts.map +1 -1
  67. package/dist/canvas.js +6275 -5216
  68. package/dist/chunks/{useRubricsPlatformUiContext-BAUrpHCz.js → useRubricsPlatformUiContext-BDRhg138.js} +149 -70
  69. package/dist/foundation.js +1 -1
  70. package/locales/en.json +59 -0
  71. package/package.json +11 -3
  72. package/dist/canvas/RubricForm/components/EditConfirmModal.d.ts.map +0 -1
@@ -37,7 +37,7 @@ const d = {
37
37
  rubricFormCannotUpdate: "Rubrics cannot be modified once they have been used in more than one place. Any saved changes will create a new rubric.",
38
38
  rubricFormLimitedEdit: "This rubric has already been used for grading. Any changes made may impact existing student scores or grading data.",
39
39
  rubricFormSaveError: "There was an error saving the rubric."
40
- }, v = {
40
+ }, R = {
41
41
  footerCreateRubric: "Create Rubric",
42
42
  footerPreviewRubric: "Preview Rubric",
43
43
  footerSaveAsDraft: "Save as Draft",
@@ -59,14 +59,14 @@ const d = {
59
59
  scoringTypeScored: "Scored",
60
60
  scoringTypeSelectLabel: "Scoring",
61
61
  scoringTypeUnscored: "Unscored"
62
- }, L = {
62
+ }, v = {
63
63
  hideOutcomeResultsLabel: "Don't post to Learning Mastery Gradebook",
64
64
  hideScoreTotalLabel: "Hide rubric score total from students",
65
65
  useForGradingLabel: "Use this rubric for assignment grading"
66
- }, R = {
66
+ }, S = {
67
67
  confirmToContinueHeader: "Confirm to continue",
68
68
  gradingHistoryWarning: "This rubric has already been used for grading. Saving changes may alter student scores or grading history. Are you sure you want to proceed?"
69
- }, S = {
69
+ }, L = {
70
70
  saveConfirmModalLabel: "Rubric Save Confirmation Dialog",
71
71
  saveConfirmModalSave: "Save"
72
72
  }, M = {
@@ -82,7 +82,7 @@ const d = {
82
82
  duplicateCriterionLabel: "Duplicate Criterion",
83
83
  editCriterionLabel: "Edit Criterion",
84
84
  viewOutcomeCriterionLabel: "View Outcome Criterion"
85
- }, P = {
85
+ }, A = {
86
86
  outcomeCriterionModalCriterionName: "Criterion Name",
87
87
  outcomeCriterionModalDescription: "Description",
88
88
  outcomeCriterionModalDisplay: "Display",
@@ -107,7 +107,7 @@ const d = {
107
107
  errorPageWhatHappened: "What happened?",
108
108
  errorPageYourEmailAddress: "Your Email Address",
109
109
  rubricErrorPageCategory: "Edit Rubric Error Page"
110
- }, A = {
110
+ }, P = {
111
111
  criterionModalCreateTitle: "Create New Criterion",
112
112
  criterionModalEditTitle: "Edit Criterion",
113
113
  criterionModalEnableRange: "Enable Range",
@@ -117,12 +117,12 @@ const d = {
117
117
  criterionModalPointsPossible: "Points Possible",
118
118
  criterionModalRatingScaleHeading: "Rating Scale",
119
119
  criterionModalSaveCriterion: "Save Criterion"
120
- }, D = {
120
+ }, F = {
121
121
  criterionLongDescriptionLabel: "Criterion Description",
122
122
  criterionLongDescriptionPlaceholder: "Enter the description",
123
123
  criterionNameLabel: "Criterion Name",
124
124
  criterionNamePlaceholder: "Enter the name"
125
- }, F = {
125
+ }, D = {
126
126
  pointRangeLabel: "Point Range",
127
127
  pointsLabel: "Points",
128
128
  rangeStartPrefix: ">%{rangeStart} to ",
@@ -132,7 +132,7 @@ const d = {
132
132
  ratingsHeaderDisplay: "Display",
133
133
  removeRatingAriaLabel: "Remove %{ratingName} Rating",
134
134
  reorderRatingAriaLabel: "Reorder %{ratingName} Rating"
135
- }, N = {
135
+ }, E = {
136
136
  addRatingButtonLabel: "Add Rating",
137
137
  addRatingRowLabel: "Add New Rating",
138
138
  addRatingScreenReaderLabel: "Add new rating"
@@ -141,37 +141,37 @@ const d = {
141
141
  moveDownLabel: "Move Down",
142
142
  moveUpLabel: "Move Up",
143
143
  ratingOptionsLabel: "Rating Options"
144
- }, E = {
144
+ }, N = {
145
145
  ratingScaleColRating: "Rating",
146
146
  ratingScaleColScale: "Scale",
147
147
  ratingScaleSummary: "Rating Scale: %{ratingsLength}"
148
148
  }, H = {
149
149
  criterionMovedAnnouncement: "Criterion moved to position %{position}"
150
- }, O = {
150
+ }, x = {
151
151
  aiGeneratedIconTitle: "Ignite AI Generated",
152
152
  freeformCommentAreaHint: "This area will be used by the assessor to leave comments related to this criterion.",
153
153
  outcomeCannotEditTooltip: "An outcome can't be edited",
154
154
  reorderCriterionAriaLabel: "Reorder %{criterionName} Criterion"
155
- }, B = {
156
- criterionOptionsLabel: "Criterion Options"
157
155
  }, k = {
156
+ criterionOptionsLabel: "Criterion Options"
157
+ }, B = {
158
158
  createFromOutcomeButton: "Create From Outcome",
159
159
  draftNewCriterionButton: "Draft New Criterion",
160
160
  newCriteriaActionsHeader: "New Criteria Actions",
161
161
  numberColumnHeader: "Number",
162
162
  reorderColumnHeader: "Reorder"
163
- }, x = {
163
+ }, O = {
164
164
  assessmentRatingButtonLabel: "Rating Button %{buttonLabel} %{selectedText}",
165
165
  assessmentRatingSelected: "Selected",
166
166
  assessmentRatingSelectedAndSelfAssessment: "Selected and Self Assessment",
167
167
  assessmentRatingSelfAssessment: "Self Assessment"
168
- }, G = {
168
+ }, U = {
169
169
  assessmentComment: "Comment",
170
170
  assessmentCommentAriaLabel: "Assessment Comment",
171
171
  assessmentCommentLibraryAssistiveText: "Select from saved comments",
172
172
  assessmentCommentLibraryEllipsis: "…",
173
173
  assessmentLongDescriptionHeader: "Criterion Long Description"
174
- }, U = {
174
+ }, G = {
175
175
  assessmentSelfAssessmentCommentedAt: ", %{dueDate} at %{time}",
176
176
  assessmentSelfAssessmentEvaluate: "Evaluate your work as you believe your instructor would.",
177
177
  assessmentSelfAssessmentPrompt: "How well did you do?",
@@ -190,7 +190,7 @@ const d = {
190
190
  }, q = {
191
191
  assessmentAiUsageButton: "AI Assisted",
192
192
  assessmentAiUsageDescription: "To support more fair and consistent grading, AI was used to assist in the grading process. All final grades are determined by your instructor."
193
- }, j = {
193
+ }, z = {
194
194
  assessmentOutcomeCalculationMethod: "Calculation Method",
195
195
  assessmentOutcomeExample: "Example",
196
196
  assessmentOutcomePopoverLabel: "Rubric Outcome Popover",
@@ -199,7 +199,7 @@ const d = {
199
199
  outcomeContextTagCourseLevel: "This is a course-level outcome",
200
200
  outcomeContextTagInstitution: "Institution",
201
201
  outcomeContextTagInstitutionLevel: "This is an institution-level outcome"
202
- }, z = {
202
+ }, Y = {
203
203
  assessmentCommentsHeader: "Comments",
204
204
  assessmentCriteriaHeader: "Criteria",
205
205
  assessmentPointsHeader: "Points",
@@ -207,7 +207,7 @@ const d = {
207
207
  assessmentRubricCaption: "Rubric",
208
208
  assessmentThreshold: "Threshold: %{threshold}",
209
209
  assessmentViewLongerDescription: "view longer description"
210
- }, Y = {
210
+ }, j = {
211
211
  assessmentClear: "Clear",
212
212
  assessmentCommentLibrary: "Comment Library",
213
213
  assessmentCriterionComment: "Criterion Comment",
@@ -305,14 +305,14 @@ const d = {
305
305
  }, ee = {
306
306
  criteriaAutoGeneratedLabel: "Criteria Auto-Generated",
307
307
  noCriteriaForRegenerationTooltip: "There are no criteria available for regeneration"
308
- }, te = {
308
+ }, re = {
309
309
  nutritionFactsCurrentFeatureLabel: "Current Feature:",
310
310
  nutritionFactsModalLabel: "This is a modal for AI facts",
311
311
  nutritionFactsPermissionLevelsModalLabel: "This is a Data Permission Levels modal",
312
312
  nutritionFactsPermissionLevelsTitle: "Data Permission Levels",
313
313
  nutritionFactsTitle: "Nutrition Facts",
314
314
  nutritionFactsTriggerLabel: "Nutrition facts"
315
- }, re = {
315
+ }, te = {
316
316
  generateCriteriaAdditionalPromptLabel: "Additional Prompt Information",
317
317
  generateCriteriaAdditionalPromptPlaceholder: 'Optional. For example, "Target a college-level seminar." or "Focus on argument substance." or "Be lenient."',
318
318
  generateCriteriaAdditionalPromptTooLong: "Additional prompt information must be less than 1000 characters",
@@ -340,13 +340,13 @@ const d = {
340
340
  standardObjectiveLabel: "Standard / Outcome Information",
341
341
  standardObjectivePlaceholder: 'Optional. Place standard or outcome here. For example, "Students will analyze primary sources".',
342
342
  standardObjectiveTooLong: "Standard and Outcome information must be less than 1000 characters"
343
- }, ae = {
343
+ }, ie = {
344
344
  deleteRubricModalBody: "Are you sure you want to delete this rubric?",
345
345
  deleteRubricModalError: "There was an error deleting the rubric.",
346
346
  deleteRubricModalLabel: "Delete Rubric Modal",
347
347
  deleteRubricModalSuccess: "Rubric deleted successfully",
348
348
  deleteRubricModalTitle: "Delete %{title}"
349
- }, ie = {
349
+ }, ae = {
350
350
  duplicateRubricModalBody: "Are you sure you want to duplicate this rubric?",
351
351
  duplicateRubricModalError: "There was an error duplicating the rubric.",
352
352
  duplicateRubricModalLabel: "Duplicate Rubric Modal",
@@ -398,6 +398,75 @@ const d = {
398
398
  viewRubricsUnarchiveError: "Error Un-Archiving Rubric",
399
399
  viewRubricsUnarchiveSuccess: "Rubric un-archived successfully"
400
400
  }, ue = {
401
+ importFailuresModalFileListHeader: "The import failed for the following file(s):",
402
+ importFailuresModalHeading: "Import Failed",
403
+ importFailuresModalLabel: "Import Failures",
404
+ importFailuresModalReasonHeader: "This import failure was due to the following:",
405
+ importRubricError: "Error Importing rubric",
406
+ importRubricNoneImported: "No rubrics were successfully imported",
407
+ importRubricStarted: "Rubric import started. This may take a few seconds to complete.",
408
+ importRubricStatusError: "Error retrieving import status",
409
+ importRubricSuccess: {
410
+ one: "%{count} rubric was successfully imported",
411
+ other: "%{count} rubrics were successfully imported"
412
+ },
413
+ importRubricTrayChooseFile: "Choose a file to upload",
414
+ importRubricTrayDownloadTemplate: "Download Template",
415
+ importRubricTrayDragFile: "Drag a file here, or",
416
+ importRubricTrayHeading: "Import Rubrics",
417
+ importRubricTrayLabel: "Import Rubrics Tray",
418
+ importRubricTrayTemplateAlert: "This feature requires the use of our rubric template.",
419
+ importRubricUnknownError: "Unknown error occurred",
420
+ importTableCaption: "Table of Imports in Progress",
421
+ importTableFileNameHeader: "File Name",
422
+ importTableProgressLabel: "Loading completion",
423
+ importTableSizeHeader: "Size"
424
+ }, me = {
425
+ rubricAssignmentDeleteBody: "Are you sure you want to delete this rubric?",
426
+ rubricAssignmentDeleteTitle: "Delete Rubric?",
427
+ rubricAssignmentUnlink: "Unlink",
428
+ rubricAssignmentUnlinkBody: "The rubric is associated with an account, course, or another assignment. You can remove this rubric from the assignment without impacting other assignments by unlinking it.",
429
+ rubricAssignmentUnlinkTitle: "Unlink Rubric"
430
+ }, be = {
431
+ rubricAssignmentSelfAssessmentInfoButtonLabel: "Why is self assessment disabled?",
432
+ rubricAssignmentSelfAssessmentInfoText: "This toggle will be disabled if the due date has passed OR there have already been self-assessments made on this assignment OR if the assignment is a group assignment.",
433
+ rubricAssignmentSelfAssessmentLabel: "Enable self assessment",
434
+ rubricAssignmentSelfAssessmentUpdateError: "Failed to update self assessment settings"
435
+ }, ge = {
436
+ rubricSearchTrayHeading: "Find Rubric",
437
+ rubricSearchTrayInputLabel: "search rubrics input",
438
+ rubricSearchTrayInputPlaceholder: "Search rubrics",
439
+ rubricSearchTrayLabel: "Rubric Search Tray"
440
+ }, he = {
441
+ rubricContextSelectAccountPrefix: "Account",
442
+ rubricContextSelectCoursePrefix: "Course",
443
+ rubricContextSelectEmptyHeading: "No Rubrics Found",
444
+ rubricContextSelectLabel: "select account or course"
445
+ }, pe = {
446
+ rubricSearchFooterAdd: "Add"
447
+ }, Re = {
448
+ rubricSearchRowCriterion: "criterion",
449
+ rubricSearchRowPreviewLabel: "Preview Rubric",
450
+ rubricSearchRowSelectLabel: "select %{title}",
451
+ rubricSearchRowUnscored: "Unscored"
452
+ }, Ce = {
453
+ rubricsForContextNextPage: "Next Page",
454
+ rubricsForContextPrevPage: "Previous Page"
455
+ }, fe = {
456
+ rubricCreateModalCreateHeader: "Create Rubric",
457
+ rubricCreateModalEditHeader: "Edit Rubric"
458
+ }, ve = {
459
+ rubricAssignmentContainerAddError: "Failed to add rubric to assignment",
460
+ rubricAssignmentContainerAddSuccess: "Rubric added to assignment",
461
+ rubricAssignmentContainerCreateRubric: "Create Rubric",
462
+ rubricAssignmentContainerDeleteRubric: "Delete Rubric",
463
+ rubricAssignmentContainerEditRubric: "Edit Rubric",
464
+ rubricAssignmentContainerFindRubric: "Find Rubric",
465
+ rubricAssignmentContainerLoadError: "Failed to load rubric for this assignment",
466
+ rubricAssignmentContainerPreviewRubric: "Preview Rubric",
467
+ rubricAssignmentContainerReplaceRubric: "Replace Rubric",
468
+ rubricAssignmentContainerUnlinkRubric: "Unlink Rubric"
469
+ }, Se = {
401
470
  ...d,
402
471
  ...u,
403
472
  ...m,
@@ -405,36 +474,36 @@ const d = {
405
474
  ...g,
406
475
  ...h,
407
476
  ...p,
408
- ...v,
477
+ ...R,
409
478
  ...C,
410
479
  ...f,
411
- ...L,
412
- ...R,
480
+ ...v,
413
481
  ...S,
482
+ ...L,
414
483
  ...M,
415
484
  ...w,
416
485
  ...y,
417
- ...P,
418
- ...T,
419
486
  ...A,
420
- ...D,
487
+ ...T,
488
+ ...P,
421
489
  ...F,
422
- ...N,
423
- ...I,
490
+ ...D,
424
491
  ...E,
492
+ ...I,
493
+ ...N,
425
494
  ...H,
426
- ...O,
427
- ...B,
428
- ...k,
429
495
  ...x,
430
- ...G,
496
+ ...k,
497
+ ...B,
498
+ ...O,
431
499
  ...U,
500
+ ...G,
432
501
  ...V,
433
502
  ...W,
434
503
  ...q,
435
- ...j,
436
504
  ...z,
437
505
  ...Y,
506
+ ...j,
438
507
  ...K,
439
508
  ..._,
440
509
  ...Q,
@@ -443,59 +512,69 @@ const d = {
443
512
  ...Z,
444
513
  ...$,
445
514
  ...ee,
446
- ...re,
447
515
  ...te,
448
- ...ae,
516
+ ...re,
449
517
  ...ie,
518
+ ...ae,
450
519
  ...oe,
451
520
  ...ne,
452
521
  ...se,
453
522
  ...ce,
454
523
  ...le,
455
- ...de
524
+ ...de,
525
+ ...me,
526
+ ...be,
527
+ ...ge,
528
+ ...he,
529
+ ...pe,
530
+ ...Re,
531
+ ...Ce,
532
+ ...fe,
533
+ ...ve,
534
+ ...ue
456
535
  }, s = n.createContext(
457
536
  void 0
458
537
  );
459
- function ve({
460
- translations: t,
538
+ function Te({
539
+ translations: r,
461
540
  translate: e,
462
- children: r
541
+ children: t
463
542
  }) {
464
- const a = { translations: t, translate: e };
465
- return /* @__PURE__ */ c(s.Provider, { value: a, children: r });
543
+ const i = { translations: r, translate: e };
544
+ return /* @__PURE__ */ c(s.Provider, { value: i, children: t });
466
545
  }
467
- function Ce() {
468
- const t = n.useContext(s);
469
- if (!t)
546
+ function Pe() {
547
+ const r = n.useContext(s);
548
+ if (!r)
470
549
  throw new Error("useTranslations must be used within TranslationsProvider");
471
550
  const e = n.useCallback(
472
- (r) => me(r, t.translate),
473
- [t.translate]
551
+ (t) => Le(t, r.translate),
552
+ [r.translate]
474
553
  );
475
- return { ...t, resolveToken: e };
554
+ return { ...r, resolveToken: e };
476
555
  }
477
- const me = (t, e) => {
478
- if (typeof t == "string") return e(t);
479
- const { key: r, count: a, vars: i } = t;
480
- return a !== void 0 ? e(r, { count: a, ...i }) : e(r, i);
481
- }, fe = (t, e) => {
482
- const r = ue[t];
483
- let a;
484
- if (typeof r == "object" && "one" in r && "other" in r) {
485
- const i = r, o = Number((e == null ? void 0 : e.count) ?? 0);
486
- a = new Intl.PluralRules("en").select(o) === "one" ? i.one : i.other;
556
+ const Le = (r, e) => {
557
+ if (typeof r == "string") return e(r);
558
+ const { key: t, count: i, vars: a } = r;
559
+ return i !== void 0 ? e(t, { count: i, ...a }) : e(t, a);
560
+ }, Fe = (r, e) => {
561
+ const t = Se[r];
562
+ let i;
563
+ if (typeof t == "object" && "one" in t && "other" in t) {
564
+ const a = t, o = Number((e == null ? void 0 : e.count) ?? 0);
565
+ i = new Intl.PluralRules("en").select(o) === "one" ? a.one : a.other;
487
566
  } else
488
- a = r || t;
489
- return e ? a.replace(/%\{([^}]+)}/g, (i, o) => o in e ? String(e[o]) : i) : a;
567
+ i = t || r;
568
+ return e ? i.replace(/%\{([^}]+)}/g, (a, o) => o in e ? String(e[o]) : a) : i;
490
569
  };
491
- function Le() {
492
- const { executeQuery: t, locale: e } = l();
493
- return { executeQuery: t, locale: e };
570
+ function De() {
571
+ const { executeQuery: r, currentUserId: e, locale: t } = l();
572
+ return { executeQuery: r, currentUserId: e, locale: t };
494
573
  }
495
574
  export {
496
- ve as T,
497
- Ce as a,
498
- ue as i,
499
- fe as t,
500
- Le as u
575
+ Te as T,
576
+ Pe as a,
577
+ Se as i,
578
+ Fe as t,
579
+ De as u
501
580
  };
@@ -9,7 +9,7 @@ import { SimpleSelect as b } from "@instructure/ui-simple-select";
9
9
  import { Spinner as C } from "@instructure/ui-spinner";
10
10
  import { Text as u } from "@instructure/ui-text";
11
11
  import { useQuery as T } from "@tanstack/react-query";
12
- import { u as I, T as y, t as _, i as P, a as E } from "./chunks/useRubricsPlatformUiContext-BAUrpHCz.js";
12
+ import { u as I, T as y, t as _, i as P, a as E } from "./chunks/useRubricsPlatformUiContext-BDRhg138.js";
13
13
  import L from "graphql-tag";
14
14
  const j = () => /* @__PURE__ */ e(o, { as: "div", padding: "small", children: /* @__PURE__ */ e(v, { level: "h2", children: R("foundation") }) }), U = L`
15
15
  query CourseRubricsList($courseId: ID!, $first: Int) {
package/locales/en.json CHANGED
@@ -328,6 +328,61 @@
328
328
  "viewRubricsSavedTabLabel": "Saved",
329
329
  "viewRubricsUnarchiveError": "Error Un-Archiving Rubric",
330
330
  "viewRubricsUnarchiveSuccess": "Rubric un-archived successfully",
331
+ "importFailuresModalFileListHeader": "The import failed for the following file(s):",
332
+ "importFailuresModalHeading": "Import Failed",
333
+ "importFailuresModalLabel": "Import Failures",
334
+ "importFailuresModalReasonHeader": "This import failure was due to the following:",
335
+ "importRubricError": "Error Importing rubric",
336
+ "importRubricNoneImported": "No rubrics were successfully imported",
337
+ "importRubricStarted": "Rubric import started. This may take a few seconds to complete.",
338
+ "importRubricStatusError": "Error retrieving import status",
339
+ "importRubricTrayChooseFile": "Choose a file to upload",
340
+ "importRubricTrayDownloadTemplate": "Download Template",
341
+ "importRubricTrayDragFile": "Drag a file here, or",
342
+ "importRubricTrayHeading": "Import Rubrics",
343
+ "importRubricTrayLabel": "Import Rubrics Tray",
344
+ "importRubricTrayTemplateAlert": "This feature requires the use of our rubric template.",
345
+ "importRubricUnknownError": "Unknown error occurred",
346
+ "importTableCaption": "Table of Imports in Progress",
347
+ "importTableFileNameHeader": "File Name",
348
+ "importTableProgressLabel": "Loading completion",
349
+ "importTableSizeHeader": "Size",
350
+ "rubricAssignmentDeleteBody": "Are you sure you want to delete this rubric?",
351
+ "rubricAssignmentDeleteTitle": "Delete Rubric?",
352
+ "rubricAssignmentUnlink": "Unlink",
353
+ "rubricAssignmentUnlinkBody": "The rubric is associated with an account, course, or another assignment. You can remove this rubric from the assignment without impacting other assignments by unlinking it.",
354
+ "rubricAssignmentUnlinkTitle": "Unlink Rubric",
355
+ "rubricAssignmentSelfAssessmentInfoButtonLabel": "Why is self assessment disabled?",
356
+ "rubricAssignmentSelfAssessmentInfoText": "This toggle will be disabled if the due date has passed OR there have already been self-assessments made on this assignment OR if the assignment is a group assignment.",
357
+ "rubricAssignmentSelfAssessmentLabel": "Enable self assessment",
358
+ "rubricAssignmentSelfAssessmentUpdateError": "Failed to update self assessment settings",
359
+ "rubricSearchTrayHeading": "Find Rubric",
360
+ "rubricSearchTrayInputLabel": "search rubrics input",
361
+ "rubricSearchTrayInputPlaceholder": "Search rubrics",
362
+ "rubricSearchTrayLabel": "Rubric Search Tray",
363
+ "rubricContextSelectAccountPrefix": "Account",
364
+ "rubricContextSelectCoursePrefix": "Course",
365
+ "rubricContextSelectEmptyHeading": "No Rubrics Found",
366
+ "rubricContextSelectLabel": "select account or course",
367
+ "rubricSearchFooterAdd": "Add",
368
+ "rubricSearchRowCriterion": "criterion",
369
+ "rubricSearchRowPreviewLabel": "Preview Rubric",
370
+ "rubricSearchRowSelectLabel": "select %{title}",
371
+ "rubricSearchRowUnscored": "Unscored",
372
+ "rubricsForContextNextPage": "Next Page",
373
+ "rubricsForContextPrevPage": "Previous Page",
374
+ "rubricCreateModalCreateHeader": "Create Rubric",
375
+ "rubricCreateModalEditHeader": "Edit Rubric",
376
+ "rubricAssignmentContainerAddError": "Failed to add rubric to assignment",
377
+ "rubricAssignmentContainerAddSuccess": "Rubric added to assignment",
378
+ "rubricAssignmentContainerCreateRubric": "Create Rubric",
379
+ "rubricAssignmentContainerDeleteRubric": "Delete Rubric",
380
+ "rubricAssignmentContainerEditRubric": "Edit Rubric",
381
+ "rubricAssignmentContainerFindRubric": "Find Rubric",
382
+ "rubricAssignmentContainerLoadError": "Failed to load rubric for this assignment",
383
+ "rubricAssignmentContainerPreviewRubric": "Preview Rubric",
384
+ "rubricAssignmentContainerReplaceRubric": "Replace Rubric",
385
+ "rubricAssignmentContainerUnlinkRubric": "Unlink Rubric",
331
386
  "calculationMethodAchieveMastery": {
332
387
  "one": "Achieve mastery %{count} time",
333
388
  "other": "Achieve mastery %{count} times"
@@ -339,5 +394,9 @@
339
394
  "viewRubricsLoadedMoreAnnouncement": {
340
395
  "one": "Loaded %{count} more rubric",
341
396
  "other": "Loaded %{count} more rubrics"
397
+ },
398
+ "importRubricSuccess": {
399
+ "one": "%{count} rubric was successfully imported",
400
+ "other": "%{count} rubrics were successfully imported"
342
401
  }
343
402
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/platform-rubrics",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -35,7 +35,7 @@
35
35
  "big.js": "^6.2.1",
36
36
  "es-toolkit": "^1.0.0",
37
37
  "@instructure/platform-generic-error-page": "1.2.0",
38
- "@instructure/platform-images": "0.3.0",
38
+ "@instructure/platform-images": "0.4.0",
39
39
  "@instructure/platform-nutrition-facts": "0.4.0",
40
40
  "@instructure/platform-outcomes": "0.1.0",
41
41
  "@instructure/platform-query": "0.2.2",
@@ -47,6 +47,7 @@
47
47
  "@instructure/ui-avatar": "^11.0.0",
48
48
  "@instructure/ui-buttons": "^11.0.0",
49
49
  "@instructure/ui-checkbox": "^11.0.0",
50
+ "@instructure/ui-file-drop": "^11.0.0",
50
51
  "@instructure/ui-flex": "^11.0.0",
51
52
  "@instructure/ui-form-field": "^11.0.0",
52
53
  "@instructure/ui-heading": "^11.0.0",
@@ -57,11 +58,14 @@
57
58
  "@instructure/ui-menu": "^11.0.0",
58
59
  "@instructure/ui-modal": "^11.0.0",
59
60
  "@instructure/ui-number-input": "^11.0.0",
61
+ "@instructure/ui-pagination": "^11.0.0",
60
62
  "@instructure/ui-pill": "^11.0.0",
61
63
  "@instructure/ui-popover": "^11.0.0",
64
+ "@instructure/ui-radio-input": "^11.0.0",
62
65
  "@instructure/ui-responsive": "^11.0.0",
63
66
  "@instructure/ui-simple-select": "^11.0.0",
64
67
  "@instructure/ui-spinner": "^11.0.0",
68
+ "@instructure/ui-progress": "^11.0.0",
65
69
  "@instructure/ui-table": "^11.0.0",
66
70
  "@instructure/ui-tabs": "^11.0.0",
67
71
  "@instructure/ui-tag": "^11.0.0",
@@ -93,6 +97,7 @@
93
97
  "@instructure/ui-avatar": "11.7.4",
94
98
  "@instructure/ui-buttons": "11.7.4",
95
99
  "@instructure/ui-checkbox": "11.7.4",
100
+ "@instructure/ui-file-drop": "11.7.4",
96
101
  "@instructure/ui-flex": "11.7.4",
97
102
  "@instructure/ui-form-field": "11.7.4",
98
103
  "@instructure/ui-heading": "11.7.4",
@@ -103,11 +108,14 @@
103
108
  "@instructure/ui-menu": "11.7.4",
104
109
  "@instructure/ui-modal": "11.7.4",
105
110
  "@instructure/ui-number-input": "11.7.4",
111
+ "@instructure/ui-pagination": "11.7.4",
106
112
  "@instructure/ui-pill": "11.7.4",
107
113
  "@instructure/ui-popover": "11.7.4",
114
+ "@instructure/ui-radio-input": "11.7.4",
108
115
  "@instructure/ui-responsive": "11.7.4",
109
116
  "@instructure/ui-simple-select": "11.7.4",
110
117
  "@instructure/ui-spinner": "11.7.4",
118
+ "@instructure/ui-progress": "11.7.4",
111
119
  "@instructure/ui-table": "11.7.4",
112
120
  "@instructure/ui-tabs": "11.7.4",
113
121
  "@instructure/ui-tag": "11.7.4",
@@ -143,7 +151,7 @@
143
151
  "@instructure/platform-alerts": "1.0.1",
144
152
  "@instructure/platform-canvas-fetch": "0.1.3",
145
153
  "@instructure/platform-get-cookie": "0.2.1",
146
- "@instructure/platform-graphql-types": "0.2.0",
154
+ "@instructure/platform-graphql-types": "0.2.1",
147
155
  "@instructure/platform-instui-bindings": "0.7.0",
148
156
  "@instructure/platform-loading-indicator": "0.3.0",
149
157
  "@instructure/platform-provider": "0.5.2",
@@ -1 +0,0 @@
1
- {"version":3,"file":"EditConfirmModal.d.ts","sourceRoot":"","sources":["../../../../src/canvas/RubricForm/components/EditConfirmModal.tsx"],"names":[],"mappings":"AAuBA,KAAK,qBAAqB,GAAG;IAC3B,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB,CAAA;AAKD,eAAO,MAAM,gBAAgB,GAAI,kCAAkC,qBAAqB,4CAgCvF,CAAA"}