@builder.io/sdk 6.0.0 → 6.0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @builder.io/sdk
2
2
 
3
+ ## 6.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 306f8d5: Fix: add missing `folded` and `keysHelperText` types to custom component `Input`
8
+ - 306f8d5: Types: add `firstPublished` to BuilderContent
9
+
10
+ ## 6.0.1
11
+
12
+ ### Patch Changes
13
+
14
+ - c822422: Fix: symbols will now show published content instead of preview/autosave content while editing a page
15
+
3
16
  ## 6.0.0
4
17
 
5
18
  ### Major Changes
@@ -9,7 +22,7 @@
9
22
 
10
23
  ### Patch Changes
11
24
 
12
- - 06b1124: Fix: Content API invocations will have `includeRefs` set to `true` by default.
25
+ - 06b1124: Fix: remove `enrich=true` default option passed to the API and instead use `includeRefs=true` as default
13
26
  - 409aec9: Feat: add `meta` type to custom components
14
27
  - 40d572d: Renders Symbol correctly when apiEndpoint is 'content'
15
28
  - 2fc9fc5: Fix: `onChange` functions passed to builder inputs can now receive async functions
@@ -1052,7 +1052,7 @@
1052
1052
 
1053
1053
  var DEFAULT_API_VERSION = 'v3';
1054
1054
 
1055
- var SDK_VERSION = '6.0.0';
1055
+ var SDK_VERSION = '6.0.2';
1056
1056
 
1057
1057
  function datePlusMinutes(minutes) {
1058
1058
  if (minutes === void 0) { minutes = 30; }
@@ -2440,6 +2440,7 @@
2440
2440
  };
2441
2441
  Builder.prototype.flushGetContentQueue = function (usePastQueue, useQueue) {
2442
2442
  var _this = this;
2443
+ var _a;
2443
2444
  if (usePastQueue === void 0) { usePastQueue = false; }
2444
2445
  if (!this.apiKey) {
2445
2446
  throw new Error("Fetching content failed, expected apiKey to be defined instead got: ".concat(this.apiKey));
@@ -2565,8 +2566,8 @@
2565
2566
  'static',
2566
2567
  'includeRefs',
2567
2568
  ];
2568
- for (var _a = 0, properties_1 = properties; _a < properties_1.length; _a++) {
2569
- var key = properties_1[_a];
2569
+ for (var _b = 0, properties_1 = properties; _b < properties_1.length; _b++) {
2570
+ var key = properties_1[_b];
2570
2571
  var value = options[key];
2571
2572
  if (value !== undefined) {
2572
2573
  if (this.apiEndpoint === 'query') {
@@ -2580,7 +2581,7 @@
2580
2581
  }
2581
2582
  }
2582
2583
  }
2583
- if (this.preview) {
2584
+ if (this.preview && this.previewingModel === ((_a = queue === null || queue === void 0 ? void 0 : queue[0]) === null || _a === void 0 ? void 0 : _a.model)) {
2584
2585
  queryParams.preview = 'true';
2585
2586
  }
2586
2587
  var hasParams = Object.keys(queryParams).length > 0;