pb-sxp-ui 1.10.11 → 1.10.12

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.cjs CHANGED
@@ -9785,7 +9785,7 @@ SwiperSlide.displayName = 'SwiperSlide';
9785
9785
  * @Author: binruan@chatlabs.com
9786
9786
  * @Date: 2023-11-02 18:34:34
9787
9787
  * @LastEditors: binruan@chatlabs.com
9788
- * @LastEditTime: 2024-11-20 18:37:10
9788
+ * @LastEditTime: 2024-12-12 16:35:54
9789
9789
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Modal\index.tsx
9790
9790
  *
9791
9791
  */
@@ -9843,7 +9843,7 @@ const Modal = ({ visible, onClose, children, modalStyle, padding, popup, schema,
9843
9843
  }, [isOpen, popup]);
9844
9844
  const child = React.useCallback(() => {
9845
9845
  return children;
9846
- }, [_popup, openState, globalConfig]);
9846
+ }, [_popup, openState, globalConfig, schema]);
9847
9847
  React.useEffect(() => {
9848
9848
  const trapFocus = (element) => {
9849
9849
  var focusableEls = element === null || element === void 0 ? void 0 : element.querySelectorAll('[role="button"],a, a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])');
@@ -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.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.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',
@@ -18907,7 +18923,7 @@ var index$1 = React.memo(DiyPortalPreview);
18907
18923
  * @Author: binruan@chatlabs.com
18908
18924
  * @Date: 2023-10-31 10:56:01
18909
18925
  * @LastEditors: binruan@chatlabs.com
18910
- * @LastEditTime: 2024-10-23 15:07:29
18926
+ * @LastEditTime: 2024-12-12 14:48:31
18911
18927
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
18912
18928
  *
18913
18929
  */