@sprucelabs/spruce-people-utils 5.0.111 → 5.0.112

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.
@@ -16,8 +16,8 @@ export default class SpyInviteInviteViewController extends InvitePersonCardViewC
16
16
  return this.organizationId;
17
17
  }
18
18
  clickDone(personId) {
19
- var _a;
20
19
  return __awaiter(this, void 0, void 0, function* () {
20
+ var _a;
21
21
  yield ((_a = this.doneHandler) === null || _a === void 0 ? void 0 : _a.call(this, personId));
22
22
  });
23
23
  }
@@ -140,8 +140,8 @@ class InvitePersonCardViewController extends AbstractViewController {
140
140
  }
141
141
  }
142
142
  handleClickDone() {
143
- var _a;
144
143
  return __awaiter(this, void 0, void 0, function* () {
144
+ var _a;
145
145
  yield ((_a = this.doneHandler) === null || _a === void 0 ? void 0 : _a.call(this, this.invitedPersonId));
146
146
  });
147
147
  }
@@ -185,8 +185,8 @@ class InvitePersonCardViewController extends AbstractViewController {
185
185
  });
186
186
  }
187
187
  handleSubmitNamePhoneForm() {
188
- var _a, _b;
189
188
  return __awaiter(this, void 0, void 0, function* () {
189
+ var _a, _b;
190
190
  this.swipeVc.setIsBusy(true);
191
191
  yield this.swipeVc.jumpToSlide(1);
192
192
  try {
@@ -229,14 +229,14 @@ class InvitePersonCardViewController extends AbstractViewController {
229
229
  yield this.client.on('invite.did-accept::v2021_12_16', this._handleDidAcceptInvite);
230
230
  });
231
231
  }
232
- _handleDidAcceptInvite({ payload, }) {
233
- return __awaiter(this, void 0, void 0, function* () {
232
+ _handleDidAcceptInvite(_a) {
233
+ return __awaiter(this, arguments, void 0, function* ({ payload, }) {
234
234
  return this.handleDidAcceptInvite(payload.inviteId, payload.personId);
235
235
  });
236
236
  }
237
237
  handleDidAcceptInvite(inviteId, personId) {
238
- var _a;
239
238
  return __awaiter(this, void 0, void 0, function* () {
239
+ var _a;
240
240
  if (((_a = this.pendingInvite) === null || _a === void 0 ? void 0 : _a.id) === inviteId) {
241
241
  yield this.swipeVc.jumpToSlide(2);
242
242
  this.invitedPersonId = personId;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-people-utils",
3
3
  "description": "People Utilities",
4
- "version": "5.0.111",
4
+ "version": "5.0.112",
5
5
  "skill": {
6
6
  "namespace": "invite"
7
7
  },