react-easy-wall 1.3.1 → 1.3.3

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 (303) hide show
  1. package/dist/cjs/_virtual/InfiniteScroll.js +6 -0
  2. package/dist/cjs/_virtual/InfiniteScroll.js.map +1 -0
  3. package/dist/cjs/_virtual/index10.js +2 -2
  4. package/dist/cjs/_virtual/index11.js +2 -2
  5. package/dist/cjs/_virtual/index13.js +2 -2
  6. package/dist/cjs/_virtual/index14.js +2 -2
  7. package/dist/cjs/_virtual/index15.js +6 -0
  8. package/dist/cjs/_virtual/index15.js.map +1 -0
  9. package/dist/cjs/_virtual/index2.js +8 -2
  10. package/dist/cjs/_virtual/index2.js.map +1 -1
  11. package/dist/cjs/_virtual/index3.js +2 -8
  12. package/dist/cjs/_virtual/index3.js.map +1 -1
  13. package/dist/cjs/_virtual/index4.js +4 -4
  14. package/dist/cjs/_virtual/index5.js +4 -4
  15. package/dist/cjs/_virtual/index6.js +8 -2
  16. package/dist/cjs/_virtual/index6.js.map +1 -1
  17. package/dist/cjs/_virtual/index7.js +2 -4
  18. package/dist/cjs/_virtual/index7.js.map +1 -1
  19. package/dist/cjs/_virtual/index8.js +4 -2
  20. package/dist/cjs/_virtual/index8.js.map +1 -1
  21. package/dist/cjs/_virtual/index9.js +2 -2
  22. package/dist/cjs/index.js +0 -2
  23. package/dist/cjs/index.js.map +1 -1
  24. package/dist/cjs/node_modules/@cobuildlab/react-simple-state/lib/index.js +1 -1
  25. package/dist/cjs/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +1 -2
  26. package/dist/cjs/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js.map +1 -1
  27. package/dist/cjs/node_modules/@emotion/react/dist/emotion-react.esm.js +0 -1
  28. package/dist/cjs/node_modules/@emotion/react/dist/emotion-react.esm.js.map +1 -1
  29. package/dist/cjs/node_modules/@mui/material/esm/Avatar/Avatar.js +1 -1
  30. package/dist/cjs/node_modules/@mui/material/esm/Backdrop/Backdrop.js +1 -1
  31. package/dist/cjs/node_modules/@mui/material/esm/Box/Box.js +1 -1
  32. package/dist/cjs/node_modules/@mui/material/esm/Button/Button.js +1 -1
  33. package/dist/cjs/node_modules/@mui/material/esm/ButtonBase/ButtonBase.js +1 -1
  34. package/dist/cjs/node_modules/@mui/material/esm/ButtonBase/Ripple.js +1 -1
  35. package/dist/cjs/node_modules/@mui/material/esm/ButtonBase/TouchRipple.js +1 -1
  36. package/dist/cjs/node_modules/@mui/material/esm/Card/Card.js +1 -1
  37. package/dist/cjs/node_modules/@mui/material/esm/CardContent/CardContent.js +1 -1
  38. package/dist/cjs/node_modules/@mui/material/esm/CardHeader/CardHeader.js +1 -1
  39. package/dist/cjs/node_modules/@mui/material/esm/CircularProgress/CircularProgress.js +1 -1
  40. package/dist/cjs/node_modules/@mui/material/esm/CssBaseline/CssBaseline.js +1 -1
  41. package/dist/cjs/node_modules/@mui/material/esm/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
  42. package/dist/cjs/node_modules/@mui/material/esm/Dialog/Dialog.js +1 -1
  43. package/dist/cjs/node_modules/@mui/material/esm/DialogActions/DialogActions.js +1 -1
  44. package/dist/cjs/node_modules/@mui/material/esm/DialogContent/DialogContent.js +1 -1
  45. package/dist/cjs/node_modules/@mui/material/esm/Divider/Divider.js +1 -1
  46. package/dist/cjs/node_modules/@mui/material/esm/Drawer/Drawer.js +1 -1
  47. package/dist/cjs/node_modules/@mui/material/esm/Fade/Fade.js +1 -1
  48. package/dist/cjs/node_modules/@mui/material/esm/GlobalStyles/GlobalStyles.js +1 -1
  49. package/dist/cjs/node_modules/@mui/material/esm/Grid/Grid.js +1 -1
  50. package/dist/cjs/node_modules/@mui/material/esm/Grow/Grow.js +1 -1
  51. package/dist/cjs/node_modules/@mui/material/esm/IconButton/IconButton.js +1 -1
  52. package/dist/cjs/node_modules/@mui/material/esm/InitColorSchemeScript/InitColorSchemeScript.js +1 -1
  53. package/dist/cjs/node_modules/@mui/material/esm/Link/Link.js +1 -1
  54. package/dist/cjs/node_modules/@mui/material/esm/List/List.js +1 -1
  55. package/dist/cjs/node_modules/@mui/material/esm/ListItem/ListItem.js +1 -1
  56. package/dist/cjs/node_modules/@mui/material/esm/ListItemButton/ListItemButton.js +1 -1
  57. package/dist/cjs/node_modules/@mui/material/esm/ListItemIcon/ListItemIcon.js +1 -1
  58. package/dist/cjs/node_modules/@mui/material/esm/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  59. package/dist/cjs/node_modules/@mui/material/esm/ListItemText/ListItemText.js +1 -1
  60. package/dist/cjs/node_modules/@mui/material/esm/Modal/Modal.js +1 -1
  61. package/dist/cjs/node_modules/@mui/material/esm/Paper/Paper.js +1 -1
  62. package/dist/cjs/node_modules/@mui/material/esm/Popover/Popover.js +1 -1
  63. package/dist/cjs/node_modules/@mui/material/esm/Portal/Portal.js +1 -1
  64. package/dist/cjs/node_modules/@mui/material/esm/Slide/Slide.js +1 -1
  65. package/dist/cjs/node_modules/@mui/material/esm/SvgIcon/SvgIcon.js +1 -1
  66. package/dist/cjs/node_modules/@mui/material/esm/Typography/Typography.js +1 -1
  67. package/dist/cjs/node_modules/@mui/material/esm/Unstable_TrapFocus/FocusTrap.js +1 -1
  68. package/dist/cjs/node_modules/@mui/private-theming/esm/ThemeProvider/ThemeProvider.js +1 -1
  69. package/dist/cjs/node_modules/@mui/styled-engine/esm/GlobalStyles/GlobalStyles.js +1 -1
  70. package/dist/cjs/node_modules/@mui/styles/StylesProvider/StylesProvider.js +1 -1
  71. package/dist/cjs/node_modules/@mui/styles/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +1 -1
  72. package/dist/cjs/node_modules/@mui/styles/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js +1 -1
  73. package/dist/cjs/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
  74. package/dist/cjs/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +1 -1
  75. package/dist/cjs/node_modules/@mui/system/esm/Grid/createGrid.js +1 -1
  76. package/dist/cjs/node_modules/@mui/system/esm/RtlProvider/index.js +1 -1
  77. package/dist/cjs/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +1 -1
  78. package/dist/cjs/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js +1 -1
  79. package/dist/cjs/node_modules/@mui/system/esm/responsivePropType/responsivePropType.js +1 -1
  80. package/dist/cjs/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +1 -1
  81. package/dist/cjs/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js +1 -1
  82. package/dist/cjs/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js +1 -1
  83. package/dist/cjs/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js +1 -1
  84. package/dist/cjs/node_modules/@mui/utils/esm/refType/refType.js +1 -1
  85. package/dist/cjs/node_modules/axios/lib/adapters/http.js +2 -2
  86. package/dist/cjs/node_modules/bricks.js/dist/bricks.module.js +281 -0
  87. package/dist/cjs/node_modules/bricks.js/dist/bricks.module.js.map +1 -0
  88. package/dist/cjs/node_modules/debug/src/index.js +1 -1
  89. package/dist/cjs/node_modules/follow-redirects/index.js +1 -1
  90. package/dist/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
  91. package/dist/cjs/node_modules/mime-types/index.js +1 -1
  92. package/dist/cjs/node_modules/prop-types/index.js +1 -1
  93. package/dist/cjs/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  94. package/dist/cjs/node_modules/proxy-from-env/index.js +1 -1
  95. package/dist/cjs/node_modules/react-giphy-searchbox/es/assets/PoweredByGiphyLogo.js +31 -0
  96. package/dist/cjs/node_modules/react-giphy-searchbox/es/assets/PoweredByGiphyLogo.js.map +1 -0
  97. package/dist/cjs/node_modules/react-giphy-searchbox/es/assets/SpinnerIcon.js +28 -0
  98. package/dist/cjs/node_modules/react-giphy-searchbox/es/assets/SpinnerIcon.js.map +1 -0
  99. package/dist/cjs/node_modules/react-giphy-searchbox/es/components/Alert/Alert.js +27 -0
  100. package/dist/cjs/node_modules/react-giphy-searchbox/es/components/Alert/Alert.js.map +1 -0
  101. package/dist/cjs/node_modules/react-giphy-searchbox/es/components/Alert/alertStyles.js +13 -0
  102. package/dist/cjs/node_modules/react-giphy-searchbox/es/components/Alert/alertStyles.js.map +1 -0
  103. package/dist/cjs/node_modules/react-giphy-searchbox/es/components/ImageItem/ImageItem.js +55 -0
  104. package/dist/cjs/node_modules/react-giphy-searchbox/es/components/ImageItem/ImageItem.js.map +1 -0
  105. package/dist/cjs/node_modules/react-giphy-searchbox/es/components/ImageItem/imageItemStyles.js +13 -0
  106. package/dist/cjs/node_modules/react-giphy-searchbox/es/components/ImageItem/imageItemStyles.js.map +1 -0
  107. package/dist/cjs/node_modules/react-giphy-searchbox/es/components/MasonryLayout/MasonryLayout.js +58 -0
  108. package/dist/cjs/node_modules/react-giphy-searchbox/es/components/MasonryLayout/MasonryLayout.js.map +1 -0
  109. package/dist/cjs/node_modules/react-giphy-searchbox/es/components/PoweredByGiphy/PoweredByGiphy.js +23 -0
  110. package/dist/cjs/node_modules/react-giphy-searchbox/es/components/PoweredByGiphy/PoweredByGiphy.js.map +1 -0
  111. package/dist/cjs/node_modules/react-giphy-searchbox/es/components/PoweredByGiphy/poweredByGiphyStyles.js +13 -0
  112. package/dist/cjs/node_modules/react-giphy-searchbox/es/components/PoweredByGiphy/poweredByGiphyStyles.js.map +1 -0
  113. package/dist/cjs/node_modules/react-giphy-searchbox/es/components/SearchForm/SearchForm.js +42 -0
  114. package/dist/cjs/node_modules/react-giphy-searchbox/es/components/SearchForm/SearchForm.js.map +1 -0
  115. package/dist/cjs/node_modules/react-giphy-searchbox/es/components/SearchForm/searchFormStyles.js +13 -0
  116. package/dist/cjs/node_modules/react-giphy-searchbox/es/components/SearchForm/searchFormStyles.js.map +1 -0
  117. package/dist/cjs/node_modules/react-giphy-searchbox/es/components/Spinner/Spinner.js +37 -0
  118. package/dist/cjs/node_modules/react-giphy-searchbox/es/components/Spinner/Spinner.js.map +1 -0
  119. package/dist/cjs/node_modules/react-giphy-searchbox/es/components/Spinner/spinnerStyles.js +13 -0
  120. package/dist/cjs/node_modules/react-giphy-searchbox/es/components/Spinner/spinnerStyles.js.map +1 -0
  121. package/dist/cjs/node_modules/react-giphy-searchbox/es/hooks/useApi.js +60 -0
  122. package/dist/cjs/node_modules/react-giphy-searchbox/es/hooks/useApi.js.map +1 -0
  123. package/dist/cjs/node_modules/react-giphy-searchbox/es/hooks/useDebounce.js +39 -0
  124. package/dist/cjs/node_modules/react-giphy-searchbox/es/hooks/useDebounce.js.map +1 -0
  125. package/dist/cjs/node_modules/react-giphy-searchbox/es/hooks/useMedia.js +49 -0
  126. package/dist/cjs/node_modules/react-giphy-searchbox/es/hooks/useMedia.js.map +1 -0
  127. package/dist/cjs/node_modules/react-giphy-searchbox/es/hooks/useSearchForm.js +30 -0
  128. package/dist/cjs/node_modules/react-giphy-searchbox/es/hooks/useSearchForm.js.map +1 -0
  129. package/dist/cjs/node_modules/react-giphy-searchbox/es/index.js +181 -0
  130. package/dist/cjs/node_modules/react-giphy-searchbox/es/index.js.map +1 -0
  131. package/dist/cjs/node_modules/react-giphy-searchbox/es/indexStyles.js +13 -0
  132. package/dist/cjs/node_modules/react-giphy-searchbox/es/indexStyles.js.map +1 -0
  133. package/dist/cjs/node_modules/react-giphy-searchbox/es/reducers/dataFetchReducer.js +52 -0
  134. package/dist/cjs/node_modules/react-giphy-searchbox/es/reducers/dataFetchReducer.js.map +1 -0
  135. package/dist/cjs/node_modules/react-giphy-searchbox/es/style/css.js +15 -0
  136. package/dist/cjs/node_modules/react-giphy-searchbox/es/style/css.js.map +1 -0
  137. package/dist/cjs/node_modules/react-giphy-searchbox/es/style/useStyle.js +34 -0
  138. package/dist/cjs/node_modules/react-giphy-searchbox/es/style/useStyle.js.map +1 -0
  139. package/dist/cjs/node_modules/react-giphy-searchbox/es/utils/masonry.js +46 -0
  140. package/dist/cjs/node_modules/react-giphy-searchbox/es/utils/masonry.js.map +1 -0
  141. package/dist/cjs/node_modules/react-giphy-searchbox/node_modules/react-infinite-scroller/dist/InfiniteScroll.js +315 -0
  142. package/dist/cjs/node_modules/react-giphy-searchbox/node_modules/react-infinite-scroller/dist/InfiniteScroll.js.map +1 -0
  143. package/dist/cjs/node_modules/react-giphy-searchbox/node_modules/react-infinite-scroller/index.js +16 -0
  144. package/dist/cjs/node_modules/react-giphy-searchbox/node_modules/react-infinite-scroller/index.js.map +1 -0
  145. package/dist/cjs/node_modules/react-is/index.js +1 -1
  146. package/dist/cjs/node_modules/react-transition-group/esm/Transition.js +1 -1
  147. package/dist/cjs/node_modules/react-transition-group/esm/TransitionGroup.js +1 -1
  148. package/dist/cjs/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
  149. package/dist/cjs/shared/components/react-editor/BtnGif.js +2 -2
  150. package/dist/cjs/shared/components/react-editor/BtnGif.js.map +1 -1
  151. package/dist/esm/_virtual/InfiniteScroll.js +4 -0
  152. package/dist/esm/_virtual/InfiniteScroll.js.map +1 -0
  153. package/dist/esm/_virtual/index11.js +2 -2
  154. package/dist/esm/_virtual/index13.js +2 -2
  155. package/dist/esm/_virtual/index14.js +2 -2
  156. package/dist/esm/_virtual/index15.js +4 -0
  157. package/dist/esm/_virtual/index15.js.map +1 -0
  158. package/dist/esm/_virtual/index2.js +6 -2
  159. package/dist/esm/_virtual/index2.js.map +1 -1
  160. package/dist/esm/_virtual/index3.js +2 -6
  161. package/dist/esm/_virtual/index3.js.map +1 -1
  162. package/dist/esm/_virtual/index4.js +4 -4
  163. package/dist/esm/_virtual/index5.js +4 -4
  164. package/dist/esm/_virtual/index6.js +6 -2
  165. package/dist/esm/_virtual/index6.js.map +1 -1
  166. package/dist/esm/_virtual/index7.js +2 -4
  167. package/dist/esm/_virtual/index7.js.map +1 -1
  168. package/dist/esm/_virtual/index8.js +4 -2
  169. package/dist/esm/_virtual/index8.js.map +1 -1
  170. package/dist/esm/_virtual/index9.js +2 -2
  171. package/dist/esm/index.js +0 -1
  172. package/dist/esm/index.js.map +1 -1
  173. package/dist/esm/node_modules/@cobuildlab/react-simple-state/lib/index.js +1 -1
  174. package/dist/esm/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +2 -2
  175. package/dist/esm/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js.map +1 -1
  176. package/dist/esm/node_modules/@emotion/react/dist/emotion-react.esm.js +0 -1
  177. package/dist/esm/node_modules/@emotion/react/dist/emotion-react.esm.js.map +1 -1
  178. package/dist/esm/node_modules/@mui/material/esm/Avatar/Avatar.js +1 -1
  179. package/dist/esm/node_modules/@mui/material/esm/Backdrop/Backdrop.js +1 -1
  180. package/dist/esm/node_modules/@mui/material/esm/Box/Box.js +1 -1
  181. package/dist/esm/node_modules/@mui/material/esm/Button/Button.js +1 -1
  182. package/dist/esm/node_modules/@mui/material/esm/ButtonBase/ButtonBase.js +1 -1
  183. package/dist/esm/node_modules/@mui/material/esm/ButtonBase/Ripple.js +1 -1
  184. package/dist/esm/node_modules/@mui/material/esm/ButtonBase/TouchRipple.js +1 -1
  185. package/dist/esm/node_modules/@mui/material/esm/Card/Card.js +1 -1
  186. package/dist/esm/node_modules/@mui/material/esm/CardContent/CardContent.js +1 -1
  187. package/dist/esm/node_modules/@mui/material/esm/CardHeader/CardHeader.js +1 -1
  188. package/dist/esm/node_modules/@mui/material/esm/CircularProgress/CircularProgress.js +1 -1
  189. package/dist/esm/node_modules/@mui/material/esm/CssBaseline/CssBaseline.js +1 -1
  190. package/dist/esm/node_modules/@mui/material/esm/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
  191. package/dist/esm/node_modules/@mui/material/esm/Dialog/Dialog.js +1 -1
  192. package/dist/esm/node_modules/@mui/material/esm/DialogActions/DialogActions.js +1 -1
  193. package/dist/esm/node_modules/@mui/material/esm/DialogContent/DialogContent.js +1 -1
  194. package/dist/esm/node_modules/@mui/material/esm/Divider/Divider.js +1 -1
  195. package/dist/esm/node_modules/@mui/material/esm/Drawer/Drawer.js +1 -1
  196. package/dist/esm/node_modules/@mui/material/esm/Fade/Fade.js +1 -1
  197. package/dist/esm/node_modules/@mui/material/esm/GlobalStyles/GlobalStyles.js +1 -1
  198. package/dist/esm/node_modules/@mui/material/esm/Grid/Grid.js +1 -1
  199. package/dist/esm/node_modules/@mui/material/esm/Grow/Grow.js +1 -1
  200. package/dist/esm/node_modules/@mui/material/esm/IconButton/IconButton.js +1 -1
  201. package/dist/esm/node_modules/@mui/material/esm/InitColorSchemeScript/InitColorSchemeScript.js +1 -1
  202. package/dist/esm/node_modules/@mui/material/esm/Link/Link.js +1 -1
  203. package/dist/esm/node_modules/@mui/material/esm/List/List.js +1 -1
  204. package/dist/esm/node_modules/@mui/material/esm/ListItem/ListItem.js +1 -1
  205. package/dist/esm/node_modules/@mui/material/esm/ListItemButton/ListItemButton.js +1 -1
  206. package/dist/esm/node_modules/@mui/material/esm/ListItemIcon/ListItemIcon.js +1 -1
  207. package/dist/esm/node_modules/@mui/material/esm/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  208. package/dist/esm/node_modules/@mui/material/esm/ListItemText/ListItemText.js +1 -1
  209. package/dist/esm/node_modules/@mui/material/esm/Modal/Modal.js +1 -1
  210. package/dist/esm/node_modules/@mui/material/esm/Paper/Paper.js +1 -1
  211. package/dist/esm/node_modules/@mui/material/esm/Popover/Popover.js +1 -1
  212. package/dist/esm/node_modules/@mui/material/esm/Portal/Portal.js +1 -1
  213. package/dist/esm/node_modules/@mui/material/esm/Slide/Slide.js +1 -1
  214. package/dist/esm/node_modules/@mui/material/esm/SvgIcon/SvgIcon.js +1 -1
  215. package/dist/esm/node_modules/@mui/material/esm/Typography/Typography.js +1 -1
  216. package/dist/esm/node_modules/@mui/material/esm/Unstable_TrapFocus/FocusTrap.js +1 -1
  217. package/dist/esm/node_modules/@mui/private-theming/esm/ThemeProvider/ThemeProvider.js +1 -1
  218. package/dist/esm/node_modules/@mui/styled-engine/esm/GlobalStyles/GlobalStyles.js +1 -1
  219. package/dist/esm/node_modules/@mui/styles/StylesProvider/StylesProvider.js +1 -1
  220. package/dist/esm/node_modules/@mui/styles/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +1 -1
  221. package/dist/esm/node_modules/@mui/styles/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js +1 -1
  222. package/dist/esm/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
  223. package/dist/esm/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +1 -1
  224. package/dist/esm/node_modules/@mui/system/esm/Grid/createGrid.js +1 -1
  225. package/dist/esm/node_modules/@mui/system/esm/RtlProvider/index.js +1 -1
  226. package/dist/esm/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +1 -1
  227. package/dist/esm/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js +1 -1
  228. package/dist/esm/node_modules/@mui/system/esm/responsivePropType/responsivePropType.js +1 -1
  229. package/dist/esm/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +1 -1
  230. package/dist/esm/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js +1 -1
  231. package/dist/esm/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js +1 -1
  232. package/dist/esm/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js +1 -1
  233. package/dist/esm/node_modules/@mui/utils/esm/refType/refType.js +1 -1
  234. package/dist/esm/node_modules/axios/lib/adapters/http.js +2 -2
  235. package/dist/esm/node_modules/bricks.js/dist/bricks.module.js +277 -0
  236. package/dist/esm/node_modules/bricks.js/dist/bricks.module.js.map +1 -0
  237. package/dist/esm/node_modules/debug/src/index.js +1 -1
  238. package/dist/esm/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
  239. package/dist/esm/node_modules/mime-types/index.js +1 -1
  240. package/dist/esm/node_modules/prop-types/index.js +1 -1
  241. package/dist/esm/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  242. package/dist/esm/node_modules/proxy-from-env/index.js +1 -1
  243. package/dist/esm/node_modules/react-giphy-searchbox/es/assets/PoweredByGiphyLogo.js +27 -0
  244. package/dist/esm/node_modules/react-giphy-searchbox/es/assets/PoweredByGiphyLogo.js.map +1 -0
  245. package/dist/esm/node_modules/react-giphy-searchbox/es/assets/SpinnerIcon.js +24 -0
  246. package/dist/esm/node_modules/react-giphy-searchbox/es/assets/SpinnerIcon.js.map +1 -0
  247. package/dist/esm/node_modules/react-giphy-searchbox/es/components/Alert/Alert.js +23 -0
  248. package/dist/esm/node_modules/react-giphy-searchbox/es/components/Alert/Alert.js.map +1 -0
  249. package/dist/esm/node_modules/react-giphy-searchbox/es/components/Alert/alertStyles.js +11 -0
  250. package/dist/esm/node_modules/react-giphy-searchbox/es/components/Alert/alertStyles.js.map +1 -0
  251. package/dist/esm/node_modules/react-giphy-searchbox/es/components/ImageItem/ImageItem.js +51 -0
  252. package/dist/esm/node_modules/react-giphy-searchbox/es/components/ImageItem/ImageItem.js.map +1 -0
  253. package/dist/esm/node_modules/react-giphy-searchbox/es/components/ImageItem/imageItemStyles.js +11 -0
  254. package/dist/esm/node_modules/react-giphy-searchbox/es/components/ImageItem/imageItemStyles.js.map +1 -0
  255. package/dist/esm/node_modules/react-giphy-searchbox/es/components/MasonryLayout/MasonryLayout.js +36 -0
  256. package/dist/esm/node_modules/react-giphy-searchbox/es/components/MasonryLayout/MasonryLayout.js.map +1 -0
  257. package/dist/esm/node_modules/react-giphy-searchbox/es/components/PoweredByGiphy/PoweredByGiphy.js +19 -0
  258. package/dist/esm/node_modules/react-giphy-searchbox/es/components/PoweredByGiphy/PoweredByGiphy.js.map +1 -0
  259. package/dist/esm/node_modules/react-giphy-searchbox/es/components/PoweredByGiphy/poweredByGiphyStyles.js +11 -0
  260. package/dist/esm/node_modules/react-giphy-searchbox/es/components/PoweredByGiphy/poweredByGiphyStyles.js.map +1 -0
  261. package/dist/esm/node_modules/react-giphy-searchbox/es/components/SearchForm/SearchForm.js +38 -0
  262. package/dist/esm/node_modules/react-giphy-searchbox/es/components/SearchForm/SearchForm.js.map +1 -0
  263. package/dist/esm/node_modules/react-giphy-searchbox/es/components/SearchForm/searchFormStyles.js +11 -0
  264. package/dist/esm/node_modules/react-giphy-searchbox/es/components/SearchForm/searchFormStyles.js.map +1 -0
  265. package/dist/esm/node_modules/react-giphy-searchbox/es/components/Spinner/Spinner.js +33 -0
  266. package/dist/esm/node_modules/react-giphy-searchbox/es/components/Spinner/Spinner.js.map +1 -0
  267. package/dist/esm/node_modules/react-giphy-searchbox/es/components/Spinner/spinnerStyles.js +11 -0
  268. package/dist/esm/node_modules/react-giphy-searchbox/es/components/Spinner/spinnerStyles.js.map +1 -0
  269. package/dist/esm/node_modules/react-giphy-searchbox/es/hooks/useApi.js +56 -0
  270. package/dist/esm/node_modules/react-giphy-searchbox/es/hooks/useApi.js.map +1 -0
  271. package/dist/esm/node_modules/react-giphy-searchbox/es/hooks/useDebounce.js +35 -0
  272. package/dist/esm/node_modules/react-giphy-searchbox/es/hooks/useDebounce.js.map +1 -0
  273. package/dist/esm/node_modules/react-giphy-searchbox/es/hooks/useMedia.js +45 -0
  274. package/dist/esm/node_modules/react-giphy-searchbox/es/hooks/useMedia.js.map +1 -0
  275. package/dist/esm/node_modules/react-giphy-searchbox/es/hooks/useSearchForm.js +26 -0
  276. package/dist/esm/node_modules/react-giphy-searchbox/es/hooks/useSearchForm.js.map +1 -0
  277. package/dist/esm/node_modules/react-giphy-searchbox/es/index.js +177 -0
  278. package/dist/esm/node_modules/react-giphy-searchbox/es/index.js.map +1 -0
  279. package/dist/esm/node_modules/react-giphy-searchbox/es/indexStyles.js +11 -0
  280. package/dist/esm/node_modules/react-giphy-searchbox/es/indexStyles.js.map +1 -0
  281. package/dist/esm/node_modules/react-giphy-searchbox/es/reducers/dataFetchReducer.js +48 -0
  282. package/dist/esm/node_modules/react-giphy-searchbox/es/reducers/dataFetchReducer.js.map +1 -0
  283. package/dist/esm/node_modules/react-giphy-searchbox/es/style/css.js +13 -0
  284. package/dist/esm/node_modules/react-giphy-searchbox/es/style/css.js.map +1 -0
  285. package/dist/esm/node_modules/react-giphy-searchbox/es/style/useStyle.js +31 -0
  286. package/dist/esm/node_modules/react-giphy-searchbox/es/style/useStyle.js.map +1 -0
  287. package/dist/esm/node_modules/react-giphy-searchbox/es/utils/masonry.js +40 -0
  288. package/dist/esm/node_modules/react-giphy-searchbox/es/utils/masonry.js.map +1 -0
  289. package/dist/esm/node_modules/react-giphy-searchbox/node_modules/react-infinite-scroller/dist/InfiniteScroll.js +313 -0
  290. package/dist/esm/node_modules/react-giphy-searchbox/node_modules/react-infinite-scroller/dist/InfiniteScroll.js.map +1 -0
  291. package/dist/esm/node_modules/react-giphy-searchbox/node_modules/react-infinite-scroller/index.js +14 -0
  292. package/dist/esm/node_modules/react-giphy-searchbox/node_modules/react-infinite-scroller/index.js.map +1 -0
  293. package/dist/esm/node_modules/react-is/index.js +1 -1
  294. package/dist/esm/node_modules/react-transition-group/esm/Transition.js +1 -1
  295. package/dist/esm/node_modules/react-transition-group/esm/TransitionGroup.js +1 -1
  296. package/dist/esm/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
  297. package/dist/esm/shared/components/react-editor/BtnGif.js +1 -1
  298. package/dist/esm/types/components/session/index.d.ts +0 -1
  299. package/dist/esm/types/components/session/server.d.ts +1 -0
  300. package/dist/esm/types/server.d.ts +1 -0
  301. package/dist/index.d.ts +1 -6
  302. package/dist/server.d.ts +8 -0
  303. package/package.json +7 -1
