@builder.io/sdk-vue 2.0.1 → 2.0.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.
Files changed (51) hide show
  1. package/lib/browser/{block-styles-Csi42CXj.cjs → block-styles-Mn6wJduZ.cjs} +1 -1
  2. package/lib/browser/{block-styles-svOVzDaV.js → block-styles-sZJR1URf.js} +1 -1
  3. package/lib/browser/{block-wrapper-KGQI5yrU.js → block-wrapper-ody6Sxkr.js} +3 -3
  4. package/lib/browser/{block-wrapper-GE-RFbYp.cjs → block-wrapper-qFFX6RFF.cjs} +1 -1
  5. package/lib/browser/{component-ref-X2UZCaau.cjs → component-ref-DSNF4azA.cjs} +1 -1
  6. package/lib/browser/{component-ref-k5NF2o_L.js → component-ref-rf4-wS3o.js} +2 -2
  7. package/lib/browser/constants/sdk-version.d.ts +1 -1
  8. package/lib/browser/{get-block-properties-1Sn1T_z8.js → get-block-properties-O0W_2V2s.js} +1 -1
  9. package/lib/browser/{get-block-properties-lkKJCs4_.cjs → get-block-properties-trq7EGpq.cjs} +1 -1
  10. package/lib/browser/{index-zc0i09p9.js → index---sv1Dmc.js} +25 -25
  11. package/lib/browser/index-5K25vfnv.cjs +166 -0
  12. package/lib/browser/index.cjs +1 -1
  13. package/lib/browser/index.mjs +1 -1
  14. package/lib/browser/{repeated-block-BxE-FBVv.js → repeated-block-4hDqPbdf.js} +2 -2
  15. package/lib/browser/{repeated-block-U8EfEnWl.cjs → repeated-block-LqvC87RV.cjs} +1 -1
  16. package/lib/browser/style.css +1 -1
  17. package/lib/edge/{block-styles-F04q1oh7.js → block-styles-QLPVQ54j.js} +1 -1
  18. package/lib/edge/{block-styles-fRc_JL86.cjs → block-styles-VkVzS7vd.cjs} +1 -1
  19. package/lib/{node/block-wrapper-x4ztktEw.cjs → edge/block-wrapper-C3QWzorc.cjs} +1 -1
  20. package/lib/edge/{block-wrapper-8j2OMXf0.js → block-wrapper-Lrmvcvj2.js} +3 -3
  21. package/lib/{node/component-ref-SSAGqUU1.js → edge/component-ref-BzjW_J7Z.js} +2 -2
  22. package/lib/{node/component-ref-Xsv_XmLR.cjs → edge/component-ref-_MrpnWQq.cjs} +1 -1
  23. package/lib/edge/constants/sdk-version.d.ts +1 -1
  24. package/lib/edge/{get-block-properties-aLqPRHin.js → get-block-properties-YDq-FuAs.js} +1 -1
  25. package/lib/edge/{get-block-properties-T-X8E9sU.cjs → get-block-properties-ZdU2gihP.cjs} +1 -1
  26. package/lib/edge/{index-Hw76nggP.js → index-8mGnZrt9.js} +25 -25
  27. package/lib/edge/{index-kEvRBdly.cjs → index-tYqLns-6.cjs} +18 -18
  28. package/lib/edge/index.cjs +1 -1
  29. package/lib/edge/index.mjs +1 -1
  30. package/lib/edge/{repeated-block-iGJv6g_d.cjs → repeated-block-IOMTx4Ek.cjs} +1 -1
  31. package/lib/edge/{repeated-block-RuwJfamt.js → repeated-block-c9Qq8PaK.js} +2 -2
  32. package/lib/edge/style.css +1 -1
  33. package/lib/node/{block-styles-fnIQFp0q.cjs → block-styles-GqJTbD8X.cjs} +1 -1
  34. package/lib/node/{block-styles-akqgR8wB.js → block-styles-Tyg1fV88.js} +1 -1
  35. package/lib/{edge/block-wrapper-ai3_EF77.cjs → node/block-wrapper-0rr8eTCE.cjs} +1 -1
  36. package/lib/node/{block-wrapper-xIeM4taN.js → block-wrapper-iBhEa5rI.js} +3 -3
  37. package/lib/{edge/component-ref-okii_K_0.js → node/component-ref-FN9Rzqu_.js} +2 -2
  38. package/lib/{edge/component-ref-adfadHtQ.cjs → node/component-ref-j2PWej8h.cjs} +1 -1
  39. package/lib/node/constants/sdk-version.d.ts +1 -1
  40. package/lib/node/{get-block-properties-4897A0cX.js → get-block-properties-HOAtHaKD.js} +1 -1
  41. package/lib/node/{get-block-properties-gYAacxBD.cjs → get-block-properties-NZJwLalB.cjs} +1 -1
  42. package/lib/node/{index-ZwTY1dOi.js → index-AtsvJZco.js} +231 -231
  43. package/lib/node/index-_k1NN43c.cjs +213 -0
  44. package/lib/node/index.cjs +1 -1
  45. package/lib/node/index.mjs +1 -1
  46. package/lib/node/{repeated-block-kVVd7Ki5.cjs → repeated-block-Smn39W6t.cjs} +1 -1
  47. package/lib/node/{repeated-block-hqi2-jn4.js → repeated-block-ztDvgKZz.js} +2 -2
  48. package/lib/node/style.css +1 -1
  49. package/package.json +1 -1
  50. package/lib/browser/index-5WrmkFk4.cjs +0 -166
  51. package/lib/node/index-zlCXfe4Y.cjs +0 -213
