@zzdadelu/schema-builder 1.0.0-alpha.1 → 1.0.0-alpha.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/es/main.js +6 -2
- package/lib/main.js +6 -2
- package/package.json +1 -1
package/es/main.js
CHANGED
|
@@ -25,6 +25,10 @@ var Design = function Design(props, ref) {
|
|
|
25
25
|
setValue: function setValue(schema) {
|
|
26
26
|
var _iframe2, _iframe2$contentWindo, _iframe2$contentWindo2, _iframe2$contentWindo3;
|
|
27
27
|
return (_iframe2 = iframe) === null || _iframe2 === void 0 ? void 0 : (_iframe2$contentWindo = _iframe2.contentWindow) === null || _iframe2$contentWindo === void 0 ? void 0 : (_iframe2$contentWindo2 = _iframe2$contentWindo.__FR_ENGINE__) === null || _iframe2$contentWindo2 === void 0 ? void 0 : (_iframe2$contentWindo3 = _iframe2$contentWindo2.importSchema) === null || _iframe2$contentWindo3 === void 0 ? void 0 : _iframe2$contentWindo3.call(_iframe2$contentWindo2, schema);
|
|
28
|
+
},
|
|
29
|
+
copyValue: function copyValue(schema) {
|
|
30
|
+
var _iframe3, _iframe3$contentWindo, _iframe3$contentWindo2, _iframe3$contentWindo3;
|
|
31
|
+
return (_iframe3 = iframe) === null || _iframe3 === void 0 ? void 0 : (_iframe3$contentWindo = _iframe3.contentWindow) === null || _iframe3$contentWindo === void 0 ? void 0 : (_iframe3$contentWindo2 = _iframe3$contentWindo.__FR_ENGINE__) === null || _iframe3$contentWindo2 === void 0 ? void 0 : (_iframe3$contentWindo3 = _iframe3$contentWindo2.copyToClipboard) === null || _iframe3$contentWindo3 === void 0 ? void 0 : _iframe3$contentWindo3.call(_iframe3$contentWindo2);
|
|
28
32
|
}
|
|
29
33
|
};
|
|
30
34
|
});
|
|
@@ -40,11 +44,11 @@ var Design = function Design(props, ref) {
|
|
|
40
44
|
containerRef.current.appendChild(iframe);
|
|
41
45
|
};
|
|
42
46
|
var engineOnLoad = function engineOnLoad(event) {
|
|
43
|
-
var
|
|
47
|
+
var _iframe4, _iframe4$contentWindo, _iframe4$contentWindo2;
|
|
44
48
|
if (event.data.type !== 'engine-load') {
|
|
45
49
|
return;
|
|
46
50
|
}
|
|
47
|
-
(
|
|
51
|
+
(_iframe4 = iframe) === null || _iframe4 === void 0 ? void 0 : (_iframe4$contentWindo = _iframe4.contentWindow) === null || _iframe4$contentWindo === void 0 ? void 0 : (_iframe4$contentWindo2 = _iframe4$contentWindo.__FR_ENGINE__) === null || _iframe4$contentWindo2 === void 0 ? void 0 : _iframe4$contentWindo2.init(_objectSpread({
|
|
48
52
|
settings: _objectSpread(_objectSpread({}, defaultSetting), settings),
|
|
49
53
|
widgets: widgets,
|
|
50
54
|
// recordEnable: true,
|
package/lib/main.js
CHANGED
|
@@ -33,6 +33,10 @@ var Design = function Design(props, ref) {
|
|
|
33
33
|
setValue: function setValue(schema) {
|
|
34
34
|
var _iframe2, _iframe2$contentWindo, _iframe2$contentWindo2, _iframe2$contentWindo3;
|
|
35
35
|
return (_iframe2 = iframe) === null || _iframe2 === void 0 ? void 0 : (_iframe2$contentWindo = _iframe2.contentWindow) === null || _iframe2$contentWindo === void 0 ? void 0 : (_iframe2$contentWindo2 = _iframe2$contentWindo.__FR_ENGINE__) === null || _iframe2$contentWindo2 === void 0 ? void 0 : (_iframe2$contentWindo3 = _iframe2$contentWindo2.importSchema) === null || _iframe2$contentWindo3 === void 0 ? void 0 : _iframe2$contentWindo3.call(_iframe2$contentWindo2, schema);
|
|
36
|
+
},
|
|
37
|
+
copyValue: function copyValue(schema) {
|
|
38
|
+
var _iframe3, _iframe3$contentWindo, _iframe3$contentWindo2, _iframe3$contentWindo3;
|
|
39
|
+
return (_iframe3 = iframe) === null || _iframe3 === void 0 ? void 0 : (_iframe3$contentWindo = _iframe3.contentWindow) === null || _iframe3$contentWindo === void 0 ? void 0 : (_iframe3$contentWindo2 = _iframe3$contentWindo.__FR_ENGINE__) === null || _iframe3$contentWindo2 === void 0 ? void 0 : (_iframe3$contentWindo3 = _iframe3$contentWindo2.copyToClipboard) === null || _iframe3$contentWindo3 === void 0 ? void 0 : _iframe3$contentWindo3.call(_iframe3$contentWindo2);
|
|
36
40
|
}
|
|
37
41
|
};
|
|
38
42
|
});
|
|
@@ -48,11 +52,11 @@ var Design = function Design(props, ref) {
|
|
|
48
52
|
containerRef.current.appendChild(iframe);
|
|
49
53
|
};
|
|
50
54
|
var engineOnLoad = function engineOnLoad(event) {
|
|
51
|
-
var
|
|
55
|
+
var _iframe4, _iframe4$contentWindo, _iframe4$contentWindo2;
|
|
52
56
|
if (event.data.type !== 'engine-load') {
|
|
53
57
|
return;
|
|
54
58
|
}
|
|
55
|
-
(
|
|
59
|
+
(_iframe4 = iframe) === null || _iframe4 === void 0 ? void 0 : (_iframe4$contentWindo = _iframe4.contentWindow) === null || _iframe4$contentWindo === void 0 ? void 0 : (_iframe4$contentWindo2 = _iframe4$contentWindo.__FR_ENGINE__) === null || _iframe4$contentWindo2 === void 0 ? void 0 : _iframe4$contentWindo2.init(_objectSpread({
|
|
56
60
|
settings: _objectSpread(_objectSpread({}, defaultSetting), settings),
|
|
57
61
|
widgets: widgets,
|
|
58
62
|
// recordEnable: true,
|