@kehto/paja 0.13.0 → 0.15.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 +46 -13
- package/dist/browser-host.js +431 -79
- package/dist/browser-host.js.map +1 -1
- package/dist/{chunk-3KMCJVEA.js → chunk-DTRRHXYY.js} +28 -2
- package/dist/{chunk-3KMCJVEA.js.map → chunk-DTRRHXYY.js.map} +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/{server-BUL6CdbZ.d.ts → server-Ia5n1Bqv.d.ts} +1 -0
- package/package.json +6 -6
|
@@ -371,7 +371,7 @@ function createPajaHostConfig(options, now = /* @__PURE__ */ new Date()) {
|
|
|
371
371
|
};
|
|
372
372
|
}
|
|
373
373
|
function createPajaRuntimeHostConfig(options = {}, now = /* @__PURE__ */ new Date()) {
|
|
374
|
-
const base = createPajaHostConfigBase(normalizePajaSimulation(
|
|
374
|
+
const base = createPajaHostConfigBase(normalizePajaSimulation(options.simulation));
|
|
375
375
|
return {
|
|
376
376
|
...base,
|
|
377
377
|
target: {
|
|
@@ -528,6 +528,7 @@ function renderPajaHtml(config) {
|
|
|
528
528
|
.signer-controls { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 6px; }
|
|
529
529
|
.signer-controls button[data-active="true"] { border-color: var(--accent); color: var(--text); background: #2a2a1d; }
|
|
530
530
|
.signer-controls input { min-width: 0; padding: 0 8px; }
|
|
531
|
+
.signer-consent-clear { width: 100%; margin-top: 6px; }
|
|
531
532
|
.pointer-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
|
|
532
533
|
.pointer-status { min-width: 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
|
|
533
534
|
.log-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
|
|
@@ -555,6 +556,13 @@ function renderPajaHtml(config) {
|
|
|
555
556
|
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
|
|
556
557
|
.confirmation-dialog { width: min(520px, calc(100% - 48px)); max-width: none; border: 0; padding: 0; background: transparent; color: var(--text); }
|
|
557
558
|
.confirmation-dialog::backdrop { background: rgb(0 0 0 / 0.68); }
|
|
559
|
+
.signer-consent { margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 4px; display: grid; gap: 8px; }
|
|
560
|
+
.signer-consent[hidden] { display: none; }
|
|
561
|
+
.signer-consent legend { color: var(--accent); padding: 0 5px; }
|
|
562
|
+
.signer-consent label { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 8px; }
|
|
563
|
+
.signer-consent input { margin-top: 3px; }
|
|
564
|
+
.signer-consent-trust { padding: 8px; border: 1px solid #9a5d2f; border-radius: 4px; background: #332014; }
|
|
565
|
+
.signer-consent-warning { display: block; margin-top: 4px; color: #ffbd80; font-weight: 700; }
|
|
558
566
|
.config-dialog { width: min(620px, calc(100% - 48px)); max-width: none; max-height: min(760px, calc(100% - 48px)); border: 0; padding: 0; background: transparent; color: var(--text); }
|
|
559
567
|
.config-dialog::backdrop { background: rgb(0 0 0 / 0.68); }
|
|
560
568
|
.config-dialog .dialog { width: 100%; max-height: inherit; grid-template-rows: auto auto minmax(0, 1fr) auto auto; }
|
|
@@ -622,6 +630,7 @@ function renderPajaHtml(config) {
|
|
|
622
630
|
<div class="section-title">Signer</div>
|
|
623
631
|
<div class="signer" id="signer-status">loading</div>
|
|
624
632
|
<div class="signer-controls" id="signer-controls"></div>
|
|
633
|
+
<button type="button" class="signer-consent-clear" id="signer-consent-clear" hidden>Forget remembered approvals</button>
|
|
625
634
|
</section>
|
|
626
635
|
<section class="section">
|
|
627
636
|
<div class="section-title">Messages</div>
|
|
@@ -657,6 +666,23 @@ function renderConfirmationDialog() {
|
|
|
657
666
|
<div class="dialog-title" id="paja-confirmation-title">Confirm Paja request</div>
|
|
658
667
|
<div class="dialog-copy" id="paja-confirmation-summary"></div>
|
|
659
668
|
<pre class="dialog-details" id="paja-confirmation-details"></pre>
|
|
669
|
+
<fieldset class="signer-consent" id="paja-signer-consent" hidden>
|
|
670
|
+
<legend>Remember this signing choice</legend>
|
|
671
|
+
<label>
|
|
672
|
+
<input type="radio" name="paja-signer-consent" id="paja-signer-consent-once" value="once" checked>
|
|
673
|
+
<span>Sign this event only</span>
|
|
674
|
+
</label>
|
|
675
|
+
<label>
|
|
676
|
+
<input type="radio" name="paja-signer-consent" id="paja-signer-consent-kind" value="kind">
|
|
677
|
+
<span>Always sign kind <code id="paja-signer-consent-kind-value"></code> for this napplet identity and target</span>
|
|
678
|
+
</label>
|
|
679
|
+
<label class="signer-consent-trust">
|
|
680
|
+
<input type="radio" name="paja-signer-consent" id="paja-signer-consent-napplet" value="napplet" aria-describedby="paja-signer-consent-warning">
|
|
681
|
+
<span>Trust <strong id="paja-signer-consent-napplet-value"></strong> for every event kind at this target
|
|
682
|
+
<span class="signer-consent-warning" id="paja-signer-consent-warning">Warning: Paja will sign any event this napplet identity requests without asking again. Direct-target trust survives code reloads at the same URL.</span>
|
|
683
|
+
</span>
|
|
684
|
+
</label>
|
|
685
|
+
</fieldset>
|
|
660
686
|
<div class="dialog-actions">
|
|
661
687
|
<button type="button" id="paja-confirmation-deny">Deny</button>
|
|
662
688
|
<button type="button" id="paja-confirmation-approve">Approve</button>
|
|
@@ -1539,4 +1565,4 @@ export {
|
|
|
1539
1565
|
probeTargetCors,
|
|
1540
1566
|
startPajaServer
|
|
1541
1567
|
};
|
|
1542
|
-
//# sourceMappingURL=chunk-
|
|
1568
|
+
//# sourceMappingURL=chunk-DTRRHXYY.js.map
|