@startinblox/core 2.0.6-beta.13 → 2.0.6-beta.15

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/README.md CHANGED
@@ -36,6 +36,16 @@ You can now write HTML using `sib-core` and test it in your browser.
36
36
 
37
37
  - **[Store API Documentation](./docs/store.md)** - Comprehensive guide to the StartinBlox Store API, including data retrieval, manipulation, and advanced querying capabilities.
38
38
 
39
+ ### Lightweight Store Import
40
+
41
+ If you only need the store (without the full component framework), use the dedicated store entry point for a much smaller bundle:
42
+
43
+ ```javascript
44
+ import { sibStore, StoreService, StoreType } from '@startinblox/core/store';
45
+ ```
46
+
47
+ When loaded via a `<script>` tag, the store is also accessible via the `window.sib` namespace (e.g., `window.sib.store`, `window.sib.storeService`). See the [Store API Documentation](./docs/store.md) for details.
48
+
39
49
  ## Testing
40
50
 
41
51
  You can test the API by running:
@@ -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-DtCY-jxq.js";
5
- import { S as StoreService } from "./store-DRXECavo.js";
5
+ import { S as StoreService } from "./store-BkGWS8YT.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,10 +1,10 @@
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-DRXECavo.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-BkGWS8YT.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-DtCY-jxq.js";
6
- import { __tla as __tla_1 } from "./store-DRXECavo.js";
7
- import { A, D } from "./store-DRXECavo.js";
6
+ import { __tla as __tla_1 } from "./store-BkGWS8YT.js";
7
+ import { A, D } from "./store-BkGWS8YT.js";
8
8
  import { k } from "./helpers-DtCY-jxq.js";
9
9
  let index$4, BaseWidgetMixin, index$3, CounterMixin, DspCatalogDisplay, EdcAssetsDisplay, 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, b, o$2, newWidgetFactory, D2, o$1, m, widgetFactory;
