@onepercentio/one-ui 0.1.7 → 0.2.2

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 (366) hide show
  1. package/dist/__test__/analytics.d.ts +3 -3
  2. package/dist/__test__/analytics.js +18 -18
  3. package/dist/__test__/firestore.d.ts +2 -1
  4. package/dist/__test__/firestore.js +25 -19
  5. package/dist/__test__/firestore.js.map +1 -1
  6. package/dist/__test__/utils.d.ts +17 -17
  7. package/dist/__test__/utils.js +187 -182
  8. package/dist/__test__/utils.js.map +1 -1
  9. package/dist/components/AdaptiveButton/AdaptiveButton.d.ts +8 -8
  10. package/dist/components/AdaptiveButton/AdaptiveButton.js +84 -84
  11. package/dist/components/AdaptiveButton/AdaptiveButton.js.map +1 -1
  12. package/dist/components/AdaptiveButton/AdaptiveButton.stories.d.ts +18 -18
  13. package/dist/components/AdaptiveButton/AdaptiveButton.stories.js +81 -81
  14. package/dist/components/AdaptiveButton/index.d.ts +1 -1
  15. package/dist/components/AdaptiveButton/index.js +8 -8
  16. package/dist/components/AdaptiveDialog/AdaptiveDialog.d.ts +9 -9
  17. package/dist/components/AdaptiveDialog/AdaptiveDialog.js +59 -89
  18. package/dist/components/AdaptiveDialog/AdaptiveDialog.js.map +1 -1
  19. package/dist/components/AdaptiveDialog/AdaptiveDialog.stories.d.ts +19 -19
  20. package/dist/components/AdaptiveDialog/AdaptiveDialog.stories.js +93 -93
  21. package/dist/components/AdaptiveDialog/AdaptiveDialog.test.d.ts +1 -1
  22. package/dist/components/AdaptiveDialog/AdaptiveDialog.test.js +14 -14
  23. package/dist/components/AdaptiveDialog/index.d.ts +1 -1
  24. package/dist/components/AdaptiveDialog/index.js +8 -8
  25. package/dist/components/AdaptiveSidebar/AdaptiveSidebar.d.ts +10 -7
  26. package/dist/components/AdaptiveSidebar/AdaptiveSidebar.js +69 -64
  27. package/dist/components/AdaptiveSidebar/AdaptiveSidebar.js.map +1 -1
  28. package/dist/components/AdaptiveSidebar/AdaptiveSidebar.module.scss +4 -2
  29. package/dist/components/AdaptiveSidebar/AdaptiveSidebar.stories.d.ts +18 -15
  30. package/dist/components/AdaptiveSidebar/AdaptiveSidebar.stories.js +20 -20
  31. package/dist/components/AdaptiveSidebar/index.d.ts +1 -1
  32. package/dist/components/AdaptiveSidebar/index.js +8 -8
  33. package/dist/components/AnchoredTooltip/AnchoredTooltip.d.ts +13 -13
  34. package/dist/components/AnchoredTooltip/AnchoredTooltip.js +173 -171
  35. package/dist/components/AnchoredTooltip/AnchoredTooltip.js.map +1 -1
  36. package/dist/components/AnchoredTooltip/AnchoredTooltip.stories.d.ts +16 -16
  37. package/dist/components/AnchoredTooltip/AnchoredTooltip.stories.js +85 -85
  38. package/dist/components/AnchoredTooltip/AnchoredTooltip.test.d.ts +1 -1
  39. package/dist/components/AnchoredTooltip/AnchoredTooltip.test.js +19 -19
  40. package/dist/components/AnchoredTooltip/index.d.ts +1 -1
  41. package/dist/components/AnchoredTooltip/index.js +8 -8
  42. package/dist/components/AsyncWrapper/AsyncWrapper.d.ts +10 -10
  43. package/dist/components/AsyncWrapper/AsyncWrapper.js +24 -24
  44. package/dist/components/AsyncWrapper/AsyncWrapper.stories.d.ts +18 -18
  45. package/dist/components/AsyncWrapper/AsyncWrapper.stories.js +33 -33
  46. package/dist/components/AsyncWrapper/AsyncWrapper.test.d.ts +1 -1
  47. package/dist/components/AsyncWrapper/AsyncWrapper.test.js +18 -18
  48. package/dist/components/AsyncWrapper/index.d.ts +1 -1
  49. package/dist/components/AsyncWrapper/index.js +8 -8
  50. package/dist/components/Avatar/Avatar.d.ts +8 -8
  51. package/dist/components/Avatar/Avatar.js +44 -44
  52. package/dist/components/Avatar/Avatar.stories.d.ts +14 -14
  53. package/dist/components/Avatar/Avatar.stories.js +18 -18
  54. package/dist/components/Avatar/Avatar.test.d.ts +1 -1
  55. package/dist/components/Avatar/Avatar.test.js +35 -35
  56. package/dist/components/Avatar/index.d.ts +1 -1
  57. package/dist/components/Avatar/index.js +8 -8
  58. package/dist/components/Button/Button.d.ts +7 -7
  59. package/dist/components/Button/Button.js +49 -49
  60. package/dist/components/Button/Button.stories.d.ts +13 -13
  61. package/dist/components/Button/Button.stories.js +33 -33
  62. package/dist/components/Button/Button.test.d.ts +1 -1
  63. package/dist/components/Button/Button.test.js +14 -14
  64. package/dist/components/Button/index.d.ts +1 -1
  65. package/dist/components/Button/index.js +8 -8
  66. package/dist/components/Card/Card.d.ts +7 -7
  67. package/dist/components/Card/Card.js +14 -14
  68. package/dist/components/Card/Card.stories.d.ts +15 -15
  69. package/dist/components/Card/Card.stories.js +15 -15
  70. package/dist/components/Card/index.d.ts +1 -1
  71. package/dist/components/Card/index.js +8 -8
  72. package/dist/components/CheckBox/CheckBox.d.ts +11 -11
  73. package/dist/components/CheckBox/CheckBox.js +31 -31
  74. package/dist/components/CheckBox/CheckBox.stories.d.ts +20 -20
  75. package/dist/components/CheckBox/CheckBox.stories.js +29 -29
  76. package/dist/components/CheckBox/index.d.ts +1 -1
  77. package/dist/components/CheckBox/index.js +8 -8
  78. package/dist/components/Collapsable/Collapsable.d.ts +33 -33
  79. package/dist/components/Collapsable/Collapsable.js +128 -128
  80. package/dist/components/Collapsable/Collapsable.stories.d.ts +39 -39
  81. package/dist/components/Collapsable/Collapsable.stories.js +27 -27
  82. package/dist/components/Collapsable/index.d.ts +1 -1
  83. package/dist/components/Collapsable/index.js +8 -8
  84. package/dist/components/Countdown/Countdown.d.ts +13 -13
  85. package/dist/components/Countdown/Countdown.js +79 -79
  86. package/dist/components/Countdown/Countdown.stories.d.ts +14 -14
  87. package/dist/components/Countdown/Countdown.stories.js +31 -31
  88. package/dist/components/Countdown/index.d.ts +1 -1
  89. package/dist/components/Countdown/index.js +8 -8
  90. package/dist/components/Divider/Divider.d.ts +6 -6
  91. package/dist/components/Divider/Divider.js +15 -15
  92. package/dist/components/Divider/Divider.stories.d.ts +7 -7
  93. package/dist/components/Divider/Divider.stories.js +14 -14
  94. package/dist/components/Divider/index.d.ts +1 -1
  95. package/dist/components/Divider/index.js +8 -8
  96. package/dist/components/EmailInput/EmailInput.d.ts +23 -23
  97. package/dist/components/EmailInput/EmailInput.js +51 -51
  98. package/dist/components/EmailInput/EmailInput.stories.d.ts +26 -26
  99. package/dist/components/EmailInput/EmailInput.stories.js +14 -14
  100. package/dist/components/EmailInput/EmailInput.test.d.ts +1 -1
  101. package/dist/components/EmailInput/EmailInput.test.js +76 -76
  102. package/dist/components/EmailInput/index.d.ts +1 -1
  103. package/dist/components/EmailInput/index.js +9 -9
  104. package/dist/components/FadeIn/FadeIn.d.ts +10 -10
  105. package/dist/components/FadeIn/FadeIn.js +63 -63
  106. package/dist/components/FadeIn/FadeIn.stories.d.ts +24 -24
  107. package/dist/components/FadeIn/FadeIn.stories.js +15 -15
  108. package/dist/components/FadeIn/FadeIn.test.d.ts +1 -1
  109. package/dist/components/FadeIn/FadeIn.test.js +21 -21
  110. package/dist/components/FadeIn/index.d.ts +1 -1
  111. package/dist/components/FadeIn/index.js +8 -8
  112. package/dist/components/FileInput/FileInput.d.ts +13 -13
  113. package/dist/components/FileInput/FileInput.js +74 -74
  114. package/dist/components/FileInput/FileInput.stories.d.ts +19 -19
  115. package/dist/components/FileInput/FileInput.stories.js +58 -58
  116. package/dist/components/FileInput/index.d.ts +1 -1
  117. package/dist/components/FileInput/index.js +8 -8
  118. package/dist/components/FlowController/FlowController.d.ts +23 -23
  119. package/dist/components/FlowController/FlowController.js +33 -33
  120. package/dist/components/FlowController/FlowController.stories.d.ts +43 -43
  121. package/dist/components/FlowController/FlowController.stories.js +100 -100
  122. package/dist/components/FlowController/FlowController.test.d.ts +1 -1
  123. package/dist/components/FlowController/FlowController.test.js +165 -165
  124. package/dist/components/FlowController/index.d.ts +1 -1
  125. package/dist/components/FlowController/index.js +8 -8
  126. package/dist/components/Form/Form.d.ts +40 -40
  127. package/dist/components/Form/Form.js +91 -91
  128. package/dist/components/Form/index.d.ts +1 -1
  129. package/dist/components/Form/index.js +8 -8
  130. package/dist/components/Freeze/Freeze.d.ts +5 -5
  131. package/dist/components/Freeze/Freeze.js +12 -12
  132. package/dist/components/Freeze/Freeze.stories.d.ts +7 -7
  133. package/dist/components/Freeze/Freeze.stories.js +55 -55
  134. package/dist/components/Freeze/Freeze.test.d.ts +1 -1
  135. package/dist/components/Freeze/Freeze.test.js +14 -14
  136. package/dist/components/Freeze/index.d.ts +1 -1
  137. package/dist/components/Freeze/index.js +8 -8
  138. package/dist/components/HSForms/HSForms.d.ts +5 -5
  139. package/dist/components/HSForms/HSForms.js +46 -46
  140. package/dist/components/HSForms/index.d.ts +1 -1
  141. package/dist/components/HSForms/index.js +8 -8
  142. package/dist/components/Header/Header.d.ts +25 -25
  143. package/dist/components/Header/Header.js +74 -74
  144. package/dist/components/Header/Header.stories.d.ts +28 -28
  145. package/dist/components/Header/Header.stories.js +40 -40
  146. package/dist/components/Header/Header.test.d.ts +1 -1
  147. package/dist/components/Header/Header.test.js +99 -99
  148. package/dist/components/Header/index.d.ts +1 -1
  149. package/dist/components/Header/index.js +8 -8
  150. package/dist/components/HeaderCloseBtn/HeaderCloseBtn.d.ts +8 -8
  151. package/dist/components/HeaderCloseBtn/HeaderCloseBtn.js +16 -16
  152. package/dist/components/HeaderCloseBtn/HeaderCloseBtn.stories.d.ts +14 -14
  153. package/dist/components/HeaderCloseBtn/HeaderCloseBtn.stories.js +15 -15
  154. package/dist/components/HeaderCloseBtn/index.d.ts +1 -1
  155. package/dist/components/HeaderCloseBtn/index.js +8 -8
  156. package/dist/components/InfinityScroll/InfinityScroll.d.ts +11 -11
  157. package/dist/components/InfinityScroll/InfinityScroll.js +111 -111
  158. package/dist/components/InfinityScroll/InfinityScroll.stories.d.ts +23 -23
  159. package/dist/components/InfinityScroll/InfinityScroll.stories.js +53 -53
  160. package/dist/components/InfinityScroll/InfinityScroll.test.d.ts +1 -1
  161. package/dist/components/InfinityScroll/InfinityScroll.test.js +188 -188
  162. package/dist/components/InfinityScroll/index.d.ts +1 -1
  163. package/dist/components/InfinityScroll/index.js +8 -8
  164. package/dist/components/Input/Input.d.ts +30 -30
  165. package/dist/components/Input/Input.js +93 -93
  166. package/dist/components/Input/Input.stories.d.ts +22 -22
  167. package/dist/components/Input/Input.stories.js +20 -20
  168. package/dist/components/Input/Input.test.d.ts +1 -1
  169. package/dist/components/Input/Input.test.js +57 -57
  170. package/dist/components/Input/index.d.ts +1 -1
  171. package/dist/components/Input/index.js +8 -8
  172. package/dist/components/InstantCounter/InstantCounter.d.ts +13 -13
  173. package/dist/components/InstantCounter/InstantCounter.js +58 -58
  174. package/dist/components/InstantCounter/InstantCounter.stories.d.ts +28 -28
  175. package/dist/components/InstantCounter/InstantCounter.stories.js +15 -15
  176. package/dist/components/InstantCounter/InstantCounter.test.d.ts +1 -1
  177. package/dist/components/InstantCounter/InstantCounter.test.js +49 -49
  178. package/dist/components/InstantCounter/index.d.ts +1 -1
  179. package/dist/components/InstantCounter/index.js +8 -8
  180. package/dist/components/LinkToId/LinkToId.d.ts +10 -10
  181. package/dist/components/LinkToId/LinkToId.js +32 -32
  182. package/dist/components/LinkToId/LinkToId.test.d.ts +1 -1
  183. package/dist/components/LinkToId/LinkToId.test.js +11 -11
  184. package/dist/components/LinkToId/index.d.ts +1 -1
  185. package/dist/components/LinkToId/index.js +9 -9
  186. package/dist/components/Loader/Loader.d.ts +6 -6
  187. package/dist/components/Loader/Loader.js +17 -17
  188. package/dist/components/Loader/Loader.stories.d.ts +12 -12
  189. package/dist/components/Loader/Loader.stories.js +15 -15
  190. package/dist/components/Loader/index.d.ts +1 -1
  191. package/dist/components/Loader/index.js +8 -8
  192. package/dist/components/LoaderDotsIndicator/LoaderDotsIndicator.d.ts +6 -6
  193. package/dist/components/LoaderDotsIndicator/LoaderDotsIndicator.js +41 -41
  194. package/dist/components/LoaderDotsIndicator/index.d.ts +1 -1
  195. package/dist/components/LoaderDotsIndicator/index.js +8 -8
  196. package/dist/components/MainGrid/MainGrid.d.ts +10 -10
  197. package/dist/components/MainGrid/MainGrid.js +55 -55
  198. package/dist/components/MainGrid/MainGrid.stories.d.ts +14 -14
  199. package/dist/components/MainGrid/MainGrid.stories.js +69 -69
  200. package/dist/components/MainGrid/MainGrid.test.d.ts +1 -1
  201. package/dist/components/MainGrid/MainGrid.test.js +17 -17
  202. package/dist/components/MainGrid/index.d.ts +1 -1
  203. package/dist/components/MainGrid/index.js +8 -8
  204. package/dist/components/MutableHamburgerButton/MutableHamburgerButton.d.ts +8 -8
  205. package/dist/components/MutableHamburgerButton/MutableHamburgerButton.js +29 -29
  206. package/dist/components/MutableHamburgerButton/MutableHamburgerButton.module.scss +23 -0
  207. package/dist/components/MutableHamburgerButton/MutableHamburgerButton.stories.d.ts +14 -14
  208. package/dist/components/MutableHamburgerButton/MutableHamburgerButton.stories.js +15 -15
  209. package/dist/components/MutableHamburgerButton/index.d.ts +1 -1
  210. package/dist/components/MutableHamburgerButton/index.js +8 -8
  211. package/dist/components/Notification/Notification.d.ts +7 -7
  212. package/dist/components/Notification/Notification.js +15 -15
  213. package/dist/components/Notification/Notification.stories.d.ts +15 -15
  214. package/dist/components/Notification/Notification.stories.js +18 -18
  215. package/dist/components/Notification/index.d.ts +1 -1
  216. package/dist/components/Notification/index.js +8 -8
  217. package/dist/components/Parallax/Parallax.d.ts +15 -15
  218. package/dist/components/Parallax/Parallax.js +174 -174
  219. package/dist/components/Parallax/Parallax.stories.d.ts +32 -32
  220. package/dist/components/Parallax/Parallax.stories.js +22 -22
  221. package/dist/components/Parallax/Parallax.test.d.ts +1 -1
  222. package/dist/components/Parallax/Parallax.test.js +21 -21
  223. package/dist/components/Parallax/index.d.ts +1 -1
  224. package/dist/components/Parallax/index.js +8 -8
  225. package/dist/components/Parallax/math/helpers.d.ts +58 -58
  226. package/dist/components/Parallax/math/helpers.js +228 -228
  227. package/dist/components/PasswordInput/PasswordInput.d.ts +40 -40
  228. package/dist/components/PasswordInput/PasswordInput.js +105 -105
  229. package/dist/components/PasswordInput/PasswordInput.test.d.ts +1 -1
  230. package/dist/components/PasswordInput/PasswordInput.test.js +156 -156
  231. package/dist/components/PasswordInput/index.d.ts +1 -1
  232. package/dist/components/PasswordInput/index.js +8 -8
  233. package/dist/components/PixelatedScan/PixelatedScan.d.ts +8 -8
  234. package/dist/components/PixelatedScan/PixelatedScan.js +104 -104
  235. package/dist/components/PixelatedScan/PixelatedScan.stories.d.ts +15 -15
  236. package/dist/components/PixelatedScan/PixelatedScan.stories.js +39 -39
  237. package/dist/components/PixelatedScan/index.d.ts +1 -1
  238. package/dist/components/PixelatedScan/index.js +8 -8
  239. package/dist/components/ProgressTexts/ProgressTexts.d.ts +22 -22
  240. package/dist/components/ProgressTexts/ProgressTexts.js +37 -37
  241. package/dist/components/ProgressTexts/ProgressTexts.stories.d.ts +24 -24
  242. package/dist/components/ProgressTexts/ProgressTexts.stories.js +89 -89
  243. package/dist/components/ProgressTexts/ProgressTexts.test.d.ts +1 -1
  244. package/dist/components/ProgressTexts/ProgressTexts.test.js +51 -51
  245. package/dist/components/ProgressTexts/index.d.ts +1 -1
  246. package/dist/components/ProgressTexts/index.js +8 -8
  247. package/dist/components/SectionContainer/SectionContainer.d.ts +11 -11
  248. package/dist/components/SectionContainer/SectionContainer.js +45 -45
  249. package/dist/components/SectionContainer/index.d.ts +1 -1
  250. package/dist/components/SectionContainer/index.js +8 -8
  251. package/dist/components/Select/Select.d.ts +22 -22
  252. package/dist/components/Select/Select.js +75 -75
  253. package/dist/components/Select/Select.stories.d.ts +52 -52
  254. package/dist/components/Select/Select.stories.js +33 -33
  255. package/dist/components/Select/Select.test.d.ts +1 -1
  256. package/dist/components/Select/Select.test.js +11 -11
  257. package/dist/components/Select/index.d.ts +1 -1
  258. package/dist/components/Select/index.js +8 -8
  259. package/dist/components/Spacing/Spacing.d.ts +6 -6
  260. package/dist/components/Spacing/Spacing.js +14 -14
  261. package/dist/components/Spacing/Spacing.stories.d.ts +7 -7
  262. package/dist/components/Spacing/Spacing.stories.js +34 -34
  263. package/dist/components/Spacing/index.d.ts +1 -1
  264. package/dist/components/Spacing/index.js +8 -8
  265. package/dist/components/Table/Table.d.ts +19 -19
  266. package/dist/components/Table/Table.js +87 -87
  267. package/dist/components/Table/Table.stories.d.ts +15 -15
  268. package/dist/components/Table/Table.stories.js +87 -87
  269. package/dist/components/Table/Table.test.d.ts +1 -1
  270. package/dist/components/Table/Table.test.js +34 -34
  271. package/dist/components/Table/index.d.ts +1 -1
  272. package/dist/components/Table/index.js +8 -8
  273. package/dist/components/Tabs/Tabs.d.ts +11 -11
  274. package/dist/components/Tabs/Tabs.js +48 -48
  275. package/dist/components/Tabs/Tabs.test.d.ts +1 -1
  276. package/dist/components/Tabs/Tabs.test.js +38 -38
  277. package/dist/components/Tabs/index.d.ts +1 -1
  278. package/dist/components/Tabs/index.js +8 -8
  279. package/dist/components/Text/Text.d.ts +8 -8
  280. package/dist/components/Text/Text.js +51 -51
  281. package/dist/components/Text/Text.stories.d.ts +12 -12
  282. package/dist/components/Text/Text.stories.js +19 -19
  283. package/dist/components/Text/Text.test.d.ts +1 -1
  284. package/dist/components/Text/Text.test.js +11 -11
  285. package/dist/components/Text/index.d.ts +1 -1
  286. package/dist/components/Text/index.js +8 -8
  287. package/dist/components/Transition/Transition.d.ts +44 -44
  288. package/dist/components/Transition/Transition.js +226 -226
  289. package/dist/components/Transition/Transition.stories.d.ts +10 -10
  290. package/dist/components/Transition/Transition.stories.js +28 -28
  291. package/dist/components/Transition/Transition.test.d.ts +1 -1
  292. package/dist/components/Transition/Transition.test.js +54 -54
  293. package/dist/components/Transition/index.d.ts +1 -1
  294. package/dist/components/Transition/index.js +9 -9
  295. package/dist/components/UncontrolledTransition/UncontrolledTransition.d.ts +12 -12
  296. package/dist/components/UncontrolledTransition/UncontrolledTransition.js +95 -95
  297. package/dist/components/UncontrolledTransition/UncontrolledTransition.stories.d.ts +30 -30
  298. package/dist/components/UncontrolledTransition/UncontrolledTransition.stories.js +183 -183
  299. package/dist/components/UncontrolledTransition/UncontrolledTransition.test.d.ts +1 -1
  300. package/dist/components/UncontrolledTransition/UncontrolledTransition.test.js +134 -134
  301. package/dist/components/UncontrolledTransition/index.d.ts +1 -1
  302. package/dist/components/UncontrolledTransition/index.js +8 -8
  303. package/dist/components/WalletConnectionWrapper/WalletConnectionWrapper.d.ts +52 -35
  304. package/dist/components/WalletConnectionWrapper/WalletConnectionWrapper.js +121 -89
  305. package/dist/components/WalletConnectionWrapper/WalletConnectionWrapper.js.map +1 -1
  306. package/dist/components/WalletConnectionWrapper/WalletConnectionWrapper.stories.d.ts +70 -47
  307. package/dist/components/WalletConnectionWrapper/WalletConnectionWrapper.stories.js +64 -55
  308. package/dist/components/WalletConnectionWrapper/WalletConnectionWrapper.stories.js.map +1 -1
  309. package/dist/components/WalletConnectionWrapper/WalletConnectionWrapper.test.d.ts +1 -1
  310. package/dist/components/WalletConnectionWrapper/WalletConnectionWrapper.test.js +136 -136
  311. package/dist/components/WalletConnectionWrapper/index.d.ts +1 -1
  312. package/dist/components/WalletConnectionWrapper/index.js +9 -8
  313. package/dist/components/WalletConnectionWrapper/index.js.map +1 -1
  314. package/dist/components/WalletConnectionWrapper/v2/WalletConnectionWrapper.d.ts +40 -0
  315. package/dist/components/WalletConnectionWrapper/v2/WalletConnectionWrapper.js +130 -0
  316. package/dist/components/WalletConnectionWrapper/v2/WalletConnectionWrapper.js.map +1 -0
  317. package/dist/components/WalletConnectionWrapper/v2/WalletConnectionWrapper.stories.d.ts +59 -0
  318. package/dist/components/WalletConnectionWrapper/v2/WalletConnectionWrapper.stories.js +62 -0
  319. package/dist/components/WalletConnectionWrapper/v2/WalletConnectionWrapper.stories.js.map +1 -0
  320. package/dist/components/WalletConnectionWrapper/v2/index.d.ts +1 -0
  321. package/dist/components/WalletConnectionWrapper/v2/index.js +9 -0
  322. package/dist/components/WalletConnectionWrapper/v2/index.js.map +1 -0
  323. package/dist/components/WalletConnectionWrapper/v2/rLoginConfig.d.ts +6 -0
  324. package/dist/components/WalletConnectionWrapper/v2/rLoginConfig.js +52 -0
  325. package/dist/components/WalletConnectionWrapper/v2/rLoginConfig.js.map +1 -0
  326. package/dist/components/utilitary/ScrollAndFocusLock/ScrollAndFocusLock.d.ts +7 -0
  327. package/dist/components/utilitary/ScrollAndFocusLock/ScrollAndFocusLock.js +71 -0
  328. package/dist/components/utilitary/ScrollAndFocusLock/ScrollAndFocusLock.js.map +1 -0
  329. package/dist/components/utilitary/ScrollAndFocusLock/index.d.ts +1 -0
  330. package/dist/components/utilitary/ScrollAndFocusLock/index.js +9 -0
  331. package/dist/components/utilitary/ScrollAndFocusLock/index.js.map +1 -0
  332. package/dist/context/OneUIProvider.d.ts +67 -64
  333. package/dist/context/OneUIProvider.js +63 -63
  334. package/dist/context/OneUIProvider.js.map +1 -1
  335. package/dist/context/OneUIProvider.test.d.ts +1 -1
  336. package/dist/context/OneUIProvider.test.js +44 -44
  337. package/dist/context/__mocks__/OneUIProvider.d.ts +67 -64
  338. package/dist/context/__mocks__/OneUIProvider.js +12 -12
  339. package/dist/hooks/shims/ObjectWatchShim.d.ts +0 -0
  340. package/dist/hooks/shims/ObjectWatchShim.js +48 -0
  341. package/dist/hooks/shims/ObjectWatchShim.js.map +1 -0
  342. package/dist/hooks/useAsyncControl.d.ts +9 -9
  343. package/dist/hooks/useAsyncControl.js +39 -39
  344. package/dist/hooks/useIntersection.d.ts +4 -4
  345. package/dist/hooks/useIntersection.js +29 -29
  346. package/dist/hooks/useObserve.d.ts +2 -0
  347. package/dist/hooks/useObserve.js +14 -0
  348. package/dist/hooks/useObserve.js.map +1 -0
  349. package/dist/hooks/usePagination.d.ts +19 -19
  350. package/dist/hooks/usePagination.js +64 -64
  351. package/dist/hooks/usePooledOperation.d.ts +15 -15
  352. package/dist/hooks/usePooledOperation.js +63 -63
  353. package/dist/hooks/usePooling.d.ts +16 -16
  354. package/dist/hooks/usePooling.js +46 -46
  355. package/dist/hooks/usePooling.test.d.ts +1 -1
  356. package/dist/hooks/usePooling.test.js +103 -103
  357. package/dist/hooks/useScrollLock.d.ts +0 -0
  358. package/dist/hooks/useScrollLock.js +2 -0
  359. package/dist/hooks/useScrollLock.js.map +1 -0
  360. package/dist/hooks/useShortIntl.d.ts +14 -14
  361. package/dist/hooks/useShortIntl.js +34 -34
  362. package/dist/models/GenericContract.d.ts +66 -66
  363. package/dist/models/GenericContract.js +13 -13
  364. package/dist/storybookUtils/index.d.ts +5 -5
  365. package/dist/storybookUtils/index.js +26 -26
  366. package/package.json +7 -4
