@builder.io/sdk-solid 0.9.0 → 0.11.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/dist/index.d.ts CHANGED
@@ -829,11 +829,11 @@ type ContentResults = {
829
829
  /**
830
830
  * @internal Exported only for testing purposes. Do not use.
831
831
  */
832
- declare const _processContentResult: (options: GetContentOptions, content: ContentResults, url?: URL) => Promise<ContentResults>;
832
+ declare const _processContentResult: (options: GetContentOptions, content: ContentResults, url?: URL) => Promise<BuilderContent[]>;
833
833
  /**
834
834
  * Returns a paginated array of entries that match the given options.
835
835
  */
836
- declare function fetchEntries(options: GetContentOptions): Promise<ContentResults>;
836
+ declare function fetchEntries(options: GetContentOptions): Promise<BuilderContent[]>;
837
837
  /**
838
838
  * @deprecated `getAllContent` was renamed to `fetchEntries`. This is a temporary alias to avoid breaking changes.
839
839
  */
@@ -601,8 +601,7 @@ function getBlockActions(options) {
601
601
  let eventHandlerName = getEventHandlerName(key);
602
602
  if (options.stripPrefix) {
603
603
  switch (TARGET) {
604
- case "vue2":
605
- case "vue3":
604
+ case "vue":
606
605
  eventHandlerName = eventHandlerName.replace("v-on:", "");
607
606
  break;
608
607
  case "svelte":
@@ -648,8 +647,7 @@ function getBlockProperties({
648
647
  function getStyleAttribute(style) {
649
648
  switch (TARGET) {
650
649
  case "svelte":
651
- case "vue2":
652
- case "vue3":
650
+ case "vue":
653
651
  case "solid":
654
652
  return convertStyleMapToCSSArray(style).join(" ");
655
653
  case "qwik":
@@ -2773,7 +2771,7 @@ var checkShouldRenderVariants = ({
2773
2771
  return false;
2774
2772
  if (!canTrack)
2775
2773
  return false;
2776
- if (TARGET === "vue2" || TARGET === "vue3" || TARGET === "svelte")
2774
+ if (TARGET === "vue" || TARGET === "svelte")
2777
2775
  return true;
2778
2776
  if (isBrowser())
2779
2777
  return false;
@@ -2987,7 +2985,7 @@ async function fetchOneEntry(options) {
2987
2985
  limit: 1
2988
2986
  });
2989
2987
  if (allContent) {
2990
- return allContent.results[0] || null;
2988
+ return allContent[0] || null;
2991
2989
  }
2992
2990
  return null;
2993
2991
  }
@@ -3010,9 +3008,9 @@ var _processContentResult = async (options, content, url = generateContentUrl(op
3010
3008
  content.results = newResults;
3011
3009
  }
3012
3010
  if (!canTrack)
3013
- return content;
3011
+ return content.results;
3014
3012
  if (!(isBrowser() || TARGET === "reactNative"))
3015
- return content;
3013
+ return content.results;
3016
3014
  try {
3017
3015
  const newResults = [];
3018
3016
  for (const item of content.results) {
@@ -3025,7 +3023,7 @@ var _processContentResult = async (options, content, url = generateContentUrl(op
3025
3023
  } catch (e) {
3026
3024
  logger.error("Could not process A/B tests. ", e);
3027
3025
  }
3028
- return content;
3026
+ return content.results;
3029
3027
  };
3030
3028
  async function fetchEntries(options) {
3031
3029
  try {
@@ -3298,7 +3296,7 @@ var getInteractionPropertiesForEvent = (event) => {
3298
3296
  };
3299
3297
 
3300
3298
  // src/constants/sdk-version.ts
3301
- var SDK_VERSION = "0.9.0";
3299
+ var SDK_VERSION = "0.11.0";
3302
3300
 
3303
3301
  // src/functions/register.ts
3304
3302
  var registry = {};
@@ -586,8 +586,7 @@ function getBlockActions(options) {
586
586
  let eventHandlerName = getEventHandlerName(key);
587
587
  if (options.stripPrefix) {
588
588
  switch (TARGET) {
589
- case "vue2":
590
- case "vue3":
589
+ case "vue":
591
590
  eventHandlerName = eventHandlerName.replace("v-on:", "");
592
591
  break;
593
592
  case "svelte":
@@ -633,8 +632,7 @@ function getBlockProperties({
633
632
  function getStyleAttribute(style) {
634
633
  switch (TARGET) {
635
634
  case "svelte":
636
- case "vue2":
637
- case "vue3":
635
+ case "vue":
638
636
  case "solid":
639
637
  return convertStyleMapToCSSArray(style).join(" ");
640
638
  case "qwik":
@@ -2445,7 +2443,7 @@ var checkShouldRenderVariants = ({
2445
2443
  return false;
2446
2444
  if (!canTrack)
2447
2445
  return false;
2448
- if (TARGET === "vue2" || TARGET === "vue3" || TARGET === "svelte")
2446
+ if (TARGET === "vue" || TARGET === "svelte")
2449
2447
  return true;
2450
2448
  if (isBrowser())
2451
2449
  return false;
@@ -2652,7 +2650,7 @@ async function fetchOneEntry(options) {
2652
2650
  limit: 1
2653
2651
  });
2654
2652
  if (allContent) {
2655
- return allContent.results[0] || null;
2653
+ return allContent[0] || null;
2656
2654
  }
2657
2655
  return null;
2658
2656
  }
@@ -2675,9 +2673,9 @@ var _processContentResult = async (options, content, url = generateContentUrl(op
2675
2673
  content.results = newResults;
2676
2674
  }
2677
2675
  if (!canTrack)
2678
- return content;
2676
+ return content.results;
2679
2677
  if (!(isBrowser() || TARGET === "reactNative"))
2680
- return content;
2678
+ return content.results;
2681
2679
  try {
2682
2680
  const newResults = [];
2683
2681
  for (const item of content.results) {
@@ -2690,7 +2688,7 @@ var _processContentResult = async (options, content, url = generateContentUrl(op
2690
2688
  } catch (e) {
2691
2689
  logger.error("Could not process A/B tests. ", e);
2692
2690
  }
2693
- return content;
2691
+ return content.results;
2694
2692
  };
2695
2693
  async function fetchEntries(options) {
2696
2694
  try {
@@ -2963,7 +2961,7 @@ var getInteractionPropertiesForEvent = (event) => {
2963
2961
  };
2964
2962
 
2965
2963
  // src/constants/sdk-version.ts
2966
- var SDK_VERSION = "0.9.0";
2964
+ var SDK_VERSION = "0.11.0";
2967
2965
 
2968
2966
  // src/functions/register.ts
2969
2967
  var registry = {};
@@ -596,8 +596,7 @@ function getBlockActions(options) {
596
596
  let eventHandlerName = getEventHandlerName(key);
597
597
  if (options.stripPrefix) {
598
598
  switch (TARGET) {
599
- case "vue2":
600
- case "vue3":
599
+ case "vue":
601
600
  eventHandlerName = eventHandlerName.replace("v-on:", "");
602
601
  break;
603
602
  case "svelte":
@@ -643,8 +642,7 @@ function getBlockProperties({
643
642
  function getStyleAttribute(style) {
644
643
  switch (TARGET) {
645
644
  case "svelte":
646
- case "vue2":
647
- case "vue3":
645
+ case "vue":
648
646
  case "solid":
649
647
  return convertStyleMapToCSSArray(style).join(" ");
650
648
  case "qwik":
@@ -2764,7 +2762,7 @@ var checkShouldRenderVariants = ({
2764
2762
  return false;
2765
2763
  if (!canTrack)
2766
2764
  return false;
2767
- if (TARGET === "vue2" || TARGET === "vue3" || TARGET === "svelte")
2765
+ if (TARGET === "vue" || TARGET === "svelte")
2768
2766
  return true;
2769
2767
  if (isBrowser())
2770
2768
  return false;
@@ -2976,7 +2974,7 @@ async function fetchOneEntry(options) {
2976
2974
  limit: 1
2977
2975
  });
2978
2976
  if (allContent) {
2979
- return allContent.results[0] || null;
2977
+ return allContent[0] || null;
2980
2978
  }
2981
2979
  return null;
2982
2980
  }
@@ -2999,9 +2997,9 @@ var _processContentResult = async (options, content, url = generateContentUrl(op
2999
2997
  content.results = newResults;
3000
2998
  }
3001
2999
  if (!canTrack)
3002
- return content;
3000
+ return content.results;
3003
3001
  if (!(isBrowser() || TARGET === "reactNative"))
3004
- return content;
3002
+ return content.results;
3005
3003
  try {
3006
3004
  const newResults = [];
3007
3005
  for (const item of content.results) {
@@ -3014,7 +3012,7 @@ var _processContentResult = async (options, content, url = generateContentUrl(op
3014
3012
  } catch (e) {
3015
3013
  logger.error("Could not process A/B tests. ", e);
3016
3014
  }
3017
- return content;
3015
+ return content.results;
3018
3016
  };
3019
3017
  async function fetchEntries(options) {
3020
3018
  try {
@@ -3284,7 +3282,7 @@ var getInteractionPropertiesForEvent = (event) => {
3284
3282
  };
3285
3283
 
3286
3284
  // src/constants/sdk-version.ts
3287
- var SDK_VERSION = "0.9.0";
3285
+ var SDK_VERSION = "0.11.0";
3288
3286
 
3289
3287
  // src/functions/register.ts
3290
3288
  var registry = {};
@@ -581,8 +581,7 @@ function getBlockActions(options) {
581
581
  let eventHandlerName = getEventHandlerName(key);
582
582
  if (options.stripPrefix) {
583
583
  switch (TARGET) {
584
- case "vue2":
585
- case "vue3":
584
+ case "vue":
586
585
  eventHandlerName = eventHandlerName.replace("v-on:", "");
587
586
  break;
588
587
  case "svelte":
@@ -628,8 +627,7 @@ function getBlockProperties({
628
627
  function getStyleAttribute(style) {
629
628
  switch (TARGET) {
630
629
  case "svelte":
631
- case "vue2":
632
- case "vue3":
630
+ case "vue":
633
631
  case "solid":
634
632
  return convertStyleMapToCSSArray(style).join(" ");
635
633
  case "qwik":
@@ -2436,7 +2434,7 @@ var checkShouldRenderVariants = ({
2436
2434
  return false;
2437
2435
  if (!canTrack)
2438
2436
  return false;
2439
- if (TARGET === "vue2" || TARGET === "vue3" || TARGET === "svelte")
2437
+ if (TARGET === "vue" || TARGET === "svelte")
2440
2438
  return true;
2441
2439
  if (isBrowser())
2442
2440
  return false;
@@ -2641,7 +2639,7 @@ async function fetchOneEntry(options) {
2641
2639
  limit: 1
2642
2640
  });
2643
2641
  if (allContent) {
2644
- return allContent.results[0] || null;
2642
+ return allContent[0] || null;
2645
2643
  }
2646
2644
  return null;
2647
2645
  }
@@ -2664,9 +2662,9 @@ var _processContentResult = async (options, content, url = generateContentUrl(op
2664
2662
  content.results = newResults;
2665
2663
  }
2666
2664
  if (!canTrack)
2667
- return content;
2665
+ return content.results;
2668
2666
  if (!(isBrowser() || TARGET === "reactNative"))
2669
- return content;
2667
+ return content.results;
2670
2668
  try {
2671
2669
  const newResults = [];
2672
2670
  for (const item of content.results) {
@@ -2679,7 +2677,7 @@ var _processContentResult = async (options, content, url = generateContentUrl(op
2679
2677
  } catch (e) {
2680
2678
  logger.error("Could not process A/B tests. ", e);
2681
2679
  }
2682
- return content;
2680
+ return content.results;
2683
2681
  };
2684
2682
  async function fetchEntries(options) {
2685
2683
  try {
@@ -2949,7 +2947,7 @@ var getInteractionPropertiesForEvent = (event) => {
2949
2947
  };
2950
2948
 
2951
2949
  // src/constants/sdk-version.ts
2952
- var SDK_VERSION = "0.9.0";
2950
+ var SDK_VERSION = "0.11.0";
2953
2951
 
2954
2952
  // src/functions/register.ts
2955
2953
  var registry = {};
package/lib/edge/dev.js CHANGED
@@ -3754,8 +3754,7 @@ function getBlockActions(options) {
3754
3754
  let eventHandlerName = getEventHandlerName(key);
3755
3755
  if (options.stripPrefix) {
3756
3756
  switch (TARGET) {
3757
- case "vue2":
3758
- case "vue3":
3757
+ case "vue":
3759
3758
  eventHandlerName = eventHandlerName.replace("v-on:", "");
3760
3759
  break;
3761
3760
  case "svelte":
@@ -3801,8 +3800,7 @@ function getBlockProperties({
3801
3800
  function getStyleAttribute(style) {
3802
3801
  switch (TARGET) {
3803
3802
  case "svelte":
3804
- case "vue2":
3805
- case "vue3":
3803
+ case "vue":
3806
3804
  case "solid":
3807
3805
  return convertStyleMapToCSSArray(style).join(" ");
3808
3806
  case "qwik":
@@ -5926,7 +5924,7 @@ var checkShouldRenderVariants = ({
5926
5924
  return false;
5927
5925
  if (!canTrack)
5928
5926
  return false;
5929
- if (TARGET === "vue2" || TARGET === "vue3" || TARGET === "svelte")
5927
+ if (TARGET === "vue" || TARGET === "svelte")
5930
5928
  return true;
5931
5929
  if (isBrowser())
5932
5930
  return false;
@@ -6140,7 +6138,7 @@ async function fetchOneEntry(options) {
6140
6138
  limit: 1
6141
6139
  });
6142
6140
  if (allContent) {
6143
- return allContent.results[0] || null;
6141
+ return allContent[0] || null;
6144
6142
  }
6145
6143
  return null;
6146
6144
  }
@@ -6163,9 +6161,9 @@ var _processContentResult = async (options, content, url = generateContentUrl(op
6163
6161
  content.results = newResults;
6164
6162
  }
6165
6163
  if (!canTrack)
6166
- return content;
6164
+ return content.results;
6167
6165
  if (!(isBrowser() || TARGET === "reactNative"))
6168
- return content;
6166
+ return content.results;
6169
6167
  try {
6170
6168
  const newResults = [];
6171
6169
  for (const item of content.results) {
@@ -6178,7 +6176,7 @@ var _processContentResult = async (options, content, url = generateContentUrl(op
6178
6176
  } catch (e) {
6179
6177
  logger.error("Could not process A/B tests. ", e);
6180
6178
  }
6181
- return content;
6179
+ return content.results;
6182
6180
  };
6183
6181
  async function fetchEntries(options) {
6184
6182
  try {
@@ -6451,7 +6449,7 @@ var getInteractionPropertiesForEvent = (event) => {
6451
6449
  };
6452
6450
 
6453
6451
  // src/constants/sdk-version.ts
6454
- var SDK_VERSION = "0.9.0";
6452
+ var SDK_VERSION = "0.11.0";
6455
6453
 
6456
6454
  // src/functions/register.ts
6457
6455
  var registry = {};
package/lib/edge/dev.jsx CHANGED
@@ -3741,8 +3741,7 @@ function getBlockActions(options) {
3741
3741
  let eventHandlerName = getEventHandlerName(key);
3742
3742
  if (options.stripPrefix) {
3743
3743
  switch (TARGET) {
3744
- case "vue2":
3745
- case "vue3":
3744
+ case "vue":
3746
3745
  eventHandlerName = eventHandlerName.replace("v-on:", "");
3747
3746
  break;
3748
3747
  case "svelte":
@@ -3788,8 +3787,7 @@ function getBlockProperties({
3788
3787
  function getStyleAttribute(style) {
3789
3788
  switch (TARGET) {
3790
3789
  case "svelte":
3791
- case "vue2":
3792
- case "vue3":
3790
+ case "vue":
3793
3791
  case "solid":
3794
3792
  return convertStyleMapToCSSArray(style).join(" ");
3795
3793
  case "qwik":
@@ -5600,7 +5598,7 @@ var checkShouldRenderVariants = ({
5600
5598
  return false;
5601
5599
  if (!canTrack)
5602
5600
  return false;
5603
- if (TARGET === "vue2" || TARGET === "vue3" || TARGET === "svelte")
5601
+ if (TARGET === "vue" || TARGET === "svelte")
5604
5602
  return true;
5605
5603
  if (isBrowser())
5606
5604
  return false;
@@ -5807,7 +5805,7 @@ async function fetchOneEntry(options) {
5807
5805
  limit: 1
5808
5806
  });
5809
5807
  if (allContent) {
5810
- return allContent.results[0] || null;
5808
+ return allContent[0] || null;
5811
5809
  }
5812
5810
  return null;
5813
5811
  }
@@ -5830,9 +5828,9 @@ var _processContentResult = async (options, content, url = generateContentUrl(op
5830
5828
  content.results = newResults;
5831
5829
  }
5832
5830
  if (!canTrack)
5833
- return content;
5831
+ return content.results;
5834
5832
  if (!(isBrowser() || TARGET === "reactNative"))
5835
- return content;
5833
+ return content.results;
5836
5834
  try {
5837
5835
  const newResults = [];
5838
5836
  for (const item of content.results) {
@@ -5845,7 +5843,7 @@ var _processContentResult = async (options, content, url = generateContentUrl(op
5845
5843
  } catch (e) {
5846
5844
  logger.error("Could not process A/B tests. ", e);
5847
5845
  }
5848
- return content;
5846
+ return content.results;
5849
5847
  };
5850
5848
  async function fetchEntries(options) {
5851
5849
  try {
@@ -6118,7 +6116,7 @@ var getInteractionPropertiesForEvent = (event) => {
6118
6116
  };
6119
6117
 
6120
6118
  // src/constants/sdk-version.ts
6121
- var SDK_VERSION = "0.9.0";
6119
+ var SDK_VERSION = "0.11.0";
6122
6120
 
6123
6121
  // src/functions/register.ts
6124
6122
  var registry = {};
package/lib/edge/index.js CHANGED
@@ -3749,8 +3749,7 @@ function getBlockActions(options) {
3749
3749
  let eventHandlerName = getEventHandlerName(key);
3750
3750
  if (options.stripPrefix) {
3751
3751
  switch (TARGET) {
3752
- case "vue2":
3753
- case "vue3":
3752
+ case "vue":
3754
3753
  eventHandlerName = eventHandlerName.replace("v-on:", "");
3755
3754
  break;
3756
3755
  case "svelte":
@@ -3796,8 +3795,7 @@ function getBlockProperties({
3796
3795
  function getStyleAttribute(style) {
3797
3796
  switch (TARGET) {
3798
3797
  case "svelte":
3799
- case "vue2":
3800
- case "vue3":
3798
+ case "vue":
3801
3799
  case "solid":
3802
3800
  return convertStyleMapToCSSArray(style).join(" ");
3803
3801
  case "qwik":
@@ -5917,7 +5915,7 @@ var checkShouldRenderVariants = ({
5917
5915
  return false;
5918
5916
  if (!canTrack)
5919
5917
  return false;
5920
- if (TARGET === "vue2" || TARGET === "vue3" || TARGET === "svelte")
5918
+ if (TARGET === "vue" || TARGET === "svelte")
5921
5919
  return true;
5922
5920
  if (isBrowser())
5923
5921
  return false;
@@ -6129,7 +6127,7 @@ async function fetchOneEntry(options) {
6129
6127
  limit: 1
6130
6128
  });
6131
6129
  if (allContent) {
6132
- return allContent.results[0] || null;
6130
+ return allContent[0] || null;
6133
6131
  }
6134
6132
  return null;
6135
6133
  }
@@ -6152,9 +6150,9 @@ var _processContentResult = async (options, content, url = generateContentUrl(op
6152
6150
  content.results = newResults;
6153
6151
  }
6154
6152
  if (!canTrack)
6155
- return content;
6153
+ return content.results;
6156
6154
  if (!(isBrowser() || TARGET === "reactNative"))
6157
- return content;
6155
+ return content.results;
6158
6156
  try {
6159
6157
  const newResults = [];
6160
6158
  for (const item of content.results) {
@@ -6167,7 +6165,7 @@ var _processContentResult = async (options, content, url = generateContentUrl(op
6167
6165
  } catch (e) {
6168
6166
  logger.error("Could not process A/B tests. ", e);
6169
6167
  }
6170
- return content;
6168
+ return content.results;
6171
6169
  };
6172
6170
  async function fetchEntries(options) {
6173
6171
  try {
@@ -6437,7 +6435,7 @@ var getInteractionPropertiesForEvent = (event) => {
6437
6435
  };
6438
6436
 
6439
6437
  // src/constants/sdk-version.ts
6440
- var SDK_VERSION = "0.9.0";
6438
+ var SDK_VERSION = "0.11.0";
6441
6439
 
6442
6440
  // src/functions/register.ts
6443
6441
  var registry = {};
@@ -3736,8 +3736,7 @@ function getBlockActions(options) {
3736
3736
  let eventHandlerName = getEventHandlerName(key);
3737
3737
  if (options.stripPrefix) {
3738
3738
  switch (TARGET) {
3739
- case "vue2":
3740
- case "vue3":
3739
+ case "vue":
3741
3740
  eventHandlerName = eventHandlerName.replace("v-on:", "");
3742
3741
  break;
3743
3742
  case "svelte":
@@ -3783,8 +3782,7 @@ function getBlockProperties({
3783
3782
  function getStyleAttribute(style) {
3784
3783
  switch (TARGET) {
3785
3784
  case "svelte":
3786
- case "vue2":
3787
- case "vue3":
3785
+ case "vue":
3788
3786
  case "solid":
3789
3787
  return convertStyleMapToCSSArray(style).join(" ");
3790
3788
  case "qwik":
@@ -5591,7 +5589,7 @@ var checkShouldRenderVariants = ({
5591
5589
  return false;
5592
5590
  if (!canTrack)
5593
5591
  return false;
5594
- if (TARGET === "vue2" || TARGET === "vue3" || TARGET === "svelte")
5592
+ if (TARGET === "vue" || TARGET === "svelte")
5595
5593
  return true;
5596
5594
  if (isBrowser())
5597
5595
  return false;
@@ -5796,7 +5794,7 @@ async function fetchOneEntry(options) {
5796
5794
  limit: 1
5797
5795
  });
5798
5796
  if (allContent) {
5799
- return allContent.results[0] || null;
5797
+ return allContent[0] || null;
5800
5798
  }
5801
5799
  return null;
5802
5800
  }
@@ -5819,9 +5817,9 @@ var _processContentResult = async (options, content, url = generateContentUrl(op
5819
5817
  content.results = newResults;
5820
5818
  }
5821
5819
  if (!canTrack)
5822
- return content;
5820
+ return content.results;
5823
5821
  if (!(isBrowser() || TARGET === "reactNative"))
5824
- return content;
5822
+ return content.results;
5825
5823
  try {
5826
5824
  const newResults = [];
5827
5825
  for (const item of content.results) {
@@ -5834,7 +5832,7 @@ var _processContentResult = async (options, content, url = generateContentUrl(op
5834
5832
  } catch (e) {
5835
5833
  logger.error("Could not process A/B tests. ", e);
5836
5834
  }
5837
- return content;
5835
+ return content.results;
5838
5836
  };
5839
5837
  async function fetchEntries(options) {
5840
5838
  try {
@@ -6104,7 +6102,7 @@ var getInteractionPropertiesForEvent = (event) => {
6104
6102
  };
6105
6103
 
6106
6104
  // src/constants/sdk-version.ts
6107
- var SDK_VERSION = "0.9.0";
6105
+ var SDK_VERSION = "0.11.0";
6108
6106
 
6109
6107
  // src/functions/register.ts
6110
6108
  var registry = {};
package/lib/node/dev.js CHANGED
@@ -725,8 +725,7 @@ function getBlockActions(options) {
725
725
  let eventHandlerName = getEventHandlerName(key);
726
726
  if (options.stripPrefix) {
727
727
  switch (TARGET) {
728
- case "vue2":
729
- case "vue3":
728
+ case "vue":
730
729
  eventHandlerName = eventHandlerName.replace("v-on:", "");
731
730
  break;
732
731
  case "svelte":
@@ -772,8 +771,7 @@ function getBlockProperties({
772
771
  function getStyleAttribute(style) {
773
772
  switch (TARGET) {
774
773
  case "svelte":
775
- case "vue2":
776
- case "vue3":
774
+ case "vue":
777
775
  case "solid":
778
776
  return convertStyleMapToCSSArray(style).join(" ");
779
777
  case "qwik":
@@ -2897,7 +2895,7 @@ var checkShouldRenderVariants = ({
2897
2895
  return false;
2898
2896
  if (!canTrack)
2899
2897
  return false;
2900
- if (TARGET === "vue2" || TARGET === "vue3" || TARGET === "svelte")
2898
+ if (TARGET === "vue" || TARGET === "svelte")
2901
2899
  return true;
2902
2900
  if (isBrowser())
2903
2901
  return false;
@@ -3111,7 +3109,7 @@ async function fetchOneEntry(options) {
3111
3109
  limit: 1
3112
3110
  });
3113
3111
  if (allContent) {
3114
- return allContent.results[0] || null;
3112
+ return allContent[0] || null;
3115
3113
  }
3116
3114
  return null;
3117
3115
  }
@@ -3134,9 +3132,9 @@ var _processContentResult = async (options, content, url = generateContentUrl(op
3134
3132
  content.results = newResults;
3135
3133
  }
3136
3134
  if (!canTrack)
3137
- return content;
3135
+ return content.results;
3138
3136
  if (!(isBrowser() || TARGET === "reactNative"))
3139
- return content;
3137
+ return content.results;
3140
3138
  try {
3141
3139
  const newResults = [];
3142
3140
  for (const item of content.results) {
@@ -3149,7 +3147,7 @@ var _processContentResult = async (options, content, url = generateContentUrl(op
3149
3147
  } catch (e) {
3150
3148
  logger.error("Could not process A/B tests. ", e);
3151
3149
  }
3152
- return content;
3150
+ return content.results;
3153
3151
  };
3154
3152
  async function fetchEntries(options) {
3155
3153
  try {
@@ -3422,7 +3420,7 @@ var getInteractionPropertiesForEvent = (event) => {
3422
3420
  };
3423
3421
 
3424
3422
  // src/constants/sdk-version.ts
3425
- var SDK_VERSION = "0.9.0";
3423
+ var SDK_VERSION = "0.11.0";
3426
3424
 
3427
3425
  // src/functions/register.ts
3428
3426
  var registry = {};
package/lib/node/dev.jsx CHANGED
@@ -712,8 +712,7 @@ function getBlockActions(options) {
712
712
  let eventHandlerName = getEventHandlerName(key);
713
713
  if (options.stripPrefix) {
714
714
  switch (TARGET) {
715
- case "vue2":
716
- case "vue3":
715
+ case "vue":
717
716
  eventHandlerName = eventHandlerName.replace("v-on:", "");
718
717
  break;
719
718
  case "svelte":
@@ -759,8 +758,7 @@ function getBlockProperties({
759
758
  function getStyleAttribute(style) {
760
759
  switch (TARGET) {
761
760
  case "svelte":
762
- case "vue2":
763
- case "vue3":
761
+ case "vue":
764
762
  case "solid":
765
763
  return convertStyleMapToCSSArray(style).join(" ");
766
764
  case "qwik":
@@ -2571,7 +2569,7 @@ var checkShouldRenderVariants = ({
2571
2569
  return false;
2572
2570
  if (!canTrack)
2573
2571
  return false;
2574
- if (TARGET === "vue2" || TARGET === "vue3" || TARGET === "svelte")
2572
+ if (TARGET === "vue" || TARGET === "svelte")
2575
2573
  return true;
2576
2574
  if (isBrowser())
2577
2575
  return false;
@@ -2778,7 +2776,7 @@ async function fetchOneEntry(options) {
2778
2776
  limit: 1
2779
2777
  });
2780
2778
  if (allContent) {
2781
- return allContent.results[0] || null;
2779
+ return allContent[0] || null;
2782
2780
  }
2783
2781
  return null;
2784
2782
  }
@@ -2801,9 +2799,9 @@ var _processContentResult = async (options, content, url = generateContentUrl(op
2801
2799
  content.results = newResults;
2802
2800
  }
2803
2801
  if (!canTrack)
2804
- return content;
2802
+ return content.results;
2805
2803
  if (!(isBrowser() || TARGET === "reactNative"))
2806
- return content;
2804
+ return content.results;
2807
2805
  try {
2808
2806
  const newResults = [];
2809
2807
  for (const item of content.results) {
@@ -2816,7 +2814,7 @@ var _processContentResult = async (options, content, url = generateContentUrl(op
2816
2814
  } catch (e) {
2817
2815
  logger.error("Could not process A/B tests. ", e);
2818
2816
  }
2819
- return content;
2817
+ return content.results;
2820
2818
  };
2821
2819
  async function fetchEntries(options) {
2822
2820
  try {
@@ -3089,7 +3087,7 @@ var getInteractionPropertiesForEvent = (event) => {
3089
3087
  };
3090
3088
 
3091
3089
  // src/constants/sdk-version.ts
3092
- var SDK_VERSION = "0.9.0";
3090
+ var SDK_VERSION = "0.11.0";
3093
3091
 
3094
3092
  // src/functions/register.ts
3095
3093
  var registry = {};
package/lib/node/index.js CHANGED
@@ -719,8 +719,7 @@ function getBlockActions(options) {
719
719
  let eventHandlerName = getEventHandlerName(key);
720
720
  if (options.stripPrefix) {
721
721
  switch (TARGET) {
722
- case "vue2":
723
- case "vue3":
722
+ case "vue":
724
723
  eventHandlerName = eventHandlerName.replace("v-on:", "");
725
724
  break;
726
725
  case "svelte":
@@ -766,8 +765,7 @@ function getBlockProperties({
766
765
  function getStyleAttribute(style) {
767
766
  switch (TARGET) {
768
767
  case "svelte":
769
- case "vue2":
770
- case "vue3":
768
+ case "vue":
771
769
  case "solid":
772
770
  return convertStyleMapToCSSArray(style).join(" ");
773
771
  case "qwik":
@@ -2887,7 +2885,7 @@ var checkShouldRenderVariants = ({
2887
2885
  return false;
2888
2886
  if (!canTrack)
2889
2887
  return false;
2890
- if (TARGET === "vue2" || TARGET === "vue3" || TARGET === "svelte")
2888
+ if (TARGET === "vue" || TARGET === "svelte")
2891
2889
  return true;
2892
2890
  if (isBrowser())
2893
2891
  return false;
@@ -3099,7 +3097,7 @@ async function fetchOneEntry(options) {
3099
3097
  limit: 1
3100
3098
  });
3101
3099
  if (allContent) {
3102
- return allContent.results[0] || null;
3100
+ return allContent[0] || null;
3103
3101
  }
3104
3102
  return null;
3105
3103
  }
@@ -3122,9 +3120,9 @@ var _processContentResult = async (options, content, url = generateContentUrl(op
3122
3120
  content.results = newResults;
3123
3121
  }
3124
3122
  if (!canTrack)
3125
- return content;
3123
+ return content.results;
3126
3124
  if (!(isBrowser() || TARGET === "reactNative"))
3127
- return content;
3125
+ return content.results;
3128
3126
  try {
3129
3127
  const newResults = [];
3130
3128
  for (const item of content.results) {
@@ -3137,7 +3135,7 @@ var _processContentResult = async (options, content, url = generateContentUrl(op
3137
3135
  } catch (e) {
3138
3136
  logger.error("Could not process A/B tests. ", e);
3139
3137
  }
3140
- return content;
3138
+ return content.results;
3141
3139
  };
3142
3140
  async function fetchEntries(options) {
3143
3141
  try {
@@ -3407,7 +3405,7 @@ var getInteractionPropertiesForEvent = (event) => {
3407
3405
  };
3408
3406
 
3409
3407
  // src/constants/sdk-version.ts
3410
- var SDK_VERSION = "0.9.0";
3408
+ var SDK_VERSION = "0.11.0";
3411
3409
 
3412
3410
  // src/functions/register.ts
3413
3411
  var registry = {};
@@ -706,8 +706,7 @@ function getBlockActions(options) {
706
706
  let eventHandlerName = getEventHandlerName(key);
707
707
  if (options.stripPrefix) {
708
708
  switch (TARGET) {
709
- case "vue2":
710
- case "vue3":
709
+ case "vue":
711
710
  eventHandlerName = eventHandlerName.replace("v-on:", "");
712
711
  break;
713
712
  case "svelte":
@@ -753,8 +752,7 @@ function getBlockProperties({
753
752
  function getStyleAttribute(style) {
754
753
  switch (TARGET) {
755
754
  case "svelte":
756
- case "vue2":
757
- case "vue3":
755
+ case "vue":
758
756
  case "solid":
759
757
  return convertStyleMapToCSSArray(style).join(" ");
760
758
  case "qwik":
@@ -2561,7 +2559,7 @@ var checkShouldRenderVariants = ({
2561
2559
  return false;
2562
2560
  if (!canTrack)
2563
2561
  return false;
2564
- if (TARGET === "vue2" || TARGET === "vue3" || TARGET === "svelte")
2562
+ if (TARGET === "vue" || TARGET === "svelte")
2565
2563
  return true;
2566
2564
  if (isBrowser())
2567
2565
  return false;
@@ -2766,7 +2764,7 @@ async function fetchOneEntry(options) {
2766
2764
  limit: 1
2767
2765
  });
2768
2766
  if (allContent) {
2769
- return allContent.results[0] || null;
2767
+ return allContent[0] || null;
2770
2768
  }
2771
2769
  return null;
2772
2770
  }
@@ -2789,9 +2787,9 @@ var _processContentResult = async (options, content, url = generateContentUrl(op
2789
2787
  content.results = newResults;
2790
2788
  }
2791
2789
  if (!canTrack)
2792
- return content;
2790
+ return content.results;
2793
2791
  if (!(isBrowser() || TARGET === "reactNative"))
2794
- return content;
2792
+ return content.results;
2795
2793
  try {
2796
2794
  const newResults = [];
2797
2795
  for (const item of content.results) {
@@ -2804,7 +2802,7 @@ var _processContentResult = async (options, content, url = generateContentUrl(op
2804
2802
  } catch (e) {
2805
2803
  logger.error("Could not process A/B tests. ", e);
2806
2804
  }
2807
- return content;
2805
+ return content.results;
2808
2806
  };
2809
2807
  async function fetchEntries(options) {
2810
2808
  try {
@@ -3074,7 +3072,7 @@ var getInteractionPropertiesForEvent = (event) => {
3074
3072
  };
3075
3073
 
3076
3074
  // src/constants/sdk-version.ts
3077
- var SDK_VERSION = "0.9.0";
3075
+ var SDK_VERSION = "0.11.0";
3078
3076
 
3079
3077
  // src/functions/register.ts
3080
3078
  var registry = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-solid",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "description": "",
5
5
  "files": [
6
6
  "dist",