@mgamadeus/ddd-design-studio 0.0.0-stage → 0.2.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ddd-framework
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,377 @@
1
- # Temporary Holding Version
1
+ # @mgamadeus/ddd-design-studio
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The React frontend of the design review studio for backends built with
4
+ [mgamadeus/ddd](https://github.com/ddd-framework/ddd): an overview of design projects, the canvas of a project (every
5
+ board laid out per section, live sandboxed HTML at close zoom, thumbnails further out), the focus view of one board,
6
+ comment threads with pins, review statuses and plain-text design references for agents.
7
+
8
+ It talks to the API of the Composer package
9
+ [`mgamadeus/ddd-design-studio`](https://github.com/ddd-framework/ddd-design-studio) (same repository, same version
10
+ number). Whatever it needs from the application around it (API client, router, UI primitives, session, storage, texts)
11
+ comes in through one provider; it contains no application code.
12
+
13
+ ## Install
14
+
15
+ ```bash
16
+ npm install @mgamadeus/ddd-design-studio
17
+ # or
18
+ pnpm add @mgamadeus/ddd-design-studio
19
+ ```
20
+
21
+ ESM only. Peer dependencies (installed by the application):
22
+
23
+ | Package | Range |
24
+ |---|---|
25
+ | `react`, `react-dom` | `^19.3.1` |
26
+ | `@reduxjs/toolkit` | `^2.13.0` |
27
+ | `react-redux` | `^9.3.1` |
28
+ | `@mgamadeus/ddd-web` | `^0.3.0` |
29
+ | `@xyflow/react` | `^12.12.1` (loaded only by the `/canvas` entry) |
30
+ | `lucide-react` | `^1.66.0` |
31
+
32
+ `clsx` and `tailwind-merge` are regular dependencies.
33
+
34
+ ## Entries
35
+
36
+ | Import | Content | Loads `@xyflow/react` |
37
+ |---|---|---|
38
+ | `@mgamadeus/ddd-design-studio` | `createDesignStudioApi`, `DesignStudioProvider` and its hooks, `DesignStudioOverviewScreen`, `DesignStudioProjectScreen`, `DesignStudioReviewsScreen`, the reference and theme helpers, the default texts, all types | no |
39
+ | `@mgamadeus/ddd-design-studio/canvas` | `DesignStudioCanvasScreen` | yes, with its stylesheet (`@xyflow/react/dist/style.css`) |
40
+
41
+ Every file of the package starts with `'use client'`: all exports are client code, including the pure helpers. The
42
+ canvas entry imports a stylesheet, so it needs a bundler that handles CSS imports from packages (Next.js, Vite and
43
+ webpack with a CSS loader do). It measures the DOM and renders sandboxed iframes: load it client-only and lazily.
44
+
45
+ ## Requirements of the application
46
+
47
+ - **Tailwind 4 with shadcn tokens.** The package ships no CSS of its own. Its class names are Tailwind utilities, so
48
+ Tailwind must scan the package's build output. In the application's main stylesheet (path relative to that file):
49
+
50
+ ```css
51
+ @import 'tailwindcss';
52
+ @source '../node_modules/@mgamadeus/ddd-design-studio/dist';
53
+ ```
54
+
55
+ The class names use the shadcn colour tokens (`bg-card`, `bg-popover`, `text-muted-foreground`, `bg-primary`,
56
+ `text-primary-foreground`, `border-border`, `ring-ring`, `bg-destructive`, …) and these additional names, which the
57
+ application's stylesheet defines:
58
+ - colours: `brand`, `brand-light`, `brand-emphasis`, `tint`, `tint-strong`, `info`, `success`, `warning`
59
+ - utilities / tokens: `surface-glass-strong`, `shadow-surface-raised`, `text-title-card`, `--nav-h` (height of the
60
+ shell's top bar; the canvas fills `100dvh - var(--nav-h)`)
61
+ - **One RTK Query api** created with `createApi` from `@reduxjs/toolkit/query/react` on a fetch-style base query
62
+ (`createDddBaseQuery` of `@mgamadeus/ddd-web/api`), its reducer and middleware in the store.
63
+ - **UI primitives** with shadcn "new-york" names and behaviour, plus a few page blocks (see
64
+ [Environment](#environment-designstudioenvironment)).
65
+ - **Routes** for the studio's pages (see [Routes](#routes-the-application-creates)).
66
+
67
+ ## API
68
+
69
+ ```ts
70
+ const designStudioApi = createDesignStudioApi({ baseApi, apiPrefix: '/api/admin/designStudio' });
71
+ ```
72
+
73
+ `createDesignStudioApi` calls `baseApi.enhanceEndpoints({ addTagTypes: ['DesignStudio'] }).injectEndpoints(…)` once and
74
+ returns the hooks. One cache tag: every query provides it, every mutation invalidates it.
75
+
76
+ | Hook | Request (below `apiPrefix`) |
77
+ |---|---|
78
+ | `useOverviewQuery` | `GET /overview` |
79
+ | `useThemesQuery` | `GET /themes` |
80
+ | `useCanvasQuery` | `GET /canvases/{projectKey}/{canvasKey}` |
81
+ | `useCanvasRevisionQuery` | `GET /canvases/{projectKey}/{canvasKey}/revision` |
82
+ | `useCanvasCommentsQuery` | `GET /canvases/{projectKey}/{canvasKey}/comments` |
83
+ | `useExpiringCommentsQuery` | `GET /comments/expiring` |
84
+ | `useRequestThumbnailRenderingMutation` | `POST /canvases/{projectKey}/{canvasKey}/thumbnailRenderRequests` |
85
+ | `useSetBoardStatusMutation` | `PATCH /canvases/{projectKey}/{canvasKey}/boards/{boardKey}/status` |
86
+ | `useCreateCommentMutation` | `POST /canvases/{projectKey}/{canvasKey}/boards/{boardKey}/comments` |
87
+ | `useReplyToCommentMutation` | `POST /comments/{designStudioCommentId}/replies` |
88
+ | `usePatchCommentMutation` | `PATCH /comments/{designStudioCommentId}` |
89
+ | `useDeleteCommentMutation` | `DELETE /comments/{designStudioCommentId}` |
90
+ | `useResolveCommentMutation` | `POST /comments/{designStudioCommentId}/resolve` |
91
+ | `useReopenCommentMutation` | `POST /comments/{designStudioCommentId}/reopen` |
92
+ | `useKeepCommentMutation` | `POST /comments/{designStudioCommentId}/keep` |
93
+
94
+ Request bodies are passed as `body`; the canvas, revision, comments and render-request operations take the optional
95
+ `theme` query parameter (`<themeId>[:<mode>]`).
96
+
97
+ ## Environment (`DesignStudioEnvironment`)
98
+
99
+ Pass one stable object (a module constant) to `DesignStudioProvider`. Entries named `use…` are hooks.
100
+
101
+ | Entry | Type | Purpose |
102
+ |---|---|---|
103
+ | `api` | `DesignStudioApi` | the hooks from `createDesignStudioApi` |
104
+ | `apiBaseUrl` | `string` | origin prefixed to the delivery URLs of boards and thumbnails; `''` = same origin |
105
+ | `router.Link` | component `{ href, className, children }` | in-app link |
106
+ | `router.useSearchParams` | `() => { get(key) }` | the current search parameters (reactive); the canvas reads `?board=` and `?code=`, the overview `?code=` |
107
+ | `router.useSearchParamsWriter` | `() => (updates) => void` | replaces search parameters of the current page: no history entry, no scroll jump, other parameters kept, same-tick writes merged; `null` removes one |
108
+ | `router.useUrlState` | `(keys, { stateId, debounceMs, uncounted }) => { values, debounced, setValue }` | the canvas state (`q`, `section`, `status`, `theme`, `mode`, `vp`) in the URL, restored from what the application remembered under `stateId` when the URL has none of the keys |
109
+ | `router.useNavigate` (optional) | `() => (href) => void` | client navigation to an in-app path (query allowed, with a history entry); the overview uses it to open a board code; without it the overview shows a link to click |
110
+ | `paths` | `overview()`, `project(projectKey)`, `canvas(projectKey, canvasKey)` | in-app paths of the studio's pages |
111
+ | `components` | `DesignStudioComponents` | UI slots: `Button`, `Badge`, `Card`, `CardHeader`, `CardTitle`, `CardContent`, `Skeleton`, `Checkbox`, `Label`, `Textarea`, `Dialog`, `DialogContent`, `DialogTitle`, `DialogDescription`, `Popover`, `PopoverTrigger`, `PopoverContent`, `Tooltip`, `TooltipTrigger`, `TooltipContent`, `DropdownMenu`, `DropdownMenuTrigger`, `DropdownMenuContent`, `DropdownMenuItem`, `DropdownMenuSeparator`, `Combobox`, `SearchField`, `QuickFilterPills`, `StatusBadge`, `PageHeader`, `StatusCallout`, `CardGrid`, `PageSections` — each typed with only the props the studio passes ([`src/provider/types.ts`](src/provider/types.ts), interface `DesignStudioComponents`) |
112
+ | `notify` | `success(message)`, `error(message)`, `info(message, { id, action })` | toasts |
113
+ | `formatDateTime` | `(value) => string` | a backend date-time for the viewer |
114
+ | `storage` | `read(key)`, `write(key, value)` | per-viewer persistence; keys: `commentsPanelOpen` |
115
+ | `useCanWrite` | `() => boolean` | enables the write controls |
116
+ | `useCurrentAccountId` | `() => number \| null` | the signed-in account (own comments can be deleted) |
117
+ | `shell.useSidebarCollapsed` | optional `() => [isCollapsed, toggle]` | the canvas collapses the shell's sidebar while it is open |
118
+ | `statuses` | `{ [statusKey]: { label, tone, icon?, description? } }` | presentation per review status; an unknown key shows as it is |
119
+ | `statusColors` | optional `{ [statusKey]: cssColour }` | minimap colour per review status |
120
+ | `texts` | optional `Partial<DesignStudioTexts>` | replacements for UI texts (see [Texts](#texts-designstudiotexts)) |
121
+
122
+ Inside the package, components read it with `useDesignStudio()` or the narrower `useDesignStudioApi()`,
123
+ `useDesignStudioComponents()`, `useDesignStudioRouter()`, `useDesignStudioPaths()`, `useDesignStudioNotify()`,
124
+ `useDesignStudioTexts()`.
125
+
126
+ ## Texts (`DesignStudioTexts`)
127
+
128
+ `environment.texts` replaces UI texts of the canvas; an entry left out keeps its English default
129
+ (`DEFAULT_DESIGN_STUDIO_TEXTS`, [`src/provider/texts.ts`](src/provider/texts.ts)). Entries with parameters are functions.
130
+
131
+ | Entry | Default |
132
+ |---|---|
133
+ | `referencesCopied(count)` | `Reference copied` / `References copied (3)` |
134
+ | `boardsUpdated(count)` | `1 board updated` / `3 boards updated` |
135
+ | `showUpdatedBoard` | `Show` |
136
+ | `canvasUpToDate` | `Canvas is up to date` |
137
+ | `reload` | `Reload (R)` |
138
+ | `thumbnailsFailed` | `Thumbnails failed · try again` |
139
+ | `thumbnailsWaitingForRenderer(themeLabel)` | `Thumbnails for <theme> are waiting for the renderer` |
140
+ | `thumbnailsRendering(themeLabel)` | `Thumbnails for <theme> are being rendered` |
141
+ | `thumbnailsFallbackThemeLabel` | `this look` (stands in for a theme without a label) |
142
+ | `thumbnailsMissing(count)` | `3 boards have no thumbnail in this look yet; they appear as soon as they are rendered.` |
143
+ | `thumbnailsLastError(error)` | `Last error: <error>` |
144
+ | `themeWithoutDarkMode` | `This theme has no dark mode` |
145
+ | `thumbnailMissing` | `No thumbnail yet` |
146
+ | `referenceNotePlaceholder` | `What should change? (optional, goes into the reference)` |
147
+ | `boardCodeNotFound(code)` | `No board has the code <code>` |
148
+ | `boardLinkCopied(code)` | `Link to <code> copied` |
149
+ | `copyBoardLink` | `Copy link` |
150
+
151
+ ```ts
152
+ const ENVIRONMENT: DesignStudioEnvironment = {
153
+ // …
154
+ texts: { reload: 'Refresh (R)', boardsUpdated: count => `${count} screens changed` },
155
+ };
156
+ ```
157
+
158
+ The other texts of the studio are fixed English strings.
159
+
160
+ ## Routes the application creates
161
+
162
+ The package has no router. The application creates one page per screen and tells the studio their paths through
163
+ `environment.paths`:
164
+
165
+ | Page | Screen | `paths` entry |
166
+ |---|---|---|
167
+ | overview of the projects | `DesignStudioOverviewScreen` | `overview()` |
168
+ | one project and its canvases | `DesignStudioProjectScreen` (`projectKey`) | `project(projectKey)` |
169
+ | one canvas | `DesignStudioCanvasScreen` (`projectKey`, `canvasKey`) from `/canvas` | `canvas(projectKey, canvasKey)` |
170
+ | reviews (optional; an empty state in this version) | `DesignStudioReviewsScreen` | none: linked by the application's own navigation |
171
+
172
+ The canvas page keeps its state in search parameters: `board` (the focus view), `q`, `section`, `status`, `theme`,
173
+ `mode`, `vp`. `code` opens a board by its code (see Board codes) and is removed from the URL once handled. Project and canvas keys in a URL should be validated by the application before a screen is rendered.
174
+
175
+ ## Wiring with the Next.js App Router
176
+
177
+ A minimal example. `@/…` stands for the application's own modules.
178
+
179
+ ```ts
180
+ // src/design-studio/designStudioApi.ts: once, at module scope
181
+ import { createDesignStudioApi } from '@mgamadeus/ddd-design-studio';
182
+
183
+ import { baseApi } from '@/api/baseApi';
184
+
185
+ export const designStudioApi = createDesignStudioApi({ baseApi, apiPrefix: '/api/admin/designStudio' });
186
+ ```
187
+
188
+ ```tsx
189
+ // src/design-studio/AppDesignStudioProvider.tsx: the environment built from the application's own pieces
190
+ 'use client';
191
+
192
+ import { DesignStudioProvider, type DesignStudioEnvironment } from '@mgamadeus/ddd-design-studio';
193
+ import Link from 'next/link';
194
+ import { usePathname, useRouter, useSearchParams } from 'next/navigation';
195
+ import { type ReactNode, useCallback } from 'react';
196
+
197
+ import { designStudioApi } from './designStudioApi';
198
+
199
+ /**
200
+ * Replaces search parameters of the current page; `null` removes one. Simplified: the contract also asks for writes
201
+ * made in the same tick to be merged into one navigation (queue them and flush in a microtask).
202
+ */
203
+ const useSearchParamsWriter = () => {
204
+ const pathname = usePathname();
205
+ const router = useRouter();
206
+ return useCallback(
207
+ (updates: Readonly<Record<string, string | null>>) => {
208
+ const next = new URLSearchParams(window.location.search);
209
+ for (const [key, value] of Object.entries(updates)) {
210
+ if (value) next.set(key, value);
211
+ else next.delete(key);
212
+ }
213
+ const query = next.toString();
214
+ router.replace(query ? `${pathname}?${query}` : pathname, { scroll: false });
215
+ },
216
+ [pathname, router]
217
+ );
218
+ };
219
+
220
+ const ENVIRONMENT: DesignStudioEnvironment = {
221
+ api: designStudioApi,
222
+ apiBaseUrl: '',
223
+ // useUrlState: the application's hook for list state in the URL (see the contract of `router.useUrlState`)
224
+ router: { Link, useSearchParams, useSearchParamsWriter, useUrlState: useAppUrlState },
225
+ paths: {
226
+ overview: () => '/design',
227
+ project: projectKey => `/design/${projectKey}`,
228
+ canvas: (projectKey, canvasKey) => `/design/${projectKey}/canvases/${canvasKey}`,
229
+ },
230
+ components: { Button, Badge, Card /* … every slot of DesignStudioComponents */ },
231
+ notify: { success: toast.success, error: toast.error, info: toast.info },
232
+ formatDateTime,
233
+ storage: {
234
+ read: key => readLocal(`app.designStudio.${key}`),
235
+ write: (key, value) => writeLocal(`app.designStudio.${key}`, value),
236
+ },
237
+ useCanWrite: () => useAppSelector(selectCanWrite),
238
+ useCurrentAccountId: () => useAppSelector(selectAccountId),
239
+ statuses: {
240
+ DRAFT: { label: 'Draft', tone: 'neutral' },
241
+ IN_REVIEW: { label: 'In review', tone: 'info' },
242
+ CHOSEN: { label: 'Chosen', tone: 'success' },
243
+ REJECTED: { label: 'Rejected', tone: 'danger' },
244
+ },
245
+ };
246
+
247
+ export const AppDesignStudioProvider = ({ children }: { children: ReactNode }) => (
248
+ <DesignStudioProvider environment={ENVIRONMENT}>{children}</DesignStudioProvider>
249
+ );
250
+ ```
251
+
252
+ ```tsx
253
+ // src/app/design/page.tsx
254
+ import { DesignStudioOverviewScreen } from '@mgamadeus/ddd-design-studio';
255
+
256
+ import { AppDesignStudioProvider } from '@/design-studio/AppDesignStudioProvider';
257
+
258
+ export default function DesignOverviewPage() {
259
+ return (
260
+ <AppDesignStudioProvider>
261
+ <DesignStudioOverviewScreen />
262
+ </AppDesignStudioProvider>
263
+ );
264
+ }
265
+ ```
266
+
267
+ ```tsx
268
+ // src/app/design/[projectKey]/page.tsx
269
+ import { DesignStudioProjectScreen } from '@mgamadeus/ddd-design-studio';
270
+
271
+ import { AppDesignStudioProvider } from '@/design-studio/AppDesignStudioProvider';
272
+
273
+ export default async function DesignProjectPage({ params }: { params: Promise<{ projectKey: string }> }) {
274
+ const { projectKey } = await params;
275
+ return (
276
+ <AppDesignStudioProvider>
277
+ <DesignStudioProjectScreen projectKey={projectKey} />
278
+ </AppDesignStudioProvider>
279
+ );
280
+ }
281
+ ```
282
+
283
+ ```tsx
284
+ // src/design-studio/DesignCanvasLoader.tsx: the canvas, client-only and lazy
285
+ 'use client';
286
+
287
+ import dynamic from 'next/dynamic';
288
+
289
+ import { AppDesignStudioProvider } from './AppDesignStudioProvider';
290
+
291
+ const DesignStudioCanvasScreen = dynamic(
292
+ () => import('@mgamadeus/ddd-design-studio/canvas').then(module => module.DesignStudioCanvasScreen),
293
+ { ssr: false }
294
+ );
295
+
296
+ export const DesignCanvasLoader = ({ projectKey, canvasKey }: { projectKey: string; canvasKey: string }) => (
297
+ <AppDesignStudioProvider>
298
+ {/* `key`: one canvas keeps nothing of another */}
299
+ <DesignStudioCanvasScreen key={`${projectKey}/${canvasKey}`} projectKey={projectKey} canvasKey={canvasKey} />
300
+ </AppDesignStudioProvider>
301
+ );
302
+ ```
303
+
304
+ ```tsx
305
+ // src/app/design/[projectKey]/canvases/[canvasKey]/page.tsx
306
+ import { Suspense } from 'react';
307
+
308
+ import { DesignCanvasLoader } from '@/design-studio/DesignCanvasLoader';
309
+
310
+ export default async function DesignCanvasPage({
311
+ params,
312
+ }: {
313
+ params: Promise<{ projectKey: string; canvasKey: string }>;
314
+ }) {
315
+ const { projectKey, canvasKey } = await params;
316
+ return (
317
+ // the canvas screen reads search parameters
318
+ <Suspense>
319
+ <DesignCanvasLoader projectKey={projectKey} canvasKey={canvasKey} />
320
+ </Suspense>
321
+ );
322
+ }
323
+ ```
324
+
325
+ ## Board codes
326
+
327
+ A canvas with a `code` in the backend config gives every board a short code (`APP ONB-W2`: project code, canvas code,
328
+ board part from the file name or `canvas.json`). The code is shown in the board header and in the selected board's
329
+ panel, the canvas search finds boards by it (`w2`, `ONB-W2`), and references carry it (`code APP ONB-W2`).
330
+
331
+ - **Code link of a canvas:** `<canvas page>?code=APP-ONB-W2` (also `ONB-W2` or `W2`). The canvas moves the view to the
332
+ board, selects it and shows its panel; the parameter is then removed (a reload keeps the place the viewer moved to).
333
+ "Copy link" in the panel copies this link with the current look.
334
+ - **Short link:** `<overview page>?code=APP-ONB-W2` finds the canvas by the code and opens it there (needs
335
+ `router.useNavigate`; without it the overview shows a link). The overview also has a field to type a code.
336
+ - Helpers (pure, exported from the main entry): `boardCodeMatches`, `findBoardForCode`, `codeBelongsToCanvas`,
337
+ `buildBoardCodeLink`, `boardCodeUrlValue`, `normalizeBoardCode`, `CODE_PARAM`.
338
+
339
+ ## Reference helpers
340
+
341
+ `buildDesignReference(input)` builds the plain-text block that names one board (optionally a region, a comment thread,
342
+ a note) for an agent; `buildBoardDeepLink(pageUrl, boardKey, themeId, mode, viewport?)` the link that reopens the board
343
+ in the focus view. Both are pure and exported from the main entry.
344
+
345
+ ## Development
346
+
347
+ ```bash
348
+ pnpm install
349
+ pnpm typecheck
350
+ pnpm test # node:test on src/**/*.test.ts (Node 22.6 or newer)
351
+ pnpm build # tsup -> dist (ESM + .d.ts), then scripts/check-package.mjs
352
+ ```
353
+
354
+ | Path | Content |
355
+ |---|---|
356
+ | `src/index.ts` | the main entry (does not load `@xyflow/react`) |
357
+ | `src/canvas/index.ts` | the `/canvas` entry: `DesignStudioCanvasScreen` |
358
+ | `src/api/` | `createDesignStudioApi` and the types of the backend contract (maintained by hand) |
359
+ | `src/provider/` | `DesignStudioProvider`, its hooks, the `DesignStudioEnvironment` types, the default texts |
360
+ | `src/screens/` | overview, project and reviews screens |
361
+ | `src/canvas/` | the canvas screen, the canvas engine, focus view, comments, and the pure modules with their tests |
362
+ | `scripts/check-package.mjs` | checks a build or an extracted tarball: export targets, the entry split, `'use client'` |
363
+ | `test/consumer/` | installs the packed tarball into a fresh project and type-checks a strict consumer |
364
+
365
+ Source files import only `react`, `react-dom`, `@xyflow/react`, `lucide-react`, `@reduxjs/toolkit`, `react-redux`,
366
+ `@mgamadeus/ddd-web/*`, `clsx`, `tailwind-merge` and relative files; only files below `src/canvas/` that the main
367
+ entry does not reach may import `@xyflow/react`. The published package contains `dist` only (no sources, no tests).
368
+
369
+ ## Release
370
+
371
+ The version in `package.json` equals the version in the repository's `composer.json`. Pushing the tag `v<version>`
372
+ runs `.github/workflows/release.yml`, which verifies both versions against the tag, builds, checks the tarball and
373
+ publishes it to npm through trusted publishing.
374
+
375
+ ## License
376
+
377
+ MIT
@@ -0,0 +1,18 @@
1
+ import * as react from 'react';
2
+
3
+ interface DesignStudioCanvasScreenProps {
4
+ projectKey: string;
5
+ canvasKey: string;
6
+ }
7
+ /**
8
+ * Design studio canvas: every board of a canvas laid out per section (a bold title
9
+ * line, then rows of nine boards with a header each), a toolbar on the canvas (select / hand, theme + light / dark
10
+ * mode, comments panel, present, zoom), search and filters by section and status, a collapsible comments panel and
11
+ * the focus view. Rendering stays proportional to what is on screen (boardDetail.ts):
12
+ * only nodes in the viewport mount, far zoom uses the 120 px thumbnails, live HTML only for ≤ 6 large boards after a
13
+ * pan / zoom ends.
14
+ */
15
+ declare const DesignStudioCanvasScreen: ({ projectKey, canvasKey }: DesignStudioCanvasScreenProps) => react.JSX.Element;
16
+
17
+ export { DesignStudioCanvasScreen };
18
+ export type { DesignStudioCanvasScreenProps };