@internetarchive/ia-book-actions 0.0.22-3 → 0.0.22-4
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@internetarchive/ia-book-actions",
|
|
3
|
-
"version": "0.0.22-
|
|
3
|
+
"version": "0.0.22-4",
|
|
4
4
|
"description": "Bookreader actions for borrowable book",
|
|
5
5
|
"author": "Internet Archive",
|
|
6
6
|
"license": "AGPL-3.0-only",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@internetarchive/icon-info": "^1.2.6",
|
|
22
22
|
"@internetarchive/local-cache": "^0.2.0",
|
|
23
|
-
"@internetarchive/modal-manager": "^0.2.
|
|
23
|
+
"@internetarchive/modal-manager": "^0.2.1",
|
|
24
24
|
"@internetarchive/shared-resize-observer": "^0.2.0",
|
|
25
|
-
"lit": "^2.2.
|
|
25
|
+
"lit": "^2.2.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@open-wc/eslint-config": "^4.2.0",
|
|
@@ -36,6 +36,7 @@ export default async function ActionsHandlerService(options) {
|
|
|
36
36
|
body: formData,
|
|
37
37
|
})
|
|
38
38
|
.then(response => {
|
|
39
|
+
// return {error: 'not logged in'}
|
|
39
40
|
// intentional error on localhost
|
|
40
41
|
if (shouldReturnError && erroneousActions.includes(option?.action)) {
|
|
41
42
|
return {
|
package/src/ia-book-actions.js
CHANGED
|
@@ -297,6 +297,9 @@ export default class IABookActions extends LitElement {
|
|
|
297
297
|
const action = event?.detail?.action;
|
|
298
298
|
const errorMsg = event?.detail?.data?.error;
|
|
299
299
|
|
|
300
|
+
console.log('event', event)
|
|
301
|
+
console.log('action', action)
|
|
302
|
+
console.log('errorMsg', errorMsg)
|
|
300
303
|
if (errorMsg) this.showErrorModal(errorMsg, action);
|
|
301
304
|
|
|
302
305
|
// update action bar state if book is not available to browse or borrow.
|