@tarojs/components 4.0.0-canary.8 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (825) hide show
  1. package/LICENSE +17 -3
  2. package/README.md +1 -1
  3. package/dist/cjs/{index-5a8221ec.js → index-09efe07d.js} +208 -2
  4. package/dist/cjs/{index-dfd8638f.js → index-8a70c333.js} +6 -0
  5. package/dist/cjs/{index-b8c435ee.js → index-b873e40f.js} +45 -27
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/cjs/taro-ad-core.cjs.entry.js +1 -1
  8. package/dist/cjs/taro-ad-custom-core.cjs.entry.js +1 -1
  9. package/dist/cjs/taro-animation-video-core.cjs.entry.js +1 -1
  10. package/dist/cjs/taro-animation-view-core.cjs.entry.js +1 -1
  11. package/dist/cjs/taro-ar-camera-core.cjs.entry.js +1 -1
  12. package/dist/cjs/taro-audio-core.cjs.entry.js +2 -2
  13. package/dist/cjs/taro-aweme-data-core.cjs.entry.js +1 -1
  14. package/dist/cjs/taro-block-core.cjs.entry.js +1 -1
  15. package/dist/cjs/taro-button-core.cjs.entry.js +3 -3
  16. package/dist/cjs/taro-camera-core.cjs.entry.js +1 -1
  17. package/dist/cjs/taro-canvas-core.cjs.entry.js +2 -2
  18. package/dist/cjs/taro-channel-live-core.cjs.entry.js +1 -1
  19. package/dist/cjs/taro-channel-video-core.cjs.entry.js +1 -1
  20. package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +2 -2
  21. package/dist/cjs/taro-comment-detail-core.cjs.entry.js +1 -1
  22. package/dist/cjs/taro-comment-list-core.cjs.entry.js +1 -1
  23. package/dist/cjs/taro-components.cjs.js +2 -2
  24. package/dist/cjs/taro-contact-button-core.cjs.entry.js +1 -1
  25. package/dist/cjs/taro-cover-image-core.cjs.entry.js +2 -2
  26. package/dist/cjs/taro-cover-view-core.cjs.entry.js +2 -2
  27. package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +1 -1
  28. package/dist/cjs/taro-draggable-sheet-core.cjs.entry.js +21 -0
  29. package/dist/cjs/taro-editor-core.cjs.entry.js +1 -1
  30. package/dist/cjs/taro-follow-swan-core.cjs.entry.js +1 -1
  31. package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
  32. package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +1 -1
  33. package/dist/cjs/taro-grid-builder-core.cjs.entry.js +21 -0
  34. package/dist/cjs/taro-grid-view-core.cjs.entry.js +1 -1
  35. package/dist/cjs/taro-icon-core.cjs.entry.js +5 -2
  36. package/dist/cjs/taro-image-core.cjs.entry.js +7 -6
  37. package/dist/cjs/taro-inline-payment-panel-core.cjs.entry.js +1 -1
  38. package/dist/cjs/taro-input-core.cjs.entry.js +2 -2
  39. package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +1 -1
  40. package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
  41. package/dist/cjs/taro-lifestyle-core.cjs.entry.js +1 -1
  42. package/dist/cjs/taro-like-core.cjs.entry.js +1 -1
  43. package/dist/cjs/taro-list-builder-core.cjs.entry.js +21 -0
  44. package/dist/cjs/taro-list-view-core.cjs.entry.js +1 -1
  45. package/dist/cjs/taro-live-player-core.cjs.entry.js +1 -1
  46. package/dist/cjs/taro-live-pusher-core.cjs.entry.js +1 -1
  47. package/dist/cjs/taro-login-core.cjs.entry.js +1 -1
  48. package/dist/cjs/taro-lottie-core.cjs.entry.js +1 -1
  49. package/dist/cjs/taro-map-core.cjs.entry.js +1325 -6
  50. package/dist/cjs/taro-match-media-core.cjs.entry.js +1 -1
  51. package/dist/cjs/taro-movable-area-core_2.cjs.entry.js +8 -5
  52. package/dist/cjs/taro-native-slot-core.cjs.entry.js +1 -1
  53. package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +1 -1
  54. package/dist/cjs/taro-navigator-core.cjs.entry.js +2 -2
  55. package/dist/cjs/taro-nested-scroll-body-core.cjs.entry.js +21 -0
  56. package/dist/cjs/taro-nested-scroll-header-core.cjs.entry.js +21 -0
  57. package/dist/cjs/taro-official-account-core.cjs.entry.js +1 -1
  58. package/dist/cjs/taro-open-container-core.cjs.entry.js +21 -0
  59. package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
  60. package/dist/cjs/taro-page-container-core.cjs.entry.js +1 -1
  61. package/dist/cjs/taro-page-meta-core.cjs.entry.js +1 -1
  62. package/dist/cjs/taro-picker-core_2.cjs.entry.js +3 -3
  63. package/dist/cjs/taro-picker-view-column-core_2.cjs.entry.js +5 -5
  64. package/dist/cjs/taro-progress-core.cjs.entry.js +4 -1
  65. package/dist/cjs/taro-pull-to-refresh-core.cjs.entry.js +6 -3
  66. package/dist/cjs/taro-radio-core_2.cjs.entry.js +1 -1
  67. package/dist/cjs/taro-rich-text-core.cjs.entry.js +2 -2
  68. package/dist/cjs/taro-root-portal-core.cjs.entry.js +1 -1
  69. package/dist/cjs/taro-rtc-room-core.cjs.entry.js +1 -1
  70. package/dist/cjs/taro-rtc-room-item-core.cjs.entry.js +1 -1
  71. package/dist/cjs/taro-scroll-view-core.cjs.entry.js +4 -4
  72. package/dist/cjs/taro-share-element-core.cjs.entry.js +1 -1
  73. package/dist/cjs/taro-slider-core.cjs.entry.js +4 -1
  74. package/dist/cjs/taro-slot-core.cjs.entry.js +1 -1
  75. package/dist/cjs/taro-snapshot-core.cjs.entry.js +1 -1
  76. package/dist/cjs/taro-span-core.cjs.entry.js +21 -0
  77. package/dist/cjs/taro-sticky-header-core.cjs.entry.js +1 -1
  78. package/dist/cjs/taro-sticky-section-core.cjs.entry.js +1 -1
  79. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +58 -9868
  80. package/dist/cjs/taro-switch-core.cjs.entry.js +13 -12
  81. package/dist/cjs/taro-tab-item-core.cjs.entry.js +1 -1
  82. package/dist/cjs/taro-tabbar.cjs.entry.js +15 -87
  83. package/dist/cjs/taro-tabs-core.cjs.entry.js +1 -1
  84. package/dist/cjs/taro-text-core.cjs.entry.js +2 -2
  85. package/dist/cjs/taro-textarea-core.cjs.entry.js +12 -3
  86. package/dist/cjs/taro-video-control_3.cjs.entry.js +38 -9
  87. package/dist/cjs/taro-view-core.cjs.entry.js +3 -3
  88. package/dist/cjs/taro-voip-room-core.cjs.entry.js +1 -1
  89. package/dist/cjs/taro-web-view-core.cjs.entry.js +2 -2
  90. package/dist/collection/collection-manifest.json +7 -0
  91. package/dist/collection/components/audio/style/index.css +1 -4
  92. package/dist/collection/components/button/style/index.css +1 -160
  93. package/dist/collection/components/canvas/style/index.css +1 -6
  94. package/dist/collection/components/checkbox/style/index.css +1 -39
  95. package/dist/collection/components/cover-image/style/index.css +1 -5
  96. package/dist/collection/components/cover-view/style/cover-view.css +1 -3
  97. package/dist/collection/components/draggable-sheet/draggable-sheet.js +11 -0
  98. package/dist/collection/components/grid-builder/grid-builder.js +11 -0
  99. package/dist/collection/components/icon/icon.js +10 -0
  100. package/dist/collection/components/icon/style/index.css +1 -0
  101. package/dist/collection/components/image/image.js +4 -3
  102. package/dist/collection/components/image/style/index.css +1 -73
  103. package/dist/collection/components/input/input.js +2 -2
  104. package/dist/collection/components/input/style/index.css +1 -0
  105. package/dist/collection/components/list-builder/list-builder.js +11 -0
  106. package/dist/collection/components/map/map.js +1806 -4
  107. package/dist/collection/components/map/style/map.css +1 -0
  108. package/dist/collection/components/movable-area/area.css +1 -6
  109. package/dist/collection/components/movable-area/movable-area.js +2 -1
  110. package/dist/collection/components/movable-area/movable-view.js +3 -1
  111. package/dist/collection/components/movable-area/view.css +1 -8
  112. package/dist/collection/components/navigator/style/index.css +1 -3
  113. package/dist/collection/components/nested-scroll-body/nested-scroll-body.js +11 -0
  114. package/dist/collection/components/nested-scroll-header/nested-scroll-header.js +11 -0
  115. package/dist/collection/components/open-container/open-container.js +11 -0
  116. package/dist/collection/components/picker/style/index.css +1 -4
  117. package/dist/collection/components/picker-view/style/column.css +1 -12
  118. package/dist/collection/components/picker-view/style/index.css +1 -28
  119. package/dist/collection/components/progress/progress.js +10 -0
  120. package/dist/collection/components/progress/style/index.css +1 -0
  121. package/dist/collection/components/pull-to-refresh/pull-to-refresh.js +3 -0
  122. package/dist/collection/components/pull-to-refresh/style/index.css +1 -52
  123. package/dist/collection/components/rich-text/style/index.css +1 -16
  124. package/dist/collection/components/scroll-view/style/index.css +1 -17
  125. package/dist/collection/components/slider/slider.js +10 -0
  126. package/dist/collection/components/slider/style/index.css +1 -0
  127. package/dist/collection/components/span/span.js +11 -0
  128. package/dist/collection/components/swiper/style/index.css +2 -19
  129. package/dist/collection/components/swiper/swiper.js +59 -5
  130. package/dist/collection/components/switch/style/index.css +1 -10
  131. package/dist/collection/components/switch/switch.js +12 -12
  132. package/dist/collection/components/tabbar/style/index.css +1 -53
  133. package/dist/collection/components/tabbar/tabbar.js +1 -1
  134. package/dist/collection/components/text/style/index.css +1 -26
  135. package/dist/collection/components/textarea/style/index.css +1 -22
  136. package/dist/collection/components/textarea/textarea.js +11 -0
  137. package/dist/collection/components/video/style/index.css +1 -327
  138. package/dist/collection/components/video/video.js +8 -3
  139. package/dist/collection/components/view/style/index.css +1 -9
  140. package/dist/collection/components/web-view/style/index.css +1 -12
  141. package/dist/collection/utils/index.js +10 -0
  142. package/dist/components/index.d.ts +7 -0
  143. package/dist/components/index.js +7 -0
  144. package/dist/components/index2.js +45 -27
  145. package/dist/components/index3.js +6 -1
  146. package/dist/components/taro-audio-core.js +1 -1
  147. package/dist/components/taro-button-core.js +1 -1
  148. package/dist/components/taro-canvas-core.js +1 -1
  149. package/dist/components/taro-checkbox-core.js +1 -1
  150. package/dist/components/taro-cover-image-core.js +1 -1
  151. package/dist/components/taro-draggable-sheet-core.d.ts +11 -0
  152. package/dist/components/taro-draggable-sheet-core.js +33 -0
  153. package/dist/components/taro-grid-builder-core.d.ts +11 -0
  154. package/dist/components/taro-grid-builder-core.js +33 -0
  155. package/dist/components/taro-icon-core.js +3 -0
  156. package/dist/components/taro-image-core.js +5 -4
  157. package/dist/components/taro-input-core.js +1 -1
  158. package/dist/components/taro-list-builder-core.d.ts +11 -0
  159. package/dist/components/taro-list-builder-core.js +33 -0
  160. package/dist/components/taro-map-core.js +1349 -6
  161. package/dist/components/taro-movable-area-core.js +3 -2
  162. package/dist/components/taro-movable-view-core.js +4 -2
  163. package/dist/components/taro-nested-scroll-body-core.d.ts +11 -0
  164. package/dist/components/taro-nested-scroll-body-core.js +33 -0
  165. package/dist/components/taro-nested-scroll-header-core.d.ts +11 -0
  166. package/dist/components/taro-nested-scroll-header-core.js +33 -0
  167. package/dist/components/taro-open-container-core.d.ts +11 -0
  168. package/dist/components/taro-open-container-core.js +33 -0
  169. package/dist/components/taro-picker-core.js +1 -1
  170. package/dist/components/taro-picker-view-column-core.js +1 -1
  171. package/dist/components/taro-picker-view-core.js +1 -1
  172. package/dist/components/taro-progress-core.js +3 -0
  173. package/dist/components/taro-pull-to-refresh-core.js +4 -1
  174. package/dist/components/taro-rich-text-core.js +1 -1
  175. package/dist/components/taro-scroll-view-core.js +1 -1
  176. package/dist/components/taro-slider-core.js +3 -0
  177. package/dist/components/taro-span-core.d.ts +11 -0
  178. package/dist/components/taro-span-core.js +33 -0
  179. package/dist/components/taro-swiper-core.js +45 -9858
  180. package/dist/components/taro-switch-core.js +13 -13
  181. package/dist/components/taro-tabbar.js +4 -77
  182. package/dist/components/taro-text-core.js +1 -1
  183. package/dist/components/taro-textarea-core.js +11 -2
  184. package/dist/components/taro-video-core.js +10 -5
  185. package/dist/components/taro-view-core.js +1 -1
  186. package/dist/components/taro-web-view-core.js +1 -1
  187. package/dist/esm/{index-6bb77c5f.js → index-9924aee9.js} +208 -2
  188. package/dist/esm/{index-d1b03e47.js → index-a00a7418.js} +6 -1
  189. package/dist/esm/{index-a74b6944.js → index-b9522531.js} +45 -27
  190. package/dist/esm/loader.js +3 -3
  191. package/dist/esm/taro-ad-core.entry.js +1 -1
  192. package/dist/esm/taro-ad-custom-core.entry.js +1 -1
  193. package/dist/esm/taro-animation-video-core.entry.js +1 -1
  194. package/dist/esm/taro-animation-view-core.entry.js +1 -1
  195. package/dist/esm/taro-ar-camera-core.entry.js +1 -1
  196. package/dist/esm/taro-audio-core.entry.js +2 -2
  197. package/dist/esm/taro-aweme-data-core.entry.js +1 -1
  198. package/dist/esm/taro-block-core.entry.js +1 -1
  199. package/dist/esm/taro-button-core.entry.js +3 -3
  200. package/dist/esm/taro-camera-core.entry.js +1 -1
  201. package/dist/esm/taro-canvas-core.entry.js +2 -2
  202. package/dist/esm/taro-channel-live-core.entry.js +1 -1
  203. package/dist/esm/taro-channel-video-core.entry.js +1 -1
  204. package/dist/esm/taro-checkbox-core_2.entry.js +2 -2
  205. package/dist/esm/taro-comment-detail-core.entry.js +1 -1
  206. package/dist/esm/taro-comment-list-core.entry.js +1 -1
  207. package/dist/esm/taro-components.js +3 -3
  208. package/dist/esm/taro-contact-button-core.entry.js +1 -1
  209. package/dist/esm/taro-cover-image-core.entry.js +2 -2
  210. package/dist/esm/taro-cover-view-core.entry.js +2 -2
  211. package/dist/esm/taro-custom-wrapper-core.entry.js +1 -1
  212. package/dist/esm/taro-draggable-sheet-core.entry.js +17 -0
  213. package/dist/esm/taro-editor-core.entry.js +1 -1
  214. package/dist/esm/taro-follow-swan-core.entry.js +1 -1
  215. package/dist/esm/taro-form-core.entry.js +1 -1
  216. package/dist/esm/taro-functional-page-navigator-core.entry.js +1 -1
  217. package/dist/esm/taro-grid-builder-core.entry.js +17 -0
  218. package/dist/esm/taro-grid-view-core.entry.js +1 -1
  219. package/dist/esm/taro-icon-core.entry.js +5 -2
  220. package/dist/esm/taro-image-core.entry.js +7 -6
  221. package/dist/esm/taro-inline-payment-panel-core.entry.js +1 -1
  222. package/dist/esm/taro-input-core.entry.js +2 -2
  223. package/dist/esm/taro-keyboard-accessory-core.entry.js +1 -1
  224. package/dist/esm/taro-label-core.entry.js +1 -1
  225. package/dist/esm/taro-lifestyle-core.entry.js +1 -1
  226. package/dist/esm/taro-like-core.entry.js +1 -1
  227. package/dist/esm/taro-list-builder-core.entry.js +17 -0
  228. package/dist/esm/taro-list-view-core.entry.js +1 -1
  229. package/dist/esm/taro-live-player-core.entry.js +1 -1
  230. package/dist/esm/taro-live-pusher-core.entry.js +1 -1
  231. package/dist/esm/taro-login-core.entry.js +1 -1
  232. package/dist/esm/taro-lottie-core.entry.js +1 -1
  233. package/dist/esm/taro-map-core.entry.js +1321 -6
  234. package/dist/esm/taro-match-media-core.entry.js +1 -1
  235. package/dist/esm/taro-movable-area-core_2.entry.js +8 -5
  236. package/dist/esm/taro-native-slot-core.entry.js +1 -1
  237. package/dist/esm/taro-navigation-bar-core.entry.js +1 -1
  238. package/dist/esm/taro-navigator-core.entry.js +2 -2
  239. package/dist/esm/taro-nested-scroll-body-core.entry.js +17 -0
  240. package/dist/esm/taro-nested-scroll-header-core.entry.js +17 -0
  241. package/dist/esm/taro-official-account-core.entry.js +1 -1
  242. package/dist/esm/taro-open-container-core.entry.js +17 -0
  243. package/dist/esm/taro-open-data-core.entry.js +1 -1
  244. package/dist/esm/taro-page-container-core.entry.js +1 -1
  245. package/dist/esm/taro-page-meta-core.entry.js +1 -1
  246. package/dist/esm/taro-picker-core_2.entry.js +3 -3
  247. package/dist/esm/taro-picker-view-column-core_2.entry.js +5 -5
  248. package/dist/esm/taro-progress-core.entry.js +4 -1
  249. package/dist/esm/taro-pull-to-refresh-core.entry.js +6 -3
  250. package/dist/esm/taro-radio-core_2.entry.js +1 -1
  251. package/dist/esm/taro-rich-text-core.entry.js +2 -2
  252. package/dist/esm/taro-root-portal-core.entry.js +1 -1
  253. package/dist/esm/taro-rtc-room-core.entry.js +1 -1
  254. package/dist/esm/taro-rtc-room-item-core.entry.js +1 -1
  255. package/dist/esm/taro-scroll-view-core.entry.js +4 -4
  256. package/dist/esm/taro-share-element-core.entry.js +1 -1
  257. package/dist/esm/taro-slider-core.entry.js +4 -1
  258. package/dist/esm/taro-slot-core.entry.js +1 -1
  259. package/dist/esm/taro-snapshot-core.entry.js +1 -1
  260. package/dist/esm/taro-span-core.entry.js +17 -0
  261. package/dist/esm/taro-sticky-header-core.entry.js +1 -1
  262. package/dist/esm/taro-sticky-section-core.entry.js +1 -1
  263. package/dist/esm/taro-swiper-core_2.entry.js +45 -9859
  264. package/dist/esm/taro-switch-core.entry.js +13 -12
  265. package/dist/esm/taro-tab-item-core.entry.js +1 -1
  266. package/dist/esm/taro-tabbar.entry.js +6 -79
  267. package/dist/esm/taro-tabs-core.entry.js +1 -1
  268. package/dist/esm/taro-text-core.entry.js +2 -2
  269. package/dist/esm/taro-textarea-core.entry.js +12 -3
  270. package/dist/esm/taro-video-control_3.entry.js +13 -8
  271. package/dist/esm/taro-view-core.entry.js +3 -3
  272. package/dist/esm/taro-voip-room-core.entry.js +1 -1
  273. package/dist/esm/taro-web-view-core.entry.js +2 -2
  274. package/dist/esm-es5/index-9924aee9.js +2 -0
  275. package/dist/esm-es5/index-a00a7418.js +1 -0
  276. package/dist/esm-es5/index-b9522531.js +7 -0
  277. package/dist/esm-es5/loader.js +1 -1
  278. package/dist/esm-es5/taro-ad-core.entry.js +1 -1
  279. package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
  280. package/dist/esm-es5/taro-animation-video-core.entry.js +1 -1
  281. package/dist/esm-es5/taro-animation-view-core.entry.js +1 -1
  282. package/dist/esm-es5/taro-ar-camera-core.entry.js +1 -1
  283. package/dist/esm-es5/taro-audio-core.entry.js +1 -1
  284. package/dist/esm-es5/taro-aweme-data-core.entry.js +1 -1
  285. package/dist/esm-es5/taro-block-core.entry.js +1 -1
  286. package/dist/esm-es5/taro-button-core.entry.js +1 -1
  287. package/dist/esm-es5/taro-camera-core.entry.js +1 -1
  288. package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
  289. package/dist/esm-es5/taro-channel-live-core.entry.js +1 -1
  290. package/dist/esm-es5/taro-channel-video-core.entry.js +1 -1
  291. package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
  292. package/dist/esm-es5/taro-comment-detail-core.entry.js +1 -1
  293. package/dist/esm-es5/taro-comment-list-core.entry.js +1 -1
  294. package/dist/esm-es5/taro-components.js +1 -1
  295. package/dist/esm-es5/taro-contact-button-core.entry.js +1 -1
  296. package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
  297. package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
  298. package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
  299. package/dist/esm-es5/taro-draggable-sheet-core.entry.js +1 -0
  300. package/dist/esm-es5/taro-editor-core.entry.js +1 -1
  301. package/dist/esm-es5/taro-follow-swan-core.entry.js +1 -1
  302. package/dist/esm-es5/taro-form-core.entry.js +1 -1
  303. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
  304. package/dist/esm-es5/taro-grid-builder-core.entry.js +1 -0
  305. package/dist/esm-es5/taro-grid-view-core.entry.js +1 -1
  306. package/dist/esm-es5/taro-icon-core.entry.js +1 -1
  307. package/dist/esm-es5/taro-image-core.entry.js +1 -1
  308. package/dist/esm-es5/taro-inline-payment-panel-core.entry.js +1 -1
  309. package/dist/esm-es5/taro-input-core.entry.js +1 -1
  310. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -1
  311. package/dist/esm-es5/taro-label-core.entry.js +1 -1
  312. package/dist/esm-es5/taro-lifestyle-core.entry.js +1 -1
  313. package/dist/esm-es5/taro-like-core.entry.js +1 -1
  314. package/dist/esm-es5/taro-list-builder-core.entry.js +1 -0
  315. package/dist/esm-es5/taro-list-view-core.entry.js +1 -1
  316. package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
  317. package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
  318. package/dist/esm-es5/taro-login-core.entry.js +1 -1
  319. package/dist/esm-es5/taro-lottie-core.entry.js +1 -1
  320. package/dist/esm-es5/taro-map-core.entry.js +1 -1
  321. package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
  322. package/dist/esm-es5/taro-movable-area-core_2.entry.js +1 -1
  323. package/dist/esm-es5/taro-native-slot-core.entry.js +1 -1
  324. package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
  325. package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
  326. package/dist/esm-es5/taro-nested-scroll-body-core.entry.js +1 -0
  327. package/dist/esm-es5/taro-nested-scroll-header-core.entry.js +1 -0
  328. package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
  329. package/dist/esm-es5/taro-open-container-core.entry.js +1 -0
  330. package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
  331. package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
  332. package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
  333. package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
  334. package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +1 -1
  335. package/dist/esm-es5/taro-progress-core.entry.js +1 -1
  336. package/dist/esm-es5/taro-pull-to-refresh-core.entry.js +1 -1
  337. package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
  338. package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
  339. package/dist/esm-es5/taro-root-portal-core.entry.js +1 -1
  340. package/dist/esm-es5/taro-rtc-room-core.entry.js +1 -1
  341. package/dist/esm-es5/taro-rtc-room-item-core.entry.js +1 -1
  342. package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
  343. package/dist/esm-es5/taro-share-element-core.entry.js +1 -1
  344. package/dist/esm-es5/taro-slider-core.entry.js +1 -1
  345. package/dist/esm-es5/taro-slot-core.entry.js +1 -1
  346. package/dist/esm-es5/taro-snapshot-core.entry.js +1 -1
  347. package/dist/esm-es5/taro-span-core.entry.js +1 -0
  348. package/dist/esm-es5/taro-sticky-header-core.entry.js +1 -1
  349. package/dist/esm-es5/taro-sticky-section-core.entry.js +1 -1
  350. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  351. package/dist/esm-es5/taro-switch-core.entry.js +1 -1
  352. package/dist/esm-es5/taro-tab-item-core.entry.js +1 -1
  353. package/dist/esm-es5/taro-tabbar.entry.js +1 -1
  354. package/dist/esm-es5/taro-tabs-core.entry.js +1 -1
  355. package/dist/esm-es5/taro-text-core.entry.js +1 -1
  356. package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
  357. package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
  358. package/dist/esm-es5/taro-view-core.entry.js +1 -1
  359. package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
  360. package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
  361. package/dist/hydrate/index.d.ts +217 -0
  362. package/dist/hydrate/index.js +14603 -0
  363. package/dist/hydrate/package.json +6 -0
  364. package/dist/taro-components/p-010faa87.system.js +1 -0
  365. package/dist/taro-components/p-02465454.system.entry.js +1 -0
  366. package/dist/taro-components/p-02d4d104.entry.js +1 -0
  367. package/dist/taro-components/p-03dc0283.entry.js +1 -0
  368. package/dist/taro-components/p-047e4bfe.entry.js +1 -0
  369. package/dist/taro-components/{p-028ad016.system.entry.js → p-06adeb65.system.entry.js} +1 -1
  370. package/dist/taro-components/p-078cb65e.entry.js +1 -0
  371. package/dist/taro-components/{p-6d7165eb.system.entry.js → p-07ae6678.system.entry.js} +1 -1
  372. package/dist/taro-components/p-07f27474.entry.js +1 -0
  373. package/dist/taro-components/{p-635fe530.system.entry.js → p-083c3147.system.entry.js} +1 -1
  374. package/dist/taro-components/p-0a64f78c.system.entry.js +1 -0
  375. package/dist/taro-components/p-0f2c1ecc.entry.js +1 -0
  376. package/dist/taro-components/{p-7dee8f07.system.entry.js → p-0f480c38.system.entry.js} +1 -1
  377. package/dist/taro-components/{p-18ea7e10.system.entry.js → p-0fc790c0.system.entry.js} +1 -1
  378. package/dist/taro-components/{p-aae38fe8.entry.js → p-0ff5a55b.entry.js} +1 -1
  379. package/dist/taro-components/p-12582166.entry.js +1 -0
  380. package/dist/taro-components/p-156e9634.system.entry.js +1 -0
  381. package/dist/taro-components/p-160d710a.js +7 -0
  382. package/dist/taro-components/{p-25fffbbe.system.entry.js → p-17938fa0.system.entry.js} +1 -1
  383. package/dist/taro-components/{p-46a9adcf.system.entry.js → p-17b9f865.system.entry.js} +1 -1
  384. package/dist/taro-components/p-17e72555.entry.js +1 -0
  385. package/dist/taro-components/p-18c039ef.entry.js +1 -0
  386. package/dist/taro-components/{p-6e1f0e6d.system.entry.js → p-1bd4da3b.system.entry.js} +1 -1
  387. package/dist/taro-components/p-1c37143a.system.entry.js +1 -0
  388. package/dist/taro-components/p-1eea2828.entry.js +1 -0
  389. package/dist/taro-components/p-204996e7.entry.js +1 -0
  390. package/dist/taro-components/{p-23f15c7b.entry.js → p-2649c7ae.entry.js} +1 -1
  391. package/dist/taro-components/p-26eb2f3f.entry.js +1 -0
  392. package/dist/taro-components/p-27041d86.system.entry.js +1 -0
  393. package/dist/taro-components/{p-3d7626a9.system.entry.js → p-27d372b4.system.entry.js} +1 -1
  394. package/dist/taro-components/{p-6c48d884.entry.js → p-280795f2.entry.js} +1 -1
  395. package/dist/taro-components/p-292470e5.entry.js +1 -0
  396. package/dist/taro-components/p-2d537212.entry.js +1 -0
  397. package/dist/taro-components/p-2f177716.entry.js +1 -0
  398. package/dist/taro-components/{p-9f5ebe09.system.entry.js → p-3293c5d9.system.entry.js} +1 -1
  399. package/dist/taro-components/p-32c0f326.entry.js +1 -0
  400. package/dist/taro-components/p-35dec732.entry.js +1 -0
  401. package/dist/taro-components/{p-fff30a48.entry.js → p-38b29261.entry.js} +1 -1
  402. package/dist/taro-components/{p-c7679d57.entry.js → p-3a180dc7.entry.js} +1 -1
  403. package/dist/taro-components/{p-f094089c.system.entry.js → p-3b36196b.system.entry.js} +1 -1
  404. package/dist/taro-components/{p-222573ad.entry.js → p-3bfe9260.entry.js} +1 -1
  405. package/dist/taro-components/{p-345cb56f.entry.js → p-3cf08137.entry.js} +1 -1
  406. package/dist/taro-components/{p-8c93f3e0.entry.js → p-402c7f93.entry.js} +1 -1
  407. package/dist/taro-components/p-425d1d69.entry.js +1 -0
  408. package/dist/taro-components/p-43367dd1.entry.js +1 -0
  409. package/dist/taro-components/p-443b9a72.system.js +7 -0
  410. package/dist/taro-components/p-443e31ab.system.entry.js +1 -0
  411. package/dist/taro-components/p-4523b1c7.entry.js +1 -0
  412. package/dist/taro-components/p-46a66c43.entry.js +1 -0
  413. package/dist/taro-components/{p-03538d40.system.entry.js → p-47790dc0.system.entry.js} +1 -1
  414. package/dist/taro-components/{p-747bdbaa.system.entry.js → p-4979e93c.system.entry.js} +1 -1
  415. package/dist/taro-components/p-4a8b4d58.system.entry.js +1 -0
  416. package/dist/taro-components/{p-aa1ea71b.system.entry.js → p-4ac48df1.system.entry.js} +1 -1
  417. package/dist/taro-components/{p-c2259653.system.entry.js → p-4fad4beb.system.entry.js} +1 -1
  418. package/dist/taro-components/{p-e7232d54.system.entry.js → p-50849470.system.entry.js} +1 -1
  419. package/dist/taro-components/p-53e62840.system.entry.js +1 -0
  420. package/dist/taro-components/p-55e12654.entry.js +1 -0
  421. package/dist/taro-components/p-56552c9e.entry.js +1 -0
  422. package/dist/taro-components/p-56a82bf3.entry.js +1 -0
  423. package/dist/taro-components/p-57911e2c.system.entry.js +1 -0
  424. package/dist/taro-components/{p-3aaf0fb7.system.entry.js → p-57b77f17.system.entry.js} +1 -1
  425. package/dist/taro-components/{p-d86ce035.system.entry.js → p-5884c108.system.entry.js} +1 -1
  426. package/dist/taro-components/p-5893c3ed.js +1 -0
  427. package/dist/taro-components/{p-cd34c92e.system.entry.js → p-5b9aa4b0.system.entry.js} +1 -1
  428. package/dist/taro-components/{p-feddde29.system.entry.js → p-5c156db3.system.entry.js} +1 -1
  429. package/dist/taro-components/{p-b94dcfbe.entry.js → p-5c98f478.entry.js} +1 -1
  430. package/dist/taro-components/p-5f23dc41.system.entry.js +1 -0
  431. package/dist/taro-components/{p-58d410c6.system.entry.js → p-61a325d2.system.entry.js} +1 -1
  432. package/dist/taro-components/{p-3967311b.system.entry.js → p-6282bdee.system.entry.js} +1 -1
  433. package/dist/taro-components/{p-67dcb636.system.entry.js → p-65d11e99.system.entry.js} +1 -1
  434. package/dist/taro-components/{p-1eb875d0.system.entry.js → p-6654374e.system.entry.js} +1 -1
  435. package/dist/taro-components/p-6664a2ca.system.entry.js +1 -0
  436. package/dist/taro-components/p-68197378.entry.js +1 -0
  437. package/dist/taro-components/p-6989c232.entry.js +1 -0
  438. package/dist/taro-components/{p-3708575b.system.entry.js → p-6b83388c.system.entry.js} +1 -1
  439. package/dist/taro-components/p-6ba08ce0.system.entry.js +1 -0
  440. package/dist/taro-components/p-6cc0bcb9.entry.js +1 -0
  441. package/dist/taro-components/p-7163d09e.system.js +1 -0
  442. package/dist/taro-components/{p-edb9e04e.system.entry.js → p-75b4c1fc.system.entry.js} +1 -1
  443. package/dist/taro-components/p-75d01c60.system.js +2 -0
  444. package/dist/taro-components/{p-e487b8b4.system.entry.js → p-75ded8a0.system.entry.js} +1 -1
  445. package/dist/taro-components/p-77e82dfa.entry.js +1 -0
  446. package/dist/taro-components/{p-f232cf02.entry.js → p-79cad66b.entry.js} +1 -1
  447. package/dist/taro-components/p-7ca2d075.system.entry.js +1 -0
  448. package/dist/taro-components/{p-fdccd9b3.system.entry.js → p-7e054ae7.system.entry.js} +1 -1
  449. package/dist/taro-components/p-7e692c70.entry.js +1 -0
  450. package/dist/taro-components/p-7ebd4310.entry.js +1 -0
  451. package/dist/taro-components/p-7fdbcf4d.entry.js +1 -0
  452. package/dist/taro-components/{p-bbbe728b.system.entry.js → p-8179438b.system.entry.js} +1 -1
  453. package/dist/taro-components/{p-1c1d9be8.entry.js → p-84998109.entry.js} +1 -1
  454. package/dist/taro-components/{p-7ad33036.system.entry.js → p-855619b6.system.entry.js} +1 -1
  455. package/dist/taro-components/p-8b0c9d3f.entry.js +1 -0
  456. package/dist/taro-components/{p-0b6e9013.system.entry.js → p-91ee1f8a.system.entry.js} +1 -1
  457. package/dist/taro-components/p-937a6c36.entry.js +1 -0
  458. package/dist/taro-components/{p-475f9ed3.system.entry.js → p-938f9036.system.entry.js} +1 -1
  459. package/dist/taro-components/{p-70c81b7e.entry.js → p-93a2b2e9.entry.js} +1 -1
  460. package/dist/taro-components/p-93b02321.entry.js +1 -0
  461. package/dist/taro-components/p-9571836f.entry.js +1 -0
  462. package/dist/taro-components/{p-b4e3f72e.system.entry.js → p-97b09fb4.system.entry.js} +1 -1
  463. package/dist/taro-components/p-9b6b17c4.system.entry.js +1 -0
  464. package/dist/taro-components/{p-c968ea43.system.entry.js → p-9e359fff.system.entry.js} +1 -1
  465. package/dist/taro-components/p-9f53e26c.system.entry.js +1 -0
  466. package/dist/taro-components/{p-178cb282.system.entry.js → p-a25aca16.system.entry.js} +1 -1
  467. package/dist/taro-components/p-a50c6736.entry.js +1 -0
  468. package/dist/taro-components/{p-32b41faa.system.entry.js → p-a96f8f60.system.entry.js} +1 -1
  469. package/dist/taro-components/{p-9c566d7d.system.entry.js → p-a9ca8247.system.entry.js} +1 -1
  470. package/dist/taro-components/p-aabac550.entry.js +1 -0
  471. package/dist/taro-components/p-ab0e0366.system.entry.js +1 -0
  472. package/dist/taro-components/p-ac2be5f3.entry.js +1 -0
  473. package/dist/taro-components/p-ac714300.system.entry.js +1 -0
  474. package/dist/taro-components/{p-1d3ed211.system.entry.js → p-ac9fb309.system.entry.js} +1 -1
  475. package/dist/taro-components/p-acb113bd.entry.js +1 -0
  476. package/dist/taro-components/p-b087ad2a.system.entry.js +1 -0
  477. package/dist/taro-components/p-b1f80b6b.entry.js +1 -0
  478. package/dist/taro-components/p-b4577a12.system.entry.js +1 -0
  479. package/dist/taro-components/{p-fbc2b53e.entry.js → p-b4c7bb48.entry.js} +1 -1
  480. package/dist/taro-components/p-ba11ef7d.entry.js +1 -0
  481. package/dist/taro-components/{p-810b9a86.system.entry.js → p-ba5e7ec4.system.entry.js} +1 -1
  482. package/dist/taro-components/p-bb67318d.entry.js +1 -0
  483. package/dist/taro-components/{p-6f45f110.entry.js → p-bd57edcd.entry.js} +1 -1
  484. package/dist/taro-components/{p-f43ba9ed.entry.js → p-be055537.entry.js} +1 -1
  485. package/dist/taro-components/{p-eab8a6b0.entry.js → p-be1701b2.entry.js} +1 -1
  486. package/dist/taro-components/{p-e769cea4.system.entry.js → p-c056d527.system.entry.js} +1 -1
  487. package/dist/taro-components/{p-039e15a4.system.entry.js → p-c0c567e5.system.entry.js} +1 -1
  488. package/dist/taro-components/p-c3dc7072.entry.js +1 -0
  489. package/dist/taro-components/{p-680ba5a1.system.entry.js → p-c677414d.system.entry.js} +1 -1
  490. package/dist/taro-components/p-c71d5745.system.entry.js +1 -0
  491. package/dist/taro-components/{p-a7ecb97a.entry.js → p-c7836e2b.entry.js} +1 -1
  492. package/dist/taro-components/p-c7d8c076.system.entry.js +1 -0
  493. package/dist/taro-components/{p-7de7d96c.entry.js → p-c8cd6e16.entry.js} +1 -1
  494. package/dist/taro-components/p-c95d2b90.entry.js +1 -0
  495. package/dist/taro-components/p-ca6a5916.system.entry.js +1 -0
  496. package/dist/taro-components/{p-dea67974.system.entry.js → p-cae6c5d0.system.entry.js} +1 -1
  497. package/dist/taro-components/{p-6d1e33e1.system.entry.js → p-cafbb3d9.system.entry.js} +1 -1
  498. package/dist/taro-components/p-ccbaba23.entry.js +1 -0
  499. package/dist/taro-components/{p-443fe754.system.entry.js → p-d05eb105.system.entry.js} +1 -1
  500. package/dist/taro-components/{p-346162b4.system.entry.js → p-d2203687.system.entry.js} +1 -1
  501. package/dist/taro-components/{p-f8970571.entry.js → p-d5603857.entry.js} +1 -1
  502. package/dist/taro-components/{p-72d7fae0.system.entry.js → p-d73b3a94.system.entry.js} +1 -1
  503. package/dist/taro-components/p-d87a68f6.entry.js +1 -0
  504. package/dist/taro-components/p-d973d536.entry.js +1 -0
  505. package/dist/taro-components/{p-48c52124.entry.js → p-d9884371.entry.js} +1 -1
  506. package/dist/taro-components/p-dc08715a.entry.js +1 -0
  507. package/dist/taro-components/{p-20e38f24.entry.js → p-dc25fa81.entry.js} +1 -1
  508. package/dist/taro-components/p-dcf5747c.system.entry.js +1 -0
  509. package/dist/taro-components/{p-abd51173.system.entry.js → p-ddf75d6a.system.entry.js} +1 -1
  510. package/dist/taro-components/{p-c3c69a95.system.entry.js → p-ded98693.system.entry.js} +1 -1
  511. package/dist/taro-components/{p-0780df27.entry.js → p-dedf50a9.entry.js} +1 -1
  512. package/dist/taro-components/{p-8d797863.system.entry.js → p-df7c6216.system.entry.js} +1 -1
  513. package/dist/taro-components/p-e1cce2f1.entry.js +1 -0
  514. package/dist/taro-components/p-e2e7bc16.entry.js +1 -0
  515. package/dist/taro-components/p-e3d825d1.system.entry.js +1 -0
  516. package/dist/taro-components/p-e5ef41f2.system.entry.js +1 -0
  517. package/dist/taro-components/p-e62a1287.js +2 -0
  518. package/dist/taro-components/p-e681d764.entry.js +1 -0
  519. package/dist/taro-components/p-e853a2c8.system.entry.js +1 -0
  520. package/dist/taro-components/p-ebad862a.system.entry.js +1 -0
  521. package/dist/taro-components/p-ebb1ae64.entry.js +1 -0
  522. package/dist/taro-components/p-f034a433.entry.js +1 -0
  523. package/dist/taro-components/{p-4cc2e06e.entry.js → p-f168fffc.entry.js} +1 -1
  524. package/dist/taro-components/p-f367a754.entry.js +1 -0
  525. package/dist/taro-components/{p-2713fc1a.entry.js → p-f43f26cf.entry.js} +1 -1
  526. package/dist/taro-components/{p-8b604d50.entry.js → p-f5f3a111.entry.js} +1 -1
  527. package/dist/taro-components/{p-1ac9622e.entry.js → p-f8f2461f.entry.js} +1 -1
  528. package/dist/taro-components/p-f9935901.system.entry.js +1 -0
  529. package/dist/taro-components/{p-1411cd2e.system.entry.js → p-fa31b2de.system.entry.js} +1 -1
  530. package/dist/taro-components/p-fab63183.entry.js +1 -0
  531. package/dist/taro-components/{p-4ff6ad99.system.entry.js → p-fbf13159.system.entry.js} +1 -1
  532. package/dist/taro-components/p-fe5eefdc.system.entry.js +1 -0
  533. package/dist/taro-components/{p-d8f78d99.system.entry.js → p-feb89474.system.entry.js} +1 -1
  534. package/dist/taro-components/p-ff772345.entry.js +1 -0
  535. package/dist/taro-components/taro-components.css +1 -5
  536. package/dist/taro-components/taro-components.esm.js +1 -1
  537. package/dist/taro-components/taro-components.js +1 -1
  538. package/dist/types/components/draggable-sheet/draggable-sheet.d.ts +5 -0
  539. package/dist/types/components/grid-builder/grid-builder.d.ts +5 -0
  540. package/dist/types/components/list-builder/list-builder.d.ts +5 -0
  541. package/dist/types/components/map/map.d.ts +145 -2
  542. package/dist/types/components/nested-scroll-body/nested-scroll-body.d.ts +5 -0
  543. package/dist/types/components/nested-scroll-header/nested-scroll-header.d.ts +5 -0
  544. package/dist/types/components/open-container/open-container.d.ts +5 -0
  545. package/dist/types/components/span/span.d.ts +5 -0
  546. package/dist/types/components/swiper/swiper.d.ts +5 -0
  547. package/dist/types/components/switch/switch.d.ts +3 -3
  548. package/dist/types/components/textarea/textarea.d.ts +1 -0
  549. package/dist/types/components.d.ts +313 -1
  550. package/dist/types/utils/index.d.ts +2 -0
  551. package/global.css +1 -0
  552. package/lib/react/component-lib/index.d.ts +53 -53
  553. package/lib/react/component-lib/input.d.ts +1 -1
  554. package/lib/react/component-lib/input.js.map +1 -1
  555. package/lib/react/component-lib/reactify-wc.d.ts +1 -1
  556. package/lib/react/component-lib/reactify-wc.js.map +1 -1
  557. package/lib/react/components.d.ts +92 -85
  558. package/lib/react/components.js +11 -2
  559. package/lib/react/components.js.map +1 -1
  560. package/lib/react/helper.d.ts +4 -2
  561. package/lib/react/helper.js.map +1 -1
  562. package/lib/react/index.d.ts +1 -1
  563. package/lib/react/index.js +1 -1
  564. package/lib/react/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.18.0_tslib@2.6.2_typescript@5.4.5/node_modules/tslib/tslib.es6.js.map +1 -0
  565. package/lib/react/react-component-lib/createComponent.d.ts +3 -3
  566. package/lib/react/react-component-lib/createComponent.js +3 -2
  567. package/lib/react/react-component-lib/createComponent.js.map +1 -1
  568. package/lib/react/react-component-lib/createOverlayComponent.d.ts +5 -5
  569. package/lib/react/react-component-lib/createOverlayComponent.js +1 -1
  570. package/lib/react/react-component-lib/createOverlayComponent.js.map +1 -1
  571. package/lib/react/react-component-lib/index.d.ts +2 -2
  572. package/lib/react/{interfaces-f526f1a2.d.ts → react-component-lib/interfaces.d.ts} +4 -5
  573. package/lib/react/react-component-lib/utils/attachProps.d.ts +18 -9
  574. package/lib/react/react-component-lib/utils/attachProps.js +86 -10
  575. package/lib/react/react-component-lib/utils/attachProps.js.map +1 -1
  576. package/lib/react/react-component-lib/utils/case.d.ts +2 -3
  577. package/lib/react/react-component-lib/utils/dev.d.ts +6 -0
  578. package/lib/react/react-component-lib/utils/index.d.ts +9 -10
  579. package/lib/react/react-component-lib/utils/index.js +1 -1
  580. package/lib/react/react-component-lib/utils/index.js.map +1 -1
  581. package/lib/solid/component-lib/index.d.ts +53 -0
  582. package/lib/solid/component-lib/index.js +69 -0
  583. package/lib/solid/component-lib/index.js.map +1 -0
  584. package/lib/solid/components.d.ts +92 -0
  585. package/lib/solid/components.js +102 -0
  586. package/lib/solid/components.js.map +1 -0
  587. package/lib/solid/helper.d.ts +3 -0
  588. package/lib/solid/helper.js +7 -0
  589. package/lib/solid/helper.js.map +1 -0
  590. package/lib/solid/index.d.ts +1 -0
  591. package/lib/solid/index.js +2 -0
  592. package/lib/solid/solid-component-lib/createComponent.d.ts +10 -0
  593. package/lib/solid/solid-component-lib/createComponent.js +67 -0
  594. package/lib/solid/solid-component-lib/createComponent.js.map +1 -0
  595. package/lib/solid/solid-component-lib/index.d.ts +1 -0
  596. package/lib/solid/solid-component-lib/index.js +2 -0
  597. package/lib/solid/solid-component-lib/index.js.map +1 -0
  598. package/lib/solid/solid-component-lib/interfaces.d.ts +33 -0
  599. package/lib/solid/solid-component-lib/utils/case.d.ts +3 -0
  600. package/lib/solid/solid-component-lib/utils/case.js +6 -0
  601. package/lib/solid/solid-component-lib/utils/case.js.map +1 -0
  602. package/lib/solid/solid-component-lib/utils/element.d.ts +6 -0
  603. package/lib/solid/solid-component-lib/utils/element.js +48 -0
  604. package/lib/solid/solid-component-lib/utils/element.js.map +1 -0
  605. package/lib/solid/solid-component-lib/utils/index.d.ts +2 -0
  606. package/lib/solid/solid-component-lib/utils/index.js +3 -0
  607. package/lib/solid/solid-component-lib/utils/index.js.map +1 -0
  608. package/lib/vue3/component-lib/createComponent.d.ts +1 -2
  609. package/lib/vue3/component-lib/createFormsComponent.d.ts +1 -2
  610. package/lib/vue3/component-lib/createFormsComponent.js.map +1 -1
  611. package/lib/vue3/component-lib/forwardRef.d.ts +1 -2
  612. package/lib/vue3/component-lib/icon.d.ts +1 -1
  613. package/lib/vue3/component-lib/image.d.ts +1 -1
  614. package/lib/vue3/component-lib/index.d.ts +52 -53
  615. package/lib/vue3/component-lib/scroll-view.d.ts +1 -1
  616. package/lib/vue3/component-lib/scroll-view.js.map +1 -1
  617. package/lib/vue3/component-lib/text.d.ts +1 -1
  618. package/lib/vue3/components-loader.d.ts +1 -2
  619. package/lib/vue3/components-loader.js.map +1 -1
  620. package/lib/vue3/components.d.ts +91 -85
  621. package/lib/vue3/components.js +41 -3
  622. package/lib/vue3/components.js.map +1 -1
  623. package/lib/vue3/index.d.ts +1 -1
  624. package/lib/vue3/index.js +1 -1
  625. package/lib/vue3/vue-component-lib/utils.d.ts +2 -3
  626. package/lib/vue3/vue-component-lib/utils.js.map +1 -1
  627. package/package.json +34 -23
  628. package/types/Audio.d.ts +11 -11
  629. package/types/Button.d.ts +9 -9
  630. package/types/Canvas.d.ts +11 -11
  631. package/types/Checkbox.d.ts +8 -8
  632. package/types/CheckboxGroup.d.ts +3 -3
  633. package/types/CoverImage.d.ts +4 -4
  634. package/types/CoverView.d.ts +1 -1
  635. package/types/CustomWrapper.d.ts +1 -1
  636. package/types/DraggableSheet.d.ts +47 -0
  637. package/types/Form.d.ts +4 -4
  638. package/types/GridBuilder.d.ts +72 -0
  639. package/types/GridView.d.ts +18 -4
  640. package/types/Icon.d.ts +4 -4
  641. package/types/Image.d.ts +8 -8
  642. package/types/Input.d.ts +22 -17
  643. package/types/Label.d.ts +2 -2
  644. package/types/ListBuilder.d.ts +55 -0
  645. package/types/ListView.d.ts +9 -2
  646. package/types/Map.d.ts +0 -2
  647. package/types/MovableArea.d.ts +2 -2
  648. package/types/MovableView.d.ts +18 -18
  649. package/types/NativeSlot.d.ts +1 -1
  650. package/types/NavigationBar.d.ts +5 -5
  651. package/types/Navigator.d.ts +8 -8
  652. package/types/NestedScrollBody.d.ts +15 -0
  653. package/types/NestedScrollHeader.d.ts +15 -0
  654. package/types/OpenContainer.d.ts +74 -0
  655. package/types/PageMeta.d.ts +13 -7
  656. package/types/Picker.d.ts +49 -28
  657. package/types/PickerView.d.ts +6 -1
  658. package/types/PickerViewColumn.d.ts +1 -1
  659. package/types/Progress.d.ts +13 -13
  660. package/types/Radio.d.ts +7 -7
  661. package/types/RadioGroup.d.ts +2 -2
  662. package/types/RichText.d.ts +5 -5
  663. package/types/Script.d.ts +37 -0
  664. package/types/ScrollView.d.ts +21 -15
  665. package/types/ShareElement.d.ts +1 -0
  666. package/types/Slider.d.ts +18 -13
  667. package/types/Slot.d.ts +1 -1
  668. package/types/Snapshot.d.ts +12 -3
  669. package/types/Span.d.ts +14 -0
  670. package/types/StickyHeader.d.ts +15 -2
  671. package/types/StickySection.d.ts +7 -1
  672. package/types/Swiper.d.ts +18 -20
  673. package/types/SwiperItem.d.ts +2 -2
  674. package/types/Switch.d.ts +12 -7
  675. package/types/Text.d.ts +20 -4
  676. package/types/Textarea.d.ts +18 -13
  677. package/types/Video.d.ts +30 -30
  678. package/types/View.d.ts +4 -4
  679. package/types/WebView.d.ts +4 -4
  680. package/types/common.d.ts +2 -2
  681. package/types/index.d.ts +8 -0
  682. package/types/index.vue3.d.ts +4 -0
  683. package/dist/cjs/hls-dfcad743.js +0 -25797
  684. package/dist/cjs/intersection-observer-dc4cfcef.js +0 -728
  685. package/dist/collection/components/input/index.css +0 -12
  686. package/dist/components/hls.js +0 -25795
  687. package/dist/components/intersection-observer.js +0 -726
  688. package/dist/esm/hls-268fc25b.js +0 -25795
  689. package/dist/esm/intersection-observer-8e4c7135.js +0 -726
  690. package/dist/esm-es5/hls-268fc25b.js +0 -1
  691. package/dist/esm-es5/index-6bb77c5f.js +0 -2
  692. package/dist/esm-es5/index-a74b6944.js +0 -7
  693. package/dist/esm-es5/index-d1b03e47.js +0 -1
  694. package/dist/esm-es5/intersection-observer-8e4c7135.js +0 -1
  695. package/dist/taro-components/p-00113225.system.entry.js +0 -1
  696. package/dist/taro-components/p-0030841b.system.js +0 -1
  697. package/dist/taro-components/p-0910d414.entry.js +0 -1
  698. package/dist/taro-components/p-0e37fb54.entry.js +0 -1
  699. package/dist/taro-components/p-11c962b9.entry.js +0 -1
  700. package/dist/taro-components/p-139d64f1.entry.js +0 -1
  701. package/dist/taro-components/p-175edd50.entry.js +0 -1
  702. package/dist/taro-components/p-19f218e6.js +0 -7
  703. package/dist/taro-components/p-1c95795d.entry.js +0 -1
  704. package/dist/taro-components/p-1f36cd5f.entry.js +0 -1
  705. package/dist/taro-components/p-1f88349b.entry.js +0 -1
  706. package/dist/taro-components/p-2145dccb.entry.js +0 -1
  707. package/dist/taro-components/p-215881b4.entry.js +0 -1
  708. package/dist/taro-components/p-2339a4d3.entry.js +0 -1
  709. package/dist/taro-components/p-277892fe.system.entry.js +0 -1
  710. package/dist/taro-components/p-27c756c5.system.entry.js +0 -1
  711. package/dist/taro-components/p-2aff4cdb.entry.js +0 -1
  712. package/dist/taro-components/p-2e2487bf.system.entry.js +0 -1
  713. package/dist/taro-components/p-332dc867.entry.js +0 -1
  714. package/dist/taro-components/p-333305e3.entry.js +0 -1
  715. package/dist/taro-components/p-34de4101.system.js +0 -7
  716. package/dist/taro-components/p-35160fd2.entry.js +0 -1
  717. package/dist/taro-components/p-37edf3f6.entry.js +0 -1
  718. package/dist/taro-components/p-3ad92100.system.entry.js +0 -1
  719. package/dist/taro-components/p-3b1d2d37.system.js +0 -1
  720. package/dist/taro-components/p-3cd71da3.system.entry.js +0 -1
  721. package/dist/taro-components/p-401743f9.system.entry.js +0 -1
  722. package/dist/taro-components/p-4aeb3859.system.entry.js +0 -1
  723. package/dist/taro-components/p-4d609ebb.system.entry.js +0 -1
  724. package/dist/taro-components/p-4d89b685.entry.js +0 -1
  725. package/dist/taro-components/p-527c55ca.entry.js +0 -1
  726. package/dist/taro-components/p-550c350a.entry.js +0 -1
  727. package/dist/taro-components/p-5b028f1b.js +0 -1
  728. package/dist/taro-components/p-619b9fe5.system.entry.js +0 -1
  729. package/dist/taro-components/p-6df6fd58.entry.js +0 -1
  730. package/dist/taro-components/p-6f5e162d.entry.js +0 -1
  731. package/dist/taro-components/p-70bd0541.entry.js +0 -1
  732. package/dist/taro-components/p-728b6f8f.system.entry.js +0 -1
  733. package/dist/taro-components/p-72f327e1.js +0 -1
  734. package/dist/taro-components/p-79b675c8.entry.js +0 -1
  735. package/dist/taro-components/p-7b39971e.system.entry.js +0 -1
  736. package/dist/taro-components/p-7ba17143.entry.js +0 -1
  737. package/dist/taro-components/p-7be1f603.entry.js +0 -1
  738. package/dist/taro-components/p-7e90dfef.js +0 -2
  739. package/dist/taro-components/p-817b319c.system.entry.js +0 -1
  740. package/dist/taro-components/p-907d2fe0.entry.js +0 -1
  741. package/dist/taro-components/p-93a3d6ee.entry.js +0 -1
  742. package/dist/taro-components/p-9c91aee3.system.entry.js +0 -1
  743. package/dist/taro-components/p-9e788d33.entry.js +0 -1
  744. package/dist/taro-components/p-9feeee0f.system.entry.js +0 -1
  745. package/dist/taro-components/p-a3dad439.entry.js +0 -1
  746. package/dist/taro-components/p-a4ea7a51.system.entry.js +0 -1
  747. package/dist/taro-components/p-a54735cb.entry.js +0 -1
  748. package/dist/taro-components/p-a5adbf15.system.entry.js +0 -1
  749. package/dist/taro-components/p-a744e7aa.entry.js +0 -1
  750. package/dist/taro-components/p-b1977132.entry.js +0 -1
  751. package/dist/taro-components/p-b2ad9709.entry.js +0 -1
  752. package/dist/taro-components/p-b3780eab.system.entry.js +0 -1
  753. package/dist/taro-components/p-b69bcd43.entry.js +0 -1
  754. package/dist/taro-components/p-b9c2a210.system.entry.js +0 -1
  755. package/dist/taro-components/p-bb454378.entry.js +0 -1
  756. package/dist/taro-components/p-bd5177d3.system.js +0 -1
  757. package/dist/taro-components/p-bd6574cf.entry.js +0 -1
  758. package/dist/taro-components/p-bfea77f9.entry.js +0 -1
  759. package/dist/taro-components/p-c0a59843.entry.js +0 -1
  760. package/dist/taro-components/p-cb21f4f1.entry.js +0 -1
  761. package/dist/taro-components/p-cd0f3444.entry.js +0 -1
  762. package/dist/taro-components/p-cdd48677.system.js +0 -2
  763. package/dist/taro-components/p-d3c7f87d.js +0 -1
  764. package/dist/taro-components/p-d42968e9.system.entry.js +0 -1
  765. package/dist/taro-components/p-d55f870d.entry.js +0 -1
  766. package/dist/taro-components/p-d81577b8.system.entry.js +0 -1
  767. package/dist/taro-components/p-daabfc6e.entry.js +0 -1
  768. package/dist/taro-components/p-dda03c84.entry.js +0 -1
  769. package/dist/taro-components/p-deff0bb8.entry.js +0 -1
  770. package/dist/taro-components/p-e6e3c1d7.entry.js +0 -1
  771. package/dist/taro-components/p-e82e16a1.entry.js +0 -1
  772. package/dist/taro-components/p-ee4da4db.system.js +0 -1
  773. package/dist/taro-components/p-f003caad.entry.js +0 -1
  774. package/dist/taro-components/p-f111303f.entry.js +0 -1
  775. package/dist/taro-components/p-f75d094e.system.entry.js +0 -1
  776. package/dist/taro-components/p-fbec1f96.entry.js +0 -1
  777. package/lib/react/node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.js.map +0 -1
  778. package/lib/vue2/component-lib/components.d.ts +0 -111
  779. package/lib/vue2/component-lib/components.js +0 -74
  780. package/lib/vue2/component-lib/components.js.map +0 -1
  781. package/lib/vue2/component-lib/createComponent.d.ts +0 -14
  782. package/lib/vue2/component-lib/createComponent.js +0 -23
  783. package/lib/vue2/component-lib/createComponent.js.map +0 -1
  784. package/lib/vue2/component-lib/createFormsComponent.d.ts +0 -22
  785. package/lib/vue2/component-lib/createFormsComponent.js +0 -53
  786. package/lib/vue2/component-lib/createFormsComponent.js.map +0 -1
  787. package/lib/vue2/component-lib/icon.d.ts +0 -16
  788. package/lib/vue2/component-lib/icon.js +0 -23
  789. package/lib/vue2/component-lib/icon.js.map +0 -1
  790. package/lib/vue2/component-lib/image.d.ts +0 -16
  791. package/lib/vue2/component-lib/image.js +0 -24
  792. package/lib/vue2/component-lib/image.js.map +0 -1
  793. package/lib/vue2/component-lib/index.d.ts +0 -1
  794. package/lib/vue2/component-lib/index.js +0 -25
  795. package/lib/vue2/component-lib/index.js.map +0 -1
  796. package/lib/vue2/component-lib/mixins/listeners.d.ts +0 -6
  797. package/lib/vue2/component-lib/mixins/listeners.js +0 -14
  798. package/lib/vue2/component-lib/mixins/listeners.js.map +0 -1
  799. package/lib/vue2/component-lib/mixins/refs.d.ts +0 -5
  800. package/lib/vue2/component-lib/mixins/refs.js +0 -53
  801. package/lib/vue2/component-lib/mixins/refs.js.map +0 -1
  802. package/lib/vue2/component-lib/picker.d.ts +0 -25
  803. package/lib/vue2/component-lib/picker.js +0 -41
  804. package/lib/vue2/component-lib/picker.js.map +0 -1
  805. package/lib/vue2/component-lib/scroll-view.d.ts +0 -17
  806. package/lib/vue2/component-lib/scroll-view.js +0 -35
  807. package/lib/vue2/component-lib/scroll-view.js.map +0 -1
  808. package/lib/vue2/component-lib/text.d.ts +0 -16
  809. package/lib/vue2/component-lib/text.js +0 -24
  810. package/lib/vue2/component-lib/text.js.map +0 -1
  811. package/lib/vue2/components-loader.d.ts +0 -2
  812. package/lib/vue2/components-loader.js +0 -21
  813. package/lib/vue2/components-loader.js.map +0 -1
  814. package/lib/vue2/components.d.ts +0 -373
  815. package/lib/vue2/components.js +0 -583
  816. package/lib/vue2/components.js.map +0 -1
  817. package/lib/vue2/index.d.ts +0 -1
  818. package/lib/vue2/index.js +0 -2
  819. package/lib/vue2/node_modules/.pnpm/vue-fragment@1.6.0_vue@2.7.15/node_modules/vue-fragment/dist/vue-fragment.esm.js +0 -4
  820. package/lib/vue2/node_modules/.pnpm/vue-fragment@1.6.0_vue@2.7.15/node_modules/vue-fragment/dist/vue-fragment.esm.js.map +0 -1
  821. package/lib/vue2/vue-component-lib/utils.d.ts +0 -10
  822. package/lib/vue2/vue-component-lib/utils.js +0 -51
  823. package/lib/vue2/vue-component-lib/utils.js.map +0 -1
  824. /package/lib/react/node_modules/.pnpm/{tslib@2.6.2 → @rollup_plugin-typescript@11.1.6_rollup@4.18.0_tslib@2.6.2_typescript@5.4.5}/node_modules/tslib/tslib.es6.js +0 -0
  825. /package/lib/{vue2 → solid}/index.js.map +0 -0
