@builder.io/sdk-qwik 0.18.11 → 0.18.12
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/symbol/symbol.qwik.cjs +15 -10
- package/lib/browser/blocks/symbol/symbol.qwik.mjs +15 -10
- package/lib/browser/components/block/components/interactive-element.qwik.cjs +20 -12
- package/lib/browser/components/block/components/interactive-element.qwik.mjs +21 -13
- package/lib/browser/constants/sdk-version.qwik.cjs +1 -1
- package/lib/browser/constants/sdk-version.qwik.mjs +1 -1
- package/lib/edge/blocks/symbol/symbol.qwik.cjs +15 -10
- package/lib/edge/blocks/symbol/symbol.qwik.mjs +15 -10
- package/lib/edge/components/block/components/interactive-element.qwik.cjs +20 -12
- package/lib/edge/components/block/components/interactive-element.qwik.mjs +21 -13
- package/lib/edge/constants/sdk-version.qwik.cjs +1 -1
- package/lib/edge/constants/sdk-version.qwik.mjs +1 -1
- package/lib/node/blocks/symbol/symbol.qwik.cjs +15 -10
- package/lib/node/blocks/symbol/symbol.qwik.mjs +15 -10
- package/lib/node/components/block/components/interactive-element.qwik.cjs +20 -12
- package/lib/node/components/block/components/interactive-element.qwik.mjs +21 -13
- package/lib/node/constants/sdk-version.qwik.cjs +1 -1
- package/lib/node/constants/sdk-version.qwik.mjs +1 -1
- package/package.json +1 -1
- package/types/src/constants/sdk-version.d.ts +1 -1
|
@@ -5,18 +5,22 @@ const contentVariants = require("../../components/content-variants/content-varia
|
|
|
5
5
|
const getClassPropName = require("../../functions/get-class-prop-name.qwik.cjs");
|
|
6
6
|
const symbol_helpers = require("./symbol.helpers.qwik.cjs");
|
|
7
7
|
const setContent = function setContent2(props, state, blocksWrapper, contentWrapper, className) {
|
|
8
|
-
|
|
8
|
+
var _a;
|
|
9
|
+
if (state.contentToUse && state.symbolEntry === ((_a = props.symbol) == null ? void 0 : _a.entry))
|
|
9
10
|
return;
|
|
10
11
|
symbol_helpers.fetchSymbolContent({
|
|
11
12
|
symbol: props.symbol,
|
|
12
13
|
builderContextValue: props.builderContext
|
|
13
14
|
}).then((newContent) => {
|
|
14
|
-
|
|
15
|
+
var _a2;
|
|
16
|
+
if (newContent) {
|
|
15
17
|
state.contentToUse = newContent;
|
|
18
|
+
state.symbolEntry = (_a2 = props.symbol) == null ? void 0 : _a2.entry;
|
|
19
|
+
}
|
|
16
20
|
});
|
|
17
21
|
};
|
|
18
22
|
const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
19
|
-
var _a;
|
|
23
|
+
var _a, _b;
|
|
20
24
|
const blocksWrapper = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
21
25
|
return "div";
|
|
22
26
|
}, "Symbol_component_blocksWrapper_useComputed_B5dlF985gMM"));
|
|
@@ -24,19 +28,20 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
24
28
|
return "div";
|
|
25
29
|
}, "Symbol_component_contentWrapper_useComputed_EvmPpPj8JTo"));
|
|
26
30
|
const className = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
27
|
-
var _a2,
|
|
31
|
+
var _a2, _b2;
|
|
28
32
|
const [props2] = qwik.useLexicalScope();
|
|
29
33
|
return [
|
|
30
34
|
props2.attributes[getClassPropName.getClassPropName()],
|
|
31
35
|
"builder-symbol",
|
|
32
36
|
((_a2 = props2.symbol) == null ? void 0 : _a2.inline) ? "builder-inline-symbol" : void 0,
|
|
33
|
-
((
|
|
37
|
+
((_b2 = props2.symbol) == null ? void 0 : _b2.dynamic) || props2.dynamic ? "builder-dynamic-symbol" : void 0
|
|
34
38
|
].filter(Boolean).join(" ");
|
|
35
39
|
}, "Symbol_component_className_useComputed_Wb6GqgtDHpE", [
|
|
36
40
|
props
|
|
37
41
|
]));
|
|
38
42
|
const state = qwik.useStore({
|
|
39
|
-
contentToUse: (_a = props.symbol) == null ? void 0 : _a.content
|
|
43
|
+
contentToUse: (_a = props.symbol) == null ? void 0 : _a.content,
|
|
44
|
+
symbolEntry: (_b = props.symbol) == null ? void 0 : _b.entry
|
|
40
45
|
});
|
|
41
46
|
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(({ track }) => {
|
|
42
47
|
const [blocksWrapper2, className2, contentWrapper2, props2, state2] = qwik.useLexicalScope();
|
|
@@ -73,11 +78,11 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
73
78
|
return Object.values(props.builderComponents);
|
|
74
79
|
},
|
|
75
80
|
get data() {
|
|
76
|
-
var _a2,
|
|
81
|
+
var _a2, _b2, _c;
|
|
77
82
|
return {
|
|
78
83
|
...(_a2 = props.symbol) == null ? void 0 : _a2.data,
|
|
79
84
|
...props.builderContext.localState,
|
|
80
|
-
...(_c = (
|
|
85
|
+
...(_c = (_b2 = state.contentToUse) == null ? void 0 : _b2.data) == null ? void 0 : _c.state
|
|
81
86
|
};
|
|
82
87
|
},
|
|
83
88
|
get canTrack() {
|
|
@@ -131,11 +136,11 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
131
136
|
props
|
|
132
137
|
], "Object.values(p0.builderComponents)"),
|
|
133
138
|
data: qwik._fnSignal((p0, p1) => {
|
|
134
|
-
var _a2,
|
|
139
|
+
var _a2, _b2, _c;
|
|
135
140
|
return {
|
|
136
141
|
...(_a2 = p0.symbol) == null ? void 0 : _a2.data,
|
|
137
142
|
...p0.builderContext.localState,
|
|
138
|
-
...(_c = (
|
|
143
|
+
...(_c = (_b2 = p1.contentToUse) == null ? void 0 : _b2.data) == null ? void 0 : _c.state
|
|
139
144
|
};
|
|
140
145
|
}, [
|
|
141
146
|
props,
|
|
@@ -3,18 +3,22 @@ import { ContentVariants } from "../../components/content-variants/content-varia
|
|
|
3
3
|
import { getClassPropName } from "../../functions/get-class-prop-name.qwik.mjs";
|
|
4
4
|
import { fetchSymbolContent } from "./symbol.helpers.qwik.mjs";
|
|
5
5
|
const setContent = function setContent2(props, state, blocksWrapper, contentWrapper, className) {
|
|
6
|
-
|
|
6
|
+
var _a;
|
|
7
|
+
if (state.contentToUse && state.symbolEntry === ((_a = props.symbol) == null ? void 0 : _a.entry))
|
|
7
8
|
return;
|
|
8
9
|
fetchSymbolContent({
|
|
9
10
|
symbol: props.symbol,
|
|
10
11
|
builderContextValue: props.builderContext
|
|
11
12
|
}).then((newContent) => {
|
|
12
|
-
|
|
13
|
+
var _a2;
|
|
14
|
+
if (newContent) {
|
|
13
15
|
state.contentToUse = newContent;
|
|
16
|
+
state.symbolEntry = (_a2 = props.symbol) == null ? void 0 : _a2.entry;
|
|
17
|
+
}
|
|
14
18
|
});
|
|
15
19
|
};
|
|
16
20
|
const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
17
|
-
var _a;
|
|
21
|
+
var _a, _b;
|
|
18
22
|
const blocksWrapper = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
19
23
|
return "div";
|
|
20
24
|
}, "Symbol_component_blocksWrapper_useComputed_B5dlF985gMM"));
|
|
@@ -22,19 +26,20 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
22
26
|
return "div";
|
|
23
27
|
}, "Symbol_component_contentWrapper_useComputed_EvmPpPj8JTo"));
|
|
24
28
|
const className = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
25
|
-
var _a2,
|
|
29
|
+
var _a2, _b2;
|
|
26
30
|
const [props2] = useLexicalScope();
|
|
27
31
|
return [
|
|
28
32
|
props2.attributes[getClassPropName()],
|
|
29
33
|
"builder-symbol",
|
|
30
34
|
((_a2 = props2.symbol) == null ? void 0 : _a2.inline) ? "builder-inline-symbol" : void 0,
|
|
31
|
-
((
|
|
35
|
+
((_b2 = props2.symbol) == null ? void 0 : _b2.dynamic) || props2.dynamic ? "builder-dynamic-symbol" : void 0
|
|
32
36
|
].filter(Boolean).join(" ");
|
|
33
37
|
}, "Symbol_component_className_useComputed_Wb6GqgtDHpE", [
|
|
34
38
|
props
|
|
35
39
|
]));
|
|
36
40
|
const state = useStore({
|
|
37
|
-
contentToUse: (_a = props.symbol) == null ? void 0 : _a.content
|
|
41
|
+
contentToUse: (_a = props.symbol) == null ? void 0 : _a.content,
|
|
42
|
+
symbolEntry: (_b = props.symbol) == null ? void 0 : _b.entry
|
|
38
43
|
});
|
|
39
44
|
useTaskQrl(/* @__PURE__ */ inlinedQrl(({ track }) => {
|
|
40
45
|
const [blocksWrapper2, className2, contentWrapper2, props2, state2] = useLexicalScope();
|
|
@@ -71,11 +76,11 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
71
76
|
return Object.values(props.builderComponents);
|
|
72
77
|
},
|
|
73
78
|
get data() {
|
|
74
|
-
var _a2,
|
|
79
|
+
var _a2, _b2, _c;
|
|
75
80
|
return {
|
|
76
81
|
...(_a2 = props.symbol) == null ? void 0 : _a2.data,
|
|
77
82
|
...props.builderContext.localState,
|
|
78
|
-
...(_c = (
|
|
83
|
+
...(_c = (_b2 = state.contentToUse) == null ? void 0 : _b2.data) == null ? void 0 : _c.state
|
|
79
84
|
};
|
|
80
85
|
},
|
|
81
86
|
get canTrack() {
|
|
@@ -129,11 +134,11 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
129
134
|
props
|
|
130
135
|
], "Object.values(p0.builderComponents)"),
|
|
131
136
|
data: _fnSignal((p0, p1) => {
|
|
132
|
-
var _a2,
|
|
137
|
+
var _a2, _b2, _c;
|
|
133
138
|
return {
|
|
134
139
|
...(_a2 = p0.symbol) == null ? void 0 : _a2.data,
|
|
135
140
|
...p0.builderContext.localState,
|
|
136
|
-
...(_c = (
|
|
141
|
+
...(_c = (_b2 = p1.contentToUse) == null ? void 0 : _b2.data) == null ? void 0 : _c.state
|
|
137
142
|
};
|
|
138
143
|
}, [
|
|
139
144
|
props,
|
|
@@ -31,6 +31,21 @@ const InteractiveElement = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwi
|
|
|
31
31
|
}, "InteractiveElement_component_targetWrapperProps_useComputed_C9HrUQQCHDA", [
|
|
32
32
|
props
|
|
33
33
|
]));
|
|
34
|
+
const state = qwik.useStore({
|
|
35
|
+
forceRenderCount: 0
|
|
36
|
+
});
|
|
37
|
+
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(({ track }) => {
|
|
38
|
+
const [props2, state2] = qwik.useLexicalScope();
|
|
39
|
+
track(() => props2.wrapperProps);
|
|
40
|
+
track(() => {
|
|
41
|
+
var _a, _b;
|
|
42
|
+
return (_b = (_a = props2.block) == null ? void 0 : _a.component) == null ? void 0 : _b.options;
|
|
43
|
+
});
|
|
44
|
+
state2.forceRenderCount = state2.forceRenderCount + 1;
|
|
45
|
+
}, "InteractiveElement_component_useTask_on04DcXeJSE", [
|
|
46
|
+
props,
|
|
47
|
+
state
|
|
48
|
+
]));
|
|
34
49
|
return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
35
50
|
children: props.Wrapper.load ? /* @__PURE__ */ qwik._jsxC(awaiter.Awaiter, {
|
|
36
51
|
get load() {
|
|
@@ -60,19 +75,12 @@ const InteractiveElement = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwi
|
|
|
60
75
|
props
|
|
61
76
|
], "p0.wrapperProps")
|
|
62
77
|
}
|
|
63
|
-
}, 1, "q0_1") : /* @__PURE__ */ qwik.
|
|
78
|
+
}, 1, "q0_1") : /* @__PURE__ */ qwik.createElement(props.Wrapper, {
|
|
64
79
|
...targetWrapperProps.value,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
[qwik._IMMUTABLE]: {
|
|
70
|
-
attributes: qwik._fnSignal((p0) => p0.value, [
|
|
71
|
-
attributes
|
|
72
|
-
], "p0.value")
|
|
73
|
-
}
|
|
74
|
-
}, 0, "q0_3")
|
|
75
|
-
}, 1, "q0_4");
|
|
80
|
+
attributes: attributes.value,
|
|
81
|
+
key: "wrapper-" + state.forceRenderCount
|
|
82
|
+
}, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "q0_2"))
|
|
83
|
+
}, 1, "q0_3");
|
|
76
84
|
}, "InteractiveElement_component_0UqfJpjhn0g"));
|
|
77
85
|
exports.InteractiveElement = InteractiveElement;
|
|
78
86
|
exports.default = InteractiveElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { componentQrl, inlinedQrl, _jsxBranch, useComputedQrl, useLexicalScope, _jsxC, Slot, _IMMUTABLE, _fnSignal } from "@builder.io/qwik";
|
|
1
|
+
import { componentQrl, inlinedQrl, _jsxBranch, useComputedQrl, useLexicalScope, useStore, useTaskQrl, _jsxC, Slot, _IMMUTABLE, _fnSignal, createElement } from "@builder.io/qwik";
|
|
2
2
|
import { Fragment } from "@builder.io/qwik/jsx-runtime";
|
|
3
3
|
import { getBlockActions } from "../../../functions/get-block-actions.qwik.mjs";
|
|
4
4
|
import { getBlockProperties } from "../../../functions/get-block-properties.qwik.mjs";
|
|
@@ -29,6 +29,21 @@ const InteractiveElement = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQ
|
|
|
29
29
|
}, "InteractiveElement_component_targetWrapperProps_useComputed_C9HrUQQCHDA", [
|
|
30
30
|
props
|
|
31
31
|
]));
|
|
32
|
+
const state = useStore({
|
|
33
|
+
forceRenderCount: 0
|
|
34
|
+
});
|
|
35
|
+
useTaskQrl(/* @__PURE__ */ inlinedQrl(({ track }) => {
|
|
36
|
+
const [props2, state2] = useLexicalScope();
|
|
37
|
+
track(() => props2.wrapperProps);
|
|
38
|
+
track(() => {
|
|
39
|
+
var _a, _b;
|
|
40
|
+
return (_b = (_a = props2.block) == null ? void 0 : _a.component) == null ? void 0 : _b.options;
|
|
41
|
+
});
|
|
42
|
+
state2.forceRenderCount = state2.forceRenderCount + 1;
|
|
43
|
+
}, "InteractiveElement_component_useTask_on04DcXeJSE", [
|
|
44
|
+
props,
|
|
45
|
+
state
|
|
46
|
+
]));
|
|
32
47
|
return /* @__PURE__ */ _jsxC(Fragment, {
|
|
33
48
|
children: props.Wrapper.load ? /* @__PURE__ */ _jsxC(Awaiter, {
|
|
34
49
|
get load() {
|
|
@@ -58,19 +73,12 @@ const InteractiveElement = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQ
|
|
|
58
73
|
props
|
|
59
74
|
], "p0.wrapperProps")
|
|
60
75
|
}
|
|
61
|
-
}, 1, "q0_1") : /* @__PURE__ */
|
|
76
|
+
}, 1, "q0_1") : /* @__PURE__ */ createElement(props.Wrapper, {
|
|
62
77
|
...targetWrapperProps.value,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
[_IMMUTABLE]: {
|
|
68
|
-
attributes: _fnSignal((p0) => p0.value, [
|
|
69
|
-
attributes
|
|
70
|
-
], "p0.value")
|
|
71
|
-
}
|
|
72
|
-
}, 0, "q0_3")
|
|
73
|
-
}, 1, "q0_4");
|
|
78
|
+
attributes: attributes.value,
|
|
79
|
+
key: "wrapper-" + state.forceRenderCount
|
|
80
|
+
}, /* @__PURE__ */ _jsxC(Slot, null, 3, "q0_2"))
|
|
81
|
+
}, 1, "q0_3");
|
|
74
82
|
}, "InteractiveElement_component_0UqfJpjhn0g"));
|
|
75
83
|
export {
|
|
76
84
|
InteractiveElement,
|
|
@@ -5,18 +5,22 @@ const contentVariants = require("../../components/content-variants/content-varia
|
|
|
5
5
|
const getClassPropName = require("../../functions/get-class-prop-name.qwik.cjs");
|
|
6
6
|
const symbol_helpers = require("./symbol.helpers.qwik.cjs");
|
|
7
7
|
const setContent = function setContent2(props, state, blocksWrapper, contentWrapper, className) {
|
|
8
|
-
|
|
8
|
+
var _a;
|
|
9
|
+
if (state.contentToUse && state.symbolEntry === ((_a = props.symbol) == null ? void 0 : _a.entry))
|
|
9
10
|
return;
|
|
10
11
|
symbol_helpers.fetchSymbolContent({
|
|
11
12
|
symbol: props.symbol,
|
|
12
13
|
builderContextValue: props.builderContext
|
|
13
14
|
}).then((newContent) => {
|
|
14
|
-
|
|
15
|
+
var _a2;
|
|
16
|
+
if (newContent) {
|
|
15
17
|
state.contentToUse = newContent;
|
|
18
|
+
state.symbolEntry = (_a2 = props.symbol) == null ? void 0 : _a2.entry;
|
|
19
|
+
}
|
|
16
20
|
});
|
|
17
21
|
};
|
|
18
22
|
const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
19
|
-
var _a;
|
|
23
|
+
var _a, _b;
|
|
20
24
|
const blocksWrapper = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
21
25
|
return "div";
|
|
22
26
|
}, "Symbol_component_blocksWrapper_useComputed_B5dlF985gMM"));
|
|
@@ -24,19 +28,20 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
24
28
|
return "div";
|
|
25
29
|
}, "Symbol_component_contentWrapper_useComputed_EvmPpPj8JTo"));
|
|
26
30
|
const className = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
27
|
-
var _a2,
|
|
31
|
+
var _a2, _b2;
|
|
28
32
|
const [props2] = qwik.useLexicalScope();
|
|
29
33
|
return [
|
|
30
34
|
props2.attributes[getClassPropName.getClassPropName()],
|
|
31
35
|
"builder-symbol",
|
|
32
36
|
((_a2 = props2.symbol) == null ? void 0 : _a2.inline) ? "builder-inline-symbol" : void 0,
|
|
33
|
-
((
|
|
37
|
+
((_b2 = props2.symbol) == null ? void 0 : _b2.dynamic) || props2.dynamic ? "builder-dynamic-symbol" : void 0
|
|
34
38
|
].filter(Boolean).join(" ");
|
|
35
39
|
}, "Symbol_component_className_useComputed_Wb6GqgtDHpE", [
|
|
36
40
|
props
|
|
37
41
|
]));
|
|
38
42
|
const state = qwik.useStore({
|
|
39
|
-
contentToUse: (_a = props.symbol) == null ? void 0 : _a.content
|
|
43
|
+
contentToUse: (_a = props.symbol) == null ? void 0 : _a.content,
|
|
44
|
+
symbolEntry: (_b = props.symbol) == null ? void 0 : _b.entry
|
|
40
45
|
});
|
|
41
46
|
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(({ track }) => {
|
|
42
47
|
const [blocksWrapper2, className2, contentWrapper2, props2, state2] = qwik.useLexicalScope();
|
|
@@ -73,11 +78,11 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
73
78
|
return Object.values(props.builderComponents);
|
|
74
79
|
},
|
|
75
80
|
get data() {
|
|
76
|
-
var _a2,
|
|
81
|
+
var _a2, _b2, _c;
|
|
77
82
|
return {
|
|
78
83
|
...(_a2 = props.symbol) == null ? void 0 : _a2.data,
|
|
79
84
|
...props.builderContext.localState,
|
|
80
|
-
...(_c = (
|
|
85
|
+
...(_c = (_b2 = state.contentToUse) == null ? void 0 : _b2.data) == null ? void 0 : _c.state
|
|
81
86
|
};
|
|
82
87
|
},
|
|
83
88
|
get canTrack() {
|
|
@@ -131,11 +136,11 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
131
136
|
props
|
|
132
137
|
], "Object.values(p0.builderComponents)"),
|
|
133
138
|
data: qwik._fnSignal((p0, p1) => {
|
|
134
|
-
var _a2,
|
|
139
|
+
var _a2, _b2, _c;
|
|
135
140
|
return {
|
|
136
141
|
...(_a2 = p0.symbol) == null ? void 0 : _a2.data,
|
|
137
142
|
...p0.builderContext.localState,
|
|
138
|
-
...(_c = (
|
|
143
|
+
...(_c = (_b2 = p1.contentToUse) == null ? void 0 : _b2.data) == null ? void 0 : _c.state
|
|
139
144
|
};
|
|
140
145
|
}, [
|
|
141
146
|
props,
|
|
@@ -3,18 +3,22 @@ import { ContentVariants } from "../../components/content-variants/content-varia
|
|
|
3
3
|
import { getClassPropName } from "../../functions/get-class-prop-name.qwik.mjs";
|
|
4
4
|
import { fetchSymbolContent } from "./symbol.helpers.qwik.mjs";
|
|
5
5
|
const setContent = function setContent2(props, state, blocksWrapper, contentWrapper, className) {
|
|
6
|
-
|
|
6
|
+
var _a;
|
|
7
|
+
if (state.contentToUse && state.symbolEntry === ((_a = props.symbol) == null ? void 0 : _a.entry))
|
|
7
8
|
return;
|
|
8
9
|
fetchSymbolContent({
|
|
9
10
|
symbol: props.symbol,
|
|
10
11
|
builderContextValue: props.builderContext
|
|
11
12
|
}).then((newContent) => {
|
|
12
|
-
|
|
13
|
+
var _a2;
|
|
14
|
+
if (newContent) {
|
|
13
15
|
state.contentToUse = newContent;
|
|
16
|
+
state.symbolEntry = (_a2 = props.symbol) == null ? void 0 : _a2.entry;
|
|
17
|
+
}
|
|
14
18
|
});
|
|
15
19
|
};
|
|
16
20
|
const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
17
|
-
var _a;
|
|
21
|
+
var _a, _b;
|
|
18
22
|
const blocksWrapper = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
19
23
|
return "div";
|
|
20
24
|
}, "Symbol_component_blocksWrapper_useComputed_B5dlF985gMM"));
|
|
@@ -22,19 +26,20 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
22
26
|
return "div";
|
|
23
27
|
}, "Symbol_component_contentWrapper_useComputed_EvmPpPj8JTo"));
|
|
24
28
|
const className = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
25
|
-
var _a2,
|
|
29
|
+
var _a2, _b2;
|
|
26
30
|
const [props2] = useLexicalScope();
|
|
27
31
|
return [
|
|
28
32
|
props2.attributes[getClassPropName()],
|
|
29
33
|
"builder-symbol",
|
|
30
34
|
((_a2 = props2.symbol) == null ? void 0 : _a2.inline) ? "builder-inline-symbol" : void 0,
|
|
31
|
-
((
|
|
35
|
+
((_b2 = props2.symbol) == null ? void 0 : _b2.dynamic) || props2.dynamic ? "builder-dynamic-symbol" : void 0
|
|
32
36
|
].filter(Boolean).join(" ");
|
|
33
37
|
}, "Symbol_component_className_useComputed_Wb6GqgtDHpE", [
|
|
34
38
|
props
|
|
35
39
|
]));
|
|
36
40
|
const state = useStore({
|
|
37
|
-
contentToUse: (_a = props.symbol) == null ? void 0 : _a.content
|
|
41
|
+
contentToUse: (_a = props.symbol) == null ? void 0 : _a.content,
|
|
42
|
+
symbolEntry: (_b = props.symbol) == null ? void 0 : _b.entry
|
|
38
43
|
});
|
|
39
44
|
useTaskQrl(/* @__PURE__ */ inlinedQrl(({ track }) => {
|
|
40
45
|
const [blocksWrapper2, className2, contentWrapper2, props2, state2] = useLexicalScope();
|
|
@@ -71,11 +76,11 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
71
76
|
return Object.values(props.builderComponents);
|
|
72
77
|
},
|
|
73
78
|
get data() {
|
|
74
|
-
var _a2,
|
|
79
|
+
var _a2, _b2, _c;
|
|
75
80
|
return {
|
|
76
81
|
...(_a2 = props.symbol) == null ? void 0 : _a2.data,
|
|
77
82
|
...props.builderContext.localState,
|
|
78
|
-
...(_c = (
|
|
83
|
+
...(_c = (_b2 = state.contentToUse) == null ? void 0 : _b2.data) == null ? void 0 : _c.state
|
|
79
84
|
};
|
|
80
85
|
},
|
|
81
86
|
get canTrack() {
|
|
@@ -129,11 +134,11 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
129
134
|
props
|
|
130
135
|
], "Object.values(p0.builderComponents)"),
|
|
131
136
|
data: _fnSignal((p0, p1) => {
|
|
132
|
-
var _a2,
|
|
137
|
+
var _a2, _b2, _c;
|
|
133
138
|
return {
|
|
134
139
|
...(_a2 = p0.symbol) == null ? void 0 : _a2.data,
|
|
135
140
|
...p0.builderContext.localState,
|
|
136
|
-
...(_c = (
|
|
141
|
+
...(_c = (_b2 = p1.contentToUse) == null ? void 0 : _b2.data) == null ? void 0 : _c.state
|
|
137
142
|
};
|
|
138
143
|
}, [
|
|
139
144
|
props,
|
|
@@ -31,6 +31,21 @@ const InteractiveElement = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwi
|
|
|
31
31
|
}, "InteractiveElement_component_targetWrapperProps_useComputed_C9HrUQQCHDA", [
|
|
32
32
|
props
|
|
33
33
|
]));
|
|
34
|
+
const state = qwik.useStore({
|
|
35
|
+
forceRenderCount: 0
|
|
36
|
+
});
|
|
37
|
+
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(({ track }) => {
|
|
38
|
+
const [props2, state2] = qwik.useLexicalScope();
|
|
39
|
+
track(() => props2.wrapperProps);
|
|
40
|
+
track(() => {
|
|
41
|
+
var _a, _b;
|
|
42
|
+
return (_b = (_a = props2.block) == null ? void 0 : _a.component) == null ? void 0 : _b.options;
|
|
43
|
+
});
|
|
44
|
+
state2.forceRenderCount = state2.forceRenderCount + 1;
|
|
45
|
+
}, "InteractiveElement_component_useTask_on04DcXeJSE", [
|
|
46
|
+
props,
|
|
47
|
+
state
|
|
48
|
+
]));
|
|
34
49
|
return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
35
50
|
children: props.Wrapper.load ? /* @__PURE__ */ qwik._jsxC(awaiter.Awaiter, {
|
|
36
51
|
get load() {
|
|
@@ -60,19 +75,12 @@ const InteractiveElement = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwi
|
|
|
60
75
|
props
|
|
61
76
|
], "p0.wrapperProps")
|
|
62
77
|
}
|
|
63
|
-
}, 1, "q0_1") : /* @__PURE__ */ qwik.
|
|
78
|
+
}, 1, "q0_1") : /* @__PURE__ */ qwik.createElement(props.Wrapper, {
|
|
64
79
|
...targetWrapperProps.value,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
[qwik._IMMUTABLE]: {
|
|
70
|
-
attributes: qwik._fnSignal((p0) => p0.value, [
|
|
71
|
-
attributes
|
|
72
|
-
], "p0.value")
|
|
73
|
-
}
|
|
74
|
-
}, 0, "q0_3")
|
|
75
|
-
}, 1, "q0_4");
|
|
80
|
+
attributes: attributes.value,
|
|
81
|
+
key: "wrapper-" + state.forceRenderCount
|
|
82
|
+
}, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "q0_2"))
|
|
83
|
+
}, 1, "q0_3");
|
|
76
84
|
}, "InteractiveElement_component_0UqfJpjhn0g"));
|
|
77
85
|
exports.InteractiveElement = InteractiveElement;
|
|
78
86
|
exports.default = InteractiveElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { componentQrl, inlinedQrl, _jsxBranch, useComputedQrl, useLexicalScope, _jsxC, Slot, _IMMUTABLE, _fnSignal } from "@builder.io/qwik";
|
|
1
|
+
import { componentQrl, inlinedQrl, _jsxBranch, useComputedQrl, useLexicalScope, useStore, useTaskQrl, _jsxC, Slot, _IMMUTABLE, _fnSignal, createElement } from "@builder.io/qwik";
|
|
2
2
|
import { Fragment } from "@builder.io/qwik/jsx-runtime";
|
|
3
3
|
import { getBlockActions } from "../../../functions/get-block-actions.qwik.mjs";
|
|
4
4
|
import { getBlockProperties } from "../../../functions/get-block-properties.qwik.mjs";
|
|
@@ -29,6 +29,21 @@ const InteractiveElement = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQ
|
|
|
29
29
|
}, "InteractiveElement_component_targetWrapperProps_useComputed_C9HrUQQCHDA", [
|
|
30
30
|
props
|
|
31
31
|
]));
|
|
32
|
+
const state = useStore({
|
|
33
|
+
forceRenderCount: 0
|
|
34
|
+
});
|
|
35
|
+
useTaskQrl(/* @__PURE__ */ inlinedQrl(({ track }) => {
|
|
36
|
+
const [props2, state2] = useLexicalScope();
|
|
37
|
+
track(() => props2.wrapperProps);
|
|
38
|
+
track(() => {
|
|
39
|
+
var _a, _b;
|
|
40
|
+
return (_b = (_a = props2.block) == null ? void 0 : _a.component) == null ? void 0 : _b.options;
|
|
41
|
+
});
|
|
42
|
+
state2.forceRenderCount = state2.forceRenderCount + 1;
|
|
43
|
+
}, "InteractiveElement_component_useTask_on04DcXeJSE", [
|
|
44
|
+
props,
|
|
45
|
+
state
|
|
46
|
+
]));
|
|
32
47
|
return /* @__PURE__ */ _jsxC(Fragment, {
|
|
33
48
|
children: props.Wrapper.load ? /* @__PURE__ */ _jsxC(Awaiter, {
|
|
34
49
|
get load() {
|
|
@@ -58,19 +73,12 @@ const InteractiveElement = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQ
|
|
|
58
73
|
props
|
|
59
74
|
], "p0.wrapperProps")
|
|
60
75
|
}
|
|
61
|
-
}, 1, "q0_1") : /* @__PURE__ */
|
|
76
|
+
}, 1, "q0_1") : /* @__PURE__ */ createElement(props.Wrapper, {
|
|
62
77
|
...targetWrapperProps.value,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
[_IMMUTABLE]: {
|
|
68
|
-
attributes: _fnSignal((p0) => p0.value, [
|
|
69
|
-
attributes
|
|
70
|
-
], "p0.value")
|
|
71
|
-
}
|
|
72
|
-
}, 0, "q0_3")
|
|
73
|
-
}, 1, "q0_4");
|
|
78
|
+
attributes: attributes.value,
|
|
79
|
+
key: "wrapper-" + state.forceRenderCount
|
|
80
|
+
}, /* @__PURE__ */ _jsxC(Slot, null, 3, "q0_2"))
|
|
81
|
+
}, 1, "q0_3");
|
|
74
82
|
}, "InteractiveElement_component_0UqfJpjhn0g"));
|
|
75
83
|
export {
|
|
76
84
|
InteractiveElement,
|
|
@@ -5,18 +5,22 @@ const contentVariants = require("../../components/content-variants/content-varia
|
|
|
5
5
|
const getClassPropName = require("../../functions/get-class-prop-name.qwik.cjs");
|
|
6
6
|
const symbol_helpers = require("./symbol.helpers.qwik.cjs");
|
|
7
7
|
const setContent = function setContent2(props, state, blocksWrapper, contentWrapper, className) {
|
|
8
|
-
|
|
8
|
+
var _a;
|
|
9
|
+
if (state.contentToUse && state.symbolEntry === ((_a = props.symbol) == null ? void 0 : _a.entry))
|
|
9
10
|
return;
|
|
10
11
|
symbol_helpers.fetchSymbolContent({
|
|
11
12
|
symbol: props.symbol,
|
|
12
13
|
builderContextValue: props.builderContext
|
|
13
14
|
}).then((newContent) => {
|
|
14
|
-
|
|
15
|
+
var _a2;
|
|
16
|
+
if (newContent) {
|
|
15
17
|
state.contentToUse = newContent;
|
|
18
|
+
state.symbolEntry = (_a2 = props.symbol) == null ? void 0 : _a2.entry;
|
|
19
|
+
}
|
|
16
20
|
});
|
|
17
21
|
};
|
|
18
22
|
const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
19
|
-
var _a;
|
|
23
|
+
var _a, _b;
|
|
20
24
|
const blocksWrapper = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
21
25
|
return "div";
|
|
22
26
|
}, "Symbol_component_blocksWrapper_useComputed_B5dlF985gMM"));
|
|
@@ -24,19 +28,20 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
24
28
|
return "div";
|
|
25
29
|
}, "Symbol_component_contentWrapper_useComputed_EvmPpPj8JTo"));
|
|
26
30
|
const className = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
27
|
-
var _a2,
|
|
31
|
+
var _a2, _b2;
|
|
28
32
|
const [props2] = qwik.useLexicalScope();
|
|
29
33
|
return [
|
|
30
34
|
props2.attributes[getClassPropName.getClassPropName()],
|
|
31
35
|
"builder-symbol",
|
|
32
36
|
((_a2 = props2.symbol) == null ? void 0 : _a2.inline) ? "builder-inline-symbol" : void 0,
|
|
33
|
-
((
|
|
37
|
+
((_b2 = props2.symbol) == null ? void 0 : _b2.dynamic) || props2.dynamic ? "builder-dynamic-symbol" : void 0
|
|
34
38
|
].filter(Boolean).join(" ");
|
|
35
39
|
}, "Symbol_component_className_useComputed_Wb6GqgtDHpE", [
|
|
36
40
|
props
|
|
37
41
|
]));
|
|
38
42
|
const state = qwik.useStore({
|
|
39
|
-
contentToUse: (_a = props.symbol) == null ? void 0 : _a.content
|
|
43
|
+
contentToUse: (_a = props.symbol) == null ? void 0 : _a.content,
|
|
44
|
+
symbolEntry: (_b = props.symbol) == null ? void 0 : _b.entry
|
|
40
45
|
});
|
|
41
46
|
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(({ track }) => {
|
|
42
47
|
const [blocksWrapper2, className2, contentWrapper2, props2, state2] = qwik.useLexicalScope();
|
|
@@ -73,11 +78,11 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
73
78
|
return Object.values(props.builderComponents);
|
|
74
79
|
},
|
|
75
80
|
get data() {
|
|
76
|
-
var _a2,
|
|
81
|
+
var _a2, _b2, _c;
|
|
77
82
|
return {
|
|
78
83
|
...(_a2 = props.symbol) == null ? void 0 : _a2.data,
|
|
79
84
|
...props.builderContext.localState,
|
|
80
|
-
...(_c = (
|
|
85
|
+
...(_c = (_b2 = state.contentToUse) == null ? void 0 : _b2.data) == null ? void 0 : _c.state
|
|
81
86
|
};
|
|
82
87
|
},
|
|
83
88
|
get canTrack() {
|
|
@@ -131,11 +136,11 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
131
136
|
props
|
|
132
137
|
], "Object.values(p0.builderComponents)"),
|
|
133
138
|
data: qwik._fnSignal((p0, p1) => {
|
|
134
|
-
var _a2,
|
|
139
|
+
var _a2, _b2, _c;
|
|
135
140
|
return {
|
|
136
141
|
...(_a2 = p0.symbol) == null ? void 0 : _a2.data,
|
|
137
142
|
...p0.builderContext.localState,
|
|
138
|
-
...(_c = (
|
|
143
|
+
...(_c = (_b2 = p1.contentToUse) == null ? void 0 : _b2.data) == null ? void 0 : _c.state
|
|
139
144
|
};
|
|
140
145
|
}, [
|
|
141
146
|
props,
|
|
@@ -3,18 +3,22 @@ import { ContentVariants } from "../../components/content-variants/content-varia
|
|
|
3
3
|
import { getClassPropName } from "../../functions/get-class-prop-name.qwik.mjs";
|
|
4
4
|
import { fetchSymbolContent } from "./symbol.helpers.qwik.mjs";
|
|
5
5
|
const setContent = function setContent2(props, state, blocksWrapper, contentWrapper, className) {
|
|
6
|
-
|
|
6
|
+
var _a;
|
|
7
|
+
if (state.contentToUse && state.symbolEntry === ((_a = props.symbol) == null ? void 0 : _a.entry))
|
|
7
8
|
return;
|
|
8
9
|
fetchSymbolContent({
|
|
9
10
|
symbol: props.symbol,
|
|
10
11
|
builderContextValue: props.builderContext
|
|
11
12
|
}).then((newContent) => {
|
|
12
|
-
|
|
13
|
+
var _a2;
|
|
14
|
+
if (newContent) {
|
|
13
15
|
state.contentToUse = newContent;
|
|
16
|
+
state.symbolEntry = (_a2 = props.symbol) == null ? void 0 : _a2.entry;
|
|
17
|
+
}
|
|
14
18
|
});
|
|
15
19
|
};
|
|
16
20
|
const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
17
|
-
var _a;
|
|
21
|
+
var _a, _b;
|
|
18
22
|
const blocksWrapper = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
19
23
|
return "div";
|
|
20
24
|
}, "Symbol_component_blocksWrapper_useComputed_B5dlF985gMM"));
|
|
@@ -22,19 +26,20 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
22
26
|
return "div";
|
|
23
27
|
}, "Symbol_component_contentWrapper_useComputed_EvmPpPj8JTo"));
|
|
24
28
|
const className = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
25
|
-
var _a2,
|
|
29
|
+
var _a2, _b2;
|
|
26
30
|
const [props2] = useLexicalScope();
|
|
27
31
|
return [
|
|
28
32
|
props2.attributes[getClassPropName()],
|
|
29
33
|
"builder-symbol",
|
|
30
34
|
((_a2 = props2.symbol) == null ? void 0 : _a2.inline) ? "builder-inline-symbol" : void 0,
|
|
31
|
-
((
|
|
35
|
+
((_b2 = props2.symbol) == null ? void 0 : _b2.dynamic) || props2.dynamic ? "builder-dynamic-symbol" : void 0
|
|
32
36
|
].filter(Boolean).join(" ");
|
|
33
37
|
}, "Symbol_component_className_useComputed_Wb6GqgtDHpE", [
|
|
34
38
|
props
|
|
35
39
|
]));
|
|
36
40
|
const state = useStore({
|
|
37
|
-
contentToUse: (_a = props.symbol) == null ? void 0 : _a.content
|
|
41
|
+
contentToUse: (_a = props.symbol) == null ? void 0 : _a.content,
|
|
42
|
+
symbolEntry: (_b = props.symbol) == null ? void 0 : _b.entry
|
|
38
43
|
});
|
|
39
44
|
useTaskQrl(/* @__PURE__ */ inlinedQrl(({ track }) => {
|
|
40
45
|
const [blocksWrapper2, className2, contentWrapper2, props2, state2] = useLexicalScope();
|
|
@@ -71,11 +76,11 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
71
76
|
return Object.values(props.builderComponents);
|
|
72
77
|
},
|
|
73
78
|
get data() {
|
|
74
|
-
var _a2,
|
|
79
|
+
var _a2, _b2, _c;
|
|
75
80
|
return {
|
|
76
81
|
...(_a2 = props.symbol) == null ? void 0 : _a2.data,
|
|
77
82
|
...props.builderContext.localState,
|
|
78
|
-
...(_c = (
|
|
83
|
+
...(_c = (_b2 = state.contentToUse) == null ? void 0 : _b2.data) == null ? void 0 : _c.state
|
|
79
84
|
};
|
|
80
85
|
},
|
|
81
86
|
get canTrack() {
|
|
@@ -129,11 +134,11 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
129
134
|
props
|
|
130
135
|
], "Object.values(p0.builderComponents)"),
|
|
131
136
|
data: _fnSignal((p0, p1) => {
|
|
132
|
-
var _a2,
|
|
137
|
+
var _a2, _b2, _c;
|
|
133
138
|
return {
|
|
134
139
|
...(_a2 = p0.symbol) == null ? void 0 : _a2.data,
|
|
135
140
|
...p0.builderContext.localState,
|
|
136
|
-
...(_c = (
|
|
141
|
+
...(_c = (_b2 = p1.contentToUse) == null ? void 0 : _b2.data) == null ? void 0 : _c.state
|
|
137
142
|
};
|
|
138
143
|
}, [
|
|
139
144
|
props,
|
|
@@ -31,6 +31,21 @@ const InteractiveElement = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwi
|
|
|
31
31
|
}, "InteractiveElement_component_targetWrapperProps_useComputed_C9HrUQQCHDA", [
|
|
32
32
|
props
|
|
33
33
|
]));
|
|
34
|
+
const state = qwik.useStore({
|
|
35
|
+
forceRenderCount: 0
|
|
36
|
+
});
|
|
37
|
+
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(({ track }) => {
|
|
38
|
+
const [props2, state2] = qwik.useLexicalScope();
|
|
39
|
+
track(() => props2.wrapperProps);
|
|
40
|
+
track(() => {
|
|
41
|
+
var _a, _b;
|
|
42
|
+
return (_b = (_a = props2.block) == null ? void 0 : _a.component) == null ? void 0 : _b.options;
|
|
43
|
+
});
|
|
44
|
+
state2.forceRenderCount = state2.forceRenderCount + 1;
|
|
45
|
+
}, "InteractiveElement_component_useTask_on04DcXeJSE", [
|
|
46
|
+
props,
|
|
47
|
+
state
|
|
48
|
+
]));
|
|
34
49
|
return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
35
50
|
children: props.Wrapper.load ? /* @__PURE__ */ qwik._jsxC(awaiter.Awaiter, {
|
|
36
51
|
get load() {
|
|
@@ -60,19 +75,12 @@ const InteractiveElement = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwi
|
|
|
60
75
|
props
|
|
61
76
|
], "p0.wrapperProps")
|
|
62
77
|
}
|
|
63
|
-
}, 1, "q0_1") : /* @__PURE__ */ qwik.
|
|
78
|
+
}, 1, "q0_1") : /* @__PURE__ */ qwik.createElement(props.Wrapper, {
|
|
64
79
|
...targetWrapperProps.value,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
[qwik._IMMUTABLE]: {
|
|
70
|
-
attributes: qwik._fnSignal((p0) => p0.value, [
|
|
71
|
-
attributes
|
|
72
|
-
], "p0.value")
|
|
73
|
-
}
|
|
74
|
-
}, 0, "q0_3")
|
|
75
|
-
}, 1, "q0_4");
|
|
80
|
+
attributes: attributes.value,
|
|
81
|
+
key: "wrapper-" + state.forceRenderCount
|
|
82
|
+
}, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "q0_2"))
|
|
83
|
+
}, 1, "q0_3");
|
|
76
84
|
}, "InteractiveElement_component_0UqfJpjhn0g"));
|
|
77
85
|
exports.InteractiveElement = InteractiveElement;
|
|
78
86
|
exports.default = InteractiveElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { componentQrl, inlinedQrl, _jsxBranch, useComputedQrl, useLexicalScope, _jsxC, Slot, _IMMUTABLE, _fnSignal } from "@builder.io/qwik";
|
|
1
|
+
import { componentQrl, inlinedQrl, _jsxBranch, useComputedQrl, useLexicalScope, useStore, useTaskQrl, _jsxC, Slot, _IMMUTABLE, _fnSignal, createElement } from "@builder.io/qwik";
|
|
2
2
|
import { Fragment } from "@builder.io/qwik/jsx-runtime";
|
|
3
3
|
import { getBlockActions } from "../../../functions/get-block-actions.qwik.mjs";
|
|
4
4
|
import { getBlockProperties } from "../../../functions/get-block-properties.qwik.mjs";
|
|
@@ -29,6 +29,21 @@ const InteractiveElement = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQ
|
|
|
29
29
|
}, "InteractiveElement_component_targetWrapperProps_useComputed_C9HrUQQCHDA", [
|
|
30
30
|
props
|
|
31
31
|
]));
|
|
32
|
+
const state = useStore({
|
|
33
|
+
forceRenderCount: 0
|
|
34
|
+
});
|
|
35
|
+
useTaskQrl(/* @__PURE__ */ inlinedQrl(({ track }) => {
|
|
36
|
+
const [props2, state2] = useLexicalScope();
|
|
37
|
+
track(() => props2.wrapperProps);
|
|
38
|
+
track(() => {
|
|
39
|
+
var _a, _b;
|
|
40
|
+
return (_b = (_a = props2.block) == null ? void 0 : _a.component) == null ? void 0 : _b.options;
|
|
41
|
+
});
|
|
42
|
+
state2.forceRenderCount = state2.forceRenderCount + 1;
|
|
43
|
+
}, "InteractiveElement_component_useTask_on04DcXeJSE", [
|
|
44
|
+
props,
|
|
45
|
+
state
|
|
46
|
+
]));
|
|
32
47
|
return /* @__PURE__ */ _jsxC(Fragment, {
|
|
33
48
|
children: props.Wrapper.load ? /* @__PURE__ */ _jsxC(Awaiter, {
|
|
34
49
|
get load() {
|
|
@@ -58,19 +73,12 @@ const InteractiveElement = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQ
|
|
|
58
73
|
props
|
|
59
74
|
], "p0.wrapperProps")
|
|
60
75
|
}
|
|
61
|
-
}, 1, "q0_1") : /* @__PURE__ */
|
|
76
|
+
}, 1, "q0_1") : /* @__PURE__ */ createElement(props.Wrapper, {
|
|
62
77
|
...targetWrapperProps.value,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
[_IMMUTABLE]: {
|
|
68
|
-
attributes: _fnSignal((p0) => p0.value, [
|
|
69
|
-
attributes
|
|
70
|
-
], "p0.value")
|
|
71
|
-
}
|
|
72
|
-
}, 0, "q0_3")
|
|
73
|
-
}, 1, "q0_4");
|
|
78
|
+
attributes: attributes.value,
|
|
79
|
+
key: "wrapper-" + state.forceRenderCount
|
|
80
|
+
}, /* @__PURE__ */ _jsxC(Slot, null, 3, "q0_2"))
|
|
81
|
+
}, 1, "q0_3");
|
|
74
82
|
}, "InteractiveElement_component_0UqfJpjhn0g"));
|
|
75
83
|
export {
|
|
76
84
|
InteractiveElement,
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.18.
|
|
1
|
+
export declare const SDK_VERSION = "0.18.12";
|