@pisell/pisellos 2.1.156 → 2.1.158
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.
- package/dist/modules/Holder/index.js +2 -1
- package/dist/modules/Order/index.d.ts +1 -1
- package/dist/solution/BookingByStep/index.d.ts +1 -1
- package/lib/modules/Holder/index.js +1 -0
- package/lib/modules/Order/index.d.ts +1 -1
- package/lib/solution/BookingByStep/index.d.ts +1 -1
- package/package.json +2 -2
|
@@ -70,6 +70,7 @@ export var HolderModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
70
70
|
this.core = core;
|
|
71
71
|
this.store = options.store;
|
|
72
72
|
this.request = this.core.getPlugin('request');
|
|
73
|
+
this.window = this.core.getPlugin('window');
|
|
73
74
|
if ((_options$initialState = options.initialState) !== null && _options$initialState !== void 0 && _options$initialState.holderMap) {
|
|
74
75
|
this.commitFormMap(cloneDeep(options.initialState.holderMap));
|
|
75
76
|
Object.keys(this.store.holderMap).forEach(function (formId) {
|
|
@@ -88,7 +89,7 @@ export var HolderModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
88
89
|
if ((_options$otherParams2 = options.otherParams) !== null && _options$otherParams2 !== void 0 && _options$otherParams2.fatherModule) {
|
|
89
90
|
this.fatherModule = options.otherParams.fatherModule;
|
|
90
91
|
}
|
|
91
|
-
case
|
|
92
|
+
case 8:
|
|
92
93
|
case "end":
|
|
93
94
|
return _context.stop();
|
|
94
95
|
}
|
|
@@ -84,7 +84,7 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
|
|
|
84
84
|
enhancePayload?: SubmitPayloadEnhancer;
|
|
85
85
|
}): Promise<T>;
|
|
86
86
|
createOrder(params: CommitOrderParams['query']): {
|
|
87
|
-
type: "
|
|
87
|
+
type: "virtual" | "appointment_booking";
|
|
88
88
|
platform: string;
|
|
89
89
|
sales_channel: string;
|
|
90
90
|
order_sales_channel: string;
|
|
@@ -325,7 +325,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
325
325
|
date: string;
|
|
326
326
|
status: string;
|
|
327
327
|
week: string;
|
|
328
|
-
weekNum: 0 |
|
|
328
|
+
weekNum: 0 | 2 | 1 | 5 | 3 | 4 | 6;
|
|
329
329
|
}[]>;
|
|
330
330
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
331
331
|
private getScheduleDataByIds;
|
|
@@ -44,6 +44,7 @@ var HolderModule = class extends import_BaseModule.BaseModule {
|
|
|
44
44
|
this.core = core;
|
|
45
45
|
this.store = options.store;
|
|
46
46
|
this.request = this.core.getPlugin("request");
|
|
47
|
+
this.window = this.core.getPlugin("window");
|
|
47
48
|
if ((_a = options.initialState) == null ? void 0 : _a.holderMap) {
|
|
48
49
|
this.commitFormMap((0, import_lodash_es.cloneDeep)(options.initialState.holderMap));
|
|
49
50
|
Object.keys(this.store.holderMap).forEach((formId) => {
|
|
@@ -84,7 +84,7 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
|
|
|
84
84
|
enhancePayload?: SubmitPayloadEnhancer;
|
|
85
85
|
}): Promise<T>;
|
|
86
86
|
createOrder(params: CommitOrderParams['query']): {
|
|
87
|
-
type: "
|
|
87
|
+
type: "virtual" | "appointment_booking";
|
|
88
88
|
platform: string;
|
|
89
89
|
sales_channel: string;
|
|
90
90
|
order_sales_channel: string;
|
|
@@ -325,7 +325,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
325
325
|
date: string;
|
|
326
326
|
status: string;
|
|
327
327
|
week: string;
|
|
328
|
-
weekNum: 0 |
|
|
328
|
+
weekNum: 0 | 2 | 1 | 5 | 3 | 4 | 6;
|
|
329
329
|
}[]>;
|
|
330
330
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
331
331
|
private getScheduleDataByIds;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"private": false,
|
|
3
3
|
"name": "@pisell/pisellos",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.158",
|
|
5
5
|
"description": "一个可扩展的前端模块化SDK框架,支持插件系统",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md}\"",
|
|
19
19
|
"changeset": "changeset",
|
|
20
20
|
"version": "changeset version",
|
|
21
|
-
"release": "changeset publish
|
|
21
|
+
"release": "changeset publish && npm run sync && git push",
|
|
22
22
|
"example": "npx parcel-bundler examples/index.html",
|
|
23
23
|
"docs": "typedoc --out docs src/index.ts",
|
|
24
24
|
"sync": "node sync.js",
|