docblocks-react-ui 0.29.1 → 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.
@@ -1,11 +1,11 @@
1
- import { a as clamp, d as Plus, f as Minus, h as ChevronLeft, l as X, m as ChevronRight, n as ZOOM_STEP, o as isSafeDownloadHref, p as LoaderCircle, r as isEmbeddablePdfUrl, t as ZOOM_MIN, u as TriangleAlert, w as cn, x as PdfFetchError } from "../constants-D_3p65rk.mjs";
2
- import { t as Maximize } from "../Maximize-BBHnCDWL.mjs";
3
- import { useCallback, useEffect, useRef, useState } from "react";
1
+ import { GlobalWorkerOptions, RenderingCancelledException, getDocument } from "pdfjs-dist";
4
2
  import { useTranslation } from "react-i18next";
5
- import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { useCallback, useEffect, useRef, useState } from "react";
4
+ import { a as clamp, d as Plus, f as Minus, h as ChevronLeft, l as X, m as ChevronRight, n as ZOOM_STEP, o as isSafeDownloadHref, p as LoaderCircle, r as isEmbeddablePdfUrl, t as ZOOM_MIN, u as TriangleAlert, w as cn, x as PdfFetchError } from "../constants-CBPODzZc.mjs";
5
+ import { t as Maximize } from "../Maximize-BTsFyI81.mjs";
6
6
  import { createPortal } from "react-dom";
7
- import { GlobalWorkerOptions, RenderingCancelledException, getDocument } from "pdfjs-dist";
8
- //#region src/shared/ui/icons/Minimize.tsx
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+ // src/shared/ui/icons/Minimize.tsx
9
9
  function Minimize(props) {
10
10
  return /* @__PURE__ */ jsxs("svg", {
11
11
  xmlns: "http://www.w3.org/2000/svg",
@@ -26,8 +26,7 @@ function Minimize(props) {
26
26
  ]
27
27
  });
28
28
  }
29
- //#endregion
30
- //#region src/shared/ui/icons/StretchHorizontal.tsx
29
+ // src/shared/ui/icons/StretchHorizontal.tsx
31
30
  function StretchHorizontal(props) {
32
31
  return /* @__PURE__ */ jsxs("svg", {
33
32
  xmlns: "http://www.w3.org/2000/svg",
@@ -49,8 +48,7 @@ function StretchHorizontal(props) {
49
48
  ]
50
49
  });
51
50
  }
52
- //#endregion
53
- //#region src/shared/ui/icons/StretchVertical.tsx
51
+ // src/shared/ui/icons/StretchVertical.tsx
54
52
  function StretchVertical(props) {
55
53
  return /* @__PURE__ */ jsxs("svg", {
56
54
  xmlns: "http://www.w3.org/2000/svg",
@@ -72,8 +70,7 @@ function StretchVertical(props) {
72
70
  ]
73
71
  });
74
72
  }
75
- //#endregion
76
- //#region src/pdf/pdf-worker.ts
73
+ // src/pdf/pdf-worker.ts
77
74
  /** The pdfjs worker and decoder assets use static package references so
78
75
  * consumer bundlers can emit them. The decoder factory fetches the concrete
79
76
  * emitted asset URL because a bundler may hash its filename. */
