@pisell/private-materials 6.11.110 → 6.11.111

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 (68) 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/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +16 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/view.css +1 -1
  9. package/build/lowcode/view.js +11 -11
  10. package/es/components/booking/components/actionButtons/index.less +9 -9
  11. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  12. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  13. package/es/components/booking/info/index.less +6 -2
  14. package/es/components/booking/info/service2/utils.d.ts +1 -1
  15. package/es/components/booking/utils.d.ts +2 -2
  16. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  17. package/es/components/eftposPay/amount.d.ts +1 -1
  18. package/es/components/eftposPay/device.d.ts +1 -1
  19. package/es/components/eftposPay/hooks.d.ts +2 -2
  20. package/es/components/eftposPay/store/index.d.ts +5 -5
  21. package/es/components/pay/toC/utils.d.ts +2 -2
  22. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  23. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  24. package/es/plus/pisellReservation/floorMap/floorPlanApi.d.ts +5 -5
  25. package/es/plus/pisellReservation/floorMap/reservationCards.d.ts +7 -7
  26. package/es/plus/pisellReservation/floorMap/useReservationFloorMapMerged.d.ts +1 -1
  27. package/es/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +1 -1
  28. package/es/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +3 -3
  29. package/es/plus/pisellSalesManagement/config/booking.d.ts +0 -1
  30. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  31. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  32. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  33. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  34. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  35. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  36. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  37. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  38. package/es/plus/productSelect/ProductCard/utils.d.ts +1 -1
  39. package/lib/components/booking/components/actionButtons/index.less +9 -9
  40. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  41. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  42. package/lib/components/booking/info/index.less +6 -2
  43. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  44. package/lib/components/booking/utils.d.ts +2 -2
  45. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  46. package/lib/components/eftposPay/amount.d.ts +1 -1
  47. package/lib/components/eftposPay/device.d.ts +1 -1
  48. package/lib/components/eftposPay/hooks.d.ts +2 -2
  49. package/lib/components/eftposPay/store/index.d.ts +5 -5
  50. package/lib/components/pay/toC/utils.d.ts +2 -2
  51. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  52. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  53. package/lib/plus/pisellReservation/floorMap/floorPlanApi.d.ts +5 -5
  54. package/lib/plus/pisellReservation/floorMap/reservationCards.d.ts +7 -7
  55. package/lib/plus/pisellReservation/floorMap/useReservationFloorMapMerged.d.ts +1 -1
  56. package/lib/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +1 -1
  57. package/lib/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +3 -3
  58. package/lib/plus/pisellSalesManagement/config/booking.d.ts +0 -1
  59. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  60. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  61. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  62. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  63. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  64. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  65. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  66. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  67. package/lib/plus/productSelect/ProductCard/utils.d.ts +1 -1
  68. package/package.json +3 -3
