@instructure/canvas-rce 5.13.6 → 5.13.7
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/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,29 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## 5.13.7 - 2024-10-28
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Forward along access token and inst_ui parameters from file URLs.
|
|
13
|
+
|
|
14
|
+
## 5.13.6 - 2024-09-25
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- File links with data-canvas-previewable='false' will no longer try to preview
|
|
19
|
+
- Change backgroundless buttons to "primary" theme color to be more visible
|
|
20
|
+
- Fix LTI tool scrolling issue on small iOS devices
|
|
21
|
+
- Adding missing translation strings
|
|
22
|
+
- Fixed some types of non-Canvas files from trying to preview like Canvas files
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- Allow links with data-old-link to replace the existing src or href with the contents
|
|
27
|
+
of the data-old-link attribute
|
|
28
|
+
- Added IDs to multiple objects missing IDs
|
|
29
|
+
- Add loading spinners to image uploads
|
|
30
|
+
|
|
8
31
|
## 5.13.5 - 2024-09-25
|
|
9
32
|
|
|
10
33
|
### Fixed
|
|
@@ -102,16 +102,25 @@ export function showFilePreviewInOverlay(event, canvasOrigin) {
|
|
|
102
102
|
event.preventDefault();
|
|
103
103
|
const url = new URL(target.href);
|
|
104
104
|
const verifier = url === null || url === void 0 ? void 0 : url.searchParams.get('verifier');
|
|
105
|
-
const
|
|
106
|
-
|
|
105
|
+
const access_token = url === null || url === void 0 ? void 0 : url.searchParams.get('access_token');
|
|
106
|
+
const instfs_id = url === null || url === void 0 ? void 0 : url.searchParams.get('instfs_id');
|
|
107
|
+
const file_id = matches[1];
|
|
108
|
+
const params = {
|
|
109
|
+
subject: 'preview_file',
|
|
110
|
+
file_id
|
|
111
|
+
};
|
|
112
|
+
if (verifier) params.verifier = verifier;
|
|
113
|
+
|
|
114
|
+
if (access_token && instfs_id) {
|
|
115
|
+
params.access_token = access_token;
|
|
116
|
+
params.instfs_id = instfs_id;
|
|
117
|
+
} // TODO:
|
|
118
|
+
// 1. what window should we be using
|
|
107
119
|
// 2. is that the right origin?
|
|
108
120
|
// 3. this is temporary until we can decouple the file previewer from canvas
|
|
109
121
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
file_id,
|
|
113
|
-
verifier
|
|
114
|
-
}, canvasOrigin);
|
|
122
|
+
|
|
123
|
+
window.top.postMessage(params, canvasOrigin);
|
|
115
124
|
}
|
|
116
125
|
}
|
|
117
126
|
export function showFilePreviewInline(event, canvasOrigin, disableGooglePreviews) {
|
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@ if [ -z "$SKIP_ALERT" ]; then
|
|
|
34
34
|
# runs the get-user command and throws away output
|
|
35
35
|
# checks for nonzero exit code to determine if the
|
|
36
36
|
# user is logged in or not
|
|
37
|
-
aws
|
|
37
|
+
aws sts get-caller-identity > /dev/null 2>&1
|
|
38
38
|
if [[ ! $? -eq 0 ]]; then
|
|
39
39
|
echo -e "\n⚠️ Please log into AWS and try again. ⚠️\n"
|
|
40
40
|
exit 1
|