@unchainedshop/admin-ui 4.8.26 → 4.8.27

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 (377) hide show
  1. package/dist/chunk-45H2WVIC.js +51 -0
  2. package/dist/chunk-4VNS5WPM.js +37 -0
  3. package/dist/chunk-54DKBWXV.js +33 -0
  4. package/dist/chunk-6TXD4TA7.js +1196 -0
  5. package/dist/chunk-BGCKJQGS.js +58 -0
  6. package/dist/chunk-BYXBJQAS.js +1 -0
  7. package/dist/chunk-EJDZRZSZ.js +59 -0
  8. package/dist/chunk-ELPURWDC.js +75 -0
  9. package/dist/chunk-IAQPLRXZ.js +16 -0
  10. package/dist/chunk-ILYPJE4N.js +57 -0
  11. package/dist/chunk-IXBMHOB5.js +13 -0
  12. package/dist/chunk-KH5MK6ZW.js +18 -0
  13. package/dist/chunk-NT7RB7AK.js +70 -0
  14. package/dist/chunk-OKGJ6HDE.js +26 -0
  15. package/dist/chunk-Q6S3LBUF.js +180 -0
  16. package/dist/chunk-QNLGYFV7.js +22 -0
  17. package/dist/chunk-RAQV2GYF.js +70 -0
  18. package/dist/chunk-RHUFQVKL.js +514 -0
  19. package/dist/chunk-RVG6IOFC.js +11 -0
  20. package/dist/chunk-SRAAKMWY.js +39 -0
  21. package/dist/chunk-UFYR5WZT.js +165 -0
  22. package/dist/chunk-UXG7EYHC.js +614 -0
  23. package/dist/chunk-VDKQGOMV.js +840 -0
  24. package/dist/chunk-XHOCXPD5.js +9 -0
  25. package/dist/chunk-XJBPMIC4.js +284 -0
  26. package/dist/chunk-YO6PT7KD.js +13 -0
  27. package/dist/chunk-YSKZE2KN.js +652 -0
  28. package/dist/components/ui/Accordion/Accordion.d.ts +11 -0
  29. package/dist/components/ui/Accordion/Accordion.d.ts.map +1 -0
  30. package/dist/components/ui/Accordion/AccordionHeader.d.ts +6 -0
  31. package/dist/components/ui/Accordion/AccordionHeader.d.ts.map +1 -0
  32. package/dist/components/ui/Accordion/AccordionItem.d.ts +11 -0
  33. package/dist/components/ui/Accordion/AccordionItem.d.ts.map +1 -0
  34. package/dist/components/ui/ActiveInActive.d.ts +10 -0
  35. package/dist/components/ui/ActiveInActive.d.ts.map +1 -0
  36. package/dist/components/ui/AnimatedCounter.d.ts +7 -0
  37. package/dist/components/ui/AnimatedCounter.d.ts.map +1 -0
  38. package/dist/components/ui/Badge.d.ts +10 -0
  39. package/dist/components/ui/Badge.d.ts.map +1 -0
  40. package/dist/components/ui/BreadCrumbs.d.ts +7 -0
  41. package/dist/components/ui/BreadCrumbs.d.ts.map +1 -0
  42. package/dist/components/ui/Button.d.ts +36 -0
  43. package/dist/components/ui/Button.d.ts.map +1 -0
  44. package/dist/components/ui/CopyableText.d.ts +5 -0
  45. package/dist/components/ui/CopyableText.d.ts.map +1 -0
  46. package/dist/components/ui/DateInput.d.ts +15 -0
  47. package/dist/components/ui/DateInput.d.ts.map +1 -0
  48. package/dist/components/ui/DateRangeFilterInput.d.ts +4 -0
  49. package/dist/components/ui/DateRangeFilterInput.d.ts.map +1 -0
  50. package/dist/components/ui/DetailHeader.d.ts +6 -0
  51. package/dist/components/ui/DetailHeader.d.ts.map +1 -0
  52. package/dist/components/ui/DraggableIcon.d.ts +3 -0
  53. package/dist/components/ui/DraggableIcon.d.ts.map +1 -0
  54. package/dist/components/ui/ErrorBoundary.d.ts +18 -0
  55. package/dist/components/ui/ErrorBoundary.d.ts.map +1 -0
  56. package/dist/components/ui/ErrorFallback.d.ts +6 -0
  57. package/dist/components/ui/ErrorFallback.d.ts.map +1 -0
  58. package/dist/components/ui/HelpText.d.ts +11 -0
  59. package/dist/components/ui/HelpText.d.ts.map +1 -0
  60. package/dist/components/ui/ImageWithFallback.d.ts +7 -0
  61. package/dist/components/ui/ImageWithFallback.d.ts.map +1 -0
  62. package/dist/components/ui/InfoTextBanner.d.ts +6 -0
  63. package/dist/components/ui/InfoTextBanner.d.ts.map +1 -0
  64. package/dist/components/ui/JSONView.d.ts +6 -0
  65. package/dist/components/ui/JSONView.d.ts.map +1 -0
  66. package/dist/components/ui/ListHeader.d.ts +6 -0
  67. package/dist/components/ui/ListHeader.d.ts.map +1 -0
  68. package/dist/components/ui/Loading.d.ts +3 -0
  69. package/dist/components/ui/Loading.d.ts.map +1 -0
  70. package/dist/components/ui/NoData.d.ts +7 -0
  71. package/dist/components/ui/NoData.d.ts.map +1 -0
  72. package/dist/components/ui/NoImage.d.ts +7 -0
  73. package/dist/components/ui/NoImage.d.ts.map +1 -0
  74. package/dist/components/ui/NoImageSvg.d.ts +8 -0
  75. package/dist/components/ui/NoImageSvg.d.ts.map +1 -0
  76. package/dist/components/ui/PageHeader.d.ts +11 -0
  77. package/dist/components/ui/PageHeader.d.ts.map +1 -0
  78. package/dist/components/ui/Pagination.d.ts +8 -0
  79. package/dist/components/ui/Pagination.d.ts.map +1 -0
  80. package/dist/components/ui/Portal/Portal.d.ts +16 -0
  81. package/dist/components/ui/Portal/Portal.d.ts.map +1 -0
  82. package/dist/components/ui/Portal/Portal.types.d.ts +16 -0
  83. package/dist/components/ui/Portal/Portal.types.d.ts.map +1 -0
  84. package/dist/components/ui/SaveAndCancelButtons.d.ts +10 -0
  85. package/dist/components/ui/SaveAndCancelButtons.d.ts.map +1 -0
  86. package/dist/components/ui/SearchField.d.ts +7 -0
  87. package/dist/components/ui/SearchField.d.ts.map +1 -0
  88. package/dist/components/ui/Tab.d.ts +18 -0
  89. package/dist/components/ui/Tab.d.ts.map +1 -0
  90. package/dist/components/ui/Tag/TagInput.d.ts +14 -0
  91. package/dist/components/ui/Tag/TagInput.d.ts.map +1 -0
  92. package/dist/components/ui/Tag/TagList.d.ts +8 -0
  93. package/dist/components/ui/Tag/TagList.d.ts.map +1 -0
  94. package/dist/components/ui/Tag/TagListForm.d.ts +8 -0
  95. package/dist/components/ui/Tag/TagListForm.d.ts.map +1 -0
  96. package/dist/components/ui/Toggle.d.ts +11 -0
  97. package/dist/components/ui/Toggle.d.ts.map +1 -0
  98. package/dist/components/ui/ToolTip.d.ts +7 -0
  99. package/dist/components/ui/ToolTip.d.ts.map +1 -0
  100. package/dist/components/ui/card.d.ts +9 -0
  101. package/dist/components/ui/card.d.ts.map +1 -0
  102. package/dist/components/ui/chart.d.ts +42 -0
  103. package/dist/components/ui/chart.d.ts.map +1 -0
  104. package/dist/components/ui/form/CheckboxField.d.ts +4 -0
  105. package/dist/components/ui/form/CheckboxField.d.ts.map +1 -0
  106. package/dist/components/ui/form/ChoicesField.d.ts +12 -0
  107. package/dist/components/ui/form/ChoicesField.d.ts.map +1 -0
  108. package/dist/components/ui/form/Combobox.d.ts +20 -0
  109. package/dist/components/ui/form/Combobox.d.ts.map +1 -0
  110. package/dist/components/ui/form/DatePickerField.d.ts +4 -0
  111. package/dist/components/ui/form/DatePickerField.d.ts.map +1 -0
  112. package/dist/components/ui/form/EmailField.d.ts +7 -0
  113. package/dist/components/ui/form/EmailField.d.ts.map +1 -0
  114. package/dist/components/ui/form/FieldWithHelp.d.ts +10 -0
  115. package/dist/components/ui/form/FieldWithHelp.d.ts.map +1 -0
  116. package/dist/components/ui/form/FieldWrapper.d.ts +8 -0
  117. package/dist/components/ui/form/FieldWrapper.d.ts.map +1 -0
  118. package/dist/components/ui/form/FormErrors.d.ts +6 -0
  119. package/dist/components/ui/form/FormErrors.d.ts.map +1 -0
  120. package/dist/components/ui/form/JSONAreaField.d.ts +7 -0
  121. package/dist/components/ui/form/JSONAreaField.d.ts.map +1 -0
  122. package/dist/components/ui/form/MarkdownTextAreaField.d.ts +8 -0
  123. package/dist/components/ui/form/MarkdownTextAreaField.d.ts.map +1 -0
  124. package/dist/components/ui/form/PasswordField.d.ts +3 -0
  125. package/dist/components/ui/form/PasswordField.d.ts.map +1 -0
  126. package/dist/components/ui/form/SelectField.d.ts +11 -0
  127. package/dist/components/ui/form/SelectField.d.ts.map +1 -0
  128. package/dist/components/ui/form/SubmitButton.d.ts +9 -0
  129. package/dist/components/ui/form/SubmitButton.d.ts.map +1 -0
  130. package/dist/components/ui/form/TagInputField.d.ts +6 -0
  131. package/dist/components/ui/form/TagInputField.d.ts.map +1 -0
  132. package/dist/components/ui/form/TextAreaField.d.ts +8 -0
  133. package/dist/components/ui/form/TextAreaField.d.ts.map +1 -0
  134. package/dist/components/ui/form/TextField.d.ts +10 -0
  135. package/dist/components/ui/form/TextField.d.ts.map +1 -0
  136. package/dist/components/ui/form/index.d.ts +17 -0
  137. package/dist/components/ui/form/index.d.ts.map +1 -0
  138. package/dist/components/ui/icons.d.ts +4 -0
  139. package/dist/components/ui/icons.d.ts.map +1 -0
  140. package/dist/components/ui/index.d.ts +41 -0
  141. package/dist/components/ui/index.d.ts.map +1 -0
  142. package/dist/form.js +30108 -0
  143. package/dist/gql/types.d.ts +17209 -0
  144. package/dist/gql/types.d.ts.map +1 -0
  145. package/dist/hooks.js +41 -0
  146. package/dist/lib/utils.d.ts +3 -0
  147. package/dist/lib/utils.d.ts.map +1 -0
  148. package/dist/modal.js +114 -0
  149. package/dist/modules/UnchainedContext/UnchainedContext.d.ts +8 -0
  150. package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +1 -0
  151. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +7 -0
  152. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +1 -0
  153. package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts +3 -0
  154. package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts.map +1 -0
  155. package/dist/modules/accounts/fragment/UserFragment.d.ts +3 -0
  156. package/dist/modules/accounts/fragment/UserFragment.d.ts.map +1 -0
  157. package/dist/modules/accounts/hooks/useCurrentUser.d.ts +10 -0
  158. package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +1 -0
  159. package/dist/modules/accounts/hooks/useUsersCount.d.ts +8 -0
  160. package/dist/modules/accounts/hooks/useUsersCount.d.ts.map +1 -0
  161. package/dist/modules/accounts.js +1013 -0
  162. package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts +8 -0
  163. package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts.map +1 -0
  164. package/dist/modules/assortment.js +1121 -0
  165. package/dist/modules/common/components/AppContext.d.ts +18 -0
  166. package/dist/modules/common/components/AppContext.d.ts.map +1 -0
  167. package/dist/modules/common/components/FormWrapper.d.ts +8 -0
  168. package/dist/modules/common/components/FormWrapper.d.ts.map +1 -0
  169. package/dist/modules/common/components/ThemeWrapper.d.ts +10 -0
  170. package/dist/modules/common/components/ThemeWrapper.d.ts.map +1 -0
  171. package/dist/modules/common/data/iso-codes.d.ts +4 -0
  172. package/dist/modules/common/data/iso-codes.d.ts.map +1 -0
  173. package/dist/modules/common/data/miscellaneous.d.ts +51 -0
  174. package/dist/modules/common/data/miscellaneous.d.ts.map +1 -0
  175. package/dist/modules/common/fragments/AddressFragment.d.ts +3 -0
  176. package/dist/modules/common/fragments/AddressFragment.d.ts.map +1 -0
  177. package/dist/modules/common/hooks/useApp.d.ts +11 -0
  178. package/dist/modules/common/hooks/useApp.d.ts.map +1 -0
  179. package/dist/modules/common/hooks/useCSVExport.d.ts +10 -0
  180. package/dist/modules/common/hooks/useCSVExport.d.ts.map +1 -0
  181. package/dist/modules/common/hooks/useCSVImport.d.ts +18 -0
  182. package/dist/modules/common/hooks/useCSVImport.d.ts.map +1 -0
  183. package/dist/modules/common/hooks/useChatEndpointChecker.d.ts +5 -0
  184. package/dist/modules/common/hooks/useChatEndpointChecker.d.ts.map +1 -0
  185. package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts +10 -0
  186. package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts.map +1 -0
  187. package/dist/modules/common/hooks/useDashboardMetrics.d.ts +23 -0
  188. package/dist/modules/common/hooks/useDashboardMetrics.d.ts.map +1 -0
  189. package/dist/modules/common/hooks/useLocalStorage.d.ts +3 -0
  190. package/dist/modules/common/hooks/useLocalStorage.d.ts.map +1 -0
  191. package/dist/modules/common/hooks/useOrderAnalytics.d.ts +25 -0
  192. package/dist/modules/common/hooks/useOrderAnalytics.d.ts.map +1 -0
  193. package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts +16 -0
  194. package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts.map +1 -0
  195. package/dist/modules/common/hooks/useOutsideClick.d.ts +3 -0
  196. package/dist/modules/common/hooks/useOutsideClick.d.ts.map +1 -0
  197. package/dist/modules/common/hooks/usePortal.d.ts +20 -0
  198. package/dist/modules/common/hooks/usePortal.d.ts.map +1 -0
  199. package/dist/modules/common/hooks/useShopConfiguration.d.ts +8 -0
  200. package/dist/modules/common/hooks/useShopConfiguration.d.ts.map +1 -0
  201. package/dist/modules/common/hooks/useShopInfo.d.ts +41 -0
  202. package/dist/modules/common/hooks/useShopInfo.d.ts.map +1 -0
  203. package/dist/modules/common/hooks/useStatusTypes.d.ts +10 -0
  204. package/dist/modules/common/hooks/useStatusTypes.d.ts.map +1 -0
  205. package/dist/modules/common/hooks/useSystemRoles.d.ts +7 -0
  206. package/dist/modules/common/hooks/useSystemRoles.d.ts.map +1 -0
  207. package/dist/modules/common/hooks/useTheme.d.ts +7 -0
  208. package/dist/modules/common/hooks/useTheme.d.ts.map +1 -0
  209. package/dist/modules/common/utils/deBounce.d.ts +3 -0
  210. package/dist/modules/common/utils/deBounce.d.ts.map +1 -0
  211. package/dist/modules/common/utils/defaultNextImageLoader.d.ts +7 -0
  212. package/dist/modules/common/utils/defaultNextImageLoader.d.ts.map +1 -0
  213. package/dist/modules/common/utils/formatUsername.d.ts +3 -0
  214. package/dist/modules/common/utils/formatUsername.d.ts.map +1 -0
  215. package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts +30 -0
  216. package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts.map +1 -0
  217. package/dist/modules/common/utils/normalizeFilterKeys.d.ts +4 -0
  218. package/dist/modules/common/utils/normalizeFilterKeys.d.ts.map +1 -0
  219. package/dist/modules/common/utils/useFormatDateTime.d.ts +7 -0
  220. package/dist/modules/common/utils/useFormatDateTime.d.ts.map +1 -0
  221. package/dist/modules/common/utils/utils.d.ts +21 -0
  222. package/dist/modules/common/utils/utils.d.ts.map +1 -0
  223. package/dist/modules/country/fragments/CountryFragment.d.ts +3 -0
  224. package/dist/modules/country/fragments/CountryFragment.d.ts.map +1 -0
  225. package/dist/modules/country/hooks/useCountries.d.ts +22 -0
  226. package/dist/modules/country/hooks/useCountries.d.ts.map +1 -0
  227. package/dist/modules/country.js +108 -0
  228. package/dist/modules/currency.js +119 -0
  229. package/dist/modules/delivery-provider.js +269 -0
  230. package/dist/modules/enrollment.js +353 -0
  231. package/dist/modules/event.js +123 -0
  232. package/dist/modules/filter.js +448 -0
  233. package/dist/modules/forms/components/Form.d.ts +8 -0
  234. package/dist/modules/forms/components/Form.d.ts.map +1 -0
  235. package/dist/modules/forms/hooks/useField.d.ts +35 -0
  236. package/dist/modules/forms/hooks/useField.d.ts.map +1 -0
  237. package/dist/modules/forms/hooks/useForm.d.ts +44 -0
  238. package/dist/modules/forms/hooks/useForm.d.ts.map +1 -0
  239. package/dist/modules/forms/hooks/useFormContext.d.ts +3 -0
  240. package/dist/modules/forms/hooks/useFormContext.d.ts.map +1 -0
  241. package/dist/modules/forms/lib/FormContext.d.ts +13 -0
  242. package/dist/modules/forms/lib/FormContext.d.ts.map +1 -0
  243. package/dist/modules/forms/lib/clean.d.ts +3 -0
  244. package/dist/modules/forms/lib/clean.d.ts.map +1 -0
  245. package/dist/modules/forms/lib/validators.d.ts +20 -0
  246. package/dist/modules/forms/lib/validators.d.ts.map +1 -0
  247. package/dist/modules/language/fragments/LanguageFragment.d.ts +3 -0
  248. package/dist/modules/language/fragments/LanguageFragment.d.ts.map +1 -0
  249. package/dist/modules/language/hooks/useLanguages.d.ts +19 -0
  250. package/dist/modules/language/hooks/useLanguages.d.ts.map +1 -0
  251. package/dist/modules/language.js +106 -0
  252. package/dist/modules/modal/components/AlertMessage.d.ts +9 -0
  253. package/dist/modules/modal/components/AlertMessage.d.ts.map +1 -0
  254. package/dist/modules/modal/components/DangerMessage.d.ts +12 -0
  255. package/dist/modules/modal/components/DangerMessage.d.ts.map +1 -0
  256. package/dist/modules/modal/components/ImportResultMessage.d.ts +14 -0
  257. package/dist/modules/modal/components/ImportResultMessage.d.ts.map +1 -0
  258. package/dist/modules/modal/components/Modal.d.ts +10 -0
  259. package/dist/modules/modal/components/Modal.d.ts.map +1 -0
  260. package/dist/modules/modal/components/ModalWrapper.d.ts +6 -0
  261. package/dist/modules/modal/components/ModalWrapper.d.ts.map +1 -0
  262. package/dist/modules/modal/hooks/useModal.d.ts +7 -0
  263. package/dist/modules/modal/hooks/useModal.d.ts.map +1 -0
  264. package/dist/modules/modal/utils/ModalContext.d.ts +9 -0
  265. package/dist/modules/modal/utils/ModalContext.d.ts.map +1 -0
  266. package/dist/modules/order/fragments/OrderDetailFragment.d.ts +3 -0
  267. package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +1 -0
  268. package/dist/modules/order/fragments/OrderFragment.d.ts +3 -0
  269. package/dist/modules/order/fragments/OrderFragment.d.ts.map +1 -0
  270. package/dist/modules/order/hooks/useOrders.d.ts +46 -0
  271. package/dist/modules/order/hooks/useOrders.d.ts.map +1 -0
  272. package/dist/modules/order.js +563 -0
  273. package/dist/modules/payment-providers.js +206 -0
  274. package/dist/modules/product/hooks/useProductsCount.d.ts +8 -0
  275. package/dist/modules/product/hooks/useProductsCount.d.ts.map +1 -0
  276. package/dist/modules/product-review.js +251 -0
  277. package/dist/modules/product.js +1929 -0
  278. package/dist/modules/quotation.js +297 -0
  279. package/dist/modules/token.js +143 -0
  280. package/dist/modules/warehousing-providers.js +206 -0
  281. package/dist/modules/work/fragments/WorkFragment.d.ts +3 -0
  282. package/dist/modules/work/fragments/WorkFragment.d.ts.map +1 -0
  283. package/dist/modules/work/hooks/useAddWork.d.ts +6 -0
  284. package/dist/modules/work/hooks/useAddWork.d.ts.map +1 -0
  285. package/dist/modules/work/hooks/useWork.d.ts +32 -0
  286. package/dist/modules/work/hooks/useWork.d.ts.map +1 -0
  287. package/dist/modules/work.js +308 -0
  288. package/dist/plugins.js +8 -0
  289. package/dist/providers.js +6 -0
  290. package/dist/sdk/hooks.d.ts +9 -0
  291. package/dist/sdk/hooks.d.ts.map +1 -0
  292. package/dist/sdk/modal.d.ts +7 -0
  293. package/dist/sdk/modal.d.ts.map +1 -0
  294. package/dist/sdk/plugins.d.ts +67 -0
  295. package/dist/sdk/plugins.d.ts.map +1 -0
  296. package/dist/sdk/providers.d.ts +5 -0
  297. package/dist/sdk/providers.d.ts.map +1 -0
  298. package/dist/sdk/theme.d.ts +26 -0
  299. package/dist/sdk/theme.d.ts.map +1 -0
  300. package/dist/theme.js +34 -0
  301. package/dist/ui.js +21540 -0
  302. package/out/403/index.html +2 -2
  303. package/out/404/index.html +2 -2
  304. package/out/404.html +2 -2
  305. package/out/423/index.html +2 -2
  306. package/out/500/index.html +2 -2
  307. package/out/_next/static/chunks/{31_pg1fxqgdfx.js → 01crynfjy3xpb.js} +2 -2
  308. package/out/_next/static/chunks/{1hwup6qqzqzh8.js → 1-mz7zwy-mbvq.js} +2 -2
  309. package/out/_next/static/chunks/{2ecq8dhsm2eu1.js → 1szkbg0-e_tli.js} +1 -1
  310. package/out/_next/static/chunks/{0ac5zzn3zeki5.js → 2ncenexps2330.js} +2 -2
  311. package/out/_next/static/chunks/3-2opr3e2h-8o.js +105 -0
  312. package/out/_next/static/chunks/{turbopack-14zydki2yqyd3.js → turbopack-058ikg9c4qsyu.js} +1 -1
  313. package/out/_next/static/chunks/{turbopack-0la8grv9f6bxn.js → turbopack-22gnlzp5il9ai.js} +1 -1
  314. package/out/_next/static/chunks/{turbopack-1w2r6t0rjz8pp.js → turbopack-2h_05wv-1o-qp.js} +1 -1
  315. package/out/_next/static/{_TiowajLX6Z3MYsLPNgxd → hZLisNV-2KMtO7y1-ggVm}/_buildManifest.js +2 -2
  316. package/out/_offline/index.html +2 -2
  317. package/out/account/forgot-password/index.html +2 -2
  318. package/out/account/index.html +2 -2
  319. package/out/assortments/AssortmentDetailPage/index.html +2 -2
  320. package/out/assortments/index.html +2 -2
  321. package/out/assortments/new/index.html +2 -2
  322. package/out/copilot/index.html +2 -2
  323. package/out/country/CountryDetailPage/index.html +2 -2
  324. package/out/country/index.html +2 -2
  325. package/out/country/new/index.html +2 -2
  326. package/out/currency/CurrencyDetailPage/index.html +2 -2
  327. package/out/currency/index.html +2 -2
  328. package/out/currency/new/index.html +2 -2
  329. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +2 -2
  330. package/out/delivery-provider/index.html +2 -2
  331. package/out/delivery-provider/new/index.html +2 -2
  332. package/out/enrollments/EnrollmentDetailPage/index.html +2 -2
  333. package/out/enrollments/index.html +2 -2
  334. package/out/events/EventDetailPage/index.html +2 -2
  335. package/out/events/index.html +2 -2
  336. package/out/exports/index.html +2 -2
  337. package/out/external/index.html +2 -2
  338. package/out/filters/FilterDetailPage/index.html +2 -2
  339. package/out/filters/index.html +2 -2
  340. package/out/filters/new/index.html +2 -2
  341. package/out/index.html +2 -2
  342. package/out/install/index.html +2 -2
  343. package/out/language/LanguageDetailPage/index.html +2 -2
  344. package/out/language/index.html +2 -2
  345. package/out/language/new/index.html +2 -2
  346. package/out/log-in/index.html +2 -2
  347. package/out/manifest.json +48 -0
  348. package/out/orders/OrderDetailPage/index.html +2 -2
  349. package/out/orders/index.html +2 -2
  350. package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
  351. package/out/payment-provider/index.html +2 -2
  352. package/out/payment-provider/new/index.html +2 -2
  353. package/out/products/ProductDetailPage/index.html +2 -2
  354. package/out/products/index.html +2 -2
  355. package/out/products/new/index.html +2 -2
  356. package/out/quotations/QuotationDetailPage/index.html +2 -2
  357. package/out/quotations/index.html +2 -2
  358. package/out/reset-password/index.html +2 -2
  359. package/out/sign-up/index.html +2 -2
  360. package/out/styleguide/index.html +2 -2
  361. package/out/tokens/TokenDetailPage/index.html +2 -2
  362. package/out/tokens/index.html +2 -2
  363. package/out/users/UserDetailPage/index.html +2 -2
  364. package/out/users/index.html +2 -2
  365. package/out/users/new/index.html +2 -2
  366. package/out/verify-email/index.html +2 -2
  367. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
  368. package/out/warehousing-provider/index.html +2 -2
  369. package/out/warehousing-provider/new/index.html +2 -2
  370. package/out/works/WorkDetailPage/index.html +2 -2
  371. package/out/works/WorkQueueListView/index.html +2 -2
  372. package/out/works/index.html +2 -2
  373. package/out/works/management/index.html +2 -2
  374. package/package.json +1 -1
  375. package/out/_next/static/chunks/1t20r1ofch5r3.js +0 -95
  376. /package/out/_next/static/{_TiowajLX6Z3MYsLPNgxd → hZLisNV-2KMtO7y1-ggVm}/_clientMiddlewareManifest.js +0 -0
  377. /package/out/_next/static/{_TiowajLX6Z3MYsLPNgxd → hZLisNV-2KMtO7y1-ggVm}/_ssgManifest.js +0 -0
