@g9tm/lynxcontrols 1.5.0 → 1.6.1
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/.tsbuildinfo +1 -1
- package/dist/fields/search-entry.d.ts +7 -1
- package/dist/fields/search-entry.d.ts.map +1 -1
- package/dist/fields/search-entry.jsx +16 -4
- package/dist/fields/search-entry.jsx.map +1 -1
- package/dist/fields/use-text-input.d.ts +1 -1
- package/dist/fields/use-text-input.d.ts.map +1 -1
- package/dist/fields/use-text-input.jsx +28 -1
- package/dist/fields/use-text-input.jsx.map +1 -1
- package/dist/guide/confirm-sheet.d.ts +26 -0
- package/dist/guide/confirm-sheet.d.ts.map +1 -0
- package/dist/guide/confirm-sheet.jsx +146 -0
- package/dist/guide/confirm-sheet.jsx.map +1 -0
- package/dist/guide/guide.css +63 -88
- package/dist/guide/guide.css.map +1 -1
- package/dist/guide/journey.d.ts.map +1 -1
- package/dist/guide/journey.jsx +10 -12
- package/dist/guide/journey.jsx.map +1 -1
- package/dist/guide/service.d.ts +11 -1
- package/dist/guide/service.d.ts.map +1 -1
- package/dist/guide/service.jsx +44 -98
- package/dist/guide/service.jsx.map +1 -1
- package/dist/guide/settings.d.ts +20 -2
- package/dist/guide/settings.d.ts.map +1 -1
- package/dist/guide/settings.jsx +10 -4
- package/dist/guide/settings.jsx.map +1 -1
- package/dist/sheet/frame.d.ts.map +1 -1
- package/dist/sheet/frame.jsx +2 -1
- package/dist/sheet/frame.jsx.map +1 -1
- package/package.json +2 -2
package/dist/guide/guide.css
CHANGED
|
@@ -312,141 +312,116 @@
|
|
|
312
312
|
right: -6px;
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
-
.g9-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
justify-content: center;
|
|
319
|
-
align-items: center;
|
|
320
|
-
padding: 24px;
|
|
315
|
+
.g9-guide-confirm {
|
|
316
|
+
flex-direction: column;
|
|
317
|
+
padding-bottom: 12px;
|
|
321
318
|
display: flex;
|
|
322
|
-
position: absolute;
|
|
323
|
-
top: 0;
|
|
324
|
-
bottom: 0;
|
|
325
|
-
left: 0;
|
|
326
|
-
right: 0;
|
|
327
319
|
}
|
|
328
320
|
|
|
329
|
-
.g9-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
flex-direction: column;
|
|
333
|
-
width: 100%;
|
|
334
|
-
max-width: 420px;
|
|
335
|
-
padding: 20px;
|
|
321
|
+
.g9-guide-confirm__meta {
|
|
322
|
+
justify-content: space-between;
|
|
323
|
+
align-items: center;
|
|
336
324
|
display: flex;
|
|
337
325
|
}
|
|
338
326
|
|
|
339
|
-
.g9-
|
|
340
|
-
color: var(--g9-
|
|
341
|
-
|
|
327
|
+
.g9-guide-confirm__source {
|
|
328
|
+
color: var(--g9-text-secondary);
|
|
329
|
+
flex: 1;
|
|
330
|
+
font-size: 13px;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.g9-guide-confirm__progress {
|
|
334
|
+
color: var(--g9-on-primary-container);
|
|
335
|
+
background-color: var(--g9-primary-container);
|
|
336
|
+
border-radius: 10px;
|
|
337
|
+
padding: 2px 10px;
|
|
338
|
+
font-size: 12px;
|
|
342
339
|
font-weight: bold;
|
|
343
340
|
}
|
|
344
341
|
|
|
345
|
-
.g9-
|
|
346
|
-
color: var(--g9-
|
|
347
|
-
|
|
348
|
-
|
|
342
|
+
.g9-guide-confirm__warning {
|
|
343
|
+
background-color: var(--g9-error-container);
|
|
344
|
+
border-radius: 10px;
|
|
345
|
+
margin-top: 10px;
|
|
346
|
+
padding: 10px 12px;
|
|
349
347
|
}
|
|
350
348
|
|
|
351
|
-
.g9-
|
|
352
|
-
color: var(--g9-error);
|
|
353
|
-
margin-top: 8px;
|
|
349
|
+
.g9-guide-confirm__warning-text {
|
|
350
|
+
color: var(--g9-on-error-container);
|
|
354
351
|
font-size: 13px;
|
|
352
|
+
line-height: 20px;
|
|
355
353
|
}
|
|
356
354
|
|
|
357
|
-
.g9-
|
|
358
|
-
color: var(--g9-
|
|
359
|
-
margin-top:
|
|
355
|
+
.g9-guide-confirm__heading {
|
|
356
|
+
color: var(--g9-text-primary);
|
|
357
|
+
margin-top: 14px;
|
|
360
358
|
margin-bottom: 8px;
|
|
361
359
|
font-size: 14px;
|
|
362
360
|
font-weight: bold;
|
|
363
361
|
}
|
|
364
362
|
|
|
365
|
-
.g9-
|
|
363
|
+
.g9-guide-confirm__lines {
|
|
364
|
+
border-style: solid;
|
|
365
|
+
border-width: 1px;
|
|
366
|
+
border-color: var(--g9-outline-variant);
|
|
367
|
+
border-radius: 12px;
|
|
366
368
|
flex-direction: column;
|
|
367
369
|
display: flex;
|
|
368
370
|
}
|
|
369
371
|
|
|
370
|
-
.g9-
|
|
372
|
+
.g9-guide-confirm__line {
|
|
373
|
+
border-top-style: solid;
|
|
374
|
+
border-top-width: 1px;
|
|
375
|
+
border-top-color: var(--g9-divider);
|
|
371
376
|
align-items: flex-start;
|
|
372
|
-
padding
|
|
373
|
-
padding-bottom: 6px;
|
|
377
|
+
padding: 10px 12px;
|
|
374
378
|
display: flex;
|
|
375
379
|
}
|
|
376
380
|
|
|
377
|
-
.g9-
|
|
378
|
-
|
|
381
|
+
.g9-guide-confirm__line--first {
|
|
382
|
+
border-top-width: 0;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.g9-guide-confirm__verb {
|
|
379
386
|
background-color: var(--g9-primary-container);
|
|
380
387
|
border-radius: 10px;
|
|
381
|
-
margin-
|
|
382
|
-
margin-
|
|
388
|
+
margin-top: 1px;
|
|
389
|
+
margin-left: 10px;
|
|
390
|
+
margin-right: 10px;
|
|
383
391
|
padding: 2px 8px;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.g9-guide-confirm__verb--delete {
|
|
395
|
+
background-color: var(--g9-error-container);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.g9-guide-confirm__verb-text {
|
|
399
|
+
color: var(--g9-on-primary-container);
|
|
384
400
|
font-size: 12px;
|
|
385
401
|
font-weight: bold;
|
|
386
402
|
}
|
|
387
403
|
|
|
388
|
-
.g9-
|
|
404
|
+
.g9-guide-confirm__verb-text--delete {
|
|
389
405
|
color: var(--g9-on-error-container);
|
|
390
|
-
background-color: var(--g9-error-container);
|
|
391
406
|
}
|
|
392
407
|
|
|
393
|
-
.g9-
|
|
408
|
+
.g9-guide-confirm__line-body {
|
|
394
409
|
flex-direction: column;
|
|
395
410
|
flex: 1;
|
|
396
411
|
display: flex;
|
|
397
412
|
}
|
|
398
413
|
|
|
399
|
-
.g9-
|
|
400
|
-
color: var(--g9-
|
|
414
|
+
.g9-guide-confirm__subject {
|
|
415
|
+
color: var(--g9-text-primary);
|
|
401
416
|
font-size: 14px;
|
|
417
|
+
line-height: 21px;
|
|
402
418
|
}
|
|
403
419
|
|
|
404
|
-
.g9-
|
|
405
|
-
color: var(--g9-
|
|
420
|
+
.g9-guide-confirm__value, .g9-guide-confirm__note {
|
|
421
|
+
color: var(--g9-text-secondary);
|
|
406
422
|
margin-top: 2px;
|
|
407
423
|
font-size: 13px;
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
.g9-guide__confirm-actions {
|
|
411
|
-
margin-top: 20px;
|
|
412
|
-
display: flex;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
.g9-guide__confirm-button {
|
|
416
|
-
background-color: var(--g9-primary);
|
|
417
|
-
border-radius: 24px;
|
|
418
|
-
flex: 1;
|
|
419
|
-
justify-content: center;
|
|
420
|
-
align-items: center;
|
|
421
|
-
height: 48px;
|
|
422
|
-
margin-left: 6px;
|
|
423
|
-
margin-right: 6px;
|
|
424
|
-
display: flex;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
.g9-guide__confirm-button--danger {
|
|
428
|
-
background-color: var(--g9-error);
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
.g9-guide__confirm-button--waiting {
|
|
432
|
-
opacity: .45;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
.g9-guide__confirm-button--cancel {
|
|
436
|
-
border-style: solid;
|
|
437
|
-
border-width: 1px;
|
|
438
|
-
border-color: var(--g9-outline);
|
|
439
|
-
background-color: #0000;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
.g9-guide__confirm-button-text {
|
|
443
|
-
color: var(--g9-on-primary);
|
|
444
|
-
font-size: 15px;
|
|
445
|
-
font-weight: bold;
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
.g9-guide__confirm-button-text--cancel {
|
|
449
|
-
color: var(--g9-primary);
|
|
424
|
+
line-height: 20px;
|
|
450
425
|
}
|
|
451
426
|
|
|
452
427
|
|
package/dist/guide/guide.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://./src/guide/guide.css"],"names":[],"mappings":"AAIA;EAHE,oBAAoB;EACpB,aAAa;EACb,eAAe;EACf,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAMA;EAHE,oBAAoB;EACpB,kBAAkB;AACpB;;AAMA;EAHE,oBAAoB;AACtB;;AAMA;EAHE,oBAAoB;EACpB,2BAA2B;EAC3B,kBAAkB;AACpB;;AAQA;EALE,oBAAoB;EACpB,mBAAmB;EACnB,kBAAkB;AACpB;;AAQA;EALE,mDAAmD;AACrD;;AAQA;EALE;IACE,UAAU;IACV,mBAAmB;EACrB;;EAEA;IACE,YAAY;IACZ,sBAAsB;EACxB;;EAEA;IACE,UAAU;IACV,mBAAmB;EACrB;AACF;;AAMA;EAHE,oBAAoB;EACpB,aAAa;EACb,kBAAkB;AACpB;;AAMA;EAHE,iDAAiD;AACnD;;AAMA;EAHE,kDAAkD;AACpD;;AAMA;EAHE,sDAAsD;AACxD;;AAMA;EAHE,wDAAwD;AAC1D;;AAMA;EAHE,wDAAwD;AAC1D;;AAOA;EAJE;IACE,WAAW;IACX,yCAAyC;EAC3C;;EAEA;IACE,UAAU;IACV,gCAAgC;EAClC;;EAEA;IACE,kCAAkC;E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;EAChB,eAAe;EACf,iBAAiB;AACnB;;AATA;EAYE,mCAAmC;EACnC,2CAA2C;AAC7C;;AATA;EAYE,sBAAsB;EACtB,OAAO;EACP,aAAa;AACf;;AATA;EAYE,2BAA2B;EAC3B,eAAe;AACjB;;AATA;EAYE,mCAAmC;EACnC,eAAe;EACf,eAAe;AACjB;;AARA;EAWE,gBAAgB;EAChB,aAAa;AACf;;AARA;EAWE,mCAAmC;EACnC,mBAAmB;EACnB,OAAO;EACP,uBAAuB;EACvB,mBAAmB;EACnB,YAAY;EACZ,gBAAgB;EAChB,iBAAiB;EACjB,aAAa;AACf;;AARA;EAWE,iCAAiC;AACnC;;AARA;EAWE,YAAY;AACd;;AARA;EAWE,mBAAmB;EACnB,iBAAiB;EACjB,+BAA+B;EAC/B,uBAAuB;AACzB;;AARA;EAWE,2BAA2B;EAC3B,eAAe;EACf,iBAAiB;AACnB;;AARA;EAWE,wBAAwB;AAC1B","sourcesContent":["/* The guide layer (above popups, toasts and floating items). Every piece is absolutely placed in layer coordinates;\n only the modal scrim bands, the bubble's buttons and the confirmation take touches. Animations run only while a\n mark is mounted: the layer renders nothing once the last mark is gone (an idle app does no frame work). */\n/* Fixed (like .g9-popup): see GuideLayer — an open sheet is a fixed SheetView painted above in-flow nodes. */\n.g9-guide {\n display: flex;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n pointer-events: none;\n}\n\n.g9-guide__scrim {\n position: absolute;\n pointer-events: none;\n}\n\n.g9-guide__scrim--modal {\n pointer-events: auto;\n}\n\n.g9-guide__hole {\n position: absolute;\n border-width: 2px;\n border-style: solid;\n border-color: rgba(255, 255, 255, 0.92);\n pointer-events: none;\n}\n\n.g9-guide__highlight {\n position: absolute;\n border-style: solid;\n pointer-events: none;\n}\n\n.g9-guide__highlight--pulse {\n animation: g9-guide-pulse 1400ms ease-in-out infinite;\n}\n\n@keyframes g9-guide-pulse {\n 0% {\n opacity: 1;\n transform: scale(1);\n }\n 50% {\n opacity: 0.55;\n transform: scale(1.04);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n}\n\n.g9-guide__pointer {\n display: flex;\n position: absolute;\n pointer-events: none;\n}\n\n.g9-guide__pointer--tap {\n animation: g9-guide-tap 1200ms ease-in-out infinite;\n}\n\n.g9-guide__pointer--longPress {\n animation: g9-guide-hold 1800ms ease-in-out infinite;\n}\n\n.g9-guide__pointer--swipeUp {\n animation: g9-guide-swipe-up 1400ms ease-in-out infinite;\n}\n\n.g9-guide__pointer--swipeDown {\n animation: g9-guide-swipe-down 1400ms ease-in-out infinite;\n}\n\n.g9-guide__pointer--swipeStart,\n.g9-guide__pointer--swipeEnd {\n animation: g9-guide-swipe-side 1400ms ease-in-out infinite;\n}\n\n@keyframes g9-guide-tap {\n 0% {\n transform: translate(10px, 14px) scale(1);\n opacity: 0.9;\n }\n 40% {\n transform: translate(0px, 0px) scale(1);\n opacity: 1;\n }\n 55% {\n transform: translate(0px, 0px) scale(0.86);\n }\n 75% {\n transform: translate(0px, 0px) scale(1);\n }\n 100% {\n transform: translate(10px, 14px) scale(1);\n opacity: 0.9;\n }\n}\n\n@keyframes g9-guide-hold {\n 0% {\n transform: translate(10px, 14px) scale(1);\n }\n 25% {\n transform: translate(0px, 0px) scale(0.86);\n }\n 80% {\n transform: translate(0px, 0px) scale(0.86);\n }\n 100% {\n transform: translate(10px, 14px) scale(1);\n }\n}\n\n@keyframes g9-guide-swipe-up {\n 0% {\n transform: translate(0px, 30px);\n opacity: 0;\n }\n 20% {\n opacity: 1;\n }\n 100% {\n transform: translate(0px, -30px);\n opacity: 0;\n }\n}\n\n@keyframes g9-guide-swipe-down {\n 0% {\n transform: translate(0px, -30px);\n opacity: 0;\n }\n 20% {\n opacity: 1;\n }\n 100% {\n transform: translate(0px, 30px);\n opacity: 0;\n }\n}\n\n@keyframes g9-guide-swipe-side {\n 0% {\n transform: translate(30px, 0px);\n opacity: 0;\n }\n 20% {\n opacity: 1;\n }\n 100% {\n transform: translate(-30px, 0px);\n opacity: 0;\n }\n}\n\n.g9-guide__beacon {\n position: absolute;\n width: 12px;\n height: 12px;\n border-radius: 6px;\n pointer-events: none;\n animation: g9-guide-beacon 1200ms ease-out infinite;\n}\n\n@keyframes g9-guide-beacon {\n 0% {\n transform: scale(0.7);\n opacity: 1;\n }\n 70% {\n transform: scale(1.6);\n opacity: 0.25;\n }\n 100% {\n transform: scale(0.7);\n opacity: 1;\n }\n}\n\n.g9-guide__badge {\n display: flex;\n position: absolute;\n width: 22px;\n height: 22px;\n border-radius: 11px;\n align-items: center;\n justify-content: center;\n background-color: var(--g9-primary);\n pointer-events: none;\n}\n\n.g9-guide__badge-text {\n color: var(--g9-on-primary);\n font-size: 12px;\n font-weight: bold;\n}\n\n.g9-guide__ripple {\n position: absolute;\n width: 48px;\n height: 48px;\n border-radius: 24px;\n background-color: rgba(255, 255, 255, 0.5);\n pointer-events: none;\n animation: g9-guide-ripple 600ms ease-out 1 forwards;\n}\n\n@keyframes g9-guide-ripple {\n 0% {\n transform: scale(0.3);\n opacity: 0.9;\n }\n 100% {\n transform: scale(1.8);\n opacity: 0;\n }\n}\n\n.g9-guide__bubble {\n display: flex;\n flex-direction: column;\n position: absolute;\n padding: 12px 14px;\n border-radius: 14px;\n background-color: var(--g9-inverse-surface);\n pointer-events: auto;\n}\n\n.g9-guide__bubble-title {\n color: var(--g9-inverse-on-surface);\n font-size: 15px;\n font-weight: bold;\n margin-bottom: 4px;\n}\n\n.g9-guide__bubble-text {\n color: var(--g9-inverse-on-surface);\n font-size: 14px;\n line-height: 22px;\n}\n\n.g9-guide__bubble-actions {\n display: flex;\n justify-content: flex-end;\n margin-top: 10px;\n}\n\n.g9-guide__bubble-button {\n display: flex;\n padding: 6px 14px;\n margin-left: 8px;\n border-radius: 16px;\n background-color: var(--g9-inverse-primary);\n}\n\n.g9-guide__bubble-button--quiet {\n background-color: transparent;\n}\n\n.g9-guide__bubble-button-text {\n color: var(--g9-inverse-surface);\n font-size: 14px;\n font-weight: bold;\n}\n\n.g9-guide__bubble-button-text--quiet {\n color: var(--g9-inverse-on-surface);\n}\n\n.g9-guide__arrow {\n position: absolute;\n width: 14px;\n height: 14px;\n background-color: var(--g9-inverse-surface);\n transform: rotate(45deg);\n}\n\n.g9-guide__arrow--below {\n top: -6px;\n}\n\n.g9-guide__arrow--above {\n bottom: -6px;\n}\n\n.g9-guide__arrow--over {\n display: none;\n}\n\n.g9-guide__arrow--end {\n left: -6px;\n}\n\n.g9-guide__arrow--start {\n right: -6px;\n}\n\n.g9-guide__confirm-scrim {\n display: flex;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n align-items: center;\n justify-content: center;\n padding: 24px;\n background-color: rgba(0, 0, 0, 0.5);\n pointer-events: auto;\n}\n\n.g9-guide__confirm {\n display: flex;\n flex-direction: column;\n width: 100%;\n max-width: 420px;\n padding: 20px;\n border-radius: 20px;\n background-color: var(--g9-surface);\n}\n\n.g9-guide__confirm-title {\n color: var(--g9-on-surface);\n font-size: 18px;\n font-weight: bold;\n}\n\n.g9-guide__confirm-source {\n color: var(--g9-on-surface-variant);\n font-size: 13px;\n margin-top: 4px;\n}\n\n.g9-guide__confirm-warning {\n color: var(--g9-error);\n font-size: 13px;\n margin-top: 8px;\n}\n\n.g9-guide__confirm-heading {\n color: var(--g9-on-surface);\n font-size: 14px;\n font-weight: bold;\n margin-top: 16px;\n margin-bottom: 8px;\n}\n\n.g9-guide__confirm-lines {\n display: flex;\n flex-direction: column;\n}\n\n.g9-guide__confirm-line {\n display: flex;\n align-items: flex-start;\n padding-top: 6px;\n padding-bottom: 6px;\n}\n\n.g9-guide__confirm-verb {\n font-size: 12px;\n font-weight: bold;\n padding: 2px 8px;\n margin-left: 8px;\n margin-right: 8px;\n border-radius: 10px;\n color: var(--g9-on-primary-container);\n background-color: var(--g9-primary-container);\n}\n\n.g9-guide__confirm-verb--delete {\n color: var(--g9-on-error-container);\n background-color: var(--g9-error-container);\n}\n\n.g9-guide__confirm-line-body {\n display: flex;\n flex-direction: column;\n flex: 1;\n}\n\n.g9-guide__confirm-subject {\n color: var(--g9-on-surface);\n font-size: 14px;\n}\n\n.g9-guide__confirm-value,\n.g9-guide__confirm-note {\n color: var(--g9-on-surface-variant);\n font-size: 13px;\n margin-top: 2px;\n}\n\n.g9-guide__confirm-actions {\n display: flex;\n margin-top: 20px;\n}\n\n.g9-guide__confirm-button {\n display: flex;\n flex: 1;\n height: 48px;\n align-items: center;\n justify-content: center;\n border-radius: 24px;\n margin-left: 6px;\n margin-right: 6px;\n background-color: var(--g9-primary);\n}\n\n.g9-guide__confirm-button--danger {\n background-color: var(--g9-error);\n}\n\n.g9-guide__confirm-button--waiting {\n opacity: 0.45;\n}\n\n.g9-guide__confirm-button--cancel {\n background-color: transparent;\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline);\n}\n\n.g9-guide__confirm-button-text {\n color: var(--g9-on-primary);\n font-size: 15px;\n font-weight: bold;\n}\n\n.g9-guide__confirm-button-text--cancel {\n color: var(--g9-primary);\n}\n"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack://./src/guide/guide.css"],"names":[],"mappings":"AAIA;EAHE,oBAAoB;EACpB,aAAa;EACb,eAAe;EACf,MAAM;EACN,SAAS;EACT,OAAO;EACP,QAAQ;AACV;;AAMA;EAHE,oBAAoB;EACpB,kBAAkB;AACpB;;AAMA;EAHE,oBAAoB;AACtB;;AAMA;EAHE,oBAAoB;EACpB,2BAA2B;EAC3B,kBAAkB;AACpB;;AAQA;EALE,oBAAoB;EACpB,mBAAmB;EACnB,kBAAkB;AACpB;;AAQA;EALE,mDAAmD;AACrD;;AAQA;EALE;IACE,UAAU;IACV,mBAAmB;EACrB;;EAEA;IACE,YAAY;IACZ,sBAAsB;EACxB;;EAEA;IACE,UAAU;IACV,mBAAmB;EACrB;AACF;;AAMA;EAHE,oBAAoB;EACpB,aAAa;EACb,kBAAkB;AACpB;;AAMA;EAHE,iDAAiD;AACnD;;AAMA;EAHE,kDA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B;EACnB,iBAAiB;EACjB,uCAAuC;EACvC,mBAAmB;EACnB,sBAAsB;EACtB,aAAa;AACf;;AAPA;EAUE,uBAAuB;EACvB,qBAAqB;EACrB,mCAAmC;EACnC,uBAAuB;EACvB,kBAAkB;EAClB,aAAa;AACf;;AAPA;EAUE,mBAAmB;AACrB;;AAPA;EAUE,6CAA6C;EAC7C,mBAAmB;EACnB,eAAe;EACf,iBAAiB;EACjB,kBAAkB;EAClB,gBAAgB;AAClB;;AAPA;EAUE,2CAA2C;AAC7C;;AAPA;EAUE,qCAAqC;EACrC,eAAe;EACf,iBAAiB;AACnB;;AAPA;EAUE,mCAAmC;AACrC;;AAPA;EAUE,sBAAsB;EACtB,OAAO;EACP,aAAa;AACf;;AAPA;EAUE,6BAA6B;EAC7B,eAAe;EACf,iBAAiB;AACnB;;AAPA;EAUE,+BAA+B;EAC/B,eAAe;EACf,eAAe;EACf,iBAAiB;AACnB","sourcesContent":["/* The guide layer (above popups, toasts and floating items). Every piece is absolutely placed in layer coordinates;\n only the modal scrim bands and the bubble's buttons take touches (the confirmation is a sheet). Animations run only while a\n mark is mounted: the layer renders nothing once the last mark is gone (an idle app does no frame work). */\n/* Fixed (like .g9-popup): see GuideLayer — an open sheet is a fixed SheetView painted above in-flow nodes. */\n.g9-guide {\n display: flex;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n pointer-events: none;\n}\n\n.g9-guide__scrim {\n position: absolute;\n pointer-events: none;\n}\n\n.g9-guide__scrim--modal {\n pointer-events: auto;\n}\n\n.g9-guide__hole {\n position: absolute;\n border-width: 2px;\n border-style: solid;\n border-color: rgba(255, 255, 255, 0.92);\n pointer-events: none;\n}\n\n.g9-guide__highlight {\n position: absolute;\n border-style: solid;\n pointer-events: none;\n}\n\n.g9-guide__highlight--pulse {\n animation: g9-guide-pulse 1400ms ease-in-out infinite;\n}\n\n@keyframes g9-guide-pulse {\n 0% {\n opacity: 1;\n transform: scale(1);\n }\n 50% {\n opacity: 0.55;\n transform: scale(1.04);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n}\n\n.g9-guide__pointer {\n display: flex;\n position: absolute;\n pointer-events: none;\n}\n\n.g9-guide__pointer--tap {\n animation: g9-guide-tap 1200ms ease-in-out infinite;\n}\n\n.g9-guide__pointer--longPress {\n animation: g9-guide-hold 1800ms ease-in-out infinite;\n}\n\n.g9-guide__pointer--swipeUp {\n animation: g9-guide-swipe-up 1400ms ease-in-out infinite;\n}\n\n.g9-guide__pointer--swipeDown {\n animation: g9-guide-swipe-down 1400ms ease-in-out infinite;\n}\n\n.g9-guide__pointer--swipeStart,\n.g9-guide__pointer--swipeEnd {\n animation: g9-guide-swipe-side 1400ms ease-in-out infinite;\n}\n\n@keyframes g9-guide-tap {\n 0% {\n transform: translate(10px, 14px) scale(1);\n opacity: 0.9;\n }\n 40% {\n transform: translate(0px, 0px) scale(1);\n opacity: 1;\n }\n 55% {\n transform: translate(0px, 0px) scale(0.86);\n }\n 75% {\n transform: translate(0px, 0px) scale(1);\n }\n 100% {\n transform: translate(10px, 14px) scale(1);\n opacity: 0.9;\n }\n}\n\n@keyframes g9-guide-hold {\n 0% {\n transform: translate(10px, 14px) scale(1);\n }\n 25% {\n transform: translate(0px, 0px) scale(0.86);\n }\n 80% {\n transform: translate(0px, 0px) scale(0.86);\n }\n 100% {\n transform: translate(10px, 14px) scale(1);\n }\n}\n\n@keyframes g9-guide-swipe-up {\n 0% {\n transform: translate(0px, 30px);\n opacity: 0;\n }\n 20% {\n opacity: 1;\n }\n 100% {\n transform: translate(0px, -30px);\n opacity: 0;\n }\n}\n\n@keyframes g9-guide-swipe-down {\n 0% {\n transform: translate(0px, -30px);\n opacity: 0;\n }\n 20% {\n opacity: 1;\n }\n 100% {\n transform: translate(0px, 30px);\n opacity: 0;\n }\n}\n\n@keyframes g9-guide-swipe-side {\n 0% {\n transform: translate(30px, 0px);\n opacity: 0;\n }\n 20% {\n opacity: 1;\n }\n 100% {\n transform: translate(-30px, 0px);\n opacity: 0;\n }\n}\n\n.g9-guide__beacon {\n position: absolute;\n width: 12px;\n height: 12px;\n border-radius: 6px;\n pointer-events: none;\n animation: g9-guide-beacon 1200ms ease-out infinite;\n}\n\n@keyframes g9-guide-beacon {\n 0% {\n transform: scale(0.7);\n opacity: 1;\n }\n 70% {\n transform: scale(1.6);\n opacity: 0.25;\n }\n 100% {\n transform: scale(0.7);\n opacity: 1;\n }\n}\n\n.g9-guide__badge {\n display: flex;\n position: absolute;\n width: 22px;\n height: 22px;\n border-radius: 11px;\n align-items: center;\n justify-content: center;\n background-color: var(--g9-primary);\n pointer-events: none;\n}\n\n.g9-guide__badge-text {\n color: var(--g9-on-primary);\n font-size: 12px;\n font-weight: bold;\n}\n\n.g9-guide__ripple {\n position: absolute;\n width: 48px;\n height: 48px;\n border-radius: 24px;\n background-color: rgba(255, 255, 255, 0.5);\n pointer-events: none;\n animation: g9-guide-ripple 600ms ease-out 1 forwards;\n}\n\n@keyframes g9-guide-ripple {\n 0% {\n transform: scale(0.3);\n opacity: 0.9;\n }\n 100% {\n transform: scale(1.8);\n opacity: 0;\n }\n}\n\n.g9-guide__bubble {\n display: flex;\n flex-direction: column;\n position: absolute;\n padding: 12px 14px;\n border-radius: 14px;\n background-color: var(--g9-inverse-surface);\n pointer-events: auto;\n}\n\n.g9-guide__bubble-title {\n color: var(--g9-inverse-on-surface);\n font-size: 15px;\n font-weight: bold;\n margin-bottom: 4px;\n}\n\n.g9-guide__bubble-text {\n color: var(--g9-inverse-on-surface);\n font-size: 14px;\n line-height: 22px;\n}\n\n.g9-guide__bubble-actions {\n display: flex;\n justify-content: flex-end;\n margin-top: 10px;\n}\n\n.g9-guide__bubble-button {\n display: flex;\n padding: 6px 14px;\n margin-left: 8px;\n border-radius: 16px;\n background-color: var(--g9-inverse-primary);\n}\n\n.g9-guide__bubble-button--quiet {\n background-color: transparent;\n}\n\n.g9-guide__bubble-button-text {\n color: var(--g9-inverse-surface);\n font-size: 14px;\n font-weight: bold;\n}\n\n.g9-guide__bubble-button-text--quiet {\n color: var(--g9-inverse-on-surface);\n}\n\n.g9-guide__arrow {\n position: absolute;\n width: 14px;\n height: 14px;\n background-color: var(--g9-inverse-surface);\n transform: rotate(45deg);\n}\n\n.g9-guide__arrow--below {\n top: -6px;\n}\n\n.g9-guide__arrow--above {\n bottom: -6px;\n}\n\n.g9-guide__arrow--over {\n display: none;\n}\n\n.g9-guide__arrow--end {\n left: -6px;\n}\n\n.g9-guide__arrow--start {\n right: -6px;\n}\n\n/* The guided-save confirmation's body (./confirm-sheet.tsx): a G9 fit sheet draws the header, the scrolling and the\n footer buttons; this is only what scrolls — who asked, the link's warning, the list of changes. */\n.g9-guide-confirm {\n display: flex;\n flex-direction: column;\n padding-bottom: 12px;\n}\n\n.g9-guide-confirm__meta {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.g9-guide-confirm__source {\n flex: 1;\n color: var(--g9-text-secondary);\n font-size: 13px;\n}\n\n.g9-guide-confirm__progress {\n color: var(--g9-on-primary-container);\n background-color: var(--g9-primary-container);\n font-size: 12px;\n font-weight: bold;\n padding: 2px 10px;\n border-radius: 10px;\n}\n\n.g9-guide-confirm__warning {\n margin-top: 10px;\n padding: 10px 12px;\n border-radius: 10px;\n background-color: var(--g9-error-container);\n}\n\n.g9-guide-confirm__warning-text {\n color: var(--g9-on-error-container);\n font-size: 13px;\n line-height: 20px;\n}\n\n.g9-guide-confirm__heading {\n color: var(--g9-text-primary);\n font-size: 14px;\n font-weight: bold;\n margin-top: 14px;\n margin-bottom: 8px;\n}\n\n.g9-guide-confirm__lines {\n display: flex;\n flex-direction: column;\n border-width: 1px;\n border-style: solid;\n border-color: var(--g9-outline-variant);\n border-radius: 12px;\n}\n\n.g9-guide-confirm__line {\n display: flex;\n align-items: flex-start;\n padding: 10px 12px;\n border-top-width: 1px;\n border-top-style: solid;\n border-top-color: var(--g9-divider);\n}\n\n.g9-guide-confirm__line--first {\n border-top-width: 0;\n}\n\n.g9-guide-confirm__verb {\n padding: 2px 8px;\n margin-left: 10px;\n margin-right: 10px;\n margin-top: 1px;\n border-radius: 10px;\n background-color: var(--g9-primary-container);\n}\n\n.g9-guide-confirm__verb--delete {\n background-color: var(--g9-error-container);\n}\n\n.g9-guide-confirm__verb-text {\n color: var(--g9-on-primary-container);\n font-size: 12px;\n font-weight: bold;\n}\n\n.g9-guide-confirm__verb-text--delete {\n color: var(--g9-on-error-container);\n}\n\n.g9-guide-confirm__line-body {\n display: flex;\n flex-direction: column;\n flex: 1;\n}\n\n.g9-guide-confirm__subject {\n color: var(--g9-text-primary);\n font-size: 14px;\n line-height: 21px;\n}\n\n.g9-guide-confirm__value,\n.g9-guide-confirm__note {\n color: var(--g9-text-secondary);\n font-size: 13px;\n line-height: 20px;\n margin-top: 2px;\n}\n"],"sourceRoot":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"journey.d.ts","sourceRoot":"","sources":["../../src/guide/journey.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EAEjB,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,aAAa,EAElB,KAAK,eAAe,EAQrB,MAAM,+BAA+B,CAAC;AAIvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAiC,cAAc,EAAe,MAAM,WAAW,CAAC;AAQ5F,4FAA4F;AAC5F,MAAM,WAAW,mBAAmB;IAClC,oEAAoE;IACpE,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC,QAAQ,CAAC,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC;IAC/B,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAClC,6EAA6E;IAC7E,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,YAAY,KAAK,eA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M,WAAW,YAAY;IAC3B,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;IAC5B,QAAQ,CAAC,KAAK,EAAE;QAAE,GAAG,IAAI,cAAc,CAAC;QAAC,SAAS,CAAC,CAAC,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAA;KAAE,CAAC;IAChF,yDAAyD;IACzD,IAAI,IAAI,IAAI,CAAC;IACb,MAAM,IAAI,IAAI,CAAC;IACf,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;CAC3C;AAcD,+EAA+E;AAC/E,wBAAgB,UAAU,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,mBAAmB,GAAG,YAAY,CAwVzF"}
|
package/dist/guide/journey.jsx
CHANGED
|
@@ -319,16 +319,13 @@ function runJourney(journey, options) {
|
|
|
319
319
|
var _info_changes;
|
|
320
320
|
const changes = null != (_ref1 = null != (_ref2 = null == (_info_changes = info.changes) ? void 0 : _info_changes.call(info)) ? _ref2 : lastPlaceChanges(router)) ? _ref1 : [];
|
|
321
321
|
const seconds = confirmSeconds(source, risk, changes.length > 0, guide.settings.confirm);
|
|
322
|
-
const
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
],
|
|
330
|
-
reveal: false
|
|
331
|
-
});
|
|
322
|
+
const presses = journey.steps.filter((s)=>'press' === s.do).length;
|
|
323
|
+
const progress = {
|
|
324
|
+
index: journey.steps.slice(0, index + 1).filter((s)=>'press' === s.do).length,
|
|
325
|
+
total: presses
|
|
326
|
+
};
|
|
327
|
+
const dismiss = ()=>guide.dismissConfirmation();
|
|
328
|
+
cancelHooks.add(dismiss);
|
|
332
329
|
let ok = false;
|
|
333
330
|
try {
|
|
334
331
|
ok = await guide.confirm({
|
|
@@ -336,10 +333,11 @@ function runJourney(journey, options) {
|
|
|
336
333
|
source,
|
|
337
334
|
changes,
|
|
338
335
|
seconds,
|
|
339
|
-
destructive: 'destructive' === risk
|
|
336
|
+
destructive: 'destructive' === risk,
|
|
337
|
+
progress
|
|
340
338
|
});
|
|
341
339
|
} finally{
|
|
342
|
-
|
|
340
|
+
cancelHooks.delete(dismiss);
|
|
343
341
|
}
|
|
344
342
|
if (!ok) throw new Stopped('declined', 'The person did not confirm.');
|
|
345
343
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guide/journey.jsx","sources":["../../src/guide/journey.ts"],"sourcesContent":["import {\n confirmSeconds,\n type G9AnchorRisk,\n type G9GuideEffectSpec,\n type G9Journey,\n type G9JourneySource,\n type G9JourneyStep,\n type G9Snapshot,\n type G9StepAuthority,\n type G9Until,\n type G9WaitFor,\n g9RuntimeTimers,\n journeyAuthority,\n matchesAddress,\n textIn,\n tryParseAddress,\n} from '@g9tm/lynxcontrols-foundation';\nimport { windowRect } from '../anchor/measure';\nimport type { G9AnchorEntry } from '../anchor/registry';\nimport { revealAnchor } from '../anchor/scroll';\nimport type { G9Router } from '../route/router';\nimport type { G9GuideHandle, G9GuideOutcome, G9GuideService, G9GuideSpec } from './service';\n\n// Runs a journey on screen. Who may do what is the SOURCE policy (foundation `journeyAuthority`), read with the CALLER's\n// source — a journey cannot raise its own rights: navigation, showing and filling a form are the engine's; pressing a\n// control that saves or deletes waits for the person's confirmation behind a countdown, with every change listed; a\n// step the policy keeps from the engine falls to the person (the finger points, the guide waits). Every step ends with\n// a result; a failure stops the journey with its reason (no retries, no loops). Back ends the journey.\n\n/** What a journey runs with: the trusted source, the language, the guide and the router. */\nexport interface G9JourneyRunOptions {\n /** Who started it (trusted: the app decides, never the journey). */\n readonly source: G9JourneySource;\n readonly language: 'fa' | 'en';\n readonly guide: G9GuideService;\n readonly router?: G9Router | null;\n /** Make the policy stricter for a step (an app may never make it looser). */\n readonly authority?: (step: G9JourneyStep, risk: G9AnchorRisk) => G9StepAuthority | null;\n /** How long a person's step may take before the journey stops (ms). Default 120000. */\n readonly personTimeoutMs?: number;\n}\n\n/** The phase of a running journey. */\nexport type G9JourneyStatus = 'running' | 'waiting' | 'done' | 'failed' | 'cancelled';\n\n/** Where a running journey is. */\nexport interface G9JourneyState {\n readonly index: number;\n readonly status: G9JourneyStatus;\n /** Steps the policy gave to the person instead of the engine. */\n readonly downgraded: readonly number[];\n}\n\n/** How a journey ended: `ok`, or the step it stopped at and why. */\nexport interface G9JourneyResult {\n readonly ok: boolean;\n readonly failedAt?: number;\n readonly reason?: string;\n readonly message?: string;\n}\n\n/** A running journey: its state, «next» for a manual pace, cancel, and its result. */\nexport interface G9JourneyRun {\n readonly journey: G9Journey;\n readonly state: { get(): G9JourneyState; subscribe(l: () => void): () => void };\n /** The «next» of a manual journey (or of the bubble). */\n next(): void;\n cancel(): void;\n readonly result: Promise<G9JourneyResult>;\n}\n\nclass Stopped extends Error {\n constructor(\n readonly reason: string,\n message: string,\n ) {\n super(message);\n }\n}\n\nconst sleep = (ms: number) => new Promise<void>((r) => g9RuntimeTimers.setTimeout(r, ms));\nconst RANK: Readonly<Record<G9StepAuthority, number>> = { engine: 0, 'engine-confirm': 1, user: 2 };\n\n/** Starts a journey (validate untrusted JSON with `validateJourney` first). */\nexport function runJourney(journey: G9Journey, options: G9JourneyRunOptions): G9JourneyRun {\n const { guide, router, language, source } = options;\n const anchors = guide.anchors;\n const personTimeout = options.personTimeoutMs ?? 120000;\n let state: G9JourneyState = { index: 0, status: 'running', downgraded: [] };\n const listeners = new Set<() => void>();\n const set = (patch: Partial<G9JourneyState>) => {\n state = { ...state, ...patch };\n for (const l of Array.from(listeners)) l();\n };\n let cancelled = false;\n let nextWaiter: (() => void) | null = null;\n const marks = new Set<G9GuideHandle>();\n const cancelHooks = new Set<() => void>();\n\n const show = (spec: G9GuideSpec): G9GuideHandle => {\n const h = guide.show({ language, ...spec });\n marks.add(h);\n void h.result.then(() => marks.delete(h));\n return h;\n };\n const text = (t: Parameters<typeof textIn>[0] | undefined) => (t === undefined ? '' : textIn(t, language));\n const check = () => {\n if (cancelled) throw new Stopped('cancelled', 'cancelled');\n };\n\n /** Resolves on the first of: a condition met (polled), the run's «next», a cancel, a timeout. */\n const until = (\n condition: (() => boolean | Promise<boolean>) | null,\n timeoutMs: number,\n mark: G9GuideHandle | null,\n ): Promise<'met' | 'next' | 'timeout' | 'cancelled' | G9GuideOutcome> =>\n new Promise((resolve) => {\n let done = false;\n let poll: unknown = null;\n const finish = (why: 'met' | 'next' | 'timeout' | 'cancelled' | G9GuideOutcome) => {\n if (done) return;\n done = true;\n g9RuntimeTimers.clearTimeout(timer);\n if (poll !== null) g9RuntimeTimers.clearTimeout(poll);\n cancelHooks.delete(onCancel);\n if (nextWaiter === onNext) nextWaiter = null;\n resolve(why);\n };\n const onCancel = () => finish('cancelled');\n const onNext = () => finish('next');\n cancelHooks.add(onCancel);\n nextWaiter = onNext;\n const timer = g9RuntimeTimers.setTimeout(() => finish('timeout'), timeoutMs);\n void mark?.result.then((o) =>\n o === 'next' || o === 'done' || o === 'skip' || o === 'tapped'\n ? finish('next')\n : o === 'target-lost'\n ? finish('target-lost')\n : // Hidden by someone else (Android back ends the guide), or the host went away: the journey stops.\n o === 'hidden' || o === 'unmount'\n ? finish('cancelled')\n : undefined,\n );\n if (condition) {\n const tick = async () => {\n poll = null;\n if (done) return;\n let met = false;\n try {\n met = await condition();\n } catch {\n met = false;\n }\n if (met) finish('met');\n else if (!done) poll = g9RuntimeTimers.setTimeout(() => void tick(), 250);\n };\n void tick();\n }\n });\n\n const anchorFor = async (id: string): Promise<G9AnchorEntry> => {\n const r = await revealAnchor(anchors, id, { smooth: true });\n if (!r.anchor) throw new Stopped('not-found', `The control \"${id}\" is not on screen.`);\n return r.anchor;\n };\n\n const routeMet = (pattern: string) => () => {\n const here = router?.where().unique ?? '';\n return here === pattern || (tryParseAddress(here).ok && safeMatch(here, pattern));\n };\n\n const valueMet = (target: string, equals: string | undefined, start: string | null | undefined) => () => {\n const v = anchors.find(target)?.info().capabilities?.getValue?.();\n return equals === undefined ? v !== start : v === equals;\n };\n\n const untilOf = async (u: G9Until | undefined, mark: G9GuideHandle | null, fallbackNext: boolean) => {\n if (u === undefined || u === 'next' || u === 'tap') return until(null, personTimeout, mark);\n if ('ms' in u) {\n await sleep(u.ms);\n return 'met';\n }\n if ('route' in u) return until(routeMet(u.route), personTimeout, fallbackNext ? mark : null);\n const start = anchors.find(u.value.target)?.info().capabilities?.getValue?.();\n return until(valueMet(u.value.target, u.value.equals, start), personTimeout, fallbackNext ? mark : null);\n };\n\n const authorityOf = (\n step: G9JourneyStep,\n action: 'navigate' | 'fill' | 'press',\n risk: G9AnchorRisk,\n ): G9StepAuthority => {\n const base = journeyAuthority(source, action, risk);\n const app = options.authority?.(step, risk) ?? null;\n return app && RANK[app] > RANK[base] ? app : base;\n };\n\n const point = (target: string, words: string, gesture: 'tap' | 'longPress' = 'tap') =>\n show({\n target,\n effects: [\n { type: 'spotlight' },\n { type: 'highlight', pulse: true, opacity: 0.08 },\n { type: 'pointer', gesture },\n ...(words ? [{ type: 'caption' as const, text: words }] : []),\n ],\n buttons: ['next'],\n });\n\n const steps: Record<G9JourneyStep['do'], (step: never, index: number) => Promise<void>> = {\n go: async (step: Extract<G9JourneyStep, { do: 'go' }>) => {\n if (!router) throw new Stopped('no-router', 'There is no router to go with.');\n const by = step.by ?? 'jump';\n const r =\n by === 'jump'\n ? await router.go(step.to, {\n source: source === 'link' ? 'link' : source === 'assistant' ? 'assistant' : 'user',\n })\n : await router.walk(step.to, { by, presenter: guide.presenter() }).result;\n if (!r.ok) throw new Stopped(r.reason, r.message);\n },\n show: async (step: Extract<G9JourneyStep, { do: 'show' }>) => {\n const effects: G9GuideEffectSpec[] = step.effects\n ? step.effects.slice()\n : [{ type: 'spotlight' }, { type: 'highlight', pulse: true, opacity: 0.08 }];\n if (step.text && !effects.some((e) => e.type === 'caption')) effects.push({ type: 'caption', text: step.text });\n const m = show({ target: step.target, effects, buttons: ['next'] });\n const why = await untilOf(step.until, m, true);\n m.hide();\n if (why === 'cancelled') throw new Stopped('cancelled', 'cancelled');\n if (why === 'timeout' || why === 'target-lost')\n throw new Stopped(\n why,\n `\"${step.target}\" ${why === 'timeout' ? 'was not reached in time' : 'left the screen'}.`,\n );\n },\n say: async (step: Extract<G9JourneyStep, { do: 'say' }>) => {\n const w = windowRect();\n const m = show({\n target: { x: w.width / 2 - 1, y: w.height * 0.42, width: 2, height: 2 },\n effects: [{ type: 'caption', text: step.text, placement: 'below' }],\n buttons: ['next'],\n reveal: false,\n });\n const why = await untilOf(step.until, m, true);\n m.hide();\n if (why === 'cancelled') throw new Stopped('cancelled', 'cancelled');\n if (why === 'timeout') throw new Stopped('timeout', 'No answer in time.');\n },\n fill: async (step: Extract<G9JourneyStep, { do: 'fill' }>, index: number) => {\n const anchor = await anchorFor(step.target);\n const caps = anchor.info().capabilities;\n if (step.by === 'user' || !caps?.setValue) {\n if (step.by !== 'user') set({ downgraded: [...state.downgraded, index] });\n const m = point(step.target, step.value);\n const why = await until(valueMet(step.target, step.value, null), personTimeout, m);\n m.hide();\n if (why === 'cancelled') throw new Stopped('cancelled', 'cancelled');\n if (why === 'timeout') throw new Stopped('timeout', `\"${step.target}\" was not filled in time.`);\n return;\n }\n const m = show({ target: step.target, effects: [{ type: 'highlight', pulse: true }], reveal: false });\n try {\n await caps.focus?.();\n const chars = Array.from(step.value);\n const per = Math.min(guide.settings.typeMsPerChar, chars.length > 0 ? 1200 / chars.length : 0);\n if (per > 0) {\n for (let i = 1; i < chars.length; i++) {\n check();\n await caps.setValue(chars.slice(0, i).join(''));\n await sleep(per);\n }\n }\n check();\n await caps.setValue(step.value);\n } finally {\n m.hide();\n }\n const read = caps.getValue?.();\n if (read !== undefined && read !== null && read !== step.value)\n throw new Stopped('failed', `\"${step.target}\" holds \"${read}\", not the value given.`);\n },\n select: async (step: Extract<G9JourneyStep, { do: 'select' }>, index: number) => {\n const anchor = await anchorFor(step.target);\n const caps = anchor.info().capabilities;\n const has = () => (caps?.getValue?.() ?? '').split(',').indexOf(step.item) >= 0;\n if (step.by === 'user' || !caps?.selectItem) {\n if (step.by !== 'user') set({ downgraded: [...state.downgraded, index] });\n const m = point(step.target, '');\n const why = await until(has, personTimeout, m);\n m.hide();\n if (why === 'cancelled') throw new Stopped('cancelled', 'cancelled');\n if (why === 'timeout') throw new Stopped('timeout', `\"${step.item}\" was not picked in time.`);\n return;\n }\n await caps.selectItem(step.item);\n if (caps.getValue && !has()) throw new Stopped('failed', `\"${step.target}\" did not take \"${step.item}\".`);\n },\n press: async (step: Extract<G9JourneyStep, { do: 'press' }>, index: number) => {\n const anchor = await anchorFor(step.target);\n const info = anchor.info();\n const risk = info.risk ?? 'none';\n const authority = authorityOf(step, 'press', risk);\n const label = text(step.text) || info.label?.() || step.target;\n const byPerson = step.by === 'user' || authority === 'user' || !info.capabilities?.activate;\n if (byPerson) {\n if (step.by === 'engine') set({ downgraded: [...state.downgraded, index] });\n const before = router?.where().revision ?? -1;\n const m = point(step.target, label);\n const why = await until(\n () => (router ? router.where().revision !== before : false) || !anchors.find(step.target),\n personTimeout,\n m,\n );\n m.hide();\n if (why === 'cancelled') throw new Stopped('cancelled', 'cancelled');\n if (why === 'timeout') throw new Stopped('timeout', `\"${label}\" was not pressed in time.`);\n return;\n }\n if (authority === 'engine-confirm' && risk !== 'none') {\n const changes = info.changes?.() ?? lastPlaceChanges(router) ?? [];\n const seconds = confirmSeconds(source, risk, changes.length > 0, guide.settings.confirm);\n const hl = show({ target: step.target, effects: [{ type: 'highlight', pulse: true }], reveal: false });\n let ok = false;\n try {\n ok = await guide.confirm({ title: label, source, changes, seconds, destructive: risk === 'destructive' });\n } finally {\n hl.hide();\n }\n if (!ok) throw new Stopped('declined', 'The person did not confirm.');\n }\n check();\n show({ target: step.target, effects: [{ type: 'ripple' }], timeoutMs: 600, reveal: false });\n await info.capabilities?.activate?.();\n },\n wait: async (step: Extract<G9JourneyStep, { do: 'wait' }>) => {\n const f: G9WaitFor = step.for;\n const conditions: Array<() => boolean> = [];\n if (f.route) conditions.push(routeMet(f.route));\n if (f.anchor) {\n const id = f.anchor;\n conditions.push(() => !!anchors.find(id));\n }\n if (f.value)\n conditions.push(\n valueMet(f.value.target, f.value.equals, anchors.find(f.value.target)?.info().capabilities?.getValue?.()),\n );\n if (f.ms !== undefined && conditions.length === 0) {\n await sleep(f.ms);\n return;\n }\n const why = await until(() => conditions.some((c) => c()), step.timeoutMs ?? 30000, null);\n if (why === 'cancelled') throw new Stopped('cancelled', 'cancelled');\n if (why === 'timeout') throw new Stopped('timeout', 'What the journey waited for did not happen.');\n },\n back: async () => {\n if (!router || !origin) throw new Stopped('no-router', 'There is nowhere to come back to.');\n const r = await router.restore(origin);\n if (!r.ok) throw new Stopped(r.reason, r.message);\n },\n };\n\n let origin: G9Snapshot | null = null;\n const result = (async (): Promise<G9JourneyResult> => {\n try {\n if (router && journey.steps.some((s) => s.do === 'back')) origin = await router.snapshotWithScroll();\n for (let i = 0; i < journey.steps.length; i++) {\n check();\n set({ index: i, status: 'running' });\n const step = journey.steps[i] as G9JourneyStep;\n await (steps[step.do] as (s: G9JourneyStep, i: number) => Promise<void>)(step, i);\n if (journey.pace === 'manual' && i < journey.steps.length - 1) {\n set({ status: 'waiting' });\n const why = await until(null, personTimeout, null);\n if (why === 'cancelled') throw new Stopped('cancelled', 'cancelled');\n }\n }\n set({ status: 'done' });\n return { ok: true };\n } catch (error) {\n const stopped =\n error instanceof Stopped ? error : new Stopped('failed', String((error as Error)?.message ?? error));\n set({ status: stopped.reason === 'cancelled' ? 'cancelled' : 'failed' });\n return { ok: false, failedAt: state.index, reason: stopped.reason, message: stopped.message };\n } finally {\n for (const m of Array.from(marks)) m.hide();\n }\n })();\n\n return {\n journey,\n state: {\n get: () => state,\n subscribe(l) {\n listeners.add(l);\n return () => {\n listeners.delete(l);\n };\n },\n },\n next() {\n nextWaiter?.();\n },\n cancel() {\n cancelled = true;\n for (const h of Array.from(cancelHooks)) h();\n for (const m of Array.from(marks)) m.hide();\n },\n result,\n };\n}\n\nfunction safeMatch(address: string, pattern: string): boolean {\n try {\n return matchesAddress(address, pattern);\n } catch {\n return false;\n }\n}\n\nfunction lastPlaceChanges(router: G9Router | null | undefined) {\n if (!router) return null;\n const n = router.where().segments.length;\n for (let i = n - 1; i >= 0; i--) {\n const d = router.placeAt(i)?.describeChanges?.();\n if (d && d.length > 0) return d;\n }\n return null;\n}\n"],"names":["Stopped","Error","reason","message","sleep","ms","Promise","r","g9RuntimeTimers","RANK","runJourney","journey","options","_options_personTimeoutMs","guide","router","language","source","anchors","personTimeout","state","listeners","Set","set","patch","l","Array","cancelled","nextWaiter","marks","cancelHooks","show","spec","h","text","t","undefined","textIn","check","until","condition","timeoutMs","mark","resolve","done","poll","finish","why","timer","onCancel","onNext","o","tick","met","anchorFor","id","revealAnchor","routeMet","pattern","here","tryParseAddress","safeMatch","valueMet","target","equals","start","_anchors_find_info_capabilities","v","untilOf","u","fallbackNext","authorityOf","step","action","risk","base","journeyAuthority","app","point","words","gesture","steps","_step_by","by","effects","e","m","w","windowRect","index","caps","anchor","chars","per","Math","i","read","has","_info_risk","info","_info_capabilities","_info_capabilities1","authority","label","byPerson","before","_ref1","changes","lastPlaceChanges","seconds","confirmSeconds","hl","ok","_step_timeoutMs","f","conditions","c","origin","result","s","error","stopped","String","address","matchesAddress","n","_router_placeAt","d"],"mappings":";;;;;;;;;;;;;AAuEA,MAAMA,gBAAgBC;IACpB,YACWC,MAAc,EACvBC,OAAe,CACf;QACA,KAAK,CAACA,UAAAA,iBAAAA,IAAAA,EAAAA,UAAAA,KAAAA,IAAAA,IAAAA,CAHGD,MAAM,GAANA;IAIX;AACF;AAEA,MAAME,QAAQ,CAACC,KAAe,IAAIC,QAAc,CAACC,IAAMC,gBAAgB,UAAU,CAACD,GAAGF;AACrF,MAAMI,OAAkD;IAAE,QAAQ;IAAG,kBAAkB;IAAG,MAAM;AAAE;AAG3F,SAASC,WAAWC,OAAkB,EAAEC,OAA4B;QAGnDC;IAFtB,MAAM,EAAEC,KAAK,E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sourcesContent":["import {\n confirmSeconds,\n type G9AnchorRisk,\n type G9GuideEffectSpec,\n type G9Journey,\n type G9JourneySource,\n type G9JourneyStep,\n type G9Snapshot,\n type G9StepAuthority,\n type G9Until,\n type G9WaitFor,\n g9RuntimeTimers,\n journeyAuthority,\n matchesAddress,\n textIn,\n tryParseAddress,\n} from '@g9tm/lynxcontrols-foundation';\nimport { windowRect } from '../anchor/measure';\nimport type { G9AnchorEntry } from '../anchor/registry';\nimport { revealAnchor } from '../anchor/scroll';\nimport type { G9Router } from '../route/router';\nimport type { G9GuideHandle, G9GuideOutcome, G9GuideService, G9GuideSpec } from './service';\n\n// Runs a journey on screen. Who may do what is the SOURCE policy (foundation `journeyAuthority`), read with the CALLER's\n// source — a journey cannot raise its own rights: navigation, showing and filling a form are the engine's; pressing a\n// control that saves or deletes waits for the person's confirmation behind a countdown, with every change listed; a\n// step the policy keeps from the engine falls to the person (the finger points, the guide waits). Every step ends with\n// a result; a failure stops the journey with its reason (no retries, no loops). Back ends the journey.\n\n/** What a journey runs with: the trusted source, the language, the guide and the router. */\nexport interface G9JourneyRunOptions {\n /** Who started it (trusted: the app decides, never the journey). */\n readonly source: G9JourneySource;\n readonly language: 'fa' | 'en';\n readonly guide: G9GuideService;\n readonly router?: G9Router | null;\n /** Make the policy stricter for a step (an app may never make it looser). */\n readonly authority?: (step: G9JourneyStep, risk: G9AnchorRisk) => G9StepAuthority | null;\n /** How long a person's step may take before the journey stops (ms). Default 120000. */\n readonly personTimeoutMs?: number;\n}\n\n/** The phase of a running journey. */\nexport type G9JourneyStatus = 'running' | 'waiting' | 'done' | 'failed' | 'cancelled';\n\n/** Where a running journey is. */\nexport interface G9JourneyState {\n readonly index: number;\n readonly status: G9JourneyStatus;\n /** Steps the policy gave to the person instead of the engine. */\n readonly downgraded: readonly number[];\n}\n\n/** How a journey ended: `ok`, or the step it stopped at and why. */\nexport interface G9JourneyResult {\n readonly ok: boolean;\n readonly failedAt?: number;\n readonly reason?: string;\n readonly message?: string;\n}\n\n/** A running journey: its state, «next» for a manual pace, cancel, and its result. */\nexport interface G9JourneyRun {\n readonly journey: G9Journey;\n readonly state: { get(): G9JourneyState; subscribe(l: () => void): () => void };\n /** The «next» of a manual journey (or of the bubble). */\n next(): void;\n cancel(): void;\n readonly result: Promise<G9JourneyResult>;\n}\n\nclass Stopped extends Error {\n constructor(\n readonly reason: string,\n message: string,\n ) {\n super(message);\n }\n}\n\nconst sleep = (ms: number) => new Promise<void>((r) => g9RuntimeTimers.setTimeout(r, ms));\nconst RANK: Readonly<Record<G9StepAuthority, number>> = { engine: 0, 'engine-confirm': 1, user: 2 };\n\n/** Starts a journey (validate untrusted JSON with `validateJourney` first). */\nexport function runJourney(journey: G9Journey, options: G9JourneyRunOptions): G9JourneyRun {\n const { guide, router, language, source } = options;\n const anchors = guide.anchors;\n const personTimeout = options.personTimeoutMs ?? 120000;\n let state: G9JourneyState = { index: 0, status: 'running', downgraded: [] };\n const listeners = new Set<() => void>();\n const set = (patch: Partial<G9JourneyState>) => {\n state = { ...state, ...patch };\n for (const l of Array.from(listeners)) l();\n };\n let cancelled = false;\n let nextWaiter: (() => void) | null = null;\n const marks = new Set<G9GuideHandle>();\n const cancelHooks = new Set<() => void>();\n\n const show = (spec: G9GuideSpec): G9GuideHandle => {\n const h = guide.show({ language, ...spec });\n marks.add(h);\n void h.result.then(() => marks.delete(h));\n return h;\n };\n const text = (t: Parameters<typeof textIn>[0] | undefined) => (t === undefined ? '' : textIn(t, language));\n const check = () => {\n if (cancelled) throw new Stopped('cancelled', 'cancelled');\n };\n\n /** Resolves on the first of: a condition met (polled), the run's «next», a cancel, a timeout. */\n const until = (\n condition: (() => boolean | Promise<boolean>) | null,\n timeoutMs: number,\n mark: G9GuideHandle | null,\n ): Promise<'met' | 'next' | 'timeout' | 'cancelled' | G9GuideOutcome> =>\n new Promise((resolve) => {\n let done = false;\n let poll: unknown = null;\n const finish = (why: 'met' | 'next' | 'timeout' | 'cancelled' | G9GuideOutcome) => {\n if (done) return;\n done = true;\n g9RuntimeTimers.clearTimeout(timer);\n if (poll !== null) g9RuntimeTimers.clearTimeout(poll);\n cancelHooks.delete(onCancel);\n if (nextWaiter === onNext) nextWaiter = null;\n resolve(why);\n };\n const onCancel = () => finish('cancelled');\n const onNext = () => finish('next');\n cancelHooks.add(onCancel);\n nextWaiter = onNext;\n const timer = g9RuntimeTimers.setTimeout(() => finish('timeout'), timeoutMs);\n void mark?.result.then((o) =>\n o === 'next' || o === 'done' || o === 'skip' || o === 'tapped'\n ? finish('next')\n : o === 'target-lost'\n ? finish('target-lost')\n : // Hidden by someone else (Android back ends the guide), or the host went away: the journey stops.\n o === 'hidden' || o === 'unmount'\n ? finish('cancelled')\n : undefined,\n );\n if (condition) {\n const tick = async () => {\n poll = null;\n if (done) return;\n let met = false;\n try {\n met = await condition();\n } catch {\n met = false;\n }\n if (met) finish('met');\n else if (!done) poll = g9RuntimeTimers.setTimeout(() => void tick(), 250);\n };\n void tick();\n }\n });\n\n const anchorFor = async (id: string): Promise<G9AnchorEntry> => {\n const r = await revealAnchor(anchors, id, { smooth: true });\n if (!r.anchor) throw new Stopped('not-found', `The control \"${id}\" is not on screen.`);\n return r.anchor;\n };\n\n const routeMet = (pattern: string) => () => {\n const here = router?.where().unique ?? '';\n return here === pattern || (tryParseAddress(here).ok && safeMatch(here, pattern));\n };\n\n const valueMet = (target: string, equals: string | undefined, start: string | null | undefined) => () => {\n const v = anchors.find(target)?.info().capabilities?.getValue?.();\n return equals === undefined ? v !== start : v === equals;\n };\n\n const untilOf = async (u: G9Until | undefined, mark: G9GuideHandle | null, fallbackNext: boolean) => {\n if (u === undefined || u === 'next' || u === 'tap') return until(null, personTimeout, mark);\n if ('ms' in u) {\n await sleep(u.ms);\n return 'met';\n }\n if ('route' in u) return until(routeMet(u.route), personTimeout, fallbackNext ? mark : null);\n const start = anchors.find(u.value.target)?.info().capabilities?.getValue?.();\n return until(valueMet(u.value.target, u.value.equals, start), personTimeout, fallbackNext ? mark : null);\n };\n\n const authorityOf = (\n step: G9JourneyStep,\n action: 'navigate' | 'fill' | 'press',\n risk: G9AnchorRisk,\n ): G9StepAuthority => {\n const base = journeyAuthority(source, action, risk);\n const app = options.authority?.(step, risk) ?? null;\n return app && RANK[app] > RANK[base] ? app : base;\n };\n\n const point = (target: string, words: string, gesture: 'tap' | 'longPress' = 'tap') =>\n show({\n target,\n effects: [\n { type: 'spotlight' },\n { type: 'highlight', pulse: true, opacity: 0.08 },\n { type: 'pointer', gesture },\n ...(words ? [{ type: 'caption' as const, text: words }] : []),\n ],\n buttons: ['next'],\n });\n\n const steps: Record<G9JourneyStep['do'], (step: never, index: number) => Promise<void>> = {\n go: async (step: Extract<G9JourneyStep, { do: 'go' }>) => {\n if (!router) throw new Stopped('no-router', 'There is no router to go with.');\n const by = step.by ?? 'jump';\n const r =\n by === 'jump'\n ? await router.go(step.to, {\n source: source === 'link' ? 'link' : source === 'assistant' ? 'assistant' : 'user',\n })\n : await router.walk(step.to, { by, presenter: guide.presenter() }).result;\n if (!r.ok) throw new Stopped(r.reason, r.message);\n },\n show: async (step: Extract<G9JourneyStep, { do: 'show' }>) => {\n const effects: G9GuideEffectSpec[] = step.effects\n ? step.effects.slice()\n : [{ type: 'spotlight' }, { type: 'highlight', pulse: true, opacity: 0.08 }];\n if (step.text && !effects.some((e) => e.type === 'caption')) effects.push({ type: 'caption', text: step.text });\n const m = show({ target: step.target, effects, buttons: ['next'] });\n const why = await untilOf(step.until, m, true);\n m.hide();\n if (why === 'cancelled') throw new Stopped('cancelled', 'cancelled');\n if (why === 'timeout' || why === 'target-lost')\n throw new Stopped(\n why,\n `\"${step.target}\" ${why === 'timeout' ? 'was not reached in time' : 'left the screen'}.`,\n );\n },\n say: async (step: Extract<G9JourneyStep, { do: 'say' }>) => {\n const w = windowRect();\n const m = show({\n target: { x: w.width / 2 - 1, y: w.height * 0.42, width: 2, height: 2 },\n effects: [{ type: 'caption', text: step.text, placement: 'below' }],\n buttons: ['next'],\n reveal: false,\n });\n const why = await untilOf(step.until, m, true);\n m.hide();\n if (why === 'cancelled') throw new Stopped('cancelled', 'cancelled');\n if (why === 'timeout') throw new Stopped('timeout', 'No answer in time.');\n },\n fill: async (step: Extract<G9JourneyStep, { do: 'fill' }>, index: number) => {\n const anchor = await anchorFor(step.target);\n const caps = anchor.info().capabilities;\n if (step.by === 'user' || !caps?.setValue) {\n if (step.by !== 'user') set({ downgraded: [...state.downgraded, index] });\n const m = point(step.target, step.value);\n const why = await until(valueMet(step.target, step.value, null), personTimeout, m);\n m.hide();\n if (why === 'cancelled') throw new Stopped('cancelled', 'cancelled');\n if (why === 'timeout') throw new Stopped('timeout', `\"${step.target}\" was not filled in time.`);\n return;\n }\n const m = show({ target: step.target, effects: [{ type: 'highlight', pulse: true }], reveal: false });\n try {\n await caps.focus?.();\n const chars = Array.from(step.value);\n const per = Math.min(guide.settings.typeMsPerChar, chars.length > 0 ? 1200 / chars.length : 0);\n if (per > 0) {\n for (let i = 1; i < chars.length; i++) {\n check();\n await caps.setValue(chars.slice(0, i).join(''));\n await sleep(per);\n }\n }\n check();\n await caps.setValue(step.value);\n } finally {\n m.hide();\n }\n const read = caps.getValue?.();\n if (read !== undefined && read !== null && read !== step.value)\n throw new Stopped('failed', `\"${step.target}\" holds \"${read}\", not the value given.`);\n },\n select: async (step: Extract<G9JourneyStep, { do: 'select' }>, index: number) => {\n const anchor = await anchorFor(step.target);\n const caps = anchor.info().capabilities;\n const has = () => (caps?.getValue?.() ?? '').split(',').indexOf(step.item) >= 0;\n if (step.by === 'user' || !caps?.selectItem) {\n if (step.by !== 'user') set({ downgraded: [...state.downgraded, index] });\n const m = point(step.target, '');\n const why = await until(has, personTimeout, m);\n m.hide();\n if (why === 'cancelled') throw new Stopped('cancelled', 'cancelled');\n if (why === 'timeout') throw new Stopped('timeout', `\"${step.item}\" was not picked in time.`);\n return;\n }\n await caps.selectItem(step.item);\n if (caps.getValue && !has()) throw new Stopped('failed', `\"${step.target}\" did not take \"${step.item}\".`);\n },\n press: async (step: Extract<G9JourneyStep, { do: 'press' }>, index: number) => {\n const anchor = await anchorFor(step.target);\n const info = anchor.info();\n const risk = info.risk ?? 'none';\n const authority = authorityOf(step, 'press', risk);\n const label = text(step.text) || info.label?.() || step.target;\n const byPerson = step.by === 'user' || authority === 'user' || !info.capabilities?.activate;\n if (byPerson) {\n if (step.by === 'engine') set({ downgraded: [...state.downgraded, index] });\n const before = router?.where().revision ?? -1;\n const m = point(step.target, label);\n const why = await until(\n () => (router ? router.where().revision !== before : false) || !anchors.find(step.target),\n personTimeout,\n m,\n );\n m.hide();\n if (why === 'cancelled') throw new Stopped('cancelled', 'cancelled');\n if (why === 'timeout') throw new Stopped('timeout', `\"${label}\" was not pressed in time.`);\n return;\n }\n if (authority === 'engine-confirm' && risk !== 'none') {\n const changes = info.changes?.() ?? lastPlaceChanges(router) ?? [];\n const seconds = confirmSeconds(source, risk, changes.length > 0, guide.settings.confirm);\n // No highlight on the control while its confirmation is open: the guide's layer paints above every sheet, so a\n // pulsing ring on a footer button stood over the confirmation's own buttons (seen on a device, 2026-11-12). The\n // sheet names the action in its title; the ripple after a yes shows where the guide pressed.\n // A journey that presses more than one control says which press this is («2 of 3»): a person who confirms the\n // first of three writes should know two more are coming.\n const presses = journey.steps.filter((s) => s.do === 'press').length;\n const progress = {\n index: journey.steps.slice(0, index + 1).filter((s) => s.do === 'press').length,\n total: presses,\n };\n const dismiss = () => guide.dismissConfirmation();\n cancelHooks.add(dismiss);\n let ok = false;\n try {\n ok = await guide.confirm({\n title: label,\n source,\n changes,\n seconds,\n destructive: risk === 'destructive',\n progress,\n });\n } finally {\n cancelHooks.delete(dismiss);\n }\n if (!ok) throw new Stopped('declined', 'The person did not confirm.');\n }\n check();\n show({ target: step.target, effects: [{ type: 'ripple' }], timeoutMs: 600, reveal: false });\n await info.capabilities?.activate?.();\n },\n wait: async (step: Extract<G9JourneyStep, { do: 'wait' }>) => {\n const f: G9WaitFor = step.for;\n const conditions: Array<() => boolean> = [];\n if (f.route) conditions.push(routeMet(f.route));\n if (f.anchor) {\n const id = f.anchor;\n conditions.push(() => !!anchors.find(id));\n }\n if (f.value)\n conditions.push(\n valueMet(f.value.target, f.value.equals, anchors.find(f.value.target)?.info().capabilities?.getValue?.()),\n );\n if (f.ms !== undefined && conditions.length === 0) {\n await sleep(f.ms);\n return;\n }\n const why = await until(() => conditions.some((c) => c()), step.timeoutMs ?? 30000, null);\n if (why === 'cancelled') throw new Stopped('cancelled', 'cancelled');\n if (why === 'timeout') throw new Stopped('timeout', 'What the journey waited for did not happen.');\n },\n back: async () => {\n if (!router || !origin) throw new Stopped('no-router', 'There is nowhere to come back to.');\n const r = await router.restore(origin);\n if (!r.ok) throw new Stopped(r.reason, r.message);\n },\n };\n\n let origin: G9Snapshot | null = null;\n const result = (async (): Promise<G9JourneyResult> => {\n try {\n if (router && journey.steps.some((s) => s.do === 'back')) origin = await router.snapshotWithScroll();\n for (let i = 0; i < journey.steps.length; i++) {\n check();\n set({ index: i, status: 'running' });\n const step = journey.steps[i] as G9JourneyStep;\n await (steps[step.do] as (s: G9JourneyStep, i: number) => Promise<void>)(step, i);\n if (journey.pace === 'manual' && i < journey.steps.length - 1) {\n set({ status: 'waiting' });\n const why = await until(null, personTimeout, null);\n if (why === 'cancelled') throw new Stopped('cancelled', 'cancelled');\n }\n }\n set({ status: 'done' });\n return { ok: true };\n } catch (error) {\n const stopped =\n error instanceof Stopped ? error : new Stopped('failed', String((error as Error)?.message ?? error));\n set({ status: stopped.reason === 'cancelled' ? 'cancelled' : 'failed' });\n return { ok: false, failedAt: state.index, reason: stopped.reason, message: stopped.message };\n } finally {\n for (const m of Array.from(marks)) m.hide();\n }\n })();\n\n return {\n journey,\n state: {\n get: () => state,\n subscribe(l) {\n listeners.add(l);\n return () => {\n listeners.delete(l);\n };\n },\n },\n next() {\n nextWaiter?.();\n },\n cancel() {\n cancelled = true;\n for (const h of Array.from(cancelHooks)) h();\n for (const m of Array.from(marks)) m.hide();\n },\n result,\n };\n}\n\nfunction safeMatch(address: string, pattern: string): boolean {\n try {\n return matchesAddress(address, pattern);\n } catch {\n return false;\n }\n}\n\nfunction lastPlaceChanges(router: G9Router | null | undefined) {\n if (!router) return null;\n const n = router.where().segments.length;\n for (let i = n - 1; i >= 0; i--) {\n const d = router.placeAt(i)?.describeChanges?.();\n if (d && d.length > 0) return d;\n }\n return null;\n}\n"],"names":["Stopped","Error","reason","message","sleep","ms","Promise","r","g9RuntimeTimers","RANK","runJourney","journey","options","_options_personTimeoutMs","guide","router","language","source","anchors","personTimeout","state","listeners","Set","set","patch","l","Array","cancelled","nextWaiter","marks","cancelHooks","show","spec","h","text","t","undefined","textIn","check","until","condition","timeoutMs","mark","resolve","done","poll","finish","why","timer","onCancel","onNext","o","tick","met","anchorFor","id","revealAnchor","routeMet","pattern","here","tryParseAddress","safeMatch","valueMet","target","equals","start","_anchors_find_info_capabilities","v","untilOf","u","fallbackNext","authorityOf","step","action","risk","base","journeyAuthority","app","point","words","gesture","steps","_step_by","by","effects","e","m","w","windowRect","index","caps","anchor","chars","per","Math","i","read","has","_info_risk","info","_info_capabilities","_info_capabilities1","authority","label","byPerson","before","_ref1","changes","lastPlaceChanges","seconds","confirmSeconds","presses","s","progress","dismiss","ok","_step_timeoutMs","f","conditions","c","origin","result","error","stopped","String","address","matchesAddress","n","_router_placeAt","d"],"mappings":";;;;;;;;;;;;;AAuEA,MAAMA,gBAAgBC;IACpB,YACWC,MAAc,EACvBC,OAAe,CACf;QACA,KAAK,CAACA,UAAAA,iBAAAA,IAAAA,EAAAA,UAAAA,KAAAA,IAAAA,IAAAA,CAHGD,MAAM,GAANA;IAIX;AACF;AAEA,MAAME,QAAQ,CAACC,KAAe,IAAIC,QAAc,CAACC,IAAMC,gBAAgB,UAAU,CAACD,GAAGF;AACrF,MAAMI,OAAkD;IAAE,QAAQ;IAAG,kBAAkB;IAAG,MAAM;AAAE;AAG3F,SAASC,WAAWC,OAAkB,EAAEC,OAA4B;QAGnDC;IAF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AAAA,IAAAA,QAAAA,CAAAA,kCAAAA,gBAAmB,eAAe,AAAD,IAAjCA,KAAAA,IAAAA,gCAAAA,IAAAA,CAAAA;QACV,IAAIC,KAAKA,EAAE,MAAM,GAAG,GAAG,OAAOA;IAChC;IACA,OAAO;AACT"}
|
package/dist/guide/service.d.ts
CHANGED
|
@@ -46,6 +46,11 @@ export interface G9ConfirmRequest {
|
|
|
46
46
|
readonly changes: readonly G9ChangeLine[];
|
|
47
47
|
readonly seconds: number;
|
|
48
48
|
readonly destructive: boolean;
|
|
49
|
+
/** Where this press stands in a journey that presses more than one control (shown when `total` > 1). */
|
|
50
|
+
readonly progress?: {
|
|
51
|
+
readonly index: number;
|
|
52
|
+
readonly total: number;
|
|
53
|
+
};
|
|
49
54
|
}
|
|
50
55
|
/** The guide of one host: marks, ready-made combinations, the walk presenter and the countdown confirmation. */
|
|
51
56
|
export interface G9GuideService {
|
|
@@ -67,8 +72,13 @@ export interface G9GuideService {
|
|
|
67
72
|
hint(target: G9GuideTarget): G9GuideHandle;
|
|
68
73
|
/** The presenter a router walk draws its steps with. */
|
|
69
74
|
presenter(): G9WalkPresenter;
|
|
70
|
-
/**
|
|
75
|
+
/**
|
|
76
|
+
* Asks the person to confirm a write in a sheet: the changes, the source, a countdown on the confirm button. Resolves
|
|
77
|
+
* once the sheet has gone: true only for the unlocked confirm. A newer request declines the open one.
|
|
78
|
+
*/
|
|
71
79
|
confirm(request: G9ConfirmRequest): Promise<boolean>;
|
|
80
|
+
/** Declines the open confirmation, if any (a journey that is cancelled). */
|
|
81
|
+
dismissConfirmation(): void;
|
|
72
82
|
readonly confirmation: {
|
|
73
83
|
get(): G9ConfirmRequest | null;
|
|
74
84
|
subscribe(l: () => void): () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/guide/service.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAA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