@pisell/private-materials 6.7.3 → 6.7.4

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 (119) 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 +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +2 -2
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +2 -2
  11. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  13. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  14. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  15. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  16. package/es/components/booking/info/service/like/index.d.ts +1 -0
  17. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  18. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  19. package/es/components/eftpos/form/index.d.ts +1 -0
  20. package/es/components/eftpos/group/index.d.ts +1 -0
  21. package/es/components/eftpos/hooks.d.ts +1 -0
  22. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  23. package/es/components/eftpos/icon/device.d.ts +1 -0
  24. package/es/components/eftpos/receipt/index.d.ts +1 -0
  25. package/es/components/eftposPay/amount.d.ts +1 -1
  26. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  27. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  28. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  29. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  30. package/es/components/eftposPay/device.d.ts +1 -1
  31. package/es/components/eftposPay/hooks.d.ts +2 -2
  32. package/es/components/eftposPay/store/index.d.ts +3 -3
  33. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  34. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  35. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  36. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  37. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  38. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  39. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  40. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  41. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  42. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  43. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  44. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  45. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  46. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  47. package/es/plus/clientName/index.d.ts +1 -0
  48. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  49. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  50. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  51. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  52. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  53. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  54. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  55. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  56. package/es/plus/webPosLogin/WebPosLogin.js +5 -8
  57. package/es/plus/webPosLogin/WebPosLoginCpt.js +1 -1
  58. package/es/plus/webPosLogin/components/BrandPanel/index.js +7 -37
  59. package/es/plus/webPosLogin/components/MediaDisplay/index.d.ts +12 -0
  60. package/es/plus/webPosLogin/components/MediaDisplay/index.js +220 -0
  61. package/es/plus/webPosLogin/components/MediaDisplay/index.less +141 -0
  62. package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
  63. package/es/plus/webPosLogin/components/MediaDisplay/type.js +1 -0
  64. package/es/pro/pisellPaymentList/example.d.ts +1 -0
  65. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  66. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  67. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  68. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  69. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  70. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  71. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  72. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  73. package/lib/components/eftpos/form/index.d.ts +1 -0
  74. package/lib/components/eftpos/group/index.d.ts +1 -0
  75. package/lib/components/eftpos/hooks.d.ts +1 -0
  76. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  77. package/lib/components/eftpos/icon/device.d.ts +1 -0
  78. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  79. package/lib/components/eftposPay/amount.d.ts +1 -1
  80. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  81. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  82. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  83. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  84. package/lib/components/eftposPay/device.d.ts +1 -1
  85. package/lib/components/eftposPay/hooks.d.ts +2 -2
  86. package/lib/components/eftposPay/store/index.d.ts +3 -3
  87. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  88. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  89. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  90. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  91. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  92. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  93. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  94. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  95. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  96. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  97. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  98. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  99. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  100. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  101. package/lib/plus/clientName/index.d.ts +1 -0
  102. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  103. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  104. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  105. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  106. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  107. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  108. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  109. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  110. package/lib/plus/webPosLogin/WebPosLogin.js +17 -21
  111. package/lib/plus/webPosLogin/WebPosLoginCpt.js +1 -1
  112. package/lib/plus/webPosLogin/components/BrandPanel/index.js +2 -22
  113. package/lib/plus/webPosLogin/components/MediaDisplay/index.d.ts +12 -0
  114. package/lib/plus/webPosLogin/components/MediaDisplay/index.js +160 -0
  115. package/lib/plus/webPosLogin/components/MediaDisplay/index.less +141 -0
  116. package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
  117. package/lib/plus/webPosLogin/components/MediaDisplay/type.js +17 -0
  118. package/lib/pro/pisellPaymentList/example.d.ts +1 -0
  119. package/package.json +3 -3
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Footer: ({ onNext, isOpen }: any) => JSX.Element;
3
4
  export default Footer;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const GuestOptionsModal: (props: any) => JSX.Element;
3
4
  export default GuestOptionsModal;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const FormItemChildrenWrap: (props: any) => JSX.Element;
2
3
  export default FormItemChildrenWrap;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const useIsLowSpeedNetwork: () => import("react").MutableRefObject<boolean>;
2
3
  export default useIsLowSpeedNetwork;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: any;
9
+ locale: string;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Like: ({ status, onChange, className, style, }: {
3
4
  style?: any;
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: any;
10
+ locale: string;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ input, ...formItemProps }: any) => JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 递归循环表单数据
3
4
  * @Author: hongbing.wang
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RadioGroupProps } from 'antd';
2
3
  export declare const CheckboxGroup: ({ direction, options, ...props }: any) => JSX.Element;
