@sprucelabs/spruce-invite-utils 10.0.55 → 10.0.57
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.default = renderAcceptCardSections;
|
|
4
|
+
exports.renderPermsList = renderPermsList;
|
|
4
5
|
const spruce_skill_utils_1 = require("@sprucelabs/spruce-skill-utils");
|
|
5
6
|
function renderAcceptCardSections(options) {
|
|
6
7
|
const { orgName, roleName, locationAddress } = options;
|
|
@@ -32,7 +33,6 @@ function renderAcceptCardSections(options) {
|
|
|
32
33
|
].filter((s) => !!s);
|
|
33
34
|
return sections;
|
|
34
35
|
}
|
|
35
|
-
exports.default = renderAcceptCardSections;
|
|
36
36
|
function renderPermsList(options) {
|
|
37
37
|
const { firstName, onClickToggle, lastName, phone } = options;
|
|
38
38
|
return {
|
|
@@ -59,7 +59,6 @@ function renderPermsList(options) {
|
|
|
59
59
|
],
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
|
-
exports.renderPermsList = renderPermsList;
|
|
63
62
|
function renderPermRow(options) {
|
|
64
63
|
const { id, text, subText, onClickToggle } = options;
|
|
65
64
|
return {
|
|
@@ -78,8 +78,8 @@ export default class LoginAndConfirmJoinControllerImpl {
|
|
|
78
78
|
yield ((_a = this.dialog) === null || _a === void 0 ? void 0 : _a.hide());
|
|
79
79
|
}),
|
|
80
80
|
onDecline: () => __awaiter(this, void 0, void 0, function* () {
|
|
81
|
-
var
|
|
82
|
-
yield ((
|
|
81
|
+
var _a;
|
|
82
|
+
yield ((_a = this.dialog) === null || _a === void 0 ? void 0 : _a.hide());
|
|
83
83
|
}),
|
|
84
84
|
onError: () => { },
|
|
85
85
|
organizationId: this.organizationId,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = buildRouteToCreateInvite;
|
|
3
4
|
const schema_1 = require("@sprucelabs/schema");
|
|
4
5
|
function buildRouteToCreateInvite(options) {
|
|
5
6
|
(0, schema_1.assertOptions)(options, ['destinationAfterCreate', 'destinationAfterAccept']);
|
|
@@ -13,4 +14,3 @@ function buildRouteToCreateInvite(options) {
|
|
|
13
14
|
},
|
|
14
15
|
];
|
|
15
16
|
}
|
|
16
|
-
exports.default = buildRouteToCreateInvite;
|