@builder.io/sdk-qwik 0.12.1 → 0.12.2

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.
@@ -337,26 +337,6 @@ function getProcessedBlock({ block, context, shouldEvaluateBindings, localState,
337
337
  else
338
338
  return transformedBlock;
339
339
  }
340
- const EMPTY_HTML_ELEMENTS = [
341
- "area",
342
- "base",
343
- "br",
344
- "col",
345
- "embed",
346
- "hr",
347
- "img",
348
- "input",
349
- "keygen",
350
- "link",
351
- "meta",
352
- "param",
353
- "source",
354
- "track",
355
- "wbr"
356
- ];
357
- const isEmptyHtmlElement = (tagName) => {
358
- return typeof tagName === "string" && EMPTY_HTML_ELEMENTS.includes(tagName.toLowerCase());
359
- };
360
340
  const getComponent = ({ block, context, registeredComponents }) => {
361
341
  var _a;
362
342
  const componentName = (_a = getProcessedBlock({
@@ -641,38 +621,67 @@ function getStyleAttribute(style) {
641
621
  return style;
642
622
  }
643
623
  }
644
- const BlockWrapper = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
624
+ const EMPTY_HTML_ELEMENTS = /* @__PURE__ */ new Set([
625
+ "area",
626
+ "base",
627
+ "br",
628
+ "col",
629
+ "embed",
630
+ "hr",
631
+ "img",
632
+ "input",
633
+ "keygen",
634
+ "link",
635
+ "meta",
636
+ "param",
637
+ "source",
638
+ "track",
639
+ "wbr"
640
+ ]);
641
+ const isEmptyElement = (tagName) => {
642
+ return typeof tagName === "string" && EMPTY_HTML_ELEMENTS.has(tagName.toLowerCase());
643
+ };
644
+ const DynamicRenderer = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
645
645
  _jsxBranch();
646
646
  return /* @__PURE__ */ _jsxC(Fragment, {
647
- children: props.hasChildren ? /* @__PURE__ */ _jsxC(props.Wrapper, {
648
- ...getBlockProperties({
649
- block: props.block,
650
- context: props.context
651
- }),
652
- ...getBlockActions({
653
- block: props.block,
654
- rootState: props.context.rootState,
655
- rootSetState: props.context.rootSetState,
656
- localState: props.context.localState,
657
- context: props.context.context,
658
- stripPrefix: true
659
- }),
660
- children: /* @__PURE__ */ _jsxC(Slot$1, null, 3, "87_0")
661
- }, 0, "87_1") : /* @__PURE__ */ _jsxC(props.Wrapper, {
662
- ...getBlockProperties({
663
- block: props.block,
664
- context: props.context
665
- }),
666
- ...getBlockActions({
667
- block: props.block,
668
- rootState: props.context.rootState,
669
- rootSetState: props.context.rootSetState,
670
- localState: props.context.localState,
671
- context: props.context.context,
672
- stripPrefix: true
673
- })
674
- }, 0, "87_2")
675
- }, 1, "87_3");
647
+ children: !isEmptyElement(props.TagName) ? typeof props.TagName === "string" ? /* @__PURE__ */ _jsxC(props.TagName, {
648
+ ...props.attributes,
649
+ ...props.actionAttributes,
650
+ children: /* @__PURE__ */ _jsxC(Slot$1, null, 3, "yW_0")
651
+ }, 0, "yW_1") : /* @__PURE__ */ _jsxC(props.TagName, {
652
+ ...props.attributes,
653
+ ...props.actionAttributes,
654
+ children: /* @__PURE__ */ _jsxC(Slot$1, null, 3, "yW_2")
655
+ }, 0, "yW_3") : /* @__PURE__ */ _jsxC(props.TagName, {
656
+ ...props.attributes,
657
+ ...props.actionAttributes
658
+ }, 0, "yW_4")
659
+ }, 1, "yW_5");
660
+ }, "DynamicRenderer_component_1Co0xkmyAfQ"));
661
+ const BlockWrapper = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
662
+ return /* @__PURE__ */ _jsxC(DynamicRenderer, {
663
+ get TagName() {
664
+ return props.Wrapper;
665
+ },
666
+ actionAttributes: getBlockActions({
667
+ block: props.block,
668
+ rootState: props.context.rootState,
669
+ rootSetState: props.context.rootSetState,
670
+ localState: props.context.localState,
671
+ context: props.context.context,
672
+ stripPrefix: true
673
+ }),
674
+ attributes: getBlockProperties({
675
+ block: props.block,
676
+ context: props.context
677
+ }),
678
+ children: /* @__PURE__ */ _jsxC(Slot$1, null, 3, "87_0"),
679
+ [_IMMUTABLE]: {
680
+ TagName: _fnSignal((p0) => p0.Wrapper, [
681
+ props
682
+ ], "p0.Wrapper")
683
+ }
684
+ }, 1, "87_1");
676
685
  }, "BlockWrapper_component_kOI0j0aW8Nw"));
