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

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
@@ -30,6 +30,20 @@ interface ViewerProps {
30
30
  text: string;
31
31
  pageIndex: number;
32
32
  }) => void;
33
+ /** Controls which native PDF selections can be sent to the dictionary. */
34
+ defineSelectionMode?: "selection" | "single-word";
35
+ /** Called when the native TXT view selects a UTF-16 range. */
36
+ onTextRangeSelected?: (payload: {
37
+ text: string;
38
+ start: number;
39
+ end: number;
40
+ }) => void;
41
+ /** Called when Define is chosen for a native TXT range. */
42
+ onDefineTextSelection?: (payload: {
43
+ text: string;
44
+ start: number;
45
+ end: number;
46
+ }) => void;
33
47
  }
34
48
  declare const Viewer: React.FC<ViewerProps>;
35
49
 
@@ -121,6 +135,7 @@ interface SettingsSheetProps {
121
135
  engine: DocumentEngine;
122
136
  visible: boolean;
123
137
  onClose: () => void;
138
+ documentType?: DocumentType;
124
139
  }
125
140
  declare const SettingsSheet: React.FC<SettingsSheetProps>;
126
141
 
@@ -162,8 +177,9 @@ type NativePdfDocumentViewerProps = {
162
177
  text: string;
163
178
  pageIndex: number;
164
179
  }) => void;
180
+ defineSelectionMode?: "selection" | "single-word";
165
181
  };
166
- declare function NativePdfDocumentViewer({ engine, maxPageWidth, onTextSelected, onDefineSelection, }: NativePdfDocumentViewerProps): react_jsx_runtime.JSX.Element;
182
+ declare function NativePdfDocumentViewer({ engine, maxPageWidth, onTextSelected, onDefineSelection, defineSelectionMode, }: NativePdfDocumentViewerProps): react_jsx_runtime.JSX.Element;
167
183
 
168
184
  type OverflowSheetProps = {
169
185
  visible: boolean;
package/dist/index.d.ts CHANGED
@@ -30,6 +30,20 @@ interface ViewerProps {
30
30
  text: string;
31
31
  pageIndex: number;
32
32
  }) => void;
33
+ /** Controls which native PDF selections can be sent to the dictionary. */
34
+ defineSelectionMode?: "selection" | "single-word";
35
+ /** Called when the native TXT view selects a UTF-16 range. */
36
+ onTextRangeSelected?: (payload: {
37
+ text: string;
38
+ start: number;
39
+ end: number;
40
+ }) => void;
41
+ /** Called when Define is chosen for a native TXT range. */
42
+ onDefineTextSelection?: (payload: {
43
+ text: string;
44
+ start: number;
45
+ end: number;
46
+ }) => void;
33
47
  }
34
48
  declare const Viewer: React.FC<ViewerProps>;
35
49
 
@@ -121,6 +135,7 @@ interface SettingsSheetProps {
121
135
  engine: DocumentEngine;
122
136
  visible: boolean;
123
137
  onClose: () => void;
138
+ documentType?: DocumentType;
124
139
  }
125
140
  declare const SettingsSheet: React.FC<SettingsSheetProps>;
126
141
 
@@ -162,8 +177,9 @@ type NativePdfDocumentViewerProps = {
162
177
  text: string;
163
178
  pageIndex: number;
164
179
  }) => void;
180
+ defineSelectionMode?: "selection" | "single-word";
165
181
  };
166
- declare function NativePdfDocumentViewer({ engine, maxPageWidth, onTextSelected, onDefineSelection, }: NativePdfDocumentViewerProps): react_jsx_runtime.JSX.Element;
182
+ declare function NativePdfDocumentViewer({ engine, maxPageWidth, onTextSelected, onDefineSelection, defineSelectionMode, }: NativePdfDocumentViewerProps): react_jsx_runtime.JSX.Element;
167
183
 
168
184
  type OverflowSheetProps = {
169
185
  visible: boolean;