@luci-dev/capture 0.7.0 → 0.8.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/component.d.ts.map +1 -1
- package/dist/component.js +35 -13
- package/dist/component.js.map +1 -1
- package/dist/dom.js +3 -3
- package/dist/dom.js.map +1 -1
- package/dist/layout.js +1 -1
- package/dist/layout.js.map +1 -1
- package/dist/luci-capture.js +4769 -1470
- package/dist/ui/devSettings.d.ts.map +1 -1
- package/dist/ui/devSettings.js +5 -9
- package/dist/ui/devSettings.js.map +1 -1
- package/dist/ui/figmaPanel.d.ts +80 -0
- package/dist/ui/figmaPanel.d.ts.map +1 -0
- package/dist/ui/figmaPanel.js +290 -0
- package/dist/ui/figmaPanel.js.map +1 -0
- package/dist/ui/index.d.ts +3 -2
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +2 -1
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/mount.d.ts +7 -1
- package/dist/ui/mount.d.ts.map +1 -1
- package/dist/ui/mount.js +11 -2
- package/dist/ui/mount.js.map +1 -1
- package/dist/ui/onSpec.d.ts +34 -1
- package/dist/ui/onSpec.d.ts.map +1 -1
- package/dist/ui/onSpec.js +313 -30
- package/dist/ui/onSpec.js.map +1 -1
- package/dist/ui/specWatcher.d.ts +31 -10
- package/dist/ui/specWatcher.d.ts.map +1 -1
- package/dist/ui/specWatcher.js +825 -146
- package/dist/ui/specWatcher.js.map +1 -1
- package/dist/ui/styles.d.ts +3 -3
- package/dist/ui/styles.d.ts.map +1 -1
- package/dist/ui/styles.js +79 -12
- package/dist/ui/styles.js.map +1 -1
- package/dist/ui/toolbar.d.ts +18 -0
- package/dist/ui/toolbar.d.ts.map +1 -1
- package/dist/ui/toolbar.js +95 -17
- package/dist/ui/toolbar.js.map +1 -1
- package/dist/ui/tools.d.ts +6 -1
- package/dist/ui/tools.d.ts.map +1 -1
- package/dist/ui/tools.js +18 -2
- package/dist/ui/tools.js.map +1 -1
- package/package.json +3 -3
package/dist/ui/styles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/ui/styles.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/ui/styles.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW,s65EA+dvB,CAAC;AAEF,uGAAuG;AACvG,eAAO,MAAM,WAAW,uykBAiVvB,CAAC;AAEF,eAAO,MAAM,gBAAgB,0s+FAAmC,CAAC"}
|
package/dist/ui/styles.js
CHANGED
|
@@ -530,6 +530,7 @@ export const ON_SPEC_CSS = `
|
|
|
530
530
|
}
|
|
531
531
|
.luci-theme button.os-pill[data-side="right"] { left: auto; right: var(--luci-space-12); }
|
|
532
532
|
.luci-theme button.os-pill:hover:not(:disabled) { background: var(--luci-color-bar-hover); }
|
|
533
|
+
.luci-theme button.os-pill:focus:not(:focus-visible) { outline: none; }
|
|
533
534
|
.luci-theme button.os-pill:focus-visible { outline: 2px solid var(--luci-color-focus); outline-offset: 2px; }
|
|
534
535
|
@media (prefers-reduced-motion: reduce) { .luci-theme button.os-pill { transition: none; } }
|
|
535
536
|
|
|
@@ -563,14 +564,15 @@ export const ON_SPEC_CSS = `
|
|
|
563
564
|
transition: transform var(--luci-motion-fast), background-color var(--luci-motion-fast);
|
|
564
565
|
}
|
|
565
566
|
.luci-theme button.os-pin::before { inset: -8px; }
|
|
566
|
-
.luci-theme button.os-pin[data-spec-state="on-spec"] { background: var(--luci-color-success-bg); color: var(--luci-color-success); }
|
|
567
|
-
.luci-theme button.os-pin[data-spec-state="drift"] { background: var(--luci-color-warning-bg); color: var(--luci-color-warning); }
|
|
567
|
+
.luci-theme button.os-pin[data-spec-state="on-spec"] { background: var(--luci-color-success-bg); color: color-mix(in srgb, var(--luci-color-success) 60%, var(--luci-color-muzzle-900)); }
|
|
568
|
+
.luci-theme button.os-pin[data-spec-state="drift"] { background: var(--luci-color-warning-bg); color: color-mix(in srgb, var(--luci-color-warning) 60%, var(--luci-color-muzzle-900)); }
|
|
568
569
|
.luci-theme button.os-pin[data-spec-state="excused"] { background: var(--luci-color-surface-raised); color: var(--luci-color-ink); }
|
|
569
570
|
.luci-theme button.os-pin[data-spec-state="no-rule"] { background: var(--luci-color-bar); color: var(--luci-color-bar-ink); }
|
|
570
571
|
.luci-theme button.os-pin:hover:not(:disabled) { transform: scale(1.06); }
|
|
571
572
|
.luci-theme button.os-pin[data-spec-state="on-spec"]:hover:not(:disabled) { background: var(--luci-color-success-bg); }
|
|
572
573
|
.luci-theme button.os-pin[data-spec-state="drift"]:hover:not(:disabled) { background: var(--luci-color-warning-bg); }
|
|
573
574
|
.luci-theme button.os-pin[data-selected="true"] { box-shadow: 0 0 0 2px var(--luci-color-focus), var(--luci-shadow-float); }
|
|
575
|
+
.luci-theme button.os-pin:focus:not(:focus-visible) { outline: none; }
|
|
574
576
|
.luci-theme button.os-pin:focus-visible { outline: 2px solid var(--luci-color-focus); outline-offset: 2px; }
|
|
575
577
|
.os-pin-count { font-weight: 700; line-height: 1; }
|
|
576
578
|
@media (prefers-reduced-motion: reduce) { .luci-theme button.os-pin { transition: none; } }
|
|
@@ -579,6 +581,8 @@ export const ON_SPEC_CSS = `
|
|
|
579
581
|
.os-popover {
|
|
580
582
|
position: fixed;
|
|
581
583
|
z-index: 2147483647;
|
|
584
|
+
box-sizing: border-box;
|
|
585
|
+
max-width: calc(100vw - 24px);
|
|
582
586
|
max-height: min(65vh, 520px);
|
|
583
587
|
display: flex;
|
|
584
588
|
flex-direction: column;
|
|
@@ -589,16 +593,19 @@ export const ON_SPEC_CSS = `
|
|
|
589
593
|
border: 1px solid var(--luci-color-stroke-subtle);
|
|
590
594
|
border-radius: var(--luci-radius-xl);
|
|
591
595
|
box-shadow: var(--luci-elevation);
|
|
596
|
+
overflow-x: hidden;
|
|
592
597
|
overflow-y: auto;
|
|
593
598
|
overscroll-behavior: contain;
|
|
594
599
|
font-family: var(--luci-font-body);
|
|
595
600
|
}
|
|
601
|
+
.os-popover > * { min-width: 0; max-width: 100%; }
|
|
596
602
|
|
|
597
603
|
.os-panel {
|
|
598
604
|
position: fixed;
|
|
599
605
|
bottom: 56px;
|
|
600
606
|
left: var(--luci-space-12);
|
|
601
607
|
z-index: 2147483646;
|
|
608
|
+
box-sizing: border-box;
|
|
602
609
|
width: min(460px, calc(100vw - 24px));
|
|
603
610
|
max-height: min(72vh, 620px);
|
|
604
611
|
display: flex;
|
|
@@ -609,6 +616,7 @@ export const ON_SPEC_CSS = `
|
|
|
609
616
|
color: var(--luci-color-ink);
|
|
610
617
|
border-radius: var(--luci-radius-xl);
|
|
611
618
|
box-shadow: var(--luci-elevation);
|
|
619
|
+
overflow-x: hidden;
|
|
612
620
|
overflow-y: auto;
|
|
613
621
|
overscroll-behavior: contain;
|
|
614
622
|
font-family: var(--luci-font-body);
|
|
@@ -622,15 +630,16 @@ export const ON_SPEC_CSS = `
|
|
|
622
630
|
.os-row {
|
|
623
631
|
display: flex;
|
|
624
632
|
flex-direction: column;
|
|
633
|
+
min-width: 0;
|
|
625
634
|
gap: var(--luci-space-8);
|
|
626
635
|
padding: var(--luci-space-12);
|
|
627
636
|
background: var(--luci-color-surface-raised);
|
|
628
637
|
border: 1px solid var(--luci-color-stroke-subtle);
|
|
629
638
|
border-radius: var(--luci-radius-lg);
|
|
630
639
|
}
|
|
631
|
-
.os-row-top { display: flex; align-items: center; justify-content: space-between; gap: var(--luci-space-8); flex-wrap:
|
|
632
|
-
.os-row-right { display:
|
|
633
|
-
.os-comp-meta { min-width: 0; flex: 1; }
|
|
640
|
+
.os-row-top { display: flex; align-items: center; justify-content: space-between; gap: var(--luci-space-4) var(--luci-space-8); flex-wrap: wrap; min-width: 0; }
|
|
641
|
+
.os-row-right { display: flex; align-items: center; justify-content: flex-end; gap: var(--luci-space-4); flex-wrap: wrap; flex: 0 1 auto; min-width: 0; max-width: 100%; }
|
|
642
|
+
.os-comp-meta { min-width: 0; flex: 1 1 140px; }
|
|
634
643
|
.os-comp-heading { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
|
635
644
|
.luci-theme button.os-comp-link {
|
|
636
645
|
display: flex;
|
|
@@ -655,18 +664,26 @@ export const ON_SPEC_CSS = `
|
|
|
655
664
|
display: inline-flex;
|
|
656
665
|
align-items: center;
|
|
657
666
|
gap: var(--luci-space-4);
|
|
667
|
+
min-width: 0;
|
|
668
|
+
max-width: 100%;
|
|
669
|
+
overflow: hidden;
|
|
658
670
|
padding: 2px var(--luci-space-8);
|
|
659
671
|
border-radius: var(--luci-radius-full);
|
|
660
672
|
font-size: var(--luci-type-micro-size);
|
|
661
673
|
font-weight: 600;
|
|
662
674
|
white-space: nowrap;
|
|
663
675
|
}
|
|
664
|
-
.os-badge
|
|
665
|
-
.os-badge[data-state="
|
|
666
|
-
.os-badge[data-state="
|
|
676
|
+
.os-badge > span, .fg-chip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
677
|
+
.os-badge[data-state="on-spec"] { background: var(--luci-color-success-bg); color: color-mix(in srgb, var(--luci-color-success) 60%, var(--luci-color-muzzle-900)); }
|
|
678
|
+
.os-badge[data-state="drift"] { background: var(--luci-color-warning-bg); color: color-mix(in srgb, var(--luci-color-warning) 60%, var(--luci-color-muzzle-900)); }
|
|
679
|
+
.os-badge[data-state="no-rule"] { background: var(--luci-color-surface-sunken); color: var(--luci-color-muzzle-700); }
|
|
680
|
+
[data-theme="dark"] .os-badge[data-state="no-rule"] { color: var(--luci-color-ink-secondary); }
|
|
681
|
+
@media (prefers-color-scheme: dark) {
|
|
682
|
+
.luci-theme:not([data-theme="light"]) .os-badge[data-state="no-rule"] { color: var(--luci-color-ink-secondary); }
|
|
683
|
+
}
|
|
667
684
|
.os-badge[data-state="excused"] { background: var(--luci-color-surface-sunken); color: var(--luci-color-ink); }
|
|
668
|
-
.os-sub { margin: 0; color: var(--luci-color-ink-secondary); font-size: var(--luci-type-small-size); line-height: var(--luci-type-small-line); }
|
|
669
|
-
.os-diffs { margin: 0; padding-left: var(--luci-space-16); display: flex; flex-direction: column; gap: var(--luci-space-4); font-size: var(--luci-type-small-size); color: var(--luci-color-ink); }
|
|
685
|
+
.os-sub { margin: 0; color: var(--luci-color-ink-secondary); font-size: var(--luci-type-small-size); line-height: var(--luci-type-small-line); overflow-wrap: anywhere; }
|
|
686
|
+
.os-diffs { margin: 0; padding-left: var(--luci-space-16); display: flex; flex-direction: column; gap: var(--luci-space-4); font-size: var(--luci-type-small-size); color: var(--luci-color-ink); overflow-wrap: anywhere; }
|
|
670
687
|
.os-actions { display: flex; align-items: center; gap: var(--luci-space-8); flex-wrap: wrap; }
|
|
671
688
|
.os-inline-box {
|
|
672
689
|
display: flex;
|
|
@@ -676,7 +693,7 @@ export const ON_SPEC_CSS = `
|
|
|
676
693
|
background: var(--luci-color-surface-sunken);
|
|
677
694
|
border-radius: var(--luci-radius-md);
|
|
678
695
|
}
|
|
679
|
-
.os-inline-box input {
|
|
696
|
+
:is(.os-inline-box, .confirm-card) input:not([type="radio"]):not([type="checkbox"]) {
|
|
680
697
|
width: 100%;
|
|
681
698
|
box-sizing: border-box;
|
|
682
699
|
padding: 6px var(--luci-space-8);
|
|
@@ -686,13 +703,32 @@ export const ON_SPEC_CSS = `
|
|
|
686
703
|
color: var(--luci-color-ink);
|
|
687
704
|
font: inherit;
|
|
688
705
|
}
|
|
706
|
+
.os-choice-list { display: flex; flex-direction: column; gap: var(--luci-space-4); }
|
|
707
|
+
.os-radio-choice {
|
|
708
|
+
display: flex;
|
|
709
|
+
align-items: center;
|
|
710
|
+
gap: var(--luci-space-8);
|
|
711
|
+
padding: var(--luci-space-4) var(--luci-space-8);
|
|
712
|
+
border: 1px solid var(--luci-color-stroke-subtle);
|
|
713
|
+
border-radius: var(--luci-radius-sm);
|
|
714
|
+
background: var(--luci-color-surface-raised);
|
|
715
|
+
color: var(--luci-color-ink);
|
|
716
|
+
font-size: var(--luci-type-small-size);
|
|
717
|
+
cursor: pointer;
|
|
718
|
+
}
|
|
719
|
+
.os-radio-choice input[type="radio"] {
|
|
720
|
+
flex: none;
|
|
721
|
+
width: auto;
|
|
722
|
+
margin: 0;
|
|
723
|
+
accent-color: var(--luci-color-primary);
|
|
724
|
+
}
|
|
689
725
|
.os-challenge {
|
|
690
726
|
display: flex;
|
|
691
727
|
flex-direction: column;
|
|
692
728
|
gap: var(--luci-space-8);
|
|
693
729
|
padding: var(--luci-space-12);
|
|
694
730
|
background: var(--luci-color-warning-bg);
|
|
695
|
-
color: var(--luci-color-
|
|
731
|
+
color: var(--luci-color-muzzle-900);
|
|
696
732
|
border-radius: var(--luci-radius-md);
|
|
697
733
|
font-size: var(--luci-type-small-size);
|
|
698
734
|
}
|
|
@@ -755,6 +791,37 @@ export const ON_SPEC_CSS = `
|
|
|
755
791
|
.upd-banner-result { display: flex; flex-direction: column; gap: var(--luci-space-4); font-size: var(--luci-type-small-size); color: var(--luci-color-ink-secondary); }
|
|
756
792
|
.upd-notes { display: flex; flex-direction: column; gap: var(--luci-space-4); padding: var(--luci-space-8) var(--luci-space-12); border-radius: var(--luci-radius-md); background: var(--luci-color-surface-sunken); font-size: var(--luci-type-small-size); }
|
|
757
793
|
.upd-notes-body { margin: 0; font: var(--luci-type-small-weight) var(--luci-type-small-size)/var(--luci-type-small-line) var(--luci-font-body); white-space: pre-wrap; word-break: break-word; color: var(--luci-color-ink); max-height: 140px; overflow-y: auto; }
|
|
794
|
+
.os-tabs { display: flex; flex-wrap: nowrap; gap: var(--luci-space-4); padding-bottom: var(--luci-space-4); border-bottom: 1px solid var(--luci-color-stroke-subtle); }
|
|
795
|
+
.luci-theme button.os-tab { display: inline-flex; align-items: center; flex-wrap: nowrap; white-space: nowrap; gap: var(--luci-space-4); padding: var(--luci-space-4) var(--luci-space-8); border-radius: var(--luci-radius-md); border: 1px solid transparent; background: transparent; color: var(--luci-color-ink-secondary); font: 600 var(--luci-type-small-size)/1.3 var(--luci-font-body); cursor: pointer; }
|
|
796
|
+
.luci-theme button.os-tab[aria-selected="true"] { background: var(--luci-color-surface-raised); color: var(--luci-color-ink); border-color: var(--luci-color-stroke-subtle); }
|
|
797
|
+
.fg-panel { display: flex; flex-direction: column; gap: var(--luci-space-12); }
|
|
798
|
+
.fg-summary-row { display: flex; align-items: center; justify-content: space-between; gap: var(--luci-space-8); flex-wrap: wrap; }
|
|
799
|
+
.fg-section { display: flex; flex-direction: column; gap: var(--luci-space-8); }
|
|
800
|
+
.fg-section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--luci-space-8); }
|
|
801
|
+
.fg-section-title { margin: 0; display: inline-flex; align-items: center; gap: var(--luci-space-4); font-size: var(--luci-type-small-size); font-weight: 600; color: var(--luci-color-ink); }
|
|
802
|
+
.fg-group-label { display: inline-flex; align-items: center; gap: var(--luci-space-4); font-size: var(--luci-type-micro-size); font-weight: 600; color: var(--luci-color-ink-secondary); }
|
|
803
|
+
.fg-diff-group { display: flex; flex-direction: column; gap: var(--luci-space-4); }
|
|
804
|
+
.fg-chip-row { display: inline-flex; align-items: center; gap: var(--luci-space-4); flex-wrap: wrap; }
|
|
805
|
+
.fg-chip { display: inline-flex; align-items: center; gap: var(--luci-space-4); min-width: 0; max-width: 100%; overflow: hidden; padding: 2px var(--luci-space-8); border-radius: var(--luci-radius-full); background: var(--luci-color-surface-sunken); color: var(--luci-color-muzzle-700); font: 600 var(--luci-type-micro-size)/1.3 var(--luci-font-body); }
|
|
806
|
+
[data-theme="dark"] .fg-chip:not([data-kind="local-override"]):not([data-kind="needs-match"]) { color: var(--luci-color-ink-secondary); }
|
|
807
|
+
@media (prefers-color-scheme: dark) {
|
|
808
|
+
.luci-theme:not([data-theme="light"]) .fg-chip:not([data-kind="local-override"]):not([data-kind="needs-match"]) { color: var(--luci-color-ink-secondary); }
|
|
809
|
+
}
|
|
810
|
+
.fg-chip[data-kind="local-override"] { background: var(--luci-color-primary-soft); color: var(--luci-color-ink); }
|
|
811
|
+
.fg-chip[data-kind="needs-match"] { background: var(--luci-color-warning-bg); color: var(--luci-color-muzzle-900); }
|
|
812
|
+
.fg-prompt { margin: 0; font-size: var(--luci-type-small-size); color: var(--luci-color-ink); }
|
|
813
|
+
.fg-options { display: flex; flex-wrap: wrap; gap: var(--luci-space-4); min-width: 0; max-width: 100%; }
|
|
814
|
+
.luci-theme button.fg-option-btn { display: inline-flex; align-items: center; gap: var(--luci-space-4); max-width: 100%; min-width: 0; overflow: hidden; white-space: nowrap; text-align: left; }
|
|
815
|
+
.fg-opt-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
816
|
+
.fg-score { flex: none; font-family: var(--luci-font-code); font-size: var(--luci-type-micro-size); color: var(--luci-color-ink-secondary); }
|
|
817
|
+
.fg-opt-detail { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--luci-type-micro-size); color: var(--luci-color-ink-secondary); }
|
|
818
|
+
.fg-custom-row { display: flex; gap: var(--luci-space-4); align-items: center; }
|
|
819
|
+
.fg-custom-row input { flex: 1; }
|
|
820
|
+
.fg-diff-values { margin: 0; font-size: var(--luci-type-micro-size); color: var(--luci-color-ink-secondary); }
|
|
821
|
+
.fg-overrides-list { display: flex; flex-direction: column; gap: var(--luci-space-4); margin-top: var(--luci-space-4); }
|
|
822
|
+
.fg-override-item { display: flex; align-items: center; gap: var(--luci-space-4); flex-wrap: wrap; font-size: var(--luci-type-micro-size); color: var(--luci-color-ink-secondary); }
|
|
823
|
+
.luci-theme .os-status-banner { align-items: center; justify-content: space-between; gap: var(--luci-space-8); padding: var(--luci-space-8) var(--luci-space-12); font-size: var(--luci-type-small-size); }
|
|
824
|
+
.luci-theme .os-status-banner .os-on-spec-line > .icon { color: var(--status); }
|
|
758
825
|
`;
|
|
759
826
|
export const FULL_TOOLBAR_CSS = `${TOOLBAR_CSS}\n${ON_SPEC_CSS}`;
|
|
760
827
|
//# sourceMappingURL=styles.js.map
|
package/dist/ui/styles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../src/ui/styles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,MAAM,CAAC,MAAM,WAAW,GAAG;;EAEzB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6dP,CAAC;AAEF,uGAAuG;AACvG,MAAM,CAAC,MAAM,WAAW,GAAG
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../src/ui/styles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,MAAM,CAAC,MAAM,WAAW,GAAG;;EAEzB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6dP,CAAC;AAEF,uGAAuG;AACvG,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiV1B,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,WAAW,KAAK,WAAW,EAAE,CAAC"}
|
package/dist/ui/toolbar.d.ts
CHANGED
|
@@ -2,11 +2,22 @@ import { type MyTokensSource } from './remap.js';
|
|
|
2
2
|
import type { ViewportWidth } from '../responsive.js';
|
|
3
3
|
import { type CheckRun, type CaptureSettings } from '@luci-dev/format/capture';
|
|
4
4
|
import { type BasketStore } from './basket.js';
|
|
5
|
+
import { type StableElementMatch } from './specWatcher.js';
|
|
5
6
|
import { type ModeSwitchProps } from './modeSwitch.js';
|
|
6
7
|
import { type MascotPose } from '@luci-dev/ui';
|
|
7
8
|
import { type OnSpecSettingsBridge, type StorageLike, type UpdatesBridge } from './devSettings.js';
|
|
8
9
|
import { type AddCheckNotes, type DesignSource } from './check.js';
|
|
9
10
|
import { type ForcedStatesReader, type Output, type ToolId } from './tools.js';
|
|
11
|
+
/** Request for picking a page element to bind to a Figma layer or question (Plan 02b Fix 2). */
|
|
12
|
+
export interface FigmaPickRequest {
|
|
13
|
+
label: string;
|
|
14
|
+
sizes: {
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
}[];
|
|
18
|
+
onConfirm: (selector: string, match?: StableElementMatch) => Promise<void>;
|
|
19
|
+
onCancel?: () => void;
|
|
20
|
+
}
|
|
10
21
|
export interface ToolbarProps {
|
|
11
22
|
doc: Document;
|
|
12
23
|
settings: CaptureSettings;
|
|
@@ -16,6 +27,13 @@ export interface ToolbarProps {
|
|
|
16
27
|
onClose: () => void;
|
|
17
28
|
/** Lets the shell (or a test) feed an eyedropper color in. */
|
|
18
29
|
registerPixelInput?: (pick: (hex: string) => void) => void;
|
|
30
|
+
/** Lets devToolbar start or cancel Figma layer picking in the existing picker. */
|
|
31
|
+
registerFigmaPickInput?: (api: {
|
|
32
|
+
start: (req: FigmaPickRequest) => void;
|
|
33
|
+
cancel: () => void;
|
|
34
|
+
}) => void;
|
|
35
|
+
/** Initial Figma pick request when opening Capture specifically for Point at it. */
|
|
36
|
+
figmaPick?: FigmaPickRequest;
|
|
19
37
|
/** Exact states through the browser's debugger (the extension); without it, states come from stylesheet rules. */
|
|
20
38
|
readForcedStates?: ForcedStatesReader;
|
|
21
39
|
/** Where the basket is kept (the extension: its storage, shared by every tab and site). */
|
package/dist/ui/toolbar.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar.d.ts","sourceRoot":"","sources":["../../src/ui/toolbar.tsx"],"names":[],"mappings":"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