@builder.io/sdk-qwik 0.20.1 → 0.22.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.
- package/lib/browser/blocks/form/form/form.qwik.cjs +5 -1
- package/lib/browser/blocks/form/form/form.qwik.mjs +5 -1
- package/lib/browser/blocks/img/component-info.qwik.cjs +51 -3
- package/lib/browser/blocks/img/component-info.qwik.mjs +51 -3
- package/lib/browser/blocks/img/img.qwik.cjs +23 -10
- package/lib/browser/blocks/img/img.qwik.mjs +23 -10
- package/lib/browser/blocks/symbol/symbol.qwik.cjs +13 -6
- package/lib/browser/blocks/symbol/symbol.qwik.mjs +13 -6
- package/lib/browser/blocks/tabs/tabs.qwik.cjs +5 -3
- package/lib/browser/blocks/tabs/tabs.qwik.mjs +5 -3
- package/lib/browser/blocks/text/component-info.qwik.cjs +0 -1
- package/lib/browser/blocks/text/component-info.qwik.mjs +0 -1
- package/lib/browser/components/block/block.qwik.cjs +9 -3
- package/lib/browser/components/block/block.qwik.mjs +9 -3
- package/lib/browser/components/block/components/component-ref/component-ref.qwik.cjs +2 -9
- package/lib/browser/components/block/components/component-ref/component-ref.qwik.mjs +3 -10
- package/lib/browser/components/block/components/interactive-element.qwik.cjs +5 -2
- package/lib/browser/components/block/components/interactive-element.qwik.mjs +5 -2
- package/lib/browser/components/block/components/style-wrapper.qwik.cjs +52 -0
- package/lib/browser/components/block/components/style-wrapper.qwik.mjs +52 -0
- package/lib/browser/components/content/components/enable-editor.qwik.cjs +27 -9
- package/lib/browser/components/content/components/enable-editor.qwik.mjs +27 -9
- package/lib/browser/constants/sdk-version.qwik.cjs +1 -1
- package/lib/browser/constants/sdk-version.qwik.mjs +1 -1
- package/lib/browser/functions/get-content/generate-content-url.qwik.cjs +2 -8
- package/lib/browser/functions/get-content/generate-content-url.qwik.mjs +2 -8
- package/lib/browser/functions/get-content/index.qwik.cjs +9 -0
- package/lib/browser/functions/get-content/index.qwik.mjs +9 -0
- package/lib/browser/helpers/subscribe-to-editor.qwik.cjs +4 -2
- package/lib/browser/helpers/subscribe-to-editor.qwik.mjs +4 -2
- package/lib/edge/blocks/form/form/form.qwik.cjs +5 -1
- package/lib/edge/blocks/form/form/form.qwik.mjs +5 -1
- package/lib/edge/blocks/img/component-info.qwik.cjs +51 -3
- package/lib/edge/blocks/img/component-info.qwik.mjs +51 -3
- package/lib/edge/blocks/img/img.qwik.cjs +23 -10
- package/lib/edge/blocks/img/img.qwik.mjs +23 -10
- package/lib/edge/blocks/symbol/symbol.qwik.cjs +13 -6
- package/lib/edge/blocks/symbol/symbol.qwik.mjs +13 -6
- package/lib/edge/blocks/tabs/tabs.qwik.cjs +5 -3
- package/lib/edge/blocks/tabs/tabs.qwik.mjs +5 -3
- package/lib/edge/blocks/text/component-info.qwik.cjs +0 -1
- package/lib/edge/blocks/text/component-info.qwik.mjs +0 -1
- package/lib/edge/components/block/block.qwik.cjs +9 -3
- package/lib/edge/components/block/block.qwik.mjs +9 -3
- package/lib/edge/components/block/components/component-ref/component-ref.qwik.cjs +2 -9
- package/lib/edge/components/block/components/component-ref/component-ref.qwik.mjs +3 -10
- package/lib/edge/components/block/components/interactive-element.qwik.cjs +5 -2
- package/lib/edge/components/block/components/interactive-element.qwik.mjs +5 -2
- package/lib/edge/components/block/components/style-wrapper.qwik.cjs +53 -0
- package/lib/edge/components/block/components/style-wrapper.qwik.mjs +53 -0
- package/lib/edge/components/content/components/enable-editor.qwik.cjs +27 -9
- package/lib/edge/components/content/components/enable-editor.qwik.mjs +27 -9
- package/lib/edge/constants/sdk-version.qwik.cjs +1 -1
- package/lib/edge/constants/sdk-version.qwik.mjs +1 -1
- package/lib/edge/functions/get-content/generate-content-url.qwik.cjs +2 -8
- package/lib/edge/functions/get-content/generate-content-url.qwik.mjs +2 -8
- package/lib/edge/functions/get-content/index.qwik.cjs +9 -0
- package/lib/edge/functions/get-content/index.qwik.mjs +9 -0
- package/lib/edge/helpers/subscribe-to-editor.qwik.cjs +4 -2
- package/lib/edge/helpers/subscribe-to-editor.qwik.mjs +4 -2
- package/lib/node/blocks/form/form/form.qwik.cjs +5 -1
- package/lib/node/blocks/form/form/form.qwik.mjs +5 -1
- package/lib/node/blocks/img/component-info.qwik.cjs +51 -3
- package/lib/node/blocks/img/component-info.qwik.mjs +51 -3
- package/lib/node/blocks/img/img.qwik.cjs +23 -10
- package/lib/node/blocks/img/img.qwik.mjs +23 -10
- package/lib/node/blocks/symbol/symbol.qwik.cjs +13 -6
- package/lib/node/blocks/symbol/symbol.qwik.mjs +13 -6
- package/lib/node/blocks/tabs/tabs.qwik.cjs +5 -3
- package/lib/node/blocks/tabs/tabs.qwik.mjs +5 -3
- package/lib/node/blocks/text/component-info.qwik.cjs +0 -1
- package/lib/node/blocks/text/component-info.qwik.mjs +0 -1
- package/lib/node/components/block/block.qwik.cjs +9 -3
- package/lib/node/components/block/block.qwik.mjs +9 -3
- package/lib/node/components/block/components/component-ref/component-ref.qwik.cjs +2 -9
- package/lib/node/components/block/components/component-ref/component-ref.qwik.mjs +3 -10
- package/lib/node/components/block/components/interactive-element.qwik.cjs +5 -2
- package/lib/node/components/block/components/interactive-element.qwik.mjs +5 -2
- package/lib/node/components/block/components/style-wrapper.qwik.cjs +53 -0
- package/lib/node/components/block/components/style-wrapper.qwik.mjs +53 -0
- package/lib/node/components/content/components/enable-editor.qwik.cjs +27 -9
- package/lib/node/components/content/components/enable-editor.qwik.mjs +27 -9
- package/lib/node/constants/sdk-version.qwik.cjs +1 -1
- package/lib/node/constants/sdk-version.qwik.mjs +1 -1
- package/lib/node/functions/get-content/generate-content-url.qwik.cjs +2 -8
- package/lib/node/functions/get-content/generate-content-url.qwik.mjs +2 -8
- package/lib/node/functions/get-content/index.qwik.cjs +9 -0
- package/lib/node/functions/get-content/index.qwik.mjs +9 -0
- package/lib/node/helpers/subscribe-to-editor.qwik.cjs +4 -2
- package/lib/node/helpers/subscribe-to-editor.qwik.mjs +4 -2
- package/package.json +1 -1
- package/types/src/blocks/form/form/form.d.ts +1 -0
- package/types/src/blocks/img/img.d.ts +2 -0
- package/types/src/blocks/symbol/symbol.d.ts +1 -1
- package/types/src/blocks/symbol/symbol.types.d.ts +1 -2
- package/types/src/blocks/tabs/tabs.d.ts +1 -0
- package/types/src/components/awaiter.d.ts +1 -11
- package/types/src/components/awaiter.types.d.ts +7 -0
- package/types/src/components/block/components/live-edit-block-styles.d.ts +7 -0
- package/types/src/components/block/components/style-wrapper.d.ts +8 -0
- package/types/src/components/content/components/enable-editor.d.ts +3 -2
- package/types/src/components/live-edit.d.ts +8 -0
- package/types/src/constants/sdk-version.d.ts +1 -1
- package/types/src/helpers/find-block.d.ts +18 -0
- package/types/src/helpers/subscribe-to-editor.d.ts +3 -2
|
@@ -21,6 +21,9 @@ const mergeNewRootState = function mergeNewRootState2(props, state, formRef, new
|
|
|
21
21
|
const submissionState = function submissionState2(props, state, formRef) {
|
|
22
22
|
return isEditing.isEditing() && props.previewState || state.formState;
|
|
23
23
|
};
|
|
24
|
+
const errorResponse = function errorResponse2(props, state, formRef, response) {
|
|
25
|
+
return JSON.stringify(response, null, 2);
|
|
26
|
+
};
|
|
24
27
|
const onSubmit = function onSubmit2(props, state, formRef, event) {
|
|
25
28
|
var _a;
|
|
26
29
|
const sendWithJsProp = props.sendWithJs || props.sendSubmissionsTo === "email";
|
|
@@ -246,7 +249,7 @@ const FormComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inl
|
|
|
246
249
|
}, 3, "0n_2") : null,
|
|
247
250
|
submissionState(props, state) === "error" && state.responseData ? /* @__PURE__ */ qwik._jsxQ("pre", null, {
|
|
248
251
|
class: "builder-form-error-text pre-FormComponent"
|
|
249
|
-
},
|
|
252
|
+
}, errorResponse(props, state, formRef, state.responseData), 1, "0n_3") : null,
|
|
250
253
|
submissionState(props, state) === "success" ? /* @__PURE__ */ qwik._jsxC(blocks.Blocks, {
|
|
251
254
|
path: "successMessage",
|
|
252
255
|
get blocks() {
|
|
@@ -297,6 +300,7 @@ const STYLES = `
|
|
|
297
300
|
exports.FormComponent = FormComponent;
|
|
298
301
|
exports.STYLES = STYLES;
|
|
299
302
|
exports.default = FormComponent;
|
|
303
|
+
exports.errorResponse = errorResponse;
|
|
300
304
|
exports.mergeNewRootState = mergeNewRootState;
|
|
301
305
|
exports.onSubmit = onSubmit;
|
|
302
306
|
exports.submissionState = submissionState;
|
|
@@ -19,6 +19,9 @@ const mergeNewRootState = function mergeNewRootState2(props, state, formRef, new
|
|
|
19
19
|
const submissionState = function submissionState2(props, state, formRef) {
|
|
20
20
|
return isEditing() && props.previewState || state.formState;
|
|
21
21
|
};
|
|
22
|
+
const errorResponse = function errorResponse2(props, state, formRef, response) {
|
|
23
|
+
return JSON.stringify(response, null, 2);
|
|
24
|
+
};
|
|
22
25
|
const onSubmit = function onSubmit2(props, state, formRef, event) {
|
|
23
26
|
var _a;
|
|
24
27
|
const sendWithJsProp = props.sendWithJs || props.sendSubmissionsTo === "email";
|
|
@@ -244,7 +247,7 @@ const FormComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
244
247
|
}, 3, "0n_2") : null,
|
|
245
248
|
submissionState(props, state) === "error" && state.responseData ? /* @__PURE__ */ _jsxQ("pre", null, {
|
|
246
249
|
class: "builder-form-error-text pre-FormComponent"
|
|
247
|
-
},
|
|
250
|
+
}, errorResponse(props, state, formRef, state.responseData), 1, "0n_3") : null,
|
|
248
251
|
submissionState(props, state) === "success" ? /* @__PURE__ */ _jsxC(Blocks, {
|
|
249
252
|
path: "successMessage",
|
|
250
253
|
get blocks() {
|
|
@@ -296,6 +299,7 @@ export {
|
|
|
296
299
|
FormComponent,
|
|
297
300
|
STYLES,
|
|
298
301
|
FormComponent as default,
|
|
302
|
+
errorResponse,
|
|
299
303
|
mergeNewRootState,
|
|
300
304
|
onSubmit,
|
|
301
305
|
submissionState
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const fileTypes = require("../../constants/file-types.qwik.cjs");
|
|
4
4
|
const componentInfo = {
|
|
5
|
-
// friendlyName?
|
|
6
5
|
name: "Raw:Img",
|
|
7
6
|
hideFromInsertMenu: true,
|
|
8
7
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -13,9 +12,58 @@ const componentInfo = {
|
|
|
13
12
|
type: "file",
|
|
14
13
|
allowedFileTypes: fileTypes.IMAGE_FILE_TYPES,
|
|
15
14
|
required: true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: "backgroundSize",
|
|
18
|
+
type: "text",
|
|
19
|
+
defaultValue: "cover",
|
|
20
|
+
enum: [
|
|
21
|
+
{
|
|
22
|
+
label: "contain",
|
|
23
|
+
value: "contain",
|
|
24
|
+
helperText: "The image should never get cropped"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
label: "cover",
|
|
28
|
+
value: "cover",
|
|
29
|
+
helperText: "The image should fill it's box, cropping when needed"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: "backgroundPosition",
|
|
35
|
+
type: "text",
|
|
36
|
+
defaultValue: "center",
|
|
37
|
+
enum: [
|
|
38
|
+
"center",
|
|
39
|
+
"top",
|
|
40
|
+
"left",
|
|
41
|
+
"right",
|
|
42
|
+
"bottom",
|
|
43
|
+
"top left",
|
|
44
|
+
"top right",
|
|
45
|
+
"bottom left",
|
|
46
|
+
"bottom right"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: "altText",
|
|
51
|
+
type: "string",
|
|
52
|
+
helperText: "Text to display when the user has images off"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: "title",
|
|
56
|
+
type: "string",
|
|
57
|
+
helperText: "Text to display when hovering over the asset"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: "aspectRatio",
|
|
61
|
+
type: "number",
|
|
62
|
+
helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
|
|
63
|
+
advanced: true,
|
|
64
|
+
defaultValue: 0.7041
|
|
16
65
|
}
|
|
17
66
|
],
|
|
18
|
-
noWrap: true
|
|
19
|
-
static: true
|
|
67
|
+
noWrap: true
|
|
20
68
|
};
|
|
21
69
|
exports.componentInfo = componentInfo;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IMAGE_FILE_TYPES } from "../../constants/file-types.qwik.mjs";
|
|
2
2
|
const componentInfo = {
|
|
3
|
-
// friendlyName?
|
|
4
3
|
name: "Raw:Img",
|
|
5
4
|
hideFromInsertMenu: true,
|
|
6
5
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -11,10 +10,59 @@ const componentInfo = {
|
|
|
11
10
|
type: "file",
|
|
12
11
|
allowedFileTypes: IMAGE_FILE_TYPES,
|
|
13
12
|
required: true
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: "backgroundSize",
|
|
16
|
+
type: "text",
|
|
17
|
+
defaultValue: "cover",
|
|
18
|
+
enum: [
|
|
19
|
+
{
|
|
20
|
+
label: "contain",
|
|
21
|
+
value: "contain",
|
|
22
|
+
helperText: "The image should never get cropped"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
label: "cover",
|
|
26
|
+
value: "cover",
|
|
27
|
+
helperText: "The image should fill it's box, cropping when needed"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: "backgroundPosition",
|
|
33
|
+
type: "text",
|
|
34
|
+
defaultValue: "center",
|
|
35
|
+
enum: [
|
|
36
|
+
"center",
|
|
37
|
+
"top",
|
|
38
|
+
"left",
|
|
39
|
+
"right",
|
|
40
|
+
"bottom",
|
|
41
|
+
"top left",
|
|
42
|
+
"top right",
|
|
43
|
+
"bottom left",
|
|
44
|
+
"bottom right"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "altText",
|
|
49
|
+
type: "string",
|
|
50
|
+
helperText: "Text to display when the user has images off"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: "title",
|
|
54
|
+
type: "string",
|
|
55
|
+
helperText: "Text to display when hovering over the asset"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: "aspectRatio",
|
|
59
|
+
type: "number",
|
|
60
|
+
helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
|
|
61
|
+
advanced: true,
|
|
62
|
+
defaultValue: 0.7041
|
|
14
63
|
}
|
|
15
64
|
],
|
|
16
|
-
noWrap: true
|
|
17
|
-
static: true
|
|
65
|
+
noWrap: true
|
|
18
66
|
};
|
|
19
67
|
export {
|
|
20
68
|
componentInfo
|
|
@@ -1,10 +1,12 @@
|
|
|
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 getClassPropName = require("../../functions/get-class-prop-name.qwik.cjs");
|
|
4
5
|
const isEditing = require("../../functions/is-editing.qwik.cjs");
|
|
5
6
|
const image_helpers = require("../image/image.helpers.qwik.cjs");
|
|
6
7
|
const ImgComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
7
|
-
|
|
8
|
+
var _a;
|
|
9
|
+
qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
8
10
|
const [props2] = qwik.useLexicalScope();
|
|
9
11
|
const url = props2.imgSrc || props2.image;
|
|
10
12
|
if (!url || typeof url !== "string")
|
|
@@ -15,8 +17,25 @@ const ImgComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
15
17
|
}, "ImgComponent_component_srcSetToUse_useComputed_z7PUtkds7Q0", [
|
|
16
18
|
props
|
|
17
19
|
]));
|
|
20
|
+
const imgAttrs = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
21
|
+
const [props2] = qwik.useLexicalScope();
|
|
22
|
+
const attrs = {
|
|
23
|
+
...props2.attributes,
|
|
24
|
+
[getClassPropName.getClassPropName()]: `builder-raw-img ${props2.attributes[getClassPropName.getClassPropName()] || ""}`
|
|
25
|
+
};
|
|
26
|
+
delete attrs.style;
|
|
27
|
+
return attrs;
|
|
28
|
+
}, "ImgComponent_component_imgAttrs_useComputed_VIloKDVy6OI", [
|
|
29
|
+
props
|
|
30
|
+
]));
|
|
18
31
|
return /* @__PURE__ */ qwik._jsxS("img", {
|
|
19
|
-
...
|
|
32
|
+
...imgAttrs.value,
|
|
33
|
+
style: {
|
|
34
|
+
objectFit: props.backgroundSize || "cover",
|
|
35
|
+
objectPosition: props.backgroundPosition || "center",
|
|
36
|
+
aspectRatio: props.aspectRatio || void 0,
|
|
37
|
+
...((_a = props.attributes) == null ? void 0 : _a.style) || {}
|
|
38
|
+
}
|
|
20
39
|
}, {
|
|
21
40
|
alt: qwik._fnSignal((p0) => p0.altText, [
|
|
22
41
|
props
|
|
@@ -25,15 +44,9 @@ const ImgComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
25
44
|
src: qwik._fnSignal((p0) => p0.imgSrc || p0.image, [
|
|
26
45
|
props
|
|
27
46
|
], "p0.imgSrc||p0.image"),
|
|
28
|
-
|
|
29
|
-
srcSetToUse
|
|
30
|
-
], "p0.value"),
|
|
31
|
-
style: qwik._fnSignal((p0) => ({
|
|
32
|
-
objectFit: p0.backgroundSize || "cover",
|
|
33
|
-
objectPosition: p0.backgroundPosition || "center"
|
|
34
|
-
}), [
|
|
47
|
+
title: qwik._fnSignal((p0) => p0.title, [
|
|
35
48
|
props
|
|
36
|
-
],
|
|
49
|
+
], "p0.title")
|
|
37
50
|
}, 0, isEditing.isEditing() && props.imgSrc || "default-key");
|
|
38
51
|
}, "ImgComponent_component_FXvIDBSffO8"));
|
|
39
52
|
exports.ImgComponent = ImgComponent;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { componentQrl, inlinedQrl, useComputedQrl, useLexicalScope, _jsxS, _fnSignal } from "@builder.io/qwik";
|
|
2
|
+
import { getClassPropName } from "../../functions/get-class-prop-name.qwik.mjs";
|
|
2
3
|
import { isEditing } from "../../functions/is-editing.qwik.mjs";
|
|
3
4
|
import { getSrcSet } from "../image/image.helpers.qwik.mjs";
|
|
4
5
|
const ImgComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
5
|
-
|
|
6
|
+
var _a;
|
|
7
|
+
useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
6
8
|
const [props2] = useLexicalScope();
|
|
7
9
|
const url = props2.imgSrc || props2.image;
|
|
8
10
|
if (!url || typeof url !== "string")
|
|
@@ -13,8 +15,25 @@ const ImgComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
13
15
|
}, "ImgComponent_component_srcSetToUse_useComputed_z7PUtkds7Q0", [
|
|
14
16
|
props
|
|
15
17
|
]));
|
|
18
|
+
const imgAttrs = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
19
|
+
const [props2] = useLexicalScope();
|
|
20
|
+
const attrs = {
|
|
21
|
+
...props2.attributes,
|
|
22
|
+
[getClassPropName()]: `builder-raw-img ${props2.attributes[getClassPropName()] || ""}`
|
|
23
|
+
};
|
|
24
|
+
delete attrs.style;
|
|
25
|
+
return attrs;
|
|
26
|
+
}, "ImgComponent_component_imgAttrs_useComputed_VIloKDVy6OI", [
|
|
27
|
+
props
|
|
28
|
+
]));
|
|
16
29
|
return /* @__PURE__ */ _jsxS("img", {
|
|
17
|
-
...
|
|
30
|
+
...imgAttrs.value,
|
|
31
|
+
style: {
|
|
32
|
+
objectFit: props.backgroundSize || "cover",
|
|
33
|
+
objectPosition: props.backgroundPosition || "center",
|
|
34
|
+
aspectRatio: props.aspectRatio || void 0,
|
|
35
|
+
...((_a = props.attributes) == null ? void 0 : _a.style) || {}
|
|
36
|
+
}
|
|
18
37
|
}, {
|
|
19
38
|
alt: _fnSignal((p0) => p0.altText, [
|
|
20
39
|
props
|
|
@@ -23,15 +42,9 @@ const ImgComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
23
42
|
src: _fnSignal((p0) => p0.imgSrc || p0.image, [
|
|
24
43
|
props
|
|
25
44
|
], "p0.imgSrc||p0.image"),
|
|
26
|
-
|
|
27
|
-
srcSetToUse
|
|
28
|
-
], "p0.value"),
|
|
29
|
-
style: _fnSignal((p0) => ({
|
|
30
|
-
objectFit: p0.backgroundSize || "cover",
|
|
31
|
-
objectPosition: p0.backgroundPosition || "center"
|
|
32
|
-
}), [
|
|
45
|
+
title: _fnSignal((p0) => p0.title, [
|
|
33
46
|
props
|
|
34
|
-
],
|
|
47
|
+
], "p0.title")
|
|
35
48
|
}, 0, isEditing() && props.imgSrc || "default-key");
|
|
36
49
|
}, "ImgComponent_component_FXvIDBSffO8"));
|
|
37
50
|
export {
|
|
@@ -4,7 +4,7 @@ const qwik = require("@builder.io/qwik");
|
|
|
4
4
|
const contentVariants = require("../../components/content-variants/content-variants.qwik.cjs");
|
|
5
5
|
const getClassPropName = require("../../functions/get-class-prop-name.qwik.cjs");
|
|
6
6
|
const symbol_helpers = require("./symbol.helpers.qwik.cjs");
|
|
7
|
-
const setContent = function setContent2(props, state, blocksWrapper, contentWrapper, className) {
|
|
7
|
+
const setContent = function setContent2(props, state, blocksWrapper, contentWrapper, customComponents, className) {
|
|
8
8
|
var _a;
|
|
9
9
|
if (state.contentToUse && state.symbolEntry === ((_a = props.symbol) == null ? void 0 : _a.entry))
|
|
10
10
|
return;
|
|
@@ -27,6 +27,12 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
27
27
|
const contentWrapper = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
28
28
|
return "div";
|
|
29
29
|
}, "Symbol_component_contentWrapper_useComputed_EvmPpPj8JTo"));
|
|
30
|
+
const customComponents = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
31
|
+
const [props2] = qwik.useLexicalScope();
|
|
32
|
+
return Object.values(props2.builderComponents);
|
|
33
|
+
}, "Symbol_component_customComponents_useComputed_lTCqaqHUrNw", [
|
|
34
|
+
props
|
|
35
|
+
]));
|
|
30
36
|
const className = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
31
37
|
var _a2, _b2;
|
|
32
38
|
const [props2] = qwik.useLexicalScope();
|
|
@@ -44,13 +50,14 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
44
50
|
symbolEntry: (_b = props.symbol) == null ? void 0 : _b.entry
|
|
45
51
|
});
|
|
46
52
|
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(({ track }) => {
|
|
47
|
-
const [blocksWrapper2, className2, contentWrapper2, props2, state2] = qwik.useLexicalScope();
|
|
53
|
+
const [blocksWrapper2, className2, contentWrapper2, customComponents2, props2, state2] = qwik.useLexicalScope();
|
|
48
54
|
track(() => props2.symbol);
|
|
49
55
|
setContent(props2, state2);
|
|
50
56
|
}, "Symbol_component_useTask_NIAWAC1bMBo", [
|
|
51
57
|
blocksWrapper,
|
|
52
58
|
className,
|
|
53
59
|
contentWrapper,
|
|
60
|
+
customComponents,
|
|
54
61
|
props,
|
|
55
62
|
state
|
|
56
63
|
]));
|
|
@@ -75,7 +82,7 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
75
82
|
};
|
|
76
83
|
},
|
|
77
84
|
get customComponents() {
|
|
78
|
-
return
|
|
85
|
+
return customComponents.value;
|
|
79
86
|
},
|
|
80
87
|
get data() {
|
|
81
88
|
var _a2, _b2, _c;
|
|
@@ -132,9 +139,9 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
132
139
|
}, [
|
|
133
140
|
props
|
|
134
141
|
], "{...p0.builderContext.context,symbolId:p0.builderBlock?.id}"),
|
|
135
|
-
customComponents: qwik._fnSignal((p0) =>
|
|
136
|
-
|
|
137
|
-
], "
|
|
142
|
+
customComponents: qwik._fnSignal((p0) => p0.value, [
|
|
143
|
+
customComponents
|
|
144
|
+
], "p0.value"),
|
|
138
145
|
data: qwik._fnSignal((p0, p1) => {
|
|
139
146
|
var _a2, _b2, _c;
|
|
140
147
|
return {
|
|
@@ -2,7 +2,7 @@ import { componentQrl, inlinedQrl, useComputedQrl, useLexicalScope, useStore, us
|
|
|
2
2
|
import { ContentVariants } from "../../components/content-variants/content-variants.qwik.mjs";
|
|
3
3
|
import { getClassPropName } from "../../functions/get-class-prop-name.qwik.mjs";
|
|
4
4
|
import { fetchSymbolContent } from "./symbol.helpers.qwik.mjs";
|
|
5
|
-
const setContent = function setContent2(props, state, blocksWrapper, contentWrapper, className) {
|
|
5
|
+
const setContent = function setContent2(props, state, blocksWrapper, contentWrapper, customComponents, className) {
|
|
6
6
|
var _a;
|
|
7
7
|
if (state.contentToUse && state.symbolEntry === ((_a = props.symbol) == null ? void 0 : _a.entry))
|
|
8
8
|
return;
|
|
@@ -25,6 +25,12 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
25
25
|
const contentWrapper = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
26
26
|
return "div";
|
|
27
27
|
}, "Symbol_component_contentWrapper_useComputed_EvmPpPj8JTo"));
|
|
28
|
+
const customComponents = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
29
|
+
const [props2] = useLexicalScope();
|
|
30
|
+
return Object.values(props2.builderComponents);
|
|
31
|
+
}, "Symbol_component_customComponents_useComputed_lTCqaqHUrNw", [
|
|
32
|
+
props
|
|
33
|
+
]));
|
|
28
34
|
const className = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
29
35
|
var _a2, _b2;
|
|
30
36
|
const [props2] = useLexicalScope();
|
|
@@ -42,13 +48,14 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
42
48
|
symbolEntry: (_b = props.symbol) == null ? void 0 : _b.entry
|
|
43
49
|
});
|
|
44
50
|
useTaskQrl(/* @__PURE__ */ inlinedQrl(({ track }) => {
|
|
45
|
-
const [blocksWrapper2, className2, contentWrapper2, props2, state2] = useLexicalScope();
|
|
51
|
+
const [blocksWrapper2, className2, contentWrapper2, customComponents2, props2, state2] = useLexicalScope();
|
|
46
52
|
track(() => props2.symbol);
|
|
47
53
|
setContent(props2, state2);
|
|
48
54
|
}, "Symbol_component_useTask_NIAWAC1bMBo", [
|
|
49
55
|
blocksWrapper,
|
|
50
56
|
className,
|
|
51
57
|
contentWrapper,
|
|
58
|
+
customComponents,
|
|
52
59
|
props,
|
|
53
60
|
state
|
|
54
61
|
]));
|
|
@@ -73,7 +80,7 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
73
80
|
};
|
|
74
81
|
},
|
|
75
82
|
get customComponents() {
|
|
76
|
-
return
|
|
83
|
+
return customComponents.value;
|
|
77
84
|
},
|
|
78
85
|
get data() {
|
|
79
86
|
var _a2, _b2, _c;
|
|
@@ -130,9 +137,9 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
130
137
|
}, [
|
|
131
138
|
props
|
|
132
139
|
], "{...p0.builderContext.context,symbolId:p0.builderBlock?.id}"),
|
|
133
|
-
customComponents: _fnSignal((p0) =>
|
|
134
|
-
|
|
135
|
-
], "
|
|
140
|
+
customComponents: _fnSignal((p0) => p0.value, [
|
|
141
|
+
customComponents
|
|
142
|
+
], "p0.value"),
|
|
136
143
|
data: _fnSignal((p0, p1) => {
|
|
137
144
|
var _a2, _b2, _c;
|
|
138
145
|
return {
|
|
@@ -5,6 +5,9 @@ const blocks = require("../../components/blocks/blocks.qwik.cjs");
|
|
|
5
5
|
const activeTabContent = function activeTabContent2(props, state, active) {
|
|
6
6
|
return props.tabs && props.tabs[active].content;
|
|
7
7
|
};
|
|
8
|
+
const getTabStyle = function getTabStyle2(props, state, index) {
|
|
9
|
+
return index === state.activeTab ? props.activeTabStyle : {};
|
|
10
|
+
};
|
|
8
11
|
const onClick = function onClick2(props, state, index) {
|
|
9
12
|
if (index === state.activeTab && props.collapsible)
|
|
10
13
|
state.activeTab = -1;
|
|
@@ -38,9 +41,7 @@ const Tabs = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
|
|
|
38
41
|
props,
|
|
39
42
|
state
|
|
40
43
|
]),
|
|
41
|
-
style:
|
|
42
|
-
...state.activeTab === index ? props.activeTabStyle : {}
|
|
43
|
-
}
|
|
44
|
+
style: getTabStyle(props, state, index)
|
|
44
45
|
}, null, /* @__PURE__ */ qwik._jsxC(blocks.Blocks, {
|
|
45
46
|
get parent() {
|
|
46
47
|
return props.builderBlock.id;
|
|
@@ -115,4 +116,5 @@ const Tabs = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
|
|
|
115
116
|
exports.Tabs = Tabs;
|
|
116
117
|
exports.activeTabContent = activeTabContent;
|
|
117
118
|
exports.default = Tabs;
|
|
119
|
+
exports.getTabStyle = getTabStyle;
|
|
118
120
|
exports.onClick = onClick;
|
|
@@ -3,6 +3,9 @@ import { Blocks } from "../../components/blocks/blocks.qwik.mjs";
|
|
|
3
3
|
const activeTabContent = function activeTabContent2(props, state, active) {
|
|
4
4
|
return props.tabs && props.tabs[active].content;
|
|
5
5
|
};
|
|
6
|
+
const getTabStyle = function getTabStyle2(props, state, index) {
|
|
7
|
+
return index === state.activeTab ? props.activeTabStyle : {};
|
|
8
|
+
};
|
|
6
9
|
const onClick = function onClick2(props, state, index) {
|
|
7
10
|
if (index === state.activeTab && props.collapsible)
|
|
8
11
|
state.activeTab = -1;
|
|
@@ -36,9 +39,7 @@ const Tabs = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
36
39
|
props,
|
|
37
40
|
state
|
|
38
41
|
]),
|
|
39
|
-
style:
|
|
40
|
-
...state.activeTab === index ? props.activeTabStyle : {}
|
|
41
|
-
}
|
|
42
|
+
style: getTabStyle(props, state, index)
|
|
42
43
|
}, null, /* @__PURE__ */ _jsxC(Blocks, {
|
|
43
44
|
get parent() {
|
|
44
45
|
return props.builderBlock.id;
|
|
@@ -114,5 +115,6 @@ export {
|
|
|
114
115
|
Tabs,
|
|
115
116
|
activeTabContent,
|
|
116
117
|
Tabs as default,
|
|
118
|
+
getTabStyle,
|
|
117
119
|
onClick
|
|
118
120
|
};
|
|
@@ -4,7 +4,6 @@ const componentInfo = {
|
|
|
4
4
|
shouldReceiveBuilderProps: {},
|
|
5
5
|
name: "Text",
|
|
6
6
|
static: true,
|
|
7
|
-
isRSC: true,
|
|
8
7
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",
|
|
9
8
|
inputs: [
|
|
10
9
|
{
|
|
@@ -2,7 +2,6 @@ const componentInfo = {
|
|
|
2
2
|
shouldReceiveBuilderProps: {},
|
|
3
3
|
name: "Text",
|
|
4
4
|
static: true,
|
|
5
|
-
isRSC: true,
|
|
6
5
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",
|
|
7
6
|
inputs: [
|
|
8
7
|
{
|
|
@@ -7,10 +7,10 @@ const getBlockComponentOptions = require("../../functions/get-block-component-op
|
|
|
7
7
|
const getProcessedBlock = require("../../functions/get-processed-block.qwik.cjs");
|
|
8
8
|
const animator = require("./animator.qwik.cjs");
|
|
9
9
|
const block_helpers = require("./block.helpers.qwik.cjs");
|
|
10
|
-
const blockStyles = require("./components/block-styles.qwik.cjs");
|
|
11
10
|
const blockWrapper = require("./components/block-wrapper.qwik.cjs");
|
|
12
11
|
const componentRef = require("./components/component-ref/component-ref.qwik.cjs");
|
|
13
12
|
const repeatedBlock = require("./components/repeated-block.qwik.cjs");
|
|
13
|
+
const styleWrapper = require("./components/style-wrapper.qwik.cjs");
|
|
14
14
|
const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
15
15
|
var _a;
|
|
16
16
|
qwik._jsxBranch();
|
|
@@ -133,20 +133,26 @@ const Block = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
133
133
|
return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
134
134
|
children: canShowBlock.value ? /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
135
135
|
children: [
|
|
136
|
-
/* @__PURE__ */ qwik._jsxC(
|
|
136
|
+
/* @__PURE__ */ qwik._jsxC(styleWrapper.StyleWrapper, {
|
|
137
137
|
get block() {
|
|
138
138
|
return processedBlock.value;
|
|
139
139
|
},
|
|
140
140
|
get context() {
|
|
141
141
|
return props.context;
|
|
142
142
|
},
|
|
143
|
+
get id() {
|
|
144
|
+
return props.block.id;
|
|
145
|
+
},
|
|
143
146
|
[qwik._IMMUTABLE]: {
|
|
144
147
|
block: qwik._fnSignal((p0) => p0.value, [
|
|
145
148
|
processedBlock
|
|
146
149
|
], "p0.value"),
|
|
147
150
|
context: qwik._fnSignal((p0) => p0.context, [
|
|
148
151
|
props
|
|
149
|
-
], "p0.context")
|
|
152
|
+
], "p0.context"),
|
|
153
|
+
id: qwik._fnSignal((p0) => p0.block.id, [
|
|
154
|
+
props
|
|
155
|
+
], "p0.block.id")
|
|
150
156
|
}
|
|
151
157
|
}, 3, "jN_0"),
|
|
152
158
|
!((_a = blockComponent.value) == null ? void 0 : _a.noWrap) ? !repeatItem.value ? /* @__PURE__ */ qwik._jsxC(blockWrapper.BlockWrapper, {
|
|
@@ -5,10 +5,10 @@ import { getBlockComponentOptions } from "../../functions/get-block-component-op
|
|
|
5
5
|
import { getProcessedBlock } from "../../functions/get-processed-block.qwik.mjs";
|
|
6
6
|
import { bindAnimations } from "./animator.qwik.mjs";
|
|
7
7
|
import { getRepeatItemData, getComponent, provideBuilderBlock, provideBuilderContext, provideLinkComponent, provideRegisteredComponents, generateKey } from "./block.helpers.qwik.mjs";
|
|
8
|
-
import { BlockStyles } from "./components/block-styles.qwik.mjs";
|
|
9
8
|
import { BlockWrapper } from "./components/block-wrapper.qwik.mjs";
|
|
10
9
|
import { ComponentRef } from "./components/component-ref/component-ref.qwik.mjs";
|
|
11
10
|
import { RepeatedBlock } from "./components/repeated-block.qwik.mjs";
|
|
11
|
+
import { StyleWrapper } from "./components/style-wrapper.qwik.mjs";
|
|
12
12
|
const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
13
13
|
var _a;
|
|
14
14
|
_jsxBranch();
|
|
@@ -131,20 +131,26 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
131
131
|
return /* @__PURE__ */ _jsxC(Fragment, {
|
|
132
132
|
children: canShowBlock.value ? /* @__PURE__ */ _jsxC(Fragment, {
|
|
133
133
|
children: [
|
|
134
|
-
/* @__PURE__ */ _jsxC(
|
|
134
|
+
/* @__PURE__ */ _jsxC(StyleWrapper, {
|
|
135
135
|
get block() {
|
|
136
136
|
return processedBlock.value;
|
|
137
137
|
},
|
|
138
138
|
get context() {
|
|
139
139
|
return props.context;
|
|
140
140
|
},
|
|
141
|
+
get id() {
|
|
142
|
+
return props.block.id;
|
|
143
|
+
},
|
|
141
144
|
[_IMMUTABLE]: {
|
|
142
145
|
block: _fnSignal((p0) => p0.value, [
|
|
143
146
|
processedBlock
|
|
144
147
|
], "p0.value"),
|
|
145
148
|
context: _fnSignal((p0) => p0.context, [
|
|
146
149
|
props
|
|
147
|
-
], "p0.context")
|
|
150
|
+
], "p0.context"),
|
|
151
|
+
id: _fnSignal((p0) => p0.block.id, [
|
|
152
|
+
props
|
|
153
|
+
], "p0.block.id")
|
|
148
154
|
}
|
|
149
155
|
}, 3, "jN_0"),
|
|
150
156
|
!((_a = blockComponent.value) == null ? void 0 : _a.noWrap) ? !repeatItem.value ? /* @__PURE__ */ _jsxC(BlockWrapper, {
|
|
@@ -10,13 +10,6 @@ const ComponentRef = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
10
10
|
Wrapper: props.isInteractive ? interactiveElement.InteractiveElement : props.componentRef,
|
|
11
11
|
shouldUpdate: false
|
|
12
12
|
});
|
|
13
|
-
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(({ track }) => {
|
|
14
|
-
const [props2] = qwik.useLexicalScope();
|
|
15
|
-
track(() => props2.componentOptions);
|
|
16
|
-
track(() => props2.blockChildren);
|
|
17
|
-
}, "ComponentRef_component_useTask_IpU82pM3MjU", [
|
|
18
|
-
props
|
|
19
|
-
]));
|
|
20
13
|
return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
21
14
|
children: props.componentRef ? /* @__PURE__ */ qwik._jsxC(state.Wrapper, {
|
|
22
15
|
...componentRef_helpers.getWrapperProps({
|
|
@@ -29,7 +22,7 @@ const ComponentRef = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
29
22
|
isInteractive: props.isInteractive,
|
|
30
23
|
contextValue: props.context
|
|
31
24
|
}),
|
|
32
|
-
children: (props.blockChildren || []).map((child) => {
|
|
25
|
+
children: props.componentRef ? (props.blockChildren || []).map((child) => {
|
|
33
26
|
return /* @__PURE__ */ qwik._jsxC(block.Block, {
|
|
34
27
|
block: child,
|
|
35
28
|
get context() {
|
|
@@ -53,7 +46,7 @@ const ComponentRef = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
53
46
|
], "p0.registeredComponents")
|
|
54
47
|
}
|
|
55
48
|
}, 3, child.id);
|
|
56
|
-
})
|
|
49
|
+
}) : null
|
|
57
50
|
}, 0, "z6_0") : null
|
|
58
51
|
}, 1, "z6_1");
|
|
59
52
|
}, "ComponentRef_component_tFQoBV6UFdc"));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { componentQrl, inlinedQrl, useStore,
|
|
1
|
+
import { componentQrl, inlinedQrl, useStore, _jsxC, _IMMUTABLE, _fnSignal } from "@builder.io/qwik";
|
|
2
2
|
import { Fragment } from "@builder.io/qwik/jsx-runtime";
|
|
3
3
|
import { Block } from "../../block.qwik.mjs";
|
|
4
4
|
import { InteractiveElement } from "../interactive-element.qwik.mjs";
|
|
@@ -8,13 +8,6 @@ const ComponentRef = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
8
8
|
Wrapper: props.isInteractive ? InteractiveElement : props.componentRef,
|
|
9
9
|
shouldUpdate: false
|
|
10
10
|
});
|
|
11
|
-
useTaskQrl(/* @__PURE__ */ inlinedQrl(({ track }) => {
|
|
12
|
-
const [props2] = useLexicalScope();
|
|
13
|
-
track(() => props2.componentOptions);
|
|
14
|
-
track(() => props2.blockChildren);
|
|
15
|
-
}, "ComponentRef_component_useTask_IpU82pM3MjU", [
|
|
16
|
-
props
|
|
17
|
-
]));
|
|
18
11
|
return /* @__PURE__ */ _jsxC(Fragment, {
|
|
19
12
|
children: props.componentRef ? /* @__PURE__ */ _jsxC(state.Wrapper, {
|
|
20
13
|
...getWrapperProps({
|
|
@@ -27,7 +20,7 @@ const ComponentRef = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
27
20
|
isInteractive: props.isInteractive,
|
|
28
21
|
contextValue: props.context
|
|
29
22
|
}),
|
|
30
|
-
children: (props.blockChildren || []).map((child) => {
|
|
23
|
+
children: props.componentRef ? (props.blockChildren || []).map((child) => {
|
|
31
24
|
return /* @__PURE__ */ _jsxC(Block, {
|
|
32
25
|
block: child,
|
|
33
26
|
get context() {
|
|
@@ -51,7 +44,7 @@ const ComponentRef = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
51
44
|
], "p0.registeredComponents")
|
|
52
45
|
}
|
|
53
46
|
}, 3, child.id);
|
|
54
|
-
})
|
|
47
|
+
}) : null
|
|
55
48
|
}, 0, "z6_0") : null
|
|
56
49
|
}, 1, "z6_1");
|
|
57
50
|
}, "ComponentRef_component_tFQoBV6UFdc"));
|