@factorialco/f0-react 4.44.0 → 4.46.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/ChatDocxThumbnail-B3DMs45n.js +48 -0
- package/dist/ChatPdfThumbnail-BFbYv0sb.js +38 -0
- package/dist/ChatSheetThumbnail-BvnxT-4A.js +38 -0
- package/dist/ChatTextThumbnail-yVt_iYi7.js +33 -0
- package/dist/{DocumentToolbar-D3GqxyBD.js → DocumentToolbar-BLcBoeNU.js} +5 -5
- package/dist/DocxViewer-C0K6oFym.js +68 -0
- package/dist/{F0AiProcessingOverlay-rViVqtAb.js → F0AiProcessingOverlay-BZka5wSN.js} +713 -761
- package/dist/{F0CanvasPanel-VGTPb68G.js → F0CanvasPanel-BDwye32b.js} +10679 -10600
- package/dist/{LocationMap-CdKO0X5V.js → LocationMap-NloaE37G.js} +1 -1
- package/dist/Printer-B7iDPx2r.js +54 -0
- package/dist/SheetViewer-1AsPdzFt.js +108 -0
- package/dist/{TextViewer-Dn0MDAXs.js → TextViewer-Ba0xZQdy.js} +2 -2
- package/dist/_commonjs-dynamic-modules-BpilXLfW.js +6 -0
- package/dist/ai.d.ts +34 -1
- package/dist/ai.js +2 -2
- package/dist/component-status.js +1 -1
- package/dist/{DocxViewer-BIZmtyWY.js → docx-preview-CSg41tKY.js} +971 -1034
- package/dist/experimental.d.ts +31 -4
- package/dist/experimental.js +10210 -6404
- package/dist/f0.css +1 -1
- package/dist/f0.d.ts +74 -1
- package/dist/f0.js +65853 -299
- package/dist/i18n-provider-defaults.d.ts +4 -0
- package/dist/i18n-provider-defaults.js +5 -1
- package/dist/{index-DoDUaTro.js → index-3x-af82e.js} +14657 -14408
- package/dist/index-BuP079h-.js +545 -0
- package/dist/index.css +1 -1
- package/dist/index2.css +1 -0
- package/dist/pdfWorker-XwYoO_oV.js +13118 -0
- package/dist/pdfWorker.css +1 -0
- package/dist/sheetPreview-5qeAOp0W.js +35 -0
- package/dist/styles.css +1 -1
- package/package.json +2 -1
- package/tailwind.config.ts +8 -0
- package/dist/SheetViewer-HsR5toIL.js +0 -137
- package/dist/f0-BaDuQbAV.js +0 -79441
package/dist/experimental.d.ts
CHANGED
|
@@ -518,6 +518,15 @@ declare type AiChatProviderProps = {
|
|
|
518
518
|
* @default "right"
|
|
519
519
|
*/
|
|
520
520
|
side?: "left" | "right";
|
|
521
|
+
/**
|
|
522
|
+
* Edge hosted side-panel content (`setPanelContent`) docks to. Defaults to
|
|
523
|
+
* `side`, keeping everything in one panel. Set it to the opposite edge to
|
|
524
|
+
* split them — e.g. communications: conversations dock left while the AI
|
|
525
|
+
* chat keeps its right-side panel and toggle. The two are still exclusive
|
|
526
|
+
* (opening one swaps the other out); only the main content moves during
|
|
527
|
+
* the swap, uncovering the incoming panel in place.
|
|
528
|
+
*/
|
|
529
|
+
panelContentSide?: "left" | "right";
|
|
521
530
|
/**
|
|
522
531
|
* Greeting phrase(s) shown by the welcome screen when the chat is empty.
|
|
523
532
|
* A single string renders once; an array rotates through phrases. Purely
|
|
@@ -4009,6 +4018,10 @@ declare const defaultTranslations: {
|
|
|
4009
4018
|
readonly addBlockedHint: "Finish filling out the last item you just added in order to add another one";
|
|
4010
4019
|
readonly addBlockedErrorHint: "Fix the errors in the existing items before adding another one";
|
|
4011
4020
|
readonly addBlockedMaxHint: "You've reached the maximum number of items";
|
|
4021
|
+
readonly removeConfirmTitle: "Remove item?";
|
|
4022
|
+
readonly removeConfirmMessage: "This item will be removed. This action cannot be undone.";
|
|
4023
|
+
readonly removeError: "Couldn't remove the item. Please try again.";
|
|
4024
|
+
readonly removeErrorTitle: "Remove failed";
|
|
4012
4025
|
};
|
|
4013
4026
|
readonly moreInformation: "More information";
|
|
4014
4027
|
readonly validation: {
|
|
@@ -5646,7 +5659,7 @@ export declare const F0FormEditableTable: typeof F0FormEditableTableBase;
|
|
|
5646
5659
|
* `onCellChange`, reorders via `onReorderRows`, removals via `onRemoveRow`,
|
|
5647
5660
|
* and additions via `addRow.onClick`.
|
|
5648
5661
|
*/
|
|
5649
|
-
declare function F0FormEditableTableBase<R extends RecordType>({ columns: columnsProp, items, getRowId, onCellChange, sortableRows, onReorderRows, onRemoveRow, onEditRow, canEditRow, rowActions, getCellError, addRow, editLabel: editLabelProp, removeLabel: removeLabelProp, bordered, disabled, }: F0FormEditableTableProps<R>): JSX_2.Element;
|
|
5662
|
+
declare function F0FormEditableTableBase<R extends RecordType>({ columns: columnsProp, items, getRowId, onCellChange, sortableRows, onReorderRows, onRemoveRow, onEditRow, canEditRow, canRemoveRow, rowActions, getCellError, addRow, editLabel: editLabelProp, removeLabel: removeLabelProp, bordered, disabled, }: F0FormEditableTableProps<R>): JSX_2.Element;
|
|
5650
5663
|
|
|
5651
5664
|
/**
|
|
5652
5665
|
* Column definition for F0FormEditableTable.
|
|
@@ -5716,6 +5729,12 @@ export declare type F0FormEditableTableProps<R extends RecordType> = {
|
|
|
5716
5729
|
* `onEditRow` is provided). Defaults to showing it on every row.
|
|
5717
5730
|
*/
|
|
5718
5731
|
canEditRow?: (item: R, index: number) => boolean;
|
|
5732
|
+
/**
|
|
5733
|
+
* Controls per-row visibility of the remove button (only relevant when
|
|
5734
|
+
* `onRemoveRow` is provided). Independent of `canEditRow`. Defaults to
|
|
5735
|
+
* showing it on every row.
|
|
5736
|
+
*/
|
|
5737
|
+
canRemoveRow?: (item: R, index: number) => boolean;
|
|
5719
5738
|
/**
|
|
5720
5739
|
* Custom trailing actions per row. Return the actions to show for the given
|
|
5721
5740
|
* row; because it's resolved per row, the actions can depend on the row's
|
|
@@ -9684,18 +9703,26 @@ export declare type SidebarTabPanelProps = {
|
|
|
9684
9703
|
|
|
9685
9704
|
/**
|
|
9686
9705
|
* Tab switcher that replaces the `SearchBar` row when the Sidebar gains tabs.
|
|
9687
|
-
* The active tab shows icon + label (animated in); inactive tabs
|
|
9688
|
-
*
|
|
9706
|
+
* The active tab always shows icon + label (animated in); inactive tabs show
|
|
9707
|
+
* theirs too when every label fits in the row, and fall back to icon-only
|
|
9708
|
+
* when space is tight. Search becomes an icon button on the right.
|
|
9689
9709
|
*
|
|
9690
9710
|
* When no tabs are needed, keep composing the Sidebar header with `SearchBar`
|
|
9691
9711
|
* instead — that path is unchanged.
|
|
9692
9712
|
*/
|
|
9693
|
-
export declare const SidebarTabs: ({ tabs, activeTab, onTabChange, }: SidebarTabsProps) => JSX_2.Element;
|
|
9713
|
+
export declare const SidebarTabs: ({ tabs, activeTab, onTabChange, persistKey, }: SidebarTabsProps) => JSX_2.Element;
|
|
9694
9714
|
|
|
9695
9715
|
export declare type SidebarTabsProps = {
|
|
9696
9716
|
tabs: SidebarTab[];
|
|
9697
9717
|
activeTab: string;
|
|
9698
9718
|
onTabChange: (id: string) => void;
|
|
9719
|
+
/**
|
|
9720
|
+
* Remember the active tab across reloads under this key (namespaced as
|
|
9721
|
+
* `f0-sidebar-tab:<persistKey>` in localStorage). On mount, a stored tab
|
|
9722
|
+
* that still exists in `tabs` is restored via `onTabChange`; unknown ids
|
|
9723
|
+
* (e.g. a tab that no longer ships) are ignored. Omit for session-only tabs.
|
|
9724
|
+
*/
|
|
9725
|
+
persistKey?: string;
|
|
9699
9726
|
};
|
|
9700
9727
|
|
|
9701
9728
|
/**
|