@glodon-aiot/react-components 3.3.0-beta.17 → 3.3.0-beta.19

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 (395) hide show
  1. package/dist/es/components/Markdown/Code/index.mjs +43 -43
  2. package/dist/es/components/Markdown/Image/index.mjs +10 -11
  3. package/dist/es/index.mjs +1 -1
  4. package/dist/lib/index.js +2 -25
  5. package/package.json +5 -1
  6. package/dist/es/_virtual/_commonjsHelpers.mjs +0 -8
  7. package/dist/es/_virtual/index.mjs +0 -4
  8. package/dist/es/_virtual/index2.mjs +0 -4
  9. package/dist/es/_virtual/index3.mjs +0 -4
  10. package/dist/es/_virtual/lib.mjs +0 -4
  11. package/dist/es/_virtual/prism-core.mjs +0 -4
  12. package/dist/es/_virtual/types.mjs +0 -4
  13. package/dist/es/_virtual/ua-parser.min.mjs +0 -4
  14. package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +0 -9
  15. package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +0 -8
  16. package/dist/es/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +0 -12
  17. package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +0 -13
  18. package/dist/es/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +0 -7
  19. package/dist/es/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +0 -7
  20. package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +0 -15
  21. package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +0 -15
  22. package/dist/es/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +0 -10
  23. package/dist/es/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +0 -16
  24. package/dist/es/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +0 -9
  25. package/dist/es/node_modules/@babel/runtime/helpers/esm/typeof.mjs +0 -11
  26. package/dist/es/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +0 -12
  27. package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +0 -201
  28. package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +0 -1087
  29. package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +0 -104
  30. package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +0 -568
  31. package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +0 -158
  32. package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +0 -908
  33. package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +0 -35
  34. package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +0 -242
  35. package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +0 -33
  36. package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +0 -20
  37. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.css.mjs +0 -4
  38. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +0 -78
  39. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +0 -14
  40. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +0 -34
  41. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +0 -178
  42. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +0 -83
  43. package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +0 -5
  44. package/dist/es/node_modules/antd-mobile/es/components/mask/mask.css.mjs +0 -4
  45. package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +0 -84
  46. package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +0 -5
  47. package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.css.mjs +0 -4
  48. package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +0 -9
  49. package/dist/es/node_modules/antd-mobile/es/global/global.css.mjs +0 -4
  50. package/dist/es/node_modules/antd-mobile/es/global/index.mjs +0 -4
  51. package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +0 -141
  52. package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +0 -9
  53. package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +0 -7
  54. package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +0 -4
  55. package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +0 -11
  56. package/dist/es/node_modules/antd-mobile/es/utils/dev-log.mjs +0 -7
  57. package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +0 -6
  58. package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +0 -22
  59. package/dist/es/node_modules/antd-mobile/es/utils/is-dev.mjs +0 -4
  60. package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +0 -11
  61. package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +0 -12
  62. package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +0 -47
  63. package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +0 -12
  64. package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +0 -13
  65. package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +0 -52
  66. package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +0 -11
  67. package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +0 -10
  68. package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +0 -15
  69. package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +0 -6
  70. package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +0 -8
  71. package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +0 -54
  72. package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +0 -32
  73. package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +0 -11
  74. package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +0 -19
  75. package/dist/es/node_modules/character-reference-invalid/index.json.mjs +0 -33
  76. package/dist/es/node_modules/classnames/index.mjs +0 -42
  77. package/dist/es/node_modules/hast-util-parse-selector/index.mjs +0 -14
  78. package/dist/es/node_modules/is-alphabetical/index.mjs +0 -8
  79. package/dist/es/node_modules/is-alphanumerical/index.mjs +0 -9
  80. package/dist/es/node_modules/is-decimal/index.mjs +0 -8
  81. package/dist/es/node_modules/is-hexadecimal/index.mjs +0 -8
  82. package/dist/es/node_modules/parse-entities/decode-entity.browser.mjs +0 -8
  83. package/dist/es/node_modules/parse-entities/index.mjs +0 -83
  84. package/dist/es/node_modules/parse-entities/node_modules/character-entities-legacy/index.json.mjs +0 -217
  85. package/dist/es/node_modules/property-information/find.mjs +0 -25
  86. package/dist/es/node_modules/property-information/html.mjs +0 -10
  87. package/dist/es/node_modules/property-information/lib/aria.mjs +0 -63
  88. package/dist/es/node_modules/property-information/lib/html.mjs +0 -354
  89. package/dist/es/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -8
  90. package/dist/es/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -7
  91. package/dist/es/node_modules/property-information/lib/util/create.mjs +0 -13
  92. package/dist/es/node_modules/property-information/lib/util/defined-info.mjs +0 -18
  93. package/dist/es/node_modules/property-information/lib/util/info.mjs +0 -19
  94. package/dist/es/node_modules/property-information/lib/util/merge.mjs +0 -11
  95. package/dist/es/node_modules/property-information/lib/util/schema.mjs +0 -10
  96. package/dist/es/node_modules/property-information/lib/util/types.mjs +0 -15
  97. package/dist/es/node_modules/property-information/lib/xlink.mjs +0 -20
  98. package/dist/es/node_modules/property-information/lib/xml.mjs +0 -16
  99. package/dist/es/node_modules/property-information/lib/xmlns.mjs +0 -16
  100. package/dist/es/node_modules/property-information/normalize.mjs +0 -7
  101. package/dist/es/node_modules/react-device-detect/dist/lib.mjs +0 -723
  102. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.mjs +0 -7
  103. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/create-element.mjs +0 -101
  104. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/highlight.mjs +0 -283
  105. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.mjs +0 -4
  106. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/prism.mjs +0 -10
  107. package/dist/es/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.mjs +0 -195
  108. package/dist/es/node_modules/refractor/core.mjs +0 -111
  109. package/dist/es/node_modules/refractor/index.mjs +0 -553
  110. package/dist/es/node_modules/refractor/lang/abap.mjs +0 -60
  111. package/dist/es/node_modules/refractor/lang/abnf.mjs +0 -63
  112. package/dist/es/node_modules/refractor/lang/actionscript.mjs +0 -22
  113. package/dist/es/node_modules/refractor/lang/ada.mjs +0 -28
  114. package/dist/es/node_modules/refractor/lang/agda.mjs +0 -35
  115. package/dist/es/node_modules/refractor/lang/al.mjs +0 -35
  116. package/dist/es/node_modules/refractor/lang/antlr4.mjs +0 -72
  117. package/dist/es/node_modules/refractor/lang/apacheconf.mjs +0 -59
  118. package/dist/es/node_modules/refractor/lang/apex.mjs +0 -69
  119. package/dist/es/node_modules/refractor/lang/apl.mjs +0 -44
  120. package/dist/es/node_modules/refractor/lang/applescript.mjs +0 -26
  121. package/dist/es/node_modules/refractor/lang/aql.mjs +0 -57
  122. package/dist/es/node_modules/refractor/lang/arduino.mjs +0 -20
  123. package/dist/es/node_modules/refractor/lang/arff.mjs +0 -22
  124. package/dist/es/node_modules/refractor/lang/asciidoc.mjs +0 -208
  125. package/dist/es/node_modules/refractor/lang/asm6502.mjs +0 -41
  126. package/dist/es/node_modules/refractor/lang/asmatmel.mjs +0 -53
  127. package/dist/es/node_modules/refractor/lang/aspnet.mjs +0 -53
  128. package/dist/es/node_modules/refractor/lang/autohotkey.mjs +0 -40
  129. package/dist/es/node_modules/refractor/lang/autoit.mjs +0 -43
  130. package/dist/es/node_modules/refractor/lang/avisynth.mjs +0 -167
  131. package/dist/es/node_modules/refractor/lang/avro-idl.mjs +0 -50
  132. package/dist/es/node_modules/refractor/lang/bash.mjs +0 -206
  133. package/dist/es/node_modules/refractor/lang/basic.mjs +0 -29
  134. package/dist/es/node_modules/refractor/lang/batch.mjs +0 -95
  135. package/dist/es/node_modules/refractor/lang/bbcode.mjs +0 -36
  136. package/dist/es/node_modules/refractor/lang/bicep.mjs +0 -72
  137. package/dist/es/node_modules/refractor/lang/birb.mjs +0 -32
  138. package/dist/es/node_modules/refractor/lang/bison.mjs +0 -52
  139. package/dist/es/node_modules/refractor/lang/bnf.mjs +0 -31
  140. package/dist/es/node_modules/refractor/lang/brainfuck.mjs +0 -32
  141. package/dist/es/node_modules/refractor/lang/brightscript.mjs +0 -55
  142. package/dist/es/node_modules/refractor/lang/bro.mjs +0 -39
  143. package/dist/es/node_modules/refractor/lang/bsl.mjs +0 -77
  144. package/dist/es/node_modules/refractor/lang/c.mjs +0 -78
  145. package/dist/es/node_modules/refractor/lang/cfscript.mjs +0 -44
  146. package/dist/es/node_modules/refractor/lang/chaiscript.mjs +0 -65
  147. package/dist/es/node_modules/refractor/lang/cil.mjs +0 -31
  148. package/dist/es/node_modules/refractor/lang/clike.mjs +0 -36
  149. package/dist/es/node_modules/refractor/lang/clojure.mjs +0 -42
  150. package/dist/es/node_modules/refractor/lang/cmake.mjs +0 -41
  151. package/dist/es/node_modules/refractor/lang/cobol.mjs +0 -58
  152. package/dist/es/node_modules/refractor/lang/coffeescript.mjs +0 -86
  153. package/dist/es/node_modules/refractor/lang/concurnas.mjs +0 -69
  154. package/dist/es/node_modules/refractor/lang/coq.mjs +0 -52
  155. package/dist/es/node_modules/refractor/lang/cpp.mjs +0 -98
  156. package/dist/es/node_modules/refractor/lang/crystal.mjs +0 -63
  157. package/dist/es/node_modules/refractor/lang/csharp.mjs +0 -277
  158. package/dist/es/node_modules/refractor/lang/cshtml.mjs +0 -104
  159. package/dist/es/node_modules/refractor/lang/csp.mjs +0 -61
  160. package/dist/es/node_modules/refractor/lang/css-extras.mjs +0 -109
  161. package/dist/es/node_modules/refractor/lang/css.mjs +0 -63
  162. package/dist/es/node_modules/refractor/lang/csv.mjs +0 -16
  163. package/dist/es/node_modules/refractor/lang/cypher.mjs +0 -44
  164. package/dist/es/node_modules/refractor/lang/d.mjs +0 -77
  165. package/dist/es/node_modules/refractor/lang/dart.mjs +0 -72
  166. package/dist/es/node_modules/refractor/lang/dataweave.mjs +0 -49
  167. package/dist/es/node_modules/refractor/lang/dax.mjs +0 -39
  168. package/dist/es/node_modules/refractor/lang/dhall.mjs +0 -74
  169. package/dist/es/node_modules/refractor/lang/diff.mjs +0 -54
  170. package/dist/es/node_modules/refractor/lang/django.mjs +0 -60
  171. package/dist/es/node_modules/refractor/lang/dns-zone-file.mjs +0 -40
  172. package/dist/es/node_modules/refractor/lang/docker.mjs +0 -83
  173. package/dist/es/node_modules/refractor/lang/dot.mjs +0 -75
  174. package/dist/es/node_modules/refractor/lang/ebnf.mjs +0 -32
  175. package/dist/es/node_modules/refractor/lang/editorconfig.mjs +0 -39
  176. package/dist/es/node_modules/refractor/lang/eiffel.mjs +0 -46
  177. package/dist/es/node_modules/refractor/lang/ejs.mjs +0 -33
  178. package/dist/es/node_modules/refractor/lang/elixir.mjs +0 -100
  179. package/dist/es/node_modules/refractor/lang/elm.mjs +0 -54
  180. package/dist/es/node_modules/refractor/lang/erb.mjs +0 -35
  181. package/dist/es/node_modules/refractor/lang/erlang.mjs +0 -47
  182. package/dist/es/node_modules/refractor/lang/etlua.mjs +0 -33
  183. package/dist/es/node_modules/refractor/lang/excel-formula.mjs +0 -74
  184. package/dist/es/node_modules/refractor/lang/factor.mjs +0 -569
  185. package/dist/es/node_modules/refractor/lang/false.mjs +0 -39
  186. package/dist/es/node_modules/refractor/lang/firestore-security-rules.mjs +0 -43
  187. package/dist/es/node_modules/refractor/lang/flow.mjs +0 -31
  188. package/dist/es/node_modules/refractor/lang/fortran.mjs +0 -49
  189. package/dist/es/node_modules/refractor/lang/fsharp.mjs +0 -76
  190. package/dist/es/node_modules/refractor/lang/ftl.mjs +0 -102
  191. package/dist/es/node_modules/refractor/lang/gap.mjs +0 -57
  192. package/dist/es/node_modules/refractor/lang/gcode.mjs +0 -28
  193. package/dist/es/node_modules/refractor/lang/gdscript.mjs +0 -36
  194. package/dist/es/node_modules/refractor/lang/gedcom.mjs +0 -40
  195. package/dist/es/node_modules/refractor/lang/gherkin.mjs +0 -94
  196. package/dist/es/node_modules/refractor/lang/git.mjs +0 -75
  197. package/dist/es/node_modules/refractor/lang/glsl.mjs +0 -18
  198. package/dist/es/node_modules/refractor/lang/gml.mjs +0 -19
  199. package/dist/es/node_modules/refractor/lang/gn.mjs +0 -55
  200. package/dist/es/node_modules/refractor/lang/go-module.mjs +0 -34
  201. package/dist/es/node_modules/refractor/lang/go.mjs +0 -36
  202. package/dist/es/node_modules/refractor/lang/graphql.mjs +0 -133
  203. package/dist/es/node_modules/refractor/lang/groovy.mjs +0 -58
  204. package/dist/es/node_modules/refractor/lang/haml.mjs +0 -132
  205. package/dist/es/node_modules/refractor/lang/handlebars.mjs +0 -46
  206. package/dist/es/node_modules/refractor/lang/haskell.mjs +0 -76
  207. package/dist/es/node_modules/refractor/lang/haxe.mjs +0 -84
  208. package/dist/es/node_modules/refractor/lang/hcl.mjs +0 -68
  209. package/dist/es/node_modules/refractor/lang/hlsl.mjs +0 -31
  210. package/dist/es/node_modules/refractor/lang/hoon.mjs +0 -26
  211. package/dist/es/node_modules/refractor/lang/hpkp.mjs +0 -20
  212. package/dist/es/node_modules/refractor/lang/hsts.mjs +0 -20
  213. package/dist/es/node_modules/refractor/lang/http.mjs +0 -126
  214. package/dist/es/node_modules/refractor/lang/ichigojam.mjs +0 -25
  215. package/dist/es/node_modules/refractor/lang/icon.mjs +0 -32
  216. package/dist/es/node_modules/refractor/lang/icu-message-format.mjs +0 -136
  217. package/dist/es/node_modules/refractor/lang/idris.mjs +0 -30
  218. package/dist/es/node_modules/refractor/lang/iecst.mjs +0 -38
  219. package/dist/es/node_modules/refractor/lang/ignore.mjs +0 -30
  220. package/dist/es/node_modules/refractor/lang/inform7.mjs +0 -69
  221. package/dist/es/node_modules/refractor/lang/ini.mjs +0 -52
  222. package/dist/es/node_modules/refractor/lang/io.mjs +0 -34
  223. package/dist/es/node_modules/refractor/lang/j.mjs +0 -40
  224. package/dist/es/node_modules/refractor/lang/java.mjs +0 -86
  225. package/dist/es/node_modules/refractor/lang/javadoc.mjs +0 -89
  226. package/dist/es/node_modules/refractor/lang/javadoclike.mjs +0 -60
  227. package/dist/es/node_modules/refractor/lang/javascript.mjs +0 -114
  228. package/dist/es/node_modules/refractor/lang/javastacktrace.mjs +0 -146
  229. package/dist/es/node_modules/refractor/lang/jexl.mjs +0 -26
  230. package/dist/es/node_modules/refractor/lang/jolie.mjs +0 -51
  231. package/dist/es/node_modules/refractor/lang/jq.mjs +0 -71
  232. package/dist/es/node_modules/refractor/lang/js-extras.mjs +0 -104
  233. package/dist/es/node_modules/refractor/lang/js-templates.mjs +0 -153
  234. package/dist/es/node_modules/refractor/lang/jsdoc.mjs +0 -83
  235. package/dist/es/node_modules/refractor/lang/json.mjs +0 -36
  236. package/dist/es/node_modules/refractor/lang/json5.mjs +0 -32
  237. package/dist/es/node_modules/refractor/lang/jsonp.mjs +0 -20
  238. package/dist/es/node_modules/refractor/lang/jsstacktrace.mjs +0 -53
  239. package/dist/es/node_modules/refractor/lang/jsx.mjs +0 -61
  240. package/dist/es/node_modules/refractor/lang/julia.mjs +0 -47
  241. package/dist/es/node_modules/refractor/lang/keepalived.mjs +0 -54
  242. package/dist/es/node_modules/refractor/lang/keyman.mjs +0 -55
  243. package/dist/es/node_modules/refractor/lang/kotlin.mjs +0 -81
  244. package/dist/es/node_modules/refractor/lang/kumir.mjs +0 -85
  245. package/dist/es/node_modules/refractor/lang/kusto.mjs +0 -47
  246. package/dist/es/node_modules/refractor/lang/latex.mjs +0 -68
  247. package/dist/es/node_modules/refractor/lang/latte.mjs +0 -68
  248. package/dist/es/node_modules/refractor/lang/less.mjs +0 -51
  249. package/dist/es/node_modules/refractor/lang/lilypond.mjs +0 -77
  250. package/dist/es/node_modules/refractor/lang/liquid.mjs +0 -68
  251. package/dist/es/node_modules/refractor/lang/lisp.mjs +0 -158
  252. package/dist/es/node_modules/refractor/lang/livescript.mjs +0 -119
  253. package/dist/es/node_modules/refractor/lang/llvm.mjs +0 -31
  254. package/dist/es/node_modules/refractor/lang/log.mjs +0 -103
  255. package/dist/es/node_modules/refractor/lang/lolcode.mjs +0 -57
  256. package/dist/es/node_modules/refractor/lang/lua.mjs +0 -29
  257. package/dist/es/node_modules/refractor/lang/magma.mjs +0 -42
  258. package/dist/es/node_modules/refractor/lang/makefile.mjs +0 -42
  259. package/dist/es/node_modules/refractor/lang/markdown.mjs +0 -306
  260. package/dist/es/node_modules/refractor/lang/markup-templating.mjs +0 -74
  261. package/dist/es/node_modules/refractor/lang/markup.mjs +0 -154
  262. package/dist/es/node_modules/refractor/lang/matlab.mjs +0 -25
  263. package/dist/es/node_modules/refractor/lang/maxscript.mjs +0 -70
  264. package/dist/es/node_modules/refractor/lang/mel.mjs +0 -49
  265. package/dist/es/node_modules/refractor/lang/mermaid.mjs +0 -116
  266. package/dist/es/node_modules/refractor/lang/mizar.mjs +0 -24
  267. package/dist/es/node_modules/refractor/lang/mongodb.mjs +0 -287
  268. package/dist/es/node_modules/refractor/lang/monkey.mjs +0 -40
  269. package/dist/es/node_modules/refractor/lang/moonscript.mjs +0 -63
  270. package/dist/es/node_modules/refractor/lang/n1ql.mjs +0 -34
  271. package/dist/es/node_modules/refractor/lang/n4js.mjs +0 -22
  272. package/dist/es/node_modules/refractor/lang/nand2tetris-hdl.mjs +0 -21
  273. package/dist/es/node_modules/refractor/lang/naniscript.mjs +0 -140
  274. package/dist/es/node_modules/refractor/lang/nasm.mjs +0 -31
  275. package/dist/es/node_modules/refractor/lang/neon.mjs +0 -52
  276. package/dist/es/node_modules/refractor/lang/nevod.mjs +0 -125
  277. package/dist/es/node_modules/refractor/lang/nginx.mjs +0 -61
  278. package/dist/es/node_modules/refractor/lang/nim.mjs +0 -54
  279. package/dist/es/node_modules/refractor/lang/nix.mjs +0 -45
  280. package/dist/es/node_modules/refractor/lang/nsis.mjs +0 -37
  281. package/dist/es/node_modules/refractor/lang/objectivec.mjs +0 -23
  282. package/dist/es/node_modules/refractor/lang/ocaml.mjs +0 -64
  283. package/dist/es/node_modules/refractor/lang/opencl.mjs +0 -62
  284. package/dist/es/node_modules/refractor/lang/openqasm.mjs +0 -29
  285. package/dist/es/node_modules/refractor/lang/oz.mjs +0 -37
  286. package/dist/es/node_modules/refractor/lang/parigp.mjs +0 -36
  287. package/dist/es/node_modules/refractor/lang/parser.mjs +0 -80
  288. package/dist/es/node_modules/refractor/lang/pascal.mjs +0 -66
  289. package/dist/es/node_modules/refractor/lang/pascaligo.mjs +0 -70
  290. package/dist/es/node_modules/refractor/lang/pcaxis.mjs +0 -63
  291. package/dist/es/node_modules/refractor/lang/peoplecode.mjs +0 -51
  292. package/dist/es/node_modules/refractor/lang/perl.mjs +0 -134
  293. package/dist/es/node_modules/refractor/lang/php-extras.mjs +0 -29
  294. package/dist/es/node_modules/refractor/lang/php.mjs +0 -301
  295. package/dist/es/node_modules/refractor/lang/phpdoc.mjs +0 -34
  296. package/dist/es/node_modules/refractor/lang/plsql.mjs +0 -30
  297. package/dist/es/node_modules/refractor/lang/powerquery.mjs +0 -44
  298. package/dist/es/node_modules/refractor/lang/powershell.mjs +0 -58
  299. package/dist/es/node_modules/refractor/lang/processing.mjs +0 -25
  300. package/dist/es/node_modules/refractor/lang/prolog.mjs +0 -31
  301. package/dist/es/node_modules/refractor/lang/promql.mjs +0 -74
  302. package/dist/es/node_modules/refractor/lang/properties.mjs +0 -21
  303. package/dist/es/node_modules/refractor/lang/protobuf.mjs +0 -47
  304. package/dist/es/node_modules/refractor/lang/psl.mjs +0 -47
  305. package/dist/es/node_modules/refractor/lang/pug.mjs +0 -173
  306. package/dist/es/node_modules/refractor/lang/puppet.mjs +0 -140
  307. package/dist/es/node_modules/refractor/lang/pure.mjs +0 -72
  308. package/dist/es/node_modules/refractor/lang/purebasic.mjs +0 -63
  309. package/dist/es/node_modules/refractor/lang/purescript.mjs +0 -41
  310. package/dist/es/node_modules/refractor/lang/python.mjs +0 -73
  311. package/dist/es/node_modules/refractor/lang/q.mjs +0 -62
  312. package/dist/es/node_modules/refractor/lang/qml.mjs +0 -67
  313. package/dist/es/node_modules/refractor/lang/qore.mjs +0 -32
  314. package/dist/es/node_modules/refractor/lang/qsharp.mjs +0 -93
  315. package/dist/es/node_modules/refractor/lang/r.mjs +0 -31
  316. package/dist/es/node_modules/refractor/lang/racket.mjs +0 -29
  317. package/dist/es/node_modules/refractor/lang/reason.mjs +0 -33
  318. package/dist/es/node_modules/refractor/lang/regex.mjs +0 -97
  319. package/dist/es/node_modules/refractor/lang/rego.mjs +0 -37
  320. package/dist/es/node_modules/refractor/lang/renpy.mjs +0 -30
  321. package/dist/es/node_modules/refractor/lang/rest.mjs +0 -199
  322. package/dist/es/node_modules/refractor/lang/rip.mjs +0 -41
  323. package/dist/es/node_modules/refractor/lang/roboconf.mjs +0 -39
  324. package/dist/es/node_modules/refractor/lang/robotframework.mjs +0 -95
  325. package/dist/es/node_modules/refractor/lang/ruby.mjs +0 -159
  326. package/dist/es/node_modules/refractor/lang/rust.mjs +0 -122
  327. package/dist/es/node_modules/refractor/lang/sas.mjs +0 -305
  328. package/dist/es/node_modules/refractor/lang/sass.mjs +0 -69
  329. package/dist/es/node_modules/refractor/lang/scala.mjs +0 -59
  330. package/dist/es/node_modules/refractor/lang/scheme.mjs +0 -120
  331. package/dist/es/node_modules/refractor/lang/scss.mjs +0 -82
  332. package/dist/es/node_modules/refractor/lang/shell-session.mjs +0 -69
  333. package/dist/es/node_modules/refractor/lang/smali.mjs +0 -84
  334. package/dist/es/node_modules/refractor/lang/smalltalk.mjs +0 -47
  335. package/dist/es/node_modules/refractor/lang/smarty.mjs +0 -106
  336. package/dist/es/node_modules/refractor/lang/sml.mjs +0 -64
  337. package/dist/es/node_modules/refractor/lang/solidity.mjs +0 -28
  338. package/dist/es/node_modules/refractor/lang/solution-file.mjs +0 -58
  339. package/dist/es/node_modules/refractor/lang/soy.mjs +0 -77
  340. package/dist/es/node_modules/refractor/lang/sparql.mjs +0 -24
  341. package/dist/es/node_modules/refractor/lang/splunk-spl.mjs +0 -36
  342. package/dist/es/node_modules/refractor/lang/sqf.mjs +0 -42
  343. package/dist/es/node_modules/refractor/lang/sql.mjs +0 -42
  344. package/dist/es/node_modules/refractor/lang/squirrel.mjs +0 -50
  345. package/dist/es/node_modules/refractor/lang/stan.mjs +0 -63
  346. package/dist/es/node_modules/refractor/lang/stylus.mjs +0 -141
  347. package/dist/es/node_modules/refractor/lang/swift.mjs +0 -125
  348. package/dist/es/node_modules/refractor/lang/systemd.mjs +0 -65
  349. package/dist/es/node_modules/refractor/lang/t4-cs.mjs +0 -17
  350. package/dist/es/node_modules/refractor/lang/t4-templating.mjs +0 -57
  351. package/dist/es/node_modules/refractor/lang/t4-vb.mjs +0 -17
  352. package/dist/es/node_modules/refractor/lang/tap.mjs +0 -35
  353. package/dist/es/node_modules/refractor/lang/tcl.mjs +0 -51
  354. package/dist/es/node_modules/refractor/lang/textile.mjs +0 -248
  355. package/dist/es/node_modules/refractor/lang/toml.mjs +0 -54
  356. package/dist/es/node_modules/refractor/lang/tremor.mjs +0 -67
  357. package/dist/es/node_modules/refractor/lang/tsx.mjs +0 -22
  358. package/dist/es/node_modules/refractor/lang/tt2.mjs +0 -53
  359. package/dist/es/node_modules/refractor/lang/turtle.mjs +0 -62
  360. package/dist/es/node_modules/refractor/lang/twig.mjs +0 -48
  361. package/dist/es/node_modules/refractor/lang/typescript.mjs +0 -57
  362. package/dist/es/node_modules/refractor/lang/typoscript.mjs +0 -81
  363. package/dist/es/node_modules/refractor/lang/unrealscript.mjs +0 -50
  364. package/dist/es/node_modules/refractor/lang/uorazor.mjs +0 -57
  365. package/dist/es/node_modules/refractor/lang/uri.mjs +0 -92
  366. package/dist/es/node_modules/refractor/lang/v.mjs +0 -85
  367. package/dist/es/node_modules/refractor/lang/vala.mjs +0 -87
  368. package/dist/es/node_modules/refractor/lang/vbnet.mjs +0 -34
  369. package/dist/es/node_modules/refractor/lang/velocity.mjs +0 -75
  370. package/dist/es/node_modules/refractor/lang/verilog.mjs +0 -38
  371. package/dist/es/node_modules/refractor/lang/vhdl.mjs +0 -35
  372. package/dist/es/node_modules/refractor/lang/vim.mjs +0 -22
  373. package/dist/es/node_modules/refractor/lang/visual-basic.mjs +0 -38
  374. package/dist/es/node_modules/refractor/lang/warpscript.mjs +0 -33
  375. package/dist/es/node_modules/refractor/lang/wasm.mjs +0 -36
  376. package/dist/es/node_modules/refractor/lang/web-idl.mjs +0 -89
  377. package/dist/es/node_modules/refractor/lang/wiki.mjs +0 -86
  378. package/dist/es/node_modules/refractor/lang/wolfram.mjs +0 -37
  379. package/dist/es/node_modules/refractor/lang/wren.mjs +0 -97
  380. package/dist/es/node_modules/refractor/lang/xeora.mjs +0 -121
  381. package/dist/es/node_modules/refractor/lang/xml-doc.mjs +0 -35
  382. package/dist/es/node_modules/refractor/lang/xojo.mjs +0 -30
  383. package/dist/es/node_modules/refractor/lang/xquery.mjs +0 -89
  384. package/dist/es/node_modules/refractor/lang/yaml.mjs +0 -78
  385. package/dist/es/node_modules/refractor/lang/yang.mjs +0 -32
  386. package/dist/es/node_modules/refractor/lang/zig.mjs +0 -80
  387. package/dist/es/node_modules/refractor/node_modules/comma-separated-tokens/index.mjs +0 -16
  388. package/dist/es/node_modules/refractor/node_modules/hastscript/factory.mjs +0 -77
  389. package/dist/es/node_modules/refractor/node_modules/hastscript/html.mjs +0 -8
  390. package/dist/es/node_modules/refractor/node_modules/hastscript/index.mjs +0 -5
  391. package/dist/es/node_modules/refractor/node_modules/prismjs/components/prism-core.mjs +0 -720
  392. package/dist/es/node_modules/refractor/node_modules/space-separated-tokens/index.mjs +0 -14
  393. package/dist/es/node_modules/tslib/tslib.es6.mjs +0 -30
  394. package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +0 -123
  395. package/dist/es/node_modules/xtend/immutable.mjs +0 -12
