@startinblox/core 2.0.6-beta.5 → 2.0.6-beta.6

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.
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  import { q as mergeContexts, o as getRawContext, n as normalizeContext } from "./helpers-vZrb1UDN.js";
5
- import { S as StoreService } from "./store-BCI532IX.js";
5
+ import { S as StoreService } from "./store-B7CtE5CD.js";
6
6
  const store = StoreService.getInstance();
7
7
  class CustomGetter {
8
8
  // search attributes to give to server
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { g as getDefaultExportFromCjs, S as StoreService, b as base_context, f as formatAttributesToServerPaginationOptions, m as mergeServerSearchOptions, a as formatAttributesToServerSearchOptions, c as StoreType, d as StoreFactory, h as hasSetLocalData, e as hasQueryIndex, __tla as __tla_0 } from "./store-BCI532IX.js";
4
+ import { g as getDefaultExportFromCjs, S as StoreService, b as base_context, f as formatAttributesToServerPaginationOptions, m as mergeServerSearchOptions, a as formatAttributesToServerSearchOptions, c as StoreType, d as StoreFactory, h as hasSetLocalData, e as hasQueryIndex, __tla as __tla_0 } from "./store-B7CtE5CD.js";
5
5
  import { d as defineComponent, n as normalizeContext, u as uniqID, f as fuzzyCompare, a as asyncQuerySelector, i as importInlineCSS, b as importCSS, c as doesResourceContainList, e as findClosingBracketMatchIndex, p as parseFieldsString, g as evalTemplateString, h as compare, j as generalComparator, t as transformArrayToContainer, s as setDeepProperty } from "./helpers-vZrb1UDN.js";
6
6
  import { k } from "./helpers-vZrb1UDN.js";
7
7
  let index$4, BaseWidgetMixin, index$3, CounterMixin, EdcAssetsDisplay, EdcCatalogDisplay, EdcFederatedCatalogDisplay, FederationMixin, FilterMixin, GrouperMixin, HighlighterMixin, ListMixin, NextMixin, PaginateMixin, RequiredMixin, Sib, SolidAcChecker, SolidDelete, SolidDisplay, SolidForm, SolidFormSearch, SolidLang, SolidMemberAdd, SolidMemberDelete, SolidMembership, SolidTable, SolidTemplateElement, SolidWidget, SorterMixin, StoreMixin, index$2, index$1, index, TranslationMixin, ValidationMixin, WidgetMixin, x, o$2, newWidgetFactory, B, o$1, m, widgetFactory;
@@ -28570,7 +28570,7 @@ sh:property [
28570
28570
  this.searchProvider = new SolidIndexingSearchProvider(this.getData.bind(this));
28571
28571
  }
28572
28572
  async initGetter() {
28573
- const { CustomGetter } = await import("./custom-getter-DnswwmYZ.js");
28573
+ const { CustomGetter } = await import("./custom-getter-D-s4T-Sk.js");
28574
28574
  return CustomGetter;
28575
28575
  }
28576
28576
  async getData(id, context2, parentId, localData, forceFetch, serverPagination, serverSearch, headers, bypassLoadingList) {
@@ -28921,7 +28921,17 @@ sh:property [
28921
28921
  if (window.sibStore) {
28922
28922
  return window.sibStore;
28923
28923
  }
28924
- const store2 = new LdpStore((_cfg == null ? void 0 : _cfg.options) || {});
28924
+ const storeOptions = {};
28925
+ const sibAuth = document.querySelector("sib-auth");
28926
+ if (sibAuth) {
28927
+ const sibAuthDefined = customElements.whenDefined(sibAuth.localName);
28928
+ storeOptions.session = sibAuthDefined.then(() => sibAuth.session);
28929
+ storeOptions.fetchMethod = sibAuthDefined.then(() => sibAuth.getFetch());
28930
+ }
28931
+ const store2 = new LdpStore({
28932
+ ..._cfg == null ? void 0 : _cfg.options,
28933
+ ...storeOptions
28934
+ });
28925
28935
  window.sibStore = store2;
28926
28936
  return store2;
28927
28937
  }
package/dist/store.js CHANGED
@@ -1,4 +1,4 @@
1
- import { s, S, c, b, i } from "./store-BCI532IX.js";
1
+ import { s, S, c, b, i } from "./store-B7CtE5CD.js";
2
2
  export {
3
3
  s as SEMANTIZER,
4
4
  S as StoreService,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startinblox/core",
3
- "version": "2.0.6-beta.5",
3
+ "version": "2.0.6-beta.6",
4
4
  "description": "This is a series of web component respecting both the web components standards and the Linked Data Platform convention.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",