@fonixtree/magic-design 1.0.170 → 1.0.171

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.
@@ -118,16 +118,16 @@ function (_super) {
118
118
  };
119
119
 
120
120
  VideoItem.prototype.render = function () {
121
- var _a, _b, _c, _d, _e, _f, _g;
122
-
123
- var _h = this.props,
124
- data = _h.data,
125
- cursor = _h.cursor,
126
- onLoad = _h.onLoad,
127
- moveIcon = _h.moveIcon;
128
- var _j = this.state,
129
- playing = _j.playing,
130
- videoPoster = _j.videoPoster;
121
+ var _a, _b, _c, _d, _e, _f, _g, _h;
122
+
123
+ var _j = this.props,
124
+ data = _j.data,
125
+ cursor = _j.cursor,
126
+ onLoad = _j.onLoad,
127
+ moveIcon = _j.moveIcon;
128
+ var _k = this.state,
129
+ playing = _k.playing,
130
+ videoPoster = _k.videoPoster;
131
131
  var img = ((_b = (_a = data.overilay) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.pcImgSrc) || videoPoster;
132
132
  return /*#__PURE__*/_react["default"].createElement("div", {
133
133
  ref: this.cardRef,
@@ -135,9 +135,9 @@ function (_super) {
135
135
  onMouseEnter: this.onMouseEnter,
136
136
  onMouseLeave: this.onMouseLeave,
137
137
  style: {
138
- cursor: cursor && moveIcon.open ? "url('" + moveIcon.content.pcImgSrc + "'), pointer" : 'unset'
138
+ cursor: cursor && (moveIcon === null || moveIcon === void 0 ? void 0 : moveIcon.open) ? "url('" + ((_c = moveIcon === null || moveIcon === void 0 ? void 0 : moveIcon.content) === null || _c === void 0 ? void 0 : _c.pcImgSrc) + "'), pointer" : 'unset'
139
139
  }
140
- }, ((_c = data.video) === null || _c === void 0 ? void 0 : _c.sourceUrl) && /*#__PURE__*/_react["default"].createElement("video", {
140
+ }, ((_d = data.video) === null || _d === void 0 ? void 0 : _d.sourceUrl) && /*#__PURE__*/_react["default"].createElement("video", {
141
141
  ref: this.videoRef,
142
142
  loop: true,
143
143
  muted: true,
@@ -146,12 +146,12 @@ function (_super) {
146
146
  visibility: playing ? 'visible' : 'hidden'
147
147
  }
148
148
  }, /*#__PURE__*/_react["default"].createElement("source", {
149
- src: (_d = data.video) === null || _d === void 0 ? void 0 : _d.sourceUrl,
149
+ src: (_e = data.video) === null || _e === void 0 ? void 0 : _e.sourceUrl,
150
150
  type: "video/mp4"
151
- })), ((_e = data.overilay) === null || _e === void 0 ? void 0 : _e.open) && img && /*#__PURE__*/_react["default"].createElement("img", {
151
+ })), ((_f = data.overilay) === null || _f === void 0 ? void 0 : _f.open) && img && /*#__PURE__*/_react["default"].createElement("img", {
152
152
  alt: "",
153
153
  className: (0, _classnames["default"])('video-img', {
154
- cover: (_f = data.video) === null || _f === void 0 ? void 0 : _f.sourceUrl
154
+ cover: (_g = data.video) === null || _g === void 0 ? void 0 : _g.sourceUrl
155
155
  }),
156
156
  onLoad: onLoad,
157
157
  src: img,
@@ -160,7 +160,7 @@ function (_super) {
160
160
  }
161
161
  }), /*#__PURE__*/_react["default"].createElement("canvas", {
162
162
  ref: this.canvasRef
163
- }), ((_g = data.background) === null || _g === void 0 ? void 0 : _g.image) && /*#__PURE__*/_react["default"].createElement("div", {
163
+ }), ((_h = data.background) === null || _h === void 0 ? void 0 : _h.image) && /*#__PURE__*/_react["default"].createElement("div", {
164
164
  className: "hover-image",
165
165
  style: {
166
166
  backgroundImage: "url('" + data.background.image + "')"
@@ -59,7 +59,7 @@ function (_super) {
59
59
  return /*#__PURE__*/_react["default"].createElement("div", {
60
60
  className: "m-slide-image-pc"
61
61
  }, /*#__PURE__*/_react["default"].createElement(_ParallaxScroll["default"], {
62
- moveIcon: content.moveIcon,
62
+ moveIcon: content === null || content === void 0 ? void 0 : content.moveIcon,
63
63
  source: groupSource,
64
64
  xGap: columnSpace,
65
65
  yGap: lineSpace
@@ -118,16 +118,16 @@ function (_super) {
118
118
  };
119
119
 
120
120
  VideoItem.prototype.render = function () {
121
- var _a, _b, _c, _d, _e, _f, _g;
122
-
123
- var _h = this.props,
124
- data = _h.data,
125
- cursor = _h.cursor,
126
- onLoad = _h.onLoad,
127
- moveIcon = _h.moveIcon;
128
- var _j = this.state,
129
- playing = _j.playing,
130
- videoPoster = _j.videoPoster;
121
+ var _a, _b, _c, _d, _e, _f, _g, _h;
122
+
123
+ var _j = this.props,
124
+ data = _j.data,
125
+ cursor = _j.cursor,
126
+ onLoad = _j.onLoad,
127
+ moveIcon = _j.moveIcon;
128
+ var _k = this.state,
129
+ playing = _k.playing,
130
+ videoPoster = _k.videoPoster;
131
131
  var img = ((_b = (_a = data.overilay) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.pcImgSrc) || videoPoster;
132
132
  return /*#__PURE__*/_react["default"].createElement("div", {
133
133
  ref: this.cardRef,
@@ -135,9 +135,9 @@ function (_super) {
135
135
  onMouseEnter: this.onMouseEnter,
136
136
  onMouseLeave: this.onMouseLeave,
137
137
  style: {
138
- cursor: cursor && moveIcon.open ? "url('" + moveIcon.content.pcImgSrc + "'), pointer" : 'unset'
138
+ cursor: cursor && (moveIcon === null || moveIcon === void 0 ? void 0 : moveIcon.open) ? "url('" + ((_c = moveIcon === null || moveIcon === void 0 ? void 0 : moveIcon.content) === null || _c === void 0 ? void 0 : _c.pcImgSrc) + "'), pointer" : 'unset'
139
139
  }
140
- }, ((_c = data.video) === null || _c === void 0 ? void 0 : _c.sourceUrl) && /*#__PURE__*/_react["default"].createElement("video", {
140
+ }, ((_d = data.video) === null || _d === void 0 ? void 0 : _d.sourceUrl) && /*#__PURE__*/_react["default"].createElement("video", {
141
141
  ref: this.videoRef,
142
142
  loop: true,
143
143
  muted: true,
@@ -146,12 +146,12 @@ function (_super) {
146
146
  visibility: playing ? 'visible' : 'hidden'
147
147
  }
148
148
  }, /*#__PURE__*/_react["default"].createElement("source", {
149
- src: (_d = data.video) === null || _d === void 0 ? void 0 : _d.sourceUrl,
149
+ src: (_e = data.video) === null || _e === void 0 ? void 0 : _e.sourceUrl,
150
150
  type: "video/mp4"
151
- })), ((_e = data.overilay) === null || _e === void 0 ? void 0 : _e.open) && img && /*#__PURE__*/_react["default"].createElement("img", {
151
+ })), ((_f = data.overilay) === null || _f === void 0 ? void 0 : _f.open) && img && /*#__PURE__*/_react["default"].createElement("img", {
152
152
  alt: "",
153
153
  className: (0, _classnames["default"])('video-img', {
154
- cover: (_f = data.video) === null || _f === void 0 ? void 0 : _f.sourceUrl
154
+ cover: (_g = data.video) === null || _g === void 0 ? void 0 : _g.sourceUrl
155
155
  }),
156
156
  onLoad: onLoad,
157
157
  src: img,
@@ -160,7 +160,7 @@ function (_super) {
160
160
  }
161
161
  }), /*#__PURE__*/_react["default"].createElement("canvas", {
162
162
  ref: this.canvasRef
163
- }), ((_g = data.background) === null || _g === void 0 ? void 0 : _g.image) && /*#__PURE__*/_react["default"].createElement("div", {
163
+ }), ((_h = data.background) === null || _h === void 0 ? void 0 : _h.image) && /*#__PURE__*/_react["default"].createElement("div", {
164
164
  className: "hover-image",
165
165
  style: {
166
166
  backgroundImage: "url('" + data.background.image + "')"
@@ -59,7 +59,7 @@ function (_super) {
59
59
  return /*#__PURE__*/_react["default"].createElement("div", {
60
60
  className: "m-slide-image-pc"
61
61
  }, /*#__PURE__*/_react["default"].createElement(_ParallaxScroll["default"], {
62
- moveIcon: content.moveIcon,
62
+ moveIcon: content === null || content === void 0 ? void 0 : content.moveIcon,
63
63
  source: groupSource,
64
64
  xGap: columnSpace,
65
65
  yGap: lineSpace
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "1.0.170",
4
+ "version": "1.0.171",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",