@textadventures/quest-viva-wasmplayer 6.0.0 → 6.0.1

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.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,7 +1,7 @@
1
1
  export const config = /*json-start*/{
2
2
  "mainAssemblyName": "WasmPlayer.dll",
3
3
  "resources": {
4
- "hash": "sha256-Jrv184v+9xZnBDmUPen8q6POGJh8De0KBVm2pl7uSxI=",
4
+ "hash": "sha256-nvei+uDoDk8FCVWefrGkWMWUyD95CYT8nF25GyZv2qY=",
5
5
  "jsModuleNative": [
6
6
  {
7
7
  "name": "dotnet.native.js"
@@ -51,12 +51,12 @@ export const config = /*json-start*/{
51
51
  {
52
52
  "virtualPath": "Common.wasm",
53
53
  "name": "Common.wasm",
54
- "hash": "sha256-NX7vyJIEoJO6EQl3rUh5I3UQe7LYox+tTmZ9uUErp8U="
54
+ "hash": "sha256-LiZAUMJVdAqNhtBE+P5u/dnoDTsh2tacaKeV32qXAgE="
55
55
  },
56
56
  {
57
57
  "virtualPath": "Engine.wasm",
58
58
  "name": "Engine.wasm",
59
- "hash": "sha256-ubJdbDMqis+yMYi9Sl2CXT98MW5jrv3LaZEQNLOaKLk="
59
+ "hash": "sha256-wEZuzX0mZAzNfKBxLvdF+e2S20b0ss+JMuEdXAS0lZo="
60
60
  },
61
61
  {
62
62
  "virtualPath": "ExtendedNumerics.BigDecimal.wasm",
@@ -66,7 +66,7 @@ export const config = /*json-start*/{
66
66
  {
67
67
  "virtualPath": "Legacy.wasm",
68
68
  "name": "Legacy.wasm",
69
- "hash": "sha256-0+79VvkK67sFZayiOvUTP5hgJO4RuHZ4OkHvXT78z8s="
69
+ "hash": "sha256-ToaDtd0UcgOS5Fi2BvdHLjImdUQdXvDzxnP6yBvYHEo="
70
70
  },
71
71
  {
72
72
  "virtualPath": "Microsoft.Extensions.Logging.Abstractions.wasm",
@@ -101,7 +101,7 @@ export const config = /*json-start*/{
101
101
  {
102
102
  "virtualPath": "PlayerCore.wasm",
103
103
  "name": "PlayerCore.wasm",
104
- "hash": "sha256-DWhXb/cvjr7O0ARV3wJrhvUFj8AFri1sFrRrGqJsnEw="
104
+ "hash": "sha256-0kPTu1rXOdfRB9mDXCADJtUKx4pCzm6RnP4b0XP9a+Q="
105
105
  },
106
106
  {
107
107
  "virtualPath": "System.Collections.Concurrent.wasm",
@@ -201,7 +201,7 @@ export const config = /*json-start*/{
201
201
  {
202
202
  "virtualPath": "System.Private.Xml.wasm",
203
203
  "name": "System.Private.Xml.wasm",
204
- "hash": "sha256-vsw9/sfmrDv4DEO6uJKHDhh2bDjO9EB1TS2XWmV5uOU="
204
+ "hash": "sha256-nMWbT0e95/t8pYO3bhKspaa+n7fjWy5S/9OgDG+tROA="
205
205
  },
206
206
  {
207
207
  "virtualPath": "System.Private.Xml.Linq.wasm",
@@ -241,7 +241,7 @@ export const config = /*json-start*/{
241
241
  {
242
242
  "virtualPath": "WasmPlayer.wasm",
243
243
  "name": "WasmPlayer.wasm",
244
- "hash": "sha256-C8b95/YbJl+Eiio3hmftLgOfjQRTn9VZiP/QN935EJI="
244
+ "hash": "sha256-9HNION2ZLB/Ku3VPCn3o4j5hdiaeLSyxBCBpYdjIAj0="
245
245
  }
246
246
  ]
247
247
  },
package/index.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <meta charset="utf-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Quest Viva</title>
7
- <link rel="icon" type="image/svg+xml" href="favicon.svg?v=6.0.0" />
7
+ <link rel="icon" type="image/svg+xml" href="favicon.svg?v=6.0.1" />
8
8
  <!-- Lets the preload scanner start the runtime loader before the parser has
9
9
  even reached wasm-player.js, which as the last script in this head only
10
10
  executes once jQuery/jQuery UI/paper.js have all downloaded *and* run.
@@ -14,8 +14,8 @@
14
14
  here (scripts/inject-version.mjs), which is also what makes the
15
15
  preload and wasm-player.js's own import() agree on one URL and share a
16
16
  single fetch. -->
17
- <link rel="modulepreload" href="_framework/dotnet.js?v=6.0.0" />
18
- <script type="text/javascript" src="quest-config.js?v=6.0.0"></script>
17
+ <link rel="modulepreload" href="_framework/dotnet.js?v=6.0.1" />
18
+ <script type="text/javascript" src="quest-config.js?v=6.0.1"></script>
19
19
  <script type="text/javascript">
20
20
  // Runs before the start screen is parsed, so when a game is specified via the
21
21
  // URL (or a defaultGameUrl is configured) we paint straight into the loading
@@ -33,28 +33,28 @@
33
33
  html.qv-booting #qv-pickers { display: none; }
34
34
  html.qv-booting #qv-loading-msg { display: flex; }
35
35
  </style>
36
- <script type="text/javascript" src="lib/jquery-2.1.1.min.js?v=6.0.0"></script>
37
- <script type="text/javascript" src="lib/jquery-ui.min.js?v=6.0.0"></script>
38
- <script type="text/javascript" src="lib/jquery.multi-open-accordion-1.5.3.js?v=6.0.0"></script>
39
- <link rel="stylesheet" type="text/css" href="lib/jquery-ui.min.css?v=6.0.0" />
40
- <link rel="stylesheet" type="text/css" href="playercore.css?v=6.0.0" />
36
+ <script type="text/javascript" src="lib/jquery-2.1.1.min.js?v=6.0.1"></script>
37
+ <script type="text/javascript" src="lib/jquery-ui.min.js?v=6.0.1"></script>
38
+ <script type="text/javascript" src="lib/jquery.multi-open-accordion-1.5.3.js?v=6.0.1"></script>
39
+ <link rel="stylesheet" type="text/css" href="lib/jquery-ui.min.css?v=6.0.1" />
40
+ <link rel="stylesheet" type="text/css" href="playercore.css?v=6.0.1" />
41
41
  <!-- App-chrome styles (start screen, debugger, save-slot manager). Built from
42
42
  styles/chrome.css via `npm run build` — see WasmPlayer/package.json. All of
43
43
  its rules are contained to `.qv-chrome` subtrees so they can't affect the
44
44
  game UI above (playercore.css / jQuery UI). -->
45
- <link rel="stylesheet" type="text/css" href="chrome.css?v=6.0.0" />
46
- <script type="text/javascript" src="playercore.js?v=6.0.0"></script>
47
- <script type="text/javascript" src="player.js?v=6.0.0"></script>
48
- <script type="text/javascript" src="lib/paper.js?v=6.0.0"></script>
49
- <script>window.QuestVivaVersion = "6.0.0";</script>
50
- <script type="text/javascript" src="wasm-player.js?v=6.0.0"></script>
45
+ <link rel="stylesheet" type="text/css" href="chrome.css?v=6.0.1" />
46
+ <script type="text/javascript" src="playercore.js?v=6.0.1"></script>
47
+ <script type="text/javascript" src="player.js?v=6.0.1"></script>
48
+ <script type="text/javascript" src="lib/paper.js?v=6.0.1"></script>
49
+ <script>window.QuestVivaVersion = "6.0.1";</script>
50
+ <script type="text/javascript" src="wasm-player.js?v=6.0.1"></script>
51
51
  </head>
52
52
  <body>
53
53
  <div id="qv-start" class="qv-chrome">
54
54
  <div class="card preset-filled-surface-100-900 w-full max-w-md p-8 space-y-6" data-theme="wintry">
55
55
  <div>
56
56
  <h1 class="h2 flex items-center gap-4">
57
- <img src="logo.svg?v=6.0.0" alt="" class="h-7" />
57
+ <img src="logo.svg?v=6.0.1" alt="" class="h-7" />
58
58
  Quest Viva
59
59
  </h1>
60
60
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@textadventures/quest-viva-wasmplayer",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "private": false,
5
5
  "description": "Quest Viva WasmPlayer runtime (browser-WASM text adventure player), published for CDN-linked single-file game exports.",
6
6
  "license": "MIT",
package/playercore.css CHANGED
@@ -300,10 +300,18 @@ div#gamePanel img {
300
300
  max-width: 100%;
301
301
  }
302
302
 
303
- div#divOutput img {
303
+ div#divOutput img,
304
+ div#divOutput video,
305
+ div#divOutput iframe {
304
306
  max-width: 100%;
305
307
  }
306
308
 
309
+ /* An iframe has a border by default, which would otherwise take it past the text width */
310
+ div#divOutput video,
311
+ div#divOutput iframe {
312
+ box-sizing: border-box;
313
+ }
314
+
307
315
  div.jjmenu {
308
316
  font-size: 12px;
309
317
  position: absolute;
package/playercore.js CHANGED
@@ -1390,7 +1390,8 @@ function setInterfaceString(name, text) {
1390
1390
 
1391
1391
  function AddYouTube(id) {
1392
1392
  var url = "https://www.youtube.com/embed/" + id + "?autoplay=1&rel=0";
1393
- var embedHTML = "<iframe width=\"425\" height=\"344\" src=\"" + url + "\" frameborder=\"0\" allowfullscreen></iframe>";
1393
+ // Sized by aspect ratio rather than fixed pixels, so it fits a phone screen
1394
+ var embedHTML = "<iframe style=\"width:100%; max-width:560px; aspect-ratio:16/9; border:0;\" src=\"" + url + "\" allow=\"autoplay; fullscreen\" allowfullscreen></iframe>";
1394
1395
  addText(embedHTML);
1395
1396
  }
1396
1397
 
@@ -1400,7 +1401,7 @@ function AddYouTube(id) {
1400
1401
  // working regardless of what Core.aslx currently offers. See Core Library Semantics in CLAUDE.md.
1401
1402
  function AddVimeo(id) {
1402
1403
  var url = "https://player.vimeo.com/video/" + id + "?autoplay=1";
1403
- var embedHTML = "<iframe sandbox=\"allow-same-origin allow-scripts allow-popups\" src=\"" + url + "\" width=\"500\" height=\"281\" frameborder=\"0\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>";
1404
+ var embedHTML = "<iframe sandbox=\"allow-same-origin allow-scripts allow-popups\" src=\"" + url + "\" style=\"width:100%; max-width:500px; aspect-ratio:16/9; border:0;\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>";
1404
1405
  addText(embedHTML);
1405
1406
  }
1406
1407