@instructure/platform-rubrics 0.7.2 → 0.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.
Files changed (37) hide show
  1. package/dist/_internal/RubricAssessment/components/TraditionalViewCriterionPoints.d.ts.map +1 -1
  2. package/dist/_internal/ViewRubrics/useRubricsQuery.d.ts.map +1 -1
  3. package/dist/_internal/ViewRubrics/useViewRubrics.d.ts.map +1 -1
  4. package/dist/_internal/constants/i18n.d.ts +47 -0
  5. package/dist/_internal/constants/i18n.d.ts.map +1 -1
  6. package/dist/canvas.js +6169 -10802
  7. package/dist/chunks/ErrorShip-Dzd13wSZ.js +5338 -0
  8. package/dist/chunks/{errorPage-CMPx9rIp.js → errorPage-Jon3K-u6.js} +65 -55
  9. package/dist/chunks/useLocalStorage-BoUaI48x.js +41 -0
  10. package/dist/foundation/RubricBuilder/RubricBuilder.d.ts +11 -0
  11. package/dist/foundation/RubricBuilder/RubricBuilder.d.ts.map +1 -0
  12. package/dist/foundation/RubricBuilder/components/ConfirmModal.d.ts +12 -0
  13. package/dist/foundation/RubricBuilder/components/ConfirmModal.d.ts.map +1 -0
  14. package/dist/foundation/RubricBuilder/components/CriteriaSection.d.ts +9 -0
  15. package/dist/foundation/RubricBuilder/components/CriteriaSection.d.ts.map +1 -0
  16. package/dist/foundation/RubricBuilder/components/RubricBuilderFooter.d.ts +7 -0
  17. package/dist/foundation/RubricBuilder/components/RubricBuilderFooter.d.ts.map +1 -0
  18. package/dist/foundation/RubricBuilder/components/RubricBuilderHeader.d.ts +6 -0
  19. package/dist/foundation/RubricBuilder/components/RubricBuilderHeader.d.ts.map +1 -0
  20. package/dist/foundation/RubricBuilder/components/RubricDetailsCard.d.ts +10 -0
  21. package/dist/foundation/RubricBuilder/components/RubricDetailsCard.d.ts.map +1 -0
  22. package/dist/foundation/RubricBuilder/components/criteria/CriteriaList.d.ts +15 -0
  23. package/dist/foundation/RubricBuilder/components/criteria/CriteriaList.d.ts.map +1 -0
  24. package/dist/foundation/RubricBuilder/components/criteria/CriterionCard.d.ts +18 -0
  25. package/dist/foundation/RubricBuilder/components/criteria/CriterionCard.d.ts.map +1 -0
  26. package/dist/foundation/RubricBuilder/components/criteria/RatingList.d.ts +9 -0
  27. package/dist/foundation/RubricBuilder/components/criteria/RatingList.d.ts.map +1 -0
  28. package/dist/foundation/RubricBuilder/components/criteria/RatingRow.d.ts +15 -0
  29. package/dist/foundation/RubricBuilder/components/criteria/RatingRow.d.ts.map +1 -0
  30. package/dist/foundation/index.d.ts +3 -0
  31. package/dist/foundation/index.d.ts.map +1 -1
  32. package/dist/foundation.js +756 -59
  33. package/dist/index.js +8 -8
  34. package/locales/en.json +47 -0
  35. package/package.json +2 -2
  36. package/dist/chunks/helloWorld-DAP1kQju.js +0 -53
  37. package/dist/chunks/useRubricsPlatformUiContext-BNQd8FbG.js +0 -585
