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

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-CVBZtibt.js";
5
+ import { S as StoreService } from "./store-BCI532IX.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-CVBZtibt.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-BCI532IX.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;
@@ -1392,9 +1392,8 @@ let __tla = (async () => {
1392
1392
  return await response.json();
1393
1393
  }
1394
1394
  }
1395
- function getFederatedCatalogueAPIWrapper(baseUrl, optionLogin, optionsServer) {
1396
- const options = Object.assign({}, optionsServer, optionLogin);
1397
- return new FederatedCatalogueAPIWrapper(options, baseUrl);
1395
+ function getFederatedCatalogueAPIWrapper(baseUrl, loginOptions) {
1396
+ return new FederatedCatalogueAPIWrapper(loginOptions, baseUrl);
1398
1397
  }
1399
1398
  class FederatedCatalogueStore {
1400
1399
  constructor(cfg) {
@@ -1408,11 +1407,8 @@ let __tla = (async () => {
1408
1407
  if (!this.cfg.endpoint) {
1409
1408
  throw new Error("Missing required `endpoint` in StoreConfig for FederatedCatalogueStore");
1410
1409
  }
1411
- if (!this.cfg.optionsServer) {
1412
- throw new Error("Missing required `optionsServer` in StoreConfig for FederatedCatalogueStore");
1413
- }
1414
1410
  try {
1415
- this.fcApi = getFederatedCatalogueAPIWrapper(this.cfg.endpoint, this.cfg.login, this.cfg.optionsServer);
1411
+ this.fcApi = getFederatedCatalogueAPIWrapper(this.cfg.endpoint, this.cfg.login);
1416
1412
  } catch (e) {
1417
1413
  console.error("[FederatedCatalogueStore] Failed to initialize API wrapper:", e);
1418
1414
  this.fcApi = null;
@@ -28574,7 +28570,7 @@ sh:property [
28574
28570
  this.searchProvider = new SolidIndexingSearchProvider(this.getData.bind(this));
28575
28571
  }
28576
28572
  async initGetter() {
28577
- const { CustomGetter } = await import("./custom-getter-Dza7na7P.js");
28573
+ const { CustomGetter } = await import("./custom-getter-DnswwmYZ.js");
28578
28574
  return CustomGetter;
28579
28575
  }
28580
28576
  async getData(id, context2, parentId, localData, forceFetch, serverPagination, serverSearch, headers, bypassLoadingList) {
@@ -33064,11 +33060,13 @@ sh:property [
33064
33060
  mixinFactoryImpl: MixinFactoryImpl,
33065
33061
  datasetBaseFactoryImpl: DatasetBaseFactoryImpl
33066
33062
  }));
33067
- Object.defineProperty(globalThis, "SEMANTIZER", {
33068
- value: semantizer$1,
33069
- writable: false,
33070
- configurable: false
33071
- });
33063
+ if (!globalThis.SEMANTIZER) {
33064
+ Object.defineProperty(globalThis, "SEMANTIZER", {
33065
+ value: semantizer$1,
33066
+ writable: false,
33067
+ configurable: true
33068
+ });
33069
+ }
33072
33070
  if (typeof window !== "undefined") {
33073
33071
  if (typeof window.process === "undefined") {
33074
33072
  window.process = {
package/dist/store.js CHANGED
@@ -1,7 +1,8 @@
1
- import { s, S, b, i } from "./store-CVBZtibt.js";
1
+ import { s, S, c, b, i } from "./store-BCI532IX.js";
2
2
  export {
3
3
  s as SEMANTIZER,
4
4
  S as StoreService,
5
+ c as StoreType,
5
6
  b as baseContext,
6
7
  i as sibStore
7
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startinblox/core",
3
- "version": "2.0.6-beta.3",
3
+ "version": "2.0.6-beta.5",
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",