@geomak/ui 7.8.0 → 7.9.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/dist/index.d.cts CHANGED
@@ -2678,6 +2678,12 @@ interface PdfViewerProps {
2678
2678
  thumbnails?: boolean;
2679
2679
  /** Selectable text layer. Default `true`. */
2680
2680
  textLayer?: boolean;
2681
+ /**
2682
+ * Override the pdf.js worker URL (e.g. self-hosted for air-gapped / strict-CSP
2683
+ * deploys). Defaults to a version-pinned CDN build. Only the first mounted
2684
+ * viewer's value takes effect, since the worker is configured process-wide.
2685
+ */
2686
+ workerSrc?: string;
2681
2687
  onLoad?: (info: {
2682
2688
  numPages: number;
2683
2689
  }) => void;
@@ -2686,13 +2692,17 @@ interface PdfViewerProps {
2686
2692
  className?: string;
2687
2693
  style?: react__default.CSSProperties;
2688
2694
  }
2689
- declare function PdfViewer({ source, remote, initialPage, zoom, toolbar, thumbnails, textLayer, onLoad, onError, onPageChange, className, style, }: PdfViewerProps): react_jsx_runtime.JSX.Element;
2695
+ declare function PdfViewer({ source, remote, initialPage, zoom, toolbar, thumbnails, textLayer, workerSrc, onLoad, onError, onPageChange, className, style, }: PdfViewerProps): react_jsx_runtime.JSX.Element;
2690
2696
 
2691
2697
  type CellValue = string | number | boolean | null;
2692
2698
  interface GridColumn {
2693
2699
  key: string;
2694
2700
  label?: react__default.ReactNode;
2695
- /** Pixel width. Strings are parsed to px (non-numeric → default). Default 140. */
2701
+ /**
2702
+ * Column width in pixels. Accepts a number or a px string (`120`, `'120px'`).
2703
+ * Relative units (`'50%'`, `'1fr'`, `'auto'`) aren't supported by the
2704
+ * virtualizer and fall back to the default. Default 140.
2705
+ */
2696
2706
  width?: number | string;
2697
2707
  align?: 'left' | 'center' | 'right';
2698
2708
  /** Per-column override of the grid-wide `editable`. */
package/dist/index.d.ts CHANGED
@@ -2678,6 +2678,12 @@ interface PdfViewerProps {
2678
2678
  thumbnails?: boolean;
2679
2679
  /** Selectable text layer. Default `true`. */
2680
2680
  textLayer?: boolean;
2681
+ /**
2682
+ * Override the pdf.js worker URL (e.g. self-hosted for air-gapped / strict-CSP
2683
+ * deploys). Defaults to a version-pinned CDN build. Only the first mounted
2684
+ * viewer's value takes effect, since the worker is configured process-wide.
2685
+ */
2686
+ workerSrc?: string;
2681
2687
  onLoad?: (info: {
2682
2688
  numPages: number;
2683
2689
  }) => void;
@@ -2686,13 +2692,17 @@ interface PdfViewerProps {
2686
2692
  className?: string;
2687
2693
  style?: react__default.CSSProperties;
2688
2694
  }
2689
- declare function PdfViewer({ source, remote, initialPage, zoom, toolbar, thumbnails, textLayer, onLoad, onError, onPageChange, className, style, }: PdfViewerProps): react_jsx_runtime.JSX.Element;
2695
+ declare function PdfViewer({ source, remote, initialPage, zoom, toolbar, thumbnails, textLayer, workerSrc, onLoad, onError, onPageChange, className, style, }: PdfViewerProps): react_jsx_runtime.JSX.Element;
2690
2696
 
2691
2697
  type CellValue = string | number | boolean | null;
2692
2698
  interface GridColumn {
2693
2699
  key: string;
2694
2700
  label?: react__default.ReactNode;
2695
- /** Pixel width. Strings are parsed to px (non-numeric → default). Default 140. */
2701
+ /**
2702
+ * Column width in pixels. Accepts a number or a px string (`120`, `'120px'`).
2703
+ * Relative units (`'50%'`, `'1fr'`, `'auto'`) aren't supported by the
2704
+ * virtualizer and fall back to the default. Default 140.
2705
+ */
2696
2706
  width?: number | string;
2697
2707
  align?: 'left' | 'center' | 'right';
2698
2708
  /** Per-column override of the grid-wide `editable`. */