@mjhls/mjh-framework 1.0.66 → 1.0.67
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/README.md +1 -1
- package/dist/index.es.js +15 -0
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11149,6 +11149,16 @@ var Media$1 = function Media$$1(_ref) {
|
|
|
11149
11149
|
);
|
|
11150
11150
|
};
|
|
11151
11151
|
|
|
11152
|
+
var IFrame = function IFrame(_ref) {
|
|
11153
|
+
var url = _ref.url;
|
|
11154
|
+
|
|
11155
|
+
return React__default.createElement(
|
|
11156
|
+
'div',
|
|
11157
|
+
{ className: 'd-block text-center mb-3' },
|
|
11158
|
+
React__default.createElement('iframe', { className: 'w-100', src: url, frameBorder: '0' })
|
|
11159
|
+
);
|
|
11160
|
+
};
|
|
11161
|
+
|
|
11152
11162
|
var getSerializers$1 = function getSerializers(client) {
|
|
11153
11163
|
return {
|
|
11154
11164
|
types: {
|
|
@@ -11190,6 +11200,11 @@ var getSerializers$1 = function getSerializers(client) {
|
|
|
11190
11200
|
blank = node.blank;
|
|
11191
11201
|
|
|
11192
11202
|
return React__default.createElement(Media$1, { uploadDoc: upload_doc, poster: poster, blank: blank, client: client, caption: caption });
|
|
11203
|
+
},
|
|
11204
|
+
iframe: function iframe(_ref7) {
|
|
11205
|
+
var node = _ref7.node;
|
|
11206
|
+
|
|
11207
|
+
return React__default.createElement(IFrame, { url: node.url });
|
|
11193
11208
|
}
|
|
11194
11209
|
},
|
|
11195
11210
|
marks: {
|