@pisell/private-materials 3.4.127 → 3.4.129

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 (189) 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 +2 -2
  6. package/build/lowcode/view.js +2 -2
  7. package/es/businessModel/SalesModel/index.d.ts +1 -0
  8. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  9. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  10. package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
  11. package/es/components/booking/addons/model.d.ts +1 -10
  12. package/es/components/booking/forms/model.d.ts +1 -10
  13. package/es/components/booking/forms/table/index.d.ts +0 -1
  14. package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
  15. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  16. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  17. package/es/components/booking/info/index.d.ts +1 -0
  18. package/es/components/booking/info/model.d.ts +1 -10
  19. package/es/components/booking/info/service/Lists.d.ts +1 -0
  20. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  21. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  22. package/es/components/booking/info/service2/Lists.d.ts +1 -0
  23. package/es/components/booking/info/service2/utils.d.ts +1 -1
  24. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  25. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  26. package/es/components/booking/model.d.ts +1 -9
  27. package/es/components/booking/notes/model.d.ts +1 -10
  28. package/es/components/booking/payments/model.d.ts +1 -10
  29. package/es/components/booking/utils.d.ts +2 -2
  30. package/es/components/ecocup/components/MoreDropdown/index.d.ts +1 -0
  31. package/es/components/ecocup/cupList/hooks/useColumns.d.ts +1 -0
  32. package/es/components/ecocup/cupList/hooks/useSummary.d.ts +1 -0
  33. package/es/components/eftpos/SettlementModal/index.d.ts +1 -0
  34. package/es/components/eftpos/hooks.d.ts +1 -0
  35. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  36. package/es/components/eftposPay/app.d.ts +1 -0
  37. package/es/components/eftposPay/hooks.d.ts +2 -2
  38. package/es/components/eftposPay/store/index.d.ts +4 -4
  39. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  40. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  41. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  42. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  43. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  44. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  45. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  46. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  47. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  48. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  49. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  50. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  51. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  52. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  53. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  54. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  55. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  56. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  57. package/es/components/pay/toC/model.d.ts +1 -9
  58. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  59. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  60. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  61. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  62. package/es/components/schedules/model.d.ts +1 -9
  63. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  64. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  65. package/es/components/schedules/products/index.d.ts +0 -1
  66. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  67. package/es/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +1 -0
  68. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  69. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  70. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  71. package/es/plus/orderList/components/HandleActions.d.ts +1 -0
  72. package/es/plus/orderList/components/QuickFilter.d.ts +1 -0
  73. package/es/plus/orderList/components/Reset.d.ts +1 -0
  74. package/es/plus/orderList/components/Toolbar.d.ts +1 -0
  75. package/es/plus/orderList/config.d.ts +1 -0
  76. package/es/plus/pisellReservation/PisellReservation.js +62 -19
  77. package/es/plus/pisellReservation/components/blockTimeModal/demo.d.ts +1 -0
  78. package/es/plus/pisellReservation/floorMap/floorPlanApi.d.ts +2 -2
  79. package/es/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
  80. package/es/plus/pisellReservation/hooks/usePicoCodingOpenData.js +31 -16
  81. package/es/plus/pisellReservation/hooks/usePisellReservationBookingData.d.ts +5 -0
  82. package/es/plus/pisellReservation/hooks/usePisellReservationBookingData.js +72 -24
  83. package/es/plus/pisellReservation/hooks/useReservationResourceWallPersist.d.ts +1 -0
  84. package/es/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +4 -3
  85. package/es/plus/pisellSalesGrid/serve.d.ts +4 -0
  86. package/es/plus/pisellSalesGrid/serve.js +109 -33
  87. package/es/plus/pisellSalesManagement/hooks/useSalesGridData.js +6 -0
  88. package/es/plus/pisellTopology/floorPlan/topologyFloorPlanApi.d.ts +1 -1
  89. package/es/plus/saasDevice/devicePlanning/hooks/useDevicePlanningDialogs.d.ts +1 -0
  90. package/es/plus/saasDevice/devicePlanning/modules/deviceConnections/hooks/useConnectDeviceModal.d.ts +1 -0
  91. package/es/plus/saasDevice/devicePlanning/modules/deviceDetail/hooks/useDeviceDetail.d.ts +1 -0
  92. package/es/plus/saasDevice/devicePlanning/modules/devices/hooks/useDeviceList.d.ts +1 -0
  93. package/es/plus/saasDevice/devicePlanning/modules/workAreas/hooks/useWorkAreas.d.ts +1 -0
  94. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  95. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
  96. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  97. package/es/pro/Selector/demo.d.ts +1 -0
  98. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  99. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  100. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  101. package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
  102. package/lib/components/booking/addons/model.d.ts +1 -10
  103. package/lib/components/booking/forms/model.d.ts +1 -10
  104. package/lib/components/booking/forms/table/index.d.ts +0 -1
  105. package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
  106. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  107. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  108. package/lib/components/booking/info/index.d.ts +1 -0
  109. package/lib/components/booking/info/model.d.ts +1 -10
  110. package/lib/components/booking/info/service/Lists.d.ts +1 -0
  111. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  112. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  113. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  114. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  115. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  116. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  117. package/lib/components/booking/model.d.ts +1 -9
  118. package/lib/components/booking/notes/model.d.ts +1 -10
  119. package/lib/components/booking/payments/model.d.ts +1 -10
  120. package/lib/components/booking/utils.d.ts +2 -2
  121. package/lib/components/ecocup/components/MoreDropdown/index.d.ts +1 -0
  122. package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +1 -0
  123. package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +1 -0
  124. package/lib/components/eftpos/SettlementModal/index.d.ts +1 -0
  125. package/lib/components/eftpos/hooks.d.ts +1 -0
  126. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  127. package/lib/components/eftposPay/app.d.ts +1 -0
  128. package/lib/components/eftposPay/hooks.d.ts +2 -2
  129. package/lib/components/eftposPay/store/index.d.ts +4 -4
  130. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  131. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  132. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  133. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  134. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  135. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  136. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  137. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  138. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  139. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  140. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  141. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  142. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  143. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  144. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  145. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  146. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  147. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  148. package/lib/components/pay/toC/model.d.ts +1 -9
  149. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  150. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  151. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  152. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  153. package/lib/components/schedules/model.d.ts +1 -9
  154. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  155. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  156. package/lib/components/schedules/products/index.d.ts +0 -1
  157. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  158. package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +1 -0
  159. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  160. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  161. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  162. package/lib/plus/orderList/components/HandleActions.d.ts +1 -0
  163. package/lib/plus/orderList/components/QuickFilter.d.ts +1 -0
  164. package/lib/plus/orderList/components/Reset.d.ts +1 -0
  165. package/lib/plus/orderList/components/Toolbar.d.ts +1 -0
  166. package/lib/plus/orderList/config.d.ts +1 -0
  167. package/lib/plus/pisellReservation/PisellReservation.js +63 -22
  168. package/lib/plus/pisellReservation/components/blockTimeModal/demo.d.ts +1 -0
  169. package/lib/plus/pisellReservation/floorMap/floorPlanApi.d.ts +2 -2
  170. package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
  171. package/lib/plus/pisellReservation/hooks/usePicoCodingOpenData.js +8 -2
  172. package/lib/plus/pisellReservation/hooks/usePisellReservationBookingData.d.ts +5 -0
  173. package/lib/plus/pisellReservation/hooks/usePisellReservationBookingData.js +63 -14
  174. package/lib/plus/pisellReservation/hooks/useReservationResourceWallPersist.d.ts +1 -0
  175. package/lib/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +4 -3
  176. package/lib/plus/pisellSalesGrid/serve.d.ts +4 -0
  177. package/lib/plus/pisellSalesGrid/serve.js +49 -7
  178. package/lib/plus/pisellSalesManagement/hooks/useSalesGridData.js +4 -0
  179. package/lib/plus/pisellTopology/floorPlan/topologyFloorPlanApi.d.ts +1 -1
  180. package/lib/plus/saasDevice/devicePlanning/hooks/useDevicePlanningDialogs.d.ts +1 -0
  181. package/lib/plus/saasDevice/devicePlanning/modules/deviceConnections/hooks/useConnectDeviceModal.d.ts +1 -0
  182. package/lib/plus/saasDevice/devicePlanning/modules/deviceDetail/hooks/useDeviceDetail.d.ts +1 -0
  183. package/lib/plus/saasDevice/devicePlanning/modules/devices/hooks/useDeviceList.d.ts +1 -0
  184. package/lib/plus/saasDevice/devicePlanning/modules/workAreas/hooks/useWorkAreas.d.ts +1 -0
  185. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  186. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +1 -0
  187. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  188. package/lib/pro/Selector/demo.d.ts +1 -0
  189. package/package.json +3 -3
