@fonixtree/magic-design 2.0.21 → 2.0.23
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/es/common/LinkModal/BundleCampaign/index.js +2 -2
- package/es/common/LinkModal/CouponTable/index.js +10 -2
- package/es/common/LinkModal/ProductDetailPage/index.js +2 -2
- package/es/meta-comp/components/Text/formats/fontFamily.js +58 -0
- package/es/meta-comp/components/Text/formats/fontWeight.js +58 -0
- package/es/meta-comp/components/Text/formats/textDecorationColor.js +58 -0
- package/es/meta-comp/components/Text/formats/textDecorationStyle.js +58 -0
- package/lib/common/LinkModal/BundleCampaign/index.js +2 -2
- package/lib/common/LinkModal/CouponTable/index.js +10 -2
- package/lib/common/LinkModal/ProductDetailPage/index.js +2 -2
- package/lib/meta-comp/components/Text/formats/fontFamily.js +58 -0
- package/lib/meta-comp/components/Text/formats/fontWeight.js +58 -0
- package/lib/meta-comp/components/Text/formats/textDecorationColor.js +58 -0
- package/lib/meta-comp/components/Text/formats/textDecorationStyle.js +58 -0
- package/package.json +1 -1
|
@@ -179,7 +179,7 @@ var BundleCampaign = function BundleCampaign(props) {
|
|
|
179
179
|
campaignName = _b[0],
|
|
180
180
|
setCampaignName = _b[1];
|
|
181
181
|
|
|
182
|
-
var _c = (0, _react.useState)(''),
|
|
182
|
+
var _c = (0, _react.useState)(window.magicDesign.storeId ? window.magicDesign.storeId : ''),
|
|
183
183
|
storeId = _c[0],
|
|
184
184
|
setStoreId = _c[1];
|
|
185
185
|
|
|
@@ -241,7 +241,7 @@ var BundleCampaign = function BundleCampaign(props) {
|
|
|
241
241
|
|
|
242
242
|
var reset = function reset() {
|
|
243
243
|
setCampaignName('');
|
|
244
|
-
setStoreId('');
|
|
244
|
+
setStoreId(window.magicDesign.storeId ? window.magicDesign.storeId : '');
|
|
245
245
|
setCmpState('A,B');
|
|
246
246
|
};
|
|
247
247
|
|
|
@@ -246,14 +246,22 @@ function CouponTable(props) {
|
|
|
246
246
|
|
|
247
247
|
var getCoupons = function getCoupons(params) {
|
|
248
248
|
return __awaiter(_this, void 0, void 0, function () {
|
|
249
|
-
var res, list;
|
|
249
|
+
var newParams, res, list;
|
|
250
250
|
return __generator(this, function (_a) {
|
|
251
251
|
switch (_a.label) {
|
|
252
252
|
case 0:
|
|
253
253
|
setLoading(true);
|
|
254
|
+
newParams = __assign(__assign({}, params), {
|
|
255
|
+
tableFlag: 'effective',
|
|
256
|
+
isPublic: 'Y',
|
|
257
|
+
state: 'A',
|
|
258
|
+
couponLocation: 'Promotion',
|
|
259
|
+
pageTotal: false,
|
|
260
|
+
storeId: window.magicDesign.storeId ? window.magicDesign.storeId : ''
|
|
261
|
+
});
|
|
254
262
|
return [4
|
|
255
263
|
/*yield*/
|
|
256
|
-
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/coupons/couponList/page
|
|
264
|
+
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/coupons/couponList/page", newParams, 'GET')];
|
|
257
265
|
|
|
258
266
|
case 1:
|
|
259
267
|
res = _a.sent();
|
|
@@ -220,7 +220,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
|
|
|
220
220
|
productName = _e[0],
|
|
221
221
|
setProductName = _e[1];
|
|
222
222
|
|
|
223
|
-
var _f = (0, _react.useState)(window.magicDesign.storeId ?
|
|
223
|
+
var _f = (0, _react.useState)(window.magicDesign.storeId ? window.magicDesign.storeId : []),
|
|
224
224
|
storeId = _f[0],
|
|
225
225
|
setStoreId = _f[1];
|
|
226
226
|
|
|
@@ -357,7 +357,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
|
|
|
357
357
|
setProductName('');
|
|
358
358
|
setProductCode('');
|
|
359
359
|
setBrandId([]);
|
|
360
|
-
setStoreId([]);
|
|
360
|
+
setStoreId(window.magicDesign.storeId ? window.magicDesign.storeId : []);
|
|
361
361
|
};
|
|
362
362
|
|
|
363
363
|
(0, _react.useEffect)(function () {
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.FontFamilyStyle = exports.FontFamilyAttributor = void 0;
|
|
7
|
+
|
|
8
|
+
var _quill = _interopRequireDefault(require("quill"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
13
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
14
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
15
|
+
__proto__: []
|
|
16
|
+
} instanceof Array && function (d, b) {
|
|
17
|
+
d.__proto__ = b;
|
|
18
|
+
} || function (d, b) {
|
|
19
|
+
for (var p in b) {
|
|
20
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
return _extendStatics(d, b);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
return function (d, b) {
|
|
28
|
+
_extendStatics(d, b);
|
|
29
|
+
|
|
30
|
+
function __() {
|
|
31
|
+
this.constructor = d;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
35
|
+
};
|
|
36
|
+
}();
|
|
37
|
+
|
|
38
|
+
var Parchment = _quill["default"]["import"]('parchment');
|
|
39
|
+
|
|
40
|
+
var FontFamilyAttributor =
|
|
41
|
+
/** @class */
|
|
42
|
+
function (_super) {
|
|
43
|
+
__extends(FontFamilyAttributor, _super);
|
|
44
|
+
|
|
45
|
+
function FontFamilyAttributor() {
|
|
46
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return FontFamilyAttributor;
|
|
50
|
+
}(Parchment.Attributor.Style);
|
|
51
|
+
|
|
52
|
+
exports.FontFamilyAttributor = FontFamilyAttributor;
|
|
53
|
+
var FontFamilyStyle = new FontFamilyAttributor('font-family', 'font-family', {
|
|
54
|
+
scope: Parchment.Scope.INLINE
|
|
55
|
+
});
|
|
56
|
+
exports.FontFamilyStyle = FontFamilyStyle;
|
|
57
|
+
|
|
58
|
+
_quill["default"].register('formats/font-family', FontFamilyStyle, true);
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.FontWeightStyle = exports.FontWeightAttributor = void 0;
|
|
7
|
+
|
|
8
|
+
var _quill = _interopRequireDefault(require("quill"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
13
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
14
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
15
|
+
__proto__: []
|
|
16
|
+
} instanceof Array && function (d, b) {
|
|
17
|
+
d.__proto__ = b;
|
|
18
|
+
} || function (d, b) {
|
|
19
|
+
for (var p in b) {
|
|
20
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
return _extendStatics(d, b);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
return function (d, b) {
|
|
28
|
+
_extendStatics(d, b);
|
|
29
|
+
|
|
30
|
+
function __() {
|
|
31
|
+
this.constructor = d;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
35
|
+
};
|
|
36
|
+
}();
|
|
37
|
+
|
|
38
|
+
var Parchment = _quill["default"]["import"]('parchment');
|
|
39
|
+
|
|
40
|
+
var FontWeightAttributor =
|
|
41
|
+
/** @class */
|
|
42
|
+
function (_super) {
|
|
43
|
+
__extends(FontWeightAttributor, _super);
|
|
44
|
+
|
|
45
|
+
function FontWeightAttributor() {
|
|
46
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return FontWeightAttributor;
|
|
50
|
+
}(Parchment.Attributor.Style);
|
|
51
|
+
|
|
52
|
+
exports.FontWeightAttributor = FontWeightAttributor;
|
|
53
|
+
var FontWeightStyle = new FontWeightAttributor('font-weight', 'font-weight', {
|
|
54
|
+
scope: Parchment.Scope.INLINE
|
|
55
|
+
});
|
|
56
|
+
exports.FontWeightStyle = FontWeightStyle;
|
|
57
|
+
|
|
58
|
+
_quill["default"].register('formats/font-weight', FontWeightStyle, true);
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TextDecorationColorStyle = exports.TextDecorationColorAttributor = void 0;
|
|
7
|
+
|
|
8
|
+
var _quill = _interopRequireDefault(require("quill"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
13
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
14
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
15
|
+
__proto__: []
|
|
16
|
+
} instanceof Array && function (d, b) {
|
|
17
|
+
d.__proto__ = b;
|
|
18
|
+
} || function (d, b) {
|
|
19
|
+
for (var p in b) {
|
|
20
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
return _extendStatics(d, b);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
return function (d, b) {
|
|
28
|
+
_extendStatics(d, b);
|
|
29
|
+
|
|
30
|
+
function __() {
|
|
31
|
+
this.constructor = d;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
35
|
+
};
|
|
36
|
+
}();
|
|
37
|
+
|
|
38
|
+
var Parchment = _quill["default"]["import"]('parchment');
|
|
39
|
+
|
|
40
|
+
var TextDecorationColorAttributor =
|
|
41
|
+
/** @class */
|
|
42
|
+
function (_super) {
|
|
43
|
+
__extends(TextDecorationColorAttributor, _super);
|
|
44
|
+
|
|
45
|
+
function TextDecorationColorAttributor() {
|
|
46
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return TextDecorationColorAttributor;
|
|
50
|
+
}(Parchment.Attributor.Style);
|
|
51
|
+
|
|
52
|
+
exports.TextDecorationColorAttributor = TextDecorationColorAttributor;
|
|
53
|
+
var TextDecorationColorStyle = new TextDecorationColorAttributor('text-decoration-color', 'text-decoration-color', {
|
|
54
|
+
scope: Parchment.Scope.INLINE
|
|
55
|
+
});
|
|
56
|
+
exports.TextDecorationColorStyle = TextDecorationColorStyle;
|
|
57
|
+
|
|
58
|
+
_quill["default"].register('formats/text-decoration-color', TextDecorationColorStyle, true);
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TextDecorationStyleStyle = exports.TextDecorationStyleAttributor = void 0;
|
|
7
|
+
|
|
8
|
+
var _quill = _interopRequireDefault(require("quill"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
13
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
14
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
15
|
+
__proto__: []
|
|
16
|
+
} instanceof Array && function (d, b) {
|
|
17
|
+
d.__proto__ = b;
|
|
18
|
+
} || function (d, b) {
|
|
19
|
+
for (var p in b) {
|
|
20
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
return _extendStatics(d, b);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
return function (d, b) {
|
|
28
|
+
_extendStatics(d, b);
|
|
29
|
+
|
|
30
|
+
function __() {
|
|
31
|
+
this.constructor = d;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
35
|
+
};
|
|
36
|
+
}();
|
|
37
|
+
|
|
38
|
+
var Parchment = _quill["default"]["import"]('parchment');
|
|
39
|
+
|
|
40
|
+
var TextDecorationStyleAttributor =
|
|
41
|
+
/** @class */
|
|
42
|
+
function (_super) {
|
|
43
|
+
__extends(TextDecorationStyleAttributor, _super);
|
|
44
|
+
|
|
45
|
+
function TextDecorationStyleAttributor() {
|
|
46
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return TextDecorationStyleAttributor;
|
|
50
|
+
}(Parchment.Attributor.Style);
|
|
51
|
+
|
|
52
|
+
exports.TextDecorationStyleAttributor = TextDecorationStyleAttributor;
|
|
53
|
+
var TextDecorationStyleStyle = new TextDecorationStyleAttributor('text-decoration-style', 'text-decoration-style', {
|
|
54
|
+
scope: Parchment.Scope.INLINE
|
|
55
|
+
});
|
|
56
|
+
exports.TextDecorationStyleStyle = TextDecorationStyleStyle;
|
|
57
|
+
|
|
58
|
+
_quill["default"].register('formats/text-decoration-style', TextDecorationStyleStyle, true);
|
|
@@ -179,7 +179,7 @@ var BundleCampaign = function BundleCampaign(props) {
|
|
|
179
179
|
campaignName = _b[0],
|
|
180
180
|
setCampaignName = _b[1];
|
|
181
181
|
|
|
182
|
-
var _c = (0, _react.useState)(''),
|
|
182
|
+
var _c = (0, _react.useState)(window.magicDesign.storeId ? window.magicDesign.storeId : ''),
|
|
183
183
|
storeId = _c[0],
|
|
184
184
|
setStoreId = _c[1];
|
|
185
185
|
|
|
@@ -241,7 +241,7 @@ var BundleCampaign = function BundleCampaign(props) {
|
|
|
241
241
|
|
|
242
242
|
var reset = function reset() {
|
|
243
243
|
setCampaignName('');
|
|
244
|
-
setStoreId('');
|
|
244
|
+
setStoreId(window.magicDesign.storeId ? window.magicDesign.storeId : '');
|
|
245
245
|
setCmpState('A,B');
|
|
246
246
|
};
|
|
247
247
|
|
|
@@ -246,14 +246,22 @@ function CouponTable(props) {
|
|
|
246
246
|
|
|
247
247
|
var getCoupons = function getCoupons(params) {
|
|
248
248
|
return __awaiter(_this, void 0, void 0, function () {
|
|
249
|
-
var res, list;
|
|
249
|
+
var newParams, res, list;
|
|
250
250
|
return __generator(this, function (_a) {
|
|
251
251
|
switch (_a.label) {
|
|
252
252
|
case 0:
|
|
253
253
|
setLoading(true);
|
|
254
|
+
newParams = __assign(__assign({}, params), {
|
|
255
|
+
tableFlag: 'effective',
|
|
256
|
+
isPublic: 'Y',
|
|
257
|
+
state: 'A',
|
|
258
|
+
couponLocation: 'Promotion',
|
|
259
|
+
pageTotal: false,
|
|
260
|
+
storeId: window.magicDesign.storeId ? window.magicDesign.storeId : ''
|
|
261
|
+
});
|
|
254
262
|
return [4
|
|
255
263
|
/*yield*/
|
|
256
|
-
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/coupons/couponList/page
|
|
264
|
+
, (0, _commonUtil.commonFetch)("/designer/v1/" + window.magicDesign.MBaseUrl + "/coupons/couponList/page", newParams, 'GET')];
|
|
257
265
|
|
|
258
266
|
case 1:
|
|
259
267
|
res = _a.sent();
|
|
@@ -220,7 +220,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
|
|
|
220
220
|
productName = _e[0],
|
|
221
221
|
setProductName = _e[1];
|
|
222
222
|
|
|
223
|
-
var _f = (0, _react.useState)(window.magicDesign.storeId ?
|
|
223
|
+
var _f = (0, _react.useState)(window.magicDesign.storeId ? window.magicDesign.storeId : []),
|
|
224
224
|
storeId = _f[0],
|
|
225
225
|
setStoreId = _f[1];
|
|
226
226
|
|
|
@@ -357,7 +357,7 @@ var ProductDetailPage = function ProductDetailPage(props) {
|
|
|
357
357
|
setProductName('');
|
|
358
358
|
setProductCode('');
|
|
359
359
|
setBrandId([]);
|
|
360
|
-
setStoreId([]);
|
|
360
|
+
setStoreId(window.magicDesign.storeId ? window.magicDesign.storeId : []);
|
|
361
361
|
};
|
|
362
362
|
|
|
363
363
|
(0, _react.useEffect)(function () {
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.FontFamilyStyle = exports.FontFamilyAttributor = void 0;
|
|
7
|
+
|
|
8
|
+
var _quill = _interopRequireDefault(require("quill"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
13
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
14
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
15
|
+
__proto__: []
|
|
16
|
+
} instanceof Array && function (d, b) {
|
|
17
|
+
d.__proto__ = b;
|
|
18
|
+
} || function (d, b) {
|
|
19
|
+
for (var p in b) {
|
|
20
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
return _extendStatics(d, b);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
return function (d, b) {
|
|
28
|
+
_extendStatics(d, b);
|
|
29
|
+
|
|
30
|
+
function __() {
|
|
31
|
+
this.constructor = d;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
35
|
+
};
|
|
36
|
+
}();
|
|
37
|
+
|
|
38
|
+
var Parchment = _quill["default"]["import"]('parchment');
|
|
39
|
+
|
|
40
|
+
var FontFamilyAttributor =
|
|
41
|
+
/** @class */
|
|
42
|
+
function (_super) {
|
|
43
|
+
__extends(FontFamilyAttributor, _super);
|
|
44
|
+
|
|
45
|
+
function FontFamilyAttributor() {
|
|
46
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return FontFamilyAttributor;
|
|
50
|
+
}(Parchment.Attributor.Style);
|
|
51
|
+
|
|
52
|
+
exports.FontFamilyAttributor = FontFamilyAttributor;
|
|
53
|
+
var FontFamilyStyle = new FontFamilyAttributor('font-family', 'font-family', {
|
|
54
|
+
scope: Parchment.Scope.INLINE
|
|
55
|
+
});
|
|
56
|
+
exports.FontFamilyStyle = FontFamilyStyle;
|
|
57
|
+
|
|
58
|
+
_quill["default"].register('formats/font-family', FontFamilyStyle, true);
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.FontWeightStyle = exports.FontWeightAttributor = void 0;
|
|
7
|
+
|
|
8
|
+
var _quill = _interopRequireDefault(require("quill"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
13
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
14
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
15
|
+
__proto__: []
|
|
16
|
+
} instanceof Array && function (d, b) {
|
|
17
|
+
d.__proto__ = b;
|
|
18
|
+
} || function (d, b) {
|
|
19
|
+
for (var p in b) {
|
|
20
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
return _extendStatics(d, b);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
return function (d, b) {
|
|
28
|
+
_extendStatics(d, b);
|
|
29
|
+
|
|
30
|
+
function __() {
|
|
31
|
+
this.constructor = d;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
35
|
+
};
|
|
36
|
+
}();
|
|
37
|
+
|
|
38
|
+
var Parchment = _quill["default"]["import"]('parchment');
|
|
39
|
+
|
|
40
|
+
var FontWeightAttributor =
|
|
41
|
+
/** @class */
|
|
42
|
+
function (_super) {
|
|
43
|
+
__extends(FontWeightAttributor, _super);
|
|
44
|
+
|
|
45
|
+
function FontWeightAttributor() {
|
|
46
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return FontWeightAttributor;
|
|
50
|
+
}(Parchment.Attributor.Style);
|
|
51
|
+
|
|
52
|
+
exports.FontWeightAttributor = FontWeightAttributor;
|
|
53
|
+
var FontWeightStyle = new FontWeightAttributor('font-weight', 'font-weight', {
|
|
54
|
+
scope: Parchment.Scope.INLINE
|
|
55
|
+
});
|
|
56
|
+
exports.FontWeightStyle = FontWeightStyle;
|
|
57
|
+
|
|
58
|
+
_quill["default"].register('formats/font-weight', FontWeightStyle, true);
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TextDecorationColorStyle = exports.TextDecorationColorAttributor = void 0;
|
|
7
|
+
|
|
8
|
+
var _quill = _interopRequireDefault(require("quill"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
13
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
14
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
15
|
+
__proto__: []
|
|
16
|
+
} instanceof Array && function (d, b) {
|
|
17
|
+
d.__proto__ = b;
|
|
18
|
+
} || function (d, b) {
|
|
19
|
+
for (var p in b) {
|
|
20
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
return _extendStatics(d, b);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
return function (d, b) {
|
|
28
|
+
_extendStatics(d, b);
|
|
29
|
+
|
|
30
|
+
function __() {
|
|
31
|
+
this.constructor = d;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
35
|
+
};
|
|
36
|
+
}();
|
|
37
|
+
|
|
38
|
+
var Parchment = _quill["default"]["import"]('parchment');
|
|
39
|
+
|
|
40
|
+
var TextDecorationColorAttributor =
|
|
41
|
+
/** @class */
|
|
42
|
+
function (_super) {
|
|
43
|
+
__extends(TextDecorationColorAttributor, _super);
|
|
44
|
+
|
|
45
|
+
function TextDecorationColorAttributor() {
|
|
46
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return TextDecorationColorAttributor;
|
|
50
|
+
}(Parchment.Attributor.Style);
|
|
51
|
+
|
|
52
|
+
exports.TextDecorationColorAttributor = TextDecorationColorAttributor;
|
|
53
|
+
var TextDecorationColorStyle = new TextDecorationColorAttributor('text-decoration-color', 'text-decoration-color', {
|
|
54
|
+
scope: Parchment.Scope.INLINE
|
|
55
|
+
});
|
|
56
|
+
exports.TextDecorationColorStyle = TextDecorationColorStyle;
|
|
57
|
+
|
|
58
|
+
_quill["default"].register('formats/text-decoration-color', TextDecorationColorStyle, true);
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TextDecorationStyleStyle = exports.TextDecorationStyleAttributor = void 0;
|
|
7
|
+
|
|
8
|
+
var _quill = _interopRequireDefault(require("quill"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
13
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
14
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
15
|
+
__proto__: []
|
|
16
|
+
} instanceof Array && function (d, b) {
|
|
17
|
+
d.__proto__ = b;
|
|
18
|
+
} || function (d, b) {
|
|
19
|
+
for (var p in b) {
|
|
20
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
return _extendStatics(d, b);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
return function (d, b) {
|
|
28
|
+
_extendStatics(d, b);
|
|
29
|
+
|
|
30
|
+
function __() {
|
|
31
|
+
this.constructor = d;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
35
|
+
};
|
|
36
|
+
}();
|
|
37
|
+
|
|
38
|
+
var Parchment = _quill["default"]["import"]('parchment');
|
|
39
|
+
|
|
40
|
+
var TextDecorationStyleAttributor =
|
|
41
|
+
/** @class */
|
|
42
|
+
function (_super) {
|
|
43
|
+
__extends(TextDecorationStyleAttributor, _super);
|
|
44
|
+
|
|
45
|
+
function TextDecorationStyleAttributor() {
|
|
46
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return TextDecorationStyleAttributor;
|
|
50
|
+
}(Parchment.Attributor.Style);
|
|
51
|
+
|
|
52
|
+
exports.TextDecorationStyleAttributor = TextDecorationStyleAttributor;
|
|
53
|
+
var TextDecorationStyleStyle = new TextDecorationStyleAttributor('text-decoration-style', 'text-decoration-style', {
|
|
54
|
+
scope: Parchment.Scope.INLINE
|
|
55
|
+
});
|
|
56
|
+
exports.TextDecorationStyleStyle = TextDecorationStyleStyle;
|
|
57
|
+
|
|
58
|
+
_quill["default"].register('formats/text-decoration-style', TextDecorationStyleStyle, true);
|