@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
|
@@ -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"));
|
|
@@ -4,7 +4,10 @@ const qwik = require("@builder.io/qwik");
|
|
|
4
4
|
const jsxRuntime = require("@builder.io/qwik/jsx-runtime");
|
|
5
5
|
const getBlockActions = require("../../../functions/get-block-actions.qwik.cjs");
|
|
6
6
|
const getBlockProperties = require("../../../functions/get-block-properties.qwik.cjs");
|
|
7
|
+
require("../../../helpers/user-attributes.qwik.cjs");
|
|
8
|
+
require("../../../functions/get-fetch.qwik.cjs");
|
|
7
9
|
const awaiter = require("../../awaiter.qwik.cjs");
|
|
10
|
+
require("../../../context/builder.context.qwik.cjs");
|
|
8
11
|
const InteractiveElement = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
9
12
|
qwik._jsxBranch();
|
|
10
13
|
const attributes = qwik.useComputedQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
@@ -79,8 +82,8 @@ const InteractiveElement = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwi
|
|
|
79
82
|
...targetWrapperProps.value,
|
|
80
83
|
attributes: attributes.value,
|
|
81
84
|
key: "wrapper-" + state.forceRenderCount
|
|
82
|
-
}, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "
|
|
83
|
-
}, 1, "
|
|
85
|
+
}, /* @__PURE__ */ qwik._jsxC(qwik.Slot, null, 3, "q0_4"))
|
|
86
|
+
}, 1, "q0_5");
|
|
84
87
|
}, "InteractiveElement_component_0UqfJpjhn0g"));
|
|
85
88
|
exports.InteractiveElement = InteractiveElement;
|
|
86
89
|
exports.default = InteractiveElement;
|
|
@@ -2,7 +2,10 @@ import { componentQrl, inlinedQrl, _jsxBranch, useComputedQrl, useLexicalScope,
|
|
|
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";
|
|
5
|
+
import "../../../helpers/user-attributes.qwik.mjs";
|
|
6
|
+
import "../../../functions/get-fetch.qwik.mjs";
|
|
5
7
|
import { Awaiter } from "../../awaiter.qwik.mjs";
|
|
8
|
+
import "../../../context/builder.context.qwik.mjs";
|
|
6
9
|
const InteractiveElement = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
7
10
|
_jsxBranch();
|
|
8
11
|
const attributes = useComputedQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
@@ -77,8 +80,8 @@ const InteractiveElement = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQ
|
|
|
77
80
|
...targetWrapperProps.value,
|
|
78
81
|
attributes: attributes.value,
|
|
79
82
|
key: "wrapper-" + state.forceRenderCount
|
|
80
|
-
}, /* @__PURE__ */ _jsxC(Slot, null, 3, "
|
|
81
|
-
}, 1, "
|
|
83
|
+
}, /* @__PURE__ */ _jsxC(Slot, null, 3, "q0_4"))
|
|
84
|
+
}, 1, "q0_5");
|
|
82
85
|
}, "InteractiveElement_component_0UqfJpjhn0g"));
|
|
83
86
|
export {
|
|
84
87
|
InteractiveElement,
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const qwik = require("@builder.io/qwik");
|
|
4
|
+
const jsxRuntime = require("@builder.io/qwik/jsx-runtime");
|
|
5
|
+
const builder_context = require("../../../context/builder.context.qwik.cjs");
|
|
6
|
+
const blockStyles = require("./block-styles.qwik.cjs");
|
|
7
|
+
require("@builder.io/qwik/build");
|
|
8
|
+
require("../../../functions/evaluate/node-runtime/safeDynamicRequire.qwik.cjs");
|
|
9
|
+
const StyleWrapper = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
10
|
+
qwik._jsxBranch();
|
|
11
|
+
qwik.useContext(builder_context);
|
|
12
|
+
const state = qwik.useStore({
|
|
13
|
+
isClientEditing: false,
|
|
14
|
+
isHydrated: false
|
|
15
|
+
});
|
|
16
|
+
qwik.useVisibleTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(() => {
|
|
17
|
+
}, "StyleWrapper_component_useVisibleTask_7i19DZr5064"));
|
|
18
|
+
return /* @__PURE__ */ qwik._jsxC(jsxRuntime.Fragment, {
|
|
19
|
+
children: state.isHydrated ? /* @__PURE__ */ qwik._jsxC(blockStyles.BlockStyles, {
|
|
20
|
+
get block() {
|
|
21
|
+
return props.block;
|
|
22
|
+
},
|
|
23
|
+
get context() {
|
|
24
|
+
return props.context;
|
|
25
|
+
},
|
|
26
|
+
[qwik._IMMUTABLE]: {
|
|
27
|
+
block: qwik._fnSignal((p0) => p0.block, [
|
|
28
|
+
props
|
|
29
|
+
], "p0.block"),
|
|
30
|
+
context: qwik._fnSignal((p0) => p0.context, [
|
|
31
|
+
props
|
|
32
|
+
], "p0.context")
|
|
33
|
+
}
|
|
34
|
+
}, 3, "Ei_1") : /* @__PURE__ */ qwik._jsxC(blockStyles.BlockStyles, {
|
|
35
|
+
get block() {
|
|
36
|
+
return props.block;
|
|
37
|
+
},
|
|
38
|
+
get context() {
|
|
39
|
+
return props.context;
|
|
40
|
+
},
|
|
41
|
+
[qwik._IMMUTABLE]: {
|
|
42
|
+
block: qwik._fnSignal((p0) => p0.block, [
|
|
43
|
+
props
|
|
44
|
+
], "p0.block"),
|
|
45
|
+
context: qwik._fnSignal((p0) => p0.context, [
|
|
46
|
+
props
|
|
47
|
+
], "p0.context")
|
|
48
|
+
}
|
|
49
|
+
}, 3, "Ei_2")
|
|
50
|
+
}, 1, "Ei_3");
|
|
51
|
+
}, "StyleWrapper_component_LTSEjsY8B70"));
|
|
52
|
+
exports.StyleWrapper = StyleWrapper;
|
|
53
|
+
exports.default = StyleWrapper;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { componentQrl, inlinedQrl, _jsxBranch, useContext, useStore, useVisibleTaskQrl, _jsxC, _IMMUTABLE, _fnSignal } from "@builder.io/qwik";
|
|
2
|
+
import { Fragment } from "@builder.io/qwik/jsx-runtime";
|
|
3
|
+
import builderContext from "../../../context/builder.context.qwik.mjs";
|
|
4
|
+
import { BlockStyles } from "./block-styles.qwik.mjs";
|
|
5
|
+
import "@builder.io/qwik/build";
|
|
6
|
+
import "../../../functions/evaluate/node-runtime/safeDynamicRequire.qwik.mjs";
|
|
7
|
+
const StyleWrapper = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
8
|
+
_jsxBranch();
|
|
9
|
+
useContext(builderContext);
|
|
10
|
+
const state = useStore({
|
|
11
|
+
isClientEditing: false,
|
|
12
|
+
isHydrated: false
|
|
13
|
+
});
|
|
14
|
+
useVisibleTaskQrl(/* @__PURE__ */ inlinedQrl(() => {
|
|
15
|
+
}, "StyleWrapper_component_useVisibleTask_7i19DZr5064"));
|
|
16
|
+
return /* @__PURE__ */ _jsxC(Fragment, {
|
|
17
|
+
children: state.isHydrated ? /* @__PURE__ */ _jsxC(BlockStyles, {
|
|
18
|
+
get block() {
|
|
19
|
+
return props.block;
|
|
20
|
+
},
|
|
21
|
+
get context() {
|
|
22
|
+
return props.context;
|
|
23
|
+
},
|
|
24
|
+
[_IMMUTABLE]: {
|
|
25
|
+
block: _fnSignal((p0) => p0.block, [
|
|
26
|
+
props
|
|
27
|
+
], "p0.block"),
|
|
28
|
+
context: _fnSignal((p0) => p0.context, [
|
|
29
|
+
props
|
|
30
|
+
], "p0.context")
|
|
31
|
+
}
|
|
32
|
+
}, 3, "Ei_1") : /* @__PURE__ */ _jsxC(BlockStyles, {
|
|
33
|
+
get block() {
|
|
34
|
+
return props.block;
|
|
35
|
+
},
|
|
36
|
+
get context() {
|
|
37
|
+
return props.context;
|
|
38
|
+
},
|
|
39
|
+
[_IMMUTABLE]: {
|
|
40
|
+
block: _fnSignal((p0) => p0.block, [
|
|
41
|
+
props
|
|
42
|
+
], "p0.block"),
|
|
43
|
+
context: _fnSignal((p0) => p0.context, [
|
|
44
|
+
props
|
|
45
|
+
], "p0.context")
|
|
46
|
+
}
|
|
47
|
+
}, 3, "Ei_2")
|
|
48
|
+
}, 1, "Ei_3");
|
|
49
|
+
}, "StyleWrapper_component_LTSEjsY8B70"));
|
|
50
|
+
export {
|
|
51
|
+
StyleWrapper,
|
|
52
|
+
StyleWrapper as default
|
|
53
|
+
};
|
|
@@ -20,7 +20,7 @@ const initEditing = require("../../../scripts/init-editing.qwik.cjs");
|
|
|
20
20
|
const animator = require("../../block/animator.qwik.cjs");
|
|
21
21
|
const enableEditor_helpers = require("./enable-editor.helpers.qwik.cjs");
|
|
22
22
|
const styles_helpers = require("./styles.helpers.qwik.cjs");
|
|
23
|
-
const mergeNewRootState = function mergeNewRootState2(props, state, showContentProps, elementRef, newData) {
|
|
23
|
+
const mergeNewRootState = function mergeNewRootState2(props, state, showContentProps, elementRef, newData, editType) {
|
|
24
24
|
var _a, _b;
|
|
25
25
|
const combinedState = {
|
|
26
26
|
...props.builderContextSignal.rootState,
|
|
@@ -30,8 +30,12 @@ const mergeNewRootState = function mergeNewRootState2(props, state, showContentP
|
|
|
30
30
|
(_b = (_a = props.builderContextSignal).rootSetState) == null ? void 0 : _b.call(_a, combinedState);
|
|
31
31
|
else
|
|
32
32
|
props.builderContextSignal.rootState = combinedState;
|
|
33
|
+
if (props.builderContextSignal.rootSetState)
|
|
34
|
+
props.builderContextSignal.rootSetState(combinedState);
|
|
35
|
+
else
|
|
36
|
+
props.builderContextSignal.rootState = combinedState;
|
|
33
37
|
};
|
|
34
|
-
const mergeNewContent = function mergeNewContent2(props, state, showContentProps, elementRef, newContent) {
|
|
38
|
+
const mergeNewContent = function mergeNewContent2(props, state, showContentProps, elementRef, newContent, editType) {
|
|
35
39
|
var _a, _b, _c, _d, _e;
|
|
36
40
|
const newContentValue = {
|
|
37
41
|
...props.builderContextSignal.content,
|
|
@@ -68,10 +72,10 @@ const processMessage = function processMessage2(props, state, showContentProps,
|
|
|
68
72
|
animation: (animation) => {
|
|
69
73
|
animator.triggerAnimation(animation);
|
|
70
74
|
},
|
|
71
|
-
contentUpdate: (newContent) => {
|
|
75
|
+
contentUpdate: (newContent, editType) => {
|
|
72
76
|
mergeNewContent(props, state, showContentProps, elementRef, newContent);
|
|
73
77
|
},
|
|
74
|
-
stateUpdate: (newState) => {
|
|
78
|
+
stateUpdate: (newState, editType) => {
|
|
75
79
|
mergeNewRootState(props, state, showContentProps, elementRef, newState);
|
|
76
80
|
}
|
|
77
81
|
}
|
|
@@ -126,11 +130,14 @@ const runHttpRequests = function runHttpRequests2(props, state, showContentProps
|
|
|
126
130
|
method: "GET"
|
|
127
131
|
};
|
|
128
132
|
logFetch.logFetch(JSON.stringify(fetchRequestObj));
|
|
129
|
-
|
|
133
|
+
const fetchOptions = {
|
|
130
134
|
method: fetchRequestObj.method,
|
|
131
135
|
headers: fetchRequestObj.headers,
|
|
132
136
|
body: fetchRequestObj.body
|
|
133
|
-
}
|
|
137
|
+
};
|
|
138
|
+
if (fetchRequestObj.method === "GET")
|
|
139
|
+
delete fetchOptions.body;
|
|
140
|
+
fetch(fetchRequestObj.url, fetchOptions).then((response) => response.json()).then((json) => {
|
|
134
141
|
mergeNewRootState(props, state, showContentProps, elementRef, {
|
|
135
142
|
[key]: json
|
|
136
143
|
});
|
|
@@ -169,9 +176,12 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
169
176
|
const state = qwik.useStore({
|
|
170
177
|
ContentWrapper: props.contentWrapper || "div",
|
|
171
178
|
clicked: false,
|
|
179
|
+
contextValue: props.builderContextSignal,
|
|
172
180
|
hasExecuted: false,
|
|
173
181
|
httpReqsData: {},
|
|
174
|
-
httpReqsPending: {}
|
|
182
|
+
httpReqsPending: {},
|
|
183
|
+
prevData: null,
|
|
184
|
+
prevLocale: ""
|
|
175
185
|
}, {
|
|
176
186
|
deep: true
|
|
177
187
|
});
|
|
@@ -305,8 +315,12 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
305
315
|
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(({ track }) => {
|
|
306
316
|
const [elementRef2, props2, showContentProps2, state2] = qwik.useLexicalScope();
|
|
307
317
|
track(() => props2.data);
|
|
308
|
-
if (props2.data)
|
|
318
|
+
if (props2.data) {
|
|
319
|
+
if (state2.prevData === props2.data)
|
|
320
|
+
return;
|
|
309
321
|
mergeNewRootState(props2, state2, showContentProps2, elementRef2, props2.data);
|
|
322
|
+
state2.prevData = props2.data;
|
|
323
|
+
}
|
|
310
324
|
}, "EnableEditor_component_useTask_3_bQ0e5LHZwWE", [
|
|
311
325
|
elementRef,
|
|
312
326
|
props,
|
|
@@ -316,10 +330,14 @@ const EnableEditor = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
316
330
|
qwik.useTaskQrl(/* @__PURE__ */ qwik.inlinedQrl(({ track }) => {
|
|
317
331
|
const [elementRef2, props2, showContentProps2, state2] = qwik.useLexicalScope();
|
|
318
332
|
track(() => props2.locale);
|
|
319
|
-
if (props2.locale)
|
|
333
|
+
if (props2.locale) {
|
|
334
|
+
if (state2.prevLocale === props2.locale)
|
|
335
|
+
return;
|
|
320
336
|
mergeNewRootState(props2, state2, showContentProps2, elementRef2, {
|
|
321
337
|
locale: props2.locale
|
|
322
338
|
});
|
|
339
|
+
state2.prevLocale = props2.locale;
|
|
340
|
+
}
|
|
323
341
|
}, "EnableEditor_component_useTask_4_moHYZG8uNVU", [
|
|
324
342
|
elementRef,
|
|
325
343
|
props,
|