@@ -111,8 +108,7 @@ var PdfBinaryDataFactory = class {
111
108
  if (typeof window !== "undefined") fetch(WORKER_URL, { method: "HEAD" }).catch(() => {
112
109
  console.warn("docblocks: the pdf worker asset is unreachable; the preview will use the native viewer fallback.");
113
110
  });
114
- //#endregion
115
- //#region src/pdf/PdfPageControls.tsx
111
+ // src/pdf/PdfPageControls.tsx
116
112
  /** The PDF preview's page controls bar: the previous / next page buttons
117
113
  * + the page indicator + the trailing action (the fullscreen toggle over
118
114
  * the inline view, the close over the portaled overlay). The page number
@@ -173,8 +169,7 @@ function PdfPageControls({ currentPage, totalPages, onPrevPage, onNextPage, acti
173
169
  ]
174
170
  });
175
171
  }
176
- //#endregion
177
- //#region src/pdf/PdfZoomControls.tsx
172
+ // src/pdf/PdfZoomControls.tsx
178
173
  /** The PDF fullscreen zoom's bar: the zoom out / in buttons over the
179
174
  * scale's indicator + the fit-width / fit-height. It stands a separate
180
175
  * pill to the left of the page's controls, the same bar's style over the
@@ -229,8 +224,7 @@ function PdfZoomControls({ scale, onZoomOut, onZoomIn, onFitWidth, onFitHeight }
229
224
  ]
230
225
  });
231
226
  }
232
- //#endregion
233
- //#region src/pdf/use-pdf-zoom.ts
227
+ // src/pdf/use-pdf-zoom.ts
234
228
  function usePdfZoom(pdfDocRef, containerRef, currentPage) {
235
229
  const [zoom, setZoom] = useState(null);
236
230
  const [scale, setScale] = useState(1);
@@ -288,8 +282,7 @@ function usePdfZoom(pdfDocRef, containerRef, currentPage) {
288
282
  ])
289
283
  };
290
284
  }
291
- //#endregion
292
- //#region src/pdf/PdfFullscreenOverlay.tsx
285
+ // src/pdf/PdfFullscreenOverlay.tsx
293
286
  /** The PDF preview's fullscreen overlay: the page scaled to fill the
294
287
  * viewport over a portal (the same page navigation, the zoom bar — the
295
288
  * zoom in / out buttons over the scale + the fit-width / the fit-height —
@@ -457,8 +450,7 @@ function PdfFullscreenOverlay({ pdfDocRef, phase, currentPage, totalPages, prevP
457
450
  ]
458
451
  }), document.body);
459
452
  }
460
- //#endregion
461
- //#region src/pdf/use-pdf-document.ts
453
+ // src/pdf/use-pdf-document.ts
462
454
  /** The PDF document's load lifecycle: the resolved url's fetch + parse
463
455
  * (pdfjs-dist), the page navigation's state, and the in-flight cleanup —
464
456
  * the fetch is aborted on unmount / url change and the render task +
@@ -532,8 +524,7 @@ function usePdfDocument(url) {
532
524
  pdfDocRef
533
525
  };
534
526
  }
535
- //#endregion
536
- //#region src/pdf/PdfFirstPage.tsx
527
+ // src/pdf/PdfFirstPage.tsx
537
528
  /** The PDF preview of one file block: fetch the resolved blob, render the
538
529
  * pages to a canvas via pdfjs-dist. The inline view stands the page over
539
530
  * the page row + the page controls' bar under the canvas; the fullscreen
@@ -676,5 +667,4 @@ function PdfFirstPage({ id, blockType, url, name }) {
676
667
  ]
677
668
  });
678
669
  }
679
- //#endregion
680
670
  export { PdfFirstPage };
package/dist/styles.css CHANGED
@@ -45,7 +45,7 @@
45
45
  * renderers apply it inline.
46
46
  */
47
47
 
48
- /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
48
+ /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
49
49
  @layer properties;
50
50
  @layer theme, base, components, utilities;
51
51
  @layer theme {
@@ -754,6 +754,9 @@
754
754
  .max-h-full {
755
755
  max-height: 100%;
756
756
  }
757
+ .min-h-\(--docblocks-line-box-height\) {
758
+ min-height: var(--docblocks-line-box-height);
759
+ }
757
760
  .min-h-0 {
758
761
  min-height: 0px;
759
762
  }
@@ -992,7 +995,7 @@
992
995
  rotate: 180deg;
993
996
  }
994
997
  .transform {
995
- transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
998
+ transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
996
999
  }
997
1000
  .animate-in {
998
1001
  animation: enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none);
@@ -1900,11 +1903,11 @@
1900
1903
  }
1901
1904
  .ordinal {
1902
1905
  --tw-ordinal: ordinal;
1903
- font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
1906
+ font-variant-numeric: var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, );
1904
1907
  }
