acsi-core 0.1.91 → 0.1.94
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.
- package/dist/index.js +24 -36
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +24 -36
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -79,25 +79,6 @@ var ORGANIZATION_TEAM = "ORGANIZATION_TEAM";
|
|
|
79
79
|
|
|
80
80
|
var styleGlobal = {"signup_wrap":"_1KLz9","box-signin":"_2Jo1o","signin_title":"_3egBO","signup_link":"_1DoIT","google_button":"_34hK_","microsoft_button":"_19ESb","box-field":"_2e9xO","box-input":"_3zXRp","box-text":"_8NJga","box-button-email":"_21FPk","box-signin-container":"_1QERu","box-signin-text":"_2-znH","box-signin-logo":"_1aB2m","box-right":"_3qndF","image-slideshow":"_1aM7m","active":"_Vx1zf","box-right-body":"_JzdCr","box-right-footer":"_19aCA","pr-30":"_2HB5r","width-400":"_4ehXP"};
|
|
81
81
|
|
|
82
|
-
// A type of promise-like that resolves synchronously and supports only one observer
|
|
83
|
-
|
|
84
|
-
const _iteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator"))) : "@@iterator";
|
|
85
|
-
|
|
86
|
-
const _asyncIteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator"))) : "@@asyncIterator";
|
|
87
|
-
|
|
88
|
-
// Asynchronously call a function and send errors to recovery continuation
|
|
89
|
-
function _catch(body, recover) {
|
|
90
|
-
try {
|
|
91
|
-
var result = body();
|
|
92
|
-
} catch(e) {
|
|
93
|
-
return recover(e);
|
|
94
|
-
}
|
|
95
|
-
if (result && result.then) {
|
|
96
|
-
return result.then(void 0, recover);
|
|
97
|
-
}
|
|
98
|
-
return result;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
82
|
function _extends() {
|
|
102
83
|
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
103
84
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -117,6 +98,25 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
117
98
|
return t;
|
|
118
99
|
}
|
|
119
100
|
|
|
101
|
+
// A type of promise-like that resolves synchronously and supports only one observer
|
|
102
|
+
|
|
103
|
+
const _iteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator"))) : "@@iterator";
|
|
104
|
+
|
|
105
|
+
const _asyncIteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator"))) : "@@asyncIterator";
|
|
106
|
+
|
|
107
|
+
// Asynchronously call a function and send errors to recovery continuation
|
|
108
|
+
function _catch(body, recover) {
|
|
109
|
+
try {
|
|
110
|
+
var result = body();
|
|
111
|
+
} catch(e) {
|
|
112
|
+
return recover(e);
|
|
113
|
+
}
|
|
114
|
+
if (result && result.then) {
|
|
115
|
+
return result.then(void 0, recover);
|
|
116
|
+
}
|
|
117
|
+
return result;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
120
|
var styles = {"core-button":"_xvNBN","primary":"_U9Qyp","secondary":"_1VzMy","text":"_pZNuj","danger":"_2uYm1","light":"_wxH5S"};
|
|
121
121
|
|
|
122
122
|
var _excluded = ["type", "children", "onClick", "icon", "disabled", "htmlType"];
|
|
@@ -1303,9 +1303,6 @@ var BlockLogin = function BlockLogin(_ref) {
|
|
|
1303
1303
|
var _useState5 = useState(0),
|
|
1304
1304
|
currentImageIndex = _useState5[0],
|
|
1305
1305
|
setCurrentImageIndex = _useState5[1];
|
|
1306
|
-
var _useState6 = useState(),
|
|
1307
|
-
msalInstance = _useState6[0],
|
|
1308
|
-
setMsalInstance = _useState6[1];
|
|
1309
1306
|
var handleGetImage = function handleGetImage() {
|
|
1310
1307
|
try {
|
|
1311
1308
|
var _temp = _catch(function () {
|
|
@@ -1412,6 +1409,7 @@ var BlockLogin = function BlockLogin(_ref) {
|
|
|
1412
1409
|
});
|
|
1413
1410
|
var fnLoginMicrosoft = function fnLoginMicrosoft() {
|
|
1414
1411
|
try {
|
|
1412
|
+
var msalInstance = new PublicClientApplication(msalConfig(MICROSOFT_CLIENT_ID, MICROSOFT_URL_DIRECT));
|
|
1415
1413
|
if (!msalInstance) {
|
|
1416
1414
|
console.error("MSAL instance not initialized");
|
|
1417
1415
|
return Promise.resolve();
|
|
@@ -1421,7 +1419,10 @@ var BlockLogin = function BlockLogin(_ref) {
|
|
|
1421
1419
|
var loginRequest = {
|
|
1422
1420
|
scopes: ["openid", "profile", "email"]
|
|
1423
1421
|
};
|
|
1424
|
-
|
|
1422
|
+
var silentRequest = _extends({}, loginRequest, {
|
|
1423
|
+
prompt: "select_account"
|
|
1424
|
+
});
|
|
1425
|
+
return Promise.resolve(msalInstance.loginPopup(silentRequest)).then(function (response) {
|
|
1425
1426
|
return function () {
|
|
1426
1427
|
if (response && response.account) {
|
|
1427
1428
|
var account = response.account;
|
|
@@ -1486,7 +1487,6 @@ var BlockLogin = function BlockLogin(_ref) {
|
|
|
1486
1487
|
});
|
|
1487
1488
|
}, function (error) {
|
|
1488
1489
|
console.error("Microsoft login error:", error);
|
|
1489
|
-
alert("Microsoft login failed. Please try again.");
|
|
1490
1490
|
}));
|
|
1491
1491
|
} catch (e) {
|
|
1492
1492
|
return Promise.reject(e);
|
|
@@ -1556,18 +1556,6 @@ var BlockLogin = function BlockLogin(_ref) {
|
|
|
1556
1556
|
return clearInterval(interval);
|
|
1557
1557
|
};
|
|
1558
1558
|
}, [images.length]);
|
|
1559
|
-
var initInformationSSO = function initInformationSSO() {
|
|
1560
|
-
try {
|
|
1561
|
-
var _msalInstance = new PublicClientApplication(msalConfig(MICROSOFT_CLIENT_ID, MICROSOFT_URL_DIRECT));
|
|
1562
|
-
setMsalInstance(_msalInstance);
|
|
1563
|
-
return Promise.resolve();
|
|
1564
|
-
} catch (e) {
|
|
1565
|
-
return Promise.reject(e);
|
|
1566
|
-
}
|
|
1567
|
-
};
|
|
1568
|
-
useEffect(function () {
|
|
1569
|
-
initInformationSSO();
|
|
1570
|
-
}, []);
|
|
1571
1559
|
return React.createElement(React.Fragment, null, React.createElement(Row, {
|
|
1572
1560
|
style: {
|
|
1573
1561
|
height: "100%"
|