@@ -3060,22 +3060,22 @@ const $i = ({
3060
3060
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
3061
3061
  e
3062
3062
  ), e;
3063
- }), Ui = () => import("./block-styles-F04q1oh7.js").then((e) => e.default).catch((e) => {
3063
+ }), Ui = () => import("./block-styles-QLPVQ54j.js").then((e) => e.default).catch((e) => {
3064
3064
  throw console.error(
3065
3065
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
3066
3066
  e
3067
3067
  ), e;
3068
- }), Fi = () => import("./block-wrapper-8j2OMXf0.js").then((e) => e.default).catch((e) => {
3068
+ }), Fi = () => import("./block-wrapper-Lrmvcvj2.js").then((e) => e.default).catch((e) => {
3069
3069
  throw console.error(
3070
3070
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
3071
3071
  e
3072
3072
  ), e;
3073
- }), Di = () => import("./component-ref-okii_K_0.js").then((e) => e.default).catch((e) => {
3073
+ }), Di = () => import("./component-ref-BzjW_J7Z.js").then((e) => e.default).catch((e) => {
3074
3074
  throw console.error(
3075
3075
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
3076
3076
  e
3077
3077
  ), e;
3078
- }), Mi = () => import("./repeated-block-RuwJfamt.js").then((e) => e.default).catch((e) => {
3078
+ }), Mi = () => import("./repeated-block-c9Qq8PaK.js").then((e) => e.default).catch((e) => {
3079
3079
  throw console.error(
3080
3080
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
3081
3081
  e
@@ -3623,12 +3623,14 @@ const as = j({
3623
3623
  // images, otherwise you can supply this prop manually
3624
3624
  !(t.match(/builder\.io/) || t.match(/cdn\.shopify\.com/)))
3625
3625
  return this.srcset;
3626
- if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
3627
- if (!this.srcset.includes(this.image.split("?")[0]))
3628
- return console.debug("Removed given srcset"), cn(t);
3629
- } else if (this.image && !this.srcset)
3626
+ if (!this.noWebp) {
3627
+ if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
3628
+ if (!this.srcset.includes(this.image.split("?")[0]))
3629
+ return console.debug("Removed given srcset"), cn(t);
3630
+ } else if (this.image && !this.srcset)
3631
+ return cn(t);
3630
3632
  return cn(t);
3631
- return cn(t);
3633
+ }
3632
3634
  },
3633
3635
  webpSrcSet() {
3634
3636
  var e;
@@ -3689,7 +3691,7 @@ function ps(e, t, n, r, o, i) {
3689
3691
  ])) : M("", !0)
3690
3692
  ], 64);
3691
3693
  }
