box-content-preview 3.41.0 → 3.43.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 (35) hide show
  1. package/README.md +7 -7
  2. package/dist/lib/10884617744dc1151da6.svg +3 -0
  3. package/dist/lib/211d2d6fe3604a9a520c.svg +3 -0
  4. package/dist/lib/2d166d850c0e35f16449.svg +3 -0
  5. package/dist/lib/2ef94bf18d79d33c1956.svg +3 -0
  6. package/dist/lib/3b058ed0b02df4fe2a4b.svg +5 -0
  7. package/dist/lib/4cadce1da24a888d3778.svg +3 -0
  8. package/dist/lib/553a8349e45b78d2b0e4.svg +3 -0
  9. package/dist/lib/5a0d39f4f5a65c621dbe.svg +1 -0
  10. package/dist/lib/5b29822d0b078939cf78.mjs +29 -0
  11. package/dist/lib/6adf7ff4167ab6e1a87f.svg +1 -0
  12. package/dist/lib/7a72cfe20720a26ec417.svg +30 -0
  13. package/dist/lib/88.css +1 -1
  14. package/dist/lib/9235a934bba6a11e0c0e.svg +3 -0
  15. package/dist/lib/9e99b3c1c4e832d55661.svg +3 -0
  16. package/dist/lib/b3f42e9824f129eefaac.svg +3 -0
  17. package/dist/lib/b764fc7c9c83840e51bb.svg +3 -0
  18. package/dist/lib/c9dc2a6d0f9e1e7533bc.svg +3 -0
  19. package/dist/lib/ca4804e8b13a221c170a.svg +3 -0
  20. package/dist/lib/d15926e8173b24e27798.svg +5 -0
  21. package/dist/lib/d39979b82330f1bca780.svg +3 -0
  22. package/dist/lib/d9820fcb925358884b24.svg +3 -0
  23. package/dist/lib/e389d73645f134c0640a.svg +3 -0
  24. package/dist/lib/f904f4e53fc28e721147.svg +7 -0
  25. package/dist/lib/fe569fb3bf1e1ac0e771.svg +3 -0
  26. package/dist/lib/index.js +68 -36
  27. package/dist/lib/pdfjs-lib.js +94 -15
  28. package/dist/lib/pdfjs-viewer.js +2862 -1155
  29. package/package.json +3 -3
  30. package/dist/lib/237.js +0 -34
  31. package/dist/lib/274.js +0 -103
  32. package/dist/lib/2a7d8bfaf2d43f53bd71.mjs +0 -21
  33. package/dist/lib/492.js +0 -34
  34. package/dist/lib/671.js +0 -34
  35. package/dist/lib/815.js +0 -34
