@instructure/platform-rubrics 0.6.1 → 0.7.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.
Files changed (31) hide show
  1. package/dist/_internal/RubricAssessment/components/TraditionalView.d.ts +9 -2
  2. package/dist/_internal/RubricAssessment/components/TraditionalView.d.ts.map +1 -1
  3. package/dist/_internal/contexts/RubricsConfigContext.d.ts +15 -3
  4. package/dist/_internal/contexts/RubricsConfigContext.d.ts.map +1 -1
  5. package/dist/_internal/contexts/RubricsPermissionsContext.d.ts +0 -4
  6. package/dist/_internal/contexts/RubricsPermissionsContext.d.ts.map +1 -1
  7. package/dist/_internal/contexts/index.d.ts +3 -3
  8. package/dist/_internal/contexts/index.d.ts.map +1 -1
  9. package/dist/canvas/RubricAssessment/RubricAssessmentContainer.d.ts +7 -2
  10. package/dist/canvas/RubricAssessment/RubricAssessmentContainer.d.ts.map +1 -1
  11. package/dist/canvas/RubricAssessment/RubricAssessmentTray.d.ts +3 -2
  12. package/dist/canvas/RubricAssessment/RubricAssessmentTray.d.ts.map +1 -1
  13. package/dist/canvas/RubricAssignment/components/RubricAssignmentContainer.d.ts +2 -1
  14. package/dist/canvas/RubricAssignment/components/RubricAssignmentContainer.d.ts.map +1 -1
  15. package/dist/canvas/RubricForm/index.d.ts +2 -1
  16. package/dist/canvas/RubricForm/index.d.ts.map +1 -1
  17. package/dist/canvas/ViewRubrics/ViewRubricsPaginated.d.ts.map +1 -1
  18. package/dist/canvas/ViewRubrics/shared.d.ts +4 -0
  19. package/dist/canvas/ViewRubrics/shared.d.ts.map +1 -1
  20. package/dist/canvas/index.d.ts +2 -2
  21. package/dist/canvas/index.d.ts.map +1 -1
  22. package/dist/canvas.js +1728 -1705
  23. package/dist/chunks/helloWorld-DAP1kQju.js +53 -0
  24. package/dist/foundation/index.d.ts +2 -2
  25. package/dist/foundation/index.d.ts.map +1 -1
  26. package/dist/foundation.js +40 -42
  27. package/dist/index.d.ts +2 -2
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +14 -16
  30. package/package.json +4 -4
  31. package/dist/chunks/helloWorld-D6kk__YY.js +0 -71
@@ -0,0 +1,53 @@
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
+ };
@@ -1,6 +1,6 @@
1
1
  export type { Rubric } from '../_internal/types/rubric';
2
- export type { RubricsAiLimits, RubricsConfig, RubricsConfigProviderProps, RubricsFeatureFlags, RubricsPermissions, } from '../_internal/contexts';
3
- export { DEFAULT_AI_MAX_CRITERION_COUNT, DEFAULT_AI_MAX_RATING_COUNT, RubricsConfigProvider, RubricsPermissionsProvider, useRubricsConfig, useRubricsPermissions, } from '../_internal/contexts';
2
+ export type { RubricsAiLimits, RubricsConfig, RubricsConfigProps, RubricsFeatureFlags, RubricsPermissions, } from '../_internal/contexts';
3
+ export { DEFAULT_AI_MAX_CRITERION_COUNT, DEFAULT_AI_MAX_RATING_COUNT, } from '../_internal/contexts';
4
4
  export { HelloWorld } from './HelloWorld';
5
5
  export { RubricSelector } from './RubricSelector/RubricSelector';
6
6
  export type { RubricSelectorProps } from './RubricSelector/RubricSelector';
@@ -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,0BAA0B,EAC1B,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACL,8BAA8B,EAC9B,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,gBAAgB,EAChB,qBAAqB,GACtB,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"}
@@ -1,17 +1,19 @@
1
- import { g as R } from "./chunks/helloWorld-D6kk__YY.js";
2
- import { D as G, a as Y, R as J, b as Z, u as V, c as rr } from "./chunks/helloWorld-D6kk__YY.js";
1
+ import { g as v } from "./chunks/helloWorld-DAP1kQju.js";
2
+ import { D as J, a as Z } from "./chunks/helloWorld-DAP1kQju.js";
3
+ import "@instructure/platform-provider";
4
+ import "react";
3
5
  import { jsx as e, jsxs as n } from "react/jsx-runtime";
