pb-sxp-ui 1.12.1 → 1.12.3

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/dist/index.js CHANGED
@@ -12003,7 +12003,7 @@ const CommodityList = createMaterial(CommodityListComponent, {
12003
12003
  * @Author: binruan@chatlabs.com
12004
12004
  * @Date: 2023-10-27 14:06:35
12005
12005
  * @LastEditors: binruan@chatlabs.com
12006
- * @LastEditTime: 2024-08-08 17:32:11
12006
+ * @LastEditTime: 2024-12-12 15:12:57
12007
12007
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\Iframe\settingRender.tsx
12008
12008
  *
12009
12009
  */
@@ -12017,16 +12017,32 @@ var settingRender$8 = [
12017
12017
  name: ['style', 'backgroundColor']
12018
12018
  }
12019
12019
  ]
12020
+ },
12021
+ {
12022
+ title: 'iframe',
12023
+ child: [
12024
+ {
12025
+ type: 'TextArea',
12026
+ label: 'url',
12027
+ name: ['props', 'iframe', 'src']
12028
+ },
12029
+ {
12030
+ type: 'TextArea',
12031
+ label: 'allow',
12032
+ name: ['props', 'iframe', 'allow']
12033
+ }
12034
+ ]
12020
12035
  }
12021
12036
  ];
12022
12037
 
12023
12038
  const Iframe$1 = (_a) => {
12024
12039
  var _b, _c;
12025
- var { content, btnText, style, icon, isPopup, isExternalLink, onClose, onClick, submitButtonStyle, contentStyle, isTel } = _a, props = __rest(_a, ["content", "btnText", "style", "icon", "isPopup", "isExternalLink", "onClose", "onClick", "submitButtonStyle", "contentStyle", "isTel"]);
12040
+ var { content, btnText, style, icon, isPopup, isExternalLink, onClose, onClick, submitButtonStyle, contentStyle, isTel, iframe } = _a, props = __rest(_a, ["content", "btnText", "style", "icon", "isPopup", "isExternalLink", "onClose", "onClick", "submitButtonStyle", "contentStyle", "isTel", "iframe"]);
12026
12041
  const { popupDetailData } = useSxpDataSource();
12027
- const iframeUrl = (_c = (_b = popupDetailData === null || popupDetailData === void 0 ? void 0 : popupDetailData.video) === null || _b === void 0 ? void 0 : _b.bindCta) === null || _c === void 0 ? void 0 : _c.remark;
12028
- return (React.createElement("div", Object.assign({ className: `${css(Object.assign({}, style))}` }, props),
12029
- React.createElement("iframe", { src: iframeUrl, style: {
12042
+ const { src, allow } = iframe || {};
12043
+ const iframeUrl = src || ((_c = (_b = popupDetailData === null || popupDetailData === void 0 ? void 0 : popupDetailData.video) === null || _b === void 0 ? void 0 : _b.bindCta) === null || _c === void 0 ? void 0 : _c.remark);
12044
+ return (React.createElement("div", Object.assign({ className: `${css(Object.assign(Object.assign({}, style), { overflow: 'hidden' }))}` }, props),
12045
+ React.createElement("iframe", { src: iframeUrl, allow: allow, scrolling: 'no', style: {
12030
12046
  width: '100%',
12031
12047
  height: 'calc(100% - 50px)',
12032
12048
  marginTop: '50px',
@@ -17964,7 +17980,7 @@ var NavBack$1 = memo(NavBack);
17964
17980
  * @Author: binruan@chatlabs.com
17965
17981
  * @Date: 2024-03-20 10:27:31
17966
17982
  * @LastEditors: binruan@chatlabs.com
17967
- * @LastEditTime: 2024-12-17 19:01:02
17983
+ * @LastEditTime: 2024-12-18 10:24:20
17968
17984
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
17969
17985
  *
17970
17986
  */
@@ -18078,7 +18094,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
18078
18094
  handleReportProductView(item);
18079
18095
  }
18080
18096
  if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.playbook) !== 'organic menu' || activeIndex !== 0 || channel) {
18081
- const isExpire = refreshFeSession === null || refreshFeSession === void 0 ? void 0 : refreshFeSession(true, handleSessionCompleted);
18097
+ const isExpire = refreshFeSession === null || refreshFeSession === void 0 ? void 0 : refreshFeSession(false, handleSessionCompleted);
18082
18098
  if (!isExpire)
18083
18099
  handleSessionCompleted();
18084
18100
  }
@@ -18931,7 +18947,7 @@ var index$1 = memo(DiyPortalPreview);
18931
18947
  * @Author: binruan@chatlabs.com
18932
18948
  * @Date: 2023-10-31 10:56:01
18933
18949
  * @LastEditors: binruan@chatlabs.com
18934
- * @LastEditTime: 2024-10-23 15:07:29
18950
+ * @LastEditTime: 2024-12-12 14:48:31
18935
18951
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
18936
18952
  *
18937
18953
  */