@startinblox/core 2.0.6-beta.22 → 2.0.6-beta.24

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-DtCY-jxq.js";
5
- import { S as StoreService } from "./store-CsOvawDq.js";
5
+ import { S as StoreService } from "./store-D93Y6gvo.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-CsOvawDq.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-D93Y6gvo.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-CsOvawDq.js";
7
- import { A, D } from "./store-CsOvawDq.js";
6
+ import { __tla as __tla_1 } from "./store-D93Y6gvo.js";
7
+ import { A, D } from "./store-D93Y6gvo.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([
@@ -4470,6 +4470,9 @@ let __tla = (async () => {
4470
4470
  properties: assetInput.properties || {},
4471
4471
  dataAddress: assetInput.dataAddress
4472
4472
  };
4473
+ if (assetInput.privateProperties) {
4474
+ assetData.privateProperties = assetInput.privateProperties;
4475
+ }
4473
4476
  const response = await this.fetchAuthn(assetsEndpoint, {
4474
4477
  method: "POST",
4475
4478
  headers: this.headers,
@@ -5931,8 +5934,9 @@ let __tla = (async () => {
5931
5934
  throw new Error(`Could not locate an offering block (used key: ${usedKey}); resolved catInfo is empty`);
5932
5935
  }
5933
5936
  const resourceId = cs["@id"];
5934
- const slug = resourceId.split("/").pop() || "unknown";
5935
- const serviceId = `${opts.temsServiceBase}${encodeURIComponent(slug)}/`;
5937
+ const rawSlug = resourceId.split("/").pop() || "unknown";
5938
+ const bareUuid = rawSlug.replace(/^urn:uuid:/i, "");
5939
+ const serviceId = `urn:uuid:${bareUuid}`;
5936
5940
  const creation_date = vc.issuanceDate;
5937
5941
  const update_date = vc.expirationDate;
5938
5942
  const name = catInfo["dcterms:title"] || catInfo["dct:title"];
@@ -5943,7 +5947,7 @@ let __tla = (async () => {
5943
5947
  ] : [];
5944
5948
  const long_description = keywords.length > 0 ? `Keywords: ${keywords.join(", ")}` : "";
5945
5949
  const categories = {
5946
- "@id": `${serviceId}categories/`,
5950
+ "@id": `${serviceId}/categories`,
5947
5951
  "@type": "ldp:Container",
5948
5952
  "ldp:contains": keywords.map((kw) => ({
5949
5953
  "@id": `${opts.temsCategoryBase}${encodeURIComponent(kw)}/`,
@@ -5963,7 +5967,7 @@ let __tla = (async () => {
5963
5967
  const creatorThumbnail = getThumbnailUrl(getCreator(catInfo));
5964
5968
  if (creatorThumbnail) imageUrls.push(creatorThumbnail);
5965
5969
  const images = {
5966
- "@id": `${serviceId}images/`,
5970
+ "@id": `${serviceId}/images`,
5967
5971
  "@type": "ldp:Container",
5968
5972
  "ldp:contains": imageUrls.map((url2) => ({
5969
5973
  "@id": `${opts.temsImageBase}${encodeURIComponent(url2.split("/").pop() || "0")}/`,
@@ -33117,7 +33121,7 @@ sh:property [
33117
33121
  window.dispatchEvent(event);
33118
33122
  }
33119
33123
  async initGetter() {
33120
- const { CustomGetter } = await import("./custom-getter-BKuxi53d.js");
33124
+ const { CustomGetter } = await import("./custom-getter-Aie6_R7w.js");
33121
33125
  return CustomGetter;
33122
33126
  }
33123
33127
  disconnectedCallback() {
package/dist/store.js CHANGED
@@ -1,4 +1,4 @@
1
- import { s, S, c, b, e, j, h, i } from "./store-CsOvawDq.js";
1
+ import { s, S, c, b, e, j, h, i } from "./store-D93Y6gvo.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.22",
3
+ "version": "2.0.6-beta.24",
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",