clavarium 0.2.336-next.1 → 0.2.337-next.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/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/web/kit.js +6 -3
- package/web/style.css +6 -2
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.337-next.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "clavarium",
|
|
9
|
-
"version": "0.2.
|
|
9
|
+
"version": "0.2.337-next.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/package.json
CHANGED
package/web/kit.js
CHANGED
|
@@ -118,6 +118,8 @@
|
|
|
118
118
|
member says only what waits for you (tone 'need' or 'count').
|
|
119
119
|
`tag`: 'button' (opens it: `onOpen`) or 'div' (a member: its gestures are `actions`). `cls`: the
|
|
120
120
|
page's own classes, kept for its rules and tests. */
|
|
121
|
+
/* A line of a message as plain words: Markdown's marks taken off (**, __, `, #, > , links' addresses). */
|
|
122
|
+
const plainLine = (t) => String(t ?? '').replace(/\[([^\]\n]+)\]\([^)\s]+\)/g, '$1').replace(/(\*\*|__|\*|_|`+|~~)(?=\S)([^\n]*?\S)\1/g, '$2').replace(/^\s*(#{1,6}|>|[-*+]|\d+\.)\s+/gm, '').replace(/\*\*|`/g, '').replace(/\s+/g, ' ').trim();
|
|
121
123
|
function ConvCard(m, { size = 'row', tag, cls = '', onOpen = null, actions = [] } = {}) {
|
|
122
124
|
const t = tag ?? (size === 'member' ? 'div' : 'button');
|
|
123
125
|
const root = node(t, `kit-conv kit-conv-${size}${cls ? ` ${cls}` : ''}`);
|
|
@@ -142,9 +144,10 @@
|
|
|
142
144
|
else if (marks) lines.push(marks);
|
|
143
145
|
else lines.push(...sub);
|
|
144
146
|
} else if (size === 'card') {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
if (
|
|
147
|
+
/* 06-11 (the owner's review): its last words without their Markdown marks; what it does now only when it
|
|
148
|
+
says something the point does not (asleep: the grey point says it); its tool in the details, not here. */
|
|
149
|
+
if (m.last) lines.push(node('small', 'last', plainLine(m.last)));
|
|
150
|
+
if (m.now && state !== 'sleep') lines.push(node('small', 'kit-conv-now', m.now));
|
|
148
151
|
} else {
|
|
149
152
|
const what = [m.who, m.now].filter(Boolean).join(' · ');
|
|
150
153
|
if (what) lines.push(node('small', 'kit-conv-now', what));
|
package/web/style.css
CHANGED
|
@@ -2288,7 +2288,8 @@ body.as-dragging #assets-rows .as-row { touch-action: none; }
|
|
|
2288
2288
|
/* THE CONVERSATIONS AS CARDS (02-11): playing cards, one per conversation, and one to add. */
|
|
2289
2289
|
#list-title { cursor: pointer; }
|
|
2290
2290
|
#deck { overflow-y: auto; }
|
|
2291
|
-
|
|
2291
|
+
/* 06-11 (the owner's tablet: 7 narrow columns, names cut): wider cards, fewer columns. */
|
|
2292
|
+
.deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr)); gap: 14px; padding: 14px 16px 24px; }
|
|
2292
2293
|
.conv-card { position: relative; min-height: 120px; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--bar), var(--panel)); color: var(--ink); text-align: left; font: inherit; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); cursor: pointer; transition: transform .15s, border-color .15s; }
|
|
2293
2294
|
.conv-card:hover, .conv-card:focus-visible { transform: translateY(-3px); border-color: var(--brass); }
|
|
2294
2295
|
.conv-card-new { align-items: center; justify-content: center; border-style: dashed; border-width: 1.5px; background: transparent; box-shadow: none; color: var(--ink2); }
|
|
@@ -2732,7 +2733,10 @@ button.kit-switch[aria-checked="true"]::after { left: 18px; background: var(--ok
|
|
|
2732
2733
|
.kit-conv-card .kit-conv-main > small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink2); font-size: .8125rem; }
|
|
2733
2734
|
.kit-conv-card .kit-conv-main > .last { color: var(--ink); opacity: .9; }
|
|
2734
2735
|
.kit-conv-card .kit-conv-main > .last { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
|
|
2735
|
-
|
|
2736
|
+
/* A name wraps between its words only (06-11: « Assistant / s » was cut anywhere); a word too long for the card is hyphenated where the language allows, else cut. */
|
|
2737
|
+
.kit-conv-card .kit-conv-head > b { font-size: .9375rem; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: normal; word-break: normal; hyphens: auto; line-height: 1.25; }
|
|
2738
|
+
.kit-conv-card .kit-chips { flex-wrap: nowrap; overflow: hidden; }
|
|
2739
|
+
.kit-conv-card .kit-chip { flex: 0 1 auto; min-width: 0; }
|
|
2736
2740
|
.kit-conv-member { --kc-ring: var(--panel); align-items: center; padding: 8px 12px; }
|
|
2737
2741
|
.kit-conv-member .kit-conv-head > b { font-size: .8125rem; }
|
|
2738
2742
|
.kit-conv-member .kit-conv-main > small { font-size: .75rem; }
|