@builder.io/sdk-vue 0.0.1-62 → 0.0.1-63

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/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-62",
4
+ "version": "0.0.1-63",
5
5
  "dependencies": {
6
6
  "node-fetch": "^2.6.1"
7
7
  },
@@ -1,7 +1,7 @@
1
1
  <template>
2
- <div class="builder-columns div-2fnk003dqad" :style="columnsCssVars">
2
+ <div class="builder-columns div-29wpyomtntv" :style="columnsCssVars">
3
3
  <div
4
- class="builder-column div-2fnk003dqad-2"
4
+ class="builder-column div-29wpyomtntv-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-2fnk003dqad {
77
+ .div-29wpyomtntv {
78
78
  display: flex;
79
79
  align-items: stretch;
80
80
  line-height: normal;
81
81
  }
82
82
  @media (max-width: 999px) {
83
- .div-2fnk003dqad {
83
+ .div-29wpyomtntv {
84
84
  flex-direction: var(--flex-dir-tablet);
85
85
  }
86
86
  }
87
87
  @media (max-width: 639px) {
88
- .div-2fnk003dqad {
88
+ .div-29wpyomtntv {
89
89
  flex-direction: var(--flex-dir);
90
90
  }
91
91
  }
92
- .div-2fnk003dqad-2 {
92
+ .div-29wpyomtntv-2 {
93
93
  flex-grow: 1;
94
94
  }
95
95
  @media (max-width: 999px) {
96
- .div-2fnk003dqad-2 {
96
+ .div-29wpyomtntv-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-2fnk003dqad-2 {
102
+ .div-29wpyomtntv-2 {
103
103
  width: var(--column-width) !important;
104
104
  margin-left: var(--column-margin-left) !important;
105
105
  }
@@ -28,7 +28,7 @@
28
28
  ></builder-blocks>
29
29
 
30
30
  <pre
31
- class="builder-form-error-text pre-4wbls88y960"
31
+ class="builder-form-error-text pre-178o76acnws"
32
32
  v-if="submissionState === 'error' && responseData"
33
33
  >
34
34
  {{ JSON.stringify(responseData, null, 2) }}
@@ -301,7 +301,7 @@ export default {
301
301
  };
302
302
  </script>
303
303
  <style scoped>
304
- .pre-4wbls88y960 {
304
+ .pre-178o76acnws {
305
305
  padding: 10px;
306
306
  color: red;
307
307
  text-align: center;
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="div-1pl23ac79ld">
2
+ <div class="div-1ifnufbde19">
3
3
  <picture>
4
4
  <source
5
5
  type="image/webp"
@@ -19,7 +19,7 @@
19
19
  _classStringToObject(
20
20
  'builder-image' +
21
21
  (this.className ? ' ' + this.className : '') +
22
- ' img-1pl23ac79ld'
22
+ ' img-1ifnufbde19'
23
23
  )
24
24
  "
25
25
  :src="image"
@@ -30,7 +30,7 @@
30
30
  </picture>
31
31
 
32
32
  <div
33
- class="builder-image-sizer div-1pl23ac79ld-2"
33
+ class="builder-image-sizer div-1ifnufbde19-2"
34
34
  v-if="aspectRatio && !(fitContent && ((builderBlock && builderBlock.children) && (builderBlock && builderBlock.children).length))"
35
35
  :style="{
36
36
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
@@ -40,7 +40,7 @@
40
40
 
41
41
  <slot></slot>
42
42
 
43
- <div class="div-1pl23ac79ld-3" v-if="!fitContent">
43
+ <div class="div-1ifnufbde19-3" v-if="!fitContent">
44
44
  <slot></slot>
45
45
  </div>
46
46
  </div>
@@ -107,10 +107,10 @@ export default {
107
107
  };
108
108
  </script>
109
109
  <style scoped>
110
- .div-1pl23ac79ld {
110
+ .div-1ifnufbde19 {
111
111
  position: relative;
112
112
  }
113
- .img-1pl23ac79ld {
113
+ .img-1ifnufbde19 {
114
114
  opacity: 1;
115
115
  transition: opacity 0.2s ease-in-out;
116
116
  position: absolute;
@@ -119,12 +119,12 @@ export default {
119
119
  top: 0px;
120
120
  left: 0px;
121
121
  }
122
- .div-1pl23ac79ld-2 {
122
+ .div-1ifnufbde19-2 {
123
123
  width: 100%;
124
124
  pointer-events: none;
125
125
  font-size: 0;
126
126
  }
127
- .div-1pl23ac79ld-3 {
127
+ .div-1ifnufbde19-3 {
128
128
  display: flex;
129
129
  flex-direction: column;
130
130
  align-items: stretch;
@@ -9,6 +9,7 @@
9
9
  <render-content
10
10
  :apiKey="builderContext.apiKey"
11
11
  :context="builderContext.context"
12
+ :customComponents="Object.values(builderContext.registeredComponents)"
12
13
  :data="{ ...(symbol && symbol.data),
13
14
  ...builderContext.state,
14
15
  ...(((symbol && symbol.content) && (symbol && symbol.content).data) && ((symbol && symbol.content) && (symbol && symbol.content).data).state)
@@ -1,8 +1,8 @@
1
1
  <template>
2
- <div class="builder-columns div-7fq9d0i380" :style="columnsCssVars">
2
+ <div class="builder-columns div-20vehov4ay6" :style="columnsCssVars">
3
3
  <template :key="index" v-for="(column, index) in columns">
4
4
  <div
5
- class="builder-column div-7fq9d0i380-2"
5
+ class="builder-column div-20vehov4ay6-2"
6
6
  :style="{
7
7
  width: getColumnCssWidth(index),
8
8
  marginLeft: `${index === 0 ? 0 : getGutterSize()}px`,
@@ -76,32 +76,32 @@ export default {
76
76
  };
77
77
  </script>
78
78
  <style scoped>
79
- .div-7fq9d0i380 {
79
+ .div-20vehov4ay6 {
80
80
  display: flex;
81
81
  align-items: stretch;
82
82
  line-height: normal;
83
83
  }
84
84
  @media (max-width: 999px) {
85
- .div-7fq9d0i380 {
85
+ .div-20vehov4ay6 {
86
86
  flex-direction: var(--flex-dir-tablet);
87
87
  }
88
88
  }
89
89
  @media (max-width: 639px) {
90
- .div-7fq9d0i380 {
90
+ .div-20vehov4ay6 {
91
91
  flex-direction: var(--flex-dir);
92
92
  }
93
93
  }
94
- .div-7fq9d0i380-2 {
94
+ .div-20vehov4ay6-2 {
95
95
  flex-grow: 1;
96
96
  }
97
97
  @media (max-width: 999px) {
98
- .div-7fq9d0i380-2 {
98
+ .div-20vehov4ay6-2 {
99
99
  width: var(--column-width-tablet) !important;
100
100
  margin-left: var(--column-margin-left-tablet) !important;
101
101
  }
102
102
  }
103
103
  @media (max-width: 639px) {
104
- .div-7fq9d0i380-2 {
104
+ .div-20vehov4ay6-2 {
105
105
  width: var(--column-width) !important;
106
106
  margin-left: var(--column-margin-left) !important;
107
107
  }
@@ -29,7 +29,7 @@
29
29
  </template>
30
30
 
31
31
  <template v-if="submissionState === 'error' && responseData">
32
- <pre class="builder-form-error-text pre-361b1o6wv2k">
32
+ <pre class="builder-form-error-text pre-1n1bt6e2i9n">
33
33
  {{ JSON.stringify(responseData, null, 2) }}
34
34
  </pre>
35
35
  </template>
@@ -306,7 +306,7 @@ export default {
306
306
  };
307
307
  </script>
308
308
  <style scoped>
309
- .pre-361b1o6wv2k {
309
+ .pre-1n1bt6e2i9n {
310
310
  padding: 10px;
311
311
  color: red;
312
312
  text-align: center;
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="div-20vehov4ay6">
2
+ <div class="div-256wrwn33ry">
3
3
  <picture>
4
4
  <template v-if="(srcSetToUse && srcSetToUse.match)(/builder\.io/) && !noWebp">
5
5
  <source
@@ -20,7 +20,7 @@
20
20
  _classStringToObject(
21
21
  'builder-image' +
22
22
  (this.className ? ' ' + this.className : '') +
23
- ' img-20vehov4ay6'
23
+ ' img-256wrwn33ry'
24
24
  )
25
25
  "
26
26
  :src="image"
@@ -34,7 +34,7 @@
34
34
  v-if="aspectRatio && !(fitContent && ((builderBlock && builderBlock.children) && (builderBlock && builderBlock.children).length))"
35
35
  >
36
36
  <div
37
- class="builder-image-sizer div-20vehov4ay6-2"
37
+ class="builder-image-sizer div-256wrwn33ry-2"
38
38
  :style="{
39
39
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
40
40
  paddingTop: aspectRatio * 100 + '%',
@@ -47,7 +47,7 @@
47
47
  </template>
48
48
 
49
49
  <template v-if="!fitContent">
50
- <div class="div-20vehov4ay6-3">
50
+ <div class="div-256wrwn33ry-3">
51
51
  <slot></slot>
52
52
  </div>
53
53
  </template>
@@ -117,10 +117,10 @@ export default {
117
117
  };
118
118
  </script>
119
119
  <style scoped>
120
- .div-20vehov4ay6 {
120
+ .div-256wrwn33ry {
121
121
  position: relative;
122
122
  }
123
- .img-20vehov4ay6 {
123
+ .img-256wrwn33ry {
124
124
  opacity: 1;
125
125
  transition: opacity 0.2s ease-in-out;
126
126
  position: absolute;
@@ -129,12 +129,12 @@ export default {
129
129
  top: 0px;
130
130
  left: 0px;
131
131
  }
132
- .div-20vehov4ay6-2 {
132
+ .div-256wrwn33ry-2 {
133
133
  width: 100%;
134
134
  pointer-events: none;
135
135
  font-size: 0;
136
136
  }
137
- .div-20vehov4ay6-3 {
137
+ .div-256wrwn33ry-3 {
138
138
  display: flex;
139
139
  flex-direction: column;
140
140
  align-items: stretch;
@@ -9,6 +9,7 @@
9
9
  <render-content
10
10
  :apiKey="builderContext.apiKey"
11
11
  :context="builderContext.context"
12
+ :customComponents="Object.values(builderContext.registeredComponents)"
12
13
  :data="{ ...(symbol && symbol.data),
13
14
  ...builderContext.state,
14
15
  ...(((symbol && symbol.content) && (symbol && symbol.content).data) && ((symbol && symbol.content) && (symbol && symbol.content).data).state)