@instructure/platform-rubrics 2.0.0 → 2.1.1
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/README.md +12 -0
- package/dist/_internal/RubricAssessment/components/TraditionalViewCriterionPoints.d.ts +2 -0
- package/dist/_internal/RubricAssessment/components/TraditionalViewCriterionPoints.d.ts.map +1 -1
- package/dist/_internal/RubricAssessment/components/TraditionalViewCriterionRow.d.ts +1 -0
- package/dist/_internal/RubricAssessment/components/TraditionalViewCriterionRow.d.ts.map +1 -1
- package/dist/_internal/RubricAssessment/useRubricViewMode.d.ts +3 -1
- package/dist/_internal/RubricAssessment/useRubricViewMode.d.ts.map +1 -1
- package/dist/_internal/RubricAssignment/hooks/useAssignmentRubricState.d.ts.map +1 -1
- package/dist/_internal/RubricAssignment/hooks/useRubricSelfAssessmentSettings.d.ts.map +1 -1
- package/dist/_internal/RubricForm/useGenerateCriteria.d.ts.map +1 -1
- package/dist/_internal/RubricForm/useOutcomeDialog.d.ts.map +1 -1
- package/dist/_internal/RubricForm/useRegenerateCriteria.d.ts.map +1 -1
- package/dist/_internal/RubricForm/useSaveRubricForm.d.ts.map +1 -1
- package/dist/_internal/RubricForm/useSubmitRubricFeedback.d.ts.map +1 -1
- package/dist/_internal/RubricForm/utils.d.ts +1 -0
- package/dist/_internal/RubricForm/utils.d.ts.map +1 -1
- package/dist/_internal/ViewRubrics/useRubricImport.d.ts.map +1 -1
- package/dist/_internal/ViewRubrics/useRubricMutations.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/hooks/useRubricsPlatformUiContext.d.ts +2 -0
- package/dist/_internal/hooks/useRubricsPlatformUiContext.d.ts.map +1 -1
- package/dist/canvas/RubricForm/components/AIGeneratedCriteria/GeneratedCriteriaForm.d.ts.map +1 -1
- package/dist/canvas/RubricForm/components/AssignmentPointsDifferenceModal.d.ts.map +1 -1
- package/dist/canvas/RubricForm/components/RubricFormFooter.d.ts.map +1 -1
- package/dist/canvas/RubricForm/index.d.ts +1 -0
- package/dist/canvas/RubricForm/index.d.ts.map +1 -1
- package/dist/canvas/ViewRubrics/UsedLocationsModal.d.ts.map +1 -1
- package/dist/canvas.js +3686 -3659
- package/dist/chunks/{ErrorShip-DEitKD2c.js → ErrorShip-ie9F1gVL.js} +486 -479
- package/dist/foundation/RubricBuilder/RubricBuilder.d.ts +19 -1
- package/dist/foundation/RubricBuilder/RubricBuilder.d.ts.map +1 -1
- package/dist/foundation/RubricBuilder/components/PointsDifferenceModal.d.ts +12 -0
- package/dist/foundation/RubricBuilder/components/PointsDifferenceModal.d.ts.map +1 -0
- package/dist/foundation/index.d.ts +1 -1
- package/dist/foundation/index.d.ts.map +1 -1
- package/dist/foundation.js +485 -373
- package/package.json +18 -19
|
@@ -1,10 +1,28 @@
|
|
|
1
1
|
import { RubricsConfigProps } from '../../_internal/contexts';
|
|
2
2
|
import { SaveRubricResponse } from '../../_internal/RubricForm/queries/mutations';
|
|
3
|
+
import { Rubric, RubricAssociation } from '../../_internal/types/rubric';
|
|
3
4
|
export type RubricBuilderProps = Pick<RubricsConfigProps, 'courseId' | 'accountId' | 'featureFlags' | 'aiLimits'> & {
|
|
4
5
|
/** Rubric to edit. Omit to create a new rubric. */
|
|
5
6
|
rubricId?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Rubric and association to edit, when the host already has them (the
|
|
9
|
+
* assignment flow). Pass these instead of `rubricId`; the builder then
|
|
10
|
+
* skips fetching the rubric.
|
|
11
|
+
*/
|
|
12
|
+
rubric?: Rubric;
|
|
13
|
+
rubricAssociation?: RubricAssociation;
|
|
14
|
+
/** Assignment the rubric is for. Omit outside the assignment flow. */
|
|
15
|
+
assignmentId?: string;
|
|
16
|
+
/** The assignment's points, compared with the rubric's total on save. */
|
|
17
|
+
assignmentPointsPossible?: number;
|
|
18
|
+
/** Whether the rubric may be used for grading the assignment. Defaults to true. */
|
|
19
|
+
canUseForGrading?: boolean;
|
|
6
20
|
canManageRubrics: boolean;
|
|
7
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Called after a save. `updatePointsPossible` is true when the user chose
|
|
23
|
+
* to update the assignment's points to the rubric's total.
|
|
24
|
+
*/
|
|
25
|
+
onSaveRubric: (savedRubricResponse: SaveRubricResponse, updatePointsPossible?: boolean) => void;
|
|
8
26
|
onDiscard: () => void;
|
|
9
27
|
};
|
|
10
28
|
export declare const RubricBuilder: (props: RubricBuilderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RubricBuilder.d.ts","sourceRoot":"","sources":["../../../src/foundation/RubricBuilder/RubricBuilder.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAsB,KAAK,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAGtF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAA;
|
|
1
|
+
{"version":3,"file":"RubricBuilder.d.ts","sourceRoot":"","sources":["../../../src/foundation/RubricBuilder/RubricBuilder.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAsB,KAAK,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAGtF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAA;AAEtF,OAAO,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAgB7E,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,kBAAkB,EAClB,UAAU,GAAG,WAAW,GAAG,cAAc,GAAG,UAAU,CACvD,GAAG;IACF,mDAAmD;IACnD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,iBAAiB,CAAC,EAAE,iBAAiB,CAAA;IACrC,sEAAsE;IACtE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,yEAAyE;IACzE,wBAAwB,CAAC,EAAE,MAAM,CAAA;IACjC,mFAAmF;IACnF,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,gBAAgB,EAAE,OAAO,CAAA;IACzB;;;OAGG;IACH,YAAY,EAAE,CAAC,mBAAmB,EAAE,kBAAkB,EAAE,oBAAoB,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IAC/F,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB,4CAWtD,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type PointsDifferenceModalProps = {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
assignmentPoints: number;
|
|
4
|
+
rubricPoints: number;
|
|
5
|
+
/** Save and update the assignment's points to the rubric's total. */
|
|
6
|
+
onChange: () => void;
|
|
7
|
+
/** Save and keep the assignment's points as they are. */
|
|
8
|
+
onLeaveDifferent: () => void;
|
|
9
|
+
onDismiss: () => void;
|
|
10
|
+
};
|
|
11
|
+
export declare const PointsDifferenceModal: ({ isOpen, assignmentPoints, rubricPoints, onChange, onLeaveDifferent, onDismiss, }: PointsDifferenceModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=PointsDifferenceModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PointsDifferenceModal.d.ts","sourceRoot":"","sources":["../../../../src/foundation/RubricBuilder/components/PointsDifferenceModal.tsx"],"names":[],"mappings":"AAQA,MAAM,MAAM,0BAA0B,GAAG;IACvC,MAAM,EAAE,OAAO,CAAA;IACf,gBAAgB,EAAE,MAAM,CAAA;IACxB,YAAY,EAAE,MAAM,CAAA;IACpB,qEAAqE;IACrE,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,yDAAyD;IACzD,gBAAgB,EAAE,MAAM,IAAI,CAAA;IAC5B,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,qBAAqB,GAAI,oFAOnC,0BAA0B,4CA4C5B,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { Rubric } from '../_internal/types/rubric';
|
|
1
|
+
export type { Rubric, RubricAssociation } from '../_internal/types/rubric';
|
|
2
2
|
export type { RubricsAiLimits, RubricsConfig, RubricsConfigProps, RubricsFeatureFlags, RubricsPermissions, } from '../_internal/contexts';
|
|
3
3
|
export { DEFAULT_AI_MAX_CRITERION_COUNT, DEFAULT_AI_MAX_RATING_COUNT, } from '../_internal/contexts';
|
|
4
4
|
export { HelloWorld } from './HelloWorld';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/foundation/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/foundation/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC1E,YAAY,EACV,eAAe,EACf,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACL,8BAA8B,EAC9B,2BAA2B,GAC5B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAChE,YAAY,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAA;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAC7D,YAAY,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AACvE,YAAY,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAA"}
|