677
686
  const InteractiveElement = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
678
687
  return /* @__PURE__ */ _jsxC(props.Wrapper, {
@@ -896,151 +905,120 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
896
905
  ], "p0.context")
897
906
  }
898
907
  }, 3, "jN_0"),
899
- !((_a = blockComponent.value) == null ? void 0 : _a.noWrap) ? /* @__PURE__ */ _jsxC(Fragment, {
908
+ !((_a = blockComponent.value) == null ? void 0 : _a.noWrap) ? !repeatItem.value ? /* @__PURE__ */ _jsxC(BlockWrapper, {
909
+ get Wrapper() {
910
+ return Tag.value;
911
+ },
912
+ get block() {
913
+ return processedBlock.value;
914
+ },
915
+ get context() {
916
+ return props.context;
917
+ },
900
918
  children: [
901
- isEmptyHtmlElement(Tag.value) ? /* @__PURE__ */ _jsxC(BlockWrapper, {
902
- get Wrapper() {
903
- return Tag.value;
919
+ /* @__PURE__ */ _jsxC(ComponentRef, {
920
+ get componentRef() {
921
+ return componentRefProps.value.componentRef;
922
+ },
923
+ get componentOptions() {
924
+ return componentRefProps.value.componentOptions;
904
925
  },
905
- get block() {
906
- return processedBlock.value;
926
+ get blockChildren() {
927
+ return componentRefProps.value.blockChildren;
907
928
  },
908
929
  get context() {
909
- return props.context;
930
+ return componentRefProps.value.context;
931
+ },
932
+ get registeredComponents() {
933
+ return componentRefProps.value.registeredComponents;
934
+ },
935
+ get builderBlock() {
936
+ return componentRefProps.value.builderBlock;
937
+ },
938
+ get includeBlockProps() {
939
+ return componentRefProps.value.includeBlockProps;
940
+ },
941
+ get isInteractive() {
942
+ return componentRefProps.value.isInteractive;
910
943
  },
911
- hasChildren: false,
912
944
  [_IMMUTABLE]: {
913
- Wrapper: _fnSignal((p0) => p0.value, [
914
- Tag
915
- ], "p0.value"),
916
- block: _fnSignal((p0) => p0.value, [
917
- processedBlock
918
- ], "p0.value"),
919
- context: _fnSignal((p0) => p0.context, [
920
- props
921
- ], "p0.context"),
922
- hasChildren: _IMMUTABLE
945
+ blockChildren: _fnSignal((p0) => p0.value.blockChildren, [
946
+ componentRefProps
947
+ ], "p0.value.blockChildren"),
948
+ builderBlock: _fnSignal((p0) => p0.value.builderBlock, [
949
+ componentRefProps
950
+ ], "p0.value.builderBlock"),
951
+ componentOptions: _fnSignal((p0) => p0.value.componentOptions, [
952
+ componentRefProps
953
+ ], "p0.value.componentOptions"),
954
+ componentRef: _fnSignal((p0) => p0.value.componentRef, [
955
+ componentRefProps
956
+ ], "p0.value.componentRef"),
957
+ context: _fnSignal((p0) => p0.value.context, [
958
+ componentRefProps
959
+ ], "p0.value.context"),
960
+ includeBlockProps: _fnSignal((p0) => p0.value.includeBlockProps, [
961
+ componentRefProps
962
+ ], "p0.value.includeBlockProps"),
963
+ isInteractive: _fnSignal((p0) => p0.value.isInteractive, [
964
+ componentRefProps
965
+ ], "p0.value.isInteractive"),
966
+ registeredComponents: _fnSignal((p0) => p0.value.registeredComponents, [
967
+ componentRefProps
968
+ ], "p0.value.registeredComponents")
923
969
  }
924
- }, 3, "jN_1") : null,
925
- !isEmptyHtmlElement(Tag.value) && repeatItem.value ? (repeatItem.value || []).map((data, index) => {
926
- return /* @__PURE__ */ _jsxC(RepeatedBlock, {
927
- get repeatContext() {
928
- return data.context;
929
- },
930
- get block() {
931
- return data.block;
970
+ }, 3, "jN_1"),
971
+ (childrenWithoutParentComponent.value || []).map((child) => {
972
+ return /* @__PURE__ */ _jsxC(Block, {
973
+ block: child,
974
+ get context() {
975
+ return state.childrenContext;
932
976
  },
933
977
  get registeredComponents() {
934
978
  return props.registeredComponents;
935
979
  },
936
980
  [_IMMUTABLE]: {
937
- block: _wrapProp(data, "block"),
981
+ context: _fnSignal((p0) => p0.childrenContext, [
982
+ state
983
+ ], "p0.childrenContext"),
938
984
  registeredComponents: _fnSignal((p0) => p0.registeredComponents, [
939
985
  props
940
- ], "p0.registeredComponents"),
941
- repeatContext: _wrapProp(data, "context")
986
+ ], "p0.registeredComponents")
942
987
  }
943
- }, 3, index);
944
- }) : null,
945
- !isEmptyHtmlElement(Tag.value) && !repeatItem.value ? /* @__PURE__ */ _jsxC(BlockWrapper, {
946
- get Wrapper() {
947
- return Tag.value;
948
- },
949
- get block() {
950
- return processedBlock.value;
951
- },
952
- get context() {
953
- return props.context;
954
- },
955
- children: [
956
- /* @__PURE__ */ _jsxC(ComponentRef, {
957
- get componentRef() {
958
- return componentRefProps.value.componentRef;
959
- },
960
- get componentOptions() {
961
- return componentRefProps.value.componentOptions;
962
- },
963
- get blockChildren() {
964
- return componentRefProps.value.blockChildren;
965
- },
966
- get context() {
967
- return componentRefProps.value.context;
968
- },
969
- get registeredComponents() {
970
- return componentRefProps.value.registeredComponents;
971
- },
972
- get builderBlock() {
973
- return componentRefProps.value.builderBlock;
974
- },
975
- get includeBlockProps() {
976
- return componentRefProps.value.includeBlockProps;
977
- },
978
- get isInteractive() {
979
- return componentRefProps.value.isInteractive;
980
- },
981
- [_IMMUTABLE]: {
982
- blockChildren: _fnSignal((p0) => p0.value.blockChildren, [
983
- componentRefProps
984
- ], "p0.value.blockChildren"),
985
- builderBlock: _fnSignal((p0) => p0.value.builderBlock, [
986
- componentRefProps
987
- ], "p0.value.builderBlock"),
988
- componentOptions: _fnSignal((p0) => p0.value.componentOptions, [
989
- componentRefProps
990
- ], "p0.value.componentOptions"),
991
- componentRef: _fnSignal((p0) => p0.value.componentRef, [
992
- componentRefProps
993
- ], "p0.value.componentRef"),
994
- context: _fnSignal((p0) => p0.value.context, [
995
- componentRefProps
996
- ], "p0.value.context"),
997
- includeBlockProps: _fnSignal((p0) => p0.value.includeBlockProps, [
998
- componentRefProps
999
- ], "p0.value.includeBlockProps"),
1000
- isInteractive: _fnSignal((p0) => p0.value.isInteractive, [
1001
- componentRefProps
1002
- ], "p0.value.isInteractive"),
1003
- registeredComponents: _fnSignal((p0) => p0.value.registeredComponents, [
1004
- componentRefProps
1005
- ], "p0.value.registeredComponents")
1006
- }
1007
- }, 3, "jN_2"),
1008
- (childrenWithoutParentComponent.value || []).map((child) => {
1009
- return /* @__PURE__ */ _jsxC(Block, {
1010
- block: child,
1011
- get context() {
1012
- return state.childrenContext;
1013
- },
1014
- get registeredComponents() {
1015
- return props.registeredComponents;
1016
- },
1017
- [_IMMUTABLE]: {
1018
- context: _fnSignal((p0) => p0.childrenContext, [
1019
- state
1020
- ], "p0.childrenContext"),
1021
- registeredComponents: _fnSignal((p0) => p0.registeredComponents, [
1022
- props
1023
- ], "p0.registeredComponents")
1024
- }
1025
- }, 3, child.id);
1026
- })
1027
- ],
1028
- hasChildren: true,
1029
- [_IMMUTABLE]: {
1030
- Wrapper: _fnSignal((p0) => p0.value, [
1031
- Tag
1032
- ], "p0.value"),
1033
- block: _fnSignal((p0) => p0.value, [
1034
- processedBlock
1035
- ], "p0.value"),
1036
- context: _fnSignal((p0) => p0.context, [
1037
- props
1038
- ], "p0.context"),
1039
- hasChildren: _IMMUTABLE
1040
- }
1041
- }, 1, "jN_3") : null
1042
- ]
1043
- }, 1, "jN_4") : /* @__PURE__ */ _jsxC(ComponentRef, {
988
+ }, 3, child.id);
989
+ })
990
+ ],
991
+ [_IMMUTABLE]: {
992
+ Wrapper: _fnSignal((p0) => p0.value, [
993
+ Tag
994
+ ], "p0.value"),
995
+ block: _fnSignal((p0) => p0.value, [
996
+ processedBlock
997
+ ], "p0.value"),
998
+ context: _fnSignal((p0) => p0.context, [
999
+ props
1000
+ ], "p0.context")
1001
+ }
1002
+ }, 1, "jN_2") : (repeatItem.value || []).map((data, index) => {
1003
+ return /* @__PURE__ */ _jsxC(RepeatedBlock, {
1004
+ get repeatContext() {
1005
+ return data.context;
1006
+ },
1007
+ get block() {
1008
+ return data.block;
1009
+ },
1010
+ get registeredComponents() {
1011
+ return props.registeredComponents;
1012
+ },
1013
+ [_IMMUTABLE]: {
1014
+ block: _wrapProp(data, "block"),
1015
+ registeredComponents: _fnSignal((p0) => p0.registeredComponents, [
1016
+ props
1017
+ ], "p0.registeredComponents"),
1018
+ repeatContext: _wrapProp(data, "context")
1019
+ }
1020
+ }, 3, index);
1021
+ }) : /* @__PURE__ */ _jsxC(ComponentRef, {
1044
1022
  get componentRef() {
1045
1023
  return componentRefProps.value.componentRef;
1046
1024
  },
@@ -1091,10 +1069,10 @@ const Block = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) =>
1091
1069
  componentRefProps
1092
1070
  ], "p0.value.registeredComponents")
1093
1071
  }