3
4
  export declare const RadioGroup: ({ direction, options, ...props }: RadioGroupProps & {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Eftpos } from './const';
2
3
  /**
3
4
  * @title: tyro 设备连接
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ color }: {
2
3
  color?: string | undefined;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ color }: {
2
3
  color?: string | undefined;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 自定义组件设置
3
4
  * @description: 自定义组件设置
@@ -8,7 +8,7 @@ import { PosProps } from './const';
8
8
  */
9
9
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
10
10
  className?: string | undefined;
11
- onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
11
+ onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
12
12
  [keys: string]: unknown;
13
13
  } | undefined, other?: any) => void) | undefined;
14
14
  onClose: () => void;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './titlebar.less';
2
3
  declare enum EPopupTitleBarVariantType {
3
4
  BackTitleClose = "back-title-cancel",
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StatusType } from '../../const';
2
3
  declare const _default: (props: {
3
4
  status: StatusType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: (props: {
2
3
  status: string;
3
4
  pedding?: string;
@@ -11,7 +11,7 @@ import './device.less';
11
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
15
15
  [keys: string]: unknown;
16
16
  } | undefined, other?: any) => void) | undefined;
17
17
  onClose: () => void;
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"tyro" | "windcave" | "stripe" | "payo" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "success" | "warn" | "loading" | "fail" | "question";
177
+ status: "loading" | "success" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -297,7 +297,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
297
297
  amount?: string | number | undefined;
298
298
  mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "tyro" | "windcave" | "stripe" | "payo" | "linkly" | undefined;
300
+ eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
301
  action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 获取 Tyro 资源
3
4
  * @description:
@@ -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,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Deposit: () => JSX.Element;
2
3
  export default Deposit;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const InformationOptionsModal: (props: any) => JSX.Element;
3
4
  export default InformationOptionsModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const WeekItem: (props: any) => JSX.Element;
3
4
  export default WeekItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare type CalenDateWeekProps = {
3
4
  currentDate: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const DayItem: (props: any) => JSX.Element;
3
4
  export default DayItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { CalendarItemProps } from '../../../../../type';
3
4
  declare const Item: (props: CalendarItemProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
2
3
  public_key: string;
3
4
  client_secret?: string | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const SetupForm: ({ onReady, amount, order_id, payment_method, scene, }: any) => JSX.Element;
3
4
  export default SetupForm;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.module.less';
2
3
  declare const StripePayment: () => JSX.Element;
3
4
  export default StripePayment;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface InfoProps {
2
3
  relation_id: any;
3
4
  action: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const RelationProduct: ({ value, onChange, }: {
3
4
  value?: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Modal as AntModal, ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from 'antd';
2
3
  import './index.less';
3
4
  interface ModalProps extends AntModalProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { IClientNameProps } from './type';
3
4
  declare const ClientName: ({ className, dataSource, style }: IClientNameProps) => JSX.Element | null;
@@ -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.ReactFragment | JSX.Element | null;
5
+ }) => string | number | true | JSX.Element | React.ReactFragment | 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.ReactFragment | JSX.Element | null;
6
+ }) => string | number | true | JSX.Element | React.ReactFragment | 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.ReactFragment | JSX.Element | null;
6
+ }) => string | number | true | JSX.Element | React.ReactFragment | 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.ReactFragment | JSX.Element | null;
5
+ }) => string | number | true | JSX.Element | React.ReactFragment | 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.ReactFragment | JSX.Element | null;
6
+ }) => string | number | true | JSX.Element | React.ReactFragment | 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.ReactFragment | JSX.Element | null;
5
+ }) => string | number | true | JSX.Element | React.ReactFragment | 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.ReactFragment | JSX.Element | null;
5
+ }) => string | number | true | JSX.Element | React.ReactFragment | 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.ReactFragment | JSX.Element | null;
5
+ }) => string | number | true | JSX.Element | React.ReactFragment | null;
6
6
  export default Time;
@@ -24,7 +24,7 @@ var useSearchParams = function useSearchParams() {
24
24
  return new URLSearchParams(window.location.search);
25
25
  };