@@ -1,35 +0,0 @@
1
- function M(r, u, e) {
2
- return Math.max(u, Math.min(r, e));
3
- }
4
- const y = {
5
- toVector(r, u) {
6
- return r === void 0 && (r = u), Array.isArray(r) ? r : [r, r];
7
- },
8
- add(r, u) {
9
- return [r[0] + u[0], r[1] + u[1]];
10
- },
11
- sub(r, u) {
12
- return [r[0] - u[0], r[1] - u[1]];
13
- },
14
- addTo(r, u) {
15
- r[0] += u[0], r[1] += u[1];
16
- },
17
- subTo(r, u) {
18
- r[0] -= u[0], r[1] -= u[1];
19
- }
20
- };
21
- function b(r, u, e) {
22
- return u === 0 || Math.abs(u) === 1 / 0 ? Math.pow(r, e * 5) : r * u * e / (u + e * r);
23
- }
24
- function t(r, u, e, f = 0.15) {
25
- return f === 0 ? M(r, u, e) : r < u ? -b(u - r, e - u, f) + u : r > e ? +b(r - e, e - u, f) + e : r;
26
- }
27
- function A(r, [u, e], [f, a]) {
28
- const [[d, c], [h, n]] = r;
29
- return [t(u, d, c, f), t(e, h, n, a)];
30
- }
31
- export {
32
- y as V,
33
- A as c,
34
- t as r
35
- };
@@ -1,242 +0,0 @@
1
- import { a as d, i as S, b as y, E, _ as p, c as O, p as P, d as T, C as m, t as I, S as N } from "./actions-fe213e88.esm.mjs";
2
- function j(t, e) {
3
- if (t == null)
4
- return {};
5
- var s = {}, n = Object.keys(t), r, o;
6
- for (o = 0; o < n.length; o++)
7
- r = n[o], !(e.indexOf(r) >= 0) && (s[r] = t[r]);
8
- return s;
9
- }
10
- function M(t, e) {
11
- if (t == null)
12
- return {};
13
- var s = j(t, e), n, r;
14
- if (Object.getOwnPropertySymbols) {
15
- var o = Object.getOwnPropertySymbols(t);
16
- for (r = 0; r < o.length; r++)
17
- n = o[r], !(e.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(t, n) && (s[n] = t[n]);
18
- }
19
- return s;
20
- }
21
- const k = {
22
- target(t) {
23
- if (t)
24
- return () => "current" in t ? t.current : t;
25
- },
26
- enabled(t = !0) {
27
- return t;
28
- },
29
- window(t = N.isBrowser ? window : void 0) {
30
- return t;
31
- },
32
- eventOptions({
33
- passive: t = !0,
34
- capture: e = !1
35
- } = {}) {
36
- return {
37
- passive: t,
38
- capture: e
39
- };
40
- },
41
- transform(t) {
42
- return t;
43
- }
44
- }, D = ["target", "eventOptions", "window", "enabled", "transform"];
45
- function w(t = {}, e) {
46
- const s = {};
47
- for (const [n, r] of Object.entries(e))
48
- switch (typeof r) {
49
- case "function":
50
- if (process.env.NODE_ENV === "development") {
51
- const o = r.call(s, t[n], n, t);
52
- Number.isNaN(o) || (s[n] = o);
53
- } else
54
- s[n] = r.call(s, t[n], n, t);
55
- break;
56
- case "object":
57
- s[n] = w(t[n], r);
58
- break;
59
- case "boolean":
60
- r && (s[n] = t[n]);
61
- break;
62
- }
63
- return s;
64
- }
65
- function H(t, e, s = {}) {
66
- const n = t, {
67
- target: r,
68
- eventOptions: o,
69
- window: i,
70
- enabled: u,
71
- transform: h
72
- } = n, a = M(n, D);
73
- if (s.shared = w({
74
- target: r,
75
- eventOptions: o,
76
- window: i,
77
- enabled: u,
78
- transform: h
79
- }, k), e) {
80
- const c = m.get(e);
81
- s[e] = w(p({
82
- shared: s.shared
83
- }, a), c);
84
- } else
85
- for (const c in a) {
86
- const v = m.get(c);
87
- if (v)
88
- s[c] = w(p({
89
- shared: s.shared
90
- }, a[c]), v);
91
- else if (process.env.NODE_ENV === "development" && !["drag", "pinch", "scroll", "wheel", "move", "hover"].includes(c)) {
92
- if (c === "domTarget")
93
- throw Error("[@use-gesture]: `domTarget` option has been renamed to `target`.");
94
- console.warn(`[@use-gesture]: Unknown config key \`${c}\` was used. Please read the documentation for further information.`);
95
- }
96
- }
97
- return s;
98
- }
99
- class _ {
100
- constructor(e, s) {
101
- d(this, "_listeners", /* @__PURE__ */ new Set()), this._ctrl = e, this._gestureKey = s;
102
- }
103
- add(e, s, n, r, o) {
104
- const i = this._listeners, u = I(s, n), h = this._gestureKey ? this._ctrl.config[this._gestureKey].eventOptions : {}, a = p(p({}, h), o);
105
- e.addEventListener(u, r, a);
106
- const c = () => {
107
- e.removeEventListener(u, r, a), i.delete(c);
108
- };
109
- return i.add(c), c;
110
- }
111
- clean() {
112
- this._listeners.forEach((e) => e()), this._listeners.clear();
113
- }
114
- }
115
- class R {
116
- constructor() {
117
- d(this, "_timeouts", /* @__PURE__ */ new Map());
118
- }
119
- add(e, s, n = 140, ...r) {
120
- this.remove(e), this._timeouts.set(e, window.setTimeout(s, n, ...r));
121
- }
122
- remove(e) {
123
- const s = this._timeouts.get(e);
124
- s && window.clearTimeout(s);
125
- }
126
- clean() {
127
- this._timeouts.forEach((e) => void window.clearTimeout(e)), this._timeouts.clear();
128
- }
129
- }
130
- class G {
131
- constructor(e) {
132
- d(this, "gestures", /* @__PURE__ */ new Set()), d(this, "_targetEventStore", new _(this)), d(this, "gestureEventStores", {}), d(this, "gestureTimeoutStores", {}), d(this, "handlers", {}), d(this, "config", {}), d(this, "pointerIds", /* @__PURE__ */ new Set()), d(this, "touchIds", /* @__PURE__ */ new Set()), d(this, "state", {
133
- shared: {
134
- shiftKey: !1,
135
- metaKey: !1,
136
- ctrlKey: !1,
137
- altKey: !1
138
- }
139
- }), W(this, e);
140
- }
141
- setEventIds(e) {
142
- if (S(e))
143
- return this.touchIds = new Set(y(e)), this.touchIds;
144
- if ("pointerId" in e)
145
- return e.type === "pointerup" || e.type === "pointercancel" ? this.pointerIds.delete(e.pointerId) : e.type === "pointerdown" && this.pointerIds.add(e.pointerId), this.pointerIds;
146
- }
147
- applyHandlers(e, s) {
148
- this.handlers = e, this.nativeHandlers = s;
149
- }
150
- applyConfig(e, s) {
151
- this.config = H(e, s, this.config);
152
- }
153
- clean() {
154
- this._targetEventStore.clean();
155
- for (const e of this.gestures)
156
- this.gestureEventStores[e].clean(), this.gestureTimeoutStores[e].clean();
157
- }
158
- effect() {
159
- return this.config.shared.target && this.bind(), () => this._targetEventStore.clean();
160
- }
161
- bind(...e) {
162
- const s = this.config.shared, n = {};
163
- let r;
164
- if (!(s.target && (r = s.target(), !r))) {
165
- if (s.enabled) {
166
- for (const i of this.gestures) {
167
- const u = this.config[i], h = b(n, u.eventOptions, !!r);
168
- if (u.enabled) {
169
- const a = E.get(i);
170
- new a(this, e, i).bind(h);
171
- }
172
- }
173
- const o = b(n, s.eventOptions, !!r);
174
- for (const i in this.nativeHandlers)
175
- o(i, "", (u) => this.nativeHandlers[i](p(p({}, this.state.shared), {}, {
176
- event: u,
177
- args: e
178
- })), void 0, !0);
179
- }
180
- for (const o in n)
181
- n[o] = O(...n[o]);
182
- if (!r)
183
- return n;
184
- for (const o in n) {
185
- const {
186
- device: i,
187
- capture: u,
188
- passive: h
189
- } = P(o);
190
- this._targetEventStore.add(r, i, "", n[o], {
191
- capture: u,
192
- passive: h
193
- });
194
- }
195
- }
196
- }
197
- }
198
- function l(t, e) {
199
- t.gestures.add(e), t.gestureEventStores[e] = new _(t, e), t.gestureTimeoutStores[e] = new R();
200
- }
201
- function W(t, e) {
202
- e.drag && l(t, "drag"), e.wheel && l(t, "wheel"), e.scroll && l(t, "scroll"), e.move && l(t, "move"), e.pinch && l(t, "pinch"), e.hover && l(t, "hover");
203
- }
204
- const b = (t, e, s) => (n, r, o, i = {}, u = !1) => {
205
- var h, a;
206
- const c = (h = i.capture) !== null && h !== void 0 ? h : e.capture, v = (a = i.passive) !== null && a !== void 0 ? a : e.passive;
207
- let g = u ? n : T(n, r, c);
208
- s && v && (g += "Passive"), t[g] = t[g] || [], t[g].push(o);
209
- }, $ = /^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;
210
- function x(t) {
211
- const e = {}, s = {}, n = /* @__PURE__ */ new Set();
212
- for (let r in t)
213
- $.test(r) ? (n.add(RegExp.lastMatch), s[r] = t[r]) : e[r] = t[r];
214
- return [s, e, n];
215
- }
216
- function f(t, e, s, n, r, o) {
217
- if (!t.has(s))
218
- return;
219
- if (!E.has(n)) {
220
- process.env.NODE_ENV === "development" && console.warn(`[@use-gesture]: You've created a custom handler that that uses the \`${n}\` gesture but isn't properly configured.
221
-
222
- Please add \`${n}Action\` when creating your handler.`);
223
- return;
224
- }
225
- const i = s + "Start", u = s + "End", h = (a) => {
226
- let c;
227
- return a.first && i in e && e[i](a), s in e && (c = e[s](a)), a.last && u in e && e[u](a), c;
228
- };
229
- r[n] = h, o[n] = o[n] || {};
230
- }
231
- function L(t, e) {
232
- const [s, n, r] = x(t), o = {};
233
- return f(r, s, "onDrag", "drag", o, e), f(r, s, "onWheel", "wheel", o, e), f(r, s, "onScroll", "scroll", o, e), f(r, s, "onPinch", "pinch", o, e), f(r, s, "onMove", "move", o, e), f(r, s, "onHover", "hover", o, e), {
234
- handlers: o,
235
- config: e,
236
- nativeHandlers: n
237
- };
238
- }
239
- export {
240
- G as Controller,
241
- L as parseMergedHandlers
242
- };
@@ -1,33 +0,0 @@
1
- import i from "react";
2
- import { Controller as c, parseMergedHandlers as d } from "../../core/dist/use-gesture-core.esm.mjs";
3
- import { r as a, e as p } from "../../core/dist/actions-fe213e88.esm.mjs";
4
- import { C as A, E as H, f as R } from "../../core/dist/actions-fe213e88.esm.mjs";
5
- function f(r, n = {}, t, o) {
6
- const e = i.useMemo(() => new c(r), []);
7
- if (e.applyHandlers(r, o), e.applyConfig(n, t), i.useEffect(e.effect.bind(e)), i.useEffect(() => e.clean.bind(e), []), n.target === void 0)
8
- return e.bind.bind(e);
9
- }
10
- function E(r, n) {
11
- return a(p), f({
12
- drag: r
13
- }, n || {}, "drag");
14
- }
15
- function b(r) {
16
- return r.forEach(a), function(t, o) {
17
- const {
18
- handlers: e,
19
- nativeHandlers: s,
20
- config: u
21
- } = d(t, o || {});
22
- return f(e, u, void 0, s);
23
- };
24
- }
25
- export {
26
- A as ConfigResolverMap,
27
- H as EngineMap,
28
- b as createUseGesture,
29
- p as dragAction,
30
- R as pinchAction,
31
- a as registerAction,
32
- E as useDrag
33
- };
@@ -1,20 +0,0 @@
1
- import e, { useContext as n } from "react";
2
- import o from "../../locales/zh-CN.mjs";
3
- const r = {
4
- current: {
5
- locale: o
6
- }
7
- };
8
- function u() {
9
- return r.current;
10
- }
11
- const f = e.createContext(null);
12
- function l() {
13
- var t;
14
- return (t = n(f)) !== null && t !== void 0 ? t : u();
15
- }
16
- export {
17
- r as defaultConfigRef,
18
- u as getDefaultConfig,
19
- l as useConfig
20
- };
@@ -1,4 +0,0 @@
1
- const e = "";
2
- export {
3
- e as default
4
- };
@@ -1,78 +0,0 @@
1
- import u from "../../../../classnames/index.mjs";
2
- import a, { forwardRef as _, useState as y, useRef as R, useImperativeHandle as I, useCallback as S } from "react";
3
- import { renderToContainer as g } from "../../utils/render-to-container.mjs";
4
- import { mergeProps as p } from "../../utils/with-default-props.mjs";
5
- import "../mask/mask.css.mjs";
6
- import { Mask as C } from "../mask/mask.mjs";
7
- import "../safe-area/safe-area.css.mjs";
8
- import { SafeArea as b } from "../safe-area/safe-area.mjs";
9
- import { Slide as h } from "./slide.mjs";
10
- import { Slides as k } from "./slides.mjs";
11
- const m = "adm-image-viewer", x = {
12
- maxZoom: 3,
13
- getContainer: null,
14
- visible: !1
15
- }, A = (d) => {
16
- var s, t, i;
17
- const o = p(x, d), e = a.createElement(C, {
18
- visible: o.visible,
19
- disableBodyScroll: !1,
20
- opacity: "thick",
21
- afterClose: o.afterClose,
22
- destroyOnClose: !0,
23
- className: (s = o == null ? void 0 : o.classNames) === null || s === void 0 ? void 0 : s.mask
24
- }, a.createElement("div", {
25
- className: u(`${m}-content`, (t = o == null ? void 0 : o.classNames) === null || t === void 0 ? void 0 : t.body)
26
- }, (o.image || typeof o.imageRender == "function") && a.createElement(h, {
27
- image: o.image,
28
- onTap: o.onClose,
29
- maxZoom: o.maxZoom,
30
- imageRender: o.imageRender
31
- })), o.image && a.createElement("div", {
32
- className: `${m}-footer`
33
- }, (i = o.renderFooter) === null || i === void 0 ? void 0 : i.call(o, o.image), a.createElement(b, {
34
- position: "bottom"
35
- })));
36
- return g(o.getContainer, e);
37
- }, T = Object.assign(Object.assign({}, x), {
38
- defaultIndex: 0
39
- }), D = _((d, s) => {
40
- var t, i, o;
41
- const e = p(T, d), [n, v] = y(e.defaultIndex), f = R(null);
42
- I(s, () => ({
43
- swipeTo: (l, r) => {
44
- var c;
45
- v(l), (c = f.current) === null || c === void 0 || c.swipeTo(l, r);
46
- }
47
- }));
48
- const N = S((l) => {
49
- var r;
50
- l !== n && (v(l), (r = e.onIndexChange) === null || r === void 0 || r.call(e, l));
51
- }, [e.onIndexChange, n]), E = a.createElement(C, {
52
- visible: e.visible,
53
- disableBodyScroll: !1,
54
- opacity: "thick",
55
- afterClose: e.afterClose,
56
- destroyOnClose: !0,
57
- className: (t = e == null ? void 0 : e.classNames) === null || t === void 0 ? void 0 : t.mask
58
- }, a.createElement("div", {
59
- className: u(`${m}-content`, (i = e == null ? void 0 : e.classNames) === null || i === void 0 ? void 0 : i.body)
60
- }, e.images && a.createElement(k, {
61
- ref: f,
62
- defaultIndex: n,
63
- onIndexChange: N,
64
- images: e.images,
65
- onTap: e.onClose,
66
- maxZoom: e.maxZoom,
67
- imageRender: e.imageRender
68
- })), e.images && a.createElement("div", {
69
- className: `${m}-footer`
70
- }, (o = e.renderFooter) === null || o === void 0 ? void 0 : o.call(e, e.images[n], n), a.createElement(b, {
71
- position: "bottom"
72
- })));
73
- return g(e.getContainer, E);
74
- });
75
- export {
76
- A as ImageViewer,
77
- D as MultiImageViewer
78
- };
@@ -1,14 +0,0 @@
1
- import "./image-viewer.css.mjs";
2
- import { attachPropertiesToComponent as e } from "../../utils/attach-properties-to-component.mjs";
3
- import { ImageViewer as r, MultiImageViewer as o } from "./image-viewer.mjs";
4
- import { showImageViewer as i, clearImageViewer as m, showMultiImageViewer as t } from "./methods.mjs";
5
- const a = e(o, {
6
- show: t
7
- }), I = e(r, {
8
- Multi: a,
9
- show: i,
10
- clear: m
11
- });
12
- export {
13
- I as default
14
- };
@@ -1,34 +0,0 @@
1
- import l from "react";
2
- import { ImageViewer as i, MultiImageViewer as c } from "./image-viewer.mjs";
3
- import { renderImperatively as n } from "../../utils/render-imperatively.mjs";
4
- const r = /* @__PURE__ */ new Set();
5
- function s(e) {
6
- o();
7
- const t = n(l.createElement(i, Object.assign({}, e, {
8
- afterClose: () => {
9
- var a;
10
- r.delete(t), (a = e.afterClose) === null || a === void 0 || a.call(e);
11
- }
12
- })));
13
- return r.add(t), t;
14
- }
15
- function u(e) {
16
- o();
17
- const t = n(l.createElement(c, Object.assign({}, e, {
18
- afterClose: () => {
19
- var a;
20
- r.delete(t), (a = e.afterClose) === null || a === void 0 || a.call(e);
21
- }
22
- })));
23
- return r.add(t), t;
24
- }
25
- function o() {
26
- r.forEach((e) => {
27
- e.close();
28
- }), r.clear();
29
- }
30
- export {
31
- o as clearImageViewer,
32
- s as showImageViewer,
33
- u as showMultiImageViewer
34
- };
@@ -1,178 +0,0 @@
1
- import { a as H } from "../../../../@react-spring/web/dist/react-spring-web.esm.mjs";
2
- import { useSize as $ } from "ahooks";
3
- import y, { useRef as R } from "react";
4
- import { bound as w } from "../../utils/bound.mjs";
5
- import { getScaleX as Y, create as T, getTranslateX as k, getTranslateY as A, translate as b, scale as W, apply as C } from "../../utils/matrix.mjs";
6
- import { rubberbandIfOutOfBounds as B } from "../../utils/rubberband.mjs";
7
- import { useDragAndPinch as j } from "../../utils/use-drag-and-pinch.mjs";
8
- import { useSpring as q } from "../../../../@react-spring/core/dist/react-spring-core.esm.mjs";
9
- const z = "adm-image-viewer", et = (d) => {
10
- const {
11
- dragLockRef: g,
12
- maxZoom: I,
13
- imageRender: E,
14
- index: D
15
- } = d, L = R([]), S = R(null), M = R(null), [{
16
- matrix: u
17
- }, p] = q(() => ({
18
- matrix: T(),
19
- config: {
20
- tension: 200
21
- }
22
- })), n = $(S), s = $(M), O = R(!1), Z = (t) => {
23
- if (!n || !s)
24
- return {
25
- x: {
26
- position: 0,
27
- minX: 0,
28
- maxX: 0
29
- },
30
- y: {
31
- position: 0,
32
- minY: 0,
33
- maxY: 0
34
- }
35
- };
36
- const r = -n.width / 2, c = -n.height / 2, e = -s.width / 2, o = -s.height / 2, a = Y(t), m = a * s.width, l = a * s.height, f = r - (m - n.width), i = r, X = c - (l - n.height), v = c, [h, x] = C(t, [e, o]);
37
- return {
38
- x: {
39
- position: h,
40
- minX: f,
41
- maxX: i
42
- },
43
- y: {
44
- position: x,
45
- minY: X,
46
- maxY: v
47
- }
48
- };
49
- }, _ = (t, r, c, e = 0) => [t <= r - e, t >= c + e], N = (t, r, c = !1) => {
50
- if (!n || !s)
51
- return t;
52
- const e = Y(t), o = e * s.width, a = e * s.height, {
53
- x: {
54
- position: m,
55
- minX: l,
56
- maxX: f
57
- },
58
- y: {
59
- position: i,
60
- minY: X,
61
- maxY: v
62
- }
63
- } = Z(t);
64
- if (r === "translate") {
65
- let h = m, x = i;
66
- return o > n.width ? h = c ? w(m, l, f) : B(m, l, f, e * 50) : h = -o / 2, a > n.height ? x = c ? w(i, X, v) : B(i, X, v, e * 50) : x = -a / 2, b(t, h - m, x - i);
67
- }
68
- if (r === "scale" && c) {
69
- const [h, x] = [o > n.width ? w(m, l, f) : -o / 2, a > n.height ? w(i, X, v) : -a / 2];
70
- return b(t, h - m, x - i);
71
- }
72
- return t;
73
- };
74
- j({
75
- onDrag: (t) => {
76
- var r;
77
- if (t.first) {
78
- const {
79
- x: {
80
- position: e,
81
- minX: o,
82
- maxX: a
83
- }
84
- } = Z(u.get());
85
- L.current = _(e, o, a);
86
- return;
87
- }
88
- if (t.pinching)
89
- return t.cancel();
90
- if (t.tap && t.elapsedTime > 0 && t.elapsedTime < 1e3) {
91
- (r = d.onTap) === null || r === void 0 || r.call(d);
92
- return;
93
- }
94
- const c = Y(u.get());
95
- if (g && (g.current = c !== 1), !O.current && c <= 1)
96
- p.start({
97
- matrix: T()
98
- });
99
- else {
100
- const e = u.get(), o = [t.offset[0] - k(e), t.offset[1] - A(e)], a = b(e, ...t.last ? [o[0] + t.velocity[0] * t.direction[0] * 200, o[1] + t.velocity[1] * t.direction[1] * 200] : o);
101
- p.start({
102
- matrix: N(a, "translate", t.last),
103
- immediate: !t.last
104
- });
105
- const {
106
- x: {
107
- position: m,
108
- minX: l,
109
- maxX: f
110
- }
111
- } = Z(a);
112
- t.last && L.current.some((i) => i) && _(m, l, f).some((i) => i) && (g && (g.current = !1), p.start({
113
- matrix: T()
114
- }));
115
- }
116
- },
117
- onPinch: (t) => {
118
- var r;
119
- O.current = !t.last;
120
- const [c] = t.offset;
121
- if (c < 0)
122
- return;
123
- let e;
124
- I === "auto" ? e = n && s ? Math.max(n.height / s.height, n.width / s.width) : 1 : e = I;
125
- const o = t.last ? w(c, 1, e) : c;
126
- if ((r = d.onZoomChange) === null || r === void 0 || r.call(d, o), t.last && o <= 1)
127
- p.start({
128
- matrix: T()
129
- }), g && (g.current = !1);
130
- else {
131
- if (!n)
132
- return;
133
- const a = u.get(), m = Y(a), l = t.origin[0] - n.width / 2, f = t.origin[1] - n.height / 2;
134
- let i = b(a, -l, -f);
135
- i = W(i, o / m), i = b(i, l, f), p.start({
136
- matrix: N(i, "scale", t.last),
137
- immediate: !t.last
138
- }), g && (g.current = !0);
139
- }
140
- }
141
- }, {
142
- target: S,
143
- drag: {
144
- from: () => [k(u.get()), A(u.get())],
145
- pointer: {
146
- touch: !0
147
- }
148
- },
149
- pinch: {
150
- from: () => [Y(u.get()), 0],
151
- pointer: {
152
- touch: !0
153
- }
154
- }
155
- });
156
- const P = typeof E == "function" && E(d.image, {
157
- index: D
158
- });
159
- return y.createElement("div", {
160
- className: `${z}-slide`
161
- }, y.createElement("div", {
162
- className: `${z}-control`,
163
- ref: S
164
- }, y.createElement(H.div, {
165
- className: `${z}-image-wrapper`,
166
- style: {
167
- matrix: u
168
- }
169
- }, P || y.createElement("img", {
170
- ref: M,
171
- src: d.image,
172
- draggable: !1,
173
- alt: d.image
174
- }))));
175
- };
176
- export {
177
- et as Slide
178
- };