@builder.io/sdk-qwik 0.17.2 → 0.17.6
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/lib/browser/blocks/accordion/accordion.qwik.cjs +2 -2
- package/lib/browser/blocks/accordion/accordion.qwik.mjs +2 -2
- package/lib/browser/blocks/columns/columns.qwik.cjs +5 -5
- package/lib/browser/blocks/columns/columns.qwik.mjs +5 -5
- package/lib/browser/blocks/form/form/form.qwik.cjs +6 -32
- package/lib/browser/blocks/form/form/form.qwik.mjs +7 -33
- package/lib/browser/blocks/image/image.qwik.cjs +0 -2
- package/lib/browser/blocks/image/image.qwik.mjs +1 -3
- package/lib/browser/blocks/video/video.qwik.cjs +0 -1
- package/lib/browser/blocks/video/video.qwik.mjs +0 -1
- package/lib/browser/constants/sdk-version.qwik.cjs +1 -1
- package/lib/browser/constants/sdk-version.qwik.mjs +1 -1
- package/lib/edge/blocks/accordion/accordion.qwik.cjs +2 -2
- package/lib/edge/blocks/accordion/accordion.qwik.mjs +2 -2
- package/lib/edge/blocks/columns/columns.qwik.cjs +5 -5
- package/lib/edge/blocks/columns/columns.qwik.mjs +5 -5
- package/lib/edge/blocks/form/form/form.qwik.cjs +6 -32
- package/lib/edge/blocks/form/form/form.qwik.mjs +7 -33
- package/lib/edge/blocks/image/image.qwik.cjs +0 -2
- package/lib/edge/blocks/image/image.qwik.mjs +1 -3
- package/lib/edge/blocks/video/video.qwik.cjs +0 -1
- package/lib/edge/blocks/video/video.qwik.mjs +0 -1
- package/lib/edge/constants/sdk-version.qwik.cjs +1 -1
- package/lib/edge/constants/sdk-version.qwik.mjs +1 -1
- package/lib/node/blocks/accordion/accordion.qwik.cjs +2 -2
- package/lib/node/blocks/accordion/accordion.qwik.mjs +2 -2
- package/lib/node/blocks/columns/columns.qwik.cjs +5 -5
- package/lib/node/blocks/columns/columns.qwik.mjs +5 -5
- package/lib/node/blocks/form/form/form.qwik.cjs +6 -32
- package/lib/node/blocks/form/form/form.qwik.mjs +7 -33
- package/lib/node/blocks/image/image.qwik.cjs +0 -2
- package/lib/node/blocks/image/image.qwik.mjs +1 -3
- package/lib/node/blocks/video/video.qwik.cjs +0 -1
- package/lib/node/blocks/video/video.qwik.mjs +0 -1
- package/lib/node/constants/sdk-version.qwik.cjs +1 -1
- package/lib/node/constants/sdk-version.qwik.mjs +1 -1
- package/package.json +2 -2
- package/types/src/blocks/form/form/form.d.ts +1 -0
- package/types/src/constants/sdk-version.d.ts +1 -1
- package/types/src/types/builder-content.d.ts +1 -0
- package/types/src/types/components.d.ts +2 -2
- package/types/src/types/input.d.ts +10 -0
|
@@ -207,8 +207,8 @@ const Accordion = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlined
|
|
|
207
207
|
}
|
|
208
208
|
}, 3, "hf_1"), 1, "hf_2") : null
|
|
209
209
|
]
|
|
210
|
-
}, 1,
|
|
211
|
-
}), 1, "
|
|
210
|
+
}, 1, index);
|
|
211
|
+
}), 1, "hf_3");
|
|
212
212
|
}, "Accordion_component_jkuUCHm0nt0"));
|
|
213
213
|
exports.Accordion = Accordion;
|
|
214
214
|
exports.default = Accordion;
|
|
@@ -205,8 +205,8 @@ const Accordion = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props
|
|
|
205
205
|
}
|
|
206
206
|
}, 3, "hf_1"), 1, "hf_2") : null
|
|
207
207
|
]
|
|
208
|
-
}, 1,
|
|
209
|
-
}), 1, "
|
|
208
|
+
}, 1, index);
|
|
209
|
+
}), 1, "hf_3");
|
|
210
210
|
}, "Accordion_component_jkuUCHm0nt0"));
|
|
211
211
|
export {
|
|
212
212
|
Accordion,
|
|
@@ -168,11 +168,6 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQr
|
|
|
168
168
|
get parent() {
|
|
169
169
|
return props.builderBlock.id;
|
|
170
170
|
},
|
|
171
|
-
get styleProp() {
|
|
172
|
-
return {
|
|
173
|
-
flexGrow: "1"
|
|
174
|
-
};
|
|
175
|
-
},
|
|
176
171
|
get context() {
|
|
177
172
|
return props.builderContext;
|
|
178
173
|
},
|
|
@@ -183,6 +178,11 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQr
|
|
|
183
178
|
return props.builderLinkComponent;
|
|
184
179
|
},
|
|
185
180
|
blocks: deopt.deoptSignal(column.blocks),
|
|
181
|
+
get styleProp() {
|
|
182
|
+
return {
|
|
183
|
+
flexGrow: "1"
|
|
184
|
+
};
|
|
185
|
+
},
|
|
186
186
|
[qwik._IMMUTABLE]: {
|
|
187
187
|
context: qwik._fnSignal((p0) => p0.builderContext, [
|
|
188
188
|
props
|
|
@@ -166,11 +166,6 @@ const Columns = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
166
166
|
get parent() {
|
|
167
167
|
return props.builderBlock.id;
|
|
168
168
|
},
|
|
169
|
-
get styleProp() {
|
|
170
|
-
return {
|
|
171
|
-
flexGrow: "1"
|
|
172
|
-
};
|
|
173
|
-
},
|
|
174
169
|
get context() {
|
|
175
170
|
return props.builderContext;
|
|
176
171
|
},
|
|
@@ -181,6 +176,11 @@ const Columns = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
181
176
|
return props.builderLinkComponent;
|
|
182
177
|
},
|
|
183
178
|
blocks: deoptSignal(column.blocks),
|
|
179
|
+
get styleProp() {
|
|
180
|
+
return {
|
|
181
|
+
flexGrow: "1"
|
|
182
|
+
};
|
|
183
|
+
},
|
|
184
184
|
[_IMMUTABLE]: {
|
|
185
185
|
context: _fnSignal((p0) => p0.builderContext, [
|
|
186
186
|
props
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const qwik = require("@builder.io/qwik");
|
|
4
|
-
const block = require("../../../components/block/block.qwik.cjs");
|
|
5
4
|
const blocks = require("../../../components/blocks/blocks.qwik.cjs");
|
|
6
5
|
const getEnv = require("../../../functions/get-env.qwik.cjs");
|
|
7
6
|
const get = require("../../../functions/get.qwik.cjs");
|
|
@@ -172,7 +171,6 @@ const onSubmit = function onSubmit2(props, state, formRef, event) {
|
|
|
172
171
|
}
|
|
173
172
|
};
|
|
174
173
|
const FormComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
175
|
-
var _a;
|
|
176
174
|
qwik._jsxBranch();
|
|
177
175
|
qwik.useStylesScopedQrl(/* @__PURE__ */ qwik.inlinedQrl(STYLES, "FormComponent_component_useStylesScoped_SVdPvm0do3s"));
|
|
178
176
|
const formRef = qwik.useSignal();
|
|
@@ -188,31 +186,7 @@ const FormComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
188
186
|
ref: formRef,
|
|
189
187
|
...props.attributes,
|
|
190
188
|
children: [
|
|
191
|
-
|
|
192
|
-
return /* @__PURE__ */ qwik._jsxC(block.Block, {
|
|
193
|
-
block: block$1,
|
|
194
|
-
get context() {
|
|
195
|
-
return props.builderContext;
|
|
196
|
-
},
|
|
197
|
-
get registeredComponents() {
|
|
198
|
-
return props.builderComponents;
|
|
199
|
-
},
|
|
200
|
-
get linkComponent() {
|
|
201
|
-
return props.builderLinkComponent;
|
|
202
|
-
},
|
|
203
|
-
[qwik._IMMUTABLE]: {
|
|
204
|
-
context: qwik._fnSignal((p0) => p0.builderContext, [
|
|
205
|
-
props
|
|
206
|
-
], "p0.builderContext"),
|
|
207
|
-
linkComponent: qwik._fnSignal((p0) => p0.builderLinkComponent, [
|
|
208
|
-
props
|
|
209
|
-
], "p0.builderLinkComponent"),
|
|
210
|
-
registeredComponents: qwik._fnSignal((p0) => p0.builderComponents, [
|
|
211
|
-
props
|
|
212
|
-
], "p0.builderComponents")
|
|
213
|
-
}
|
|
214
|
-
}, 3, `form-block-${idx}`);
|
|
215
|
-
}) : null,
|
|
189
|
+
/* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "0n_0"),
|
|
216
190
|
submissionState(props, state) === "error" ? /* @__PURE__ */ qwik._jsxC(blocks.Blocks, {
|
|
217
191
|
path: "errorMessage",
|
|
218
192
|
get blocks() {
|
|
@@ -230,7 +204,7 @@ const FormComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
230
204
|
], "p0.builderContext"),
|
|
231
205
|
path: qwik._IMMUTABLE
|
|
232
206
|
}
|
|
233
|
-
}, 3, "
|
|
207
|
+
}, 3, "0n_1") : null,
|
|
234
208
|
submissionState(props, state) === "sending" ? /* @__PURE__ */ qwik._jsxC(blocks.Blocks, {
|
|
235
209
|
path: "sendingMessage",
|
|
236
210
|
get blocks() {
|
|
@@ -248,10 +222,10 @@ const FormComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
248
222
|
], "p0.builderContext"),
|
|
249
223
|
path: qwik._IMMUTABLE
|
|
250
224
|
}
|
|
251
|
-
}, 3, "
|
|
225
|
+
}, 3, "0n_2") : null,
|
|
252
226
|
submissionState(props, state) === "error" && state.responseData ? /* @__PURE__ */ qwik._jsxQ("pre", null, {
|
|
253
227
|
class: "builder-form-error-text pre-FormComponent"
|
|
254
|
-
}, JSON.stringify(state.responseData, null, 2), 1, "
|
|
228
|
+
}, JSON.stringify(state.responseData, null, 2), 1, "0n_3") : null,
|
|
255
229
|
submissionState(props, state) === "success" ? /* @__PURE__ */ qwik._jsxC(blocks.Blocks, {
|
|
256
230
|
path: "successMessage",
|
|
257
231
|
get blocks() {
|
|
@@ -269,7 +243,7 @@ const FormComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
269
243
|
], "p0.builderContext"),
|
|
270
244
|
path: qwik._IMMUTABLE
|
|
271
245
|
}
|
|
272
|
-
}, 3, "
|
|
246
|
+
}, 3, "0n_4") : null
|
|
273
247
|
],
|
|
274
248
|
onSubmit$: /* @__PURE__ */ qwik.inlinedQrl((event) => {
|
|
275
249
|
const [formRef2, props2, state2] = qwik.useLexicalScope();
|
|
@@ -290,7 +264,7 @@ const FormComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
290
264
|
validate: qwik._fnSignal((p0) => p0.validate, [
|
|
291
265
|
props
|
|
292
266
|
], "p0.validate")
|
|
293
|
-
}, 0, "
|
|
267
|
+
}, 0, "0n_5");
|
|
294
268
|
}, "FormComponent_component_dk5c15Rvsfg"));
|
|
295
269
|
const STYLES = `
|
|
296
270
|
.pre-FormComponent {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { componentQrl, inlinedQrl, _jsxBranch, useStylesScopedQrl, useSignal, useStore, _jsxS, _jsxC, _IMMUTABLE, _fnSignal, _jsxQ, useLexicalScope } from "@builder.io/qwik";
|
|
2
|
-
import { Block } from "../../../components/block/block.qwik.mjs";
|
|
1
|
+
import { componentQrl, inlinedQrl, _jsxBranch, useStylesScopedQrl, useSignal, useStore, _jsxS, _jsxC, Slot, _IMMUTABLE, _fnSignal, _jsxQ, useLexicalScope } from "@builder.io/qwik";
|
|
3
2
|
import { Blocks } from "../../../components/blocks/blocks.qwik.mjs";
|
|
4
3
|
import { getEnv } from "../../../functions/get-env.qwik.mjs";
|
|
5
4
|
import { get } from "../../../functions/get.qwik.mjs";
|
|
@@ -170,7 +169,6 @@ const onSubmit = function onSubmit2(props, state, formRef, event) {
|
|
|
170
169
|
}
|
|
171
170
|
};
|
|
172
171
|
const FormComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
173
|
-
var _a;
|
|
174
172
|
_jsxBranch();
|
|
175
173
|
useStylesScopedQrl(/* @__PURE__ */ inlinedQrl(STYLES, "FormComponent_component_useStylesScoped_SVdPvm0do3s"));
|
|
176
174
|
const formRef = useSignal();
|
|
@@ -186,31 +184,7 @@ const FormComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
186
184
|
ref: formRef,
|
|
187
185
|
...props.attributes,
|
|
188
186
|
children: [
|
|
189
|
-
|
|
190
|
-
return /* @__PURE__ */ _jsxC(Block, {
|
|
191
|
-
block,
|
|
192
|
-
get context() {
|
|
193
|
-
return props.builderContext;
|
|
194
|
-
},
|
|
195
|
-
get registeredComponents() {
|
|
196
|
-
return props.builderComponents;
|
|
197
|
-
},
|
|
198
|
-
get linkComponent() {
|
|
199
|
-
return props.builderLinkComponent;
|
|
200
|
-
},
|
|
201
|
-
[_IMMUTABLE]: {
|
|
202
|
-
context: _fnSignal((p0) => p0.builderContext, [
|
|
203
|
-
props
|
|
204
|
-
], "p0.builderContext"),
|
|
205
|
-
linkComponent: _fnSignal((p0) => p0.builderLinkComponent, [
|
|
206
|
-
props
|
|
207
|
-
], "p0.builderLinkComponent"),
|
|
208
|
-
registeredComponents: _fnSignal((p0) => p0.builderComponents, [
|
|
209
|
-
props
|
|
210
|
-
], "p0.builderComponents")
|
|
211
|
-
}
|
|
212
|
-
}, 3, `form-block-${idx}`);
|
|
213
|
-
}) : null,
|
|
187
|
+
/* @__PURE__ */ _jsxC(Slot, null, 3, "0n_0"),
|
|
214
188
|
submissionState(props, state) === "error" ? /* @__PURE__ */ _jsxC(Blocks, {
|
|
215
189
|
path: "errorMessage",
|
|
216
190
|
get blocks() {
|
|
@@ -228,7 +202,7 @@ const FormComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
228
202
|
], "p0.builderContext"),
|
|
229
203
|
path: _IMMUTABLE
|
|
230
204
|
}
|
|
231
|
-
}, 3, "
|
|
205
|
+
}, 3, "0n_1") : null,
|
|
232
206
|
submissionState(props, state) === "sending" ? /* @__PURE__ */ _jsxC(Blocks, {
|
|
233
207
|
path: "sendingMessage",
|
|
234
208
|
get blocks() {
|
|
@@ -246,10 +220,10 @@ const FormComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
246
220
|
], "p0.builderContext"),
|
|
247
221
|
path: _IMMUTABLE
|
|
248
222
|
}
|
|
249
|
-
}, 3, "
|
|
223
|
+
}, 3, "0n_2") : null,
|
|
250
224
|
submissionState(props, state) === "error" && state.responseData ? /* @__PURE__ */ _jsxQ("pre", null, {
|
|
251
225
|
class: "builder-form-error-text pre-FormComponent"
|
|
252
|
-
}, JSON.stringify(state.responseData, null, 2), 1, "
|
|
226
|
+
}, JSON.stringify(state.responseData, null, 2), 1, "0n_3") : null,
|
|
253
227
|
submissionState(props, state) === "success" ? /* @__PURE__ */ _jsxC(Blocks, {
|
|
254
228
|
path: "successMessage",
|
|
255
229
|
get blocks() {
|
|
@@ -267,7 +241,7 @@ const FormComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
267
241
|
], "p0.builderContext"),
|
|
268
242
|
path: _IMMUTABLE
|
|
269
243
|
}
|
|
270
|
-
}, 3, "
|
|
244
|
+
}, 3, "0n_4") : null
|
|
271
245
|
],
|
|
272
246
|
onSubmit$: /* @__PURE__ */ inlinedQrl((event) => {
|
|
273
247
|
const [formRef2, props2, state2] = useLexicalScope();
|
|
@@ -288,7 +262,7 @@ const FormComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
288
262
|
validate: _fnSignal((p0) => p0.validate, [
|
|
289
263
|
props
|
|
290
264
|
], "p0.validate")
|
|
291
|
-
}, 0, "
|
|
265
|
+
}, 0, "0n_5");
|
|
292
266
|
}, "FormComponent_component_dk5c15Rvsfg"));
|
|
293
267
|
const STYLES = `
|
|
294
268
|
.pre-FormComponent {
|
|
@@ -53,8 +53,6 @@ const Image = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
53
53
|
}, "Image_component_aspectRatioCss_useComputed_yJ1jG0g5fbw", [
|
|
54
54
|
props
|
|
55
55
|
]));
|
|
56
|
-
qwik.useVisibleTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
57
|
-
}, "Image_component_useVisibleTask_pRTGrfPyv0Y"));
|
|
58
56
|
return /* @__PURE__ */ qwik._jsxC(qwik.Fragment, {
|
|
59
57
|
children: [
|
|
60
58
|
/* @__PURE__ */ qwik._jsxQ("picture", null, null, [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { componentQrl, inlinedQrl, _jsxBranch, useStylesScopedQrl, useComputedQrl, useLexicalScope,
|
|
1
|
+
import { componentQrl, inlinedQrl, _jsxBranch, useStylesScopedQrl, useComputedQrl, useLexicalScope, _jsxC, Fragment, _jsxQ, _fnSignal, Slot } from "@builder.io/qwik";
|
|
2
2
|
import { getSrcSet } from "./image.helpers.qwik.mjs";
|
|
3
3
|
const Image = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
4
4
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -51,8 +51,6 @@ const Image = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
51
51
|
}, "Image_component_aspectRatioCss_useComputed_yJ1jG0g5fbw", [
|
|
52
52
|
props
|
|
53
53
|
]));
|
|
54
|
-
useVisibleTaskQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
55
|
-
}, "Image_component_useVisibleTask_pRTGrfPyv0Y"));
|
|
56
54
|
return /* @__PURE__ */ _jsxC(Fragment, {
|
|
57
55
|
children: [
|
|
58
56
|
/* @__PURE__ */ _jsxQ("picture", null, null, [
|
|
@@ -55,7 +55,6 @@ const Video = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
55
55
|
objectPosition: props.position,
|
|
56
56
|
// Hack to get object fit to work as expected and
|
|
57
57
|
// not have the video overflow
|
|
58
|
-
zIndex: 2,
|
|
59
58
|
borderRadius: "1px",
|
|
60
59
|
...props.aspectRatio ? {
|
|
61
60
|
position: "absolute"
|
|
@@ -53,7 +53,6 @@ const Video = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
53
53
|
objectPosition: props.position,
|
|
54
54
|
// Hack to get object fit to work as expected and
|
|
55
55
|
// not have the video overflow
|
|
56
|
-
zIndex: 2,
|
|
57
56
|
borderRadius: "1px",
|
|
58
57
|
...props.aspectRatio ? {
|
|
59
58
|
position: "absolute"
|
|
@@ -207,8 +207,8 @@ const Accordion = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlined
|
|
|
207
207
|
}
|
|
208
208
|
}, 3, "hf_1"), 1, "hf_2") : null
|
|
209
209
|
]
|
|
210
|
-
}, 1,
|
|
211
|
-
}), 1, "
|
|
210
|
+
}, 1, index);
|
|
211
|
+
}), 1, "hf_3");
|
|
212
212
|
}, "Accordion_component_jkuUCHm0nt0"));
|
|
213
213
|
exports.Accordion = Accordion;
|
|
214
214
|
exports.default = Accordion;
|
|
@@ -205,8 +205,8 @@ const Accordion = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props
|
|
|
205
205
|
}
|
|
206
206
|
}, 3, "hf_1"), 1, "hf_2") : null
|
|
207
207
|
]
|
|
208
|
-
}, 1,
|
|
209
|
-
}), 1, "
|
|
208
|
+
}, 1, index);
|
|
209
|
+
}), 1, "hf_3");
|
|
210
210
|
}, "Accordion_component_jkuUCHm0nt0"));
|
|
211
211
|
export {
|
|
212
212
|
Accordion,
|
|
@@ -168,11 +168,6 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQr
|
|
|
168
168
|
get parent() {
|
|
169
169
|
return props.builderBlock.id;
|
|
170
170
|
},
|
|
171
|
-
get styleProp() {
|
|
172
|
-
return {
|
|
173
|
-
flexGrow: "1"
|
|
174
|
-
};
|
|
175
|
-
},
|
|
176
171
|
get context() {
|
|
177
172
|
return props.builderContext;
|
|
178
173
|
},
|
|
@@ -183,6 +178,11 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQr
|
|
|
183
178
|
return props.builderLinkComponent;
|
|
184
179
|
},
|
|
185
180
|
blocks: deopt.deoptSignal(column.blocks),
|
|
181
|
+
get styleProp() {
|
|
182
|
+
return {
|
|
183
|
+
flexGrow: "1"
|
|
184
|
+
};
|
|
185
|
+
},
|
|
186
186
|
[qwik._IMMUTABLE]: {
|
|
187
187
|
context: qwik._fnSignal((p0) => p0.builderContext, [
|
|
188
188
|
props
|
|
@@ -166,11 +166,6 @@ const Columns = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
166
166
|
get parent() {
|
|
167
167
|
return props.builderBlock.id;
|
|
168
168
|
},
|
|
169
|
-
get styleProp() {
|
|
170
|
-
return {
|
|
171
|
-
flexGrow: "1"
|
|
172
|
-
};
|
|
173
|
-
},
|
|
174
169
|
get context() {
|
|
175
170
|
return props.builderContext;
|
|
176
171
|
},
|
|
@@ -181,6 +176,11 @@ const Columns = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
181
176
|
return props.builderLinkComponent;
|
|
182
177
|
},
|
|
183
178
|
blocks: deoptSignal(column.blocks),
|
|
179
|
+
get styleProp() {
|
|
180
|
+
return {
|
|
181
|
+
flexGrow: "1"
|
|
182
|
+
};
|
|
183
|
+
},
|
|
184
184
|
[_IMMUTABLE]: {
|
|
185
185
|
context: _fnSignal((p0) => p0.builderContext, [
|
|
186
186
|
props
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const qwik = require("@builder.io/qwik");
|
|
4
|
-
const block = require("../../../components/block/block.qwik.cjs");
|
|
5
4
|
const blocks = require("../../../components/blocks/blocks.qwik.cjs");
|
|
6
5
|
const getEnv = require("../../../functions/get-env.qwik.cjs");
|
|
7
6
|
const get = require("../../../functions/get.qwik.cjs");
|
|
@@ -172,7 +171,6 @@ const onSubmit = function onSubmit2(props, state, formRef, event) {
|
|
|
172
171
|
}
|
|
173
172
|
};
|
|
174
173
|
const FormComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
175
|
-
var _a;
|
|
176
174
|
qwik._jsxBranch();
|
|
177
175
|
qwik.useStylesScopedQrl(/* @__PURE__ */ qwik.inlinedQrl(STYLES, "FormComponent_component_useStylesScoped_SVdPvm0do3s"));
|
|
178
176
|
const formRef = qwik.useSignal();
|
|
@@ -188,31 +186,7 @@ const FormComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
188
186
|
ref: formRef,
|
|
189
187
|
...props.attributes,
|
|
190
188
|
children: [
|
|
191
|
-
|
|
192
|
-
return /* @__PURE__ */ qwik._jsxC(block.Block, {
|
|
193
|
-
block: block$1,
|
|
194
|
-
get context() {
|
|
195
|
-
return props.builderContext;
|
|
196
|
-
},
|
|
197
|
-
get registeredComponents() {
|
|
198
|
-
return props.builderComponents;
|
|
199
|
-
},
|
|
200
|
-
get linkComponent() {
|
|
201
|
-
return props.builderLinkComponent;
|
|
202
|
-
},
|
|
203
|
-
[qwik._IMMUTABLE]: {
|
|
204
|
-
context: qwik._fnSignal((p0) => p0.builderContext, [
|
|
205
|
-
props
|
|
206
|
-
], "p0.builderContext"),
|
|
207
|
-
linkComponent: qwik._fnSignal((p0) => p0.builderLinkComponent, [
|
|
208
|
-
props
|
|
209
|
-
], "p0.builderLinkComponent"),
|
|
210
|
-
registeredComponents: qwik._fnSignal((p0) => p0.builderComponents, [
|
|
211
|
-
props
|
|
212
|
-
], "p0.builderComponents")
|
|
213
|
-
}
|
|
214
|
-
}, 3, `form-block-${idx}`);
|
|
215
|
-
}) : null,
|
|
189
|
+
/* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "0n_0"),
|
|
216
190
|
submissionState(props, state) === "error" ? /* @__PURE__ */ qwik._jsxC(blocks.Blocks, {
|
|
217
191
|
path: "errorMessage",
|
|
218
192
|
get blocks() {
|
|
@@ -230,7 +204,7 @@ const FormComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
230
204
|
], "p0.builderContext"),
|
|
231
205
|
path: qwik._IMMUTABLE
|
|
232
206
|
}
|
|
233
|
-
}, 3, "
|
|
207
|
+
}, 3, "0n_1") : null,
|
|
234
208
|
submissionState(props, state) === "sending" ? /* @__PURE__ */ qwik._jsxC(blocks.Blocks, {
|
|
235
209
|
path: "sendingMessage",
|
|
236
210
|
get blocks() {
|
|
@@ -248,10 +222,10 @@ const FormComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
248
222
|
], "p0.builderContext"),
|
|
249
223
|
path: qwik._IMMUTABLE
|
|
250
224
|
}
|
|
251
|
-
}, 3, "
|
|
225
|
+
}, 3, "0n_2") : null,
|
|
252
226
|
submissionState(props, state) === "error" && state.responseData ? /* @__PURE__ */ qwik._jsxQ("pre", null, {
|
|
253
227
|
class: "builder-form-error-text pre-FormComponent"
|
|
254
|
-
}, JSON.stringify(state.responseData, null, 2), 1, "
|
|
228
|
+
}, JSON.stringify(state.responseData, null, 2), 1, "0n_3") : null,
|
|
255
229
|
submissionState(props, state) === "success" ? /* @__PURE__ */ qwik._jsxC(blocks.Blocks, {
|
|
256
230
|
path: "successMessage",
|
|
257
231
|
get blocks() {
|
|
@@ -269,7 +243,7 @@ const FormComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
269
243
|
], "p0.builderContext"),
|
|
270
244
|
path: qwik._IMMUTABLE
|
|
271
245
|
}
|
|
272
|
-
}, 3, "
|
|
246
|
+
}, 3, "0n_4") : null
|
|
273
247
|
],
|
|
274
248
|
onSubmit$: /* @__PURE__ */ qwik.inlinedQrl((event) => {
|
|
275
249
|
const [formRef2, props2, state2] = qwik.useLexicalScope();
|
|
@@ -290,7 +264,7 @@ const FormComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
290
264
|
validate: qwik._fnSignal((p0) => p0.validate, [
|
|
291
265
|
props
|
|
292
266
|
], "p0.validate")
|
|
293
|
-
}, 0, "
|
|
267
|
+
}, 0, "0n_5");
|
|
294
268
|
}, "FormComponent_component_dk5c15Rvsfg"));
|
|
295
269
|
const STYLES = `
|
|
296
270
|
.pre-FormComponent {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { componentQrl, inlinedQrl, _jsxBranch, useStylesScopedQrl, useSignal, useStore, _jsxS, _jsxC, _IMMUTABLE, _fnSignal, _jsxQ, useLexicalScope } from "@builder.io/qwik";
|
|
2
|
-
import { Block } from "../../../components/block/block.qwik.mjs";
|
|
1
|
+
import { componentQrl, inlinedQrl, _jsxBranch, useStylesScopedQrl, useSignal, useStore, _jsxS, _jsxC, Slot, _IMMUTABLE, _fnSignal, _jsxQ, useLexicalScope } from "@builder.io/qwik";
|
|
3
2
|
import { Blocks } from "../../../components/blocks/blocks.qwik.mjs";
|
|
4
3
|
import { getEnv } from "../../../functions/get-env.qwik.mjs";
|
|
5
4
|
import { get } from "../../../functions/get.qwik.mjs";
|
|
@@ -170,7 +169,6 @@ const onSubmit = function onSubmit2(props, state, formRef, event) {
|
|
|
170
169
|
}
|
|
171
170
|
};
|
|
172
171
|
const FormComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
173
|
-
var _a;
|
|
174
172
|
_jsxBranch();
|
|
175
173
|
useStylesScopedQrl(/* @__PURE__ */ inlinedQrl(STYLES, "FormComponent_component_useStylesScoped_SVdPvm0do3s"));
|
|
176
174
|
const formRef = useSignal();
|
|
@@ -186,31 +184,7 @@ const FormComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
186
184
|
ref: formRef,
|
|
187
185
|
...props.attributes,
|
|
188
186
|
children: [
|
|
189
|
-
|
|
190
|
-
return /* @__PURE__ */ _jsxC(Block, {
|
|
191
|
-
block,
|
|
192
|
-
get context() {
|
|
193
|
-
return props.builderContext;
|
|
194
|
-
},
|
|
195
|
-
get registeredComponents() {
|
|
196
|
-
return props.builderComponents;
|
|
197
|
-
},
|
|
198
|
-
get linkComponent() {
|
|
199
|
-
return props.builderLinkComponent;
|
|
200
|
-
},
|
|
201
|
-
[_IMMUTABLE]: {
|
|
202
|
-
context: _fnSignal((p0) => p0.builderContext, [
|
|
203
|
-
props
|
|
204
|
-
], "p0.builderContext"),
|
|
205
|
-
linkComponent: _fnSignal((p0) => p0.builderLinkComponent, [
|
|
206
|
-
props
|
|
207
|
-
], "p0.builderLinkComponent"),
|
|
208
|
-
registeredComponents: _fnSignal((p0) => p0.builderComponents, [
|
|
209
|
-
props
|
|
210
|
-
], "p0.builderComponents")
|
|
211
|
-
}
|
|
212
|
-
}, 3, `form-block-${idx}`);
|
|
213
|
-
}) : null,
|
|
187
|
+
/* @__PURE__ */ _jsxC(Slot, null, 3, "0n_0"),
|
|
214
188
|
submissionState(props, state) === "error" ? /* @__PURE__ */ _jsxC(Blocks, {
|
|
215
189
|
path: "errorMessage",
|
|
216
190
|
get blocks() {
|
|
@@ -228,7 +202,7 @@ const FormComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
228
202
|
], "p0.builderContext"),
|
|
229
203
|
path: _IMMUTABLE
|
|
230
204
|
}
|
|
231
|
-
}, 3, "
|
|
205
|
+
}, 3, "0n_1") : null,
|
|
232
206
|
submissionState(props, state) === "sending" ? /* @__PURE__ */ _jsxC(Blocks, {
|
|
233
207
|
path: "sendingMessage",
|
|
234
208
|
get blocks() {
|
|
@@ -246,10 +220,10 @@ const FormComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
246
220
|
], "p0.builderContext"),
|
|
247
221
|
path: _IMMUTABLE
|
|
248
222
|
}
|
|
249
|
-
}, 3, "
|
|
223
|
+
}, 3, "0n_2") : null,
|
|
250
224
|
submissionState(props, state) === "error" && state.responseData ? /* @__PURE__ */ _jsxQ("pre", null, {
|
|
251
225
|
class: "builder-form-error-text pre-FormComponent"
|
|
252
|
-
}, JSON.stringify(state.responseData, null, 2), 1, "
|
|
226
|
+
}, JSON.stringify(state.responseData, null, 2), 1, "0n_3") : null,
|
|
253
227
|
submissionState(props, state) === "success" ? /* @__PURE__ */ _jsxC(Blocks, {
|
|
254
228
|
path: "successMessage",
|
|
255
229
|
get blocks() {
|
|
@@ -267,7 +241,7 @@ const FormComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
267
241
|
], "p0.builderContext"),
|
|
268
242
|
path: _IMMUTABLE
|
|
269
243
|
}
|
|
270
|
-
}, 3, "
|
|
244
|
+
}, 3, "0n_4") : null
|
|
271
245
|
],
|
|
272
246
|
onSubmit$: /* @__PURE__ */ inlinedQrl((event) => {
|
|
273
247
|
const [formRef2, props2, state2] = useLexicalScope();
|
|
@@ -288,7 +262,7 @@ const FormComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
288
262
|
validate: _fnSignal((p0) => p0.validate, [
|
|
289
263
|
props
|
|
290
264
|
], "p0.validate")
|
|
291
|
-
}, 0, "
|
|
265
|
+
}, 0, "0n_5");
|
|
292
266
|
}, "FormComponent_component_dk5c15Rvsfg"));
|
|
293
267
|
const STYLES = `
|
|
294
268
|
.pre-FormComponent {
|
|
@@ -53,8 +53,6 @@ const Image = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
53
53
|
}, "Image_component_aspectRatioCss_useComputed_yJ1jG0g5fbw", [
|
|
54
54
|
props
|
|
55
55
|
]));
|
|
56
|
-
qwik.useVisibleTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
57
|
-
}, "Image_component_useVisibleTask_pRTGrfPyv0Y"));
|
|
58
56
|
return /* @__PURE__ */ qwik._jsxC(qwik.Fragment, {
|
|
59
57
|
children: [
|
|
60
58
|
/* @__PURE__ */ qwik._jsxQ("picture", null, null, [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { componentQrl, inlinedQrl, _jsxBranch, useStylesScopedQrl, useComputedQrl, useLexicalScope,
|
|
1
|
+
import { componentQrl, inlinedQrl, _jsxBranch, useStylesScopedQrl, useComputedQrl, useLexicalScope, _jsxC, Fragment, _jsxQ, _fnSignal, Slot } from "@builder.io/qwik";
|
|
2
2
|
import { getSrcSet } from "./image.helpers.qwik.mjs";
|
|
3
3
|
const Image = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
4
4
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -51,8 +51,6 @@ const Image = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
51
51
|
}, "Image_component_aspectRatioCss_useComputed_yJ1jG0g5fbw", [
|
|
52
52
|
props
|
|
53
53
|
]));
|
|
54
|
-
useVisibleTaskQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
55
|
-
}, "Image_component_useVisibleTask_pRTGrfPyv0Y"));
|
|
56
54
|
return /* @__PURE__ */ _jsxC(Fragment, {
|
|
57
55
|
children: [
|
|
58
56
|
/* @__PURE__ */ _jsxQ("picture", null, null, [
|
|
@@ -55,7 +55,6 @@ const Video = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
55
55
|
objectPosition: props.position,
|
|
56
56
|
// Hack to get object fit to work as expected and
|
|
57
57
|
// not have the video overflow
|
|
58
|
-
zIndex: 2,
|
|
59
58
|
borderRadius: "1px",
|
|
60
59
|
...props.aspectRatio ? {
|
|
61
60
|
position: "absolute"
|
|
@@ -53,7 +53,6 @@ const Video = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
53
53
|
objectPosition: props.position,
|
|
54
54
|
// Hack to get object fit to work as expected and
|
|
55
55
|
// not have the video overflow
|
|
56
|
-
zIndex: 2,
|
|
57
56
|
borderRadius: "1px",
|
|
58
57
|
...props.aspectRatio ? {
|
|
59
58
|
position: "absolute"
|
|
@@ -207,8 +207,8 @@ const Accordion = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlined
|
|
|
207
207
|
}
|
|
208
208
|
}, 3, "hf_1"), 1, "hf_2") : null
|
|
209
209
|
]
|
|
210
|
-
}, 1,
|
|
211
|
-
}), 1, "
|
|
210
|
+
}, 1, index);
|
|
211
|
+
}), 1, "hf_3");
|
|
212
212
|
}, "Accordion_component_jkuUCHm0nt0"));
|
|
213
213
|
exports.Accordion = Accordion;
|
|
214
214
|
exports.default = Accordion;
|
|
@@ -205,8 +205,8 @@ const Accordion = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props
|
|
|
205
205
|
}
|
|
206
206
|
}, 3, "hf_1"), 1, "hf_2") : null
|
|
207
207
|
]
|
|
208
|
-
}, 1,
|
|
209
|
-
}), 1, "
|
|
208
|
+
}, 1, index);
|
|
209
|
+
}), 1, "hf_3");
|
|
210
210
|
}, "Accordion_component_jkuUCHm0nt0"));
|
|
211
211
|
export {
|
|
212
212
|
Accordion,
|
|
@@ -168,11 +168,6 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQr
|
|
|
168
168
|
get parent() {
|
|
169
169
|
return props.builderBlock.id;
|
|
170
170
|
},
|
|
171
|
-
get styleProp() {
|
|
172
|
-
return {
|
|
173
|
-
flexGrow: "1"
|
|
174
|
-
};
|
|
175
|
-
},
|
|
176
171
|
get context() {
|
|
177
172
|
return props.builderContext;
|
|
178
173
|
},
|
|
@@ -183,6 +178,11 @@ const Columns = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQr
|
|
|
183
178
|
return props.builderLinkComponent;
|
|
184
179
|
},
|
|
185
180
|
blocks: deopt.deoptSignal(column.blocks),
|
|
181
|
+
get styleProp() {
|
|
182
|
+
return {
|
|
183
|
+
flexGrow: "1"
|
|
184
|
+
};
|
|
185
|
+
},
|
|
186
186
|
[qwik._IMMUTABLE]: {
|
|
187
187
|
context: qwik._fnSignal((p0) => p0.builderContext, [
|
|
188
188
|
props
|
|
@@ -166,11 +166,6 @@ const Columns = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
166
166
|
get parent() {
|
|
167
167
|
return props.builderBlock.id;
|
|
168
168
|
},
|
|
169
|
-
get styleProp() {
|
|
170
|
-
return {
|
|
171
|
-
flexGrow: "1"
|
|
172
|
-
};
|
|
173
|
-
},
|
|
174
169
|
get context() {
|
|
175
170
|
return props.builderContext;
|
|
176
171
|
},
|
|
@@ -181,6 +176,11 @@ const Columns = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
181
176
|
return props.builderLinkComponent;
|
|
182
177
|
},
|
|
183
178
|
blocks: deoptSignal(column.blocks),
|
|
179
|
+
get styleProp() {
|
|
180
|
+
return {
|
|
181
|
+
flexGrow: "1"
|
|
182
|
+
};
|
|
183
|
+
},
|
|
184
184
|
[_IMMUTABLE]: {
|
|
185
185
|
context: _fnSignal((p0) => p0.builderContext, [
|
|
186
186
|
props
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const qwik = require("@builder.io/qwik");
|
|
4
|
-
const block = require("../../../components/block/block.qwik.cjs");
|
|
5
4
|
const blocks = require("../../../components/blocks/blocks.qwik.cjs");
|
|
6
5
|
const getEnv = require("../../../functions/get-env.qwik.cjs");
|
|
7
6
|
const get = require("../../../functions/get.qwik.cjs");
|
|
@@ -172,7 +171,6 @@ const onSubmit = function onSubmit2(props, state, formRef, event) {
|
|
|
172
171
|
}
|
|
173
172
|
};
|
|
174
173
|
const FormComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
175
|
-
var _a;
|
|
176
174
|
qwik._jsxBranch();
|
|
177
175
|
qwik.useStylesScopedQrl(/* @__PURE__ */ qwik.inlinedQrl(STYLES, "FormComponent_component_useStylesScoped_SVdPvm0do3s"));
|
|
178
176
|
const formRef = qwik.useSignal();
|
|
@@ -188,31 +186,7 @@ const FormComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
188
186
|
ref: formRef,
|
|
189
187
|
...props.attributes,
|
|
190
188
|
children: [
|
|
191
|
-
|
|
192
|
-
return /* @__PURE__ */ qwik._jsxC(block.Block, {
|
|
193
|
-
block: block$1,
|
|
194
|
-
get context() {
|
|
195
|
-
return props.builderContext;
|
|
196
|
-
},
|
|
197
|
-
get registeredComponents() {
|
|
198
|
-
return props.builderComponents;
|
|
199
|
-
},
|
|
200
|
-
get linkComponent() {
|
|
201
|
-
return props.builderLinkComponent;
|
|
202
|
-
},
|
|
203
|
-
[qwik._IMMUTABLE]: {
|
|
204
|
-
context: qwik._fnSignal((p0) => p0.builderContext, [
|
|
205
|
-
props
|
|
206
|
-
], "p0.builderContext"),
|
|
207
|
-
linkComponent: qwik._fnSignal((p0) => p0.builderLinkComponent, [
|
|
208
|
-
props
|
|
209
|
-
], "p0.builderLinkComponent"),
|
|
210
|
-
registeredComponents: qwik._fnSignal((p0) => p0.builderComponents, [
|
|
211
|
-
props
|
|
212
|
-
], "p0.builderComponents")
|
|
213
|
-
}
|
|
214
|
-
}, 3, `form-block-${idx}`);
|
|
215
|
-
}) : null,
|
|
189
|
+
/* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "0n_0"),
|
|
216
190
|
submissionState(props, state) === "error" ? /* @__PURE__ */ qwik._jsxC(blocks.Blocks, {
|
|
217
191
|
path: "errorMessage",
|
|
218
192
|
get blocks() {
|
|
@@ -230,7 +204,7 @@ const FormComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
230
204
|
], "p0.builderContext"),
|
|
231
205
|
path: qwik._IMMUTABLE
|
|
232
206
|
}
|
|
233
|
-
}, 3, "
|
|
207
|
+
}, 3, "0n_1") : null,
|
|
234
208
|
submissionState(props, state) === "sending" ? /* @__PURE__ */ qwik._jsxC(blocks.Blocks, {
|
|
235
209
|
path: "sendingMessage",
|
|
236
210
|
get blocks() {
|
|
@@ -248,10 +222,10 @@ const FormComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
248
222
|
], "p0.builderContext"),
|
|
249
223
|
path: qwik._IMMUTABLE
|
|
250
224
|
}
|
|
251
|
-
}, 3, "
|
|
225
|
+
}, 3, "0n_2") : null,
|
|
252
226
|
submissionState(props, state) === "error" && state.responseData ? /* @__PURE__ */ qwik._jsxQ("pre", null, {
|
|
253
227
|
class: "builder-form-error-text pre-FormComponent"
|
|
254
|
-
}, JSON.stringify(state.responseData, null, 2), 1, "
|
|
228
|
+
}, JSON.stringify(state.responseData, null, 2), 1, "0n_3") : null,
|
|
255
229
|
submissionState(props, state) === "success" ? /* @__PURE__ */ qwik._jsxC(blocks.Blocks, {
|
|
256
230
|
path: "successMessage",
|
|
257
231
|
get blocks() {
|
|
@@ -269,7 +243,7 @@ const FormComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
269
243
|
], "p0.builderContext"),
|
|
270
244
|
path: qwik._IMMUTABLE
|
|
271
245
|
}
|
|
272
|
-
}, 3, "
|
|
246
|
+
}, 3, "0n_4") : null
|
|
273
247
|
],
|
|
274
248
|
onSubmit$: /* @__PURE__ */ qwik.inlinedQrl((event) => {
|
|
275
249
|
const [formRef2, props2, state2] = qwik.useLexicalScope();
|
|
@@ -290,7 +264,7 @@ const FormComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
290
264
|
validate: qwik._fnSignal((p0) => p0.validate, [
|
|
291
265
|
props
|
|
292
266
|
], "p0.validate")
|
|
293
|
-
}, 0, "
|
|
267
|
+
}, 0, "0n_5");
|
|
294
268
|
}, "FormComponent_component_dk5c15Rvsfg"));
|
|
295
269
|
const STYLES = `
|
|
296
270
|
.pre-FormComponent {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { componentQrl, inlinedQrl, _jsxBranch, useStylesScopedQrl, useSignal, useStore, _jsxS, _jsxC, _IMMUTABLE, _fnSignal, _jsxQ, useLexicalScope } from "@builder.io/qwik";
|
|
2
|
-
import { Block } from "../../../components/block/block.qwik.mjs";
|
|
1
|
+
import { componentQrl, inlinedQrl, _jsxBranch, useStylesScopedQrl, useSignal, useStore, _jsxS, _jsxC, Slot, _IMMUTABLE, _fnSignal, _jsxQ, useLexicalScope } from "@builder.io/qwik";
|
|
3
2
|
import { Blocks } from "../../../components/blocks/blocks.qwik.mjs";
|
|
4
3
|
import { getEnv } from "../../../functions/get-env.qwik.mjs";
|
|
5
4
|
import { get } from "../../../functions/get.qwik.mjs";
|
|
@@ -170,7 +169,6 @@ const onSubmit = function onSubmit2(props, state, formRef, event) {
|
|
|
170
169
|
}
|
|
171
170
|
};
|
|
172
171
|
const FormComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
173
|
-
var _a;
|
|
174
172
|
_jsxBranch();
|
|
175
173
|
useStylesScopedQrl(/* @__PURE__ */ inlinedQrl(STYLES, "FormComponent_component_useStylesScoped_SVdPvm0do3s"));
|
|
176
174
|
const formRef = useSignal();
|
|
@@ -186,31 +184,7 @@ const FormComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
186
184
|
ref: formRef,
|
|
187
185
|
...props.attributes,
|
|
188
186
|
children: [
|
|
189
|
-
|
|
190
|
-
return /* @__PURE__ */ _jsxC(Block, {
|
|
191
|
-
block,
|
|
192
|
-
get context() {
|
|
193
|
-
return props.builderContext;
|
|
194
|
-
},
|
|
195
|
-
get registeredComponents() {
|
|
196
|
-
return props.builderComponents;
|
|
197
|
-
},
|
|
198
|
-
get linkComponent() {
|
|
199
|
-
return props.builderLinkComponent;
|
|
200
|
-
},
|
|
201
|
-
[_IMMUTABLE]: {
|
|
202
|
-
context: _fnSignal((p0) => p0.builderContext, [
|
|
203
|
-
props
|
|
204
|
-
], "p0.builderContext"),
|
|
205
|
-
linkComponent: _fnSignal((p0) => p0.builderLinkComponent, [
|
|
206
|
-
props
|
|
207
|
-
], "p0.builderLinkComponent"),
|
|
208
|
-
registeredComponents: _fnSignal((p0) => p0.builderComponents, [
|
|
209
|
-
props
|
|
210
|
-
], "p0.builderComponents")
|
|
211
|
-
}
|
|
212
|
-
}, 3, `form-block-${idx}`);
|
|
213
|
-
}) : null,
|
|
187
|
+
/* @__PURE__ */ _jsxC(Slot, null, 3, "0n_0"),
|
|
214
188
|
submissionState(props, state) === "error" ? /* @__PURE__ */ _jsxC(Blocks, {
|
|
215
189
|
path: "errorMessage",
|
|
216
190
|
get blocks() {
|
|
@@ -228,7 +202,7 @@ const FormComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
228
202
|
], "p0.builderContext"),
|
|
229
203
|
path: _IMMUTABLE
|
|
230
204
|
}
|
|
231
|
-
}, 3, "
|
|
205
|
+
}, 3, "0n_1") : null,
|
|
232
206
|
submissionState(props, state) === "sending" ? /* @__PURE__ */ _jsxC(Blocks, {
|
|
233
207
|
path: "sendingMessage",
|
|
234
208
|
get blocks() {
|
|
@@ -246,10 +220,10 @@ const FormComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
246
220
|
], "p0.builderContext"),
|
|
247
221
|
path: _IMMUTABLE
|
|
248
222
|
}
|
|
249
|
-
}, 3, "
|
|
223
|
+
}, 3, "0n_2") : null,
|
|
250
224
|
submissionState(props, state) === "error" && state.responseData ? /* @__PURE__ */ _jsxQ("pre", null, {
|
|
251
225
|
class: "builder-form-error-text pre-FormComponent"
|
|
252
|
-
}, JSON.stringify(state.responseData, null, 2), 1, "
|
|
226
|
+
}, JSON.stringify(state.responseData, null, 2), 1, "0n_3") : null,
|
|
253
227
|
submissionState(props, state) === "success" ? /* @__PURE__ */ _jsxC(Blocks, {
|
|
254
228
|
path: "successMessage",
|
|
255
229
|
get blocks() {
|
|
@@ -267,7 +241,7 @@ const FormComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
267
241
|
], "p0.builderContext"),
|
|
268
242
|
path: _IMMUTABLE
|
|
269
243
|
}
|
|
270
|
-
}, 3, "
|
|
244
|
+
}, 3, "0n_4") : null
|
|
271
245
|
],
|
|
272
246
|
onSubmit$: /* @__PURE__ */ inlinedQrl((event) => {
|
|
273
247
|
const [formRef2, props2, state2] = useLexicalScope();
|
|
@@ -288,7 +262,7 @@ const FormComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
288
262
|
validate: _fnSignal((p0) => p0.validate, [
|
|
289
263
|
props
|
|
290
264
|
], "p0.validate")
|
|
291
|
-
}, 0, "
|
|
265
|
+
}, 0, "0n_5");
|
|
292
266
|
}, "FormComponent_component_dk5c15Rvsfg"));
|
|
293
267
|
const STYLES = `
|
|
294
268
|
.pre-FormComponent {
|
|
@@ -53,8 +53,6 @@ const Image = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
53
53
|
}, "Image_component_aspectRatioCss_useComputed_yJ1jG0g5fbw", [
|
|
54
54
|
props
|
|
55
55
|
]));
|
|
56
|
-
qwik.useVisibleTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
57
|
-
}, "Image_component_useVisibleTask_pRTGrfPyv0Y"));
|
|
58
56
|
return /* @__PURE__ */ qwik._jsxC(qwik.Fragment, {
|
|
59
57
|
children: [
|
|
60
58
|
/* @__PURE__ */ qwik._jsxQ("picture", null, null, [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { componentQrl, inlinedQrl, _jsxBranch, useStylesScopedQrl, useComputedQrl, useLexicalScope,
|
|
1
|
+
import { componentQrl, inlinedQrl, _jsxBranch, useStylesScopedQrl, useComputedQrl, useLexicalScope, _jsxC, Fragment, _jsxQ, _fnSignal, Slot } from "@builder.io/qwik";
|
|
2
2
|
import { getSrcSet } from "./image.helpers.qwik.mjs";
|
|
3
3
|
const Image = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
4
4
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -51,8 +51,6 @@ const Image = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
51
51
|
}, "Image_component_aspectRatioCss_useComputed_yJ1jG0g5fbw", [
|
|
52
52
|
props
|
|
53
53
|
]));
|
|
54
|
-
useVisibleTaskQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
55
|
-
}, "Image_component_useVisibleTask_pRTGrfPyv0Y"));
|
|
56
54
|
return /* @__PURE__ */ _jsxC(Fragment, {
|
|
57
55
|
children: [
|
|
58
56
|
/* @__PURE__ */ _jsxQ("picture", null, null, [
|
|
@@ -55,7 +55,6 @@ const Video = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
55
55
|
objectPosition: props.position,
|
|
56
56
|
// Hack to get object fit to work as expected and
|
|
57
57
|
// not have the video overflow
|
|
58
|
-
zIndex: 2,
|
|
59
58
|
borderRadius: "1px",
|
|
60
59
|
...props.aspectRatio ? {
|
|
61
60
|
position: "absolute"
|
|
@@ -53,7 +53,6 @@ const Video = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
53
53
|
objectPosition: props.position,
|
|
54
54
|
// Hack to get object fit to work as expected and
|
|
55
55
|
// not have the video overflow
|
|
56
|
-
zIndex: 2,
|
|
57
56
|
borderRadius: "1px",
|
|
58
57
|
...props.aspectRatio ? {
|
|
59
58
|
position: "absolute"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@builder.io/sdk-qwik",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.6",
|
|
4
4
|
"homepage": "https://github.com/BuilderIO/builder/tree/main/packages/sdks/output/qwik",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"@builder.io/sdks": "workspace:*",
|
|
120
120
|
"@types/node": "latest",
|
|
121
121
|
"typescript": "5.5.2",
|
|
122
|
-
"vite": "^4.
|
|
122
|
+
"vite": "^4.5.6"
|
|
123
123
|
},
|
|
124
124
|
"peerDependencies": {
|
|
125
125
|
"@builder.io/qwik": ">=1.0.0"
|
|
@@ -24,6 +24,7 @@ export type FormProps = BuilderDataProps & BuilderComponentsProp & BuilderLinkCo
|
|
|
24
24
|
sendingMessage?: BuilderBlock[];
|
|
25
25
|
resetFormOnSubmit?: boolean;
|
|
26
26
|
errorMessagePath?: string;
|
|
27
|
+
children?: any;
|
|
27
28
|
};
|
|
28
29
|
/**
|
|
29
30
|
* This import is used by the Svelte SDK. Do not remove.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.17.
|
|
1
|
+
export declare const SDK_VERSION = "0.17.6";
|
|
@@ -122,7 +122,7 @@ export interface ComponentInfo {
|
|
|
122
122
|
/**
|
|
123
123
|
* Whether or not the component should receive the `builderBlock` prop, containing the current Builder block being rendered.
|
|
124
124
|
*
|
|
125
|
-
* Defaults to `
|
|
125
|
+
* Defaults to `false`.
|
|
126
126
|
*/
|
|
127
127
|
builderBlock?: boolean;
|
|
128
128
|
/**
|
|
@@ -130,7 +130,7 @@ export interface ComponentInfo {
|
|
|
130
130
|
* The Builder Context contains a lot of data relevant to the current `Content` render.
|
|
131
131
|
* You can see more information [here](https://github.com/BuilderIO/builder/blob/main/packages/sdks/src/context/types.ts).
|
|
132
132
|
*
|
|
133
|
-
* Defaults to `
|
|
133
|
+
* Defaults to `false`.
|
|
134
134
|
*/
|
|
135
135
|
builderContext?: boolean;
|
|
136
136
|
/**
|
|
@@ -19,6 +19,16 @@ export interface Input {
|
|
|
19
19
|
/** @hidden */
|
|
20
20
|
autoFocus?: boolean;
|
|
21
21
|
subFields?: Input[];
|
|
22
|
+
/**
|
|
23
|
+
* When input is of `type` `object`, use this field to collapse multiple inputs
|
|
24
|
+
* in the Visual Editor by default and preserve screen space.
|
|
25
|
+
*/
|
|
26
|
+
folded?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* When input is of `type` `object`, provide guidance in the Visual Editor
|
|
29
|
+
* on how to edit this object's contents.
|
|
30
|
+
*/
|
|
31
|
+
keysHelperText?: string;
|
|
22
32
|
/**
|
|
23
33
|
* Additional text to render in the UI to give guidance on how to use this
|
|
24
34
|
*
|