@@ -0,0 +1,3 @@
1
+ <svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M3.49073 1.3015L3.30873 2.1505C3.29349 2.22246 3.25769 2.28844 3.20568 2.34045C3.15368 2.39246 3.08769 2.42826 3.01573 2.4435L2.16673 2.6255C1.76473 2.7125 1.76473 3.2865 2.16673 3.3725L3.01573 3.5555C3.08769 3.57074 3.15368 3.60654 3.20568 3.65855C3.25769 3.71056 3.29349 3.77654 3.30873 3.8485L3.49073 4.6975C3.57773 5.0995 4.15173 5.0995 4.23773 4.6975L4.42073 3.8485C4.43598 3.77654 4.47177 3.71056 4.52378 3.65855C4.57579 3.60654 4.64178 3.57074 4.71373 3.5555L5.56173 3.3725C5.96373 3.2855 5.96373 2.7115 5.56173 2.6255L4.71273 2.4435C4.64083 2.42814 4.57491 2.3923 4.52292 2.34031C4.47093 2.28832 4.43509 2.2224 4.41973 2.1505L4.23773 1.3015C4.15073 0.8995 3.57673 0.8995 3.49073 1.3015ZM10.8647 13.9995C10.4853 14.0056 10.1158 13.8782 9.82067 13.6397C9.52553 13.4013 9.32347 13.0667 9.24973 12.6945L8.89273 11.0275C8.83676 10.7687 8.70738 10.5316 8.52009 10.3445C8.3328 10.1574 8.09554 10.0282 7.83673 9.9725L6.16973 9.6155C5.38873 9.4465 4.86473 8.7975 4.86473 7.9995C4.86473 7.2015 5.38873 6.5525 6.16973 6.3845L7.83673 6.0275C8.09551 5.97135 8.33267 5.84193 8.51992 5.65468C8.70716 5.46744 8.83658 5.23028 8.89273 4.9715L9.25073 3.3045C9.41773 2.5235 10.0667 1.9995 10.8647 1.9995C11.6627 1.9995 12.3117 2.5235 12.4797 3.3045L12.8367 4.9715C12.9507 5.4995 13.3647 5.9135 13.8927 6.0265L15.5597 6.3835C16.3407 6.5525 16.8647 7.2015 16.8647 7.9995C16.8647 8.7975 16.3407 9.4465 15.5597 9.6145L13.8927 9.9715C13.6337 10.0275 13.3963 10.157 13.209 10.3445C13.0217 10.5319 12.8925 10.7694 12.8367 11.0285L12.4787 12.6945C12.4054 13.0667 12.2036 13.4014 11.9086 13.6399C11.6135 13.8784 11.2441 14.0057 10.8647 13.9995ZM10.8647 3.2495C10.7667 3.2495 10.5337 3.2795 10.4727 3.5655L10.1147 5.2335C10.0081 5.72777 9.76116 6.18082 9.40361 6.53837C9.04606 6.89593 8.59301 7.14283 8.09873 7.2495L6.43173 7.6065C6.14573 7.6685 6.11473 7.9015 6.11473 7.9995C6.11473 8.0975 6.14573 8.3305 6.43173 8.3925L8.09873 8.7495C8.59301 8.85617 9.04606 9.10307 9.40361 9.46062C9.76116 9.81817 10.0081 10.2712 10.1147 10.7655L10.4727 12.4335C10.5337 12.7195 10.7667 12.7495 10.8647 12.7495C10.9627 12.7495 11.1957 12.7195 11.2567 12.4335L11.6147 10.7665C11.7212 10.272 11.9681 9.81878 12.3256 9.46103C12.6832 9.10329 13.1363 8.85624 13.6307 8.7495L15.2977 8.3925C15.5837 8.3305 15.6147 8.0975 15.6147 7.9995C15.6147 7.9015 15.5837 7.6685 15.2977 7.6065L13.6307 7.2495C13.1365 7.14283 12.6834 6.89593 12.3259 6.53837C11.9683 6.18082 11.7214 5.72777 11.6147 5.2335L11.2567 3.5655C11.1957 3.2795 10.9627 3.2495 10.8647 3.2495ZM3.30873 12.1505L3.49073 11.3015C3.57673 10.8995 4.15073 10.8995 4.23773 11.3015L4.41973 12.1505C4.43509 12.2224 4.47093 12.2883 4.52292 12.3403C4.57491 12.3923 4.64083 12.4281 4.71273 12.4435L5.56173 12.6255C5.96373 12.7115 5.96373 13.2855 5.56173 13.3725L4.71273 13.5545C4.64083 13.5699 4.57491 13.6057 4.52292 13.6577C4.47093 13.7097 4.43509 13.7756 4.41973 13.8475L4.23773 14.6965C4.15173 15.0985 3.57773 15.0985 3.49073 14.6965L3.30873 13.8475C3.29337 13.7756 3.25754 13.7097 3.20555 13.6577C3.15356 13.6057 3.08764 13.5699 3.01573 13.5545L2.16673 13.3725C1.76473 13.2865 1.76473 12.7125 2.16673 12.6255L3.01573 12.4435C3.08769 12.4283 3.15368 12.3925 3.20568 12.3405C3.25769 12.2884 3.29349 12.2225 3.30873 12.1505Z" fill="black"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M7.85822 8.84922L4.85322 11.8542C4.75891 11.9453 4.63261 11.9957 4.50151 11.9946C4.37042 11.9934 4.24501 11.9408 4.15231 11.8481C4.0596 11.7554 4.00702 11.63 4.00588 11.4989C4.00474 11.3678 4.05514 11.2415 4.14622 11.1472L7.15122 8.14222V7.85922L4.14622 4.85322C4.05514 4.75891 4.00474 4.63261 4.00588 4.50151C4.00702 4.37042 4.0596 4.24501 4.15231 4.15231C4.24501 4.0596 4.37042 4.00702 4.50151 4.00588C4.63261 4.00474 4.75891 4.05514 4.85322 4.14622L7.85822 7.15122H8.14122L11.1462 4.14622C11.2405 4.05514 11.3668 4.00474 11.4979 4.00588C11.629 4.00702 11.7544 4.0596 11.8471 4.15231C11.9398 4.24501 11.9924 4.37042 11.9936 4.50151C11.9947 4.63261 11.9443 4.75891 11.8532 4.85322L8.84822 7.85922V8.14222L11.8532 11.1472C11.9443 11.2415 11.9947 11.3678 11.9936 11.4989C11.9924 11.63 11.9398 11.7554 11.8471 11.8481C11.7544 11.9408 11.629 11.9934 11.4979 11.9946C11.3668 11.9957 11.2405 11.9453 11.1462 11.8542L8.14122 8.84922L8.14222 8.85022L7.85822 8.84922Z" fill="black"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M10.803 4.74998V6.02436C10.803 6.39302 10.3571 6.57793 10.0967 6.31753L7.87716 4.098C7.71566 3.93649 7.71566 3.67434 7.87716 3.51283L10.0967 1.29329C10.3571 1.0329 10.8036 1.21722 10.8036 1.58588V3.24998H15V4.74998H10.803ZM8 1.24998H3V2.74998H6.5L8 1.24998ZM6.5 5.24998H3V6.74998H8L6.5 5.24998ZM3 13.25H15V14.75H3V13.25ZM6 9.24998H15V10.75H6V9.24998ZM1.5 5.24998H0V6.74998H1.5V5.24998ZM0 13.25H1.5V14.75H0V13.25ZM1.5 1.24998H0V2.74998H1.5V1.24998ZM3 9.24998H4.5V10.75H3V9.24998Z" fill="black"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="17" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M14.9815 14.3461L14.3875 11.1451C14.3125 10.7361 14.1155 10.3621 13.8195 10.0641L5.0185 1.26214C4.2445 0.489141 2.9855 0.487141 2.2085 1.26214L0.5805 2.89014C-0.1935 3.66514 -0.1935 4.92514 0.5805 5.70014L9.3845 14.5031C9.6805 14.7981 10.0545 14.9941 10.4625 15.0691L13.6645 15.6631C13.7345 15.6751 13.8025 15.6821 13.8705 15.6821C14.1675 15.6821 14.4555 15.5651 14.6695 15.3511C14.9325 15.0871 15.0495 14.7121 14.9815 14.3461ZM2.5285 5.87814L1.3685 4.71814L1.3695 3.87014L3.1895 2.04914L4.0375 2.05014L5.1975 3.21014L2.5285 5.87814ZM10.6895 13.8401C10.5295 13.8101 10.3825 13.7331 10.2665 13.6161L3.4135 6.76314L6.0815 4.09514L12.9345 10.9471C13.0515 11.0651 13.1285 11.2121 13.1595 11.3731L13.6335 13.9301L13.2485 14.3151L10.6895 13.8401Z" fill="black"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M3.5 3.75C3.5 1.67879 5.17879 0 7.25 0C9.32121 0 11 1.67879 11 3.75V10.25C11 11.4922 9.99221 12.5 8.75 12.5C7.50779 12.5 6.5 11.4922 6.5 10.25V3.5H8V10.25C8 10.6638 8.33621 11 8.75 11C9.16379 11 9.5 10.6638 9.5 10.25V3.75C9.5 2.50721 8.49279 1.5 7.25 1.5C6.00721 1.5 5 2.50721 5 3.75V10.75C5 12.8208 6.67921 14.5 8.75 14.5C10.8208 14.5 12.5 12.8208 12.5 10.75V3.5H14V10.75C14 13.6492 11.6492 16 8.75 16C5.85079 16 3.5 13.6492 3.5 10.75V3.75Z" fill="black"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M7.625 0.5C6.64009 0.5 5.66482 0.693993 4.75487 1.0709C3.84493 1.44781 3.01814 2.00026 2.3217 2.6967C1.62526 3.39314 1.07281 4.21993 0.695904 5.12987C0.318993 6.03982 0.125 7.01509 0.125 8C0.125 8.98491 0.318993 9.96018 0.695904 10.8701C1.07281 11.7801 1.62526 12.6069 2.3217 13.3033C3.01814 13.9997 3.84493 14.5522 4.75487 14.9291C5.66482 15.306 6.64009 15.5 7.625 15.5C9.61412 15.5 11.5218 14.7098 12.9283 13.3033C14.3348 11.8968 15.125 9.98912 15.125 8C15.125 6.01088 14.3348 4.10322 12.9283 2.6967C11.5218 1.29018 9.61412 0.5 7.625 0.5ZM8.25 11.375C8.25 11.5408 8.18415 11.6997 8.06694 11.8169C7.94973 11.9342 7.79076 12 7.625 12C7.45924 12 7.30027 11.9342 7.18306 11.8169C7.06585 11.6997 7 11.5408 7 11.375V6.938C7 6.77224 7.06585 6.61327 7.18306 6.49606C7.30027 6.37885 7.45924 6.313 7.625 6.313C7.79076 6.313 7.94973 6.37885 8.06694 6.49606C8.18415 6.61327 8.25 6.77224 8.25 6.938V11.375ZM8.25 5L8 5.25H7.25L7 5V4.25L7.25 4H8L8.25 4.25V5Z" fill="black" />
3
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M0.0189877 13.6645L0.612989 10.4635C0.687989 10.0545 0.884989 9.6805 1.18099 9.3825L9.98199 0.5805C10.756 -0.1925 12.015 -0.1945 12.792 0.5805L14.42 2.2085C15.194 2.9835 15.194 4.2435 14.42 5.0185L5.61599 13.8215C5.31999 14.1165 4.94599 14.3125 4.53799 14.3875L1.33599 14.9815C1.26599 14.9935 1.19799 15.0005 1.12999 15.0005C0.832989 15.0005 0.544988 14.8835 0.330988 14.6695C0.0679874 14.4055 -0.0490122 14.0305 0.0189877 13.6645ZM12.472 5.1965L13.632 4.0365L13.631 3.1885L11.811 1.3675L10.963 1.3685L9.80299 2.5285L12.472 5.1965ZM4.31099 13.1585C4.47099 13.1285 4.61799 13.0515 4.73399 12.9345L11.587 6.0815L8.91899 3.4135L2.06599 10.2655C1.94899 10.3835 1.87199 10.5305 1.84099 10.6915L1.36699 13.2485L1.75199 13.6335L4.31099 13.1585Z" fill="black"/>
3
+ </svg>
4
+
5
+ <!--path d="M0.0189877 14.1645L0.612989 10.9635C0.687989 10.5545 0.884989 10.1805 1.18099 9.8825L9.98199 1.0805C10.756 0.3075 12.015 0.3055 12.792 1.0805L14.42 2.7085C15.194 3.4835 15.194 4.7435 14.42 5.5185L5.61599 14.3215C5.31999 14.6165 4.94599 14.8125 4.53799 14.8875L1.33599 15.4815C1.26599 15.4935 1.19799 15.5005 1.12999 15.5005C0.832989 15.5005 0.544988 15.3835 0.330988 15.1695C0.0679874 14.9055 -0.0490122 14.5305 0.0189877 14.1645ZM12.472 5.6965L13.632 4.5365L13.631 3.6885L11.811 1.8675L10.963 1.8685L9.80299 3.0285L12.472 5.6965ZM4.31099 13.6585C4.47099 13.6285 4.61799 13.5515 4.73399 13.4345L11.587 6.5815L8.91899 3.9135L2.06599 10.7655C1.94899 10.8835 1.87199 11.0305 1.84099 11.1915L1.36699 13.7485L1.75199 14.1335L4.31099 13.6585Z" fill="black"/-->
@@ -0,0 +1,3 @@
1
+ <svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M13.6241 11.7759L18.3331 7.06694C18.4423 6.94811 18.5015 6.79167 18.4981 6.63028C18.4948 6.46889 18.4292 6.31502 18.3152 6.20081C18.2011 6.0866 18.0473 6.02088 17.8859 6.01736C17.7245 6.01384 17.568 6.0728 17.4491 6.18194L12.7601 10.8709H12.2721L7.58306 6.18294C7.52495 6.12489 7.45598 6.07886 7.38008 6.04747C7.30418 6.01609 7.22284 5.99995 7.14071 6C7.05857 6.00005 6.97725 6.01627 6.90139 6.04774C6.82553 6.07922 6.75661 6.12533 6.69856 6.18344C6.64052 6.24155 6.59449 6.31052 6.5631 6.38642C6.53171 6.46232 6.51558 6.54366 6.51563 6.62579C6.51572 6.79167 6.5817 6.95071 6.69906 7.06794L11.3861 11.7539V12.2449L6.69906 16.9319C6.5898 17.0508 6.53066 17.2072 6.53399 17.3686C6.53732 17.53 6.60288 17.6839 6.71696 17.7981C6.83104 17.9123 6.98483 17.978 7.14622 17.9815C7.3076 17.985 7.46411 17.9261 7.58306 17.8169L12.2701 13.1299H12.7611L17.4481 17.8169C17.5656 17.934 17.7247 17.9997 17.8906 17.9997C18.0564 17.9997 18.2155 17.934 18.3331 17.8169C18.4504 17.6996 18.5163 17.5404 18.5163 17.3744C18.5163 17.2085 18.4504 17.0493 18.3331 16.9319L13.6241 12.2229V11.7759Z" fill="black"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M8.36645 2.34562C8.13878 2.21813 7.86122 2.21813 7.63355 2.34562L1.38355 5.84562C1.14669 5.97826 1 6.22853 1 6.5C1 6.77147 1.14669 7.02174 1.38355 7.15438L7.63355 10.6544C7.86122 10.7819 8.13878 10.7819 8.36645 10.6544L14.6165 7.15438C14.8533 7.02174 15 6.77147 15 6.5C15 6.22853 14.8533 5.97826 14.6165 5.84562L8.36645 2.34562ZM8 9.14041L3.28499 6.5L8 3.85959L12.715 6.5L8 9.14041ZM1.63647 9.0766L7.99999 12.6404L14.3255 9.09761L15.0585 10.4063L8.36649 14.1543C8.13881 14.2818 7.86122 14.2819 7.63353 14.1543L0.903534 10.3853L1.63647 9.0766Z" fill="black"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="8" height="10" viewBox="0 0 8 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M4.23336 7.46639L7.84736 3.85339C7.89401 3.8071 7.93104 3.75203 7.9563 3.69136C7.98157 3.63069 7.99458 3.56562 7.99458 3.49989C7.99458 3.43417 7.98157 3.3691 7.9563 3.30843C7.93104 3.24776 7.89401 3.19269 7.84736 3.14639C7.75359 3.05266 7.62644 3 7.49386 3C7.36127 3 7.23412 3.05266 7.14036 3.14639L3.99236 6.29339L0.847356 3.14739C0.753055 3.05631 0.626754 3.00592 0.495655 3.00706C0.364557 3.0082 0.239151 3.06078 0.146447 3.15348C0.0537425 3.24619 0.00115811 3.37159 1.89013e-05 3.50269C-0.00112031 3.63379 0.0492769 3.76009 0.140356 3.85439L3.75236 7.46739L4.23336 7.46639Z" fill="black"/>
3
+ </svg>
@@ -0,0 +1,7 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask">
3
+ <rect width="16" height="16" rx="2" fill="white"/>
4
+ <path d="M12 8L4 8" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
5
+ </mask>
6
+ <rect width="16" height="16" fill="black" mask="url(#mask)"/>
7
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M7.00488 9.75V14C7.00488 14.1658 7.07073 14.3247 7.18794 14.4419C7.30515 14.5592 7.46412 14.625 7.62988 14.625C7.79564 14.625 7.95461 14.5592 8.07183 14.4419C8.18904 14.3247 8.25488 14.1658 8.25488 14V9.75L8.75488 9.25H13.0049C13.1706 9.25 13.3296 9.18415 13.4468 9.06694C13.564 8.94973 13.6299 8.79076 13.6299 8.625C13.6299 8.45924 13.564 8.30027 13.4468 8.18306C13.3296 8.06585 13.1706 8 13.0049 8H8.75488L8.25488 7.5V3.25C8.25488 3.08424 8.18904 2.92527 8.07183 2.80806C7.95461 2.69085 7.79564 2.625 7.62988 2.625C7.46412 2.625 7.30515 2.69085 7.18794 2.80806C7.07073 2.92527 7.00488 3.08424 7.00488 3.25V7.5L6.50488 8H2.25488C2.08912 8 1.93015 8.06585 1.81294 8.18306C1.69573 8.30027 1.62988 8.45924 1.62988 8.625C1.62988 8.79076 1.69573 8.94973 1.81294 9.06694C1.93015 9.18415 2.08912 9.25 2.25488 9.25H6.39188L7.00488 9.75Z" fill="black"/>
3
+ </svg>
package/dist/lib/index.js CHANGED
@@ -8795,7 +8795,7 @@ module.exports = uniqueId;
8795
8795
  /***/ 824
