@drawmotive/textgraph 0.1.0-alpha.1 → 0.2.0
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/README.md +47 -6
- package/docs/api-v1.md +2 -1
- package/docs/react.md +52 -0
- package/docs/releases.md +22 -15
- package/generated/wasm/DrawMotive.TextGraph.Bridge.runtimeconfig.json +1 -1
- package/generated/wasm/DrawMotive.TextGraph.Bridge.wasm +0 -0
- package/generated/wasm/Graphics.Core.wasm +0 -0
- package/generated/wasm/Grpc.Core.Api.wasm +0 -0
- package/generated/wasm/HarfBuzzSharp.wasm +0 -0
- package/generated/wasm/Math.Core.wasm +0 -0
- package/generated/wasm/Microsoft.AspNetCore.Components.Web.wasm +0 -0
- package/generated/wasm/Microsoft.Extensions.DependencyInjection.Abstractions.wasm +0 -0
- package/generated/wasm/Microsoft.Extensions.DependencyInjection.wasm +0 -0
- package/generated/wasm/Microsoft.Extensions.Logging.Abstractions.wasm +0 -0
- package/generated/wasm/Microsoft.Extensions.Logging.wasm +0 -0
- package/generated/wasm/Microsoft.Extensions.Options.wasm +0 -0
- package/generated/wasm/Microsoft.Extensions.Primitives.wasm +0 -0
- package/generated/wasm/Polly.Core.wasm +0 -0
- package/generated/wasm/RBush.wasm +0 -0
- package/generated/wasm/SkiaSharp.HarfBuzz.wasm +0 -0
- package/generated/wasm/SkiaSharp.wasm +0 -0
- package/generated/wasm/System.Collections.Concurrent.wasm +0 -0
- package/generated/wasm/System.Collections.Immutable.wasm +0 -0
- package/generated/wasm/System.Collections.NonGeneric.wasm +0 -0
- package/generated/wasm/System.Collections.Specialized.wasm +0 -0
- package/generated/wasm/System.Collections.wasm +0 -0
- package/generated/wasm/System.ComponentModel.Annotations.wasm +0 -0
- package/generated/wasm/System.ComponentModel.Primitives.wasm +0 -0
- package/generated/wasm/System.ComponentModel.TypeConverter.wasm +0 -0
- package/generated/wasm/System.ComponentModel.wasm +0 -0
- package/generated/wasm/System.Console.wasm +0 -0
- package/generated/wasm/System.Diagnostics.StackTrace.wasm +0 -0
- package/generated/wasm/System.Diagnostics.Tracing.wasm +0 -0
- package/generated/wasm/System.IO.Compression.Brotli.wasm +0 -0
- package/generated/wasm/System.IO.Compression.wasm +0 -0
- package/generated/wasm/System.IO.Pipelines.wasm +0 -0
- package/generated/wasm/System.Linq.Expressions.wasm +0 -0
- package/generated/wasm/System.Linq.wasm +0 -0
- package/generated/wasm/System.Memory.wasm +0 -0
- package/generated/wasm/System.Net.Http.wasm +0 -0
- package/generated/wasm/System.Net.Primitives.wasm +0 -0
- package/generated/wasm/System.Numerics.Vectors.wasm +0 -0
- package/generated/wasm/System.ObjectModel.wasm +0 -0
- package/generated/wasm/System.Private.CoreLib.wasm +0 -0
- package/generated/wasm/System.Private.Uri.wasm +0 -0
- package/generated/wasm/System.Reflection.Emit.ILGeneration.wasm +0 -0
- package/generated/wasm/System.Reflection.Emit.wasm +0 -0
- package/generated/wasm/System.Reflection.Primitives.wasm +0 -0
- package/generated/wasm/System.Runtime.InteropServices.JavaScript.wasm +0 -0
- package/generated/wasm/System.Runtime.InteropServices.wasm +0 -0
- package/generated/wasm/System.Runtime.Intrinsics.wasm +0 -0
- package/generated/wasm/System.Runtime.Loader.wasm +0 -0
- package/generated/wasm/System.Runtime.Numerics.wasm +0 -0
- package/generated/wasm/System.Runtime.Serialization.Primitives.wasm +0 -0
- package/generated/wasm/System.Runtime.wasm +0 -0
- package/generated/wasm/System.Security.Cryptography.wasm +0 -0
- package/generated/wasm/System.Text.Encoding.Extensions.wasm +0 -0
- package/generated/wasm/System.Text.Encodings.Web.wasm +0 -0
- package/generated/wasm/System.Text.Json.wasm +0 -0
- package/generated/wasm/System.Text.RegularExpressions.wasm +0 -0
- package/generated/wasm/System.Threading.Channels.wasm +0 -0
- package/generated/wasm/System.Threading.Thread.wasm +0 -0
- package/generated/wasm/System.Threading.ThreadPool.wasm +0 -0
- package/generated/wasm/System.Threading.wasm +0 -0
- package/generated/wasm/System.wasm +0 -0
- package/generated/wasm/dotnet.boot.js +63 -63
- package/generated/wasm/dotnet.js +1 -1
- package/generated/wasm/dotnet.native.js +745 -22
- package/generated/wasm/dotnet.native.wasm +0 -0
- package/generated/wasm/dotnet.runtime.js +1 -1
- package/generated/wasm/netstandard.wasm +0 -0
- package/generated/wasm-manifest.js +77 -77
- package/generated/wasm-manifest.json +77 -77
- package/package.json +39 -7
- package/scripts/copy-assets.mjs +49 -0
- package/src/react/index.d.ts +19 -0
- package/src/react/index.js +56 -0
- package/src/react/runtime.js +37 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"packageName": "@drawmotive/textgraph",
|
|
4
|
-
"packageVersion": "0.
|
|
4
|
+
"packageVersion": "0.2.0",
|
|
5
5
|
"abiVersion": "1.0.0",
|
|
6
6
|
"protocolVersion": 1,
|
|
7
7
|
"runtimeModule": "wasm/dotnet.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"targetFramework": "net10.0",
|
|
29
29
|
"privateSource": {
|
|
30
|
-
"commit": "
|
|
30
|
+
"commit": "b6fbbac04592b53d125930103681a953aa4f0110",
|
|
31
31
|
"project": "DrawMotive.TextGraph.Bridge"
|
|
32
32
|
},
|
|
33
33
|
"entryAssembly": "wasm/DrawMotive.TextGraph.Bridge.wasm",
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
{
|
|
44
44
|
"path": "wasm/DrawMotive.TextGraph.Bridge.runtimeconfig.json",
|
|
45
45
|
"mediaType": "application/json",
|
|
46
|
-
"bytes":
|
|
47
|
-
"sha256": "
|
|
46
|
+
"bytes": 2469,
|
|
47
|
+
"sha256": "72548b26dbef56140f55814296d36e4f9f7bc718a1d3f4f96b02c0562127184c"
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
"path": "wasm/DrawMotive.TextGraph.Bridge.wasm",
|
|
51
51
|
"mediaType": "application/wasm",
|
|
52
52
|
"bytes": 73493,
|
|
53
|
-
"sha256": "
|
|
53
|
+
"sha256": "6eef2c788d2d3c2cd5c1a71c8b761c22bf9ade0f83657f92313ae7ac7eede984"
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
"path": "wasm/FuzzyBubbles-LICENSE.txt",
|
|
@@ -67,20 +67,20 @@
|
|
|
67
67
|
{
|
|
68
68
|
"path": "wasm/Graphics.Core.wasm",
|
|
69
69
|
"mediaType": "application/wasm",
|
|
70
|
-
"bytes":
|
|
71
|
-
"sha256": "
|
|
70
|
+
"bytes": 3118361,
|
|
71
|
+
"sha256": "0b70a50ff8b4e3e6d0a3ce8491e4b7b3b3db21350955d81959722e4023570539"
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
"path": "wasm/Grpc.Core.Api.wasm",
|
|
75
75
|
"mediaType": "application/wasm",
|
|
76
76
|
"bytes": 7957,
|
|
77
|
-
"sha256": "
|
|
77
|
+
"sha256": "a0ba5c56184dbaa6deb85021d9a86a074497e13e1e60434c9cc420595e0fe3d5"
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
80
|
"path": "wasm/HarfBuzzSharp.wasm",
|
|
81
81
|
"mediaType": "application/wasm",
|
|
82
|
-
"bytes":
|
|
83
|
-
"sha256": "
|
|
82
|
+
"bytes": 29461,
|
|
83
|
+
"sha256": "6e006c4614565feed858eba11a2ed7f367385c701d509b52315897dc9dd30a56"
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
"path": "wasm/MagicOnion.Abstractions.wasm",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"path": "wasm/Math.Core.wasm",
|
|
111
111
|
"mediaType": "application/wasm",
|
|
112
112
|
"bytes": 3241241,
|
|
113
|
-
"sha256": "
|
|
113
|
+
"sha256": "28b00ceb0595e870efb67a513840ffca01c66effd74dec091dc71102da5b6139"
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
"path": "wasm/MemoryPack.Core.wasm",
|
|
@@ -134,19 +134,19 @@
|
|
|
134
134
|
"path": "wasm/Microsoft.AspNetCore.Components.Web.wasm",
|
|
135
135
|
"mediaType": "application/wasm",
|
|
136
136
|
"bytes": 6933,
|
|
137
|
-
"sha256": "
|
|
137
|
+
"sha256": "5e6d9fd642036dc4b2bac158ccaf5b43812a247859fa5382aa393bbbfbc03321"
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
"path": "wasm/Microsoft.Extensions.DependencyInjection.Abstractions.wasm",
|
|
141
141
|
"mediaType": "application/wasm",
|
|
142
142
|
"bytes": 17685,
|
|
143
|
-
"sha256": "
|
|
143
|
+
"sha256": "89858c376eddf43ed484cb3e4495a85a1999946f5cfdce02304cb33d4fdef45b"
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
146
|
"path": "wasm/Microsoft.Extensions.DependencyInjection.wasm",
|
|
147
147
|
"mediaType": "application/wasm",
|
|
148
148
|
"bytes": 46357,
|
|
149
|
-
"sha256": "
|
|
149
|
+
"sha256": "0c40b58482dc86c474f1f2852f0947fd77e81b01e5443d2c8eba434b665b4ff5"
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
152
|
"path": "wasm/Microsoft.Extensions.Hosting.Abstractions.wasm",
|
|
@@ -158,25 +158,25 @@
|
|
|
158
158
|
"path": "wasm/Microsoft.Extensions.Logging.Abstractions.wasm",
|
|
159
159
|
"mediaType": "application/wasm",
|
|
160
160
|
"bytes": 19221,
|
|
161
|
-
"sha256": "
|
|
161
|
+
"sha256": "db4d78d4fa5428496d5fc50050bef9bea40a4f3ecee2deb96d51693719d5b6ad"
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
164
|
"path": "wasm/Microsoft.Extensions.Logging.wasm",
|
|
165
165
|
"mediaType": "application/wasm",
|
|
166
166
|
"bytes": 18709,
|
|
167
|
-
"sha256": "
|
|
167
|
+
"sha256": "b0352b3c8a62a746c2197ca5083ee3d5ba79ae20058a0dbdd08a85e1f847e2ac"
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
170
|
"path": "wasm/Microsoft.Extensions.Options.wasm",
|
|
171
171
|
"mediaType": "application/wasm",
|
|
172
172
|
"bytes": 16661,
|
|
173
|
-
"sha256": "
|
|
173
|
+
"sha256": "a7931d1b2311518ce64e426f0aaac56f2f0e493b7050e5d05eccf3e2b39dde4b"
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
176
|
"path": "wasm/Microsoft.Extensions.Primitives.wasm",
|
|
177
177
|
"mediaType": "application/wasm",
|
|
178
178
|
"bytes": 8469,
|
|
179
|
-
"sha256": "
|
|
179
|
+
"sha256": "a83187ecfca3dd919a4167d5c3970d93d24e30ddd71cdf6c68e6bf8f1a9e9141"
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
182
|
"path": "wasm/Microsoft.NET.StringTools.wasm",
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
"path": "wasm/Polly.Core.wasm",
|
|
207
207
|
"mediaType": "application/wasm",
|
|
208
208
|
"bytes": 62741,
|
|
209
|
-
"sha256": "
|
|
209
|
+
"sha256": "a17409d32bfd158ea96780c59ef9baf68e0e4bc0b419283ecaa0d0ad3ae46a93"
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
212
|
"path": "wasm/Polly.wasm",
|
|
@@ -230,19 +230,19 @@
|
|
|
230
230
|
"path": "wasm/RBush.wasm",
|
|
231
231
|
"mediaType": "application/wasm",
|
|
232
232
|
"bytes": 24341,
|
|
233
|
-
"sha256": "
|
|
233
|
+
"sha256": "2288fce20bb0b1dff8c1b75c9d5e45daf7c60508510943581e5e6d4628562b88"
|
|
234
234
|
},
|
|
235
235
|
{
|
|
236
236
|
"path": "wasm/SkiaSharp.HarfBuzz.wasm",
|
|
237
237
|
"mediaType": "application/wasm",
|
|
238
238
|
"bytes": 14613,
|
|
239
|
-
"sha256": "
|
|
239
|
+
"sha256": "73bda1dcc2f9304d3976a13883aca9613f26c81ccd6fb02204947c108c7613b2"
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
242
|
"path": "wasm/SkiaSharp.wasm",
|
|
243
243
|
"mediaType": "application/wasm",
|
|
244
|
-
"bytes":
|
|
245
|
-
"sha256": "
|
|
244
|
+
"bytes": 90389,
|
|
245
|
+
"sha256": "c3de8764bcc9c49fce53e8623b61ecdaa41ad3c73980f481e4059cf2010674a1"
|
|
246
246
|
},
|
|
247
247
|
{
|
|
248
248
|
"path": "wasm/Stateless.wasm",
|
|
@@ -254,265 +254,265 @@
|
|
|
254
254
|
"path": "wasm/System.Collections.Concurrent.wasm",
|
|
255
255
|
"mediaType": "application/wasm",
|
|
256
256
|
"bytes": 39189,
|
|
257
|
-
"sha256": "
|
|
257
|
+
"sha256": "05752be3ea6b72ec64966fabeeccec0e4b4521f3df71bf3fd3648f691cb3f7ad"
|
|
258
258
|
},
|
|
259
259
|
{
|
|
260
260
|
"path": "wasm/System.Collections.Immutable.wasm",
|
|
261
261
|
"mediaType": "application/wasm",
|
|
262
262
|
"bytes": 137493,
|
|
263
|
-
"sha256": "
|
|
263
|
+
"sha256": "f8ca16c9d47f09d7a2fa1d11dc9c9d9c2634f6630d0e1ba25b0e958367a456bd"
|
|
264
264
|
},
|
|
265
265
|
{
|
|
266
266
|
"path": "wasm/System.Collections.NonGeneric.wasm",
|
|
267
267
|
"mediaType": "application/wasm",
|
|
268
268
|
"bytes": 5397,
|
|
269
|
-
"sha256": "
|
|
269
|
+
"sha256": "ae2b971f88a17e86cb3886ae82f01a28fe93e3f47a7f26362aa9234c884472b9"
|
|
270
270
|
},
|
|
271
271
|
{
|
|
272
272
|
"path": "wasm/System.Collections.Specialized.wasm",
|
|
273
273
|
"mediaType": "application/wasm",
|
|
274
274
|
"bytes": 10517,
|
|
275
|
-
"sha256": "
|
|
275
|
+
"sha256": "e3191a7fc9d96b723f0b5ac292a304c7280f00e6fe8436ac63fbe227408fe91b"
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
278
|
"path": "wasm/System.Collections.wasm",
|
|
279
279
|
"mediaType": "application/wasm",
|
|
280
280
|
"bytes": 67861,
|
|
281
|
-
"sha256": "
|
|
281
|
+
"sha256": "114a690845d9e4970c2c149508c118c69ab073bc1e157c474e14473a56908159"
|
|
282
282
|
},
|
|
283
283
|
{
|
|
284
284
|
"path": "wasm/System.ComponentModel.Annotations.wasm",
|
|
285
285
|
"mediaType": "application/wasm",
|
|
286
286
|
"bytes": 24853,
|
|
287
|
-
"sha256": "
|
|
287
|
+
"sha256": "fceca73a0da71359a08d94047e75dd2e4001e6407c5a43ab7ae8ef8040490c2b"
|
|
288
288
|
},
|
|
289
289
|
{
|
|
290
290
|
"path": "wasm/System.ComponentModel.Primitives.wasm",
|
|
291
291
|
"mediaType": "application/wasm",
|
|
292
292
|
"bytes": 12053,
|
|
293
|
-
"sha256": "
|
|
293
|
+
"sha256": "1a14077cf79132fbc707418925cfe0e791cb98708f36bd012e442d9502b95f13"
|
|
294
294
|
},
|
|
295
295
|
{
|
|
296
296
|
"path": "wasm/System.ComponentModel.TypeConverter.wasm",
|
|
297
297
|
"mediaType": "application/wasm",
|
|
298
298
|
"bytes": 103701,
|
|
299
|
-
"sha256": "
|
|
299
|
+
"sha256": "5fb96180203eb86865e869d5b919ecc437a01ccc1fa1343d12e82bfdae49ac59"
|
|
300
300
|
},
|
|
301
301
|
{
|
|
302
302
|
"path": "wasm/System.ComponentModel.wasm",
|
|
303
303
|
"mediaType": "application/wasm",
|
|
304
304
|
"bytes": 4885,
|
|
305
|
-
"sha256": "
|
|
305
|
+
"sha256": "b55430bc5bab02b24b900e875a359bf0bb9fc9d0004ea55df1a2e28c76c5cc26"
|
|
306
306
|
},
|
|
307
307
|
{
|
|
308
308
|
"path": "wasm/System.Console.wasm",
|
|
309
309
|
"mediaType": "application/wasm",
|
|
310
310
|
"bytes": 15125,
|
|
311
|
-
"sha256": "
|
|
311
|
+
"sha256": "9c7363041f54c658ce25bbd72d063925a1f286401a65c3f08261076a99a88fa9"
|
|
312
312
|
},
|
|
313
313
|
{
|
|
314
314
|
"path": "wasm/System.Diagnostics.StackTrace.wasm",
|
|
315
315
|
"mediaType": "application/wasm",
|
|
316
316
|
"bytes": 4885,
|
|
317
|
-
"sha256": "
|
|
317
|
+
"sha256": "785d143cd1279d3bc86420cdb83413c13e11dfa24e5db682c6eccbca6800c69b"
|
|
318
318
|
},
|
|
319
319
|
{
|
|
320
320
|
"path": "wasm/System.Diagnostics.Tracing.wasm",
|
|
321
321
|
"mediaType": "application/wasm",
|
|
322
322
|
"bytes": 4885,
|
|
323
|
-
"sha256": "
|
|
323
|
+
"sha256": "306582b37bccacf032e149982b846c9867dc723361c5330bf549048456caae76"
|
|
324
324
|
},
|
|
325
325
|
{
|
|
326
326
|
"path": "wasm/System.IO.Compression.Brotli.wasm",
|
|
327
327
|
"mediaType": "application/wasm",
|
|
328
328
|
"bytes": 5397,
|
|
329
|
-
"sha256": "
|
|
329
|
+
"sha256": "178c6225cedf7c0bdc4e6ebb9353688c013cd933aa26eb4dd862e9f2782ec8b6"
|
|
330
330
|
},
|
|
331
331
|
{
|
|
332
332
|
"path": "wasm/System.IO.Compression.wasm",
|
|
333
333
|
"mediaType": "application/wasm",
|
|
334
334
|
"bytes": 13077,
|
|
335
|
-
"sha256": "
|
|
335
|
+
"sha256": "2c4a4ceef580ee5d6901cf6aaabb9b6d775ba04c28a4e2c52b76bb54c74624b8"
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
338
|
"path": "wasm/System.IO.Pipelines.wasm",
|
|
339
339
|
"mediaType": "application/wasm",
|
|
340
340
|
"bytes": 5909,
|
|
341
|
-
"sha256": "
|
|
341
|
+
"sha256": "29e11b130b9a2aafe7130b5d57e33fe82d768cce17b924724084dc182bc26721"
|
|
342
342
|
},
|
|
343
343
|
{
|
|
344
344
|
"path": "wasm/System.Linq.Expressions.wasm",
|
|
345
345
|
"mediaType": "application/wasm",
|
|
346
346
|
"bytes": 367381,
|
|
347
|
-
"sha256": "
|
|
347
|
+
"sha256": "e1e026068b13204b5a67af96a556e02c29ad83b2be0c28aebda77476bc323149"
|
|
348
348
|
},
|
|
349
349
|
{
|
|
350
350
|
"path": "wasm/System.Linq.wasm",
|
|
351
351
|
"mediaType": "application/wasm",
|
|
352
352
|
"bytes": 104213,
|
|
353
|
-
"sha256": "
|
|
353
|
+
"sha256": "a83503c71683f670c7e1c0d01038cb805181957f9057ee1362e50fdc1ffec29d"
|
|
354
354
|
},
|
|
355
355
|
{
|
|
356
356
|
"path": "wasm/System.Memory.wasm",
|
|
357
357
|
"mediaType": "application/wasm",
|
|
358
358
|
"bytes": 18709,
|
|
359
|
-
"sha256": "
|
|
359
|
+
"sha256": "d1dfa622eb633bd607309582f6b970559ee2d6988dcc662692cf54817169a087"
|
|
360
360
|
},
|
|
361
361
|
{
|
|
362
362
|
"path": "wasm/System.Net.Http.wasm",
|
|
363
363
|
"mediaType": "application/wasm",
|
|
364
364
|
"bytes": 135957,
|
|
365
|
-
"sha256": "
|
|
365
|
+
"sha256": "35ba6c164d8f5f825ec49cdfc9725e73021f005e6587424ee0cef8bed0ba3991"
|
|
366
366
|
},
|
|
367
367
|
{
|
|
368
368
|
"path": "wasm/System.Net.Primitives.wasm",
|
|
369
369
|
"mediaType": "application/wasm",
|
|
370
370
|
"bytes": 7445,
|
|
371
|
-
"sha256": "
|
|
371
|
+
"sha256": "3ed89e38037dfea73f9fd5cf8f11242c64f200deca08dfbb7a30dfcc6bfd2bb0"
|
|
372
372
|
},
|
|
373
373
|
{
|
|
374
374
|
"path": "wasm/System.Numerics.Vectors.wasm",
|
|
375
375
|
"mediaType": "application/wasm",
|
|
376
376
|
"bytes": 4885,
|
|
377
|
-
"sha256": "
|
|
377
|
+
"sha256": "a5f308b1c02e26e55461ffb7bd75b53106712b3b803ed1fb5be5a3ff6c93489b"
|
|
378
378
|
},
|
|
379
379
|
{
|
|
380
380
|
"path": "wasm/System.ObjectModel.wasm",
|
|
381
381
|
"mediaType": "application/wasm",
|
|
382
382
|
"bytes": 16661,
|
|
383
|
-
"sha256": "
|
|
383
|
+
"sha256": "914d9dd053c0602076336b88a809de24fb23c9486103423e2fa0e99ef6eab973"
|
|
384
384
|
},
|
|
385
385
|
{
|
|
386
386
|
"path": "wasm/System.Private.CoreLib.wasm",
|
|
387
387
|
"mediaType": "application/wasm",
|
|
388
388
|
"bytes": 2137369,
|
|
389
|
-
"sha256": "
|
|
389
|
+
"sha256": "2939e2316d088eb75308f3d685fc19272b08590bd82e6664a25ae236bdb61cc8"
|
|
390
390
|
},
|
|
391
391
|
{
|
|
392
392
|
"path": "wasm/System.Private.Uri.wasm",
|
|
393
393
|
"mediaType": "application/wasm",
|
|
394
394
|
"bytes": 67349,
|
|
395
|
-
"sha256": "
|
|
395
|
+
"sha256": "bfa170614f25759ae28a52a1f865d834c4f8440a9e49d1745a709f0ac8a0547e"
|
|
396
396
|
},
|
|
397
397
|
{
|
|
398
398
|
"path": "wasm/System.Reflection.Emit.ILGeneration.wasm",
|
|
399
399
|
"mediaType": "application/wasm",
|
|
400
400
|
"bytes": 4885,
|
|
401
|
-
"sha256": "
|
|
401
|
+
"sha256": "f73fb9d64dd8229a5e8a0bcc78fe8bef26ea6fb09a391326902505818bd7a400"
|
|
402
402
|
},
|
|
403
403
|
{
|
|
404
404
|
"path": "wasm/System.Reflection.Emit.wasm",
|
|
405
405
|
"mediaType": "application/wasm",
|
|
406
406
|
"bytes": 14101,
|
|
407
|
-
"sha256": "
|
|
407
|
+
"sha256": "6ed3375c73f5dc035bdbae33ccf6513b629668104c6056c725ef8ada0a69aadc"
|
|
408
408
|
},
|
|
409
409
|
{
|
|
410
410
|
"path": "wasm/System.Reflection.Primitives.wasm",
|
|
411
411
|
"mediaType": "application/wasm",
|
|
412
412
|
"bytes": 4885,
|
|
413
|
-
"sha256": "
|
|
413
|
+
"sha256": "0edbd407250cee2ba08be8996ce52a4530056bdff9ede33ab0400d232858788e"
|
|
414
414
|
},
|
|
415
415
|
{
|
|
416
416
|
"path": "wasm/System.Runtime.InteropServices.JavaScript.wasm",
|
|
417
417
|
"mediaType": "application/wasm",
|
|
418
418
|
"bytes": 43285,
|
|
419
|
-
"sha256": "
|
|
419
|
+
"sha256": "be1c7f610e3413926d0869a6eaf7a61e9c5e0e0cd4e6f01752c2f67f1f8c1e2b"
|
|
420
420
|
},
|
|
421
421
|
{
|
|
422
422
|
"path": "wasm/System.Runtime.InteropServices.wasm",
|
|
423
423
|
"mediaType": "application/wasm",
|
|
424
424
|
"bytes": 8981,
|
|
425
|
-
"sha256": "
|
|
425
|
+
"sha256": "24ea6123c5010df4583cca0f5565fabed6c8bc89765f926b7c2fe61edbe1ee4b"
|
|
426
426
|
},
|
|
427
427
|
{
|
|
428
428
|
"path": "wasm/System.Runtime.Intrinsics.wasm",
|
|
429
429
|
"mediaType": "application/wasm",
|
|
430
430
|
"bytes": 5397,
|
|
431
|
-
"sha256": "
|
|
431
|
+
"sha256": "79a92a3b33a4a74323fd61b48b47ee2b47b817f744373c02f8017949799ab6dd"
|
|
432
432
|
},
|
|
433
433
|
{
|
|
434
434
|
"path": "wasm/System.Runtime.Loader.wasm",
|
|
435
435
|
"mediaType": "application/wasm",
|
|
436
436
|
"bytes": 4885,
|
|
437
|
-
"sha256": "
|
|
437
|
+
"sha256": "51a4c5fec047c77890a50f683ce45ddb32c8ff4b2a5963072eb795ecd279a117"
|
|
438
438
|
},
|
|
439
439
|
{
|
|
440
440
|
"path": "wasm/System.Runtime.Numerics.wasm",
|
|
441
441
|
"mediaType": "application/wasm",
|
|
442
442
|
"bytes": 103701,
|
|
443
|
-
"sha256": "
|
|
443
|
+
"sha256": "c46149f9bac1516a09a83a7228241e3c1c7e3a441dd9318ee896b38d426c1637"
|
|
444
444
|
},
|
|
445
445
|
{
|
|
446
446
|
"path": "wasm/System.Runtime.Serialization.Primitives.wasm",
|
|
447
447
|
"mediaType": "application/wasm",
|
|
448
|
-
"bytes":
|
|
449
|
-
"sha256": "
|
|
448
|
+
"bytes": 5909,
|
|
449
|
+
"sha256": "580c09b8a853434c0bad966e09d8e6818ae2352f12af4171ac3fe320a48ffbd5"
|
|
450
450
|
},
|
|
451
451
|
{
|
|
452
452
|
"path": "wasm/System.Runtime.wasm",
|
|
453
453
|
"mediaType": "application/wasm",
|
|
454
454
|
"bytes": 16661,
|
|
455
|
-
"sha256": "
|
|
455
|
+
"sha256": "34e0ec9e4c89611222118f1c8aba302f1faa0f9bb99aaa109223335fc7965436"
|
|
456
456
|
},
|
|
457
457
|
{
|
|
458
458
|
"path": "wasm/System.Security.Cryptography.wasm",
|
|
459
459
|
"mediaType": "application/wasm",
|
|
460
460
|
"bytes": 22805,
|
|
461
|
-
"sha256": "
|
|
461
|
+
"sha256": "a59182f319a7fa8392e67746f5e4145e34315cb80a3433970a67709e4e17f403"
|
|
462
462
|
},
|
|
463
463
|
{
|
|
464
464
|
"path": "wasm/System.Text.Encoding.Extensions.wasm",
|
|
465
465
|
"mediaType": "application/wasm",
|
|
466
466
|
"bytes": 4885,
|
|
467
|
-
"sha256": "
|
|
467
|
+
"sha256": "c65cc35da10df0194967f726c69be30dba58aa65c09d4f52ee9361135d302fbe"
|
|
468
468
|
},
|
|
469
469
|
{
|
|
470
470
|
"path": "wasm/System.Text.Encodings.Web.wasm",
|
|
471
471
|
"mediaType": "application/wasm",
|
|
472
472
|
"bytes": 29461,
|
|
473
|
-
"sha256": "
|
|
473
|
+
"sha256": "c985076071a1725ab5eadcd76fa7e26108992d280329db82c28201fa52e92af2"
|
|
474
474
|
},
|
|
475
475
|
{
|
|
476
476
|
"path": "wasm/System.Text.Json.wasm",
|
|
477
477
|
"mediaType": "application/wasm",
|
|
478
478
|
"bytes": 242965,
|
|
479
|
-
"sha256": "
|
|
479
|
+
"sha256": "4546fc910d6dddc2c2647925c8153a15a32635ae1b63c425e3c037a69796434d"
|
|
480
480
|
},
|
|
481
481
|
{
|
|
482
482
|
"path": "wasm/System.Text.RegularExpressions.wasm",
|
|
483
483
|
"mediaType": "application/wasm",
|
|
484
484
|
"bytes": 257813,
|
|
485
|
-
"sha256": "
|
|
485
|
+
"sha256": "1f05b9b96dd64dd8ef0b9244f44a0a8e8e09594fcd6697956c44c7e22667bf37"
|
|
486
486
|
},
|
|
487
487
|
{
|
|
488
488
|
"path": "wasm/System.Threading.Channels.wasm",
|
|
489
489
|
"mediaType": "application/wasm",
|
|
490
490
|
"bytes": 35093,
|
|
491
|
-
"sha256": "
|
|
491
|
+
"sha256": "e09cc8a78afb88cc2180e43b3efbdf653104041c7daf55c507b95c6402ad62be"
|
|
492
492
|
},
|
|
493
493
|
{
|
|
494
494
|
"path": "wasm/System.Threading.Thread.wasm",
|
|
495
495
|
"mediaType": "application/wasm",
|
|
496
496
|
"bytes": 4885,
|
|
497
|
-
"sha256": "
|
|
497
|
+
"sha256": "cfff6ca7df35dc84d7949522d1098e50f311357efb055cceeb25346c82acb3fc"
|
|
498
498
|
},
|
|
499
499
|
{
|
|
500
500
|
"path": "wasm/System.Threading.ThreadPool.wasm",
|
|
501
501
|
"mediaType": "application/wasm",
|
|
502
502
|
"bytes": 4885,
|
|
503
|
-
"sha256": "
|
|
503
|
+
"sha256": "2e8ff0649da5f791c42e05f3e20e6b7e8368bc3c5693d89e8c3d6f66747de2fe"
|
|
504
504
|
},
|
|
505
505
|
{
|
|
506
506
|
"path": "wasm/System.Threading.wasm",
|
|
507
507
|
"mediaType": "application/wasm",
|
|
508
508
|
"bytes": 12053,
|
|
509
|
-
"sha256": "
|
|
509
|
+
"sha256": "df703fe777721d1805cb50d032a67264a73a267ef01a2543e9eeb29b175cbb44"
|
|
510
510
|
},
|
|
511
511
|
{
|
|
512
512
|
"path": "wasm/System.wasm",
|
|
513
513
|
"mediaType": "application/wasm",
|
|
514
514
|
"bytes": 4885,
|
|
515
|
-
"sha256": "
|
|
515
|
+
"sha256": "bcf126d8aaa05eaaee1b09f3ef5f224a0983a01f089a0ee21f71733b9edbd118"
|
|
516
516
|
},
|
|
517
517
|
{
|
|
518
518
|
"path": "wasm/ZstdSharp.wasm",
|
|
@@ -524,31 +524,31 @@
|
|
|
524
524
|
"path": "wasm/dotnet.boot.js",
|
|
525
525
|
"mediaType": "text/javascript",
|
|
526
526
|
"bytes": 17141,
|
|
527
|
-
"sha256": "
|
|
527
|
+
"sha256": "2d481a77cf01dca539bb82866395c027f4b91b3e397b01f06c9ef38aa10e7f47"
|
|
528
528
|
},
|
|
529
529
|
{
|
|
530
530
|
"path": "wasm/dotnet.js",
|
|
531
531
|
"mediaType": "text/javascript",
|
|
532
532
|
"bytes": 37898,
|
|
533
|
-
"sha256": "
|
|
533
|
+
"sha256": "ba72088a45591210f9a08fec223b0f848a0a4d3245026ae9479353596c7fa89d"
|
|
534
534
|
},
|
|
535
535
|
{
|
|
536
536
|
"path": "wasm/dotnet.native.js",
|
|
537
537
|
"mediaType": "text/javascript",
|
|
538
|
-
"bytes":
|
|
539
|
-
"sha256": "
|
|
538
|
+
"bytes": 248268,
|
|
539
|
+
"sha256": "bca7e71c9e0c78fc4e7ebeca840786f7386c6feade4ce8b7b5771d718a2edaeb"
|
|
540
540
|
},
|
|
541
541
|
{
|
|
542
542
|
"path": "wasm/dotnet.native.wasm",
|
|
543
543
|
"mediaType": "application/wasm",
|
|
544
|
-
"bytes":
|
|
545
|
-
"sha256": "
|
|
544
|
+
"bytes": 6020214,
|
|
545
|
+
"sha256": "7af08c02b70e7075281d1eecefe8a1733fdfcacd402b36bab93908761edbf00f"
|
|
546
546
|
},
|
|
547
547
|
{
|
|
548
548
|
"path": "wasm/dotnet.runtime.js",
|
|
549
549
|
"mediaType": "text/javascript",
|
|
550
|
-
"bytes":
|
|
551
|
-
"sha256": "
|
|
550
|
+
"bytes": 198480,
|
|
551
|
+
"sha256": "41b9eaad9187b46abbc2e752d7bfc06043e91fd264a61aecc959650fa24799db"
|
|
552
552
|
},
|
|
553
553
|
{
|
|
554
554
|
"path": "wasm/main.mjs",
|
|
@@ -560,7 +560,7 @@
|
|
|
560
560
|
"path": "wasm/netstandard.wasm",
|
|
561
561
|
"mediaType": "application/wasm",
|
|
562
562
|
"bytes": 5909,
|
|
563
|
-
"sha256": "
|
|
563
|
+
"sha256": "1632bdba86f760692ce5ae566e0f3a184e8c67ad5de9307ff272cb3cb5377ca8"
|
|
564
564
|
},
|
|
565
565
|
{
|
|
566
566
|
"path": "wasm/themes.css",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drawmotive/textgraph",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "TextGraph DSL and headless DrawMotive file toolkit",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
@@ -23,6 +23,10 @@
|
|
|
23
23
|
"./worker": {
|
|
24
24
|
"types": "./src/platform/worker.d.ts",
|
|
25
25
|
"default": "./src/platform/worker.js"
|
|
26
|
+
},
|
|
27
|
+
"./react": {
|
|
28
|
+
"types": "./src/react/index.d.ts",
|
|
29
|
+
"default": "./src/react/index.js"
|
|
26
30
|
}
|
|
27
31
|
},
|
|
28
32
|
"files": [
|
|
@@ -32,22 +36,34 @@
|
|
|
32
36
|
"generated/wasm-manifest.js",
|
|
33
37
|
"schemas",
|
|
34
38
|
"docs",
|
|
35
|
-
"examples"
|
|
39
|
+
"examples",
|
|
40
|
+
"scripts/copy-assets.mjs"
|
|
36
41
|
],
|
|
37
42
|
"scripts": {
|
|
38
43
|
"build": "node --check src/index.js && tsc -p tsconfig.json",
|
|
39
|
-
"test": "node --test test/*.test.mjs",
|
|
40
|
-
"prepack": "npm test && npm run build",
|
|
44
|
+
"test": "node --test --test-concurrency=1 test/*.test.mjs",
|
|
45
|
+
"prepack": "node .release/check.cjs --ready && npm test && npm run build",
|
|
41
46
|
"test:browser": "playwright test",
|
|
42
47
|
"release:prepare": "node scripts/release.mjs prepare",
|
|
43
48
|
"release:verify": "node scripts/release.mjs verify",
|
|
44
49
|
"release:pack": "npm test && npm run build && node scripts/release.mjs pack",
|
|
45
|
-
"release:publish": "node scripts/publish-release.mjs"
|
|
50
|
+
"release:publish": "node scripts/publish-release.mjs",
|
|
51
|
+
"samples:prepare": "node samples/prepare.mjs",
|
|
52
|
+
"samples:build": "node samples/build.mjs",
|
|
53
|
+
"test:samples": "npm run test:samples:node && npm run test:samples:browser",
|
|
54
|
+
"pretest:samples": "npm run samples:prepare && npm run samples:build",
|
|
55
|
+
"test:samples:node": "node --test --test-concurrency=1 samples/test/node.test.mjs",
|
|
56
|
+
"test:samples:browser": "playwright test --config samples/playwright.config.js",
|
|
57
|
+
"release:check": "node .release/check.cjs --ready"
|
|
46
58
|
},
|
|
47
59
|
"repository": {
|
|
48
60
|
"type": "git",
|
|
49
61
|
"url": "https://github.com/drawmotive/textgraph.git"
|
|
50
62
|
},
|
|
63
|
+
"homepage": "https://textgraph.dev",
|
|
64
|
+
"bugs": {
|
|
65
|
+
"url": "https://github.com/drawmotive/textgraph/issues"
|
|
66
|
+
},
|
|
51
67
|
"license": "MIT",
|
|
52
68
|
"engines": {
|
|
53
69
|
"node": ">=22"
|
|
@@ -56,11 +72,27 @@
|
|
|
56
72
|
"@playwright/test": "1.61.0",
|
|
57
73
|
"ajv": "8.20.0",
|
|
58
74
|
"pngjs": "7.0.0",
|
|
59
|
-
"typescript": "^7.0.2"
|
|
75
|
+
"typescript": "^7.0.2",
|
|
76
|
+
"react": "^19.0.0",
|
|
77
|
+
"react-dom": "^19.0.0",
|
|
78
|
+
"@types/react": "^19.0.0",
|
|
79
|
+
"@types/react-dom": "^19.0.0",
|
|
80
|
+
"jsdom": "^26.1.0"
|
|
60
81
|
},
|
|
61
82
|
"publishConfig": {
|
|
62
83
|
"access": "public",
|
|
63
84
|
"registry": "https://registry.npmjs.org/",
|
|
64
|
-
"tag": "
|
|
85
|
+
"tag": "latest"
|
|
86
|
+
},
|
|
87
|
+
"peerDependencies": {
|
|
88
|
+
"react": "^18.2.0 || ^19.0.0"
|
|
89
|
+
},
|
|
90
|
+
"peerDependenciesMeta": {
|
|
91
|
+
"react": {
|
|
92
|
+
"optional": true
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"bin": {
|
|
96
|
+
"textgraph-copy-assets": "./scripts/copy-assets.mjs"
|
|
65
97
|
}
|
|
66
98
|
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { cp, mkdir, realpath } from 'node:fs/promises';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
5
|
+
|
|
6
|
+
const source = fileURLToPath(new URL('../generated/wasm/', import.meta.url));
|
|
7
|
+
|
|
8
|
+
/** Resolve existing ancestors too, so an output symlink cannot point into the installed runtime. */
|
|
9
|
+
async function canonicalPath(directory) {
|
|
10
|
+
try {
|
|
11
|
+
return await realpath(directory);
|
|
12
|
+
} catch (error) {
|
|
13
|
+
if (error.code !== 'ENOENT') throw error;
|
|
14
|
+
return path.join(await canonicalPath(path.dirname(directory)), path.basename(directory));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function contains(parent, child) {
|
|
19
|
+
const relative = path.relative(parent, child);
|
|
20
|
+
return relative === '' || (!relative.startsWith(`..${path.sep}`) && relative !== '..' && !path.isAbsolute(relative));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** Copy the complete installed runtime, including scripts, fonts and licenses, without deleting output. */
|
|
24
|
+
export async function copyRuntimeAssets(destination) {
|
|
25
|
+
if (typeof destination !== 'string' || destination.trim() === '') {
|
|
26
|
+
throw new Error('Usage: textgraph-copy-assets <destination>');
|
|
27
|
+
}
|
|
28
|
+
const runtime = await realpath(source);
|
|
29
|
+
const output = await canonicalPath(path.resolve(destination));
|
|
30
|
+
if (output === path.parse(output).root || contains(runtime, output) || contains(output, runtime)) {
|
|
31
|
+
throw new Error('Choose a destination outside the installed runtime and below a static asset directory.');
|
|
32
|
+
}
|
|
33
|
+
await mkdir(output, { recursive: true });
|
|
34
|
+
await cp(runtime, output, { recursive: true, force: true });
|
|
35
|
+
return output;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Canonicalize both paths: Windows short temp paths and directory aliases can
|
|
39
|
+
// give argv and the ESM loader different spellings for the same executable.
|
|
40
|
+
if (process.argv[1] && await realpath(process.argv[1]) === await realpath(fileURLToPath(import.meta.url))) {
|
|
41
|
+
try {
|
|
42
|
+
const [destination, ...extra] = process.argv.slice(2);
|
|
43
|
+
if (extra.length) throw new Error('Usage: textgraph-copy-assets <destination>');
|
|
44
|
+
console.log(`TextGraph runtime copied to ${await copyRuntimeAssets(destination)}`);
|
|
45
|
+
} catch (error) {
|
|
46
|
+
console.error(error.message);
|
|
47
|
+
process.exitCode = 1;
|
|
48
|
+
}
|
|
49
|
+
}
|