1094
- }, 3, "jN_5")
1072
+ }, 3, "jN_3")
1095
1073
  ]
1096
- }, 1, "jN_6") : null
1097
- }, 1, "jN_7");
1074
+ }, 1, "jN_4") : null
1075
+ }, 1, "jN_5");
1098
1076
  }, "Block_component_nnPv0RY0U0k"));
1099
1077
  const onClick$1 = function onClick2(props, state) {
1100
1078
  var _a, _b;
@@ -3141,6 +3119,17 @@ async function fetchEntries(options) {
3141
3119
  }
3142
3120
  }
3143
3121
  const getAllContent = fetchEntries;
3122
+ const DEFAULT_TRUSTED_HOSTS = [
3123
+ "*.beta.builder.io",
3124
+ "beta.builder.io",
3125
+ "builder.io",
3126
+ "localhost",
3127
+ "qa.builder.io"
3128
+ ];
3129
+ function isFromTrustedHost(trustedHosts, e) {
3130
+ const url = new URL(e.origin), hostname = url.hostname;
3131
+ return (trustedHosts || DEFAULT_TRUSTED_HOSTS).findIndex((trustedHost) => trustedHost.startsWith("*.") ? hostname.endsWith(trustedHost.slice(1)) : trustedHost === hostname) > -1;
3132
+ }
3144
3133
  function isPreviewing() {
3145
3134
  if (!isBrowser())
3146
3135
  return false;
@@ -3340,7 +3329,7 @@ const getInteractionPropertiesForEvent = (event) => {
3340
3329
  }
3341
3330
  };