@@ -0,0 +1,60 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+ var dataFetchReducer = require('../reducers/dataFetchReducer.js');
7
+
8
+ var useApi = function useApi() {
9
+ var _useReducer = React.useReducer(dataFetchReducer.default, {
10
+ loading: false,
11
+ error: false,
12
+ data: [],
13
+ lastPage: false
14
+ }),
15
+ state = _useReducer[0],
16
+ dispatch = _useReducer[1];
17
+
18
+ var fetchImages = function fetchImages(url, isMore) {
19
+ if (isMore) {
20
+ dispatch({ type: 'FETCH_MORE_INIT' });
21
+ } else {
22
+ dispatch({ type: 'FETCH_INIT' });
23
+ }
24
+
25
+ fetch(url).then(function (response) {
26
+ if (!response.ok) {
27
+ return response.json().then(function (json) {
28
+ throw json;
29
+ });
30
+ }
31
+
32
+ return response.json();
33
+ }).then(function (response) {
34
+ if (!response.pagination) {
35
+ return dispatch({ type: 'FETCH_FAILURE' });
36
+ }
37
+
38
+ if (isMore) {
39
+ return dispatch({
40
+ type: 'FETCH_MORE_SUCCESS',
41
+ payload: response.data,
42
+ pagination: response.pagination
43
+ });
44
+ }
45
+
46
+ return dispatch({
47
+ type: 'FETCH_SUCCESS',
48
+ payload: response.data,
49
+ pagination: response.pagination
50
+ });
51
+ }).catch(function () {
52
+ dispatch({ type: 'FETCH_FAILURE' });
53
+ });
54
+ };
55
+
56
+ return [state, fetchImages];
57
+ };
58
+
59
+ exports.default = useApi;
60
+ //# sourceMappingURL=useApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useApi.js","sources":["../../../../../../node_modules/react-giphy-searchbox/es/hooks/useApi.js"],"sourcesContent":["import { useReducer } from 'react';\nimport dataFetchReducer from '../reducers/dataFetchReducer';\n\nvar useApi = function useApi() {\n var _useReducer = useReducer(dataFetchReducer, {\n loading: false,\n error: false,\n data: [],\n lastPage: false\n }),\n state = _useReducer[0],\n dispatch = _useReducer[1];\n\n var fetchImages = function fetchImages(url, isMore) {\n if (isMore) {\n dispatch({ type: 'FETCH_MORE_INIT' });\n } else {\n dispatch({ type: 'FETCH_INIT' });\n }\n\n fetch(url).then(function (response) {\n if (!response.ok) {\n return response.json().then(function (json) {\n throw json;\n });\n }\n\n return response.json();\n }).then(function (response) {\n if (!response.pagination) {\n return dispatch({ type: 'FETCH_FAILURE' });\n }\n\n if (isMore) {\n return dispatch({\n type: 'FETCH_MORE_SUCCESS',\n payload: response.data,\n pagination: response.pagination\n });\n }\n\n return dispatch({\n type: 'FETCH_SUCCESS',\n payload: response.data,\n pagination: response.pagination\n });\n }).catch(function () {\n dispatch({ type: 'FETCH_FAILURE' });\n });\n };\n\n return [state, fetchImages];\n};\n\nexport default useApi;"],"names":["useReducer","dataFetchReducer"],"mappings":";;;;;;;AAGG,IAAC,MAAM,GAAG,SAAS,MAAM,GAAG;AAC/B,EAAE,IAAI,WAAW,GAAGA,gBAAU,CAACC,wBAAgB,EAAE;AACjD,IAAI,OAAO,EAAE,KAAK;AAClB,IAAI,KAAK,EAAE,KAAK;AAChB,IAAI,IAAI,EAAE,EAAE;AACZ,IAAI,QAAQ,EAAE;AACd,GAAG,CAAC;AACJ,MAAM,KAAK,GAAG,WAAW,CAAC,CAAC,CAAC;AAC5B,MAAM,QAAQ,GAAG,WAAW,CAAC,CAAC,CAAC;;AAE/B,EAAE,IAAI,WAAW,GAAG,SAAS,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE;AACtD,IAAI,IAAI,MAAM,EAAE;AAChB,MAAM,QAAQ,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;AAC3C,IAAI,CAAC,MAAM;AACX,MAAM,QAAQ,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;AACtC,IAAI;;AAEJ,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,UAAU,QAAQ,EAAE;AACxC,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE;AACxB,QAAQ,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,UAAU,IAAI,EAAE;AACpD,UAAU,MAAM,IAAI;AACpB,QAAQ,CAAC,CAAC;AACV,MAAM;;AAEN,MAAM,OAAO,QAAQ,CAAC,IAAI,EAAE;AAC5B,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,QAAQ,EAAE;AAChC,MAAM,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE;AAChC,QAAQ,OAAO,QAAQ,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;AAClD,MAAM;;AAEN,MAAM,IAAI,MAAM,EAAE;AAClB,QAAQ,OAAO,QAAQ,CAAC;AACxB,UAAU,IAAI,EAAE,oBAAoB;AACpC,UAAU,OAAO,EAAE,QAAQ,CAAC,IAAI;AAChC,UAAU,UAAU,EAAE,QAAQ,CAAC;AAC/B,SAAS,CAAC;AACV,MAAM;;AAEN,MAAM,OAAO,QAAQ,CAAC;AACtB,QAAQ,IAAI,EAAE,eAAe;AAC7B,QAAQ,OAAO,EAAE,QAAQ,CAAC,IAAI;AAC9B,QAAQ,UAAU,EAAE,QAAQ,CAAC;AAC7B,OAAO,CAAC;AACR,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY;AACzB,MAAM,QAAQ,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;AACzC,IAAI,CAAC,CAAC;AACN,EAAE,CAAC;;AAEH,EAAE,OAAO,CAAC,KAAK,EAAE,WAAW,CAAC;AAC7B;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,39 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+
7
+ function useDebounce(value, delay) {
8
+ var _useState = React.useState(value),
9
+ debouncedValue = _useState[0],
10
+ setDebouncedValue = _useState[1];
11
+
12
+ React.useEffect(function () {
13
+ // Set debouncedValue to value (passed in) after the specified delay
14
+ var handler = setTimeout(function () {
15
+ setDebouncedValue(value);
16
+ }, delay);
17
+
18
+ // Return a cleanup function that will be called every time
19
+ // useEffect is re-called. useEffect will only be re-called
20
+ // if value changes (see the inputs array below).
21
+ // This is how we prevent debouncedValue from changing if value is
22
+ // changed within the delay period. Timeout gets cleared and restarted.
23
+ // To put it in context, if the user is typing within our app's
24
+ // search box, we don't want the debouncedValue to update until
25
+ // they've stopped typing for more than 500ms.
26
+ return function () {
27
+ clearTimeout(handler);
28
+ };
29
+ },
30
+ // Only re-call effect if value changes
31
+ // You could also add the "delay" var to inputs array if you
32
+ // need to be able to change that dynamically.
33
+ [value]);
34
+
35
+ return debouncedValue;
36
+ }
37
+
38
+ exports.default = useDebounce;
39
+ //# sourceMappingURL=useDebounce.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDebounce.js","sources":["../../../../../../node_modules/react-giphy-searchbox/es/hooks/useDebounce.js"],"sourcesContent":["import { useState, useEffect } from 'react';\n\nfunction useDebounce(value, delay) {\n var _useState = useState(value),\n debouncedValue = _useState[0],\n setDebouncedValue = _useState[1];\n\n useEffect(function () {\n // Set debouncedValue to value (passed in) after the specified delay\n var handler = setTimeout(function () {\n setDebouncedValue(value);\n }, delay);\n\n // Return a cleanup function that will be called every time\n // useEffect is re-called. useEffect will only be re-called\n // if value changes (see the inputs array below).\n // This is how we prevent debouncedValue from changing if value is\n // changed within the delay period. Timeout gets cleared and restarted.\n // To put it in context, if the user is typing within our app's\n // search box, we don't want the debouncedValue to update until\n // they've stopped typing for more than 500ms.\n return function () {\n clearTimeout(handler);\n };\n },\n // Only re-call effect if value changes\n // You could also add the \"delay\" var to inputs array if you\n // need to be able to change that dynamically.\n [value]);\n\n return debouncedValue;\n}\n\nexport default useDebounce;"],"names":["useState","useEffect"],"mappings":";;;;;;AAEA,SAAS,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE;AACnC,EAAE,IAAI,SAAS,GAAGA,cAAQ,CAAC,KAAK,CAAC;AACjC,MAAM,cAAc,GAAG,SAAS,CAAC,CAAC,CAAC;AACnC,MAAM,iBAAiB,GAAG,SAAS,CAAC,CAAC,CAAC;;AAEtC,EAAEC,eAAS,CAAC,YAAY;AACxB;AACA,IAAI,IAAI,OAAO,GAAG,UAAU,CAAC,YAAY;AACzC,MAAM,iBAAiB,CAAC,KAAK,CAAC;AAC9B,IAAI,CAAC,EAAE,KAAK,CAAC;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,OAAO,YAAY;AACvB,MAAM,YAAY,CAAC,OAAO,CAAC;AAC3B,IAAI,CAAC;AACL,EAAE,CAAC;AACH;AACA;AACA;AACA,EAAE,CAAC,KAAK,CAAC,CAAC;;AAEV,EAAE,OAAO,cAAc;AACvB;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,49 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+
7
+ function useMedia(queries, values, defaultValue) {
8
+ var mediaQueryLists = queries.map(function (q) {
9
+ return window.matchMedia(q);
10
+ });
11
+
12
+ var getValue = function getValue() {
13
+ // Get index of first media query that matches
14
+ var index = mediaQueryLists.findIndex(function (mql) {
15
+ return mql.matches;
16
+ });
17
+ // Return related value or defaultValue if none
18
+ return typeof values[index] !== 'undefined' ? values[index] : defaultValue;
19
+ };
20
+
21
+ // State and setter for matched value
22
+
23
+ var _useState = React.useState(getValue),
24
+ value = _useState[0],
25
+ setValue = _useState[1];
26
+
27
+ React.useEffect(function () {
28
+ var handler = function handler() {
29
+ return setValue(getValue);
30
+ };
31
+
32
+ // Set a listener for each media query with above handler as callback.
33
+ mediaQueryLists.forEach(function (mql) {
34
+ return mql.addListener(handler);
35
+ });
36
+
37
+ // Remove listeners on cleanup
38
+ return function () {
39
+ return mediaQueryLists.forEach(function (mql) {
40
+ return mql.removeListener(handler);
41
+ });
42
+ };
43
+ }, []);
44
+
45
+ return value;
46
+ }
47
+
48
+ exports.default = useMedia;
49
+ //# sourceMappingURL=useMedia.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMedia.js","sources":["../../../../../../node_modules/react-giphy-searchbox/es/hooks/useMedia.js"],"sourcesContent":["import { useEffect, useState } from 'react';\n\nexport default function useMedia(queries, values, defaultValue) {\n var mediaQueryLists = queries.map(function (q) {\n return window.matchMedia(q);\n });\n\n var getValue = function getValue() {\n // Get index of first media query that matches\n var index = mediaQueryLists.findIndex(function (mql) {\n return mql.matches;\n });\n // Return related value or defaultValue if none\n return typeof values[index] !== 'undefined' ? values[index] : defaultValue;\n };\n\n // State and setter for matched value\n\n var _useState = useState(getValue),\n value = _useState[0],\n setValue = _useState[1];\n\n useEffect(function () {\n var handler = function handler() {\n return setValue(getValue);\n };\n\n // Set a listener for each media query with above handler as callback.\n mediaQueryLists.forEach(function (mql) {\n return mql.addListener(handler);\n });\n\n // Remove listeners on cleanup\n return function () {\n return mediaQueryLists.forEach(function (mql) {\n return mql.removeListener(handler);\n });\n };\n }, []);\n\n return value;\n}"],"names":["useState","useEffect"],"mappings":";;;;;;AAEe,SAAS,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE;AAChE,EAAE,IAAI,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE;AACjD,IAAI,OAAO,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;AAC/B,EAAE,CAAC,CAAC;;AAEJ,EAAE,IAAI,QAAQ,GAAG,SAAS,QAAQ,GAAG;AACrC;AACA,IAAI,IAAI,KAAK,GAAG,eAAe,CAAC,SAAS,CAAC,UAAU,GAAG,EAAE;AACzD,MAAM,OAAO,GAAG,CAAC,OAAO;AACxB,IAAI,CAAC,CAAC;AACN;AACA,IAAI,OAAO,OAAO,MAAM,CAAC,KAAK,CAAC,KAAK,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,YAAY;AAC9E,EAAE,CAAC;;AAEH;;AAEA,EAAE,IAAI,SAAS,GAAGA,cAAQ,CAAC,QAAQ,CAAC;AACpC,MAAM,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC;AAC1B,MAAM,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC;;AAE7B,EAAEC,eAAS,CAAC,YAAY;AACxB,IAAI,IAAI,OAAO,GAAG,SAAS,OAAO,GAAG;AACrC,MAAM,OAAO,QAAQ,CAAC,QAAQ,CAAC;AAC/B,IAAI,CAAC;;AAEL;AACA,IAAI,eAAe,CAAC,OAAO,CAAC,UAAU,GAAG,EAAE;AAC3C,MAAM,OAAO,GAAG,CAAC,WAAW,CAAC,OAAO,CAAC;AACrC,IAAI,CAAC,CAAC;;AAEN;AACA,IAAI,OAAO,YAAY;AACvB,MAAM,OAAO,eAAe,CAAC,OAAO,CAAC,UAAU,GAAG,EAAE;AACpD,QAAQ,OAAO,GAAG,CAAC,cAAc,CAAC,OAAO,CAAC;AAC1C,MAAM,CAAC,CAAC;AACR,IAAI,CAAC;AACL,EAAE,CAAC,EAAE,EAAE,CAAC;;AAER,EAAE,OAAO,KAAK;AACd;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+
7
+ var useSearchForm = function useSearchForm() {
8
+ var _useState = React.useState(''),
9
+ query = _useState[0],
10
+ setInputs = _useState[1];
11
+
12
+ var handleSubmit = function handleSubmit(e) {
13
+ if (e) {
14
+ e.preventDefault();
15
+ }
16
+ };
17
+ var handleInputChange = function handleInputChange(e) {
18
+ e.persist();
19
+ setInputs(e.target.value);
20
+ };
21
+
22
+ return {
23
+ handleSubmit: handleSubmit,
24
+ handleInputChange: handleInputChange,
25
+ query: query
26
+ };
27
+ };
28
+
29
+ exports.default = useSearchForm;
30
+ //# sourceMappingURL=useSearchForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSearchForm.js","sources":["../../../../../../node_modules/react-giphy-searchbox/es/hooks/useSearchForm.js"],"sourcesContent":["import { useState } from 'react';\n\nvar useSearchForm = function useSearchForm() {\n var _useState = useState(''),\n query = _useState[0],\n setInputs = _useState[1];\n\n var handleSubmit = function handleSubmit(e) {\n if (e) {\n e.preventDefault();\n }\n };\n var handleInputChange = function handleInputChange(e) {\n e.persist();\n setInputs(e.target.value);\n };\n\n return {\n handleSubmit: handleSubmit,\n handleInputChange: handleInputChange,\n query: query\n };\n};\n\nexport default useSearchForm;"],"names":["useState"],"mappings":";;;;;;AAEG,IAAC,aAAa,GAAG,SAAS,aAAa,GAAG;AAC7C,EAAE,IAAI,SAAS,GAAGA,cAAQ,CAAC,EAAE,CAAC;AAC9B,MAAM,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC;AAC1B,MAAM,SAAS,GAAG,SAAS,CAAC,CAAC,CAAC;;AAE9B,EAAE,IAAI,YAAY,GAAG,SAAS,YAAY,CAAC,CAAC,EAAE;AAC9C,IAAI,IAAI,CAAC,EAAE;AACX,MAAM,CAAC,CAAC,cAAc,EAAE;AACxB,IAAI;AACJ,EAAE,CAAC;AACH,EAAE,IAAI,iBAAiB,GAAG,SAAS,iBAAiB,CAAC,CAAC,EAAE;AACxD,IAAI,CAAC,CAAC,OAAO,EAAE;AACf,IAAI,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;AAC7B,EAAE,CAAC;;AAEH,EAAE,OAAO;AACT,IAAI,YAAY,EAAE,YAAY;AAC9B,IAAI,iBAAiB,EAAE,iBAAiB;AACxC,IAAI,KAAK,EAAE;AACX,GAAG;AACH;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,181 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var React = require('react');
6
+ var index = require('../../../_virtual/index2.js');
7
+ var useStyle = require('./style/useStyle.js');
8
+ var indexStyles = require('./indexStyles.js');
9
+ var SearchForm = require('./components/SearchForm/SearchForm.js');
10
+ var ImageItem = require('./components/ImageItem/ImageItem.js');
11
+ var PoweredByGiphy = require('./components/PoweredByGiphy/PoweredByGiphy.js');
12
+ var MasonryLayout = require('./components/MasonryLayout/MasonryLayout.js');
13
+ var Alert = require('./components/Alert/Alert.js');
14
+ var Spinner = require('./components/Spinner/Spinner.js');
15
+ var useSearchForm = require('./hooks/useSearchForm.js');
16
+ var useDebounce = require('./hooks/useDebounce.js');
17
+ var useMedia = require('./hooks/useMedia.js');
18
+ var useApi = require('./hooks/useApi.js');
19
+ var masonry = require('./utils/masonry.js');
20
+
21
+ var ReactGiphySearchBox = function ReactGiphySearchBox(_ref) {
22
+ var apiKey = _ref.apiKey,
23
+ autoFocus = _ref.autoFocus,
24
+ gifListHeight = _ref.gifListHeight,
25
+ gifPerPage = _ref.gifPerPage,
26
+ imageBackgroundColor = _ref.imageBackgroundColor,
27
+ imageRenditionFileType = _ref.imageRenditionFileType,
28
+ imageRenditionName = _ref.imageRenditionName,
29
+ library = _ref.library,
30
+ listItemClassName = _ref.listItemClassName,
31
+ listWrapperClassName = _ref.listWrapperClassName,
32
+ loadingImage = _ref.loadingImage,
33
+ masonryConfig = _ref.masonryConfig,
34
+ messageError = _ref.messageError,
35
+ messageLoading = _ref.messageLoading,
36
+ messageNoMatches = _ref.messageNoMatches,
37
+ onSearch = _ref.onSearch,
38
+ onSelect = _ref.onSelect,
39
+ poweredByGiphy = _ref.poweredByGiphy,
40
+ poweredByGiphyImage = _ref.poweredByGiphyImage,
41
+ rating = _ref.rating,
42
+ searchFormClassName = _ref.searchFormClassName,
43
+ searchPlaceholder = _ref.searchPlaceholder,
44
+ wrapperClassName = _ref.wrapperClassName;
45
+
46
+ useStyle.useStyle('Index', indexStyles.styles);
47
+
48
+ var _useSearchForm = useSearchForm.default(),
49
+ query = _useSearchForm.query,
50
+ handleInputChange = _useSearchForm.handleInputChange,
51
+ handleSubmit = _useSearchForm.handleSubmit;
52
+
53
+ var debouncedQuery = useDebounce.default(query, 500);
54
+
55
+ var apiEndpoint = query ? 'search' : 'trending';
56
+ var apiUrl = function apiUrl(offset) {
57
+ return 'https://api.giphy.com/v1/' + library + '/' + apiEndpoint + '?api_key=' + apiKey + '&limit=' + gifPerPage + '&rating=' + rating + '&offset=' + offset + '&q=' + query;
58
+ };
59
+
60
+ var _useApi = useApi.default(),
61
+ _useApi$ = _useApi[0],
62
+ data = _useApi$.data,
63
+ loading = _useApi$.loading,
64
+ error = _useApi$.error,
65
+ lastPage = _useApi$.lastPage,
66
+ fetchImages = _useApi[1];
67
+
68
+ var masonryConfigMatchMedia = useMedia.default(masonry.getMediaBreakpoints(masonryConfig), masonry.getMasonryConfigExceptLast(masonryConfig), masonry.getDefaultMasonryConfig(masonryConfig));
69
+
70
+ // Fetch Giphy Api on component mount and on search query change
71
+
72
+ var _useState = React.useState(true),
73
+ firstRun = _useState[0],
74
+ setFirstRun = _useState[1];
75
+
76
+ var isFirstRun = React.useRef(true);
77
+ React.useEffect(function () {
78
+ fetchImages(apiUrl(0));
79
+ onSearch(query);
80
+
81
+ if (isFirstRun.current) {
82
+ isFirstRun.current = false;
83
+ setFirstRun(false);
84
+ }
85
+ }, [debouncedQuery]);
86
+
87
+ return React.createElement(
88
+ 'div',
89
+ {
90
+ className: 'reactGiphySearchbox-componentWrapper' + (wrapperClassName ? ' ' + wrapperClassName : ''),
91
+ style: { width: masonry.getComponentWrapperWidth(masonryConfigMatchMedia) }
92
+ },
93
+ React.createElement(SearchForm.default, {
94
+ value: query,
95
+ setValue: handleInputChange,
96
+ onSubmit: handleSubmit,
97
+ loadingData: loading,
98
+ searchFormClassName: searchFormClassName,
99
+ placeholder: searchPlaceholder,
100
+ autoFocus: autoFocus
101
+ }),
102
+ React.createElement(
103
+ 'div',
104
+ {
105
+ className: 'reactGiphySearchbox-listWrapper' + (listWrapperClassName ? ' ' + listWrapperClassName : ''),
106
+ style: { height: gifListHeight }
107
+ },
108
+ React.createElement(Alert.default, {
109
+ show: data.length === 0 && !loading && !error && !firstRun,
110
+ message: messageNoMatches
111
+ }),
112
+ React.createElement(Alert.default, { show: error, message: messageError }),
113
+ React.createElement(Spinner.default, { show: loading, message: messageLoading, image: loadingImage }),
114
+ React.createElement(
115
+ index.default,
116
+ {
117
+ pageStart: 0,
118
+ loadMore: function loadMore(page) {
119
+ return fetchImages(apiUrl(page * gifPerPage), true);
120
+ },
121
+ hasMore: !loading && !lastPage,
122
+ useWindow: false,
123
+ initialLoad: false,
124
+ loader: !firstRun && React.createElement(
125
+ 'div',
126
+ { key: 'loading' },
127
+ React.createElement(Spinner.default, {
128
+ show: loading,
129
+ message: messageLoading,
130
+ image: loadingImage
131
+ })
132
+ )
133
+ },
134
+ data.length > 0 && React.createElement(
135
+ MasonryLayout.default,
136
+ { sizes: masonryConfig },
137
+ data.map(function (item) {
138
+ return React.createElement(ImageItem.default, {
139
+ item: item,
140
+ size: masonryConfigMatchMedia.imageWidth,
141
+ key: item.id,
142
+ listItemClassName: listItemClassName,
143
+ onSelect: onSelect,
144
+ backgroundColor: imageBackgroundColor,
145
+ imageRenditionName: imageRenditionName,
146
+ imageRenditionFileType: imageRenditionFileType
147
+ });
148
+ })
149
+ )
150
+ )
151
+ ),
152
+ poweredByGiphy && React.createElement(PoweredByGiphy.default, { image: poweredByGiphyImage })
153
+ );
154
+ };
155
+
156
+ ReactGiphySearchBox.defaultProps = {
157
+ autoFocus: false,
158
+ gifListHeight: '300px',
159
+ gifPerPage: 20,
160
+ imageBackgroundColor: '#eee',
161
+ imageRenditionFileType: 'gif',
162
+ imageRenditionName: 'fixed_width_downsampled',
163
+ library: 'gifs',
164
+ listItemClassName: '',
165
+ listWrapperClassName: '',
166
+ loadingImage: undefined,
167
+ masonryConfig: [{ columns: 2, imageWidth: 120, gutter: 5 }],
168
+ messageError: 'Oops! Something went wrong. Please, try again.',
169
+ messageLoading: 'Loading...',
170
+ messageNoMatches: 'No matches found.',
171
+ onSearch: function onSearch() {},
172
+ poweredByGiphy: true,
173
+ poweredByGiphyImage: undefined,
174
+ rating: 'g',
175
+ searchFormClassName: '',
176
+ searchPlaceholder: 'Search for GIFs',
177
+ wrapperClassName: ''
178
+ };
179
+
180
+ exports.default = ReactGiphySearchBox;
181
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../node_modules/react-giphy-searchbox/es/index.js"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react';\nimport InfiniteScroll from 'react-infinite-scroller';\nimport { useStyle } from './style';\nimport { styles } from './indexStyles';\nimport SearchForm from './components/SearchForm/SearchForm';\nimport ImageItem from './components/ImageItem/ImageItem';\nimport PoweredByGiphy from './components/PoweredByGiphy/PoweredByGiphy';\nimport MasonryLayout from './components/MasonryLayout/MasonryLayout';\nimport Alert from './components/Alert/Alert';\nimport Spinner from './components/Spinner/Spinner';\nimport useSearchForm from './hooks/useSearchForm';\nimport useDebounce from './hooks/useDebounce';\nimport useMedia from './hooks/useMedia';\nimport useApi from './hooks/useApi';\nimport { getComponentWrapperWidth, getDefaultMasonryConfig, getMasonryConfigExceptLast, getMediaBreakpoints } from './utils/masonry';\n\nvar ReactGiphySearchBox = function ReactGiphySearchBox(_ref) {\n var apiKey = _ref.apiKey,\n autoFocus = _ref.autoFocus,\n gifListHeight = _ref.gifListHeight,\n gifPerPage = _ref.gifPerPage,\n imageBackgroundColor = _ref.imageBackgroundColor,\n imageRenditionFileType = _ref.imageRenditionFileType,\n imageRenditionName = _ref.imageRenditionName,\n library = _ref.library,\n listItemClassName = _ref.listItemClassName,\n listWrapperClassName = _ref.listWrapperClassName,\n loadingImage = _ref.loadingImage,\n masonryConfig = _ref.masonryConfig,\n messageError = _ref.messageError,\n messageLoading = _ref.messageLoading,\n messageNoMatches = _ref.messageNoMatches,\n onSearch = _ref.onSearch,\n onSelect = _ref.onSelect,\n poweredByGiphy = _ref.poweredByGiphy,\n poweredByGiphyImage = _ref.poweredByGiphyImage,\n rating = _ref.rating,\n searchFormClassName = _ref.searchFormClassName,\n searchPlaceholder = _ref.searchPlaceholder,\n wrapperClassName = _ref.wrapperClassName;\n\n useStyle('Index', styles);\n\n var _useSearchForm = useSearchForm(),\n query = _useSearchForm.query,\n handleInputChange = _useSearchForm.handleInputChange,\n handleSubmit = _useSearchForm.handleSubmit;\n\n var debouncedQuery = useDebounce(query, 500);\n\n var apiEndpoint = query ? 'search' : 'trending';\n var apiUrl = function apiUrl(offset) {\n return 'https://api.giphy.com/v1/' + library + '/' + apiEndpoint + '?api_key=' + apiKey + '&limit=' + gifPerPage + '&rating=' + rating + '&offset=' + offset + '&q=' + query;\n };\n\n var _useApi = useApi(),\n _useApi$ = _useApi[0],\n data = _useApi$.data,\n loading = _useApi$.loading,\n error = _useApi$.error,\n lastPage = _useApi$.lastPage,\n fetchImages = _useApi[1];\n\n var masonryConfigMatchMedia = useMedia(getMediaBreakpoints(masonryConfig), getMasonryConfigExceptLast(masonryConfig), getDefaultMasonryConfig(masonryConfig));\n\n // Fetch Giphy Api on component mount and on search query change\n\n var _useState = useState(true),\n firstRun = _useState[0],\n setFirstRun = _useState[1];\n\n var isFirstRun = useRef(true);\n useEffect(function () {\n fetchImages(apiUrl(0));\n onSearch(query);\n\n if (isFirstRun.current) {\n isFirstRun.current = false;\n setFirstRun(false);\n }\n }, [debouncedQuery]);\n\n return React.createElement(\n 'div',\n {\n className: 'reactGiphySearchbox-componentWrapper' + (wrapperClassName ? ' ' + wrapperClassName : ''),\n style: { width: getComponentWrapperWidth(masonryConfigMatchMedia) }\n },\n React.createElement(SearchForm, {\n value: query,\n setValue: handleInputChange,\n onSubmit: handleSubmit,\n loadingData: loading,\n searchFormClassName: searchFormClassName,\n placeholder: searchPlaceholder,\n autoFocus: autoFocus\n }),\n React.createElement(\n 'div',\n {\n className: 'reactGiphySearchbox-listWrapper' + (listWrapperClassName ? ' ' + listWrapperClassName : ''),\n style: { height: gifListHeight }\n },\n React.createElement(Alert, {\n show: data.length === 0 && !loading && !error && !firstRun,\n message: messageNoMatches\n }),\n React.createElement(Alert, { show: error, message: messageError }),\n React.createElement(Spinner, { show: loading, message: messageLoading, image: loadingImage }),\n React.createElement(\n InfiniteScroll,\n {\n pageStart: 0,\n loadMore: function loadMore(page) {\n return fetchImages(apiUrl(page * gifPerPage), true);\n },\n hasMore: !loading && !lastPage,\n useWindow: false,\n initialLoad: false,\n loader: !firstRun && React.createElement(\n 'div',\n { key: 'loading' },\n React.createElement(Spinner, {\n show: loading,\n message: messageLoading,\n image: loadingImage\n })\n )\n },\n data.length > 0 && React.createElement(\n MasonryLayout,\n { sizes: masonryConfig },\n data.map(function (item) {\n return React.createElement(ImageItem, {\n item: item,\n size: masonryConfigMatchMedia.imageWidth,\n key: item.id,\n listItemClassName: listItemClassName,\n onSelect: onSelect,\n backgroundColor: imageBackgroundColor,\n imageRenditionName: imageRenditionName,\n imageRenditionFileType: imageRenditionFileType\n });\n })\n )\n )\n ),\n poweredByGiphy && React.createElement(PoweredByGiphy, { image: poweredByGiphyImage })\n );\n};\n\nReactGiphySearchBox.defaultProps = {\n autoFocus: false,\n gifListHeight: '300px',\n gifPerPage: 20,\n imageBackgroundColor: '#eee',\n imageRenditionFileType: 'gif',\n imageRenditionName: 'fixed_width_downsampled',\n library: 'gifs',\n listItemClassName: '',\n listWrapperClassName: '',\n loadingImage: undefined,\n masonryConfig: [{ columns: 2, imageWidth: 120, gutter: 5 }],\n messageError: 'Oops! Something went wrong. Please, try again.',\n messageLoading: 'Loading...',\n messageNoMatches: 'No matches found.',\n onSearch: function onSearch() {},\n poweredByGiphy: true,\n poweredByGiphyImage: undefined,\n rating: 'g',\n searchFormClassName: '',\n searchPlaceholder: 'Search for GIFs',\n wrapperClassName: ''\n};\n\nexport default ReactGiphySearchBox;"],"names":["useStyle","styles","useSearchForm","useDebounce","useApi","useMedia","getMediaBreakpoints","getMasonryConfigExceptLast","getDefaultMasonryConfig","useState","useRef","useEffect","getComponentWrapperWidth","SearchForm","Alert","Spinner","InfiniteScroll","MasonryLayout","ImageItem","PoweredByGiphy"],"mappings":";;;;;;;;;;;;;;;;;;;;AAgBG,IAAC,mBAAmB,GAAG,SAAS,mBAAmB,CAAC,IAAI,EAAE;AAC7D,EAAE,IAAI,MAAM,GAAG,IAAI,CAAC,MAAM;AAC1B,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS;AAChC,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa;AACxC,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU;AAClC,MAAM,oBAAo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Aa,CAACC,sBAAc,EAAE,EAAE,KAAK,EAAE,mBAAmB,EAAE;AACxF,GAAG;AACH;;AAEA,mBAAmB,CAAC,YAAY,GAAG;AACnC,EAAE,SAAS,EAAE,KAAK;AAClB,EAAE,aAAa,EAAE,OAAO;AACxB,EAAE,UAAU,EAAE,EAAE;AAChB,EAAE,oBAAoB,EAAE,MAAM;AAC9B,EAAE,sBAAsB,EAAE,KAAK;AAC/B,EAAE,kBAAkB,EAAE,yBAAyB;AAC/C,EAAE,OAAO,EAAE,MAAM;AACjB,EAAE,iBAAiB,EAAE,EAAE;AACvB,EAAE,oBAAoB,EAAE,EAAE;AAC1B,EAAE,YAAY,EAAE,SAAS;AACzB,EAAE,aAAa,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;AAC7D,EAAE,YAAY,EAAE,gDAAgD;AAChE,EAAE,cAAc,EAAE,YAAY;AAC9B,EAAE,gBAAgB,EAAE,mBAAmB;AACvC,EAAE,QAAQ,EAAE,SAAS,QAAQ,GAAG,CAAC,CAAC;AAClC,EAAE,cAAc,EAAE,IAAI;AACtB,EAAE,mBAAmB,EAAE,SAAS;AAChC,EAAE,MAAM,EAAE,GAAG;AACb,EAAE,mBAAmB,EAAE,EAAE;AACzB,EAAE,iBAAiB,EAAE,iBAAiB;AACtC,EAAE,gBAAgB,EAAE;AACpB,CAAC;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ var css = require('./style/css.js');
4
+ require('./style/useStyle.js');
5
+
6
+ var _templateObject = _taggedTemplateLiteralLoose(['\n .reactGiphySearchbox-componentWrapper {\n box-sizing: border-box;\n }\n\n .reactGiphySearchbox-componentWrapper *,\n .reactGiphySearchbox-componentWrapper *:before,\n .reactGiphySearchbox-componentWrapper *:after {\n box-sizing: inherit;\n }\n\n .reactGiphySearchbox-listWrapper {\n overflow-y: auto;\n }\n'], ['\n .reactGiphySearchbox-componentWrapper {\n box-sizing: border-box;\n }\n\n .reactGiphySearchbox-componentWrapper *,\n .reactGiphySearchbox-componentWrapper *:before,\n .reactGiphySearchbox-componentWrapper *:after {\n box-sizing: inherit;\n }\n\n .reactGiphySearchbox-listWrapper {\n overflow-y: auto;\n }\n']);
7
+
8
+ function _taggedTemplateLiteralLoose(strings, raw) { strings.raw = raw; return strings; }
9
+
10
+ var styles = css.css(_templateObject);
11
+
12
+ exports.styles = styles;
13
+ //# sourceMappingURL=indexStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indexStyles.js","sources":["../../../../../node_modules/react-giphy-searchbox/es/indexStyles.js"],"sourcesContent":["var _templateObject = _taggedTemplateLiteralLoose(['\\n .reactGiphySearchbox-componentWrapper {\\n box-sizing: border-box;\\n }\\n\\n .reactGiphySearchbox-componentWrapper *,\\n .reactGiphySearchbox-componentWrapper *:before,\\n .reactGiphySearchbox-componentWrapper *:after {\\n box-sizing: inherit;\\n }\\n\\n .reactGiphySearchbox-listWrapper {\\n overflow-y: auto;\\n }\\n'], ['\\n .reactGiphySearchbox-componentWrapper {\\n box-sizing: border-box;\\n }\\n\\n .reactGiphySearchbox-componentWrapper *,\\n .reactGiphySearchbox-componentWrapper *:before,\\n .reactGiphySearchbox-componentWrapper *:after {\\n box-sizing: inherit;\\n }\\n\\n .reactGiphySearchbox-listWrapper {\\n overflow-y: auto;\\n }\\n']);\n\nfunction _taggedTemplateLiteralLoose(strings, raw) { strings.raw = raw; return strings; }\n\n/* eslint-disable import/prefer-default-export */\nimport { css } from './style';\n\nexport var styles = css(_templateObject);"],"names":["css"],"mappings":";;;;;AAAA,IAAI,eAAe,GAAG,2BAA2B,CAAC,CAAC,wUAAwU,CAAC,EAAE,CAAC,wUAAwU,CAAC,CAAC;;AAEzsB,SAAS,2BAA2B,CAAC,OAAO,EAAE,GAAG,EAAE,EAAE,OAAO,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC;;AAK9E,IAAC,MAAM,GAAGA,OAAG,CAAC,eAAe;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,52 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
6
+
7
+ var dataFetchReducer = function dataFetchReducer(state, action) {
8
+ var payload = action.payload,
9
+ pagination = action.pagination;
10
+
11
+
12
+ switch (action.type) {
13
+ case 'FETCH_INIT':
14
+ return _extends({}, state, {
15
+ loading: true,
16
+ error: false,
17
+ lastPage: false,
18
+ data: []
19
+ });
20
+ case 'FETCH_MORE_INIT':
21
+ return _extends({}, state, {
22
+ loading: true,
23
+ error: false,
24
+ lastPage: false
25
+ });
26
+ case 'FETCH_SUCCESS':
27
+ return _extends({}, state, {
28
+ loading: false,
29
+ error: false,
30
+ data: payload,
31
+ lastPage: pagination.total_count - pagination.offset <= pagination.count
32
+ });
33
+ case 'FETCH_MORE_SUCCESS':
34
+ return _extends({}, state, {
35
+ loading: false,
36
+ error: false,
37
+ data: [].concat(state.data, payload),
38
+ lastPage: pagination.total_count - pagination.offset <= pagination.count
39
+ });
40
+ case 'FETCH_FAILURE':
41
+ return _extends({}, state, {
42
+ loading: false,
43
+ error: true,
44
+ lastPage: false
45
+ });
46
+ default:
47
+ throw new Error('Unknown action type');
48
+ }
49
+ };
50
+
51
+ exports.default = dataFetchReducer;
52
+ //# sourceMappingURL=dataFetchReducer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataFetchReducer.js","sources":["../../../../../../node_modules/react-giphy-searchbox/es/reducers/dataFetchReducer.js"],"sourcesContent":["var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar dataFetchReducer = function dataFetchReducer(state, action) {\n var payload = action.payload,\n pagination = action.pagination;\n\n\n switch (action.type) {\n case 'FETCH_INIT':\n return _extends({}, state, {\n loading: true,\n error: false,\n lastPage: false,\n data: []\n });\n case 'FETCH_MORE_INIT':\n return _extends({}, state, {\n loading: true,\n error: false,\n lastPage: false\n });\n case 'FETCH_SUCCESS':\n return _extends({}, state, {\n loading: false,\n error: false,\n data: payload,\n lastPage: pagination.total_count - pagination.offset <= pagination.count\n });\n case 'FETCH_MORE_SUCCESS':\n return _extends({}, state, {\n loading: false,\n error: false,\n data: [].concat(state.data, payload),\n lastPage: pagination.total_count - pagination.offset <= pagination.count\n });\n case 'FETCH_FAILURE':\n return _extends({}, state, {\n loading: false,\n error: true,\n lastPage: false\n });\n default:\n throw new Error('Unknown action type');\n }\n};\n\nexport default dataFetchReducer;"],"names":[],"mappings":";;;;AAAA,IAAI,QAAQ,GAAG,MAAM,CAAC,MAAM,IAAI,UAAU,MAAM,EAAE,EAAE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,IAAI,MAAM,EAAE,EAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC;;AAE7P,IAAC,gBAAgB,GAAG,SAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE;AAChE,EAAE,IAAI,OAAO,GAAG,MAAM,CAAC,OAAO;AAC9B,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU;;;AAGpC,EAAE,QAAQ,M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;AACJ,MAAM,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC;AAC5C;AACA;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ /* eslint-disable import/prefer-default-export */
4
+ var css = function css(strings) {
5
+ for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
6
+ args[_key - 1] = arguments[_key];
7
+ }
8
+
9
+ return strings.reduce(function (acc, string, index) {
10
+ return acc + string + (index < args.length ? args[index] : '');
11
+ }, '');
12
+ };
13
+
14
+ exports.css = css;
15
+ //# sourceMappingURL=css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css.js","sources":["../../../../../../node_modules/react-giphy-searchbox/es/style/css.js"],"sourcesContent":["/* eslint-disable import/prefer-default-export */\nexport var css = function css(strings) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return strings.reduce(function (acc, string, index) {\n return acc + string + (index < args.length ? args[index] : '');\n }, '');\n};"],"names":[],"mappings":";;AAAA;AACU,IAAC,GAAG,GAAG,SAAS,GAAG,CAAC,OAAO,EAAE;AACvC,EAAE,KAAK,IAAI,IAAI,GAAG,SAAS,CAAC,MAAM,EAAE,IAAI,GAAG,KAAK,CAAC,IAAI,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,GAAG,CAAC,EAAE,IAAI,GAAG,IAAI,EAAE,IAAI,EAAE,EAAE;AAC1G,IAAI,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC;AACpC,EAAE;;AAEF,EAAE,OAAO,OAAO,CAAC,MAAM,CAAC,UAAU,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE;AACtD,IAAI,OAAO,GAAG,GAAG,MAAM,IAAI,KAAK,GAAG,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;AAClE,EAAE,CAAC,EAAE,EAAE,CAAC;AACR;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,34 @@
1
+ 'use strict';
2
+
3
+ var styles = new Map();
4
+
5
+ function addStyle(name, rules) {
6
+ if (styles.get(name)) {
7
+ return;
8
+ }
9
+ var style = document.createElement('style');
10
+ style.innerHTML = rules;
11
+ style.setAttribute('type', 'text/css');
12
+ style.setAttribute('id', 'ReactGiphySearchbox-' + name);
13
+ document.head.appendChild(style);
14
+ styles.set(name, style);
15
+ }
16
+
17
+ function useStyle(name, rules) {
18
+ addStyle(name, rules);
19
+ }
20
+
21
+ if (module.hot) {
22
+ module.hot.dispose(function () {
23
+ styles.forEach(function (style) {
24
+ if (document.head.contains(style)) {
25
+ document.head.removeChild(style);
26
+ }
27
+ });
28
+ styles.clear();
29
+ });
30
+ }
31
+
32
+ exports.addStyle = addStyle;
33
+ exports.useStyle = useStyle;
34
+ //# sourceMappingURL=useStyle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStyle.js","sources":["../../../../../../node_modules/react-giphy-searchbox/es/style/useStyle.js"],"sourcesContent":["var styles = new Map();\n\nexport function addStyle(name, rules) {\n if (styles.get(name)) {\n return;\n }\n var style = document.createElement('style');\n style.innerHTML = rules;\n style.setAttribute('type', 'text/css');\n style.setAttribute('id', 'ReactGiphySearchbox-' + name);\n document.head.appendChild(style);\n styles.set(name, style);\n}\n\nexport function useStyle(name, rules) {\n addStyle(name, rules);\n}\n\nif (module.hot) {\n module.hot.dispose(function () {\n styles.forEach(function (style) {\n if (document.head.contains(style)) {\n document.head.removeChild(style);\n }\n });\n styles.clear();\n });\n}"],"names":[],"mappings":";;AAAA,IAAI,MAAM,GAAG,IAAI,GAAG,EAAE;;AAEf,SAAS,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE;AACtC,EAAE,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;AACxB,IAAI;AACJ,EAAE;AACF,EAAE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC;AAC7C,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK;AACzB,EAAE,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC;AACxC,EAAE,KAAK,CAAC,YAAY,CAAC,IAAI,EAAE,sBAAsB,GAAG,IAAI,CAAC;AACzD,EAAE,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;AAClC,EAAE,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC;AACzB;;AAEO,SAAS,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE;AACtC,EAAE,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC;AACvB;;AAEA,IAAI,MAAM,CAAC,GAAG,EAAE;AAChB,EAAE,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,YAAY;AACjC,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,KAAK,EAAE;AACpC,MAAM,IAAI,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AACzC,QAAQ,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC;AACxC,MAAM;AACN,IAAI,CAAC,CAAC;AACN,IAAI,MAAM,CAAC,KAAK,EAAE;AAClB,EAAE,CAAC,CAAC;AACJ;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,46 @@
1
+ 'use strict';
2
+
3
+ var getMasonryConfig = function getMasonryConfig(masonryConfig) {
4
+ return masonryConfig.map(function (c) {
5
+ return {
6
+ columns: c.columns,
7
+ imageWidth: c.imageWidth,
8
+ gutter: c.gutter
9
+ };
10
+ }).reverse();
11
+ };
12
+
13
+ var getMasonryConfigExceptLast = function getMasonryConfigExceptLast(masonryConfig) {
14
+ var returnedMasonryConfig = getMasonryConfig(masonryConfig);
15
+
16
+ return returnedMasonryConfig.slice(0, returnedMasonryConfig.length - 1);
17
+ };
18
+
19
+ var getDefaultMasonryConfig = function getDefaultMasonryConfig(masonryConfig) {
20
+ var returnedMasonryConfig = getMasonryConfig(masonryConfig);
21
+
22
+ return returnedMasonryConfig[returnedMasonryConfig.length - 1];
23
+ };
24
+
25
+ var getMediaBreakpoints = function getMediaBreakpoints(masonryConfig) {
26
+ return (
27
+ // Export in a reverse order `mp` property in an array and filter out undefined items (the `mq` param
28
+ // for first array item is undefined since you don't have to specify it).
29
+ masonryConfig.map(function (c) {
30
+ return c.mq && "(min-width: " + c.mq + ")";
31
+ }).filter(function (i) {
32
+ return i != null;
33
+ }).reverse()
34
+ );
35
+ };
36
+
37
+ var getComponentWrapperWidth = function getComponentWrapperWidth(masonryConfig) {
38
+ return masonryConfig.imageWidth * masonryConfig.columns + masonryConfig.gutter * (masonryConfig.columns - 1);
39
+ };
40
+
41
+ exports.getComponentWrapperWidth = getComponentWrapperWidth;
42
+ exports.getDefaultMasonryConfig = getDefaultMasonryConfig;
43
+ exports.getMasonryConfig = getMasonryConfig;
44
+ exports.getMasonryConfigExceptLast = getMasonryConfigExceptLast;
45
+ exports.getMediaBreakpoints = getMediaBreakpoints;
46
+ //# sourceMappingURL=masonry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"masonry.js","sources":["../../../../../../node_modules/react-giphy-searchbox/es/utils/masonry.js"],"sourcesContent":["export var getMasonryConfig = function getMasonryConfig(masonryConfig) {\n return masonryConfig.map(function (c) {\n return {\n columns: c.columns,\n imageWidth: c.imageWidth,\n gutter: c.gutter\n };\n }).reverse();\n};\n\nexport var getMasonryConfigExceptLast = function getMasonryConfigExceptLast(masonryConfig) {\n var returnedMasonryConfig = getMasonryConfig(masonryConfig);\n\n return returnedMasonryConfig.slice(0, returnedMasonryConfig.length - 1);\n};\n\nexport var getDefaultMasonryConfig = function getDefaultMasonryConfig(masonryConfig) {\n var returnedMasonryConfig = getMasonryConfig(masonryConfig);\n\n return returnedMasonryConfig[returnedMasonryConfig.length - 1];\n};\n\nexport var getMediaBreakpoints = function getMediaBreakpoints(masonryConfig) {\n return (\n // Export in a reverse order `mp` property in an array and filter out undefined items (the `mq` param\n // for first array item is undefined since you don't have to specify it).\n masonryConfig.map(function (c) {\n return c.mq && \"(min-width: \" + c.mq + \")\";\n }).filter(function (i) {\n return i != null;\n }).reverse()\n );\n};\n\nexport var getComponentWrapperWidth = function getComponentWrapperWidth(masonryConfig) {\n return masonryConfig.imageWidth * masonryConfig.columns + masonryConfig.gutter * (masonryConfig.columns - 1);\n};"],"names":[],"mappings":";;AAAU,IAAC,gBAAgB,GAAG,SAAS,gBAAgB,CAAC,aAAa,EAAE;AACvE,EAAE,OAAO,aAAa,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE;AACxC,IAAI,OAAO;AACX,MAAM,OAAO,EAAE,CAAC,CAAC,OAAO;AACxB,MAAM,UAAU,EAAE,CAAC,CAAC,UAAU;AAC9B,MAAM,MAAM,EAAE,CAAC,CAAC;AAChB,KAAK;AACL,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE;AACd;;AAEU,IAAC,0BAA0B,GAAG,SAAS,0BAA0B,CAAC,aAAa,EAAE;AAC3F,EAAE,IAAI,qBAAqB,GAAG,gBAAgB,CAAC,aAAa,CAAC;;AAE7D,EAAE,OAAO,qBAAqB,CAAC,KAAK,CAAC,CAAC,EAAE,qBAAqB,CAAC,MAAM,GAAG,CAAC,CAAC;AACzE;;AAEU,IAAC,uBAAuB,GAAG,SAAS,uBAAuB,CAAC,aAAa,EAAE;AACrF,EAAE,IAAI,qBAAqB,GAAG,gBAAgB,CAAC,aAAa,CAAC;;AAE7D,EAAE,OAAO,qBAAqB,CAAC,qBAAqB,CAAC,MAAM,GAAG,CAAC,CAAC;AAChE;;AAEU,IAAC,mBAAmB,GAAG,SAAS,mBAAmB,CAAC,aAAa,EAAE;AAC7E,EAAE;AACF;AACA;AACA,IAAI,aAAa,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE;AACnC,MAAM,OA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