@fast-simon/dashboard-utilities 1.0.21 → 1.0.23

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 (222) hide show
  1. package/{lib/main.d.ts → dist/index.d.ts} +1 -2
  2. package/{lib/main.js → dist/index.js} +1 -1
  3. package/dist/index.js.map +1 -0
  4. package/dist/main.d.ts +1 -0
  5. package/dist/main.js +6 -0
  6. package/dist/main.js.map +1 -0
  7. package/package.json +17 -20
  8. package/lib/icons/index.d.ts +0 -9
  9. package/lib/icons/index.js +0 -10
  10. package/lib/icons/index.js.map +0 -1
  11. package/lib/main.js.map +0 -1
  12. package/lib/utils/products.d.ts +0 -30
  13. package/lib/utils/products.js +0 -39
  14. package/lib/utils/products.js.map +0 -1
  15. package/lib/utils/shopifyMarkets.d.ts +0 -3
  16. package/lib/utils/shopifyMarkets.js +0 -7
  17. package/lib/utils/shopifyMarkets.js.map +0 -1
  18. /package/{lib → dist}/@types/banner.d.ts +0 -0
  19. /package/{lib → dist}/@types/banner.js +0 -0
  20. /package/{lib → dist}/@types/banner.js.map +0 -0
  21. /package/{lib → dist}/@types/categories.d.ts +0 -0
  22. /package/{lib → dist}/@types/categories.js +0 -0
  23. /package/{lib → dist}/@types/categories.js.map +0 -0
  24. /package/{lib → dist}/@types/currency.d.ts +0 -0
  25. /package/{lib → dist}/@types/currency.js +0 -0
  26. /package/{lib → dist}/@types/currency.js.map +0 -0
  27. /package/{lib → dist}/@types/editorProduct.d.ts +0 -0
  28. /package/{lib → dist}/@types/editorProduct.js +0 -0
  29. /package/{lib → dist}/@types/editorProduct.js.map +0 -0
  30. /package/{lib → dist}/@types/iconProps.d.ts +0 -0
  31. /package/{lib → dist}/@types/iconProps.js +0 -0
  32. /package/{lib → dist}/@types/iconProps.js.map +0 -0
  33. /package/{lib → dist}/@types/product.d.ts +0 -0
  34. /package/{lib → dist}/@types/product.js +0 -0
  35. /package/{lib → dist}/@types/product.js.map +0 -0
  36. /package/{lib → dist}/@types/productLabel.d.ts +0 -0
  37. /package/{lib → dist}/@types/productLabel.js +0 -0
  38. /package/{lib → dist}/@types/productLabel.js.map +0 -0
  39. /package/{lib → dist}/@types/promoTile.d.ts +0 -0
  40. /package/{lib → dist}/@types/promoTile.js +0 -0
  41. /package/{lib → dist}/@types/promoTile.js.map +0 -0
  42. /package/{lib → dist}/@types/results.d.ts +0 -0
  43. /package/{lib → dist}/@types/results.js +0 -0
  44. /package/{lib → dist}/@types/results.js.map +0 -0
  45. /package/{lib → dist}/@types/sideMenu.d.ts +0 -0
  46. /package/{lib → dist}/@types/sideMenu.js +0 -0
  47. /package/{lib → dist}/@types/sideMenu.js.map +0 -0
  48. /package/{lib → dist}/@types/sortBy.d.ts +0 -0
  49. /package/{lib → dist}/@types/sortBy.js +0 -0
  50. /package/{lib → dist}/@types/sortBy.js.map +0 -0
  51. /package/{lib → dist}/App.d.ts +0 -0
  52. /package/{lib → dist}/App.js +0 -0
  53. /package/{lib → dist}/App.js.map +0 -0
  54. /package/{lib → dist}/components/BackOfficeFiltersMenu/BackOfficeFiltersMenu.d.ts +0 -0
  55. /package/{lib → dist}/components/BackOfficeFiltersMenu/BackOfficeFiltersMenu.js +0 -0
  56. /package/{lib → dist}/components/BackOfficeFiltersMenu/BackOfficeFiltersMenu.js.map +0 -0
  57. /package/{lib → dist}/components/BackOfficeFiltersMenu/index.d.ts +0 -0
  58. /package/{lib → dist}/components/BackOfficeFiltersMenu/index.js +0 -0
  59. /package/{lib → dist}/components/BackOfficeFiltersMenu/index.js.map +0 -0
  60. /package/{lib → dist}/components/BackOfficeFiltersMenu/styles.module.css +0 -0
  61. /package/{lib → dist}/components/BackOfficeFiltersMenu/utils.d.ts +0 -0
  62. /package/{lib → dist}/components/BackOfficeFiltersMenu/utils.js +0 -0
  63. /package/{lib → dist}/components/BackOfficeFiltersMenu/utils.js.map +0 -0
  64. /package/{lib → dist}/components/CheckboxFilter/Checkbox/Checkbox.d.ts +0 -0
  65. /package/{lib → dist}/components/CheckboxFilter/Checkbox/Checkbox.js +0 -0
  66. /package/{lib → dist}/components/CheckboxFilter/Checkbox/Checkbox.js.map +0 -0
  67. /package/{lib → dist}/components/CheckboxFilter/Checkbox/styles.module.css +0 -0
  68. /package/{lib → dist}/components/CheckboxFilter/CheckboxFilter.d.ts +0 -0
  69. /package/{lib → dist}/components/CheckboxFilter/CheckboxFilter.js +0 -0
  70. /package/{lib → dist}/components/CheckboxFilter/CheckboxFilter.js.map +0 -0
  71. /package/{lib → dist}/components/CheckboxFilter/styles.module.css +0 -0
  72. /package/{lib → dist}/components/DragAndDrop/DndContextWrapper.d.ts +0 -0
  73. /package/{lib → dist}/components/DragAndDrop/DndContextWrapper.js +0 -0
  74. /package/{lib → dist}/components/DragAndDrop/DndContextWrapper.js.map +0 -0
  75. /package/{lib → dist}/components/DragAndDrop/Droppable.d.ts +0 -0
  76. /package/{lib → dist}/components/DragAndDrop/Droppable.js +0 -0
  77. /package/{lib → dist}/components/DragAndDrop/Droppable.js.map +0 -0
  78. /package/{lib → dist}/components/DragAndDrop/SortableItem.d.ts +0 -0
  79. /package/{lib → dist}/components/DragAndDrop/SortableItem.js +0 -0
  80. /package/{lib → dist}/components/DragAndDrop/SortableItem.js.map +0 -0
  81. /package/{lib → dist}/components/DragAndDrop/styles.module.css +0 -0
  82. /package/{lib → dist}/components/FacetItem/FacetItem.d.ts +0 -0
  83. /package/{lib → dist}/components/FacetItem/FacetItem.js +0 -0
  84. /package/{lib → dist}/components/FacetItem/FacetItem.js.map +0 -0
  85. /package/{lib → dist}/components/FacetItem/styles.module.css +0 -0
  86. /package/{lib → dist}/components/FastSimonApi/FastSimonApi.d.ts +0 -0
  87. /package/{lib → dist}/components/FastSimonApi/FastSimonApi.js +0 -0
  88. /package/{lib → dist}/components/FastSimonApi/FastSimonApi.js.map +0 -0
  89. /package/{lib → dist}/components/FastSimonApi/context.d.ts +0 -0
  90. /package/{lib → dist}/components/FastSimonApi/context.js +0 -0
  91. /package/{lib → dist}/components/FastSimonApi/context.js.map +0 -0
  92. /package/{lib → dist}/components/FastSimonApi/index.d.ts +0 -0
  93. /package/{lib → dist}/components/FastSimonApi/index.js +0 -0
  94. /package/{lib → dist}/components/FastSimonApi/index.js.map +0 -0
  95. /package/{lib → dist}/components/FastSimonApi/reducer.d.ts +0 -0
  96. /package/{lib → dist}/components/FastSimonApi/reducer.js +0 -0
  97. /package/{lib → dist}/components/FastSimonApi/reducer.js.map +0 -0
  98. /package/{lib → dist}/components/FromToFilter/From/From.d.ts +0 -0
  99. /package/{lib → dist}/components/FromToFilter/From/From.js +0 -0
  100. /package/{lib → dist}/components/FromToFilter/From/From.js.map +0 -0
  101. /package/{lib → dist}/components/FromToFilter/From/styles.module.css +0 -0
  102. /package/{lib → dist}/components/FromToFilter/FromToFilter.d.ts +0 -0
  103. /package/{lib → dist}/components/FromToFilter/FromToFilter.js +0 -0
  104. /package/{lib → dist}/components/FromToFilter/FromToFilter.js.map +0 -0
  105. /package/{lib → dist}/components/FromToFilter/To/To.d.ts +0 -0
  106. /package/{lib → dist}/components/FromToFilter/To/To.js +0 -0
  107. /package/{lib → dist}/components/FromToFilter/To/To.js.map +0 -0
  108. /package/{lib → dist}/components/FromToFilter/To/styles.module.css +0 -0
  109. /package/{lib → dist}/components/FromToFilter/styles.module.css +0 -0
  110. /package/{lib → dist}/components/FromToFilter/utils.d.ts +0 -0
  111. /package/{lib → dist}/components/FromToFilter/utils.js +0 -0
  112. /package/{lib → dist}/components/FromToFilter/utils.js.map +0 -0
  113. /package/{lib → dist}/components/InStoreFiltersMenu/InStoreFiltersMenu.d.ts +0 -0
  114. /package/{lib → dist}/components/InStoreFiltersMenu/InStoreFiltersMenu.js +0 -0
  115. /package/{lib → dist}/components/InStoreFiltersMenu/InStoreFiltersMenu.js.map +0 -0
  116. /package/{lib → dist}/components/InStoreFiltersMenu/index.d.ts +0 -0
  117. /package/{lib → dist}/components/InStoreFiltersMenu/index.js +0 -0
  118. /package/{lib → dist}/components/InStoreFiltersMenu/index.js.map +0 -0
  119. /package/{lib → dist}/components/InStoreFiltersMenu/styles.module.css +0 -0
  120. /package/{lib → dist}/components/Input/Input.d.ts +0 -0
  121. /package/{lib → dist}/components/Input/Input.js +0 -0
  122. /package/{lib → dist}/components/Input/Input.js.map +0 -0
  123. /package/{lib → dist}/components/Input/index.d.ts +0 -0
  124. /package/{lib → dist}/components/Input/index.js +0 -0
  125. /package/{lib → dist}/components/Input/index.js.map +0 -0
  126. /package/{lib → dist}/components/Input/styles.module.css +0 -0
  127. /package/{lib → dist}/components/LastReceivedDateFilter/LastReceivedDate.d.ts +0 -0
  128. /package/{lib → dist}/components/LastReceivedDateFilter/LastReceivedDate.js +0 -0
  129. /package/{lib → dist}/components/LastReceivedDateFilter/LastReceivedDate.js.map +0 -0
  130. /package/{lib → dist}/components/LastReceivedDateFilter/styles.module.css +0 -0
  131. /package/{lib → dist}/components/LastReceivedDateFilter/utils.d.ts +0 -0
  132. /package/{lib → dist}/components/LastReceivedDateFilter/utils.js +0 -0
  133. /package/{lib → dist}/components/LastReceivedDateFilter/utils.js.map +0 -0
  134. /package/{lib → dist}/components/RadioFilter/Radio/Radio.d.ts +0 -0
  135. /package/{lib → dist}/components/RadioFilter/Radio/Radio.js +0 -0
  136. /package/{lib → dist}/components/RadioFilter/Radio/Radio.js.map +0 -0
  137. /package/{lib → dist}/components/RadioFilter/Radio/styles.module.css +0 -0
  138. /package/{lib → dist}/components/RadioFilter/RadioFilter.d.ts +0 -0
  139. /package/{lib → dist}/components/RadioFilter/RadioFilter.js +0 -0
  140. /package/{lib → dist}/components/RadioFilter/RadioFilter.js.map +0 -0
  141. /package/{lib → dist}/components/RadioFilter/styles.module.css +0 -0
  142. /package/{lib → dist}/components/RadioFilter/utils.d.ts +0 -0
  143. /package/{lib → dist}/components/RadioFilter/utils.js +0 -0
  144. /package/{lib → dist}/components/RadioFilter/utils.js.map +0 -0
  145. /package/{lib → dist}/components/ReactDatePicker/ReactDatePicker.d.ts +0 -0
  146. /package/{lib → dist}/components/ReactDatePicker/ReactDatePicker.js +0 -0
  147. /package/{lib → dist}/components/ReactDatePicker/ReactDatePicker.js.map +0 -0
  148. /package/{lib → dist}/components/ReactDatePicker/index.d.ts +0 -0
  149. /package/{lib → dist}/components/ReactDatePicker/index.js +0 -0
  150. /package/{lib → dist}/components/ReactDatePicker/index.js.map +0 -0
  151. /package/{lib → dist}/components/ReactDatePicker/styles.module.css +0 -0
  152. /package/{lib → dist}/components/RenderIfVisible/RenderIfVisible.d.ts +0 -0
  153. /package/{lib → dist}/components/RenderIfVisible/RenderIfVisible.js +0 -0
  154. /package/{lib → dist}/components/RenderIfVisible/RenderIfVisible.js.map +0 -0
  155. /package/{lib → dist}/components/RenderIfVisible/index.d.ts +0 -0
  156. /package/{lib → dist}/components/RenderIfVisible/index.js +0 -0
  157. /package/{lib → dist}/components/RenderIfVisible/index.js.map +0 -0
  158. /package/{lib → dist}/components/SingleFilter/SingleFilter.d.ts +0 -0
  159. /package/{lib → dist}/components/SingleFilter/SingleFilter.js +0 -0
  160. /package/{lib → dist}/components/SingleFilter/SingleFilter.js.map +0 -0
  161. /package/{lib → dist}/components/SingleFilter/styles.module.css +0 -0
  162. /package/{lib → dist}/components/SingleFilter/utils.d.ts +0 -0
  163. /package/{lib → dist}/components/SingleFilter/utils.js +0 -0
  164. /package/{lib → dist}/components/SingleFilter/utils.js.map +0 -0
  165. /package/{lib → dist}/components/SliderFilter/SliderFilter.d.ts +0 -0
  166. /package/{lib → dist}/components/SliderFilter/SliderFilter.js +0 -0
  167. /package/{lib → dist}/components/SliderFilter/SliderFilter.js.map +0 -0
  168. /package/{lib → dist}/components/SliderFilter/index.d.ts +0 -0
  169. /package/{lib → dist}/components/SliderFilter/index.js +0 -0
  170. /package/{lib → dist}/components/SliderFilter/index.js.map +0 -0
  171. /package/{lib → dist}/components/SliderFilter/styles.module.css +0 -0
  172. /package/{lib → dist}/components/Tooltip/Tooltip.d.ts +0 -0
  173. /package/{lib → dist}/components/Tooltip/Tooltip.js +0 -0
  174. /package/{lib → dist}/components/Tooltip/Tooltip.js.map +0 -0
  175. /package/{lib → dist}/components/Tooltip/styles.module.css +0 -0
  176. /package/{lib → dist}/components/common.d.ts +0 -0
  177. /package/{lib → dist}/components/common.js +0 -0
  178. /package/{lib → dist}/components/common.js.map +0 -0
  179. /package/{lib → dist}/components/productGrid/ProductGrid.d.ts +0 -0
  180. /package/{lib → dist}/components/productGrid/ProductGrid.js +0 -0
  181. /package/{lib → dist}/components/productGrid/ProductGrid.js.map +0 -0
  182. /package/{lib → dist}/components/productGrid/index.d.ts +0 -0
  183. /package/{lib → dist}/components/productGrid/index.js +0 -0
  184. /package/{lib → dist}/components/productGrid/index.js.map +0 -0
  185. /package/{lib → dist}/components/productGrid/styles.module.css +0 -0
  186. /package/{lib → dist}/icons/BackOfficeFiltersIcon.d.ts +0 -0
  187. /package/{lib → dist}/icons/BackOfficeFiltersIcon.js +0 -0
  188. /package/{lib → dist}/icons/BackOfficeFiltersIcon.js.map +0 -0
  189. /package/{lib → dist}/icons/BannersIcon.d.ts +0 -0
  190. /package/{lib → dist}/icons/BannersIcon.js +0 -0
  191. /package/{lib → dist}/icons/BannersIcon.js.map +0 -0
  192. /package/{lib → dist}/icons/GeneralIcon.d.ts +0 -0
  193. /package/{lib → dist}/icons/GeneralIcon.js +0 -0
  194. /package/{lib → dist}/icons/GeneralIcon.js.map +0 -0
  195. /package/{lib → dist}/icons/HelpIcon.d.ts +0 -0
  196. /package/{lib → dist}/icons/HelpIcon.js +0 -0
  197. /package/{lib → dist}/icons/HelpIcon.js.map +0 -0
  198. /package/{lib → dist}/icons/InStoreFiltersIcon.d.ts +0 -0
  199. /package/{lib → dist}/icons/InStoreFiltersIcon.js +0 -0
  200. /package/{lib → dist}/icons/InStoreFiltersIcon.js.map +0 -0
  201. /package/{lib → dist}/icons/PromoteIcon.d.ts +0 -0
  202. /package/{lib → dist}/icons/PromoteIcon.js +0 -0
  203. /package/{lib → dist}/icons/PromoteIcon.js.map +0 -0
  204. /package/{lib → dist}/icons/RemoveIcon.d.ts +0 -0
  205. /package/{lib → dist}/icons/RemoveIcon.js +0 -0
  206. /package/{lib → dist}/icons/RemoveIcon.js.map +0 -0
  207. /package/{lib → dist}/icons/RestoreIcon.d.ts +0 -0
  208. /package/{lib → dist}/icons/RestoreIcon.js +0 -0
  209. /package/{lib → dist}/icons/RestoreIcon.js.map +0 -0
  210. /package/{lib → dist}/icons/styles.module.css +0 -0
  211. /package/{lib → dist}/services/API.d.ts +0 -0
  212. /package/{lib → dist}/services/API.js +0 -0
  213. /package/{lib → dist}/services/API.js.map +0 -0
  214. /package/{lib → dist}/services/landingPage.d.ts +0 -0
  215. /package/{lib → dist}/services/landingPage.js +0 -0
  216. /package/{lib → dist}/services/landingPage.js.map +0 -0
  217. /package/{lib → dist}/utils/customTagsFilters.d.ts +0 -0
  218. /package/{lib → dist}/utils/customTagsFilters.js +0 -0
  219. /package/{lib → dist}/utils/customTagsFilters.js.map +0 -0
  220. /package/{lib → dist}/utils/useDragToSelect.d.ts +0 -0
  221. /package/{lib → dist}/utils/useDragToSelect.js +0 -0
  222. /package/{lib → dist}/utils/useDragToSelect.js.map +0 -0