10
10
  let __tla = Promise.all([
@@ -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 { l as isUrlOrRelativePath, m as jsonldContextParserExports, o as getRawContext, n as normalizeContext, q as mergeContexts, c as doesResourceContainList, r as requireJsonldContextParser, v as requireErrorCoded, w as requireLink } from "./helpers-DtCY-jxq.js";
5
- let AuthFetchResolver, DEFAULT_AUTH_SELECTORS, StoreService, formatAttributesToServerSearchOptions, base_context, StoreType, StoreFactory, hasQueryIndex, formatAttributesToServerPaginationOptions, getDefaultExportFromCjs, hasSetLocalData, sibStore, mergeServerSearchOptions, semantizer;
5
+ let AuthFetchResolver, DEFAULT_AUTH_SELECTORS, StoreService, formatAttributesToServerSearchOptions, base_context, StoreType, StoreFactory, hasQueryIndex, formatAttributesToServerPaginationOptions, getDefaultExportFromCjs, hasSetLocalData, sibStore, hasQueryIndexConjunction, mergeServerSearchOptions, semantizer;
6
6
  let __tla = (async () => {
7
7
  var _a;
8
8
  getDefaultExportFromCjs = function(x) {
@@ -5897,7 +5897,7 @@ let __tla = (async () => {
5897
5897
  };
5898
5898
  const data_offers = [];
5899
5899
  const counterPartyAddress = cs["dcat:endpointURL"];
5900
- const counterPartyId = cs["dspace:participantId"];
5900
+ const counterPartyId = cs["dspace:participantId"] || cs["participantId"];
5901
5901
  const assetId = this.stripUrnPrefix(cs["@id"], "urn:uuid:");
5902
5902
  let datasetId;
5903
5903
  let policy;
@@ -5911,6 +5911,9 @@ let __tla = (async () => {
5911
5911
  const rawPolicy = dataset2["odrl:hasPolicy"];
5912
5912
  const processSinglePolicy = (policyObj) => {
5913
5913
  const processedPolicy = this.stripTemsUrnFromPolicy(JSON.parse(JSON.stringify(policyObj)));
5914
+ if (processedPolicy["@id"]) {
5915
+ processedPolicy["@id"] = this.stripUrnPrefix(processedPolicy["@id"], "urn:uuid:");
5916
+ }
5914
5917
  if (datasetId) {
5915
5918
  processedPolicy.target = datasetId;
5916
5919
  }
@@ -33005,7 +33008,7 @@ sh:property [
33005
33008
  window.dispatchEvent(event);
33006
33009
  }
33007
33010
  async initGetter() {
33008
- const { CustomGetter } = await import("./custom-getter-CXhAMKKC.js");
33011
+ const { CustomGetter } = await import("./custom-getter-1qsjH_ZX.js");
33009
33012
  return CustomGetter;
33010
33013
  }
33011
33014
  disconnectedCallback() {
@@ -33374,6 +33377,9 @@ sh:property [
33374
33377
  hasSetLocalData = function(store) {
33375
33378
  return "setLocalData" in store && typeof store.setLocalData === "function";
33376
33379
  };
33380
+ hasQueryIndexConjunction = function(store) {
33381
+ return "queryIndexConjunction" in store && typeof store.queryIndexConjunction === "function";
33382
+ };
33377
33383
  StoreType = ((StoreType2) => {
33378
33384
  StoreType2["LDP"] = "ldp";
33379
33385
  StoreType2["FederatedCatalogue"] = "federatedCatalogue";
@@ -37592,6 +37598,18 @@ sh:property [
37592
37598
  sibStore = StoreService.getInstance();
37593
37599
  if (!sibStore) throw new Error("Store is not available");
37594
37600
  semantizer = globalThis.SEMANTIZER;
37601
+ if (!window.sib) {
37602
+ window.sib = {};
37603
+ }
37604
+ window.sib.store = sibStore;
37605
+ window.sib.storeService = StoreService;
37606
+ window.sib.storeType = StoreType;
37607
+ window.sib.hasQueryIndex = hasQueryIndex;
37608
+ window.sib.hasSetLocalData = hasSetLocalData;
37609
+ window.sib.hasQueryIndexConjunction = hasQueryIndexConjunction;
37610
+ if (!window.sibStore) {
37611
+ window.sibStore = sibStore;
37612
+ }
37595
37613
  })();
37596
37614
  export {
37597
37615
  AuthFetchResolver as A,
@@ -37607,6 +37625,7 @@ export {
37607
37625
  getDefaultExportFromCjs as g,
37608
37626
  hasSetLocalData as h,
37609
37627
  sibStore as i,
37628
+ hasQueryIndexConjunction as j,
37610
37629
  mergeServerSearchOptions as m,
37611
37630
  semantizer as s
37612
37631
  };
package/dist/store.js CHANGED
@@ -1,8 +1,11 @@
1
- import { s, S, c, b, i } from "./store-DRXECavo.js";
1
+ import { s, S, c, b, e, j, h, i } from "./store-BkGWS8YT.js";
2
2
  export {
3
3
  s as SEMANTIZER,
4
4
  S as StoreService,
5
5
  c as StoreType,
6
6
  b as baseContext,
7
+ e as hasQueryIndex,
8
+ j as hasQueryIndexConjunction,
9
+ h as hasSetLocalData,
7
10
  i as sibStore
8
11
  };
package/package.json CHANGED
@@ -1,9 +1,14 @@
1
1
  {
2
2
  "name": "@startinblox/core",
3
- "version": "2.0.6-beta.13",
3
+ "version": "2.0.6-beta.15",
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",
7
+ "exports": {
8
+ ".": "./dist/index.js",
9
+ "./store": "./dist/store.js",
10
+ "./helpers": "./dist/helpers.js"
11
+ },
7
12
  "type": "module",
8
13
  "directories": {
9
14
  "example": "examples"