docblocks-react-ui 0.6.2 → 0.6.4
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
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# docblocks-react-ui
|
|
2
2
|
|
|
3
|
+
## 0.6.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b5af599: Resolve PDF worker and decoder assets from the consumer's `pdfjs-dist` peer so the API and worker versions stay aligned.
|
|
8
|
+
|
|
9
|
+
## 0.6.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 7bfbdff: Derive the PDF decoder directory without constructing a URL from a bundler-relative asset path, preserving compatibility with Turbopack's emitted URL objects.
|
|
14
|
+
|
|
3
15
|
## 0.6.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -322,7 +322,7 @@ declare function AlertDescription({ className, ...props }: React.ComponentProps<
|
|
|
322
322
|
//#endregion
|
|
323
323
|
//#region src/shared/ui/Badge.d.ts
|
|
324
324
|
declare const badgeVariants: (props?: ({
|
|
325
|
-
variant?: "default" | "destructive" | "
|
|
325
|
+
variant?: "default" | "destructive" | "custom" | "secondary" | "outline" | null | undefined;
|
|
326
326
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
327
327
|
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
328
328
|
asChild?: boolean;
|
|
@@ -333,7 +333,7 @@ declare function BareSelect({ className, children, ...props }: React.ComponentPr
|
|
|
333
333
|
//#endregion
|
|
334
334
|
//#region src/shared/ui/Button.d.ts
|
|
335
335
|
declare const buttonVariants: (props?: ({
|
|
336
|
-
variant?: "link" | "default" | "destructive" | "
|
|
336
|
+
variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
337
337
|
size?: "default" | "icon" | "sm" | "lg" | "xl" | null | undefined;
|
|
338
338
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
339
339
|
declare function Button({ className, variant, size, asChild, type, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
package/dist/pdf/index.mjs
CHANGED
|
@@ -101,7 +101,12 @@ function StretchVertical(props) {
|
|
|
101
101
|
* emitted asset URL because a bundler may hash its filename. */
|
|
102
102
|
const WORKER_URL = new URL("pdfjs-dist/build/pdf.worker.min.mjs", import.meta.url);
|
|
103
103
|
const JBIG2_URL = new URL("pdfjs-dist/wasm/jbig2.wasm", import.meta.url);
|
|
104
|
-
|
|
104
|
+
/** Keep both absolute static-ESM URLs and bundler-relative asset paths valid. */
|
|
105
|
+
function directoryUrl(file) {
|
|
106
|
+
const url = file.toString();
|
|
107
|
+
return url.slice(0, url.lastIndexOf("/") + 1);
|
|
108
|
+
}
|
|
109
|
+
const WASM_URL = directoryUrl(JBIG2_URL);
|
|
105
110
|
GlobalWorkerOptions.workerSrc = WORKER_URL.toString();
|
|
106
111
|
async function fetchBytes(url) {
|
|
107
112
|
const response = await globalThis.fetch(url);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docblocks-react-ui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
4
4
|
"description": "React rendering + editing layer for docblocks: hooks, block renderers, caret/selection, keyboard, clipboard.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -77,10 +77,10 @@
|
|
|
77
77
|
"tw-animate-css": "^1.4.0"
|
|
78
78
|
},
|
|
79
79
|
"scripts": {
|
|
80
|
-
"build": "tsdown && tailwindcss -i ui.entry.css -o dist/.tmp/ui-layer.css && node scripts/assemble-styles.mjs
|
|
80
|
+
"build": "tsdown && tailwindcss -i ui.entry.css -o dist/.tmp/ui-layer.css && node scripts/assemble-styles.mjs",
|
|
81
81
|
"prepack": "npm run build",
|
|
82
82
|
"typecheck": "tsc --noEmit",
|
|
83
|
-
"test": "vitest run"
|
|
83
|
+
"test": "NODE_OPTIONS=--disable-warning=ExperimentalWarning vitest run"
|
|
84
84
|
},
|
|
85
85
|
"engines": {
|
|
86
86
|
"node": "^22.22.2 || ^24.15.0 || >=26.0.0"
|