@kubohiroya/turbowarp-structured-data 0.4.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/LICENSE +373 -0
- package/README.ja.md +73 -0
- package/README.md +245 -0
- package/THIRD_PARTY_NOTICES.md +25 -0
- package/dist/extension-manifest.json +426 -0
- package/dist/structured-data.js +7071 -0
- package/docs/architecture.ja.md +32 -0
- package/docs/architecture.md +30 -0
- package/docs/index.html +26 -0
- package/docs/named-data-integration-plan.ja.md +375 -0
- package/package.json +77 -0
- package/schemas/extension-manifest.schema.json +103 -0
- package/src/block-definitions.json +98 -0
- package/src/codecs.ts +204 -0
- package/src/config.ts +31 -0
- package/src/core.ts +309 -0
- package/src/extension-manifest.ts +176 -0
- package/src/extension.ts +361 -0
- package/src/globals.d.ts +38 -0
- package/src/index.ts +8 -0
- package/src/structured-provider.ts +188 -0
- package/templates/README.ja.md +183 -0
- package/templates/README.md +198 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
The generated `dist/structured-data.js` bundle includes the following third-party software.
|
|
4
|
+
|
|
5
|
+
## @kubohiroya/turbowarp-named-data
|
|
6
|
+
|
|
7
|
+
Copyright Hiroya Kubo
|
|
8
|
+
|
|
9
|
+
Licensed under the Mozilla Public License 2.0. The canonical source and package are available at
|
|
10
|
+
<https://github.com/kubohiroya/turbowarp-named-data>.
|
|
11
|
+
|
|
12
|
+
## yaml
|
|
13
|
+
|
|
14
|
+
Copyright Eemeli Aro <eemeli@gmail.com>
|
|
15
|
+
|
|
16
|
+
Permission to use, copy, modify, and/or distribute this software for any purpose with or without
|
|
17
|
+
fee is hereby granted, provided that the above copyright notice and this permission notice appear
|
|
18
|
+
in all copies.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
|
|
21
|
+
SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
|
|
22
|
+
AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
23
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
|
24
|
+
NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
|
25
|
+
OF THIS SOFTWARE.
|
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
{
|
|
2
|
+
"formatVersion": 3,
|
|
3
|
+
"id": "kubohiroyastructureddata",
|
|
4
|
+
"pathSegmentType": {
|
|
5
|
+
"kind": "discriminatedUnion",
|
|
6
|
+
"variants": [
|
|
7
|
+
{
|
|
8
|
+
"kind": "key",
|
|
9
|
+
"valueType": "string"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"kind": "index",
|
|
13
|
+
"valueType": "nonNegativeInteger"
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"dataReferenceType": {
|
|
18
|
+
"kind": "named",
|
|
19
|
+
"scope": "target",
|
|
20
|
+
"lifetime": "untilProjectStop",
|
|
21
|
+
"valueType": "jsonValue"
|
|
22
|
+
},
|
|
23
|
+
"blocks": [
|
|
24
|
+
{
|
|
25
|
+
"opcode": "currentIndex",
|
|
26
|
+
"blockType": "REPORTER",
|
|
27
|
+
"arguments": [],
|
|
28
|
+
"resultType": "number",
|
|
29
|
+
"effect": "control",
|
|
30
|
+
"immutable": true,
|
|
31
|
+
"errors": [
|
|
32
|
+
"ITERATION_CONTEXT_REQUIRED"
|
|
33
|
+
],
|
|
34
|
+
"server": {
|
|
35
|
+
"supported": true,
|
|
36
|
+
"irOperation": "structuredData.currentIndex"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"opcode": "currentKey",
|
|
41
|
+
"blockType": "REPORTER",
|
|
42
|
+
"arguments": [],
|
|
43
|
+
"resultType": "string",
|
|
44
|
+
"effect": "control",
|
|
45
|
+
"immutable": true,
|
|
46
|
+
"errors": [
|
|
47
|
+
"ITERATION_CONTEXT_REQUIRED"
|
|
48
|
+
],
|
|
49
|
+
"server": {
|
|
50
|
+
"supported": true,
|
|
51
|
+
"irOperation": "structuredData.currentKey"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"opcode": "currentValueJson",
|
|
56
|
+
"blockType": "REPORTER",
|
|
57
|
+
"arguments": [],
|
|
58
|
+
"resultType": "jsonText",
|
|
59
|
+
"effect": "control",
|
|
60
|
+
"immutable": true,
|
|
61
|
+
"errors": [
|
|
62
|
+
"ITERATION_CONTEXT_REQUIRED"
|
|
63
|
+
],
|
|
64
|
+
"server": {
|
|
65
|
+
"supported": true,
|
|
66
|
+
"irOperation": "structuredData.currentValue"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"opcode": "deleteAtPath",
|
|
71
|
+
"blockType": "COMMAND",
|
|
72
|
+
"arguments": [
|
|
73
|
+
{
|
|
74
|
+
"id": "NAME",
|
|
75
|
+
"type": "STRING"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"id": "PATH",
|
|
79
|
+
"type": "STRING",
|
|
80
|
+
"normalizesTo": "pathSegments"
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"resultType": "void",
|
|
84
|
+
"effect": "state",
|
|
85
|
+
"immutable": true,
|
|
86
|
+
"errors": [
|
|
87
|
+
"INVALID_NAME",
|
|
88
|
+
"DATA_NOT_FOUND",
|
|
89
|
+
"INVALID_PATH",
|
|
90
|
+
"PATH_NOT_FOUND",
|
|
91
|
+
"TYPE_MISMATCH",
|
|
92
|
+
"INDEX_OUT_OF_RANGE"
|
|
93
|
+
],
|
|
94
|
+
"server": {
|
|
95
|
+
"supported": true,
|
|
96
|
+
"irOperation": "structuredData.delete"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"opcode": "deleteStructuredData",
|
|
101
|
+
"blockType": "COMMAND",
|
|
102
|
+
"arguments": [
|
|
103
|
+
{
|
|
104
|
+
"id": "NAME",
|
|
105
|
+
"type": "STRING"
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"resultType": "void",
|
|
109
|
+
"effect": "state",
|
|
110
|
+
"immutable": true,
|
|
111
|
+
"errors": [
|
|
112
|
+
"INVALID_NAME",
|
|
113
|
+
"DATA_NOT_FOUND"
|
|
114
|
+
],
|
|
115
|
+
"server": {
|
|
116
|
+
"supported": true,
|
|
117
|
+
"irOperation": "structuredData.deleteData"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"opcode": "forEachAtPath",
|
|
122
|
+
"blockType": "LOOP",
|
|
123
|
+
"arguments": [
|
|
124
|
+
{
|
|
125
|
+
"id": "MAX",
|
|
126
|
+
"type": "NUMBER",
|
|
127
|
+
"staticLiteral": true,
|
|
128
|
+
"minimum": 1,
|
|
129
|
+
"maximum": 1000
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"id": "NAME",
|
|
133
|
+
"type": "STRING"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"id": "PATH",
|
|
137
|
+
"type": "STRING",
|
|
138
|
+
"normalizesTo": "pathSegments"
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"resultType": "void",
|
|
142
|
+
"effect": "control",
|
|
143
|
+
"immutable": true,
|
|
144
|
+
"errors": [
|
|
145
|
+
"INVALID_NAME",
|
|
146
|
+
"DATA_NOT_FOUND",
|
|
147
|
+
"INVALID_PATH",
|
|
148
|
+
"PATH_NOT_FOUND",
|
|
149
|
+
"TYPE_MISMATCH",
|
|
150
|
+
"INDEX_OUT_OF_RANGE",
|
|
151
|
+
"ITERATION_LIMIT_EXCEEDED"
|
|
152
|
+
],
|
|
153
|
+
"server": {
|
|
154
|
+
"supported": true,
|
|
155
|
+
"irOperation": "structuredData.forEach"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"opcode": "getJsonAtPath",
|
|
160
|
+
"blockType": "REPORTER",
|
|
161
|
+
"arguments": [
|
|
162
|
+
{
|
|
163
|
+
"id": "NAME",
|
|
164
|
+
"type": "STRING"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"id": "PATH",
|
|
168
|
+
"type": "STRING",
|
|
169
|
+
"normalizesTo": "pathSegments"
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"resultType": "jsonText",
|
|
173
|
+
"effect": "pure",
|
|
174
|
+
"immutable": true,
|
|
175
|
+
"errors": [
|
|
176
|
+
"INVALID_NAME",
|
|
177
|
+
"DATA_NOT_FOUND",
|
|
178
|
+
"INVALID_PATH",
|
|
179
|
+
"PATH_NOT_FOUND",
|
|
180
|
+
"TYPE_MISMATCH",
|
|
181
|
+
"INDEX_OUT_OF_RANGE"
|
|
182
|
+
],
|
|
183
|
+
"server": {
|
|
184
|
+
"supported": true,
|
|
185
|
+
"irOperation": "structuredData.get"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"opcode": "hasPath",
|
|
190
|
+
"blockType": "BOOLEAN",
|
|
191
|
+
"arguments": [
|
|
192
|
+
{
|
|
193
|
+
"id": "NAME",
|
|
194
|
+
"type": "STRING"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"id": "PATH",
|
|
198
|
+
"type": "STRING",
|
|
199
|
+
"normalizesTo": "pathSegments"
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
"resultType": "boolean",
|
|
203
|
+
"effect": "pure",
|
|
204
|
+
"immutable": true,
|
|
205
|
+
"errors": [
|
|
206
|
+
"INVALID_NAME",
|
|
207
|
+
"DATA_NOT_FOUND",
|
|
208
|
+
"INVALID_PATH",
|
|
209
|
+
"TYPE_MISMATCH"
|
|
210
|
+
],
|
|
211
|
+
"server": {
|
|
212
|
+
"supported": true,
|
|
213
|
+
"irOperation": "structuredData.has"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"opcode": "hasStructuredData",
|
|
218
|
+
"blockType": "BOOLEAN",
|
|
219
|
+
"arguments": [
|
|
220
|
+
{
|
|
221
|
+
"id": "NAME",
|
|
222
|
+
"type": "STRING"
|
|
223
|
+
}
|
|
224
|
+
],
|
|
225
|
+
"resultType": "boolean",
|
|
226
|
+
"effect": "pure",
|
|
227
|
+
"immutable": true,
|
|
228
|
+
"errors": [
|
|
229
|
+
"INVALID_NAME"
|
|
230
|
+
],
|
|
231
|
+
"server": {
|
|
232
|
+
"supported": true,
|
|
233
|
+
"irOperation": "structuredData.hasData"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"opcode": "keysAtPath",
|
|
238
|
+
"blockType": "REPORTER",
|
|
239
|
+
"arguments": [
|
|
240
|
+
{
|
|
241
|
+
"id": "NAME",
|
|
242
|
+
"type": "STRING"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"id": "PATH",
|
|
246
|
+
"type": "STRING",
|
|
247
|
+
"normalizesTo": "pathSegments"
|
|
248
|
+
}
|
|
249
|
+
],
|
|
250
|
+
"resultType": "jsonText",
|
|
251
|
+
"effect": "pure",
|
|
252
|
+
"immutable": true,
|
|
253
|
+
"errors": [
|
|
254
|
+
"INVALID_NAME",
|
|
255
|
+
"DATA_NOT_FOUND",
|
|
256
|
+
"INVALID_PATH",
|
|
257
|
+
"PATH_NOT_FOUND",
|
|
258
|
+
"TYPE_MISMATCH",
|
|
259
|
+
"INDEX_OUT_OF_RANGE"
|
|
260
|
+
],
|
|
261
|
+
"server": {
|
|
262
|
+
"supported": true,
|
|
263
|
+
"irOperation": "structuredData.keys"
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"opcode": "lengthAtPath",
|
|
268
|
+
"blockType": "REPORTER",
|
|
269
|
+
"arguments": [
|
|
270
|
+
{
|
|
271
|
+
"id": "NAME",
|
|
272
|
+
"type": "STRING"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"id": "PATH",
|
|
276
|
+
"type": "STRING",
|
|
277
|
+
"normalizesTo": "pathSegments"
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
"resultType": "number",
|
|
281
|
+
"effect": "pure",
|
|
282
|
+
"immutable": true,
|
|
283
|
+
"errors": [
|
|
284
|
+
"INVALID_NAME",
|
|
285
|
+
"DATA_NOT_FOUND",
|
|
286
|
+
"INVALID_PATH",
|
|
287
|
+
"PATH_NOT_FOUND",
|
|
288
|
+
"TYPE_MISMATCH",
|
|
289
|
+
"INDEX_OUT_OF_RANGE"
|
|
290
|
+
],
|
|
291
|
+
"server": {
|
|
292
|
+
"supported": true,
|
|
293
|
+
"irOperation": "structuredData.length"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"opcode": "parseJson",
|
|
298
|
+
"blockType": "COMMAND",
|
|
299
|
+
"arguments": [
|
|
300
|
+
{
|
|
301
|
+
"id": "NAME",
|
|
302
|
+
"type": "STRING"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"id": "TEXT",
|
|
306
|
+
"type": "STRING"
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
"resultType": "void",
|
|
310
|
+
"effect": "state",
|
|
311
|
+
"immutable": true,
|
|
312
|
+
"errors": [
|
|
313
|
+
"INVALID_JSON",
|
|
314
|
+
"INVALID_NAME",
|
|
315
|
+
"PARSE_LIMIT_EXCEEDED"
|
|
316
|
+
],
|
|
317
|
+
"server": {
|
|
318
|
+
"supported": true,
|
|
319
|
+
"irOperation": "structuredData.parseJson"
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"opcode": "parseYaml",
|
|
324
|
+
"blockType": "COMMAND",
|
|
325
|
+
"arguments": [
|
|
326
|
+
{
|
|
327
|
+
"id": "NAME",
|
|
328
|
+
"type": "STRING"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"id": "TEXT",
|
|
332
|
+
"type": "STRING"
|
|
333
|
+
}
|
|
334
|
+
],
|
|
335
|
+
"resultType": "void",
|
|
336
|
+
"effect": "state",
|
|
337
|
+
"immutable": true,
|
|
338
|
+
"errors": [
|
|
339
|
+
"INVALID_YAML",
|
|
340
|
+
"INVALID_NAME",
|
|
341
|
+
"PARSE_LIMIT_EXCEEDED"
|
|
342
|
+
],
|
|
343
|
+
"server": {
|
|
344
|
+
"supported": true,
|
|
345
|
+
"irOperation": "structuredData.parseYaml"
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"opcode": "setJsonAtPath",
|
|
350
|
+
"blockType": "COMMAND",
|
|
351
|
+
"arguments": [
|
|
352
|
+
{
|
|
353
|
+
"id": "NAME",
|
|
354
|
+
"type": "STRING"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"id": "PATH",
|
|
358
|
+
"type": "STRING",
|
|
359
|
+
"normalizesTo": "pathSegments"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"id": "VALUE",
|
|
363
|
+
"type": "STRING"
|
|
364
|
+
}
|
|
365
|
+
],
|
|
366
|
+
"resultType": "void",
|
|
367
|
+
"effect": "state",
|
|
368
|
+
"immutable": true,
|
|
369
|
+
"errors": [
|
|
370
|
+
"INVALID_NAME",
|
|
371
|
+
"DATA_NOT_FOUND",
|
|
372
|
+
"INVALID_JSON",
|
|
373
|
+
"INVALID_PATH",
|
|
374
|
+
"PATH_NOT_FOUND",
|
|
375
|
+
"TYPE_MISMATCH",
|
|
376
|
+
"INDEX_OUT_OF_RANGE"
|
|
377
|
+
],
|
|
378
|
+
"server": {
|
|
379
|
+
"supported": true,
|
|
380
|
+
"irOperation": "structuredData.set"
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"opcode": "toJson",
|
|
385
|
+
"blockType": "REPORTER",
|
|
386
|
+
"arguments": [
|
|
387
|
+
{
|
|
388
|
+
"id": "NAME",
|
|
389
|
+
"type": "STRING"
|
|
390
|
+
}
|
|
391
|
+
],
|
|
392
|
+
"resultType": "jsonText",
|
|
393
|
+
"effect": "pure",
|
|
394
|
+
"immutable": true,
|
|
395
|
+
"errors": [
|
|
396
|
+
"INVALID_NAME",
|
|
397
|
+
"DATA_NOT_FOUND"
|
|
398
|
+
],
|
|
399
|
+
"server": {
|
|
400
|
+
"supported": true,
|
|
401
|
+
"irOperation": "structuredData.toJson"
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"opcode": "toYaml",
|
|
406
|
+
"blockType": "REPORTER",
|
|
407
|
+
"arguments": [
|
|
408
|
+
{
|
|
409
|
+
"id": "NAME",
|
|
410
|
+
"type": "STRING"
|
|
411
|
+
}
|
|
412
|
+
],
|
|
413
|
+
"resultType": "yamlText",
|
|
414
|
+
"effect": "pure",
|
|
415
|
+
"immutable": true,
|
|
416
|
+
"errors": [
|
|
417
|
+
"INVALID_NAME",
|
|
418
|
+
"DATA_NOT_FOUND"
|
|
419
|
+
],
|
|
420
|
+
"server": {
|
|
421
|
+
"supported": true,
|
|
422
|
+
"irOperation": "structuredData.toYaml"
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
]
|
|
426
|
+
}
|