3342
3331
  };
3343
- const SDK_VERSION = "0.12.1";
3332
+ const SDK_VERSION = "0.12.2";
3344
3333
  const registry = {};
3345
3334
  function register(type, info) {
3346
3335
  let typeList = registry[type];
@@ -3423,8 +3412,11 @@ const setupBrowserForEditing = (options = {}) => {
3423
3412
  options
3424
3413
  }
3425
3414
  }, "*");
3426
- window.addEventListener("message", ({ data }) => {
3415
+ window.addEventListener("message", (event) => {
3427
3416
  var _a2, _b2;
3417
+ if (!isFromTrustedHost(options.trustedHosts, event))
3418
+ return;
3419
+ const { data } = event;
3428
3420
  if (!(data == null ? void 0 : data.type))
3429
3421
  return;
3430
3422
  switch (data.type) {
@@ -3503,6 +3495,8 @@ const mergeNewContent = function mergeNewContent2(props, state, elementRef, newC
3503
3495
  };
3504
3496
  const processMessage = function processMessage2(props, state, elementRef, event) {
3505
3497
  var _a;
3498
+ if (!isFromTrustedHost(props.trustedHosts, event))
3499
+ return;
3506
3500
  const { data } = event;
3507
3501
  if (data)
3508
3502
  switch (data.type) {
@@ -3637,6 +3631,9 @@ const EnableEditor = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((pr
3637
3631
  } : {},
3638
3632
  ...props2.enrich ? {
3639
3633
  enrich: props2.enrich
3634
+ } : {},
3635
+ ...props2.trustedHosts ? {
3636
+ trustedHosts: props2.trustedHosts
3640
3637
  } : {}
3641
3638
  });
3642
3639
  Object.values(props2.builderContextSignal.componentInfos).forEach((registeredComponent) => {
@@ -4015,6 +4012,9 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
4015
4012
  get contentWrapperProps() {
4016
4013
  return props.contentWrapperProps;
4017
4014
  },
4015
+ get trustedHosts() {
4016
+ return props.trustedHosts;
4017
+ },
4018
4018
  children: [
4019
4019
  props.isSsrAbTest ? /* @__PURE__ */ _jsxC(InlinedScript, {
4020
4020
  get scriptStr() {
@@ -4126,7 +4126,10 @@ const ContentComponent = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl
4126
4126
  ], "p0.model"),
4127
4127
  showContent: _fnSignal((p0) => p0.showContent, [
4128
4128
  props
4129
- ], "p0.showContent")
4129
+ ], "p0.showContent"),
4130
+ trustedHosts: _fnSignal((p0) => p0.trustedHosts, [
4131
+ props
4132
+ ], "p0.trustedHosts")
4130
4133
  }
4131
4134
  }, 1, "LQ_3");
4132
4135
  }, "ContentComponent_component_HIsczUcxjCE"));
@@ -4259,6 +4262,9 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
4259
4262
  get contentWrapperProps() {
4260
4263
  return props.contentWrapperProps;
4261
4264
  },
4265
+ get trustedHosts() {
4266
+ return props.trustedHosts;
4267
+ },
4262
4268
  [_IMMUTABLE]: {
4263
4269
  apiKey: _fnSignal((p0) => p0.apiKey, [
4264
4270
  props
@@ -4305,7 +4311,10 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
4305
4311
  model: _fnSignal((p0) => p0.model, [
4306
4312
  props
4307
4313
  ], "p0.model"),
4308
- showContent: _IMMUTABLE
4314
+ showContent: _IMMUTABLE,
4315
+ trustedHosts: _fnSignal((p0) => p0.trustedHosts, [
4316
+ props
4317
+ ], "p0.trustedHosts")
4309
4318
  }
4310
4319
  }, 3, variant.testVariationId);
4311
4320
  })
