@verdocs/web-sdk 2.3.35 → 2.3.36

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.
@@ -61,7 +61,7 @@ const VerdocsPreview = class {
61
61
  this.templateId = null;
62
62
  }
63
63
  async componentWillLoad() {
64
- var _a, _b, _c;
64
+ var _a, _b, _c, _d, _e;
65
65
  try {
66
66
  this.endpoint.loadSession();
67
67
  if (!this.templateId) {
@@ -75,11 +75,13 @@ const VerdocsPreview = class {
75
75
  this.templateStore = await TemplateStore.getTemplateStore(this.endpoint, this.templateId, false);
76
76
  this.fieldStore = TemplateFieldStore.getTemplateFieldStore(this.templateId);
77
77
  this.roleStore = TemplateRoleStore.getTemplateRoleStore(this.templateId);
78
- console.log('[PREVIEW] Loadied template', this.templateStore.state, this.roleStore.get('roles'), this.fieldStore.get('fields'));
78
+ console.log('RS', (_a = this.roleStore) === null || _a === void 0 ? void 0 : _a.state);
79
+ console.log('FS', (_b = this.fieldStore) === null || _b === void 0 ? void 0 : _b.state);
80
+ console.log('[PREVIEW] Loaded template', this.templateStore.state, this.roleStore.get('roles'), this.fieldStore.get('fields'));
79
81
  }
80
82
  catch (e) {
81
83
  console.log('[PREVIEW] Error with preview session', e);
82
- (_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(new errors.SDKError(e.message, (_b = e.response) === null || _b === void 0 ? void 0 : _b.status, (_c = e.response) === null || _c === void 0 ? void 0 : _c.data));
84
+ (_c = this.sdkError) === null || _c === void 0 ? void 0 : _c.emit(new errors.SDKError(e.message, (_d = e.response) === null || _d === void 0 ? void 0 : _d.status, (_e = e.response) === null || _e === void 0 ? void 0 : _e.data));
83
85
  }
84
86
  }
85
87
  handlePageRendered(e) {
@@ -20,7 +20,7 @@ export class VerdocsPreview {
20
20
  this.templateId = null;
21
21
  }
22
22
  async componentWillLoad() {
23
- var _a, _b, _c;
23
+ var _a, _b, _c, _d, _e;
24
24
  try {
25
25
  this.endpoint.loadSession();
26
26
  if (!this.templateId) {
@@ -34,11 +34,13 @@ export class VerdocsPreview {
34
34
  this.templateStore = await getTemplateStore(this.endpoint, this.templateId, false);
35
35
  this.fieldStore = getTemplateFieldStore(this.templateId);
36
36
  this.roleStore = getTemplateRoleStore(this.templateId);
37
- console.log('[PREVIEW] Loadied template', this.templateStore.state, this.roleStore.get('roles'), this.fieldStore.get('fields'));
37
+ console.log('RS', (_a = this.roleStore) === null || _a === void 0 ? void 0 : _a.state);
38
+ console.log('FS', (_b = this.fieldStore) === null || _b === void 0 ? void 0 : _b.state);
39
+ console.log('[PREVIEW] Loaded template', this.templateStore.state, this.roleStore.get('roles'), this.fieldStore.get('fields'));
38
40
  }
39
41
  catch (e) {
40
42
  console.log('[PREVIEW] Error with preview session', e);
41
- (_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(new SDKError(e.message, (_b = e.response) === null || _b === void 0 ? void 0 : _b.status, (_c = e.response) === null || _c === void 0 ? void 0 : _c.data));
43
+ (_c = this.sdkError) === null || _c === void 0 ? void 0 : _c.emit(new SDKError(e.message, (_d = e.response) === null || _d === void 0 ? void 0 : _d.status, (_e = e.response) === null || _e === void 0 ? void 0 : _e.data));
42
44
  }
43
45
  }
44
46
  handlePageRendered(e) {
@@ -23,7 +23,7 @@ const VerdocsPreview = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
23
23
  this.templateId = null;
24
24
  }
25
25
  async componentWillLoad() {
26
- var _a, _b, _c;
26
+ var _a, _b, _c, _d, _e;
27
27
  try {
28
28
  this.endpoint.loadSession();
29
29
  if (!this.templateId) {
@@ -37,11 +37,13 @@ const VerdocsPreview = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
37
37
  this.templateStore = await getTemplateStore(this.endpoint, this.templateId, false);
38
38
  this.fieldStore = getTemplateFieldStore(this.templateId);
39
39
  this.roleStore = getTemplateRoleStore(this.templateId);
40
- console.log('[PREVIEW] Loadied template', this.templateStore.state, this.roleStore.get('roles'), this.fieldStore.get('fields'));
40
+ console.log('RS', (_a = this.roleStore) === null || _a === void 0 ? void 0 : _a.state);
41
+ console.log('FS', (_b = this.fieldStore) === null || _b === void 0 ? void 0 : _b.state);
42
+ console.log('[PREVIEW] Loaded template', this.templateStore.state, this.roleStore.get('roles'), this.fieldStore.get('fields'));
41
43
  }
42
44
  catch (e) {
43
45
  console.log('[PREVIEW] Error with preview session', e);
44
- (_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(new SDKError(e.message, (_b = e.response) === null || _b === void 0 ? void 0 : _b.status, (_c = e.response) === null || _c === void 0 ? void 0 : _c.data));
46
+ (_c = this.sdkError) === null || _c === void 0 ? void 0 : _c.emit(new SDKError(e.message, (_d = e.response) === null || _d === void 0 ? void 0 : _d.status, (_e = e.response) === null || _e === void 0 ? void 0 : _e.data));
45
47
  }
46
48
  }
47
49
  handlePageRendered(e) {