@@ -1,728 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * Copyright 2016 Google Inc. All Rights Reserved.
5
- *
6
- * Licensed under the W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE.
7
- *
8
- * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
9
- *
10
- */
11
- (function() {
12
-
13
- // Exit early if we're not running in a browser.
14
- if (typeof window !== 'object') {
15
- return;
16
- }
17
-
18
- // Exit early if all IntersectionObserver and IntersectionObserverEntry
19
- // features are natively supported.
20
- if ('IntersectionObserver' in window &&
21
- 'IntersectionObserverEntry' in window &&
22
- 'intersectionRatio' in window.IntersectionObserverEntry.prototype) {
23
-
24
- // Minimal polyfill for Edge 15's lack of `isIntersecting`
25
- // See: https://github.com/w3c/IntersectionObserver/issues/211
26
- if (!('isIntersecting' in window.IntersectionObserverEntry.prototype)) {
27
- Object.defineProperty(window.IntersectionObserverEntry.prototype,
28
- 'isIntersecting', {
29
- get: function () {
30
- return this.intersectionRatio > 0;
31
- }
32
- });
33
- }
34
- return;
35
- }
36
-
37
-
38
- /**
39
- * A local reference to the document.
40
- */
41
- var document = window.document;
42
-
43
-
44
- /**
45
- * Creates the global IntersectionObserverEntry constructor.
46
- * https://w3c.github.io/IntersectionObserver/#intersection-observer-entry
47
- * @param {Object} entry A dictionary of instance properties.
48
- * @constructor
49
- */
50
- function IntersectionObserverEntry(entry) {
51
- this.time = entry.time;
52
- this.target = entry.target;
53
- this.rootBounds = entry.rootBounds;
54
- this.boundingClientRect = entry.boundingClientRect;
55
- this.intersectionRect = entry.intersectionRect || getEmptyRect();
56
- this.isIntersecting = !!entry.intersectionRect;
57
-
58
- // Calculates the intersection ratio.
59
- var targetRect = this.boundingClientRect;
60
- var targetArea = targetRect.width * targetRect.height;
61
- var intersectionRect = this.intersectionRect;
62
- var intersectionArea = intersectionRect.width * intersectionRect.height;
63
-
64
- // Sets intersection ratio.
65
- if (targetArea) {
66
- // Round the intersection ratio to avoid floating point math issues:
67
- // https://github.com/w3c/IntersectionObserver/issues/324
68
- this.intersectionRatio = Number((intersectionArea / targetArea).toFixed(4));
69
- } else {
70
- // If area is zero and is intersecting, sets to 1, otherwise to 0
71
- this.intersectionRatio = this.isIntersecting ? 1 : 0;
72
- }
73
- }
74
-
75
-
76
- /**
77
- * Creates the global IntersectionObserver constructor.
78
- * https://w3c.github.io/IntersectionObserver/#intersection-observer-interface
79
- * @param {Function} callback The function to be invoked after intersection
80
- * changes have queued. The function is not invoked if the queue has
81
- * been emptied by calling the `takeRecords` method.
82
- * @param {Object=} opt_options Optional configuration options.
83
- * @constructor
84
- */
85
- function IntersectionObserver(callback, opt_options) {
86
-
87
- var options = opt_options || {};
88
-
89
- if (typeof callback != 'function') {
90
- throw new Error('callback must be a function');
91
- }
92
-
93
- if (options.root && options.root.nodeType != 1) {
94
- throw new Error('root must be an Element');
95
- }
96
-
97
- // Binds and throttles `this._checkForIntersections`.
98
- this._checkForIntersections = throttle(
99
- this._checkForIntersections.bind(this), this.THROTTLE_TIMEOUT);
100
-
101
- // Private properties.
102
- this._callback = callback;
103
- this._observationTargets = [];
104
- this._queuedEntries = [];
105
- this._rootMarginValues = this._parseRootMargin(options.rootMargin);
106
-
107
- // Public properties.
108
- this.thresholds = this._initThresholds(options.threshold);
109
- this.root = options.root || null;
110
- this.rootMargin = this._rootMarginValues.map(function(margin) {
111
- return margin.value + margin.unit;
112
- }).join(' ');
113
- }
114
-
115
-
116
- /**
117
- * The minimum interval within which the document will be checked for
118
- * intersection changes.
119
- */
120
- IntersectionObserver.prototype.THROTTLE_TIMEOUT = 100;
121
-
122
-
123
- /**
124
- * The frequency in which the polyfill polls for intersection changes.
125
- * this can be updated on a per instance basis and must be set prior to
126
- * calling `observe` on the first target.
127
- */
128
- IntersectionObserver.prototype.POLL_INTERVAL = null;
129
-
130
- /**
131
- * Use a mutation observer on the root element
132
- * to detect intersection changes.
133
- */
134
- IntersectionObserver.prototype.USE_MUTATION_OBSERVER = true;
135
-
136
-
137
- /**
138
- * Starts observing a target element for intersection changes based on
139
- * the thresholds values.
140
- * @param {Element} target The DOM element to observe.
141
- */
142
- IntersectionObserver.prototype.observe = function(target) {
143
- var isTargetAlreadyObserved = this._observationTargets.some(function(item) {
144
- return item.element == target;
145
- });
146
-
147
- if (isTargetAlreadyObserved) {
148
- return;
149
- }
150
-
151
- if (!(target && target.nodeType == 1)) {
152
- throw new Error('target must be an Element');
153
- }
154
-
155
- this._registerInstance();
156
- this._observationTargets.push({element: target, entry: null});
157
- this._monitorIntersections();
158
- this._checkForIntersections();
159
- };
160
-
161
-
162
- /**
163
- * Stops observing a target element for intersection changes.
164
- * @param {Element} target The DOM element to observe.
165
- */
166
- IntersectionObserver.prototype.unobserve = function(target) {
167
- this._observationTargets =
168
- this._observationTargets.filter(function(item) {
169
-
170
- return item.element != target;
171
- });
172
- if (!this._observationTargets.length) {
173
- this._unmonitorIntersections();
174
- this._unregisterInstance();
175
- }
176
- };
177
-
178
-
179
- /**
180
- * Stops observing all target elements for intersection changes.
181
- */
182
- IntersectionObserver.prototype.disconnect = function() {
183
- this._observationTargets = [];
184
- this._unmonitorIntersections();
185
- this._unregisterInstance();
186
- };
187
-
188
-
189
- /**
190
- * Returns any queue entries that have not yet been reported to the
191
- * callback and clears the queue. This can be used in conjunction with the
192
- * callback to obtain the absolute most up-to-date intersection information.
193
- * @return {Array} The currently queued entries.
194
- */
195
- IntersectionObserver.prototype.takeRecords = function() {
196
- var records = this._queuedEntries.slice();
197
- this._queuedEntries = [];
198
- return records;
199
- };
200
-
201
-
202
- /**
203
- * Accepts the threshold value from the user configuration object and
204
- * returns a sorted array of unique threshold values. If a value is not
205
- * between 0 and 1 and error is thrown.
206
- * @private
207
- * @param {Array|number=} opt_threshold An optional threshold value or
208
- * a list of threshold values, defaulting to [0].
209
- * @return {Array} A sorted list of unique and valid threshold values.
210
- */
211
- IntersectionObserver.prototype._initThresholds = function(opt_threshold) {
212
- var threshold = opt_threshold || [0];
213
- if (!Array.isArray(threshold)) threshold = [threshold];
214
-
215
- return threshold.sort().filter(function(t, i, a) {
216
- if (typeof t != 'number' || isNaN(t) || t < 0 || t > 1) {
217
- throw new Error('threshold must be a number between 0 and 1 inclusively');
218
- }
219
- return t !== a[i - 1];
220
- });
221
- };
222
-
223
-
224
- /**
225
- * Accepts the rootMargin value from the user configuration object
226
- * and returns an array of the four margin values as an object containing
227
- * the value and unit properties. If any of the values are not properly
228
- * formatted or use a unit other than px or %, and error is thrown.
229
- * @private
230
- * @param {string=} opt_rootMargin An optional rootMargin value,
231
- * defaulting to '0px'.
232
- * @return {Array<Object>} An array of margin objects with the keys
233
- * value and unit.
234
- */
235
- IntersectionObserver.prototype._parseRootMargin = function(opt_rootMargin) {
236
- var marginString = opt_rootMargin || '0px';
237
- var margins = marginString.split(/\s+/).map(function(margin) {
238
- var parts = /^(-?\d*\.?\d+)(px|%)$/.exec(margin);
239
- if (!parts) {
240
- throw new Error('rootMargin must be specified in pixels or percent');
241
- }
242
- return {value: parseFloat(parts[1]), unit: parts[2]};
243
- });
244
-
245
- // Handles shorthand.
246
- margins[1] = margins[1] || margins[0];
247
- margins[2] = margins[2] || margins[0];
248
- margins[3] = margins[3] || margins[1];
249
-
250
- return margins;
251
- };
252
-
253
-
254
- /**
255
- * Starts polling for intersection changes if the polling is not already
256
- * happening, and if the page's visibility state is visible.
257
- * @private
258
- */
259
- IntersectionObserver.prototype._monitorIntersections = function() {
260
- if (!this._monitoringIntersections) {
261
- this._monitoringIntersections = true;
262
-
263
- // If a poll interval is set, use polling instead of listening to
264
- // resize and scroll events or DOM mutations.
265
- if (this.POLL_INTERVAL) {
266
- this._monitoringInterval = setInterval(
267
- this._checkForIntersections, this.POLL_INTERVAL);
268
- }
269
- else {
270
- addEvent(window, 'resize', this._checkForIntersections, true);
271
- addEvent(document, 'scroll', this._checkForIntersections, true);
272
-
273
- if (this.USE_MUTATION_OBSERVER && 'MutationObserver' in window) {
274
- this._domObserver = new MutationObserver(this._checkForIntersections);
275
- this._domObserver.observe(document, {
276
- attributes: true,
277
- childList: true,
278
- characterData: true,
279
- subtree: true
280
- });
281
- }
282
- }
283
- }
284
- };
285
-
286
-
287
- /**
288
- * Stops polling for intersection changes.
289
- * @private
290
- */
291
- IntersectionObserver.prototype._unmonitorIntersections = function() {
292
- if (this._monitoringIntersections) {
293
- this._monitoringIntersections = false;
294
-
295
- clearInterval(this._monitoringInterval);
296
- this._monitoringInterval = null;
297
-
298
- removeEvent(window, 'resize', this._checkForIntersections, true);
299
- removeEvent(document, 'scroll', this._checkForIntersections, true);
300
-
301
- if (this._domObserver) {
302
- this._domObserver.disconnect();
303
- this._domObserver = null;
304
- }
305
- }
306
- };
307
-
308
-
309
- /**
310
- * Scans each observation target for intersection changes and adds them
311
- * to the internal entries queue. If new entries are found, it
312
- * schedules the callback to be invoked.
313
- * @private
314
- */
315
- IntersectionObserver.prototype._checkForIntersections = function() {
316
- var rootIsInDom = this._rootIsInDom();
317
- var rootRect = rootIsInDom ? this._getRootRect() : getEmptyRect();
318
-
319
- this._observationTargets.forEach(function(item) {
320
- var target = item.element;
321
- var targetRect = getBoundingClientRect(target);
322
- var rootContainsTarget = this._rootContainsTarget(target);
323
- var oldEntry = item.entry;
324
- var intersectionRect = rootIsInDom && rootContainsTarget &&
325
- this._computeTargetAndRootIntersection(target, rootRect);
326
-
327
- var newEntry = item.entry = new IntersectionObserverEntry({
328
- time: now(),
329
- target: target,
330
- boundingClientRect: targetRect,
331
- rootBounds: rootRect,
332
- intersectionRect: intersectionRect
333
- });
334
-
335
- if (!oldEntry) {
336
- this._queuedEntries.push(newEntry);
337
- } else if (rootIsInDom && rootContainsTarget) {
338
- // If the new entry intersection ratio has crossed any of the
339
- // thresholds, add a new entry.
340
- if (this._hasCrossedThreshold(oldEntry, newEntry)) {
341
- this._queuedEntries.push(newEntry);
342
- }
343
- } else {
344
- // If the root is not in the DOM or target is not contained within
345
- // root but the previous entry for this target had an intersection,
346
- // add a new record indicating removal.
347
- if (oldEntry && oldEntry.isIntersecting) {
348
- this._queuedEntries.push(newEntry);
349
- }
350
- }
351
- }, this);
352
-
353
- if (this._queuedEntries.length) {
354
- this._callback(this.takeRecords(), this);
355
- }
356
- };
357
-
358
-
359
- /**
360
- * Accepts a target and root rect computes the intersection between then
361
- * following the algorithm in the spec.
362
- * TODO(philipwalton): at this time clip-path is not considered.
363
- * https://w3c.github.io/IntersectionObserver/#calculate-intersection-rect-algo
364
- * @param {Element} target The target DOM element
365
- * @param {Object} rootRect The bounding rect of the root after being
366
- * expanded by the rootMargin value.
367
- * @return {?Object} The final intersection rect object or undefined if no
368
- * intersection is found.
369
- * @private
370
- */
371
- IntersectionObserver.prototype._computeTargetAndRootIntersection =
372
- function(target, rootRect) {
373
-
374
- // If the element isn't displayed, an intersection can't happen.
375
- if (window.getComputedStyle(target).display == 'none') return;
376
-
377
- var targetRect = getBoundingClientRect(target);
378
- var intersectionRect = targetRect;
379
- var parent = getParentNode(target);
380
- var atRoot = false;
381
-
382
- while (!atRoot) {
383
- var parentRect = null;
384
- var parentComputedStyle = parent.nodeType == 1 ?
385
- window.getComputedStyle(parent) : {};
386
-
387
- // If the parent isn't displayed, an intersection can't happen.
388
- if (parentComputedStyle.display == 'none') return;
389
-
390
- if (parent == this.root || parent == document) {
391
- atRoot = true;
392
- parentRect = rootRect;
393
- } else {
394
- // If the element has a non-visible overflow, and it's not the <body>
395
- // or <html> element, update the intersection rect.
396
- // Note: <body> and <html> cannot be clipped to a rect that's not also
397
- // the document rect, so no need to compute a new intersection.
398
- if (parent != document.body &&
399
- parent != document.documentElement &&
400
- parentComputedStyle.overflow != 'visible') {
401
- parentRect = getBoundingClientRect(parent);
402
- }
403
- }
404
-
405
- // If either of the above conditionals set a new parentRect,
406
- // calculate new intersection data.
407
- if (parentRect) {
408
- intersectionRect = computeRectIntersection(parentRect, intersectionRect);
409
-
410
- if (!intersectionRect) break;
411
- }
412
- parent = getParentNode(parent);
413
- }
414
- return intersectionRect;
415
- };
416
-
417
-
418
- /**
419
- * Returns the root rect after being expanded by the rootMargin value.
420
- * @return {Object} The expanded root rect.
421
- * @private
422
- */
423
- IntersectionObserver.prototype._getRootRect = function() {
424
- var rootRect;
425
- if (this.root) {
426
- rootRect = getBoundingClientRect(this.root);
427
- } else {
428
- // Use <html>/<body> instead of window since scroll bars affect size.
429
- var html = document.documentElement;
430
- var body = document.body;
431
- rootRect = {
432
- top: 0,
433
- left: 0,
434
- right: html.clientWidth || body.clientWidth,
435
- width: html.clientWidth || body.clientWidth,
436
- bottom: html.clientHeight || body.clientHeight,
437
- height: html.clientHeight || body.clientHeight
438
- };
439
- }
440
- return this._expandRectByRootMargin(rootRect);
441
- };
442
-
443
-
444
- /**
445
- * Accepts a rect and expands it by the rootMargin value.
446
- * @param {Object} rect The rect object to expand.
447
- * @return {Object} The expanded rect.
448
- * @private
449
- */
450
- IntersectionObserver.prototype._expandRectByRootMargin = function(rect) {
451
- var margins = this._rootMarginValues.map(function(margin, i) {
452
- return margin.unit == 'px' ? margin.value :
453
- margin.value * (i % 2 ? rect.width : rect.height) / 100;
454
- });
455
- var newRect = {
456
- top: rect.top - margins[0],
457
- right: rect.right + margins[1],
458
- bottom: rect.bottom + margins[2],
459
- left: rect.left - margins[3]
460
- };
461
- newRect.width = newRect.right - newRect.left;
462
- newRect.height = newRect.bottom - newRect.top;
463
-
464
- return newRect;
465
- };
466
-
467
-
468
- /**
469
- * Accepts an old and new entry and returns true if at least one of the
470
- * threshold values has been crossed.
471
- * @param {?IntersectionObserverEntry} oldEntry The previous entry for a
472
- * particular target element or null if no previous entry exists.
473
- * @param {IntersectionObserverEntry} newEntry The current entry for a
474
- * particular target element.
475
- * @return {boolean} Returns true if a any threshold has been crossed.
476
- * @private
477
- */
478
- IntersectionObserver.prototype._hasCrossedThreshold =
479
- function(oldEntry, newEntry) {
480
-
481
- // To make comparing easier, an entry that has a ratio of 0
482
- // but does not actually intersect is given a value of -1
483
- var oldRatio = oldEntry && oldEntry.isIntersecting ?
484
- oldEntry.intersectionRatio || 0 : -1;
485
- var newRatio = newEntry.isIntersecting ?
486
- newEntry.intersectionRatio || 0 : -1;
487
-
488
- // Ignore unchanged ratios
489
- if (oldRatio === newRatio) return;
490
-
491
- for (var i = 0; i < this.thresholds.length; i++) {
492
- var threshold = this.thresholds[i];
493
-
494
- // Return true if an entry matches a threshold or if the new ratio
495
- // and the old ratio are on the opposite sides of a threshold.
496
- if (threshold == oldRatio || threshold == newRatio ||
497
- threshold < oldRatio !== threshold < newRatio) {
498
- return true;
499
- }
500
- }
501
- };
502
-
503
-
504
- /**
505
- * Returns whether or not the root element is an element and is in the DOM.
506
- * @return {boolean} True if the root element is an element and is in the DOM.
507
- * @private
508
- */
509
- IntersectionObserver.prototype._rootIsInDom = function() {
510
- return !this.root || containsDeep(document, this.root);
511
- };
512
-
513
-
514
- /**
515
- * Returns whether or not the target element is a child of root.
516
- * @param {Element} target The target element to check.
517
- * @return {boolean} True if the target element is a child of root.
518
- * @private
519
- */
520
- IntersectionObserver.prototype._rootContainsTarget = function(target) {
521
- return containsDeep(this.root || document, target);
522
- };
523
-
524
-
525
- /**
526
- * Adds the instance to the global IntersectionObserver registry if it isn't
527
- * already present.
528
- * @private
529
- */
530
- IntersectionObserver.prototype._registerInstance = function() {
531
- };
532
-
533
-
534
- /**
535
- * Removes the instance from the global IntersectionObserver registry.
536
- * @private
537
- */
538
- IntersectionObserver.prototype._unregisterInstance = function() {
539
- };
540
-
541
-
542
- /**
543
- * Returns the result of the performance.now() method or null in browsers
544
- * that don't support the API.
545
- * @return {number} The elapsed time since the page was requested.
546
- */
547
- function now() {
548
- return window.performance && performance.now && performance.now();
549
- }
550
-
551
-
552
- /**
553
- * Throttles a function and delays its execution, so it's only called at most
554
- * once within a given time period.
555
- * @param {Function} fn The function to throttle.
556
- * @param {number} timeout The amount of time that must pass before the
557
- * function can be called again.
558
- * @return {Function} The throttled function.
559
- */
560
- function throttle(fn, timeout) {
561
- var timer = null;
562
- return function () {
563
- if (!timer) {
564
- timer = setTimeout(function() {
565
- fn();
566
- timer = null;
567
- }, timeout);
568
- }
569
- };
570
- }
571
-
572
-
573
- /**
574
- * Adds an event handler to a DOM node ensuring cross-browser compatibility.
575
- * @param {Node} node The DOM node to add the event handler to.
576
- * @param {string} event The event name.
577
- * @param {Function} fn The event handler to add.
578
- * @param {boolean} opt_useCapture Optionally adds the even to the capture
579
- * phase. Note: this only works in modern browsers.
580
- */
581
- function addEvent(node, event, fn, opt_useCapture) {
582
- if (typeof node.addEventListener == 'function') {
583
- node.addEventListener(event, fn, opt_useCapture || false);
584
- }
585
- else if (typeof node.attachEvent == 'function') {
586
- node.attachEvent('on' + event, fn);
587
- }
588
- }
589
-
590
-
591
- /**
592
- * Removes a previously added event handler from a DOM node.
593
- * @param {Node} node The DOM node to remove the event handler from.
594
- * @param {string} event The event name.
595
- * @param {Function} fn The event handler to remove.
596
- * @param {boolean} opt_useCapture If the event handler was added with this
597
- * flag set to true, it should be set to true here in order to remove it.
598
- */
599
- function removeEvent(node, event, fn, opt_useCapture) {
600
- if (typeof node.removeEventListener == 'function') {
601
- node.removeEventListener(event, fn, opt_useCapture || false);
602
- }
603
- else if (typeof node.detatchEvent == 'function') {
604
- node.detatchEvent('on' + event, fn);
605
- }
606
- }
607
-
608
-
609
- /**
610
- * Returns the intersection between two rect objects.
611
- * @param {Object} rect1 The first rect.
612
- * @param {Object} rect2 The second rect.
613
- * @return {?Object} The intersection rect or undefined if no intersection
614
- * is found.
615
- */
616
- function computeRectIntersection(rect1, rect2) {
617
- var top = Math.max(rect1.top, rect2.top);
618
- var bottom = Math.min(rect1.bottom, rect2.bottom);
619
- var left = Math.max(rect1.left, rect2.left);
620
- var right = Math.min(rect1.right, rect2.right);
621
- var width = right - left;
622
- var height = bottom - top;
623
-
624
- return (width >= 0 && height >= 0) && {
625
- top: top,
626
- bottom: bottom,
627
- left: left,
628
- right: right,
629
- width: width,
630
- height: height
631
- };
632
- }
633
-
634
-
635
- /**
636
- * Shims the native getBoundingClientRect for compatibility with older IE.
637
- * @param {Element} el The element whose bounding rect to get.
638
- * @return {Object} The (possibly shimmed) rect of the element.
639
- */
640
- function getBoundingClientRect(el) {
641
- var rect;
642
-
643
- try {
644
- rect = el.getBoundingClientRect();
645
- } catch (err) {
646
- // Ignore Windows 7 IE11 "Unspecified error"
647
- // https://github.com/w3c/IntersectionObserver/pull/205
648
- }
649
-
650
- if (!rect) return getEmptyRect();
651
-
652
- // Older IE
653
- if (!(rect.width && rect.height)) {
654
- rect = {
655
- top: rect.top,
656
- right: rect.right,
657
- bottom: rect.bottom,
658
- left: rect.left,
659
- width: rect.right - rect.left,
660
- height: rect.bottom - rect.top
661
- };
662
- }
663
- return rect;
664
- }
665
-
666
-
667
- /**
668
- * Returns an empty rect object. An empty rect is returned when an element
669
- * is not in the DOM.
670
- * @return {Object} The empty rect.
671
- */
672
- function getEmptyRect() {
673
- return {
674
- top: 0,
675
- bottom: 0,
676
- left: 0,
677
- right: 0,
678
- width: 0,
679
- height: 0
680
- };
681
- }
682
-
683
- /**
684
- * Checks to see if a parent element contains a child element (including inside
685
- * shadow DOM).
686
- * @param {Node} parent The parent element.
687
- * @param {Node} child The child element.
688
- * @return {boolean} True if the parent node contains the child node.
689
- */
690
- function containsDeep(parent, child) {
691
- var node = child;
692
- while (node) {
693
- if (node == parent) return true;
694
-
695
- node = getParentNode(node);
696
- }
697
- return false;
698
- }
699
-
700
-
701
- /**
702
- * Gets the parent node of an element or its host element if the parent node
703
- * is a shadow root.
704
- * @param {Node} node The node whose parent to get.
705
- * @return {Node|null} The parent node or null if no parent exists.
706
- */
707
- function getParentNode(node) {
708
- var parent = node.parentNode;
709
-
710
- if (parent && parent.nodeType == 11 && parent.host) {
711
- // If the parent is a shadow root, return the host element.
712
- return parent.host;
713
- }
714
-
715
- if (parent && parent.assignedSlot) {
716
- // If the parent is distributed in a <slot>, return the parent of a slot.
717
- return parent.assignedSlot.parentNode;
718
- }
719
-
720
- return parent;
721
- }
722
-
723
-
724
- // Exposes the constructors globally.
725
- window.IntersectionObserver = IntersectionObserver;
726
- window.IntersectionObserverEntry = IntersectionObserverEntry;
727
-
728
- }());