@verdocs/web-sdk 1.12.33 → 1.12.34

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.
@@ -262,10 +262,12 @@ const VerdocsTemplateRoles = class {
262
262
  delegator: false,
263
263
  })
264
264
  .then(r => {
265
+ var _a;
265
266
  console.log('Created role', r);
266
267
  templateStore.state.template.roles.push(r);
267
268
  this.renumberTemplateRoles();
268
269
  this.forceRerender++;
270
+ (_a = this.templateUpdated) === null || _a === void 0 ? void 0 : _a.emit({ event: 'created-role', endpoint: this.endpoint, template: templateStore.state.template });
269
271
  })
270
272
  .catch(e => {
271
273
  console.log('Error creating role', e);
@@ -248,10 +248,12 @@ export class VerdocsTemplateRoles {
248
248
  delegator: false,
249
249
  })
250
250
  .then(r => {
251
+ var _a;
251
252
  console.log('Created role', r);
252
253
  TemplateStore.template.roles.push(r);
253
254
  this.renumberTemplateRoles();
254
255
  this.forceRerender++;
256
+ (_a = this.templateUpdated) === null || _a === void 0 ? void 0 : _a.emit({ event: 'created-role', endpoint: this.endpoint, template: TemplateStore.template });
255
257
  })
256
258
  .catch(e => {
257
259
  console.log('Error creating role', e);
@@ -263,10 +263,12 @@ const VerdocsTemplateRoles$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
263
263
  delegator: false,
264
264
  })
265
265
  .then(r => {
266
+ var _a;
266
267
  console.log('Created role', r);
267
268
  state.template.roles.push(r);
268
269
  this.renumberTemplateRoles();
269
270
  this.forceRerender++;
271
+ (_a = this.templateUpdated) === null || _a === void 0 ? void 0 : _a.emit({ event: 'created-role', endpoint: this.endpoint, template: state.template });
270
272
  })
271
273
  .catch(e => {
272
274
  console.log('Error creating role', e);