@pisell/private-materials 6.3.6 → 6.3.9

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 (371) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  8. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  9. package/es/components/booking/addons/model.d.ts +1 -10
  10. package/es/components/booking/forms/model.d.ts +1 -10
  11. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  12. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  13. package/es/components/booking/info/model.d.ts +1 -10
  14. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  15. package/es/components/booking/info2/service/addService/utils.js +16 -1
  16. package/es/components/booking/model.d.ts +1 -9
  17. package/es/components/booking/notes/model.d.ts +1 -10
  18. package/es/components/booking/payments/model.d.ts +1 -10
  19. package/es/components/booking/utils.d.ts +2 -2
  20. package/es/components/eftposPay/amount.d.ts +1 -1
  21. package/es/components/eftposPay/device.d.ts +1 -1
  22. package/es/components/eftposPay/hooks.d.ts +2 -2
  23. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  24. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  25. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  26. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  27. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  28. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  29. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  30. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  31. package/es/components/pay/toC/model.d.ts +1 -9
  32. package/es/components/schedules/model.d.ts +1 -9
  33. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  34. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  35. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  36. package/es/components/wallet/Detail/model.d.ts +1 -13
  37. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  38. package/es/components/wallet/PointCard/model.d.ts +1 -13
  39. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  40. package/es/components/wallet/Voucher/model.d.ts +1 -13
  41. package/es/components/wallet/model.d.ts +1 -9
  42. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  43. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  44. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  45. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  46. package/lib/components/booking/addons/model.d.ts +1 -10
  47. package/lib/components/booking/forms/model.d.ts +1 -10
  48. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  49. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  50. package/lib/components/booking/info/model.d.ts +1 -10
  51. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  52. package/lib/components/booking/info2/service/addService/utils.js +15 -3
  53. package/lib/components/booking/model.d.ts +1 -9
  54. package/lib/components/booking/notes/model.d.ts +1 -10
  55. package/lib/components/booking/payments/model.d.ts +1 -10
  56. package/lib/components/booking/utils.d.ts +2 -2
  57. package/lib/components/eftposPay/amount.d.ts +1 -1
  58. package/lib/components/eftposPay/device.d.ts +1 -1
  59. package/lib/components/eftposPay/hooks.d.ts +2 -2
  60. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  61. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  62. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  63. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  64. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  65. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  66. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  67. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  68. package/lib/components/pay/toC/model.d.ts +1 -9
  69. package/lib/components/schedules/model.d.ts +1 -9
  70. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  71. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  72. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  73. package/lib/components/wallet/Detail/model.d.ts +1 -13
  74. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  75. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  76. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  77. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  78. package/lib/components/wallet/model.d.ts +1 -9
  79. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  80. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  81. package/package.json +4 -4
  82. package/es/businessModel/SalesModel/Sales/index.d.ts +0 -24
  83. package/es/businessModel/SalesModel/hooks/index.d.ts +0 -1
  84. package/es/businessModel/SalesModel/index.d.ts +0 -3
  85. package/es/businessModel/index.d.ts +0 -0
  86. package/es/components/Sales/Cart/serve.d.ts +0 -2
  87. package/es/components/Sales/Cart/types.d.ts +0 -31
  88. package/es/components/Sales/Cart/utils.d.ts +0 -63
  89. package/es/components/Sales/Checkout/index.d.ts +0 -37
  90. package/es/components/Sales/Checkout/serve.d.ts +0 -15
  91. package/es/components/Sales/Checkout/utils.d.ts +0 -41
  92. package/es/components/Sales/Customer/index.d.ts +0 -25
  93. package/es/components/Sales/Event/Detail.d.ts +0 -30
  94. package/es/components/Sales/Event/index.d.ts +0 -30
  95. package/es/components/Sales/Event/serve.d.ts +0 -49
  96. package/es/components/Sales/Holder/index.d.ts +0 -33
  97. package/es/components/Sales/Holder/serve.d.ts +0 -8
  98. package/es/components/Sales/Init/index.d.ts +0 -25
  99. package/es/components/Sales/Init/serve.d.ts +0 -3
  100. package/es/components/Sales/Resource/index.d.ts +0 -26
  101. package/es/components/Sales/Resource/serve.d.ts +0 -12
  102. package/es/components/Sales/Step/index.d.ts +0 -39
  103. package/es/components/Sales/Summary/index.d.ts +0 -35
  104. package/es/components/Sales/Summary/serve.d.ts +0 -1
  105. package/es/components/Sales/Summary/utils.d.ts +0 -51
  106. package/es/components/Sales/hooks/index.d.ts +0 -1
  107. package/es/components/Sales/index.d.ts +0 -20
  108. package/es/components/Sales/utils/index.d.ts +0 -1
  109. package/es/components/appointmentBooking/components/Cart/utils.d.ts +0 -56
  110. package/es/components/appointmentBooking/components/ConfirmInformation/utils.d.ts +0 -12
  111. package/es/components/appointmentBooking/components/Date/state.d.ts +0 -63
  112. package/es/components/appointmentBooking/components/Form/index.d.ts +0 -4
  113. package/es/components/appointmentBooking/components/Form/utils.d.ts +0 -8
  114. package/es/components/appointmentBooking/components/Resource/utils.d.ts +0 -5
  115. package/es/components/appointmentBooking/context.d.ts +0 -35
  116. package/es/components/appointmentBooking/locales.d.ts +0 -360
  117. package/es/components/appointmentBooking/type.d.ts +0 -17
  118. package/es/components/booking/components/drawer/index.d.ts +0 -19
  119. package/es/components/booking/components/tabPane/index.d.ts +0 -4
  120. package/es/components/booking/components/voucher/utils.d.ts +0 -4
  121. package/es/components/booking/editBookingModal/locales.d.ts +0 -21
  122. package/es/components/booking/editBookingModal/mock.d.ts +0 -807
  123. package/es/components/booking/editBookingModal/serve.d.ts +0 -52
  124. package/es/components/booking/editBookingModal/type.d.ts +0 -12
  125. package/es/components/booking/editBookingModal/utils.d.ts +0 -12
  126. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  127. package/es/components/booking/info/Provider.d.ts +0 -0
  128. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -6
  129. package/es/components/booking/info/hooks/useGetHolderList.d.ts +0 -2
  130. package/es/components/booking/info/index.d.ts +0 -3
  131. package/es/components/booking/info/service/editService/constants.d.ts +0 -1
  132. package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
  133. package/es/components/booking/info/service/serviceManager/utils.d.ts +0 -0
  134. package/es/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
  135. package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +0 -7
  136. package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +0 -7
  137. package/es/components/booking/info2/utils.d.ts +0 -4
  138. package/es/components/booking/locales.d.ts +0 -831
  139. package/es/components/eftposPay/const.d.ts +0 -184
  140. package/es/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  141. package/es/components/eftposPay/linkly/service.d.ts +0 -32
  142. package/es/components/eftposPay/locales.d.ts +0 -330
  143. package/es/components/eftposPay/manufacturer.d.ts +0 -7
  144. package/es/components/eftposPay/store/index.d.ts +0 -355
  145. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
  146. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
  147. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
  148. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
  149. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
  150. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
  151. package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
  152. package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
  153. package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -14
  154. package/es/components/eventBooking/locales.d.ts +0 -246
  155. package/es/components/eventBooking/type.d.ts +0 -17
  156. package/es/components/eventBooking/utils.d.ts +0 -45
  157. package/es/components/login/locales.d.ts +0 -24
  158. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +0 -2
  159. package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +0 -2
  160. package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +0 -2
  161. package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +0 -2
  162. package/es/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +0 -2
  163. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +0 -2
  164. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +0 -2
  165. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -113
  166. package/es/components/pay/toC/locales.d.ts +0 -289
  167. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
  168. package/es/components/productSelect/components/TabProduct/tabs/index.d.ts +0 -21
  169. package/es/components/productSelect/hooks/useToken.d.ts +0 -18
  170. package/es/components/productSelect/locales.d.ts +0 -18
  171. package/es/components/productSelect/mock.d.ts +0 -134
  172. package/es/components/productSelect/theme/token.d.ts +0 -17
  173. package/es/components/shoppingCart/Provider.d.ts +0 -3
  174. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -3
  175. package/es/components/shoppingCart/components/Render/index.d.ts +0 -3
  176. package/es/components/shoppingCart/hooks/useContext.d.ts +0 -1
  177. package/es/components/shoppingCart/locales.d.ts +0 -33
  178. package/es/components/shoppingCart/mock.d.ts +0 -40
  179. package/es/components/shoppingCart/type.d.ts +0 -48
  180. package/es/components/shoppingCart/utils.d.ts +0 -63
  181. package/es/components/stepController/components/Content/index.d.ts +0 -7
  182. package/es/components/stepController/components/Footer/index.d.ts +0 -8
  183. package/es/components/stepController/locales.d.ts +0 -27
  184. package/es/components/stepController/types.d.ts +0 -23
  185. package/es/components/subTotal/locales.d.ts +0 -42
  186. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
  187. package/es/components/ticketBooking/data.d.ts +0 -58
  188. package/es/components/ticketBooking/hooks/useNetworkStatus.d.ts +0 -11
  189. package/es/components/ticketBooking/locales.d.ts +0 -174
  190. package/es/components/ticketBooking/miniRedux.d.ts +0 -22
  191. package/es/components/ticketBooking/serve.d.ts +0 -287
  192. package/es/components/wallet/Detail/locales.d.ts +0 -96
  193. package/es/components/wallet/Detail/serve.d.ts +0 -39
  194. package/es/components/wallet/RechargeableCard/serve.d.ts +0 -23
  195. package/es/components/wallet/Voucher/locales.d.ts +0 -21
  196. package/es/components/wallet/components/index.d.ts +0 -2
  197. package/es/components/wallet/locales.d.ts +0 -132
  198. package/es/components/walletList/locales.d.ts +0 -18
  199. package/es/components/walletList/model.d.ts +0 -6
  200. package/es/components/walletList/serve.d.ts +0 -20
  201. package/es/components/walletList/types/index.d.ts +0 -194
  202. package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
  203. package/es/components/workSpaceList/components/Card/constants.d.ts +0 -2
  204. package/es/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
  205. package/es/hooks/useEngineContext.d.ts +0 -10
  206. package/es/hooks/useLocale.d.ts +0 -2
  207. package/es/hooks/useLoginUser.d.ts +0 -2
  208. package/es/hooks/useWindowSize.d.ts +0 -5
  209. package/es/plus/productSelect/CategoryTabs/CategorySkeleton.d.ts +0 -10
  210. package/es/plus/productSelect/CategoryTabs/index.d.ts +0 -18
  211. package/es/plus/productSelect/ProductCard/ProductCardSkeleton.d.ts +0 -10
  212. package/es/plus/productSelect/ProductList/gridComponents.d.ts +0 -44
  213. package/es/plus/productSelect/ProductList/index.d.ts +0 -22
  214. package/es/plus/productSelect/components/IntersectionObserver.d.ts +0 -42
  215. package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +0 -30
  216. package/es/plus/productSelect/components/TabsStructure/hooks.d.ts +0 -22
  217. package/es/plus/productSelect/components/TabsStructure/index.d.ts +0 -5
  218. package/es/plus/productSelect/components/TabsStructure/styles.d.ts +0 -47
  219. package/es/plus/productSelect/components/TabsStructure/types.d.ts +0 -105
  220. package/es/plus/productSelect/components/TabsStructure/utils.d.ts +0 -12
  221. package/es/plus/productSelect/hooks/useToken.d.ts +0 -18
  222. package/es/plus/productSelect/locales.d.ts +0 -18
  223. package/es/plus/productSelect/theme/token.d.ts +0 -17
  224. package/es/utils/date.d.ts +0 -11
  225. package/es/utils/locales.d.ts +0 -1
  226. package/es/utils/tasks/type.d.ts +0 -4
  227. package/lib/businessModel/SalesModel/Sales/index.d.ts +0 -24
  228. package/lib/businessModel/SalesModel/hooks/index.d.ts +0 -1
  229. package/lib/businessModel/SalesModel/index.d.ts +0 -3
  230. package/lib/businessModel/index.d.ts +0 -0
  231. package/lib/components/Sales/Cart/serve.d.ts +0 -2
  232. package/lib/components/Sales/Cart/types.d.ts +0 -31
  233. package/lib/components/Sales/Cart/utils.d.ts +0 -63
  234. package/lib/components/Sales/Checkout/index.d.ts +0 -37
  235. package/lib/components/Sales/Checkout/serve.d.ts +0 -15
  236. package/lib/components/Sales/Checkout/utils.d.ts +0 -41
  237. package/lib/components/Sales/Customer/index.d.ts +0 -25
  238. package/lib/components/Sales/Event/Detail.d.ts +0 -30
  239. package/lib/components/Sales/Event/index.d.ts +0 -30
  240. package/lib/components/Sales/Event/serve.d.ts +0 -49
  241. package/lib/components/Sales/Holder/index.d.ts +0 -33
  242. package/lib/components/Sales/Holder/serve.d.ts +0 -8
  243. package/lib/components/Sales/Init/index.d.ts +0 -25
  244. package/lib/components/Sales/Init/serve.d.ts +0 -3
  245. package/lib/components/Sales/Resource/index.d.ts +0 -26
  246. package/lib/components/Sales/Resource/serve.d.ts +0 -12
  247. package/lib/components/Sales/Step/index.d.ts +0 -39
  248. package/lib/components/Sales/Summary/index.d.ts +0 -35
  249. package/lib/components/Sales/Summary/serve.d.ts +0 -1
  250. package/lib/components/Sales/Summary/utils.d.ts +0 -51
  251. package/lib/components/Sales/hooks/index.d.ts +0 -1
  252. package/lib/components/Sales/index.d.ts +0 -20
  253. package/lib/components/Sales/utils/index.d.ts +0 -1
  254. package/lib/components/appointmentBooking/components/Cart/utils.d.ts +0 -56
  255. package/lib/components/appointmentBooking/components/ConfirmInformation/utils.d.ts +0 -12
  256. package/lib/components/appointmentBooking/components/Date/state.d.ts +0 -63
  257. package/lib/components/appointmentBooking/components/Form/index.d.ts +0 -4
  258. package/lib/components/appointmentBooking/components/Form/utils.d.ts +0 -8
  259. package/lib/components/appointmentBooking/components/Resource/utils.d.ts +0 -5
  260. package/lib/components/appointmentBooking/context.d.ts +0 -35
  261. package/lib/components/appointmentBooking/locales.d.ts +0 -360
  262. package/lib/components/appointmentBooking/type.d.ts +0 -17
  263. package/lib/components/booking/components/drawer/index.d.ts +0 -19
  264. package/lib/components/booking/components/tabPane/index.d.ts +0 -4
  265. package/lib/components/booking/components/voucher/utils.d.ts +0 -4
  266. package/lib/components/booking/editBookingModal/locales.d.ts +0 -21
  267. package/lib/components/booking/editBookingModal/mock.d.ts +0 -807
  268. package/lib/components/booking/editBookingModal/serve.d.ts +0 -52
  269. package/lib/components/booking/editBookingModal/type.d.ts +0 -12
  270. package/lib/components/booking/editBookingModal/utils.d.ts +0 -12
  271. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
  272. package/lib/components/booking/info/Provider.d.ts +0 -0
  273. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -6
  274. package/lib/components/booking/info/hooks/useGetHolderList.d.ts +0 -2
  275. package/lib/components/booking/info/index.d.ts +0 -3
  276. package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
  277. package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
  278. package/lib/components/booking/info/service/serviceManager/utils.d.ts +0 -0
  279. package/lib/components/booking/info/service2/hooks/useSelectPet.d.ts +0 -6
  280. package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +0 -7
  281. package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +0 -7
  282. package/lib/components/booking/info2/utils.d.ts +0 -4
  283. package/lib/components/booking/locales.d.ts +0 -831
  284. package/lib/components/eftposPay/const.d.ts +0 -184
  285. package/lib/components/eftposPay/linkly/hooks/index.d.ts +0 -2
  286. package/lib/components/eftposPay/linkly/service.d.ts +0 -32
  287. package/lib/components/eftposPay/locales.d.ts +0 -330
  288. package/lib/components/eftposPay/manufacturer.d.ts +0 -7
  289. package/lib/components/eftposPay/store/index.d.ts +0 -355
  290. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -2
  291. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -3
  292. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -3
  293. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -4
  294. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -3
  295. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
  296. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
  297. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
  298. package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -14
  299. package/lib/components/eventBooking/locales.d.ts +0 -246
  300. package/lib/components/eventBooking/type.d.ts +0 -17
  301. package/lib/components/eventBooking/utils.d.ts +0 -45
  302. package/lib/components/login/locales.d.ts +0 -24
  303. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +0 -2
  304. package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +0 -2
  305. package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +0 -2
  306. package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +0 -2
  307. package/lib/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +0 -2
  308. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +0 -2
  309. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +0 -2
  310. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -113
  311. package/lib/components/pay/toC/locales.d.ts +0 -289
  312. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
  313. package/lib/components/productSelect/components/TabProduct/tabs/index.d.ts +0 -21
  314. package/lib/components/productSelect/hooks/useToken.d.ts +0 -18
  315. package/lib/components/productSelect/locales.d.ts +0 -18
  316. package/lib/components/productSelect/mock.d.ts +0 -134
  317. package/lib/components/productSelect/theme/token.d.ts +0 -17
  318. package/lib/components/shoppingCart/Provider.d.ts +0 -3
  319. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -3
  320. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -3
  321. package/lib/components/shoppingCart/hooks/useContext.d.ts +0 -1
  322. package/lib/components/shoppingCart/locales.d.ts +0 -33
  323. package/lib/components/shoppingCart/mock.d.ts +0 -40
  324. package/lib/components/shoppingCart/type.d.ts +0 -48
  325. package/lib/components/shoppingCart/utils.d.ts +0 -63
  326. package/lib/components/stepController/components/Content/index.d.ts +0 -7
  327. package/lib/components/stepController/components/Footer/index.d.ts +0 -8
  328. package/lib/components/stepController/locales.d.ts +0 -27
  329. package/lib/components/stepController/types.d.ts +0 -23
  330. package/lib/components/subTotal/locales.d.ts +0 -42
  331. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
  332. package/lib/components/ticketBooking/data.d.ts +0 -58
  333. package/lib/components/ticketBooking/hooks/useNetworkStatus.d.ts +0 -11
  334. package/lib/components/ticketBooking/locales.d.ts +0 -174
  335. package/lib/components/ticketBooking/miniRedux.d.ts +0 -22
  336. package/lib/components/ticketBooking/serve.d.ts +0 -287
  337. package/lib/components/wallet/Detail/locales.d.ts +0 -96
  338. package/lib/components/wallet/Detail/serve.d.ts +0 -39
  339. package/lib/components/wallet/RechargeableCard/serve.d.ts +0 -23
  340. package/lib/components/wallet/Voucher/locales.d.ts +0 -21
  341. package/lib/components/wallet/components/index.d.ts +0 -2
  342. package/lib/components/wallet/locales.d.ts +0 -132
  343. package/lib/components/walletList/locales.d.ts +0 -18
  344. package/lib/components/walletList/model.d.ts +0 -6
  345. package/lib/components/walletList/serve.d.ts +0 -20
  346. package/lib/components/walletList/types/index.d.ts +0 -194
  347. package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
  348. package/lib/components/workSpaceList/components/Card/constants.d.ts +0 -2
  349. package/lib/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
  350. package/lib/hooks/useEngineContext.d.ts +0 -10
  351. package/lib/hooks/useLocale.d.ts +0 -2
  352. package/lib/hooks/useLoginUser.d.ts +0 -2
  353. package/lib/hooks/useWindowSize.d.ts +0 -5
  354. package/lib/plus/productSelect/CategoryTabs/CategorySkeleton.d.ts +0 -10
  355. package/lib/plus/productSelect/CategoryTabs/index.d.ts +0 -18
  356. package/lib/plus/productSelect/ProductCard/ProductCardSkeleton.d.ts +0 -10
  357. package/lib/plus/productSelect/ProductList/gridComponents.d.ts +0 -44
  358. package/lib/plus/productSelect/ProductList/index.d.ts +0 -22
  359. package/lib/plus/productSelect/components/IntersectionObserver.d.ts +0 -42
  360. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +0 -30
  361. package/lib/plus/productSelect/components/TabsStructure/hooks.d.ts +0 -22
  362. package/lib/plus/productSelect/components/TabsStructure/index.d.ts +0 -5
  363. package/lib/plus/productSelect/components/TabsStructure/styles.d.ts +0 -47
  364. package/lib/plus/productSelect/components/TabsStructure/types.d.ts +0 -105
  365. package/lib/plus/productSelect/components/TabsStructure/utils.d.ts +0 -12
  366. package/lib/plus/productSelect/hooks/useToken.d.ts +0 -18
  367. package/lib/plus/productSelect/locales.d.ts +0 -18
  368. package/lib/plus/productSelect/theme/token.d.ts +0 -17
  369. package/lib/utils/date.d.ts +0 -11
  370. package/lib/utils/locales.d.ts +0 -1
  371. package/lib/utils/tasks/type.d.ts +0 -4
