@embedpdf/snippet 1.0.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.
Files changed (294) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +90 -0
  3. package/dist/components/annotation-menu.d.ts +9 -0
  4. package/dist/components/annotation-menu.d.ts.map +1 -0
  5. package/dist/components/annotation-sidebar/common.d.ts +10 -0
  6. package/dist/components/annotation-sidebar/common.d.ts.map +1 -0
  7. package/dist/components/annotation-sidebar/empty-state.d.ts +7 -0
  8. package/dist/components/annotation-sidebar/empty-state.d.ts.map +1 -0
  9. package/dist/components/annotation-sidebar/free-text-sidebar.d.ts +5 -0
  10. package/dist/components/annotation-sidebar/free-text-sidebar.d.ts.map +1 -0
  11. package/dist/components/annotation-sidebar/ink-sidebar.d.ts +5 -0
  12. package/dist/components/annotation-sidebar/ink-sidebar.d.ts.map +1 -0
  13. package/dist/components/annotation-sidebar/line-sidebar.d.ts +5 -0
  14. package/dist/components/annotation-sidebar/line-sidebar.d.ts.map +1 -0
  15. package/dist/components/annotation-sidebar/polygon-sidebar.d.ts +5 -0
  16. package/dist/components/annotation-sidebar/polygon-sidebar.d.ts.map +1 -0
  17. package/dist/components/annotation-sidebar/registry.d.ts +19 -0
  18. package/dist/components/annotation-sidebar/registry.d.ts.map +1 -0
  19. package/dist/components/annotation-sidebar/shape-sidebar.d.ts +5 -0
  20. package/dist/components/annotation-sidebar/shape-sidebar.d.ts.map +1 -0
  21. package/dist/components/annotation-sidebar/stamp-sidebar.d.ts +5 -0
  22. package/dist/components/annotation-sidebar/stamp-sidebar.d.ts.map +1 -0
  23. package/dist/components/annotation-sidebar/text-markup-sidebar.d.ts +5 -0
  24. package/dist/components/annotation-sidebar/text-markup-sidebar.d.ts.map +1 -0
  25. package/dist/components/annotation-sidebar/ui.d.ts +72 -0
  26. package/dist/components/annotation-sidebar/ui.d.ts.map +1 -0
  27. package/dist/components/annotation-sidebar.d.ts +6 -0
  28. package/dist/components/annotation-sidebar.d.ts.map +1 -0
  29. package/dist/components/app.d.ts +108 -0
  30. package/dist/components/app.d.ts.map +1 -0
  31. package/dist/components/capture.d.ts +3 -0
  32. package/dist/components/capture.d.ts.map +1 -0
  33. package/dist/components/command-button.d.ts +15 -0
  34. package/dist/components/command-button.d.ts.map +1 -0
  35. package/dist/components/comment-sidebar/annotation-card.d.ts +14 -0
  36. package/dist/components/comment-sidebar/annotation-card.d.ts.map +1 -0
  37. package/dist/components/comment-sidebar/annotation-icon.d.ts +9 -0
  38. package/dist/components/comment-sidebar/annotation-icon.d.ts.map +1 -0
  39. package/dist/components/comment-sidebar/annotation-input.d.ts +10 -0
  40. package/dist/components/comment-sidebar/annotation-input.d.ts.map +1 -0
  41. package/dist/components/comment-sidebar/comment.d.ts +12 -0
  42. package/dist/components/comment-sidebar/comment.d.ts.map +1 -0
  43. package/dist/components/comment-sidebar/config.d.ts +15 -0
  44. package/dist/components/comment-sidebar/config.d.ts.map +1 -0
  45. package/dist/components/comment-sidebar/edit-comment-form.d.ts +11 -0
  46. package/dist/components/comment-sidebar/edit-comment-form.d.ts.map +1 -0
  47. package/dist/components/comment-sidebar/empty-state.d.ts +7 -0
  48. package/dist/components/comment-sidebar/empty-state.d.ts.map +1 -0
  49. package/dist/components/comment-sidebar/menu-dropdown.d.ts +10 -0
  50. package/dist/components/comment-sidebar/menu-dropdown.d.ts.map +1 -0
  51. package/dist/components/comment-sidebar/truncated-text.d.ts +10 -0
  52. package/dist/components/comment-sidebar/truncated-text.d.ts.map +1 -0
  53. package/dist/components/comment-sidebar/user-avatar.d.ts +8 -0
  54. package/dist/components/comment-sidebar/user-avatar.d.ts.map +1 -0
  55. package/dist/components/comment-sidebar.d.ts +6 -0
  56. package/dist/components/comment-sidebar.d.ts.map +1 -0
  57. package/dist/components/custom-zoom-toolbar.d.ts +24 -0
  58. package/dist/components/custom-zoom-toolbar.d.ts.map +1 -0
  59. package/dist/components/document-password-prompt.d.ts +8 -0
  60. package/dist/components/document-password-prompt.d.ts.map +1 -0
  61. package/dist/components/empty-state.d.ts +3 -0
  62. package/dist/components/empty-state.d.ts.map +1 -0
  63. package/dist/components/hint-layer.d.ts +3 -0
  64. package/dist/components/hint-layer.d.ts.map +1 -0
  65. package/dist/components/icons/alert-triangle.d.ts +4 -0
  66. package/dist/components/icons/alert-triangle.d.ts.map +1 -0
  67. package/dist/components/icons/align-bottom.d.ts +4 -0
  68. package/dist/components/icons/align-bottom.d.ts.map +1 -0
  69. package/dist/components/icons/align-center.d.ts +4 -0
  70. package/dist/components/icons/align-center.d.ts.map +1 -0
  71. package/dist/components/icons/align-left.d.ts +4 -0
  72. package/dist/components/icons/align-left.d.ts.map +1 -0
  73. package/dist/components/icons/align-middle.d.ts +4 -0
  74. package/dist/components/icons/align-middle.d.ts.map +1 -0
  75. package/dist/components/icons/align-right.d.ts +4 -0
  76. package/dist/components/icons/align-right.d.ts.map +1 -0
  77. package/dist/components/icons/align-top.d.ts +4 -0
  78. package/dist/components/icons/align-top.d.ts.map +1 -0
  79. package/dist/components/icons/arrow-back-up.d.ts +4 -0
  80. package/dist/components/icons/arrow-back-up.d.ts.map +1 -0
  81. package/dist/components/icons/arrow-forward-up.d.ts +4 -0
  82. package/dist/components/icons/arrow-forward-up.d.ts.map +1 -0
  83. package/dist/components/icons/bold.d.ts +4 -0
  84. package/dist/components/icons/bold.d.ts.map +1 -0
  85. package/dist/components/icons/book.d.ts +4 -0
  86. package/dist/components/icons/book.d.ts.map +1 -0
  87. package/dist/components/icons/book2.d.ts +4 -0
  88. package/dist/components/icons/book2.d.ts.map +1 -0
  89. package/dist/components/icons/check.d.ts +4 -0
  90. package/dist/components/icons/check.d.ts.map +1 -0
  91. package/dist/components/icons/chevron-down.d.ts +4 -0
  92. package/dist/components/icons/chevron-down.d.ts.map +1 -0
  93. package/dist/components/icons/chevron-left.d.ts +4 -0
  94. package/dist/components/icons/chevron-left.d.ts.map +1 -0
  95. package/dist/components/icons/chevron-right.d.ts +4 -0
  96. package/dist/components/icons/chevron-right.d.ts.map +1 -0
  97. package/dist/components/icons/circle.d.ts +4 -0
  98. package/dist/components/icons/circle.d.ts.map +1 -0
  99. package/dist/components/icons/comment.d.ts +4 -0
  100. package/dist/components/icons/comment.d.ts.map +1 -0
  101. package/dist/components/icons/copy.d.ts +4 -0
  102. package/dist/components/icons/copy.d.ts.map +1 -0
  103. package/dist/components/icons/device-floppy.d.ts +4 -0
  104. package/dist/components/icons/device-floppy.d.ts.map +1 -0
  105. package/dist/components/icons/dots.d.ts +4 -0
  106. package/dist/components/icons/dots.d.ts.map +1 -0
  107. package/dist/components/icons/double-page.d.ts +4 -0
  108. package/dist/components/icons/double-page.d.ts.map +1 -0
  109. package/dist/components/icons/download.d.ts +4 -0
  110. package/dist/components/icons/download.d.ts.map +1 -0
  111. package/dist/components/icons/file-import.d.ts +4 -0
  112. package/dist/components/icons/file-import.d.ts.map +1 -0
  113. package/dist/components/icons/file.d.ts +4 -0
  114. package/dist/components/icons/file.d.ts.map +1 -0
  115. package/dist/components/icons/fit-to-page.d.ts +4 -0
  116. package/dist/components/icons/fit-to-page.d.ts.map +1 -0
  117. package/dist/components/icons/fit-to-width.d.ts +4 -0
  118. package/dist/components/icons/fit-to-width.d.ts.map +1 -0
  119. package/dist/components/icons/fullscreen-exit.d.ts +4 -0
  120. package/dist/components/icons/fullscreen-exit.d.ts.map +1 -0
  121. package/dist/components/icons/fullscreen.d.ts +4 -0
  122. package/dist/components/icons/fullscreen.d.ts.map +1 -0
  123. package/dist/components/icons/hand.d.ts +4 -0
  124. package/dist/components/icons/hand.d.ts.map +1 -0
  125. package/dist/components/icons/highlight.d.ts +4 -0
  126. package/dist/components/icons/highlight.d.ts.map +1 -0
  127. package/dist/components/icons/horizontal.d.ts +4 -0
  128. package/dist/components/icons/horizontal.d.ts.map +1 -0
  129. package/dist/components/icons/index.d.ts +6 -0
  130. package/dist/components/icons/index.d.ts.map +1 -0
  131. package/dist/components/icons/italic.d.ts +4 -0
  132. package/dist/components/icons/italic.d.ts.map +1 -0
  133. package/dist/components/icons/line-arrow.d.ts +4 -0
  134. package/dist/components/icons/line-arrow.d.ts.map +1 -0
  135. package/dist/components/icons/line.d.ts +4 -0
  136. package/dist/components/icons/line.d.ts.map +1 -0
  137. package/dist/components/icons/list-tree.d.ts +4 -0
  138. package/dist/components/icons/list-tree.d.ts.map +1 -0
  139. package/dist/components/icons/lock.d.ts +4 -0
  140. package/dist/components/icons/lock.d.ts.map +1 -0
  141. package/dist/components/icons/menu.d.ts +4 -0
  142. package/dist/components/icons/menu.d.ts.map +1 -0
  143. package/dist/components/icons/palette.d.ts +4 -0
  144. package/dist/components/icons/palette.d.ts.map +1 -0
  145. package/dist/components/icons/paperclip.d.ts +4 -0
  146. package/dist/components/icons/paperclip.d.ts.map +1 -0
  147. package/dist/components/icons/pencil-marker.d.ts +4 -0
  148. package/dist/components/icons/pencil-marker.d.ts.map +1 -0
  149. package/dist/components/icons/photo.d.ts +4 -0
  150. package/dist/components/icons/photo.d.ts.map +1 -0
  151. package/dist/components/icons/plus.d.ts +4 -0
  152. package/dist/components/icons/plus.d.ts.map +1 -0
  153. package/dist/components/icons/pointer.d.ts +4 -0
  154. package/dist/components/icons/pointer.d.ts.map +1 -0
  155. package/dist/components/icons/polygon.d.ts +4 -0
  156. package/dist/components/icons/polygon.d.ts.map +1 -0
  157. package/dist/components/icons/print.d.ts +4 -0
  158. package/dist/components/icons/print.d.ts.map +1 -0
  159. package/dist/components/icons/redact-area.d.ts +4 -0
  160. package/dist/components/icons/redact-area.d.ts.map +1 -0
  161. package/dist/components/icons/redact.d.ts +4 -0
  162. package/dist/components/icons/redact.d.ts.map +1 -0
  163. package/dist/components/icons/rotate-clockwise.d.ts +4 -0
  164. package/dist/components/icons/rotate-clockwise.d.ts.map +1 -0
  165. package/dist/components/icons/rotate-counter-clockwise.d.ts +4 -0
  166. package/dist/components/icons/rotate-counter-clockwise.d.ts.map +1 -0
  167. package/dist/components/icons/save.d.ts +4 -0
  168. package/dist/components/icons/save.d.ts.map +1 -0
  169. package/dist/components/icons/screenshot.d.ts +4 -0
  170. package/dist/components/icons/screenshot.d.ts.map +1 -0
  171. package/dist/components/icons/search.d.ts +4 -0
  172. package/dist/components/icons/search.d.ts.map +1 -0
  173. package/dist/components/icons/settings.d.ts +4 -0
  174. package/dist/components/icons/settings.d.ts.map +1 -0
  175. package/dist/components/icons/sidebar.d.ts +4 -0
  176. package/dist/components/icons/sidebar.d.ts.map +1 -0
  177. package/dist/components/icons/single-page.d.ts +4 -0
  178. package/dist/components/icons/single-page.d.ts.map +1 -0
  179. package/dist/components/icons/square.d.ts +4 -0
  180. package/dist/components/icons/square.d.ts.map +1 -0
  181. package/dist/components/icons/squares.d.ts +4 -0
  182. package/dist/components/icons/squares.d.ts.map +1 -0
  183. package/dist/components/icons/squiggly.d.ts +4 -0
  184. package/dist/components/icons/squiggly.d.ts.map +1 -0
  185. package/dist/components/icons/strikethrough.d.ts +4 -0
  186. package/dist/components/icons/strikethrough.d.ts.map +1 -0
  187. package/dist/components/icons/text.d.ts +4 -0
  188. package/dist/components/icons/text.d.ts.map +1 -0
  189. package/dist/components/icons/trash.d.ts +4 -0
  190. package/dist/components/icons/trash.d.ts.map +1 -0
  191. package/dist/components/icons/types.d.ts +11 -0
  192. package/dist/components/icons/types.d.ts.map +1 -0
  193. package/dist/components/icons/underline.d.ts +4 -0
  194. package/dist/components/icons/underline.d.ts.map +1 -0
  195. package/dist/components/icons/vertical.d.ts +4 -0
  196. package/dist/components/icons/vertical.d.ts.map +1 -0
  197. package/dist/components/icons/view-settings.d.ts +4 -0
  198. package/dist/components/icons/view-settings.d.ts.map +1 -0
  199. package/dist/components/icons/x.d.ts +4 -0
  200. package/dist/components/icons/x.d.ts.map +1 -0
  201. package/dist/components/icons/zigzag.d.ts +4 -0
  202. package/dist/components/icons/zigzag.d.ts.map +1 -0
  203. package/dist/components/icons/zoom-in-area.d.ts +4 -0
  204. package/dist/components/icons/zoom-in-area.d.ts.map +1 -0
  205. package/dist/components/icons/zoom-in.d.ts +4 -0
  206. package/dist/components/icons/zoom-in.d.ts.map +1 -0
  207. package/dist/components/icons/zoom-out.d.ts +4 -0
  208. package/dist/components/icons/zoom-out.d.ts.map +1 -0
  209. package/dist/components/locale-switcher.d.ts +8 -0
  210. package/dist/components/locale-switcher.d.ts.map +1 -0
  211. package/dist/components/mode-select-button.d.ts +8 -0
  212. package/dist/components/mode-select-button.d.ts.map +1 -0
  213. package/dist/components/outline-sidebar.d.ts +7 -0
  214. package/dist/components/outline-sidebar.d.ts.map +1 -0
  215. package/dist/components/page-controls.d.ts +7 -0
  216. package/dist/components/page-controls.d.ts.map +1 -0
  217. package/dist/components/print-modal.d.ts +10 -0
  218. package/dist/components/print-modal.d.ts.map +1 -0
  219. package/dist/components/redaction-menu.d.ts +10 -0
  220. package/dist/components/redaction-menu.d.ts.map +1 -0
  221. package/dist/components/search-sidebar.d.ts +8 -0
  222. package/dist/components/search-sidebar.d.ts.map +1 -0
  223. package/dist/components/tab-bar.d.ts +14 -0
  224. package/dist/components/tab-bar.d.ts.map +1 -0
  225. package/dist/components/thumbnails-sidebar.d.ts +8 -0
  226. package/dist/components/thumbnails-sidebar.d.ts.map +1 -0
  227. package/dist/components/ui/button.d.ts +14 -0
  228. package/dist/components/ui/button.d.ts.map +1 -0
  229. package/dist/components/ui/checkbox.d.ts +9 -0
  230. package/dist/components/ui/checkbox.d.ts.map +1 -0
  231. package/dist/components/ui/dialog.d.ts +22 -0
  232. package/dist/components/ui/dialog.d.ts.map +1 -0
  233. package/dist/components/ui/dropdown.d.ts +23 -0
  234. package/dist/components/ui/dropdown.d.ts.map +1 -0
  235. package/dist/components/ui/icon.d.ts +20 -0
  236. package/dist/components/ui/icon.d.ts.map +1 -0
  237. package/dist/components/ui/loading-indicator.d.ts +17 -0
  238. package/dist/components/ui/loading-indicator.d.ts.map +1 -0
  239. package/dist/components/ui/tab-button.d.ts +12 -0
  240. package/dist/components/ui/tab-button.d.ts.map +1 -0
  241. package/dist/components/ui/toggle-button.d.ts +15 -0
  242. package/dist/components/ui/toggle-button.d.ts.map +1 -0
  243. package/dist/components/ui/tooltip.d.ts +14 -0
  244. package/dist/components/ui/tooltip.d.ts.map +1 -0
  245. package/dist/components/utils.d.ts +2 -0
  246. package/dist/components/utils.d.ts.map +1 -0
  247. package/dist/config/commands.d.ts +4 -0
  248. package/dist/config/commands.d.ts.map +1 -0
  249. package/dist/config/icon-registry.d.ts +116 -0
  250. package/dist/config/icon-registry.d.ts.map +1 -0
  251. package/dist/config/index.d.ts +6 -0
  252. package/dist/config/index.d.ts.map +1 -0
  253. package/dist/config/theme.d.ts +147 -0
  254. package/dist/config/theme.d.ts.map +1 -0
  255. package/dist/config/translations.d.ts +8 -0
  256. package/dist/config/translations.d.ts.map +1 -0
  257. package/dist/config/types.d.ts +32 -0
  258. package/dist/config/types.d.ts.map +1 -0
  259. package/dist/config/ui-schema.d.ts +9 -0
  260. package/dist/config/ui-schema.d.ts.map +1 -0
  261. package/dist/demo-annotations.pdf +0 -0
  262. package/dist/demo.pdf +0 -0
  263. package/dist/direct-engine-ce9b01ae.js +1 -0
  264. package/dist/ebook.pdf +0 -0
  265. package/dist/embedpdf-9ae31302.js +3 -0
  266. package/dist/embedpdf.d.ts +45 -0
  267. package/dist/embedpdf.d.ts.map +1 -0
  268. package/dist/embedpdf.js +1 -0
  269. package/dist/hooks/use-click-outside.d.ts +3 -0
  270. package/dist/hooks/use-click-outside.d.ts.map +1 -0
  271. package/dist/hooks/use-debounce.d.ts +2 -0
  272. package/dist/hooks/use-debounce.d.ts.map +1 -0
  273. package/dist/hooks/use-swipe-gesture.d.ts +5 -0
  274. package/dist/hooks/use-swipe-gesture.d.ts.map +1 -0
  275. package/dist/index.html +32 -0
  276. package/dist/pdfium.wasm +0 -0
  277. package/dist/ui/hooks/use-container-breakpoint.d.ts +10 -0
  278. package/dist/ui/hooks/use-container-breakpoint.d.ts.map +1 -0
  279. package/dist/ui/schema-menu.d.ts +9 -0
  280. package/dist/ui/schema-menu.d.ts.map +1 -0
  281. package/dist/ui/schema-modal.d.ts +17 -0
  282. package/dist/ui/schema-modal.d.ts.map +1 -0
  283. package/dist/ui/schema-overlay.d.ts +16 -0
  284. package/dist/ui/schema-overlay.d.ts.map +1 -0
  285. package/dist/ui/schema-selection-menu.d.ts +4 -0
  286. package/dist/ui/schema-selection-menu.d.ts.map +1 -0
  287. package/dist/ui/schema-sidebar.d.ts +9 -0
  288. package/dist/ui/schema-sidebar.d.ts.map +1 -0
  289. package/dist/ui/schema-toolbar.d.ts +13 -0
  290. package/dist/ui/schema-toolbar.d.ts.map +1 -0
  291. package/dist/web-components/container.d.ts +65 -0
  292. package/dist/web-components/container.d.ts.map +1 -0
  293. package/dist/worker-engine-892a0577.js +1 -0
  294. package/package.json +83 -0
