pb-sxp-ui 1.0.6 → 1.0.8
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/index.cjs +92 -65
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +92 -66
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +92 -65
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/hooks/useEventReport.js +35 -39
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/materials/sxp/HashTag/settingRender.d.ts +4 -1
- package/es/materials/sxp/HashTag/settingRender.js +7 -3
- package/es/materials/sxp/defaultSetting.d.ts +11 -0
- package/es/materials/sxp/defaultSetting.js +7 -0
- package/es/materials/sxp/popup/AppointForm/material.js +0 -1
- package/es/materials/sxp/popup/AppointForm/settingRender.d.ts +3 -0
- package/es/materials/sxp/popup/AppointForm/settingRender.js +4 -1
- package/es/materials/sxp/popup/CommodityDetail/settingRender.d.ts +4 -1
- package/es/materials/sxp/popup/CommodityDetail/settingRender.js +7 -3
- package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +4 -1
- package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +7 -3
- package/es/materials/sxp/template/MultiCommodity/index.js +1 -1
- package/es/materials/sxp/template/MultiCommodityDiro/index.js +1 -1
- package/es/materials/sxp/template/MultiCommodityDiroNew/index.js +1 -1
- package/es/materials/sxp/template/components/EventProvider.js +2 -1
- package/es/materials/sxp/template/components/settingRender.d.ts +6 -0
- package/es/materials/sxp/template/components/settingRender.js +8 -4
- package/lib/core/hooks/useEventReport.js +35 -39
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -1
- package/lib/materials/sxp/HashTag/settingRender.d.ts +4 -1
- package/lib/materials/sxp/HashTag/settingRender.js +7 -3
- package/lib/materials/sxp/defaultSetting.d.ts +11 -0
- package/lib/materials/sxp/defaultSetting.js +10 -0
- package/lib/materials/sxp/popup/AppointForm/material.js +0 -1
- package/lib/materials/sxp/popup/AppointForm/settingRender.d.ts +3 -0
- package/lib/materials/sxp/popup/AppointForm/settingRender.js +4 -1
- package/lib/materials/sxp/popup/CommodityDetail/settingRender.d.ts +4 -1
- package/lib/materials/sxp/popup/CommodityDetail/settingRender.js +7 -3
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +4 -1
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +7 -3
- package/lib/materials/sxp/template/MultiCommodity/index.js +1 -1
- package/lib/materials/sxp/template/MultiCommodityDiro/index.js +1 -1
- package/lib/materials/sxp/template/MultiCommodityDiroNew/index.js +1 -1
- package/lib/materials/sxp/template/components/EventProvider.js +2 -1
- package/lib/materials/sxp/template/components/settingRender.d.ts +6 -0
- package/lib/materials/sxp/template/components/settingRender.js +8 -4
- package/package.json +1 -1
@@ -1,5 +1,7 @@
|
|
1
1
|
"use strict";
|
2
|
+
var _a, _b;
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
+
const defaultSetting_1 = require("../defaultSetting");
|
3
5
|
exports.default = [
|
4
6
|
{
|
5
7
|
title: '卡片样式',
|
@@ -58,8 +60,9 @@ exports.default = [
|
|
58
60
|
},
|
59
61
|
{
|
60
62
|
type: 'Select',
|
61
|
-
options:
|
62
|
-
name: ['fontFamily']
|
63
|
+
options: defaultSetting_1.fontOptions,
|
64
|
+
name: ['fontFamily'],
|
65
|
+
initialValue: (_a = defaultSetting_1.fontOptions === null || defaultSetting_1.fontOptions === void 0 ? void 0 : defaultSetting_1.fontOptions[0]) === null || _a === void 0 ? void 0 : _a.value
|
63
66
|
},
|
64
67
|
{
|
65
68
|
type: 'Number',
|
@@ -133,7 +136,8 @@ exports.default = [
|
|
133
136
|
{
|
134
137
|
type: 'Select',
|
135
138
|
name: ['props', 'buttonStyle', 'fontFamily'],
|
136
|
-
options:
|
139
|
+
options: defaultSetting_1.fontOptions,
|
140
|
+
initialValue: (_b = defaultSetting_1.fontOptions === null || defaultSetting_1.fontOptions === void 0 ? void 0 : defaultSetting_1.fontOptions[0]) === null || _b === void 0 ? void 0 : _b.value
|
137
141
|
},
|
138
142
|
{
|
139
143
|
type: 'Number',
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.fontOptions = void 0;
|
4
|
+
exports.fontOptions = [
|
5
|
+
{ label: '应用字体', value: 'appFont' },
|
6
|
+
{ label: '黑体', value: '黑体' }
|
7
|
+
];
|
8
|
+
exports.default = {
|
9
|
+
fontOptions: exports.fontOptions
|
10
|
+
};
|
@@ -19,6 +19,7 @@ declare const _default: ({
|
|
19
19
|
type: string;
|
20
20
|
name: string[];
|
21
21
|
options?: undefined;
|
22
|
+
initialValue?: undefined;
|
22
23
|
addonAfter?: undefined;
|
23
24
|
} | {
|
24
25
|
type: string;
|
@@ -27,12 +28,14 @@ declare const _default: ({
|
|
27
28
|
label: string;
|
28
29
|
value: string;
|
29
30
|
}[];
|
31
|
+
initialValue: string;
|
30
32
|
addonAfter?: undefined;
|
31
33
|
} | {
|
32
34
|
type: string;
|
33
35
|
name: string[];
|
34
36
|
addonAfter: string;
|
35
37
|
options?: undefined;
|
38
|
+
initialValue?: undefined;
|
36
39
|
})[];
|
37
40
|
name?: undefined;
|
38
41
|
options?: undefined;
|
@@ -1,5 +1,7 @@
|
|
1
1
|
"use strict";
|
2
|
+
var _a;
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
+
const defaultSetting_1 = require("../../defaultSetting");
|
3
5
|
exports.default = [
|
4
6
|
{
|
5
7
|
type: 'Text',
|
@@ -25,7 +27,8 @@ exports.default = [
|
|
25
27
|
{
|
26
28
|
type: 'Select',
|
27
29
|
name: ['textStyle', 'fontFamily'],
|
28
|
-
options:
|
30
|
+
options: defaultSetting_1.fontOptions,
|
31
|
+
initialValue: (_a = defaultSetting_1.fontOptions === null || defaultSetting_1.fontOptions === void 0 ? void 0 : defaultSetting_1.fontOptions[0]) === null || _a === void 0 ? void 0 : _a.value
|
29
32
|
},
|
30
33
|
{
|
31
34
|
type: 'Number',
|
@@ -38,6 +38,7 @@ declare const _default: ({
|
|
38
38
|
type: string;
|
39
39
|
name: string[];
|
40
40
|
options?: undefined;
|
41
|
+
initialValue?: undefined;
|
41
42
|
addonAfter?: undefined;
|
42
43
|
} | {
|
43
44
|
type: string;
|
@@ -46,12 +47,14 @@ declare const _default: ({
|
|
46
47
|
value: string;
|
47
48
|
}[];
|
48
49
|
name: string[];
|
50
|
+
initialValue: string;
|
49
51
|
addonAfter?: undefined;
|
50
52
|
} | {
|
51
53
|
type: string;
|
52
54
|
addonAfter: string;
|
53
55
|
name: string[];
|
54
56
|
options?: undefined;
|
57
|
+
initialValue?: undefined;
|
55
58
|
})[];
|
56
59
|
options?: undefined;
|
57
60
|
name?: undefined;
|
@@ -118,7 +121,7 @@ declare const _default: ({
|
|
118
121
|
label: string;
|
119
122
|
value: string;
|
120
123
|
}[];
|
121
|
-
initialValue
|
124
|
+
initialValue: string;
|
122
125
|
addonAfter?: undefined;
|
123
126
|
} | {
|
124
127
|
type: string;
|
@@ -1,5 +1,7 @@
|
|
1
1
|
"use strict";
|
2
|
+
var _a, _b;
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
+
const defaultSetting_1 = require("../../defaultSetting");
|
3
5
|
exports.default = [
|
4
6
|
{
|
5
7
|
title: '商品图片',
|
@@ -67,8 +69,9 @@ exports.default = [
|
|
67
69
|
},
|
68
70
|
{
|
69
71
|
type: 'Select',
|
70
|
-
options:
|
71
|
-
name: ['fontFamily']
|
72
|
+
options: defaultSetting_1.fontOptions,
|
73
|
+
name: ['fontFamily'],
|
74
|
+
initialValue: (_a = defaultSetting_1.fontOptions === null || defaultSetting_1.fontOptions === void 0 ? void 0 : defaultSetting_1.fontOptions[0]) === null || _a === void 0 ? void 0 : _a.value
|
72
75
|
},
|
73
76
|
{
|
74
77
|
type: 'Number',
|
@@ -147,7 +150,8 @@ exports.default = [
|
|
147
150
|
{
|
148
151
|
type: 'Select',
|
149
152
|
name: ['props', 'buttonStyle', 'fontFamily'],
|
150
|
-
options:
|
153
|
+
options: defaultSetting_1.fontOptions,
|
154
|
+
initialValue: (_b = defaultSetting_1.fontOptions === null || defaultSetting_1.fontOptions === void 0 ? void 0 : defaultSetting_1.fontOptions[0]) === null || _b === void 0 ? void 0 : _b.value
|
151
155
|
},
|
152
156
|
{
|
153
157
|
type: 'Number',
|
@@ -38,6 +38,7 @@ declare const _default: ({
|
|
38
38
|
type: string;
|
39
39
|
name: string[];
|
40
40
|
options?: undefined;
|
41
|
+
initialValue?: undefined;
|
41
42
|
addonAfter?: undefined;
|
42
43
|
} | {
|
43
44
|
type: string;
|
@@ -46,12 +47,14 @@ declare const _default: ({
|
|
46
47
|
value: string;
|
47
48
|
}[];
|
48
49
|
name: string[];
|
50
|
+
initialValue: string;
|
49
51
|
addonAfter?: undefined;
|
50
52
|
} | {
|
51
53
|
type: string;
|
52
54
|
addonAfter: string;
|
53
55
|
name: string[];
|
54
56
|
options?: undefined;
|
57
|
+
initialValue?: undefined;
|
55
58
|
})[];
|
56
59
|
options?: undefined;
|
57
60
|
name?: undefined;
|
@@ -118,7 +121,7 @@ declare const _default: ({
|
|
118
121
|
label: string;
|
119
122
|
value: string;
|
120
123
|
}[];
|
121
|
-
initialValue
|
124
|
+
initialValue: string;
|
122
125
|
addonAfter?: undefined;
|
123
126
|
} | {
|
124
127
|
type: string;
|
@@ -1,5 +1,7 @@
|
|
1
1
|
"use strict";
|
2
|
+
var _a, _b;
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
+
const defaultSetting_1 = require("../../defaultSetting");
|
3
5
|
exports.default = [
|
4
6
|
{
|
5
7
|
title: '商品图片',
|
@@ -71,8 +73,9 @@ exports.default = [
|
|
71
73
|
},
|
72
74
|
{
|
73
75
|
type: 'Select',
|
74
|
-
options:
|
75
|
-
name: ['fontFamily']
|
76
|
+
options: defaultSetting_1.fontOptions,
|
77
|
+
name: ['fontFamily'],
|
78
|
+
initialValue: (_a = defaultSetting_1.fontOptions === null || defaultSetting_1.fontOptions === void 0 ? void 0 : defaultSetting_1.fontOptions[0]) === null || _a === void 0 ? void 0 : _a.value
|
76
79
|
},
|
77
80
|
{
|
78
81
|
type: 'Number',
|
@@ -151,7 +154,8 @@ exports.default = [
|
|
151
154
|
{
|
152
155
|
type: 'Select',
|
153
156
|
name: ['props', 'buttonStyle', 'fontFamily'],
|
154
|
-
options:
|
157
|
+
options: defaultSetting_1.fontOptions,
|
158
|
+
initialValue: (_b = defaultSetting_1.fontOptions === null || defaultSetting_1.fontOptions === void 0 ? void 0 : defaultSetting_1.fontOptions[0]) === null || _b === void 0 ? void 0 : _b.value
|
155
159
|
},
|
156
160
|
{
|
157
161
|
type: 'Number',
|
@@ -27,7 +27,7 @@ const MultiCommodity = (_a) => {
|
|
27
27
|
if (isExternalLink) {
|
28
28
|
if (item === null || item === void 0 ? void 0 : item.link) {
|
29
29
|
jumpToWeb(recData, item, item.bindCta);
|
30
|
-
window.location.href = item.link;
|
30
|
+
window.location.href = window.getJointUtmLink(item.link);
|
31
31
|
}
|
32
32
|
}
|
33
33
|
else {
|
@@ -26,7 +26,7 @@ const MultiCommodityDiro = (_a) => {
|
|
26
26
|
if (isExternalLink) {
|
27
27
|
if (item === null || item === void 0 ? void 0 : item.link) {
|
28
28
|
jumpToWeb(recData, item, item.bindCta);
|
29
|
-
window.location.href = item.link;
|
29
|
+
window.location.href = window.getJointUtmLink(item.link);
|
30
30
|
}
|
31
31
|
}
|
32
32
|
else {
|
@@ -26,7 +26,7 @@ const MultiCommodityDiroNew = (_a) => {
|
|
26
26
|
if (isExternalLink) {
|
27
27
|
if (item === null || item === void 0 ? void 0 : item.link) {
|
28
28
|
jumpToWeb(recData, item, item.bindCta);
|
29
|
-
window.location.href = item.link;
|
29
|
+
window.location.href = window.getJointUtmLink(item.link);
|
30
30
|
}
|
31
31
|
}
|
32
32
|
else {
|
@@ -24,7 +24,7 @@ const EventProvider = (_a) => {
|
|
24
24
|
}
|
25
25
|
}, [isOnScreen, ref, rec, ctaEvent]);
|
26
26
|
const handleClick = (0, lodash_1.throttle)(() => {
|
27
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
27
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
28
28
|
const item = (_b = (_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.bindProduct) !== null && _b !== void 0 ? _b : rec === null || rec === void 0 ? void 0 : rec.video;
|
29
29
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
30
30
|
eventSubject: 'clickCta',
|
@@ -37,6 +37,7 @@ const EventProvider = (_a) => {
|
|
37
37
|
const product = (_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.bindProduct;
|
38
38
|
jumpToWeb(rec, product, cta);
|
39
39
|
window.location.href = (_h = (_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.bindProduct) === null || _h === void 0 ? void 0 : _h.link;
|
40
|
+
window.location.href = window.getJointUtmLink((_k = (_j = rec === null || rec === void 0 ? void 0 : rec.video) === null || _j === void 0 ? void 0 : _j.bindProduct) === null || _k === void 0 ? void 0 : _k.link);
|
40
41
|
}
|
41
42
|
}
|
42
43
|
else {
|
@@ -50,6 +50,7 @@ declare const _default: ({
|
|
50
50
|
type: string;
|
51
51
|
name: string[];
|
52
52
|
options?: undefined;
|
53
|
+
initialValue?: undefined;
|
53
54
|
addonAfter?: undefined;
|
54
55
|
} | {
|
55
56
|
type: string;
|
@@ -58,12 +59,14 @@ declare const _default: ({
|
|
58
59
|
value: string;
|
59
60
|
}[];
|
60
61
|
name: string[];
|
62
|
+
initialValue: string;
|
61
63
|
addonAfter?: undefined;
|
62
64
|
} | {
|
63
65
|
type: string;
|
64
66
|
addonAfter: string;
|
65
67
|
name: string[];
|
66
68
|
options?: undefined;
|
69
|
+
initialValue?: undefined;
|
67
70
|
})[];
|
68
71
|
name?: undefined;
|
69
72
|
} | {
|
@@ -101,6 +104,7 @@ declare const _default: ({
|
|
101
104
|
type: string;
|
102
105
|
name: string[];
|
103
106
|
options?: undefined;
|
107
|
+
initialValue?: undefined;
|
104
108
|
addonAfter?: undefined;
|
105
109
|
} | {
|
106
110
|
type: string;
|
@@ -109,12 +113,14 @@ declare const _default: ({
|
|
109
113
|
value: string;
|
110
114
|
}[];
|
111
115
|
name: string[];
|
116
|
+
initialValue: string;
|
112
117
|
addonAfter?: undefined;
|
113
118
|
} | {
|
114
119
|
type: string;
|
115
120
|
addonAfter: string;
|
116
121
|
name: string[];
|
117
122
|
options?: undefined;
|
123
|
+
initialValue?: undefined;
|
118
124
|
})[];
|
119
125
|
name?: undefined;
|
120
126
|
})[];
|
@@ -1,5 +1,7 @@
|
|
1
1
|
"use strict";
|
2
|
+
var _a, _b;
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
+
const defaultSetting_1 = require("../../defaultSetting");
|
3
5
|
exports.default = [
|
4
6
|
{
|
5
7
|
title: '主题样式',
|
@@ -114,8 +116,9 @@ exports.default = [
|
|
114
116
|
},
|
115
117
|
{
|
116
118
|
type: 'Select',
|
117
|
-
options:
|
118
|
-
name: ['props', 'ctaTempStyles', 'title', 'fontFamily']
|
119
|
+
options: defaultSetting_1.fontOptions,
|
120
|
+
name: ['props', 'ctaTempStyles', 'title', 'fontFamily'],
|
121
|
+
initialValue: (_a = defaultSetting_1.fontOptions === null || defaultSetting_1.fontOptions === void 0 ? void 0 : defaultSetting_1.fontOptions[0]) === null || _a === void 0 ? void 0 : _a.value
|
119
122
|
},
|
120
123
|
{
|
121
124
|
type: 'Number',
|
@@ -192,8 +195,9 @@ exports.default = [
|
|
192
195
|
},
|
193
196
|
{
|
194
197
|
type: 'Select',
|
195
|
-
options:
|
196
|
-
name: ['props', 'ctaTempStyles', 'ctaTitle', 'fontFamily']
|
198
|
+
options: defaultSetting_1.fontOptions,
|
199
|
+
name: ['props', 'ctaTempStyles', 'ctaTitle', 'fontFamily'],
|
200
|
+
initialValue: (_b = defaultSetting_1.fontOptions === null || defaultSetting_1.fontOptions === void 0 ? void 0 : defaultSetting_1.fontOptions[0]) === null || _b === void 0 ? void 0 : _b.value
|
197
201
|
},
|
198
202
|
{
|
199
203
|
type: 'Number',
|