antd-management-fast-framework 1.12.1 → 1.12.2

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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
4
4
 
5
+ ### [1.12.2](https://github.com/kityandhero/antd-management-fast-framework/compare/antd-management-fast-framework@1.12.1...antd-management-fast-framework@1.12.2) (2021-12-24)
6
+
7
+ **Note:** Version bump only for package antd-management-fast-framework
8
+
5
9
  ### [1.12.1](https://github.com/kityandhero/antd-management-fast-framework/compare/antd-management-fast-framework@1.12.0...antd-management-fast-framework@1.12.1) (2021-12-24)
6
10
 
7
11
  ### Performance Improvements
@@ -0,0 +1,12 @@
1
+ export default MobileHtmlPreviewBox;
2
+ declare class MobileHtmlPreviewBox extends MobilePreviewArea {
3
+ constructor(props: any);
4
+ loadDataAfterMount: boolean;
5
+ buildContent: () => JSX.Element;
6
+ }
7
+ declare namespace MobileHtmlPreviewBox {
8
+ export namespace defaultProps {
9
+ export const html: string;
10
+ }
11
+ }
12
+ import MobilePreviewArea from "../MobilePreviewArea";
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ var _HtmlBox = _interopRequireDefault(require("../../HtmlBox"));
13
+
14
+ var _MobilePreviewArea2 = _interopRequireDefault(require("../MobilePreviewArea"));
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
19
+
20
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
21
+
22
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23
+
24
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
25
+
26
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
27
+
28
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
29
+
30
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
31
+
32
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
+
34
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
35
+
36
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
37
+
38
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
39
+
40
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
41
+
42
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
43
+
44
+ var MobileHtmlPreviewBox = /*#__PURE__*/function (_MobilePreviewArea) {
45
+ _inherits(MobileHtmlPreviewBox, _MobilePreviewArea);
46
+
47
+ var _super = _createSuper(MobileHtmlPreviewBox);
48
+
49
+ function MobileHtmlPreviewBox(props) {
50
+ var _this;
51
+
52
+ _classCallCheck(this, MobileHtmlPreviewBox);
53
+
54
+ _this = _super.call(this, props);
55
+ _this.loadDataAfterMount = false;
56
+ _this.resetDataAfterLoad = false;
57
+
58
+ _this.buildContent = function () {
59
+ var html = _this.props.html;
60
+ return /*#__PURE__*/_react.default.createElement(_HtmlBox.default, {
61
+ html: html
62
+ });
63
+ };
64
+
65
+ _this.renderInnerView = function () {
66
+ return _this.buildContent();
67
+ };
68
+
69
+ _this.state = _objectSpread(_objectSpread({}, _this.state), {});
70
+ return _this;
71
+ }
72
+
73
+ return _createClass(MobileHtmlPreviewBox);
74
+ }(_MobilePreviewArea2.default);
75
+
76
+ MobileHtmlPreviewBox.defaultProps = {
77
+ html: ''
78
+ };
79
+ var _default = MobileHtmlPreviewBox;
80
+ exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antd-management-fast-framework",
3
- "version": "1.12.1",
3
+ "version": "1.12.2",
4
4
  "description": "antd-management-fast-framework",
5
5
  "keywords": [
6
6
  "antd-management-fast-framework"