@builder.io/sdk 1.1.28-6 → 1.1.28
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.browser.js +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs.js +8 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +8 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +8 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/src/builder.class.d.ts +12 -0
- package/dist/src/builder.class.js +8 -3
- package/dist/src/builder.class.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/.envrc +0 -1
- package/.task/checksum/build +0 -1
- package/Taskfile.yaml +0 -15
- package/coverage/clover.xml +0 -6
- package/coverage/coverage-final.json +0 -1
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -101
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/query-string.class.ts.html +0 -328
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov-report/url.ts.html +0 -253
- package/coverage/lcov.info +0 -0
package/dist/index.umd.js
CHANGED
|
@@ -1204,6 +1204,7 @@
|
|
|
1204
1204
|
this.observersByKey = {};
|
|
1205
1205
|
this.noEditorUpdates = {};
|
|
1206
1206
|
this.overrides = {};
|
|
1207
|
+
this.queryOptions = {};
|
|
1207
1208
|
this.getContentQueue = null;
|
|
1208
1209
|
this.priorContentQueue = null;
|
|
1209
1210
|
this.testCookiePrefix = 'builder.tests';
|
|
@@ -1815,10 +1816,14 @@
|
|
|
1815
1816
|
var params = QueryString.parseDeep(this.modifySearch(location.search || '').substr(1));
|
|
1816
1817
|
var builder = params.builder;
|
|
1817
1818
|
if (builder) {
|
|
1818
|
-
var userAttributes = builder.userAttributes, overrides = builder.overrides, env = builder.env, host = builder.host, api = builder.api, cachebust = builder.cachebust, noCache = builder.noCache, preview = builder.preview, editing = builder.editing, frameEditing = builder.frameEditing, overrideParams = builder.params;
|
|
1819
|
+
var userAttributes = builder.userAttributes, overrides = builder.overrides, env = builder.env, host = builder.host, api = builder.api, cachebust = builder.cachebust, noCache = builder.noCache, preview = builder.preview, editing = builder.editing, frameEditing = builder.frameEditing, options = builder.options, overrideParams = builder.params;
|
|
1819
1820
|
if (userAttributes) {
|
|
1820
1821
|
this.setUserAttributes(userAttributes);
|
|
1821
1822
|
}
|
|
1823
|
+
if (options) {
|
|
1824
|
+
// picking only locale and includeRefs
|
|
1825
|
+
this.queryOptions = __assign(__assign({}, (options.locale && { locale: options.locale })), (options.includeRefs && { includeRefs: options.includeRefs }));
|
|
1826
|
+
}
|
|
1822
1827
|
if (overrides) {
|
|
1823
1828
|
this.overrides = overrides;
|
|
1824
1829
|
}
|
|
@@ -2290,9 +2295,9 @@
|
|
|
2290
2295
|
var queue = useQueue || (usePastQueue ? this.priorContentQueue : this.getContentQueue) || [];
|
|
2291
2296
|
// TODO: do this on every request send?
|
|
2292
2297
|
this.getOverridesFromQueryString();
|
|
2293
|
-
var queryParams = __assign({
|
|
2298
|
+
var queryParams = __assign(__assign({
|
|
2294
2299
|
// TODO: way to force a request to be in a separate queue. or just lower queue limit to be 1 by default
|
|
2295
|
-
omit: queue[0].omit || 'meta.componentsUsed', apiKey: this.apiKey }, queue[0].options);
|
|
2300
|
+
omit: queue[0].omit || 'meta.componentsUsed', apiKey: this.apiKey }, queue[0].options), this.queryOptions);
|
|
2296
2301
|
if (queue[0].fields) {
|
|
2297
2302
|
queryParams.fields = queue[0].fields;
|
|
2298
2303
|
}
|