docblocks-react-ui 0.13.0 → 0.15.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/CHANGELOG.md +81 -0
- package/dist/{Editor-dcSgC9ho.mjs → Editor-BF7wBMcp.mjs} +760 -600
- package/dist/{index-BA6ZzJK8.d.mts → index-C3vzW1Mv.d.mts} +181 -148
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +1 -1
- package/dist/mermaid/index.mjs +74 -18
- package/dist/pdf/index.d.mts +1 -1
- package/dist/styles.css +31 -2
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -1732,6 +1732,9 @@
|
|
|
1732
1732
|
.text-balance {
|
|
1733
1733
|
text-wrap: balance;
|
|
1734
1734
|
}
|
|
1735
|
+
.wrap-break-word {
|
|
1736
|
+
overflow-wrap: break-word;
|
|
1737
|
+
}
|
|
1735
1738
|
.break-all {
|
|
1736
1739
|
word-break: break-all;
|
|
1737
1740
|
}
|
|
@@ -3621,8 +3624,10 @@
|
|
|
3621
3624
|
--docblocks-inline-code-background: var(--muted, rgba(175, 184, 193, 0.2));
|
|
3622
3625
|
|
|
3623
3626
|
/* The mention chip (an atomic, display-only inline run): the
|
|
3624
|
-
brand-colored label
|
|
3627
|
+
brand-colored label; the interactive chip's hover stands the light
|
|
3628
|
+
neutral's background. */
|
|
3625
3629
|
--docblocks-mention-color: var(--primary, #0969da);
|
|
3630
|
+
--docblocks-mention-hover-background: var(--muted, rgba(175, 184, 193, 0.2));
|
|
3626
3631
|
|
|
3627
3632
|
/* Callout borders / backgrounds per variant (info/danger follow the
|
|
3628
3633
|
standard inputs; warning is package-owned — the standard set has no
|
|
@@ -3846,6 +3851,7 @@
|
|
|
3846
3851
|
--docblocks-selection-background: rgba(56, 139, 253, 0.4);
|
|
3847
3852
|
--docblocks-inline-code-background: var(--muted, rgba(110, 118, 129, 0.4));
|
|
3848
3853
|
--docblocks-mention-color: var(--primary, #58a6ff);
|
|
3854
|
+
--docblocks-mention-hover-background: var(--muted, rgba(110, 118, 129, 0.4));
|
|
3849
3855
|
|
|
3850
3856
|
--docblocks-code-background: var(--muted, rgba(110, 118, 129, 0.35));
|
|
3851
3857
|
--docblocks-code-token-keyword: #ff7b72;
|
|
@@ -4156,6 +4162,24 @@
|
|
|
4156
4162
|
text-underline-offset: 2px;
|
|
4157
4163
|
}
|
|
4158
4164
|
|
|
4165
|
+
/* The interactive chip (the consumer's mention interactions stand over the
|
|
4166
|
+
editor root): the link's cursor and the light neutral's hover
|
|
4167
|
+
background — the rounded 3px rect with the 2px's letters' offset (the
|
|
4168
|
+
inline padding, present over the interactive stand only so the hover
|
|
4169
|
+
stands no layout jump) and the 120ms fade. The chip stays an inline run
|
|
4170
|
+
(no box of its own): the padding stands the horizontal's aura only, the
|
|
4171
|
+
row keeps its plain-text height. */
|
|
4172
|
+
[data-slot="docblocks/editor"][data-mention-interactive] [data-slot="docblocks/mention"] {
|
|
4173
|
+
cursor: pointer;
|
|
4174
|
+
border-radius: 3px;
|
|
4175
|
+
padding: 0 2px;
|
|
4176
|
+
transition: background-color 120ms ease;
|
|
4177
|
+
}
|
|
4178
|
+
|
|
4179
|
+
[data-slot="docblocks/editor"][data-mention-interactive] [data-slot="docblocks/mention"]:hover {
|
|
4180
|
+
background-color: var(--docblocks-mention-hover-background);
|
|
4181
|
+
}
|
|
4182
|
+
|
|
4159
4183
|
[data-slot="docblocks/mention"] svg {
|
|
4160
4184
|
/* The consumer page's global reset (e.g. Tailwind's preflight's
|
|
4161
4185
|
`svg { display: block }`) must not break the icon onto its own line —
|
|
@@ -4209,7 +4233,12 @@
|
|
|
4209
4233
|
* so the theme's flip re-mixes over the same value without a re-read.
|
|
4210
4234
|
*/
|
|
4211
4235
|
[data-slot="card"][data-cover-tint] {
|
|
4212
|
-
|
|
4236
|
+
/* The tint variable lands only once the cover's average color resolves
|
|
4237
|
+
(the blob's read + the image's decode): until then the fallback
|
|
4238
|
+
resolves to the plain border — an undefined variable inside the mix
|
|
4239
|
+
would make the whole border-color invalid and fall back to the text
|
|
4240
|
+
color (a near-white flash over the dark theme). */
|
|
4241
|
+
border-color: color-mix(in srgb, var(--docblocks-cover-tint-color, var(--border)) 25%, var(--border));
|
|
4213
4242
|
}
|
|
4214
4243
|
|
|
4215
4244
|
/* 5. The shape-text's self-hosted fonts (the woff2 in dist/fonts/; the
|
package/package.json
CHANGED