pds-dev-kit-web-test 2.5.392 → 2.5.394

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.
@@ -61,12 +61,7 @@ function VideoPlayer(props) {
61
61
  var _f = (0, react_1.useState)(function () {
62
62
  return (0, helper_1.parseTargetUrl)(CB_CONTENT_PROP_VIDEO_SPEC_SELECTOR).encodedURL;
63
63
  }), videoURL = _f[0], setVideoURL = _f[1];
64
- var _g = (0, react_1.useState)(null), videoError = _g[0], setVideoError = _g[1];
65
- var onVideoError = function (error) {
66
- var message = '비디오에러: ';
67
- if (error === null || error === void 0 ? void 0 : error.message) {
68
- message += "\n".concat(error.message);
69
- }
64
+ var onVideoError = function () {
70
65
  var fallbackURL = (0, helper_1.parseTargetUrl)(CB_CONTENT_PROP_VIDEO_SPEC_SELECTOR).fallbackURL;
71
66
  var isFallbackURL = fallbackURL === videoURL;
72
67
  if (fallbackURL && !isFallbackURL) {
@@ -74,11 +69,6 @@ function VideoPlayer(props) {
74
69
  return;
75
70
  }
76
71
  };
77
- var handleShowError = function () {
78
- if (videoError) {
79
- window.alert(videoError);
80
- }
81
- };
82
72
  var onLoadedMetadata = function () {
83
73
  setVideoLoaded(true);
84
74
  };
@@ -125,18 +115,7 @@ function VideoPlayer(props) {
125
115
  (0, react_1.useEffect)(function () {
126
116
  setVideoURL((0, helper_1.parseTargetUrl)(CB_CONTENT_PROP_VIDEO_SPEC_SELECTOR).encodedURL);
127
117
  }, [CB_CONTENT_PROP_VIDEO_SPEC_SELECTOR]);
128
- 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.jsxs)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign({}, propsStyle), layoutStyle), effectCssProperties), bgColorStyle), hoverStyle: __assign(__assign({}, propsHoverStyle), bgColorHoverStyle), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device }, { children: [videoError && ((0, jsx_runtime_1.jsx)("div", __assign({ style: {
129
- position: 'absolute',
130
- top: 12,
131
- right: 12,
132
- zIndex: 2,
133
- background: 'rgba(0,0,0,0.7)',
134
- borderRadius: 4,
135
- padding: '4px 8px',
136
- fontSize: 12,
137
- color: '#fff',
138
- cursor: 'pointer'
139
- }, onClick: handleShowError }, { children: "\uC5D0\uB7EC \uBCF4\uAE30" }))), isEditMode && ((0, jsx_runtime_1.jsx)("div", __assign({ style: {
118
+ 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.jsxs)(S_CB_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign({}, propsStyle), layoutStyle), effectCssProperties), bgColorStyle), hoverStyle: __assign(__assign({}, propsHoverStyle), bgColorHoverStyle), cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device }, { children: [isEditMode && ((0, jsx_runtime_1.jsx)("div", __assign({ style: {
140
119
  position: 'absolute',
141
120
  top: '50%',
142
121
  left: '50%',
@@ -146,7 +125,7 @@ function VideoPlayer(props) {
146
125
  alignItems: 'center',
147
126
  justifyContent: 'center',
148
127
  transform: 'translate(-50%, -50%)'
149
- } }, { children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { iconName: "ic_video_play_circle", fillType: "fill", colorKey: "ui_cpnt_icon_sys_white", size: 48 }) }))), (0, jsx_runtime_1.jsxs)(S_Video, __assign({ muted: true, playsInline: true, controls: !isEditMode, isEditMode: isEditMode, ref: videoRef, poster: CB_CONTENT_PROP_VIDEO_SPEC_THUMB, onLoadedMetadata: onLoadedMetadata, onPlay: onPlay, onError: onVideoError, "data-src": CB_CONTENT_PROP_VIDEO_SPEC_SELECTOR }, { children: [(0, jsx_runtime_1.jsx)("source", { src: videoURL }), "Your browser does not support the video tag."] }), videoURL + CB_CONTENT_PROP_VIDEO_SPEC_THUMB)] })) }))] }));
128
+ } }, { children: (0, jsx_runtime_1.jsx)(Icon_1.Icon, { iconName: "ic_video_play_circle", fillType: "fill", colorKey: "ui_cpnt_icon_sys_white", size: 48 }) }))), (0, jsx_runtime_1.jsxs)(S_Video, __assign({ preload: "none", muted: true, playsInline: true, controls: !isEditMode, isEditMode: isEditMode, ref: videoRef, poster: CB_CONTENT_PROP_VIDEO_SPEC_THUMB, onLoadedMetadata: onLoadedMetadata, onPlay: onPlay, onError: onVideoError, "data-src": CB_CONTENT_PROP_VIDEO_SPEC_SELECTOR }, { children: [(0, jsx_runtime_1.jsx)("source", { src: videoURL }), "Your browser does not support the video tag."] }), videoURL + CB_CONTENT_PROP_VIDEO_SPEC_THUMB)] })) }))] }));
150
129
  }
151
130
  function getBGColorStyles(props, device) {
152
131
  var availableSpecCodes = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.5.392",
3
+ "version": "2.5.394",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",