@miadi/stateloom-canvas 0.1.5 → 0.1.8

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/styles.css CHANGED
@@ -625,3 +625,702 @@
625
625
  stroke-dasharray: 1 3;
626
626
  pointer-events: none;
627
627
  }
628
+
629
+ /* ─── The stage (Spec 83) ─────────────────────────────────────────────────── */
630
+ /* The stage's layer sits beside the canvas, not inside its pane, so the
631
+ variables it reads are declared again here with the same defaults. A host
632
+ that re-themed the board re-themes these by declaring them on an ancestor. */
633
+
634
+ .slc-stage,
635
+ .slc-stage-caption,
636
+ .slc-stage-card,
637
+ .slc-stage-notice {
638
+ --slc-accent: #3b82f6;
639
+ --slc-accent-fill: #1e3a5f;
640
+ --slc-accent-ink: #93c5fd;
641
+ --slc-danger: #ef4444;
642
+ --slc-label: #e2e8f0;
643
+ --slc-muted: #94a3b8;
644
+ --slc-faint: #64748b;
645
+ --slc-panel-bg: rgb(17 24 39 / 0.94);
646
+ --slc-panel-border: #374151;
647
+ --slc-panel-hover: #1f2937;
648
+ --slc-stage-scrim: rgb(2 6 23 / 0.62);
649
+ --slc-stage-light: #fbbf24;
650
+ --slc-mark-open: #f59e0b;
651
+ --slc-mark-answered: #3b82f6;
652
+ --slc-mark-question: #a78bfa;
653
+ --slc-mark-resolved: #64748b;
654
+ font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
655
+ }
656
+
657
+ .slc-stage {
658
+ position: absolute;
659
+ inset: 0;
660
+ pointer-events: none;
661
+ overflow: hidden;
662
+ z-index: 5;
663
+ }
664
+
665
+ .slc-stage-svg {
666
+ position: absolute;
667
+ inset: 0;
668
+ width: 100%;
669
+ height: 100%;
670
+ }
671
+
672
+ .slc-stage-scrim { fill: var(--slc-stage-scrim); }
673
+
674
+ .slc-stage-ring {
675
+ fill: none;
676
+ stroke: var(--slc-stage-light);
677
+ stroke-width: 2.5;
678
+ filter: drop-shadow(0 0 6px var(--slc-stage-light));
679
+ }
680
+
681
+ .slc-stage-region {
682
+ fill: rgb(251 191 36 / 0.08);
683
+ stroke: var(--slc-stage-light);
684
+ stroke-width: 2;
685
+ stroke-dasharray: 8 5;
686
+ }
687
+
688
+ .slc-stage-mark-ring {
689
+ fill: none;
690
+ stroke: var(--slc-mark-open);
691
+ stroke-width: 2;
692
+ }
693
+
694
+ .slc-stage-mark-area {
695
+ fill: rgb(245 158 11 / 0.08);
696
+ stroke: var(--slc-mark-open);
697
+ stroke-width: 1.5;
698
+ stroke-dasharray: 5 4;
699
+ }
700
+
701
+ .slc-stage-drag {
702
+ fill: rgb(245 158 11 / 0.12);
703
+ stroke: var(--slc-mark-open);
704
+ stroke-width: 1.5;
705
+ stroke-dasharray: 5 4;
706
+ }
707
+
708
+ .slc-stage-catch {
709
+ position: absolute;
710
+ inset: 0;
711
+ pointer-events: auto;
712
+ cursor: crosshair;
713
+ touch-action: none;
714
+ background: rgb(245 158 11 / 0.03);
715
+ box-shadow: inset 0 0 0 2px rgb(245 158 11 / 0.45);
716
+ }
717
+
718
+ /* Pins: numbered, coloured by who the mark waits on. */
719
+ .slc-stage-pin {
720
+ position: absolute;
721
+ transform: translate(-40%, -60%);
722
+ pointer-events: auto;
723
+ min-width: 22px;
724
+ height: 22px;
725
+ padding: 0 6px;
726
+ border-radius: 11px 11px 11px 3px;
727
+ border: 1.5px solid rgb(255 255 255 / 0.85);
728
+ background: var(--slc-mark-open);
729
+ color: #111827;
730
+ font: 700 11px/19px ui-sans-serif, system-ui, sans-serif;
731
+ text-align: center;
732
+ cursor: pointer;
733
+ box-shadow: 0 2px 6px rgb(0 0 0 / 0.45);
734
+ }
735
+
736
+ .slc-stage-pin--answered { background: var(--slc-mark-answered); color: white; }
737
+ .slc-stage-pin--question { background: var(--slc-mark-question); color: #111827; }
738
+ .slc-stage-pin--resolved { background: var(--slc-mark-resolved); color: white; opacity: 0.8; }
739
+ .slc-stage-pin--open { background: var(--slc-mark-open); }
740
+ .slc-stage-pin--selected { outline: 3px solid var(--slc-label); outline-offset: 1px; z-index: 2; }
741
+
742
+ /* An agent's word not yet opened: a quiet ring and a dot, over whichever colour the pin has. */
743
+ .slc-stage-pin--new { box-shadow: 0 0 0 3px rgb(255 255 255 / 0.22), 0 2px 6px rgb(0 0 0 / 0.45); }
744
+ .slc-stage-pin--new::after {
745
+ content: "";
746
+ position: absolute;
747
+ left: -4px;
748
+ top: -4px;
749
+ width: 9px;
750
+ height: 9px;
751
+ border-radius: 50%;
752
+ background: var(--slc-label);
753
+ border: 1.5px solid var(--slc-panel-bg, #111827);
754
+ }
755
+ .slc-stage-pin--inline.slc-stage-pin--new { position: relative; }
756
+
757
+ .slc-stage-pin--inline {
758
+ position: static;
759
+ transform: none;
760
+ display: inline-block;
761
+ flex: none;
762
+ box-shadow: none;
763
+ }
764
+
765
+ .slc-stage-pin-count {
766
+ position: absolute;
767
+ right: -7px;
768
+ top: -7px;
769
+ min-width: 14px;
770
+ height: 14px;
771
+ border-radius: 7px;
772
+ background: #111827;
773
+ color: var(--slc-label);
774
+ font-size: 9px;
775
+ line-height: 14px;
776
+ }
777
+
778
+ @media (pointer: coarse) {
779
+ .slc-stage-pin { min-width: 30px; height: 30px; line-height: 27px; font-size: 13px; border-radius: 15px 15px 15px 4px; }
780
+ }
781
+
782
+ /* The caption: the words of the step on stage. */
783
+ .slc-stage-caption {
784
+ position: absolute;
785
+ left: 50%;
786
+ bottom: 12px;
787
+ transform: translateX(-50%);
788
+ width: min(38rem, calc(100% - 1rem));
789
+ max-height: 45%;
790
+ display: flex;
791
+ flex-direction: column;
792
+ gap: 6px;
793
+ padding: 10px 12px 8px;
794
+ border-radius: 12px;
795
+ border: 1px solid var(--slc-panel-border);
796
+ background: var(--slc-panel-bg);
797
+ color: var(--slc-label);
798
+ box-shadow: 0 12px 32px rgb(0 0 0 / 0.5);
799
+ backdrop-filter: blur(6px);
800
+ z-index: 30;
801
+ pointer-events: auto;
802
+ }
803
+
804
+ .slc-stage-caption-head {
805
+ display: flex;
806
+ align-items: center;
807
+ gap: 8px;
808
+ min-width: 0;
809
+ font-size: 11px;
810
+ color: var(--slc-muted);
811
+ }
812
+
813
+ .slc-stage-caption-origin {
814
+ flex: none;
815
+ padding: 1px 7px;
816
+ border-radius: 999px;
817
+ background: var(--slc-accent-fill);
818
+ color: var(--slc-accent-ink);
819
+ font-weight: 600;
820
+ }
821
+
822
+ .slc-stage-caption-title {
823
+ min-width: 0;
824
+ flex: 1;
825
+ overflow: hidden;
826
+ text-overflow: ellipsis;
827
+ white-space: nowrap;
828
+ color: var(--slc-label);
829
+ font-weight: 600;
830
+ }
831
+
832
+ .slc-stage-caption-count { flex: none; font-variant-numeric: tabular-nums; }
833
+
834
+ .slc-stage-caption-speaking {
835
+ flex: none;
836
+ width: 8px;
837
+ height: 8px;
838
+ border-radius: 50%;
839
+ background: var(--slc-stage-light);
840
+ animation: slc-stage-pulse 1s ease-in-out infinite;
841
+ }
842
+
843
+ @keyframes slc-stage-pulse {
844
+ 0%, 100% { opacity: 0.35; transform: scale(0.8); }
845
+ 50% { opacity: 1; transform: scale(1.15); }
846
+ }
847
+
848
+ .slc-stage-caption-say {
849
+ margin: 0;
850
+ overflow-y: auto;
851
+ font-size: 15px;
852
+ line-height: 1.45;
853
+ white-space: pre-wrap;
854
+ }
855
+
856
+ .slc-stage-dots { display: flex; flex-wrap: wrap; gap: 5px; }
857
+
858
+ .slc-stage-dot {
859
+ width: 9px;
860
+ height: 9px;
861
+ padding: 0;
862
+ border-radius: 50%;
863
+ border: 1px solid var(--slc-faint);
864
+ background: transparent;
865
+ cursor: pointer;
866
+ }
867
+
868
+ .slc-stage-dot--seen { background: var(--slc-faint); }
869
+ .slc-stage-dot--current { background: var(--slc-stage-light); border-color: var(--slc-stage-light); }
870
+
871
+ .slc-stage-caption-controls,
872
+ .slc-stage-card-row {
873
+ display: flex;
874
+ align-items: center;
875
+ gap: 6px;
876
+ }
877
+
878
+ .slc-stage-spacer { flex: 1; }
879
+
880
+ .slc-stage-btn {
881
+ min-height: 30px;
882
+ min-width: 30px;
883
+ padding: 0 9px;
884
+ border-radius: 7px;
885
+ border: 1px solid var(--slc-panel-border);
886
+ background: transparent;
887
+ color: var(--slc-label);
888
+ font-size: 13px;
889
+ cursor: pointer;
890
+ display: inline-flex;
891
+ align-items: center;
892
+ justify-content: center;
893
+ gap: 6px;
894
+ }
895
+
896
+ /* Drawn icons (icons.tsx) take the button's colour and never shrink in a tight row. */
897
+ .slc-icon { display: block; flex: none; }
898
+
899
+ .slc-stage-btn:hover:not(:disabled) { background: var(--slc-panel-hover); }
900
+ .slc-stage-btn:disabled { opacity: 0.35; cursor: default; }
901
+ .slc-stage-btn--main { background: var(--slc-accent); border-color: var(--slc-accent); color: white; }
902
+ .slc-stage-btn--main:hover:not(:disabled) { background: var(--slc-accent); filter: brightness(1.1); }
903
+ .slc-stage-btn--quiet { border-color: transparent; color: var(--slc-muted); }
904
+ .slc-stage-btn--on { color: var(--slc-stage-light); border-color: var(--slc-stage-light); }
905
+ .slc-stage-btn--live { background: var(--slc-danger); border-color: var(--slc-danger); color: white; animation: slc-stage-pulse 1.2s ease-in-out infinite; }
906
+ .slc-stage-btn--danger { color: var(--slc-danger); border-color: transparent; }
907
+ .slc-stage-btn--answer { border-color: var(--slc-mark-open); color: var(--slc-mark-open); }
908
+
909
+ @media (pointer: coarse) {
910
+ .slc-stage-btn { min-height: 40px; min-width: 40px; font-size: 15px; }
911
+ }
912
+
913
+ /* Cards: the composer, a thread, the list of marks. */
914
+ .slc-stage-card {
915
+ display: flex;
916
+ flex-direction: column;
917
+ gap: 7px;
918
+ width: min(22rem, calc(100vw - 1rem));
919
+ max-height: min(70vh, 34rem);
920
+ overflow-y: auto;
921
+ padding: 10px;
922
+ border-radius: 12px;
923
+ border: 1px solid var(--slc-panel-border);
924
+ background: var(--slc-panel-bg);
925
+ color: var(--slc-label);
926
+ font-size: 13px;
927
+ box-shadow: 0 12px 32px rgb(0 0 0 / 0.55);
928
+ backdrop-filter: blur(6px);
929
+ pointer-events: auto;
930
+ }
931
+
932
+ .slc-stage-card-label { color: var(--slc-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
933
+ .slc-stage-card-anchor { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
934
+ .slc-stage-card-error { color: var(--slc-danger); font-size: 12px; }
935
+ /* Who will answer the marks: the host's one line, quiet. */
936
+ .slc-stage-card-note { color: var(--slc-muted); font-size: 12px; line-height: 1.35; }
937
+
938
+ /* "new" beside a listed mark whose agent's word is not yet read. */
939
+ .slc-stage-new {
940
+ display: inline-block;
941
+ margin-right: 6px;
942
+ padding: 0 6px;
943
+ border-radius: 999px;
944
+ border: 1px solid var(--slc-mark-answered);
945
+ color: var(--slc-label);
946
+ font-size: 10px;
947
+ line-height: 15px;
948
+ text-transform: lowercase;
949
+ }
950
+
951
+ /* One line when an agent answers: near the board's controls, never over the board. */
952
+ .slc-stage-notice {
953
+ display: inline-flex;
954
+ align-items: center;
955
+ max-width: 100%;
956
+ min-width: 0;
957
+ border-radius: 999px;
958
+ border: 1px solid var(--slc-mark-answered);
959
+ background: var(--slc-panel-bg);
960
+ color: var(--slc-label);
961
+ box-shadow: 0 6px 18px rgb(0 0 0 / 0.45);
962
+ backdrop-filter: blur(6px);
963
+ pointer-events: auto;
964
+ }
965
+ .slc-stage-notice-open {
966
+ display: inline-flex;
967
+ align-items: center;
968
+ gap: 7px;
969
+ min-width: 0;
970
+ min-height: 34px;
971
+ padding: 0 4px 0 12px;
972
+ border: 0;
973
+ background: transparent;
974
+ color: inherit;
975
+ font: 500 13px/1.2 ui-sans-serif, system-ui, sans-serif;
976
+ cursor: pointer;
977
+ }
978
+ .slc-stage-notice-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
979
+ .slc-stage-notice-dot {
980
+ flex: none;
981
+ width: 8px;
982
+ height: 8px;
983
+ border-radius: 50%;
984
+ background: var(--slc-mark-answered);
985
+ }
986
+ .slc-stage-notice-close {
987
+ flex: none;
988
+ display: inline-flex;
989
+ align-items: center;
990
+ justify-content: center;
991
+ width: 30px;
992
+ height: 30px;
993
+ margin-right: 2px;
994
+ border: 0;
995
+ border-radius: 999px;
996
+ background: transparent;
997
+ color: var(--slc-muted);
998
+ cursor: pointer;
999
+ }
1000
+ .slc-stage-notice-close:hover { color: var(--slc-label); }
1001
+
1002
+ .slc-stage-chip {
1003
+ padding: 1px 7px;
1004
+ border-radius: 999px;
1005
+ border: 1px solid var(--slc-mark-open);
1006
+ color: var(--slc-mark-open);
1007
+ font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
1008
+ }
1009
+
1010
+ .slc-stage-chip--quiet { border-color: var(--slc-panel-border); color: var(--slc-muted); font-family: inherit; }
1011
+
1012
+ .slc-stage-input {
1013
+ border-radius: 7px;
1014
+ border: 1px solid var(--slc-panel-border);
1015
+ background: rgb(3 7 18 / 0.7);
1016
+ color: var(--slc-label);
1017
+ padding: 6px 8px;
1018
+ font: inherit;
1019
+ /* 16px on a phone, or iOS zooms the page when the field takes focus. */
1020
+ font-size: max(13px, min(16px, 1rem));
1021
+ }
1022
+
1023
+ .slc-stage-textarea { resize: vertical; min-height: 4.5em; }
1024
+ .slc-stage-select { padding: 4px 6px; }
1025
+ .slc-stage-grow { flex: 1; min-width: 0; }
1026
+
1027
+ .slc-stage-thread-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
1028
+
1029
+ .slc-stage-said {
1030
+ display: flex;
1031
+ flex-direction: column;
1032
+ gap: 2px;
1033
+ padding: 6px 8px;
1034
+ border-radius: 8px;
1035
+ background: rgb(255 255 255 / 0.04);
1036
+ border-left: 3px solid var(--slc-mark-open);
1037
+ }
1038
+
1039
+ .slc-stage-said--agent { border-left-color: var(--slc-mark-question); background: rgb(167 139 250 / 0.07); }
1040
+ .slc-stage-said-who { font-size: 11px; color: var(--slc-muted); font-weight: 600; }
1041
+ .slc-stage-said-text { white-space: pre-wrap; line-height: 1.4; }
1042
+
1043
+ .slc-stage-panel-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
1044
+
1045
+ .slc-stage-panel-item {
1046
+ display: flex;
1047
+ align-items: flex-start;
1048
+ gap: 8px;
1049
+ width: 100%;
1050
+ padding: 6px;
1051
+ border: 0;
1052
+ border-radius: 8px;
1053
+ background: transparent;
1054
+ color: inherit;
1055
+ text-align: left;
1056
+ cursor: pointer;
1057
+ }
1058
+
1059
+ .slc-stage-panel-item:hover,
1060
+ .slc-stage-panel-item--selected { background: var(--slc-panel-hover); }
1061
+ .slc-stage-panel-text { display: flex; flex-direction: column; min-width: 0; }
1062
+ .slc-stage-panel-said { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1063
+ .slc-stage-panel-meta { font-size: 11px; color: var(--slc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1064
+ .slc-stage-empty { color: var(--slc-muted); font-size: 12px; line-height: 1.4; }
1065
+
1066
+ /* Two choices side by side: which marks the list shows. */
1067
+ .slc-stage-segment {
1068
+ display: inline-flex;
1069
+ padding: 2px;
1070
+ border-radius: 8px;
1071
+ border: 1px solid var(--slc-panel-border);
1072
+ }
1073
+ .slc-stage-segment-btn {
1074
+ min-height: 24px;
1075
+ padding: 0 8px;
1076
+ border: 0;
1077
+ border-radius: 6px;
1078
+ background: transparent;
1079
+ color: var(--slc-muted);
1080
+ font-size: 12px;
1081
+ white-space: nowrap;
1082
+ cursor: pointer;
1083
+ }
1084
+ .slc-stage-segment-btn--on { background: var(--slc-panel-hover); color: var(--slc-label); }
1085
+ @media (pointer: coarse) {
1086
+ .slc-stage-segment-btn { min-height: 34px; padding: 0 12px; font-size: 14px; }
1087
+ }
1088
+
1089
+ /* ─── Talking with a companion (Spec 84) ──────────────────────────────────── */
1090
+
1091
+ .slc-talk {
1092
+ --slc-accent: #3b82f6;
1093
+ --slc-accent-fill: #1e3a5f;
1094
+ --slc-accent-ink: #93c5fd;
1095
+ --slc-danger: #ef4444;
1096
+ --slc-label: #e2e8f0;
1097
+ --slc-muted: #94a3b8;
1098
+ --slc-faint: #64748b;
1099
+ --slc-panel-bg: rgb(17 24 39 / 0.96);
1100
+ --slc-panel-border: #374151;
1101
+ --slc-panel-hover: #1f2937;
1102
+ --slc-stage-light: #fbbf24;
1103
+ --slc-mark-open: #f59e0b;
1104
+ --slc-mark-question: #a78bfa;
1105
+ --slc-talk-live: #ef4444;
1106
+ font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
1107
+ pointer-events: auto;
1108
+ }
1109
+
1110
+ .slc-talk-fab {
1111
+ position: relative;
1112
+ width: 52px;
1113
+ height: 52px;
1114
+ border-radius: 50%;
1115
+ border: 1px solid var(--slc-panel-border);
1116
+ background: var(--slc-panel-bg);
1117
+ color: var(--slc-label);
1118
+ font-size: 22px;
1119
+ cursor: pointer;
1120
+ box-shadow: 0 8px 24px rgb(0 0 0 / 0.5);
1121
+ display: flex;
1122
+ align-items: center;
1123
+ justify-content: center;
1124
+ }
1125
+
1126
+ .slc-talk-fab--live {
1127
+ background: var(--slc-talk-live);
1128
+ border-color: var(--slc-talk-live);
1129
+ animation: slc-talk-ring 1.4s ease-in-out infinite;
1130
+ }
1131
+
1132
+ .slc-talk-fab--speaking { border-color: var(--slc-stage-light); box-shadow: 0 0 0 3px rgb(251 191 36 / 0.25); }
1133
+
1134
+ .slc-talk-fab-clock { font: 700 13px ui-monospace, SFMono-Regular, Menlo, monospace; color: white; }
1135
+
1136
+ .slc-talk-fab-badge {
1137
+ position: absolute;
1138
+ top: -4px;
1139
+ right: -4px;
1140
+ min-width: 20px;
1141
+ height: 20px;
1142
+ padding: 0 5px;
1143
+ border-radius: 10px;
1144
+ background: var(--slc-mark-question);
1145
+ color: #111827;
1146
+ font: 700 11px/20px ui-sans-serif, system-ui, sans-serif;
1147
+ }
1148
+
1149
+ .slc-talk-panel {
1150
+ display: flex;
1151
+ flex-direction: column;
1152
+ gap: 8px;
1153
+ width: min(23rem, calc(100vw - 1rem));
1154
+ max-height: min(78vh, 40rem);
1155
+ padding: 10px;
1156
+ border-radius: 14px;
1157
+ border: 1px solid var(--slc-panel-border);
1158
+ background: var(--slc-panel-bg);
1159
+ color: var(--slc-label);
1160
+ font-size: 13px;
1161
+ box-shadow: 0 16px 40px rgb(0 0 0 / 0.55);
1162
+ backdrop-filter: blur(8px);
1163
+ }
1164
+
1165
+ .slc-talk-head { display: flex; align-items: center; gap: 8px; }
1166
+ .slc-talk-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
1167
+
1168
+ .slc-talk-presence {
1169
+ width: 9px;
1170
+ height: 9px;
1171
+ border-radius: 50%;
1172
+ background: #22c55e;
1173
+ box-shadow: 0 0 8px #22c55e;
1174
+ }
1175
+
1176
+ .slc-talk-presence--away { background: var(--slc-faint); box-shadow: none; }
1177
+
1178
+ .slc-talk-episode { width: 100%; }
1179
+ .slc-talk-meta { color: var(--slc-muted); font-size: 12px; line-height: 1.4; }
1180
+ .slc-talk-meta--away { color: var(--slc-mark-open); }
1181
+ .slc-talk-meta--error { color: var(--slc-danger); }
1182
+
1183
+ .slc-talk-notice {
1184
+ padding: 6px 8px;
1185
+ border-radius: 8px;
1186
+ background: rgb(167 139 250 / 0.12);
1187
+ color: var(--slc-label);
1188
+ font-size: 12px;
1189
+ }
1190
+
1191
+ .slc-talk-record {
1192
+ display: flex;
1193
+ align-items: center;
1194
+ justify-content: center;
1195
+ gap: 10px;
1196
+ min-height: 46px;
1197
+ border-radius: 12px;
1198
+ border: 0;
1199
+ background: var(--slc-accent);
1200
+ color: white;
1201
+ font: 700 15px ui-sans-serif, system-ui, sans-serif;
1202
+ cursor: pointer;
1203
+ }
1204
+
1205
+ .slc-talk-record:disabled { opacity: 0.45; cursor: default; }
1206
+ /* The button stays where the finger is while it records: only a ring breathes around it. */
1207
+ .slc-talk-record--live { background: var(--slc-talk-live); animation: slc-talk-ring 1.4s ease-in-out infinite; }
1208
+
1209
+ @keyframes slc-talk-ring {
1210
+ 0%, 100% { box-shadow: 0 0 0 0 rgb(239 68 68 / 0.55); }
1211
+ 50% { box-shadow: 0 0 0 6px rgb(239 68 68 / 0); }
1212
+ }
1213
+ .slc-talk-record--retry { background: var(--slc-mark-open); color: #111827; }
1214
+ .slc-talk-clock { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; }
1215
+
1216
+ .slc-talk-toggle { display: flex; align-items: center; gap: 6px; color: var(--slc-muted); font-size: 12px; }
1217
+
1218
+ .slc-talk-thread {
1219
+ list-style: none;
1220
+ margin: 0;
1221
+ padding: 0;
1222
+ display: flex;
1223
+ flex-direction: column;
1224
+ gap: 6px;
1225
+ overflow-y: auto;
1226
+ min-height: 0;
1227
+ }
1228
+
1229
+ .slc-talk-entry {
1230
+ display: flex;
1231
+ flex-direction: column;
1232
+ gap: 3px;
1233
+ padding: 7px 9px;
1234
+ border-radius: 10px;
1235
+ background: rgb(255 255 255 / 0.04);
1236
+ border-left: 3px solid var(--slc-mark-open);
1237
+ }
1238
+
1239
+ .slc-talk-entry--reply { border-left-color: var(--slc-mark-question); background: rgb(167 139 250 / 0.07); }
1240
+ .slc-talk-entry--new { box-shadow: inset 0 0 0 1px var(--slc-mark-question); }
1241
+
1242
+ .slc-talk-who { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--slc-muted); }
1243
+ .slc-talk-who strong { color: var(--slc-label); font-size: 12px; }
1244
+ .slc-talk-canvas { font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--slc-accent-ink); }
1245
+ .slc-talk-text { white-space: pre-wrap; line-height: 1.42; overflow-wrap: anywhere; }
1246
+ .slc-talk-play { min-height: 26px; min-width: 30px; padding: 0 8px; gap: 5px; font-size: 12px; margin-left: auto; }
1247
+ .slc-talk-play--on { color: var(--slc-stage-light); border-color: var(--slc-stage-light); }
1248
+ .slc-talk-new {
1249
+ padding: 0 5px;
1250
+ border-radius: 6px;
1251
+ background: var(--slc-mark-question);
1252
+ color: #111827;
1253
+ font-size: 10px;
1254
+ font-weight: 700;
1255
+ line-height: 15px;
1256
+ }
1257
+ .slc-talk-thumbs { display: inline-flex; gap: 2px; }
1258
+
1259
+ .slc-talk-thumb {
1260
+ display: inline-flex;
1261
+ align-items: center;
1262
+ justify-content: center;
1263
+ min-width: 26px;
1264
+ min-height: 26px;
1265
+ border: 0;
1266
+ border-radius: 6px;
1267
+ background: transparent;
1268
+ color: var(--slc-faint);
1269
+ cursor: pointer;
1270
+ }
1271
+
1272
+ .slc-talk-thumb:hover { color: var(--slc-label); }
1273
+ .slc-talk-thumb--on { color: var(--slc-mark-question); }
1274
+
1275
+ /* A reply that walks the diagram: its steps, each a row that starts the walk there. */
1276
+ .slc-talk-steps {
1277
+ list-style: none;
1278
+ margin: 2px 0 0;
1279
+ padding: 0;
1280
+ display: flex;
1281
+ flex-direction: column;
1282
+ gap: 2px;
1283
+ }
1284
+
1285
+ .slc-talk-step {
1286
+ display: flex;
1287
+ gap: 8px;
1288
+ width: 100%;
1289
+ padding: 5px 6px;
1290
+ border: 0;
1291
+ border-radius: 8px;
1292
+ background: transparent;
1293
+ color: var(--slc-label);
1294
+ font: inherit;
1295
+ text-align: left;
1296
+ cursor: pointer;
1297
+ }
1298
+
1299
+ .slc-talk-step:hover:not(:disabled) { background: rgb(255 255 255 / 0.05); }
1300
+ .slc-talk-step:disabled { cursor: default; }
1301
+ .slc-talk-step--here { background: rgb(251 191 36 / 0.1); box-shadow: inset 2px 0 0 var(--slc-stage-light); }
1302
+
1303
+ .slc-talk-step-n {
1304
+ flex: none;
1305
+ width: 18px;
1306
+ height: 18px;
1307
+ margin-top: 1px;
1308
+ border-radius: 50%;
1309
+ border: 1px solid var(--slc-panel-border);
1310
+ color: var(--slc-muted);
1311
+ font: 600 10px/16px ui-sans-serif, system-ui, sans-serif;
1312
+ text-align: center;
1313
+ }
1314
+
1315
+ .slc-talk-step--here .slc-talk-step-n { border-color: var(--slc-stage-light); background: var(--slc-stage-light); color: #111827; }
1316
+
1317
+ .slc-talk-step-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
1318
+ .slc-talk-step-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; font-size: 12px; }
1319
+ .slc-talk-step-where { font: 10.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--slc-accent-ink); overflow-wrap: anywhere; }
1320
+ .slc-talk-step-say { line-height: 1.4; overflow-wrap: anywhere; }
1321
+
1322
+ @media (pointer: coarse) {
1323
+ .slc-talk-play { min-height: 34px; min-width: 40px; }
1324
+ .slc-talk-thumb { min-width: 36px; min-height: 36px; }
1325
+ .slc-talk-step { padding: 8px 6px; }
1326
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miadi/stateloom-canvas",
3
- "version": "0.1.5",
3
+ "version": "0.1.8",
4
4
  "description": "The reusable SMDF design surface: a pannable, zoomable, drillable React SVG canvas with routed edges, settled labels and a navigation HUD",
5
5
  "repository": {
6
6
  "type": "git",
@@ -43,7 +43,7 @@
43
43
  "node": ">=20"
44
44
  },
45
45
  "dependencies": {
46
- "@miadi/stateloom-protocol": "^0.1.9"
46
+ "@miadi/stateloom-protocol": "^0.1.16"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "react": "^19"