pds-dev-kit-web-test 2.2.75 → 2.2.77
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.
@@ -3826,6 +3826,7 @@ export declare const sampleCustomsectionOnlyText: {
|
|
3826
3826
|
CB_STYLE_PROP_BTNTEXT?: undefined;
|
3827
3827
|
CB_STYLE_PROP_OPACITY?: undefined;
|
3828
3828
|
CB_STYLE_PROP_SHADOW?: undefined;
|
3829
|
+
CB_CONTENT_PROP_TEXTOPTION?: undefined;
|
3829
3830
|
CB_STYLE_PROP_TEXT?: undefined;
|
3830
3831
|
};
|
3831
3832
|
minVersion: string;
|
@@ -4036,6 +4037,7 @@ export declare const sampleCustomsectionOnlyText: {
|
|
4036
4037
|
};
|
4037
4038
|
CB_LAYOUT_PROP_ARRANGE?: undefined;
|
4038
4039
|
CB_STYLE_PROP_DIVIDER?: undefined;
|
4040
|
+
CB_CONTENT_PROP_TEXTOPTION?: undefined;
|
4039
4041
|
CB_STYLE_PROP_TEXT?: undefined;
|
4040
4042
|
};
|
4041
4043
|
minVersion: string;
|
@@ -4060,6 +4062,9 @@ export declare const sampleCustomsectionOnlyText: {
|
|
4060
4062
|
CB_CONTENT_PROP_CLINK_SPEC_SRC: string;
|
4061
4063
|
CB_CONTENT_PROP_CLINK_SPEC_TYPE: string;
|
4062
4064
|
};
|
4065
|
+
CB_CONTENT_PROP_TEXTOPTION: {
|
4066
|
+
CB_CONTENT_PROP_TEXTOPTION_SPEC_FITCONTENT: boolean;
|
4067
|
+
};
|
4063
4068
|
CB_CONTENT_PROP_HOVER: {
|
4064
4069
|
CB_CONTENT_PROP_HOVER_SPEC_MUSE: boolean;
|
4065
4070
|
};
|
@@ -4182,6 +4187,9 @@ export declare const sampleCustomsectionOnlyText: {
|
|
4182
4187
|
CB_CONTENT_PROP_CLINK_SPEC_SRC: string;
|
4183
4188
|
CB_CONTENT_PROP_CLINK_SPEC_TYPE: string;
|
4184
4189
|
};
|
4190
|
+
CB_CONTENT_PROP_TEXTOPTION: {
|
4191
|
+
CB_CONTENT_PROP_TEXTOPTION_SPEC_FITCONTENT: boolean;
|
4192
|
+
};
|
4185
4193
|
CB_CONTENT_PROP_HOVER: {
|
4186
4194
|
CB_CONTENT_PROP_HOVER_SPEC_MUSE: boolean;
|
4187
4195
|
};
|
@@ -5416,6 +5416,7 @@ exports.sampleCustomsectionOnlyText = {
|
|
5416
5416
|
CB_CONTENT_PROP_CLINK_SPEC_SRC: 'https://publ.co',
|
5417
5417
|
CB_CONTENT_PROP_CLINK_SPEC_TYPE: 'DISABLED'
|
5418
5418
|
},
|
5419
|
+
CB_CONTENT_PROP_TEXTOPTION: { CB_CONTENT_PROP_TEXTOPTION_SPEC_FITCONTENT: true },
|
5419
5420
|
CB_CONTENT_PROP_HOVER: {
|
5420
5421
|
CB_CONTENT_PROP_HOVER_SPEC_MUSE: true
|
5421
5422
|
},
|
@@ -5949,6 +5950,7 @@ exports.sampleCustomsectionOnlyText = {
|
|
5949
5950
|
CB_CONTENT_PROP_CLINK_SPEC_SRC: 'https://publ.co',
|
5950
5951
|
CB_CONTENT_PROP_CLINK_SPEC_TYPE: 'DISABLED'
|
5951
5952
|
},
|
5953
|
+
CB_CONTENT_PROP_TEXTOPTION: { CB_CONTENT_PROP_TEXTOPTION_SPEC_FITCONTENT: true },
|
5952
5954
|
CB_CONTENT_PROP_HOVER: {
|
5953
5955
|
CB_CONTENT_PROP_HOVER_SPEC_MUSE: true
|
5954
5956
|
},
|
@@ -1,4 +1,8 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
4
|
+
return cooked;
|
5
|
+
};
|
2
6
|
var __assign = (this && this.__assign) || function () {
|
3
7
|
__assign = Object.assign || function(t) {
|
4
8
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -19,6 +23,7 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
23
|
/* eslint-disable react/destructuring-assignment */
|
20
24
|
var react_1 = require("react");
|
21
25
|
var DynamicLayout_1 = require("../../../../../../../DynamicLayout");
|
26
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
22
27
|
var hooks_1 = require("../../../../hooks");
|
23
28
|
var getGoogleFonts_1 = require("../../../../hooks/useGoogleFonts/getGoogleFonts");
|
24
29
|
var useGoogleFonts_1 = __importDefault(require("../../../../hooks/useGoogleFonts/useGoogleFonts"));
|
@@ -56,8 +61,9 @@ function Text(props) {
|
|
56
61
|
: CB_EFFECT_PROP_ENTANIM['CB_EFFECT_PROP_ENTANIM_SPEC_TYPE:MOBILE'] === 'NONE';
|
57
62
|
var hasEffect = !isNoneEffectType;
|
58
63
|
var effectVisibleStyle = hasEffect ? { opacity: isVisible ? 1 : 0 } : {};
|
59
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}), (0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle, normalStyle: __assign(__assign(__assign(__assign(__assign({}, textStyle), propsStyle), effectCssProperties), layoutStyle), { cursor: CLINKCursor }), hoverStyle: __assign(__assign({}, textHoverStyle), propsHoverStyle) }, { children: (0, jsx_runtime_1.jsx)(
|
64
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isEditModeAndHidden && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}), (0, jsx_runtime_1.jsx)(S_CB_AnimationObserverBox_1.S_CB_AnimationObserverBox, __assign({ ref: hasEffect ? cbRef : null, effectVisibleStyle: effectVisibleStyle }, { children: (0, jsx_runtime_1.jsx)(S_CB_Box_1.S_CB_Box, __assign({ className: "cb-layout-box cb-text-box", normalStyle: __assign(__assign(__assign(__assign(__assign({}, textStyle), propsStyle), effectCssProperties), layoutStyle), { cursor: CLINKCursor }), hoverStyle: __assign(__assign({}, textHoverStyle), propsHoverStyle), onClick: onClickCLINK }, { children: (0, jsx_runtime_1.jsx)(S_TextContent, __assign({ className: "cb-text-content", style: { whiteSpace: 'pre-wrap', wordBreak: 'break-word', height: 'fit-content' } }, { children: props.CB_CONTENT_PROP_TEXT.CB_CONTENT_PROP_TEXT_SPEC_TEXT })) })) }))] }));
|
60
65
|
}
|
66
|
+
var S_TextContent = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n all: inherit;\n"], ["\n all: inherit;\n"])));
|
61
67
|
function getTextStyles(props, device) {
|
62
68
|
var availableSpecCodes = [
|
63
69
|
'CB_STYLE_PROP_TEXT_SPEC_TYPEFACE',
|
@@ -77,3 +83,4 @@ function getTextStyles(props, device) {
|
|
77
83
|
});
|
78
84
|
}
|
79
85
|
exports.default = Text;
|
86
|
+
var templateObject_1;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "pds-dev-kit-web-test",
|
3
|
-
"version": "2.2.
|
3
|
+
"version": "2.2.77",
|
4
4
|
"license": "MIT",
|
5
5
|
"private": false,
|
6
6
|
"main": "dist/index.js",
|
@@ -22,7 +22,7 @@
|
|
22
22
|
"i18next-intervalplural-postprocessor": "^3.0.0",
|
23
23
|
"lottie-react": "^2.3.1",
|
24
24
|
"nuka-carousel": "^4.8.4",
|
25
|
-
"publ-echo": "^0.0.
|
25
|
+
"publ-echo": "^0.0.79",
|
26
26
|
"react-hook-form": "^7.28.1",
|
27
27
|
"react-i18next": "^11.12.0",
|
28
28
|
"react-router-dom": "^5.2.0",
|