@@ -0,0 +1,206 @@
1
+ import { useUnchainedContext_default } from '../chunk-IAQPLRXZ.js';
2
+ import '../chunk-4VNS5WPM.js';
3
+ import { gql } from '@apollo/client';
4
+ import { useMutation, useQuery } from '@apollo/client/react';
5
+
6
+ var PaymentProviderFragment = gql`
7
+ fragment PaymentProviderFragment on PaymentProvider {
8
+ _id
9
+ created
10
+ updated
11
+ deleted
12
+ isActive
13
+ type
14
+ interface {
15
+ _id
16
+ label
17
+ version
18
+ }
19
+ configuration
20
+ configurationError
21
+ }
22
+ `;
23
+ var PaymentProviderFragment_default = PaymentProviderFragment;
24
+
25
+ // src/modules/payment-providers/hooks/useCreatePaymentProvider.ts
26
+ var CreatePaymentProviderMutation = gql`
27
+ mutation CreatePaymentProvider(
28
+ $paymentProvider: CreatePaymentProviderInput!
29
+ ) {
30
+ createPaymentProvider(paymentProvider: $paymentProvider) {
31
+ ...PaymentProviderFragment
32
+ }
33
+ }
34
+ ${PaymentProviderFragment_default}
35
+ `;
36
+ var useCreatePaymentProvider = () => {
37
+ const [createPaymentProviderMutation, { data, loading, error }] = useMutation(CreatePaymentProviderMutation);
38
+ const createPaymentProvider = async ({
39
+ paymentProvider
40
+ }) => {
41
+ return createPaymentProviderMutation({
42
+ variables: { paymentProvider },
43
+ refetchQueries: ["PaymentProviders", "ShopStatus"]
44
+ });
45
+ };
46
+ const newPaymentProvider = data?.createPaymentProvider;
47
+ return {
48
+ createPaymentProvider,
49
+ newPaymentProvider,
50
+ loading,
51
+ error
52
+ };
53
+ };
54
+ var useCreatePaymentProvider_default = useCreatePaymentProvider;
55
+ var PaymentInterfacesQuery = gql`
56
+ query PaymentInterfaces($providerType: PaymentProviderType) {
57
+ paymentInterfaces(type: $providerType) {
58
+ _id
59
+ value: _id
60
+ label
61
+ }
62
+ }
63
+ `;
64
+ var usePaymentInterfacesByType = ({
65
+ providerType
66
+ }) => {
67
+ const { data, loading, error } = useQuery(PaymentInterfacesQuery, {
68
+ skip: !providerType,
69
+ variables: { providerType }
70
+ });
71
+ const paymentInterfaces = data?.paymentInterfaces || [];
72
+ return {
73
+ paymentInterfaces,
74
+ loading,
75
+ error
76
+ };
77
+ };
78
+ var usePaymentInterfacesByType_default = usePaymentInterfacesByType;
79
+ var GetPaymentProviderQuery = (inlineFragment = "") => gql`
80
+ query PaymentProvider($paymentProviderId: ID!) {
81
+ paymentProvider(paymentProviderId: $paymentProviderId) {
82
+ ...PaymentProviderFragment
83
+ ${inlineFragment}
84
+ }
85
+ }
86
+ ${PaymentProviderFragment_default}
87
+ `;
88
+ var usePaymentProvider = ({
89
+ paymentProviderId = null
90
+ }) => {
91
+ const { customProperties } = useUnchainedContext_default();
92
+ const { data, loading, error } = useQuery(GetPaymentProviderQuery(customProperties?.PaymentProvider), {
93
+ skip: !paymentProviderId,
94
+ variables: { paymentProviderId }
95
+ });
96
+ return {
97
+ paymentProvider: data?.paymentProvider,
98
+ loading,
99
+ error
100
+ };
101
+ };
102
+ var usePaymentProvider_default = usePaymentProvider;
103
+ var PaymentProvidersTypeQuery = gql`
104
+ query PaymentProvidersType {
105
+ paymentProviderType: __type(name: "PaymentProviderType") {
106
+ options: enumValues {
107
+ value: name
108
+ label: description
109
+ }
110
+ }
111
+ }
112
+ `;
113
+ var usePaymentProviderTypes = () => {
114
+ const { data, loading, error } = useQuery(PaymentProvidersTypeQuery);
115
+ const paymentProviderType = data?.paymentProviderType?.options || [];
116
+ return {
117
+ paymentProviderType,
118
+ loading,
119
+ error
120
+ };
121
+ };
122
+ var usePaymentProviderTypes_default = usePaymentProviderTypes;
123
+ var PaymentProvidersQuery = gql`
124
+ query PaymentProviders($type: PaymentProviderType) {
125
+ paymentProviders(type: $type) {
126
+ ...PaymentProviderFragment
127
+ }
128
+ paymentProvidersCount(type: $type)
129
+ }
130
+ ${PaymentProviderFragment_default}
131
+ `;
132
+ var usePaymentProviders = ({
133
+ type = null
134
+ } = {}) => {
135
+ const variables = {};
136
+ if (type) variables.type = type;
137
+ const { data, loading, error } = useQuery(PaymentProvidersQuery, {
138
+ variables
139
+ });
140
+ const paymentProviders = data?.paymentProviders || [];
141
+ return {
142
+ paymentProviders,
143
+ loading,
144
+ error,
145
+ paymentProvidersCount: data?.paymentProvidersCount || 0
146
+ };
147
+ };
148
+ var usePaymentProviders_default = usePaymentProviders;
149
+ var RemovePaymentProviderMutation = gql`
150
+ mutation RemovePaymentProvider($paymentProviderId: ID!) {
151
+ removePaymentProvider(paymentProviderId: $paymentProviderId) {
152
+ _id
153
+ }
154
+ }
155
+ `;
156
+ var useRemovePaymentProvider = () => {
157
+ const [removePaymentProviderMutation] = useMutation(RemovePaymentProviderMutation);
158
+ const removePaymentProvider = async ({
159
+ paymentProviderId
160
+ }) => {
161
+ return removePaymentProviderMutation({
162
+ variables: {
163
+ paymentProviderId
164
+ },
165
+ refetchQueries: ["PaymentProviders", "ShopStatus"]
166
+ });
167
+ };
168
+ return {
169
+ removePaymentProvider
170
+ };
171
+ };
172
+ var useRemovePaymentProvider_default = useRemovePaymentProvider;
173
+ var UpdatePaymentProviderMutation = gql`
174
+ mutation UpdatePaymentProvider(
175
+ $paymentProvider: UpdateProviderInput!
176
+ $paymentProviderId: ID!
177
+ ) {
178
+ updatePaymentProvider(
179
+ paymentProvider: $paymentProvider
180
+ paymentProviderId: $paymentProviderId
181
+ ) {
182
+ ...PaymentProviderFragment
183
+ }
184
+ }
185
+ ${PaymentProviderFragment_default}
186
+ `;
187
+ var useUpdatePaymentProvider = () => {
188
+ const [updatePaymentProviderMutation] = useMutation(UpdatePaymentProviderMutation);
189
+ const updatePaymentProvider = async ({
190
+ configuration,
191
+ paymentProviderId
192
+ }) => {
193
+ return updatePaymentProviderMutation({
194
+ variables: {
195
+ paymentProvider: { configuration },
196
+ paymentProviderId
197
+ }
198
+ });
199
+ };
200
+ return {
201
+ updatePaymentProvider
202
+ };
203
+ };
204
+ var useUpdatePaymentProvider_default = useUpdatePaymentProvider;
205
+
206
+ export { useCreatePaymentProvider_default as useCreatePaymentProvider, usePaymentInterfacesByType_default as usePaymentInterfacesByType, usePaymentProvider_default as usePaymentProvider, usePaymentProviderTypes_default as usePaymentProviderTypes, usePaymentProviders_default as usePaymentProviders, useRemovePaymentProvider_default as useRemovePaymentProvider, useUpdatePaymentProvider_default as useUpdatePaymentProvider };
@@ -0,0 +1,8 @@
1
+ import { IProductsCountQueryVariables } from '../../../gql/types';
2
+ declare const useProductsCount: ({ queryString, tags, includeDrafts, }: IProductsCountQueryVariables) => {
3
+ productsCount: number;
4
+ loading: boolean;
5
+ error: import("@apollo/client").ErrorLike;
6
+ };
7
+ export default useProductsCount;
8
+ //# sourceMappingURL=useProductsCount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useProductsCount.d.ts","sourceRoot":"","sources":["../../../../src/modules/product/hooks/useProductsCount.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,4BAA4B,EAC7B,MAAM,oBAAoB,CAAC;AAkB5B,QAAA,MAAM,gBAAgB,GAAI,uCAIvB,4BAA4B;;;;CAoB9B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,251 @@
1
+ import { ProductReviewDetailFragment_default } from '../chunk-ILYPJE4N.js';
2
+ import { useApp_default } from '../chunk-BGCKJQGS.js';
3
+ import { ProductBriefFragment_default } from '../chunk-EJDZRZSZ.js';
4
+ import '../chunk-ELPURWDC.js';
5
+ import '../chunk-BYXBJQAS.js';
6
+ import '../chunk-RAQV2GYF.js';
7
+ import '../chunk-54DKBWXV.js';
8
+ import '../chunk-UFYR5WZT.js';
9
+ import '../chunk-IAQPLRXZ.js';
10
+ import '../chunk-4VNS5WPM.js';
11
+ import { gql } from '@apollo/client';
12
+ import { useMutation, useQuery } from '@apollo/client/react';
13
+
14
+ var AddProductReviewVoteMutation = gql`
15
+ mutation AddProductReviewVote(
16
+ $productReviewId: ID!
17
+ $type: ProductReviewVoteType!
18
+ $meta: JSON
19
+ $forceLocale: Locale
20
+ ) {
21
+ addProductReviewVote(
22
+ productReviewId: $productReviewId
23
+ type: $type
24
+ meta: $meta
25
+ ) {
26
+ _id
27
+ }
28
+ }
29
+ `;
30
+ var useAddProductReviewVote = () => {
31
+ const [addProductReviewVoteMutation] = useMutation(AddProductReviewVoteMutation);
32
+ const addProductReviewVote = async ({
33
+ productReviewId,
34
+ type,
35
+ meta
36
+ }) => {
37
+ return addProductReviewVoteMutation({
38
+ variables: {
39
+ productReviewId,
40
+ type,
41
+ meta
42
+ },
43
+ refetchQueries: ["ProductReviewByProduct", "ProductReviewByUser"]
44
+ });
45
+ };
46
+ return {
47
+ addProductReviewVote
48
+ };
49
+ };
50
+ var useAddProductReviewVote_default = useAddProductReviewVote;
51
+ var CreateProductReviewMutation = gql`
52
+ mutation CreateProductReview(
53
+ $productId: ID!
54
+ $productReview: ProductReviewInput!
55
+ $forceLocale: Locale
56
+ ) {
57
+ createProductReview(productId: $productId, productReview: $productReview) {
58
+ _id
59
+ }
60
+ }
61
+ `;
62
+ var useCreateProductReview = () => {
63
+ const [createProductReviewMutation] = useMutation(CreateProductReviewMutation);
64
+ const createProductReview = async ({
65
+ productId,
66
+ productReview: { title, rating, review }
67
+ }) => {
68
+ return createProductReviewMutation({
69
+ variables: {
70
+ productId,
71
+ productReview: {
72
+ title,
73
+ rating,
74
+ review
75
+ }
76
+ },
77
+ refetchQueries: ["ProductReviewByProduct", "ProductReviewByUser"]
78
+ });
79
+ };
80
+ return {
81
+ createProductReview
82
+ };
83
+ };
84
+ var useCreateProductReview_default = useCreateProductReview;
85
+ var ProductReviewQuery = gql`
86
+ query ProductReviewByProduct(
87
+ $productId: ID
88
+ $slug: String
89
+ $limit: Int
90
+ $offset: Int
91
+ $sort: [SortOptionInput!]
92
+ $forceLocale: Locale
93
+ ) {
94
+ product(productId: $productId, slug: $slug) {
95
+ _id
96
+ reviews(limit: $limit, offset: $offset, sort: $sort) {
97
+ ...ProductReviewDetailFragment
98
+ }
99
+ reviewsCount
100
+ }
101
+ }
102
+ ${ProductReviewDetailFragment_default}
103
+ `;
104
+ var useProductReviewsByProductId = ({
105
+ productId = null,
106
+ slug = null,
107
+ limit = 10,
108
+ offset = 0,
109
+ sort: sortOptions = [{ key: "created", value: "DESC" /* Desc */ }]
110
+ } = {}) => {
111
+ const { selectedLocale } = useApp_default();
112
+ const { data, loading, error, fetchMore } = useQuery(ProductReviewQuery, {
113
+ skip: !productId,
114
+ variables: {
115
+ productId,
116
+ slug,
117
+ limit,
118
+ offset,
119
+ sort: sortOptions,
120
+ forceLocale: selectedLocale
121
+ }
122
+ });
123
+ const product = data?.product;
124
+ const productReviews = product?.reviews || [];
125
+ const reviewsCount = product?.reviewsCount || 0;
126
+ const loadMore = () => {
127
+ fetchMore({
128
+ variables: { offset: productReviews?.length }
129
+ });
130
+ };
131
+ return {
132
+ productReviews,
133
+ loading,
134
+ error,
135
+ reviewsCount,
136
+ loadMore
137
+ };
138
+ };
139
+ var useProductReviewsByProductId_default = useProductReviewsByProductId;
140
+ var RemoveProductReviewMutation = gql`
141
+ mutation RemoveProductReview($productReviewId: ID!) {
142
+ removeProductReview(productReviewId: $productReviewId) {
143
+ _id
144
+ }
145
+ }
146
+ `;
147
+ var useRemoveProductReview = () => {
148
+ const [removeProductReviewMutation] = useMutation(RemoveProductReviewMutation);
149
+ const removeProductReview = async ({
150
+ productReviewId
151
+ }) => {
152
+ return removeProductReviewMutation({
153
+ variables: {
154
+ productReviewId
155
+ },
156
+ refetchQueries: ["ProductReviewByProduct", "ProductReviewByUser"]
157
+ });
158
+ };
159
+ return {
160
+ removeProductReview
161
+ };
162
+ };
163
+ var useRemoveProductReview_default = useRemoveProductReview;
164
+ var RemoveProductReviewVoteMutation = gql`
165
+ mutation RemoveProductReviewVote(
166
+ $productReviewId: ID!
167
+ $type: ProductReviewVoteType!
168
+ $forceLocale: Locale
169
+ ) {
170
+ removeProductReviewVote(productReviewId: $productReviewId, type: $type) {
171
+ _id
172
+ }
173
+ }
174
+ `;
175
+ var useRemoveProductReviewVote = () => {
176
+ const [removeProductReviewVoteMutation] = useMutation(RemoveProductReviewVoteMutation);
177
+ const removeProductReviewVote = async ({
178
+ productReviewId,
179
+ type
180
+ }) => {
181
+ return removeProductReviewVoteMutation({
182
+ variables: {
183
+ productReviewId,
184
+ type
185
+ },
186
+ refetchQueries: ["ProductReviewByProduct", "ProductReviewByUser"]
187
+ });
188
+ };
189
+ return {
190
+ removeProductReviewVote
191
+ };
192
+ };
193
+ var useRemoveProductReviewVote_default = useRemoveProductReviewVote;
194
+ var ProductReviewQuery2 = gql`
195
+ query UserProductReviews(
196
+ $userId: ID!
197
+ $limit: Int
198
+ $offset: Int
199
+ $sort: [SortOptionInput!]
200
+ $forceLocale: Locale
201
+ ) {
202
+ user(userId: $userId) {
203
+ _id
204
+ reviews(limit: $limit, offset: $offset, sort: $sort) {
205
+ ...ProductReviewDetailFragment
206
+ product {
207
+ ...ProductBriefFragment
208
+ }
209
+ }
210
+ reviewsCount
211
+ }
212
+ }
213
+ ${ProductReviewDetailFragment_default}
214
+ ${ProductBriefFragment_default}
215
+ `;
216
+ var useUserProductReviews = ({
217
+ userId = null,
218
+ limit = 10,
219
+ offset = 0,
220
+ sort: sortOptions = [{ key: "created", value: "DESC" /* Desc */ }]
221
+ }) => {
222
+ const { selectedLocale } = useApp_default();
223
+ const { data, loading, error, fetchMore } = useQuery(ProductReviewQuery2, {
224
+ skip: !userId,
225
+ variables: {
226
+ userId,
227
+ limit,
228
+ offset,
229
+ sort: sortOptions,
230
+ forceLocale: selectedLocale
231
+ }
232
+ });
233
+ const user = data?.user;
234
+ const reviews = user?.reviews || [];
235
+ const reviewsCount = user?.reviewsCount || 0;
236
+ const loadMore = () => {
237
+ fetchMore({
238
+ variables: { offset: reviews?.length }
239
+ });
240
+ };
241
+ return {
242
+ reviews,
243
+ loading,
244
+ error,
245
+ loadMore,
246
+ reviewsCount
247
+ };
248
+ };
249
+ var useUserProductReviews_default = useUserProductReviews;
250
+
251
+ export { useAddProductReviewVote_default as useAddProductReviewVote, useCreateProductReview_default as useCreateProductReview, useProductReviewsByProductId_default as useProductReviewsByProductId, useRemoveProductReview_default as useRemoveProductReview, useRemoveProductReviewVote_default as useRemoveProductReviewVote, useUserProductReviews_default as useUserProductReviews };