@@ -1,5 +1,4 @@
1
- import { MenuItemName } from "./@types/sideMenu";
2
- import { CustomClasses, SideMenuType, SideMenuItem } from "./@types/sideMenu";
1
+ import { CustomClasses, SideMenuType, SideMenuItem, MenuItemName } from "./@types/sideMenu";
3
2
  import { ProductLabelType } from "./@types/productLabel";
4
3
  import { videoFormats, Banner } from "./@types/banner";
5
4
  import { EditorProduct, isEditorProduct } from "./@types/editorProduct";
@@ -18,4 +18,4 @@ import RenderIfVisible from "./components/RenderIfVisible";
18
18
  import { useDragToSelect } from "./utils/useDragToSelect";
19
19
  import { LandingPage } from "./services/landingPage";
20
20
  export { BackOfficeFiltersMenu, InStoreFiltersMenu, Droppable, DndContextWrapper, SortableItem, ProductGrid, RenderIfVisible, useDragToSelect, LandingPage, BackOfficeFiltersIcon, BannersIcon, HelpIcon, InStoreFiltersIcon, PromoteIcon, RestoreIcon, RemoveIcon, GeneralIcon, videoFormats, isEditorProduct };
21
- //# sourceMappingURL=main.js.map
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,YAAY,EAAS,MAAM,iBAAiB,CAAA;AACpD,OAAO,EAAgB,eAAe,EAAC,MAAM,wBAAwB,CAAA;AAGrE,OAAO,EAAC,qBAAqB,EAAC,MAAM,+BAA+B,CAAA;AACnE,OAAO,EAAC,WAAW,EAAC,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAC,kBAAkB,EAAC,MAAM,4BAA4B,CAAA;AAC7D,OAAO,EAAC,WAAW,EAAC,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAA;AAC7C,OAAO,EAAC,WAAW,EAAC,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAC,WAAW,EAAC,MAAM,qBAAqB,CAAA;AAC/C,OAAO,qBAAqB,MAAM,oCAAoC,CAAA;AACtE,OAAO,kBAAkB,MAAM,iCAAiC,CAAA;AAChE,OAAO,iBAAiB,MAAM,4CAA4C,CAAA;AAC1E,OAAO,SAAS,MAAM,oCAAoC,CAAA;AAC1D,OAAO,EAAC,YAAY,EAAC,MAAM,uCAAuC,CAAA;AAClE,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAC/D,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAerD,OAAO,EACH,qBAAqB,EAAE,kBAAkB,EAAE,SAAS,EAAE,iBAAiB,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EACnH,eAAe,EAAE,WAAW,EAAE,qBAAqB,EAAE,WAAW,EAAE,QAAQ,EAAE,kBAAkB,EAAE,WAAW,EAC3G,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EACtE,CAAC","sourcesContent":["import {CustomClasses, SideMenuType, SideMenuItem, MenuItemName} from \"./@types/sideMenu\"\nimport {ProductLabelType} from \"./@types/productLabel\"\nimport {videoFormats, Banner} from \"./@types/banner\"\nimport {EditorProduct, isEditorProduct} from \"./@types/editorProduct\"\nimport {IconProps} from \"./@types/iconProps\"\n\nimport {BackOfficeFiltersIcon} from \"./icons/BackOfficeFiltersIcon\"\nimport {BannersIcon} from \"./icons/BannersIcon\"\nimport {HelpIcon} from \"./icons/HelpIcon\"\nimport {InStoreFiltersIcon} from \"./icons/InStoreFiltersIcon\"\nimport {PromoteIcon} from \"./icons/PromoteIcon\"\nimport {RemoveIcon} from \"./icons/RemoveIcon\"\nimport {RestoreIcon} from \"./icons/RestoreIcon\"\nimport {GeneralIcon} from \"./icons/GeneralIcon\"\nimport BackOfficeFiltersMenu from './components/BackOfficeFiltersMenu'\nimport InStoreFiltersMenu from './components/InStoreFiltersMenu'\nimport DndContextWrapper from './components/DragAndDrop/DndContextWrapper'\nimport Droppable from './components/DragAndDrop/Droppable'\nimport {SortableItem} from './components/DragAndDrop/SortableItem'\nimport ProductGrid from \"./components/productGrid/ProductGrid\";\nimport RenderIfVisible from \"./components/RenderIfVisible\";\nimport {useDragToSelect} from \"./utils/useDragToSelect\";\nimport { LandingPage } from \"./services/landingPage\";\n\n// export * from './components';\n\nexport type {\n MenuItemName,\n CustomClasses,\n SideMenuType,\n SideMenuItem,\n ProductLabelType,\n Banner,\n EditorProduct,\n IconProps\n};\n\nexport {\n BackOfficeFiltersMenu, InStoreFiltersMenu, Droppable, DndContextWrapper, SortableItem, ProductGrid, RenderIfVisible,\n useDragToSelect, LandingPage, BackOfficeFiltersIcon, BannersIcon, HelpIcon, InStoreFiltersIcon, PromoteIcon,\n RestoreIcon, RemoveIcon, GeneralIcon, videoFormats, isEditorProduct\n};"]}
package/dist/main.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {};
package/dist/main.js ADDED
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import ReactDOM from "react-dom";
4
+ import App from "./App";
5
+ ReactDOM.render(_jsx(React.StrictMode, { children: _jsx(App, {}) }), document.getElementById('root'));
6
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,QAAQ,MAAM,WAAW,CAAC;AACjC,OAAO,GAAG,MAAM,OAAO,CAAC;AAExB,QAAQ,CAAC,MAAM,CACb,KAAC,KAAK,CAAC,UAAU,cACb,KAAC,GAAG,KAAG,GACQ,EACnB,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAChC,CAAA","sourcesContent":["import React from \"react\";\r\nimport ReactDOM from \"react-dom\";\r\nimport App from \"./App\";\r\n\r\nReactDOM.render(\r\n <React.StrictMode>\r\n <App />\r\n </React.StrictMode>,\r\n document.getElementById('root')\r\n)\r\n"]}
package/package.json CHANGED
@@ -1,23 +1,19 @@
1
1
  {
2
2
  "name": "@fast-simon/dashboard-utilities",
3
- "files": [
4
- "lib/**/*"
5
- ],
6
- "version": "1.0.21",
3
+ "version": "1.0.23",
7
4
  "scripts": {
8
5
  "dev": "vite",
9
6
  "preview": "vite preview",
10
7
  "build": "tsc -p tsconfig-build.json",
11
8
  "prepublishOnly": "npm version patch && npm run build",
12
- "postbuild": "copyfiles -u 2 src/components/**/*.css lib/components && copyfiles -u 2 src/icons/**/*.css lib/icons && copyfiles -u 2 src/assets/**/*.gif lib/assets",
13
- "tsc": "tsc"
14
- },
15
- "main": "lib/main.js",
16
- "type": "module",
17
- "types": "lib/main.d.ts",
18
- "directories": {
19
- "lib": "lib"
9
+ "postbuild": "copyfiles -u 2 src/components/**/*.css dist/components && copyfiles -u 2 src/icons/**/*.css dist/icons && copyfiles -u 2 src/assets/**/*.gif dist/assets"
20
10
  },
11
+ "main": "dist/index.js",
12
+ "module": "dist/index.js",
13
+ "types": "dist/index.d.ts",
14
+ "files": [
15
+ "dist"
16
+ ],
21
17
  "dependencies": {
22
18
  "@babel/core": "^7.20.12",
23
19
  "@dnd-kit/core": "^6.0.8",
@@ -28,6 +24,8 @@
28
24
  "@fast-simon/logger": "^1.0.0",
29
25
  "@fast-simon/utilities": "^1.0.19",
30
26
  "@radix-ui/react-accordion": "^1.1.1",
27
+ "@stripe/react-stripe-js": "^1.7.0",
28
+ "@stripe/stripe-js": "^1.22.0",
31
29
  "@tippyjs/react": "^4.2.6",
32
30
  "classnames": "^2.3.1",
33
31
  "clsx": "^1.1.1",
@@ -37,21 +35,18 @@
37
35
  "moment": "^2.29.1",
38
36
  "rc-slider": "^10.1.1",
39
37
  "react-datepicker": "^4.10.0",
40
- "react-jss": "^10.6.0",
41
- "react-loading-skeleton": "^2.2.0",
42
- "react-multi-carousel": "^2.6.3",
38
+ "react-jss": "^10.10.0",
43
39
  "react-select": "^5.2.1",
44
- "react-switch": "^6.0.0",
45
40
  "tss-react": "^3.6.0",
46
41
  "usehooks-ts": "^2.9.1"
47
42
  },
48
43
  "devDependencies": {
49
44
  "@types/node": "^18.13.0",
50
- "@types/react": "^18.3.3",
45
+ "@types/react": "^17.0.33",
51
46
  "@types/react-datepicker": "^4.10.0",
52
- "@types/react-dom": "^18.3.0",
47
+ "@types/react-dom": "^17.0.10",
53
48
  "@types/react-modal": "^3.13.1",
54
- "@types/react-redux": "^7.1.25",
49
+ "@types/react-router-dom": "^5.1.5",
55
50
  "@vitejs/plugin-react": "^1.0.7",
56
51
  "axios": "^0.24.0",
57
52
  "copyfiles": "^2.4.1",
@@ -61,7 +56,9 @@
61
56
  "react-datepicker": "^4.10.0",
62
57
  "react-dom": "^17.0.2",
63
58
  "react-modal": "3.14.4",
64
- "typescript": "^4.9.5",
59
+ "react-router-dom": "^5.2.0",
60
+ "rimraf": "^3.0.2",
61
+ "typescript": "^4.4.4",
65
62
  "vite": "^2.7.2"
66
63
  }
67
64
  }
