pds-dev-kit-web-test 2.5.227 → 2.5.229
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.
@@ -18,7 +18,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
18
|
require("react");
|
19
19
|
var newUtils_1 = require("../../newUtils");
|
20
20
|
var types_1 = require("../../types");
|
21
|
-
require("./componentBlocks/Button/Button");
|
21
|
+
var Button_1 = __importDefault(require("./componentBlocks/Button/Button"));
|
22
22
|
var ContentsCarousel_1 = __importDefault(require("./componentBlocks/ContentsCarousel/ContentsCarousel"));
|
23
23
|
var Divider_1 = __importDefault(require("./componentBlocks/Divider/Divider"));
|
24
24
|
var Embed_1 = __importDefault(require("./componentBlocks/Embed/Embed"));
|
@@ -33,8 +33,7 @@ function ComponentBlockMatcher(_a) {
|
|
33
33
|
var propsWithValue = device === 'MOBILE' ? (0, newUtils_1.replaceUndefinedValues)(data) : data;
|
34
34
|
switch (componentBlockCode) {
|
35
35
|
case types_1.CB_ALL_CODES.CB_BTN:
|
36
|
-
return (0, jsx_runtime_1.jsx)(
|
37
|
-
// return <Button {...(propsWithValue as CB_BTN_PROPERTIES_TYPE)} index={index} />;
|
36
|
+
return (0, jsx_runtime_1.jsx)(Button_1.default, __assign({}, propsWithValue, { index: index }));
|
38
37
|
case types_1.CB_ALL_CODES.CB_TEXT:
|
39
38
|
return (0, jsx_runtime_1.jsx)(Text_1.default, __assign({}, propsWithValue, { index: index }));
|
40
39
|
case types_1.CB_ALL_CODES.CB_RICHTEXT:
|