@@ -31,12 +31,14 @@ var serve_exports = {};
31
31
  __export(serve_exports, {
32
32
  formatBookingResult: () => formatBookingResult,
33
33
  getBookingList: () => getBookingList,
34
+ getBookingListRequestCacheKey: () => getBookingListRequestCacheKey,
34
35
  getOrderList: () => getOrderList,
35
36
  unsubscribeBookingQuery: () => unsubscribeBookingQuery,
36
37
  unsubscribeOrderQuery: () => unsubscribeOrderQuery
37
38
  });
38
39
  module.exports = __toCommonJS(serve_exports);
39
40
  var import_utils = require("../../utils");
41
+ var import_utils2 = require("@pisell/utils");
40
42
  var import_dayjs = __toESM(require("dayjs"));
41
43
  var formatParams = (params) => {
42
44
  const { orderDate, total_amount, sort: sort_key, ...rest } = params;
@@ -172,16 +174,54 @@ var formatBookingResult = (data) => {
172
174
  list: formatBookingData((data == null ? void 0 : data.list) || [])
173
175
  };
174
176
  };
175
- var getBookingList = async (params, options) => {
176
- const { data } = await import_utils.request.getRequest().get(`/shop/schedule/booking`, formatBookingParams(params), {
177
- abort: true,
178
- fullResult: true,
179
- isShopApi: true,
180
- ...options
177
+ var BOOKING_LIST_RECENT_DEDUP_MS = 500;
178
+ var BOOKING_LIST_CACHE_GLOBAL = "__pisellBookingListRecentCache_v1";
179
+ function getBookingListRecentCache() {
180
+ const g = globalThis;
181
+ if (!g[BOOKING_LIST_CACHE_GLOBAL]) {
182
+ g[BOOKING_LIST_CACHE_GLOBAL] = /* @__PURE__ */ new Map();
183
+ }
184
+ return g[BOOKING_LIST_CACHE_GLOBAL];
185
+ }
186
+ function getBookingListRequestCacheKey(params, options) {
187
+ return JSON.stringify({
188
+ query: formatBookingParams(params),
189
+ abort: (options == null ? void 0 : options.abort) ?? true,
190
+ osServer: Boolean(options == null ? void 0 : options.osServer)
181
191
  });
182
- return formatBookingResult(normalizeListPayload(data));
192
+ }
193
+ function bookingListRequestCacheKey(params, options) {
194
+ return getBookingListRequestCacheKey(params, options);
195
+ }
196
+ var getBookingList = async (params, options) => {
197
+ const cacheKey = bookingListRequestCacheKey(params, options);
198
+ const now = Date.now();
199
+ const bookingListRecentCache = getBookingListRecentCache();
200
+ if (!(options == null ? void 0 : options.skipRecentDedup)) {
201
+ const cached = bookingListRecentCache.get(cacheKey);
202
+ if (cached && now - cached.at < BOOKING_LIST_RECENT_DEDUP_MS) {
203
+ return cached.promise;
204
+ }
205
+ }
206
+ const promise = (async () => {
207
+ const { data } = await import_utils.request.getRequest().get(`/shop/schedule/booking`, formatBookingParams(params), {
208
+ abort: true,
209
+ fullResult: true,
210
+ isShopApi: true,
211
+ ...options
212
+ });
213
+ return formatBookingResult(normalizeListPayload(data));
214
+ })();
215
+ bookingListRecentCache.set(cacheKey, { promise, at: now });
216
+ try {
217
+ return await promise;
218
+ } catch (err) {
219
+ bookingListRecentCache.delete(cacheKey);
220
+ throw err;
221
+ }
183
222
  };
184
223
  var unsubscribeOrderQuery = async (subscriberId) => {
224
+ if (!(0, import_utils2.isWebposOsServerEnv)()) return;
185
225
  await import_utils.request.getRequest().post(
186
226
  "/shop/order/v2/list/unsubscribe",
187
227
  { subscriberId },
@@ -192,6 +232,7 @@ var unsubscribeOrderQuery = async (subscriberId) => {
192
232
  );
193
233
  };
194
234
  var unsubscribeBookingQuery = async (subscriberId) => {
235
+ if (!(0, import_utils2.isWebposOsServerEnv)()) return;
195
236
  await import_utils.request.getRequest().get(
196
237
  "/shop/schedule/booking/unsubscribe",
197
238
  { subscriberId },
@@ -205,6 +246,7 @@ var unsubscribeBookingQuery = async (subscriberId) => {
205
246
  0 && (module.exports = {
206
247
  formatBookingResult,
207
248
  getBookingList,
249
+ getBookingListRequestCacheKey,
208
250
  getOrderList,
209
251
  unsubscribeBookingQuery,
210
252
  unsubscribeOrderQuery
@@ -82,6 +82,7 @@ function useSalesGridData(params) {
82
82
  const [selectedRows, setSelectedRows] = (0, import_react.useState)([]);
83
83
  const orderSubscriberIdRef = (0, import_react.useRef)((0, import_utils.getUniqueId)());
84
84
  const bookingSubscriberIdRef = (0, import_react.useRef)((0, import_utils.getUniqueId)());
85
+ const prevPerspectiveRef = (0, import_react.useRef)(null);
85
86
  const orderMutateRef = (0, import_react.useRef)(null);
86
87
  const bookingMutateRef = (0, import_react.useRef)(null);
87
88
  const requestParams = (0, import_react.useMemo)(() => {
@@ -183,6 +184,9 @@ function useSalesGridData(params) {
183
184
  return _getOrderList.runAsync(runListParams);
184
185
  }, [perspective, runListParams, _getBookingList, _getOrderList]);
185
186
  (0, import_react.useEffect)(() => {
187
+ const prev = prevPerspectiveRef.current;
188
+ prevPerspectiveRef.current = perspective;
189
+ if (prev == null || prev === perspective) return;
186
190
  if (perspective === "monitor") {
187
191
  void (0, import_serve.unsubscribeOrderQuery)(orderSubscriberIdRef.current);
188
192
  return;
@@ -2,7 +2,7 @@ import { type PostShopFloorPlanBody, type PutShopFloorPlanBody, type ShopFloorPl
2
2
  export type { PostShopFloorPlanBody, PutShopFloorPlanBody, ShopFloorPlanByCodeRequestOptions, ShopFloorPlanDetail, };
3
3
  export { buildFloorPlanPutBody, floorMapSavedConfigToRemotePatch, mergeFloorPlanViewRemote, parseLayoutFieldToViewConfigPatch, } from '@pisell/materials';
4
4
  export declare function isFloorPlanDuplicateCodeError(err: unknown): boolean;
5
- export declare const getShopFloorPlanByCode: (code: string, subscribe?: ShopFloorPlanByCodeRequestOptions | undefined) => Promise<ShopFloorPlanDetail | null>;
5
+ export declare const getShopFloorPlanByCode: (code: string, subscribe?: any) => Promise<any>;
6
6
  export declare const putShopFloorPlan: (id: number, body: PutShopFloorPlanBody) => Promise<unknown>;
7
7
  export declare const unsubscribeShopFloorPlanCodeQuery: (subscriberId: string) => Promise<void>;
8
8
  export declare function buildDefaultTopologyFloorPlanPostBody(code: string): PostShopFloorPlanBody;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { WorkAreaModalMode } from '../model';
2
3
  import type { DeviceRow, WorkAreaItem } from '../model';
3
4
  import type { DrawerTabKey } from '../modules/deviceDetail';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { CreateDeviceConnectionPayload, DeviceBrandItem, DeviceConnectionItem, DeviceConnectionType, DeviceItem, DeviceModelItem, DeviceStructure, I18nText, LangDict, UpdateDeviceConnectionPayload, WorkAreaItem } from '../../../model';
2
3
  export declare type ConnectMode = 'existing' | 'new' | 'edit';
3
4
  export declare type ConnectStep = 'pick' | 'config';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { DeviceRow, I18nText } from '../../../model';
2
3
  import type { DrawerTabKey } from '../types';
3
4
  interface UseDeviceDetailParams {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { DeviceItem, DeviceKind, DeviceRow, I18nText, UpdateDevicePayload } from '../../../model';
2
3
  interface UseDeviceListParams {
3
4
  activeKind: DeviceKind;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { DragEndEvent } from '@dnd-kit/core';
2
3
  import { WorkAreaModalMode } from '../../../model';
3
4
  import type { DeleteWorkAreaCounts, SaveWorkAreaPayload, WorkAreaItem } from '../../../model';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ErrorTip: ({ text }: any) => JSX.Element;
3
4
  export default ErrorTip;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RenderItemProps } from '../../../../pro/Selector/types';
2
3
  declare const NormalCard: (props: RenderItemProps & {
3
4
  parentDataSource: any;
@@ -3,6 +3,6 @@ export interface ImageUploadProps {
3
3
  value?: string;
4
4
  onChange?: (val: string) => void;
5
5
  }
6
- export declare const getBaseTime: (size: number) => 2000 | 1000 | 4000 | 8000;
6
+ export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
7
7
  declare const ImageUpload: React.FC<ImageUploadProps>;
8
8
  export default ImageUpload;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectorDemo: () => JSX.Element;
2
3
  export default SelectorDemo;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.4.127",
3
+ "version": "3.4.129",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -77,10 +77,10 @@
77
77
  "react-resizable": "^3.0.5",
78
78
  "react-zoom-pan-pinch": "^3.7.0",
79
79
  "styled-components": "^6.0.0-rc.3",
80
- "@pisell/materials": "3.3.102",
80
+ "@pisell/date-picker": "3.0.4",
81
81
  "@pisell/icon": "0.0.11",
82
82
  "@pisell/utils": "3.0.2",
83
- "@pisell/date-picker": "3.0.4"
83
+ "@pisell/materials": "3.3.104"
84
84
  },
85
85
  "peerDependencies": {
86
86
  "react": "^18.0.0",