@pisell/private-materials 6.8.8 → 6.8.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.
@@ -35,7 +35,6 @@ import { useProducts } from "../../hooks/pisellos";
35
35
  import { createCacheItem, genValues, isBundle, isOption, setHandleSetService } from "./utils";
36
36
  import { useToast } from '@pisell/materials';
37
37
  import { useIsActive } from "../../context/IsActiveContext";
38
- import MultiDayTimeSelectModal from "./MultiDayTimeSelectModal";
39
38
  import { SelectHolderModal } from "../../../booking/utils/selectHolderModal";
40
39
  var productListLayout = {
41
40
  grid: true,
@@ -992,7 +991,6 @@ var AddSerivce = function AddSerivce(props) {
992
991
  }, [productDisplayConfig]);
993
992
  return useMemo(function () {
994
993
  if (renderMode === 'current') {
995
- var _pendingMultiDayData$;
996
994
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ProductDisplayAdapter, {
997
995
  config: finalDisplayConfig,
998
996
  dataSource: renderList,
@@ -1001,14 +999,6 @@ var AddSerivce = function AddSerivce(props) {
1001
999
  onSelectProduct: handleSelectProduct
1002
1000
  }), /*#__PURE__*/React.createElement(NotAvailable, {
1003
1001
  ref: notAvailableRef
1004
- }), /*#__PURE__*/React.createElement(MultiDayTimeSelectModal, {
1005
- open: multiDayModalOpen,
1006
- productName: pendingMultiDayData === null || pendingMultiDayData === void 0 || (_pendingMultiDayData$ = pendingMultiDayData.item) === null || _pendingMultiDayData$ === void 0 ? void 0 : _pendingMultiDayData$.title,
1007
- locale: state === null || state === void 0 ? void 0 : state.locale,
1008
- defaultStartDate: state.date.value,
1009
- loading: multiDayModalLoading,
1010
- onConfirm: handleMultiDayConfirm,
1011
- onCancel: handleMultiDayCancel
1012
1002
  }), /*#__PURE__*/React.createElement(SelectHolderModal, null));
1013
1003
  }
1014
1004
  return null;
@@ -50,7 +50,6 @@ var import_pisellos = require("../../hooks/pisellos");
50
50
  var import_utils7 = require("./utils");
51
51
  var import_materials = require("@pisell/materials");
52
52
  var import_IsActiveContext = require("../../context/IsActiveContext");
53
- var import_MultiDayTimeSelectModal = __toESM(require("./MultiDayTimeSelectModal"));
54
53
  var import_selectHolderModal = require("../../../booking/utils/selectHolderModal");
55
54
  var productListLayout = {
56
55
  grid: true,
@@ -574,7 +573,6 @@ var AddSerivce = (props) => {
574
573
  return resolvedConfig;
575
574
  }, [productDisplayConfig]);
576
575
  return (0, import_react.useMemo)(() => {
577
- var _a2;
578
576
  if (renderMode === "current") {
579
577
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
580
578
  import_ProductDisplayAdapter.default,
@@ -585,18 +583,7 @@ var AddSerivce = (props) => {
585
583
  currentProductId: currentProduct == null ? void 0 : currentProduct.id,
586
584
  onSelectProduct: handleSelectProduct
587
585
  }
588
- ), /* @__PURE__ */ import_react.default.createElement(import_notAvailable.default, { ref: notAvailableRef }), /* @__PURE__ */ import_react.default.createElement(
589
- import_MultiDayTimeSelectModal.default,
590
- {
591
- open: multiDayModalOpen,
592
- productName: (_a2 = pendingMultiDayData == null ? void 0 : pendingMultiDayData.item) == null ? void 0 : _a2.title,
593
- locale: state == null ? void 0 : state.locale,
594
- defaultStartDate: state.date.value,
595
- loading: multiDayModalLoading,
596
- onConfirm: handleMultiDayConfirm,
597
- onCancel: handleMultiDayCancel
598
- }
599
- ), /* @__PURE__ */ import_react.default.createElement(import_selectHolderModal.SelectHolderModal, null));
586
+ ), /* @__PURE__ */ import_react.default.createElement(import_notAvailable.default, { ref: notAvailableRef }), /* @__PURE__ */ import_react.default.createElement(import_selectHolderModal.SelectHolderModal, null));
600
587
  }
601
588
  return null;
602
589
  }, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.8.8",
3
+ "version": "6.8.9",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -62,8 +62,8 @@
62
62
  "@react-spring/web": "^9.6.1",
63
63
  "@use-gesture/react": "^10.3.1",
64
64
  "@pisell/utils": "3.0.2",
65
- "@pisell/icon": "0.0.11",
66
65
  "@pisell/materials": "6.8.3",
