@textadventures/quest-viva-wasmplayer 6.0.4 → 6.1.0-beta.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.
Files changed (156) hide show
  1. package/_framework/Common.wasm +0 -0
  2. package/_framework/Engine.wasm +0 -0
  3. package/_framework/ExtendedNumerics.BigDecimal.wasm +0 -0
  4. package/_framework/Legacy.wasm +0 -0
  5. package/_framework/Microsoft.Extensions.Logging.Abstractions.wasm +0 -0
  6. package/_framework/Microsoft.VisualBasic.Core.wasm +0 -0
  7. package/_framework/NCalc.Core.wasm +0 -0
  8. package/_framework/NCalc.Domain.wasm +0 -0
  9. package/_framework/NCalc.Parser.wasm +0 -0
  10. package/_framework/Parlot.wasm +0 -0
  11. package/_framework/PlayerCore.wasm +0 -0
  12. package/_framework/System.Collections.Immutable.wasm +0 -0
  13. package/_framework/System.Collections.NonGeneric.wasm +0 -0
  14. package/_framework/System.Collections.Specialized.wasm +0 -0
  15. package/_framework/System.Collections.wasm +0 -0
  16. package/_framework/System.ComponentModel.Annotations.wasm +0 -0
  17. package/_framework/System.ComponentModel.Primitives.wasm +0 -0
  18. package/_framework/System.ComponentModel.TypeConverter.wasm +0 -0
  19. package/_framework/System.ComponentModel.wasm +0 -0
  20. package/_framework/System.IO.Compression.wasm +0 -0
  21. package/_framework/System.IO.Pipelines.wasm +0 -0
  22. package/_framework/System.Linq.Expressions.wasm +0 -0
  23. package/_framework/System.Linq.wasm +0 -0
  24. package/_framework/System.Memory.wasm +0 -0
  25. package/_framework/System.Net.Http.wasm +0 -0
  26. package/_framework/System.Net.Primitives.wasm +0 -0
  27. package/_framework/System.ObjectModel.wasm +0 -0
  28. package/_framework/System.Private.CoreLib.wasm +0 -0
  29. package/_framework/System.Private.Uri.wasm +0 -0
  30. package/_framework/System.Private.Xml.Linq.wasm +0 -0
  31. package/_framework/System.Private.Xml.wasm +0 -0
  32. package/_framework/System.Runtime.InteropServices.JavaScript.wasm +0 -0
  33. package/_framework/System.Runtime.Numerics.wasm +0 -0
  34. package/_framework/System.Security.Cryptography.wasm +0 -0
  35. package/_framework/System.Text.Encoding.CodePages.wasm +0 -0
  36. package/_framework/System.Text.Encodings.Web.wasm +0 -0
  37. package/_framework/System.Text.Json.wasm +0 -0
  38. package/_framework/System.Text.RegularExpressions.wasm +0 -0
  39. package/_framework/System.Xml.Linq.wasm +0 -0
  40. package/_framework/System.wasm +0 -0
  41. package/_framework/WasmPlayer.wasm +0 -0
  42. package/_framework/dotnet.js +328 -2
  43. package/_framework/dotnet.native.js +1919 -2049
  44. package/_framework/dotnet.native.wasm +0 -0
  45. package/_framework/dotnet.runtime.js +1 -1
  46. package/_framework/icudt_CJK.dat +0 -0
  47. package/_framework/icudt_EFIGS.dat +0 -0
  48. package/_framework/icudt_no_CJK.dat +0 -0
  49. package/chrome.css +20 -2
  50. package/export-manifest.json +1 -1
  51. package/fonts/courier-prime/LICENSE.txt +93 -0
  52. package/fonts/courier-prime/latin-400-italic.woff2 +0 -0
  53. package/fonts/courier-prime/latin-400-normal.woff2 +0 -0
  54. package/fonts/courier-prime/latin-700-italic.woff2 +0 -0
  55. package/fonts/courier-prime/latin-700-normal.woff2 +0 -0
  56. package/fonts/courier-prime/latin-ext-400-italic.woff2 +0 -0
  57. package/fonts/courier-prime/latin-ext-400-normal.woff2 +0 -0
  58. package/fonts/courier-prime/latin-ext-700-italic.woff2 +0 -0
  59. package/fonts/courier-prime/latin-ext-700-normal.woff2 +0 -0
  60. package/fonts/fonts.css +500 -0
  61. package/fonts/literata/LICENSE.txt +93 -0
  62. package/fonts/literata/cyrillic-400-italic.woff2 +0 -0
  63. package/fonts/literata/cyrillic-400-normal.woff2 +0 -0
  64. package/fonts/literata/cyrillic-700-italic.woff2 +0 -0
  65. package/fonts/literata/cyrillic-700-normal.woff2 +0 -0
  66. package/fonts/literata/cyrillic-ext-400-italic.woff2 +0 -0
  67. package/fonts/literata/cyrillic-ext-400-normal.woff2 +0 -0
  68. package/fonts/literata/cyrillic-ext-700-italic.woff2 +0 -0
  69. package/fonts/literata/cyrillic-ext-700-normal.woff2 +0 -0
  70. package/fonts/literata/greek-400-italic.woff2 +0 -0
  71. package/fonts/literata/greek-400-normal.woff2 +0 -0
  72. package/fonts/literata/greek-700-italic.woff2 +0 -0
  73. package/fonts/literata/greek-700-normal.woff2 +0 -0
  74. package/fonts/literata/greek-ext-400-italic.woff2 +0 -0
  75. package/fonts/literata/greek-ext-400-normal.woff2 +0 -0
  76. package/fonts/literata/greek-ext-700-italic.woff2 +0 -0
  77. package/fonts/literata/greek-ext-700-normal.woff2 +0 -0
  78. package/fonts/literata/latin-400-italic.woff2 +0 -0
  79. package/fonts/literata/latin-400-normal.woff2 +0 -0
  80. package/fonts/literata/latin-700-italic.woff2 +0 -0
  81. package/fonts/literata/latin-700-normal.woff2 +0 -0
  82. package/fonts/literata/latin-ext-400-italic.woff2 +0 -0
  83. package/fonts/literata/latin-ext-400-normal.woff2 +0 -0
  84. package/fonts/literata/latin-ext-700-italic.woff2 +0 -0
  85. package/fonts/literata/latin-ext-700-normal.woff2 +0 -0
  86. package/fonts/literata/vietnamese-400-italic.woff2 +0 -0
  87. package/fonts/literata/vietnamese-400-normal.woff2 +0 -0
  88. package/fonts/literata/vietnamese-700-italic.woff2 +0 -0
  89. package/fonts/literata/vietnamese-700-normal.woff2 +0 -0
  90. package/fonts/nunito/LICENSE.txt +93 -0
  91. package/fonts/nunito/cyrillic-400-italic.woff2 +0 -0
  92. package/fonts/nunito/cyrillic-400-normal.woff2 +0 -0
  93. package/fonts/nunito/cyrillic-700-italic.woff2 +0 -0
  94. package/fonts/nunito/cyrillic-700-normal.woff2 +0 -0
  95. package/fonts/nunito/cyrillic-ext-400-italic.woff2 +0 -0
  96. package/fonts/nunito/cyrillic-ext-400-normal.woff2 +0 -0
  97. package/fonts/nunito/cyrillic-ext-700-italic.woff2 +0 -0
  98. package/fonts/nunito/cyrillic-ext-700-normal.woff2 +0 -0
  99. package/fonts/nunito/latin-400-italic.woff2 +0 -0
  100. package/fonts/nunito/latin-400-normal.woff2 +0 -0
  101. package/fonts/nunito/latin-700-italic.woff2 +0 -0
  102. package/fonts/nunito/latin-700-normal.woff2 +0 -0
  103. package/fonts/nunito/latin-ext-400-italic.woff2 +0 -0
  104. package/fonts/nunito/latin-ext-400-normal.woff2 +0 -0
  105. package/fonts/nunito/latin-ext-700-italic.woff2 +0 -0
  106. package/fonts/nunito/latin-ext-700-normal.woff2 +0 -0
  107. package/fonts/nunito/vietnamese-400-italic.woff2 +0 -0
  108. package/fonts/nunito/vietnamese-400-normal.woff2 +0 -0
  109. package/fonts/nunito/vietnamese-700-italic.woff2 +0 -0
  110. package/fonts/nunito/vietnamese-700-normal.woff2 +0 -0
  111. package/fonts/special-elite/LICENSE.txt +201 -0
  112. package/fonts/special-elite/latin-400-normal.woff2 +0 -0
  113. package/fonts/special-elite/latin-ext-400-normal.woff2 +0 -0
  114. package/fonts/vt323/LICENSE.txt +93 -0
  115. package/fonts/vt323/latin-400-normal.woff2 +0 -0
  116. package/fonts/vt323/latin-ext-400-normal.woff2 +0 -0
  117. package/fonts/vt323/vietnamese-400-normal.woff2 +0 -0
  118. package/game-saver.js +211 -0
  119. package/index.html +140 -52
  120. package/legacy/adapter.js +107 -0
  121. package/{grid.js → legacy/grid.js} +3 -0
  122. package/{player.js → legacy/player.js} +37 -62
  123. package/{playercore.css → legacy/playercore.css} +115 -0
  124. package/{playercore.htm → legacy/playercore.htm} +14 -13
  125. package/{playercore.js → legacy/playercore.js} +188 -252
  126. package/legacy/questui.js +515 -0
  127. package/package.json +1 -1
  128. package/v2/map.js +1 -0
  129. package/v2/player.htm +59 -0
  130. package/v2/v2.css +1 -0
  131. package/v2/v2.js +1 -0
  132. package/wasm-player.js +1359 -284
  133. package/.stamp +0 -0
  134. package/WasmPlayer.runtimeconfig.json +0 -46
  135. package/_framework/System.Collections.Concurrent.wasm +0 -0
  136. package/_framework/dotnet.boot.js +0 -284
  137. /package/{lib → legacy/lib}/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  138. /package/{lib → legacy/lib}/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
  139. /package/{lib → legacy/lib}/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
  140. /package/{lib → legacy/lib}/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
  141. /package/{lib → legacy/lib}/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  142. /package/{lib → legacy/lib}/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
  143. /package/{lib → legacy/lib}/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
  144. /package/{lib → legacy/lib}/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  145. /package/{lib → legacy/lib}/images/ui-icons_217bc0_256x240.png +0 -0
  146. /package/{lib → legacy/lib}/images/ui-icons_2e83ff_256x240.png +0 -0
  147. /package/{lib → legacy/lib}/images/ui-icons_469bdd_256x240.png +0 -0
  148. /package/{lib → legacy/lib}/images/ui-icons_6da8d5_256x240.png +0 -0
  149. /package/{lib → legacy/lib}/images/ui-icons_cd0a0a_256x240.png +0 -0
  150. /package/{lib → legacy/lib}/images/ui-icons_d8e7f3_256x240.png +0 -0
  151. /package/{lib → legacy/lib}/images/ui-icons_f9bd01_256x240.png +0 -0
  152. /package/{lib → legacy/lib}/jquery-2.1.1.min.js +0 -0
  153. /package/{lib → legacy/lib}/jquery-ui.min.css +0 -0
  154. /package/{lib → legacy/lib}/jquery-ui.min.js +0 -0
  155. /package/{lib → legacy/lib}/jquery.multi-open-accordion-1.5.3.js +0 -0
  156. /package/{lib → legacy/lib}/paper.js +0 -0
