@doyourjob/gravity-ui-page-constructor 5.31.200 → 5.31.201

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.
@@ -9,6 +9,16 @@ const Iframe = (props) => {
9
9
  const { iframe, margins = true } = props;
10
10
  const { height = 400, src, width, name, title } = iframe;
11
11
  return iframe ? (react_1.default.createElement("div", { className: b({ margins }), style: { height } },
12
- react_1.default.createElement("iframe", { className: b('item'), loading: "lazy", title: title || (0, i18n_1.i18n)('iframe-title'), frameBorder: 0, src: src, width: width, height: height, name: name }))) : null;
12
+ react_1.default.createElement("iframe", { className: b('item'), loading: "lazy", title: title || (0, i18n_1.i18n)('iframe-title'), frameBorder: 0, src: src, width: width, height: height, name: name,
13
+ /*
14
+ 1. allow: дает права на камеру, микрофон, полноэкранный режим
15
+ и демонстрацию экрана (необходимы для Zoom).
16
+ */
17
+ allow: "camera; microphone; fullscreen; display-capture;",
18
+ /*
19
+ 2. sandbox: снимает ограничения на выполнение скриптов,
20
+ отправку форм, всплывающие окна и сохраняет сессию.
21
+ */
22
+ sandbox: "allow-scripts allow-same-origin allow-forms allow-popups allow-modals" }))) : null;
13
23
  };
14
24
  exports.default = Iframe;
@@ -7,6 +7,16 @@ const Iframe = (props) => {
7
7
  const { iframe, margins = true } = props;
8
8
  const { height = 400, src, width, name, title } = iframe;
9
9
  return iframe ? (React.createElement("div", { className: b({ margins }), style: { height } },
10
- React.createElement("iframe", { className: b('item'), loading: "lazy", title: title || i18n('iframe-title'), frameBorder: 0, src: src, width: width, height: height, name: name }))) : null;
10
+ React.createElement("iframe", { className: b('item'), loading: "lazy", title: title || i18n('iframe-title'), frameBorder: 0, src: src, width: width, height: height, name: name,
11
+ /*
12
+ 1. allow: дает права на камеру, микрофон, полноэкранный режим
13
+ и демонстрацию экрана (необходимы для Zoom).
14
+ */
15
+ allow: "camera; microphone; fullscreen; display-capture;",
16
+ /*
17
+ 2. sandbox: снимает ограничения на выполнение скриптов,
18
+ отправку форм, всплывающие окна и сохраняет сессию.
19
+ */
20
+ sandbox: "allow-scripts allow-same-origin allow-forms allow-popups allow-modals" }))) : null;
11
21
  };
12
22
  export default Iframe;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doyourjob/gravity-ui-page-constructor",
3
- "version": "5.31.200",
3
+ "version": "5.31.201",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {