@retab/react 0.0.4 → 0.0.5

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.mts CHANGED
@@ -1445,6 +1445,10 @@ interface ExtractionDisplayOptions {
1445
1445
  showReasoning?: boolean;
1446
1446
  /** If true, shows tabs to switch between views and edit/view modes */
1447
1447
  showTabs?: boolean;
1448
+ /** If true, shows the display tabs (Table/Form/Code). Defaults to showTabs value. */
1449
+ showDisplayTabs?: boolean;
1450
+ /** If true, shows the edit mode tabs (View/Edit). Defaults to showTabs value. */
1451
+ showEditTabs?: boolean;
1448
1452
  }
1449
1453
  /** Options for continue/review button */
1450
1454
  interface ContinueButtonOptions {
@@ -1535,11 +1539,15 @@ interface DataComponentProps {
1535
1539
  /** Streaming state options */
1536
1540
  extractionStreamingOptions?: ExtractionStreamingOptions;
1537
1541
  }
1542
+ /** Available view modes for file component */
1543
+ type FileViewMode = 'preview' | 'sources';
1538
1544
  interface FileComponentProps {
1539
1545
  extraction: Extraction | null;
1540
1546
  fieldPath?: string | null;
1541
1547
  /** Streaming state options */
1542
1548
  extractionStreamingOptions?: ExtractionStreamingOptions<FileData | null>;
1549
+ /** Default view mode for the file viewer. If 'preview', stays on preview even if extraction exists. */
1550
+ defaultView?: FileViewMode;
1543
1551
  }
1544
1552
  interface UploadJobsListProps$1 {
1545
1553
  /** Optional metadata to associate uploads with */
@@ -1548,7 +1556,7 @@ interface UploadJobsListProps$1 {
1548
1556
 
1549
1557
  declare function DataComponent({ extraction, onFieldPathChange, extractionDisplayOptions, continueButtonOptions, extractionStreamingOptions, }: DataComponentProps): react_jsx_runtime.JSX.Element;
1550
1558
 
1551
- declare function FileComponent({ extraction, fieldPath, extractionStreamingOptions, }: FileComponentProps): react_jsx_runtime.JSX.Element;
1559
+ declare function FileComponent({ extraction, fieldPath, extractionStreamingOptions, defaultView, }: FileComponentProps): react_jsx_runtime.JSX.Element;
1552
1560
 
1553
1561
  declare function ExtractionComponent({ extractionId, projectId, isNewExtraction, extractionDisplayOptions: { view, allowEditing, showReasoning, showTabs, }, continueButtonOptions: { onClick: onContinueButtonClick, label: continueButtonLabel, }, }: ExtractionComponentProps): react_jsx_runtime.JSX.Element;
1554
1562
 
package/dist/index.d.ts CHANGED
@@ -1445,6 +1445,10 @@ interface ExtractionDisplayOptions {
1445
1445
  showReasoning?: boolean;
1446
1446
  /** If true, shows tabs to switch between views and edit/view modes */
1447
1447
  showTabs?: boolean;
1448
+ /** If true, shows the display tabs (Table/Form/Code). Defaults to showTabs value. */
1449
+ showDisplayTabs?: boolean;
1450
+ /** If true, shows the edit mode tabs (View/Edit). Defaults to showTabs value. */
1451
+ showEditTabs?: boolean;
1448
1452
  }
1449
1453
  /** Options for continue/review button */
1450
1454
  interface ContinueButtonOptions {
@@ -1535,11 +1539,15 @@ interface DataComponentProps {
1535
1539
  /** Streaming state options */
1536
1540
  extractionStreamingOptions?: ExtractionStreamingOptions;
1537
1541
  }
1542
+ /** Available view modes for file component */
1543
+ type FileViewMode = 'preview' | 'sources';
1538
1544
  interface FileComponentProps {
1539
1545
  extraction: Extraction | null;
1540
1546
  fieldPath?: string | null;
1541
1547
  /** Streaming state options */
1542
1548
  extractionStreamingOptions?: ExtractionStreamingOptions<FileData | null>;
1549
+ /** Default view mode for the file viewer. If 'preview', stays on preview even if extraction exists. */
1550
+ defaultView?: FileViewMode;
1543
1551
  }
1544
1552
  interface UploadJobsListProps$1 {
1545
1553
  /** Optional metadata to associate uploads with */
@@ -1548,7 +1556,7 @@ interface UploadJobsListProps$1 {
1548
1556
 
1549
1557
  declare function DataComponent({ extraction, onFieldPathChange, extractionDisplayOptions, continueButtonOptions, extractionStreamingOptions, }: DataComponentProps): react_jsx_runtime.JSX.Element;
1550
1558
 
1551
- declare function FileComponent({ extraction, fieldPath, extractionStreamingOptions, }: FileComponentProps): react_jsx_runtime.JSX.Element;
1559
+ declare function FileComponent({ extraction, fieldPath, extractionStreamingOptions, defaultView, }: FileComponentProps): react_jsx_runtime.JSX.Element;
1552
1560
 
1553
1561
  declare function ExtractionComponent({ extractionId, projectId, isNewExtraction, extractionDisplayOptions: { view, allowEditing, showReasoning, showTabs, }, continueButtonOptions: { onClick: onContinueButtonClick, label: continueButtonLabel, }, }: ExtractionComponentProps): react_jsx_runtime.JSX.Element;
1554
1562