@internetarchive/ia-book-actions 0.0.16-5 → 0.0.17-2

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.16-5",
3
+ "version": "0.0.17-2",
4
4
  "description": "Bookreader actions for borrowable book",
5
5
  "author": "Internet Archive",
6
6
  "license": "AGPL-3.0-only",
@@ -13,15 +13,16 @@ import * as Cookies from '../doc-cookies.js';
13
13
  */
14
14
 
15
15
  export default class ActionsHandler extends LitElement {
16
- static properties() {
17
- return {
18
- returnUrl: { type: String },
19
- };
20
- }
21
-
22
- constructor(identifier) {
16
+ // static properties() {
17
+ // return {
18
+ // identifier: { type: String },
19
+ // returnUrl: { type: String },
20
+ // };
21
+ // }
22
+
23
+ constructor() {
23
24
  super();
24
- this.identifier = identifier;
25
+ this.identifier = '';
25
26
  this.ajaxTimeout = 6000;
26
27
  this.bindEvents();
27
28
  this.returnUrl = '';
@@ -194,10 +195,6 @@ export default class ActionsHandler extends LitElement {
194
195
  * @fires ActionsHandler#lendingActionError
195
196
  */
196
197
  dispatchActionError(action, data = {}) {
197
- console.log('LendingServiceError');
198
- // send LendingServiceError to GA
199
- this.sendEvent('LendingServiceError', action || 'unknown_action');
200
-
201
198
  this.dispatchEvent(
202
199
  new CustomEvent('lendingActionError', {
203
200
  detail: { action, data },