replaywebpage 1.7.2 → 1.7.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,7 +1,7 @@
1
1
  {
2
2
  "name": "replaywebpage",
3
3
  "productName": "ReplayWeb.page",
4
- "version": "1.7.2",
4
+ "version": "1.7.4",
5
5
  "description": "Serverless Web Archive Replay",
6
6
  "repository": "https://github.com/webrecorder/replayweb.page",
7
7
  "homepage": "https://replayweb.page/",
@@ -9,8 +9,8 @@
9
9
  "license": "AGPL-3.0-or-later",
10
10
  "dependencies": {
11
11
  "@fortawesome/fontawesome-free": "^5.15.4",
12
- "@webrecorder/wabac": "^2.13.4",
13
- "auto-js-ipfs": "^1.3.9",
12
+ "@webrecorder/wabac": "^2.13.10",
13
+ "auto-js-ipfs": "^1.5.1",
14
14
  "bulma": "^0.9.3",
15
15
  "electron-log": "^4.4.1",
16
16
  "electron-updater": "^4.3.9",
@@ -31,13 +31,13 @@
31
31
  "devDependencies": {
32
32
  "copy-webpack-plugin": "^9.0.1",
33
33
  "css-loader": "^6.2.0",
34
- "electron": "^20.3.0",
34
+ "electron": "^21.3.1",
35
35
  "electron-builder": "^23.0.3",
36
36
  "electron-notarize": "^1.1.1",
37
37
  "eslint": "^8.23.1",
38
38
  "http-server": "^13.0.2",
39
39
  "mini-css-extract-plugin": "^2.3.0",
40
- "node-sass": "^7.0.1",
40
+ "node-sass": "^8.0.0",
41
41
  "raw-loader": "^4.0.2",
42
42
  "sass-loader": "^12.1.0",
43
43
  "style-loader": "^3.2.1",
@@ -47,7 +47,6 @@
47
47
  "webpack-dev-server": "^4.2.1"
48
48
  },
49
49
  "files": [
50
- "/assets",
51
50
  "/src",
52
51
  "/ruffle",
53
52
  "sw.js",
package/src/appmain.js CHANGED
@@ -396,6 +396,10 @@ class ReplayWebApp extends LitElement
396
396
  this.loadInfo.hideOffscreen = true;
397
397
  }
398
398
 
399
+ if (this.pageParams.get("loading") === "eager") {
400
+ this.loadInfo.loadEager = true;
401
+ }
402
+
399
403
  if (IS_APP && this.sourceUrl.startsWith("file://")) {
400
404
  // eslint-disable-next-line no-undef
401
405
  const url = new URL(__APP_FILE_SERVE_PREFIX__);
@@ -229,7 +229,7 @@ export class RWPEmbedReceipt extends LitElement
229
229
  <p>${software}</p>` : ""}
230
230
  ${!domain && publicKey ? html`
231
231
  <h3 class="mt-2">Observer Public Key:</h3>
232
- <p class="show-key">${publicKey}</p>` : ``}
232
+ <p class="show-key">${publicKey}</p>` : ""}
233
233
  <h3 class="mt-2">Validation:</h3>
234
234
  ${numValid > 0 || numInvalid > 0 ? html`
235
235
  <p>${numValid} hashes verified${numInvalid ? html`, ${numInvalid} invalid` : ""}</p>` : html`
package/src/embed.js CHANGED
@@ -42,6 +42,7 @@ class Embed extends LitElement
42
42
  // deprecated;
43
43
  this.noSandbox = null;
44
44
  this.logo = rwpLogo;
45
+ this.loading = "";
45
46
  }
46
47
 
47
48
  static setDefaultReplayFile(replayfile) {
@@ -84,7 +85,9 @@ class Embed extends LitElement
84
85
 
85
86
  errorMessage: { type: String },
86
87
 
87
- requireSubdomainIframe: {type: Boolean}
88
+ requireSubdomainIframe: {type: Boolean},
89
+
90
+ loading: { type: String },
88
91
  };
89
92
  }
90
93
 
@@ -240,6 +243,10 @@ class Embed extends LitElement
240
243
  params.hideOffscreen = "1";
241
244
  }
242
245
 
246
+ if (this.loading === "eager") {
247
+ params.loading = "eager";
248
+ }
249
+
243
250
  this.paramString = new URLSearchParams(params).toString();
244
251
 
245
252
  this.hashString = new URLSearchParams({
package/src/loader.js CHANGED
@@ -182,6 +182,7 @@ You can select a file to upload from the main page by clicking the 'Choose File.
182
182
 
183
183
  if (this.loadInfo) {
184
184
  source.newFullImport = this.loadInfo.newFullImport;
185
+ source.loadEager = this.loadInfo.loadEager;
185
186
  source.noCache = this.loadInfo.noCache;
186
187
 
187
188
  if (this.loadInfo.extraConfig) {