@@ -299,6 +299,12 @@ button.accordion-header-text {
299
299
  cursor: default;
300
300
  }
301
301
 
302
+ /* The items are listbox options the keyboard reaches (#2358). */
303
+ .elementList li:focus-visible {
304
+ outline: 2px solid #4a90d9;
305
+ outline-offset: -2px;
306
+ }
307
+
302
308
  div#gamePanel img {
303
309
  max-width: 100%;
304
310
  }
@@ -320,6 +326,40 @@ div#divOutput iframe {
320
326
  box-sizing: border-box;
321
327
  }
322
328
 
329
+ /* A gamebook page (setLayoutPreset("gamebook")), spaced as GamebookCore's blank lines used to:
330
+ its picture and video, the options in their output section, and the option the player chose,
331
+ echoed before the next page. A gamebook published with an older GamebookCore never sets the
332
+ class, and still writes its own blank lines. */
333
+ body.qv-gamebook #divOutput img.qv-gamebook-picture {
334
+ margin-bottom: 1em;
335
+ vertical-align: top;
336
+ }
337
+
338
+ body.qv-gamebook #divOutput iframe {
339
+ display: block;
340
+ margin-bottom: 2em;
341
+ }
342
+
343
+ body.qv-gamebook #divOutput div[class^="section"] {
344
+ margin-top: 2em;
345
+ }
346
+
347
+ body.qv-gamebook #divOutput div[class^="section"] > span {
348
+ display: inline-block;
349
+ margin-bottom: 1em;
350
+ }
351
+
352
+ /* The blank lines a gamebook saved by a 6.1 beta's GamebookCore writes between its options */
353
+ body.qv-gamebook #divOutput div[class^="section"] > span:empty,
354
+ body.qv-gamebook #divOutput div[class^="section"] > span:empty + br {
355
+ display: none;
356
+ }
357
+
358
+ body.qv-gamebook #divOutput .qv-gamebook-choice {
359
+ display: inline-block;
360
+ margin-block: 2em 1em;
361
+ }
362
+
323
363
  div.jjmenu {
324
364
  font-size: 12px;
325
365
  position: absolute;
@@ -509,6 +549,46 @@ div.jj_menu_item_hover {
509
549
  justify-content: center;
510
550
  }
511
551
 
552
+ /* The exits strip under the transcript (issue #2183) - the compass itself is
553
+ behind the hamburger here. updateExitStrip() fills it and sets
554
+ .qv-exits-active only while there's an exit to take; the wide layout never
555
+ shows it, since the compass is on screen there already. It scrolls sideways
556
+ rather than wrapping, so a room with many exits costs one row, not several.
557
+ Colours follow the game's own text colour, whatever the game has set it to. */
558
+ #qv-exits {
559
+ display: none;
560
+ }
561
+
562
+ .qv-narrow #qv-exits.qv-exits-active {
563
+ display: flex;
564
+ gap: 8px;
565
+ overflow-x: auto;
566
+ padding: 2px 0 8px;
567
+ scrollbar-width: thin;
568
+ }
569
+
570
+ .qv-narrow #qv-exits .qv-exit {
571
+ flex: 0 0 auto;
572
+ display: inline-flex;
573
+ align-items: center;
574
+ gap: 6px;
575
+ min-height: 44px;
576
+ min-width: 44px;
577
+ padding: 0 14px;
578
+ font: inherit;
579
+ font-size: 16px;
580
+ color: inherit;
581
+ background: transparent;
582
+ border: 1px solid currentColor;
583
+ border-radius: 22px;
584
+ cursor: pointer;
585
+ }
586
+
587
+ .qv-narrow #qv-exits .qv-exit-arrow {
588
+ font-size: 18px;
589
+ line-height: 1;
590
+ }
591
+
512
592
  /* Hyperlink pop-up menu. The font size itself is the game's to choose (see
513
593
  SetMenuFontSize in playercore.js, which applies a floor here rather than
514
594
  overriding it outright), so only the row height is set from CSS. */
