@1agh/maude 0.29.0 → 0.30.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 +1 -1
- package/apps/studio/ai-banner.tsx +0 -1
- package/apps/studio/annotations-align.ts +149 -0
- package/apps/studio/annotations-bindings.ts +197 -0
- package/apps/studio/annotations-context-toolbar.tsx +436 -186
- package/apps/studio/annotations-groups.ts +270 -0
- package/apps/studio/annotations-layer.tsx +1708 -1660
- package/apps/studio/annotations-model.ts +2077 -0
- package/apps/studio/annotations-snap.ts +125 -0
- package/apps/studio/api.ts +208 -116
- package/apps/studio/bin/_png-playwright.mjs +1 -1
- package/apps/studio/bin/annotate.mjs +732 -0
- package/apps/studio/bin/annotate.sh +17 -0
- package/apps/studio/bin/read-annotations.mjs +152 -17
- package/apps/studio/build.ts +1 -1
- package/apps/studio/canvas-arrowheads.ts +78 -9
- package/apps/studio/canvas-cursors.ts +2 -0
- package/apps/studio/canvas-edit.ts +257 -7
- package/apps/studio/canvas-icons.tsx +105 -0
- package/apps/studio/canvas-shell.tsx +305 -8
- package/apps/studio/client/app.jsx +2812 -238
- package/apps/studio/client/index.html +1 -1
- package/apps/studio/client/styles/3-shell-maude.css +713 -11
- package/apps/studio/client/styles/4-components.css +39 -0
- package/apps/studio/client/styles/5-maude-overrides.css +16 -2
- package/apps/studio/client/tour/overlay.jsx +105 -17
- package/apps/studio/client/tour/usage-tour.js +23 -10
- package/apps/studio/commands/annotation-strokes-command.ts +1 -1
- package/apps/studio/commands/move-artboards-command.ts +1 -1
- package/apps/studio/comments-overlay.tsx +7 -5
- package/apps/studio/context-menu.tsx +4 -3
- package/apps/studio/contextual-toolbar.tsx +14 -0
- package/apps/studio/cursors-overlay.tsx +20 -20
- package/apps/studio/dist/client.bundle.js +3322 -602
- package/apps/studio/dist/comment-mount.js +95 -9
- package/apps/studio/dist/styles.css +2490 -167
- package/apps/studio/dom-selection.ts +115 -0
- package/apps/studio/export-dialog.tsx +3 -3
- package/apps/studio/history.ts +20 -3
- package/apps/studio/http.ts +124 -5
- package/apps/studio/input-router.tsx +7 -0
- package/apps/studio/inspect.ts +37 -8
- package/apps/studio/participants-chrome.tsx +1 -7
- package/apps/studio/server.ts +5 -2
- package/apps/studio/sync/agent.ts +231 -57
- package/apps/studio/sync/codec.ts +45 -0
- package/apps/studio/sync/cold-start.ts +158 -0
- package/apps/studio/sync/connection-state.ts +58 -2
- package/apps/studio/sync/index.ts +563 -221
- package/apps/studio/sync/journal.ts +190 -0
- package/apps/studio/sync/migrate-seed.ts +202 -44
- package/apps/studio/sync/projection.ts +22 -3
- package/apps/studio/sync/status.ts +15 -4
- package/apps/studio/test/activity.test.ts +1 -7
- package/apps/studio/test/annotate-write.test.ts +184 -0
- package/apps/studio/test/annotations-align.test.ts +88 -0
- package/apps/studio/test/annotations-bindings.test.ts +124 -0
- package/apps/studio/test/annotations-groups.test.ts +231 -0
- package/apps/studio/test/annotations-snap.test.ts +79 -0
- package/apps/studio/test/canvas-edit.test.ts +181 -1
- package/apps/studio/test/canvas-origin-gate.test.ts +8 -0
- package/apps/studio/test/collab-bridge.test.ts +0 -2
- package/apps/studio/test/collab-room.test.ts +2 -7
- package/apps/studio/test/csp-canvas-shell.test.ts +5 -0
- package/apps/studio/test/csrf-write-guard.test.ts +52 -0
- package/apps/studio/test/figjam-v3-model.test.ts +342 -0
- package/apps/studio/test/fixtures/figjam-v3-groups-bindings.svg +1 -0
- package/apps/studio/test/shared-doc-migrate.test.ts +224 -14
- package/apps/studio/test/sync-agent.test.ts +272 -2
- package/apps/studio/test/sync-codec.test.ts +65 -0
- package/apps/studio/test/sync-cold-start.test.ts +244 -0
- package/apps/studio/test/sync-connection-state.test.ts +68 -0
- package/apps/studio/test/sync-hardening.test.ts +0 -8
- package/apps/studio/test/sync-hubs-config.test.ts +0 -1
- package/apps/studio/test/sync-incident-replay.test.ts +211 -0
- package/apps/studio/test/sync-journal.test.ts +176 -0
- package/apps/studio/test/sync-runtime.test.ts +360 -5
- package/apps/studio/test/sync-status.test.ts +66 -0
- package/apps/studio/test/use-annotation-resize.test.ts +159 -0
- package/apps/studio/test/use-artboard-drag.test.ts +0 -1
- package/apps/studio/test/use-collab.test.ts +0 -0
- package/apps/studio/test/use-tool-mode.test.tsx +5 -2
- package/apps/studio/tool-palette.tsx +12 -2
- package/apps/studio/undo-hud.tsx +0 -1
- package/apps/studio/use-agent-presence.tsx +4 -2
- package/apps/studio/use-annotation-resize.tsx +484 -54
- package/apps/studio/use-annotation-selection.tsx +16 -4
- package/apps/studio/use-canvas-activity.tsx +2 -2
- package/apps/studio/use-collab.tsx +20 -15
- package/apps/studio/use-selection-set.tsx +9 -0
- package/apps/studio/use-tool-mode.tsx +5 -1
- package/apps/studio/whats-new.json +135 -10
- package/apps/studio/whats-new.schema.json +18 -2
- package/cli/commands/design-link.test.mjs +84 -0
- package/cli/commands/design.mjs +2 -1
- package/cli/commands/design.test.mjs +5 -1
- package/cli/lib/design-link.mjs +51 -1
- package/package.json +8 -8
- package/plugins/design/templates/_shell.html +28 -4
|
@@ -227,8 +227,18 @@ function ensurePaletteStyles(): void {
|
|
|
227
227
|
|
|
228
228
|
const NAV_TOOLS = ['move', 'hand', 'comment'] as const;
|
|
229
229
|
// Phase 24 — the two rect/ellipse buttons collapse into one Shape tool (with a
|
|
230
|
-
// kind popover); sticky/arrow/text/eraser keep their order.
|
|
231
|
-
|
|
230
|
+
// kind popover); sticky/arrow/text/eraser keep their order. Wave H — section
|
|
231
|
+
// joins the row (it was ⇧S-only before; users couldn't discover it).
|
|
232
|
+
const DRAW_TOOLS = [
|
|
233
|
+
'pen',
|
|
234
|
+
'highlighter',
|
|
235
|
+
'shape',
|
|
236
|
+
'sticky',
|
|
237
|
+
'section',
|
|
238
|
+
'arrow',
|
|
239
|
+
'text',
|
|
240
|
+
'eraser',
|
|
241
|
+
] as const;
|
|
232
242
|
|
|
233
243
|
// Phase 24 — the Shape tool's primitive picker (popover order matches FigJam).
|
|
234
244
|
const SHAPE_KINDS: ReadonlyArray<{ kind: ShapeKind; label: string }> = [
|
package/apps/studio/undo-hud.tsx
CHANGED
|
@@ -82,7 +82,6 @@ export function UndoHud() {
|
|
|
82
82
|
return (
|
|
83
83
|
<div
|
|
84
84
|
className="dc-undo-hud"
|
|
85
|
-
// biome-ignore lint/a11y/useSemanticElements: <output> is form-scoped; this HUD is a global status overlay outside any form
|
|
86
85
|
data-visible={visible ? 'true' : 'false'}
|
|
87
86
|
role="status"
|
|
88
87
|
aria-live="polite"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
import { createContext, type ReactNode, useContext, useEffect, useMemo, useState } from 'react';
|
|
25
25
|
|
|
26
|
-
import {
|
|
26
|
+
import { AGENT_COLOR } from './use-collab.tsx';
|
|
27
27
|
|
|
28
28
|
/** Wire shape of an `ai-activity` entry (matches collab/ai-activity.ts). */
|
|
29
29
|
export interface AiEntry {
|
|
@@ -134,7 +134,9 @@ export function deriveAgent(entry: AiEntry): AgentPresence {
|
|
|
134
134
|
const author = sanitizeAuthor(entry.author);
|
|
135
135
|
const id = `${author}:${entry.startedAt}`;
|
|
136
136
|
const name = agentFunnyName(id);
|
|
137
|
-
|
|
137
|
+
// DS colors-presence contract: the agent rides --presence-agent, a hue no
|
|
138
|
+
// human peer can hash to — attribution stays unambiguous on a shared canvas.
|
|
139
|
+
return { id, name, color: AGENT_COLOR, author, startedAt: entry.startedAt };
|
|
138
140
|
}
|
|
139
141
|
|
|
140
142
|
// ---------------------------------------------------------------------------
|