@builder.io/sdk-solid 0.4.5 → 0.5.1

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 (141) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/src/blocks/BaseText.jsx +1 -1
  4. package/src/blocks/button/button.jsx +5 -3
  5. package/src/blocks/button/component-info.js +16 -22
  6. package/src/blocks/columns/columns.jsx +12 -21
  7. package/src/blocks/columns/component-info.js +203 -226
  8. package/src/blocks/custom-code/component-info.js +19 -25
  9. package/src/blocks/embed/component-info.js +31 -37
  10. package/src/blocks/embed/helpers.js +3 -9
  11. package/src/blocks/form/component-info.js +174 -212
  12. package/src/blocks/form/form.jsx +1 -268
  13. package/src/blocks/fragment/component-info.js +1 -3
  14. package/src/blocks/helpers.js +27 -0
  15. package/src/blocks/image/component-info.js +105 -133
  16. package/src/blocks/image/image.helpers.js +3 -5
  17. package/src/blocks/img/component-info.js +8 -12
  18. package/src/blocks/img/img.jsx +2 -0
  19. package/src/blocks/input/component-info.js +29 -57
  20. package/src/blocks/input/input.jsx +2 -0
  21. package/src/blocks/raw-text/component-info.js +7 -11
  22. package/src/blocks/raw-text/raw-text.jsx +2 -2
  23. package/src/blocks/section/component-info.js +24 -31
  24. package/src/blocks/section/section.jsx +3 -0
  25. package/src/blocks/select/component-info.js +34 -48
  26. package/src/blocks/select/select.jsx +2 -0
  27. package/src/blocks/submit-button/component-info.js +6 -10
  28. package/src/blocks/submit-button/submit-button.jsx +3 -1
  29. package/src/blocks/symbol/component-info.js +30 -37
  30. package/src/blocks/symbol/symbol.helpers.js +60 -0
  31. package/src/blocks/symbol/symbol.jsx +31 -68
  32. package/src/blocks/text/component-info.js +10 -13
  33. package/src/blocks/text/text.jsx +1 -1
  34. package/src/blocks/textarea/component-info.js +22 -30
  35. package/src/blocks/textarea/textarea.jsx +3 -0
  36. package/src/blocks/video/component-info.js +74 -96
  37. package/src/blocks/video/video.jsx +1 -0
  38. package/src/components/{render-block/render-block.helpers.js → block/block.helpers.js} +26 -44
  39. package/src/components/{render-block/render-block.jsx → block/block.jsx} +65 -80
  40. package/src/components/{render-block → block/components}/block-styles.jsx +16 -16
  41. package/src/components/block/components/block-wrapper.jsx +50 -0
  42. package/src/components/block/components/component-ref/component-ref.helpers.js +41 -0
  43. package/src/components/block/components/component-ref/component-ref.jsx +58 -0
  44. package/src/components/block/components/interactive-element.jsx +30 -0
  45. package/src/components/block/components/repeated-block.jsx +20 -0
  46. package/src/components/blocks/blocks-wrapper.jsx +66 -0
  47. package/src/components/blocks/blocks.jsx +57 -0
  48. package/src/components/{render-content/render-content.jsx → content/components/enable-editor.jsx} +86 -175
  49. package/src/components/{render-content/components/render-styles.helpers.js → content/components/styles.helpers.js} +6 -7
  50. package/src/components/{render-content/components/render-styles.jsx → content/components/styles.jsx} +4 -4
  51. package/src/components/{render-content/render-content.helpers.js → content/content.helpers.js} +15 -15
  52. package/src/components/content/content.jsx +136 -0
  53. package/src/components/content/index.js +2 -0
  54. package/src/components/content/wrap-component-ref.js +2 -0
  55. package/src/components/{render-content-variants/render-content-variants.jsx → content-variants/content-variants.jsx} +19 -22
  56. package/src/components/{render-content-variants → content-variants}/helpers.js +28 -40
  57. package/src/constants/builder-registered-components.js +34 -25
  58. package/src/constants/device-sizes.js +6 -6
  59. package/src/constants/sdk-version.js +1 -1
  60. package/src/context/builder.context.js +1 -1
  61. package/src/context/components.context.js +5 -0
  62. package/src/functions/apply-patch-with-mutation.js +66 -0
  63. package/src/functions/camel-to-kebab-case.js +2 -4
  64. package/src/functions/evaluate/acorn.js +1595 -0
  65. package/src/functions/{evaluate.js → evaluate/evaluate.js} +36 -10
  66. package/src/functions/evaluate/index.js +2 -0
  67. package/src/functions/evaluate/interpreter.js +2801 -0
  68. package/src/functions/evaluate/non-node-runtime.js +92 -0
  69. package/src/functions/evaluate/types.js +0 -0
  70. package/src/functions/event-handler-name.js +2 -4
  71. package/src/functions/extract-text-styles.js +4 -12
  72. package/src/functions/fast-clone.js +2 -4
  73. package/src/functions/get-block-actions-handler.js +3 -5
  74. package/src/functions/get-block-actions.js +15 -4
  75. package/src/functions/get-block-component-options.js +11 -12
  76. package/src/functions/get-block-properties.js +29 -19
  77. package/src/functions/get-builder-search-params/index.js +5 -10
  78. package/src/functions/get-content/generate-content-url.js +17 -19
  79. package/src/functions/get-content/index.js +43 -29
  80. package/src/functions/get-fetch.js +1 -3
  81. package/src/functions/get-global-this.js +1 -3
  82. package/src/functions/get-processed-block.js +12 -13
  83. package/src/functions/get-react-native-block-styles.js +11 -12
  84. package/src/functions/if-target.js +1 -3
  85. package/src/functions/is-browser.js +1 -3
  86. package/src/functions/is-editing.js +1 -3
  87. package/src/functions/is-iframe.js +1 -3
  88. package/src/functions/is-non-node-server.js +9 -0
  89. package/src/functions/is-previewing.js +1 -3
  90. package/src/functions/on-change.js +1 -4
  91. package/src/functions/register-component.js +34 -42
  92. package/src/functions/register.js +1 -3
  93. package/src/functions/sanitize-react-native-block-styles.js +22 -17
  94. package/src/functions/set-editor-settings.js +1 -3
  95. package/src/functions/set.js +1 -3
  96. package/src/functions/track/helpers.js +3 -5
  97. package/src/functions/track/index.js +45 -43
  98. package/src/functions/track/interaction.js +11 -7
  99. package/src/functions/transform-block-properties.js +1 -3
  100. package/src/functions/transform-block.js +1 -3
  101. package/src/helpers/ab-tests.js +45 -28
  102. package/src/helpers/canTrack.js +3 -5
  103. package/src/helpers/cookie.js +15 -24
  104. package/src/helpers/css.js +3 -7
  105. package/src/helpers/flatten.js +15 -18
  106. package/src/helpers/localStorage.js +1 -4
  107. package/src/helpers/logger.js +1 -3
  108. package/src/helpers/nullable.js +2 -4
  109. package/src/helpers/preview-lru-cache/get.js +8 -0
  110. package/src/helpers/preview-lru-cache/helpers.js +10 -0
  111. package/src/helpers/preview-lru-cache/init.js +10 -0
  112. package/src/helpers/preview-lru-cache/set.js +35 -0
  113. package/src/helpers/preview-lru-cache/types.js +0 -0
  114. package/src/helpers/sessionId.js +14 -11
  115. package/src/helpers/time.js +1 -3
  116. package/src/helpers/url.js +2 -4
  117. package/src/helpers/uuid.js +4 -6
  118. package/src/helpers/visitorId.js +8 -7
  119. package/src/index-helpers/blocks-exports.js +3 -14
  120. package/src/index-helpers/top-of-file.js +1 -3
  121. package/src/index.js +2 -17
  122. package/src/scripts/init-editing.js +62 -48
  123. package/src/types/api-version.js +1 -3
  124. package/src/types/builder-props.js +0 -0
  125. package/src/blocks/util.js +0 -8
  126. package/src/components/render-block/render-component.jsx +0 -40
  127. package/src/components/render-block/render-repeated-block.jsx +0 -16
  128. package/src/components/render-blocks.jsx +0 -100
  129. package/src/components/render-content/builder-editing.jsx +0 -5
  130. package/src/components/render-content/index.js +0 -4
  131. package/src/components/render-content/wrap-component-ref.js +0 -4
  132. package/src/functions/evaluate.test.js +0 -17
  133. package/src/functions/get-builder-search-params/fn.test.js +0 -13
  134. package/src/functions/get-content/generate-content-url.test.js +0 -97
  135. package/src/functions/get-processed-block.test.js +0 -34
  136. package/src/functions/on-change.test.js +0 -19
  137. package/src/functions/set.test.js +0 -16
  138. package/src/helpers/url.test.js +0 -21
  139. /package/src/components/{render-block → block}/types.js +0 -0
  140. /package/src/components/{render-content/render-content.types.js → content/content.types.js} +0 -0
  141. /package/src/components/{render-content-variants/render-content-variants.types.js → content-variants/content-variants.types.js} +0 -0
