@internetarchive/ia-book-actions 0.1.11-b57 → 0.1.11-b59

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.1.11-b57",
3
+ "version": "0.1.11-b59",
4
4
  "description": "Bookreader actions for borrowable book",
5
5
  "author": "Internet Archive",
6
6
  "license": "AGPL-3.0-only",
@@ -56,6 +56,6 @@ window.IALendingIntervals = {
56
56
  clearAll: () => {
57
57
  window?.IALendingIntervals?.clearTokenPoller();
58
58
  window?.IALendingIntervals?.clearTimerCountdown();
59
- window.IALendingIntervals.clearBrowseExpireTimeout();
59
+ window?.IALendingIntervals?.clearBrowseExpireTimeout();
60
60
  },
61
61
  };
@@ -46,10 +46,6 @@ export default class ActionsHandler extends LitElement {
46
46
  this.addEventListener('browseBook', async () => {
47
47
  this.handleBrowseIt();
48
48
  await this.loanAnanlytics?.storeLoanStatsCount(this.identifier, 'browse');
49
- this.loanAnanlytics?.sendEvent(
50
- analyticsCategories.browse,
51
- analyticsActions.browse
52
- );
53
49
  });
54
50
 
55
51
  this.addEventListener('browseBookAgain', async () => {
@@ -58,10 +54,6 @@ export default class ActionsHandler extends LitElement {
58
54
  this.identifier,
59
55
  'browseagain'
60
56
  );
61
- this.loanAnanlytics?.sendEvent(
62
- analyticsCategories.browse,
63
- analyticsActions.browseBookAgain
64
- );
65
57
  });
66
58
 
67
59
  this.addEventListener('autoRenew', async () => {
@@ -70,10 +62,6 @@ export default class ActionsHandler extends LitElement {
70
62
  this.identifier,
71
63
  'autorenew'
72
64
  );
73
- this.loanAnanlytics?.sendEvent(
74
- analyticsCategories.browse,
75
- analyticsActions.browseAutoRenew
76
- );
77
65
  });
78
66
 
79
67
  this.addEventListener('autoReturn', async () => {
@@ -82,14 +70,6 @@ export default class ActionsHandler extends LitElement {
82
70
  this.identifier,
83
71
  'autoreturn'
84
72
  );
85
- await this.loanAnanlytics?.storeLoanStatsCount(
86
- this.identifier,
87
- 'autorenew'
88
- );
89
- this.loanAnanlytics?.sendEvent(
90
- analyticsCategories.browse,
91
- analyticsActions.browseAutoReturn
92
- );
93
73
  });
94
74
 
95
75
  this.addEventListener('returnNow', ({ detail }) => {