@builder.io/sdk-vue 0.0.1-53 → 0.0.1-54

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/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### 0.0.1-52
2
+
3
+ 🧨 Breaking change: the format of the `customComponents` prop has changed from `[{ component, info }]` to `[{ component, ...info }]`.
4
+ See [builder-registered-components.ts](/packages/sdks/src/constants/builder-registered-components.ts) for examples of how to do so, or see the example provided for this SDK.
5
+
1
6
  ### 0.0.1-51
2
7
 
3
8
  ⚠️ Deprecation notice: Registering components via `registerComponent(component, info)` is now deprecated.
@@ -1,7 +1,7 @@
1
1
  <template>
2
- <div class="builder-columns div-4wbls88y960" :style="columnsCssVars">
2
+ <div class="builder-columns div-16nol0lwi20" :style="columnsCssVars">
3
3
  <div
4
- class="builder-column div-4wbls88y960-2"
4
+ class="builder-column div-16nol0lwi20-2"
5
5
  v-for="(column, index) in columns"
6
6
  :style="{
7
7
  width: getColumnCssWidth(index),
@@ -74,32 +74,32 @@ export default {
74
74
  };
75
75
  </script>
76
76
  <style scoped>
77
- .div-4wbls88y960 {
77
+ .div-16nol0lwi20 {
78
78
  display: flex;
79
79
  align-items: stretch;
80
80
  line-height: normal;
81
81
  }
82
82
  @media (max-width: 999px) {
83
- .div-4wbls88y960 {
83
+ .div-16nol0lwi20 {
84
84
  flex-direction: var(--flex-dir-tablet);
85
85
  }
86
86
  }
87
87
  @media (max-width: 639px) {
88
- .div-4wbls88y960 {
88
+ .div-16nol0lwi20 {
89
89
  flex-direction: var(--flex-dir);
90
90
  }
91
91
  }
92
- .div-4wbls88y960-2 {
92
+ .div-16nol0lwi20-2 {
93
93
  flex-grow: 1;
94
94
  }
95
95
  @media (max-width: 999px) {
96
- .div-4wbls88y960-2 {
96
+ .div-16nol0lwi20-2 {
97
97
  width: var(--column-width-tablet) !important;
98
98
  margin-left: var(--column-margin-left-tablet) !important;
99
99
  }
100
100
  }
101
101
  @media (max-width: 639px) {
102
- .div-4wbls88y960-2 {
102
+ .div-16nol0lwi20-2 {
103
103
  width: var(--column-width) !important;
104
104
  margin-left: var(--column-margin-left) !important;
105
105
  }
@@ -27,7 +27,7 @@
27
27
  ></builder-blocks>
28
28
 
29
29
  <pre
30
- class="builder-form-error-text pre-1pl23ac79ld"
30
+ class="builder-form-error-text pre-4wbls88y960"
31
31
  v-if="submissionState === 'error' && responseData"
32
32
  >
33
33
  {{ JSON.stringify(responseData, null, 2) }}
@@ -302,7 +302,7 @@ export default {
302
302
  };
303
303
  </script>
304
304
  <style scoped>
305
- .pre-1pl23ac79ld {
305
+ .pre-4wbls88y960 {
306
306
  padding: 10px;
307
307
  color: red;
308
308
  text-align: center;
@@ -1,9 +1,9 @@
1
1
  <template>
2
- <div class="div-t43jfuqn6g">
2
+ <div class="div-20351ewpue7">
3
3
  <picture>
4
4
  <img
5
5
  loading="lazy"
6
- class="img-t43jfuqn6g"
6
+ class="img-20351ewpue7"
7
7
  :alt="altText"
8
8
  :role="altText ? 'presentation' : undefined"
9
9
  :style="{
@@ -16,14 +16,14 @@
16
16
  )
17
17
  "
18
18
  :src="image"
19
- :srcset="srcset"
19
+ :srcSet="srcset"
20
20
  :sizes="sizes"
21
21
  />
22
22
  <source :srcSet="srcset" />
23
23
  </picture>
24
24
 
25
25
  <div
26
- class="builder-image-sizer div-t43jfuqn6g-2"
26
+ class="builder-image-sizer div-20351ewpue7-2"
27
27
  v-if="aspectRatio && !(fitContent && ((builderBlock && builderBlock.children) && (builderBlock && builderBlock.children).length))"
28
28
  :style="{
29
29
  paddingTop: aspectRatio * 100 + '%',
@@ -34,7 +34,7 @@
34
34
 
35
35
  <slot></slot>
36
36
 
37
- <div class="div-t43jfuqn6g-3" v-if="!fitContent">
37
+ <div class="div-20351ewpue7-3" v-if="!fitContent">
38
38
  <slot></slot>
39
39
  </div>
40
40
  </div>
@@ -71,10 +71,10 @@ export default {
71
71
  };
72
72
  </script>
73
73
  <style scoped>
74
- .div-t43jfuqn6g {
74
+ .div-20351ewpue7 {
75
75
  position: relative;
76
76
  }
77
- .img-t43jfuqn6g {
77
+ .img-20351ewpue7 {
78
78
  opacity: 1;
79
79
  transition: opacity 0.2s ease-in-out;
80
80
  position: absolute;
@@ -83,12 +83,12 @@ export default {
83
83
  top: 0px;
84
84
  left: 0px;
85
85
  }
86
- .div-t43jfuqn6g-2 {
86
+ .div-20351ewpue7-2 {
87
87
  width: 100%;
88
88
  pointer-events: none;
89
89
  font-size: 0;
90
90
  }
91
- .div-t43jfuqn6g-3 {
91
+ .div-20351ewpue7-3 {
92
92
  display: flex;
93
93
  flex-direction: column;
94
94
  align-items: stretch;
@@ -12,6 +12,7 @@ const componentInfo = {
12
12
  name: "Symbol",
13
13
  noWrap: true,
14
14
  static: true,
15
+ builtIn: true,
15
16
  inputs: [
16
17
  {
17
18
  name: "symbol",
@@ -95,7 +95,12 @@ export default {
95
95
  }
96
96
  },
97
97
  componentInfo() {
98
- return this.component?.info;
98
+ if (this.component) {
99
+ const { component: _, ...info } = this.component;
100
+ return info;
101
+ } else {
102
+ return undefined;
103
+ }
99
104
  },
100
105
  componentRef() {
101
106
  return this.component?.component;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-vue",
3
3
  "description": "Builder.io SDK for Vue",
4
- "version": "0.0.1-53",
4
+ "version": "0.0.1-54",
5
5
  "dependencies": {
6
6
  "node-fetch": "^2.6.1"
7
7
  },
@@ -12,6 +12,7 @@ const componentInfo = {
12
12
  name: "Symbol",
13
13
  noWrap: true,
14
14
  static: true,
15
+ builtIn: true,
15
16
  inputs: [
16
17
  {
17
18
  name: "symbol",
@@ -12,6 +12,7 @@ const componentInfo = {
12
12
  name: "Symbol",
13
13
  noWrap: true,
14
14
  static: true,
15
+ builtIn: true,
15
16
  inputs: [
16
17
  {
17
18
  name: "symbol",
@@ -1,12 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
3
- var __export = (target, all) => {
4
- __markAsModule(target);
5
- for (var name in all)
6
- __defProp(target, name, { get: all[name], enumerable: true });
7
- };
8
- __export(exports, {
9
- macroEval: () => macroEval
10
- });
11
- function macroEval(items, string) {
12
- }
@@ -1,12 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
3
- var __export = (target, all) => {
4
- __markAsModule(target);
5
- for (var name in all)
6
- __defProp(target, name, { get: all[name], enumerable: true });
7
- };
8
- __export(exports, {
9
- macroEval: () => macroEval
10
- });
11
- function macroEval(items, string) {
12
- }
@@ -1,12 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
3
- var __export = (target, all) => {
4
- __markAsModule(target);
5
- for (var name in all)
6
- __defProp(target, name, { get: all[name], enumerable: true });
7
- };
8
- __export(exports, {
9
- macroEval: () => macroEval
10
- });
11
- function macroEval(items, string) {
12
- }