@@ -1,9 +0,0 @@
1
- export * from './BackOfficeFiltersIcon';
2
- export * from './BannersIcon';
3
- export * from './HelpIcon';
4
- export * from './InStoreFiltersIcon';
5
- export * from './PromoteIcon';
6
- export * from './RemoveIcon';
7
- export * from './RestoreIcon';
8
- import { styles as iconsClasses } from './styles.module.css';
9
- export { iconsClasses };
@@ -1,10 +0,0 @@
1
- export * from './BackOfficeFiltersIcon';
2
- export * from './BannersIcon';
3
- export * from './HelpIcon';
4
- export * from './InStoreFiltersIcon';
5
- export * from './PromoteIcon';
6
- export * from './RemoveIcon';
7
- export * from './RestoreIcon';
8
- import { styles as iconsClasses } from './styles.module.css';
9
- export { iconsClasses };
10
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,OAAO,EAAC,MAAM,IAAI,YAAY,EAAC,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,CAAC","sourcesContent":["export * from './BackOfficeFiltersIcon'\r\nexport * from './BannersIcon'\r\nexport * from './HelpIcon'\r\nexport * from './InStoreFiltersIcon'\r\nexport * from './PromoteIcon'\r\nexport * from './RemoveIcon'\r\nexport * from './RestoreIcon'\r\nimport {styles as iconsClasses} from './styles.module.css';\r\nexport { iconsClasses };\r\n"]}
package/lib/main.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,YAAY,EAAS,MAAM,iBAAiB,CAAA;AACpD,OAAO,EAAgB,eAAe,EAAC,MAAM,wBAAwB,CAAA;AAGrE,OAAO,EAAC,qBAAqB,EAAC,MAAM,+BAA+B,CAAA;AACnE,OAAO,EAAC,WAAW,EAAC,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAC,kBAAkB,EAAC,MAAM,4BAA4B,CAAA;AAC7D,OAAO,EAAC,WAAW,EAAC,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAC,UAAU,EAAC,MAAM,oBAAoB,CAAA;AAC7C,OAAO,EAAC,WAAW,EAAC,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAC,WAAW,EAAC,MAAM,qBAAqB,CAAA;AAC/C,OAAO,qBAAqB,MAAM,oCAAoC,CAAA;AACtE,OAAO,kBAAkB,MAAM,iCAAiC,CAAA;AAChE,OAAO,iBAAiB,MAAM,4CAA4C,CAAA;AAC1E,OAAO,SAAS,MAAM,oCAAoC,CAAA;AAC1D,OAAO,EAAC,YAAY,EAAC,MAAM,uCAAuC,CAAA;AAClE,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAC/D,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAMrD,OAAO,EACH,qBAAqB,EAAE,kBAAkB,EAAE,SAAS,EAAE,iBAAiB,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EACnH,eAAe,EAAE,WAAW,EAAE,qBAAqB,EAAE,WAAW,EAAE,QAAQ,EAAE,kBAAkB,EAAE,WAAW,EAC3G,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EACtE,CAAC","sourcesContent":["import {MenuItemName} from \"./@types/sideMenu\"\nimport {CustomClasses, SideMenuType, SideMenuItem} from \"./@types/sideMenu\"\nimport {ProductLabelType} from \"./@types/productLabel\"\nimport {videoFormats, Banner} from \"./@types/banner\"\nimport {EditorProduct, isEditorProduct} from \"./@types/editorProduct\"\nimport {IconProps} from \"./@types/iconProps\"\n\nimport {BackOfficeFiltersIcon} from \"./icons/BackOfficeFiltersIcon\"\nimport {BannersIcon} from \"./icons/BannersIcon\"\nimport {HelpIcon} from \"./icons/HelpIcon\"\nimport {InStoreFiltersIcon} from \"./icons/InStoreFiltersIcon\"\nimport {PromoteIcon} from \"./icons/PromoteIcon\"\nimport {RemoveIcon} from \"./icons/RemoveIcon\"\nimport {RestoreIcon} from \"./icons/RestoreIcon\"\nimport {GeneralIcon} from \"./icons/GeneralIcon\"\nimport BackOfficeFiltersMenu from './components/BackOfficeFiltersMenu'\nimport InStoreFiltersMenu from './components/InStoreFiltersMenu'\nimport DndContextWrapper from './components/DragAndDrop/DndContextWrapper'\nimport Droppable from './components/DragAndDrop/Droppable'\nimport {SortableItem} from './components/DragAndDrop/SortableItem'\nimport ProductGrid from \"./components/productGrid/ProductGrid\";\nimport RenderIfVisible from \"./components/RenderIfVisible\";\nimport {useDragToSelect} from \"./utils/useDragToSelect\";\nimport { LandingPage } from \"./services/landingPage\";\n\nexport type {\n MenuItemName, CustomClasses, SideMenuType, SideMenuItem, ProductLabelType, Banner, EditorProduct, IconProps\n};\n\nexport {\n BackOfficeFiltersMenu, InStoreFiltersMenu, Droppable, DndContextWrapper, SortableItem, ProductGrid, RenderIfVisible,\n useDragToSelect, LandingPage, BackOfficeFiltersIcon, BannersIcon, HelpIcon, InStoreFiltersIcon, PromoteIcon,\n RestoreIcon, RemoveIcon, GeneralIcon, videoFormats, isEditorProduct\n};"]}
@@ -1,30 +0,0 @@
1
- import { EditorProduct } from "../@types/editorProduct";
2
- export declare const ProductsUtils: {
3
- /**
4
- * Change the position of multiple products, starting from index a and moving n products to index b, in use for multiple product actions
5
- * Use the splice method to extract and remove the products from their original positions, then use the splice method again to insert them into the new positions
6
- * Time complexity O(n), where n is the number of elements in the array that being modified
7
- * @param products - is the current products state
8
- * @param startIndex - is the starting index
9
- * @param numberOfProducts - is the number of products to move
10
- * @param destIndex - is the destination index you want to insert the product into
11
- **/
12
- changeProductsPosition: (products: EditorProduct[], startIndex: number, numberOfProducts: number, destIndex: number) => EditorProduct[];
13
- /**
14
- * Change position of a single product
15
- * Use the splice method to remove the product from its original position and insert it into the new position.
16
- * time complexity O(n)
17
- * @param gridItems - is the current products state
18
- * @param oldIndex - is the index of the product to move
19
- * @param newIndex - is the destination index
20
- **/
21
- changeProductPosition: (gridItems: EditorProduct[], oldIndex: number, newIndex: number) => EditorProduct[];
22
- /**
23
- * Add product (hidden/unpublished/promotile) to specific position in the products array
24
- * Use the splice method to remove the product from its original position and insert it into the new position.
25
- * @param products - is the current products state
26
- * @param productToAdd - is the new product to add
27
- * @param destIndex - is the destination index
28
- **/
29
- addProductToIndex: (products: EditorProduct[], productToAdd: EditorProduct, destIndex: number) => EditorProduct[];
30
- };
@@ -1,39 +0,0 @@
1
- export const ProductsUtils = {
2
- /**
3
- * Change the position of multiple products, starting from index a and moving n products to index b, in use for multiple product actions
4
- * Use the splice method to extract and remove the products from their original positions, then use the splice method again to insert them into the new positions
5
- * Time complexity O(n), where n is the number of elements in the array that being modified
6
- * @param products - is the current products state
7
- * @param startIndex - is the starting index
8
- * @param numberOfProducts - is the number of products to move
9
- * @param destIndex - is the destination index you want to insert the product into
10
- **/
11
- changeProductsPosition: (products, startIndex, numberOfProducts, destIndex) => {
12
- products.splice(destIndex - numberOfProducts + 1, 0, ...products.splice(startIndex, numberOfProducts));
13
- return products;
14
- },
15
- /**
16
- * Change position of a single product
17
- * Use the splice method to remove the product from its original position and insert it into the new position.
18
- * time complexity O(n)
19
- * @param gridItems - is the current products state
20
- * @param oldIndex - is the index of the product to move
21
- * @param newIndex - is the destination index
22
- **/
23
- changeProductPosition: (gridItems, oldIndex, newIndex) => {
24
- gridItems.splice(newIndex, 0, gridItems.splice(oldIndex, 1)[0]);
25
- return gridItems;
26
- },
27
- /**
28
- * Add product (hidden/unpublished/promotile) to specific position in the products array
29
- * Use the splice method to remove the product from its original position and insert it into the new position.
30
- * @param products - is the current products state
31
- * @param productToAdd - is the new product to add
32
- * @param destIndex - is the destination index
33
- **/
34
- addProductToIndex: (products, productToAdd, destIndex) => {
35
- products.splice(destIndex, 0, productToAdd);
36
- return products;
37
- }
38
- };
39
- //# sourceMappingURL=products.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"products.js","sourceRoot":"","sources":["../../src/utils/products.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAG;IAEzB;;;;;;;;QAQI;IACJ,sBAAsB,EAAE,CAAC,QAAyB,EAAE,UAAkB,EAAE,gBAAwB,EAAE,SAAiB,EAAE,EAAE;QACnH,QAAQ,CAAC,MAAM,CAAC,SAAS,GAAC,gBAAgB,GAAC,CAAC,EAAE,CAAC,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAC,UAAU,EAAE,gBAAgB,CAAC,CAAC,CAAC;QACnG,OAAO,QAAQ,CAAC;IACpB,CAAC;IAED;;;;;;;QAOI;IACJ,qBAAqB,EAAE,CAAC,SAA0B,EAAE,QAAgB,EAAE,QAAgB,EAAE,EAAE;QACtF,SAAS,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAChE,OAAO,SAAS,CAAC;IACrB,CAAC;IAED;;;;;;QAMI;IACJ,iBAAiB,EAAE,CAAC,QAAyB,EAAE,YAA2B,EAAE,SAAiB,EAAE,EAAE;QAC7F,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,EAAE,YAAY,CAAC,CAAC;QAC5C,OAAO,QAAQ,CAAC;IACpB,CAAC;CAGJ,CAAA","sourcesContent":["import {EditorProduct} from \"../@types/editorProduct\";\r\n\r\nexport const ProductsUtils = {\r\n\r\n /**\r\n * Change the position of multiple products, starting from index a and moving n products to index b, in use for multiple product actions\r\n * Use the splice method to extract and remove the products from their original positions, then use the splice method again to insert them into the new positions\r\n * Time complexity O(n), where n is the number of elements in the array that being modified\r\n * @param products - is the current products state\r\n * @param startIndex - is the starting index\r\n * @param numberOfProducts - is the number of products to move\r\n * @param destIndex - is the destination index you want to insert the product into\r\n **/\r\n changeProductsPosition: (products: EditorProduct[], startIndex: number, numberOfProducts: number, destIndex: number) => {\r\n products.splice(destIndex-numberOfProducts+1, 0, ...products.splice(startIndex, numberOfProducts));\r\n return products;\r\n },\r\n\r\n /**\r\n * Change position of a single product\r\n * Use the splice method to remove the product from its original position and insert it into the new position.\r\n * time complexity O(n)\r\n * @param gridItems - is the current products state\r\n * @param oldIndex - is the index of the product to move\r\n * @param newIndex - is the destination index\r\n **/\r\n changeProductPosition: (gridItems: EditorProduct[], oldIndex: number, newIndex: number) => {\r\n gridItems.splice(newIndex, 0, gridItems.splice(oldIndex, 1)[0]);\r\n return gridItems;\r\n },\r\n\r\n /**\r\n * Add product (hidden/unpublished/promotile) to specific position in the products array\r\n * Use the splice method to remove the product from its original position and insert it into the new position.\r\n * @param products - is the current products state\r\n * @param productToAdd - is the new product to add\r\n * @param destIndex - is the destination index\r\n **/\r\n addProductToIndex: (products: EditorProduct[], productToAdd: EditorProduct, destIndex: number) => {\r\n products.splice(destIndex, 0, productToAdd);\r\n return products;\r\n }\r\n\r\n\r\n}"]}
@@ -1,3 +0,0 @@
1
- export default class ShopifyMarkets {
2
- static getCountry(): any;
3
- }
@@ -1,7 +0,0 @@
1
- export default class ShopifyMarkets {
2
- static getCountry() {
3
- var _a;
4
- return (_a = window === null || window === void 0 ? void 0 : window.Shopify) === null || _a === void 0 ? void 0 : _a.country;
5
- }
6
- }
7
- //# sourceMappingURL=shopifyMarkets.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"shopifyMarkets.js","sourceRoot":"","sources":["../../src/utils/shopifyMarkets.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,cAAc;IAChC,MAAM,CAAC,UAAU;;QACZ,OAAO,MAAC,MAAc,aAAd,MAAM,uBAAN,MAAM,CAAU,OAAO,0CAAE,OAAO,CAAC;IAC7C,CAAC;CACJ","sourcesContent":["export default class ShopifyMarkets {\r\n static getCountry() {\r\n return (window as any)?.Shopify?.country;\r\n }\r\n}"]}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes