@softistx/material 3.248.0 → 3.250.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 (228) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +8 -4
  3. package/dist/adopt-styles-C3MfGnxE.js +20 -0
  4. package/dist/{async-slice-C5HfFq1M.js → async-slice-DdEr7vFx.js} +1 -1
  5. package/dist/{audio-player-2kKst8lH.js → audio-player-DMYszRGT.js} +3 -3
  6. package/dist/{audio-player-viewer-D9DsYBcy.js → audio-player-viewer-z13yCjo4.js} +2 -2
  7. package/dist/{autocomplete-JuRCjl48.js → autocomplete-Bgf_AJ6U.js} +11 -11
  8. package/dist/{avatar-CvvdaBu4.js → avatar-WvTropuJ.js} +1 -1
  9. package/dist/blank-placeholder-DZIFJ0DG.js +17 -0
  10. package/dist/{breadcrumb-DacRqg91.js → breadcrumb-DYa6pVsq.js} +5 -5
  11. package/dist/{button-CpUMPIdk.js → button-RsWgka2v.js} +1 -1
  12. package/dist/{calculator-BYgFgWHL.js → calculator-DPHCuAZy.js} +11 -11
  13. package/dist/calculator-field.js +6 -6
  14. package/dist/{calculator-segment-DCHWZy6b.js → calculator-segment-Ckn9Fua9.js} +1 -1
  15. package/dist/calculator.js +1 -1
  16. package/dist/canvas-BShNj4yp.js +144 -0
  17. package/dist/capture-outputs-qcYUPW6K.js +174 -0
  18. package/dist/capture-toolbar.css +2 -0
  19. package/dist/capture-toolbar.js +858 -0
  20. package/dist/capture.js +53 -139
  21. package/dist/charts.js +3 -3
  22. package/dist/{chip-CjJPmAYO.js → chip-tyDM0lpO.js} +2 -2
  23. package/dist/{code-editor-nNcxtslA.js → code-editor-gHHXEwF-.js} +6 -6
  24. package/dist/code-editor.js +6 -6
  25. package/dist/{code-file-viewer-CcESl49v.js → code-file-viewer-CYQcskvt.js} +4 -4
  26. package/dist/{code-language-items-CW8_Si05.js → code-language-items-DDFuDf_E.js} +2 -2
  27. package/dist/{components-BdMaUeOm.js → components-DUvKQIBi.js} +16714 -20832
  28. package/dist/components.js +83 -79
  29. package/dist/{confirm-dialog-B2eonW2X.js → confirm-dialog-IHvPA3O2.js} +4 -4
  30. package/dist/{conversion-variant-DZm_xgUK.js → conversion-variant-MWTjnFnG.js} +5 -5
  31. package/dist/{currency-field-UIkYAlvP.js → currency-field-Bd9od1Ee.js} +5 -5
  32. package/dist/{detail-panel-header-CL2_tUG0.js → detail-panel-header-D2a63Sk3.js} +1 -1
  33. package/dist/{details-content-CPzj3vUr.js → details-content-CnN_ukTA.js} +6 -6
  34. package/dist/{details-header-band-D-CyB_Xx.js → details-header-band-wcgmC7qC.js} +5 -5
  35. package/dist/{details-host-BvYgFIWx.js → details-host-DKEaGH4P.js} +1 -1
  36. package/dist/{details-sheet-D4PTV_jR.js → details-sheet-CtNM4oDU.js} +2 -2
  37. package/dist/{details-shell-D4XoPRBu.js → details-shell-DZ80h6mN.js} +1 -1
  38. package/dist/{dialog-CleLsHkZ.js → dialog-DwUxG2-o.js} +1 -1
  39. package/dist/{dialog-app-bar-CLC990e6.js → dialog-app-bar-BsJ4UwKb.js} +2 -2
  40. package/dist/dist-Cb17ixQs.js +16 -0
  41. package/dist/dist-CyqFzDZ6.js +11 -0
  42. package/dist/dnd.js +1 -1
  43. package/dist/draw.js +1 -1
  44. package/dist/{drop-overlay-BTkVfscF.js → drop-overlay-B26hx0-T.js} +2 -2
  45. package/dist/{dropdown-menu-BoJC2DEH.js → dropdown-menu-D-PRbHaP.js} +1 -1
  46. package/dist/{editable-section-CTRGfbLJ.js → editable-section-DPmF1flG.js} +3 -3
  47. package/dist/editor.js +14 -14
  48. package/dist/embed-chunks/{avatar-GlGqPU7B.js → avatar-CSDtFCum.js} +1 -1
  49. package/dist/embed-chunks/{dist-BrYZYfsJ.js → dist-BVPJSDov.js} +2 -2
  50. package/dist/embed-chunks/{emoji-picker-BSYBi_C8.js → emoji-picker-CrIXB9pF.js} +23 -23
  51. package/dist/embed-chunks/{mention-list-NW43QcRq.js → mention-list-9hwOYNND.js} +3 -3
  52. package/dist/embed-chunks/{nxgt-theme-provider-B1aeqDja.js → nxgt-theme-provider-Cjl7Eb8v.js} +703 -592
  53. package/dist/embed-chunks/switch-control-BrwJRN_V.js +207 -0
  54. package/dist/embed-chunks/{tabs-root-CY-uLp1C.js → tabs-root-BvPc1aaV.js} +6 -6
  55. package/dist/embed-chunks/{use-shape-morph-NrJQMv7i.js → use-shape-morph-D1MOoQ4T.js} +110 -2
  56. package/dist/embed-chunks/{useLatest-B57qw3XH.js → useLatest-CbcU5ozz.js} +323 -323
  57. package/dist/embed.css +2 -2
  58. package/dist/embed.js +1280 -741
  59. package/dist/{emoji-picker-DZbTd3Fr.js → emoji-picker-DabgsEVQ.js} +7 -7
  60. package/dist/{empty-state-DBSJDLKL.js → empty-state-BylD7RYH.js} +1 -1
  61. package/dist/{error-state-kauz4If4.js → error-state-BTe_NzTC.js} +2 -2
  62. package/dist/fab-DUnGwNE7.js +41 -0
  63. package/dist/fab-dock-By2pLVh7.js +49 -0
  64. package/dist/{feature-popup-CcXMGFES.js → feature-popup-CW7VS2fx.js} +1 -1
  65. package/dist/{blank-placeholder-DeDn5Xor.js → field-box-BXN-uyrv.js} +1 -16
  66. package/dist/{field-group-BpV74Ttu.js → field-group-B2Ozd5Jn.js} +1 -1
  67. package/dist/{file-dialogs-CbdvmY__.js → file-dialogs-CgEXaCev.js} +7 -7
  68. package/dist/{file-manager-shell-DLaJ5Z_L.js → file-manager-shell-Tqduf5lh.js} +21 -21
  69. package/dist/{file-preview-host-RhZvGGqC.js → file-preview-host-CM4pV3ZD.js} +2367 -2384
  70. package/dist/{file-viewer-body-DM3RkXGn.js → file-viewer-body-DrWFmnp4.js} +3 -3
  71. package/dist/{file-viewer-dialog-impl-ei5EYj8k.js → file-viewer-dialog-impl-DZpuZZ7x.js} +2 -2
  72. package/dist/files-drop.js +1 -1
  73. package/dist/files-picker.js +8 -8
  74. package/dist/files.js +3 -3
  75. package/dist/{financial-variant-BNdOqzA5.js → financial-variant-ljdP0JL4.js} +5 -5
  76. package/dist/{flow-diagram-BBB6r8--.js → flow-diagram-DwUnyl0u.js} +1 -1
  77. package/dist/{gallery-CIIJHpmj.js → gallery-DfN2KE4Y.js} +11 -11
  78. package/dist/{gallery-file-viewer-DkshswFr.js → gallery-file-viewer-BfFWfLIF.js} +3 -3
  79. package/dist/{gl-markers-abqcNuYT.js → gl-markers-CBNFeWIk.js} +3 -3
  80. package/dist/{hooks-D6lOSXA5.js → hooks-DiAhgchz.js} +3 -3
  81. package/dist/hooks.js +3 -3
  82. package/dist/i18n.js +3 -3
  83. package/dist/{icon-button-GKYj7uC4.js → icon-button-D-gi4Plg.js} +1 -1
  84. package/dist/image-editor-mmhbsqs-.js +4423 -0
  85. package/dist/image-editor.css +1 -1
  86. package/dist/image-editor.js +1157 -996
  87. package/dist/image-markup-editor-D-QkZWKf.js +24 -0
  88. package/dist/input-CWf3Apid.js +18 -0
  89. package/dist/input-box-moFuoMt0.js +15 -0
  90. package/dist/{input-group-CKO68Pyi.js → input-group-Bb8sAFRF.js} +3 -2
  91. package/dist/{item-details-l_-rk3Hj.js → item-details-BWdHMfsS.js} +7 -7
  92. package/dist/keypad.js +2 -2
  93. package/dist/lib/capture/engine/canvas.d.ts +17 -0
  94. package/dist/lib/capture/engine/capture.d.ts +19 -0
  95. package/dist/lib/capture/engine/filters.d.ts +27 -0
  96. package/dist/lib/capture/engine/rect.d.ts +26 -0
  97. package/dist/lib/capture/engine/types.d.ts +66 -0
  98. package/dist/lib/capture/index.d.ts +16 -0
  99. package/dist/lib/capture/modes/capture-mode.d.ts +24 -0
  100. package/dist/lib/capture/modes/countdown.d.ts +16 -0
  101. package/dist/lib/capture/modes/full-page.d.ts +14 -0
  102. package/dist/lib/capture/modes/pick-element.d.ts +22 -0
  103. package/dist/lib/capture/modes/scroller.d.ts +13 -0
  104. package/dist/lib/capture/modes/visible.d.ts +3 -0
  105. package/dist/lib/capture-toolbar/index.d.ts +25 -0
  106. package/dist/lib/capture-toolbar/lazy-capture-outputs.d.ts +2 -0
  107. package/dist/lib/capture-toolbar/outputs-encode.d.ts +25 -0
  108. package/dist/lib/capture-toolbar/outputs.d.ts +38 -0
  109. package/dist/lib/capture-toolbar/partials/capture-editor.d.ts +11 -0
  110. package/dist/lib/capture-toolbar/partials/capture-outputs.d.ts +16 -0
  111. package/dist/lib/capture-toolbar/region-overlay.d.ts +15 -0
  112. package/dist/lib/capture-toolbar/screen-capture-toolbar.d.ts +31 -0
  113. package/dist/lib/capture-toolbar/types.d.ts +117 -0
  114. package/dist/lib/capture-toolbar/use-screen-capture.d.ts +16 -0
  115. package/dist/lib/components/ui/layout/account-frame/account-frame.d.ts +2 -2
  116. package/dist/lib/components/ui/media/attachment-list/attachment-list.d.ts +2 -2
  117. package/dist/lib/components/ui/media/image-editor/image-markup-editor.d.ts +11 -3
  118. package/dist/lib/components/ui/media/image-editor/types-edits.d.ts +7 -0
  119. package/dist/lib/components/ui/media/image-editor/types-session.d.ts +1 -1
  120. package/dist/lib/components/ui/media/image-editor/types.d.ts +8 -0
  121. package/dist/lib/embed/index.d.ts +6 -1
  122. package/dist/lib/i18n/resources/resources.d.ts +108 -0
  123. package/dist/lib/i18n/translator.d.ts +1 -1
  124. package/dist/lib/image-editor/index.d.ts +1 -1
  125. package/dist/lib.js +38 -56
  126. package/dist/{list-sheet-D22J9I-K.js → list-sheet-CejfrKJr.js} +1 -1
  127. package/dist/{loading-indicator-sDzxZg8f.js → loading-indicator-BBjOF25N.js} +1 -1
  128. package/dist/main.js +103 -98
  129. package/dist/{map-draw-DfbfT0eJ.js → map-draw-DyRy9SSV.js} +2 -2
  130. package/dist/map-draw.js +5 -5
  131. package/dist/map-static.js +1 -1
  132. package/dist/{map-view-DAx2zvV-.js → map-view-YfuYD3zS.js} +9 -9
  133. package/dist/map-zone-events.js +1 -1
  134. package/dist/map-zone-field.js +7 -7
  135. package/dist/map.js +10 -10
  136. package/dist/{marker-button-D7hEvEZD.js → marker-button-CXBaToHp.js} +1 -1
  137. package/dist/{marker-count-image-CWS3G-k8.js → marker-count-image-DHuzSev9.js} +1 -1
  138. package/dist/material.css +1 -1
  139. package/dist/{measure-manual-Bfvu8B_R.js → measure-manual-CcESmV1d.js} +3 -3
  140. package/dist/{measurement-B-OeWv7j.js → measurement-D2or6yM_.js} +1 -1
  141. package/dist/{media-player-DGXmWK7W.js → media-player-qW9RXFuO.js} +451 -567
  142. package/dist/{media-player-viewer-C3vXYcd8.js → media-player-viewer-DozPiF6T.js} +2 -2
  143. package/dist/{media-surface-BySonDjv.js → media-surface-BJsdNynm.js} +6 -6
  144. package/dist/{mention-list-BpoZHwO6.js → mention-list-z1wnlJgs.js} +2 -2
  145. package/dist/{native-select-Dg4bc7aC.js → native-select-BnDOVnER.js} +1 -1
  146. package/dist/{nxgt-theme-Ob-uFqU_.js → nxgt-theme-EYZ5aFHi.js} +6 -15
  147. package/dist/nxgt-theme-provider-BPXd3h82.js +40 -0
  148. package/dist/outputs-DF-aVqUO.js +81 -0
  149. package/dist/passkey.js +1 -1
  150. package/dist/{pdf-form-filler-DgH52W2Q.js → pdf-form-filler-Ct4eexhZ.js} +34 -34
  151. package/dist/pdf-form.js +2 -2
  152. package/dist/{pdf-reader-Bilz5foK.js → pdf-reader-khpMMEjU.js} +16 -16
  153. package/dist/{pdf-reader-viewer-DwQP2IpV.js → pdf-reader-viewer-B3_TdFOn.js} +2 -2
  154. package/dist/pdf-reader.js +2 -2
  155. package/dist/{percent-field-Ldc7K2wC.js → percent-field-Bu-PmCNR.js} +2 -2
  156. package/dist/{picker-surface-DZQbBgvA.js → picker-surface-THexE1OU.js} +3 -3
  157. package/dist/{popover-DwsaHFrK.js → popover-osl5duoA.js} +1 -1
  158. package/dist/portal-container-provider-fZFUk-ZB.js +11 -0
  159. package/dist/{pos-types-CKDG7pZA.js → pos-types-BPPae99i.js} +1 -1
  160. package/dist/{pos-variant-9nhz-ZzW.js → pos-variant-D6bDUqwV.js} +4 -4
  161. package/dist/print.js +1 -1
  162. package/dist/{programmer-variant-BzwfeMGC.js → programmer-variant-CDlFE24o.js} +2 -2
  163. package/dist/{progress-BBfp7sMi.js → progress-DjHnanxA.js} +2 -2
  164. package/dist/{progress-linear-BOJbHnzd.js → progress-linear-CTJ_U6kY.js} +1 -1
  165. package/dist/{public-I8nb8pCC.js → public-u9u2Osmx.js} +6 -6
  166. package/dist/{rendition-stage-A1nHXYrA.js → rendition-stage-BXjQpfKK.js} +2 -2
  167. package/dist/{rich-code-block-BJERY3N3.js → rich-code-block-DWSzyQRw.js} +5 -5
  168. package/dist/{scientific-variant-st2NBm1K.js → scientific-variant-DCgApH87.js} +2 -2
  169. package/dist/{scroll-area-B3XstZU2.js → scroll-area-BxKiT4Dn.js} +155 -164
  170. package/dist/{search-field-D3AOJr7s.js → search-field-Cgqa2bQf.js} +2 -2
  171. package/dist/{select-DhfzCkun.js → select-BGhRlBh4.js} +166 -179
  172. package/dist/{sheet-B8cO1T5K.js → sheet-BvNVroog.js} +1 -1
  173. package/dist/{signature-dialog-BNLMPgao.js → signature-dialog-x--_QWRB.js} +5 -5
  174. package/dist/signature.js +1 -1
  175. package/dist/{site-footer-cta-Cx7zsvkq.js → site-footer-cta-B3Kfqpep.js} +4 -4
  176. package/dist/{site-footer-link-Di8IMIw0.js → site-footer-link-SFHrO4ld.js} +1 -1
  177. package/dist/{size-slot-D1cKqb09.js → size-slot-Cb-W2Zm4.js} +1 -1
  178. package/dist/{sortable-provider-DrLnoygf.js → sortable-provider-KRScvvYx.js} +2 -2
  179. package/dist/{spinner-BpH9tE8R.js → spinner-DpB6XvJJ.js} +1 -1
  180. package/dist/switch-c_6OtXzW.js +125 -0
  181. package/dist/{tabs-root-BUnIfDah.js → tabs-root-C2n3K_Yv.js} +1 -1
  182. package/dist/{tags-form-BwqR4UVj.js → tags-form-BKB9fP03.js} +5 -5
  183. package/dist/{text-field-CFCHo07X.js → text-field-Dl7xTxZe.js} +2 -2
  184. package/dist/{textarea-B_iMDYgM.js → textarea-C3BGZELU.js} +1 -1
  185. package/dist/{textarea-field-DIOGxyUd.js → textarea-field-mqWhhbis.js} +2 -2
  186. package/dist/theme-picker.js +5 -4
  187. package/dist/{theme-toggle-CsBe64lm.js → theme-toggle-K-n5eq0T.js} +3 -3
  188. package/dist/theme-value-CD2nDrj_.js +12 -0
  189. package/dist/themes.js +15 -48
  190. package/dist/{toasts-McZnLRHP.js → toasts-DFLecXh0.js} +5 -5
  191. package/dist/{toggle-group-DKN1XLBS.js → toggle-group-DMDjNJWx.js} +1 -1
  192. package/dist/{toolbar-group-BmzGP_JO.js → toolbar-group-bttMdvg4.js} +1 -1
  193. package/dist/{toolbar-item-slot-BnqQLkVd.js → toolbar-item-slot-CBn3YjeE.js} +1 -1
  194. package/dist/{toolbar-items-C9uasXZ2.js → toolbar-items-zL5TYLf2.js} +4 -4
  195. package/dist/{toolbar-keep-focus-Vc5V-dX2.js → toolbar-keep-focus-C6bnzvpE.js} +2 -2
  196. package/dist/{tracked-layer-CjCXB_O6.js → tracked-layer-CYdLWRK-.js} +4 -4
  197. package/dist/{translate-material-C-qVvGLn.js → translate-material-DZNgWjYu.js} +1 -1
  198. package/dist/{translator-BrzI307E.js → translator-CrIFDzAz.js} +110 -2
  199. package/dist/{tree-DOAs456A.js → tree-CFXDccIe.js} +1 -1
  200. package/dist/{upload-host-ZpSSql8v.js → upload-host-DDktVohu.js} +9 -8
  201. package/dist/{use-calculator-keyboard-Ss25SRoM.js → use-calculator-keyboard-BWkYuIw5.js} +1 -1
  202. package/dist/{use-chat-composer-DopDN-zP.js → use-chat-composer-C1Qlnw2i.js} +20 -20
  203. package/dist/{use-file-meta-DyJX0JVs.js → use-file-meta-DcfQCh52.js} +1 -1
  204. package/dist/{use-heading-spy-CA2IAqMe.js → use-heading-spy-B9xEMHbZ.js} +2 -2
  205. package/dist/use-image-preview-BNq_RQm5.js +20 -0
  206. package/dist/{use-item-entries-CYbS5otl.js → use-item-entries-BKQHcWFx.js} +1 -1
  207. package/dist/{use-material-translation-eYySryw3.js → use-material-translation-ZEUtduro.js} +1 -1
  208. package/dist/{use-media-viewer-DoNdrzhN.js → use-media-viewer-DViJNx75.js} +1 -1
  209. package/dist/{use-text-preview-BQE4U9cT.js → use-text-preview-Ci97JKKo.js} +2 -2
  210. package/dist/{use-unsaved-guard-CSfDvdxd.js → use-unsaved-guard-CWlHEvjN.js} +2 -2
  211. package/dist/{viewer-CXF1dAv0.js → viewer-DDPJOxBt.js} +5 -5
  212. package/dist/{viewer-stage-class-CpyA8o-M.js → viewer-stage-class-DJ1uod4l.js} +4 -4
  213. package/dist/{viewer-states-BXyCdNhE.js → viewer-states-DkaPBkK4.js} +3 -3
  214. package/dist/{virtual-layer-rows-DHy8vAup.js → virtual-layer-rows-DKejQ_Jd.js} +1 -1
  215. package/dist/visible-B-IFZ4Nv.js +475 -0
  216. package/docs/components/media-and-files.md +1 -1
  217. package/docs/components/navigation-and-layout.md +2 -2
  218. package/docs/guides/capture.md +248 -0
  219. package/docs/guides/csp.md +1 -1
  220. package/docs/guides/embed.md +94 -2
  221. package/docs/roadmap.md +2 -1
  222. package/docs/troubleshooting.md +56 -0
  223. package/package.json +18 -1
  224. package/dist/embed-chunks/bubble-input-yXAeW84_.js +0 -29
  225. package/dist/embed-chunks/switch-control-ChcowM3u.js +0 -181
  226. package/dist/fab-dock-DqwbI-5n.js +0 -86
  227. package/dist/input-BaBE_MR_.js +0 -27
  228. /package/dist/{dist-B1qFabLJ.js → dist-B1qFabLJ2.js} +0 -0