4
- import { Heading as v } from "@instructure/ui-heading";
6
+ import { Heading as x } from "@instructure/ui-heading";
5
7
  import { View as o } from "@instructure/ui-view";
6
- import { Button as x } from "@instructure/ui-buttons";
8
+ import { Button as T } from "@instructure/ui-buttons";
7
9
  import { Flex as f } from "@instructure/ui-flex";
8
- import { SimpleSelect as b } from "@instructure/ui-simple-select";
10
+ import { SimpleSelect as h } from "@instructure/ui-simple-select";
9
11
  import { Spinner as C } from "@instructure/ui-spinner";
10
- import { Text as u } from "@instructure/ui-text";
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-BNQd8FbG.js";
13
- import L from "graphql-tag";
14
- const j = () => /* @__PURE__ */ e(o, { as: "div", padding: "small", children: /* @__PURE__ */ e(v, { level: "h2", children: R("foundation") }) }), U = L`
12
+ import { Text as m } from "@instructure/ui-text";
13
+ import { useQuery as I } from "@tanstack/react-query";
14
+ import { u as R, T as y, t as _, i as E, a as L } from "./chunks/useRubricsPlatformUiContext-BNQd8FbG.js";
15
+ import U from "graphql-tag";
16
+ const K = () => /* @__PURE__ */ e(o, { as: "div", padding: "small", children: /* @__PURE__ */ e(x, { level: "h2", children: v("foundation") }) }), A = U`
15
17
  query CourseRubricsList($courseId: ID!, $first: Int) {
16
18
  course(id: $courseId) {
17
19
  rubricsConnection(first: $first) {
@@ -29,45 +31,45 @@ const j = () => /* @__PURE__ */ e(o, { as: "div", padding: "small", children: /*
29
31
  }
30
32
  }
31
33
  `;
32
- function A(s) {
33
- const { executeQuery: a } = I();
34
- return T({
35
- queryKey: ["courseRubrics", s],
34
+ function w(t) {
35
+ const { executeQuery: a } = R();
36
+ return I({
37
+ queryKey: ["courseRubrics", t],
36
38
  queryFn: async () => {
37
39
  var i;
38
- const { course: t } = await a(U, {
39
- courseId: s,
40
+ const { course: s } = await a(A, {
41
+ courseId: t,
40
42
  first: 50
41
- }), r = t == null ? void 0 : t.rubricsConnection;
43
+ }), r = s == null ? void 0 : s.rubricsConnection;
42
44
  return {
43
45
  rubrics: ((r == null ? void 0 : r.nodes) ?? []).filter(
44
- (m) => m != null
46
+ (u) => u != null
45
47
  ),
46
48
  hasMore: ((i = r == null ? void 0 : r.pageInfo) == null ? void 0 : i.hasNextPage) ?? !1
47
49
  };
48
50
  },
49
- enabled: !!s
51
+ enabled: !!t
50
52
  });
51
53
  }
52
- const k = (s) => /* @__PURE__ */ e(y, { translations: P, translate: _, children: /* @__PURE__ */ e(w, { ...s }) }), w = ({
53
- courseId: s,
54
+ const X = (t) => /* @__PURE__ */ e(y, { translations: E, translate: _, children: /* @__PURE__ */ e(z, { ...t }) }), z = ({
55
+ courseId: t,
54
56
  value: a,
55
- onChange: t
57
+ onChange: s
56
58
  }) => {
57
- const { translations: r } = E(), { data: i, isLoading: m, isError: h, refetch: g } = A(s), c = i == null ? void 0 : i.rubrics;
58
- return m ? /* @__PURE__ */ n(o, { as: "div", role: "status", "aria-live": "polite", margin: "0 0 medium", children: [
59
+ const { translations: r } = L(), { data: i, isLoading: u, isError: b, refetch: g } = w(t), c = i == null ? void 0 : i.rubrics;
60
+ return u ? /* @__PURE__ */ n(o, { as: "div", role: "status", "aria-live": "polite", margin: "0 0 medium", children: [
59
61
  /* @__PURE__ */ e(C, { renderTitle: r.rubricSelectorLoading, size: "x-small" }),
60
- /* @__PURE__ */ e(o, { as: "span", padding: "0 0 0 x-small", children: /* @__PURE__ */ e(u, { size: "small", children: r.rubricSelectorLoading }) })
61
- ] }) : h ? /* @__PURE__ */ e(o, { as: "div", margin: "0 0 medium", children: /* @__PURE__ */ n(f, { gap: "small", alignItems: "center", wrap: "wrap", children: [
62
- /* @__PURE__ */ e(f.Item, { children: /* @__PURE__ */ n(u, { size: "small", color: "danger", children: [
62
+ /* @__PURE__ */ e(o, { as: "span", padding: "0 0 0 x-small", children: /* @__PURE__ */ e(m, { size: "small", children: r.rubricSelectorLoading }) })
63
+ ] }) : b ? /* @__PURE__ */ e(o, { as: "div", margin: "0 0 medium", children: /* @__PURE__ */ n(f, { gap: "small", alignItems: "center", wrap: "wrap", children: [
64
+ /* @__PURE__ */ e(f.Item, { children: /* @__PURE__ */ n(m, { size: "small", color: "danger", children: [
63
65
  r.rubricSelectorErrorTitle,
64
66
  ". ",
65
67
  r.rubricSelectorErrorBody
66
68
  ] }) }),
67
- /* @__PURE__ */ e(f.Item, { children: /* @__PURE__ */ e(x, { size: "small", onClick: () => g(), children: r.rubricSelectorRetry }) })
68
- ] }) }) : !c || c.length === 0 ? /* @__PURE__ */ e(o, { as: "div", margin: "0 0 medium", children: /* @__PURE__ */ e(u, { size: "small", children: r.rubricSelectorEmpty }) }) : /* @__PURE__ */ n(o, { as: "div", margin: "0 0 medium", maxWidth: "360px", children: [
69
+ /* @__PURE__ */ e(f.Item, { children: /* @__PURE__ */ e(T, { size: "small", onClick: () => g(), children: r.rubricSelectorRetry }) })
70
+ ] }) }) : !c || c.length === 0 ? /* @__PURE__ */ e(o, { as: "div", margin: "0 0 medium", children: /* @__PURE__ */ e(m, { size: "small", children: r.rubricSelectorEmpty }) }) : /* @__PURE__ */ n(o, { as: "div", margin: "0 0 medium", maxWidth: "360px", children: [
69
71
  /* @__PURE__ */ n(
70
- b,
72
+ h,
71
73
  {
72
74
  renderLabel: r.rubricSelectorLabel,
73
75
  assistiveText: r.rubricSelectorAssistiveText,
@@ -75,12 +77,12 @@ const k = (s) => /* @__PURE__ */ e(y, { translations: P, translate: _, children:
75
77
  onChange: (l, { value: d }) => {
76
78
  if (typeof d != "string" || !d) return;
77
79
  const p = c.find((S) => S.id === d);
78
- t(d, (p == null ? void 0 : p.title) ?? "");
80
+ s(d, (p == null ? void 0 : p.title) ?? "");
79
81
  },
80
82
  children: [
81
- a === void 0 && /* @__PURE__ */ e(b.Option, { id: "rubrics-rubric-selector-placeholder", value: "", children: r.rubricSelectorPlaceholder }),
83
+ a === void 0 && /* @__PURE__ */ e(h.Option, { id: "rubrics-rubric-selector-placeholder", value: "", children: r.rubricSelectorPlaceholder }),
82
84
  c.map((l) => /* @__PURE__ */ e(
83
- b.Option,
85
+ h.Option,
84
86
  {
85
87
  id: `rubrics-rubric-selector-option-${l.id}`,
86
88
  value: l.id,
@@ -91,16 +93,12 @@ const k = (s) => /* @__PURE__ */ e(y, { translations: P, translate: _, children:
91
93
  ]
92
94
  }
93
95
  ),
94
- (i == null ? void 0 : i.hasMore) && /* @__PURE__ */ e(o, { as: "div", padding: "xx-small 0 0", children: /* @__PURE__ */ e(u, { size: "x-small", color: "secondary", children: r.rubricSelectorTruncated }) })
96
+ (i == null ? void 0 : i.hasMore) && /* @__PURE__ */ e(o, { as: "div", padding: "xx-small 0 0", children: /* @__PURE__ */ e(m, { size: "x-small", color: "secondary", children: r.rubricSelectorTruncated }) })
95
97
  ] });
96
98
  };
97
99
  export {
98
- G as DEFAULT_AI_MAX_CRITERION_COUNT,
99
- Y as DEFAULT_AI_MAX_RATING_COUNT,
100
- j as HelloWorld,
101
- k as RubricSelector,
102
- J as RubricsConfigProvider,
103
- Z as RubricsPermissionsProvider,
104
- V as useRubricsConfig,
105
- rr as useRubricsPermissions
100
+ J as DEFAULT_AI_MAX_CRITERION_COUNT,
101
+ Z as DEFAULT_AI_MAX_RATING_COUNT,
102
+ K as HelloWorld,
103
+ X as RubricSelector
106
104
  };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export type { Rubric, RubricAssociation, RubricCriterion, RubricRating, RubricOutcome, } from './_internal/types/rubric';
2
- export type { RubricsAiLimits, RubricsConfig, RubricsConfigProviderProps, RubricsFeatureFlags, RubricsPermissions, } from './_internal/contexts';
3
- export { DEFAULT_AI_MAX_CRITERION_COUNT, DEFAULT_AI_MAX_RATING_COUNT, RubricsConfigProvider, RubricsPermissionsProvider, useRubricsConfig, useRubricsPermissions, } from './_internal/contexts';
2
+ export type { RubricsAiLimits, RubricsConfig, RubricsConfigProps, RubricsFeatureFlags, RubricsPermissions, } from './_internal/contexts';
3
+ export { DEFAULT_AI_MAX_CRITERION_COUNT, DEFAULT_AI_MAX_RATING_COUNT, } from './_internal/contexts';
4
4
  export { getHelloWorldMessage } from './_internal/helloWorld';
5
5
  export type { RubricsHost } from './_internal/helloWorld';
6
6
  export { useLocalStorage, getLocalStorageValue } from './_internal/hooks/useLocalStorage';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,MAAM,EACN,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,aAAa,GACd,MAAM,0BAA0B,CAAA;AACjC,YAAY,EACV,eAAe,EACf,aAAa,EACb,0BAA0B,EAC1B,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,8BAA8B,EAC9B,2BAA2B,EAC3B,qBAAqB,EACrB,0BAA0B,EAC1B,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAA;AACzF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAA;AAC7D,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,yBAAyB,EACzB,4BAA4B,GAC7B,MAAM,6BAA6B,CAAA;AACpC,YAAY,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,MAAM,EACN,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,aAAa,GACd,MAAM,0BAA0B,CAAA;AACjC,YAAY,EACV,eAAe,EACf,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,8BAA8B,EAC9B,2BAA2B,GAC5B,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAA;AACzF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAA;AAC7D,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,yBAAyB,EACzB,4BAA4B,GAC7B,MAAM,6BAA6B,CAAA;AACpC,YAAY,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA"}
package/dist/index.js CHANGED
@@ -1,18 +1,16 @@
1
- import { D as a, a as e, R as o, b as i, g as u, u as t, c } from "./chunks/helloWorld-D6kk__YY.js";
2
- import { c as n, d as R, g as b, r as l, a as _, t as A, u as P } from "./chunks/errorPage-CMPx9rIp.js";
1
+ import { D as s, a as t, g } from "./chunks/helloWorld-DAP1kQju.js";
2
+ import "@instructure/platform-provider";
3
+ import "react";
4
+ import { c as u, d as _, g as c, r as A, a as T, t as i, u as n } from "./chunks/errorPage-CMPx9rIp.js";
3
5
  export {
4
- a as DEFAULT_AI_MAX_CRITERION_COUNT,
5
- e as DEFAULT_AI_MAX_RATING_COUNT,
6
- o as RubricsConfigProvider,
7
- i as RubricsPermissionsProvider,
8
- n as createRubricErrorReporter,
9
- R as defaultErrorPageTranslations,
10
- u as getHelloWorldMessage,
11
- b as getLocalStorageValue,
12
- l as rubricErrorComponent,
13
- _ as rubricNotFoundPage,
14
- A as tryParseJson,
15
- P as useLocalStorage,
16
- t as useRubricsConfig,
17
- c as useRubricsPermissions
6
+ s as DEFAULT_AI_MAX_CRITERION_COUNT,
7
+ t as DEFAULT_AI_MAX_RATING_COUNT,
8
+ u as createRubricErrorReporter,
9
+ _ as defaultErrorPageTranslations,
10
+ g as getHelloWorldMessage,
11
+ c as getLocalStorageValue,
12
+ A as rubricErrorComponent,
13
+ T as rubricNotFoundPage,
14
+ i as tryParseJson,
15
+ n as useLocalStorage
18
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/platform-rubrics",
3
- "version": "0.6.1",
3
+ "version": "0.7.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -35,11 +35,11 @@
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.4.0",
39
38
  "@instructure/platform-nutrition-facts": "0.4.0",
40
39
  "@instructure/platform-outcomes": "0.1.0",
40
+ "@instructure/platform-images": "0.4.0",
41
41
  "@instructure/platform-query": "0.2.2",
42
- "@instructure/platform-sanitize": "0.7.1"
42
+ "@instructure/platform-sanitize": "0.7.2"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@instructure/ui-a11y-content": "^11.0.0",
@@ -149,8 +149,8 @@
149
149
  "vitest": "^4.0.0",
150
150
  "zod": "^3.23.8",
151
151
  "@instructure/platform-alerts": "1.0.1",
152
- "@instructure/platform-canvas-fetch": "0.1.3",
153
152
  "@instructure/platform-get-cookie": "0.2.1",
153
+ "@instructure/platform-canvas-fetch": "0.1.3",
154
154
  "@instructure/platform-graphql-types": "0.2.3",
155
155
  "@instructure/platform-instui-bindings": "0.7.0",
156
156
  "@instructure/platform-loading-indicator": "0.3.0",
@@ -1,71 +0,0 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { createContext as t, useContext as a, useMemo as u } from "react";
3
- import { usePlatformUi as d } from "@instructure/platform-provider";
4
- const g = 8, C = 8, c = {
5
- rubricCriterionRange: !1,
6
- gradingRubricsPagination: !1,
7
- rubricSelfAssessmentEnabled: !1,
8
- outcomeExtraCreditEnabled: !1,
9
- aiRubricsEnabled: !1
10
- }, f = {
11
- aiRubricsMaxCriterionCount: g,
12
- aiRubricsMaxRatingCount: C
13
- }, P = {
14
- courseId: void 0,
15
- accountId: void 0,
16
- rootOutcomeGroupId: void 0,
17
- ...c,
18
- ...f
19
- }, l = t(P);
20
- function E({
21
- courseId: s,
22
- accountId: r,
23
- rootOutcomeGroupId: e,
24
- featureFlags: i,
25
- aiLimits: o,
26
- children: m
27
- }) {
28
- const R = u(
29
- () => ({
30
- courseId: s,
31
- accountId: r,
32
- rootOutcomeGroupId: e,
33
- ...c,
34
- ...i,
35
- ...f,
36
- ...o
37
- }),
38
- [s, r, e, i, o]
39
- );
40
- return /* @__PURE__ */ n(l.Provider, { value: R, children: m });
41
- }
42
- function p() {
43
- return a(l);
44
- }
45
- const _ = {
46
- manageRubrics: !1
47
- }, b = t(_);
48
- function M({
49
- children: s
50
- }) {
51
- const { permissions: r } = d(), e = u(
52
- () => ({
53
- manageRubrics: r.manage_rubrics ?? !1
54
- }),
55
- [r.manage_rubrics]
56
- );
57
- return /* @__PURE__ */ n(b.Provider, { value: e, children: s });
58
- }
59
- function T() {
60
- return a(b);
61
- }
62
- const I = (s) => `Hello from platform-rubrics (${s})`;
63
- export {
64
- g as D,
65
- E as R,
66
- C as a,
67
- M as b,
68
- T as c,
69
- I as g,
70
- p as u
71
- };