@builder.io/sdk-qwik 0.15.1 → 0.15.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.
@@ -3522,25 +3522,7 @@ const componentInfo$7 = {
3522
3522
  type: "url",
3523
3523
  required: true,
3524
3524
  defaultValue: "",
3525
- helperText: "e.g. enter a youtube url, google map, etc",
3526
- onChange: (options) => {
3527
- const url = options.get("url");
3528
- if (url) {
3529
- options.set("content", "Loading...");
3530
- const apiKey = _iframelyApiKey;
3531
- return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
3532
- if (options.get("url") === url) {
3533
- if (data.html)
3534
- options.set("content", data.html);
3535
- else
3536
- options.set("content", "Invalid url, please try another");
3537
- }
3538
- }).catch((_err) => {
3539
- options.set("content", "There was an error embedding this URL, please try again or another URL");
3540
- });
3541
- } else
3542
- options.delete("content");
3543
- }
3525
+ helperText: "e.g. enter a youtube url, google map, etc"
3544
3526
  },
3545
3527
  {
3546
3528
  name: "content",
@@ -5288,7 +5270,7 @@ function isFromTrustedHost(trustedHosts, e) {
5288
5270
  const url = new URL(e.origin), hostname = url.hostname;
5289
5271
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
5290
5272
  }
5291
- const SDK_VERSION = "0.15.1";
5273
+ const SDK_VERSION = "0.15.2";
5292
5274
  const registry = {};
5293
5275
  function register(type, info) {
5294
5276
  let typeList = registry[type];
@@ -3520,25 +3520,7 @@ const componentInfo$7 = {
3520
3520
  type: "url",
3521
3521
  required: true,
3522
3522
  defaultValue: "",
3523
- helperText: "e.g. enter a youtube url, google map, etc",
3524
- onChange: (options) => {
3525
- const url = options.get("url");
3526
- if (url) {
3527
- options.set("content", "Loading...");
3528
- const apiKey = _iframelyApiKey;
3529
- return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
3530
- if (options.get("url") === url) {
3531
- if (data.html)
3532
- options.set("content", data.html);
3533
- else
3534
- options.set("content", "Invalid url, please try another");
3535
- }
3536
- }).catch((_err) => {
3537
- options.set("content", "There was an error embedding this URL, please try again or another URL");
3538
- });
3539
- } else
3540
- options.delete("content");
3541
- }
3523
+ helperText: "e.g. enter a youtube url, google map, etc"
3542
3524
  },
3543
3525
  {
3544
3526
  name: "content",
@@ -5286,7 +5268,7 @@ function isFromTrustedHost(trustedHosts, e) {
5286
5268
  const url = new URL(e.origin), hostname = url.hostname;
5287
5269
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
5288
5270
  }
5289
- const SDK_VERSION = "0.15.1";
5271
+ const SDK_VERSION = "0.15.2";
5290
5272
  const registry = {};
5291
5273
  function register(type, info) {
5292
5274
  let typeList = registry[type];
@@ -6746,25 +6746,7 @@ const componentInfo$7 = {
6746
6746
  type: "url",
6747
6747
  required: true,
6748
6748
  defaultValue: "",
6749
- helperText: "e.g. enter a youtube url, google map, etc",
6750
- onChange: (options) => {
6751
- const url = options.get("url");
6752
- if (url) {
6753
- options.set("content", "Loading...");
6754
- const apiKey = _iframelyApiKey;
6755
- return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
6756
- if (options.get("url") === url) {
6757
- if (data.html)
6758
- options.set("content", data.html);
6759
- else
6760
- options.set("content", "Invalid url, please try another");
6761
- }
6762
- }).catch((_err) => {
6763
- options.set("content", "There was an error embedding this URL, please try again or another URL");
6764
- });
6765
- } else
6766
- options.delete("content");
6767
- }
6749
+ helperText: "e.g. enter a youtube url, google map, etc"
6768
6750
  },
