pdfjs-reader-core 0.2.4 → 0.2.5
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/styles.css +1 -0
- package/package.json +4 -2
package/dist/styles.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--pdf-toolbar-height:48px;--pdf-mobile-toolbar-height:56px;--pdf-sidebar-width:280px;--pdf-mobile-sidebar-width:85vw;--pdf-primary:#3b82f6;--pdf-primary-hover:#2563eb;--pdf-bg:#fff;--pdf-text:#1f2937;--pdf-text-muted:#6b7280;--pdf-border:#e5e7eb;--pdf-surface:#f9fafb;--pdf-highlight-yellow:hsla(53,98%,77%,.5);--pdf-highlight-green:rgba(134,239,172,.5);--pdf-highlight-blue:rgba(147,197,253,.5);--pdf-highlight-pink:rgba(249,168,212,.5);--pdf-highlight-orange:hsla(31,97%,72%,.5);--pdf-page-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06);--pdf-dropdown-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05);--pdf-touch-target-min:44px;--pdf-transition-fast:150ms ease;--pdf-transition-normal:200ms ease}.dark{--pdf-primary:#60a5fa;--pdf-primary-hover:#3b82f6;--pdf-bg:#1f2937;--pdf-text:#f9fafb;--pdf-text-muted:#9ca3af;--pdf-border:#374151;--pdf-surface:#111827;--pdf-page-shadow:0 4px 6px -1px rgba(0,0,0,.3),0 2px 4px -1px rgba(0,0,0,.2)}.pdf-viewer{position:relative;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.pdf-page{position:relative;overflow:hidden;box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06)}.pdf-canvas-layer{display:block}.pdf-text-layer{position:absolute;inset:0;overflow:hidden;opacity:.2;line-height:1}.pdf-text-layer span{position:absolute;white-space:pre;color:transparent;pointer-events:all}.pdf-text-layer span::selection{background:var(--pdf-highlight-blue)}.pdf-text-layer span::-moz-selection{background:var(--pdf-highlight-blue)}.pdf-highlight-layer{position:absolute;inset:0;pointer-events:none}.pdf-highlight-layer .highlight-group{pointer-events:auto}.pdf-toolbar{align-items:center;gap:.5rem;padding:.5rem 1rem;border-bottom:1px solid var(--pdf-border)}.pdf-sidebar,.pdf-toolbar{display:flex;background:var(--pdf-bg)}.pdf-sidebar{border-right:1px solid var(--pdf-border)}.thumbnail-panel{overflow-y:auto}.thumbnail-item{transition:all .15s ease}.thumbnail-item:hover{background:rgba(0,0,0,.05)}.thumbnail-item.active{background:rgba(59,130,246,.1)}.search-panel input:focus{outline:none;ring:2px;ring-color:var(--pdf-primary)}.document-container{flex:1;overflow:auto;display:flex;flex-direction:column;align-items:center;padding:1rem;gap:1rem}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.dark .pdf-page{box-shadow:0 4px 6px -1px rgba(0,0,0,.3),0 2px 4px -1px rgba(0,0,0,.2)}.sepia .document-container{background:#f4ecd8}.sepia .pdf-page{filter:sepia(20%)}@media (max-width:640px){.pdf-toolbar{padding:.5rem;height:var(--pdf-mobile-toolbar-height)}.pdf-sidebar{width:100%!important;position:absolute;z-index:100}.document-container{padding:.5rem;gap:.5rem;padding-bottom:calc(var(--pdf-mobile-toolbar-height) + 1rem)}.mobile-toolbar button,.pdf-toolbar button{min-width:var(--pdf-touch-target-min);min-height:var(--pdf-touch-target-min)}.highlight-popover,.selection-toolbar{position:fixed!important;bottom:calc(var(--pdf-mobile-toolbar-height) + .5rem);left:50%!important;right:auto!important;top:auto!important;transform:translateX(-50%)!important;max-width:calc(100vw - 1rem);width:auto;border-radius:1rem;box-shadow:var(--pdf-dropdown-shadow)}.annotation-toolbar{bottom:calc(var(--pdf-mobile-toolbar-height) + .5rem)!important}}@media (hover:none) and (pointer:coarse){.mobile-toolbar button:hover,.pdf-toolbar button:hover{background:transparent}.mobile-toolbar button:active,.pdf-toolbar button:active{background:rgba(0,0,0,.1)}.dark .mobile-toolbar button:active,.dark .pdf-toolbar button:active{background:hsla(0,0%,100%,.1)}.thumbnail-item{padding:.75rem}.pdf-text-layer{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:text;-moz-user-select:text;user-select:text}}.safe-area-inset{padding-left:env(safe-area-inset-left,0);padding-right:env(safe-area-inset-right,0)}.mobile-sidebar,.mobile-toolbar{padding-bottom:env(safe-area-inset-bottom,0)}.mobile-sidebar{padding-top:env(safe-area-inset-top,0)}.pdf-annotation-layer{pointer-events:none}.pdf-annotation-layer.cursor-crosshair{pointer-events:auto;cursor:crosshair}.drawing-canvas{position:absolute;top:0;left:0}@media print{.annotation-toolbar,.highlight-popover,.mobile-sidebar,.mobile-toolbar,.pdf-sidebar,.pdf-toolbar,.selection-toolbar{display:none!important}.document-container{padding:0;overflow:visible}.pdf-page{box-shadow:none;page-break-after:always}.pdf-annotation-layer{display:none!important}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pdfjs-reader-core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "A Next.js-compatible PDF renderer with canvas rendering, annotations, and search",
|
|
5
5
|
"author": "suhas <suhasrdev@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,8 +36,10 @@
|
|
|
36
36
|
"**/*.css"
|
|
37
37
|
],
|
|
38
38
|
"scripts": {
|
|
39
|
-
"build": "tsup",
|
|
39
|
+
"build": "tsup && pnpm build:css",
|
|
40
|
+
"build:css": "tailwindcss -i ./src/styles/index.css -o ./dist/styles.css --minify",
|
|
40
41
|
"dev": "tsup --watch",
|
|
42
|
+
"dev:css": "tailwindcss -i ./src/styles/index.css -o ./dist/styles.css --watch",
|
|
41
43
|
"typecheck": "tsc --noEmit",
|
|
42
44
|
"lint": "eslint src --ext .ts,.tsx",
|
|
43
45
|
"test": "vitest run",
|