pds-dev-kit-web 2.2.59 → 2.2.60

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.
@@ -42,7 +42,7 @@ function Embed(props) {
42
42
  : CB_EFFECT_PROP_ENTANIM['CB_EFFECT_PROP_ENTANIM_SPEC_TYPE:MOBILE'] === 'NONE';
43
43
  var hasEffect = !isNoneEffectType;
44
44
  var effectVisibleStyle = hasEffect ? { opacity: isVisible ? 1 : 0 } : {};
45
- var iframeAllowed = window.location.hostname !== constant_1.EMBED_DENIED_HOST;
46
- return ((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_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign({}, style), layout), effectCssProperties), editModeStyle), hoverStyle: hoverStyle, cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device }, { children: iframeAllowed ? ((0, jsx_runtime_1.jsx)(EmbedIframe_1.default, { embedCode: CB_CONTENT_PROP_CODEBLOCK_SPEC_CODE, style: layout })) : ((0, jsx_runtime_1.jsx)(IframeDenied_1.default, {})) })) })));
45
+ var iframeDenied = constant_1.EMBED_DENIED_HOSTS.includes(window.location.hostname);
46
+ return ((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_BoxWithShadow_1.S_CB_BoxWithShadow, __assign({ className: "cb-layout-box", normalStyle: __assign(__assign(__assign(__assign({}, style), layout), effectCssProperties), editModeStyle), hoverStyle: hoverStyle, cbStylePropsShadowSpecs: CB_STYLE_PROP_SHADOW, device: device }, { children: iframeDenied ? ((0, jsx_runtime_1.jsx)(IframeDenied_1.default, {})) : ((0, jsx_runtime_1.jsx)(EmbedIframe_1.default, { embedCode: CB_CONTENT_PROP_CODEBLOCK_SPEC_CODE, style: layout })) })) })));
47
47
  }
48
48
  exports.default = Embed;
@@ -1 +1 @@
1
- export declare const EMBED_DENIED_HOST = "app.publr.co";
1
+ export declare const EMBED_DENIED_HOSTS: string[];
@@ -1,4 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EMBED_DENIED_HOST = void 0;
4
- exports.EMBED_DENIED_HOST = 'app.publr.co';
3
+ exports.EMBED_DENIED_HOSTS = void 0;
4
+ exports.EMBED_DENIED_HOSTS = [
5
+ 'app.publr.co',
6
+ 'app.local.publr.co',
7
+ 'app.dev.publr.co',
8
+ 'app.qa.publr.co'
9
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web",
3
- "version": "2.2.59",
3
+ "version": "2.2.60",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
package/release-note.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # PDS-DEV-KIT-WEB Release Notes
2
- ## [v2.2.59]
2
+ ## [v2.2.60]
3
3
  ## daily|https://design.storybook.publ.biz/
4
4
 
5
5
  ### DynamicLayout
6
- * CustomSection
7
- * CustomBlock - cb_embed 가 추가
6
+ * CustomSection - Fix cb_embed 사용할 수 없는 호스트 추가