1905
1908
  .tabular-nums {
1906
1909
  --tw-numeric-spacing: tabular-nums;
1907
- font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
1910
+ font-variant-numeric: var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, );
1908
1911
  }
1909
1912
  .underline {
1910
1913
  text-decoration-line: underline;
@@ -1969,15 +1972,15 @@
1969
1972
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1970
1973
  }
1971
1974
  .ring {
1972
- --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
1975
+ --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
1973
1976
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1974
1977
  }
1975
1978
  .ring-0 {
1976
- --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
1979
+ --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
1977
1980
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1978
1981
  }
1979
1982
  .ring-1 {
1980
- --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
1983
+ --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
1981
1984
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1982
1985
  }
1983
1986
  .ring-foreground\/10 {
@@ -2020,10 +2023,10 @@
2020
2023
  }
2021
2024
  .blur {
2022
2025
  --tw-blur: blur(8px);
2023
- filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
2026
+ filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
2024
2027
  }
2025
2028
  .filter {
2026
- filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
2029
+ filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
2027
2030
  }
2028
2031
  .transition {
2029
2032
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
@@ -2138,109 +2141,109 @@
2138
2141
  .zoom-out {
2139
2142
  --tw-exit-scale: 0;
2140
2143
  }
2141
- .group-focus-within\:pointer-events-auto:is(:where(.group):focus-within *) {
2144
+ :is(:where(.group):focus-within .group-focus-within\:pointer-events-auto) {
2142
2145
  pointer-events: auto;
2143
2146
  }
2144
- .group-focus-within\:pointer-events-none:is(:where(.group):focus-within *) {
2147
+ :is(:where(.group):focus-within .group-focus-within\:pointer-events-none) {
2145
2148
  pointer-events: none;
2146
2149
  }
2147
- .group-focus-within\:-top-2:is(:where(.group):focus-within *) {
2150
+ :is(:where(.group):focus-within .group-focus-within\:-top-2) {
2148
2151
  top: calc(var(--spacing) * -2);
2149
2152
  }
2150
- .group-focus-within\:cursor-default:is(:where(.group):focus-within *) {
2153
+ :is(:where(.group):focus-within .group-focus-within\:cursor-default) {
2151
2154
  cursor: default;
2152
2155
  }
2153
- .group-focus-within\:border-border:is(:where(.group):focus-within *) {
2156
+ :is(:where(.group):focus-within .group-focus-within\:border-border) {
2154
2157
  border-color: var(--border);
2155
2158
  }
2156
- .group-focus-within\:bg-muted\/50:is(:where(.group):focus-within *) {
2159
+ :is(:where(.group):focus-within .group-focus-within\:bg-muted\/50) {
2157
2160
  background-color: var(--muted);
2158
2161
  @supports (color: color-mix(in lab, red, red)) {
2159
2162
  background-color: color-mix(in oklab, var(--muted) 50%, transparent);
2160
2163
  }
2161
2164
  }
2162
- .group-focus-within\:text-xs:is(:where(.group):focus-within *) {
2165
+ :is(:where(.group):focus-within .group-focus-within\:text-xs) {
2163
2166
  font-size: var(--text-xs);
2164
2167
  line-height: var(--tw-leading, var(--text-xs--line-height));
2165
2168
  }
2166
- .group-focus-within\:font-medium:is(:where(.group):focus-within *) {
2169
+ :is(:where(.group):focus-within .group-focus-within\:font-medium) {
2167
2170
  --tw-font-weight: var(--font-weight-medium);
2168
2171
  font-weight: var(--font-weight-medium);
2169
2172
  }
2170
- .group-focus-within\:text-foreground:is(:where(.group):focus-within *) {
2173
+ :is(:where(.group):focus-within .group-focus-within\:text-foreground) {
2171
2174
  color: var(--foreground);
2172
2175
  }
2173
- .group-focus-within\:opacity-100:is(:where(.group):focus-within *) {
2176
+ :is(:where(.group):focus-within .group-focus-within\:opacity-100) {
2174
2177
  opacity: 100%;
2175
2178
  }
2176
- .group-focus-within\:ring-\[1px\]:is(:where(.group):focus-within *) {
2177
- --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
2179
+ :is(:where(.group):focus-within .group-focus-within\:ring-\[1px\]) {
2180
+ --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
2178
2181
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
2179
2182
  }
2180
- .group-focus-within\:ring-ring\/20:is(:where(.group):focus-within *) {
2183
+ :is(:where(.group):focus-within .group-focus-within\:ring-ring\/20) {
2181
2184
  --tw-ring-color: var(--ring);
2182
2185
  @supports (color: color-mix(in lab, red, red)) {
2183
2186
  --tw-ring-color: color-mix(in oklab, var(--ring) 20%, transparent);
2184
2187
  }
2185
2188
  }
2186
- .group-focus-within\/code\:pointer-events-auto:is(:where(.group\/code):focus-within *) {
2189
+ :is(:where(.group\/code):focus-within .group-focus-within\/code\:pointer-events-auto) {
2187
2190
  pointer-events: auto;
2188
2191
  }
2189
- .group-focus-within\/code\:opacity-100:is(:where(.group\/code):focus-within *) {
2192
+ :is(:where(.group\/code):focus-within .group-focus-within\/code\:opacity-100) {
2190
2193
  opacity: 100%;
2191
2194
  }
2192
2195
  @media (hover: hover) {
2193
- .group-hover\:pointer-events-auto:is(:where(.group):hover *) {
2196
+ :is(:where(.group):hover .group-hover\:pointer-events-auto) {
2194
2197
  pointer-events: auto;
2195
2198
  }
2196
- .group-hover\:border-border:is(:where(.group):hover *) {
2199
+ :is(:where(.group):hover .group-hover\:border-border) {
2197
2200
  border-color: var(--border);
2198
2201
  }
2199
- .group-hover\:opacity-100:is(:where(.group):hover *) {
2202
+ :is(:where(.group):hover .group-hover\:opacity-100) {
2200
2203
  opacity: 100%;
2201
2204
  }
2202
- .group-hover\/cell\:opacity-100:is(:where(.group\/cell):hover *) {
2205
+ :is(:where(.group\/cell):hover .group-hover\/cell\:opacity-100) {
2203
2206
  opacity: 100%;
2204
2207
  }
2205
2208
  }
2206
- .group-data-horizontal\/tabs\:h-8:is(:where(.group\/tabs)[data-horizontal] *) {
2209
+ :is(:where(.group\/tabs)[data-horizontal] .group-data-horizontal\/tabs\:h-8) {
2207
2210
  height: calc(var(--spacing) * 8);
2208
2211
  }
2209
- .group-data-image\:pl-9:is(:where(.group)[data-image] *) {
2212
+ :is(:where(.group)[data-image] .group-data-image\:pl-9) {
2210
2213
  padding-left: calc(var(--spacing) * 9);
2211
2214
  }
2212
- .group-data-vertical\/tabs\:h-fit:is(:where(.group\/tabs)[data-vertical] *) {
2215
+ :is(:where(.group\/tabs)[data-vertical] .group-data-vertical\/tabs\:h-fit) {
2213
2216
  height: fit-content;
2214
2217
  }
2215
- .group-data-vertical\/tabs\:w-full:is(:where(.group\/tabs)[data-vertical] *) {
2218
+ :is(:where(.group\/tabs)[data-vertical] .group-data-vertical\/tabs\:w-full) {
2216
2219
  width: 100%;
2217
2220
  }
2218
- .group-data-vertical\/tabs\:flex-col:is(:where(.group\/tabs)[data-vertical] *) {
2221
+ :is(:where(.group\/tabs)[data-vertical] .group-data-vertical\/tabs\:flex-col) {
2219
2222
  flex-direction: column;
2220
2223
  }
2221
- .group-data-vertical\/tabs\:justify-start:is(:where(.group\/tabs)[data-vertical] *) {
2224
+ :is(:where(.group\/tabs)[data-vertical] .group-data-vertical\/tabs\:justify-start) {
2222
2225
  justify-content: flex-start;
2223
2226
  }
2224
- .group-data-\[focused\=true\]\/day\:relative:is(:where(.group\/day)[data-focused="true"] *) {
2227
+ :is(:where(.group\/day)[data-focused="true"] .group-data-\[focused\=true\]\/day\:relative) {
2225
2228
  position: relative;
2226
2229
  }
2227
- .group-data-\[focused\=true\]\/day\:z-10:is(:where(.group\/day)[data-focused="true"] *) {
2230
+ :is(:where(.group\/day)[data-focused="true"] .group-data-\[focused\=true\]\/day\:z-10) {
2228
2231
  z-index: 10;
2229
2232
  }
2230
- .group-data-\[focused\=true\]\/day\:border-ring:is(:where(.group\/day)[data-focused="true"] *) {
2233
+ :is(:where(.group\/day)[data-focused="true"] .group-data-\[focused\=true\]\/day\:border-ring) {
2231
2234
  border-color: var(--ring);
2232
2235
  }
2233
- .group-data-\[focused\=true\]\/day\:ring-\[3px\]:is(:where(.group\/day)[data-focused="true"] *) {
2234
- --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
2236
+ :is(:where(.group\/day)[data-focused="true"] .group-data-\[focused\=true\]\/day\:ring-\[3px\]) {
2237
+ --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
2235
2238
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
2236
2239
  }
2237
- .group-data-\[focused\=true\]\/day\:ring-ring\/50:is(:where(.group\/day)[data-focused="true"] *) {
2240
+ :is(:where(.group\/day)[data-focused="true"] .group-data-\[focused\=true\]\/day\:ring-ring\/50) {
2238
2241
  --tw-ring-color: var(--ring);
2239
2242
  @supports (color: color-mix(in lab, red, red)) {
2240
2243
  --tw-ring-color: color-mix(in oklab, var(--ring) 50%, transparent);
2241
2244
  }
2242
2245
  }
2243
- .group-data-\[variant\=line\]\/tabs-list\:bg-transparent:is(:where(.group\/tabs-list)[data-variant="line"] *) {
2246
+ :is(:where(.group\/tabs-list)[data-variant="line"] .group-data-\[variant\=line\]\/tabs-list\:bg-transparent) {
2244
2247
  background-color: transparent;
2245
2248
  }
2246
2249
  .selection\:bg-\(--docblocks-selection-background\) ::selection {
@@ -2341,27 +2344,27 @@
2341
2344
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
2342
2345
  transition-duration: var(--tw-duration, var(--default-transition-duration));
2343
2346
  }
2344
- .group-data-horizontal\/tabs\:after\:inset-x-0:is(:where(.group\/tabs)[data-horizontal] *)::after {
2347
+ :is(:where(.group\/tabs)[data-horizontal] .group-data-horizontal\/tabs\:after\:inset-x-0)::after {
2345
2348
  content: var(--tw-content);
2346
2349
  inset-inline: 0px;
2347
2350
  }
2348
- .group-data-horizontal\/tabs\:after\:-bottom-1\.25:is(:where(.group\/tabs)[data-horizontal] *)::after {
2351
+ :is(:where(.group\/tabs)[data-horizontal] .group-data-horizontal\/tabs\:after\:-bottom-1\.25)::after {
2349
2352
  content: var(--tw-content);
2350
2353
  bottom: calc(var(--spacing) * -1.25);
2351
2354
  }
2352
- .group-data-horizontal\/tabs\:after\:h-0\.5:is(:where(.group\/tabs)[data-horizontal] *)::after {
2355
+ :is(:where(.group\/tabs)[data-horizontal] .group-data-horizontal\/tabs\:after\:h-0\.5)::after {
2353
2356
  content: var(--tw-content);
2354
2357
  height: calc(var(--spacing) * 0.5);
2355
2358
  }
2356
- .group-data-vertical\/tabs\:after\:inset-y-0:is(:where(.group\/tabs)[data-vertical] *)::after {
2359
+ :is(:where(.group\/tabs)[data-vertical] .group-data-vertical\/tabs\:after\:inset-y-0)::after {
2357
2360
  content: var(--tw-content);
2358
2361
  inset-block: 0px;
2359
2362
  }
2360
- .group-data-vertical\/tabs\:after\:-right-1:is(:where(.group\/tabs)[data-vertical] *)::after {
2363
+ :is(:where(.group\/tabs)[data-vertical] .group-data-vertical\/tabs\:after\:-right-1)::after {
2361
2364
  content: var(--tw-content);
2362
2365
  right: calc(var(--spacing) * -1);
2363
2366
  }
2364
- .group-data-vertical\/tabs\:after\:w-0\.5:is(:where(.group\/tabs)[data-vertical] *)::after {
2367
+ :is(:where(.group\/tabs)[data-vertical] .group-data-vertical\/tabs\:after\:w-0\.5)::after {
2365
2368
  content: var(--tw-content);
2366
2369
  width: calc(var(--spacing) * 0.5);
2367
2370
  }
@@ -2369,7 +2372,7 @@
2369
2372
  border-color: var(--ring);
2370
2373
  }
2371
2374
  .focus-within\:ring-2:focus-within {
2372
- --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
2375
+ --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
2373
2376
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
2374
2377
  }
2375
2378
  .focus-within\:ring-ring\/40:focus-within {
@@ -2514,15 +2517,15 @@
2514
2517
  opacity: 100%;
2515
2518
  }
2516
2519
  .focus-visible\:ring-0:focus-visible {
2517
- --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
2520
+ --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
2518
2521
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
2519
2522
  }
2520
2523
  .focus-visible\:ring-2:focus-visible {
2521
- --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
2524
+ --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
2522
2525
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
2523
2526
  }
2524
2527
  .focus-visible\:ring-\[3px\]:focus-visible {
2525
- --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
2528
+ --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
2526
2529
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
2527
2530
  }
2528
2531
  .focus-visible\:ring-destructive\/20:focus-visible {
@@ -2799,18 +2802,18 @@
2799
2802
  .data-\[state\=active\]\:text-foreground[data-state="active"] {
2800
2803
  color: var(--foreground);
2801
2804
  }
2802
- .group-data-\[variant\=default\]\/tabs-list\:data-\[state\=active\]\:shadow-sm:is(:where(.group\/tabs-list)[data-variant="default"] *)[data-state="active"] {
2805
+ :is(:where(.group\/tabs-list)[data-variant="default"] .group-data-\[variant\=default\]\/tabs-list\:data-\[state\=active\]\:shadow-sm)[data-state="active"] {
2803
2806
  --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
2804
2807
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
2805
2808
  }
2806
- .group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:bg-transparent:is(:where(.group\/tabs-list)[data-variant="line"] *)[data-state="active"] {
2809
+ :is(:where(.group\/tabs-list)[data-variant="line"] .group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:bg-transparent)[data-state="active"] {
2807
2810
  background-color: transparent;
2808
2811
  }
2809
- .group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:shadow-none:is(:where(.group\/tabs-list)[data-variant="line"] *)[data-state="active"] {
2812
+ :is(:where(.group\/tabs-list)[data-variant="line"] .group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:shadow-none)[data-state="active"] {
2810
2813
  --tw-shadow: 0 0 #0000;
2811
2814
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
2812
2815
  }
2813
- .group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:after\:opacity-100:is(:where(.group\/tabs-list)[data-variant="line"] *)[data-state="active"]::after {
2816
+ :is(:where(.group\/tabs-list)[data-variant="line"] .group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:after\:opacity-100)[data-state="active"]::after {
2814
2817
  content: var(--tw-content);
2815
2818
  opacity: 100%;
2816
2819
  }
@@ -2991,10 +2994,10 @@
2991
2994
  .dark\:data-\[state\=active\]\:text-foreground:is(.dark *)[data-state="active"] {
2992
2995
  color: var(--foreground);
2993
2996
  }
2994
- .dark\:group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:border-transparent:is(.dark *):is(:where(.group\/tabs-list)[data-variant="line"] *)[data-state="active"] {
2997
+ :is(:where(.group\/tabs-list)[data-variant="line"] .dark\:group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:border-transparent:is(.dark *))[data-state="active"] {
2995
2998
  border-color: transparent;
2996
2999
  }
2997
- .dark\:group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:bg-transparent:is(.dark *):is(:where(.group\/tabs-list)[data-variant="line"] *)[data-state="active"] {
3000
+ :is(:where(.group\/tabs-list)[data-variant="line"] .dark\:group-data-\[variant\=line\]\/tabs-list\:data-\[state\=active\]\:bg-transparent:is(.dark *))[data-state="active"] {
2998
3001
  background-color: transparent;
2999
3002
  }
3000
3003
  .dark\:data-\[state\=checked\]\:bg-primary:is(.dark *)[data-state="checked"] {
@@ -3441,7 +3444,7 @@
3441
3444
  }
3442
3445
  }
3443
3446
  @layer properties {
3444
- @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
3447
+ @supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
3445
3448
  *, ::before, ::after, ::backdrop {
3446
3449
  --tw-translate-x: 0;
3447
3450
  --tw-translate-y: 0;
@@ -4141,23 +4144,29 @@
4141
4144
  /* The empty-block hint: rendered into an empty text block's content box
4142
4145
  only while the block holds the caret (the pseudo-element content is not
4143
4146
  text content — the input layer and the run rendering ignore it); the
4144
- attribute carries the provider's placeholder text. */
4147
+ attribute carries the provider's placeholder text. The empty page's
4148
+ input stand shows its hint over its :empty stand (the page holds no
4149
+ blocks, so the stand is the page's only affordance — it stands visible
4150
+ before the first focus, inviting the first input). */
4145
4151
  [data-slot="docblocks/block-content"]:empty:focus::before,
4146
- [data-slot="docblocks/block-content"]:empty[data-caret-inside]::before {
4152
+ [data-slot="docblocks/block-content"]:empty[data-caret-inside]::before,
4153
+ [data-slot="docblocks/empty-page"]:empty::before {
4147
4154
  content: attr(data-placeholder);
4148
4155
  color: var(--docblocks-placeholder-color);
4149
4156
  pointer-events: none;
4150
4157
  }
4151
4158
 
4152
- /* The zero-width caret seat: an empty editable (the text block's inner and
4153
- the empty-cell activation layer) renders a zero-width space while it
4159
+ /* The zero-width caret seat: an empty editable (the text block's inner, the
4160
+ empty-cell activation layer, and the empty page's input stand) renders a
4161
+ zero-width space while it
4154
4162
  stands :empty, so the browser can seat the caret on focus (an empty
4155
4163
  contenteditable has no box to take a caret). Structural — a utility
4156
4164
  arbitrary-value class cannot carry the CSS escape (the component
4157
4165
  source is compiled before the class attribute stands, and the escape
4158
4166
  is eaten as a JS octal literal). */
4159
4167
  [data-slot="docblocks/block-content"]:empty::after,
4160
- [data-slot="docblocks/cell-activation"]:empty::after {
4168
+ [data-slot="docblocks/cell-activation"]:empty::after,
4169
+ [data-slot="docblocks/empty-page"]:empty::after {
4161
4170
  content: "\200b";
4162
4171
  }
4163
4172
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docblocks-react-ui",
3
- "version": "0.29.1",
3
+ "version": "0.30.0",
4
4
  "description": "React rendering + editing layer for docblocks: hooks, block renderers, caret/selection, keyboard, clipboard.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  "access": "public"
37
37
  },
38
38
  "peerDependencies": {
39
- "docblocks-core": "^0.12.0",
39
+ "docblocks-core": "^0.14.0",
40
40
  "framer-motion": "^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0",
41
41
  "mermaid": "^12.0.0",
42
42
  "pdfjs-dist": "^6.0.0",