@builder.io/sdk-qwik 0.15.1 → 0.16.0
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 +33 -138
- package/lib/browser/index.qwik.mjs +33 -138
- package/lib/edge/index.qwik.cjs +33 -138
- package/lib/edge/index.qwik.mjs +33 -138
- package/lib/node/index.qwik.cjs +33 -138
- package/lib/node/index.qwik.mjs +33 -138
- package/package.json +1 -1
- package/types/src/components/block/block.helpers.d.ts +8 -8
- package/types/src/constants/sdk-version.d.ts +1 -1
|
@@ -626,56 +626,37 @@ const getRepeatItemData = ({ block, context }) => {
|
|
|
626
626
|
}));
|
|
627
627
|
return repeatArray;
|
|
628
628
|
};
|
|
629
|
-
const applyDefaults = (shouldReceiveBuilderProps) => {
|
|
630
|
-
return {
|
|
631
|
-
// once we bump to a major version, toggle this to `false`.
|
|
632
|
-
builderBlock: true,
|
|
633
|
-
// once we bump to a major version, toggle this to `false`.
|
|
634
|
-
builderContext: true,
|
|
635
|
-
builderComponents: false,
|
|
636
|
-
builderLinkComponent: false,
|
|
637
|
-
...shouldReceiveBuilderProps
|
|
638
|
-
};
|
|
639
|
-
};
|
|
640
629
|
const provideLinkComponent = (block, linkComponent) => {
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
return {
|
|
647
|
-
builderLinkComponent: linkComponent
|
|
648
|
-
};
|
|
630
|
+
var _a;
|
|
631
|
+
if ((_a = block == null ? void 0 : block.shouldReceiveBuilderProps) == null ? void 0 : _a.builderLinkComponent)
|
|
632
|
+
return {
|
|
633
|
+
builderLinkComponent: linkComponent
|
|
634
|
+
};
|
|
635
|
+
return {};
|
|
649
636
|
};
|
|
650
637
|
const provideRegisteredComponents = (block, registeredComponents) => {
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
return {
|
|
657
|
-
builderComponents: registeredComponents
|
|
658
|
-
};
|
|
638
|
+
var _a;
|
|
639
|
+
if ((_a = block == null ? void 0 : block.shouldReceiveBuilderProps) == null ? void 0 : _a.builderComponents)
|
|
640
|
+
return {
|
|
641
|
+
builderComponents: registeredComponents
|
|
642
|
+
};
|
|
643
|
+
return {};
|
|
659
644
|
};
|
|
660
645
|
const provideBuilderBlock = (block, builderBlock) => {
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
return {
|
|
667
|
-
builderBlock
|
|
668
|
-
};
|
|
646
|
+
var _a;
|
|
647
|
+
if ((_a = block == null ? void 0 : block.shouldReceiveBuilderProps) == null ? void 0 : _a.builderBlock)
|
|
648
|
+
return {
|
|
649
|
+
builderBlock
|
|
650
|
+
};
|
|
651
|
+
return {};
|
|
669
652
|
};
|
|
670
653
|
const provideBuilderContext = (block, context) => {
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
return {
|
|
677
|
-
builderContext: context
|
|
678
|
-
};
|
|
654
|
+
var _a;
|
|
655
|
+
if ((_a = block == null ? void 0 : block.shouldReceiveBuilderProps) == null ? void 0 : _a.builderContext)
|
|
656
|
+
return {
|
|
657
|
+
builderContext: context
|
|
658
|
+
};
|
|
659
|
+
return {};
|
|
679
660
|
};
|
|
680
661
|
const SIZES = {
|
|
681
662
|
small: {
|
|
@@ -1563,8 +1544,9 @@ const getWidth = function getWidth2(props, state, index) {
|
|
|
1563
1544
|
return ((_a = state.cols[index]) == null ? void 0 : _a.width) || 100 / state.cols.length;
|
|
1564
1545
|
};
|
|
1565
1546
|
const getColumnCssWidth = function getColumnCssWidth2(props, state, index) {
|
|
1566
|
-
const
|
|
1567
|
-
|
|
1547
|
+
const width = getWidth(props, state, index);
|
|
1548
|
+
const subtractWidth = state.gutterSize * (state.cols.length - 1) * (width / 100);
|
|
1549
|
+
return `calc(${width}% - ${subtractWidth}px)`;
|
|
1568
1550
|
};
|
|
1569
1551
|
const getTabletStyle = function getTabletStyle2(props, state, { stackedStyle, desktopStyle }) {
|
|
1570
1552
|
return state.stackAt === "tablet" ? stackedStyle : desktopStyle;
|
|
@@ -2511,9 +2493,6 @@ const componentInfo$h = {
|
|
|
2511
2493
|
static: true,
|
|
2512
2494
|
noWrap: true,
|
|
2513
2495
|
shouldReceiveBuilderProps: {
|
|
2514
|
-
builderBlock: false,
|
|
2515
|
-
builderContext: false,
|
|
2516
|
-
builderComponents: false,
|
|
2517
2496
|
builderLinkComponent: true
|
|
2518
2497
|
}
|
|
2519
2498
|
};
|
|
@@ -2766,12 +2745,6 @@ const componentInfo$g = {
|
|
|
2766
2745
|
}
|
|
2767
2746
|
};
|
|
2768
2747
|
const componentInfo$f = {
|
|
2769
|
-
shouldReceiveBuilderProps: {
|
|
2770
|
-
builderBlock: false,
|
|
2771
|
-
builderContext: false,
|
|
2772
|
-
builderComponents: false,
|
|
2773
|
-
builderLinkComponent: false
|
|
2774
|
-
},
|
|
2775
2748
|
name: "Fragment",
|
|
2776
2749
|
static: true,
|
|
2777
2750
|
hidden: true,
|
|
@@ -2933,19 +2906,10 @@ const componentInfo$e = {
|
|
|
2933
2906
|
}
|
|
2934
2907
|
],
|
|
2935
2908
|
shouldReceiveBuilderProps: {
|
|
2936
|
-
builderBlock: true
|
|
2937
|
-
builderContext: false,
|
|
2938
|
-
builderComponents: false,
|
|
2939
|
-
builderLinkComponent: false
|
|
2909
|
+
builderBlock: true
|
|
2940
2910
|
}
|
|
2941
2911
|
};
|
|
2942
2912
|
const componentInfo$d = {
|
|
2943
|
-
shouldReceiveBuilderProps: {
|
|
2944
|
-
builderBlock: false,
|
|
2945
|
-
builderContext: false,
|
|
2946
|
-
builderComponents: false,
|
|
2947
|
-
builderLinkComponent: false
|
|
2948
|
-
},
|
|
2949
2913
|
name: "Core:Section",
|
|
2950
2914
|
static: true,
|
|
2951
2915
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3006,10 +2970,7 @@ const componentInfo$c = {
|
|
|
3006
2970
|
}
|
|
3007
2971
|
],
|
|
3008
2972
|
shouldReceiveBuilderProps: {
|
|
3009
|
-
|
|
3010
|
-
builderContext: true,
|
|
3011
|
-
builderComponents: false,
|
|
3012
|
-
builderLinkComponent: false
|
|
2973
|
+
builderContext: true
|
|
3013
2974
|
}
|
|
3014
2975
|
};
|
|
3015
2976
|
const Slot = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
@@ -3383,10 +3344,7 @@ const Tabs = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
|
|
|
3383
3344
|
}, "Tabs_component_MhWcxXy0lMY"));
|
|
3384
3345
|
const componentInfo$9 = {
|
|
3385
3346
|
shouldReceiveBuilderProps: {
|
|
3386
|
-
builderBlock: false
|
|
3387
|
-
builderContext: false,
|
|
3388
|
-
builderComponents: false,
|
|
3389
|
-
builderLinkComponent: false
|
|
3347
|
+
builderBlock: false
|
|
3390
3348
|
},
|
|
3391
3349
|
name: "Text",
|
|
3392
3350
|
static: true,
|
|
@@ -3423,12 +3381,6 @@ const Text = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((
|
|
|
3423
3381
|
}, null, 3, "yO_0");
|
|
3424
3382
|
}, "Text_component_15p0cKUxgIE"));
|
|
3425
3383
|
const componentInfo$8 = {
|
|
3426
|
-
shouldReceiveBuilderProps: {
|
|
3427
|
-
builderBlock: false,
|
|
3428
|
-
builderContext: false,
|
|
3429
|
-
builderComponents: false,
|
|
3430
|
-
builderLinkComponent: false
|
|
3431
|
-
},
|
|
3432
3384
|
name: "Custom Code",
|
|
3433
3385
|
static: true,
|
|
3434
3386
|
requiredPermissions: [
|
|
@@ -3508,12 +3460,6 @@ const CustomCode = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inline
|
|
|
3508
3460
|
}, null, 3, "bY_0");
|
|
3509
3461
|
}, "CustomCode_component_uYOSy7w7Zqw"));
|
|
3510
3462
|
const componentInfo$7 = {
|
|
3511
|
-
shouldReceiveBuilderProps: {
|
|
3512
|
-
builderBlock: false,
|
|
3513
|
-
builderContext: false,
|
|
3514
|
-
builderComponents: false,
|
|
3515
|
-
builderLinkComponent: false
|
|
3516
|
-
},
|
|
3517
3463
|
name: "Embed",
|
|
3518
3464
|
static: true,
|
|
3519
3465
|
inputs: [
|
|
@@ -3522,25 +3468,7 @@ const componentInfo$7 = {
|
|
|
3522
3468
|
type: "url",
|
|
3523
3469
|
required: true,
|
|
3524
3470
|
defaultValue: "",
|
|
3525
|
-
helperText: "e.g. enter a youtube url, google map, etc"
|
|
3526
|
-
onChange: (options) => {
|
|
3527
|
-
const url = options.get("url");
|
|
3528
|
-
if (url) {
|
|
3529
|
-
options.set("content", "Loading...");
|
|
3530
|
-
const apiKey = _iframelyApiKey;
|
|
3531
|
-
return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
|
|
3532
|
-
if (options.get("url") === url) {
|
|
3533
|
-
if (data.html)
|
|
3534
|
-
options.set("content", data.html);
|
|
3535
|
-
else
|
|
3536
|
-
options.set("content", "Invalid url, please try another");
|
|
3537
|
-
}
|
|
3538
|
-
}).catch((_err) => {
|
|
3539
|
-
options.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
3540
|
-
});
|
|
3541
|
-
} else
|
|
3542
|
-
options.delete("content");
|
|
3543
|
-
}
|
|
3471
|
+
helperText: "e.g. enter a youtube url, google map, etc"
|
|
3544
3472
|
},
|
|
3545
3473
|
{
|
|
3546
3474
|
name: "content",
|
|
@@ -4194,12 +4122,6 @@ const STYLES = `
|
|
|
4194
4122
|
}
|
|
4195
4123
|
`;
|
|
4196
4124
|
const componentInfo$5 = {
|
|
4197
|
-
shouldReceiveBuilderProps: {
|
|
4198
|
-
builderBlock: false,
|
|
4199
|
-
builderContext: false,
|
|
4200
|
-
builderComponents: false,
|
|
4201
|
-
builderLinkComponent: false
|
|
4202
|
-
},
|
|
4203
4125
|
name: "Form:Input",
|
|
4204
4126
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
4205
4127
|
inputs: [
|
|
@@ -4283,12 +4205,6 @@ const FormInputComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwi
|
|
|
4283
4205
|
});
|
|
4284
4206
|
}, "FormInputComponent_component_AUUjdN0ueMs"));
|
|
4285
4207
|
const componentInfo$4 = {
|
|
4286
|
-
shouldReceiveBuilderProps: {
|
|
4287
|
-
builderBlock: false,
|
|
4288
|
-
builderContext: false,
|
|
4289
|
-
builderComponents: false,
|
|
4290
|
-
builderLinkComponent: false
|
|
4291
|
-
},
|
|
4292
4208
|
name: "Form:Select",
|
|
4293
4209
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
4294
4210
|
defaultStyles: {
|
|
@@ -4358,12 +4274,6 @@ const SelectComponent = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.i
|
|
|
4358
4274
|
}));
|
|
4359
4275
|
}, "SelectComponent_component_SPKbsFLikZU"));
|
|
4360
4276
|
const componentInfo$3 = {
|
|
4361
|
-
shouldReceiveBuilderProps: {
|
|
4362
|
-
builderBlock: false,
|
|
4363
|
-
builderContext: false,
|
|
4364
|
-
builderComponents: false,
|
|
4365
|
-
builderLinkComponent: false
|
|
4366
|
-
},
|
|
4367
4277
|
name: "Form:SubmitButton",
|
|
4368
4278
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
4369
4279
|
defaultStyles: {
|
|
@@ -4398,12 +4308,6 @@ const SubmitButton = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inli
|
|
|
4398
4308
|
}, 0, "6z_0");
|
|
4399
4309
|
}, "SubmitButton_component_NXvMBMCDhwc"));
|
|
4400
4310
|
const componentInfo$2 = {
|
|
4401
|
-
shouldReceiveBuilderProps: {
|
|
4402
|
-
builderBlock: false,
|
|
4403
|
-
builderContext: false,
|
|
4404
|
-
builderComponents: false,
|
|
4405
|
-
builderLinkComponent: false
|
|
4406
|
-
},
|
|
4407
4311
|
name: "Form:TextArea",
|
|
4408
4312
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
4409
4313
|
inputs: [
|
|
@@ -4468,12 +4372,6 @@ const Textarea = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQ
|
|
|
4468
4372
|
}, 0, "kE_0");
|
|
4469
4373
|
}, "Textarea_component_o1TcxV139Oc"));
|
|
4470
4374
|
const componentInfo$1 = {
|
|
4471
|
-
shouldReceiveBuilderProps: {
|
|
4472
|
-
builderBlock: false,
|
|
4473
|
-
builderContext: false,
|
|
4474
|
-
builderComponents: false,
|
|
4475
|
-
builderLinkComponent: false
|
|
4476
|
-
},
|
|
4477
4375
|
// friendlyName?
|
|
4478
4376
|
name: "Raw:Img",
|
|
4479
4377
|
hideFromInsertMenu: true,
|
|
@@ -4637,10 +4535,7 @@ const componentInfo = {
|
|
|
4637
4535
|
}
|
|
4638
4536
|
],
|
|
4639
4537
|
shouldReceiveBuilderProps: {
|
|
4640
|
-
builderBlock: true
|
|
4641
|
-
builderContext: false,
|
|
4642
|
-
builderComponents: false,
|
|
4643
|
-
builderLinkComponent: false
|
|
4538
|
+
builderBlock: true
|
|
4644
4539
|
}
|
|
4645
4540
|
};
|
|
4646
4541
|
const Video = /* @__PURE__ */ qwik.componentQrl(/* @__PURE__ */ qwik.inlinedQrl((props) => {
|
|
@@ -5288,7 +5183,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5288
5183
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
5289
5184
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
5290
5185
|
}
|
|
5291
|
-
const SDK_VERSION = "0.
|
|
5186
|
+
const SDK_VERSION = "0.16.0";
|
|
5292
5187
|
const registry = {};
|
|
5293
5188
|
function register(type, info) {
|
|
5294
5189
|
let typeList = registry[type];
|
|
@@ -624,56 +624,37 @@ const getRepeatItemData = ({ block, context }) => {
|
|
|
624
624
|
}));
|
|
625
625
|
return repeatArray;
|
|
626
626
|
};
|
|
627
|
-
const applyDefaults = (shouldReceiveBuilderProps) => {
|
|
628
|
-
return {
|
|
629
|
-
// once we bump to a major version, toggle this to `false`.
|
|
630
|
-
builderBlock: true,
|
|
631
|
-
// once we bump to a major version, toggle this to `false`.
|
|
632
|
-
builderContext: true,
|
|
633
|
-
builderComponents: false,
|
|
634
|
-
builderLinkComponent: false,
|
|
635
|
-
...shouldReceiveBuilderProps
|
|
636
|
-
};
|
|
637
|
-
};
|
|
638
627
|
const provideLinkComponent = (block, linkComponent) => {
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
return {
|
|
645
|
-
builderLinkComponent: linkComponent
|
|
646
|
-
};
|
|
628
|
+
var _a;
|
|
629
|
+
if ((_a = block == null ? void 0 : block.shouldReceiveBuilderProps) == null ? void 0 : _a.builderLinkComponent)
|
|
630
|
+
return {
|
|
631
|
+
builderLinkComponent: linkComponent
|
|
632
|
+
};
|
|
633
|
+
return {};
|
|
647
634
|
};
|
|
648
635
|
const provideRegisteredComponents = (block, registeredComponents) => {
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
return {
|
|
655
|
-
builderComponents: registeredComponents
|
|
656
|
-
};
|
|
636
|
+
var _a;
|
|
637
|
+
if ((_a = block == null ? void 0 : block.shouldReceiveBuilderProps) == null ? void 0 : _a.builderComponents)
|
|
638
|
+
return {
|
|
639
|
+
builderComponents: registeredComponents
|
|
640
|
+
};
|
|
641
|
+
return {};
|
|
657
642
|
};
|
|
658
643
|
const provideBuilderBlock = (block, builderBlock) => {
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
return {
|
|
665
|
-
builderBlock
|
|
666
|
-
};
|
|
644
|
+
var _a;
|
|
645
|
+
if ((_a = block == null ? void 0 : block.shouldReceiveBuilderProps) == null ? void 0 : _a.builderBlock)
|
|
646
|
+
return {
|
|
647
|
+
builderBlock
|
|
648
|
+
};
|
|
649
|
+
return {};
|
|
667
650
|
};
|
|
668
651
|
const provideBuilderContext = (block, context) => {
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
return {
|
|
675
|
-
builderContext: context
|
|
676
|
-
};
|
|
652
|
+
var _a;
|
|
653
|
+
if ((_a = block == null ? void 0 : block.shouldReceiveBuilderProps) == null ? void 0 : _a.builderContext)
|
|
654
|
+
return {
|
|
655
|
+
builderContext: context
|
|
656
|
+
};
|
|
657
|
+
return {};
|
|
677
658
|
};
|
|
678
659
|
const SIZES = {
|
|
679
660
|
small: {
|
|
@@ -1561,8 +1542,9 @@ const getWidth = function getWidth2(props, state, index) {
|
|
|
1561
1542
|
return ((_a = state.cols[index]) == null ? void 0 : _a.width) || 100 / state.cols.length;
|
|
1562
1543
|
};
|
|
1563
1544
|
const getColumnCssWidth = function getColumnCssWidth2(props, state, index) {
|
|
1564
|
-
const
|
|
1565
|
-
|
|
1545
|
+
const width = getWidth(props, state, index);
|
|
1546
|
+
const subtractWidth = state.gutterSize * (state.cols.length - 1) * (width / 100);
|
|
1547
|
+
return `calc(${width}% - ${subtractWidth}px)`;
|
|
1566
1548
|
};
|
|
1567
1549
|
const getTabletStyle = function getTabletStyle2(props, state, { stackedStyle, desktopStyle }) {
|
|
1568
1550
|
return state.stackAt === "tablet" ? stackedStyle : desktopStyle;
|
|
@@ -2509,9 +2491,6 @@ const componentInfo$h = {
|
|
|
2509
2491
|
static: true,
|
|
2510
2492
|
noWrap: true,
|
|
2511
2493
|
shouldReceiveBuilderProps: {
|
|
2512
|
-
builderBlock: false,
|
|
2513
|
-
builderContext: false,
|
|
2514
|
-
builderComponents: false,
|
|
2515
2494
|
builderLinkComponent: true
|
|
2516
2495
|
}
|
|
2517
2496
|
};
|
|
@@ -2764,12 +2743,6 @@ const componentInfo$g = {
|
|
|
2764
2743
|
}
|
|
2765
2744
|
};
|
|
2766
2745
|
const componentInfo$f = {
|
|
2767
|
-
shouldReceiveBuilderProps: {
|
|
2768
|
-
builderBlock: false,
|
|
2769
|
-
builderContext: false,
|
|
2770
|
-
builderComponents: false,
|
|
2771
|
-
builderLinkComponent: false
|
|
2772
|
-
},
|
|
2773
2746
|
name: "Fragment",
|
|
2774
2747
|
static: true,
|
|
2775
2748
|
hidden: true,
|
|
@@ -2931,19 +2904,10 @@ const componentInfo$e = {
|
|
|
2931
2904
|
}
|
|
2932
2905
|
],
|
|
2933
2906
|
shouldReceiveBuilderProps: {
|
|
2934
|
-
builderBlock: true
|
|
2935
|
-
builderContext: false,
|
|
2936
|
-
builderComponents: false,
|
|
2937
|
-
builderLinkComponent: false
|
|
2907
|
+
builderBlock: true
|
|
2938
2908
|
}
|
|
2939
2909
|
};
|
|
2940
2910
|
const componentInfo$d = {
|
|
2941
|
-
shouldReceiveBuilderProps: {
|
|
2942
|
-
builderBlock: false,
|
|
2943
|
-
builderContext: false,
|
|
2944
|
-
builderComponents: false,
|
|
2945
|
-
builderLinkComponent: false
|
|
2946
|
-
},
|
|
2947
2911
|
name: "Core:Section",
|
|
2948
2912
|
static: true,
|
|
2949
2913
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3004,10 +2968,7 @@ const componentInfo$c = {
|
|
|
3004
2968
|
}
|
|
3005
2969
|
],
|
|
3006
2970
|
shouldReceiveBuilderProps: {
|
|
3007
|
-
|
|
3008
|
-
builderContext: true,
|
|
3009
|
-
builderComponents: false,
|
|
3010
|
-
builderLinkComponent: false
|
|
2971
|
+
builderContext: true
|
|
3011
2972
|
}
|
|
3012
2973
|
};
|
|
3013
2974
|
const Slot = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
@@ -3381,10 +3342,7 @@ const Tabs = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
3381
3342
|
}, "Tabs_component_MhWcxXy0lMY"));
|
|
3382
3343
|
const componentInfo$9 = {
|
|
3383
3344
|
shouldReceiveBuilderProps: {
|
|
3384
|
-
builderBlock: false
|
|
3385
|
-
builderContext: false,
|
|
3386
|
-
builderComponents: false,
|
|
3387
|
-
builderLinkComponent: false
|
|
3345
|
+
builderBlock: false
|
|
3388
3346
|
},
|
|
3389
3347
|
name: "Text",
|
|
3390
3348
|
static: true,
|
|
@@ -3421,12 +3379,6 @@ const Text = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
|
|
|
3421
3379
|
}, null, 3, "yO_0");
|
|
3422
3380
|
}, "Text_component_15p0cKUxgIE"));
|
|
3423
3381
|
const componentInfo$8 = {
|
|
3424
|
-
shouldReceiveBuilderProps: {
|
|
3425
|
-
builderBlock: false,
|
|
3426
|
-
builderContext: false,
|
|
3427
|
-
builderComponents: false,
|
|
3428
|
-
builderLinkComponent: false
|
|
3429
|
-
},
|
|
3430
3382
|
name: "Custom Code",
|
|
3431
3383
|
static: true,
|
|
3432
3384
|
requiredPermissions: [
|
|
@@ -3506,12 +3458,6 @@ const CustomCode = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((prop
|
|
|
3506
3458
|
}, null, 3, "bY_0");
|
|
3507
3459
|
}, "CustomCode_component_uYOSy7w7Zqw"));
|
|
3508
3460
|
const componentInfo$7 = {
|
|
3509
|
-
shouldReceiveBuilderProps: {
|
|
3510
|
-
builderBlock: false,
|
|
3511
|
-
builderContext: false,
|
|
3512
|
-
builderComponents: false,
|
|
3513
|
-
builderLinkComponent: false
|
|
3514
|
-
},
|
|
3515
3461
|
name: "Embed",
|
|
3516
3462
|
static: true,
|
|
3517
3463
|
inputs: [
|
|
@@ -3520,25 +3466,7 @@ const componentInfo$7 = {
|
|
|
3520
3466
|
type: "url",
|
|
3521
3467
|
required: true,
|
|
3522
3468
|
defaultValue: "",
|
|
3523
|
-
helperText: "e.g. enter a youtube url, google map, etc"
|
|
3524
|
-
onChange: (options) => {
|
|
3525
|
-
const url = options.get("url");
|
|
3526
|
-
if (url) {
|
|
3527
|
-
options.set("content", "Loading...");
|
|
3528
|
-
const apiKey = _iframelyApiKey;
|
|
3529
|
-
return fetch(`https://iframe.ly/api/iframely?url=${url}&api_key=${apiKey}`).then((res) => res.json()).then((data) => {
|
|
3530
|
-
if (options.get("url") === url) {
|
|
3531
|
-
if (data.html)
|
|
3532
|
-
options.set("content", data.html);
|
|
3533
|
-
else
|
|
3534
|
-
options.set("content", "Invalid url, please try another");
|
|
3535
|
-
}
|
|
3536
|
-
}).catch((_err) => {
|
|
3537
|
-
options.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
3538
|
-
});
|
|
3539
|
-
} else
|
|
3540
|
-
options.delete("content");
|
|
3541
|
-
}
|
|
3469
|
+
helperText: "e.g. enter a youtube url, google map, etc"
|
|
3542
3470
|
},
|
|
3543
3471
|
{
|
|
3544
3472
|
name: "content",
|
|
@@ -4192,12 +4120,6 @@ const STYLES = `
|
|
|
4192
4120
|
}
|
|
4193
4121
|
`;
|
|
4194
4122
|
const componentInfo$5 = {
|
|
4195
|
-
shouldReceiveBuilderProps: {
|
|
4196
|
-
builderBlock: false,
|
|
4197
|
-
builderContext: false,
|
|
4198
|
-
builderComponents: false,
|
|
4199
|
-
builderLinkComponent: false
|
|
4200
|
-
},
|
|
4201
4123
|
name: "Form:Input",
|
|
4202
4124
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
4203
4125
|
inputs: [
|
|
@@ -4281,12 +4203,6 @@ const FormInputComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQ
|
|
|
4281
4203
|
});
|
|
4282
4204
|
}, "FormInputComponent_component_AUUjdN0ueMs"));
|
|
4283
4205
|
const componentInfo$4 = {
|
|
4284
|
-
shouldReceiveBuilderProps: {
|
|
4285
|
-
builderBlock: false,
|
|
4286
|
-
builderContext: false,
|
|
4287
|
-
builderComponents: false,
|
|
4288
|
-
builderLinkComponent: false
|
|
4289
|
-
},
|
|
4290
4206
|
name: "Form:Select",
|
|
4291
4207
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
4292
4208
|
defaultStyles: {
|
|
@@ -4356,12 +4272,6 @@ const SelectComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
|
|
|
4356
4272
|
}));
|
|
4357
4273
|
}, "SelectComponent_component_SPKbsFLikZU"));
|
|
4358
4274
|
const componentInfo$3 = {
|
|
4359
|
-
shouldReceiveBuilderProps: {
|
|
4360
|
-
builderBlock: false,
|
|
4361
|
-
builderContext: false,
|
|
4362
|
-
builderComponents: false,
|
|
4363
|
-
builderLinkComponent: false
|
|
4364
|
-
},
|
|
4365
4275
|
name: "Form:SubmitButton",
|
|
4366
4276
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
4367
4277
|
defaultStyles: {
|
|
@@ -4396,12 +4306,6 @@ const SubmitButton = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
|
|
|
4396
4306
|
}, 0, "6z_0");
|
|
4397
4307
|
}, "SubmitButton_component_NXvMBMCDhwc"));
|
|
4398
4308
|
const componentInfo$2 = {
|
|
4399
|
-
shouldReceiveBuilderProps: {
|
|
4400
|
-
builderBlock: false,
|
|
4401
|
-
builderContext: false,
|
|
4402
|
-
builderComponents: false,
|
|
4403
|
-
builderLinkComponent: false
|
|
4404
|
-
},
|
|
4405
4309
|
name: "Form:TextArea",
|
|
4406
4310
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
4407
4311
|
inputs: [
|
|
@@ -4466,12 +4370,6 @@ const Textarea = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props)
|
|
|
4466
4370
|
}, 0, "kE_0");
|
|
4467
4371
|
}, "Textarea_component_o1TcxV139Oc"));
|
|
4468
4372
|
const componentInfo$1 = {
|
|
4469
|
-
shouldReceiveBuilderProps: {
|
|
4470
|
-
builderBlock: false,
|
|
4471
|
-
builderContext: false,
|
|
4472
|
-
builderComponents: false,
|
|
4473
|
-
builderLinkComponent: false
|
|
4474
|
-
},
|
|
4475
4373
|
// friendlyName?
|
|
4476
4374
|
name: "Raw:Img",
|
|
4477
4375
|
hideFromInsertMenu: true,
|
|
@@ -4635,10 +4533,7 @@ const componentInfo = {
|
|
|
4635
4533
|
}
|
|
4636
4534
|
],
|
|
4637
4535
|
shouldReceiveBuilderProps: {
|
|
4638
|
-
builderBlock: true
|
|
4639
|
-
builderContext: false,
|
|
4640
|
-
builderComponents: false,
|
|
4641
|
-
builderLinkComponent: false
|
|
4536
|
+
builderBlock: true
|
|
4642
4537
|
}
|
|
4643
4538
|
};
|
|
4644
4539
|
const Video = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
|
|
@@ -5286,7 +5181,7 @@ function isFromTrustedHost(trustedHosts, e) {
|
|
|
5286
5181
|
const url = new URL(e.origin), hostname = url.hostname;
|
|
5287
5182
|
return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
|
|
5288
5183
|
}
|
|
5289
|
-
const SDK_VERSION = "0.
|
|
5184
|
+
const SDK_VERSION = "0.16.0";
|
|
5290
5185
|
const registry = {};
|
|
5291
5186
|
function register(type, info) {
|
|
5292
5187
|
let typeList = registry[type];
|