@@ -1,42 +1,50 @@
1
- import { useQueryClient as g, useQuery as p, useMutation as P } from "@tanstack/react-query";
2
- import { jsx as i } from "react/jsx-runtime";
3
- import { createErrorReporter as l, GenericErrorPage as S, NotFoundPage as b } from "@instructure/platform-generic-error-page";
4
- function f(r) {
5
- try {
6
- return { parseError: !1, parsedValue: JSON.parse(r) };
7
- } catch {
8
- return { parseError: !0, parsedValue: null };
9
- }
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { createContext as p, useContext as l, useMemo as b } from "react";
3
+ import { createErrorReporter as d, GenericErrorPage as f, NotFoundPage as P } from "@instructure/platform-generic-error-page";
4
+ const C = 8, E = 8, R = {
5
+ rubricCriterionRange: !1,
6
+ gradingRubricsPagination: !1,
7
+ rubricSelfAssessmentEnabled: !1,
8
+ outcomeExtraCreditEnabled: !1,
9
+ aiRubricsEnabled: !1
10
+ }, h = {
11
+ aiRubricsMaxCriterionCount: C,
12
+ aiRubricsMaxRatingCount: E
13
+ }, F = {
14
+ courseId: void 0,
15
+ accountId: void 0,
16
+ rootOutcomeGroupId: void 0,
17
+ ...R,
18
+ ...h
19
+ }, n = p(F);
20
+ function t(r) {
21
+ return r ? Object.fromEntries(
22
+ Object.entries(r).filter(([, e]) => e !== void 0)
23
+ ) : {};
10
24
  }
11
- function h(r, e) {
12
- return !e.safeParse(r).success;
13
- }
14
- function u(r, e, o = void 0) {
15
- const t = window.localStorage.getItem(r);
16
- if (t === null)
17
- return e;
18
- const { parseError: n, parsedValue: a } = f(t);
19
- return n || o && h(a, o) ? e : a;
20
- }
21
- async function I(r, e) {
22
- window.localStorage.setItem(r, JSON.stringify(e));
25
+ function T({
26
+ courseId: r,
27
+ accountId: e,
28
+ rootOutcomeGroupId: o,
29
+ featureFlags: i,
30
+ aiLimits: s,
31
+ children: m
32
+ }) {
33
+ const u = l(n), g = b(
34
+ () => ({
35
+ ...u,
36
+ ...t({ courseId: r, accountId: e, rootOutcomeGroupId: o }),
37
+ ...t(i),
38
+ ...t(s)
39
+ }),
40
+ [u, r, e, o, i, s]
41
+ );
42
+ return /* @__PURE__ */ a(n.Provider, { value: g, children: m });
23
43
  }
24
- function N(r, e, o) {
25
- const t = g(), { data: n, status: a } = p({
26
- queryKey: [r],
27
- queryFn: () => u(r, e, o),
28
- initialData: () => u(r, e, o),
29
- staleTime: Number.POSITIVE_INFINITY,
30
- gcTime: Number.POSITIVE_INFINITY
31
- }), d = n, { mutate: c } = P({
32
- mutationFn: (s) => I(r, s),
33
- onMutate: (s) => {
34
- t.setQueryData([r], s);
35
- }
36
- });
37
- return [d, c, a];
44
+ function v() {
45
+ return l(n);
38
46
  }
39
- const m = {
47
+ const x = (r) => `Hello from platform-rubrics (${r})`, c = {
40
48
  somethingBroke: () => "Sorry, Something Broke",
41
49
  helpUsImprove: () => "Help us improve by telling us what happened",
42
50
  reportIssue: () => "Report Issue",
@@ -50,7 +58,7 @@ const m = {
50
58
  notFoundTitle: () => "Whoops... Looks like nothing is here!",
51
59
  notFoundDescription: () => "We couldn't find that page!"
52
60
  };
53
- function T(r) {
61
+ function U(r) {
54
62
  return {
55
63
  somethingBroke: () => r.errorPageSomethingBroke,
56
64
  helpUsImprove: () => r.errorPageHelpUsImprove,
@@ -66,13 +74,13 @@ function T(r) {
66
74
  notFoundDescription: () => r.errorPageNotFoundDescription
67
75
  };
68
76
  }
69
- function w(r) {
70
- return l({ userRoles: r });
77
+ function k(r) {
78
+ return d({ userRoles: r });
71
79
  }
72
- function C(r) {
73
- const e = r.translations ?? m, o = l({ userRoles: r.userRoles });
74
- return /* @__PURE__ */ i(
75
- S,
80
+ function N(r) {
81
+ const e = r.translations ?? c, o = d({ userRoles: r.userRoles });
82
+ return /* @__PURE__ */ a(
83
+ f,
76
84
  {
77
85
  imageUrl: r.errorImageUrl,
78
86
  onReportError: o,
@@ -82,10 +90,10 @@ function C(r) {
82
90
  }
83
91
  );
84
92
  }
85
- function R(r) {
86
- const e = r.translations ?? m;
87
- return /* @__PURE__ */ i(
88
- b,
93
+ function _(r) {
94
+ const e = r.translations ?? c;
95
+ return /* @__PURE__ */ a(
96
+ P,
89
97
  {
90
98
  artwork: r.artwork,
91
99
  title: e.notFoundTitle(),
@@ -94,12 +102,14 @@ function R(r) {
94
102
  );
95
103
  }
96
104
  export {
97
- R as a,
98
- T as b,
99
- w as c,
100
- m as d,
101
- u as g,
102
- C as r,
103
- f as t,
104
- N as u
105
+ C as D,
106
+ T as R,
107
+ E as a,
108
+ _ as b,
109
+ k as c,
110
+ c as d,
111
+ U as e,
112
+ x as g,
113
+ N as r,
114
+ v as u
105
115
  };
@@ -0,0 +1,41 @@
1
+ import { useQueryClient as i, useQuery as I, useMutation as d } from "@tanstack/react-query";
2
+ function f(e) {
3
+ try {
4
+ return { parseError: !1, parsedValue: JSON.parse(e) };
5
+ } catch {
6
+ return { parseError: !0, parsedValue: null };
7
+ }
8
+ }
9
+ function m(e, t) {
10
+ return !t.safeParse(e).success;
11
+ }
12
+ function s(e, t, r = void 0) {
13
+ const a = window.localStorage.getItem(e);
14
+ if (a === null)
15
+ return t;
16
+ const { parseError: n, parsedValue: u } = f(a);
17
+ return n || r && m(u, r) ? t : u;
18
+ }
19
+ async function S(e, t) {
20
+ window.localStorage.setItem(e, JSON.stringify(t));
21
+ }
22
+ function p(e, t, r) {
23
+ const a = i(), { data: n, status: u } = I({
24
+ queryKey: [e],
25
+ queryFn: () => s(e, t, r),
26
+ initialData: () => s(e, t, r),
27
+ staleTime: Number.POSITIVE_INFINITY,
28
+ gcTime: Number.POSITIVE_INFINITY
29
+ }), c = n, { mutate: l } = d({
30
+ mutationFn: (o) => S(e, o),
31
+ onMutate: (o) => {
32
+ a.setQueryData([e], o);
33
+ }
34
+ });
35
+ return [c, l, u];
36
+ }
37
+ export {
38
+ s as g,
39
+ f as t,
40
+ p as u
41
+ };
@@ -0,0 +1,11 @@
1
+ import { RubricsConfigProps } from '../../_internal/contexts';
2
+ import { SaveRubricResponse } from '../../_internal/RubricForm/queries/mutations';
3
+ export type RubricBuilderProps = Pick<RubricsConfigProps, 'courseId' | 'accountId' | 'featureFlags' | 'aiLimits'> & {
4
+ /** Rubric to edit. Omit to create a new rubric. */
5
+ rubricId?: string;
6
+ canManageRubrics: boolean;
7
+ onSaveRubric: (savedRubricResponse: SaveRubricResponse) => void;
8
+ onDiscard: () => void;
9
+ };
10
+ export declare const RubricBuilder: (props: RubricBuilderProps) => import("react/jsx-runtime").JSX.Element;
11
+ //# sourceMappingURL=RubricBuilder.d.ts.map
@@ -0,0 +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;AAgBtF,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,gBAAgB,EAAE,OAAO,CAAA;IACzB,YAAY,EAAE,CAAC,mBAAmB,EAAE,kBAAkB,KAAK,IAAI,CAAA;IAC/D,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,OAAO,kBAAkB,4CAWtD,CAAA"}
@@ -0,0 +1,12 @@
1
+ export type ConfirmModalProps = {
2
+ isOpen: boolean;
3
+ heading: string;
4
+ body: string;
5
+ confirmLabel: string;
6
+ cancelLabel: string;
7
+ onConfirm: () => void;
8
+ onDismiss: () => void;
9
+ 'data-testid'?: string;
10
+ };
11
+ export declare const ConfirmModal: ({ isOpen, heading, body, confirmLabel, cancelLabel, onConfirm, onDismiss, "data-testid": testId, }: ConfirmModalProps) => import("react/jsx-runtime").JSX.Element;
12
+ //# sourceMappingURL=ConfirmModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfirmModal.d.ts","sourceRoot":"","sources":["../../../../src/foundation/RubricBuilder/components/ConfirmModal.tsx"],"names":[],"mappings":"AAMA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,YAAY,GAAI,oGAS1B,iBAAiB,4CA2BnB,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ export type CriteriaSectionProps = {
3
+ criteriaCount: number;
4
+ showMissingCriteriaError: boolean;
5
+ actions?: ReactNode;
6
+ children?: ReactNode;
7
+ };
8
+ export declare const CriteriaSection: ({ criteriaCount, showMissingCriteriaError, actions, children, }: CriteriaSectionProps) => import("react/jsx-runtime").JSX.Element;
9
+ //# sourceMappingURL=CriteriaSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CriteriaSection.d.ts","sourceRoot":"","sources":["../../../../src/foundation/RubricBuilder/components/CriteriaSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAOtC,MAAM,MAAM,oBAAoB,GAAG;IACjC,aAAa,EAAE,MAAM,CAAA;IACrB,wBAAwB,EAAE,OAAO,CAAA;IACjC,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,iEAK7B,oBAAoB,4CA+BtB,CAAA"}
@@ -0,0 +1,7 @@
1
+ export type RubricBuilderFooterProps = {
2
+ savePending: boolean;
3
+ onDiscard: () => void;
4
+ onSave: () => void;
5
+ };
6
+ export declare const RubricBuilderFooter: ({ savePending, onDiscard, onSave, }: RubricBuilderFooterProps) => import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=RubricBuilderFooter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RubricBuilderFooter.d.ts","sourceRoot":"","sources":["../../../../src/foundation/RubricBuilder/components/RubricBuilderFooter.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,mBAAmB,GAAI,qCAIjC,wBAAwB,4CA4B1B,CAAA"}
@@ -0,0 +1,6 @@
1
+ export type RubricBuilderHeaderProps = {
2
+ isNewRubric: boolean;
3
+ pointsPossible: number;
4
+ };
5
+ export declare const RubricBuilderHeader: ({ isNewRubric, pointsPossible }: RubricBuilderHeaderProps) => import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=RubricBuilderHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RubricBuilderHeader.d.ts","sourceRoot":"","sources":["../../../../src/foundation/RubricBuilder/components/RubricBuilderHeader.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,EAAE,OAAO,CAAA;IACpB,cAAc,EAAE,MAAM,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,mBAAmB,GAAI,iCAAiC,wBAAwB,4CAa5F,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { RubricFormFieldSetter, RubricFormProps } from '../../../_internal/types/RubricForm';
2
+ export type RubricDetailsCardProps = {
3
+ rubricForm: RubricFormProps;
4
+ setRubricFormField: RubricFormFieldSetter;
5
+ validateTitle: (title: string) => void;
6
+ titleError?: string;
7
+ titleInputRef: (element: HTMLInputElement | null) => void;
8
+ };
9
+ export declare const RubricDetailsCard: ({ rubricForm, setRubricFormField, validateTitle, titleError, titleInputRef, }: RubricDetailsCardProps) => import("react/jsx-runtime").JSX.Element;
10
+ //# sourceMappingURL=RubricDetailsCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RubricDetailsCard.d.ts","sourceRoot":"","sources":["../../../../src/foundation/RubricBuilder/components/RubricDetailsCard.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AA4BjG,MAAM,MAAM,sBAAsB,GAAG;IACnC,UAAU,EAAE,eAAe,CAAA;IAC3B,kBAAkB,EAAE,qBAAqB,CAAA;IACzC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,KAAK,IAAI,CAAA;CAC1D,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,+EAM/B,sBAAsB,4CAsFxB,CAAA"}
@@ -0,0 +1,15 @@
1
+ import { CriterionValidationErrors } from '../../../../_internal/RubricForm/utils';
2
+ import { RubricCriterion } from '../../../../_internal/types/rubric';
3
+ export type CriteriaListProps = {
4
+ criteria: RubricCriterion[];
5
+ criteriaValidationErrors: CriterionValidationErrors[];
6
+ showErrors: boolean;
7
+ focusNameCriterionId?: string;
8
+ onFocusedName: () => void;
9
+ onChangeCriterion: (criterion: RubricCriterion) => void;
10
+ onDuplicateCriterion: (criterion: RubricCriterion) => void;
11
+ onDeleteCriterion: (criterion: RubricCriterion) => void;
12
+ onReorderCriteria: (startIndex: number, endIndex: number) => void;
13
+ };
14
+ export declare const CriteriaList: ({ criteria, criteriaValidationErrors, showErrors, focusNameCriterionId, onFocusedName, onChangeCriterion, onDuplicateCriterion, onDeleteCriterion, onReorderCriteria, }: CriteriaListProps) => import("react/jsx-runtime").JSX.Element;
15
+ //# sourceMappingURL=CriteriaList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CriteriaList.d.ts","sourceRoot":"","sources":["../../../../../src/foundation/RubricBuilder/components/criteria/CriteriaList.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAA;AACvF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAA;AAGzE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,eAAe,EAAE,CAAA;IAC3B,wBAAwB,EAAE,yBAAyB,EAAE,CAAA;IACrD,UAAU,EAAE,OAAO,CAAA;IACnB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,iBAAiB,EAAE,CAAC,SAAS,EAAE,eAAe,KAAK,IAAI,CAAA;IACvD,oBAAoB,EAAE,CAAC,SAAS,EAAE,eAAe,KAAK,IAAI,CAAA;IAC1D,iBAAiB,EAAE,CAAC,SAAS,EAAE,eAAe,KAAK,IAAI,CAAA;IACvD,iBAAiB,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;CAClE,CAAA;AAED,eAAO,MAAM,YAAY,GAAI,yKAU1B,iBAAiB,4CAiDnB,CAAA"}
@@ -0,0 +1,18 @@
1
+ import { CriterionValidationErrors } from '../../../../_internal/RubricForm/utils';
2
+ import { RubricCriterion } from '../../../../_internal/types/rubric';
3
+ export type CriterionCardProps = {
4
+ criterion: RubricCriterion;
5
+ sortableId: string;
6
+ position: number;
7
+ errors: CriterionValidationErrors;
8
+ showErrors: boolean;
9
+ shouldFocusName: boolean;
10
+ shouldFocusHandle: boolean;
11
+ onNameFocused: () => void;
12
+ onHandleFocused: () => void;
13
+ onChange: (criterion: RubricCriterion) => void;
14
+ onDuplicate: () => void;
15
+ onDelete: () => void;
16
+ };
17
+ export declare const CriterionCard: ({ criterion, sortableId, position, errors, showErrors, shouldFocusName, shouldFocusHandle, onNameFocused, onHandleFocused, onChange, onDuplicate, onDelete, }: CriterionCardProps) => import("react/jsx-runtime").JSX.Element;
18
+ //# sourceMappingURL=CriterionCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CriterionCard.d.ts","sourceRoot":"","sources":["../../../../../src/foundation/RubricBuilder/components/criteria/CriterionCard.tsx"],"names":[],"mappings":"AAoBA,OAAO,EACL,KAAK,yBAAyB,EAG/B,MAAM,wCAAwC,CAAA;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAA;AAKzE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,EAAE,eAAe,CAAA;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,yBAAyB,CAAA;IACjC,UAAU,EAAE,OAAO,CAAA;IACnB,eAAe,EAAE,OAAO,CAAA;IACxB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,eAAe,EAAE,MAAM,IAAI,CAAA;IAC3B,QAAQ,EAAE,CAAC,SAAS,EAAE,eAAe,KAAK,IAAI,CAAA;IAC9C,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,+JAa3B,kBAAkB,4CAsKpB,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { RubricRating } from '../../../../_internal/types/rubric';
2
+ export type RatingListProps = {
3
+ ratings: RubricRating[];
4
+ useRange: boolean;
5
+ ratingNamesRequired: number[];
6
+ onChange: (ratings: RubricRating[]) => void;
7
+ };
8
+ export declare const RatingList: ({ ratings, useRange, ratingNamesRequired, onChange, }: RatingListProps) => import("react/jsx-runtime").JSX.Element;
9
+ //# sourceMappingURL=RatingList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RatingList.d.ts","sourceRoot":"","sources":["../../../../../src/foundation/RubricBuilder/components/criteria/RatingList.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAA;AAItE,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,QAAQ,EAAE,OAAO,CAAA;IACjB,mBAAmB,EAAE,MAAM,EAAE,CAAA;IAC7B,QAAQ,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,IAAI,CAAA;CAC5C,CAAA;AAED,eAAO,MAAM,UAAU,GAAI,uDAKxB,eAAe,4CAiDjB,CAAA"}
@@ -0,0 +1,15 @@
1
+ import { RubricRating } from '../../../../_internal/types/rubric';
2
+ export type RatingRowProps = {
3
+ rating: RubricRating;
4
+ sortableId: string;
5
+ position: number;
6
+ rangeStart?: number;
7
+ useRange: boolean;
8
+ showNameError: boolean;
9
+ canRemove: boolean;
10
+ onChange: (rating: RubricRating) => void;
11
+ onPointsBlur: () => void;
12
+ onRemove: () => void;
13
+ };
14
+ export declare const RatingRow: ({ rating, sortableId, position, rangeStart, useRange, showNameError, canRemove, onChange, onPointsBlur, onRemove, }: RatingRowProps) => import("react/jsx-runtime").JSX.Element;
15
+ //# sourceMappingURL=RatingRow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RatingRow.d.ts","sourceRoot":"","sources":["../../../../../src/foundation/RubricBuilder/components/criteria/RatingRow.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAA;AAGtE,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,YAAY,CAAA;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,aAAa,EAAE,OAAO,CAAA;IACtB,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAA;IACxC,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,SAAS,GAAI,qHAWvB,cAAc,4CAyGhB,CAAA"}
@@ -4,4 +4,7 @@ export { DEFAULT_AI_MAX_CRITERION_COUNT, DEFAULT_AI_MAX_RATING_COUNT, } from '..
4
4
  export { HelloWorld } from './HelloWorld';
5
5
  export { RubricSelector } from './RubricSelector/RubricSelector';
6
6
  export type { RubricSelectorProps } from './RubricSelector/RubricSelector';
7
+ export { RubricBuilder } from './RubricBuilder/RubricBuilder';
8
+ export type { RubricBuilderProps } from './RubricBuilder/RubricBuilder';
9
+ export type { SaveRubricResponse } from '../_internal/RubricForm/queries/mutations';
7
10
  //# sourceMappingURL=index.d.ts.map
@@ -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;AACvD,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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/foundation/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AACvD,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"}