@@ -2,29 +2,23 @@ const componentInfo = {
2
2
  name: "Custom Code",
3
3
  static: true,
4
4
  requiredPermissions: ["editCode"],
5
- inputs: [
6
- {
7
- name: "code",
8
- type: "html",
9
- required: true,
10
- defaultValue: "<p>Hello there, I am custom HTML code!</p>",
11
- code: true
12
- },
13
- {
14
- name: "replaceNodes",
15
- type: "boolean",
16
- helperText: "Preserve server rendered dom nodes",
17
- advanced: true
18
- },
19
- {
20
- name: "scriptsClientOnly",
21
- type: "boolean",
22
- defaultValue: false,
23
- helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
24
- advanced: true
25
- }
26
- ]
27
- };
28
- export {
29
- componentInfo
5
+ inputs: [{
6
+ name: "code",
7
+ type: "html",
8
+ required: true,
9
+ defaultValue: "<p>Hello there, I am custom HTML code!</p>",
10
+ code: true
11
+ }, {
12
+ name: "replaceNodes",
13
+ type: "boolean",
14
+ helperText: "Preserve server rendered dom nodes",
15
+ advanced: true
16
+ }, {
17
+ name: "scriptsClientOnly",
18
+ type: "boolean",
19
+ defaultValue: false,
20
+ helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
21
+ advanced: true
22
+ }]
30
23
  };
