@builder.io/sdk-qwik 0.12.0 → 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
package/lib/node/index.qwik.cjs
CHANGED
|
@@ -1805,7 +1805,7 @@ const handleABTesting = async ({ item, canTrack }) => {
|
|
|
1805
1805
|
};
|
|
1806
1806
|
};
|
|
1807
1807
|
const getDefaultCanTrack = (canTrack) => checkIsDefined(canTrack) ? canTrack : true;
|
|
1808
|
-
const componentInfo$
|
|
1808
|
+
const componentInfo$b = {
|
|
1809
1809
|
name: "Core:Button",
|
|
1810
1810
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1811
1811
|
defaultStyles: {
|
|
@@ -1843,7 +1843,7 @@ const componentInfo$a = {
|
|
|
1843
1843
|
static: true,
|
|
1844
1844
|
noWrap: true
|
|
1845
1845
|
};
|
|
1846
|
-
const componentInfo$
|
|
1846
|
+
const componentInfo$a = {
|
|
1847
1847
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1848
1848
|
name: "Columns",
|
|
1849
1849
|
isRSC: true,
|
|
@@ -2085,7 +2085,7 @@ const componentInfo$9 = {
|
|
|
2085
2085
|
}
|
|
2086
2086
|
]
|
|
2087
2087
|
};
|
|
2088
|
-
const componentInfo$
|
|
2088
|
+
const componentInfo$9 = {
|
|
2089
2089
|
name: "Custom Code",
|
|
2090
2090
|
static: true,
|
|
2091
2091
|
requiredPermissions: [
|
|
@@ -2164,7 +2164,7 @@ const CustomCode = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
|
|
|
2164
2164
|
], "p0.code")
|
|
2165
2165
|
}, null, 3, "bY_0");
|
|
2166
2166
|
}, "CustomCode_component_uYOSy7w7Zqw"));
|
|
2167
|
-
const componentInfo$
|
|
2167
|
+
const componentInfo$8 = {
|
|
2168
2168
|
name: "Embed",
|
|
2169
2169
|
static: true,
|
|
2170
2170
|
inputs: [
|
|
@@ -2257,14 +2257,14 @@ const Embed = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
2257
2257
|
], "p0.content")
|
|
2258
2258
|
}, null, 3, "9r_0");
|
|
2259
2259
|
}, "Embed_component_Uji08ORjXbE"));
|
|
2260
|
-
const componentInfo$
|
|
2260
|
+
const componentInfo$7 = {
|
|
2261
2261
|
name: "Fragment",
|
|
2262
2262
|
static: true,
|
|
2263
2263
|
hidden: true,
|
|
2264
2264
|
canHaveChildren: true,
|
|
2265
2265
|
noWrap: true
|
|
2266
2266
|
};
|
|
2267
|
-
const componentInfo$
|
|
2267
|
+
const componentInfo$6 = {
|
|
2268
2268
|
name: "Image",
|
|
2269
2269
|
static: true,
|
|
2270
2270
|
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",
|
|
@@ -2412,7 +2412,7 @@ const componentInfo$5 = {
|
|
|
2412
2412
|
}
|
|
2413
2413
|
]
|
|
2414
2414
|
};
|
|
2415
|
-
const componentInfo$
|
|
2415
|
+
const componentInfo$5 = {
|
|
2416
2416
|
// friendlyName?
|
|
2417
2417
|
name: "Raw:Img",
|
|
2418
2418
|
hideFromInsertMenu: true,
|
|
@@ -2454,7 +2454,7 @@ const ImgComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
2454
2454
|
], '{objectFit:p0.backgroundSize||"cover",objectPosition:p0.backgroundPosition||"center"}')
|
|
2455
2455
|
}, 0, isEditing() && props.imgSrc || "default-key");
|
|
2456
2456
|
}, "ImgComponent_component_FXvIDBSffO8"));
|
|
2457
|
-
const componentInfo$
|
|
2457
|
+
const componentInfo$4 = {
|
|
2458
2458
|
name: "Core:Section",
|
|
2459
2459
|
static: true,
|
|
2460
2460
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2499,6 +2499,61 @@ const componentInfo$3 = {
|
|
|
2499
2499
|
}
|
|
2500
2500
|
]
|
|
2501
2501
|
};
|
|
2502
|
+
const componentInfo$3 = {
|
|
2503
|
+
name: "Slot",
|
|
2504
|
+
isRSC: true,
|
|
2505
|
+
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
2506
|
+
docsLink: "https://www.builder.io/c/docs/symbols-with-blocks",
|
|
2507
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F3aad6de36eae43b59b52c85190fdef56",
|
|
2508
|
+
// Maybe wrap this for canHaveChildren so bind children to this hm
|
|
2509
|
+
inputs: [
|
|
2510
|
+
{
|
|
2511
|
+
name: "name",
|
|
2512
|
+
type: "string",
|
|
2513
|
+
required: true,
|
|
2514
|
+
defaultValue: "children"
|
|
2515
|
+
}
|
|
2516
|
+
]
|
|
2517
|
+
};
|
|
2518
|
+
const Slot = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
2519
|
+
var _a, _b;
|
|
2520
|
+
return /* @__PURE__ */ qwik._jsxS("div", {
|
|
2521
|
+
...!((_a = props.builderContext.context) == null ? void 0 : _a.symbolId) && {
|
|
2522
|
+
"builder-slot": props.name
|
|
2523
|
+
},
|
|
2524
|
+
children: /* @__PURE__ */ qwik._jsxC(Blocks, {
|
|
2525
|
+
get parent() {
|
|
2526
|
+
var _a2;
|
|
2527
|
+
return (_a2 = props.builderContext.context) == null ? void 0 : _a2.symbolId;
|
|
2528
|
+
},
|
|
2529
|
+
get path() {
|
|
2530
|
+
return `symbol.data.${props.name}`;
|
|
2531
|
+
},
|
|
2532
|
+
get context() {
|
|
2533
|
+
return props.builderContext;
|
|
2534
|
+
},
|
|
2535
|
+
blocks: deoptSignal((_b = props.builderContext.rootState) == null ? void 0 : _b[props.name]),
|
|
2536
|
+
[qwik._IMMUTABLE]: {
|
|
2537
|
+
context: qwik._fnSignal((p0) => p0.builderContext, [
|
|
2538
|
+
props
|
|
2539
|
+
], "p0.builderContext"),
|
|
2540
|
+
parent: qwik._fnSignal((p0) => {
|
|
2541
|
+
var _a2;
|
|
2542
|
+
return (_a2 = p0.builderContext.context) == null ? void 0 : _a2.symbolId;
|
|
2543
|
+
}, [
|
|
2544
|
+
props
|
|
2545
|
+
], "p0.builderContext.context?.symbolId"),
|
|
2546
|
+
path: qwik._fnSignal((p0) => `symbol.data.${p0.name}`, [
|
|
2547
|
+
props
|
|
2548
|
+
], "`symbol.data.${p0.name}`")
|
|
2549
|
+
}
|
|
2550
|
+
}, 3, "B1_0")
|
|
2551
|
+
}, {
|
|
2552
|
+
style: {
|
|
2553
|
+
pointerEvents: "auto"
|
|
2554
|
+
}
|
|
2555
|
+
}, 0, "B1_1");
|
|
2556
|
+
}, "Slot_component_WWgWgfV0bb0"));
|
|
2502
2557
|
const componentInfo$2 = {
|
|
2503
2558
|
name: "Symbol",
|
|
2504
2559
|
noWrap: true,
|
|
@@ -2803,35 +2858,35 @@ const Video = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl(
|
|
|
2803
2858
|
const getDefaultRegisteredComponents = () => [
|
|
2804
2859
|
{
|
|
2805
2860
|
component: Button,
|
|
2806
|
-
...componentInfo$
|
|
2861
|
+
...componentInfo$b
|
|
2807
2862
|
},
|
|
2808
2863
|
{
|
|
2809
2864
|
component: Columns,
|
|
2810
|
-
...componentInfo$
|
|
2865
|
+
...componentInfo$a
|
|
2811
2866
|
},
|
|
2812
2867
|
{
|
|
2813
2868
|
component: CustomCode,
|
|
2814
|
-
...componentInfo$
|
|
2869
|
+
...componentInfo$9
|
|
2815
2870
|
},
|
|
2816
2871
|
{
|
|
2817
2872
|
component: Embed,
|
|
2818
|
-
...componentInfo$
|
|
2873
|
+
...componentInfo$8
|
|
2819
2874
|
},
|
|
2820
2875
|
{
|
|
2821
2876
|
component: FragmentComponent,
|
|
2822
|
-
...componentInfo$
|
|
2877
|
+
...componentInfo$7
|
|
2823
2878
|
},
|
|
2824
2879
|
{
|
|
2825
2880
|
component: Image,
|
|
2826
|
-
...componentInfo$
|
|
2881
|
+
...componentInfo$6
|
|
2827
2882
|
},
|
|
2828
2883
|
{
|
|
2829
2884
|
component: ImgComponent,
|
|
2830
|
-
...componentInfo$
|
|
2885
|
+
...componentInfo$5
|
|
2831
2886
|
},
|
|
2832
2887
|
{
|
|
2833
2888
|
component: SectionComponent,
|
|
2834
|
-
...componentInfo$
|
|
2889
|
+
...componentInfo$4
|
|
2835
2890
|
},
|
|
2836
2891
|
{
|
|
2837
2892
|
component: Symbol$1,
|
|
@@ -2844,6 +2899,10 @@ const getDefaultRegisteredComponents = () => [
|
|
|
2844
2899
|
{
|
|
2845
2900
|
component: Video,
|
|
2846
2901
|
...componentInfo
|
|
2902
|
+
},
|
|
2903
|
+
{
|
|
2904
|
+
component: Slot,
|
|
2905
|
+
...componentInfo$3
|
|
2847
2906
|
}
|
|
2848
2907
|
];
|
|
2849
2908
|
const components = [];
|
|
@@ -3283,7 +3342,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
3283
3342
|
}
|
|
3284
3343
|
};
|
|
3285
3344
|
};
|
|
3286
|
-
const SDK_VERSION = "0.12.
|
|
3345
|
+
const SDK_VERSION = "0.12.1";
|
|
3287
3346
|
const registry = {};
|
|
3288
3347
|
function register(type, info) {
|
|
3289
3348
|
let typeList = registry[type];
|
|
@@ -4423,7 +4482,11 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
4423
4482
|
return props.builderContext.apiKey;
|
|
4424
4483
|
},
|
|
4425
4484
|
get context() {
|
|
4426
|
-
|
|
4485
|
+
var _a2;
|
|
4486
|
+
return {
|
|
4487
|
+
...props.builderContext.context,
|
|
4488
|
+
symbolId: (_a2 = props.builderBlock) == null ? void 0 : _a2.id
|
|
4489
|
+
};
|
|
4427
4490
|
},
|
|
4428
4491
|
get customComponents() {
|
|
4429
4492
|
return Object.values(props.builderComponents);
|
|
@@ -4453,9 +4516,15 @@ const Symbol$1 = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
4453
4516
|
content: qwik._fnSignal((p0) => p0.contentToUse, [
|
|
4454
4517
|
state
|
|
4455
4518
|
], "p0.contentToUse"),
|
|
4456
|
-
context: qwik._fnSignal((p0) =>
|
|
4519
|
+
context: qwik._fnSignal((p0) => {
|
|
4520
|
+
var _a2;
|
|
4521
|
+
return {
|
|
4522
|
+
...p0.builderContext.context,
|
|
4523
|
+
symbolId: (_a2 = p0.builderBlock) == null ? void 0 : _a2.id
|
|
4524
|
+
};
|
|
4525
|
+
}, [
|
|
4457
4526
|
props
|
|
4458
|
-
], "p0.builderContext.context"),
|
|
4527
|
+
], "{...p0.builderContext.context,symbolId:p0.builderBlock?.id}"),
|
|
4459
4528
|
customComponents: qwik._fnSignal((p0) => Object.values(p0.builderComponents), [
|
|
4460
4529
|
props
|
|
4461
4530
|
], "Object.values(p0.builderComponents)"),
|
package/lib/node/index.qwik.mjs
CHANGED
|
@@ -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 { s as safeDynamicRequire } from "./node-evaluate-db446d2b.js";
|
|
4
4
|
import { isServer } from "@builder.io/qwik/build";
|
|
@@ -657,7 +657,7 @@ const BlockWrapper = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
657
657
|
context: props.context.context,
|
|
658
658
|
stripPrefix: true
|
|
659
659
|
}),
|
|
660
|
-
children: /* @__PURE__ */ _jsxC(Slot, null, 3, "87_0")
|
|
660
|
+
children: /* @__PURE__ */ _jsxC(Slot$1, null, 3, "87_0")
|
|
661
661
|
}, 0, "87_1") : /* @__PURE__ */ _jsxC(props.Wrapper, {
|
|
662
662
|
...getBlockProperties({
|
|
663
663
|
block: props.block,
|
|
@@ -690,7 +690,7 @@ const InteractiveElement = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQ
|
|
|
690
690
|
context: props.context.context
|
|
691
691
|
})
|
|
692
692
|
} : {},
|
|
693
|
-
children: /* @__PURE__ */ _jsxC(Slot, null, 3, "q0_0")
|
|
693
|
+
children: /* @__PURE__ */ _jsxC(Slot$1, null, 3, "q0_0")
|
|
694
694
|
}, 0, "q0_1");
|
|
695
695
|
}, "InteractiveElement_component_0UqfJpjhn0g"));
|
|
696
696
|
const getWrapperProps = ({ componentOptions, builderBlock, context, componentRef, includeBlockProps, isInteractive, contextValue }) => {
|
|
@@ -1163,7 +1163,7 @@ const BlocksWrapper = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((p
|
|
|
1163
1163
|
state
|
|
1164
1164
|
]),
|
|
1165
1165
|
...props.BlocksWrapperProps,
|
|
1166
|
-
children: /* @__PURE__ */ _jsxC(Slot, null, 3, "3u_0"),
|
|
1166
|
+
children: /* @__PURE__ */ _jsxC(Slot$1, null, 3, "3u_0"),
|
|
1167
1167
|
[_IMMUTABLE]: {
|
|
1168
1168
|
"builder-parent-id": _fnSignal((p0) => p0.parent, [
|
|
1169
1169
|
props
|
|
@@ -1431,7 +1431,7 @@ const STYLES$1 = `
|
|
|
1431
1431
|
}
|
|
1432
1432
|
`;
|
|
1433
1433
|
const FragmentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
1434
|
-
return /* @__PURE__ */ _jsxQ("span", null, null, /* @__PURE__ */ _jsxC(Slot, null, 3, "oj_0"), 1, "oj_1");
|
|
1434
|
+
return /* @__PURE__ */ _jsxQ("span", null, null, /* @__PURE__ */ _jsxC(Slot$1, null, 3, "oj_0"), 1, "oj_1");
|
|
1435
1435
|
}, "FragmentComponent_component_T0AypnadAK0"));
|
|
1436
1436
|
function removeProtocol(path) {
|
|
1437
1437
|
return path.replace(/http(s)?:/, "");
|
|
@@ -1583,10 +1583,10 @@ const Image = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
1583
1583
|
props
|
|
1584
1584
|
], '{paddingTop:p0.aspectRatio*100+"%"}')
|
|
1585
1585
|
}, null, 3, "0A_1") : null,
|
|
1586
|
-
((_d = (_c = props.builderBlock) == null ? void 0 : _c.children) == null ? void 0 : _d.length) && props.fitContent ? /* @__PURE__ */ _jsxC(Slot, null, 3, "0A_2") : null,
|
|
1586
|
+
((_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,
|
|
1587
1587
|
!props.fitContent && props.children ? /* @__PURE__ */ _jsxQ("div", null, {
|
|
1588
1588
|
class: "div-Image-2"
|
|
1589
|
-
}, /* @__PURE__ */ _jsxC(Slot, null, 3, "0A_3"), 1, "0A_4") : null
|
|
1589
|
+
}, /* @__PURE__ */ _jsxC(Slot$1, null, 3, "0A_3"), 1, "0A_4") : null
|
|
1590
1590
|
]
|
|
1591
1591
|
}, 1, "0A_5");
|
|
1592
1592
|
}, "Image_component_LRxDkFa1EfU"));
|
|
@@ -1614,7 +1614,7 @@ const STYLES = `
|
|
|
1614
1614
|
const SectionComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
1615
1615
|
return /* @__PURE__ */ _jsxS("section", {
|
|
1616
1616
|
...props.attributes,
|
|
1617
|
-
children: /* @__PURE__ */ _jsxC(Slot, null, 3, "2Y_0"),
|
|
1617
|
+
children: /* @__PURE__ */ _jsxC(Slot$1, null, 3, "2Y_0"),
|
|
1618
1618
|
style: {
|
|
1619
1619
|
width: "100%",
|
|
1620
1620
|
alignSelf: "stretch",
|
|
@@ -1803,7 +1803,7 @@ const handleABTesting = async ({ item, canTrack }) => {
|
|
|
1803
1803
|
};
|
|
1804
1804
|
};
|
|
1805
1805
|
const getDefaultCanTrack = (canTrack) => checkIsDefined(canTrack) ? canTrack : true;
|
|
1806
|
-
const componentInfo$
|
|
1806
|
+
const componentInfo$b = {
|
|
1807
1807
|
name: "Core:Button",
|
|
1808
1808
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1809
1809
|
defaultStyles: {
|
|
@@ -1841,7 +1841,7 @@ const componentInfo$a = {
|
|
|
1841
1841
|
static: true,
|
|
1842
1842
|
noWrap: true
|
|
1843
1843
|
};
|
|
1844
|
-
const componentInfo$
|
|
1844
|
+
const componentInfo$a = {
|
|
1845
1845
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1846
1846
|
name: "Columns",
|
|
1847
1847
|
isRSC: true,
|
|
@@ -2083,7 +2083,7 @@ const componentInfo$9 = {
|
|
|
2083
2083
|
}
|
|
2084
2084
|
]
|
|
2085
2085
|
};
|
|
2086
|
-
const componentInfo$
|
|
2086
|
+
const componentInfo$9 = {
|
|
2087
2087
|
name: "Custom Code",
|
|
2088
2088
|
static: true,
|
|
2089
2089
|
requiredPermissions: [
|
|
@@ -2162,7 +2162,7 @@ const CustomCode = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((prop
|
|
|
2162
2162
|
], "p0.code")
|
|
2163
2163
|
}, null, 3, "bY_0");
|
|
2164
2164
|
}, "CustomCode_component_uYOSy7w7Zqw"));
|
|
2165
|
-
const componentInfo$
|
|
2165
|
+
const componentInfo$8 = {
|
|
2166
2166
|
name: "Embed",
|
|
2167
2167
|
static: true,
|
|
2168
2168
|
inputs: [
|
|
@@ -2255,14 +2255,14 @@ const Embed = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
2255
2255
|
], "p0.content")
|
|
2256
2256
|
}, null, 3, "9r_0");
|
|
2257
2257
|
}, "Embed_component_Uji08ORjXbE"));
|
|
2258
|
-
const componentInfo$
|
|
2258
|
+
const componentInfo$7 = {
|
|
2259
2259
|
name: "Fragment",
|
|
2260
2260
|
static: true,
|
|
2261
2261
|
hidden: true,
|
|
2262
2262
|
canHaveChildren: true,
|
|
2263
2263
|
noWrap: true
|
|
2264
2264
|
};
|
|
2265
|
-
const componentInfo$
|
|
2265
|
+
const componentInfo$6 = {
|
|
2266
2266
|
name: "Image",
|
|
2267
2267
|
static: true,
|
|
2268
2268
|
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",
|
|
@@ -2410,7 +2410,7 @@ const componentInfo$5 = {
|
|
|
2410
2410
|
}
|
|
2411
2411
|
]
|
|
2412
2412
|
};
|
|
2413
|
-
const componentInfo$
|
|
2413
|
+
const componentInfo$5 = {
|
|
2414
2414
|
// friendlyName?
|
|
2415
2415
|
name: "Raw:Img",
|
|
2416
2416
|
hideFromInsertMenu: true,
|
|
@@ -2452,7 +2452,7 @@ const ImgComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
2452
2452
|
], '{objectFit:p0.backgroundSize||"cover",objectPosition:p0.backgroundPosition||"center"}')
|
|
2453
2453
|
}, 0, isEditing() && props.imgSrc || "default-key");
|
|
2454
2454
|
}, "ImgComponent_component_FXvIDBSffO8"));
|
|
2455
|
-
const componentInfo$
|
|
2455
|
+
const componentInfo$4 = {
|
|
2456
2456
|
name: "Core:Section",
|
|
2457
2457
|
static: true,
|
|
2458
2458
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2497,6 +2497,61 @@ const componentInfo$3 = {
|
|
|
2497
2497
|
}
|
|
2498
2498
|
]
|
|
2499
2499
|
};
|
|
2500
|
+
const componentInfo$3 = {
|
|
2501
|
+
name: "Slot",
|
|
2502
|
+
isRSC: true,
|
|
2503
|
+
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
2504
|
+
docsLink: "https://www.builder.io/c/docs/symbols-with-blocks",
|
|
2505
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F3aad6de36eae43b59b52c85190fdef56",
|
|
2506
|
+
// Maybe wrap this for canHaveChildren so bind children to this hm
|
|
2507
|
+
inputs: [
|
|
2508
|
+
{
|
|
2509
|
+
name: "name",
|
|
2510
|
+
type: "string",
|
|
2511
|
+
required: true,
|
|
2512
|
+
defaultValue: "children"
|
|
2513
|
+
}
|
|
2514
|
+
]
|
|
2515
|
+
};
|
|
2516
|
+
const Slot = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
2517
|
+
var _a, _b;
|
|
2518
|
+
return /* @__PURE__ */ _jsxS("div", {
|
|
2519
|
+
...!((_a = props.builderContext.context) == null ? void 0 : _a.symbolId) && {
|
|
2520
|
+
"builder-slot": props.name
|
|
2521
|
+
},
|
|
2522
|
+
children: /* @__PURE__ */ _jsxC(Blocks, {
|
|
2523
|
+
get parent() {
|
|
2524
|
+
var _a2;
|
|
2525
|
+
return (_a2 = props.builderContext.context) == null ? void 0 : _a2.symbolId;
|
|
2526
|
+
},
|
|
2527
|
+
get path() {
|
|
2528
|
+
return `symbol.data.${props.name}`;
|
|
2529
|
+
},
|
|
2530
|
+
get context() {
|
|
2531
|
+
return props.builderContext;
|
|
2532
|
+
},
|
|
2533
|
+
blocks: deoptSignal((_b = props.builderContext.rootState) == null ? void 0 : _b[props.name]),
|
|
2534
|
+
[_IMMUTABLE]: {
|
|
2535
|
+
context: _fnSignal((p0) => p0.builderContext, [
|
|
2536
|
+
props
|
|
2537
|
+
], "p0.builderContext"),
|
|
2538
|
+
parent: _fnSignal((p0) => {
|
|
2539
|
+
var _a2;
|
|
2540
|
+
return (_a2 = p0.builderContext.context) == null ? void 0 : _a2.symbolId;
|
|
2541
|
+
}, [
|
|
2542
|
+
props
|
|
2543
|
+
], "p0.builderContext.context?.symbolId"),
|
|
2544
|
+
path: _fnSignal((p0) => `symbol.data.${p0.name}`, [
|
|
2545
|
+
props
|
|
2546
|
+
], "`symbol.data.${p0.name}`")
|
|
2547
|
+
}
|
|
2548
|
+
}, 3, "B1_0")
|
|
2549
|
+
}, {
|
|
2550
|
+
style: {
|
|
2551
|
+
pointerEvents: "auto"
|
|
2552
|
+
}
|
|
2553
|
+
}, 0, "B1_1");
|
|
2554
|
+
}, "Slot_component_WWgWgfV0bb0"));
|
|
2500
2555
|
const componentInfo$2 = {
|
|
2501
2556
|
name: "Symbol",
|
|
2502
2557
|
noWrap: true,
|
|
@@ -2782,7 +2837,7 @@ const Video = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
2782
2837
|
flexDirection: "column",
|
|
2783
2838
|
alignItems: "stretch"
|
|
2784
2839
|
}
|
|
2785
|
-
}, /* @__PURE__ */ _jsxC(Slot, null, 3, "j7_2"), 1, "j7_3") : null,
|
|
2840
|
+
}, /* @__PURE__ */ _jsxC(Slot$1, null, 3, "j7_2"), 1, "j7_3") : null,
|
|
2786
2841
|
((_g = (_f = props.builderBlock) == null ? void 0 : _f.children) == null ? void 0 : _g.length) && !props.fitContent ? /* @__PURE__ */ _jsxQ("div", null, {
|
|
2787
2842
|
style: {
|
|
2788
2843
|
pointerEvents: "none",
|
|
@@ -2795,41 +2850,41 @@ const Video = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
2795
2850
|
width: "100%",
|
|
2796
2851
|
height: "100%"
|
|
2797
2852
|
}
|
|
2798
|
-
}, /* @__PURE__ */ _jsxC(Slot, null, 3, "j7_4"), 1, "j7_5") : null
|
|
2853
|
+
}, /* @__PURE__ */ _jsxC(Slot$1, null, 3, "j7_4"), 1, "j7_5") : null
|
|
2799
2854
|
], 1, "j7_6");
|
|
2800
2855
|
}, "Video_component_qdcTZflYyoQ"));
|
|
2801
2856
|
const getDefaultRegisteredComponents = () => [
|
|
2802
2857
|
{
|
|
2803
2858
|
component: Button,
|
|
2804
|
-
...componentInfo$
|
|
2859
|
+
...componentInfo$b
|
|
2805
2860
|
},
|
|
2806
2861
|
{
|
|
2807
2862
|
component: Columns,
|
|
2808
|
-
...componentInfo$
|
|
2863
|
+
...componentInfo$a
|
|
2809
2864
|
},
|
|
2810
2865
|
{
|
|
2811
2866
|
component: CustomCode,
|
|
2812
|
-
...componentInfo$
|
|
2867
|
+
...componentInfo$9
|
|
2813
2868
|
},
|
|
2814
2869
|
{
|
|
2815
2870
|
component: Embed,
|
|
2816
|
-
...componentInfo$
|
|
2871
|
+
...componentInfo$8
|
|
2817
2872
|
},
|
|
2818
2873
|
{
|
|
2819
2874
|
component: FragmentComponent,
|
|
2820
|
-
...componentInfo$
|
|
2875
|
+
...componentInfo$7
|
|
2821
2876
|
},
|
|
2822
2877
|
{
|
|
2823
2878
|
component: Image,
|
|
2824
|
-
...componentInfo$
|
|
2879
|
+
...componentInfo$6
|
|
2825
2880
|
},
|
|
2826
2881
|
{
|
|
2827
2882
|
component: ImgComponent,
|
|
2828
|
-
...componentInfo$
|
|
2883
|
+
...componentInfo$5
|
|
2829
2884
|
},
|
|
2830
2885
|
{
|
|
2831
2886
|
component: SectionComponent,
|
|
2832
|
-
...componentInfo$
|
|
2887
|
+
...componentInfo$4
|
|
2833
2888
|
},
|
|
2834
2889
|
{
|
|
2835
2890
|
component: Symbol$1,
|
|
@@ -2842,6 +2897,10 @@ const getDefaultRegisteredComponents = () => [
|
|
|
2842
2897
|
{
|
|
2843
2898
|
component: Video,
|
|
2844
2899
|
...componentInfo
|
|
2900
|
+
},
|
|
2901
|
+
{
|
|
2902
|
+
component: Slot,
|
|
2903
|
+
...componentInfo$3
|
|
2845
2904
|
}
|
|
2846
2905
|
];
|
|
2847
2906
|
const components = [];
|
|
@@ -3281,7 +3340,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
3281
3340
|
}
|
|
3282
3341
|
};
|
|
3283
3342
|
};
|
|
3284
|
-
const SDK_VERSION = "0.12.
|
|
3343
|
+
const SDK_VERSION = "0.12.1";
|
|
3285
3344
|
const registry = {};
|
|
3286
3345
|
function register(type, info) {
|
|
3287
3346
|
let typeList = registry[type];
|
|
@@ -3742,7 +3801,7 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
3742
3801
|
},
|
|
3743
3802
|
...props.contentWrapperProps,
|
|
3744
3803
|
class: `variant-${((_d = props.content) == null ? void 0 : _d.testVariationId) || ((_e = props.content) == null ? void 0 : _e.id)}`
|
|
3745
|
-
}, /* @__PURE__ */ _jsxC(Slot, null, 3, "06_0")) : null
|
|
3804
|
+
}, /* @__PURE__ */ _jsxC(Slot$1, null, 3, "06_0")) : null
|
|
3746
3805
|
}, 1, "06_1");
|
|
3747
3806
|
}, "EnableEditor_component_ko1mO8oaj8k"));
|
|
3748
3807
|
const getCssFromFont = (font) => {
|
|
@@ -4421,7 +4480,11 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
4421
4480
|
return props.builderContext.apiKey;
|
|
4422
4481
|
},
|
|
4423
4482
|
get context() {
|
|
4424
|
-
|
|
4483
|
+
var _a2;
|
|
4484
|
+
return {
|
|
4485
|
+
...props.builderContext.context,
|
|
4486
|
+
symbolId: (_a2 = props.builderBlock) == null ? void 0 : _a2.id
|
|
4487
|
+
};
|
|
4425
4488
|
},
|
|
4426
4489
|
get customComponents() {
|
|
4427
4490
|
return Object.values(props.builderComponents);
|
|
@@ -4451,9 +4514,15 @@ const Symbol$1 = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
4451
4514
|
content: _fnSignal((p0) => p0.contentToUse, [
|
|
4452
4515
|
state
|
|
4453
4516
|
], "p0.contentToUse"),
|
|
4454
|
-
context: _fnSignal((p0) =>
|
|
4517
|
+
context: _fnSignal((p0) => {
|
|
4518
|
+
var _a2;
|
|
4519
|
+
return {
|
|
4520
|
+
...p0.builderContext.context,
|
|
4521
|
+
symbolId: (_a2 = p0.builderBlock) == null ? void 0 : _a2.id
|
|
4522
|
+
};
|
|
4523
|
+
}, [
|
|
4455
4524
|
props
|
|
4456
|
-
], "p0.builderContext.context"),
|
|
4525
|
+
], "{...p0.builderContext.context,symbolId:p0.builderBlock?.id}"),
|
|
4457
4526
|
customComponents: _fnSignal((p0) => Object.values(p0.builderComponents), [
|
|
4458
4527
|
props
|
|
4459
4528
|
], "Object.values(p0.builderComponents)"),
|
package/package.json
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BuilderContextInterface } from "../../context/types.js";
|
|
2
|
+
import { BuilderBlock } from "../../types/builder-block.js";
|
|
3
|
+
export interface DropzoneProps {
|
|
4
|
+
name: string;
|
|
5
|
+
builderBlock: BuilderBlock;
|
|
6
|
+
builderContext: BuilderContextInterface;
|
|
7
|
+
attributes: any;
|
|
8
|
+
}
|
|
9
|
+
export declare const Slot: import("@builder.io/qwik").Component<DropzoneProps>;
|
|
10
|
+
export default Slot;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.12.
|
|
1
|
+
export declare const SDK_VERSION = "0.12.1";
|