@@ -1,63 +0,0 @@
1
- /**
2
- * @title: 格式化购物车列表
3
- * @description:
4
- * @param {any} state
5
- * @return {*}
6
- * @Author: WangHan
7
- * @Date: 2024-11-28 16:52
8
- */
9
- export declare const formatCartList: (state: any) => any;
10
- /**
11
- * @title: 是否是空页面
12
- * @description:
13
- * @param {any} state
14
- * @return {*}
15
- * @Author: WangHan
16
- * @Date: 2024-11-28 16:47
17
- */
18
- export declare const isEmptyStatus: (state: any) => boolean;
19
- /**
20
- * @title: 是否是商品列表页面
21
- * @description:
22
- * @param {any} state
23
- * @return {*}
24
- * @Author: WangHan
25
- * @Date: 2024-11-28 17:23
26
- */
27
- export declare const isProductList: (state: any) => boolean;
28
- /**
29
- * @title: 格式化数据最终结果
30
- * @description:
31
- * @param {any} state
32
- * @return {*}
33
- * @Author: WangHan
34
- * @Date: 2024-11-28 18:35
35
- */
36
- export declare const formatState: (state: any) => {
37
- isEmpty: boolean;
38
- isProductList: boolean;
39
- carts: any;
40
- };
41
- /**
42
- * @title: 更新商品
43
- * @description:
44
- * @param {any} newState
45
- * @param {any} state
46
- * @return {*}
47
- * @Author: WangHan
48
- * @Date: 2024-11-28 22:30
49
- */
50
- export declare const updateProduct: (state: any, newProducts: any[]) => {
51
- products: any[];
52
- carts: any;
53
- };
54
- /**
55
- * @title: 格式化服务
56
- * @description:
57
- * @param {any} service
58
- * @param {number} id holder_id
59
- * @return {*}
60
- * @Author: WangHan
61
- * @Date: 2024-12-09 22:47
62
- */
63
- export declare const formatService: (service: any[], id: number) => any[];
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface ContentProps {
4
- children?: React.ReactNode;
5
- }
6
- declare const Content: React.FC<ContentProps>;
7
- export default Content;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface FooterProps {
4
- isMobile?: boolean;
5
- children?: React.ReactNode;
6
- }
7
- declare const Footer: React.FC<FooterProps>;
8
- export default Footer;
@@ -1,27 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- 'pisell2.step.controller.step': (step: number) => string;
4
- 'pisell2.step.controller.sendEmail': string;
5
- 'pisell2.step.controller.copy': string;
6
- 'pisell2.step.controller.download': string;
7
- 'pisell2.step.controller.preview': string;
8
- 'pisell2.step.controller.continue': string;
9
- };
10
- 'zh-CN': {
11
- 'pisell2.step.controller.step': (step: number) => string;
12
- 'pisell2.step.controller.sendEmail': string;
13
- 'pisell2.step.controller.copy': string;
14
- 'pisell2.step.controller.download': string;
15
- 'pisell2.step.controller.preview': string;
16
- 'pisell2.step.controller.continue': string;
17
- };
18
- 'zh-HK': {
19
- 'pisell2.step.controller.step': (step: number) => string;
20
- 'pisell2.step.controller.sendEmail': string;
21
- 'pisell2.step.controller.copy': string;
22
- 'pisell2.step.controller.download': string;
23
- 'pisell2.step.controller.preview': string;
24
- 'pisell2.step.controller.continue': string;
25
- };
26
- };
27
- export default _default;
@@ -1,23 +0,0 @@
1
- /// <reference types="react" />
2
- export interface Step {
3
- key: string;
4
- description: string;
5
- }
6
- export interface StepControllerProps extends Step {
7
- steps: Step[];
8
- currentStep: string;
9
- isLastStep?: boolean;
10
- isMobile?: boolean;
11
- children?: React.ReactNode;
12
- onBack?: (key: string) => void;
13
- onClose?: () => void;
14
- confirmCloseProps?: {
15
- isConfirmClose?: boolean;
16
- title?: string;
17
- content?: string;
18
- okText?: string;
19
- cancelText?: string;
20
- };
21
- showFooter?: boolean;
22
- footerContent?: React.ReactNode;
23
- }
@@ -1,42 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- 'pisell2.subtotal.deposit': string;
4
- 'pisell2.subtotal.total': string;
5
- 'pisell2.subtotal.subtotal': string;
6
- 'pisell2.subtotal.tax': string;
7
- 'pisell2.subtotal.delivery-fee': string;
8
- 'pisell2.subtotal.discount': string;
9
- 'pisell2.subtotal.point-deduction': string;
10
- 'pisell2.subtotal.member-deduction': string;
11
- 'pisell2.subtotal.items': string;
12
- 'pisell2.subtotal.not-contain': string;
13
- 'pisell2.subtotal.included': string;
14
- };
15
- 'zh-CN': {
16
- 'pisell2.subtotal.deposit': string;
17
- 'pisell2.subtotal.total': string;
18
- 'pisell2.subtotal.subtotal': string;
19
- 'pisell2.subtotal.tax': string;
20
- 'pisell2.subtotal.delivery-fee': string;
21
- 'pisell2.subtotal.discount': string;
22
- 'pisell2.subtotal.point-deduction': string;
23
- 'pisell2.subtotal.member-deduction': string;
24
- 'pisell2.subtotal.items': string;
25
- 'pisell2.subtotal.not-contain': string;
26
- 'pisell2.subtotal.included': string;
27
- };
28
- 'zh-HK': {
29
- 'pisell2.subtotal.deposit': string;
30
- 'pisell2.subtotal.total': string;
31
- 'pisell2.subtotal.subtotal': string;
32
- 'pisell2.subtotal.tax': string;
33
- 'pisell2.subtotal.delivery-fee': string;
34
- 'pisell2.subtotal.discount': string;
35
- 'pisell2.subtotal.point-deduction': string;
36
- 'pisell2.subtotal.member-deduction': string;
37
- 'pisell2.subtotal.items': string;
38
- 'pisell2.subtotal.not-contain': string;
39
- 'pisell2.subtotal.included': string;
40
- };
41
- };
42
- export default _default;
@@ -1,6 +0,0 @@
1
- interface AddServiceVariantProps {
2
- globalState: any;
3
- setGlobalState: any;
4
- }
5
- declare const AddServiceVariant: (props: AddServiceVariantProps) => JSX.Element;
6
- export default AddServiceVariant;
@@ -1,58 +0,0 @@
1
- declare const mockProduct: {
2
- order_id: number;
3
- shop_id: number;
4
- product_id: number;
5
- product_variant_id: number;
6
- product_unique_string: string;
7
- product_title: string;
8
- product_cover: string;
9
- product_sku: {
10
- code: string;
11
- name: string;
12
- barcode: string;
13
- sku_ids: string;
14
- variant: never[];
15
- variant_id: string;
16
- generate_voucher: never[];
17
- };
18
- product_bundle: never[];
19
- gift_card: number;
20
- selling_price: string;
21
- original_price: string;
22
- cost_price: string;
23
- product_quantity: number;
24
- payment_price: string;
25
- deposit_price: string;
26
- tax_fee: string;
27
- is_charge_tax: number;
28
- refund_quantity: number;
29
- refund_status: string;
30
- shipping_status: string;
31
- payment_status: string;
32
- commission: number;
33
- commission_tax: number;
34
- rebate_type: string;
35
- rebate_value: string;
36
- commission_percent: string;
37
- channel: string;
38
- channel_id: number;
39
- item_relation_id: number;
40
- schedule_event_id: number;
41
- note: string;
42
- extension_type: string;
43
- before_product_quantity: number;
44
- remove_product_quantity: number;
45
- deleted_at: null;
46
- created_at: string;
47
- updated_at: string;
48
- order_detail_id: number;
49
- product_option_string: string;
50
- product_subtitle: string;
51
- source_product_price: string;
52
- discount_amount: number;
53
- product_discount_reason: string;
54
- discount_type: string;
55
- discountway: string;
56
- discount_per: string;
57
- single_discount: null;
58
- };
@@ -1,11 +0,0 @@
1
- export declare enum NetworkStatus {
2
- GOOD = "GOOD",
3
- WEAK = "WEAK",
4
- OFFLINE = "OFFLINE"
5
- }
6
- export declare const NetworkStatusColor: {
7
- GOOD: string;
8
- WEAK: string;
9
- OFFLINE: string;
10
- };
11
- export declare const useNetworkStatus: () => NetworkStatus;
@@ -1,174 +0,0 @@
1
- declare const _default: {
2
- en: {
3
- 'pisell2.ticket-booking.info': string;
4
- 'pisell2.ticket-booking.notes': string;
5
- 'pisell2.ticket-booking.forms': string;
6
- 'pisell2.ticket-booking.sales': string;
7
- 'pisell2.ticket-booking.payment': string;
8
- 'pisell2.ticket-booking.unsaved-changes': string;
9
- 'pisell2.ticket-booking.exit-confirm': string;
10
- 'pisell2.ticket-booking.go-back': string;
11
- 'pisell2.ticket-booking.exit': string;
12
- 'pisell2.ticket-booking.deposit': string;
13
- 'pisell2.ticket-booking.copy-success': string;
14
- 'pisell2.ticket-booking.no-data': string;
15
- 'pisell2.ticket-booking.authorized': string;
16
- 'pisell2.ticket-booking.paid': string;
17
- 'pisell2.ticket-booking.partially-paid': string;
18
- 'pisell2.ticket-booking.partially-refunded': string;
19
- 'pisell2.ticket-booking.payment-pending': string;
20
- 'pisell2.ticket-booking.refunded': string;
21
- 'pisell2.ticket-booking.unpaid': string;
22
- 'pisell2.ticket-booking.voided': string;
23
- 'pisell2.ticket-booking.pending': string;
24
- 'pisell2.ticket-booking.all': string;
25
- 'pisell2.ticket-booking.not-started': string;
26
- 'pisell2.ticket-booking.started': string;
27
- 'pisell2.ticket-booking.finished': string;
28
- 'pisell2.ticket-booking.canceled': string;
29
- 'pisell2.ticket-booking.inform': string;
30
- 'pisell2.ticket-booking.check-management': string;
31
- 'pisell2.ticket-booking.confirm': string;
32
- 'pisell2.ticket-booking.dashboard': string;
33
- 'pisell2.ticket-booking.booking-list': string;
34
- 'pisell2.ticket-booking.full-data': string;
35
- 'pisell2.ticket-booking.today': string;
36
- 'pisell2.ticket-booking.now': string;
37
- 'pisell2.ticket-booking.start-time': string;
38
- 'pisell2.ticket-booking.create-time': string;
39
- 'pisell2.ticket-booking.customer': string;
40
- 'pisell2.ticket-booking.total': string;
41
- 'pisell2.ticket-booking.search': string;
42
- 'pisell2.ticket-booking.refresh-success': string;
43
- 'pisell2.ticket-booking.loading': string;
44
- 'pisell2.ticket-booking.appointment-not-found': string;
45
- 'pisell2.ticket-booking.scan': string;
46
- 'pisell2.ticket-booking.create-new': string;
47
- 'pisell2.ticket-booking.add-to-cart': string;
48
- 'pisell2.ticket-booking.not-available-title': string;
49
- 'pisell2.ticket-booking.not-available-ok': string;
50
- 'pisell2.ticket-booking.in-cart': (number: number) => string;
51
- 'pisell2.product.card.cart-items': (number: number) => string;
52
- 'pisell2.product.card.subtotal': string;
53
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
54
- 'pisell2.product.card.day': (val: number) => string;
55
- 'pisell2.product.card.day.event': (val: number) => string;
56
- 'pisell2.product.card.minute': (val: number) => string;
57
- "pisell2.ticket-booking.reload": string;
58
- };
59
- 'zh-CN': {
60
- 'pisell2.ticket-booking.info': string;
61
- 'pisell2.ticket-booking.notes': string;
62
- 'pisell2.ticket-booking.forms': string;
63
- 'pisell2.ticket-booking.sales': string;
64
- 'pisell2.ticket-booking.payment': string;
65
- 'pisell2.ticket-booking.unsaved-changes': string;
66
- 'pisell2.ticket-booking.exit-confirm': string;
67
- 'pisell2.ticket-booking.go-back': string;
68
- 'pisell2.ticket-booking.exit': string;
69
- 'pisell2.ticket-booking.deposit': string;
70
- 'pisell2.ticket-booking.copy-success': string;
71
- 'pisell2.ticket-booking.no-data': string;
72
- 'pisell2.ticket-booking.authorized': string;
73
- 'pisell2.ticket-booking.paid': string;
74
- 'pisell2.ticket-booking.partially-paid': string;
75
- 'pisell2.ticket-booking.partially-refunded': string;
76
- 'pisell2.ticket-booking.payment-pending': string;
77
- 'pisell2.ticket-booking.refunded': string;
78
- 'pisell2.ticket-booking.unpaid': string;
79
- 'pisell2.ticket-booking.voided': string;
80
- 'pisell2.ticket-booking.pending': string;
81
- 'pisell2.ticket-booking.all': string;
82
- 'pisell2.ticket-booking.not-started': string;
83
- 'pisell2.ticket-booking.started': string;
84
- 'pisell2.ticket-booking.finished': string;
85
- 'pisell2.ticket-booking.canceled': string;
86
- 'pisell2.ticket-booking.inform': string;
87
- 'pisell2.ticket-booking.check-management': string;
88
- 'pisell2.ticket-booking.confirm': string;
89
- 'pisell2.ticket-booking.dashboard': string;
90
- 'pisell2.ticket-booking.booking-list': string;
91
- 'pisell2.ticket-booking.full-data': string;
92
- 'pisell2.ticket-booking.today': string;
93
- 'pisell2.ticket-booking.now': string;
94
- 'pisell2.ticket-booking.start-time': string;
95
- 'pisell2.ticket-booking.create-time': string;
96
- 'pisell2.ticket-booking.customer': string;
97
- 'pisell2.ticket-booking.total': string;
98
- 'pisell2.ticket-booking.search': string;
99
- 'pisell2.ticket-booking.refresh-success': string;
100
- 'pisell2.ticket-booking.loading': string;
101
- 'pisell2.ticket-booking.appointment-not-found': string;
102
- 'pisell2.ticket-booking.scan': string;
103
- 'pisell2.ticket-booking.create-new': string;
104
- 'pisell2.ticket-booking.add-to-cart': string;
105
- 'pisell2.ticket-booking.not-available-title': string;
106
- 'pisell2.ticket-booking.not-available-ok': string;
107
- 'pisell2.product.card.cart-items': (number: number) => string;
108
- 'pisell2.product.card.subtotal': string;
109
- 'pisell2.ticket-booking.in-cart': (number: number) => string;
110
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
111
- 'pisell2.product.card.day': (val: number) => string;
112
- 'pisell2.product.card.day.event': (val: number) => string;
113
- 'pisell2.product.card.minute': (val: number) => string;
114
- "pisell2.ticket-booking.reload": string;
115
- };
116
- 'zh-HK': {
117
- 'pisell2.ticket-booking.info': string;
118
- 'pisell2.ticket-booking.notes': string;
119
- 'pisell2.ticket-booking.forms': string;
120
- 'pisell2.ticket-booking.sales': string;
121
- 'pisell2.ticket-booking.payment': string;
122
- 'pisell2.ticket-booking.unsaved-changes': string;
123
- 'pisell2.ticket-booking.exit-confirm': string;
124
- 'pisell2.ticket-booking.go-back': string;
125
- 'pisell2.ticket-booking.exit': string;
126
- 'pisell2.ticket-booking.deposit': string;
127
- 'pisell2.ticket-booking.copy-success': string;
128
- 'pisell2.ticket-booking.no-data': string;
129
- 'pisell2.ticket-booking.authorized': string;
130
- 'pisell2.ticket-booking.paid': string;
131
- 'pisell2.ticket-booking.partially-paid': string;
132
- 'pisell2.ticket-booking.partially-refunded': string;
133
- 'pisell2.ticket-booking.payment-pending': string;
134
- 'pisell2.ticket-booking.refunded': string;
135
- 'pisell2.ticket-booking.unpaid': string;
136
- 'pisell2.ticket-booking.voided': string;
137
- 'pisell2.ticket-booking.pending': string;
138
- 'pisell2.ticket-booking.all': string;
139
- 'pisell2.ticket-booking.not-started': string;
140
- 'pisell2.ticket-booking.started': string;
141
- 'pisell2.ticket-booking.finished': string;
142
- 'pisell2.ticket-booking.canceled': string;
143
- 'pisell2.ticket-booking.inform': string;
144
- 'pisell2.ticket-booking.check-management': string;
145
- 'pisell2.ticket-booking.confirm': string;
146
- 'pisell2.ticket-booking.dashboard': string;
147
- 'pisell2.ticket-booking.booking-list': string;
148
- 'pisell2.ticket-booking.full-data': string;
149
- 'pisell2.ticket-booking.today': string;
150
- 'pisell2.ticket-booking.now': string;
151
- 'pisell2.ticket-booking.start-time': string;
152
- 'pisell2.ticket-booking.create-time': string;
153
- 'pisell2.ticket-booking.customer': string;
154
- 'pisell2.ticket-booking.total': string;
155
- 'pisell2.ticket-booking.search': string;
156
- 'pisell2.ticket-booking.refresh-success': string;
157
- 'pisell2.ticket-booking.loading': string;
158
- 'pisell2.ticket-booking.appointment-not-found': string;
159
- 'pisell2.ticket-booking.scan': string;
160
- 'pisell2.ticket-booking.create-new': string;
161
- 'pisell2.ticket-booking.add-to-cart': string;
162
- 'pisell2.ticket-booking.not-available-title': string;
163
- 'pisell2.ticket-booking.not-available-ok': string;
164
- 'pisell2.ticket-booking.in-cart': (number: number) => string;
165
- 'pisell2.product.card.cart-items': (number: number) => string;
166
- 'pisell2.product.card.subtotal': string;
167
- 'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
168
- 'pisell2.product.card.day': (val: number) => string;
169
- 'pisell2.product.card.day.event': (val: number) => string;
170
- 'pisell2.product.card.minute': (val: number) => string;
171
- "pisell2.ticket-booking.reload": string;
172
- };
173
- };
174
- export default _default;
@@ -1,22 +0,0 @@
1
- /// <reference types="react" />
2
- declare class Store<T extends object> {
3
- private state;
4
- private listeners;
5
- constructor(initialState: T);
6
- getState(): T;
7
- setState(partialState: Partial<T> | ((prevState: T) => Partial<T>), callback?: (state: T) => void): void;
8
- subscribe(listener: () => void): () => void;
9
- private notify;
10
- getLatestState(): T;
11
- }
12
- interface ProviderProps<T extends object> {
13
- store: Store<T>;
14
- children: React.ReactNode;
15
- }
16
- export declare function Provider<T extends object>({ store, children, }: ProviderProps<T>): JSX.Element;
17
- export declare function createStore<T extends object>(initialState: T): Store<T>;
18
- export declare function useStore<T extends object>(): [
19
- T,
20
- (update: Partial<T> | ((prevState: T) => Partial<T>), callback?: (state: T) => void) => void
21
- ];
22
- export {};