@papyrus-sdk/ui-react-native 0.2.35-beta.10 → 0.2.35-beta.11.epub.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Papyrus Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
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;