@@ -519,3 +599,38 @@ div.jj_menu_item_hover {
519
599
  padding: 4px 10px;
520
600
  box-sizing: border-box;
521
601
  }
602
+
603
+ /* QuestUI (questui.js): {popup:} content in 610 games, positioned as the
604
+ text processor's own inline styles placed it before 610. */
605
+ [data-qv-popup-content] {
606
+ display: none;
607
+ position: fixed;
608
+ z-index: 9999;
609
+ left: 50px;
610
+ top: 40%;
611
+ width: 40%;
612
+ cursor: pointer;
613
+ background-color: var(--qv-bg, white);
614
+ color: var(--qv-link, blue);
615
+ border: 2px solid var(--qv-text, black);
616
+ border-radius: 5px;
617
+ padding: 5px;
618
+ }
619
+
620
+ [data-qv-popup-content].qv-popup-open {
621
+ display: block;
622
+ }
623
+
624
+ [data-qv-popup] {
625
+ cursor: pointer;
626
+ color: var(--qv-link, blue);
627
+ background: none;
628
+ border: none;
629
+ padding: 0;
630
+ font: inherit;
631
+ }
632
+
633
+ /* QuestUI.fadePreviousOutput(true) */
634
+ #divOutput .qv-previous-output {
635
+ opacity: 0.5;
636
+ }
@@ -1,18 +1,18 @@
1
- <div id="gameBorder" style="display: none">
1
+ <div id="gameBorder" data-qv-part="border" style="display: none">
2
2
  <div class="ui-widget-header" id="qv-status">
