@textadventures/quest-viva-wasmplayer 6.0.0-beta.51 → 6.0.0-beta.53

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 (191) hide show
  1. package/TranscriptViewer/index.html +136 -0
  2. package/WasmPlayer.runtimeconfig.json +1 -1
  3. package/_framework/Common.wasm +0 -0
  4. package/_framework/Engine.wasm +0 -0
  5. package/_framework/Legacy.wasm +0 -0
  6. package/_framework/Microsoft.CSharp.wasm +0 -0
  7. package/_framework/Microsoft.VisualBasic.Core.wasm +0 -0
  8. package/_framework/Microsoft.VisualBasic.wasm +0 -0
  9. package/_framework/Microsoft.Win32.Primitives.wasm +0 -0
  10. package/_framework/Microsoft.Win32.Registry.wasm +0 -0
  11. package/_framework/PlayerCore.wasm +0 -0
  12. package/_framework/System.AppContext.wasm +0 -0
  13. package/_framework/System.Buffers.wasm +0 -0
  14. package/_framework/System.Collections.Concurrent.wasm +0 -0
  15. package/_framework/System.Collections.Immutable.wasm +0 -0
  16. package/_framework/System.Collections.NonGeneric.wasm +0 -0
  17. package/_framework/System.Collections.Specialized.wasm +0 -0
  18. package/_framework/System.Collections.wasm +0 -0
  19. package/_framework/System.ComponentModel.Annotations.wasm +0 -0
  20. package/_framework/System.ComponentModel.DataAnnotations.wasm +0 -0
  21. package/_framework/System.ComponentModel.EventBasedAsync.wasm +0 -0
  22. package/_framework/System.ComponentModel.Primitives.wasm +0 -0
  23. package/_framework/System.ComponentModel.TypeConverter.wasm +0 -0
  24. package/_framework/System.ComponentModel.wasm +0 -0
  25. package/_framework/System.Configuration.wasm +0 -0
  26. package/_framework/System.Console.wasm +0 -0
  27. package/_framework/System.Core.wasm +0 -0
  28. package/_framework/System.Data.Common.wasm +0 -0
  29. package/_framework/System.Data.DataSetExtensions.wasm +0 -0
  30. package/_framework/System.Data.wasm +0 -0
  31. package/_framework/System.Diagnostics.Contracts.wasm +0 -0
  32. package/_framework/System.Diagnostics.Debug.wasm +0 -0
  33. package/_framework/System.Diagnostics.DiagnosticSource.wasm +0 -0
  34. package/_framework/System.Diagnostics.FileVersionInfo.wasm +0 -0
  35. package/_framework/System.Diagnostics.Process.wasm +0 -0
  36. package/_framework/System.Diagnostics.StackTrace.wasm +0 -0
  37. package/_framework/System.Diagnostics.TextWriterTraceListener.wasm +0 -0
  38. package/_framework/System.Diagnostics.Tools.wasm +0 -0
  39. package/_framework/System.Diagnostics.TraceSource.wasm +0 -0
  40. package/_framework/System.Diagnostics.Tracing.wasm +0 -0
  41. package/_framework/System.Drawing.Primitives.wasm +0 -0
  42. package/_framework/System.Drawing.wasm +0 -0
  43. package/_framework/System.Dynamic.Runtime.wasm +0 -0
  44. package/_framework/System.Formats.Asn1.wasm +0 -0
  45. package/_framework/System.Formats.Tar.wasm +0 -0
  46. package/_framework/System.Globalization.Calendars.wasm +0 -0
  47. package/_framework/System.Globalization.Extensions.wasm +0 -0
  48. package/_framework/System.Globalization.wasm +0 -0
  49. package/_framework/System.IO.Compression.Brotli.wasm +0 -0
  50. package/_framework/System.IO.Compression.FileSystem.wasm +0 -0
  51. package/_framework/System.IO.Compression.ZipFile.wasm +0 -0
  52. package/_framework/System.IO.Compression.wasm +0 -0
  53. package/_framework/System.IO.FileSystem.AccessControl.wasm +0 -0
  54. package/_framework/System.IO.FileSystem.DriveInfo.wasm +0 -0
  55. package/_framework/System.IO.FileSystem.Primitives.wasm +0 -0
  56. package/_framework/System.IO.FileSystem.Watcher.wasm +0 -0
  57. package/_framework/System.IO.FileSystem.wasm +0 -0
  58. package/_framework/System.IO.IsolatedStorage.wasm +0 -0
  59. package/_framework/System.IO.MemoryMappedFiles.wasm +0 -0
  60. package/_framework/System.IO.Pipelines.wasm +0 -0
  61. package/_framework/System.IO.Pipes.AccessControl.wasm +0 -0
  62. package/_framework/System.IO.Pipes.wasm +0 -0
  63. package/_framework/System.IO.UnmanagedMemoryStream.wasm +0 -0
  64. package/_framework/System.IO.wasm +0 -0
  65. package/_framework/System.Linq.AsyncEnumerable.wasm +0 -0
  66. package/_framework/System.Linq.Expressions.wasm +0 -0
  67. package/_framework/System.Linq.Parallel.wasm +0 -0
  68. package/_framework/System.Linq.Queryable.wasm +0 -0
  69. package/_framework/System.Linq.wasm +0 -0
  70. package/_framework/System.Memory.wasm +0 -0
  71. package/_framework/System.Net.Http.Json.wasm +0 -0
  72. package/_framework/System.Net.Http.wasm +0 -0
  73. package/_framework/System.Net.HttpListener.wasm +0 -0
  74. package/_framework/System.Net.Mail.wasm +0 -0
  75. package/_framework/System.Net.NameResolution.wasm +0 -0
  76. package/_framework/System.Net.NetworkInformation.wasm +0 -0
  77. package/_framework/System.Net.Ping.wasm +0 -0
  78. package/_framework/System.Net.Primitives.wasm +0 -0
  79. package/_framework/System.Net.Quic.wasm +0 -0
  80. package/_framework/System.Net.Requests.wasm +0 -0
  81. package/_framework/System.Net.Security.wasm +0 -0
  82. package/_framework/System.Net.ServerSentEvents.wasm +0 -0
  83. package/_framework/System.Net.ServicePoint.wasm +0 -0
  84. package/_framework/System.Net.Sockets.wasm +0 -0
  85. package/_framework/System.Net.WebClient.wasm +0 -0
  86. package/_framework/System.Net.WebHeaderCollection.wasm +0 -0
  87. package/_framework/System.Net.WebProxy.wasm +0 -0
  88. package/_framework/System.Net.WebSockets.Client.wasm +0 -0
  89. package/_framework/System.Net.WebSockets.wasm +0 -0
  90. package/_framework/System.Net.wasm +0 -0
  91. package/_framework/System.Numerics.Vectors.wasm +0 -0
  92. package/_framework/System.Numerics.wasm +0 -0
  93. package/_framework/System.ObjectModel.wasm +0 -0
  94. package/_framework/System.Private.CoreLib.wasm +0 -0
  95. package/_framework/System.Private.DataContractSerialization.wasm +0 -0
  96. package/_framework/System.Private.Uri.wasm +0 -0
  97. package/_framework/System.Private.Xml.Linq.wasm +0 -0
  98. package/_framework/System.Private.Xml.wasm +0 -0
  99. package/_framework/System.Reflection.DispatchProxy.wasm +0 -0
  100. package/_framework/System.Reflection.Emit.ILGeneration.wasm +0 -0
  101. package/_framework/System.Reflection.Emit.Lightweight.wasm +0 -0
  102. package/_framework/System.Reflection.Emit.wasm +0 -0
  103. package/_framework/System.Reflection.Extensions.wasm +0 -0
  104. package/_framework/System.Reflection.Metadata.wasm +0 -0
  105. package/_framework/System.Reflection.Primitives.wasm +0 -0
  106. package/_framework/System.Reflection.TypeExtensions.wasm +0 -0
  107. package/_framework/System.Reflection.wasm +0 -0
  108. package/_framework/System.Resources.Reader.wasm +0 -0
  109. package/_framework/System.Resources.ResourceManager.wasm +0 -0
  110. package/_framework/System.Resources.Writer.wasm +0 -0
  111. package/_framework/System.Runtime.CompilerServices.Unsafe.wasm +0 -0
  112. package/_framework/System.Runtime.CompilerServices.VisualC.wasm +0 -0
  113. package/_framework/System.Runtime.Extensions.wasm +0 -0
  114. package/_framework/System.Runtime.Handles.wasm +0 -0
  115. package/_framework/System.Runtime.InteropServices.JavaScript.wasm +0 -0
  116. package/_framework/System.Runtime.InteropServices.RuntimeInformation.wasm +0 -0
  117. package/_framework/System.Runtime.InteropServices.wasm +0 -0
  118. package/_framework/System.Runtime.Intrinsics.wasm +0 -0
  119. package/_framework/System.Runtime.Loader.wasm +0 -0
  120. package/_framework/System.Runtime.Numerics.wasm +0 -0
  121. package/_framework/System.Runtime.Serialization.Formatters.wasm +0 -0
  122. package/_framework/System.Runtime.Serialization.Json.wasm +0 -0
  123. package/_framework/System.Runtime.Serialization.Primitives.wasm +0 -0
  124. package/_framework/System.Runtime.Serialization.Xml.wasm +0 -0
  125. package/_framework/System.Runtime.Serialization.wasm +0 -0
  126. package/_framework/System.Runtime.wasm +0 -0
  127. package/_framework/System.Security.AccessControl.wasm +0 -0
  128. package/_framework/System.Security.Claims.wasm +0 -0
  129. package/_framework/System.Security.Cryptography.Algorithms.wasm +0 -0
  130. package/_framework/System.Security.Cryptography.Cng.wasm +0 -0
  131. package/_framework/System.Security.Cryptography.Csp.wasm +0 -0
  132. package/_framework/System.Security.Cryptography.Encoding.wasm +0 -0
  133. package/_framework/System.Security.Cryptography.OpenSsl.wasm +0 -0
  134. package/_framework/System.Security.Cryptography.Primitives.wasm +0 -0
  135. package/_framework/System.Security.Cryptography.X509Certificates.wasm +0 -0
  136. package/_framework/System.Security.Cryptography.wasm +0 -0
  137. package/_framework/System.Security.Principal.Windows.wasm +0 -0
  138. package/_framework/System.Security.Principal.wasm +0 -0
  139. package/_framework/System.Security.SecureString.wasm +0 -0
  140. package/_framework/System.Security.wasm +0 -0
  141. package/_framework/System.ServiceModel.Web.wasm +0 -0
  142. package/_framework/System.ServiceProcess.wasm +0 -0
  143. package/_framework/System.Text.Encoding.CodePages.wasm +0 -0
  144. package/_framework/System.Text.Encoding.Extensions.wasm +0 -0
  145. package/_framework/System.Text.Encoding.wasm +0 -0
  146. package/_framework/System.Text.Encodings.Web.wasm +0 -0
  147. package/_framework/System.Text.Json.wasm +0 -0
  148. package/_framework/System.Text.RegularExpressions.wasm +0 -0
  149. package/_framework/System.Threading.AccessControl.wasm +0 -0
  150. package/_framework/System.Threading.Channels.wasm +0 -0
  151. package/_framework/System.Threading.Overlapped.wasm +0 -0
  152. package/_framework/System.Threading.Tasks.Dataflow.wasm +0 -0
  153. package/_framework/System.Threading.Tasks.Extensions.wasm +0 -0
  154. package/_framework/System.Threading.Tasks.Parallel.wasm +0 -0
  155. package/_framework/System.Threading.Tasks.wasm +0 -0
  156. package/_framework/System.Threading.Thread.wasm +0 -0
  157. package/_framework/System.Threading.ThreadPool.wasm +0 -0
  158. package/_framework/System.Threading.Timer.wasm +0 -0
  159. package/_framework/System.Threading.wasm +0 -0
  160. package/_framework/System.Transactions.Local.wasm +0 -0
  161. package/_framework/System.Transactions.wasm +0 -0
  162. package/_framework/System.ValueTuple.wasm +0 -0
  163. package/_framework/System.Web.HttpUtility.wasm +0 -0
  164. package/_framework/System.Web.wasm +0 -0
  165. package/_framework/System.Windows.wasm +0 -0
  166. package/_framework/System.Xml.Linq.wasm +0 -0
  167. package/_framework/System.Xml.ReaderWriter.wasm +0 -0
  168. package/_framework/System.Xml.Serialization.wasm +0 -0
  169. package/_framework/System.Xml.XDocument.wasm +0 -0
  170. package/_framework/System.Xml.XPath.XDocument.wasm +0 -0
  171. package/_framework/System.Xml.XPath.wasm +0 -0
  172. package/_framework/System.Xml.XmlDocument.wasm +0 -0
  173. package/_framework/System.Xml.XmlSerializer.wasm +0 -0
  174. package/_framework/System.Xml.wasm +0 -0
  175. package/_framework/System.wasm +0 -0
  176. package/_framework/WasmPlayer.wasm +0 -0
  177. package/_framework/WindowsBase.wasm +0 -0
  178. package/_framework/dotnet.boot.js +179 -179
  179. package/_framework/dotnet.js +1 -1
  180. package/_framework/dotnet.native.js +3 -3
  181. package/_framework/dotnet.native.wasm +0 -0
  182. package/_framework/dotnet.runtime.js +1 -1
  183. package/_framework/mscorlib.wasm +0 -0
  184. package/_framework/netstandard.wasm +0 -0
  185. package/chrome.css +1 -1
  186. package/index.html +9 -9
  187. package/package.json +1 -1
  188. package/player.js +13 -5
  189. package/playercore.htm +1 -1
  190. package/playercore.js +57 -2
  191. package/wasm-player.js +141 -18