@@ -1,3 +1,3 @@
1
- export declare function setCurrentPage(page: string): void;
2
- export declare function logEvent(eventType: string, eventParams: any): void;
3
- export declare function setUserId(userId: string): void;
1
+ export declare function setCurrentPage(page: string): void;
2
+ export declare function logEvent(eventType: string, eventParams: any): void;
3
+ export declare function setUserId(userId: string): void;
@@ -1,20 +1,20 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setUserId = exports.logEvent = exports.setCurrentPage = void 0;
4
- function setCurrentPage(page) {
5
- const message = `Analytics: Setting current page ${page}`;
6
- (console.warn)(message);
7
- }
8
- exports.setCurrentPage = setCurrentPage;
9
- function logEvent(eventType, eventParams) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setUserId = exports.logEvent = exports.setCurrentPage = void 0;
4
+ function setCurrentPage(page) {
5
+ const message = `Analytics: Setting current page ${page}`;
6
+ (console.warn)(message);
7
+ }
8
+ exports.setCurrentPage = setCurrentPage;
9
+ function logEvent(eventType, eventParams) {
10
10
  const message = `Analytics: Log event ${eventType}
11
- ${JSON.stringify(eventParams, null, 4)}`;
12
- (console.warn)(message);
13
- }
14
- exports.logEvent = logEvent;
15
- function setUserId(userId) {
16
- const message = `Analytics: Set user id ${userId}`;
17
- (console.warn)(message);
18
- }
19
- exports.setUserId = setUserId;
11
+ ${JSON.stringify(eventParams, null, 4)}`;
12
+ (console.warn)(message);
13
+ }
14
+ exports.logEvent = logEvent;
15
+ function setUserId(userId) {
16
+ const message = `Analytics: Set user id ${userId}`;
17
+ (console.warn)(message);
18
+ }
19
+ exports.setUserId = setUserId;
20
20
  //# sourceMappingURL=analytics.js.map
@@ -1 +1,2 @@
1
- export declare function createDoc(firestore: any, path: string, data: any): Promise<void>;
1
+ export declare function createDoc(firestore: any, path: string, data: any): Promise<void>;
2
+ export declare function updateDoc<T extends Object = any>(firestore: any, path: string, data: Partial<T>): Promise<void>;
@@ -1,20 +1,26 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.createDoc = void 0;
13
- const firestore_1 = require("firebase/firestore");
14
- function createDoc(firestore, path, data) {
15
- return __awaiter(this, void 0, void 0, function* () {
16
- return yield (0, firestore_1.setDoc)((0, firestore_1.doc)(firestore, path), data);
17
- });
18
- }
19
- exports.createDoc = createDoc;
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.updateDoc = exports.createDoc = void 0;
13
+ const firestore_1 = require("firebase/firestore");
14
+ function createDoc(firestore, path, data) {
15
+ return __awaiter(this, void 0, void 0, function* () {
16
+ return yield (0, firestore_1.setDoc)((0, firestore_1.doc)(firestore, path), data);
17
+ });
18
+ }
19
+ exports.createDoc = createDoc;
20
+ function updateDoc(firestore, path, data) {
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ return yield (0, firestore_1.updateDoc)((0, firestore_1.doc)(firestore, path), data);
23
+ });
24
+ }
25
+ exports.updateDoc = updateDoc;
20
26
  //# sourceMappingURL=firestore.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"firestore.js","sourceRoot":"","sources":["../../src/__test__/firestore.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAiD;AAEjD,SAAsB,SAAS,CAAC,SAAc,EAAE,IAAY,EAAE,IAAS;;QACrE,OAAO,MAAM,IAAA,kBAAM,EAAC,IAAA,eAAG,EAAC,SAAS,EAAE,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IAClD,CAAC;CAAA;AAFD,8BAEC"}
1
+ {"version":3,"file":"firestore.js","sourceRoot":"","sources":["../../src/__test__/firestore.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAA0E;AAE1E,SAAsB,SAAS,CAAC,SAAc,EAAE,IAAY,EAAE,IAAS;;QACrE,OAAO,MAAM,IAAA,kBAAM,EAAC,IAAA,eAAG,EAAC,SAAS,EAAE,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IAClD,CAAC;CAAA;AAFD,8BAEC;AAED,SAAsB,SAAS,CAC7B,SAAc,EACd,IAAY,EACZ,IAAgB;;QAEhB,OAAO,MAAM,IAAA,qBAAU,EAAC,IAAA,eAAG,EAAC,SAAS,EAAE,IAAI,CAAC,EAAE,IAAW,CAAC,CAAC;IAC7D,CAAC;CAAA;AAND,8BAMC"}
@@ -1,17 +1,17 @@
1
- import { Firestore } from "firebase/firestore";
2
- import { FirebaseStorage } from "firebase/storage";
3
- import { RulesTestEnvironment } from "@firebase/rules-unit-testing";
4
- export declare function WaitTimeout(ml?: number): Promise<void>;
5
- declare class FirebaseEmulatorInterface {
6
- private process;
7
- private killRelatedPorts;
8
- waitUntilUp(): void;
9
- start(fakeProjectName: string): Promise<void> | undefined;
10
- stop(immediate?: boolean, timeoutSec?: number): Promise<unknown>;
11
- }
12
- export declare const EmulatorController: FirebaseEmulatorInterface;
13
- export declare function cyPromise(someAssertion: {
14
- then: Function;
15
- }): Promise<unknown>;
16
- export declare function initTestFirebase(fakeProjectId: string, setupEnv?: (ctx: Firestore, storageCtx: FirebaseStorage, testEnv: RulesTestEnvironment) => Promise<void>): Promise<RulesTestEnvironment>;
17
- export {};
1
+ import { Firestore } from "firebase/firestore";
2
+ import { FirebaseStorage } from "firebase/storage";
3
+ import { RulesTestEnvironment } from "@firebase/rules-unit-testing";
4
+ export declare function WaitTimeout(ml?: number): Promise<void>;
5
+ declare class FirebaseEmulatorInterface {
6
+ private process;
7
+ private killRelatedPorts;
8
+ waitUntilUp(): void;
9
+ start(fakeProjectName: string, databaseToImport?: string): Promise<void> | undefined;
10
+ stop(immediate?: boolean, timeoutSec?: number): Promise<unknown>;
11
+ }
12
+ export declare const EmulatorController: FirebaseEmulatorInterface;
13
+ export declare function cyPromise(someAssertion: {
14
+ then: Function;
15
+ }): Promise<unknown>;
16
+ export declare function initTestFirebase(fakeProjectId: string, setupEnv?: (ctx: Firestore, storageCtx: FirebaseStorage, testEnv: RulesTestEnvironment) => Promise<void>): Promise<RulesTestEnvironment>;
17
+ export {};
@@ -1,92 +1,97 @@
1
- "use strict";
2
- // @ts-nocheck
3
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
4
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5
- return new (P || (P = Promise))(function (resolve, reject) {
6
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
7
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
8
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
9
- step((generator = generator.apply(thisArg, _arguments || [])).next());
10
- });
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.initTestFirebase = exports.cyPromise = exports.EmulatorController = exports.WaitTimeout = void 0;
14
- const rules_unit_testing_1 = require("@firebase/rules-unit-testing");
15
- // import { ChildProcess, execSync, spawn, SpawnSyncReturns } from "child_process";
16
- function WaitTimeout(ml = 200) {
17
- return new Promise((r) => {
18
- setTimeout(() => {
19
- r();
20
- }, ml);
21
- if (window.Cypress)
22
- return;
23
- else if (jest.isMockFunction(setTimeout))
24
- jest.advanceTimersByTime(ml);
25
- });
26
- }
27
- exports.WaitTimeout = WaitTimeout;
28
- class FirebaseEmulatorInterface {
29
- killRelatedPorts() {
30
- for (let port of [4400, 8055]) {
31
- try {
32
- if (window.Cypress)
33
- cy.exec(`kill $(lsof -t -i:${port})`, { failOnNonZeroExit: false });
34
- else
35
- require("child_process").execSync(`kill -9 $(lsof -t -i:${port})`, {
36
- stdio: "ignore",
37
- });
38
- }
39
- catch (e) { }
40
- }
41
- }
42
- waitUntilUp() {
43
- cy.wrap(null).then(() => {
44
- return new Cypress.Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
45
- let breakLoop = false;
46
- const timeout = setTimeout(() => {
47
- breakLoop = true;
48
- rej("Could not receive ok from firebase emulator");
49
- clearTimeout(timeout);
50
- }, 30000);
51
- while (!breakLoop) {
52
- try {
53
- yield fetch("http://localhost:4000", {
54
- mode: "no-cors",
55
- });
56
- res();
57
- clearTimeout(timeout);
58
- break;
59
- }
60
- catch (e) { }
61
- yield WaitTimeout(1000);
62
- }
63
- }));
64
- });
65
- }
66
- start(fakeProjectName) {
67
- this.killRelatedPorts();
68
- if (window.Cypress) {
69
- const command = `firebase emulators:start -P ${fakeProjectName} &`;
70
- cy.on("fail", (error) => {
71
- if (error.message.includes(command))
72
- return false;
73
- });
74
- cy.on("uncaught:exception", (error) => {
75
- if (error.message.includes(command))
76
- return false;
77
- });
78
- cy.exec(command, {
79
- timeout: 1000, // Instant fail
80
- });
81
- }
82
- else {
83
- this.process = require("child_process").spawn("firebase", ["emulators:start", "-P", "whz-test"], {
84
- stdio: "pipe",
85
- });
86
- return new Promise((r, rej) => {
87
- let fullOutput = "";
88
- const timeoutSeconds = 20;
89
- const unexpectedTimeout = setTimeout(() => {
1
+ "use strict";
2
+ // @ts-nocheck
3
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
4
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5
+ return new (P || (P = Promise))(function (resolve, reject) {
6
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
7
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
8
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
9
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
10
+ });
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.initTestFirebase = exports.cyPromise = exports.EmulatorController = exports.WaitTimeout = void 0;
14
+ const rules_unit_testing_1 = require("@firebase/rules-unit-testing");
15
+ // import { ChildProcess, execSync, spawn, SpawnSyncReturns } from "child_process";
16
+ function WaitTimeout(ml = 200) {
17
+ return new Promise((r) => {
18
+ setTimeout(() => {
19
+ r();
20
+ }, ml);
21
+ if (window.Cypress)
22
+ return;
23
+ else if (jest.isMockFunction(setTimeout))
24
+ jest.advanceTimersByTime(ml);
25
+ });
26
+ }
27
+ exports.WaitTimeout = WaitTimeout;
28
+ class FirebaseEmulatorInterface {
29
+ killRelatedPorts() {
30
+ for (let port of [4000, 4400, 8055, 8080]) {
31
+ try {
32
+ if (window.Cypress)
33
+ cy.exec(`yarn kill-port ${port}`, { failOnNonZeroExit: true });
34
+ else
35
+ require("child_process").execSync(`kill -9 $(lsof -t -i:${port})`, {
36
+ stdio: "ignore",
37
+ });
38
+ }
39
+ catch (e) {
40
+ console.error("Error when killing port", port, e);
41
+ }
42
+ }
43
+ }
44
+ waitUntilUp() {
45
+ cy.wrap("Waiting the emulator to be up").then({ timeout: 60000 }, () => {
46
+ return new Cypress.Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
47
+ let breakLoop = false;
48
+ const timeout = setTimeout(() => {
49
+ breakLoop = true;
50
+ rej("Could not receive ok from firebase emulator");
51
+ clearTimeout(timeout);
52
+ }, 30000);
53
+ while (!breakLoop) {
54
+ try {
55
+ yield fetch(`http://${window.location.hostname}:4000`, {
56
+ mode: "no-cors",
57
+ });
58
+ res();
59
+ clearTimeout(timeout);
60
+ break;
61
+ }
62
+ catch (e) { }
63
+ yield WaitTimeout(1000);
64
+ }
65
+ }));
66
+ });
67
+ }
68
+ start(fakeProjectName, databaseToImport) {
69
+ if (sessionStorage.getItem("last-database") === databaseToImport)
70
+ return;
71
+ this.killRelatedPorts();
72
+ if (window.Cypress) {
73
+ const command = `firebase emulators:start -P ${fakeProjectName} ${databaseToImport ? `--import ${databaseToImport}` : ""}`;
74
+ cy.on("fail", (error) => {
75
+ if (error.message.includes(command))
76
+ return false;
77
+ });
78
+ cy.on("uncaught:exception", (error) => {
79
+ if (error.message.includes(command))
80
+ return false;
81
+ });
82
+ cy.exec(command, {
83
+ timeout: 10000, // Instant fail
84
+ });
85
+ sessionStorage.setItem("last-database", databaseToImport);
86
+ }
87
+ else {
88
+ this.process = require("child_process").spawn("firebase", ["emulators:start", "-P", "whz-test"], {
89
+ stdio: "pipe",
90
+ });
91
+ return new Promise((r, rej) => {
92
+ let fullOutput = "";
93
+ const timeoutSeconds = 20;
94
+ const unexpectedTimeout = setTimeout(() => {
90
95
  rej(new Error(`Waited for 20 seconds and didn't received ok from emulator.
91
96
 
92
97
  Below is the full output:
@@ -95,97 +100,97 @@ Below is the full output:
95
100
 
96
101
  ${fullOutput}
97
102
 
98
- --------EMULATOR START OUTPUT--------`));
99
- }, timeoutSeconds * 1000);
100
- this.process.stdout.on("data", (txt) => {
101
- const output = txt.toString();
102
- fullOutput += output;
103
- if (output.includes("All emulators ready!")) {
104
- clearTimeout(unexpectedTimeout);
105
- setTimeout(() => {
106
- r();
107
- }, 2000);
108
- }
109
- });
110
- });
111
- }
112
- }
113
- stop(immediate, timeoutSec) {
114
- return __awaiter(this, void 0, void 0, function* () {
115
- const write = window.Cypress ? console.log : process.stdout.write;
116
- const timeout = (timeoutSec || 10) * 1000;
117
- const kill = (r) => {
118
- if (window.Cypress)
119
- this.killRelatedPorts();
120
- else
121
- this.process.kill("SIGINT");
122
- setTimeout(() => {
123
- r();
124
- }, 2000);
125
- };
126
- if (immediate) {
127
- return new Promise((res) => {
128
- kill(res);
129
- });
130
- }
131
- else {
132
- const clear = (message) => {
133
- if (window.Cypress)
134
- return;
135
- write(new Array(message.length).fill("\r").join(""));
136
- write(new Array(message.length).fill(" ").join(""));
137
- };
138
- return new Promise((res) => {
139
- let remaining = timeout / 1000;
140
- let message;
141
- const interval = setInterval(() => {
142
- if (message)
143
- clear(message);
144
- message = `Killing emulator in ${remaining} seconds`;
145
- write(message);
146
- remaining -= 1;
147
- if (remaining === 0) {
148
- kill(res);
149
- clear(message);
150
- write("Emulator killed");
151
- clearInterval(interval);
152
- }
153
- }, 1000);
154
- });
155
- }
156
- });
157
- }
158
- }
159
- exports.EmulatorController = new FirebaseEmulatorInterface();
160
- function cyPromise(someAssertion) {
161
- return new Promise((r) => {
162
- someAssertion.then(r);
163
- });
164
- }
165
- exports.cyPromise = cyPromise;
166
- function initTestFirebase(fakeProjectId, setupEnv) {
167
- return __awaiter(this, void 0, void 0, function* () {
168
- const testEnv = yield (0, rules_unit_testing_1.initializeTestEnvironment)({
169
- projectId: fakeProjectId,
170
- firestore: {
171
- host: "localhost",
172
- port: 8080,
173
- },
174
- storage: {
175
- host: "localhost",
176
- port: 9199,
177
- },
178
- });
179
- yield testEnv.withSecurityRulesDisabled((ctx) => __awaiter(this, void 0, void 0, function* () {
180
- const firestore = ctx.firestore({
181
- experimentalForceLongPolling: true,
182
- });
183
- const storage = ctx.storage();
184
- if (setupEnv)
185
- yield setupEnv(firestore, storage, testEnv);
186
- }));
187
- return testEnv;
188
- });
189
- }
190
- exports.initTestFirebase = initTestFirebase;
103
+ --------EMULATOR START OUTPUT--------`));
104
+ }, timeoutSeconds * 1000);
105
+ this.process.stdout.on("data", (txt) => {
106
+ const output = txt.toString();
107
+ fullOutput += output;
108
+ if (output.includes("All emulators ready!")) {
109
+ clearTimeout(unexpectedTimeout);
110
+ setTimeout(() => {
111
+ r();
112
+ }, 2000);
113
+ }
114
+ });
115
+ });
116
+ }
117
+ }
118
+ stop(immediate, timeoutSec) {
119
+ return __awaiter(this, void 0, void 0, function* () {
120
+ const write = window.Cypress ? console.log : process.stdout.write;
121
+ const timeout = (timeoutSec || 10) * 1000;
122
+ const kill = (r) => {
123
+ if (window.Cypress)
124
+ this.killRelatedPorts();
125
+ else
126
+ this.process.kill("SIGINT");
127
+ setTimeout(() => {
128
+ r();
129
+ }, 2000);
130
+ };
131
+ if (immediate) {
132
+ return new Promise((res) => {
133
+ kill(res);
134
+ });
135
+ }
136
+ else {
137
+ const clear = (message) => {
138
+ if (window.Cypress)
139
+ return;
140
+ write(new Array(message.length).fill("\r").join(""));
141
+ write(new Array(message.length).fill(" ").join(""));
142
+ };
143
+ return new Promise((res) => {
144
+ let remaining = timeout / 1000;
145
+ let message;
146
+ const interval = setInterval(() => {
147
+ if (message)
148
+ clear(message);
149
+ message = `Killing emulator in ${remaining} seconds`;
150
+ write(message);
151
+ remaining -= 1;
152
+ if (remaining === 0) {
153
+ kill(res);
154
+ clear(message);
155
+ write("Emulator killed");
156
+ clearInterval(interval);
157
+ }
158
+ }, 1000);
159
+ });
160
+ }
161
+ });
162
+ }
163
+ }
164
+ exports.EmulatorController = new FirebaseEmulatorInterface();
165
+ function cyPromise(someAssertion) {
166
+ return new Promise((r) => {
167
+ someAssertion.then(r);
168
+ });
169
+ }
170
+ exports.cyPromise = cyPromise;
171
+ function initTestFirebase(fakeProjectId, setupEnv) {
172
+ return __awaiter(this, void 0, void 0, function* () {
173
+ const testEnv = yield (0, rules_unit_testing_1.initializeTestEnvironment)({
174
+ projectId: fakeProjectId,
175
+ firestore: {
176
+ host: "localhost",
177
+ port: 8080,
178
+ },
179
+ storage: {
180
+ host: "localhost",
181
+ port: 9199,
182
+ },
183
+ });
184
+ yield testEnv.withSecurityRulesDisabled((ctx) => __awaiter(this, void 0, void 0, function* () {
185
+ const firestore = ctx.firestore({
186
+ experimentalForceLongPolling: true,
187
+ });
188
+ const storage = ctx.storage();
189
+ if (setupEnv)
190
+ yield setupEnv(firestore, storage, testEnv);
191
+ }));
192
+ return testEnv;
193
+ });
194
+ }
195
+ exports.initTestFirebase = initTestFirebase;
191
196
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/__test__/utils.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;AAId,qEAGsC;AAEtC,mFAAmF;AACnF,SAAgB,WAAW,CAAC,EAAE,GAAG,GAAG;IAClC,OAAO,IAAI,OAAO,CAAO,CAAC,CAAC,EAAE,EAAE;QAC7B,UAAU,CAAC,GAAG,EAAE;YACd,CAAC,EAAE,CAAC;QACN,CAAC,EAAE,EAAE,CAAC,CAAC;QACP,IAAI,MAAM,CAAC,OAAO;YAAE,OAAO;aACtB,IAAI,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC;YAAE,IAAI,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC;IACzE,CAAC,CAAC,CAAC;AACL,CAAC;AARD,kCAQC;AAED,MAAM,yBAAyB;IAGrB,gBAAgB;QACtB,KAAK,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE;YAC7B,IAAI;gBACF,IAAI,MAAM,CAAC,OAAO;oBAChB,EAAE,CAAC,IAAI,CAAC,qBAAqB,IAAI,GAAG,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AC,SAAS,CAAC;gBAC9B,4BAA4B,EAAE,IAAI;aACnC,CAAC,CAAC;YAEH,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,EAAS,CAAC;YACrC,IAAI,QAAQ;gBAAE,MAAM,QAAQ,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAC5D,CAAC,CAAA,CAAC,CAAC;QACH,OAAO,OAAO,CAAC;IACjB,CAAC;CAAA;AA7BD,4CA6BC"}
@@ -1,8 +1,8 @@
1
- import { ComponentProps, ReactElement } from "react";
2
- import Button from "../Button";
3
- /**
4
- * A button that adapts it's width according to the content size
5
- **/
6
- export default function AdaptiveButton({ children, className, ...buttonProps }: {
7
- children: ReactElement;
8
- } & ComponentProps<typeof Button>): JSX.Element;
1
+ import { ComponentProps, ReactElement } from "react";
2
+ import Button from "../Button";
3
+ /**
4
+ * A button that adapts it's width according to the content size
5
+ **/
6
+ export default function AdaptiveButton({ children, className, ...buttonProps }: {
7
+ children: ReactElement;
8
+ } & ComponentProps<typeof Button>): JSX.Element;