@vibefield/rosetta-room 0.1.11 → 0.1.13
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 +64 -2
- package/dist/components/Transcript.js +6 -2
- package/dist/components/file-viewer/kinds.d.ts +22 -0
- package/dist/components/file-viewer/kinds.js +57 -0
- package/dist/components/file-viewer/markdown/render.d.ts +7 -1
- package/dist/components/file-viewer/markdown/render.js +16 -12
- package/dist/components/file-viewer/registry.d.ts +2 -2
- package/dist/components/file-viewer/registry.js +20 -59
- package/dist/components/transcript/Activity.d.ts +10 -4
- package/dist/components/transcript/Activity.js +36 -11
- package/dist/components/transcript/Compaction.d.ts +9 -0
- package/dist/components/transcript/Compaction.js +8 -4
- package/dist/components/transcript/Document.js +150 -208
- package/dist/components/transcript/PromptJump.js +28 -8
- package/dist/components/transcript/Prose.d.ts +5 -1
- package/dist/components/transcript/Prose.js +3 -3
- package/dist/components/transcript/ReadingBlocks.d.ts +71 -0
- package/dist/components/transcript/ReadingBlocks.js +279 -0
- package/dist/components/transcript/activity-plan.d.ts +38 -7
- package/dist/components/transcript/activity-plan.js +198 -28
- package/dist/components/transcript/attachment-file-source.d.ts +1 -2
- package/dist/components/transcript/attachment-file-source.js +7 -5
- package/dist/components/transcript/disclosure-state.d.ts +2 -0
- package/dist/components/transcript/disclosure-state.js +6 -2
- package/dist/components/transcript/document-model.js +53 -9
- package/dist/components/transcript/document-plan.js +263 -98
- package/dist/components/transcript/reading-identity.d.ts +14 -1
- package/dist/components/transcript/reading-identity.js +126 -10
- package/dist/conversation/ConversationGallery.d.ts +11 -0
- package/dist/conversation/ConversationGallery.js +14 -0
- package/dist/conversation/ConversationMedia.d.ts +44 -0
- package/dist/conversation/ConversationMedia.js +210 -0
- package/dist/conversation/ConversationProse.d.ts +13 -0
- package/dist/conversation/ConversationProse.js +6 -0
- package/dist/conversation/ConversationRunRows.d.ts +57 -0
- package/dist/conversation/ConversationRunRows.js +84 -0
- package/dist/conversation/ConversationTurnView.d.ts +64 -0
- package/dist/conversation/ConversationTurnView.js +169 -0
- package/dist/conversation/ConversationView.d.ts +3 -0
- package/dist/conversation/ConversationView.js +257 -0
- package/dist/conversation/feed-reads.d.ts +36 -0
- package/dist/conversation/feed-reads.js +155 -0
- package/dist/conversation/feed.d.ts +106 -0
- package/dist/conversation/feed.js +884 -0
- package/dist/conversation/index.d.ts +11 -0
- package/dist/conversation/index.js +25 -0
- package/dist/conversation/model.d.ts +108 -0
- package/dist/conversation/model.js +257 -0
- package/dist/conversation/ports.d.ts +194 -0
- package/dist/conversation/ports.js +9 -0
- package/dist/conversation/rosetta-client.d.ts +8 -0
- package/dist/conversation/rosetta-client.js +1 -0
- package/dist/conversation/use-conversation-feed.d.ts +16 -0
- package/dist/conversation/use-conversation-feed.js +41 -0
- package/dist/conversation/use-conversation-window.d.ts +50 -0
- package/dist/conversation/use-conversation-window.js +336 -0
- package/dist/conversation/words.d.ts +51 -0
- package/dist/conversation/words.js +79 -0
- package/dist/fixtures/conversation.d.ts +34 -0
- package/dist/fixtures/conversation.js +723 -0
- package/dist/fixtures/index.d.ts +2 -0
- package/dist/fixtures/index.js +1 -0
- package/dist/lib/session-leases.d.ts +11 -8
- package/dist/lib/transcript/collaboration.js +53 -19
- package/dist/lib/transcript/head-of-document.js +9 -3
- package/dist/lib/transcript/index.d.ts +1 -1
- package/dist/lib/transcript/index.js +1 -1
- package/dist/lib/transcript/prompt-jump.d.ts +2 -0
- package/dist/lib/transcript/prompt-jump.js +5 -1
- package/dist/lib/transcript/sittings.d.ts +2 -1
- package/dist/lib/transcript/sittings.js +72 -10
- package/dist/lib/transcript/tail-state.d.ts +9 -0
- package/dist/lib/transcript/tail-state.js +25 -1
- package/dist/lib/transcript/turns.d.ts +5 -0
- package/dist/lib/transcript/turns.js +221 -57
- package/dist/lib/transcript/use-transcript-tail.js +17 -3
- package/dist/lib/transcript/vocabulary.d.ts +2 -1
- package/dist/lib/transcript/vocabulary.js +11 -1
- package/dist/parts-context.d.ts +25 -0
- package/dist/parts-context.js +32 -0
- package/dist/ports.d.ts +3 -0
- package/dist/room-context.d.ts +1 -7
- package/dist/room-context.js +12 -18
- package/dist/styles/conversation-turn.css +147 -0
- package/dist/styles/conversation.css +45 -0
- package/dist/styles/transcript.css +11 -2
- package/package.json +9 -4
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/* ═══════════════════════════════════════════════════════════════════════════
|
|
2
|
+
One turn of the conversation view (@vibefield/rosetta-room/conversation).
|
|
3
|
+
Scoped to the view's root (.tr-conv). Sizes come from the host's
|
|
4
|
+
--tr-conv-* tokens, each with its default here; colours and fonts are the
|
|
5
|
+
--vf-* names the room already reads, and nothing else.
|
|
6
|
+
═══════════════════════════════════════════════════════════════════════ */
|
|
7
|
+
.tr-conv {
|
|
8
|
+
--tr-conv-text-size: var(--tr-conv-text, 14px);
|
|
9
|
+
--tr-conv-quiet-size: var(--tr-conv-quiet, 12.5px);
|
|
10
|
+
--tr-conv-lead-size: var(--tr-conv-lead, 28px);
|
|
11
|
+
--tr-conv-lead-space: var(--tr-conv-lead-gap, 12px);
|
|
12
|
+
--tr-conv-run-lead-space: var(--tr-conv-run-lead-gap, 6px);
|
|
13
|
+
--tr-conv-media-width: var(--tr-conv-media-max, 420px);
|
|
14
|
+
--tr-conv-media-round: var(--tr-conv-media-radius, 16px);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.tr-conv__turn { display: flex; flex-direction: column; gap: 10px; min-width: 0; font-size: var(--tr-conv-text-size); line-height: 1.55; color: var(--vf-text-primary); }
|
|
18
|
+
|
|
19
|
+
/* the person's prompt: a bubble on their side, plain words as typed */
|
|
20
|
+
.tr-conv__you { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 0; }
|
|
21
|
+
.tr-conv__bubble {
|
|
22
|
+
margin: 0; max-width: var(--tr-conv-bubble-max, 76%); padding: var(--tr-conv-bubble-pad, 9px 14px);
|
|
23
|
+
border-radius: var(--tr-conv-bubble-radius, 18px); background: var(--vf-fill); color: var(--vf-text-primary);
|
|
24
|
+
white-space: pre-wrap; overflow-wrap: anywhere;
|
|
25
|
+
}
|
|
26
|
+
.tr-conv__you .tr-attachments { max-width: var(--tr-conv-bubble-max, 76%); margin-top: 0; }
|
|
27
|
+
|
|
28
|
+
/* the agent's side: a gutter for the host's lead when it gives one */
|
|
29
|
+
.tr-conv__agent { display: block; min-width: 0; }
|
|
30
|
+
.tr-conv__agent[data-gutter] { display: grid; grid-template-columns: var(--tr-conv-lead-size) minmax(0, 1fr); column-gap: var(--tr-conv-lead-space); }
|
|
31
|
+
.tr-conv__lead { width: var(--tr-conv-lead-size); min-height: 1px; }
|
|
32
|
+
.tr-conv__parts { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
|
|
33
|
+
|
|
34
|
+
/* a quiet line: a request, a compaction, how a turn ended, the steps left out */
|
|
35
|
+
.tr-conv__quiet, .tr-conv__outcome {
|
|
36
|
+
margin: 0; color: var(--vf-text-tertiary); font-size: var(--tr-conv-quiet-size); line-height: 1.45;
|
|
37
|
+
}
|
|
38
|
+
.tr-conv__outcome[data-outcome="failed"] { color: var(--vf-red); }
|
|
39
|
+
.tr-conv__agent[data-gutter] ~ .tr-conv__outcome { margin-left: calc(var(--tr-conv-lead-size) + var(--tr-conv-lead-space)); }
|
|
40
|
+
|
|
41
|
+
/* a run: one line that opens in place, its words between the host's lead (when it gives one) and the chevron */
|
|
42
|
+
.tr-conv__run {
|
|
43
|
+
display: inline-flex; align-items: center; gap: 0; align-self: flex-start; max-width: 100%;
|
|
44
|
+
margin: 0; padding: 2px 0; border: 0; background: none; color: var(--vf-text-tertiary);
|
|
45
|
+
font: inherit; font-size: var(--tr-conv-quiet-size); line-height: 1.45; text-align: left; cursor: pointer;
|
|
46
|
+
}
|
|
47
|
+
.tr-conv__run:hover { color: var(--vf-text-secondary); }
|
|
48
|
+
.tr-conv__run:focus-visible, .tr-conv summary:focus-visible { outline: 2px solid var(--vf-select); outline-offset: 2px; border-radius: 4px; }
|
|
49
|
+
.tr-conv__run-lead { display: inline-flex; align-items: center; flex: none; margin-right: var(--tr-conv-run-lead-space); }
|
|
50
|
+
.tr-conv__run-words { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
51
|
+
.tr-conv__run > .tr-conv__chev { margin-left: 6px; }
|
|
52
|
+
.tr-conv__chev { display: inline-grid; width: 12px; height: 12px; flex: none; transition: transform 140ms var(--vf-ease-island, ease); }
|
|
53
|
+
.tr-conv__chev svg { width: 12px; height: 12px; }
|
|
54
|
+
.tr-conv__run[aria-expanded="true"] .tr-conv__chev, .tr-conv__compaction[open] > summary .tr-conv__chev { transform: rotate(90deg); }
|
|
55
|
+
.tr-conv__part { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
|
|
56
|
+
|
|
57
|
+
.tr-conv__rows { display: flex; flex-direction: column; gap: 4px; padding-left: 18px; border-left: 1px solid var(--vf-hairline); }
|
|
58
|
+
.tr-conv__rows ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; }
|
|
59
|
+
.tr-conv__rows li { display: flex; gap: 8px; min-width: 0; color: var(--vf-text-secondary); font-size: var(--tr-conv-quiet-size); line-height: 1.45; }
|
|
60
|
+
.tr-conv__row-words { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
61
|
+
.tr-conv__row-detail { flex: none; color: var(--vf-text-faint); }
|
|
62
|
+
.tr-conv__rows-status { margin: 0; color: var(--vf-text-faint); font-size: var(--tr-conv-quiet-size); }
|
|
63
|
+
.tr-conv__rows-earlier {
|
|
64
|
+
align-self: flex-start; padding: 0; border: 0; background: none; color: var(--vf-text-tertiary);
|
|
65
|
+
font: inherit; font-size: var(--tr-conv-quiet-size); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* a compaction's line, opening to its summary */
|
|
69
|
+
.tr-conv__compaction > summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; }
|
|
70
|
+
.tr-conv__compaction > summary::-webkit-details-marker { display: none; }
|
|
71
|
+
.tr-conv__compaction .tr-compaction__body { margin-top: 6px; padding-left: 18px; border-left: 1px solid var(--vf-hairline); font-size: var(--tr-conv-quiet-size); color: var(--vf-text-secondary); }
|
|
72
|
+
.tr-conv__compaction .tr-compaction__byline { display: flex; gap: 10px; color: var(--vf-text-faint); }
|
|
73
|
+
.tr-conv__compaction .tr-compaction__byline button, .tr-conv__compaction .tr-compaction__status button {
|
|
74
|
+
padding: 0; border: 0; background: none; color: var(--vf-text-tertiary); font: inherit; text-decoration: underline; cursor: pointer;
|
|
75
|
+
}
|
|
76
|
+
.tr-conv__compaction .tr-compaction__status { margin: 0; color: var(--vf-text-faint); }
|
|
77
|
+
|
|
78
|
+
/* a reply: bare words on the measure, with its own media under them. The words keep the turn's size and leading
|
|
79
|
+
themselves, so a host's reply still being written (drawn with the same prose, outside any turn) looks the same */
|
|
80
|
+
.tr-conv__reply { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
|
|
81
|
+
.tr-conv .tr-conv__prose { font-size: var(--tr-conv-text-size); line-height: 1.55; }
|
|
82
|
+
.tr-conv .tr-prose { color: var(--vf-text-primary); overflow-wrap: anywhere; }
|
|
83
|
+
.tr-conv .tr-prose p { margin: 0; }
|
|
84
|
+
.tr-conv .tr-prose p + p, .tr-conv .tr-prose p + ul, .tr-conv .tr-prose p + ol,
|
|
85
|
+
.tr-conv .tr-prose ul + p, .tr-conv .tr-prose ol + p { margin-top: 10px; }
|
|
86
|
+
.tr-conv .tr-prose ul, .tr-conv .tr-prose ol { margin: 0; padding-left: 22px; }
|
|
87
|
+
.tr-conv .tr-prose li { margin-bottom: 4px; }
|
|
88
|
+
.tr-conv .tr-prose li::marker { color: var(--vf-text-tertiary); }
|
|
89
|
+
.tr-conv .tr-prose strong { font-weight: 600; }
|
|
90
|
+
.tr-conv .tr-prose h1, .tr-conv .tr-prose h2, .tr-conv .tr-prose h3,
|
|
91
|
+
.tr-conv .tr-prose h4, .tr-conv .tr-prose h5, .tr-conv .tr-prose h6 { margin: 16px 0 6px; font-size: inherit; font-weight: 600; line-height: 1.3; }
|
|
92
|
+
.tr-conv .tr-prose > :first-child { margin-top: 0; }
|
|
93
|
+
.tr-conv .tr-prose code { padding: 1px 4px; border-radius: 4px; background: var(--vf-fill); font-family: var(--vf-font-mono); font-size: 0.86em; }
|
|
94
|
+
.tr-conv .tr-prose a { color: var(--vf-cyan); text-decoration: none; }
|
|
95
|
+
.tr-conv .tr-prose a:hover { text-decoration: underline; }
|
|
96
|
+
.tr-conv .tr-prose .ah-md__deadlink, .tr-conv .tr-prose .ah-md__image { color: var(--vf-text-secondary); }
|
|
97
|
+
.tr-conv .tr-prose blockquote { margin: 10px 0; padding: 2px 0 2px 12px; border-left: 2px solid var(--vf-hairline-strong); color: var(--vf-text-secondary); }
|
|
98
|
+
.tr-conv .tr-prose hr { margin: 14px 0; border: 0; border-top: 1px solid var(--vf-hairline); }
|
|
99
|
+
.tr-conv .tr-prose .ah-md__tablebox { margin: 10px 0; overflow-x: auto; }
|
|
100
|
+
.tr-conv .tr-prose table { border-collapse: collapse; width: 100%; font-size: var(--tr-conv-quiet-size); }
|
|
101
|
+
.tr-conv .tr-prose th, .tr-conv .tr-prose td { padding: 4px 10px 4px 0; border-bottom: 1px solid var(--vf-hairline); text-align: left; vertical-align: top; }
|
|
102
|
+
.tr-conv .tr-code { margin: 10px 0 0; border-radius: 10px; background: var(--vf-fill); overflow: hidden; }
|
|
103
|
+
.tr-conv .tr-code__bar { display: flex; align-items: center; height: 24px; padding: 0 12px; border-bottom: 1px solid var(--vf-hairline); color: var(--vf-text-tertiary); font-size: 10.5px; }
|
|
104
|
+
.tr-conv .tr-code__bar button { margin-left: auto; padding: 0; border: 0; background: none; color: var(--vf-text-tertiary); font: inherit; cursor: pointer; }
|
|
105
|
+
.tr-conv .tr-code pre { margin: 0; padding: 10px 12px; overflow-x: auto; color: var(--vf-text-secondary); font-family: var(--vf-font-mono); font-size: 12px; line-height: 1.5; }
|
|
106
|
+
.tr-conv .ah-syntax [data-t="comment"] { color: var(--vf-text-faint); font-style: italic; }
|
|
107
|
+
.tr-conv .ah-syntax [data-t="operator"] { color: var(--vf-text-tertiary); }
|
|
108
|
+
|
|
109
|
+
/* media: one picture as wide as the reply, up to the host's measure */
|
|
110
|
+
.tr-conv-media { margin: 0; min-width: 0; }
|
|
111
|
+
.tr-conv-media[data-count="1"] { width: min(100%, var(--tr-conv-media-width)); }
|
|
112
|
+
.tr-conv-media__open {
|
|
113
|
+
display: block; width: 100%; padding: 0; border: 0; border-radius: var(--tr-conv-media-round); overflow: hidden;
|
|
114
|
+
aspect-ratio: var(--tr-conv-media-aspect, 4 / 3); background: var(--vf-fill); box-shadow: inset 0 0 0 1px var(--vf-hairline);
|
|
115
|
+
cursor: zoom-in;
|
|
116
|
+
}
|
|
117
|
+
.tr-conv-media__open img { display: block; width: 100%; height: 100%; object-fit: cover; }
|
|
118
|
+
.tr-conv-media__open:focus-visible { outline: 2px solid var(--vf-select); outline-offset: 2px; }
|
|
119
|
+
.tr-conv-media__missing {
|
|
120
|
+
display: grid; place-items: center; gap: 6px; aspect-ratio: var(--tr-conv-media-aspect, 4 / 3); padding: 12px;
|
|
121
|
+
border: 1px dashed var(--vf-hairline-strong); border-radius: var(--tr-conv-media-round); color: var(--vf-text-tertiary);
|
|
122
|
+
font-size: var(--tr-conv-quiet-size); text-align: center;
|
|
123
|
+
}
|
|
124
|
+
.tr-conv-media__missing button { padding: 0; border: 0; background: none; color: var(--vf-text-secondary); font: inherit; text-decoration: underline; cursor: pointer; }
|
|
125
|
+
.tr-conv-media .tr-attachments { margin-top: 0; }
|
|
126
|
+
|
|
127
|
+
/* a video alone: its first frame, its length and size, played in place */
|
|
128
|
+
.tr-conv-video { margin: 0; width: min(100%, var(--tr-conv-media-width)); min-width: 0; }
|
|
129
|
+
.tr-conv-video__stage {
|
|
130
|
+
position: relative; overflow: hidden; border-radius: var(--tr-conv-media-round);
|
|
131
|
+
aspect-ratio: var(--tr-video-aspect, 1.7778); background: var(--vf-fill); box-shadow: inset 0 0 0 1px var(--vf-hairline);
|
|
132
|
+
}
|
|
133
|
+
.tr-conv-video__stage video { display: block; width: 100%; height: 100%; object-fit: contain; }
|
|
134
|
+
.tr-conv-video__play {
|
|
135
|
+
position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0;
|
|
136
|
+
background: none; color: var(--vf-text-primary); cursor: pointer;
|
|
137
|
+
}
|
|
138
|
+
.tr-conv-video__play svg { filter: drop-shadow(0 1px 2px var(--vf-hairline-strong)); }
|
|
139
|
+
.tr-conv-video__play:focus-visible { outline: 2px solid var(--vf-select); outline-offset: -2px; }
|
|
140
|
+
.tr-conv-video__facts {
|
|
141
|
+
margin-top: 6px; color: var(--vf-text-tertiary); font-size: var(--tr-conv-quiet-size); font-variant-numeric: tabular-nums;
|
|
142
|
+
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
143
|
+
}
|
|
144
|
+
.tr-conv-video .tr-att__video { width: 100%; margin: 0; }
|
|
145
|
+
.tr-conv-video .tr-att__video .tr-att__tile { height: auto; aspect-ratio: var(--tr-video-aspect, 1.7778); border-radius: var(--tr-conv-media-round); }
|
|
146
|
+
|
|
147
|
+
@media (prefers-reduced-motion: reduce) { .tr-conv__chev { transition: none; } }
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* ═══════════════════════════════════════════════════════════════════════════
|
|
2
|
+
The conversation view's stylesheet (`@vibefield/rosetta-room/styles/conversation.css`).
|
|
3
|
+
Import it once, after the host's tokens. Every rule is scoped to the view's
|
|
4
|
+
root (.tr-conv). Sizes are the host's --tr-conv-* tokens, each with its
|
|
5
|
+
default; colours and fonts are the --vf-* names the room already reads.
|
|
6
|
+
It imports no sheet of the room's other views and none of mille's: the
|
|
7
|
+
parts a turn draws (the rail, a long message's fade) bring their own
|
|
8
|
+
sheets beside them, and the room's gallery brings its sheet when it is
|
|
9
|
+
loaded.
|
|
10
|
+
═══════════════════════════════════════════════════════════════════════ */
|
|
11
|
+
@import "./conversation-turn.css";
|
|
12
|
+
|
|
13
|
+
.tr-conv {
|
|
14
|
+
position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0;
|
|
15
|
+
color: var(--vf-text-primary); font-family: var(--vf-font-sans);
|
|
16
|
+
}
|
|
17
|
+
.tr-conv__scroll { position: relative; flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overflow-anchor: none; overscroll-behavior: contain; }
|
|
18
|
+
.tr-conv__list { position: relative; width: 100%; }
|
|
19
|
+
.tr-conv__row { position: absolute; top: 0; left: 0; width: 100%; box-sizing: border-box; }
|
|
20
|
+
.tr-conv__cell { max-width: var(--tr-conv-column, 640px); margin: 0 auto; min-width: 0; }
|
|
21
|
+
|
|
22
|
+
/* a day, and the line between two sessions of the chain */
|
|
23
|
+
.tr-conv__day {
|
|
24
|
+
display: flex; justify-content: center; padding: 4px 0;
|
|
25
|
+
color: var(--vf-text-tertiary); font-size: var(--tr-conv-quiet, 12.5px); font-variant-numeric: tabular-nums;
|
|
26
|
+
}
|
|
27
|
+
.tr-conv__boundary { height: 1px; margin: 6px 0; background: var(--vf-hairline); }
|
|
28
|
+
|
|
29
|
+
/* a turn not read yet: its place, at its remembered or estimated height */
|
|
30
|
+
.tr-conv__placeholder { border-radius: 12px; background: var(--vf-fill); opacity: 0.45; }
|
|
31
|
+
|
|
32
|
+
/* what the view says when it holds nothing to draw, and how it is doing */
|
|
33
|
+
.tr-conv__state {
|
|
34
|
+
padding: 24px 0; color: var(--vf-text-secondary); font-size: var(--tr-conv-quiet, 12.5px); text-align: center;
|
|
35
|
+
}
|
|
36
|
+
.tr-conv__state p { margin: 0; }
|
|
37
|
+
.tr-conv__why { color: var(--vf-text-tertiary); }
|
|
38
|
+
.tr-conv__scroll > .tr-conv__state { max-width: var(--tr-conv-column, 640px); margin: 0 auto; }
|
|
39
|
+
|
|
40
|
+
/* a part's receipt (Copied), said and gone */
|
|
41
|
+
.tr-conv__receipt {
|
|
42
|
+
position: absolute; left: 50%; bottom: 12px; margin: 0; transform: translateX(-50%); pointer-events: none;
|
|
43
|
+
color: var(--vf-text-secondary); font-size: var(--tr-conv-quiet, 12.5px);
|
|
44
|
+
}
|
|
45
|
+
.tr-conv__receipt:empty { display: none; }
|
|
@@ -259,11 +259,20 @@ button.tr-anchor { border: 0; background: none; font-weight: 400; }
|
|
|
259
259
|
z-index: 4; opacity: 0; transition: opacity 160ms ease;
|
|
260
260
|
}
|
|
261
261
|
.tr-seg:hover > .tr-acts, .tr-seg:focus-within > .tr-acts { opacity: 1; }
|
|
262
|
+
/* The act is sticky only while it is drawn (2026-11-29, the reader's arrival
|
|
263
|
+
cost): the browser holds every sticky box to its scroller after each layout,
|
|
264
|
+
and a long document's hidden acts, one a reply, made one arriving row pay for
|
|
265
|
+
all of them. Hidden, it is invisible wherever it sits; on leaving it stays
|
|
266
|
+
pinned until its fade has run. */
|
|
262
267
|
.tr-acts button {
|
|
263
|
-
position:
|
|
268
|
+
position: static; top: 12px; flex: none; white-space: nowrap;
|
|
264
269
|
height: 24px; padding: 0 9px; border: 1px solid var(--vf-hairline); border-radius: 999px;
|
|
265
270
|
background: var(--vf-chrome-solid); color: var(--vf-text-secondary); font-size: 10.5px;
|
|
266
|
-
cursor: pointer; transition: transform 140ms ease, background-color 160ms ease;
|
|
271
|
+
cursor: pointer; transition: transform 140ms ease, background-color 160ms ease, position 0s linear 160ms;
|
|
272
|
+
transition-behavior: allow-discrete;
|
|
273
|
+
}
|
|
274
|
+
.tr-seg:hover > .tr-acts button, .tr-seg:focus-within > .tr-acts button {
|
|
275
|
+
position: sticky; transition: transform 140ms ease, background-color 160ms ease, position 0s;
|
|
267
276
|
}
|
|
268
277
|
.tr-acts button:hover { background: var(--vf-fill); color: var(--vf-text-primary); }
|
|
269
278
|
.tr-acts button:active { transform: scale(0.94); }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibefield/rosetta-room",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "rosetta's History room as a package: the projects, sessions and worktree columns, the panels and charts, and the transcript, behind injected ports. It dials nothing.",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -14,7 +14,12 @@
|
|
|
14
14
|
"types": "./dist/fixtures/index.d.ts",
|
|
15
15
|
"import": "./dist/fixtures/index.js"
|
|
16
16
|
},
|
|
17
|
-
"./
|
|
17
|
+
"./conversation": {
|
|
18
|
+
"types": "./dist/conversation/index.d.ts",
|
|
19
|
+
"import": "./dist/conversation/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./styles/room.css": "./dist/styles/history-room.css",
|
|
22
|
+
"./styles/conversation.css": "./dist/styles/conversation.css"
|
|
18
23
|
},
|
|
19
24
|
"sideEffects": [
|
|
20
25
|
"*.css"
|
|
@@ -35,8 +40,8 @@
|
|
|
35
40
|
"@radix-ui/react-context-menu": "^2.3.7",
|
|
36
41
|
"@radix-ui/react-dialog": "^1.1.23",
|
|
37
42
|
"@radix-ui/react-tooltip": "^1.2.16",
|
|
38
|
-
"@vibefield/rosetta-protocol": "^0.1.
|
|
39
|
-
"@tanstack/react-virtual": "^3.14.
|
|
43
|
+
"@vibefield/rosetta-protocol": "^0.1.13",
|
|
44
|
+
"@tanstack/react-virtual": "^3.14.17",
|
|
40
45
|
"@vibecook/mille": "^0.3.4",
|
|
41
46
|
"@vibecook/mille-ui": "^0.3.4"
|
|
42
47
|
},
|