3692
- const ds = /* @__PURE__ */ V(as, [["render", ps], ["__scopeId", "data-v-0d528855"]]), hs = j({
3694
+ const ds = /* @__PURE__ */ V(as, [["render", ps], ["__scopeId", "data-v-ce62b8d6"]]), hs = j({
3693
3695
  name: "builder-section-component",
3694
3696
  props: ["attributes", "maxWidth"],
3695
3697
  data() {
@@ -6391,7 +6393,7 @@ function go(e, t) {
6391
6393
  const n = new URL(t.origin), r = n.hostname;
6392
6394
  return (e || Vl).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
6393
6395
  }
6394
- const Ul = "2.0.1", $r = {};
6396
+ const Ul = "2.0.2", $r = {};
6395
6397
  function Fl(e, t) {
6396
6398
  let n = $r[e];
6397
6399
  if (n || (n = $r[e] = []), n.push(t), X()) {
@@ -6982,6 +6984,7 @@ const _l = /* @__PURE__ */ V(Xl, [["render", Yl]]), Zl = ({
6982
6984
  props: [
6983
6985
  "content",
6984
6986
  "customComponents",
6987
+ "model",
6985
6988
  "data",
6986
6989
  "locale",
6987
6990
  "context",
@@ -6991,7 +6994,6 @@ const _l = /* @__PURE__ */ V(Xl, [["render", Yl]]), Zl = ({
6991
6994
  "blocksWrapper",
6992
6995
  "blocksWrapperProps",
6993
6996
  "nonce",
6994
- "model",
6995
6997
  "enrich",
6996
6998
  "showContent",
6997
6999
  "contentWrapper",
@@ -7002,7 +7004,7 @@ const _l = /* @__PURE__ */ V(Xl, [["render", Yl]]), Zl = ({
7002
7004
  "linkComponent"
7003
7005
  ],
7004
7006
  data() {
7005
- var e, t;
7007
+ var e, t, n, r;
7006
7008
  return {
7007
7009
  scriptStr: pl({
7008
7010
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -7012,13 +7014,13 @@ const _l = /* @__PURE__ */ V(Xl, [["render", Yl]]), Zl = ({
7012
7014
  }),
7013
7015
  registeredComponents: [
7014
7016
  ...Er(),
7015
- ...this.customComponents || []
7017
+ ...((n = this.customComponents) == null ? void 0 : n.filter(({ models: o }) => !(o != null && o.length) || !this.model ? !0 : o.includes(this.model))) || []
7016
7018
  ].reduce(
7017
- (n, { component: r, ...o }) => ({
7018
- ...n,
7019
- [o.name]: {
7020
- component: eu(r),
7021
- ...bn(o)
7019
+ (o, { component: i, ...a }) => ({
7020
+ ...o,
7021
+ [a.name]: {
7022
+ component: eu(i),
7023
+ ...bn(a)
7022
7024
  }
7023
7025
  }),
7024
7026
  {}
@@ -7041,11 +7043,11 @@ const _l = /* @__PURE__ */ V(Xl, [["render", Yl]]), Zl = ({
7041
7043
  apiVersion: this.apiVersion,
7042
7044
  componentInfos: [
7043
7045
  ...Er(),
7044
- ...this.customComponents || []
7046
+ ...((r = this.customComponents) == null ? void 0 : r.filter(({ models: o }) => !(o != null && o.length) || !this.model ? !0 : o.includes(this.model))) || []
7045
7047
  ].reduce(
7046
- (n, { component: r, ...o }) => ({
7047
- ...n,
7048
- [o.name]: bn(o)
7048
+ (o, { component: i, ...a }) => ({
7049
+ ...o,
7050
+ [a.name]: bn(a)
7049
7051
  }),
7050
7052
  {}
7051
7053
  ),
@@ -7157,8 +7159,6 @@ const ru = /* @__PURE__ */ V(tu, [["render", nu]]), ou = j({
7157
7159
  },
7158
7160
  mounted() {
7159
7161
  },
7160
- updated() {
7161
- },
7162
7162
  computed: {
7163
7163
  updateCookieAndStylesScriptStr() {
7164
7164
  var e;