8796
8796
  (module, __unused_webpack_exports, __webpack_require__) {
8797
8797
 
8798
- module.exports = __webpack_require__.p + "2a7d8bfaf2d43f53bd71.mjs";
8798
+ module.exports = __webpack_require__.p + "5b29822d0b078939cf78.mjs";
8799
8799
 
8800
8800
  /***/ }
8801
8801
 
@@ -8849,36 +8849,6 @@ module.exports = __webpack_require__.p + "2a7d8bfaf2d43f53bd71.mjs";
8849
8849
  /******/ };
8850
8850
  /******/ })();
8851
8851
  /******/
8852
- /******/ /* webpack/runtime/create fake namespace object */
8853
- /******/ (() => {
8854
- /******/ var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);
8855
- /******/ var leafPrototypes;
8856
- /******/ // create a fake namespace object
8857
- /******/ // mode & 1: value is a module id, require it
8858
- /******/ // mode & 2: merge all properties of value into the ns
8859
- /******/ // mode & 4: return value when already ns object
8860
- /******/ // mode & 16: return value when it's Promise-like
8861
- /******/ // mode & 8|1: behave like require
8862
- /******/ __webpack_require__.t = function(value, mode) {
8863
- /******/ if(mode & 1) value = this(value);
8864
- /******/ if(mode & 8) return value;
8865
- /******/ if(typeof value === 'object' && value) {
8866
- /******/ if((mode & 4) && value.__esModule) return value;
8867
- /******/ if((mode & 16) && typeof value.then === 'function') return value;
8868
- /******/ }
8869
- /******/ var ns = Object.create(null);
8870
- /******/ __webpack_require__.r(ns);
8871
- /******/ var def = {};
8872
- /******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
8873
- /******/ for(var current = mode & 2 && value; (typeof current == 'object' || typeof current == 'function') && !~leafPrototypes.indexOf(current); current = getProto(current)) {
8874
- /******/ Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));
8875
- /******/ }
8876
- /******/ def['default'] = () => (value);
8877
- /******/ __webpack_require__.d(ns, def);
8878
- /******/ return ns;
8879
- /******/ };
8880
- /******/ })();
8881
- /******/
8882
8852
  /******/ /* webpack/runtime/define property getters */