26
26
  var WebPosLogin = function WebPosLogin(props) {
27
- var _context$appHelper, _context$engine;
27
+ var _context$appHelper, _context$appHelper2, _mediaConfig$loginBgM, _context$engine;
28
28
  var context = useEngineContext();
29
29
  var _context$appHelper$ut = (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils,
30
30
  _context$appHelper$ut2 = _context$appHelper$ut.getApp,
@@ -32,6 +32,8 @@ var WebPosLogin = function WebPosLogin(props) {
32
32
  return {};
33
33
  } : _context$appHelper$ut2,
34
34
  reloadAfterLogin = _context$appHelper$ut.reloadAfterLogin;
35
+ var _context$appHelper$co = (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.constants,
36
+ mediaConfig = _context$appHelper$co.mediaConfig;
35
37
  var backgroundImage = props.backgroundImage,
36
38
  _props$step = props.step,
37
39
  propsStep = _props$step === void 0 ? 'login' : _props$step,
@@ -523,13 +525,8 @@ var WebPosLogin = function WebPosLogin(props) {
523
525
  };
524
526
  return /*#__PURE__*/React.createElement(WebPosLoginCpt, {
525
527
  loginConfig: config,
526
- backgroundImage: backgroundImage,
527
- brandConfig: {
528
- carouselItems: [{
529
- type: 'image',
530
- url: 'https://static.pisellcdn.com/defaultLogo.png'
531
- }]
532
- },
528
+ backgroundImage: backgroundImage || ((_mediaConfig$loginBgM = mediaConfig.loginBgMediaConfig) === null || _mediaConfig$loginBgM === void 0 || (_mediaConfig$loginBgM = _mediaConfig$loginBgM[0]) === null || _mediaConfig$loginBgM === void 0 ? void 0 : _mediaConfig$loginBgM.url),
529
+ brandConfig: mediaConfig.loginMediaConfig,
533
530
  step: step,
534
531
  showBackButton: isShowGoBack,
535
532
  storeList: storeList,
@@ -15,7 +15,7 @@ import UserFooter from "./components/UserFooter";
15
15
  import "./WebPosLoginCpt.less";
16
16
 
17
17
  /** 默认背景图片 */
18
- var DEFAULT_BACKGROUND = 'http://static.pisellcdn.com/defaultBg.png';
18
+ var DEFAULT_BACKGROUND = 'http://static.pisellcdn.com/defaultBg1.jpg';
19
19
 
20
20
  /**
21
21
  * WebPosLoginCpt 主组件
@@ -1,6 +1,6 @@
1
- import React, { memo, useMemo } from 'react';
2
- import { Image } from '@pisell/materials';
1
+ import React, { memo } from 'react';
3
2
  import "./index.less";
3
+ import MediaDisplay from "../MediaDisplay";
4
4
 
5
5
  /**
6
6
  * BrandPanel 品牌区组件
@@ -10,43 +10,13 @@ var BrandPanel = /*#__PURE__*/memo(function (props) {
10
10
  var config = props.config,
11
11
  _props$className = props.className,
12
12
  className = _props$className === void 0 ? '' : _props$className;
13
-
14
- /**
15
- * 获取展示的图片
16
- * 优先使用轮播的第一张图片,否则使用 logo,最后使用默认 Logo
17
- */
18
- var displayImage = useMemo(function () {
19
- var _config$carouselItems;
20
- // 如果有轮播配置,取第一个图片类型的内容
21
- if (config !== null && config !== void 0 && (_config$carouselItems = config.carouselItems) !== null && _config$carouselItems !== void 0 && _config$carouselItems.length) {
22
- var firstImage = config.carouselItems.find(function (item) {
23
- return item.type === 'image';
24
- });
25
- if (firstImage !== null && firstImage !== void 0 && firstImage.url) {
26
- return firstImage.url;
27
- }
28
- }
29
- // 否则使用配置的 logo 或默认 logo
30
- return config === null || config === void 0 ? void 0 : config.logo;
31
- }, [config === null || config === void 0 ? void 0 : config.carouselItems, config === null || config === void 0 ? void 0 : config.logo]);
32
-
33
- /** 品牌标语 */
34
- var slogan = config === null || config === void 0 ? void 0 : config.slogan;
35
- console.log('displayImage', displayImage);
36
13
  return /*#__PURE__*/React.createElement("div", {
37
14
  className: "webpos-login-brand-panel ".concat(className).trim()
38
- }, /*#__PURE__*/React.createElement("div", {
39
- className: "webpos-login-brand-panel__content"
40
- }, /*#__PURE__*/React.createElement("div", {
41
- className: "webpos-login-brand-panel__logo-wrapper"
42
- }, /*#__PURE__*/React.createElement(Image, {
43
- src: displayImage,
44
- preview: false,
45
- alt: "Brand Logo",
46
- className: "webpos-login-brand-panel__logo"
47
- })), slogan && /*#__PURE__*/React.createElement("p", {
48
- className: "webpos-login-brand-panel__slogan"
49
- }, slogan)));
15
+ }, /*#__PURE__*/React.createElement(MediaDisplay, {
16
+ config: {
17
+ carouselItems: config
18
+ }
19
+ }));
50
20
  });
51
21
  BrandPanel.displayName = 'BrandPanel';
52
22
  export default BrandPanel;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { MediaDisplayProps } from "./type";
3
+ import './index.less';
4
+ /**
5
+ * MediaDisplay 媒体组件
6
+ * @description 通用媒体展示组件,支持图片/视频展示
7
+ * - 支持单个媒体或轮播(预留)
8
+ * - 支持全屏模式
9
+ * - 支持视频播放控制和状态回调
10
+ */
11
+ declare const MediaDisplay: React.FC<MediaDisplayProps>;
12
+ export default MediaDisplay;