@cloudcrane/app-spec 0.5.0 → 0.7.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/dist/src/blueprint.d.ts +14 -0
- package/dist/src/blueprint.js +56 -3
- package/dist/src/design.d.ts +16 -0
- package/dist/src/design.js +137 -0
- package/dist/src/fidelity.d.ts +17 -0
- package/dist/src/fidelity.js +36 -0
- package/dist/src/index.d.ts +5 -1
- package/dist/src/index.js +5 -1
- package/dist/src/leak.js +9 -0
- package/dist/src/logic.js +14 -1
- package/dist/src/memory.d.ts +7 -0
- package/dist/src/memory.js +78 -0
- package/dist/src/reach.d.ts +7 -0
- package/dist/src/reach.js +102 -0
- package/dist/src/schema.d.ts +205 -9
- package/dist/src/schema.js +52 -2
- package/dist/src/validate.d.ts +1 -0
- package/dist/src/validate.js +12 -5
- package/package.json +1 -1
- package/schema/app-spec.v1.json +125 -1
package/package.json
CHANGED
package/schema/app-spec.v1.json
CHANGED
|
@@ -204,6 +204,14 @@
|
|
|
204
204
|
],
|
|
205
205
|
"additionalProperties": false
|
|
206
206
|
}
|
|
207
|
+
},
|
|
208
|
+
"personal": {
|
|
209
|
+
"type": "array",
|
|
210
|
+
"items": {
|
|
211
|
+
"type": "string",
|
|
212
|
+
"pattern": "^(\\/([^~/]|~[01])*)*$"
|
|
213
|
+
},
|
|
214
|
+
"maxItems": 20
|
|
207
215
|
}
|
|
208
216
|
},
|
|
209
217
|
"required": [
|
|
@@ -293,6 +301,7 @@
|
|
|
293
301
|
"type": "string",
|
|
294
302
|
"enum": [
|
|
295
303
|
"recorded",
|
|
304
|
+
"app",
|
|
296
305
|
"hint"
|
|
297
306
|
]
|
|
298
307
|
}
|
|
@@ -322,11 +331,17 @@
|
|
|
322
331
|
"type": "string",
|
|
323
332
|
"minLength": 1,
|
|
324
333
|
"maxLength": 300
|
|
334
|
+
},
|
|
335
|
+
"sends": {
|
|
336
|
+
"type": "string",
|
|
337
|
+
"minLength": 1,
|
|
338
|
+
"maxLength": 200
|
|
325
339
|
}
|
|
326
340
|
},
|
|
327
341
|
"required": [
|
|
328
342
|
"site",
|
|
329
|
-
"why"
|
|
343
|
+
"why",
|
|
344
|
+
"sends"
|
|
330
345
|
],
|
|
331
346
|
"additionalProperties": false
|
|
332
347
|
},
|
|
@@ -367,6 +382,73 @@
|
|
|
367
382
|
"maxItems": 9,
|
|
368
383
|
"default": []
|
|
369
384
|
},
|
|
385
|
+
"screens": {
|
|
386
|
+
"type": "array",
|
|
387
|
+
"items": {
|
|
388
|
+
"type": "object",
|
|
389
|
+
"properties": {
|
|
390
|
+
"id": {
|
|
391
|
+
"type": "string",
|
|
392
|
+
"pattern": "^[a-z][a-zA-Z0-9_.-]{0,63}$"
|
|
393
|
+
},
|
|
394
|
+
"says": {
|
|
395
|
+
"type": "string",
|
|
396
|
+
"minLength": 1,
|
|
397
|
+
"maxLength": 300
|
|
398
|
+
},
|
|
399
|
+
"states": {
|
|
400
|
+
"type": "object",
|
|
401
|
+
"properties": {
|
|
402
|
+
"empty": {
|
|
403
|
+
"type": "string",
|
|
404
|
+
"minLength": 1,
|
|
405
|
+
"maxLength": 200
|
|
406
|
+
},
|
|
407
|
+
"loading": {
|
|
408
|
+
"type": "string",
|
|
409
|
+
"minLength": 1,
|
|
410
|
+
"maxLength": 200
|
|
411
|
+
},
|
|
412
|
+
"offline": {
|
|
413
|
+
"type": "string",
|
|
414
|
+
"minLength": 1,
|
|
415
|
+
"maxLength": 200
|
|
416
|
+
},
|
|
417
|
+
"error": {
|
|
418
|
+
"type": "string",
|
|
419
|
+
"minLength": 1,
|
|
420
|
+
"maxLength": 200
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
"additionalProperties": false
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
"required": [
|
|
427
|
+
"id",
|
|
428
|
+
"says"
|
|
429
|
+
],
|
|
430
|
+
"additionalProperties": false
|
|
431
|
+
},
|
|
432
|
+
"minItems": 1,
|
|
433
|
+
"maxItems": 20
|
|
434
|
+
},
|
|
435
|
+
"screen": {
|
|
436
|
+
"type": "object",
|
|
437
|
+
"properties": {
|
|
438
|
+
"orientation": {
|
|
439
|
+
"type": "string",
|
|
440
|
+
"enum": [
|
|
441
|
+
"portrait",
|
|
442
|
+
"landscape",
|
|
443
|
+
"any"
|
|
444
|
+
]
|
|
445
|
+
},
|
|
446
|
+
"fullscreen": {
|
|
447
|
+
"type": "boolean"
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
"additionalProperties": false
|
|
451
|
+
},
|
|
370
452
|
"journeys": {
|
|
371
453
|
"type": "array",
|
|
372
454
|
"items": {
|
|
@@ -466,6 +548,11 @@
|
|
|
466
548
|
"page"
|
|
467
549
|
]
|
|
468
550
|
},
|
|
551
|
+
"replaces": {
|
|
552
|
+
"type": "string",
|
|
553
|
+
"minLength": 1,
|
|
554
|
+
"maxLength": 120
|
|
555
|
+
},
|
|
469
556
|
"inputs": {
|
|
470
557
|
"type": "object",
|
|
471
558
|
"additionalProperties": {
|
|
@@ -528,6 +615,43 @@
|
|
|
528
615
|
"type": "string",
|
|
529
616
|
"pattern": "^[a-z][a-zA-Z0-9_.-]{0,63}$"
|
|
530
617
|
},
|
|
618
|
+
"gaps": {
|
|
619
|
+
"type": "array",
|
|
620
|
+
"items": {
|
|
621
|
+
"type": "object",
|
|
622
|
+
"properties": {
|
|
623
|
+
"kind": {
|
|
624
|
+
"type": "string",
|
|
625
|
+
"enum": [
|
|
626
|
+
"background",
|
|
627
|
+
"widget",
|
|
628
|
+
"notifications",
|
|
629
|
+
"purchases",
|
|
630
|
+
"accounts",
|
|
631
|
+
"sync",
|
|
632
|
+
"device",
|
|
633
|
+
"other"
|
|
634
|
+
]
|
|
635
|
+
},
|
|
636
|
+
"what": {
|
|
637
|
+
"type": "string",
|
|
638
|
+
"minLength": 1,
|
|
639
|
+
"maxLength": 120
|
|
640
|
+
},
|
|
641
|
+
"why": {
|
|
642
|
+
"type": "string",
|
|
643
|
+
"minLength": 1,
|
|
644
|
+
"maxLength": 300
|
|
645
|
+
}
|
|
646
|
+
},
|
|
647
|
+
"required": [
|
|
648
|
+
"kind",
|
|
649
|
+
"what"
|
|
650
|
+
],
|
|
651
|
+
"additionalProperties": false
|
|
652
|
+
},
|
|
653
|
+
"maxItems": 20
|
|
654
|
+
},
|
|
531
655
|
"mods": {
|
|
532
656
|
"type": "object",
|
|
533
657
|
"properties": {
|