@ansiversa/components 0.0.118 → 0.0.119
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.
|
|
3
|
+
"version": "0.0.119",
|
|
4
4
|
"description": "Shared UI components and layouts for the Ansiversa ecosystem",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -16,9 +16,14 @@
|
|
|
16
16
|
"keywords": [
|
|
17
17
|
"astro-component"
|
|
18
18
|
],
|
|
19
|
-
"scripts": {
|
|
19
|
+
"scripts": {
|
|
20
|
+
"typecheck": "astro check",
|
|
21
|
+
"build": "astro check"
|
|
22
|
+
},
|
|
20
23
|
"devDependencies": {
|
|
21
|
-
"
|
|
24
|
+
"@astrojs/check": "^0.9.6",
|
|
25
|
+
"astro": "^5.16.3",
|
|
26
|
+
"typescript": "^5.9.3"
|
|
22
27
|
},
|
|
23
28
|
"peerDependencies": {
|
|
24
29
|
"astro": "^4.0.0 || ^5.0.0"
|
package/src/AvAccordion.astro
CHANGED
|
@@ -104,7 +104,6 @@ const scriptContent = `
|
|
|
104
104
|
data-id={item.id}
|
|
105
105
|
data-disabled={item.disabled ? "true" : undefined}
|
|
106
106
|
aria-disabled={item.disabled ? "true" : undefined}
|
|
107
|
-
disabled={item.disabled ? true : undefined}
|
|
108
107
|
>
|
|
109
108
|
<summary
|
|
110
109
|
class="av-accordion__summary"
|
|
@@ -10,6 +10,7 @@ interface Props {
|
|
|
10
10
|
description?: string;
|
|
11
11
|
notificationUnreadCount?: number;
|
|
12
12
|
miniAppKey?: string;
|
|
13
|
+
links?: { label: string; href: string }[];
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
const {
|
|
@@ -17,9 +18,15 @@ const {
|
|
|
17
18
|
description = "Ansiversa – A unified ecosystem of premium Apps designed to feel simple, powerful, and delightful.",
|
|
18
19
|
notificationUnreadCount = 0,
|
|
19
20
|
miniAppKey,
|
|
21
|
+
links,
|
|
20
22
|
} = Astro.props;
|
|
21
23
|
|
|
22
|
-
const user = Astro.locals
|
|
24
|
+
const user = (Astro.locals as { user?: {
|
|
25
|
+
id: string;
|
|
26
|
+
email: string;
|
|
27
|
+
name?: string;
|
|
28
|
+
roleId?: number;
|
|
29
|
+
} }).user;
|
|
23
30
|
|
|
24
31
|
const rawDomain = (
|
|
25
32
|
import.meta.env.PUBLIC_SITE_URL ||
|
|
@@ -80,7 +87,7 @@ const ROOT_URL = rawDomain.match(/^https?:\/\//i)
|
|
|
80
87
|
<AvNavbarActions user={user} notificationUnreadCount={notificationUnreadCount} />
|
|
81
88
|
</AvNavbar>
|
|
82
89
|
|
|
83
|
-
{miniAppKey && <AvMiniAppBar appKey={miniAppKey} />}
|
|
90
|
+
{miniAppKey && <AvMiniAppBar appKey={miniAppKey} links={links} />}
|
|
84
91
|
|
|
85
92
|
<!-- Main content -->
|
|
86
93
|
<main class="av-main">
|