@flamingo-stack/openframe-frontend-core 0.0.612-snapshot.20260909131030 → 0.0.612
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-JHFYWBQL.js → chunk-2ARMWGMN.js} +2 -2
- package/dist/{chunk-JEM7QP64.js → chunk-2LSVHTRX.js} +2 -2
- package/dist/{chunk-YDCFOBF4.cjs → chunk-2XG3XBWA.cjs} +15 -15
- package/dist/{chunk-YDCFOBF4.cjs.map → chunk-2XG3XBWA.cjs.map} +1 -1
- package/dist/{chunk-5OAU5YAO.cjs → chunk-2YQMBF2V.cjs} +70 -70
- package/dist/{chunk-5OAU5YAO.cjs.map → chunk-2YQMBF2V.cjs.map} +1 -1
- package/dist/{chunk-OGPFEPYR.cjs → chunk-3GICERNL.cjs} +4 -4
- package/dist/{chunk-OGPFEPYR.cjs.map → chunk-3GICERNL.cjs.map} +1 -1
- package/dist/{chunk-ABY7UTVQ.js → chunk-44XMSKIY.js} +3 -3
- package/dist/{chunk-QXLRO7ZT.cjs → chunk-4QD4JCG3.cjs} +33 -33
- package/dist/{chunk-QXLRO7ZT.cjs.map → chunk-4QD4JCG3.cjs.map} +1 -1
- package/dist/{chunk-BMM5VW4Y.cjs → chunk-B4G3TQOP.cjs} +22 -22
- package/dist/{chunk-BMM5VW4Y.cjs.map → chunk-B4G3TQOP.cjs.map} +1 -1
- package/dist/{chunk-276EROVV.cjs → chunk-BG7TRGKP.cjs} +22 -22
- package/dist/{chunk-276EROVV.cjs.map → chunk-BG7TRGKP.cjs.map} +1 -1
- package/dist/{chunk-M7ZHKZMT.js → chunk-CFFY6TT3.js} +2 -2
- package/dist/{chunk-MR22RVGZ.js → chunk-DZMEAV47.js} +8 -50
- package/dist/{chunk-MR22RVGZ.js.map → chunk-DZMEAV47.js.map} +1 -1
- package/dist/{chunk-HMOBSK67.js → chunk-EJTSKGAA.js} +5 -5
- package/dist/{chunk-667WOI4D.js → chunk-F2C2U7CP.js} +2 -16
- package/dist/chunk-F2C2U7CP.js.map +1 -0
- package/dist/{chunk-Y2SCYKEX.js → chunk-F7Y55UK5.js} +5 -5
- package/dist/{chunk-EVBLEWLF.cjs → chunk-FXP2J34I.cjs} +25 -25
- package/dist/{chunk-EVBLEWLF.cjs.map → chunk-FXP2J34I.cjs.map} +1 -1
- package/dist/{chunk-ZQEG56IM.js → chunk-HBG6576N.js} +3 -3
- package/dist/{chunk-DONH7AHG.js → chunk-IDVXWDYF.js} +3 -3
- package/dist/{chunk-NFBTBZXA.cjs → chunk-J2RTUYK7.cjs} +43 -43
- package/dist/{chunk-NFBTBZXA.cjs.map → chunk-J2RTUYK7.cjs.map} +1 -1
- package/dist/{chunk-OAXOGKFD.cjs → chunk-LEKBOXVT.cjs} +5 -5
- package/dist/{chunk-OAXOGKFD.cjs.map → chunk-LEKBOXVT.cjs.map} +1 -1
- package/dist/{chunk-W35UYD7W.js → chunk-LTYDKO22.js} +3 -3
- package/dist/{chunk-5ZQWHR5K.cjs → chunk-M2QZI32A.cjs} +10 -10
- package/dist/{chunk-5ZQWHR5K.cjs.map → chunk-M2QZI32A.cjs.map} +1 -1
- package/dist/{chunk-4H3JGIGZ.cjs → chunk-NTUOX5QC.cjs} +3 -3
- package/dist/{chunk-4H3JGIGZ.cjs.map → chunk-NTUOX5QC.cjs.map} +1 -1
- package/dist/{chunk-36GD5KOC.cjs → chunk-PAC2VMWE.cjs} +9 -9
- package/dist/{chunk-36GD5KOC.cjs.map → chunk-PAC2VMWE.cjs.map} +1 -1
- package/dist/{chunk-RBA263EG.cjs → chunk-QMUFGSVF.cjs} +165 -207
- package/dist/chunk-QMUFGSVF.cjs.map +1 -0
- package/dist/{chunk-OLIEBXIS.js → chunk-TKRHBU7W.js} +4 -4
- package/dist/{chunk-4KMVXQJW.js → chunk-UYT24TGS.js} +5 -5
- package/dist/{chunk-JMSB5AUS.js → chunk-WYRBZJTT.js} +6 -6
- package/dist/{chunk-C6UMRTEV.js → chunk-X2YX5HN5.js} +3 -3
- package/dist/{chunk-7UI5DJSF.js → chunk-X4LTHAY5.js} +2 -2
- package/dist/{chunk-GWVH3RFQ.cjs → chunk-XSDNHDSX.cjs} +10 -10
- package/dist/{chunk-GWVH3RFQ.cjs.map → chunk-XSDNHDSX.cjs.map} +1 -1
- package/dist/{chunk-DESNTW3L.cjs → chunk-Y775VLFS.cjs} +3 -3
- package/dist/{chunk-DESNTW3L.cjs.map → chunk-Y775VLFS.cjs.map} +1 -1
- package/dist/{chunk-2OREW4SL.cjs → chunk-YXTAV2E3.cjs} +2 -16
- package/dist/chunk-YXTAV2E3.cjs.map +1 -0
- package/dist/components/case-studies/index.cjs +9 -9
- package/dist/components/case-studies/index.js +3 -3
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/chat/index.js +1 -1
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/contact/index.js +3 -3
- package/dist/components/docs/index.cjs +7 -7
- package/dist/components/docs/index.js +6 -6
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/embeds/index.js +3 -3
- package/dist/components/faq/index.cjs +4 -4
- package/dist/components/faq/index.js +3 -3
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/features/index.js +2 -2
- package/dist/components/help-center-pages/index.cjs +23 -23
- package/dist/components/help-center-pages/index.js +14 -14
- package/dist/components/index.cjs +38 -38
- package/dist/components/index.js +13 -13
- package/dist/components/meeting-scheduler/index.cjs +24 -24
- package/dist/components/meeting-scheduler/index.js +2 -2
- package/dist/components/navigation/index.cjs +6 -6
- package/dist/components/navigation/index.js +5 -5
- package/dist/components/onboarding-guides/index.cjs +6 -6
- package/dist/components/onboarding-guides/index.js +5 -5
- package/dist/components/tickets/index.cjs +7 -7
- package/dist/components/tickets/index.js +6 -6
- package/dist/components/ui/index.cjs +3 -3
- package/dist/components/ui/index.js +2 -2
- package/dist/components/ui/markdown/base-components.d.ts.map +1 -1
- package/dist/components/ui/markdown-editor.d.ts.map +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.js +6 -6
- package/package.json +1 -1
- package/src/components/features/notifications/notification-drawer.tsx +2 -2
- package/src/components/ui/__tests__/__snapshots__/markdown-parity.test.tsx.snap +3 -3
- package/src/components/ui/markdown/base-components.tsx +4 -16
- package/src/components/ui/markdown-editor.tsx +4 -46
- package/dist/chunk-2OREW4SL.cjs.map +0 -1
- package/dist/chunk-667WOI4D.js.map +0 -1
- package/dist/chunk-RBA263EG.cjs.map +0 -1
- package/src/stories/MarkdownEditor.stories.tsx +0 -145
- /package/dist/{chunk-JHFYWBQL.js.map → chunk-2ARMWGMN.js.map} +0 -0
- /package/dist/{chunk-JEM7QP64.js.map → chunk-2LSVHTRX.js.map} +0 -0
- /package/dist/{chunk-ABY7UTVQ.js.map → chunk-44XMSKIY.js.map} +0 -0
- /package/dist/{chunk-M7ZHKZMT.js.map → chunk-CFFY6TT3.js.map} +0 -0
- /package/dist/{chunk-HMOBSK67.js.map → chunk-EJTSKGAA.js.map} +0 -0
- /package/dist/{chunk-Y2SCYKEX.js.map → chunk-F7Y55UK5.js.map} +0 -0
- /package/dist/{chunk-ZQEG56IM.js.map → chunk-HBG6576N.js.map} +0 -0
- /package/dist/{chunk-DONH7AHG.js.map → chunk-IDVXWDYF.js.map} +0 -0
- /package/dist/{chunk-W35UYD7W.js.map → chunk-LTYDKO22.js.map} +0 -0
- /package/dist/{chunk-OLIEBXIS.js.map → chunk-TKRHBU7W.js.map} +0 -0
- /package/dist/{chunk-4KMVXQJW.js.map → chunk-UYT24TGS.js.map} +0 -0
- /package/dist/{chunk-JMSB5AUS.js.map → chunk-WYRBZJTT.js.map} +0 -0
- /package/dist/{chunk-C6UMRTEV.js.map → chunk-X2YX5HN5.js.map} +0 -0
- /package/dist/{chunk-7UI5DJSF.js.map → chunk-X4LTHAY5.js.map} +0 -0
|
@@ -373,23 +373,11 @@ export function buildBaseComponents({
|
|
|
373
373
|
li: ({ children }: MdRenderProps<'li'>) => <li className={cn('pl-2 leading-relaxed', textSizes.li)}>{children}</li>,
|
|
374
374
|
|
|
375
375
|
// --- tables ---
|
|
376
|
-
// The frame and the scroll container are ONE element, matching the sibling
|
|
377
|
-
// block embed (`mermaid-diagram.tsx`) and `users-grid-skeleton`. It used to
|
|
378
|
-
// be two — `overflow-x-auto` outside, `rounded-lg border` on an inner
|
|
379
|
-
// `min-w-full` div — so nothing clipped: the cells' own `border-r`/`border-b`
|
|
380
|
-
// ran straight through the rounded corners and out past the frame's edge.
|
|
381
|
-
// `overflow-x-auto` establishes clipping on both axes, which is what rounds
|
|
382
|
-
// the cell borders off with the frame; the inner div's `min-w-full` is
|
|
383
|
-
// redundant on a block-level scroll container.
|
|
384
|
-
//
|
|
385
|
-
// `[&_tr:last-child_td]:border-b-0` is on the table rather than in the `td`
|
|
386
|
-
// renderer because Tailwind's `last:` there means "last CELL in its row"
|
|
387
|
-
// (which is what `last:border-r-0` correctly uses), not "last row" — so the
|
|
388
|
-
// bottom row's `border-b` used to sit against the frame's own border as a
|
|
389
|
-
// doubled line.
|
|
390
376
|
table: ({ children }: MdRenderProps<'table'>) => (
|
|
391
|
-
<div className="table-container my-6 overflow-x-auto
|
|
392
|
-
<
|
|
377
|
+
<div className="table-container my-6 overflow-x-auto">
|
|
378
|
+
<div className="min-w-full rounded-lg border border-ods-border bg-ods-card">
|
|
379
|
+
<table className="w-full table-fixed md:table-auto">{children}</table>
|
|
380
|
+
</div>
|
|
393
381
|
</div>
|
|
394
382
|
),
|
|
395
383
|
thead: ({ children }: MdRenderProps<'thead'>) => <thead className="bg-ods-bg-surface">{children}</thead>,
|
|
@@ -13,32 +13,7 @@ const MARKDOWN_EDITOR_STYLE_ID = 'ods-markdown-editor-styles';
|
|
|
13
13
|
|
|
14
14
|
const mdEditorCSS = `
|
|
15
15
|
:root { --md-editor-text-color: var(--color-text-primary) !important; }
|
|
16
|
-
|
|
17
|
-
variable that @uiw/react-md-editor redeclares as #30363d on .wmde-markdown /
|
|
18
|
-
.wmde-markdown-var — and the editor root carries .wmde-markdown-var. The nearer
|
|
19
|
-
declaration wins, so every rule below that reads the alias inside the editor got the
|
|
20
|
-
vendor's blue-tinted grey, which is why the toolbar seam was drawn in a colour ODS
|
|
21
|
-
does not own.
|
|
22
|
-
inherit rather than a value: it makes the property take whatever the theme above
|
|
23
|
-
resolved, so the vendor's redeclaration is neutralised WITHOUT this file asserting a
|
|
24
|
-
colour of its own. That matters because ODS owns this name in more than one scope —
|
|
25
|
-
:root maps it to --ods-system-greys-soft-grey, and .theme-high-contrast to #ffffff.
|
|
26
|
-
Pinning the grey here would have quietly disabled the accessibility theme inside the
|
|
27
|
-
editor, which is the one place a hardcoded value cannot be checked against.
|
|
28
|
-
The .wmde-markdown half covers the vendor's own preview renderer, which a consumer
|
|
29
|
-
that does not pass renderPreview still gets. */
|
|
30
|
-
body .w-md-editor, body .w-md-editor .wmde-markdown { --color-border-default: inherit !important; }
|
|
31
|
-
/* padding-bottom is a vendor default (1px) and it is INSIDE the border box, so both
|
|
32
|
-
panes stop 1px short of the frame's inner edge and the frame's own background shows
|
|
33
|
-
through as a hairline across the entire bottom -- a shade lighter than the preview,
|
|
34
|
-
which paints --color-bg. Zeroing it also makes the panes' 5px bottom radius exact
|
|
35
|
-
(the frame's inner radius is its 6px minus the 1px border) instead of an arc floating
|
|
36
|
-
1px above the one it is meant to follow. The resize handle is positioned against the
|
|
37
|
-
PADDING box, whose bottom edge the padding never moved, so it stays where it was.
|
|
38
|
-
The frame's background is covered edge to edge now, but it stays the source-pane
|
|
39
|
-
surface rather than the body one so that a sub-pixel gap could never read as a dark
|
|
40
|
-
band across the lighter pane. The toolbar and the preview set their own. */
|
|
41
|
-
body .w-md-editor { background-color: var(--color-bg-card) !important; border: 1px solid var(--ods-system-greys-soft-grey) !important; border-radius: 6px !important; padding-bottom: 0 !important; --md-editor-text-color: var(--color-text-primary) !important; --md-editor-box-shadow-color: transparent !important; box-shadow: none !important; }
|
|
16
|
+
body .w-md-editor { background-color: var(--color-bg) !important; border: 1px solid var(--ods-system-greys-soft-grey) !important; border-radius: 6px !important; --md-editor-text-color: var(--color-text-primary) !important; --md-editor-box-shadow-color: transparent !important; box-shadow: none !important; }
|
|
42
17
|
body .w-md-editor-area, body .w-md-editor-input, body .w-md-editor-text, body .w-md-editor-text-pre, body .w-md-editor-text-input, body .w-md-editor-text-textarea { background-color: var(--color-bg-card) !important; color: var(--color-text-primary) !important; font-family: var(--font-family-body) !important; font-size: 18px !important; font-weight: 500 !important; line-height: 24px !important; padding: 16px !important; }
|
|
43
18
|
body .w-md-editor-text-textarea::placeholder { color: var(--color-text-secondary) !important; font-family: var(--font-family-body) !important; font-size: 18px !important; font-weight: 500 !important; }
|
|
44
19
|
body .w-md-editor-text .token, body .w-md-editor-text-pre .token, body .w-md-editor-text-textarea, body .w-md-editor-text-input { color: var(--color-text-primary) !important; }
|
|
@@ -47,30 +22,13 @@ body .w-md-editor-text-pre .token.title, body .w-md-editor-text-pre .token.bold,
|
|
|
47
22
|
body .w-md-editor-text-textarea, body .w-md-editor-text-input, body .w-md-editor-text-pre { color: var(--color-text-primary) !important; -webkit-text-fill-color: var(--color-text-primary) !important; text-shadow: none !important; filter: brightness(1) contrast(1) !important; }
|
|
48
23
|
body .w-md-editor { color: var(--color-text-primary) !important; }
|
|
49
24
|
body .w-md-editor *:not(.w-md-editor-toolbar *, .w-md-editor-preview *, .custom-preview-wrapper *) { color: var(--color-text-primary) !important; -webkit-text-fill-color: var(--color-text-primary) !important; }
|
|
50
|
-
|
|
51
|
-
rather than clipping the whole editor with overflow:hidden on purpose: the toolbar's
|
|
52
|
-
dropdown commands render inside .w-md-editor and clipping would cut them off. */
|
|
53
|
-
.w-md-editor-toolbar { background-color: var(--color-bg) !important; border-bottom: 1px solid var(--color-border-default) !important; border-radius: 6px 6px 0 0 !important; padding: 12px 16px !important; }
|
|
25
|
+
.w-md-editor-toolbar { background-color: var(--color-bg) !important; border-bottom: 1px solid var(--color-border-default) !important; padding: 12px 16px !important; }
|
|
54
26
|
.w-md-editor-toolbar ul li button { background: transparent !important; border: none !important; color: var(--color-text-primary) !important; padding: 8px 12px !important; border-radius: 6px !important; transition: all 0.2s ease !important; min-height: 36px !important; min-width: 36px !important; }
|
|
55
27
|
.w-md-editor-toolbar ul li button:hover { background-color: var(--color-border-default) !important; color: var(--ods-accent) !important; }
|
|
56
28
|
.w-md-editor-toolbar ul li button.active, .w-md-editor-toolbar ul li button[aria-pressed="true"] { background-color: var(--ods-accent) !important; color: var(--color-text-on-accent) !important; }
|
|
57
29
|
.w-md-editor-toolbar-divider { display: none !important; }
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
.w-md-editor-preview { background-color: var(--color-bg) !important; color: var(--color-text-primary) !important; border-left: 1px solid var(--color-border-default) !important; --color-border-default: inherit !important; --color-border-muted: var(--ods-system-greys-soft-grey) !important; --color-fg-muted: var(--ods-system-greys-grey) !important; }
|
|
61
|
-
/* The seam under the toolbar. Two vendor defaults broke it, both visible as one artefact:
|
|
62
|
-
.w-md-editor-text drew its own border-top in the same colour as the toolbar's
|
|
63
|
-
border-bottom, so the two sat adjacent as a 2px line (no border-top here any more), and
|
|
64
|
-
the panes carry a 5px radius whose curve pulls their background off the frame's straight
|
|
65
|
-
inner edge, reading as a notch in the corner. Squaring the TOP corners is the fix, NOT
|
|
66
|
-
overflow:hidden on .w-md-editor: a parent's clip cannot square off a child's own rounded
|
|
67
|
-
corner, and it would cut the toolbar's title dropdown (~240px tall) on any editor shorter
|
|
68
|
-
than that. The BOTTOM corners keep 5px on purpose -- that is exactly the frame's inner
|
|
69
|
-
radius (6px border-box minus the 1px border), so with the vendor's padding-bottom zeroed
|
|
70
|
-
above, the panes' arc now sits on the frame's own arc instead of beside it. In the split
|
|
71
|
-
view the source pane's bottom-right curve falls in the middle of the frame, where the
|
|
72
|
-
frame's background matches it, so it is invisible there. */
|
|
73
|
-
.w-md-editor-area, .w-md-editor-input, .w-md-editor-text { border-radius: 0 0 5px 5px !important; }
|
|
30
|
+
.w-md-editor-preview { background-color: var(--color-bg) !important; color: var(--color-text-primary) !important; border-left: 1px solid var(--color-border-default) !important; --color-border-default: var(--ods-system-greys-soft-grey) !important; --color-border-muted: var(--ods-system-greys-soft-grey) !important; --color-fg-muted: var(--ods-system-greys-grey) !important; }
|
|
31
|
+
.w-md-editor-text { border-top: 1px solid var(--color-border-default) !important; }
|
|
74
32
|
.w-md-editor-focus { border-color: var(--ods-accent) !important; }
|
|
75
33
|
body .w-md-editor .w-md-editor-bar { width: 24px !important; height: 12px !important; margin-left: auto !important; margin-right: 8px !important; cursor: ns-resize !important; }
|
|
76
34
|
body .w-md-editor .w-md-editor-bar svg { display: none !important; }
|