@@ -176,7 +176,7 @@ export declare const updateCustom: (payload: {
176
176
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
177
177
  type: EActionTypes;
178
178
  payload: {
179
- status: "loading" | "success" | "warn" | "fail" | "question";
179
+ status: "success" | "warn" | "loading" | "fail" | "question";
180
180
  };
181
181
  };
182
182
  /**
@@ -297,20 +297,20 @@ export declare const backUpFree: (payload: Partial<State>) => {
297
297
  name?: string | undefined;
298
298
  symbol?: string | undefined;
299
299
  amount?: string | number | undefined;
300
- mode?: "refund" | "fullPay" | "pay" | "query" | undefined;
300
+ mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
301
301
  order_id?: string | number | undefined;
302
- eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | "huifu" | undefined;
302
+ eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | "huifu" | undefined;
303
303
  action?: "amount" | "deviceList" | "pay" | undefined;
304
304
  key?: number | undefined;
305
305
  step?: number | undefined;
306
306
  title?: string | undefined;
307
307
  subTitle?: string | undefined;
308
- type?: "step" | "unset" | undefined;
308
+ type?: "unset" | "step" | undefined;
309
309
  render?: boolean | undefined;
310
310
  net?: boolean | undefined;
311
311
  component?: string | undefined;
312
312
  form?: string | undefined;
313
- status?: "loading" | "success" | "warn" | "fail" | "init" | "pedding" | "resove" | "reject" | "question" | undefined;
313
+ status?: "success" | "warn" | "loading" | "init" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
314
314
  warn?: string | undefined;
315
315
  steps?: {
316
316
  /** 用于重置当前步骤 */
@@ -22,7 +22,7 @@ export declare const formatWalletPassParams: (payGroup: PayGroup) => {
22
22
  order_id: string;
23
23
  payment_group_id: number;
24
24
  payments: {
25
- amount: string | number | undefined;
25
+ amount: string | number;
26
26
  wallet_pass_use_value: any;
27
27
  voucher_id: any;
28
28
  tag: any;
@@ -48,7 +48,7 @@ export declare const isFranchiseeShop: (path?: any, history?: any) => any;
48
48
  */
49
49
  export declare const getFranchiseeShopId: (path?: any, history?: any) => number;
50
50
  export declare const formatFranchiseeRoute: (url: string, history?: any) => string;
51
- export declare const getAvailableMaxAmount: (data: WalletPassDataType) => string | number | undefined;
51
+ export declare const getAvailableMaxAmount: (data: WalletPassDataType) => string | number;
52
52
  export declare const clientPayment: (params: {
53
53
  order_id: number;
54
54
  type: "aliPay" | "wxPay" | 'google_pay';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Empty: (props: any) => import("react").JSX.Element;
4
3
  export default Empty;
@@ -47,7 +47,7 @@ declare type ScanData = {
47
47
  };
48
48
  };
49
49
  export declare const formatScanCustomer: (data: ScanData) => {
50
- searchType: "product" | "customer" | "wallet" | "walletPass" | "local_product";
50
+ searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
51
51
  data: any;
52
52
  scanCode: string;
53
53
  } | null;
@@ -6,10 +6,10 @@ export declare const RESERVATION_DEFAULT_FLOOR_PLAN_ID = 1;
6
6
  export type { PostShopFloorPlanBody, PutShopFloorPlanBody, ShopFloorPlanByCodeRequestOptions, ShopFloorPlanDetail, ShopFloorPlanLayoutItem, };
7
7
  export { buildFloorPlanPutBody, floorMapSavedConfigToRemotePatch, inferCanvasSizeFromScene, mergeFloorPlanViewRemote, parseLayoutFieldToViewConfigPatch, pickFloorPlanDetail, sceneElementsToShopLayout, viewConfigToLayoutPayload, isShopFloorPlanNotFoundResponse, isHttpNotFoundError, } from '@pisell/materials';
8
8
  export declare function isFloorPlanDuplicateCodeError(err: unknown): boolean;
9
- export declare const getShopFloorPlanByCode: (code: string, subscribe?: any) => Promise<any>;
10
- export declare const postShopFloorPlan: (body: PostShopFloorPlanBody) => Promise<any>;
11
- export declare const putShopFloorPlan: (id: number, body: PutShopFloorPlanBody) => Promise<unknown>;
12
- export declare const unsubscribeShopFloorPlanCodeQuery: (subscriberId: string) => Promise<void>;
9
+ export declare const getShopFloorPlanByCode: any;
10
+ export declare const postShopFloorPlan: any;
11
+ export declare const putShopFloorPlan: any;
12
+ export declare const unsubscribeShopFloorPlanCodeQuery: any;
13
13
  /**
14
14
  * 404 时 POST 创建使用预约默认 JSON(`api/create-floor-map.json`)。
15
15
  */
@@ -21,7 +21,7 @@ export declare function buildDefaultReservationFloorPlanPostBody(code: string):
21
21
  export declare function shopLayoutToSceneElements(layout: ShopFloorPlanLayoutItem[], options: {
22
22
  canvasId: string;
23
23
  dataSourceKey: string;
24
- }): import("@pisell/materials").FloorMapSceneElement[];
24
+ }): any;
25
25
  export declare function saveViewConfigToShopFloorPlan(id: number, config: import('@pisell/materials').FloorMapViewConfig, options: {
26
26
  canvasWidth?: number;
27
27
  canvasHeight?: number;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type FloorMapMergedItem, type FloorMapDataSources, type FloorMapItemBase, type FloorMapRenderOptions } from '@pisell/materials';
2
+ import { type FloorMapMergedItem, type FloorMapDataSources } from '@pisell/materials';
3
3
  import type { PisellReservationTableRow } from '../types';
4
4
  import './ReservationCards.less';
5
5
  export declare function findReservationRow(item: FloorMapMergedItem, dataSources: FloorMapDataSources): PisellReservationTableRow | undefined;
@@ -7,10 +7,10 @@ export declare function renderReservationTableCard(item: FloorMapMergedItem, dat
7
7
  export declare function renderReservationPartyCard(item: FloorMapMergedItem, dataSources: FloorMapDataSources): React.ReactNode;
8
8
  export declare function renderReservationBarCard(item: FloorMapMergedItem, dataSources: FloorMapDataSources): React.ReactNode;
9
9
  export declare function getReservationRenderItemByKind(dataSources: FloorMapDataSources): {
10
- floorMapImage: (item: FloorMapItemBase, _index: number, _options?: FloorMapRenderOptions) => React.ReactNode;
11
- reservationBoundTable: (item: FloorMapItemBase, _index: number, _options?: FloorMapRenderOptions) => React.ReactNode;
12
- reservationBoundRoundTable: (item: FloorMapItemBase, _index: number, _options?: FloorMapRenderOptions) => React.ReactNode;
13
- reservationTable: (item: FloorMapItemBase, _index: number, _options?: FloorMapRenderOptions) => React.ReactNode;
14
- reservationPartyBench: (item: FloorMapItemBase, _index: number, _options?: FloorMapRenderOptions) => React.ReactNode;
15
- reservationBarSeat: (item: FloorMapItemBase, _index: number, _options?: FloorMapRenderOptions) => React.ReactNode;
10
+ [x: number]: (item: FloorMapItemBase, _index: number, _options?: any) => any;
11
+ reservationBoundTable: (item: FloorMapItemBase, _index: number, _options?: any) => React.ReactNode;
12
+ reservationBoundRoundTable: (item: FloorMapItemBase, _index: number, _options?: any) => React.ReactNode;
13
+ reservationTable: (item: FloorMapItemBase, _index: number, _options?: any) => React.ReactNode;
14
+ reservationPartyBench: (item: FloorMapItemBase, _index: number, _options?: any) => React.ReactNode;
15
+ reservationBarSeat: (item: FloorMapItemBase, _index: number, _options?: any) => React.ReactNode;
16
16
  };
@@ -43,4 +43,4 @@ export interface UseReservationFloorMapMergedParams {
43
43
  /** 场控等:HUD 表抽屉开启时视口叠加层锚左下、Dock 默认右下(可由 floorMap 显式覆盖) */
44
44
  floorMapHudTableDrawer?: boolean;
45
45
  }
46
- export declare function useReservationFloorMapMerged(params: UseReservationFloorMapMergedParams): Partial<import("@pisell/materials").PisellFloorMapLayoutProps<import("@pisell/materials").FloorMapItemBase>>;
46
+ export declare function useReservationFloorMapMerged(params: UseReservationFloorMapMergedParams): any;
@@ -9,5 +9,5 @@ export declare function useReservationFloorPlan(options: {
9
9
  }): {
10
10
  baseFloorConfig: FloorMapViewConfig;
11
11
  floorPlanRemoteId: number | null;
12
- setRemoteFloorPlanView: import("react").Dispatch<import("react").SetStateAction<Partial<FloorMapViewConfig> | null>>;
12
+ setRemoteFloorPlanView: import("react").Dispatch<any>;
13
13
  };
@@ -7,10 +7,10 @@ export declare function useReservationScheduleDebounced(options: {
7
7
  scheduleValueProp: ReservationScheduleBandValue | undefined;
8
8
  }): {
9
9
  internalSchedule: ReservationScheduleBandValue;
10
- setInternalSchedule: import("react").Dispatch<import("react").SetStateAction<ReservationScheduleBandValue>>;
11
- schedule: ReservationScheduleBandValue;
10
+ setInternalSchedule: import("react").Dispatch<any>;
11
+ schedule: any;
12
12
  debouncedSchedule: ReservationScheduleBandValue;
13
- scheduleRef: import("react").MutableRefObject<ReservationScheduleBandValue>;
13
+ scheduleRef: import("react").MutableRefObject<any>;
14
14
  flushCommittedSchedule: (next: ReservationScheduleBandValue) => void;
15
15
  queueCommittedSchedule: (next: ReservationScheduleBandValue) => void;
16
16
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const getBookingStatusMap: () => Record<string, string>;
3
2
  export declare const BOOKING_STATUS_COLOR_MAP: Record<string, string>;
4
3
  export declare const getBookingPlatformMap: () => Record<string, string>;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Capacity: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | React.JSX.Element | Iterable<React.ReactNode> | null;
5
+ }) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
6
6
  export default Capacity;
@@ -3,5 +3,5 @@ import { SkuStatusOverlayConfig } from '../../type';
3
3
  import './index.less';
4
4
  declare const CardMask: ({ props }: {
5
5
  props: SkuStatusOverlayConfig;
6
- }) => string | number | true | React.JSX.Element | Iterable<React.ReactNode> | null;
6
+ }) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
7
7
  export default CardMask;
@@ -3,5 +3,5 @@ import { ProductCardConfig } from '../../type';
3
3
  import './index.less';
4
4
  declare const Countdown: ({ props }: {
5
5
  props: ProductCardConfig;
6
- }) => string | number | true | React.JSX.Element | Iterable<React.ReactNode> | null;
6
+ }) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
7
7
  export default Countdown;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Duration: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | React.JSX.Element | Iterable<React.ReactNode> | null;
