@builder.io/sdk-solid 1.1.0 → 1.1.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/dist/index.d.ts +10 -0
- package/lib/browser/dev.js +2 -22
- package/lib/browser/dev.jsx +2 -22
- package/lib/browser/index.js +2 -22
- package/lib/browser/index.jsx +2 -22
- package/lib/edge/dev.js +2 -22
- package/lib/edge/dev.jsx +2 -22
- package/lib/edge/index.js +2 -22
- package/lib/edge/index.jsx +2 -22
- package/lib/node/dev.js +2 -22
- package/lib/node/dev.jsx +2 -22
- package/lib/node/index.js +2 -22
- package/lib/node/index.jsx +2 -22
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -436,6 +436,16 @@ interface ComponentInfo {
|
|
|
436
436
|
*/
|
|
437
437
|
requiredPermissions?: Array<Permission>;
|
|
438
438
|
hidden?: boolean;
|
|
439
|
+
/**
|
|
440
|
+
* When overriding built-in components, if you don't want any special behavior that
|
|
441
|
+
* the original has, set this to `true` to skip the default behavior
|
|
442
|
+
*
|
|
443
|
+
* Default behaviors include special "virtual options", such as a custom
|
|
444
|
+
* aspect ratio editor for Images, or a special column editor for Columns
|
|
445
|
+
*
|
|
446
|
+
* Learn more about overriding built-in components here: https://www.builder.io/c/docs/custom-components-overriding
|
|
447
|
+
*/
|
|
448
|
+
override?: boolean;
|
|
439
449
|
/**
|
|
440
450
|
* Whether or not the component should receive SDK-related props.
|
|
441
451
|
*/
|
package/lib/browser/dev.js
CHANGED
|
@@ -3413,27 +3413,7 @@ var componentInfo12 = {
|
|
|
3413
3413
|
type: "url",
|
|
3414
3414
|
required: true,
|
|
3415
3415
|
defaultValue: "",
|
|
3416
|
-
helperText: "e.g. enter a youtube url, google map, etc"
|
|
3417
|
-
onChange: (options) => {
|
|
3418
|
-
const url = options.get("url");
|
|
3419
|
-
if (url) {
|
|
3420
|
-
options.set("content", "Loading...");
|
|
3421
|
-
const apiKey = _iframelyApiKey;
|
|
3422
|
-
return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
|
|
3423
|
-
if (options.get("url") === url) {
|
|
3424
|
-
if (data.html) {
|
|
3425
|
-
options.set("content", data.html);
|
|
3426
|
-
} else {
|
|
3427
|
-
options.set("content", "Invalid url, please try another");
|
|
3428
|
-
}
|
|
3429
|
-
}
|
|
3430
|
-
}).catch((_err) => {
|
|
3431
|
-
options.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
3432
|
-
});
|
|
3433
|
-
} else {
|
|
3434
|
-
options.delete("content");
|
|
3435
|
-
}
|
|
3436
|
-
}
|
|
3416
|
+
helperText: "e.g. enter a youtube url, google map, etc"
|
|
3437
3417
|
}, {
|
|
3438
3418
|
name: "content",
|
|
3439
3419
|
type: "html",
|
|
@@ -5248,7 +5228,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5248
5228
|
}
|
|
5249
5229
|
|
|
5250
5230
|
// src/constants/sdk-version.ts
|
|
5251
|
-
var SDK_VERSION = "1.1.
|
|
5231
|
+
var SDK_VERSION = "1.1.2";
|
|
5252
5232
|
|
|
5253
5233
|
// src/functions/register.ts
|
|
5254
5234
|
var registry = {};
|
package/lib/browser/dev.jsx
CHANGED
|
@@ -3086,27 +3086,7 @@ var componentInfo12 = {
|
|
|
3086
3086
|
type: "url",
|
|
3087
3087
|
required: true,
|
|
3088
3088
|
defaultValue: "",
|
|
3089
|
-
helperText: "e.g. enter a youtube url, google map, etc"
|
|
3090
|
-
onChange: (options) => {
|
|
3091
|
-
const url = options.get("url");
|
|
3092
|
-
if (url) {
|
|
3093
|
-
options.set("content", "Loading...");
|
|
3094
|
-
const apiKey = _iframelyApiKey;
|
|
3095
|
-
return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
|
|
3096
|
-
if (options.get("url") === url) {
|
|
3097
|
-
if (data.html) {
|
|
3098
|
-
options.set("content", data.html);
|
|
3099
|
-
} else {
|
|
3100
|
-
options.set("content", "Invalid url, please try another");
|
|
3101
|
-
}
|
|
3102
|
-
}
|
|
3103
|
-
}).catch((_err) => {
|
|
3104
|
-
options.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
3105
|
-
});
|
|
3106
|
-
} else {
|
|
3107
|
-
options.delete("content");
|
|
3108
|
-
}
|
|
3109
|
-
}
|
|
3089
|
+
helperText: "e.g. enter a youtube url, google map, etc"
|
|
3110
3090
|
}, {
|
|
3111
3091
|
name: "content",
|
|
3112
3092
|
type: "html",
|
|
@@ -4764,7 +4744,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4764
4744
|
}
|
|
4765
4745
|
|
|
4766
4746
|
// src/constants/sdk-version.ts
|
|
4767
|
-
var SDK_VERSION = "1.1.
|
|
4747
|
+
var SDK_VERSION = "1.1.2";
|
|
4768
4748
|
|
|
4769
4749
|
// src/functions/register.ts
|
|
4770
4750
|
var registry = {};
|
package/lib/browser/index.js
CHANGED
|
@@ -3404,27 +3404,7 @@ var componentInfo12 = {
|
|
|
3404
3404
|
type: "url",
|
|
3405
3405
|
required: true,
|
|
3406
3406
|
defaultValue: "",
|
|
3407
|
-
helperText: "e.g. enter a youtube url, google map, etc"
|
|
3408
|
-
onChange: (options) => {
|
|
3409
|
-
const url = options.get("url");
|
|
3410
|
-
if (url) {
|
|
3411
|
-
options.set("content", "Loading...");
|
|
3412
|
-
const apiKey = _iframelyApiKey;
|
|
3413
|
-
return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
|
|
3414
|
-
if (options.get("url") === url) {
|
|
3415
|
-
if (data.html) {
|
|
3416
|
-
options.set("content", data.html);
|
|
3417
|
-
} else {
|
|
3418
|
-
options.set("content", "Invalid url, please try another");
|
|
3419
|
-
}
|
|
3420
|
-
}
|
|
3421
|
-
}).catch((_err) => {
|
|
3422
|
-
options.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
3423
|
-
});
|
|
3424
|
-
} else {
|
|
3425
|
-
options.delete("content");
|
|
3426
|
-
}
|
|
3427
|
-
}
|
|
3407
|
+
helperText: "e.g. enter a youtube url, google map, etc"
|
|
3428
3408
|
}, {
|
|
3429
3409
|
name: "content",
|
|
3430
3410
|
type: "html",
|
|
@@ -5233,7 +5213,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5233
5213
|
}
|
|
5234
5214
|
|
|
5235
5215
|
// src/constants/sdk-version.ts
|
|
5236
|
-
var SDK_VERSION = "1.1.
|
|
5216
|
+
var SDK_VERSION = "1.1.2";
|
|
5237
5217
|
|
|
5238
5218
|
// src/functions/register.ts
|
|
5239
5219
|
var registry = {};
|
package/lib/browser/index.jsx
CHANGED
|
@@ -3077,27 +3077,7 @@ var componentInfo12 = {
|
|
|
3077
3077
|
type: "url",
|
|
3078
3078
|
required: true,
|
|
3079
3079
|
defaultValue: "",
|
|
3080
|
-
helperText: "e.g. enter a youtube url, google map, etc"
|
|
3081
|
-
onChange: (options) => {
|
|
3082
|
-
const url = options.get("url");
|
|
3083
|
-
if (url) {
|
|
3084
|
-
options.set("content", "Loading...");
|
|
3085
|
-
const apiKey = _iframelyApiKey;
|
|
3086
|
-
return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
|
|
3087
|
-
if (options.get("url") === url) {
|
|
3088
|
-
if (data.html) {
|
|
3089
|
-
options.set("content", data.html);
|
|
3090
|
-
} else {
|
|
3091
|
-
options.set("content", "Invalid url, please try another");
|
|
3092
|
-
}
|
|
3093
|
-
}
|
|
3094
|
-
}).catch((_err) => {
|
|
3095
|
-
options.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
3096
|
-
});
|
|
3097
|
-
} else {
|
|
3098
|
-
options.delete("content");
|
|
3099
|
-
}
|
|
3100
|
-
}
|
|
3080
|
+
helperText: "e.g. enter a youtube url, google map, etc"
|
|
3101
3081
|
}, {
|
|
3102
3082
|
name: "content",
|
|
3103
3083
|
type: "html",
|
|
@@ -4749,7 +4729,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4749
4729
|
}
|
|
4750
4730
|
|
|
4751
4731
|
// src/constants/sdk-version.ts
|
|
4752
|
-
var SDK_VERSION = "1.1.
|
|
4732
|
+
var SDK_VERSION = "1.1.2";
|
|
4753
4733
|
|
|
4754
4734
|
// src/functions/register.ts
|
|
4755
4735
|
var registry = {};
|
package/lib/edge/dev.js
CHANGED
|
@@ -6559,27 +6559,7 @@ var componentInfo12 = {
|
|
|
6559
6559
|
type: "url",
|
|
6560
6560
|
required: true,
|
|
6561
6561
|
defaultValue: "",
|
|
6562
|
-
helperText: "e.g. enter a youtube url, google map, etc"
|
|
6563
|
-
onChange: (options) => {
|
|
6564
|
-
const url = options.get("url");
|
|
6565
|
-
if (url) {
|
|
6566
|
-
options.set("content", "Loading...");
|
|
6567
|
-
const apiKey = _iframelyApiKey;
|
|
6568
|
-
return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
|
|
6569
|
-
if (options.get("url") === url) {
|
|
6570
|
-
if (data.html) {
|
|
6571
|
-
options.set("content", data.html);
|
|
6572
|
-
} else {
|
|
6573
|
-
options.set("content", "Invalid url, please try another");
|
|
6574
|
-
}
|
|
6575
|
-
}
|
|
6576
|
-
}).catch((_err) => {
|
|
6577
|
-
options.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
6578
|
-
});
|
|
6579
|
-
} else {
|
|
6580
|
-
options.delete("content");
|
|
6581
|
-
}
|
|
6582
|
-
}
|
|
6562
|
+
helperText: "e.g. enter a youtube url, google map, etc"
|
|
6583
6563
|
}, {
|
|
6584
6564
|
name: "content",
|
|
6585
6565
|
type: "html",
|
|
@@ -8394,7 +8374,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
8394
8374
|
}
|
|
8395
8375
|
|
|
8396
8376
|
// src/constants/sdk-version.ts
|
|
8397
|
-
var SDK_VERSION = "1.1.
|
|
8377
|
+
var SDK_VERSION = "1.1.2";
|
|
8398
8378
|
|
|
8399
8379
|
// src/functions/register.ts
|
|
8400
8380
|
var registry = {};
|
package/lib/edge/dev.jsx
CHANGED
|
@@ -6234,27 +6234,7 @@ var componentInfo12 = {
|
|
|
6234
6234
|
type: "url",
|
|
6235
6235
|
required: true,
|
|
6236
6236
|
defaultValue: "",
|
|
6237
|
-
helperText: "e.g. enter a youtube url, google map, etc"
|
|
6238
|
-
onChange: (options) => {
|
|
6239
|
-
const url = options.get("url");
|
|
6240
|
-
if (url) {
|
|
6241
|
-
options.set("content", "Loading...");
|
|
6242
|
-
const apiKey = _iframelyApiKey;
|
|
6243
|
-
return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
|
|
6244
|
-
if (options.get("url") === url) {
|
|
6245
|
-
if (data.html) {
|
|
6246
|
-
options.set("content", data.html);
|
|
6247
|
-
} else {
|
|
6248
|
-
options.set("content", "Invalid url, please try another");
|
|
6249
|
-
}
|
|
6250
|
-
}
|
|
6251
|
-
}).catch((_err) => {
|
|
6252
|
-
options.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
6253
|
-
});
|
|
6254
|
-
} else {
|
|
6255
|
-
options.delete("content");
|
|
6256
|
-
}
|
|
6257
|
-
}
|
|
6237
|
+
helperText: "e.g. enter a youtube url, google map, etc"
|
|
6258
6238
|
}, {
|
|
6259
6239
|
name: "content",
|
|
6260
6240
|
type: "html",
|
|
@@ -7912,7 +7892,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
7912
7892
|
}
|
|
7913
7893
|
|
|
7914
7894
|
// src/constants/sdk-version.ts
|
|
7915
|
-
var SDK_VERSION = "1.1.
|
|
7895
|
+
var SDK_VERSION = "1.1.2";
|
|
7916
7896
|
|
|
7917
7897
|
// src/functions/register.ts
|
|
7918
7898
|
var registry = {};
|
package/lib/edge/index.js
CHANGED
|
@@ -6550,27 +6550,7 @@ var componentInfo12 = {
|
|
|
6550
6550
|
type: "url",
|
|
6551
6551
|
required: true,
|
|
6552
6552
|
defaultValue: "",
|
|
6553
|
-
helperText: "e.g. enter a youtube url, google map, etc"
|
|
6554
|
-
onChange: (options) => {
|
|
6555
|
-
const url = options.get("url");
|
|
6556
|
-
if (url) {
|
|
6557
|
-
options.set("content", "Loading...");
|
|
6558
|
-
const apiKey = _iframelyApiKey;
|
|
6559
|
-
return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
|
|
6560
|
-
if (options.get("url") === url) {
|
|
6561
|
-
if (data.html) {
|
|
6562
|
-
options.set("content", data.html);
|
|
6563
|
-
} else {
|
|
6564
|
-
options.set("content", "Invalid url, please try another");
|
|
6565
|
-
}
|
|
6566
|
-
}
|
|
6567
|
-
}).catch((_err) => {
|
|
6568
|
-
options.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
6569
|
-
});
|
|
6570
|
-
} else {
|
|
6571
|
-
options.delete("content");
|
|
6572
|
-
}
|
|
6573
|
-
}
|
|
6553
|
+
helperText: "e.g. enter a youtube url, google map, etc"
|
|
6574
6554
|
}, {
|
|
6575
6555
|
name: "content",
|
|
6576
6556
|
type: "html",
|
|
@@ -8379,7 +8359,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
8379
8359
|
}
|
|
8380
8360
|
|
|
8381
8361
|
// src/constants/sdk-version.ts
|
|
8382
|
-
var SDK_VERSION = "1.1.
|
|
8362
|
+
var SDK_VERSION = "1.1.2";
|
|
8383
8363
|
|
|
8384
8364
|
// src/functions/register.ts
|
|
8385
8365
|
var registry = {};
|
package/lib/edge/index.jsx
CHANGED
|
@@ -6225,27 +6225,7 @@ var componentInfo12 = {
|
|
|
6225
6225
|
type: "url",
|
|
6226
6226
|
required: true,
|
|
6227
6227
|
defaultValue: "",
|
|
6228
|
-
helperText: "e.g. enter a youtube url, google map, etc"
|
|
6229
|
-
onChange: (options) => {
|
|
6230
|
-
const url = options.get("url");
|
|
6231
|
-
if (url) {
|
|
6232
|
-
options.set("content", "Loading...");
|
|
6233
|
-
const apiKey = _iframelyApiKey;
|
|
6234
|
-
return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
|
|
6235
|
-
if (options.get("url") === url) {
|
|
6236
|
-
if (data.html) {
|
|
6237
|
-
options.set("content", data.html);
|
|
6238
|
-
} else {
|
|
6239
|
-
options.set("content", "Invalid url, please try another");
|
|
6240
|
-
}
|
|
6241
|
-
}
|
|
6242
|
-
}).catch((_err) => {
|
|
6243
|
-
options.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
6244
|
-
});
|
|
6245
|
-
} else {
|
|
6246
|
-
options.delete("content");
|
|
6247
|
-
}
|
|
6248
|
-
}
|
|
6228
|
+
helperText: "e.g. enter a youtube url, google map, etc"
|
|
6249
6229
|
}, {
|
|
6250
6230
|
name: "content",
|
|
6251
6231
|
type: "html",
|
|
@@ -7897,7 +7877,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
7897
7877
|
}
|
|
7898
7878
|
|
|
7899
7879
|
// src/constants/sdk-version.ts
|
|
7900
|
-
var SDK_VERSION = "1.1.
|
|
7880
|
+
var SDK_VERSION = "1.1.2";
|
|
7901
7881
|
|
|
7902
7882
|
// src/functions/register.ts
|
|
7903
7883
|
var registry = {};
|
package/lib/node/dev.js
CHANGED
|
@@ -3583,27 +3583,7 @@ var componentInfo12 = {
|
|
|
3583
3583
|
type: "url",
|
|
3584
3584
|
required: true,
|
|
3585
3585
|
defaultValue: "",
|
|
3586
|
-
helperText: "e.g. enter a youtube url, google map, etc"
|
|
3587
|
-
onChange: (options) => {
|
|
3588
|
-
const url = options.get("url");
|
|
3589
|
-
if (url) {
|
|
3590
|
-
options.set("content", "Loading...");
|
|
3591
|
-
const apiKey = _iframelyApiKey;
|
|
3592
|
-
return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
|
|
3593
|
-
if (options.get("url") === url) {
|
|
3594
|
-
if (data.html) {
|
|
3595
|
-
options.set("content", data.html);
|
|
3596
|
-
} else {
|
|
3597
|
-
options.set("content", "Invalid url, please try another");
|
|
3598
|
-
}
|
|
3599
|
-
}
|
|
3600
|
-
}).catch((_err) => {
|
|
3601
|
-
options.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
3602
|
-
});
|
|
3603
|
-
} else {
|
|
3604
|
-
options.delete("content");
|
|
3605
|
-
}
|
|
3606
|
-
}
|
|
3586
|
+
helperText: "e.g. enter a youtube url, google map, etc"
|
|
3607
3587
|
}, {
|
|
3608
3588
|
name: "content",
|
|
3609
3589
|
type: "html",
|
|
@@ -5418,7 +5398,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5418
5398
|
}
|
|
5419
5399
|
|
|
5420
5400
|
// src/constants/sdk-version.ts
|
|
5421
|
-
var SDK_VERSION = "1.1.
|
|
5401
|
+
var SDK_VERSION = "1.1.2";
|
|
5422
5402
|
|
|
5423
5403
|
// src/functions/register.ts
|
|
5424
5404
|
var registry = {};
|
package/lib/node/dev.jsx
CHANGED
|
@@ -3258,27 +3258,7 @@ var componentInfo12 = {
|
|
|
3258
3258
|
type: "url",
|
|
3259
3259
|
required: true,
|
|
3260
3260
|
defaultValue: "",
|
|
3261
|
-
helperText: "e.g. enter a youtube url, google map, etc"
|
|
3262
|
-
onChange: (options) => {
|
|
3263
|
-
const url = options.get("url");
|
|
3264
|
-
if (url) {
|
|
3265
|
-
options.set("content", "Loading...");
|
|
3266
|
-
const apiKey = _iframelyApiKey;
|
|
3267
|
-
return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
|
|
3268
|
-
if (options.get("url") === url) {
|
|
3269
|
-
if (data.html) {
|
|
3270
|
-
options.set("content", data.html);
|
|
3271
|
-
} else {
|
|
3272
|
-
options.set("content", "Invalid url, please try another");
|
|
3273
|
-
}
|
|
3274
|
-
}
|
|
3275
|
-
}).catch((_err) => {
|
|
3276
|
-
options.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
3277
|
-
});
|
|
3278
|
-
} else {
|
|
3279
|
-
options.delete("content");
|
|
3280
|
-
}
|
|
3281
|
-
}
|
|
3261
|
+
helperText: "e.g. enter a youtube url, google map, etc"
|
|
3282
3262
|
}, {
|
|
3283
3263
|
name: "content",
|
|
3284
3264
|
type: "html",
|
|
@@ -4936,7 +4916,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4936
4916
|
}
|
|
4937
4917
|
|
|
4938
4918
|
// src/constants/sdk-version.ts
|
|
4939
|
-
var SDK_VERSION = "1.1.
|
|
4919
|
+
var SDK_VERSION = "1.1.2";
|
|
4940
4920
|
|
|
4941
4921
|
// src/functions/register.ts
|
|
4942
4922
|
var registry = {};
|
package/lib/node/index.js
CHANGED
|
@@ -3574,27 +3574,7 @@ var componentInfo12 = {
|
|
|
3574
3574
|
type: "url",
|
|
3575
3575
|
required: true,
|
|
3576
3576
|
defaultValue: "",
|
|
3577
|
-
helperText: "e.g. enter a youtube url, google map, etc"
|
|
3578
|
-
onChange: (options) => {
|
|
3579
|
-
const url = options.get("url");
|
|
3580
|
-
if (url) {
|
|
3581
|
-
options.set("content", "Loading...");
|
|
3582
|
-
const apiKey = _iframelyApiKey;
|
|
3583
|
-
return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
|
|
3584
|
-
if (options.get("url") === url) {
|
|
3585
|
-
if (data.html) {
|
|
3586
|
-
options.set("content", data.html);
|
|
3587
|
-
} else {
|
|
3588
|
-
options.set("content", "Invalid url, please try another");
|
|
3589
|
-
}
|
|
3590
|
-
}
|
|
3591
|
-
}).catch((_err) => {
|
|
3592
|
-
options.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
3593
|
-
});
|
|
3594
|
-
} else {
|
|
3595
|
-
options.delete("content");
|
|
3596
|
-
}
|
|
3597
|
-
}
|
|
3577
|
+
helperText: "e.g. enter a youtube url, google map, etc"
|
|
3598
3578
|
}, {
|
|
3599
3579
|
name: "content",
|
|
3600
3580
|
type: "html",
|
|
@@ -5403,7 +5383,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5403
5383
|
}
|
|
5404
5384
|
|
|
5405
5385
|
// src/constants/sdk-version.ts
|
|
5406
|
-
var SDK_VERSION = "1.1.
|
|
5386
|
+
var SDK_VERSION = "1.1.2";
|
|
5407
5387
|
|
|
5408
5388
|
// src/functions/register.ts
|
|
5409
5389
|
var registry = {};
|
package/lib/node/index.jsx
CHANGED
|
@@ -3249,27 +3249,7 @@ var componentInfo12 = {
|
|
|
3249
3249
|
type: "url",
|
|
3250
3250
|
required: true,
|
|
3251
3251
|
defaultValue: "",
|
|
3252
|
-
helperText: "e.g. enter a youtube url, google map, etc"
|
|
3253
|
-
onChange: (options) => {
|
|
3254
|
-
const url = options.get("url");
|
|
3255
|
-
if (url) {
|
|
3256
|
-
options.set("content", "Loading...");
|
|
3257
|
-
const apiKey = _iframelyApiKey;
|
|
3258
|
-
return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
|
|
3259
|
-
if (options.get("url") === url) {
|
|
3260
|
-
if (data.html) {
|
|
3261
|
-
options.set("content", data.html);
|
|
3262
|
-
} else {
|
|
3263
|
-
options.set("content", "Invalid url, please try another");
|
|
3264
|
-
}
|
|
3265
|
-
}
|
|
3266
|
-
}).catch((_err) => {
|
|
3267
|
-
options.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
3268
|
-
});
|
|
3269
|
-
} else {
|
|
3270
|
-
options.delete("content");
|
|
3271
|
-
}
|
|
3272
|
-
}
|
|
3252
|
+
helperText: "e.g. enter a youtube url, google map, etc"
|
|
3273
3253
|
}, {
|
|
3274
3254
|
name: "content",
|
|
3275
3255
|
type: "html",
|
|
@@ -4921,7 +4901,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
4921
4901
|
}
|
|
4922
4902
|
|
|
4923
4903
|
// src/constants/sdk-version.ts
|
|
4924
|
-
var SDK_VERSION = "1.1.
|
|
4904
|
+
var SDK_VERSION = "1.1.2";
|
|
4925
4905
|
|
|
4926
4906
|
// src/functions/register.ts
|
|
4927
4907
|
var registry = {};
|