@sprucelabs/spruce-invite-utils 18.0.8 → 18.0.10

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.
@@ -39,11 +39,13 @@ export default class LoginAndConfirmJoinControllerImpl {
39
39
  }
40
40
  promptForLoginAndConfirmJoin(options) {
41
41
  return __awaiter(this, void 0, void 0, function* () {
42
+ debugger;
42
43
  this.client = yield this.connectToApi();
43
44
  this.confirmJoinContext = options === null || options === void 0 ? void 0 : options.confirmJoinViewContext;
44
45
  let person = this.authenticator.getPerson();
45
46
  if (!this.authenticator.isLoggedIn()) {
46
47
  person = yield this.promptForLogin();
48
+ debugger;
47
49
  }
48
50
  if (!person) {
49
51
  return false;
@@ -52,6 +54,7 @@ export default class LoginAndConfirmJoinControllerImpl {
52
54
  if (roles.length > 0) {
53
55
  return true;
54
56
  }
57
+ debugger;
55
58
  const confirmed = yield this.confirmTheJoin();
56
59
  return confirmed;
57
60
  });
@@ -93,15 +96,18 @@ export default class LoginAndConfirmJoinControllerImpl {
93
96
  }
94
97
  promptForLogin() {
95
98
  return __awaiter(this, void 0, void 0, function* () {
96
- let person;
99
+ let person = null;
97
100
  const loginVc = this.views.Controller('login-card', {
98
101
  onLogin: (options) => __awaiter(this, void 0, void 0, function* () {
99
102
  var _a;
100
103
  person = options.person;
104
+ debugger;
101
105
  yield ((_a = this.dialog) === null || _a === void 0 ? void 0 : _a.hide());
102
106
  }),
103
107
  });
108
+ debugger;
104
109
  yield this.renderInDialogAndWait(loginVc.render());
110
+ debugger;
105
111
  return person;
106
112
  });
107
113
  }
@@ -35,11 +35,13 @@ class LoginAndConfirmJoinControllerImpl {
35
35
  this.vc = this.views.Controller('card', {});
36
36
  }
37
37
  async promptForLoginAndConfirmJoin(options) {
38
+ debugger;
38
39
  this.client = await this.connectToApi();
39
40
  this.confirmJoinContext = options?.confirmJoinViewContext;
40
41
  let person = this.authenticator.getPerson();
41
42
  if (!this.authenticator.isLoggedIn()) {
42
43
  person = await this.promptForLogin();
44
+ debugger;
43
45
  }
44
46
  if (!person) {
45
47
  return false;
@@ -48,6 +50,7 @@ class LoginAndConfirmJoinControllerImpl {
48
50
  if (roles.length > 0) {
49
51
  return true;
50
52
  }
53
+ debugger;
51
54
  const confirmed = await this.confirmTheJoin();
52
55
  return confirmed;
53
56
  }
@@ -83,14 +86,17 @@ class LoginAndConfirmJoinControllerImpl {
83
86
  return accepted;
84
87
  }
85
88
  async promptForLogin() {
86
- let person;
89
+ let person = null;
87
90
  const loginVc = this.views.Controller('login-card', {
88
91
  onLogin: async (options) => {
89
92
  person = options.person;
93
+ debugger;
90
94
  await this.dialog?.hide();
91
95
  },
92
96
  });
97
+ debugger;
93
98
  await this.renderInDialogAndWait(loginVc.render());
99
+ debugger;
94
100
  return person;
95
101
  }
96
102
  async renderInDialogAndWait(view) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-invite-utils",
3
3
  "description": "Invite Utilities",
4
- "version": "18.0.8",
4
+ "version": "18.0.10",
5
5
  "skill": {
6
6
  "namespace": "invite"
7
7
  },