@fonixtree/magic-design 0.1.43 → 0.1.44

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.
@@ -342,7 +342,7 @@ function (_super) {
342
342
  if (outputType == 'html' && _mode == 'renderer') {
343
343
  if (data === null || data === void 0 ? void 0 : data.content.clickUrl) {
344
344
  var a = document.createElement('a');
345
- a.href = data.content.clickUrl;
345
+ a.href = _typeof(data.content.clickUrl) === 'object' ? data.content.clickUrl.value : data.content.clickUrl;
346
346
  a.target = '_blank';
347
347
  a.innerHTML = data.text;
348
348
  _this.textRef.current.innerHTML = '';
@@ -365,7 +365,7 @@ function (_super) {
365
365
  if (c === null || c === void 0 ? void 0 : c.content.clickUrl) {
366
366
  if (outputType == 'html' && _mode == 'renderer') {
367
367
  var a = document.createElement('a');
368
- a.href = c.content.clickUrl;
368
+ a.href = _typeof(c.content.clickUrl) === 'object' ? c.content.clickUrl.value : c.content.clickUrl;
369
369
  a.target = '_blank';
370
370
 
371
371
  if (_mode == 'designer') {
@@ -342,7 +342,7 @@ function (_super) {
342
342
  if (outputType == 'html' && _mode == 'renderer') {
343
343
  if (data === null || data === void 0 ? void 0 : data.content.clickUrl) {
344
344
  var a = document.createElement('a');
345
- a.href = data.content.clickUrl;
345
+ a.href = _typeof(data.content.clickUrl) === 'object' ? data.content.clickUrl.value : data.content.clickUrl;
346
346
  a.target = '_blank';
347
347
  a.innerHTML = data.text;
348
348
  _this.textRef.current.innerHTML = '';
@@ -365,7 +365,7 @@ function (_super) {
365
365
  if (c === null || c === void 0 ? void 0 : c.content.clickUrl) {
366
366
  if (outputType == 'html' && _mode == 'renderer') {
367
367
  var a = document.createElement('a');
368
- a.href = c.content.clickUrl;
368
+ a.href = _typeof(c.content.clickUrl) === 'object' ? c.content.clickUrl.value : c.content.clickUrl;
369
369
  a.target = '_blank';
370
370
 
371
371
  if (_mode == 'designer') {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "0.1.43",
4
+ "version": "0.1.44",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",