@startinblox/core 0.19.5 → 0.19.6-beta.1

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.
Files changed (2) hide show
  1. package/dist/index.js +10 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -54124,6 +54124,10 @@ const SolidMembership = {
54124
54124
  this.resourceId = this.dataSrc;
54125
54125
  }
54126
54126
  },
54127
+ dataTargetSrc: {
54128
+ type: String,
54129
+ default: null
54130
+ },
54127
54131
  dataLeaveLabel: {
54128
54132
  type: String,
54129
54133
  default: null,
@@ -54157,7 +54161,10 @@ const SolidMembership = {
54157
54161
  let currentUserSession = await store.session;
54158
54162
  if (!currentUserSession)
54159
54163
  return;
54160
- this.userId = await currentUserSession.webId;
54164
+ if (!this.dataTargetSrc)
54165
+ this.userId = await currentUserSession.webId;
54166
+ else
54167
+ this.userId = this.dataTargetSrc;
54161
54168
  if (!this.userId)
54162
54169
  return;
54163
54170
  this.resource = await store.getData(this.resourceId);
@@ -54247,7 +54254,7 @@ const SolidMembership = {
54247
54254
  button = html$1`
54248
54255
  <solid-ac-checker data-src="${this.dataSrc}"
54249
54256
  permission="acl:Read"
54250
- class=${ifDefined(this.classSubmitButton)}
54257
+ class=${ifDefined(`${this.classSubmitButton ? "leave " + this.classSubmitButton : "leave"}`)}
54251
54258
  >
54252
54259
  <button @click=${this.changeMembership.bind(this)}>${this.dataLeaveLabel || this.t("solid-leave-group.button")}</button>
54253
54260
  ${this.getModalDialog()}
@@ -54257,7 +54264,7 @@ const SolidMembership = {
54257
54264
  button = html$1`
54258
54265
  <solid-ac-checker data-src="${this.dataSrc}"
54259
54266
  permission="acl:Read"
54260
- class=${ifDefined(this.classSubmitButton)}
54267
+ class=${ifDefined(`${this.classSubmitButton ? "join " + this.classSubmitButton : "join"}`)}
54261
54268
  >
54262
54269
  <button @click=${this.changeMembership.bind(this)}>${this.dataJoinLabel || this.t("solid-join-group.button")}</button>
54263
54270
  ${this.getModalDialog()}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startinblox/core",
3
- "version": "0.19.5",
3
+ "version": "0.19.6-beta.1",
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",