3
3
  <div id="controlButtons">
4
4
  <button id="cmdDebug" style="display: none" type="button">Debug</button>
5
5
  <button id="cmdSave" type="button" data-chrome-key="SaveLoadTitle">Save / Load</button>
6
6
  <button id="cmdShowPanes" type="button" data-chrome-key-aria-label="ShowPanesButton" aria-label="Show panels">&#9776;</button>
7
7
  </div>
8
- <div id="location">
8
+ <div id="location" data-qv-part="location">
9
9
  </div>
10
10
  </div>
11
11
  <div id="sidebar">
12
- <div id="gamePanes" style="background:transparent;">
12
+ <div id="gamePanes" data-qv-part="panes" style="background:transparent;">
13
13
  <div id="gamePanesRunning">
14
14
  <h3 id="inventoryLabel"><button type="button" class="accordion-header-text" aria-controls="inventoryAccordion" aria-expanded="true">Inventory</button></h3>
15
- <div id="inventoryAccordion">
15
+ <div id="inventoryAccordion" data-qv-part="pane" data-qv-pane="inventory">
16
16
  <div class="elementListWrapper" id="inventoryWrapper">
17
17
  <ol class="elementList" id="lstInventory">
18
18
  </ol>
@@ -39,12 +39,12 @@
39
39
  </div>
