@instructure/platform-rubrics 0.7.2 → 1.0.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/dist/_internal/RubricAssessment/components/TraditionalViewCriterionPoints.d.ts.map +1 -1
- package/dist/_internal/ViewRubrics/useRubricsQuery.d.ts.map +1 -1
- package/dist/_internal/ViewRubrics/useViewRubrics.d.ts.map +1 -1
- package/dist/_internal/constants/i18n.d.ts +49 -0
- package/dist/_internal/constants/i18n.d.ts.map +1 -1
- package/dist/canvas.js +6169 -10802
- package/dist/chunks/ErrorShip-DEitKD2c.js +5340 -0
- package/dist/chunks/{errorPage-CMPx9rIp.js → errorPage-Jon3K-u6.js} +65 -55
- package/dist/chunks/useLocalStorage-BoUaI48x.js +41 -0
- package/dist/foundation/RubricBuilder/RubricBuilder.d.ts +11 -0
- package/dist/foundation/RubricBuilder/RubricBuilder.d.ts.map +1 -0
- package/dist/foundation/RubricBuilder/components/ConfirmModal.d.ts +12 -0
- package/dist/foundation/RubricBuilder/components/ConfirmModal.d.ts.map +1 -0
- package/dist/foundation/RubricBuilder/components/CriteriaSection.d.ts +9 -0
- package/dist/foundation/RubricBuilder/components/CriteriaSection.d.ts.map +1 -0
- package/dist/foundation/RubricBuilder/components/RubricBuilderFooter.d.ts +7 -0
- package/dist/foundation/RubricBuilder/components/RubricBuilderFooter.d.ts.map +1 -0
- package/dist/foundation/RubricBuilder/components/RubricBuilderHeader.d.ts +7 -0
- package/dist/foundation/RubricBuilder/components/RubricBuilderHeader.d.ts.map +1 -0
- package/dist/foundation/RubricBuilder/components/RubricDetailsCard.d.ts +10 -0
- package/dist/foundation/RubricBuilder/components/RubricDetailsCard.d.ts.map +1 -0
- package/dist/foundation/RubricBuilder/components/criteria/CriteriaList.d.ts +18 -0
- package/dist/foundation/RubricBuilder/components/criteria/CriteriaList.d.ts.map +1 -0
- package/dist/foundation/RubricBuilder/components/criteria/CriterionCard.d.ts +21 -0
- package/dist/foundation/RubricBuilder/components/criteria/CriterionCard.d.ts.map +1 -0
- package/dist/foundation/RubricBuilder/components/criteria/PointsPossibleField.d.ts +6 -0
- package/dist/foundation/RubricBuilder/components/criteria/PointsPossibleField.d.ts.map +1 -0
- package/dist/foundation/RubricBuilder/components/criteria/RatingList.d.ts +11 -0
- package/dist/foundation/RubricBuilder/components/criteria/RatingList.d.ts.map +1 -0
- package/dist/foundation/RubricBuilder/components/criteria/RatingRow.d.ts +16 -0
- package/dist/foundation/RubricBuilder/components/criteria/RatingRow.d.ts.map +1 -0
- package/dist/foundation/index.d.ts +3 -0
- package/dist/foundation/index.d.ts.map +1 -1
- package/dist/foundation.js +828 -59
- package/dist/index.js +8 -8
- package/locales/en.json +49 -0
- package/package.json +4 -4
- package/dist/chunks/helloWorld-DAP1kQju.js +0 -53
- package/dist/chunks/useRubricsPlatformUiContext-BNQd8FbG.js +0 -585
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { D as s, a as t, g } from "./chunks/
|
|
1
|
+
import { D as s, a as t, c as g, d as l, g as u, r as _, b as c } from "./chunks/errorPage-Jon3K-u6.js";
|
|
2
2
|
import "@instructure/platform-provider";
|
|
3
3
|
import "react";
|
|
4
|
-
import {
|
|
4
|
+
import { g as T, t as i, u as n } from "./chunks/useLocalStorage-BoUaI48x.js";
|
|
5
5
|
export {
|
|
6
6
|
s as DEFAULT_AI_MAX_CRITERION_COUNT,
|
|
7
7
|
t as DEFAULT_AI_MAX_RATING_COUNT,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
g as createRubricErrorReporter,
|
|
9
|
+
l as defaultErrorPageTranslations,
|
|
10
|
+
u as getHelloWorldMessage,
|
|
11
|
+
T as getLocalStorageValue,
|
|
12
|
+
_ as rubricErrorComponent,
|
|
13
|
+
c as rubricNotFoundPage,
|
|
14
14
|
i as tryParseJson,
|
|
15
15
|
n as useLocalStorage
|
|
16
16
|
};
|
package/locales/en.json
CHANGED
|
@@ -388,6 +388,47 @@
|
|
|
388
388
|
"rubricAssignmentContainerPreviewRubric": "Preview Rubric",
|
|
389
389
|
"rubricAssignmentContainerReplaceRubric": "Replace Rubric",
|
|
390
390
|
"rubricAssignmentContainerUnlinkRubric": "Unlink Rubric",
|
|
391
|
+
"rubricBuilderAddCriterion": "Add criterion",
|
|
392
|
+
"rubricBuilderAddCriterionError": "Add at least one criterion.",
|
|
393
|
+
"rubricBuilderAddRatingLevel": "Add rating level",
|
|
394
|
+
"rubricBuilderCollapseCriterion": "Collapse %{name}",
|
|
395
|
+
"rubricBuilderCreateTitle": "Create rubric",
|
|
396
|
+
"rubricBuilderCriteriaEmpty": "No criteria yet.",
|
|
397
|
+
"rubricBuilderCriteriaHeading": "Criteria",
|
|
398
|
+
"rubricBuilderCriterionDeleteBody": "This criterion and its ratings will be removed from the rubric.",
|
|
399
|
+
"rubricBuilderCriterionDeleteHeading": "Delete criterion?",
|
|
400
|
+
"rubricBuilderCriterionDescriptionLabel": "Description",
|
|
401
|
+
"rubricBuilderCriterionHeading": "Criterion %{position}",
|
|
402
|
+
"rubricBuilderCriterionNameLabel": "Criterion name",
|
|
403
|
+
"rubricBuilderCriterionNameRequired": "Criterion name is required.",
|
|
404
|
+
"rubricBuilderDeleteCriterion": "Delete %{name}",
|
|
405
|
+
"rubricBuilderDetailsHeading": "Details",
|
|
406
|
+
"rubricBuilderDiscard": "Discard",
|
|
407
|
+
"rubricBuilderDiscardBody": "Your unsaved changes will be lost.",
|
|
408
|
+
"rubricBuilderDiscardHeading": "Discard changes?",
|
|
409
|
+
"rubricBuilderDisplayLabel": "Display",
|
|
410
|
+
"rubricBuilderDuplicateCriterion": "Duplicate %{name}",
|
|
411
|
+
"rubricBuilderEditTitle": "Edit rubric",
|
|
412
|
+
"rubricBuilderEnableRange": "Enable range",
|
|
413
|
+
"rubricBuilderExpandCriterion": "Expand %{name}",
|
|
414
|
+
"rubricBuilderFeedbackLabel": "Feedback",
|
|
415
|
+
"rubricBuilderFeedbackWrittenOnly": "Written only",
|
|
416
|
+
"rubricBuilderKeepEditing": "Keep editing",
|
|
417
|
+
"rubricBuilderNameLabel": "Rubric name",
|
|
418
|
+
"rubricBuilderPointRangeLabel": "Point range",
|
|
419
|
+
"rubricBuilderPointsLabel": "Points",
|
|
420
|
+
"rubricBuilderPointsPossibleLabel": "Points possible",
|
|
421
|
+
"rubricBuilderRatingDescriptionLabel": "Rating description",
|
|
422
|
+
"rubricBuilderRatingNameLabel": "Rating name",
|
|
423
|
+
"rubricBuilderRatingNameRequired": "Rating name is required.",
|
|
424
|
+
"rubricBuilderRatingOrderHighToLow": "High to low",
|
|
425
|
+
"rubricBuilderRatingOrderLabel": "Rating order",
|
|
426
|
+
"rubricBuilderRatingOrderLowToHigh": "Low to high",
|
|
427
|
+
"rubricBuilderRemoveRating": "Remove rating %{position}",
|
|
428
|
+
"rubricBuilderReorderCriterion": "Reorder %{name}",
|
|
429
|
+
"rubricBuilderReorderRating": "Reorder rating %{position}",
|
|
430
|
+
"rubricBuilderSave": "Save",
|
|
431
|
+
"rubricBuilderWrittenFeedback": "Written feedback",
|
|
391
432
|
"calculationMethodAchieveMastery": {
|
|
392
433
|
"one": "Achieve mastery %{count} time",
|
|
393
434
|
"other": "Achieve mastery %{count} times"
|
|
@@ -403,5 +444,13 @@
|
|
|
403
444
|
"importRubricSuccess": {
|
|
404
445
|
"one": "%{count} rubric was successfully imported",
|
|
405
446
|
"other": "%{count} rubrics were successfully imported"
|
|
447
|
+
},
|
|
448
|
+
"rubricBuilderCriterionMaxPoints": {
|
|
449
|
+
"one": "Max: %{count} point",
|
|
450
|
+
"other": "Max: %{count} points"
|
|
451
|
+
},
|
|
452
|
+
"rubricBuilderCurrentTotal": {
|
|
453
|
+
"one": "Current total: %{count} point",
|
|
454
|
+
"other": "Current total: %{count} points"
|
|
406
455
|
}
|
|
407
456
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/platform-rubrics",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"@instructure/platform-alerts": "1.0.1",
|
|
88
88
|
"@instructure/platform-canvas-fetch": "0.1.3",
|
|
89
89
|
"@instructure/platform-get-cookie": "0.2.1",
|
|
90
|
-
"@instructure/platform-instui-bindings": "0.
|
|
90
|
+
"@instructure/platform-instui-bindings": "0.8.0",
|
|
91
91
|
"@instructure/platform-loading-indicator": "0.3.0",
|
|
92
92
|
"@instructure/platform-provider": "0.5.2"
|
|
93
93
|
},
|
|
@@ -151,8 +151,8 @@
|
|
|
151
151
|
"@instructure/platform-alerts": "1.0.1",
|
|
152
152
|
"@instructure/platform-canvas-fetch": "0.1.3",
|
|
153
153
|
"@instructure/platform-get-cookie": "0.2.1",
|
|
154
|
-
"@instructure/platform-graphql-types": "0.2.
|
|
155
|
-
"@instructure/platform-instui-bindings": "0.
|
|
154
|
+
"@instructure/platform-graphql-types": "0.2.7",
|
|
155
|
+
"@instructure/platform-instui-bindings": "0.8.0",
|
|
156
156
|
"@instructure/platform-loading-indicator": "0.3.0",
|
|
157
157
|
"@instructure/platform-provider": "0.5.2",
|
|
158
158
|
"@instructure/platform-test-utils": "0.2.5"
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { createContext as d, useContext as c, useMemo as b } from "react";
|
|
3
|
-
const C = 8, R = 8, g = {
|
|
4
|
-
rubricCriterionRange: !1,
|
|
5
|
-
gradingRubricsPagination: !1,
|
|
6
|
-
rubricSelfAssessmentEnabled: !1,
|
|
7
|
-
outcomeExtraCreditEnabled: !1,
|
|
8
|
-
aiRubricsEnabled: !1
|
|
9
|
-
}, m = {
|
|
10
|
-
aiRubricsMaxCriterionCount: C,
|
|
11
|
-
aiRubricsMaxRatingCount: R
|
|
12
|
-
}, A = {
|
|
13
|
-
courseId: void 0,
|
|
14
|
-
accountId: void 0,
|
|
15
|
-
rootOutcomeGroupId: void 0,
|
|
16
|
-
...g,
|
|
17
|
-
...m
|
|
18
|
-
}, n = d(A);
|
|
19
|
-
function r(e) {
|
|
20
|
-
return e ? Object.fromEntries(
|
|
21
|
-
Object.entries(e).filter(([, t]) => t !== void 0)
|
|
22
|
-
) : {};
|
|
23
|
-
}
|
|
24
|
-
function _({
|
|
25
|
-
courseId: e,
|
|
26
|
-
accountId: t,
|
|
27
|
-
rootOutcomeGroupId: o,
|
|
28
|
-
featureFlags: i,
|
|
29
|
-
aiLimits: s,
|
|
30
|
-
children: u
|
|
31
|
-
}) {
|
|
32
|
-
const a = c(n), f = b(
|
|
33
|
-
() => ({
|
|
34
|
-
...a,
|
|
35
|
-
...r({ courseId: e, accountId: t, rootOutcomeGroupId: o }),
|
|
36
|
-
...r(i),
|
|
37
|
-
...r(s)
|
|
38
|
-
}),
|
|
39
|
-
[a, e, t, o, i, s]
|
|
40
|
-
);
|
|
41
|
-
return /* @__PURE__ */ l(n.Provider, { value: f, children: u });
|
|
42
|
-
}
|
|
43
|
-
function p() {
|
|
44
|
-
return c(n);
|
|
45
|
-
}
|
|
46
|
-
const M = (e) => `Hello from platform-rubrics (${e})`;
|
|
47
|
-
export {
|
|
48
|
-
C as D,
|
|
49
|
-
_ as R,
|
|
50
|
-
R as a,
|
|
51
|
-
M as g,
|
|
52
|
-
p as u
|
|
53
|
-
};
|