@mxenabled/connect-widget 0.4.2 → 0.5.0
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.es.js +46 -19
- package/dist/index.es.js.map +1 -1
- package/dist/lastBuild.txt +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5131,23 +5131,39 @@ function baseFindIndex$2(array, predicate, fromIndex, fromRight) {
|
|
|
5131
5131
|
}
|
|
5132
5132
|
var _baseFindIndex = baseFindIndex$2;
|
|
5133
5133
|
|
|
5134
|
-
var
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5134
|
+
var _trimmedEndIndex;
|
|
5135
|
+
var hasRequired_trimmedEndIndex;
|
|
5136
|
+
|
|
5137
|
+
function require_trimmedEndIndex () {
|
|
5138
|
+
if (hasRequired_trimmedEndIndex) return _trimmedEndIndex;
|
|
5139
|
+
hasRequired_trimmedEndIndex = 1;
|
|
5140
|
+
var reWhitespace = /\s/;
|
|
5141
|
+
function trimmedEndIndex(string) {
|
|
5142
|
+
var index = string.length;
|
|
5143
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {
|
|
5144
|
+
}
|
|
5145
|
+
return index;
|
|
5146
|
+
}
|
|
5147
|
+
_trimmedEndIndex = trimmedEndIndex;
|
|
5148
|
+
return _trimmedEndIndex;
|
|
5140
5149
|
}
|
|
5141
|
-
var _trimmedEndIndex = trimmedEndIndex$1;
|
|
5142
5150
|
|
|
5143
|
-
var
|
|
5144
|
-
var
|
|
5145
|
-
|
|
5146
|
-
|
|
5151
|
+
var _baseTrim;
|
|
5152
|
+
var hasRequired_baseTrim;
|
|
5153
|
+
|
|
5154
|
+
function require_baseTrim () {
|
|
5155
|
+
if (hasRequired_baseTrim) return _baseTrim;
|
|
5156
|
+
hasRequired_baseTrim = 1;
|
|
5157
|
+
var trimmedEndIndex = require_trimmedEndIndex();
|
|
5158
|
+
var reTrimStart = /^\s+/;
|
|
5159
|
+
function baseTrim(string) {
|
|
5160
|
+
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
5161
|
+
}
|
|
5162
|
+
_baseTrim = baseTrim;
|
|
5163
|
+
return _baseTrim;
|
|
5147
5164
|
}
|
|
5148
|
-
var _baseTrim = baseTrim$1;
|
|
5149
5165
|
|
|
5150
|
-
var baseTrim =
|
|
5166
|
+
var baseTrim = require_baseTrim(), isObject$7 = isObject_1, isSymbol$1 = isSymbol_1;
|
|
5151
5167
|
var NAN = 0 / 0;
|
|
5152
5168
|
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
5153
5169
|
var reIsBinary = /^0b[01]+$/i;
|
|
@@ -8613,7 +8629,7 @@ var hasRequiredTrim;
|
|
|
8613
8629
|
function requireTrim () {
|
|
8614
8630
|
if (hasRequiredTrim) return trim_1;
|
|
8615
8631
|
hasRequiredTrim = 1;
|
|
8616
|
-
var baseToString = _baseToString, baseTrim =
|
|
8632
|
+
var baseToString = _baseToString, baseTrim = require_baseTrim(), castSlice = require_castSlice(), charsEndIndex = require_charsEndIndex(), charsStartIndex = require_charsStartIndex(), stringToArray = require_stringToArray(), toString = toString_1;
|
|
8617
8633
|
function trim(string, chars, guard) {
|
|
8618
8634
|
string = toString(string);
|
|
8619
8635
|
if (string && (guard || chars === void 0)) {
|
|
@@ -56003,7 +56019,7 @@ const DEFAULT_POLLING_STATE = {
|
|
|
56003
56019
|
// message to show the end user
|
|
56004
56020
|
};
|
|
56005
56021
|
function pollMember(memberGuid, api) {
|
|
56006
|
-
return interval(
|
|
56022
|
+
return interval(3e3).pipe(
|
|
56007
56023
|
switchMap(
|
|
56008
56024
|
() => (
|
|
56009
56025
|
// Poll the currentMember. Catch errors but don't handle it here
|
|
@@ -56437,10 +56453,11 @@ const ConnectLogoHeader = (props) => {
|
|
|
56437
56453
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-test": "mxLogo", style: styles.backdropImage, children: colorScheme === COLOR_SCHEME.LIGHT ? /* @__PURE__ */ jsxRuntimeExports.jsx(SvgConnectHeaderBackdropLight, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(SvgConnectHeaderBackdropDark, {}) }),
|
|
56438
56454
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.clientLogo, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ClientLogo, { alt: "Client logo", clientGuid, size: 64 }) }),
|
|
56439
56455
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.institutionLogo, children: props.institutionGuid ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
56440
|
-
|
|
56456
|
+
De,
|
|
56441
56457
|
{
|
|
56442
56458
|
alt: "Institution logo",
|
|
56443
56459
|
institutionGuid: props.institutionGuid,
|
|
56460
|
+
logoUrl: props.institutionLogo,
|
|
56444
56461
|
size: 64,
|
|
56445
56462
|
style: { borderRadius: tokens.BorderRadius.Large }
|
|
56446
56463
|
}
|
|
@@ -58290,10 +58307,14 @@ const Connecting = (props) => {
|
|
|
58290
58307
|
useEffect(() => {
|
|
58291
58308
|
if (!needsToInitializeJobSchedule && areAllJobsDone(jobSchedule)) {
|
|
58292
58309
|
if (uiMessageVersion === 4) {
|
|
58293
|
-
|
|
58310
|
+
const event = {
|
|
58294
58311
|
user_guid: currentMember.user_guid,
|
|
58295
58312
|
member_guid: currentMember.guid
|
|
58296
|
-
}
|
|
58313
|
+
};
|
|
58314
|
+
if (currentMember.aggregator) {
|
|
58315
|
+
event.aggregator = currentMember.aggregator;
|
|
58316
|
+
}
|
|
58317
|
+
postMessageFunctions.onPostMessage(POST_MESSAGES.MEMBER_CONNECTED, event);
|
|
58297
58318
|
analyticFunctions.onAnalyticEvent(`connect_${POST_MESSAGES.MEMBER_CONNECTED}`, {
|
|
58298
58319
|
type: connectConfig.is_mobile_webview ? "url" : "message"
|
|
58299
58320
|
});
|
|
@@ -58428,7 +58449,13 @@ const Connecting = (props) => {
|
|
|
58428
58449
|
}
|
|
58429
58450
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { ref: connectingRef, style: styles.container, children: [
|
|
58430
58451
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(SlideDown, { delay: getNextDelay(), children: [
|
|
58431
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.logoHeader, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
58452
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.logoHeader, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
58453
|
+
ConnectLogoHeader,
|
|
58454
|
+
{
|
|
58455
|
+
institutionGuid: institution.guid,
|
|
58456
|
+
institutionLogo: institution.logo_url
|
|
58457
|
+
}
|
|
58458
|
+
) }),
|
|
58432
58459
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: styles.subHeader, tag: "h2", children: __("Connecting to %1", institution.name) })
|
|
58433
58460
|
] }),
|
|
58434
58461
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsx(ProgressBar, { jobSchedule }) }),
|