@ansiversa/components 0.0.101 → 0.0.102

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ansiversa/components",
3
- "version": "0.0.101",
3
+ "version": "0.0.102",
4
4
  "description": "Shared UI components and layouts for the Ansiversa ecosystem",
5
5
  "type": "module",
6
6
  "exports": {
package/src/AvBrand.astro CHANGED
@@ -21,7 +21,13 @@ interface Props {
21
21
 
22
22
  const {
23
23
  href = (() => {
24
- const rawDomain = (import.meta.env.ANSIVERSA_COOKIE_DOMAIN || "ansiversa.com").trim();
24
+ const rawDomain = (
25
+ import.meta.env.PUBLIC_SITE_URL ||
26
+ import.meta.env.PUBLIC_ROOT_APP_URL ||
27
+ import.meta.env.PARENT_APP_URL ||
28
+ import.meta.env.ANSIVERSA_COOKIE_DOMAIN ||
29
+ "ansiversa.com"
30
+ ).trim();
25
31
  const normalizedDomain = rawDomain.replace(/^(https?:\/\/)/i, "").replace(/\/+$/, "");
26
32
  const protocol = rawDomain.match(/^https?:\/\//i)
27
33
  ? undefined
@@ -33,7 +33,13 @@ const classes = ["av-navbar-actions"];
33
33
  if (className) classes.push(className);
34
34
  const classAttr = classes.join(" ");
35
35
 
36
- const rawDomain = (import.meta.env.ANSIVERSA_COOKIE_DOMAIN || "ansiversa.com").trim();
36
+ const rawDomain = (
37
+ import.meta.env.PUBLIC_SITE_URL ||
38
+ import.meta.env.PUBLIC_ROOT_APP_URL ||
39
+ import.meta.env.PARENT_APP_URL ||
40
+ import.meta.env.ANSIVERSA_COOKIE_DOMAIN ||
41
+ "ansiversa.com"
42
+ ).trim();
37
43
  const normalizedDomain = rawDomain.replace(/^(https?:\/\/)/i, "").replace(/\/+$/, "");
38
44
  const protocol = rawDomain.match(/^https?:\/\//i)
39
45
  ? undefined
@@ -1,7 +1,7 @@
1
1
  export type QuizDashboardSummaryV1 = {
2
2
  version: 1;
3
3
  appId: "quiz";
4
- userId: number;
4
+ userId: string;
5
5
  updatedAt: string;
6
6
  kpis: {
7
7
  attemptsTotal: number;
@@ -9,7 +9,13 @@ const {
9
9
  description = "Ansiversa – A unified ecosystem of premium Apps designed to feel simple, powerful, and delightful.",
10
10
  } = Astro.props;
11
11
 
12
- const rawDomain = (import.meta.env.ANSIVERSA_COOKIE_DOMAIN || "ansiversa.com").trim();
12
+ const rawDomain = (
13
+ import.meta.env.PUBLIC_SITE_URL ||
14
+ import.meta.env.PUBLIC_ROOT_APP_URL ||
15
+ import.meta.env.PARENT_APP_URL ||
16
+ import.meta.env.ANSIVERSA_COOKIE_DOMAIN ||
17
+ "ansiversa.com"
18
+ ).trim();
13
19
  const normalizedDomain = rawDomain.replace(/^(https?:\/\/)/i, "").replace(/\/+$/, "");
14
20
  const protocol = rawDomain.match(/^https?:\/\//i)
15
21
  ? undefined
@@ -16,7 +16,13 @@ const {
16
16
 
17
17
  const user = Astro.locals.user;
18
18
 
19
- const rawDomain = (import.meta.env.ANSIVERSA_COOKIE_DOMAIN || "ansiversa.com").trim();
19
+ const rawDomain = (
20
+ import.meta.env.PUBLIC_SITE_URL ||
21
+ import.meta.env.PUBLIC_ROOT_APP_URL ||
22
+ import.meta.env.PARENT_APP_URL ||
23
+ import.meta.env.ANSIVERSA_COOKIE_DOMAIN ||
24
+ "ansiversa.com"
25
+ ).trim();
20
26
  const normalizedDomain = rawDomain.replace(/^(https?:\/\/)/i, "").replace(/\/+$/, "");
21
27
  const protocol = rawDomain.match(/^https?:\/\//i)
22
28
  ? undefined