@studiocms/ui 1.1.1 → 1.2.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/components/Footer/footer.css +1 -1
- package/dist/components/Skeleton/skeleton.d.ts +21 -91
- package/dist/css/global.css +0 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.js +16 -2
- package/dist/utils/headers.d.ts +26 -30
- package/dist/utils/headers.js +50 -11
- package/dist/utils/iconifyUtils.d.ts +1 -1
- package/package.json +8 -8
|
@@ -1,97 +1,27 @@
|
|
|
1
1
|
import { z } from 'astro/zod';
|
|
2
|
-
export declare const SkeletonSchema: z.ZodUnion<[z.ZodObject<{
|
|
3
|
-
/**
|
|
4
|
-
* The variant of the skeleton.
|
|
5
|
-
*/
|
|
2
|
+
export declare const SkeletonSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
6
3
|
variant: z.ZodLiteral<"text">;
|
|
7
|
-
/**
|
|
8
|
-
* The class of the skeleton. Defaults to `undefined`.
|
|
9
|
-
*/
|
|
10
4
|
class: z.ZodOptional<z.ZodString>;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
* The animation of the skeleton. Defaults to `slide`.
|
|
17
|
-
*/
|
|
18
|
-
animation: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"none">, z.ZodLiteral<"slide">, z.ZodLiteral<"pulse">]>>;
|
|
19
|
-
/**
|
|
20
|
-
* The width of the skeleton. Defaults to `100%`.
|
|
21
|
-
*/
|
|
22
|
-
width: z.ZodOptional<z.ZodUnion<[z.ZodType<`${number}px`, z.ZodTypeDef, `${number}px`>, z.ZodType<`${number}rem`, z.ZodTypeDef, `${number}rem`>, z.ZodType<`${number}%`, z.ZodTypeDef, `${number}%`>]>>;
|
|
23
|
-
/**
|
|
24
|
-
* The height of the skeleton. Defaults to `100%`.
|
|
25
|
-
*/
|
|
26
|
-
height: z.ZodOptional<z.ZodUnion<[z.ZodType<`${number}px`, z.ZodTypeDef, `${number}px`>, z.ZodType<`${number}rem`, z.ZodTypeDef, `${number}rem`>, z.ZodType<`${number}%`, z.ZodTypeDef, `${number}%`>]>>;
|
|
27
|
-
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
variant: "text";
|
|
29
|
-
width?: `${number}px` | `${number}rem` | `${number}%` | undefined;
|
|
30
|
-
height?: `${number}px` | `${number}rem` | `${number}%` | undefined;
|
|
31
|
-
class?: string | undefined;
|
|
32
|
-
radius?: "sm" | "none" | "md" | "lg" | undefined;
|
|
33
|
-
animation?: "none" | "slide" | "pulse" | undefined;
|
|
34
|
-
}, {
|
|
35
|
-
variant: "text";
|
|
36
|
-
width?: `${number}px` | `${number}rem` | `${number}%` | undefined;
|
|
37
|
-
height?: `${number}px` | `${number}rem` | `${number}%` | undefined;
|
|
38
|
-
class?: string | undefined;
|
|
39
|
-
radius?: "sm" | "none" | "md" | "lg" | undefined;
|
|
40
|
-
animation?: "none" | "slide" | "pulse" | undefined;
|
|
41
|
-
}>, z.ZodObject<{
|
|
5
|
+
radius: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"none">, z.ZodLiteral<"sm">, z.ZodLiteral<"md">, z.ZodLiteral<"lg">]>>;
|
|
6
|
+
animation: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"none">, z.ZodLiteral<"slide">, z.ZodLiteral<"pulse">]>>;
|
|
7
|
+
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<`${number}px`, `${number}px`>, z.ZodCustom<`${number}rem`, `${number}rem`>, z.ZodCustom<`${number}%`, `${number}%`>]>>;
|
|
8
|
+
height: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<`${number}px`, `${number}px`>, z.ZodCustom<`${number}rem`, `${number}rem`>, z.ZodCustom<`${number}%`, `${number}%`>]>>;
|
|
9
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
42
10
|
class: z.ZodOptional<z.ZodString>;
|
|
43
|
-
radius: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"none">, z.ZodLiteral<"sm">, z.ZodLiteral<"md">, z.ZodLiteral<"lg">]>>;
|
|
44
|
-
animation: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"none">, z.ZodLiteral<"slide">, z.ZodLiteral<"pulse">]>>;
|
|
45
|
-
width: z.ZodOptional<z.ZodUnion<[z.
|
|
46
|
-
height: z.ZodOptional<z.ZodUnion<[z.
|
|
47
|
-
} & {
|
|
11
|
+
radius: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"none">, z.ZodLiteral<"sm">, z.ZodLiteral<"md">, z.ZodLiteral<"lg">]>>;
|
|
12
|
+
animation: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"none">, z.ZodLiteral<"slide">, z.ZodLiteral<"pulse">]>>;
|
|
13
|
+
width: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<`${number}px`, `${number}px`>, z.ZodCustom<`${number}rem`, `${number}rem`>, z.ZodCustom<`${number}%`, `${number}%`>]>>;
|
|
14
|
+
height: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<`${number}px`, `${number}px`>, z.ZodCustom<`${number}rem`, `${number}rem`>, z.ZodCustom<`${number}%`, `${number}%`>]>>;
|
|
48
15
|
variant: z.ZodLiteral<"card">;
|
|
49
|
-
direction: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"row">, z.ZodLiteral<"column">]>>;
|
|
50
|
-
hAlign: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"start">, z.ZodLiteral<"center">, z.ZodLiteral<"end">]>>;
|
|
51
|
-
vAlign: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"start">, z.ZodLiteral<"center">, z.ZodLiteral<"end">]>>;
|
|
52
|
-
gap: z.ZodOptional<z.ZodUnion<[z.
|
|
53
|
-
},
|
|
54
|
-
variant: "card";
|
|
55
|
-
width?: `${number}px` | `${number}rem` | `${number}%` | undefined;
|
|
56
|
-
height?: `${number}px` | `${number}rem` | `${number}%` | undefined;
|
|
57
|
-
class?: string | undefined;
|
|
58
|
-
radius?: "sm" | "none" | "md" | "lg" | undefined;
|
|
59
|
-
animation?: "none" | "slide" | "pulse" | undefined;
|
|
60
|
-
direction?: "row" | "column" | undefined;
|
|
61
|
-
hAlign?: "center" | "start" | "end" | undefined;
|
|
62
|
-
vAlign?: "center" | "start" | "end" | undefined;
|
|
63
|
-
gap?: `${number}px` | `${number}rem` | `${number}%` | undefined;
|
|
64
|
-
}, {
|
|
65
|
-
variant: "card";
|
|
66
|
-
width?: `${number}px` | `${number}rem` | `${number}%` | undefined;
|
|
67
|
-
height?: `${number}px` | `${number}rem` | `${number}%` | undefined;
|
|
68
|
-
class?: string | undefined;
|
|
69
|
-
radius?: "sm" | "none" | "md" | "lg" | undefined;
|
|
70
|
-
animation?: "none" | "slide" | "pulse" | undefined;
|
|
71
|
-
direction?: "row" | "column" | undefined;
|
|
72
|
-
hAlign?: "center" | "start" | "end" | undefined;
|
|
73
|
-
vAlign?: "center" | "start" | "end" | undefined;
|
|
74
|
-
gap?: `${number}px` | `${number}rem` | `${number}%` | undefined;
|
|
75
|
-
}>, z.ZodObject<{
|
|
16
|
+
direction: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"row">, z.ZodLiteral<"column">]>>;
|
|
17
|
+
hAlign: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"start">, z.ZodLiteral<"center">, z.ZodLiteral<"end">]>>;
|
|
18
|
+
vAlign: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"start">, z.ZodLiteral<"center">, z.ZodLiteral<"end">]>>;
|
|
19
|
+
gap: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<`${number}px`, `${number}px`>, z.ZodCustom<`${number}rem`, `${number}rem`>, z.ZodCustom<`${number}%`, `${number}%`>]>>;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
76
21
|
class: z.ZodOptional<z.ZodString>;
|
|
77
|
-
radius: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"none">, z.ZodLiteral<"sm">, z.ZodLiteral<"md">, z.ZodLiteral<"lg">]>>;
|
|
78
|
-
animation: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"none">, z.ZodLiteral<"slide">, z.ZodLiteral<"pulse">]>>;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}, "strip", z.ZodTypeAny, {
|
|
84
|
-
width: `${number}px` | `${number}rem` | `${number}%`;
|
|
85
|
-
height: `${number}px` | `${number}rem` | `${number}%`;
|
|
86
|
-
variant: "circle" | "block";
|
|
87
|
-
class?: string | undefined;
|
|
88
|
-
radius?: "sm" | "none" | "md" | "lg" | undefined;
|
|
89
|
-
animation?: "none" | "slide" | "pulse" | undefined;
|
|
90
|
-
}, {
|
|
91
|
-
width: `${number}px` | `${number}rem` | `${number}%`;
|
|
92
|
-
height: `${number}px` | `${number}rem` | `${number}%`;
|
|
93
|
-
variant: "circle" | "block";
|
|
94
|
-
class?: string | undefined;
|
|
95
|
-
radius?: "sm" | "none" | "md" | "lg" | undefined;
|
|
96
|
-
animation?: "none" | "slide" | "pulse" | undefined;
|
|
97
|
-
}>]>;
|
|
22
|
+
radius: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"none">, z.ZodLiteral<"sm">, z.ZodLiteral<"md">, z.ZodLiteral<"lg">]>>;
|
|
23
|
+
animation: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"none">, z.ZodLiteral<"slide">, z.ZodLiteral<"pulse">]>>;
|
|
24
|
+
variant: z.ZodUnion<readonly [z.ZodLiteral<"circle">, z.ZodLiteral<"block">]>;
|
|
25
|
+
width: z.ZodUnion<readonly [z.ZodCustom<`${number}px`, `${number}px`>, z.ZodCustom<`${number}rem`, `${number}rem`>, z.ZodCustom<`${number}%`, `${number}%`>]>;
|
|
26
|
+
height: z.ZodUnion<readonly [z.ZodCustom<`${number}px`, `${number}px`>, z.ZodCustom<`${number}rem`, `${number}rem`>, z.ZodCustom<`${number}%`, `${number}%`>]>;
|
|
27
|
+
}, z.core.$strip>]>;
|
package/dist/css/global.css
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,15 @@ type Options = {
|
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
29
|
noInjectCSS?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Disables the CSS reset. Can be manually included.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* import 'studiocms:ui/reset-css';
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
noInjectResetCSS?: boolean;
|
|
30
39
|
/**
|
|
31
40
|
* Allows the ability to add custom icons to the Icon component.
|
|
32
41
|
*
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,12 @@ function createIconifyCollection(icons) {
|
|
|
10
10
|
const collectionNames = [];
|
|
11
11
|
const availableIcons = [];
|
|
12
12
|
if (!icons) {
|
|
13
|
-
return {
|
|
13
|
+
return {
|
|
14
|
+
collections,
|
|
15
|
+
collectionNames,
|
|
16
|
+
integrationCollections: void 0,
|
|
17
|
+
availableIcons
|
|
18
|
+
};
|
|
14
19
|
}
|
|
15
20
|
for (const [prefix, collection] of Object.entries(icons)) {
|
|
16
21
|
collections[prefix] = collection;
|
|
@@ -20,7 +25,12 @@ function createIconifyCollection(icons) {
|
|
|
20
25
|
}
|
|
21
26
|
}
|
|
22
27
|
const integrationCollections = `export const collections = ${JSON.stringify(collections)};`;
|
|
23
|
-
return {
|
|
28
|
+
return {
|
|
29
|
+
collections,
|
|
30
|
+
collectionNames,
|
|
31
|
+
integrationCollections,
|
|
32
|
+
availableIcons
|
|
33
|
+
};
|
|
24
34
|
}
|
|
25
35
|
function integration(options = {}) {
|
|
26
36
|
const { resolve } = createResolver(import.meta.url);
|
|
@@ -119,6 +129,7 @@ function integration(options = {}) {
|
|
|
119
129
|
"studiocms:ui/version": `export default '${pkgJson.version}';`,
|
|
120
130
|
// Styles
|
|
121
131
|
"studiocms:ui/global-css": `import '${resolve("./css/global.css")}';`,
|
|
132
|
+
"studiocms:ui/reset-css": `import '${resolve("./css/resets.css")}';`,
|
|
122
133
|
"studiocms:ui/prose": `import '${resolve("./css/prose.css")}';`,
|
|
123
134
|
"studiocms:ui/custom-css": `import '${rootResolve(options.customCss ? options.customCss : "")}';`,
|
|
124
135
|
// Scripts
|
|
@@ -149,6 +160,9 @@ function integration(options = {}) {
|
|
|
149
160
|
`
|
|
150
161
|
}
|
|
151
162
|
});
|
|
163
|
+
if (!options.noInjectResetCSS || !options.noInjectCSS) {
|
|
164
|
+
injectScript("page-ssr", `import 'studiocms:ui/reset-css';`);
|
|
165
|
+
}
|
|
152
166
|
if (!options.noInjectCSS) {
|
|
153
167
|
injectScript("page-ssr", `import 'studiocms:ui/global-css';`);
|
|
154
168
|
}
|
package/dist/utils/headers.d.ts
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AstroGlobal } from 'astro';
|
|
2
2
|
import { z } from 'astro/zod';
|
|
3
3
|
export declare const HeadConfigSchema: () => z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
tag: z.ZodEnum<{
|
|
5
|
+
base: "base";
|
|
6
|
+
link: "link";
|
|
7
|
+
meta: "meta";
|
|
8
|
+
noscript: "noscript";
|
|
9
|
+
script: "script";
|
|
10
|
+
style: "style";
|
|
11
|
+
template: "template";
|
|
12
|
+
title: "title";
|
|
13
|
+
}>;
|
|
14
|
+
attrs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodUndefined]>>>;
|
|
9
15
|
content: z.ZodDefault<z.ZodString>;
|
|
10
|
-
},
|
|
11
|
-
tag: "base" | "link" | "meta" | "noscript" | "script" | "style" | "template" | "title";
|
|
12
|
-
attrs: Record<string, string | boolean | undefined>;
|
|
13
|
-
content: string;
|
|
14
|
-
}, {
|
|
15
|
-
tag: "base" | "link" | "meta" | "noscript" | "script" | "style" | "template" | "title";
|
|
16
|
-
attrs?: Record<string, string | boolean | undefined> | undefined;
|
|
17
|
-
content?: string | undefined;
|
|
18
|
-
}>, "many">>;
|
|
16
|
+
}, z.core.$strip>>>;
|
|
19
17
|
/**
|
|
20
18
|
* Default Head Tags for use with createHead() helper
|
|
21
19
|
*
|
|
@@ -28,27 +26,25 @@ export declare const HeadConfigSchema: () => z.ZodDefault<z.ZodArray<z.ZodObject
|
|
|
28
26
|
* @param canonical
|
|
29
27
|
* @returns
|
|
30
28
|
*/
|
|
31
|
-
export declare const headDefaults: (title: string, description: string, Astro:
|
|
29
|
+
export declare const headDefaults: (title: string, description: string, Astro: AstroGlobal, ogImage: string | undefined, canonical: URL | undefined) => {
|
|
32
30
|
tag: "base" | "link" | "meta" | "noscript" | "script" | "style" | "template" | "title";
|
|
33
31
|
attrs?: Record<string, string | boolean | undefined> | undefined;
|
|
34
32
|
content?: string | undefined;
|
|
35
33
|
}[];
|
|
36
34
|
export declare const HeadSchema: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
tag: z.ZodEnum<{
|
|
36
|
+
base: "base";
|
|
37
|
+
link: "link";
|
|
38
|
+
meta: "meta";
|
|
39
|
+
noscript: "noscript";
|
|
40
|
+
script: "script";
|
|
41
|
+
style: "style";
|
|
42
|
+
template: "template";
|
|
43
|
+
title: "title";
|
|
44
|
+
}>;
|
|
45
|
+
attrs: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodUndefined]>>>;
|
|
42
46
|
content: z.ZodDefault<z.ZodString>;
|
|
43
|
-
},
|
|
44
|
-
tag: "base" | "link" | "meta" | "noscript" | "script" | "style" | "template" | "title";
|
|
45
|
-
attrs: Record<string, string | boolean | undefined>;
|
|
46
|
-
content: string;
|
|
47
|
-
}, {
|
|
48
|
-
tag: "base" | "link" | "meta" | "noscript" | "script" | "style" | "template" | "title";
|
|
49
|
-
attrs?: Record<string, string | boolean | undefined> | undefined;
|
|
50
|
-
content?: string | undefined;
|
|
51
|
-
}>, "many">>;
|
|
47
|
+
}, z.core.$strip>>>;
|
|
52
48
|
export type HeadUserConfig = z.input<ReturnType<typeof HeadConfigSchema>>;
|
|
53
49
|
export type HeadConfig = z.output<ReturnType<typeof HeadConfigSchema>>;
|
|
54
50
|
/**
|
package/dist/utils/headers.js
CHANGED
|
@@ -4,7 +4,7 @@ const HeadConfigSchema = () => z.array(
|
|
|
4
4
|
/** Name of the HTML tag to add to `<head>`, e.g. `'meta'`, `'link'`, or `'script'`. */
|
|
5
5
|
tag: z.enum(["title", "base", "link", "style", "meta", "script", "noscript", "template"]),
|
|
6
6
|
/** Attributes to set on the tag, e.g. `{ rel: 'stylesheet', href: '/custom.css' }`. */
|
|
7
|
-
attrs: z.record(z.union([z.string(), z.boolean(), z.undefined()])).default({}),
|
|
7
|
+
attrs: z.record(z.string(), z.union([z.string(), z.boolean(), z.undefined()])).default({}),
|
|
8
8
|
/** Content to place inside the tag (optional). */
|
|
9
9
|
content: z.string().default("")
|
|
10
10
|
})
|
|
@@ -14,7 +14,10 @@ const headDefaults = (title, description, Astro, ogImage, canonical) => {
|
|
|
14
14
|
{ tag: "meta", attrs: { charset: "utf-8" } },
|
|
15
15
|
{
|
|
16
16
|
tag: "meta",
|
|
17
|
-
attrs: {
|
|
17
|
+
attrs: {
|
|
18
|
+
name: "viewport",
|
|
19
|
+
content: "width=device-width, initial-scale=1"
|
|
20
|
+
}
|
|
18
21
|
},
|
|
19
22
|
{ tag: "title", content: `${title}` },
|
|
20
23
|
{ tag: "meta", attrs: { name: "title", content: title } },
|
|
@@ -24,28 +27,61 @@ const headDefaults = (title, description, Astro, ogImage, canonical) => {
|
|
|
24
27
|
// Favicon
|
|
25
28
|
{
|
|
26
29
|
tag: "link",
|
|
27
|
-
attrs: {
|
|
30
|
+
attrs: {
|
|
31
|
+
rel: "apple-touch-icon",
|
|
32
|
+
href: "/apple-touch-icon.png",
|
|
33
|
+
sizes: "180x180"
|
|
34
|
+
}
|
|
28
35
|
},
|
|
29
36
|
{
|
|
30
37
|
tag: "link",
|
|
31
|
-
attrs: {
|
|
38
|
+
attrs: {
|
|
39
|
+
rel: "icon",
|
|
40
|
+
href: "/favicon-32x32.png",
|
|
41
|
+
type: "image/png",
|
|
42
|
+
sizes: "32x32"
|
|
43
|
+
}
|
|
32
44
|
},
|
|
33
45
|
{
|
|
34
46
|
tag: "link",
|
|
35
|
-
attrs: {
|
|
47
|
+
attrs: {
|
|
48
|
+
rel: "icon",
|
|
49
|
+
href: "/favicon-16x16.png",
|
|
50
|
+
type: "image/png",
|
|
51
|
+
sizes: "16x16"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
tag: "link",
|
|
56
|
+
attrs: { rel: "icon", href: "/favicon.png", type: "image/png" }
|
|
36
57
|
},
|
|
37
|
-
{ tag: "link", attrs: { rel: "icon", href: "/favicon.png", type: "image/png" } },
|
|
38
58
|
{ tag: "link", attrs: { rel: "manifest", href: "/site.webmanifest" } },
|
|
39
|
-
{
|
|
59
|
+
{
|
|
60
|
+
tag: "link",
|
|
61
|
+
attrs: {
|
|
62
|
+
rel: "mask-icon",
|
|
63
|
+
href: "/safari-pinned-tab.svg",
|
|
64
|
+
color: "#5bbad5"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
40
67
|
{ tag: "link", attrs: { rel: "shortcut icon", href: "/favicon.ico" } },
|
|
41
|
-
{
|
|
42
|
-
|
|
68
|
+
{
|
|
69
|
+
tag: "meta",
|
|
70
|
+
attrs: { name: "msapplication-TileColor", content: "#da532c" }
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
tag: "meta",
|
|
74
|
+
attrs: { name: "msapplication-config", content: "/browserconfig.xml" }
|
|
75
|
+
},
|
|
43
76
|
{ tag: "meta", attrs: { name: "theme-color", content: "#aa87f4" } },
|
|
44
77
|
// OpenGraph Tags
|
|
45
78
|
{ tag: "meta", attrs: { property: "og:title", content: title } },
|
|
46
79
|
{ tag: "meta", attrs: { property: "og:type", content: "website" } },
|
|
47
80
|
{ tag: "meta", attrs: { property: "og:url", content: canonical?.href } },
|
|
48
|
-
{
|
|
81
|
+
{
|
|
82
|
+
tag: "meta",
|
|
83
|
+
attrs: { property: "og:description", content: description }
|
|
84
|
+
},
|
|
49
85
|
{ tag: "meta", attrs: { property: "og:site_name", content: title } },
|
|
50
86
|
// Twitter Tags
|
|
51
87
|
{
|
|
@@ -54,7 +90,10 @@ const headDefaults = (title, description, Astro, ogImage, canonical) => {
|
|
|
54
90
|
},
|
|
55
91
|
{ tag: "meta", attrs: { name: "twitter:url", content: canonical?.href } },
|
|
56
92
|
{ tag: "meta", attrs: { name: "twitter:title", content: title } },
|
|
57
|
-
{
|
|
93
|
+
{
|
|
94
|
+
tag: "meta",
|
|
95
|
+
attrs: { name: "twitter:description", content: description }
|
|
96
|
+
}
|
|
58
97
|
];
|
|
59
98
|
if (ogImage) {
|
|
60
99
|
headDefaults2.push(
|
|
@@ -115,7 +115,7 @@ export interface IconifyIconBuildResult {
|
|
|
115
115
|
/**
|
|
116
116
|
* Check if value should be unset. Allows multiple keywords
|
|
117
117
|
*/
|
|
118
|
-
export declare const isUnsetKeyword: (value: unknown) => value is "
|
|
118
|
+
export declare const isUnsetKeyword: (value: unknown) => value is "undefined" | "none" | "unset";
|
|
119
119
|
/**
|
|
120
120
|
* Replace IDs in SVG output with unique IDs
|
|
121
121
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@studiocms/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "The UI library for StudioCMS. Includes the layouts & components we use to build StudioCMS.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -59,17 +59,17 @@
|
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@iconify-json/heroicons": "^1.2.1",
|
|
61
61
|
"@iconify/types": "^2.0.0",
|
|
62
|
-
"astro-transition-event-polyfill": "^1.1
|
|
63
|
-
"astro-integration-kit": "^0.
|
|
62
|
+
"astro-transition-event-polyfill": "^1.2.1",
|
|
63
|
+
"astro-integration-kit": "^0.20.0"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"astro": "^4.5 || ^5.0.0-beta.0",
|
|
67
|
-
"vite": "^5.0.0 || ^6.0.0"
|
|
66
|
+
"astro": "^4.5 || ^5.0.0-beta.0 || ^6.0.0-beta.20",
|
|
67
|
+
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"astro": "^
|
|
71
|
-
"typescript": "^5.
|
|
72
|
-
"@types/node": "^24.
|
|
70
|
+
"astro": "^6.0.0",
|
|
71
|
+
"typescript": "^5.9.3",
|
|
72
|
+
"@types/node": "^24.12.0"
|
|
73
73
|
},
|
|
74
74
|
"scripts": {
|
|
75
75
|
"delete:dist": "node -e \"import { rmSync } from 'fs'; rmSync('./dist', { recursive: true, force: true });\"",
|