@@ -0,0 +1,45 @@
1
+ import { EmbedPdfContainer } from './web-components/container';
2
+ import { PDFViewerConfig } from './components/app';
3
+ export { ViewportPlugin, type ViewportPluginConfig } from '@embedpdf/plugin-viewport/preact';
4
+ export { ScrollPlugin, ScrollStrategy, type ScrollPluginConfig, } from '@embedpdf/plugin-scroll/preact';
5
+ export { SpreadPlugin, SpreadMode, type SpreadPluginConfig } from '@embedpdf/plugin-spread/preact';
6
+ export { ZoomPlugin, ZoomMode, type ZoomPluginConfig } from '@embedpdf/plugin-zoom/preact';
7
+ export { RotatePlugin, type RotatePluginConfig } from '@embedpdf/plugin-rotate/preact';
8
+ export { TilingPlugin, type TilingPluginConfig } from '@embedpdf/plugin-tiling/preact';
9
+ export { ThumbnailPlugin, type ThumbnailPluginConfig } from '@embedpdf/plugin-thumbnail/preact';
10
+ export { AnnotationPlugin, type AnnotationPluginConfig } from '@embedpdf/plugin-annotation/preact';
11
+ export { SearchPlugin, type SearchPluginConfig } from '@embedpdf/plugin-search/preact';
12
+ export { SelectionPlugin, type SelectionPluginConfig } from '@embedpdf/plugin-selection/preact';
13
+ export { CapturePlugin, type CapturePluginConfig } from '@embedpdf/plugin-capture/preact';
14
+ export { RedactionPlugin, type RedactionPluginConfig } from '@embedpdf/plugin-redaction/preact';
15
+ export { UIPlugin, type UIPluginConfig } from '@embedpdf/plugin-ui/preact';
16
+ export { I18nPlugin, type I18nPluginConfig } from '@embedpdf/plugin-i18n/preact';
17
+ export { CommandsPlugin, type CommandsPluginConfig } from '@embedpdf/plugin-commands/preact';
18
+ export { DocumentManagerPlugin, type DocumentManagerPluginConfig, } from '@embedpdf/plugin-document-manager/preact';
19
+ export { PrintPlugin, type PrintPluginConfig } from '@embedpdf/plugin-print/preact';
20
+ export { FullscreenPlugin, type FullscreenPluginConfig } from '@embedpdf/plugin-fullscreen/preact';
21
+ export { BookmarkPlugin, type BookmarkPluginConfig } from '@embedpdf/plugin-bookmark/preact';
22
+ export { ExportPlugin, type ExportPluginConfig } from '@embedpdf/plugin-export/preact';
23
+ export { PanPlugin, type PanPluginConfig } from '@embedpdf/plugin-pan/preact';
24
+ export { HistoryPlugin, type HistoryPluginConfig } from '@embedpdf/plugin-history/preact';
25
+ export { AttachmentPlugin, type AttachmentPluginConfig } from '@embedpdf/plugin-attachment/preact';
26
+ export { RenderPlugin, type RenderPluginConfig } from '@embedpdf/plugin-render/preact';
27
+ export { InteractionManagerPlugin, type InteractionManagerPluginConfig, } from '@embedpdf/plugin-interaction-manager/preact';
28
+ export { Rotation } from '@embedpdf/models';
29
+ export type { PluginRegistry } from '@embedpdf/core';
30
+ export type { Theme, ThemeConfig, ThemeColors, ThemePreference, DeepPartial } from './config/theme';
31
+ export { lightTheme, darkTheme, createTheme } from './config/theme';
32
+ export type { IconConfig, IconsConfig, IconColor, IconPathConfig, CustomIconConfig, SimpleIconConfig, } from './config/icon-registry';
33
+ export { registerIcon, registerIcons } from './config/icon-registry';
34
+ export { EmbedPdfContainer };
35
+ export type { PDFViewerConfig };
36
+ export type { TabBarVisibility } from './components/tab-bar';
37
+ type ContainerConfig = PDFViewerConfig & {
38
+ type: 'container';
39
+ target: Element;
40
+ };
41
+ declare const _default: {
42
+ init: (config: ContainerConfig) => EmbedPdfContainer | undefined;
43
+ };
44
+ export default _default;
45
+ //# sourceMappingURL=embedpdf.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"embedpdf.d.ts","sourceRoot":"","sources":["../src/embedpdf.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1 @@
1
+ export{X as AnnotationPlugin,ab as AttachmentPlugin,a7 as BookmarkPlugin,$ as CapturePlugin,a3 as CommandsPlugin,a4 as DocumentManagerPlugin,H as EmbedPdfContainer,a8 as ExportPlugin,a6 as FullscreenPlugin,aa as HistoryPlugin,a2 as I18nPlugin,ad as InteractionManagerPlugin,a9 as PanPlugin,a5 as PrintPlugin,a0 as RedactionPlugin,ac as RenderPlugin,Q as RotatePlugin,R as Rotation,S as ScrollPlugin,J as ScrollStrategy,Y as SearchPlugin,_ as SelectionPlugin,L as SpreadMode,K as SpreadPlugin,W as ThumbnailPlugin,U as TilingPlugin,a1 as UIPlugin,V as ViewportPlugin,O as ZoomMode,Z as ZoomPlugin,ag as createTheme,af as darkTheme,I as default,ae as lightTheme,ah as registerIcon,ai as registerIcons}from"./embedpdf-9ae31302.js";
@@ -0,0 +1,3 @@
1
+ import { RefObject } from 'preact';
2
+ export declare const useClickOutside: (ref: RefObject<HTMLElement>, handler: () => void) => void;
3
+ //# sourceMappingURL=use-click-outside.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-click-outside.d.ts","sourceRoot":"","sources":["../../src/hooks/use-click-outside.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAGnC,eAAO,MAAM,eAAe,GAAI,KAAK,SAAS,CAAC,WAAW,CAAC,EAAE,SAAS,MAAM,IAAI,SAc/E,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function useDebounce<T>(value: T, delay?: number): T;
2
+ //# sourceMappingURL=use-debounce.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-debounce.d.ts","sourceRoot":"","sources":["../../src/hooks/use-debounce.ts"],"names":[],"mappings":"AAEA,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,SAAM,GAAG,CAAC,CASvD"}
@@ -0,0 +1,5 @@
1
+ export declare const useSwipeGesture: (isOpen: boolean) => {
2
+ elementRef: import("preact").RefObject<HTMLDivElement>;
3
+ isFullscreen: boolean;
4
+ };
5
+ //# sourceMappingURL=use-swipe-gesture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-swipe-gesture.d.ts","sourceRoot":"","sources":["../../src/hooks/use-swipe-gesture.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,GAAI,QAAQ,OAAO;;;CA8E9C,CAAC"}
@@ -0,0 +1,32 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>EmbedPDF</title>
7
+ <style>
8
+ html, body { overscroll-behavior: none; }
9
+ body {
10
+ margin: 0;
11
+ padding: 0;
12
+ }
13
+ </style>
14
+ </head>
15
+ <body>
16
+ <div id="pdf-viewer" style="height: 100dvh"></div>
17
+ <script async type="module">
18
+ import EmbedPDF from './embedpdf.js';
19
+
20
+ const viewer = EmbedPDF.init({
21
+ type: 'container',
22
+ target: document.getElementById('pdf-viewer'),
23
+ src: 'https://snippet.embedpdf.com/ebook.pdf',
24
+ worker: true,
25
+ tabBar: 'always',
26
+ theme: {
27
+ preference: 'system'
28
+ }
29
+ })
30
+ </script>
31
+ </body>
32
+ </html>
Binary file
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Hook to detect if container width is below a breakpoint
3
+ * Uses synchronous initial measurement to prevent flicker
4
+ *
5
+ * @param getContainer - Function to get the container element
6
+ * @param breakpoint - Width breakpoint in pixels (default: 768)
7
+ * @returns Whether the container is below the breakpoint (mobile)
8
+ */
9
+ export declare function useContainerBreakpoint(getContainer: () => HTMLElement | null, breakpoint?: number): boolean;
10
+ //# sourceMappingURL=use-container-breakpoint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-container-breakpoint.d.ts","sourceRoot":"","sources":["../../../src/ui/hooks/use-container-breakpoint.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,YAAY,EAAE,MAAM,WAAW,GAAG,IAAI,EACtC,UAAU,GAAE,MAAY,GACvB,OAAO,CAyBT"}
@@ -0,0 +1,9 @@
1
+ import { MenuRendererProps } from '@embedpdf/plugin-ui/preact';
2
+ /**
3
+ * Schema-driven Menu Renderer for Preact
4
+ *
5
+ * Desktop: Positioned dropdown menu
6
+ * Mobile: Bottom sheet with drag-to-dismiss
7
+ */
8
+ export declare function SchemaMenu({ schema, documentId, anchorEl, onClose }: MenuRendererProps): import("preact").VNode<any> | null;
9
+ //# sourceMappingURL=schema-menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-menu.d.ts","sourceRoot":"","sources":["../../src/ui/schema-menu.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,iBAAiB,EAMlB,MAAM,4BAA4B,CAAC;AAyBpC;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,iBAAiB,sCAiEtF"}
@@ -0,0 +1,17 @@
1
+ import { h } from 'preact';
2
+ import { ModalSchema } from '@embedpdf/plugin-ui';
3
+ export interface ModalRendererProps {
4
+ schema: ModalSchema;
5
+ documentId: string;
6
+ isOpen: boolean;
7
+ onClose: () => void;
8
+ onExited: () => void;
9
+ }
10
+ /**
11
+ * Schema-driven Modal Renderer for Preact
12
+ *
13
+ * Renders modals defined in the UI schema.
14
+ * Supports animation lifecycle via isOpen and onExited props.
15
+ */
16
+ export declare function SchemaModal({ schema, documentId, isOpen, onClose, onExited }: ModalRendererProps): h.JSX.Element | null;
17
+ //# sourceMappingURL=schema-modal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-modal.d.ts","sourceRoot":"","sources":["../../src/ui/schema-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAY,MAAM,QAAQ,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlD,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,WAAW,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,kBAAkB,wBAkBhG"}
@@ -0,0 +1,16 @@
1
+ import { h } from 'preact';
2
+ import { OverlaySchema } from '@embedpdf/plugin-ui';
3
+ export interface OverlayRendererProps {
4
+ schema: OverlaySchema;
5
+ documentId: string;
6
+ className?: string;
7
+ }
8
+ /**
9
+ * Schema-driven Overlay Renderer for Preact
10
+ *
11
+ * Renders overlays defined in the UI schema.
12
+ * Overlays are floating components positioned over document content.
13
+ * The actual visibility logic (scroll-based, hover, etc.) is handled by the custom component.
14
+ */
15
+ export declare function SchemaOverlay({ schema, documentId, className }: OverlayRendererProps): h.JSX.Element;
16
+ //# sourceMappingURL=schema-overlay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-overlay.d.ts","sourceRoot":"","sources":["../../src/ui/schema-overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAiB,MAAM,qBAAqB,CAAC;AAGnE,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,aAAa,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAuCD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE,oBAAoB,iBAgBpF"}
@@ -0,0 +1,4 @@
1
+ import { h } from 'preact';
2
+ import { SelectionMenuRendererProps } from '@embedpdf/plugin-ui/preact';
3
+ export declare function SchemaSelectionMenu({ schema, documentId, props }: SelectionMenuRendererProps): h.JSX.Element;
4
+ //# sourceMappingURL=schema-selection-menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-selection-menu.d.ts","sourceRoot":"","sources":["../../src/ui/schema-selection-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAiB,MAAM,QAAQ,CAAC;AAC1C,OAAO,EACL,0BAA0B,EAI3B,MAAM,4BAA4B,CAAC;AAGpC,wBAAgB,mBAAmB,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE,0BAA0B,iBAqC5F"}
@@ -0,0 +1,9 @@
1
+ import { SidebarRendererProps } from '@embedpdf/plugin-ui/preact';
2
+ /**
3
+ * Schema-driven Sidebar Renderer for Preact
4
+ *
5
+ * On large containers: Traditional sidebar (left/right)
6
+ * On small containers: Bottom drawer with drag-to-resize
7
+ */
8
+ export declare function SchemaSidebar({ schema, documentId, isOpen, onClose }: SidebarRendererProps): import("preact").VNode<any> | null;
9
+ //# sourceMappingURL=schema-sidebar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-sidebar.d.ts","sourceRoot":"","sources":["../../src/ui/schema-sidebar.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAmC,MAAM,4BAA4B,CAAC;AAuBnG;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,oBAAoB,sCA2E1F"}
@@ -0,0 +1,13 @@
1
+ import { h } from 'preact';
2
+ import { ToolbarRendererProps } from '@embedpdf/plugin-ui/preact';
3
+ /**
4
+ * Schema-driven Toolbar Renderer for Preact
5
+ *
6
+ * Renders a toolbar based on a ToolbarSchema definition from the UI plugin.
7
+ *
8
+ * Visibility is controlled entirely by CSS:
9
+ * - Responsive: Container queries based on data-ui-item attribute
10
+ * - Categories: data-categories attribute matched against data-disabled-categories on root
11
+ */
12
+ export declare function SchemaToolbar({ schema, documentId, isOpen, className, }: ToolbarRendererProps): h.JSX.Element | null;
13
+ //# sourceMappingURL=schema-toolbar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-toolbar.d.ts","sourceRoot":"","sources":["../../src/ui/schema-toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAY,MAAM,QAAQ,CAAC;AACrC,OAAO,EAEL,oBAAoB,EAIrB,MAAM,4BAA4B,CAAC;AAUpC;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,UAAU,EACV,MAAM,EACN,SAAc,GACf,EAAE,oBAAoB,wBAmBtB"}
@@ -0,0 +1,65 @@
1
+ import { PDFViewerConfig } from '@/components/app';
2
+ import { PluginRegistry } from '@embedpdf/core';
3
+ import { ThemeConfig, ThemePreference, Theme } from '@/config/theme';
4
+ import { IconConfig, IconsConfig } from '@/config/icon-registry';
5
+ export declare class EmbedPdfContainer extends HTMLElement {
6
+ private root;
7
+ private _config?;
8
+ private _registryPromise;
9
+ private _resolveRegistry;
10
+ private themeStyleEl;
11
+ private systemPreferenceCleanup;
12
+ constructor();
13
+ connectedCallback(): void;
14
+ disconnectedCallback(): void;
15
+ /**
16
+ * Parse theme from HTML attribute
17
+ */
18
+ private parseThemeAttribute;
19
+ set config(newConfig: PDFViewerConfig);
20
+ get config(): PDFViewerConfig | undefined;
21
+ get registry(): Promise<PluginRegistry>;
22
+ /**
23
+ * Gets the current theme preference
24
+ */
25
+ get themePreference(): ThemePreference;
26
+ /**
27
+ * Gets the currently active (resolved) color scheme
28
+ */
29
+ get activeColorScheme(): 'light' | 'dark';
30
+ /**
31
+ * Gets the currently active theme object
32
+ */
33
+ get activeTheme(): Theme;
34
+ /**
35
+ * Resolves the active theme based on config and system preference
36
+ */
37
+ private resolveActiveTheme;
38
+ /**
39
+ * Sets up theme injection and system preference listener
40
+ */
41
+ private setupTheme;
42
+ /**
43
+ * Injects the theme CSS into the shadow root
44
+ */
45
+ private injectTheme;
46
+ /**
47
+ * Updates the theme at runtime
48
+ * @param theme - New theme configuration or simple preference
49
+ */
50
+ setTheme(theme: ThemeConfig | ThemePreference): void;
51
+ /**
52
+ * Registers a custom icon
53
+ * @param name - Unique icon name
54
+ * @param config - Icon configuration
55
+ */
56
+ registerIcon(name: string, config: IconConfig): void;
57
+ /**
58
+ * Registers multiple custom icons
59
+ * @param icons - Map of icon name to configuration
60
+ */
61
+ registerIcons(icons: IconsConfig): void;
62
+ private handleRegistryReady;
63
+ renderViewer(): void;
64
+ }
65
+ //# sourceMappingURL=container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../src/web-components/container.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EACL,WAAW,EACX,eAAe,EACf,KAAK,EAON,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,UAAU,EACV,WAAW,EAGZ,MAAM,wBAAwB,CAAC;AAEhC,qBAAa,iBAAkB,SAAQ,WAAW;IAChD,OAAO,CAAC,IAAI,CAAa;IACzB,OAAO,CAAC,OAAO,CAAC,CAAkB;IAClC,OAAO,CAAC,gBAAgB,CAA0B;IAClD,OAAO,CAAC,gBAAgB,CAAqD;IAC7E,OAAO,CAAC,YAAY,CAAiC;IACrD,OAAO,CAAC,uBAAuB,CAA6B;;IAY5D,iBAAiB;IAcjB,oBAAoB;IAMpB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAa3B,IAAI,MAAM,CAAC,SAAS,EAAE,eAAe,EAYpC;IAGD,IAAI,MAAM,IAAI,eAAe,GAAG,SAAS,CAExC;IAGD,IAAI,QAAQ,IAAI,OAAO,CAAC,cAAc,CAAC,CAEtC;IAED;;OAEG;IACH,IAAI,eAAe,IAAI,eAAe,CAErC;IAED;;OAEG;IACH,IAAI,iBAAiB,IAAI,OAAO,GAAG,MAAM,CAExC;IAED;;OAEG;IACH,IAAI,WAAW,IAAI,KAAK,CAEvB;IAED;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAY1B;;OAEG;IACH,OAAO,CAAC,UAAU;IA4BlB;;OAEG;IACH,OAAO,CAAC,WAAW;IAsBnB;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,WAAW,GAAG,eAAe;IAwB7C;;;;OAIG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU;IAI7C;;;OAGG;IACH,aAAa,CAAC,KAAK,EAAE,WAAW;IAKhC,OAAO,CAAC,mBAAmB,CAKzB;IAEF,YAAY;CAUb"}