@photonhealth/elements 0.7.1 → 0.7.3-rc1
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 +4 -4
- package/dist/index.mjs +12 -11
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -10360,7 +10360,7 @@ var Wp;
|
|
|
10360
10360
|
(function(e) {
|
|
10361
10361
|
e.Female = "FEMALE", e.Male = "MALE", e.Unknown = "UNKNOWN";
|
|
10362
10362
|
})(Wp || (Wp = {}));
|
|
10363
|
-
const aw = "@photonhealth/sdk", sw = "1.3.
|
|
10363
|
+
const aw = "@photonhealth/sdk", sw = "1.3.3", lw = "dist/lib.js", dw = {
|
|
10364
10364
|
build: "npx nx run sdk:build",
|
|
10365
10365
|
docs: 'find src -name "*.ts" | xargs npx typedoc --out docs',
|
|
10366
10366
|
prepublishOnly: "npm run build"
|
|
@@ -31570,13 +31570,14 @@ class tV {
|
|
|
31570
31570
|
isAuthenticated: t
|
|
31571
31571
|
});
|
|
31572
31572
|
const n = await this.sdk.authentication.getUser(), r = !!this.sdk?.organization && !!n?.org_id;
|
|
31573
|
-
let i;
|
|
31574
|
-
|
|
31575
|
-
|
|
31576
|
-
|
|
31577
|
-
|
|
31578
|
-
|
|
31579
|
-
|
|
31573
|
+
let i = [];
|
|
31574
|
+
if (this.autoLogin || t)
|
|
31575
|
+
try {
|
|
31576
|
+
const o = await this.sdk.authentication.getAccessToken();
|
|
31577
|
+
i = o9(o)?.permissions || [];
|
|
31578
|
+
} catch {
|
|
31579
|
+
i = [];
|
|
31580
|
+
}
|
|
31580
31581
|
this.setStore("authentication", {
|
|
31581
31582
|
...this.store.authentication,
|
|
31582
31583
|
user: n,
|
|
@@ -31708,7 +31709,7 @@ class tV {
|
|
|
31708
31709
|
}
|
|
31709
31710
|
}
|
|
31710
31711
|
}
|
|
31711
|
-
const nV = /[?&]code=[^&]+/, rV = /[?&]state=[^&]+/, iV = /[?&]error=[^&]+/, oV = (e = window.location.search) => (nV.test(e) || iV.test(e)) && rV.test(e), aV = (e) => /^\d+$/.test(e) && e.length >= 5, a9 = Rn(), Nn = () => xn(a9), sV = "@photonhealth/elements", lV = "0.7.
|
|
31712
|
+
const nV = /[?&]code=[^&]+/, rV = /[?&]state=[^&]+/, iV = /[?&]error=[^&]+/, oV = (e = window.location.search) => (nV.test(e) || iV.test(e)) && rV.test(e), aV = (e) => /^\d+$/.test(e) && e.length >= 5, a9 = Rn(), Nn = () => xn(a9), sV = "@photonhealth/elements", lV = "0.7.3-rc1", dV = "", cV = "dist/index.js", uV = "./dist/index.d.ts", fV = {
|
|
31712
31713
|
start: "vite --port 3000",
|
|
31713
31714
|
build: "rimraf dist && NODE_ENV=development vite build",
|
|
31714
31715
|
"build:prod": "npx nx run elements:build",
|
|
@@ -37359,7 +37360,7 @@ const F9 = (e) => {
|
|
|
37359
37360
|
},
|
|
37360
37361
|
get children() {
|
|
37361
37362
|
return g(A0, {
|
|
37362
|
-
message: "You tried logging in with an account not associated with any organizations"
|
|
37363
|
+
message: "You tried logging in with an account not associated with any organizations. Please check your email for an invite, or ask your administrator for assistance."
|
|
37363
37364
|
});
|
|
37364
37365
|
}
|
|
37365
37366
|
});
|
|
@@ -44450,7 +44451,7 @@ function nY(e) {
|
|
|
44450
44451
|
} : void 0);
|
|
44451
44452
|
});
|
|
44452
44453
|
}), pe(() => {
|
|
44453
|
-
!n?.authentication.state.isAuthenticated && !n?.authentication.state.isLoading && !n?.authentication.state.error && n?.authentication.login({
|
|
44454
|
+
!n?.authentication.state.isAuthenticated && !n?.authentication.state.isLoading && !n?.authentication.state.error && n?.autoLogin && n?.authentication.login({
|
|
44454
44455
|
appState: {
|
|
44455
44456
|
returnTo: window.location.pathname
|
|
44456
44457
|
}
|