5
+ }) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
6
6
  export default Duration;
@@ -3,5 +3,5 @@ import { ProductCardConfig } from '../../type';
3
3
  import './index.less';
4
4
  declare const MemberPrice: ({ props }: {
5
5
  props: ProductCardConfig;
6
- }) => string | number | true | React.JSX.Element | Iterable<React.ReactNode> | null;
6
+ }) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
7
7
  export default MemberPrice;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Resource: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | React.JSX.Element | Iterable<React.ReactNode> | null;
5
+ }) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
6
6
  export default Resource;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Stock: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | React.JSX.Element | Iterable<React.ReactNode> | null;
5
+ }) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
6
6
  export default Stock;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Time: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | React.JSX.Element | Iterable<React.ReactNode> | null;
5
+ }) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
6
6
  export default Time;
@@ -14,7 +14,7 @@ export declare const getSkuCardConfig: (finalConfig: ProductCardConfig) => {
14
14
  paddingY: number;
15
15
  paddingX: number;
16
16
  isBorderVisible: boolean;
17
- layoutDirection: "row" | "column";
17
+ layoutDirection: "column" | "row";
18
18
  };
19
19
  skuActionConfig: {
20
20
  isOpen: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.11.110",
3
+ "version": "6.11.111",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -68,9 +68,9 @@
68
68
  "react-resizable": "^3.0.5",
69
69
  "styled-components": "^6.0.0-rc.3",
70
70
  "@pisell/utils": "3.0.2",
71
- "@pisell/date-picker": "3.0.8",
72
71
  "@pisell/materials": "6.11.26",
73
- "@pisell/icon": "0.0.11"
72
+ "@pisell/icon": "0.0.11",
73
+ "@pisell/date-picker": "3.0.8"
74
74
  },
75
75
  "peerDependencies": {
76
76
  "react": "^18.0.0",