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/pb-ui.js CHANGED
@@ -9778,7 +9778,7 @@
9778
9778
  * @Author: binruan@chatlabs.com
9779
9779
  * @Date: 2023-11-02 18:34:34
9780
9780
  * @LastEditors: binruan@chatlabs.com
9781
- * @LastEditTime: 2024-11-20 18:37:10
9781
+ * @LastEditTime: 2024-12-12 16:35:54
9782
9782
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Modal\index.tsx
9783
9783
  *
9784
9784
  */
@@ -9836,7 +9836,7 @@
9836
9836
  }, [isOpen, popup]);
9837
9837
  const child = React.useCallback(() => {
9838
9838
  return children;
9839
- }, [_popup, openState, globalConfig]);
9839
+ }, [_popup, openState, globalConfig, schema]);
9840
9840
  React.useEffect(() => {
9841
9841
  const trapFocus = (element) => {
9842
9842
  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])');
@@ -11996,7 +11996,7 @@ Made in Italy` })));
11996
11996
  * @Author: binruan@chatlabs.com
11997
11997
  * @Date: 2023-10-27 14:06:35
11998
11998
  * @LastEditors: binruan@chatlabs.com
11999
- * @LastEditTime: 2024-08-08 17:32:11
11999
+ * @LastEditTime: 2024-12-12 15:12:57
12000
12000
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\Iframe\settingRender.tsx
12001
12001
  *
12002
12002
  */
@@ -12010,16 +12010,32 @@ Made in Italy` })));
12010
12010
  name: ['style', 'backgroundColor']
12011
12011
  }
12012
12012
  ]
12013
+ },
12014
+ {
12015
+ title: 'iframe',
12016
+ child: [
12017
+ {
12018
+ type: 'TextArea',
12019
+ label: 'url',
12020
+ name: ['props', 'iframe', 'src']
12021
+ },
12022
+ {
12023
+ type: 'TextArea',
12024
+ label: 'allow',
12025
+ name: ['props', 'iframe', 'allow']
12026
+ }
12027
+ ]
12013
12028
  }
12014
12029
  ];
12015
12030
 
12016
12031
  const Iframe$1 = (_a) => {
12017
12032
  var _b, _c;
12018
- 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"]);
12033
+ 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"]);
12019
12034
  const { popupDetailData } = useSxpDataSource();
12020
- 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;
12021
- return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign({}, style))}` }, props),
12022
- React.createElement("iframe", { src: iframeUrl, style: {
12035
+ const { src, allow } = iframe || {};
12036
+ 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);
12037
+ return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign(Object.assign({}, style), { overflow: 'hidden' }))}` }, props),
12038
+ React.createElement("iframe", { src: iframeUrl, allow: allow, scrolling: 'no', style: {
12023
12039
  width: '100%',
12024
12040
  height: 'calc(100% - 50px)',
12025
12041
  marginTop: '50px',
@@ -18900,7 +18916,7 @@ Made in Italy` })));
18900
18916
  * @Author: binruan@chatlabs.com
18901
18917
  * @Date: 2023-10-31 10:56:01
18902
18918
  * @LastEditors: binruan@chatlabs.com
18903
- * @LastEditTime: 2024-10-23 15:07:29
18919
+ * @LastEditTime: 2024-12-12 14:48:31
18904
18920
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
18905
18921
  *
18906
18922
  */