24
+ export { componentInfo }
@@ -1,43 +1,37 @@
1
- import { serializeFn } from "../util.js";
2
1
  const componentInfo = {
3
2
  name: "Embed",
4
3
  static: true,
5
- inputs: [
6
- {
7
- name: "url",
8
- type: "url",
9
- required: true,
10
- defaultValue: "",
11
- helperText: "e.g. enter a youtube url, google map, etc",
12
- onChange: serializeFn((options) => {
13
- const url = options.get("url");
14
- if (url) {
15
- options.set("content", "Loading...");
16
- const apiKey = "ae0e60e78201a3f2b0de4b";
17
- return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
18
- if (options.get("url") === url) {
19
- if (data.html) {
20
- options.set("content", data.html);
21
- } else {
22
- options.set("content", "Invalid url, please try another");
23
- }
4
+ inputs: [{
5
+ name: "url",
6
+ type: "url",
7
+ required: true,
8
+ defaultValue: "",
9
+ helperText: "e.g. enter a youtube url, google map, etc",
10
+ onChange: options => {
11
+ const url = options.get("url");
12
+ if (url) {
13
+ options.set("content", "Loading...");
14
+ const apiKey = "ae0e60e78201a3f2b0de4b";
15
+ return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then(res => res.json()).then(data => {
16
+ if (options.get("url") === url) {
17
+ if (data.html) {
18
+ options.set("content", data.html);
19
+ } else {
20
+ options.set("content", "Invalid url, please try another");
24
21
  }
25
- }).catch((_err) => {
26
- options.set("content", "There was an error embedding this URL, please try again or another URL");
27
- });
28
- } else {
29
- options.delete("content");
30
- }
31
- })
32
- },
33
- {
34
- name: "content",
35
- type: "html",
36
- defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
37
- hideFromUI: true
22
+ }
23
+ }).catch(_err => {
24
+ options.set("content", "There was an error embedding this URL, please try again or another URL");
25
+ });
26
+ } else {
27
+ options.delete("content");
28
+ }
38
29
  }
39
- ]
40
- };
41
- export {
42
- componentInfo
30
+ }, {
31
+ name: "content",
32
+ type: "html",
33
+ defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
34
+ hideFromUI: true
35
+ }]
43
36
  };
37
+ export { componentInfo }
@@ -1,9 +1,3 @@
1
- const SCRIPT_MIME_TYPES = [
2
- "text/javascript",
3
- "application/javascript",
4
- "application/ecmascript"
5
- ];
6
- const isJsScript = (script) => SCRIPT_MIME_TYPES.includes(script.type);
7
- export {
8
- isJsScript
9
- };
1
+ const SCRIPT_MIME_TYPES = ["text/javascript", "application/javascript", "application/ecmascript"];
2
+ const isJsScript = script => SCRIPT_MIME_TYPES.includes(script.type);
3
+ export { isJsScript }
@@ -9,180 +9,75 @@ const componentInfo = {
9
9
  }