40
40
  </div>
41
41
  <h3 id="statusVarsLabel"><button type="button" class="accordion-header-text" aria-controls="statusVarsAccordion" aria-expanded="true">Status</button></h3>
42
- <div id="statusVarsAccordion">
42
+ <div id="statusVarsAccordion" data-qv-part="pane" data-qv-pane="status">
43
43
  <div id="statusVars">
44
44
  </div>
45
45
  </div>
46
46
  <h3 id="placesObjectsLabel"><button type="button" class="accordion-header-text" aria-controls="placesObjectsAccordion" aria-expanded="true">Places and Objects</button></h3>
47
- <div id="placesObjectsAccordion">
47
+ <div id="placesObjectsAccordion" data-qv-part="pane" data-qv-pane="objects">
48
48
  <div class="elementListWrapper" id="placesObjectsWrapper">
49
49
  <ol class="elementList" id="lstPlacesObjects">
50
50
  </ol>
@@ -70,16 +70,16 @@
70
70
  style="display:none" type="button"></button>
71
71
  </div>
72
72
  </div>
73
- <div class="ui-helper-reset ui-widget ui-state-active" id="commandPane"
73
+ <div class="ui-helper-reset ui-widget ui-state-active" id="commandPane" data-qv-part="pane" data-qv-pane="commands"
74
74
  style="border-radius: 5px;text-align:center;display:none;padding:2px;min-height: 25px;margin-top:10px; border-top:1px solid rgb(121, 183, 231)">
75
75
  <h3 id="commandPaneHeading"><span class="accordion-header-text">Commands</span></h3>
76
76
  </div>
77
- <div class="ui-helper-reset ui-widget ui-state-active" id="customStatusPane"
77
+ <div class="ui-helper-reset ui-widget ui-state-active" id="customStatusPane" data-qv-part="pane" data-qv-pane="customstatus"
78
78
  style="border-radius: 5px;text-align:center;display:none;padding:2px;min-height: 25px;margin-top:10px; border-top:1px solid rgb(121, 183, 231)">
79
79
  <h3><span class="accordion-header-text">Status</span></h3>
80
80
  </div>
81
81
  <h3 id="compassLabel"><button type="button" class="accordion-header-text" aria-controls="compassAccordion" aria-expanded="true">Compass</button></h3>
82
- <div id="compassAccordion">
82
+ <div id="compassAccordion" data-qv-part="pane" data-qv-pane="compass">
83
83
  <table id="compassTable">
84
84
  <tr>
85
85
  <td>
@@ -176,10 +176,10 @@
176
176
  </div>
177
177
  </div>
178
178
 
179
- <div id="gamePanel"></div>
180
- <div id="gridPanel"></div>
179
+ <div id="gamePanel" data-qv-part="picture-frame"></div>
180
+ <div id="gridPanel" data-qv-part="map"></div>
181
181
  <div id="gameContent">
182
- <div id="divOutput" role="log" aria-live="polite">
182
+ <div id="divOutput" data-qv-part="output" role="log" aria-live="polite">
183
183
  <div data-divcount="0" id="outputData" style="display: none"></div>
184
184
  <h1 id="gameTitle">
185
185
  Loading...</h1>
@@ -188,7 +188,8 @@
188
188
  <div id="endWaitDiv">
189
189
  <a class="cmdlink" id="endWaitLink" onclick="endWait();" style="display: none">Continue...</a>
190
190
  </div>
191
- <div id="txtCommandDiv">
191
+ <nav id="qv-exits" data-qv-part="exits" aria-label="Compass"></nav>
192
+ <div id="txtCommandDiv" data-qv-part="command-bar">
192
193
  <div id="txtCommandContainer">
193
194
  <span id="txtCommandPrompt"></span>
194
195
  <input id="txtCommand" onkeydown="return commandKey(event);" placeholder="Type here..."