8883
8853
  /******/ (() => {
8884
8854
  /******/ // define getter functions for harmony exports
@@ -8909,7 +8879,7 @@ module.exports = __webpack_require__.p + "2a7d8bfaf2d43f53bd71.mjs";
8909
8879
  /******/ // This function allow to reference async chunks
8910
8880
  /******/ __webpack_require__.u = (chunkId) => {
8911
8881
  /******/ // return url for filenames based on template
8912
- /******/ return "" + ({"79":"pdfjs-viewer-css","157":"pdfjs-viewer","956":"pdfjs-lib"}[chunkId] || chunkId) + ".js";
8882
+ /******/ return "" + {"79":"pdfjs-viewer-css","157":"pdfjs-viewer","956":"pdfjs-lib"}[chunkId] + ".js";
8913
8883
  /******/ };
8914
8884
  /******/ })();
8915
8885
  /******/
@@ -9370,7 +9340,7 @@ function util_toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var
9370
9340
  const CLIENT_NAME = "box-content-preview"; // eslint-disable-line no-undef
9371
9341
  const CLIENT_NAME_KEY = 'box_client_name';
9372
9342
  const CLIENT_VERSION_KEY = 'box_client_version';
9373
- const CLIENT_VERSION = "3.41.0"; // eslint-disable-line no-undef
9343
+ const CLIENT_VERSION = "3.43.0"; // eslint-disable-line no-undef
9374
9344
  const HEADER_CLIENT_NAME = 'X-Box-Client-Name';
