@instructure/platform-widget-dashboard 12.1.5 → 13.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.
Files changed (2) hide show
  1. package/dist/index.js +7 -6
  2. package/package.json +10 -10
package/dist/index.js CHANGED
@@ -14937,11 +14937,10 @@ const rt = {
14937
14937
  // maction…none are the remaining MathML presentation/layout containers from
14938
14938
  // DOMPurify's mathMlDisallowed set (RCX-5259). They are re-added as tags only:
14939
14939
  // unlike annotation-xml they are NOT HTML integration points, so they carry no
14940
- // namespace-confusion (mXSS) risk. Because they go in ADD_TAGS and not ADD_ATTR,
14941
- // DOMPurify keeps filtering their attributes — an event handler like onclick on
14942
- // <maction> is still stripped. maction is the one exception to "tags only": it
14943
- // needs to survive DOMPurify's element filter so the hook below can collapse it
14944
- // to its first child, rather than KEEP_CONTENT hoisting every child at once.
14940
+ // namespace-confusion (mXSS) risk. Event handlers like onclick on <maction> are
14941
+ // still stripped; actiontype is in ADD_ATTR but is inert (no URL/handler). maction
14942
+ // is kept whole with every child, so the alternatives a toggle switches between
14943
+ // aren't lost.
14945
14944
  ADD_TAGS: [
14946
14945
  "iframe",
14947
14946
  "semantics",
@@ -15038,10 +15037,12 @@ const rt = {
15038
15037
  "mslinethickness",
15039
15038
  "edge",
15040
15039
  "alttext",
15040
+ "actiontype",
15041
+ // MathML toggle/highlight mode; inert elsewhere (no URL/handler/clobberable name).
15042
+ "contenteditable",
15041
15043
  // Editor surfaces rely on it; boolean UI attribute, no URL/handler/clobberable name.
15042
15044
  // Deliberately wider than the Canvas backend allowlist, which drops it — stored content
15043
15045
  // is stripped server-side regardless, so this only reaches client-rendered surfaces.
15044
- "contenteditable",
15045
15046
  // Screen-reader abbreviated header text. Global like the other entries here
15046
15047
  // (DOMPurify has no per-tag attr scoping), so it's permitted on every allowed
15047
15048
  // element, wider than the Canvas backend allowlist, which scopes it to td/th.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/platform-widget-dashboard",
3
- "version": "12.1.5",
3
+ "version": "13.0.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -64,13 +64,13 @@
64
64
  "react-dom": "^18.0.0",
65
65
  "@instructure/platform-canvas-fetch": "0.1.3",
66
66
  "@instructure/platform-color-picker": "0.2.2",
67
- "@instructure/platform-grades": "0.2.9",
68
67
  "@instructure/platform-get-cookie": "0.2.1",
68
+ "@instructure/platform-grades": "0.2.10",
69
+ "@instructure/platform-image-utils": "0.2.0",
70
+ "@instructure/platform-instui-bindings": "0.7.0",
69
71
  "@instructure/platform-message-students-modal": "0.2.9",
70
72
  "@instructure/platform-provider": "0.5.2",
71
- "@instructure/platform-rce-adapter": "0.3.1",
72
- "@instructure/platform-instui-bindings": "0.7.0",
73
- "@instructure/platform-image-utils": "0.2.0"
73
+ "@instructure/platform-rce-adapter": "0.4.0"
74
74
  },
75
75
  "dependencies": {
76
76
  "@dnd-kit/core": "^6.3.1",
@@ -79,12 +79,12 @@
79
79
  "sanitize-html": "^2.0.0",
80
80
  "zod": "^3.23.8",
81
81
  "@instructure/platform-alerts": "1.0.1",
82
- "@instructure/platform-canvas-fetch": "0.1.3",
82
+ "@instructure/platform-grades": "0.2.10",
83
83
  "@instructure/platform-datetime": "0.2.0",
84
- "@instructure/platform-grades": "0.2.9",
85
- "@instructure/platform-graphql-types": "0.2.3",
86
- "@instructure/platform-query": "0.2.2",
87
- "@instructure/platform-sanitize": "^0.7.1"
84
+ "@instructure/platform-canvas-fetch": "0.1.3",
85
+ "@instructure/platform-graphql-types": "0.2.4",
86
+ "@instructure/platform-sanitize": "^0.7.2",
87
+ "@instructure/platform-query": "0.2.2"
88
88
  },
89
89
  "devDependencies": {
90
90
  "@storybook/react": "^10.0.8",