10
10
  },
11
11
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fef36d2a846134910b64b88e6d18c5ca5",
12
- inputs: [
13
- {
14
- name: "sendSubmissionsTo",
15
- type: "string",
16
- enum: [
17
- {
18
- label: "Send to email",
19
- value: "email",
20
- helperText: "Send form submissions to the email address of your choosing"
21
- },
22
- {
23
- label: "Custom",
24
- value: "custom",
25
- helperText: "Handle where the form requests go manually with a little code, e.g. to your own custom backend"
26
- }
27
- ],
28
- defaultValue: "email"
29
- },
30
- {
31
- name: "sendSubmissionsToEmail",
32
- type: "string",
33
- required: true,
34
- defaultValue: "your@email.com",
35
- showIf: 'options.get("sendSubmissionsTo") === "email"'
36
- },
37
- {
38
- name: "sendWithJs",
39
- type: "boolean",
40
- helperText: "Set to false to use basic html form action",
41
- defaultValue: true,
42
- showIf: 'options.get("sendSubmissionsTo") === "custom"'
43
- },
44
- {
45
- name: "name",
46
- type: "string",
47
- defaultValue: "My form"
48
- },
49
- {
50
- name: "action",
51
- type: "string",
52
- helperText: "URL to send the form data to",
53
- showIf: 'options.get("sendSubmissionsTo") === "custom"'
54
- },
55
- {
56
- name: "contentType",
57
- type: "string",
58
- defaultValue: "application/json",
59
- advanced: true,
60
- enum: [
61
- "application/json",
62
- "multipart/form-data",
63
- "application/x-www-form-urlencoded"
64
- ],
65
- showIf: 'options.get("sendSubmissionsTo") === "custom" && options.get("sendWithJs") === true'
66
- },
67
- {
68
- name: "method",
69
- type: "string",
70
- showIf: 'options.get("sendSubmissionsTo") === "custom"',
71
- defaultValue: "POST",
72
- advanced: true
73
- },
74
- {
75
- name: "previewState",
76
- type: "string",
77
- enum: ["unsubmitted", "sending", "success", "error"],
78
- defaultValue: "unsubmitted",
79
- helperText: 'Choose a state to edit, e.g. choose "success" to show what users see on success and edit the message',
80
- showIf: 'options.get("sendSubmissionsTo") !== "zapier" && options.get("sendWithJs") === true'
81
- },
82
- {
83
- name: "successUrl",
84
- type: "url",
85
- helperText: "Optional URL to redirect the user to on form submission success",
86
- showIf: 'options.get("sendSubmissionsTo") !== "zapier" && options.get("sendWithJs") === true'
87
- },
88
- {
89
- name: "resetFormOnSubmit",
90
- type: "boolean",
91
- showIf: "options.get('sendSubmissionsTo') === 'custom' && options.get('sendWithJs') === true",
92
- advanced: true
93
- },
94
- {
95
- name: "successMessage",
96
- type: "uiBlocks",
97
- hideFromUI: true,
98
- defaultValue: [
99
- {
100
- "@type": "@builder.io/sdk:Element",
101
- responsiveStyles: {
102
- large: {
103
- marginTop: "10px"
104
- }
105
- },
106
- component: {
107
- name: "Text",
108
- options: {
109
- text: "<span>Thanks!</span>"
110
- }
111
- }
112
- }
113
- ]
114
- },
115
- {
116
- name: "validate",
117
- type: "boolean",
118
- defaultValue: true,
119
- advanced: true
120
- },
121
- {
122
- name: "errorMessagePath",
123
- type: "text",
124
- advanced: true,
125
- helperText: 'Path to where to get the error message from in a JSON response to display to the user, e.g. "error.message" for a response like { "error": { "message": "this username is taken" }}'
126
- },
127
- {
128
- name: "errorMessage",
129
- type: "uiBlocks",
130
- hideFromUI: true,
131
- defaultValue: [
132
- {
133
- "@type": "@builder.io/sdk:Element",
134
- responsiveStyles: {
135
- large: {
136
- marginTop: "10px"
137
- }
138
- },
139
- bindings: {
140
- "component.options.text": "state.formErrorMessage || block.component.options.text"
141
- },
142
- component: {
143
- name: "Text",
144
- options: {
145
- text: "<span>Form submission error :( Please check your answers and try again</span>"
146
- }
147
- }
148
- }
149
- ]
150
- },
151
- {
152
- name: "sendingMessage",
153
- type: "uiBlocks",
154
- hideFromUI: true,
155
- defaultValue: [
156
- {
157
- "@type": "@builder.io/sdk:Element",
158
- responsiveStyles: {
159
- large: {
160
- marginTop: "10px"
161
- }
162
- },
163
- component: {
164
- name: "Text",
165
- options: {
166
- text: "<span>Sending...</span>"
167
- }
168
- }
169
- }
170
- ]
171
- },
172
- {
173
- name: "customHeaders",
174
- type: "map",
175
- valueType: {
176
- type: "string"
177
- },
178
- advanced: true,
179
- showIf: 'options.get("sendSubmissionsTo") === "custom" && options.get("sendWithJs") === true'
180
- }
181
- ],
182
- noWrap: true,
183
- canHaveChildren: true,
184
- defaultChildren: [
185
- {
12
+ inputs: [{
13
+ name: "sendSubmissionsTo",
14
+ type: "string",
15
+ enum: [{
16
+ label: "Send to email",
17
+ value: "email",
18
+ helperText: "Send form submissions to the email address of your choosing"
19
+ }, {
20
+ label: "Custom",
21
+ value: "custom",
22
+ helperText: "Handle where the form requests go manually with a little code, e.g. to your own custom backend"
23
+ }],
24
+ defaultValue: "email"
25
+ }, {
26
+ name: "sendSubmissionsToEmail",
27
+ type: "string",
28
+ required: true,
29
+ defaultValue: "your@email.com",
30
+ showIf: 'options.get("sendSubmissionsTo") === "email"'
31
+ }, {
32
+ name: "sendWithJs",
33
+ type: "boolean",
34
+ helperText: "Set to false to use basic html form action",
35
+ defaultValue: true,
36
+ showIf: 'options.get("sendSubmissionsTo") === "custom"'
37
+ }, {
38
+ name: "name",
39
+ type: "string",
40
+ defaultValue: "My form"
41
+ }, {
42
+ name: "action",
43
+ type: "string",
44
+ helperText: "URL to send the form data to",
45
+ showIf: 'options.get("sendSubmissionsTo") === "custom"'
46
+ }, {
47
+ name: "contentType",
48
+ type: "string",
49
+ defaultValue: "application/json",
50
+ advanced: true,
51
+ enum: ["application/json", "multipart/form-data", "application/x-www-form-urlencoded"],
52
+ showIf: 'options.get("sendSubmissionsTo") === "custom" && options.get("sendWithJs") === true'
53
+ }, {
54
+ name: "method",
55
+ type: "string",
56
+ showIf: 'options.get("sendSubmissionsTo") === "custom"',
57
+ defaultValue: "POST",
58
+ advanced: true
59
+ }, {
60
+ name: "previewState",
61
+ type: "string",
62
+ enum: ["unsubmitted", "sending", "success", "error"],
63
+ defaultValue: "unsubmitted",
64
+ helperText: 'Choose a state to edit, e.g. choose "success" to show what users see on success and edit the message',
65
+ showIf: 'options.get("sendSubmissionsTo") !== "zapier" && options.get("sendWithJs") === true'
66
+ }, {
67
+ name: "successUrl",
68
+ type: "url",
69
+ helperText: "Optional URL to redirect the user to on form submission success",
70
+ showIf: 'options.get("sendSubmissionsTo") !== "zapier" && options.get("sendWithJs") === true'
71
+ }, {
72
+ name: "resetFormOnSubmit",
73
+ type: "boolean",
74
+ showIf: "options.get('sendSubmissionsTo') === 'custom' && options.get('sendWithJs') === true",
75
+ advanced: true
76
+ }, {
77
+ name: "successMessage",
78
+ type: "uiBlocks",
79
+ hideFromUI: true,
80
+ defaultValue: [{
186
81
  "@type": "@builder.io/sdk:Element",
187
82
  responsiveStyles: {
188
83
  large: {
@@ -192,26 +87,46 @@ const componentInfo = {
192
87
  component: {
193
88
  name: "Text",
194
89
  options: {
195
- text: "<span>Enter your name</span>"
90
+ text: "<span>Thanks!</span>"
196
91
  }
197
92
  }
198
- },
199
- {
93
+ }]
94
+ }, {
95
+ name: "validate",
96
+ type: "boolean",
97
+ defaultValue: true,
98
+ advanced: true
99
+ }, {
100
+ name: "errorMessagePath",
101
+ type: "text",
102
+ advanced: true,
103
+ helperText: 'Path to where to get the error message from in a JSON response to display to the user, e.g. "error.message" for a response like { "error": { "message": "this username is taken" }}'
104
+ }, {
105
+ name: "errorMessage",
106
+ type: "uiBlocks",
107
+ hideFromUI: true,
108
+ defaultValue: [{
200
109
  "@type": "@builder.io/sdk:Element",
201
110
  responsiveStyles: {
202
111
  large: {
203
112
  marginTop: "10px"
204
113
  }
205
114
  },
115
+ bindings: {
116
+ "component.options.text": "state.formErrorMessage || block.component.options.text"
117
+ },
206
118
  component: {
207
- name: "Form:Input",
119
+ name: "Text",
208
120
  options: {
209
- name: "name",
210
- placeholder: "Jane Doe"
121
+ text: "<span>Form submission error :( Please check your answers and try again</span>"
211
122
  }
212
123
  }
213
- },
214
- {
124
+ }]
125
+ }, {
126
+ name: "sendingMessage",
127
+ type: "uiBlocks",
128
+ hideFromUI: true,
129
+ defaultValue: [{
215
130
  "@type": "@builder.io/sdk:Element",
216
131
  responsiveStyles: {
217
132
  large: {
@@ -221,41 +136,88 @@ const componentInfo = {
221
136
  component: {
222
137
  name: "Text",
223
138
  options: {
224
- text: "<span>Enter your email</span>"
139
+ text: "<span>Sending...</span>"
225
140
  }
226
141
  }
142
+ }]
143
+ }, {
144
+ name: "customHeaders",
145
+ type: "map",
146
+ valueType: {
147
+ type: "string"
148
+ },
149
+ advanced: true,
150
+ showIf: 'options.get("sendSubmissionsTo") === "custom" && options.get("sendWithJs") === true'
151
+ }],
152
+ noWrap: true,
153
+ canHaveChildren: true,
154
+ defaultChildren: [{
155
+ "@type": "@builder.io/sdk:Element",
156
+ responsiveStyles: {
157
+ large: {
158
+ marginTop: "10px"
159
+ }
227
160
  },
228
- {
229
- "@type": "@builder.io/sdk:Element",
230
- responsiveStyles: {
231
- large: {
232
- marginTop: "10px"
233
- }
234
- },
235
- component: {
236
- name: "Form:Input",
237
- options: {
238
- name: "email",
239
- placeholder: "jane@doe.com"
240
- }
161
+ component: {
162
+ name: "Text",
163
+ options: {
164
+ text: "<span>Enter your name</span>"
165
+ }
166
+ }
167
+ }, {
168
+ "@type": "@builder.io/sdk:Element",
169
+ responsiveStyles: {
170
+ large: {
171
+ marginTop: "10px"
241
172
  }
242
173
  },
243
- {
244
- "@type": "@builder.io/sdk:Element",
245
- responsiveStyles: {
246
- large: {
247
- marginTop: "10px"
248
- }
249
- },
250
- component: {
251
- name: "Form:SubmitButton",
252
- options: {
253
- text: "Submit"
254
- }
174
+ component: {
175
+ name: "Form:Input",
176
+ options: {
177
+ name: "name",
178
+ placeholder: "Jane Doe"
255
179
  }
256
180
  }
257
- ]
258
- };
259
- export {
260
- componentInfo
181
+ }, {
182
+ "@type": "@builder.io/sdk:Element",
183
+ responsiveStyles: {
184
+ large: {
185
+ marginTop: "10px"
186
+ }
187
+ },
188
+ component: {
189
+ name: "Text",
190
+ options: {
191
+ text: "<span>Enter your email</span>"
192
+ }
193
+ }
194
+ }, {
195
+ "@type": "@builder.io/sdk:Element",
196
+ responsiveStyles: {
197
+ large: {
198
+ marginTop: "10px"
199
+ }
200
+ },
201
+ component: {
202
+ name: "Form:Input",
203
+ options: {
204
+ name: "email",
205
+ placeholder: "jane@doe.com"
206
+ }
207
+ }
208
+ }, {
209
+ "@type": "@builder.io/sdk:Element",
210
+ responsiveStyles: {
211
+ large: {
212
+ marginTop: "10px"
213
+ }
214
+ },
215
+ component: {
216
+ name: "Form:SubmitButton",
217
+ options: {
218
+ text: "Submit"
219
+ }
220
+ }
221
+ }]
261
222
  };
223
+ export { componentInfo }