66
+ "@pisell/icon": "0.0.11",
67
67
  "@pisell/date-picker": "3.0.7"
68
68
  },
69
69
  "peerDependencies": {
@@ -1,61 +0,0 @@
1
- /**
2
- * @title: 点击支付
3
- * @description:
4
- * @param {any} param1
5
- * @return {*}
6
- * @Author: Wzw
7
- * @Date: 2022-10-22 10:05
8
- */
9
- export declare const startPayment: ({ orderId, cardInfo, payData }: any, callback?: any) => Promise<boolean | undefined>;
10
- /*******
11
- * @title: 步骤2
12
- * @description: 提交卡信息到后端
13
- * @return {*}
14
- * @Author: Wzw
15
- * @Date: 2022-10-18 10:26
16
- */
17
- export declare const checkEnrollment: (orderId: string, cardInfo: any, callback: any) => Promise<any>;
18
- /**
19
- * @title: 步骤3
20
- * @description: 创建iframe, 监听
21
- * @param {any} threeDSMethodData
22
- * @return {*}
23
- * @Author: Wzw
24
- * @Date: 2022-10-18 10:36
25
- */
26
- export declare const createThreeDSMethodIframe: (threeDSMethodData: any, callback: any) => Promise<unknown>;
27
- /**
28
- * @title: 步骤4
29
- * @description:
30
- * @param {any} param1
31
- * @return {*}
32
- * @Author: Wzw
33
- * @Date: 2022-10-18 10:43
34
- */
35
- export declare const checkTDSAuth: (step2: any, step3: any, callback?: any) => Promise<any>;
36
- /**
37
- * @title: 步骤5
38
- * @description: 监听
39
- * @param {any} challengeData
40
- * @return {*}
41
- * @Author: Wzw
42
- * @Date: 2022-10-18 10:45
43
- */
44
- export declare const createChallengeIframe: (challengeData: any, callback?: any) => Promise<unknown>;
45
- /**
46
- * @title: 步骤6
47
- * @description:
48
- * @param {any} cres
49
- * @return {*}
50
- * @Author: Wzw
51
- * @Date: 2022-10-18 10:48
52
- */
53
- export declare const checkPARes: (step2: any, step4: any, step5: any) => Promise<any>;
54
- /**
55
- * @title: 支付结束
56
- * @description:
57
- * @return {*}
58
- * @Author: Wzw
59
- * @Date: 2022-10-18 14:28
60
- */
61
- export declare const paymentEnd: (props: any, callback: any) => void;
@@ -1,61 +0,0 @@
1
- /**
2
- * @title: 点击支付
3
- * @description:
4
- * @param {any} param1
5
- * @return {*}
6
- * @Author: Wzw
7
- * @Date: 2022-10-22 10:05
8
- */
9
- export declare const startPayment: ({ orderId, cardInfo, payData }: any, callback?: any) => Promise<boolean | undefined>;
10
- /*******
11
- * @title: 步骤2
12
- * @description: 提交卡信息到后端
13
- * @return {*}
14
- * @Author: Wzw
15
- * @Date: 2022-10-18 10:26
16
- */
17
- export declare const checkEnrollment: (orderId: string, cardInfo: any, callback: any) => Promise<any>;
18
- /**
19
- * @title: 步骤3
20
- * @description: 创建iframe, 监听
21
- * @param {any} threeDSMethodData
22
- * @return {*}
23
- * @Author: Wzw
24
- * @Date: 2022-10-18 10:36
25
- */
26
- export declare const createThreeDSMethodIframe: (threeDSMethodData: any, callback: any) => Promise<unknown>;
27
- /**
28
- * @title: 步骤4
29
- * @description:
30
- * @param {any} param1
31
- * @return {*}
32
- * @Author: Wzw
33
- * @Date: 2022-10-18 10:43
34
- */
35
- export declare const checkTDSAuth: (step2: any, step3: any, callback?: any) => Promise<any>;
36
- /**
37
- * @title: 步骤5
38
- * @description: 监听
39
- * @param {any} challengeData
40
- * @return {*}
41
- * @Author: Wzw
42
- * @Date: 2022-10-18 10:45
43
- */
44
- export declare const createChallengeIframe: (challengeData: any, callback?: any) => Promise<unknown>;
45
- /**
46
- * @title: 步骤6
47
- * @description:
48
- * @param {any} cres
49
- * @return {*}
50
- * @Author: Wzw
51
- * @Date: 2022-10-18 10:48
52
- */
53
- export declare const checkPARes: (step2: any, step4: any, step5: any) => Promise<any>;
54
- /**
55
- * @title: 支付结束
56
- * @description:
57
- * @return {*}
58
- * @Author: Wzw
59
- * @Date: 2022-10-18 14:28
60
- */
61
- export declare const paymentEnd: (props: any, callback: any) => void;