@papyrus-sdk/ui-react-native 0.2.35-beta.9 → 0.2.35

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
@@ -5,6 +5,7 @@ import { PapyrusPageViewProps } from '@papyrus-sdk/engine-native';
5
5
  import { StyleProp, ViewStyle } from 'react-native';
6
6
 
7
7
  interface ViewerProps {
8
+ documentType?: string;
8
9
  engine: DocumentEngine;
9
10
  /** Stable file identity, never the native engine/session ID. */
10
11
  documentId?: string;
@@ -103,6 +104,7 @@ declare const _default: React.NamedExoticComponent<PageRendererProps>;
103
104
 
104
105
  interface TopbarProps {
105
106
  engine: DocumentEngine;
107
+ documentType?: string;
106
108
  onOpenSettings?: () => void;
107
109
  onOpenOverflow?: () => void;
108
110
  title?: string;
@@ -124,12 +126,17 @@ interface RightSheetProps {
124
126
  }
125
127
  declare const RightSheet: React.FC<RightSheetProps>;
126
128
 
127
- declare const AnnotationEditor: React.FC;
129
+ declare const AnnotationEditor: React.FC<{
130
+ documentId?: string;
131
+ }>;
128
132
 
129
133
  type BottomBarProps = {
130
134
  documentType: DocumentType;
131
135
  onOpenInfo: () => void;
132
136
  onOpenSettings: () => void;
137
+ onTurnPage?: (direction: -1 | 1) => void;
138
+ onNavigateToPage?: (page: number) => void;
139
+ onOpenPages?: () => void;
133
140
  onOpenDestination?: (destination: MobilePrimaryDestination) => void;
134
141
  };
135
142
  declare const BottomBar: React.FC<BottomBarProps>;
@@ -139,6 +146,7 @@ interface SettingsSheetProps {
139
146
  visible: boolean;
140
147
  onClose: () => void;
141
148
  documentType?: DocumentType;
149
+ onOpenInfo?: () => void;
142
150
  }
143
151
  declare const SettingsSheet: React.FC<SettingsSheetProps>;
144
152
 
@@ -208,12 +216,14 @@ declare function DocumentActionsSheet({ visible, onClose, }: DocumentActionsShee
208
216
 
209
217
  type ProgressPillProps = {
210
218
  documentType: DocumentType;
219
+ navigationInDock?: boolean;
211
220
  onPress: () => void;
212
221
  onOpenPageJump?: () => void;
213
222
  onNavigateToPage?: (page: number) => void;
223
+ onTurnPage?: (direction: -1 | 1) => void;
214
224
  onScrubbingChange?: (active: boolean) => void;
215
225
  };
216
- declare function ProgressPill({ documentType, onPress, onOpenPageJump, onNavigateToPage, onScrubbingChange, }: ProgressPillProps): react_jsx_runtime.JSX.Element;
226
+ declare function ProgressPill({ documentType, navigationInDock, onPress, onOpenPageJump, onNavigateToPage, onTurnPage, onScrubbingChange, }: ProgressPillProps): react_jsx_runtime.JSX.Element;
217
227
 
218
228
  type SearchOverlayProps = {
219
229
  engine: DocumentEngine;
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ import { PapyrusPageViewProps } from '@papyrus-sdk/engine-native';
5
5
  import { StyleProp, ViewStyle } from 'react-native';
6
6
 
7
7
  interface ViewerProps {
8
+ documentType?: string;
8
9
  engine: DocumentEngine;
9
10
  /** Stable file identity, never the native engine/session ID. */
10
11
  documentId?: string;
@@ -103,6 +104,7 @@ declare const _default: React.NamedExoticComponent<PageRendererProps>;
103
104
 
104
105
  interface TopbarProps {
105
106
  engine: DocumentEngine;
107
+ documentType?: string;
106
108
  onOpenSettings?: () => void;
107
109
  onOpenOverflow?: () => void;
108
110
  title?: string;
@@ -124,12 +126,17 @@ interface RightSheetProps {
124
126
  }
125
127
  declare const RightSheet: React.FC<RightSheetProps>;
126
128
 
127
- declare const AnnotationEditor: React.FC;
129
+ declare const AnnotationEditor: React.FC<{
130
+ documentId?: string;
131
+ }>;
128
132
 
129
133
  type BottomBarProps = {
130
134
  documentType: DocumentType;
131
135
  onOpenInfo: () => void;
132
136
  onOpenSettings: () => void;
137
+ onTurnPage?: (direction: -1 | 1) => void;
138
+ onNavigateToPage?: (page: number) => void;
139
+ onOpenPages?: () => void;
133
140
  onOpenDestination?: (destination: MobilePrimaryDestination) => void;
134
141
  };
135
142
  declare const BottomBar: React.FC<BottomBarProps>;
@@ -139,6 +146,7 @@ interface SettingsSheetProps {
139
146
  visible: boolean;
140
147
  onClose: () => void;
141
148
  documentType?: DocumentType;
149
+ onOpenInfo?: () => void;
142
150
  }
143
151
  declare const SettingsSheet: React.FC<SettingsSheetProps>;
144
152
 
@@ -208,12 +216,14 @@ declare function DocumentActionsSheet({ visible, onClose, }: DocumentActionsShee
208
216
 
209
217
  type ProgressPillProps = {
210
218
  documentType: DocumentType;
219
+ navigationInDock?: boolean;
211
220
  onPress: () => void;
212
221
  onOpenPageJump?: () => void;
213
222
  onNavigateToPage?: (page: number) => void;
223
+ onTurnPage?: (direction: -1 | 1) => void;
214
224
  onScrubbingChange?: (active: boolean) => void;
215
225
  };
216
- declare function ProgressPill({ documentType, onPress, onOpenPageJump, onNavigateToPage, onScrubbingChange, }: ProgressPillProps): react_jsx_runtime.JSX.Element;
226
+ declare function ProgressPill({ documentType, navigationInDock, onPress, onOpenPageJump, onNavigateToPage, onTurnPage, onScrubbingChange, }: ProgressPillProps): react_jsx_runtime.JSX.Element;
217
227
 
218
228
  type SearchOverlayProps = {
219
229
  engine: DocumentEngine;