@factorialco/f0-react 4.43.0 → 4.44.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/DocumentToolbar-D3GqxyBD.js +93 -0
- package/dist/DocxViewer-BIZmtyWY.js +5575 -0
- package/dist/{F0AiProcessingOverlay-BEP7sCit.js → F0AiProcessingOverlay-rViVqtAb.js} +3 -3
- package/dist/{F0CanvasPanel-DbqD05BD.js → F0CanvasPanel-VGTPb68G.js} +87701 -87664
- package/dist/{LocationMap-k_Xf8FpF.js → LocationMap-CdKO0X5V.js} +1 -1
- package/dist/SheetViewer-HsR5toIL.js +137 -0
- package/dist/TextViewer-Dn0MDAXs.js +74 -0
- package/dist/ai.d.ts +7 -0
- package/dist/ai.js +2 -2
- package/dist/component-status.js +1 -1
- package/dist/experimental.d.ts +7 -0
- package/dist/experimental.js +5 -5
- package/dist/f0-BaDuQbAV.js +79441 -0
- package/dist/f0.d.ts +40 -1
- package/dist/f0.js +299 -79563
- package/dist/i18n-provider-defaults.d.ts +7 -0
- package/dist/i18n-provider-defaults.js +8 -1
- package/dist/{index-CU7LjzD8.js → index-DoDUaTro.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/xlsx-CzlURDDb.js +24525 -0
- package/package.json +3 -2
- package/dist/xlsx-Bedf3nwD.js +0 -15557
package/dist/f0.d.ts
CHANGED
|
@@ -4962,6 +4962,8 @@ export declare const defaultTranslations: {
|
|
|
4962
4962
|
readonly closePreview: "Close";
|
|
4963
4963
|
readonly previousImage: "Previous image";
|
|
4964
4964
|
readonly nextImage: "Next image";
|
|
4965
|
+
readonly openDocument: "Open document";
|
|
4966
|
+
readonly documentPreview: "Document preview";
|
|
4965
4967
|
readonly photo: "Photo";
|
|
4966
4968
|
readonly photoCount: {
|
|
4967
4969
|
readonly one: "{{count}} photo";
|
|
@@ -5269,6 +5271,11 @@ export declare const defaultTranslations: {
|
|
|
5269
5271
|
readonly print: "Print";
|
|
5270
5272
|
readonly download: "Download";
|
|
5271
5273
|
readonly loading: "Loading document";
|
|
5274
|
+
readonly previewFailed: "Preview isn't available for this file";
|
|
5275
|
+
readonly showingFirstRows: {
|
|
5276
|
+
readonly one: "Showing the first row";
|
|
5277
|
+
readonly other: "Showing the first {{count}} rows";
|
|
5278
|
+
};
|
|
5272
5279
|
};
|
|
5273
5280
|
};
|
|
5274
5281
|
|
|
@@ -8701,6 +8708,15 @@ export declare type F0DialogSecondaryActionItem = F0DialogActionItem;
|
|
|
8701
8708
|
|
|
8702
8709
|
declare type F0DialogSize = (typeof dialogSizes)[number];
|
|
8703
8710
|
|
|
8711
|
+
/**
|
|
8712
|
+
* Document families the viewer can render. "pdf" is the default and keeps the
|
|
8713
|
+
* full toolbar (paging, zoom, print, download); the other kinds render a
|
|
8714
|
+
* lazy-loaded, read-only preview: "sheet" (xlsx/xls/csv) as an Excel-style
|
|
8715
|
+
* grid with one tab per sheet, "docx" through docx-preview with page layout,
|
|
8716
|
+
* and "text" as a rendered markdown document (`.md`) or monospaced source.
|
|
8717
|
+
*/
|
|
8718
|
+
export declare type F0DocumentKind = "pdf" | "sheet" | "docx" | "text";
|
|
8719
|
+
|
|
8704
8720
|
/**
|
|
8705
8721
|
* @experimental This is an experimental component use it at your own risk
|
|
8706
8722
|
*/
|
|
@@ -10635,11 +10651,34 @@ export declare const F0PdfViewer: WithDataTestIdReturnType_3<ForwardRefExoticCom
|
|
|
10635
10651
|
Skeleton: () => JSX_2.Element;
|
|
10636
10652
|
}>;
|
|
10637
10653
|
|
|
10654
|
+
/**
|
|
10655
|
+
* Host-provided toolbar action, appended after the built-in controls in every
|
|
10656
|
+
* kind — e.g. a Close button when the viewer lives inside a fullscreen overlay.
|
|
10657
|
+
*/
|
|
10658
|
+
export declare type F0PdfViewerAction = {
|
|
10659
|
+
icon: IconType;
|
|
10660
|
+
label: string;
|
|
10661
|
+
onClick: () => void;
|
|
10662
|
+
};
|
|
10663
|
+
|
|
10638
10664
|
export declare interface F0PdfViewerProps extends WithDataTestIdProps, DataAttributes_2 {
|
|
10639
|
-
/** Source URL of the
|
|
10665
|
+
/** Source URL of the document. */
|
|
10640
10666
|
url: string;
|
|
10641
10667
|
/** File name used when downloading the document. Defaults to "document.pdf". */
|
|
10642
10668
|
filename?: string;
|
|
10669
|
+
/**
|
|
10670
|
+
* Document family to render. Defaults to "pdf" (unchanged behavior). For the
|
|
10671
|
+
* other kinds the PDF-only props below (page, scale, rotation, print…) are
|
|
10672
|
+
* ignored.
|
|
10673
|
+
*/
|
|
10674
|
+
kind?: F0DocumentKind;
|
|
10675
|
+
/** MIME type of the document — used by kind "text" to detect markdown. */
|
|
10676
|
+
mimeType?: string;
|
|
10677
|
+
/**
|
|
10678
|
+
* Custom actions appended to the toolbar (after the built-in controls), in
|
|
10679
|
+
* every kind — e.g. a Close button when the viewer fills an overlay.
|
|
10680
|
+
*/
|
|
10681
|
+
actions?: F0PdfViewerAction[];
|
|
10643
10682
|
/** Zero-based page index to scroll to initially (and on change). */
|
|
10644
10683
|
page?: number;
|
|
10645
10684
|
/** Restrict rendering to a subset of pages (zero-based indexes). */
|