@@ -4361,6 +4370,9 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
4361
4370
  get contentWrapperProps() {
4362
4371
  return props.contentWrapperProps;
4363
4372
  },
4373
+ get trustedHosts() {
4374
+ return props.trustedHosts;
4375
+ },
4364
4376
  [_IMMUTABLE]: {
4365
4377
  apiKey: _fnSignal((p0) => p0.apiKey, [
4366
4378
  props
@@ -4410,7 +4422,10 @@ const ContentVariants = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl(
4410
4422
  model: _fnSignal((p0) => p0.model, [
4411
4423
  props
4412
4424
  ], "p0.model"),
4413
- showContent: _IMMUTABLE
4425
+ showContent: _IMMUTABLE,
4426
+ trustedHosts: _fnSignal((p0) => p0.trustedHosts, [
4427
+ props
4428
+ ], "p0.trustedHosts")
4414
4429
  }
4415
4430
  }, 3, "XM_4")
4416
4431
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-qwik",
3
- "version": "0.12.1",
3
+ "version": "0.12.2",
4
4
  "homepage": "https://github.com/BuilderIO/builder/tree/main/packages/sdks/output/qwik",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,7 +1,6 @@
1
1
  import type { BuilderContextInterface, RegisteredComponents } from '../../context/types.js';
2
2
  import type { BuilderBlock } from '../../types/builder-block.js';
3
3
  import type { RepeatData } from './types.js';
4
- export declare const isEmptyHtmlElement: (tagName: unknown) => boolean;
5
4
  export declare const getComponent: ({ block, context, registeredComponents }: {
6
5
  block: BuilderBlock;
7
6
  context: BuilderContextInterface;
@@ -1,21 +1,13 @@
1
1
  import { BuilderContextInterface } from "../../../context/types.js";
2
2
  import { BuilderBlock } from "../../../types/builder-block.js";
3
3
  import { PropsWithChildren } from "../../../types/typescript.js";
4
- /**
5
- * This import is used by the Svelte SDK. Do not remove.
6
- */
7
4
  type BlockWrapperProps = {
8
5
  Wrapper: string;
9
6
  block: BuilderBlock;
10
7
  context: BuilderContextInterface;
11
- hasChildren: boolean;
12
8
  };
13
9
  /**
14
10
  * This component renders a block's wrapper HTML element (from the block's `tagName` property).
15
- * It reuses the exact same logic as the `InteractiveElement` component, but we need to have 2 separate components for
16
- * Svelte's sake, as it needs to know at compile-time whether to use:
17
- * - `<svelte:element>` (for HTML element) or
18
- * - `<svelte:component>` (for custom components)
19
11
  */
20
12
  export declare const BlockWrapper: import("@builder.io/qwik").Component<PropsWithChildren<BlockWrapperProps>>;
21
13
  export default BlockWrapper;
@@ -62,4 +62,8 @@ export interface ContentVariantsPrps {
62
62
  * Additonal props to pass to `blocksWrapper`. Defaults to `{}`.
63
63
  */
64
64
  blocksWrapperProps?: any;
65
+ /**
66
+ * List of hosts to allow editing content from.
67
+ */
68
+ trustedHosts?: string[];
65
69
  }
@@ -0,0 +1,7 @@
1
+ import { PropsWithChildren } from "../../types/typescript.js";
2
+ export declare const DynamicRenderer: import("@builder.io/qwik").Component<PropsWithChildren<{
3
+ TagName: any;
4
+ attributes: any;
5
+ actionAttributes: any;
6
+ }>>;
7
+ export default DynamicRenderer;
@@ -0,0 +1 @@
1
+ export declare const isEmptyElement: (tagName: any) => boolean;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.12.1";
1
+ export declare const SDK_VERSION = "0.12.2";
@@ -0,0 +1,3 @@
1
+ export declare function isFromTrustedHost(trustedHosts: string[] | undefined, e: {
2
+ origin: string;
3
+ }): boolean;
@@ -3,4 +3,5 @@ export declare const setupBrowserForEditing: (options?: {
3
3
  enrich?: boolean;
4
4
  includeRefs?: boolean;
5
5
  locale?: string;
6
+ trustedHosts?: string[];
6
7
  }) => void;