package/dist/capture.js CHANGED
@@ -1,122 +1,19 @@
1
- //#region lib/capture/can-capture-screen.ts
2
- function e() {
3
- let e = navigator;
4
- return e.userAgentData?.mobile ? !0 : /iPhone|iPod|Android.+Mobile|Mobile.+Android|Windows Phone/i.test(e.userAgent);
5
- }
6
- function t() {
7
- return typeof navigator > "u" || typeof document > "u" || typeof navigator.mediaDevices?.getDisplayMedia != "function" ? !1 : !e();
8
- }
9
- function n(e, t) {
10
- return new Promise((n, r) => {
11
- let i = setTimeout(() => r(/* @__PURE__ */ Error("No frame arrived")), 5e3), a = () => {
12
- clearTimeout(i), n();
13
- };
14
- for (let e of t.getTracks()) e.addEventListener("ended", () => {
15
- clearTimeout(i), r(/* @__PURE__ */ Error("The stream ended"));
16
- }, { once: !0 });
17
- e.readyState >= 2 && "requestVideoFrameCallback" in e ? e.requestVideoFrameCallback(a) : e.readyState >= 2 ? a() : e.addEventListener("loadeddata", a, { once: !0 });
18
- });
19
- }
20
- async function r(e) {
21
- let t = document.createElement("video");
22
- return t.muted = !0, t.playsInline = !0, t.srcObject = e, await t.play(), await n(t, e), t;
23
- }
24
- var i = {
25
- size: 16,
26
- color: [
27
- 255,
28
- 0,
29
- 255
30
- ]
31
- };
32
- function a() {
33
- let e = document.createElement("div");
34
- return e.setAttribute("aria-hidden", "true"), e.style.cssText = `position:fixed;top:0;left:0;width:${i.size}px;height:${i.size}px;background:rgb(${i.color.join(",")});z-index:2147483647;pointer-events:none`, document.body.append(e), e;
35
- }
36
- function o(e, t, n) {
37
- let r = i.size / 2, a = e.getImageData(Math.floor(r * t), Math.floor(r * n), 1, 1).data;
38
- return i.color.every((e, t) => Math.abs((a[t] ?? 0) - e) < 40);
39
- }
40
- //#endregion
41
- //#region lib/capture/mask-text.ts
42
- var s = "[data-capture-unmask]", c = "#000000", l = /* @__PURE__ */ new Set([
43
- "SCRIPT",
44
- "STYLE",
45
- "NOSCRIPT",
46
- "TEMPLATE"
47
- ]), u = /* @__PURE__ */ new Set([
48
- "checkbox",
49
- "radio",
50
- "button",
51
- "submit",
52
- "reset",
53
- "image",
54
- "hidden",
55
- "range",
56
- "color"
57
- ]), d = 1;
58
- function f(e, t) {
59
- t.width <= 0 || t.height <= 0 || e.push({
60
- x: t.left - d,
61
- y: t.top - d,
62
- w: t.width + 2 * d,
63
- h: t.height + 2 * d
64
- });
65
- }
66
- function p(e) {
67
- return e instanceof HTMLSelectElement ? !0 : e instanceof HTMLTextAreaElement ? e.value !== "" || e.placeholder !== "" : e instanceof HTMLInputElement ? e.type === "file" ? (e.files?.length ?? 0) > 0 : u.has(e.type) ? !1 : e.value !== "" || e.placeholder !== "" : !1;
68
- }
69
- function m(e, t) {
70
- if (!e.data.trim()) return;
71
- let n = e.ownerDocument.createRange();
72
- n.selectNodeContents(e);
73
- for (let e of Array.from(n.getClientRects())) f(t, e);
74
- n.detach();
75
- }
76
- function h(e, t, n) {
77
- if (e.nodeType === Node.TEXT_NODE) {
78
- m(e, n);
79
- return;
80
- }
81
- if (!(!(e instanceof Element) && !(e instanceof ShadowRoot))) {
82
- if (e instanceof Element) {
83
- if (l.has(e.tagName.toUpperCase()) || t && e.matches(t)) return;
84
- if (e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement || e instanceof HTMLSelectElement) {
85
- p(e) && f(n, e.getBoundingClientRect());
86
- return;
87
- }
88
- e.shadowRoot && h(e.shadowRoot, t, n);
89
- }
90
- for (let r of Array.from(e.childNodes)) h(r, t, n);
91
- }
92
- }
93
- function g(e, t = s) {
94
- let n = [];
95
- return h(e, t, n), n;
96
- }
97
- function _(e, t, n, r) {
98
- e.save(), e.globalAlpha = 1, e.globalCompositeOperation = "source-over", e.fillStyle = c;
99
- for (let i of t) {
100
- let t = Math.floor(i.x * n), a = Math.floor(i.y * r), o = Math.ceil((i.x + i.w) * n), s = Math.ceil((i.y + i.h) * r);
101
- e.fillRect(t, a, o - t, s - a);
102
- }
103
- e.restore();
104
- }
105
- //#endregion
1
+ import { a as e, c as t, d as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h } from "./visible-B-IFZ4Nv.js";
2
+ import { a as g, c as _, f as v, m as y, n as b, p as x, r as S, s as C, u as w } from "./canvas-BShNj4yp.js";
106
3
  //#region lib/capture/capture-screen.ts
