@builder.io/sdk-qwik 0.11.5 → 0.12.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/index.qwik.cjs +89 -20
- package/lib/browser/index.qwik.mjs +100 -31
- package/lib/edge/index.qwik.cjs +89 -20
- package/lib/edge/index.qwik.mjs +100 -31
- package/lib/node/index.qwik.cjs +89 -20
- package/lib/node/index.qwik.mjs +100 -31
- package/package.json +1 -1
- package/types/src/blocks/slot/component-info.d.ts +2 -0
- package/types/src/blocks/slot/slot.d.ts +10 -0
- package/types/src/constants/sdk-version.d.ts +1 -1
|
@@ -1704,7 +1704,7 @@ const handleABTesting = async ({ item, canTrack }) => {
|
|
|
1704
1704
|
};
|
|
1705
1705
|
};
|
|
1706
1706
|
const getDefaultCanTrack = (canTrack) => checkIsDefined(canTrack) ? canTrack : true;
|
|
1707
|
-
const componentInfo$
|
|
1707
|
+
const componentInfo$b = {
|
|
1708
1708
|
name: "Core:Button",
|
|
1709
1709
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1710
1710
|
defaultStyles: {
|
|
@@ -1742,7 +1742,7 @@ const componentInfo$a = {
|
|
|
1742
1742
|
static: true,
|
|
1743
1743
|
noWrap: true
|
|
1744
1744
|
};
|
|
1745
|
-
const componentInfo$
|
|
1745
|
+
const componentInfo$a = {
|
|
1746
1746
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1747
1747
|
name: "Columns",
|
|
1748
1748
|
isRSC: true,
|
|
@@ -1984,7 +1984,7 @@ const componentInfo$9 = {
|
|
|
1984
1984
|
}
|
|
1985
1985
|
]
|
|
1986
1986
|
};
|
|
1987
|
-
const componentInfo$
|
|
1987
|
+
const componentInfo$9 = {
|
|
1988
1988
|
name: "Custom Code",
|
|
1989
1989
|
static: true,
|
|
1990
1990
|
requiredPermissions: [
|
|
@@ -2063,7 +2063,7 @@ const CustomCode = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
|
|
|
2063
2063
|
], "p0.code")
|
|
2064
2064
|
}, null, 3, "bY_0");
|
|
2065
2065
|
}, "CustomCode_component_uYOSy7w7Zqw"));
|
|
2066
|
-
const componentInfo$
|
|
2066
|
+
const componentInfo$8 = {
|
|
2067
2067
|
name: "Embed",
|
|
2068
2068
|
static: true,
|
|
2069
2069
|
inputs: [
|
|
@@ -2156,14 +2156,14 @@ const Embed = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
2156
2156
|
], "p0.content")
|
|
2157
2157
|
}, null, 3, "9r_0");
|
|
2158
2158
|
}, "Embed_component_Uji08ORjXbE"));
|
|
2159
|
-
const componentInfo$
|
|
2159
|
+
const componentInfo$7 = {
|
|
2160
2160
|
name: "Fragment",
|
|
2161
2161
|
static: true,
|
|
2162
2162
|
hidden: true,
|
|
2163
2163
|
canHaveChildren: true,
|
|
2164
2164
|
noWrap: true
|
|
2165
2165
|
};
|
|
2166
|
-
const componentInfo$
|
|
2166
|
+
const componentInfo$6 = {
|
|
2167
2167
|
name: "Image",
|
|
2168
2168
|
static: true,
|
|
2169
2169
|
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",
|
|
@@ -2311,7 +2311,7 @@ const componentInfo$5 = {
|
|
|
2311
2311
|
}
|
|
2312
2312
|
]
|
|
2313
2313
|
};
|
|
2314
|
-
const componentInfo$
|
|
2314
|
+
const componentInfo$5 = {
|
|
2315
2315
|
// friendlyName?
|
|
2316
2316
|
name: "Raw:Img",
|
|
2317
2317
|
hideFromInsertMenu: true,
|
|
@@ -2353,7 +2353,7 @@ const ImgComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
2353
2353
|
], '{objectFit:p0.backgroundSize||"cover",objectPosition:p0.backgroundPosition||"center"}')
|
|
2354
2354
|
}, 0, isEditing() && props.imgSrc || "default-key");
|
|
2355
2355
|
}, "ImgComponent_component_FXvIDBSffO8"));
|
|
2356
|
-
const componentInfo$
|
|
2356
|
+
const componentInfo$4 = {
|
|
2357
2357
|
name: "Core:Section",
|
|
2358
2358
|
static: true,
|
|
2359
2359
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2398,6 +2398,61 @@ const componentInfo$3 = {
|
|
|
2398
2398
|
}
|
|
2399
2399
|
]
|
|
2400
2400
|
};
|
|
2401
|
+
const componentInfo$3 = {
|
|
2402
|
+
name: "Slot",
|
|
2403
|
+
isRSC: true,
|
|
2404
|
+
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
2405
|
+
docsLink: "https://www.builder.io/c/docs/symbols-with-blocks",
|
|
2406
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F3aad6de36eae43b59b52c85190fdef56",
|
|
2407
|
+
// Maybe wrap this for canHaveChildren so bind children to this hm
|
|
2408
|
+
inputs: [
|
|
2409
|
+
{
|
|
2410
|
+
name: "name",
|
|
2411
|
+
type: "string",
|
|
2412
|
+
required: true,
|
|
2413
|
+
defaultValue: "children"
|
|
2414
|
+
}
|
|
2415
|
+
]
|
|
2416
|
+
};
|
|
2417
|
+
const Slot = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
2418
|
+
var _a, _b;
|
|
2419
|
+
return /* @__PURE__ */ qwik._jsxS("div", {
|
|
2420
|
+
...!((_a = props.builderContext.context) == null ? void 0 : _a.symbolId) && {
|
|
2421
|
+
"builder-slot": props.name
|
|
2422
|
+
},
|
|
2423
|
+
children: /* @__PURE__ */ qwik._jsxC(Blocks, {
|
|
2424
|
+
get parent() {
|
|
2425
|
+
var _a2;
|
|
2426
|
+
return (_a2 = props.builderContext.context) == null ? void 0 : _a2.symbolId;
|
|
2427
|
+
},
|
|
2428
|
+
get path() {
|
|
2429
|
+
return `symbol.data.${props.name}`;
|
|
2430
|
+
},
|
|
2431
|
+
get context() {
|
|
2432
|
+
return props.builderContext;
|
|
2433
|
+
},
|
|
2434
|
+
blocks: deoptSignal((_b = props.builderContext.rootState) == null ? void 0 : _b[props.name]),
|
|
2435
|
+
[qwik._IMMUTABLE]: {
|
|
2436
|
+
context: qwik._fnSignal((p0) => p0.builderContext, [
|
|
2437
|
+
props
|
|
2438
|
+
], "p0.builderContext"),
|
|
2439
|
+
parent: qwik._fnSignal((p0) => {
|
|
2440
|
+
var _a2;
|
|
2441
|
+
return (_a2 = p0.builderContext.context) == null ? void 0 : _a2.symbolId;
|
|
2442
|
+
}, [
|
|
2443
|
+
props
|
|
2444
|
+
], "p0.builderContext.context?.symbolId"),
|
|
2445
|
+
path: qwik._fnSignal((p0) => `symbol.data.${p0.name}`, [
|
|
2446
|
+
props
|
|
2447
|
+
], "`symbol.data.${p0.name}`")
|
|
2448
|
+
}
|
|
2449
|
+
}, 3, "B1_0")
|
|
2450
|
+
}, {
|
|
2451
|
+
style: {
|
|
2452
|
+
pointerEvents: "auto"
|
|
2453
|
+
}
|
|
2454
|
+
}, 0, "B1_1");
|
|
2455
|
+
}, "Slot_component_WWgWgfV0bb0"));
|
|
2401
2456
|
const componentInfo$2 = {
|
|
2402
2457
|
name: "Symbol",
|
|
2403
2458
|
noWrap: true,
|
|
@@ -2702,35 +2757,35 @@ const Video = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
2702
2757
|
const getDefaultRegisteredComponents = () => [
|
|
2703
2758
|
{
|
|
2704
2759
|
component: Button,
|
|
2705
|
-
...componentInfo$
|
|
2760
|
+
...componentInfo$b
|
|
2706
2761
|
},
|
|
2707
2762
|
{
|
|
2708
2763
|
component: Columns,
|
|
2709
|
-
...componentInfo$
|
|
2764
|
+
...componentInfo$a
|
|
2710
2765
|
},
|
|
2711
2766
|
{
|
|
2712
2767
|
component: CustomCode,
|
|
2713
|
-
...componentInfo$
|
|
2768
|
+
...componentInfo$9
|
|
2714
2769
|
},
|
|
2715
2770
|
{
|
|
2716
2771
|
component: Embed,
|
|
2717
|
-
...componentInfo$
|
|
2772
|
+
...componentInfo$8
|
|
2718
2773
|
},
|
|
2719
2774
|
{
|
|
2720
2775
|
component: FragmentComponent,
|
|
2721
|
-
...componentInfo$
|
|
2776
|
+
...componentInfo$7
|
|
2722
2777
|
},
|
|
2723
2778
|
{
|
|
2724
2779
|
component: Image,
|
|
2725
|
-
...componentInfo$
|
|
2780
|
+
...componentInfo$6
|
|
2726
2781
|
},
|
|
2727
2782
|
{
|
|
2728
2783
|
component: ImgComponent,
|
|
2729
|
-
...componentInfo$
|
|
2784
|
+
...componentInfo$5
|
|
2730
2785
|
},
|
|
2731
2786
|
{
|
|
2732
2787
|
component: SectionComponent,
|
|
2733
|
-
...componentInfo$
|
|
2788
|
+
...componentInfo$4
|
|
2734
2789
|
},
|
|
2735
2790
|
{
|
|
2736
2791
|
component: Symbol$1,
|
|
@@ -2743,6 +2798,10 @@ const getDefaultRegisteredComponents = () => [
|
|
|
2743
2798
|
{
|
|
2744
2799
|
component: Video,
|
|
2745
2800
|
...componentInfo
|
|
2801
|
+
},
|
|
2802
|
+
{
|
|
2803
|
+
component: Slot,
|
|
2804
|
+
...componentInfo$3
|
|
2746
2805
|
}
|
|
2747
2806
|
];
|
|
2748
2807
|
const components = [];
|
|
@@ -3182,7 +3241,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
3182
3241
|
}
|
|
3183
3242
|
};
|
|
3184
3243
|
};
|
|
3185
|
-
const SDK_VERSION = "0.
|
|
3244
|
+
const SDK_VERSION = "0.12.1";
|
|
3186
3245
|
const registry = {};
|
|
3187
3246
|
function register(type, info) {
|
|
3188
3247
|
let typeList = registry[type];
|
|
@@ -4322,7 +4381,11 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
4322
4381
|
return props.builderContext.apiKey;
|
|
4323
4382
|
},
|
|
4324
4383
|
get context() {
|
|
4325
|
-
|
|
4384
|
+
var _a2;
|
|
4385
|
+
return {
|
|
4386
|
+
...props.builderContext.context,
|
|
4387
|
+
symbolId: (_a2 = props.builderBlock) == null ? void 0 : _a2.id
|
|
4388
|
+
};
|
|
4326
4389
|
},
|
|
4327
4390
|
get customComponents() {
|
|
4328
4391
|
return Object.values(props.builderComponents);
|
|
@@ -4352,9 +4415,15 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
4352
4415
|
content: qwik._fnSignal((p0) => p0.contentToUse, [
|
|
4353
4416
|
state
|
|
4354
4417
|
], "p0.contentToUse"),
|
|
4355
|
-
context: qwik._fnSignal((p0) =>
|
|
4418
|
+
context: qwik._fnSignal((p0) => {
|
|
4419
|
+
var _a2;
|
|
4420
|
+
return {
|
|
4421
|
+
...p0.builderContext.context,
|
|
4422
|
+
symbolId: (_a2 = p0.builderBlock) == null ? void 0 : _a2.id
|
|
4423
|
+
};
|
|
4424
|
+
}, [
|
|
4356
4425
|
props
|
|
4357
|
-
], "p0.builderContext.context"),
|
|
4426
|
+
], "{...p0.builderContext.context,symbolId:p0.builderBlock?.id}"),
|
|
4358
4427
|
customComponents: qwik._fnSignal((p0) => Object.values(p0.builderComponents), [
|
|
4359
4428
|
props
|
|
4360
4429
|
], "Object.values(p0.builderComponents)"),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { componentQrl, inlinedQrl, useStylesScopedQrl, _jsxC, _jsxS, _fnSignal, createContextId, _jsxQ, _jsxBranch, useComputedQrl, useLexicalScope, _IMMUTABLE, Slot, useStore, useContextProvider, _wrapProp, useContext, createElement, Fragment as Fragment$1, useSignal, useOn, useTaskQrl } from "@builder.io/qwik";
|
|
1
|
+
import { componentQrl, inlinedQrl, useStylesScopedQrl, _jsxC, _jsxS, _fnSignal, createContextId, _jsxQ, _jsxBranch, useComputedQrl, useLexicalScope, _IMMUTABLE, Slot as Slot$1, useStore, useContextProvider, _wrapProp, useContext, createElement, Fragment as Fragment$1, useSignal, useOn, useTaskQrl } from "@builder.io/qwik";
|
|
2
2
|
import { Fragment } from "@builder.io/qwik/jsx-runtime";
|
|
3
3
|
import { isServer } from "@builder.io/qwik/build";
|
|
4
4
|
const Button = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
@@ -556,7 +556,7 @@ const BlockWrapper = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
556
556
|
context: props.context.context,
|
|
557
557
|
stripPrefix: true
|
|
558
558
|
}),
|
|
559
|
-
children: /* @__PURE__ */ _jsxC(Slot, null, 3, "87_0")
|
|
559
|
+
children: /* @__PURE__ */ _jsxC(Slot$1, null, 3, "87_0")
|
|
560
560
|
}, 0, "87_1") : /* @__PURE__ */ _jsxC(props.Wrapper, {
|
|
561
561
|
...getBlockProperties({
|
|
562
562
|
block: props.block,
|
|
@@ -589,7 +589,7 @@ const InteractiveElement = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQ
|
|
|
589
589
|
context: props.context.context
|
|
590
590
|
})
|
|
591
591
|
} : {},
|
|
592
|
-
children: /* @__PURE__ */ _jsxC(Slot, null, 3, "q0_0")
|
|
592
|
+
children: /* @__PURE__ */ _jsxC(Slot$1, null, 3, "q0_0")
|
|
593
593
|
}, 0, "q0_1");
|
|
594
594
|
}, "InteractiveElement_component_0UqfJpjhn0g"));
|
|
595
595
|
const getWrapperProps = ({ componentOptions, builderBlock, context, componentRef, includeBlockProps, isInteractive, contextValue }) => {
|
|
@@ -1062,7 +1062,7 @@ const BlocksWrapper = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
1062
1062
|
state
|
|
1063
1063
|
]),
|
|
1064
1064
|
...props.BlocksWrapperProps,
|
|
1065
|
-
children: /* @__PURE__ */ _jsxC(Slot, null, 3, "3u_0"),
|
|
1065
|
+
children: /* @__PURE__ */ _jsxC(Slot$1, null, 3, "3u_0"),
|
|
1066
1066
|
[_IMMUTABLE]: {
|
|
1067
1067
|
"builder-parent-id": _fnSignal((p0) => p0.parent, [
|
|
1068
1068
|
props
|
|
@@ -1330,7 +1330,7 @@ const STYLES$1 = `
|
|
|
1330
1330
|
}
|
|
1331
1331
|
`;
|
|
1332
1332
|
const FragmentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
1333
|
-
return /* @__PURE__ */ _jsxQ("span", null, null, /* @__PURE__ */ _jsxC(Slot, null, 3, "oj_0"), 1, "oj_1");
|
|
1333
|
+
return /* @__PURE__ */ _jsxQ("span", null, null, /* @__PURE__ */ _jsxC(Slot$1, null, 3, "oj_0"), 1, "oj_1");
|
|
1334
1334
|
}, "FragmentComponent_component_T0AypnadAK0"));
|
|
1335
1335
|
function removeProtocol(path) {
|
|
1336
1336
|
return path.replace(/http(s)?:/, "");
|
|
@@ -1482,10 +1482,10 @@ const Image = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
1482
1482
|
props
|
|
1483
1483
|
], '{paddingTop:p0.aspectRatio*100+"%"}')
|
|
1484
1484
|
}, null, 3, "0A_1") : null,
|
|
1485
|
-
((_d = (_c = props.builderBlock) == null ? void 0 : _c.children) == null ? void 0 : _d.length) && props.fitContent ? /* @__PURE__ */ _jsxC(Slot, null, 3, "0A_2") : null,
|
|
1485
|
+
((_d = (_c = props.builderBlock) == null ? void 0 : _c.children) == null ? void 0 : _d.length) && props.fitContent ? /* @__PURE__ */ _jsxC(Slot$1, null, 3, "0A_2") : null,
|
|
1486
1486
|
!props.fitContent && props.children ? /* @__PURE__ */ _jsxQ("div", null, {
|
|
1487
1487
|
class: "div-Image-2"
|
|
1488
|
-
}, /* @__PURE__ */ _jsxC(Slot, null, 3, "0A_3"), 1, "0A_4") : null
|
|
1488
|
+
}, /* @__PURE__ */ _jsxC(Slot$1, null, 3, "0A_3"), 1, "0A_4") : null
|
|
1489
1489
|
]
|
|
1490
1490
|
}, 1, "0A_5");
|
|
1491
1491
|
}, "Image_component_LRxDkFa1EfU"));
|
|
@@ -1513,7 +1513,7 @@ const STYLES = `
|
|
|
1513
1513
|
const SectionComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
1514
1514
|
return /* @__PURE__ */ _jsxS("section", {
|
|
1515
1515
|
...props.attributes,
|
|
1516
|
-
children: /* @__PURE__ */ _jsxC(Slot, null, 3, "2Y_0"),
|
|
1516
|
+
children: /* @__PURE__ */ _jsxC(Slot$1, null, 3, "2Y_0"),
|
|
1517
1517
|
style: {
|
|
1518
1518
|
width: "100%",
|
|
1519
1519
|
alignSelf: "stretch",
|
|
@@ -1702,7 +1702,7 @@ const handleABTesting = async ({ item, canTrack }) => {
|
|
|
1702
1702
|
};
|
|
1703
1703
|
};
|
|
1704
1704
|
const getDefaultCanTrack = (canTrack) => checkIsDefined(canTrack) ? canTrack : true;
|
|
1705
|
-
const componentInfo$
|
|
1705
|
+
const componentInfo$b = {
|
|
1706
1706
|
name: "Core:Button",
|
|
1707
1707
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1708
1708
|
defaultStyles: {
|
|
@@ -1740,7 +1740,7 @@ const componentInfo$a = {
|
|
|
1740
1740
|
static: true,
|
|
1741
1741
|
noWrap: true
|
|
1742
1742
|
};
|
|
1743
|
-
const componentInfo$
|
|
1743
|
+
const componentInfo$a = {
|
|
1744
1744
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1745
1745
|
name: "Columns",
|
|
1746
1746
|
isRSC: true,
|
|
@@ -1982,7 +1982,7 @@ const componentInfo$9 = {
|
|
|
1982
1982
|
}
|
|
1983
1983
|
]
|
|
1984
1984
|
};
|
|
1985
|
-
const componentInfo$
|
|
1985
|
+
const componentInfo$9 = {
|
|
1986
1986
|
name: "Custom Code",
|
|
1987
1987
|
static: true,
|
|
1988
1988
|
requiredPermissions: [
|
|
@@ -2061,7 +2061,7 @@ const CustomCode = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((prop
|
|
|
2061
2061
|
], "p0.code")
|
|
2062
2062
|
}, null, 3, "bY_0");
|
|
2063
2063
|
}, "CustomCode_component_uYOSy7w7Zqw"));
|
|
2064
|
-
const componentInfo$
|
|
2064
|
+
const componentInfo$8 = {
|
|
2065
2065
|
name: "Embed",
|
|
2066
2066
|
static: true,
|
|
2067
2067
|
inputs: [
|
|
@@ -2154,14 +2154,14 @@ const Embed = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
2154
2154
|
], "p0.content")
|
|
2155
2155
|
}, null, 3, "9r_0");
|
|
2156
2156
|
}, "Embed_component_Uji08ORjXbE"));
|
|
2157
|
-
const componentInfo$
|
|
2157
|
+
const componentInfo$7 = {
|
|
2158
2158
|
name: "Fragment",
|
|
2159
2159
|
static: true,
|
|
2160
2160
|
hidden: true,
|
|
2161
2161
|
canHaveChildren: true,
|
|
2162
2162
|
noWrap: true
|
|
2163
2163
|
};
|
|
2164
|
-
const componentInfo$
|
|
2164
|
+
const componentInfo$6 = {
|
|
2165
2165
|
name: "Image",
|
|
2166
2166
|
static: true,
|
|
2167
2167
|
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",
|
|
@@ -2309,7 +2309,7 @@ const componentInfo$5 = {
|
|
|
2309
2309
|
}
|
|
2310
2310
|
]
|
|
2311
2311
|
};
|
|
2312
|
-
const componentInfo$
|
|
2312
|
+
const componentInfo$5 = {
|
|
2313
2313
|
// friendlyName?
|
|
2314
2314
|
name: "Raw:Img",
|
|
2315
2315
|
hideFromInsertMenu: true,
|
|
@@ -2351,7 +2351,7 @@ const ImgComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
2351
2351
|
], '{objectFit:p0.backgroundSize||"cover",objectPosition:p0.backgroundPosition||"center"}')
|
|
2352
2352
|
}, 0, isEditing() && props.imgSrc || "default-key");
|
|
2353
2353
|
}, "ImgComponent_component_FXvIDBSffO8"));
|
|
2354
|
-
const componentInfo$
|
|
2354
|
+
const componentInfo$4 = {
|
|
2355
2355
|
name: "Core:Section",
|
|
2356
2356
|
static: true,
|
|
2357
2357
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2396,6 +2396,61 @@ const componentInfo$3 = {
|
|
|
2396
2396
|
}
|
|
2397
2397
|
]
|
|
2398
2398
|
};
|
|
2399
|
+
const componentInfo$3 = {
|
|
2400
|
+
name: "Slot",
|
|
2401
|
+
isRSC: true,
|
|
2402
|
+
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
2403
|
+
docsLink: "https://www.builder.io/c/docs/symbols-with-blocks",
|
|
2404
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F3aad6de36eae43b59b52c85190fdef56",
|
|
2405
|
+
// Maybe wrap this for canHaveChildren so bind children to this hm
|
|
2406
|
+
inputs: [
|
|
2407
|
+
{
|
|
2408
|
+
name: "name",
|
|
2409
|
+
type: "string",
|
|
2410
|
+
required: true,
|
|
2411
|
+
defaultValue: "children"
|
|
2412
|
+
}
|
|
2413
|
+
]
|
|
2414
|
+
};
|
|
2415
|
+
const Slot = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
2416
|
+
var _a, _b;
|
|
2417
|
+
return /* @__PURE__ */ _jsxS("div", {
|
|
2418
|
+
...!((_a = props.builderContext.context) == null ? void 0 : _a.symbolId) && {
|
|
2419
|
+
"builder-slot": props.name
|
|
2420
|
+
},
|
|
2421
|
+
children: /* @__PURE__ */ _jsxC(Blocks, {
|
|
2422
|
+
get parent() {
|
|
2423
|
+
var _a2;
|
|
2424
|
+
return (_a2 = props.builderContext.context) == null ? void 0 : _a2.symbolId;
|
|
2425
|
+
},
|
|
2426
|
+
get path() {
|
|
2427
|
+
return `symbol.data.${props.name}`;
|
|
2428
|
+
},
|
|
2429
|
+
get context() {
|
|
2430
|
+
return props.builderContext;
|
|
2431
|
+
},
|
|
2432
|
+
blocks: deoptSignal((_b = props.builderContext.rootState) == null ? void 0 : _b[props.name]),
|
|
2433
|
+
[_IMMUTABLE]: {
|
|
2434
|
+
context: _fnSignal((p0) => p0.builderContext, [
|
|
2435
|
+
props
|
|
2436
|
+
], "p0.builderContext"),
|
|
2437
|
+
parent: _fnSignal((p0) => {
|
|
2438
|
+
var _a2;
|
|
2439
|
+
return (_a2 = p0.builderContext.context) == null ? void 0 : _a2.symbolId;
|
|
2440
|
+
}, [
|
|
2441
|
+
props
|
|
2442
|
+
], "p0.builderContext.context?.symbolId"),
|
|
2443
|
+
path: _fnSignal((p0) => `symbol.data.${p0.name}`, [
|
|
2444
|
+
props
|
|
2445
|
+
], "`symbol.data.${p0.name}`")
|
|
2446
|
+
}
|
|
2447
|
+
}, 3, "B1_0")
|
|
2448
|
+
}, {
|
|
2449
|
+
style: {
|
|
2450
|
+
pointerEvents: "auto"
|
|
2451
|
+
}
|
|
2452
|
+
}, 0, "B1_1");
|
|
2453
|
+
}, "Slot_component_WWgWgfV0bb0"));
|
|
2399
2454
|
const componentInfo$2 = {
|
|
2400
2455
|
name: "Symbol",
|
|
2401
2456
|
noWrap: true,
|
|
@@ -2681,7 +2736,7 @@ const Video = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
2681
2736
|
flexDirection: "column",
|
|
2682
2737
|
alignItems: "stretch"
|
|
2683
2738
|
}
|
|
2684
|
-
}, /* @__PURE__ */ _jsxC(Slot, null, 3, "j7_2"), 1, "j7_3") : null,
|
|
2739
|
+
}, /* @__PURE__ */ _jsxC(Slot$1, null, 3, "j7_2"), 1, "j7_3") : null,
|
|
2685
2740
|
((_g = (_f = props.builderBlock) == null ? void 0 : _f.children) == null ? void 0 : _g.length) && !props.fitContent ? /* @__PURE__ */ _jsxQ("div", null, {
|
|
2686
2741
|
style: {
|
|
2687
2742
|
pointerEvents: "none",
|
|
@@ -2694,41 +2749,41 @@ const Video = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
2694
2749
|
width: "100%",
|
|
2695
2750
|
height: "100%"
|
|
2696
2751
|
}
|
|
2697
|
-
}, /* @__PURE__ */ _jsxC(Slot, null, 3, "j7_4"), 1, "j7_5") : null
|
|
2752
|
+
}, /* @__PURE__ */ _jsxC(Slot$1, null, 3, "j7_4"), 1, "j7_5") : null
|
|
2698
2753
|
], 1, "j7_6");
|
|
2699
2754
|
}, "Video_component_qdcTZflYyoQ"));
|
|
2700
2755
|
const getDefaultRegisteredComponents = () => [
|
|
2701
2756
|
{
|
|
2702
2757
|
component: Button,
|
|
2703
|
-
...componentInfo$
|
|
2758
|
+
...componentInfo$b
|
|
2704
2759
|
},
|
|
2705
2760
|
{
|
|
2706
2761
|
component: Columns,
|
|
2707
|
-
...componentInfo$
|
|
2762
|
+
...componentInfo$a
|
|
2708
2763
|
},
|
|
2709
2764
|
{
|
|
2710
2765
|
component: CustomCode,
|
|
2711
|
-
...componentInfo$
|
|
2766
|
+
...componentInfo$9
|
|
2712
2767
|
},
|
|
2713
2768
|
{
|
|
2714
2769
|
component: Embed,
|
|
2715
|
-
...componentInfo$
|
|
2770
|
+
...componentInfo$8
|
|
2716
2771
|
},
|
|
2717
2772
|
{
|
|
2718
2773
|
component: FragmentComponent,
|
|
2719
|
-
...componentInfo$
|
|
2774
|
+
...componentInfo$7
|
|
2720
2775
|
},
|
|
2721
2776
|
{
|
|
2722
2777
|
component: Image,
|
|
2723
|
-
...componentInfo$
|
|
2778
|
+
...componentInfo$6
|
|
2724
2779
|
},
|
|
2725
2780
|
{
|
|
2726
2781
|
component: ImgComponent,
|
|
2727
|
-
...componentInfo$
|
|
2782
|
+
...componentInfo$5
|
|
2728
2783
|
},
|
|
2729
2784
|
{
|
|
2730
2785
|
component: SectionComponent,
|
|
2731
|
-
...componentInfo$
|
|
2786
|
+
...componentInfo$4
|
|
2732
2787
|
},
|
|
2733
2788
|
{
|
|
2734
2789
|
component: Symbol$1,
|
|
@@ -2741,6 +2796,10 @@ const getDefaultRegisteredComponents = () => [
|
|
|
2741
2796
|
{
|
|
2742
2797
|
component: Video,
|
|
2743
2798
|
...componentInfo
|
|
2799
|
+
},
|
|
2800
|
+
{
|
|
2801
|
+
component: Slot,
|
|
2802
|
+
...componentInfo$3
|
|
2744
2803
|
}
|
|
2745
2804
|
];
|
|
2746
2805
|
const components = [];
|
|
@@ -3180,7 +3239,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
3180
3239
|
}
|
|
3181
3240
|
};
|
|
3182
3241
|
};
|
|
3183
|
-
const SDK_VERSION = "0.
|
|
3242
|
+
const SDK_VERSION = "0.12.1";
|
|
3184
3243
|
const registry = {};
|
|
3185
3244
|
function register(type, info) {
|
|
3186
3245
|
let typeList = registry[type];
|
|
@@ -3641,7 +3700,7 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
3641
3700
|
},
|
|
3642
3701
|
...props.contentWrapperProps,
|
|
3643
3702
|
class: `variant-${((_d = props.content) == null ? void 0 : _d.testVariationId) || ((_e = props.content) == null ? void 0 : _e.id)}`
|
|
3644
|
-
}, /* @__PURE__ */ _jsxC(Slot, null, 3, "06_0")) : null
|
|
3703
|
+
}, /* @__PURE__ */ _jsxC(Slot$1, null, 3, "06_0")) : null
|
|
3645
3704
|
}, 1, "06_1");
|
|
3646
3705
|
}, "EnableEditor_component_ko1mO8oaj8k"));
|
|
3647
3706
|
const getCssFromFont = (font) => {
|
|
@@ -4320,7 +4379,11 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
4320
4379
|
return props.builderContext.apiKey;
|
|
4321
4380
|
},
|
|
4322
4381
|
get context() {
|
|
4323
|
-
|
|
4382
|
+
var _a2;
|
|
4383
|
+
return {
|
|
4384
|
+
...props.builderContext.context,
|
|
4385
|
+
symbolId: (_a2 = props.builderBlock) == null ? void 0 : _a2.id
|
|
4386
|
+
};
|
|
4324
4387
|
},
|
|
4325
4388
|
get customComponents() {
|
|
4326
4389
|
return Object.values(props.builderComponents);
|
|
@@ -4350,9 +4413,15 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
4350
4413
|
content: _fnSignal((p0) => p0.contentToUse, [
|
|
4351
4414
|
state
|
|
4352
4415
|
], "p0.contentToUse"),
|
|
4353
|
-
context: _fnSignal((p0) =>
|
|
4416
|
+
context: _fnSignal((p0) => {
|
|
4417
|
+
var _a2;
|
|
4418
|
+
return {
|
|
4419
|
+
...p0.builderContext.context,
|
|
4420
|
+
symbolId: (_a2 = p0.builderBlock) == null ? void 0 : _a2.id
|
|
4421
|
+
};
|
|
4422
|
+
}, [
|
|
4354
4423
|
props
|
|
4355
|
-
], "p0.builderContext.context"),
|
|
4424
|
+
], "{...p0.builderContext.context,symbolId:p0.builderBlock?.id}"),
|
|
4356
4425
|
customComponents: _fnSignal((p0) => Object.values(p0.builderComponents), [
|
|
4357
4426
|
props
|
|
4358
4427
|
], "Object.values(p0.builderComponents)"),
|