6769
6751
  {
6770
6752
  name: "content",
@@ -8512,7 +8494,7 @@ function isFromTrustedHost(trustedHosts, e) {
8512
8494
  const url = new URL(e.origin), hostname = url.hostname;
8513
8495
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
8514
8496
  }
8515
- const SDK_VERSION = "0.15.1";
8497
+ const SDK_VERSION = "0.15.2";
8516
8498
  const registry = {};
8517
8499
  function register(type, info) {
8518
8500
  let typeList = registry[type];
@@ -6744,25 +6744,7 @@ const componentInfo$7 = {
6744
6744
  type: "url",
6745
6745
  required: true,
6746
6746
  defaultValue: "",
6747
- helperText: "e.g. enter a youtube url, google map, etc",
6748
- onChange: (options) => {
6749
- const url = options.get("url");
6750
- if (url) {
6751
- options.set("content", "Loading...");
6752
- const apiKey = _iframelyApiKey;
6753
- return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
6754
- if (options.get("url") === url) {
6755
- if (data.html)
6756
- options.set("content", data.html);
6757
- else
6758
- options.set("content", "Invalid url, please try another");
6759
- }
6760
- }).catch((_err) => {
6761
- options.set("content", "There was an error embedding this URL, please try again or another URL");
6762
- });
6763
- } else
6764
- options.delete("content");
6765
- }
6747
+ helperText: "e.g. enter a youtube url, google map, etc"
6766
6748
  },
6767
6749
  {
6768
6750
  name: "content",
@@ -8510,7 +8492,7 @@ function isFromTrustedHost(trustedHosts, e) {
8510
8492
  const url = new URL(e.origin), hostname = url.hostname;
8511
8493
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
8512
8494
  }
8513
- const SDK_VERSION = "0.15.1";
8495
+ const SDK_VERSION = "0.15.2";
8514
8496
  const registry = {};
8515
8497
  function register(type, info) {
8516
8498
  let typeList = registry[type];
@@ -3667,25 +3667,7 @@ const componentInfo$7 = {
3667
3667
  type: "url",
3668
3668
  required: true,
3669
3669
  defaultValue: "",
3670
- helperText: "e.g. enter a youtube url, google map, etc",
3671
- onChange: (options) => {
3672
- const url = options.get("url");
3673
- if (url) {
3674
- options.set("content", "Loading...");
3675
- const apiKey = _iframelyApiKey;
3676
- return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
3677
- if (options.get("url") === url) {
3678
- if (data.html)
3679
- options.set("content", data.html);
3680
- else
3681
- options.set("content", "Invalid url, please try another");
3682
- }
3683
- }).catch((_err) => {
3684
- options.set("content", "There was an error embedding this URL, please try again or another URL");
3685
- });
3686
- } else
3687
- options.delete("content");
3688
- }
3670
+ helperText: "e.g. enter a youtube url, google map, etc"
3689
3671
  },
3690
3672
  {
3691
3673
  name: "content",
@@ -5433,7 +5415,7 @@ function isFromTrustedHost(trustedHosts, e) {
5433
5415
  const url = new URL(e.origin), hostname = url.hostname;
5434
5416
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
5435
5417
  }
5436
- const SDK_VERSION = "0.15.1";
5418
+ const SDK_VERSION = "0.15.2";
5437
5419
  const registry = {};
5438
5420
  function register(type, info) {
5439
5421
  let typeList = registry[type];
@@ -3665,25 +3665,7 @@ const componentInfo$7 = {
3665
3665
  type: "url",
3666
3666
  required: true,
3667
3667
  defaultValue: "",
3668
- helperText: "e.g. enter a youtube url, google map, etc",
3669
- onChange: (options) => {
3670
- const url = options.get("url");
3671
- if (url) {
3672
- options.set("content", "Loading...");
3673
- const apiKey = _iframelyApiKey;
3674
- return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
3675
- if (options.get("url") === url) {
3676
- if (data.html)
3677
- options.set("content", data.html);
3678
- else
3679
- options.set("content", "Invalid url, please try another");
3680
- }
3681
- }).catch((_err) => {
3682
- options.set("content", "There was an error embedding this URL, please try again or another URL");
3683
- });
3684
- } else
3685
- options.delete("content");
3686
- }
3668
+ helperText: "e.g. enter a youtube url, google map, etc"
3687
3669
  },
3688
3670
  {
3689
3671
  name: "content",
@@ -5431,7 +5413,7 @@ function isFromTrustedHost(trustedHosts, e) {
5431
5413
  const url = new URL(e.origin), hostname = url.hostname;
5432
5414
  return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
5433
5415
  }
5434
- const SDK_VERSION = "0.15.1";
5416
+ const SDK_VERSION = "0.15.2";
5435
5417
  const registry = {};
5436
5418
  function register(type, info) {
5437
5419
  let typeList = registry[type];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-qwik",
3
- "version": "0.15.1",
3
+ "version": "0.15.2",
4
4
  "homepage": "https://github.com/BuilderIO/builder/tree/main/packages/sdks/output/qwik",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.15.1";
1
+ export declare const SDK_VERSION = "0.15.2";