@@ -0,0 +1,136 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta content="width=device-width, initial-scale=1.0" name="viewport">
6
+ <title>Quest Viva | Your Transcripts</title>
7
+ <link rel="icon" type="image/svg+xml" href="../favicon.svg" />
8
+ </head>
9
+ <body onload="loadTable()">
10
+ <table id="transcript-table"
11
+ style="margin: 0 auto; font-family: Source Sans Pro, Calibri, Candara, Arial, sans-serif; color: #333333; border-collapse:collapse;">
12
+ <tbody id="transcript-tbody">
13
+ <tr>
14
+ <th colspan="4" id="transcript-table-header"
15
+ style="text-align: center; border: 1px solid black; background: #5c9ccc">Loading...
16
+ </th>
17
+ </tr>
18
+ <!-- PLACEHOLDER -->
19
+ </tbody>
20
+ </table>
21
+ <br/>
22
+ </body>
23
+ <script>
24
+ var questTranscriptsVersion = "1.0.9";
25
+
26
+ // Electron: file storage under userData rather than localStorage — see
27
+ // transcript-store.ts and player.js's WriteToTranscript for why (this
28
+ // window's origin isn't guaranteed to stay the same across restarts).
29
+ // window.electronTranscripts is bridged by transcript-viewer-preload.ts.
30
+ var isElectron = navigator.userAgent.includes('Electron/');
31
+
32
+ var wnd;
33
+
34
+ var tName = "";
35
+
36
+ var choices = {};
37
+
38
+ function getSafeHtmlId(fixme) {
39
+ return (fixme.replace(/ /g, "___SPACE___").replace(/'/g, "___SINGLE_QUOTE___").replace(/"/g, "___DOUBLE_QUOTE___").replace(/:/g, "___COLON___").replace(/\./g, "___DOT___").replace(/\#/g, "___HASH___"));
40
+ }
41
+
42
+ function reverseSafeHtmlId(unfixme) {
43
+ return (unfixme.replace(/___SPACE___/g, " ").replace(/___SINGLE_QUOTE___/g, "'").replace(/___DOUBLE_QUOTE___/g, "\"").replace(/___COLON___/g, ":").replace(/___DOT___/g, ".").replace(/___HASH___/g, "#"));
44
+ }
45
+
46
+ async function getTranscriptData(name) {
47
+ if (isElectron) return await window.electronTranscripts.read(name);
48
+ return localStorage.getItem("questtranscript-" + name);
49
+ }
50
+
51
+ async function downloadTranscript(tsn) {
52
+ event.stopPropagation();
53
+ var name = reverseSafeHtmlId(tsn);
54
+ var raw = await getTranscriptData(name);
55
+ var tscriptData = (raw || "No transcript data found.").replace(/@@@NEW_LINE@@@/g, "\r\n");
56
+ let link = document.createElement('a');
57
+ link.download = name + '.txt';
58
+ let blob = new Blob([tscriptData], {type: 'text/plain'});
59
+ link.href = URL.createObjectURL(blob);
60
+ link.click();
61
+ URL.revokeObjectURL(link.href);
62
+ }
63
+
64
+ async function openTranscript(tsn) {
65
+ event.stopPropagation();
66
+ var name = reverseSafeHtmlId(tsn);
67
+ var raw = await getTranscriptData(name);
68
+ var tscriptData = (raw || "No transcript data found.").replace(/@@@NEW_LINE@@@/g, "<br/>");
69
+ wnd = window.open("about:blank", "", "_blank");
70
+ wnd.document.write(tscriptData);
71
+ wnd.document.title = name + " - Transcript";
72
+ }
73
+
74
+ async function removeTscript(tscript) {
75
+ event.stopPropagation();
76
+ var result = window.confirm("Delete this transcript?");
77
+ if (result) {
78
+ var name = reverseSafeHtmlId(tscript);
79
+ if (isElectron) await window.electronTranscripts.delete(name);
80
+ else localStorage.removeItem("questtranscript-" + name);
81
+ document.getElementById(tscript).style.display = "none";
82
+ delete choices[tscript];
83
+ }
84
+ if (Object.keys(choices).length < 1) {
85
+ document.getElementById("transcript-table-header").innerHTML = "You have no transcripts.";
86
+ }
87
+ }
88
+
89
+ var tScriptTemplate = "<tr id=\"TRANSCRIPT_NAME\" class=\"transcript-entry-holder\" style=\"border:1px solid black; padding: 4px;\"><td class=\"transcript-name\" style=\"padding:4px\">TRANSCRIPT_DISPLAYED_NAME</td><td class=\"transcript-open-link-holder\"><button href=\"#\" name=\"TRANSCRIPT_NAME\" onclick=\"openTranscript(this.name);\" class=\"transcript-open-link\">OPEN</button></td><td class=\"transcript-download-link-holder\"><button href=\"#\" name=\"TRANSCRIPT_NAME\" onclick=\"downloadTranscript(this.name);\" class=\"transcript-download-link\">DOWNLOAD</button></td><td class=\"transcript-download-link-holder\"><button href=\"#\" name=\"TRANSCRIPT_NAME\" onclick=\"removeTscript(this.name);\" class=\"transcript-delete-link\">DELETE</button></td></tr>";
90
+
91
+ async function loadTable() {
92
+ if (Object.keys(choices).length > 0) {
93
+ console.log("Ignoring call to load table. `choices` already exists.");
94
+ return;
95
+ }
96
+ if (!isElectron && !isLocalStorageAvailable()) {
97
+ document.getElementById("transcript-table-header").innerHTML = "The transcript feature is not available in this browser.";
98
+ return;
99
+ }
100
+ document.getElementById("transcript-table-header").innerHTML = "Loading...";
101
+ var names = [];
102
+ if (isElectron) {
103
+ names = await window.electronTranscripts.list();
104
+ } else {
105
+ for (var e in localStorage) {
106
+ if (e.startsWith("questtranscript-")) names.push(e.replace(/questtranscript-/, ""));
107
+ }
108
+ }
109
+ for (var i = 0; i < names.length; i++) {
110
+ var eName = names[i];
111
+ var safeName = getSafeHtmlId(eName);
112
+ choices[safeName] = tScriptTemplate.replace(/TRANSCRIPT_NAME/g, safeName).replace(/TRANSCRIPT_DISPLAYED_NAME/g, eName);
113
+ }
114
+ if (Object.keys(choices).length > 0) {
115
+ document.getElementById("transcript-table-header").innerHTML = "Your Transcripts";
116
+ for (var tname in choices) {
117
+ document.getElementById("transcript-tbody").innerHTML += choices[tname];
118
+ }
119
+ } else {
120
+ document.getElementById("transcript-table-header").innerHTML = "<strong style=\"color:white;\">You have no transcripts.</strong>";
121
+ }
122
+ }
123
+
124
+ /* https://stackoverflow.com/a/16427747 */
125
+ function isLocalStorageAvailable() {
126
+ var test = 'test';
127
+ try {
128
+ localStorage.setItem(test, test);
129
+ localStorage.removeItem(test);
130
+ return true;
131
+ } catch (e) {
132
+ return false;
133
+ }
134
+ }
135
+ </script>
136
+ </html>
@@ -4,7 +4,7 @@
4
4
  "includedFrameworks": [
5
5
  {
6
6
  "name": "Microsoft.NETCore.App",
7
- "version": "10.0.10"
7
+ "version": "10.0.11"
8
8
  }
9
9
  ],
10
10
  "configProperties": {
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file