@flamingo-stack/openframe-frontend-core 0.0.648 → 0.0.649-snapshot.20260918141122
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/{chunk-3ORBE27K.js → chunk-2PC6MKQH.js} +2 -2
- package/dist/{chunk-EW3EIPT5.cjs → chunk-2SRMTGZN.cjs} +5 -5
- package/dist/{chunk-EW3EIPT5.cjs.map → chunk-2SRMTGZN.cjs.map} +1 -1
- package/dist/{chunk-4JRBRMKO.cjs → chunk-3FB6T777.cjs} +37 -37
- package/dist/{chunk-4JRBRMKO.cjs.map → chunk-3FB6T777.cjs.map} +1 -1
- package/dist/{chunk-M6QCADAT.js → chunk-3JBLXPAY.js} +7 -7
- package/dist/{chunk-YUXFHVC2.cjs → chunk-5SEEARPT.cjs} +12 -12
- package/dist/{chunk-YUXFHVC2.cjs.map → chunk-5SEEARPT.cjs.map} +1 -1
- package/dist/{chunk-FQ4TZP6K.js → chunk-7Z4ZOIJW.js} +6 -6
- package/dist/{chunk-RM5MF2N3.cjs → chunk-AEEJOLIX.cjs} +3 -3
- package/dist/{chunk-RM5MF2N3.cjs.map → chunk-AEEJOLIX.cjs.map} +1 -1
- package/dist/{chunk-ODXVLFAQ.cjs → chunk-BUEI6IS4.cjs} +10 -10
- package/dist/{chunk-ODXVLFAQ.cjs.map → chunk-BUEI6IS4.cjs.map} +1 -1
- package/dist/{chunk-H3EJDISW.js → chunk-C5VTNKJM.js} +8 -33
- package/dist/chunk-C5VTNKJM.js.map +1 -0
- package/dist/{chunk-VIAMEQM2.cjs → chunk-EKAWIHWW.cjs} +5 -5
- package/dist/{chunk-VIAMEQM2.cjs.map → chunk-EKAWIHWW.cjs.map} +1 -1
- package/dist/{chunk-OLPU5IVF.js → chunk-FBBNZJRJ.js} +3 -3
- package/dist/{chunk-LFCMKMHR.cjs → chunk-FZWGYORM.cjs} +51 -51
- package/dist/{chunk-LFCMKMHR.cjs.map → chunk-FZWGYORM.cjs.map} +1 -1
- package/dist/{chunk-XI3QJD3N.cjs → chunk-G3LOZ356.cjs} +25 -25
- package/dist/{chunk-XI3QJD3N.cjs.map → chunk-G3LOZ356.cjs.map} +1 -1
- package/dist/{chunk-HN4DLGKP.cjs → chunk-G4SJ5WZR.cjs} +75 -75
- package/dist/{chunk-HN4DLGKP.cjs.map → chunk-G4SJ5WZR.cjs.map} +1 -1
- package/dist/{chunk-WBRO3MX2.js → chunk-GO6UI6Y3.js} +2 -2
- package/dist/{chunk-2ULLNHL3.js → chunk-HHTIYRVX.js} +4 -4
- package/dist/{chunk-2ULLNHL3.js.map → chunk-HHTIYRVX.js.map} +1 -1
- package/dist/{chunk-IWEJCDCB.js → chunk-HJP7BEVS.js} +3 -3
- package/dist/{chunk-SBKNMSQR.js → chunk-HNBRWR2L.js} +2 -2
- package/dist/{chunk-XE5DNWOR.js → chunk-I2GRDWF7.js} +5 -5
- package/dist/{chunk-YTOUGDPY.cjs → chunk-JHL2D362.cjs} +33 -33
- package/dist/{chunk-YTOUGDPY.cjs.map → chunk-JHL2D362.cjs.map} +1 -1
- package/dist/{chunk-PYAFHT6B.js → chunk-KJJD3R3Q.js} +3 -3
- package/dist/{chunk-N7AJUG4C.cjs → chunk-N3TUOEJF.cjs} +22 -22
- package/dist/{chunk-N7AJUG4C.cjs.map → chunk-N3TUOEJF.cjs.map} +1 -1
- package/dist/{chunk-WPNY4XEL.cjs → chunk-NOZUWDGR.cjs} +3 -3
- package/dist/{chunk-WPNY4XEL.cjs.map → chunk-NOZUWDGR.cjs.map} +1 -1
- package/dist/{chunk-VPEETTUS.cjs → chunk-PVGDDPTM.cjs} +248 -248
- package/dist/{chunk-VPEETTUS.cjs.map → chunk-PVGDDPTM.cjs.map} +1 -1
- package/dist/{chunk-IUHU5BC2.js → chunk-QR6TDZ4Q.js} +5 -5
- package/dist/{chunk-VTLDEZ5D.js → chunk-R24KOHE5.js} +5 -5
- package/dist/{chunk-UW7XUQFP.js → chunk-RH3TVS5H.js} +4 -4
- package/dist/{chunk-SNQ5KWLP.js → chunk-STVWUJRE.js} +2 -2
- package/dist/{chunk-GB2RYIVM.js → chunk-THYPIZMJ.js} +2 -2
- package/dist/{chunk-2A4RLR7R.js → chunk-TIWNFQ65.js} +4 -4
- package/dist/{chunk-HXQWGZYG.cjs → chunk-TU7RF2QA.cjs} +7 -7
- package/dist/{chunk-HXQWGZYG.cjs.map → chunk-TU7RF2QA.cjs.map} +1 -1
- package/dist/{chunk-WMKXHOOD.cjs → chunk-WIX2QW7Z.cjs} +10 -10
- package/dist/{chunk-WMKXHOOD.cjs.map → chunk-WIX2QW7Z.cjs.map} +1 -1
- package/dist/{chunk-2ENDIKKP.cjs → chunk-YVWKDCKS.cjs} +44 -44
- package/dist/{chunk-2ENDIKKP.cjs.map → chunk-YVWKDCKS.cjs.map} +1 -1
- package/dist/{chunk-EKLOXVG2.js → chunk-ZADXLMZJ.js} +7 -7
- package/dist/{chunk-DWJREJRA.cjs → chunk-ZEEAQ3RO.cjs} +7 -32
- package/dist/chunk-ZEEAQ3RO.cjs.map +1 -0
- package/dist/{chunk-EFPAKLT5.cjs → chunk-ZWTMJMFP.cjs} +25 -25
- package/dist/{chunk-EFPAKLT5.cjs.map → chunk-ZWTMJMFP.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +20 -20
- package/dist/components/case-studies/index.js +5 -5
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/index.js +2 -2
- package/dist/components/contact/index.cjs +6 -6
- package/dist/components/contact/index.js +5 -5
- package/dist/components/docs/index.cjs +9 -9
- package/dist/components/docs/index.js +8 -8
- package/dist/components/embeds/index.cjs +6 -6
- package/dist/components/embeds/index.js +5 -5
- package/dist/components/faq/index.cjs +6 -6
- package/dist/components/faq/index.js +5 -5
- package/dist/components/features/board/types.d.ts +1 -1
- package/dist/components/features/index.cjs +5 -5
- package/dist/components/features/index.js +4 -4
- package/dist/components/help-center-pages/index.cjs +25 -25
- package/dist/components/help-center-pages/index.js +16 -16
- package/dist/components/icons/index.cjs +2 -2
- package/dist/components/icons/index.cjs.map +1 -1
- package/dist/components/icons/index.d.ts +1 -1
- package/dist/components/icons/index.d.ts.map +1 -1
- package/dist/components/icons/index.js +3 -3
- package/dist/components/icons/quickbooks-icon.d.ts +7 -0
- package/dist/components/icons/quickbooks-icon.d.ts.map +1 -0
- package/dist/components/index.cjs +42 -42
- package/dist/components/index.js +17 -17
- package/dist/components/meeting-scheduler/index.cjs +28 -28
- package/dist/components/meeting-scheduler/index.js +4 -4
- package/dist/components/navigation/index.cjs +8 -8
- package/dist/components/navigation/index.js +7 -7
- package/dist/components/onboarding-guides/index.cjs +8 -8
- package/dist/components/onboarding-guides/index.js +7 -7
- package/dist/components/tickets/index.cjs +9 -9
- package/dist/components/tickets/index.js +8 -8
- package/dist/components/ui/index.cjs +5 -5
- package/dist/components/ui/index.js +4 -4
- package/dist/hooks/index.cjs +3 -3
- package/dist/hooks/index.js +2 -2
- package/dist/index.cjs +9 -9
- package/dist/index.js +10 -10
- package/package.json +1 -1
- package/src/components/features/board/types.ts +1 -1
- package/src/components/icons/index.ts +1 -1
- package/src/components/icons/quickbooks-icon.tsx +13 -0
- package/src/components/shared/doc-search/__tests__/map-doc-search-results.test.ts +10 -11
- package/src/components/ui/__tests__/__snapshots__/markdown-parity.test.tsx.snap +18 -60
- package/src/stories/TicketCard.stories.tsx +1 -1
- package/dist/chunk-DWJREJRA.cjs.map +0 -1
- package/dist/chunk-H3EJDISW.js.map +0 -1
- package/dist/components/icons/pilot-icon.d.ts +0 -7
- package/dist/components/icons/pilot-icon.d.ts.map +0 -1
- package/src/components/icons/.pilot-icon.md +0 -23
- package/src/components/icons/pilot-icon.tsx +0 -32
- /package/dist/{chunk-3ORBE27K.js.map → chunk-2PC6MKQH.js.map} +0 -0
- /package/dist/{chunk-M6QCADAT.js.map → chunk-3JBLXPAY.js.map} +0 -0
- /package/dist/{chunk-FQ4TZP6K.js.map → chunk-7Z4ZOIJW.js.map} +0 -0
- /package/dist/{chunk-OLPU5IVF.js.map → chunk-FBBNZJRJ.js.map} +0 -0
- /package/dist/{chunk-WBRO3MX2.js.map → chunk-GO6UI6Y3.js.map} +0 -0
- /package/dist/{chunk-IWEJCDCB.js.map → chunk-HJP7BEVS.js.map} +0 -0
- /package/dist/{chunk-SBKNMSQR.js.map → chunk-HNBRWR2L.js.map} +0 -0
- /package/dist/{chunk-XE5DNWOR.js.map → chunk-I2GRDWF7.js.map} +0 -0
- /package/dist/{chunk-PYAFHT6B.js.map → chunk-KJJD3R3Q.js.map} +0 -0
- /package/dist/{chunk-IUHU5BC2.js.map → chunk-QR6TDZ4Q.js.map} +0 -0
- /package/dist/{chunk-VTLDEZ5D.js.map → chunk-R24KOHE5.js.map} +0 -0
- /package/dist/{chunk-UW7XUQFP.js.map → chunk-RH3TVS5H.js.map} +0 -0
- /package/dist/{chunk-SNQ5KWLP.js.map → chunk-STVWUJRE.js.map} +0 -0
- /package/dist/{chunk-GB2RYIVM.js.map → chunk-THYPIZMJ.js.map} +0 -0
- /package/dist/{chunk-2A4RLR7R.js.map → chunk-TIWNFQ65.js.map} +0 -0
- /package/dist/{chunk-EKLOXVG2.js.map → chunk-ZADXLMZJ.js.map} +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface QuickBooksIconProps {
|
|
2
|
+
className?: string;
|
|
3
|
+
color?: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export const QuickBooksIcon = ({
|
|
7
|
+
className = 'w-6 h-6',
|
|
8
|
+
color = 'var(--ods-system-greys-white)',
|
|
9
|
+
}: QuickBooksIconProps) => (
|
|
10
|
+
<svg viewBox="0 0 24 24" fill={color} xmlns="http://www.w3.org/2000/svg" className={className}>
|
|
11
|
+
<path d="M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm.642 4.1335c.9554 0 1.7296.776 1.7296 1.7332v9.0667h1.6c1.614 0 2.9275-1.3156 2.9275-2.933 0-1.6173-1.3136-2.9333-2.9276-2.9333h-.6654V7.3334h.6654c2.5722 0 4.6577 2.0897 4.6577 4.667 0 2.5774-2.0855 4.6666-4.6577 4.6666H12.642zM7.9837 7.333h3.3291v12.533c-.9555 0-1.73-.7759-1.73-1.7332V9.0662H7.9837c-1.6146 0-2.9277 1.316-2.9277 2.9334 0 1.6175 1.3131 2.9333 2.9277 2.9333h.6654v1.7332h-.6654c-2.5725 0-4.6577-2.0892-4.6577-4.6665 0-2.5771 2.0852-4.6666 4.6577-4.6666Z" />
|
|
12
|
+
</svg>
|
|
13
|
+
);
|
|
@@ -19,17 +19,16 @@ const FOLDED_TABLES = [
|
|
|
19
19
|
'financial-cash-flow',
|
|
20
20
|
];
|
|
21
21
|
|
|
22
|
-
const row = (sourceRepo: string, n: number): DocSearchResult =>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}) as DocSearchResult;
|
|
22
|
+
const row = (sourceRepo: string, n: number): DocSearchResult => ({
|
|
23
|
+
path: `${sourceRepo}/${n}`,
|
|
24
|
+
name: `Row ${n}`,
|
|
25
|
+
snippet: '',
|
|
26
|
+
type: 'file',
|
|
27
|
+
matchType: 'content',
|
|
28
|
+
documentType: 'cap_table',
|
|
29
|
+
sourceRepo,
|
|
30
|
+
entityId: `${n}`,
|
|
31
|
+
});
|
|
33
32
|
|
|
34
33
|
describe('mapDocSearchResults', () => {
|
|
35
34
|
it.each(FOLDED_TABLES)('titles the folded %s row with its shared label and count', table => {
|
|
@@ -258,39 +258,18 @@ exports[`RichMarkdownRenderer golden parity > renders fixture: loose-ordered-lis
|
|
|
258
258
|
`;
|
|
259
259
|
|
|
260
260
|
exports[`RichMarkdownRenderer golden parity > renders fixture: mermaid 1`] = `
|
|
261
|
-
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><pre><div class="mermaid-container my-6
|
|
261
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><pre><div class="mermaid-container relative my-6 rounded-lg border border-ods-border bg-ods-card p-4 md:p-6 lg:p-8"><style>
|
|
262
|
+
/* The pan surface is a scroll region with NO scrollbars: drag, wheel,
|
|
263
|
+
arrows and the toolbar move it (a canvas, the way dbdiagram, Figma and
|
|
264
|
+
Excalidraw draw one). Two mechanisms for one motion read as a bug. */
|
|
265
|
+
.mermaid-frame-pan { scrollbar-width: none; -ms-overflow-style: none; }
|
|
266
|
+
.mermaid-frame-pan::-webkit-scrollbar { display: none; }
|
|
262
267
|
.mermaid-svg-container svg {
|
|
263
|
-
max-width: 100
|
|
264
|
-
height: auto
|
|
265
|
-
min-height: 200px;
|
|
268
|
+
max-width: 100%;
|
|
269
|
+
height: auto;
|
|
266
270
|
font-family: 'DM Sans', sans-serif !important;
|
|
267
271
|
font-size: 14px !important;
|
|
268
272
|
}
|
|
269
|
-
@media (min-width: 1520px) {
|
|
270
|
-
.mermaid-svg-container svg {
|
|
271
|
-
max-width: 900px !important;
|
|
272
|
-
max-height: 700px !important;
|
|
273
|
-
min-height: 300px;
|
|
274
|
-
font-size: 16px !important;
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
@media (min-width: 768px) and (max-width: 1519px) {
|
|
278
|
-
.mermaid-svg-container svg {
|
|
279
|
-
max-width: 700px !important;
|
|
280
|
-
max-height: 600px !important;
|
|
281
|
-
min-height: 250px;
|
|
282
|
-
font-size: 15px !important;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
@media (max-width: 767px) {
|
|
286
|
-
.mermaid-svg-container svg {
|
|
287
|
-
max-width: 90vw !important;
|
|
288
|
-
max-height: 400px !important;
|
|
289
|
-
min-height: 200px;
|
|
290
|
-
font-size: 13px !important;
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
.mermaid-svg-container svg[width] { width: 100% !important; }
|
|
294
273
|
.mermaid-svg-container .node rect,
|
|
295
274
|
.mermaid-svg-container .node circle,
|
|
296
275
|
.mermaid-svg-container .node ellipse,
|
|
@@ -304,7 +283,7 @@ exports[`RichMarkdownRenderer golden parity > renders fixture: mermaid 1`] = `
|
|
|
304
283
|
.mermaid-svg-container .node text,
|
|
305
284
|
.mermaid-svg-container .edgeLabel text { font-size: 16px !important; }
|
|
306
285
|
}
|
|
307
|
-
</style><div class="flex
|
|
286
|
+
</style><div class="absolute right-2 top-2 z-10 flex items-center gap-[var(--spacing-system-xxs)] rounded-md bg-ods-card" role="group" aria-label="Diagram zoom"><button class="relative inline-flex items-center justify-center gap-[var(--spacing-system-xsf)] whitespace-nowrap rounded-md transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 bg-ods-card text-ods-text-primary hover:bg-ods-bg-hover active:bg-ods-bg-active disabled:bg-ods-card disabled:text-ods-text-disabled aria-disabled:bg-ods-card aria-disabled:text-ods-text-disabled border border-ods-border hover:border-ods-border-hover active:border-ods-border-active disabled:border-ods-border aria-disabled:border-ods-border h-8 w-8 p-[var(--spacing-system-xxs)] [&_svg]:h-4 [&_svg]:w-4" aria-label="Zoom out" title="Zoom out (−, ⌘/Ctrl + wheel)"><span class="contents"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-zoom-out"><circle cx="11" cy="11" r="8"></circle><line x1="21" x2="16.65" y1="21" y2="16.65"></line><line x1="8" x2="14" y1="11" y2="11"></line></svg></span></button><button class="relative inline-flex items-center justify-center gap-[var(--spacing-system-xsf)] whitespace-nowrap rounded-md transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 bg-ods-card text-ods-text-primary hover:bg-ods-bg-hover active:bg-ods-bg-active disabled:bg-ods-card disabled:text-ods-text-disabled aria-disabled:bg-ods-card aria-disabled:text-ods-text-disabled border border-ods-border hover:border-ods-border-hover active:border-ods-border-active disabled:border-ods-border aria-disabled:border-ods-border h-6 px-[var(--spacing-system-sf)] py-0 font-normal text-h6 [&_svg]:h-3.5 [&_svg]:w-3.5" disabled="" aria-label="Reset zoom" title="Back to 100% (0)"><span class="contents">100%</span></button><button class="relative inline-flex items-center justify-center gap-[var(--spacing-system-xsf)] whitespace-nowrap rounded-md transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 bg-ods-card text-ods-text-primary hover:bg-ods-bg-hover active:bg-ods-bg-active disabled:bg-ods-card disabled:text-ods-text-disabled aria-disabled:bg-ods-card aria-disabled:text-ods-text-disabled border border-ods-border hover:border-ods-border-hover active:border-ods-border-active disabled:border-ods-border aria-disabled:border-ods-border h-8 w-8 p-[var(--spacing-system-xxs)] [&_svg]:h-4 [&_svg]:w-4" aria-label="Zoom in" title="Zoom in (+, ⌘/Ctrl + wheel)"><span class="contents"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-zoom-in"><circle cx="11" cy="11" r="8"></circle><line x1="21" x2="16.65" y1="21" y2="16.65"></line><line x1="11" x2="11" y1="8" y2="14"></line><line x1="8" x2="14" y1="11" y2="11"></line></svg></span></button><button class="relative inline-flex items-center justify-center gap-[var(--spacing-system-xsf)] whitespace-nowrap rounded-md transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 bg-ods-card text-ods-text-primary hover:bg-ods-bg-hover active:bg-ods-bg-active disabled:bg-ods-card disabled:text-ods-text-disabled aria-disabled:bg-ods-card aria-disabled:text-ods-text-disabled border border-ods-border hover:border-ods-border-hover active:border-ods-border-active disabled:border-ods-border aria-disabled:border-ods-border h-8 w-8 p-[var(--spacing-system-xxs)] [&_svg]:h-4 [&_svg]:w-4" aria-label="Fit to frame" title="Fit the whole diagram in the frame (f)"><span class="contents"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></span></button></div><div class="min-h-[200px] max-h-[70svh] md:min-h-[250px] flex w-full overflow-auto outline-none focus-visible:ring-1 focus-visible:ring-ods-accent mermaid-frame-pan select-none cursor-grab" style="justify-content: safe center; align-items: safe center;" data-testid="mermaid-frame" data-frame="content" tabindex="0" role="region" aria-label="Diagram. Drag to pan; Ctrl or Cmd plus wheel, or + and -, to zoom; 0 resets; f fits." title="Drag to pan · ⌘/Ctrl + wheel to zoom"><div class="mermaid-svg-container flex shrink-0 justify-center" data-testid="mermaid-svg-container" data-zoom="1" style="font-size: 14px; width: 100%;"><svg data-mock-mermaid="true" width="100" height="50"></svg></div></div></div></pre></article></div></div>"
|
|
308
287
|
`;
|
|
309
288
|
|
|
310
289
|
exports[`RichMarkdownRenderer golden parity > renders fixture: mismatched-fence-carve-does-not-shelter-opener 1`] = `
|
|
@@ -1420,39 +1399,18 @@ exports[`SimpleMarkdownRenderer golden parity > renders fixture: loose-ordered-l
|
|
|
1420
1399
|
`;
|
|
1421
1400
|
|
|
1422
1401
|
exports[`SimpleMarkdownRenderer golden parity > renders fixture: mermaid 1`] = `
|
|
1423
|
-
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><pre><div class="mermaid-container my-6
|
|
1402
|
+
"<div class="simple-markdown-renderer "><div class="content-wrapper max-w-none"><article class="prose prose-lg max-w-none"><pre><div class="mermaid-container relative my-6 rounded-lg border border-ods-border bg-ods-card p-4 md:p-6 lg:p-8"><style>
|
|
1403
|
+
/* The pan surface is a scroll region with NO scrollbars: drag, wheel,
|
|
1404
|
+
arrows and the toolbar move it (a canvas, the way dbdiagram, Figma and
|
|
1405
|
+
Excalidraw draw one). Two mechanisms for one motion read as a bug. */
|
|
1406
|
+
.mermaid-frame-pan { scrollbar-width: none; -ms-overflow-style: none; }
|
|
1407
|
+
.mermaid-frame-pan::-webkit-scrollbar { display: none; }
|
|
1424
1408
|
.mermaid-svg-container svg {
|
|
1425
|
-
max-width: 100
|
|
1426
|
-
height: auto
|
|
1427
|
-
min-height: 200px;
|
|
1409
|
+
max-width: 100%;
|
|
1410
|
+
height: auto;
|
|
1428
1411
|
font-family: 'DM Sans', sans-serif !important;
|
|
1429
1412
|
font-size: 14px !important;
|
|
1430
1413
|
}
|
|
1431
|
-
@media (min-width: 1520px) {
|
|
1432
|
-
.mermaid-svg-container svg {
|
|
1433
|
-
max-width: 900px !important;
|
|
1434
|
-
max-height: 700px !important;
|
|
1435
|
-
min-height: 300px;
|
|
1436
|
-
font-size: 16px !important;
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
@media (min-width: 768px) and (max-width: 1519px) {
|
|
1440
|
-
.mermaid-svg-container svg {
|
|
1441
|
-
max-width: 700px !important;
|
|
1442
|
-
max-height: 600px !important;
|
|
1443
|
-
min-height: 250px;
|
|
1444
|
-
font-size: 15px !important;
|
|
1445
|
-
}
|
|
1446
|
-
}
|
|
1447
|
-
@media (max-width: 767px) {
|
|
1448
|
-
.mermaid-svg-container svg {
|
|
1449
|
-
max-width: 90vw !important;
|
|
1450
|
-
max-height: 400px !important;
|
|
1451
|
-
min-height: 200px;
|
|
1452
|
-
font-size: 13px !important;
|
|
1453
|
-
}
|
|
1454
|
-
}
|
|
1455
|
-
.mermaid-svg-container svg[width] { width: 100% !important; }
|
|
1456
1414
|
.mermaid-svg-container .node rect,
|
|
1457
1415
|
.mermaid-svg-container .node circle,
|
|
1458
1416
|
.mermaid-svg-container .node ellipse,
|
|
@@ -1466,7 +1424,7 @@ exports[`SimpleMarkdownRenderer golden parity > renders fixture: mermaid 1`] = `
|
|
|
1466
1424
|
.mermaid-svg-container .node text,
|
|
1467
1425
|
.mermaid-svg-container .edgeLabel text { font-size: 16px !important; }
|
|
1468
1426
|
}
|
|
1469
|
-
</style><div class="flex
|
|
1427
|
+
</style><div class="absolute right-2 top-2 z-10 flex items-center gap-[var(--spacing-system-xxs)] rounded-md bg-ods-card" role="group" aria-label="Diagram zoom"><button class="relative inline-flex items-center justify-center gap-[var(--spacing-system-xsf)] whitespace-nowrap rounded-md transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 bg-ods-card text-ods-text-primary hover:bg-ods-bg-hover active:bg-ods-bg-active disabled:bg-ods-card disabled:text-ods-text-disabled aria-disabled:bg-ods-card aria-disabled:text-ods-text-disabled border border-ods-border hover:border-ods-border-hover active:border-ods-border-active disabled:border-ods-border aria-disabled:border-ods-border h-8 w-8 p-[var(--spacing-system-xxs)] [&_svg]:h-4 [&_svg]:w-4" aria-label="Zoom out" title="Zoom out (−, ⌘/Ctrl + wheel)"><span class="contents"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-zoom-out"><circle cx="11" cy="11" r="8"></circle><line x1="21" x2="16.65" y1="21" y2="16.65"></line><line x1="8" x2="14" y1="11" y2="11"></line></svg></span></button><button class="relative inline-flex items-center justify-center gap-[var(--spacing-system-xsf)] whitespace-nowrap rounded-md transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 bg-ods-card text-ods-text-primary hover:bg-ods-bg-hover active:bg-ods-bg-active disabled:bg-ods-card disabled:text-ods-text-disabled aria-disabled:bg-ods-card aria-disabled:text-ods-text-disabled border border-ods-border hover:border-ods-border-hover active:border-ods-border-active disabled:border-ods-border aria-disabled:border-ods-border h-6 px-[var(--spacing-system-sf)] py-0 font-normal text-h6 [&_svg]:h-3.5 [&_svg]:w-3.5" disabled="" aria-label="Reset zoom" title="Back to 100% (0)"><span class="contents">100%</span></button><button class="relative inline-flex items-center justify-center gap-[var(--spacing-system-xsf)] whitespace-nowrap rounded-md transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 bg-ods-card text-ods-text-primary hover:bg-ods-bg-hover active:bg-ods-bg-active disabled:bg-ods-card disabled:text-ods-text-disabled aria-disabled:bg-ods-card aria-disabled:text-ods-text-disabled border border-ods-border hover:border-ods-border-hover active:border-ods-border-active disabled:border-ods-border aria-disabled:border-ods-border h-8 w-8 p-[var(--spacing-system-xxs)] [&_svg]:h-4 [&_svg]:w-4" aria-label="Zoom in" title="Zoom in (+, ⌘/Ctrl + wheel)"><span class="contents"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-zoom-in"><circle cx="11" cy="11" r="8"></circle><line x1="21" x2="16.65" y1="21" y2="16.65"></line><line x1="11" x2="11" y1="8" y2="14"></line><line x1="8" x2="14" y1="11" y2="11"></line></svg></span></button><button class="relative inline-flex items-center justify-center gap-[var(--spacing-system-xsf)] whitespace-nowrap rounded-md transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 bg-ods-card text-ods-text-primary hover:bg-ods-bg-hover active:bg-ods-bg-active disabled:bg-ods-card disabled:text-ods-text-disabled aria-disabled:bg-ods-card aria-disabled:text-ods-text-disabled border border-ods-border hover:border-ods-border-hover active:border-ods-border-active disabled:border-ods-border aria-disabled:border-ods-border h-8 w-8 p-[var(--spacing-system-xxs)] [&_svg]:h-4 [&_svg]:w-4" aria-label="Fit to frame" title="Fit the whole diagram in the frame (f)"><span class="contents"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></span></button></div><div class="min-h-[200px] max-h-[70svh] md:min-h-[250px] flex w-full overflow-auto outline-none focus-visible:ring-1 focus-visible:ring-ods-accent mermaid-frame-pan select-none cursor-grab" style="justify-content: safe center; align-items: safe center;" data-testid="mermaid-frame" data-frame="content" tabindex="0" role="region" aria-label="Diagram. Drag to pan; Ctrl or Cmd plus wheel, or + and -, to zoom; 0 resets; f fits." title="Drag to pan · ⌘/Ctrl + wheel to zoom"><div class="mermaid-svg-container flex shrink-0 justify-center" data-testid="mermaid-svg-container" data-zoom="1" style="font-size: 14px; width: 100%;"><svg data-mock-mermaid="true" width="100" height="50"></svg></div></div></div></pre></article></div></div>"
|
|
1470
1428
|
`;
|
|
1471
1429
|
|
|
1472
1430
|
exports[`SimpleMarkdownRenderer golden parity > renders fixture: mismatched-fence-carve-does-not-shelter-opener 1`] = `
|
|
@@ -166,7 +166,7 @@ export const ActivityIndicators: Story = {
|
|
|
166
166
|
{ kind: 'ai-working' },
|
|
167
167
|
{ kind: 'user-typing' },
|
|
168
168
|
{ kind: 'waiting-external' },
|
|
169
|
-
{ kind: 'stale', label: 'No activity for
|
|
169
|
+
{ kind: 'stale', label: 'No activity for 30 minutes' },
|
|
170
170
|
];
|
|
171
171
|
return (
|
|
172
172
|
<div className="flex w-[320px] flex-col gap-[var(--spacing-system-sf)] rounded-lg bg-ods-card p-[var(--spacing-system-sf)]">
|