107
- var v = class extends Error {
4
+ var T = class extends Error {
108
5
  code;
109
6
  constructor(e, t, n) {
110
7
  super(t), n !== void 0 && (this.cause = n), this.name = "CaptureScreenError", this.code = e;
111
8
  }
112
9
  };
113
- function y(e, t, n) {
114
- return new Promise((r, i) => e.toBlob((e) => e ? r(e) : i(new v("failed", "The image was not encoded")), t, n));
10
+ function E(e, t, n) {
11
+ return new Promise((r, i) => e.toBlob((e) => e ? r(e) : i(new T("failed", "The image was not encoded")), t, n));
115
12
  }
116
- function b(e) {
13
+ function D(e) {
117
14
  return e ? e === !0 ? document.body : e : null;
118
15
  }
119
- async function x() {
16
+ async function O() {
120
17
  try {
121
18
  return await navigator.mediaDevices.getDisplayMedia({
122
19
  video: !0,
@@ -124,51 +21,68 @@ async function x() {
124
21
  preferCurrentTab: !0
125
22
  });
126
23
  } catch (e) {
127
- throw new v("denied", "The capture was refused", e);
24
+ throw new T("denied", "The capture was refused", e);
128
25
  }
129
26
  }
130
- async function S(e = {}) {
131
- if (!t()) throw new v("unsupported", "Screen capture is not available here");
132
- let n = b(e.maskText), s = e.unmaskSelector ?? "[data-capture-unmask]";
133
- if (n) try {
134
- document.querySelector(s);
27
+ async function k(e = {}) {
28
+ if (!i()) throw new T("unsupported", "Screen capture is not available here");
29
+ let t = D(e.maskText), n = e.unmaskSelector ?? "[data-capture-unmask]";
30
+ if (t) try {
31
+ document.querySelector(n);
135
32
  } catch (e) {
136
- throw new v("failed", "Invalid unmaskSelector", e);
33
+ throw new T("failed", "Invalid unmaskSelector", e);
137
34
  }
138
- let c = n ? a() : null, l;
35
+ let o = t ? d() : null, s;
139
36
  try {
140
- l = await x();
37
+ s = await O();
141
38
  } catch (e) {
142
- throw c?.remove(), e;
39
+ throw o?.remove(), e;
143
40
  }
144
41
  try {
145
- let t = l.getVideoTracks()[0]?.getSettings().displaySurface;
146
- if (n && t && t !== "browser") throw new v("mask-unavailable", "maskText needs the current tab to be shared");
147
- let a;
42
+ let i = s.getVideoTracks()[0]?.getSettings().displaySurface;
43
+ if (t && i && i !== "browser") throw new T("mask-unavailable", "maskText needs the current tab to be shared");
44
+ let o;
148
45
  try {
149
- a = await r(l);
46
+ o = await c(s);
150
47
  } catch (e) {
151
- throw new v("failed", "No frame was read", e);
48
+ throw new T("failed", "No frame was read", e);
152
49
  }
153
- let c = document.createElement("canvas");
154
- c.width = a.videoWidth, c.height = a.videoHeight;
155
- let u = c.getContext("2d");
156
- if (!u) throw new v("failed", "No 2D canvas");
157
- let d = n ? g(n, s) : [], f = c.width / window.innerWidth, p = c.height / window.innerHeight;
158
- if (u.drawImage(a, 0, 0), a.srcObject = null, n) {
159
- if (!o(u, f, p)) throw new v("mask-unavailable", "The shared tab is not this page");
50
+ let l = document.createElement("canvas");
51
+ l.width = o.videoWidth, l.height = o.videoHeight;
52
+ let u = l.getContext("2d");
53
+ if (!u) throw new T("failed", "No 2D canvas");
54
+ let d = t ? y(t, n) : [], f = l.width / window.innerWidth, p = l.height / window.innerHeight;
55
+ if (u.drawImage(o, 0, 0), o.srcObject = null, t) {
56
+ if (!a(u, f, p)) throw new T("mask-unavailable", "The shared tab is not this page");
160
57
  d.push({
161
58
  x: 0,
162
59
  y: 0,
163
- w: i.size,
164
- h: i.size
165
- }), _(u, d, f, p);
60
+ w: r.size,
61
+ h: r.size
62
+ }), x(u, d, f, p);
166
63
  }
167
- return await y(c, e.type ?? "image/png", e.quality);
64
+ return await E(l, e.type ?? "image/png", e.quality);
168
65
  } finally {
169
- c?.remove();
170
- for (let e of l.getTracks()) e.stop();
66
+ o?.remove();
67
+ for (let e of s.getTracks()) e.stop();
171
68
  }
172
69
  }
173
70
  //#endregion
174
- export { v as CaptureScreenError, s as DEFAULT_UNMASK_SELECTOR, t as canCaptureScreen, S as captureScreen };
71
+ //#region lib/capture/modes/capture-mode.ts
72
+ async function A(e, t = {}) {
73
+ let { delay: n, signal: r, onTick: i, overlay: a, pick: o, target: s, ...c } = t;
74
+ return n && await u(n, {
75
+ signal: r,
76
+ onTick: i,
77
+ overlay: a
78
+ }), e === "element" ? p(await l({
79
+ ...o,
80
+ signal: r,
81
+ outline: a
82
+ }), c) : e === "full-page" ? f({
83
+ ...c,
84
+ target: s
85
+ }) : m(c);
86
+ }
87
+ //#endregion
88
+ export { e as CAPTURE_DELAYS, h as CAPTURE_EXCLUDE_ATTRIBUTE, n as CAPTURE_MASK_ATTRIBUTE, C as CaptureEngineError, T as CaptureScreenError, v as DEFAULT_UNMASK_SELECTOR, i as canCaptureScreen, b as canvasToBitmap, S as canvasToBlob, p as captureElement, f as captureFullPage, A as captureMode, t as captureRegion, k as captureScreen, m as captureVisible, u as countdown, g as cropCanvas, o as findMainScroller, s as getCaptureEngine, _ as intersectRects, l as pickElement, w as rectFromPoints };
package/dist/charts.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { t as e } from "./ui.utils-Dcwv--mL.js";
2
2
  import { t } from "./utils-BLfntITJ.js";
3
3
  import { t as n } from "./warn-once-DDKXeVow.js";
4
- import { t as r } from "./button-CpUMPIdk.js";
5
- import { t as i } from "./use-material-translation-eYySryw3.js";
4
+ import { t as r } from "./button-RsWgka2v.js";
5
+ import { t as i } from "./use-material-translation-ZEUtduro.js";
6
6
  import { t as a } from "./use-ssr-media-query-BSBGww0x.js";
7
7
  import { i as o, n as s, r as c, t as l } from "./util-4heV2LPI.js";
8
8
  import { t as u } from "./useIsomorphicLayoutEffect-DfgAhWcH.js";
9
9
  import { t as d } from "./live-status-BGPaN8r8.js";
10
- import { t as f } from "./chip-CjJPmAYO.js";
10
+ import { t as f } from "./chip-tyDM0lpO.js";
11
11
  import { c as p, d as m, f as h, i as g, o as _, p as v, s as y, t as b } from "./line-path-DvexEexl.js";
12
12
  import { t as x } from "./linear-G97mfnKF.js";
13
13
  import { t as S } from "./band-ZcHOFBlS.js";
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "./utils-BLfntITJ.js";
2
- import { i as t } from "./spinner-BpH9tE8R.js";
2
+ import { i as t } from "./spinner-DpB6XvJJ.js";
3
3
  import { t as n } from "./icon-context-ocOSLVYr.js";
4
- import { t as r } from "./use-material-translation-eYySryw3.js";
4
+ import { t as r } from "./use-material-translation-ZEUtduro.js";
5
5
  import { t as i } from "./react-node-text-Crkpfpco.js";
6
6
  import { cloneElement as a, isValidElement as o } from "react";
7
7
  import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
@@ -1,22 +1,22 @@
1
1
  import { r as e } from "./rolldown-runtime-BFFgcFxR.js";
2
2
  import { t } from "./utils-BLfntITJ.js";
3
3
  import { n } from "./dist-BpL4VNX6.js";
4
- import { c as r, d as i, f as a, n as o, t as s } from "./dropdown-menu-BoJC2DEH.js";
4
+ import { c as r, d as i, f as a, n as o, t as s } from "./dropdown-menu-D-PRbHaP.js";
5
5
  import { t as c } from "./label-DyK0TmBd.js";
6
6
  import { t as l } from "./is-production-GLw59WU8.js";
7
- import { t as u } from "./use-material-translation-eYySryw3.js";
7
+ import { t as u } from "./use-material-translation-ZEUtduro.js";
8
8
  import { t as d } from "./react-node-text-Crkpfpco.js";
9
- import { a as f, r as p, t as m } from "./toolbar-items-C9uasXZ2.js";
9
+ import { a as f, r as p, t as m } from "./toolbar-items-zL5TYLf2.js";
10
10
  import { a as h, n as g } from "./languages-CW0qXNom.js";
11
11
  import { n as _ } from "./field-blur-context-DRjpIam5.js";
12
12
  import { t as v } from "./helper-text-BUgvZUy4.js";
13
13
  import { t as y } from "./useIsomorphicLayoutEffect-DfgAhWcH.js";
14
- import { t as b } from "./toolbar-group-BmzGP_JO.js";
15
- import { t as x } from "./toolbar-item-slot-BnqQLkVd.js";
14
+ import { t as b } from "./toolbar-group-bttMdvg4.js";
15
+ import { t as x } from "./toolbar-item-slot-CBn3YjeE.js";
16
16
  import { n as S, t as C } from "./escape-owner-Bya422_K.js";
17
17
  import { t as w } from "./skeleton-DSdtr2qc.js";
18
18
  import { r as T } from "./hook-symbols-DKr3lxL9.js";
19
- import { n as E, t as D } from "./code-language-items-CW8_Si05.js";
19
+ import { n as E, t as D } from "./code-language-items-DDFuDf_E.js";
20
20
  import O, { memo as k, useCallback as ee, useEffect as A, useId as j, useImperativeHandle as M, useMemo as te, useRef as N, useState as P, useSyncExternalStore as ne } from "react";
21
21
  import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
22
22
  import { Check as re, ChevronDown as ie, CircleAlert as ae, Copy as oe, FileCode2 as se, Lock as ce, Maximize2 as le, Minimize2 as ue, Search as de, TriangleAlert as fe, WandSparkles as pe, WrapText as me } from "lucide-react";
@@ -1,16 +1,16 @@
1
1
  import { t as e } from "./utils-BLfntITJ.js";
2
2
  import { n as t } from "./dist-BpL4VNX6.js";
3
3
  import { t as n } from "./is-production-GLw59WU8.js";
4
- import { t as r } from "./use-material-translation-eYySryw3.js";
4
+ import { t as r } from "./use-material-translation-ZEUtduro.js";
5
5
  import { t as i } from "./react-node-text-Crkpfpco.js";
6
- import { a, r as o, t as s } from "./toolbar-items-C9uasXZ2.js";
6
+ import { a, r as o, t as s } from "./toolbar-items-zL5TYLf2.js";
7
7
  import { a as c, n as l } from "./languages-CW0qXNom.js";
8
8
  import { t as u } from "./live-status-BGPaN8r8.js";
9
- import { t as d } from "./toolbar-group-BmzGP_JO.js";
9
+ import { t as d } from "./toolbar-group-bttMdvg4.js";
10
10
  import { t as f } from "./use-mobile-CxMFabSc.js";
11
- import { a as p, c as m, d as ee, f as h, h as g, i as _, l as v, m as y, o as b, p as x, r as S, s as C, t as w, u as te } from "./code-editor-nNcxtslA.js";
11
+ import { a as p, c as m, d as ee, f as h, h as g, i as _, l as v, m as y, o as b, p as x, r as S, s as C, t as w, u as te } from "./code-editor-gHHXEwF-.js";
12
12
  import { i as T } from "./hook-symbols-DKr3lxL9.js";
13
- import { n as E } from "./code-language-items-CW8_Si05.js";
13
+ import { n as E } from "./code-language-items-DDFuDf_E.js";
14
14
  import { n as D } from "./use-field-blur-QH8hNCj5.js";
15
15
  import { t as O } from "./field-blur-B1VG5x7c.js";
16
16
  import { t as k } from "./accepts-DA4h3JYF.js";
@@ -373,7 +373,7 @@ function _e({ maxBytes: e = ge } = {}) {
373
373
  id: e === 1048576 ? "code" : `code-${e}`,
374
374
  accepts: k,
375
375
  load: async () => {
376
- let t = await import("./code-file-viewer-CcESl49v.js");
376
+ let t = await import("./code-file-viewer-CYQcskvt.js");
377
377
  return n ??= t.createCodeFileViewer(e), { default: n };
378
378
  }
379
379
  }, $.set(e, t);
@@ -1,8 +1,8 @@
1
- import { t as e } from "./use-material-translation-eYySryw3.js";
2
- import { t } from "./code-editor-nNcxtslA.js";
1
+ import { t as e } from "./use-material-translation-ZEUtduro.js";
2
+ import { t } from "./code-editor-gHHXEwF-.js";
3
3
  import { i as n, s as r, t as i } from "./card-DW7gaVIF.js";
4
- import { i as a, r as o, t as s } from "./use-text-preview-BQE4U9cT.js";
5
- import { n as c, r as l, t as u } from "./viewer-states-BXyCdNhE.js";
4
+ import { i as a, r as o, t as s } from "./use-text-preview-Ci97JKKo.js";
5
+ import { n as c, r as l, t as u } from "./viewer-states-DkaPBkK4.js";
6
6
  import { n as d } from "./accepts-DA4h3JYF.js";
7
7
  import { useMemo as f, useState as p } from "react";
8
8
  import { jsx as m, jsxs as h } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
- import { d as e, f as t } from "./dropdown-menu-BoJC2DEH.js";
2
- import { t as n } from "./use-material-translation-eYySryw3.js";
1
+ import { d as e, f as t } from "./dropdown-menu-D-PRbHaP.js";
2
+ import { t as n } from "./use-material-translation-ZEUtduro.js";
3
3
  import { i as r, t as i } from "./languages-CW0qXNom.js";
4
4
  import { t as a } from "./live-status-BGPaN8r8.js";
5
5
  import { jsx as o } from "react/jsx-runtime";