@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.
- package/LICENSE +21 -0
- package/README.md +90 -0
- package/dist/components/annotation-menu.d.ts +9 -0
- package/dist/components/annotation-menu.d.ts.map +1 -0
- package/dist/components/annotation-sidebar/common.d.ts +10 -0
- package/dist/components/annotation-sidebar/common.d.ts.map +1 -0
- package/dist/components/annotation-sidebar/empty-state.d.ts +7 -0
- package/dist/components/annotation-sidebar/empty-state.d.ts.map +1 -0
- package/dist/components/annotation-sidebar/free-text-sidebar.d.ts +5 -0
- package/dist/components/annotation-sidebar/free-text-sidebar.d.ts.map +1 -0
- package/dist/components/annotation-sidebar/ink-sidebar.d.ts +5 -0
- package/dist/components/annotation-sidebar/ink-sidebar.d.ts.map +1 -0
- package/dist/components/annotation-sidebar/line-sidebar.d.ts +5 -0
- package/dist/components/annotation-sidebar/line-sidebar.d.ts.map +1 -0
- package/dist/components/annotation-sidebar/polygon-sidebar.d.ts +5 -0
- package/dist/components/annotation-sidebar/polygon-sidebar.d.ts.map +1 -0
- package/dist/components/annotation-sidebar/registry.d.ts +19 -0
- package/dist/components/annotation-sidebar/registry.d.ts.map +1 -0
- package/dist/components/annotation-sidebar/shape-sidebar.d.ts +5 -0
- package/dist/components/annotation-sidebar/shape-sidebar.d.ts.map +1 -0
- package/dist/components/annotation-sidebar/stamp-sidebar.d.ts +5 -0
- package/dist/components/annotation-sidebar/stamp-sidebar.d.ts.map +1 -0
- package/dist/components/annotation-sidebar/text-markup-sidebar.d.ts +5 -0
- package/dist/components/annotation-sidebar/text-markup-sidebar.d.ts.map +1 -0
- package/dist/components/annotation-sidebar/ui.d.ts +72 -0
- package/dist/components/annotation-sidebar/ui.d.ts.map +1 -0
- package/dist/components/annotation-sidebar.d.ts +6 -0
- package/dist/components/annotation-sidebar.d.ts.map +1 -0
- package/dist/components/app.d.ts +108 -0
- package/dist/components/app.d.ts.map +1 -0
- package/dist/components/capture.d.ts +3 -0
- package/dist/components/capture.d.ts.map +1 -0
- package/dist/components/command-button.d.ts +15 -0
- package/dist/components/command-button.d.ts.map +1 -0
- package/dist/components/comment-sidebar/annotation-card.d.ts +14 -0
- package/dist/components/comment-sidebar/annotation-card.d.ts.map +1 -0
- package/dist/components/comment-sidebar/annotation-icon.d.ts +9 -0
- package/dist/components/comment-sidebar/annotation-icon.d.ts.map +1 -0
- package/dist/components/comment-sidebar/annotation-input.d.ts +10 -0
- package/dist/components/comment-sidebar/annotation-input.d.ts.map +1 -0
- package/dist/components/comment-sidebar/comment.d.ts +12 -0
- package/dist/components/comment-sidebar/comment.d.ts.map +1 -0
- package/dist/components/comment-sidebar/config.d.ts +15 -0
- package/dist/components/comment-sidebar/config.d.ts.map +1 -0
- package/dist/components/comment-sidebar/edit-comment-form.d.ts +11 -0
- package/dist/components/comment-sidebar/edit-comment-form.d.ts.map +1 -0
- package/dist/components/comment-sidebar/empty-state.d.ts +7 -0
- package/dist/components/comment-sidebar/empty-state.d.ts.map +1 -0
- package/dist/components/comment-sidebar/menu-dropdown.d.ts +10 -0
- package/dist/components/comment-sidebar/menu-dropdown.d.ts.map +1 -0
- package/dist/components/comment-sidebar/truncated-text.d.ts +10 -0
- package/dist/components/comment-sidebar/truncated-text.d.ts.map +1 -0
- package/dist/components/comment-sidebar/user-avatar.d.ts +8 -0
- package/dist/components/comment-sidebar/user-avatar.d.ts.map +1 -0
- package/dist/components/comment-sidebar.d.ts +6 -0
- package/dist/components/comment-sidebar.d.ts.map +1 -0
- package/dist/components/custom-zoom-toolbar.d.ts +24 -0
- package/dist/components/custom-zoom-toolbar.d.ts.map +1 -0
- package/dist/components/document-password-prompt.d.ts +8 -0
- package/dist/components/document-password-prompt.d.ts.map +1 -0
- package/dist/components/empty-state.d.ts +3 -0
- package/dist/components/empty-state.d.ts.map +1 -0
- package/dist/components/hint-layer.d.ts +3 -0
- package/dist/components/hint-layer.d.ts.map +1 -0
- package/dist/components/icons/alert-triangle.d.ts +4 -0
- package/dist/components/icons/alert-triangle.d.ts.map +1 -0
- package/dist/components/icons/align-bottom.d.ts +4 -0
- package/dist/components/icons/align-bottom.d.ts.map +1 -0
- package/dist/components/icons/align-center.d.ts +4 -0
- package/dist/components/icons/align-center.d.ts.map +1 -0
- package/dist/components/icons/align-left.d.ts +4 -0
- package/dist/components/icons/align-left.d.ts.map +1 -0
- package/dist/components/icons/align-middle.d.ts +4 -0
- package/dist/components/icons/align-middle.d.ts.map +1 -0
- package/dist/components/icons/align-right.d.ts +4 -0
- package/dist/components/icons/align-right.d.ts.map +1 -0
- package/dist/components/icons/align-top.d.ts +4 -0
- package/dist/components/icons/align-top.d.ts.map +1 -0
- package/dist/components/icons/arrow-back-up.d.ts +4 -0
- package/dist/components/icons/arrow-back-up.d.ts.map +1 -0
- package/dist/components/icons/arrow-forward-up.d.ts +4 -0
- package/dist/components/icons/arrow-forward-up.d.ts.map +1 -0
- package/dist/components/icons/bold.d.ts +4 -0
- package/dist/components/icons/bold.d.ts.map +1 -0
- package/dist/components/icons/book.d.ts +4 -0
- package/dist/components/icons/book.d.ts.map +1 -0
- package/dist/components/icons/book2.d.ts +4 -0
- package/dist/components/icons/book2.d.ts.map +1 -0
- package/dist/components/icons/check.d.ts +4 -0
- package/dist/components/icons/check.d.ts.map +1 -0
- package/dist/components/icons/chevron-down.d.ts +4 -0
- package/dist/components/icons/chevron-down.d.ts.map +1 -0
- package/dist/components/icons/chevron-left.d.ts +4 -0
- package/dist/components/icons/chevron-left.d.ts.map +1 -0
- package/dist/components/icons/chevron-right.d.ts +4 -0
- package/dist/components/icons/chevron-right.d.ts.map +1 -0
- package/dist/components/icons/circle.d.ts +4 -0
- package/dist/components/icons/circle.d.ts.map +1 -0
- package/dist/components/icons/comment.d.ts +4 -0
- package/dist/components/icons/comment.d.ts.map +1 -0
- package/dist/components/icons/copy.d.ts +4 -0
- package/dist/components/icons/copy.d.ts.map +1 -0
- package/dist/components/icons/device-floppy.d.ts +4 -0
- package/dist/components/icons/device-floppy.d.ts.map +1 -0
- package/dist/components/icons/dots.d.ts +4 -0
- package/dist/components/icons/dots.d.ts.map +1 -0
- package/dist/components/icons/double-page.d.ts +4 -0
- package/dist/components/icons/double-page.d.ts.map +1 -0
- package/dist/components/icons/download.d.ts +4 -0
- package/dist/components/icons/download.d.ts.map +1 -0
- package/dist/components/icons/file-import.d.ts +4 -0
- package/dist/components/icons/file-import.d.ts.map +1 -0
- package/dist/components/icons/file.d.ts +4 -0
- package/dist/components/icons/file.d.ts.map +1 -0
- package/dist/components/icons/fit-to-page.d.ts +4 -0
- package/dist/components/icons/fit-to-page.d.ts.map +1 -0
- package/dist/components/icons/fit-to-width.d.ts +4 -0
- package/dist/components/icons/fit-to-width.d.ts.map +1 -0
- package/dist/components/icons/fullscreen-exit.d.ts +4 -0
- package/dist/components/icons/fullscreen-exit.d.ts.map +1 -0
- package/dist/components/icons/fullscreen.d.ts +4 -0
- package/dist/components/icons/fullscreen.d.ts.map +1 -0
- package/dist/components/icons/hand.d.ts +4 -0
- package/dist/components/icons/hand.d.ts.map +1 -0
- package/dist/components/icons/highlight.d.ts +4 -0
- package/dist/components/icons/highlight.d.ts.map +1 -0
- package/dist/components/icons/horizontal.d.ts +4 -0
- package/dist/components/icons/horizontal.d.ts.map +1 -0
- package/dist/components/icons/index.d.ts +6 -0
- package/dist/components/icons/index.d.ts.map +1 -0
- package/dist/components/icons/italic.d.ts +4 -0
- package/dist/components/icons/italic.d.ts.map +1 -0
- package/dist/components/icons/line-arrow.d.ts +4 -0
- package/dist/components/icons/line-arrow.d.ts.map +1 -0
- package/dist/components/icons/line.d.ts +4 -0
- package/dist/components/icons/line.d.ts.map +1 -0
- package/dist/components/icons/list-tree.d.ts +4 -0
- package/dist/components/icons/list-tree.d.ts.map +1 -0
- package/dist/components/icons/lock.d.ts +4 -0
- package/dist/components/icons/lock.d.ts.map +1 -0
- package/dist/components/icons/menu.d.ts +4 -0
- package/dist/components/icons/menu.d.ts.map +1 -0
- package/dist/components/icons/palette.d.ts +4 -0
- package/dist/components/icons/palette.d.ts.map +1 -0
- package/dist/components/icons/paperclip.d.ts +4 -0
- package/dist/components/icons/paperclip.d.ts.map +1 -0
- package/dist/components/icons/pencil-marker.d.ts +4 -0
- package/dist/components/icons/pencil-marker.d.ts.map +1 -0
- package/dist/components/icons/photo.d.ts +4 -0
- package/dist/components/icons/photo.d.ts.map +1 -0
- package/dist/components/icons/plus.d.ts +4 -0
- package/dist/components/icons/plus.d.ts.map +1 -0
- package/dist/components/icons/pointer.d.ts +4 -0
- package/dist/components/icons/pointer.d.ts.map +1 -0
- package/dist/components/icons/polygon.d.ts +4 -0
- package/dist/components/icons/polygon.d.ts.map +1 -0
- package/dist/components/icons/print.d.ts +4 -0
- package/dist/components/icons/print.d.ts.map +1 -0
- package/dist/components/icons/redact-area.d.ts +4 -0
- package/dist/components/icons/redact-area.d.ts.map +1 -0
- package/dist/components/icons/redact.d.ts +4 -0
- package/dist/components/icons/redact.d.ts.map +1 -0
- package/dist/components/icons/rotate-clockwise.d.ts +4 -0
- package/dist/components/icons/rotate-clockwise.d.ts.map +1 -0
- package/dist/components/icons/rotate-counter-clockwise.d.ts +4 -0
- package/dist/components/icons/rotate-counter-clockwise.d.ts.map +1 -0
- package/dist/components/icons/save.d.ts +4 -0
- package/dist/components/icons/save.d.ts.map +1 -0
- package/dist/components/icons/screenshot.d.ts +4 -0
- package/dist/components/icons/screenshot.d.ts.map +1 -0
- package/dist/components/icons/search.d.ts +4 -0
- package/dist/components/icons/search.d.ts.map +1 -0
- package/dist/components/icons/settings.d.ts +4 -0
- package/dist/components/icons/settings.d.ts.map +1 -0
- package/dist/components/icons/sidebar.d.ts +4 -0
- package/dist/components/icons/sidebar.d.ts.map +1 -0
- package/dist/components/icons/single-page.d.ts +4 -0
- package/dist/components/icons/single-page.d.ts.map +1 -0
- package/dist/components/icons/square.d.ts +4 -0
- package/dist/components/icons/square.d.ts.map +1 -0
- package/dist/components/icons/squares.d.ts +4 -0
- package/dist/components/icons/squares.d.ts.map +1 -0
- package/dist/components/icons/squiggly.d.ts +4 -0
- package/dist/components/icons/squiggly.d.ts.map +1 -0
- package/dist/components/icons/strikethrough.d.ts +4 -0
- package/dist/components/icons/strikethrough.d.ts.map +1 -0
- package/dist/components/icons/text.d.ts +4 -0
- package/dist/components/icons/text.d.ts.map +1 -0
- package/dist/components/icons/trash.d.ts +4 -0
- package/dist/components/icons/trash.d.ts.map +1 -0
- package/dist/components/icons/types.d.ts +11 -0
- package/dist/components/icons/types.d.ts.map +1 -0
- package/dist/components/icons/underline.d.ts +4 -0
- package/dist/components/icons/underline.d.ts.map +1 -0
- package/dist/components/icons/vertical.d.ts +4 -0
- package/dist/components/icons/vertical.d.ts.map +1 -0
- package/dist/components/icons/view-settings.d.ts +4 -0
- package/dist/components/icons/view-settings.d.ts.map +1 -0
- package/dist/components/icons/x.d.ts +4 -0
- package/dist/components/icons/x.d.ts.map +1 -0
- package/dist/components/icons/zigzag.d.ts +4 -0
- package/dist/components/icons/zigzag.d.ts.map +1 -0
- package/dist/components/icons/zoom-in-area.d.ts +4 -0
- package/dist/components/icons/zoom-in-area.d.ts.map +1 -0
- package/dist/components/icons/zoom-in.d.ts +4 -0
- package/dist/components/icons/zoom-in.d.ts.map +1 -0
- package/dist/components/icons/zoom-out.d.ts +4 -0
- package/dist/components/icons/zoom-out.d.ts.map +1 -0
- package/dist/components/locale-switcher.d.ts +8 -0
- package/dist/components/locale-switcher.d.ts.map +1 -0
- package/dist/components/mode-select-button.d.ts +8 -0
- package/dist/components/mode-select-button.d.ts.map +1 -0
- package/dist/components/outline-sidebar.d.ts +7 -0
- package/dist/components/outline-sidebar.d.ts.map +1 -0
- package/dist/components/page-controls.d.ts +7 -0
- package/dist/components/page-controls.d.ts.map +1 -0
- package/dist/components/print-modal.d.ts +10 -0
- package/dist/components/print-modal.d.ts.map +1 -0
- package/dist/components/redaction-menu.d.ts +10 -0
- package/dist/components/redaction-menu.d.ts.map +1 -0
- package/dist/components/search-sidebar.d.ts +8 -0
- package/dist/components/search-sidebar.d.ts.map +1 -0
- package/dist/components/tab-bar.d.ts +14 -0
- package/dist/components/tab-bar.d.ts.map +1 -0
- package/dist/components/thumbnails-sidebar.d.ts +8 -0
- package/dist/components/thumbnails-sidebar.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +14 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/checkbox.d.ts +9 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/dialog.d.ts +22 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/dropdown.d.ts +23 -0
- package/dist/components/ui/dropdown.d.ts.map +1 -0
- package/dist/components/ui/icon.d.ts +20 -0
- package/dist/components/ui/icon.d.ts.map +1 -0
- package/dist/components/ui/loading-indicator.d.ts +17 -0
- package/dist/components/ui/loading-indicator.d.ts.map +1 -0
- package/dist/components/ui/tab-button.d.ts +12 -0
- package/dist/components/ui/tab-button.d.ts.map +1 -0
- package/dist/components/ui/toggle-button.d.ts +15 -0
- package/dist/components/ui/toggle-button.d.ts.map +1 -0
- package/dist/components/ui/tooltip.d.ts +14 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/utils.d.ts +2 -0
- package/dist/components/utils.d.ts.map +1 -0
- package/dist/config/commands.d.ts +4 -0
- package/dist/config/commands.d.ts.map +1 -0
- package/dist/config/icon-registry.d.ts +116 -0
- package/dist/config/icon-registry.d.ts.map +1 -0
- package/dist/config/index.d.ts +6 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/theme.d.ts +147 -0
- package/dist/config/theme.d.ts.map +1 -0
- package/dist/config/translations.d.ts +8 -0
- package/dist/config/translations.d.ts.map +1 -0
- package/dist/config/types.d.ts +32 -0
- package/dist/config/types.d.ts.map +1 -0
- package/dist/config/ui-schema.d.ts +9 -0
- package/dist/config/ui-schema.d.ts.map +1 -0
- package/dist/demo-annotations.pdf +0 -0
- package/dist/demo.pdf +0 -0
- package/dist/direct-engine-ce9b01ae.js +1 -0
- package/dist/ebook.pdf +0 -0
- package/dist/embedpdf-9ae31302.js +3 -0
- package/dist/embedpdf.d.ts +45 -0
- package/dist/embedpdf.d.ts.map +1 -0
- package/dist/embedpdf.js +1 -0
- package/dist/hooks/use-click-outside.d.ts +3 -0
- package/dist/hooks/use-click-outside.d.ts.map +1 -0
- package/dist/hooks/use-debounce.d.ts +2 -0
- package/dist/hooks/use-debounce.d.ts.map +1 -0
- package/dist/hooks/use-swipe-gesture.d.ts +5 -0
- package/dist/hooks/use-swipe-gesture.d.ts.map +1 -0
- package/dist/index.html +32 -0
- package/dist/pdfium.wasm +0 -0
- package/dist/ui/hooks/use-container-breakpoint.d.ts +10 -0
- package/dist/ui/hooks/use-container-breakpoint.d.ts.map +1 -0
- package/dist/ui/schema-menu.d.ts +9 -0
- package/dist/ui/schema-menu.d.ts.map +1 -0
- package/dist/ui/schema-modal.d.ts +17 -0
- package/dist/ui/schema-modal.d.ts.map +1 -0
- package/dist/ui/schema-overlay.d.ts +16 -0
- package/dist/ui/schema-overlay.d.ts.map +1 -0
- package/dist/ui/schema-selection-menu.d.ts +4 -0
- package/dist/ui/schema-selection-menu.d.ts.map +1 -0
- package/dist/ui/schema-sidebar.d.ts +9 -0
- package/dist/ui/schema-sidebar.d.ts.map +1 -0
- package/dist/ui/schema-toolbar.d.ts +13 -0
- package/dist/ui/schema-toolbar.d.ts.map +1 -0
- package/dist/web-components/container.d.ts +65 -0
- package/dist/web-components/container.d.ts.map +1 -0
- package/dist/worker-engine-892a0577.js +1 -0
- package/package.json +83 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { h, ComponentChildren } from 'preact';
|
|
2
|
+
import { Placement } from '@floating-ui/dom';
|
|
3
|
+
interface TooltipProps {
|
|
4
|
+
children: ComponentChildren;
|
|
5
|
+
content: ComponentChildren;
|
|
6
|
+
position?: Placement;
|
|
7
|
+
className?: string;
|
|
8
|
+
delay?: number;
|
|
9
|
+
style?: 'light' | 'dark';
|
|
10
|
+
trigger?: 'hover' | 'click' | 'none';
|
|
11
|
+
}
|
|
12
|
+
export declare function Tooltip({ children, content, position, className, delay, style, trigger, }: TooltipProps): h.JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tooltip.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,iBAAiB,EAAuB,MAAM,QAAQ,CAAC;AAEnE,OAAO,EAOL,SAAS,EACV,MAAM,kBAAkB,CAAC;AAE1B,UAAU,YAAY;IACpB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,OAAO,EAAE,iBAAiB,CAAC;IAC3B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;CACtC;AAUD,wBAAgB,OAAO,CAAC,EACtB,QAAQ,EACR,OAAO,EACP,QAAgB,EAChB,SAAc,EACd,KAAW,EACX,KAAc,EACd,OAAiB,GAClB,EAAE,YAAY,iBAoHd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/components/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,GAAI,YAAY,MAAM,GAAG,IAAI,WAanD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/config/commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAuB3D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQhC,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,CAAC,CAy8CnD,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Icon Registry - Framework-agnostic icon registration system
|
|
3
|
+
*
|
|
4
|
+
* Allows users to register custom SVG icons using path data only (safe, no XSS risk).
|
|
5
|
+
* Icons are stored as path configurations and rendered dynamically.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Color reference for icon paths.
|
|
9
|
+
* - 'primary' → uses primaryColor prop (default icon color)
|
|
10
|
+
* - 'secondary' → uses secondaryColor prop (accent/fill color)
|
|
11
|
+
* - 'currentColor' → inherits from CSS color property
|
|
12
|
+
* - 'none' → transparent/no color
|
|
13
|
+
* - Any valid CSS color string (e.g., '#ff0000', 'rgb(255,0,0)')
|
|
14
|
+
*/
|
|
15
|
+
export type IconColor = 'primary' | 'secondary' | 'currentColor' | 'none' | (string & {});
|
|
16
|
+
/**
|
|
17
|
+
* Configuration for a single SVG path within an icon
|
|
18
|
+
*/
|
|
19
|
+
export interface IconPathConfig {
|
|
20
|
+
/** SVG path data (d attribute) */
|
|
21
|
+
d: string;
|
|
22
|
+
/** Stroke color - defaults to 'none' */
|
|
23
|
+
stroke?: IconColor;
|
|
24
|
+
/** Fill color - defaults to 'none' */
|
|
25
|
+
fill?: IconColor;
|
|
26
|
+
/** Override stroke width for this path */
|
|
27
|
+
strokeWidth?: number;
|
|
28
|
+
/** Path opacity (0-1) */
|
|
29
|
+
opacity?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Configuration for a custom icon
|
|
33
|
+
*/
|
|
34
|
+
export interface CustomIconConfig {
|
|
35
|
+
/** SVG viewBox - defaults to '0 0 24 24' */
|
|
36
|
+
viewBox?: string;
|
|
37
|
+
/** Array of path configurations */
|
|
38
|
+
paths: IconPathConfig[];
|
|
39
|
+
/** Default stroke-linecap for all paths */
|
|
40
|
+
strokeLinecap?: 'round' | 'butt' | 'square';
|
|
41
|
+
/** Default stroke-linejoin for all paths */
|
|
42
|
+
strokeLinejoin?: 'round' | 'miter' | 'bevel';
|
|
43
|
+
/** Default stroke width for all paths (can be overridden per-path) */
|
|
44
|
+
strokeWidth?: number;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Shorthand for simple single-path icons
|
|
48
|
+
*/
|
|
49
|
+
export interface SimpleIconConfig {
|
|
50
|
+
/** SVG viewBox - defaults to '0 0 24 24' */
|
|
51
|
+
viewBox?: string;
|
|
52
|
+
/** SVG path data (d attribute) */
|
|
53
|
+
path: string;
|
|
54
|
+
/** Stroke color - defaults to 'primary' */
|
|
55
|
+
stroke?: IconColor;
|
|
56
|
+
/** Fill color - defaults to 'none' */
|
|
57
|
+
fill?: IconColor;
|
|
58
|
+
/** Default stroke-linecap */
|
|
59
|
+
strokeLinecap?: 'round' | 'butt' | 'square';
|
|
60
|
+
/** Default stroke-linejoin */
|
|
61
|
+
strokeLinejoin?: 'round' | 'miter' | 'bevel';
|
|
62
|
+
/** Stroke width */
|
|
63
|
+
strokeWidth?: number;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Icon configuration - can be full config or simple shorthand
|
|
67
|
+
*/
|
|
68
|
+
export type IconConfig = CustomIconConfig | SimpleIconConfig;
|
|
69
|
+
/**
|
|
70
|
+
* Map of icon name to configuration
|
|
71
|
+
*/
|
|
72
|
+
export type IconsConfig = Record<string, IconConfig>;
|
|
73
|
+
/**
|
|
74
|
+
* Registers a custom icon
|
|
75
|
+
* @param name - Unique icon name
|
|
76
|
+
* @param config - Icon configuration
|
|
77
|
+
* @throws Error if path data is invalid
|
|
78
|
+
*/
|
|
79
|
+
export declare function registerIcon(name: string, config: IconConfig): void;
|
|
80
|
+
/**
|
|
81
|
+
* Registers multiple icons at once
|
|
82
|
+
* @param icons - Map of icon name to configuration
|
|
83
|
+
*/
|
|
84
|
+
export declare function registerIcons(icons: IconsConfig): void;
|
|
85
|
+
/**
|
|
86
|
+
* Gets a custom icon configuration
|
|
87
|
+
* @param name - Icon name
|
|
88
|
+
* @returns Icon config or undefined if not found
|
|
89
|
+
*/
|
|
90
|
+
export declare function getCustomIcon(name: string): CustomIconConfig | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Checks if a custom icon exists
|
|
93
|
+
* @param name - Icon name
|
|
94
|
+
*/
|
|
95
|
+
export declare function hasCustomIcon(name: string): boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Removes a custom icon
|
|
98
|
+
* @param name - Icon name
|
|
99
|
+
*/
|
|
100
|
+
export declare function unregisterIcon(name: string): boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Gets all registered custom icon names
|
|
103
|
+
*/
|
|
104
|
+
export declare function getCustomIconNames(): string[];
|
|
105
|
+
/**
|
|
106
|
+
* Clears all custom icons
|
|
107
|
+
*/
|
|
108
|
+
export declare function clearCustomIcons(): void;
|
|
109
|
+
/**
|
|
110
|
+
* Resolves an IconColor to an actual CSS color value
|
|
111
|
+
* @param color - The color reference
|
|
112
|
+
* @param primaryColor - The primary color value
|
|
113
|
+
* @param secondaryColor - The secondary color value
|
|
114
|
+
*/
|
|
115
|
+
export declare function resolveIconColor(color: IconColor | undefined, primaryColor: string, secondaryColor: string): string;
|
|
116
|
+
//# sourceMappingURL=icon-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-registry.d.ts","sourceRoot":"","sources":["../../src/config/icon-registry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH;;;;;;;GAOG;AACH,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,cAAc,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAE1F;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,kCAAkC;IAClC,CAAC,EAAE,MAAM,CAAC;IACV,wCA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AE,UAAU,GAAG,IAAI,CAenE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI,CAItD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,GAAG,SAAS,CAExE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEnD;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEpD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,EAAE,CAE7C;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,CAEvC;AAMD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,SAAS,GAAG,SAAS,EAC5B,YAAY,EAAE,MAAM,EACpB,cAAc,EAAE,MAAM,GACrB,MAAM,CAOR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Semantic color tokens for the PDF viewer theme.
|
|
3
|
+
* These are organized by purpose, not by color name.
|
|
4
|
+
*/
|
|
5
|
+
export interface ThemeColors {
|
|
6
|
+
background: {
|
|
7
|
+
/** Main app/viewport background */
|
|
8
|
+
app: string;
|
|
9
|
+
/** Primary surfaces: cards, toolbars, sidebars, modals */
|
|
10
|
+
surface: string;
|
|
11
|
+
/** Secondary/alternate surface: secondary toolbars, subtle sections */
|
|
12
|
+
surfaceAlt: string;
|
|
13
|
+
/** Elevated surfaces: dropdowns, popovers, tooltips */
|
|
14
|
+
elevated: string;
|
|
15
|
+
/** Modal backdrop overlay */
|
|
16
|
+
overlay: string;
|
|
17
|
+
/** Input fields background */
|
|
18
|
+
input: string;
|
|
19
|
+
};
|
|
20
|
+
foreground: {
|
|
21
|
+
/** Primary text - headings, body text */
|
|
22
|
+
primary: string;
|
|
23
|
+
/** Secondary text - less prominent content */
|
|
24
|
+
secondary: string;
|
|
25
|
+
/** Muted text - placeholders, hints, timestamps */
|
|
26
|
+
muted: string;
|
|
27
|
+
/** Disabled text */
|
|
28
|
+
disabled: string;
|
|
29
|
+
/** Text on accent/colored backgrounds */
|
|
30
|
+
onAccent: string;
|
|
31
|
+
};
|
|
32
|
+
border: {
|
|
33
|
+
/** Default borders - inputs, cards, dividers */
|
|
34
|
+
default: string;
|
|
35
|
+
/** Subtle borders - section dividers, separators */
|
|
36
|
+
subtle: string;
|
|
37
|
+
/** Strong borders - color swatches, emphasis */
|
|
38
|
+
strong: string;
|
|
39
|
+
};
|
|
40
|
+
accent: {
|
|
41
|
+
/** Primary accent - buttons, links, active states */
|
|
42
|
+
primary: string;
|
|
43
|
+
/** Primary hover state */
|
|
44
|
+
primaryHover: string;
|
|
45
|
+
/** Primary active/pressed state */
|
|
46
|
+
primaryActive: string;
|
|
47
|
+
/** Light accent background - selection highlights */
|
|
48
|
+
primaryLight: string;
|
|
49
|
+
/** Text on primary accent background */
|
|
50
|
+
primaryForeground: string;
|
|
51
|
+
};
|
|
52
|
+
interactive: {
|
|
53
|
+
/** Hover background for interactive elements */
|
|
54
|
+
hover: string;
|
|
55
|
+
/** Active/pressed background */
|
|
56
|
+
active: string;
|
|
57
|
+
/** Selected item background */
|
|
58
|
+
selected: string;
|
|
59
|
+
/** Focus ring color */
|
|
60
|
+
focus: string;
|
|
61
|
+
/** Focus ring (lighter, for offset) */
|
|
62
|
+
focusRing: string;
|
|
63
|
+
};
|
|
64
|
+
state: {
|
|
65
|
+
/** Error state */
|
|
66
|
+
error: string;
|
|
67
|
+
errorLight: string;
|
|
68
|
+
/** Warning state */
|
|
69
|
+
warning: string;
|
|
70
|
+
warningLight: string;
|
|
71
|
+
/** Success state */
|
|
72
|
+
success: string;
|
|
73
|
+
successLight: string;
|
|
74
|
+
/** Info state */
|
|
75
|
+
info: string;
|
|
76
|
+
infoLight: string;
|
|
77
|
+
};
|
|
78
|
+
scrollbar?: {
|
|
79
|
+
track: string;
|
|
80
|
+
thumb: string;
|
|
81
|
+
thumbHover: string;
|
|
82
|
+
};
|
|
83
|
+
tooltip?: {
|
|
84
|
+
background: string;
|
|
85
|
+
foreground: string;
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* A complete theme definition
|
|
90
|
+
*/
|
|
91
|
+
export interface Theme {
|
|
92
|
+
/** Theme identifier */
|
|
93
|
+
name: string;
|
|
94
|
+
/** Color tokens */
|
|
95
|
+
colors: ThemeColors;
|
|
96
|
+
}
|
|
97
|
+
export type ThemePreference = 'light' | 'dark' | 'system';
|
|
98
|
+
export interface ThemeConfig {
|
|
99
|
+
/**
|
|
100
|
+
* Which theme to use: 'light', 'dark', or 'system' (follows OS)
|
|
101
|
+
* @default 'system'
|
|
102
|
+
*/
|
|
103
|
+
preference?: ThemePreference;
|
|
104
|
+
/**
|
|
105
|
+
* Custom themes to override built-in defaults.
|
|
106
|
+
* You can provide one or both themes.
|
|
107
|
+
*/
|
|
108
|
+
themes?: {
|
|
109
|
+
light?: Theme | DeepPartial<ThemeColors>;
|
|
110
|
+
dark?: Theme | DeepPartial<ThemeColors>;
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
export declare const lightTheme: Theme;
|
|
114
|
+
export declare const darkTheme: Theme;
|
|
115
|
+
export type DeepPartial<T> = {
|
|
116
|
+
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* Creates a custom theme by extending a base theme with color overrides
|
|
120
|
+
*/
|
|
121
|
+
export declare function createTheme(base: Theme, overrides: DeepPartial<ThemeColors>, name?: string): Theme;
|
|
122
|
+
/**
|
|
123
|
+
* Merges theme configuration, handling both full Theme objects and partial overrides
|
|
124
|
+
*/
|
|
125
|
+
export declare function resolveTheme(config: Theme | DeepPartial<ThemeColors> | undefined, base: Theme): Theme;
|
|
126
|
+
/**
|
|
127
|
+
* Detects the user's OS color scheme preference
|
|
128
|
+
*/
|
|
129
|
+
export declare function getSystemColorScheme(): 'light' | 'dark';
|
|
130
|
+
/**
|
|
131
|
+
* Subscribes to OS color scheme changes
|
|
132
|
+
* @returns Cleanup function to unsubscribe
|
|
133
|
+
*/
|
|
134
|
+
export declare function onSystemColorSchemeChange(callback: (scheme: 'light' | 'dark') => void): () => void;
|
|
135
|
+
/**
|
|
136
|
+
* Resolves the effective color scheme based on preference
|
|
137
|
+
*/
|
|
138
|
+
export declare function resolveColorScheme(preference: ThemePreference): 'light' | 'dark';
|
|
139
|
+
/**
|
|
140
|
+
* Generates CSS custom properties from a theme
|
|
141
|
+
*/
|
|
142
|
+
export declare function generateThemeCSS(theme: Theme): string;
|
|
143
|
+
/**
|
|
144
|
+
* Generates the full CSS block for a theme, targeting :host
|
|
145
|
+
*/
|
|
146
|
+
export declare function generateThemeStylesheet(theme: Theme): string;
|
|
147
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/config/theme.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,MAAM,WAAW,WAAW;IAI1B,UAAU,EAAE;QACV,mCAAmC;QACnC,GAAG,EAAE,MAAM,CAAC;QACZ,0DAA0D;QAC1D,OAAO,EAAE,MAAM,CAAC;QAChB,uEAAuE;QACvE,UAAU,EAAE,MAAM,CAAC;QACnB,uDAAuD;QACvD,QAAQ,EAAE,MAAM,CAAC;QACjB,6BAA6B;QAC7B,OAAO,EAAE,MAAM,CAAC;QAChB,8BAA8B;QAC9B,KAAK,EAAE,MAAM,C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,CAAC,WAAW,CAAC,GAAG,SAAS,EACpD,IAAI,EAAE,KAAK,GACV,KAAK,CAUP;AAMD;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,GAAG,MAAM,CAGvD;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,KAAK,IAAI,GAC3C,MAAM,IAAI,CAQZ;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,eAAe,GAAG,OAAO,GAAG,MAAM,CAKhF;AAaD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAerD;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAE5D"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ParamResolvers, Locale } from '@embedpdf/plugin-i18n';
|
|
2
|
+
import { State } from './types';
|
|
3
|
+
export declare const englishTranslations: Locale;
|
|
4
|
+
export declare const germanTranslations: Locale;
|
|
5
|
+
export declare const dutchTranslations: Locale;
|
|
6
|
+
export declare const frenchTranslations: Locale;
|
|
7
|
+
export declare const paramResolvers: ParamResolvers<State>;
|
|
8
|
+
//# sourceMappingURL=translations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../src/config/translations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC,eAAO,MAAM,mBAAmB,EAAE,MA2LjC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,MA2LhC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MA4L/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,MA2LhC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,cAAc,CAAC,KAAK,CAShD,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { GlobalStoreState } from '@embedpdf/core';
|
|
2
|
+
import { CAPTURE_PLUGIN_ID, CaptureState } from '@embedpdf/plugin-capture/preact';
|
|
3
|
+
import { ZOOM_PLUGIN_ID, ZoomState } from '@embedpdf/plugin-zoom/preact';
|
|
4
|
+
import { VIEWPORT_PLUGIN_ID, ViewportState } from '@embedpdf/plugin-viewport/preact';
|
|
5
|
+
import { SCROLL_PLUGIN_ID, ScrollState } from '@embedpdf/plugin-scroll/preact';
|
|
6
|
+
import { SPREAD_PLUGIN_ID, SpreadState } from '@embedpdf/plugin-spread/preact';
|
|
7
|
+
import { SEARCH_PLUGIN_ID, SearchState } from '@embedpdf/plugin-search/preact';
|
|
8
|
+
import { SELECTION_PLUGIN_ID, SelectionState } from '@embedpdf/plugin-selection/preact';
|
|
9
|
+
import { ANNOTATION_PLUGIN_ID, AnnotationState } from '@embedpdf/plugin-annotation/preact';
|
|
10
|
+
import { FULLSCREEN_PLUGIN_ID, FullscreenState } from '@embedpdf/plugin-fullscreen/preact';
|
|
11
|
+
import { INTERACTION_MANAGER_PLUGIN_ID, InteractionManagerState } from '@embedpdf/plugin-interaction-manager/preact';
|
|
12
|
+
import { HISTORY_PLUGIN_ID, HistoryState } from '@embedpdf/plugin-history/preact';
|
|
13
|
+
import { REDACTION_PLUGIN_ID, RedactionState } from '@embedpdf/plugin-redaction/preact';
|
|
14
|
+
import { PAN_PLUGIN_ID, PanState } from '@embedpdf/plugin-pan/preact';
|
|
15
|
+
import { UI_PLUGIN_ID, UIState } from '@embedpdf/plugin-ui';
|
|
16
|
+
export type State = GlobalStoreState<{
|
|
17
|
+
[CAPTURE_PLUGIN_ID]: CaptureState;
|
|
18
|
+
[ZOOM_PLUGIN_ID]: ZoomState;
|
|
19
|
+
[VIEWPORT_PLUGIN_ID]: ViewportState;
|
|
20
|
+
[SCROLL_PLUGIN_ID]: ScrollState;
|
|
21
|
+
[SPREAD_PLUGIN_ID]: SpreadState;
|
|
22
|
+
[SEARCH_PLUGIN_ID]: SearchState;
|
|
23
|
+
[SELECTION_PLUGIN_ID]: SelectionState;
|
|
24
|
+
[ANNOTATION_PLUGIN_ID]: AnnotationState;
|
|
25
|
+
[FULLSCREEN_PLUGIN_ID]: FullscreenState;
|
|
26
|
+
[INTERACTION_MANAGER_PLUGIN_ID]: InteractionManagerState;
|
|
27
|
+
[HISTORY_PLUGIN_ID]: HistoryState;
|
|
28
|
+
[REDACTION_PLUGIN_ID]: RedactionState;
|
|
29
|
+
[PAN_PLUGIN_ID]: PanState;
|
|
30
|
+
[UI_PLUGIN_ID]: UIState;
|
|
31
|
+
}>;
|
|
32
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/config/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACrF,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EACL,6BAA6B,EAC7B,uBAAuB,EACxB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACxF,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,MAAM,KAAK,GAAG,gBAAgB,CAAC;IACnC,CAAC,iBAAiB,CAAC,EAAE,YAAY,CAAC;IAClC,CAAC,cAAc,CAAC,EAAE,SAAS,CAAC;IAC5B,CAAC,kBAAkB,CAAC,EAAE,aAAa,CAAC;IACpC,CAAC,gBAAgB,CAAC,EAAE,WAAW,CAAC;IAChC,CAAC,gBAAgB,CAAC,EAAE,WAAW,CAAC;IAChC,CAAC,gBAAgB,CAAC,EAAE,WAAW,CAAC;IAChC,CAAC,mBAAmB,CAAC,EAAE,cAAc,CAAC;IACtC,CAAC,oBAAoB,CAAC,EAAE,eAAe,CAAC;IACxC,CAAC,oBAAoB,CAAC,EAAE,eAAe,CAAC;IACxC,CAAC,6BAA6B,CAAC,EAAE,uBAAuB,CAAC;IACzD,CAAC,iBAAiB,CAAC,EAAE,YAAY,CAAC;IAClC,CAAC,mBAAmB,CAAC,EAAE,cAAc,CAAC;IACtC,CAAC,aAAa,CAAC,EAAE,QAAQ,CAAC;IAC1B,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UISchema } from '@embedpdf/plugin-ui';
|
|
2
|
+
/**
|
|
3
|
+
* UI Schema Configuration
|
|
4
|
+
*
|
|
5
|
+
* This defines the complete UI structure for the PDF viewer application.
|
|
6
|
+
* The schema is a declarative, type-safe way to define toolbars, menus, and panels.
|
|
7
|
+
*/
|
|
8
|
+
export declare const viewerUISchema: UISchema;
|
|
9
|
+
//# sourceMappingURL=ui-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-schema.d.ts","sourceRoot":"","sources":["../../src/config/ui-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C;;;;;GAKG;AACH,eAAO,MAAM,cAAc,EAAE,QAomC5B,CAAC"}
|
|
Binary file
|
package/dist/demo.pdf
ADDED
|
Binary file
|