@internetarchive/bookreader 5.0.0-32-shadydom1 → 5.0.0-32-shadydom2

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.
@@ -7,6 +7,11 @@
7
7
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
8
8
  <meta name="apple-mobile-web-app-capable" content="yes">
9
9
 
10
+ <!-- WC dependencies -->
11
+ <script type="text/javascript" src="https://polyfill.io/v3/polyfill.min.js?features=es2015%2Ces5%2CglobalThis"></script>
12
+ <script type="text/javascript" src="https://unpkg.com/lit@2.1.2/polyfill-support.js"></script>
13
+ <script type="text/javascript" src="https://unpkg.com/@webcomponents/webcomponentsjs@2.2.10/webcomponents-bundle.js"></script>
14
+
10
15
  <!-- JS dependencies -->
11
16
  <script src="../BookReader/webcomponents-bundle.js"></script>
12
17
  <script src="../BookReader/jquery-1.10.1.js"></script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@internetarchive/bookreader",
3
- "version": "5.0.0-32-shadydom1",
3
+ "version": "5.0.0-32-shadydom2",
4
4
  "description": "The Internet Archive BookReader.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,7 +26,7 @@
26
26
  "private": false,
27
27
  "dependencies": {
28
28
  "@internetarchive/ia-activity-indicator": "^0.0.1",
29
- "@internetarchive/ia-item-navigator": "0.0.5-1",
29
+ "@internetarchive/ia-item-navigator": "0.0.5-2",
30
30
  "@internetarchive/ia-menu-slider": "^1.1.1",
31
31
  "@internetarchive/ia-sharing-options": "^0.1.4",
32
32
  "@internetarchive/icon-bookmark": "^1.1.3",
@@ -142,8 +142,9 @@ class IABookmarks extends LitElement {
142
142
  if (this.displayMode === 'login') {
143
143
  return;
144
144
  }
145
+ this.updateDisplay();
145
146
  this.setBREventListeners();
146
- this.initializeBookmarks();
147
+ this.fetchUserBookmarks();
147
148
  }
148
149
 
149
150
  updateDisplay() {
@@ -176,17 +176,15 @@ export class IaBookReader extends LitElement {
176
176
  min-height: inherit;
177
177
  }
178
178
 
179
+ div[slot="header"],
179
180
  div[slot="main"] {
180
181
  display: flex;
181
182
  width: 100%;
182
183
  }
183
184
 
184
- slot[name="main"] {
185
- flex: 1;
186
- }
187
-
188
185
  slot {
189
186
  display: block;
187
+ flex: 1;
190
188
  }
191
189
 
192
190
  ia-item-navigator {