9375
9345
  const HEADER_CLIENT_VERSION = 'X-Box-Client-Version';
9376
9346
  const PROMISE_MAP = {};
@@ -11088,7 +11058,7 @@ class Browser {
11088
11058
  ;// ./src/lib/Logger.js
11089
11059
  /* eslint-disable no-undef */
11090
11060
  const Logger_CLIENT_NAME = "box-content-preview";
11091
- const Logger_CLIENT_VERSION = "3.41.0";
11061
+ const Logger_CLIENT_VERSION = "3.43.0";
11092
11062
  /* eslint-enable no-undef */
11093
11063
 
11094
11064
  class Logger {
@@ -13782,6 +13752,7 @@ class ControlsRoot {
13782
13752
  let {
13783
13753
  className = 'bp-ControlsRoot',
13784
13754
  containerEl,
13755
+ fileExtension,
13785
13756
  fileId,
13786
13757
  onHide = (noop_default()),
13787
13758
  onShow = (noop_default())
@@ -13813,6 +13784,7 @@ class ControlsRoot {
13813
13784
  this.controlsEl.setAttribute('data-testid', 'bp-controls');
13814
13785
  this.controlsEl.setAttribute('data-resin-component', 'toolbar');
13815
13786
  this.controlsEl.setAttribute('data-resin-fileid', fileId);
13787
+ this.controlsEl.setAttribute('data-resin-fileextension', fileExtension || '');
13816
13788
  this.containerEl = containerEl;
13817
13789
  this.containerEl.addEventListener('mousemove', this.handleMouseMove);
13818
13790
  this.containerEl.addEventListener('touchstart', this.handleTouchStart);
@@ -14058,6 +14030,7 @@ class ImageBaseViewer extends viewers_BaseViewer {
14058
14030
  loadUI() {
14059
14031
  this.controls = new ControlsRoot({
14060
14032
  containerEl: this.containerEl,
14033
+ fileExtension: this.options.file.extension,
14061
14034
  fileId: this.options.file.id
14062
14035
  });
14063
14036
  }
@@ -14204,6 +14177,13 @@ class ImageBaseViewer extends viewers_BaseViewer {
14204
14177
  return;
14205
14178
  }
14206
14179
  this.isPinching = true;
14180
+ this.options.resin?.recordAction({
14181
+ action: 'programmatic',
14182
+ component: 'toolbar',
14183
+ target: event.deltaY > 0 ? 'zoomOut' : 'zoomIn',
14184
+ fileId: this.options.file.id,
14185
+ fileExtension: this.options.file.extension
14186
+ });
14207
14187
  }
14208
14188
 
14209
14189
  // Reset pinch session after a brief idle (no explicit "pinch end" event exists)
@@ -19458,8 +19438,23 @@ class TextBaseViewer extends viewers_BaseViewer {
19458
19438
  wheelZoomHandler(event) {
19459
19439
  const textEl = this.containerEl && this.containerEl.querySelector('.bp-text');
19460
19440
  if (!event.ctrlKey || !textEl) {
19441
+ this.isPinching = false;
19461
19442
  return;
19462
19443
  }
19444
+ if (!this.isPinching) {
19445
+ this.isPinching = true;
19446
+ this.options.resin?.recordAction({
19447
+ action: 'programmatic',
19448
+ component: 'toolbar',
19449
+ target: event.deltaY > 0 ? 'zoomOut' : 'zoomIn',
19450
+ fileId: this.options.file.id,
19451
+ fileExtension: this.options.file.extension
19452
+ });
19453
+ }
19454
+ clearTimeout(this.pinchIdleTimer);
19455
+ this.pinchIdleTimer = setTimeout(() => {
19456
+ this.isPinching = false;
19457
+ }, 200);
19463
19458
  event.preventDefault();
19464
19459
  const scaleDelta = -event.deltaY * WHEEL_ZOOM_SCALE_FACTOR;
19465
19460
  const newScale = Math.min(ZOOM_MAX, Math.max(ZOOM_MIN, this.scale + scaleDelta));
@@ -19580,6 +19575,7 @@ class TextBaseViewer extends viewers_BaseViewer {
19580
19575
  loadUI() {
19581
19576
  this.controls = new ControlsRoot({
19582
19577
  containerEl: this.containerEl,
19578
+ fileExtension: this.options.file.extension,
19583
19579
  fileId: this.options.file.id
19584
19580
  });
19585
19581
  this.bindDOMListeners();
@@ -32094,9 +32090,24 @@ class DocBaseViewer extends viewers_BaseViewer {
32094
32090
  * Loads the viewer assets as opposed to just prefetching them as a performance optimization. This means that the libraries will be loaded
32095
32091
  * into memory eliminating the need to load them when a preview is clicked.
32096
32092
  *
32093
+ * @param {Object} [options]
32094
+ * @param {boolean} [options.isUseNpmPdfjsEnabled] - Warm up the npm-bundled
32095
+ * pdfjs chunks instead of the legacy CDN scripts so this matches what
32096
+ * `load()` will use when the flag is on.
32097
32097
  * @return {void}
32098
32098
  */
32099
32099
  loadViewerAssets() {
32100
+ let {
32101
+ isUseNpmPdfjsEnabled = false
32102
+ } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
32103
+ if (isUseNpmPdfjsEnabled) {
32104
+ this.loadAssets(EXIF_READER, []);
32105
+ // Kick off the dynamic imports so the pdfjs chunks land in cache
32106
+ // before per-file load() awaits them. Errors are swallowed; load()
32107
+ // will surface them later.
32108
+ this.loadPdfjsFromNpm().catch(() => {});
32109
+ return;
32110
+ }
32100
32111
  const ASSETS = [...JS_NO_EXIF, ...EXIF_READER];
32101
32112
  this.loadAssets(ASSETS, docAssets_CSS);
32102
32113
  this.loadAssets(PRELOAD_JS, []);
@@ -32825,7 +32836,7 @@ class DocBaseViewer extends viewers_BaseViewer {
32825
32836
  async loadPdfjsFromNpm() {
32826
32837
  // pdf_viewer.mjs reads globalThis.pdfjsLib at evaluation time, which is set as a
32827
32838
  // side effect of evaluating pdf.min.mjs. Load pdf.min.mjs first, then pdf_viewer.mjs.
32828
- this.pdfjsLib = await Promise.all(/* import() | pdfjs-lib */[__webpack_require__.e(274), __webpack_require__.e(956)]).then(__webpack_require__.bind(__webpack_require__, 5274));
32839
+ this.pdfjsLib = await __webpack_require__.e(/* import() | pdfjs-lib */ 956).then(__webpack_require__.bind(__webpack_require__, 5274));
32829
32840
  this.pdfjsViewer = await __webpack_require__.e(/* import() | pdfjs-viewer */ 157).then(__webpack_require__.bind(__webpack_require__, 4183));
32830
32841
  await Promise.all(/* import() | pdfjs-viewer-css */[__webpack_require__.e(88), __webpack_require__.e(79)]).then(__webpack_require__.bind(__webpack_require__, 9187));
32831
32842
  }
@@ -32970,6 +32981,7 @@ class DocBaseViewer extends viewers_BaseViewer {
32970
32981
  loadUI() {
32971
32982
  this.controls = new ControlsRoot({
32972
32983
  containerEl: this.containerEl,
32984
+ fileExtension: this.options.file.extension,
32973
32985
  fileId: this.options.file.id
32974
32986
  });
32975
32987
  this.annotationControlsFSM.subscribe(() => this.renderUI());
@@ -33394,8 +33406,23 @@ class DocBaseViewer extends viewers_BaseViewer {
33394
33406
  }
33395
33407
  trackpadPinchToZoomHandler(event) {
33396
33408
  if (!event.ctrlKey) {
33409
+ this.isTrackpadPinching = false;
33397
33410
  return;
33398
33411
  }
33412
+ if (!this.isTrackpadPinching) {
33413
+ this.isTrackpadPinching = true;
33414
+ this.options.resin?.recordAction({
33415
+ action: 'programmatic',
33416
+ component: 'toolbar',
33417
+ target: event.deltaY > 0 ? 'zoomOut' : 'zoomIn',
33418
+ fileId: this.options.file.id,
33419
+ fileExtension: this.options.file.extension
33420
+ });
33421
+ }
33422
+ clearTimeout(this.trackpadPinchIdleTimer);
33423
+ this.trackpadPinchIdleTimer = setTimeout(() => {
33424
+ this.isTrackpadPinching = false;
33425
+ }, 200);
33399
33426
  event.preventDefault();
33400
33427
  const {
33401
33428
  currentScale
@@ -40223,16 +40250,18 @@ class Preview extends (events_default()) {
40223
40250
  *
40224
40251
  * @public
40225
40252
  * @param {string[]} [viewerNames] - Names of viewers to load assets for, defaults to none
40253
+ * @param {Object} [options] - Options forwarded to the viewer's loadViewerAssets
40226
40254
  * @return {void}
40227
40255
  */
40228
40256
  loadViewers() {
40229
40257
  let viewerNames = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
40258
+ let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
40230
40259
  this.getViewers().filter(viewer => viewerNames.includes(viewer.NAME)).forEach(viewer => {
40231
40260
  const viewerInstance = new viewer.CONSTRUCTOR(this.createViewerOptions({
40232
40261
  viewer
40233
40262
  }));
40234
40263
  if (typeof viewerInstance.loadViewerAssets === 'function') {
40235
- viewerInstance.loadViewerAssets();
40264
+ viewerInstance.loadViewerAssets(options);
40236
40265
  }
40237
40266
  });
40238
40267
  }
@@ -40531,6 +40560,9 @@ class Preview extends (events_default()) {
40531
40560
  this.options.preloadStatus = options.preloadStatus;
40532
40561
  this.options.clientName = options.clientName;
40533
40562
 
40563
+ // Optional resin analytics instance for tracking user interactions
40564
+ this.options.resin = options.resin;
40565
+
40534
40566
  // Options that are applicable to certain file ids
40535
40567
  this.options.fileOptions = options.fileOptions || {};
40536
40568