astro 5.16.13 → 5.16.15
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/components/Font.astro +4 -4
- package/dist/assets/fonts/config.d.ts +19 -236
- package/dist/assets/fonts/config.js +7 -23
- package/dist/assets/fonts/constants.d.ts +0 -1
- package/dist/assets/fonts/constants.js +0 -2
- package/dist/assets/fonts/core/collect-component-data.d.ts +9 -0
- package/dist/assets/fonts/core/collect-component-data.js +47 -0
- package/dist/assets/fonts/core/collect-font-assets-from-faces.d.ts +17 -0
- package/dist/assets/fonts/core/collect-font-assets-from-faces.js +71 -0
- package/dist/assets/fonts/core/collect-font-data.d.ts +4 -0
- package/dist/assets/fonts/core/collect-font-data.js +23 -0
- package/dist/assets/fonts/core/compute-font-families-assets.d.ts +20 -0
- package/dist/assets/fonts/core/compute-font-families-assets.js +67 -0
- package/dist/assets/fonts/core/filter-and-transform-font-faces.d.ts +20 -0
- package/dist/assets/fonts/core/filter-and-transform-font-faces.js +39 -0
- package/dist/assets/fonts/core/get-or-create-font-family-assets.d.ts +8 -0
- package/dist/assets/fonts/core/get-or-create-font-family-assets.js +34 -0
- package/dist/assets/fonts/core/optimize-fallbacks.d.ts +2 -3
- package/dist/assets/fonts/core/optimize-fallbacks.js +2 -3
- package/dist/assets/fonts/core/resolve-family.d.ts +6 -0
- package/dist/assets/fonts/core/resolve-family.js +23 -0
- package/dist/assets/fonts/definitions.d.ts +6 -28
- package/dist/assets/fonts/infra/build-font-file-id-generator.d.ts +13 -0
- package/dist/assets/fonts/infra/{build-url-proxy-hash-resolver.js → build-font-file-id-generator.js} +3 -6
- package/dist/assets/fonts/infra/build-url-resolver.d.ts +1 -1
- package/dist/assets/fonts/infra/build-url-resolver.js +4 -4
- package/dist/assets/fonts/infra/cached-font-fetcher.d.ts +1 -1
- package/dist/assets/fonts/infra/cached-font-fetcher.js +11 -3
- package/dist/assets/fonts/infra/capsize-font-metrics-resolver.d.ts +2 -2
- package/dist/assets/fonts/infra/dev-font-file-id-generator.d.ts +16 -0
- package/dist/assets/fonts/infra/{dev-url-proxy-hash-resolver.js → dev-font-file-id-generator.js} +8 -8
- package/dist/assets/fonts/infra/dev-url-resolver.d.ts +1 -1
- package/dist/assets/fonts/infra/dev-url-resolver.js +2 -2
- package/dist/assets/fonts/infra/fs-font-file-content-resolver.d.ts +10 -0
- package/dist/assets/fonts/infra/fs-font-file-content-resolver.js +21 -0
- package/dist/assets/fonts/infra/minifiable-css-renderer.d.ts +2 -1
- package/dist/assets/fonts/infra/{font-type-extractor.d.ts → node-font-type-extractor.d.ts} +1 -1
- package/dist/assets/fonts/infra/{font-type-extractor.js → node-font-type-extractor.js} +2 -2
- package/dist/assets/fonts/infra/unifont-font-resolver.d.ts +5 -3
- package/dist/assets/fonts/infra/unifont-font-resolver.js +14 -17
- package/dist/assets/fonts/providers/index.d.ts +6 -1
- package/dist/assets/fonts/providers/index.js +9 -1
- package/dist/assets/fonts/providers/local.d.ts +41 -8
- package/dist/assets/fonts/providers/local.js +65 -48
- package/dist/assets/fonts/runtime/client.d.ts +1 -1
- package/dist/assets/fonts/runtime/client.js +1 -1
- package/dist/assets/fonts/runtime/server.d.ts +1 -1
- package/dist/assets/fonts/runtime/server.js +1 -1
- package/dist/assets/fonts/types.d.ts +61 -110
- package/dist/assets/fonts/utils.d.ts +1 -7
- package/dist/assets/fonts/utils.js +1 -15
- package/dist/assets/fonts/vite-plugin-fonts.js +149 -141
- package/dist/cli/add/index.js +39 -0
- package/dist/cli/infra/build-time-astro-version-provider.js +1 -1
- package/dist/config/index.d.ts +1 -2
- package/dist/content/content-layer.js +3 -3
- package/dist/core/config/schemas/base.d.ts +58 -429
- package/dist/core/config/schemas/base.js +2 -2
- package/dist/core/config/schemas/relative.d.ts +76 -541
- package/dist/core/constants.js +1 -1
- package/dist/core/dev/dev.js +1 -1
- package/dist/core/errors/errors-data.d.ts +1 -1
- package/dist/core/errors/errors-data.js +1 -1
- package/dist/core/messages.js +2 -2
- package/dist/types/public/config.d.ts +3 -4
- package/package.json +5 -5
- package/dist/assets/fonts/core/normalize-remote-font-faces.d.ts +0 -7
- package/dist/assets/fonts/core/normalize-remote-font-faces.js +0 -41
- package/dist/assets/fonts/core/resolve-families.d.ts +0 -16
- package/dist/assets/fonts/core/resolve-families.js +0 -63
- package/dist/assets/fonts/infra/build-url-proxy-hash-resolver.d.ts +0 -15
- package/dist/assets/fonts/infra/data-collector.d.ts +0 -10
- package/dist/assets/fonts/infra/data-collector.js +0 -35
- package/dist/assets/fonts/infra/dev-url-proxy-hash-resolver.d.ts +0 -15
- package/dist/assets/fonts/infra/local-url-proxy-content-resolver.d.ts +0 -4
- package/dist/assets/fonts/infra/local-url-proxy-content-resolver.js +0 -14
- package/dist/assets/fonts/infra/remote-url-proxy-content-resolver.d.ts +0 -4
- package/dist/assets/fonts/infra/remote-url-proxy-content-resolver.js +0 -9
- package/dist/assets/fonts/infra/require-local-provider-url-resolver.d.ts +0 -9
- package/dist/assets/fonts/infra/require-local-provider-url-resolver.js +0 -30
- package/dist/assets/fonts/infra/url-proxy.d.ts +0 -16
- package/dist/assets/fonts/infra/url-proxy.js +0 -50
- package/dist/assets/fonts/orchestrate.d.ts +0 -42
- package/dist/assets/fonts/orchestrate.js +0 -173
|
@@ -698,29 +698,29 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
698
698
|
sameSite: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["strict", "lax", "none"]>, z.ZodBoolean]>>;
|
|
699
699
|
secure: z.ZodOptional<z.ZodBoolean>;
|
|
700
700
|
}, "strip", z.ZodTypeAny, {
|
|
701
|
-
path?: string | undefined;
|
|
702
701
|
name?: string | undefined;
|
|
702
|
+
path?: string | undefined;
|
|
703
703
|
domain?: string | undefined;
|
|
704
704
|
maxAge?: number | undefined;
|
|
705
705
|
sameSite?: boolean | "strict" | "none" | "lax" | undefined;
|
|
706
706
|
secure?: boolean | undefined;
|
|
707
707
|
}, {
|
|
708
|
-
path?: string | undefined;
|
|
709
708
|
name?: string | undefined;
|
|
709
|
+
path?: string | undefined;
|
|
710
710
|
domain?: string | undefined;
|
|
711
711
|
maxAge?: number | undefined;
|
|
712
712
|
sameSite?: boolean | "strict" | "none" | "lax" | undefined;
|
|
713
713
|
secure?: boolean | undefined;
|
|
714
714
|
}>, z.ZodString]>, {
|
|
715
|
-
path?: string | undefined;
|
|
716
715
|
name?: string | undefined;
|
|
716
|
+
path?: string | undefined;
|
|
717
717
|
domain?: string | undefined;
|
|
718
718
|
maxAge?: number | undefined;
|
|
719
719
|
sameSite?: boolean | "strict" | "none" | "lax" | undefined;
|
|
720
720
|
secure?: boolean | undefined;
|
|
721
721
|
}, string | {
|
|
722
|
-
path?: string | undefined;
|
|
723
722
|
name?: string | undefined;
|
|
723
|
+
path?: string | undefined;
|
|
724
724
|
domain?: string | undefined;
|
|
725
725
|
maxAge?: number | undefined;
|
|
726
726
|
sameSite?: boolean | "strict" | "none" | "lax" | undefined;
|
|
@@ -731,8 +731,8 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
731
731
|
options?: Record<string, any> | undefined;
|
|
732
732
|
driver?: string | undefined;
|
|
733
733
|
cookie?: {
|
|
734
|
-
path?: string | undefined;
|
|
735
734
|
name?: string | undefined;
|
|
735
|
+
path?: string | undefined;
|
|
736
736
|
domain?: string | undefined;
|
|
737
737
|
maxAge?: number | undefined;
|
|
738
738
|
sameSite?: boolean | "strict" | "none" | "lax" | undefined;
|
|
@@ -743,8 +743,8 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
743
743
|
options?: Record<string, any> | undefined;
|
|
744
744
|
driver?: string | undefined;
|
|
745
745
|
cookie?: string | {
|
|
746
|
-
path?: string | undefined;
|
|
747
746
|
name?: string | undefined;
|
|
747
|
+
path?: string | undefined;
|
|
748
748
|
domain?: string | undefined;
|
|
749
749
|
maxAge?: number | undefined;
|
|
750
750
|
sameSite?: boolean | "strict" | "none" | "lax" | undefined;
|
|
@@ -757,171 +757,8 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
757
757
|
contentIntellisense: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
758
758
|
headingIdCompat: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
759
759
|
preserveScriptOrder: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
760
|
-
fonts: z.ZodOptional<z.ZodArray<z.
|
|
761
|
-
provider: z.
|
|
762
|
-
variants: z.ZodArray<z.ZodObject<{
|
|
763
|
-
src: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<URL, z.ZodTypeDef, URL>]>, z.ZodObject<{
|
|
764
|
-
url: z.ZodUnion<[z.ZodString, z.ZodType<URL, z.ZodTypeDef, URL>]>;
|
|
765
|
-
tech: z.ZodOptional<z.ZodString>;
|
|
766
|
-
}, "strict", z.ZodTypeAny, {
|
|
767
|
-
url: string | URL;
|
|
768
|
-
tech?: string | undefined;
|
|
769
|
-
}, {
|
|
770
|
-
url: string | URL;
|
|
771
|
-
tech?: string | undefined;
|
|
772
|
-
}>]>, "atleastone">;
|
|
773
|
-
weight: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
774
|
-
style: z.ZodOptional<z.ZodEnum<["normal", "italic", "oblique"]>>;
|
|
775
|
-
display: z.ZodOptional<z.ZodEnum<["auto", "block", "swap", "fallback", "optional"]>>;
|
|
776
|
-
stretch: z.ZodOptional<z.ZodString>;
|
|
777
|
-
featureSettings: z.ZodOptional<z.ZodString>;
|
|
778
|
-
variationSettings: z.ZodOptional<z.ZodString>;
|
|
779
|
-
unicodeRange: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
|
|
780
|
-
}, "strict", z.ZodTypeAny, {
|
|
781
|
-
src: [string | URL | {
|
|
782
|
-
url: string | URL;
|
|
783
|
-
tech?: string | undefined;
|
|
784
|
-
}, ...(string | URL | {
|
|
785
|
-
url: string | URL;
|
|
786
|
-
tech?: string | undefined;
|
|
787
|
-
})[]];
|
|
788
|
-
weight?: string | number | undefined;
|
|
789
|
-
style?: "normal" | "italic" | "oblique" | undefined;
|
|
790
|
-
display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
|
|
791
|
-
stretch?: string | undefined;
|
|
792
|
-
featureSettings?: string | undefined;
|
|
793
|
-
variationSettings?: string | undefined;
|
|
794
|
-
unicodeRange?: [string, ...string[]] | undefined;
|
|
795
|
-
}, {
|
|
796
|
-
src: [string | URL | {
|
|
797
|
-
url: string | URL;
|
|
798
|
-
tech?: string | undefined;
|
|
799
|
-
}, ...(string | URL | {
|
|
800
|
-
url: string | URL;
|
|
801
|
-
tech?: string | undefined;
|
|
802
|
-
})[]];
|
|
803
|
-
weight?: string | number | undefined;
|
|
804
|
-
style?: "normal" | "italic" | "oblique" | undefined;
|
|
805
|
-
display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
|
|
806
|
-
stretch?: string | undefined;
|
|
807
|
-
featureSettings?: string | undefined;
|
|
808
|
-
variationSettings?: string | undefined;
|
|
809
|
-
unicodeRange?: [string, ...string[]] | undefined;
|
|
810
|
-
}>, "atleastone">;
|
|
811
|
-
fallbacks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
812
|
-
optimizedFallbacks: z.ZodOptional<z.ZodBoolean>;
|
|
813
|
-
name: z.ZodString;
|
|
814
|
-
cssVariable: z.ZodString;
|
|
815
|
-
}, "strict", z.ZodTypeAny, {
|
|
816
|
-
name: string;
|
|
817
|
-
cssVariable: string;
|
|
818
|
-
provider: "local";
|
|
819
|
-
variants: [{
|
|
820
|
-
src: [string | URL | {
|
|
821
|
-
url: string | URL;
|
|
822
|
-
tech?: string | undefined;
|
|
823
|
-
}, ...(string | URL | {
|
|
824
|
-
url: string | URL;
|
|
825
|
-
tech?: string | undefined;
|
|
826
|
-
})[]];
|
|
827
|
-
weight?: string | number | undefined;
|
|
828
|
-
style?: "normal" | "italic" | "oblique" | undefined;
|
|
829
|
-
display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
|
|
830
|
-
stretch?: string | undefined;
|
|
831
|
-
featureSettings?: string | undefined;
|
|
832
|
-
variationSettings?: string | undefined;
|
|
833
|
-
unicodeRange?: [string, ...string[]] | undefined;
|
|
834
|
-
}, ...{
|
|
835
|
-
src: [string | URL | {
|
|
836
|
-
url: string | URL;
|
|
837
|
-
tech?: string | undefined;
|
|
838
|
-
}, ...(string | URL | {
|
|
839
|
-
url: string | URL;
|
|
840
|
-
tech?: string | undefined;
|
|
841
|
-
})[]];
|
|
842
|
-
weight?: string | number | undefined;
|
|
843
|
-
style?: "normal" | "italic" | "oblique" | undefined;
|
|
844
|
-
display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
|
|
845
|
-
stretch?: string | undefined;
|
|
846
|
-
featureSettings?: string | undefined;
|
|
847
|
-
variationSettings?: string | undefined;
|
|
848
|
-
unicodeRange?: [string, ...string[]] | undefined;
|
|
849
|
-
}[]];
|
|
850
|
-
fallbacks?: string[] | undefined;
|
|
851
|
-
optimizedFallbacks?: boolean | undefined;
|
|
852
|
-
}, {
|
|
853
|
-
name: string;
|
|
854
|
-
cssVariable: string;
|
|
855
|
-
provider: "local";
|
|
856
|
-
variants: [{
|
|
857
|
-
src: [string | URL | {
|
|
858
|
-
url: string | URL;
|
|
859
|
-
tech?: string | undefined;
|
|
860
|
-
}, ...(string | URL | {
|
|
861
|
-
url: string | URL;
|
|
862
|
-
tech?: string | undefined;
|
|
863
|
-
})[]];
|
|
864
|
-
weight?: string | number | undefined;
|
|
865
|
-
style?: "normal" | "italic" | "oblique" | undefined;
|
|
866
|
-
display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
|
|
867
|
-
stretch?: string | undefined;
|
|
868
|
-
featureSettings?: string | undefined;
|
|
869
|
-
variationSettings?: string | undefined;
|
|
870
|
-
unicodeRange?: [string, ...string[]] | undefined;
|
|
871
|
-
}, ...{
|
|
872
|
-
src: [string | URL | {
|
|
873
|
-
url: string | URL;
|
|
874
|
-
tech?: string | undefined;
|
|
875
|
-
}, ...(string | URL | {
|
|
876
|
-
url: string | URL;
|
|
877
|
-
tech?: string | undefined;
|
|
878
|
-
})[]];
|
|
879
|
-
weight?: string | number | undefined;
|
|
880
|
-
style?: "normal" | "italic" | "oblique" | undefined;
|
|
881
|
-
display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
|
|
882
|
-
stretch?: string | undefined;
|
|
883
|
-
featureSettings?: string | undefined;
|
|
884
|
-
variationSettings?: string | undefined;
|
|
885
|
-
unicodeRange?: [string, ...string[]] | undefined;
|
|
886
|
-
}[]];
|
|
887
|
-
fallbacks?: string[] | undefined;
|
|
888
|
-
optimizedFallbacks?: boolean | undefined;
|
|
889
|
-
}>, z.ZodObject<{
|
|
890
|
-
provider: z.ZodObject<{
|
|
891
|
-
name: z.ZodString;
|
|
892
|
-
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
893
|
-
init: z.ZodOptional<z.ZodType<((context: import("../../../assets/fonts/types.js").FontProviderInitContext) => void | Promise<void>) | undefined, z.ZodTypeDef, ((context: import("../../../assets/fonts/types.js").FontProviderInitContext) => void | Promise<void>) | undefined>>;
|
|
894
|
-
resolveFont: z.ZodType<(options: import("../../../assets/fonts/types.js").ResolveFontOptions<never>) => {
|
|
895
|
-
fonts: Array<import("unifont").FontFaceData>;
|
|
896
|
-
} | Promise<{
|
|
897
|
-
fonts: Array<import("unifont").FontFaceData>;
|
|
898
|
-
} | undefined> | undefined, z.ZodTypeDef, (options: import("../../../assets/fonts/types.js").ResolveFontOptions<never>) => {
|
|
899
|
-
fonts: Array<import("unifont").FontFaceData>;
|
|
900
|
-
} | Promise<{
|
|
901
|
-
fonts: Array<import("unifont").FontFaceData>;
|
|
902
|
-
} | undefined> | undefined>;
|
|
903
|
-
listFonts: z.ZodOptional<z.ZodType<(() => string[] | Promise<string[] | undefined> | undefined) | undefined, z.ZodTypeDef, (() => string[] | Promise<string[] | undefined> | undefined) | undefined>>;
|
|
904
|
-
}, "strict", z.ZodTypeAny, {
|
|
905
|
-
name: string;
|
|
906
|
-
resolveFont: (options: import("../../../assets/fonts/types.js").ResolveFontOptions<never>) => {
|
|
907
|
-
fonts: Array<import("unifont").FontFaceData>;
|
|
908
|
-
} | Promise<{
|
|
909
|
-
fonts: Array<import("unifont").FontFaceData>;
|
|
910
|
-
} | undefined> | undefined;
|
|
911
|
-
config?: Record<string, any> | undefined;
|
|
912
|
-
init?: ((context: import("../../../assets/fonts/types.js").FontProviderInitContext) => void | Promise<void>) | undefined;
|
|
913
|
-
listFonts?: (() => string[] | Promise<string[] | undefined> | undefined) | undefined;
|
|
914
|
-
}, {
|
|
915
|
-
name: string;
|
|
916
|
-
resolveFont: (options: import("../../../assets/fonts/types.js").ResolveFontOptions<never>) => {
|
|
917
|
-
fonts: Array<import("unifont").FontFaceData>;
|
|
918
|
-
} | Promise<{
|
|
919
|
-
fonts: Array<import("unifont").FontFaceData>;
|
|
920
|
-
} | undefined> | undefined;
|
|
921
|
-
config?: Record<string, any> | undefined;
|
|
922
|
-
init?: ((context: import("../../../assets/fonts/types.js").FontProviderInitContext) => void | Promise<void>) | undefined;
|
|
923
|
-
listFonts?: (() => string[] | Promise<string[] | undefined> | undefined) | undefined;
|
|
924
|
-
}>;
|
|
760
|
+
fonts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
761
|
+
provider: z.ZodType<import("../../../assets/fonts/types.js").FontProvider<never>, z.ZodTypeDef, import("../../../assets/fonts/types.js").FontProvider<never>>;
|
|
925
762
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
926
763
|
weights: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "atleastone">>;
|
|
927
764
|
styles: z.ZodOptional<z.ZodArray<z.ZodEnum<["normal", "italic", "oblique"]>, "atleastone">>;
|
|
@@ -939,56 +776,36 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
939
776
|
}, "strict", z.ZodTypeAny, {
|
|
940
777
|
name: string;
|
|
941
778
|
cssVariable: string;
|
|
942
|
-
provider:
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
config?: Record<string, any> | undefined;
|
|
950
|
-
init?: ((context: import("../../../assets/fonts/types.js").FontProviderInitContext) => void | Promise<void>) | undefined;
|
|
951
|
-
listFonts?: (() => string[] | Promise<string[] | undefined> | undefined) | undefined;
|
|
952
|
-
};
|
|
953
|
-
options?: Record<string, any> | undefined;
|
|
779
|
+
provider: import("../../../assets/fonts/types.js").FontProvider<never>;
|
|
780
|
+
weights?: [string | number, ...(string | number)[]] | undefined;
|
|
781
|
+
styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
|
|
782
|
+
subsets?: [string, ...string[]] | undefined;
|
|
783
|
+
fallbacks?: string[] | undefined;
|
|
784
|
+
optimizedFallbacks?: boolean | undefined;
|
|
785
|
+
formats?: ["woff2" | "woff" | "otf" | "ttf" | "eot", ...("woff2" | "woff" | "otf" | "ttf" | "eot")[]] | undefined;
|
|
954
786
|
display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
|
|
955
787
|
stretch?: string | undefined;
|
|
956
788
|
featureSettings?: string | undefined;
|
|
957
789
|
variationSettings?: string | undefined;
|
|
958
790
|
unicodeRange?: [string, ...string[]] | undefined;
|
|
959
|
-
|
|
960
|
-
|
|
791
|
+
options?: Record<string, any> | undefined;
|
|
792
|
+
}, {
|
|
793
|
+
name: string;
|
|
794
|
+
cssVariable: string;
|
|
795
|
+
provider: import("../../../assets/fonts/types.js").FontProvider<never>;
|
|
961
796
|
weights?: [string | number, ...(string | number)[]] | undefined;
|
|
962
797
|
styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
|
|
963
798
|
subsets?: [string, ...string[]] | undefined;
|
|
799
|
+
fallbacks?: string[] | undefined;
|
|
800
|
+
optimizedFallbacks?: boolean | undefined;
|
|
964
801
|
formats?: ["woff2" | "woff" | "otf" | "ttf" | "eot", ...("woff2" | "woff" | "otf" | "ttf" | "eot")[]] | undefined;
|
|
965
|
-
}, {
|
|
966
|
-
name: string;
|
|
967
|
-
cssVariable: string;
|
|
968
|
-
provider: {
|
|
969
|
-
name: string;
|
|
970
|
-
resolveFont: (options: import("../../../assets/fonts/types.js").ResolveFontOptions<never>) => {
|
|
971
|
-
fonts: Array<import("unifont").FontFaceData>;
|
|
972
|
-
} | Promise<{
|
|
973
|
-
fonts: Array<import("unifont").FontFaceData>;
|
|
974
|
-
} | undefined> | undefined;
|
|
975
|
-
config?: Record<string, any> | undefined;
|
|
976
|
-
init?: ((context: import("../../../assets/fonts/types.js").FontProviderInitContext) => void | Promise<void>) | undefined;
|
|
977
|
-
listFonts?: (() => string[] | Promise<string[] | undefined> | undefined) | undefined;
|
|
978
|
-
};
|
|
979
|
-
options?: Record<string, any> | undefined;
|
|
980
802
|
display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
|
|
981
803
|
stretch?: string | undefined;
|
|
982
804
|
featureSettings?: string | undefined;
|
|
983
805
|
variationSettings?: string | undefined;
|
|
984
806
|
unicodeRange?: [string, ...string[]] | undefined;
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
weights?: [string | number, ...(string | number)[]] | undefined;
|
|
988
|
-
styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
|
|
989
|
-
subsets?: [string, ...string[]] | undefined;
|
|
990
|
-
formats?: ["woff2" | "woff" | "otf" | "ttf" | "eot", ...("woff2" | "woff" | "otf" | "ttf" | "eot")[]] | undefined;
|
|
991
|
-
}>]>, "many">>;
|
|
807
|
+
options?: Record<string, any> | undefined;
|
|
808
|
+
}>, "many">>;
|
|
992
809
|
liveContentCollections: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
993
810
|
csp: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodBoolean>>, z.ZodObject<{
|
|
994
811
|
algorithm: z.ZodDefault<z.ZodOptional<z.ZodEnum<["SHA-256", "SHA-384", "SHA-512"]>>>;
|
|
@@ -1068,135 +885,41 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
1068
885
|
chromeDevtoolsWorkspace: boolean;
|
|
1069
886
|
failOnPrerenderConflict: boolean;
|
|
1070
887
|
svgo: boolean | SvgoConfig;
|
|
1071
|
-
fonts?:
|
|
888
|
+
fonts?: {
|
|
1072
889
|
name: string;
|
|
1073
890
|
cssVariable: string;
|
|
1074
|
-
provider: "
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
tech?: string | undefined;
|
|
1079
|
-
}, ...(string | URL | {
|
|
1080
|
-
url: string | URL;
|
|
1081
|
-
tech?: string | undefined;
|
|
1082
|
-
})[]];
|
|
1083
|
-
weight?: string | number | undefined;
|
|
1084
|
-
style?: "normal" | "italic" | "oblique" | undefined;
|
|
1085
|
-
display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
|
|
1086
|
-
stretch?: string | undefined;
|
|
1087
|
-
featureSettings?: string | undefined;
|
|
1088
|
-
variationSettings?: string | undefined;
|
|
1089
|
-
unicodeRange?: [string, ...string[]] | undefined;
|
|
1090
|
-
}, ...{
|
|
1091
|
-
src: [string | URL | {
|
|
1092
|
-
url: string | URL;
|
|
1093
|
-
tech?: string | undefined;
|
|
1094
|
-
}, ...(string | URL | {
|
|
1095
|
-
url: string | URL;
|
|
1096
|
-
tech?: string | undefined;
|
|
1097
|
-
})[]];
|
|
1098
|
-
weight?: string | number | undefined;
|
|
1099
|
-
style?: "normal" | "italic" | "oblique" | undefined;
|
|
1100
|
-
display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
|
|
1101
|
-
stretch?: string | undefined;
|
|
1102
|
-
featureSettings?: string | undefined;
|
|
1103
|
-
variationSettings?: string | undefined;
|
|
1104
|
-
unicodeRange?: [string, ...string[]] | undefined;
|
|
1105
|
-
}[]];
|
|
891
|
+
provider: import("../../../assets/fonts/types.js").FontProvider<never>;
|
|
892
|
+
weights?: [string | number, ...(string | number)[]] | undefined;
|
|
893
|
+
styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
|
|
894
|
+
subsets?: [string, ...string[]] | undefined;
|
|
1106
895
|
fallbacks?: string[] | undefined;
|
|
1107
896
|
optimizedFallbacks?: boolean | undefined;
|
|
1108
|
-
|
|
1109
|
-
name: string;
|
|
1110
|
-
cssVariable: string;
|
|
1111
|
-
provider: {
|
|
1112
|
-
name: string;
|
|
1113
|
-
resolveFont: (options: import("../../../assets/fonts/types.js").ResolveFontOptions<never>) => {
|
|
1114
|
-
fonts: Array<import("unifont").FontFaceData>;
|
|
1115
|
-
} | Promise<{
|
|
1116
|
-
fonts: Array<import("unifont").FontFaceData>;
|
|
1117
|
-
} | undefined> | undefined;
|
|
1118
|
-
config?: Record<string, any> | undefined;
|
|
1119
|
-
init?: ((context: import("../../../assets/fonts/types.js").FontProviderInitContext) => void | Promise<void>) | undefined;
|
|
1120
|
-
listFonts?: (() => string[] | Promise<string[] | undefined> | undefined) | undefined;
|
|
1121
|
-
};
|
|
1122
|
-
options?: Record<string, any> | undefined;
|
|
897
|
+
formats?: ["woff2" | "woff" | "otf" | "ttf" | "eot", ...("woff2" | "woff" | "otf" | "ttf" | "eot")[]] | undefined;
|
|
1123
898
|
display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
|
|
1124
899
|
stretch?: string | undefined;
|
|
1125
900
|
featureSettings?: string | undefined;
|
|
1126
901
|
variationSettings?: string | undefined;
|
|
1127
902
|
unicodeRange?: [string, ...string[]] | undefined;
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
weights?: [string | number, ...(string | number)[]] | undefined;
|
|
1131
|
-
styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
|
|
1132
|
-
subsets?: [string, ...string[]] | undefined;
|
|
1133
|
-
formats?: ["woff2" | "woff" | "otf" | "ttf" | "eot", ...("woff2" | "woff" | "otf" | "ttf" | "eot")[]] | undefined;
|
|
1134
|
-
})[] | undefined;
|
|
903
|
+
options?: Record<string, any> | undefined;
|
|
904
|
+
}[] | undefined;
|
|
1135
905
|
}, {
|
|
1136
|
-
fonts?:
|
|
906
|
+
fonts?: {
|
|
1137
907
|
name: string;
|
|
1138
908
|
cssVariable: string;
|
|
1139
|
-
provider: "
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
tech?: string | undefined;
|
|
1144
|
-
}, ...(string | URL | {
|
|
1145
|
-
url: string | URL;
|
|
1146
|
-
tech?: string | undefined;
|
|
1147
|
-
})[]];
|
|
1148
|
-
weight?: string | number | undefined;
|
|
1149
|
-
style?: "normal" | "italic" | "oblique" | undefined;
|
|
1150
|
-
display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
|
|
1151
|
-
stretch?: string | undefined;
|
|
1152
|
-
featureSettings?: string | undefined;
|
|
1153
|
-
variationSettings?: string | undefined;
|
|
1154
|
-
unicodeRange?: [string, ...string[]] | undefined;
|
|
1155
|
-
}, ...{
|
|
1156
|
-
src: [string | URL | {
|
|
1157
|
-
url: string | URL;
|
|
1158
|
-
tech?: string | undefined;
|
|
1159
|
-
}, ...(string | URL | {
|
|
1160
|
-
url: string | URL;
|
|
1161
|
-
tech?: string | undefined;
|
|
1162
|
-
})[]];
|
|
1163
|
-
weight?: string | number | undefined;
|
|
1164
|
-
style?: "normal" | "italic" | "oblique" | undefined;
|
|
1165
|
-
display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
|
|
1166
|
-
stretch?: string | undefined;
|
|
1167
|
-
featureSettings?: string | undefined;
|
|
1168
|
-
variationSettings?: string | undefined;
|
|
1169
|
-
unicodeRange?: [string, ...string[]] | undefined;
|
|
1170
|
-
}[]];
|
|
909
|
+
provider: import("../../../assets/fonts/types.js").FontProvider<never>;
|
|
910
|
+
weights?: [string | number, ...(string | number)[]] | undefined;
|
|
911
|
+
styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
|
|
912
|
+
subsets?: [string, ...string[]] | undefined;
|
|
1171
913
|
fallbacks?: string[] | undefined;
|
|
1172
914
|
optimizedFallbacks?: boolean | undefined;
|
|
1173
|
-
|
|
1174
|
-
name: string;
|
|
1175
|
-
cssVariable: string;
|
|
1176
|
-
provider: {
|
|
1177
|
-
name: string;
|
|
1178
|
-
resolveFont: (options: import("../../../assets/fonts/types.js").ResolveFontOptions<never>) => {
|
|
1179
|
-
fonts: Array<import("unifont").FontFaceData>;
|
|
1180
|
-
} | Promise<{
|
|
1181
|
-
fonts: Array<import("unifont").FontFaceData>;
|
|
1182
|
-
} | undefined> | undefined;
|
|
1183
|
-
config?: Record<string, any> | undefined;
|
|
1184
|
-
init?: ((context: import("../../../assets/fonts/types.js").FontProviderInitContext) => void | Promise<void>) | undefined;
|
|
1185
|
-
listFonts?: (() => string[] | Promise<string[] | undefined> | undefined) | undefined;
|
|
1186
|
-
};
|
|
1187
|
-
options?: Record<string, any> | undefined;
|
|
915
|
+
formats?: ["woff2" | "woff" | "otf" | "ttf" | "eot", ...("woff2" | "woff" | "otf" | "ttf" | "eot")[]] | undefined;
|
|
1188
916
|
display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
|
|
1189
917
|
stretch?: string | undefined;
|
|
1190
918
|
featureSettings?: string | undefined;
|
|
1191
919
|
variationSettings?: string | undefined;
|
|
1192
920
|
unicodeRange?: [string, ...string[]] | undefined;
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
weights?: [string | number, ...(string | number)[]] | undefined;
|
|
1196
|
-
styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
|
|
1197
|
-
subsets?: [string, ...string[]] | undefined;
|
|
1198
|
-
formats?: ["woff2" | "woff" | "otf" | "ttf" | "eot", ...("woff2" | "woff" | "otf" | "ttf" | "eot")[]] | undefined;
|
|
1199
|
-
})[] | undefined;
|
|
921
|
+
options?: Record<string, any> | undefined;
|
|
922
|
+
}[] | undefined;
|
|
1200
923
|
clientPrerender?: boolean | undefined;
|
|
1201
924
|
contentIntellisense?: boolean | undefined;
|
|
1202
925
|
headingIdCompat?: boolean | undefined;
|
|
@@ -1387,70 +1110,23 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
1387
1110
|
chromeDevtoolsWorkspace: boolean;
|
|
1388
1111
|
failOnPrerenderConflict: boolean;
|
|
1389
1112
|
svgo: boolean | SvgoConfig;
|
|
1390
|
-
fonts?:
|
|
1113
|
+
fonts?: {
|
|
1391
1114
|
name: string;
|
|
1392
1115
|
cssVariable: string;
|
|
1393
|
-
provider: "
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
tech?: string | undefined;
|
|
1398
|
-
}, ...(string | URL | {
|
|
1399
|
-
url: string | URL;
|
|
1400
|
-
tech?: string | undefined;
|
|
1401
|
-
})[]];
|
|
1402
|
-
weight?: string | number | undefined;
|
|
1403
|
-
style?: "normal" | "italic" | "oblique" | undefined;
|
|
1404
|
-
display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
|
|
1405
|
-
stretch?: string | undefined;
|
|
1406
|
-
featureSettings?: string | undefined;
|
|
1407
|
-
variationSettings?: string | undefined;
|
|
1408
|
-
unicodeRange?: [string, ...string[]] | undefined;
|
|
1409
|
-
}, ...{
|
|
1410
|
-
src: [string | URL | {
|
|
1411
|
-
url: string | URL;
|
|
1412
|
-
tech?: string | undefined;
|
|
1413
|
-
}, ...(string | URL | {
|
|
1414
|
-
url: string | URL;
|
|
1415
|
-
tech?: string | undefined;
|
|
1416
|
-
})[]];
|
|
1417
|
-
weight?: string | number | undefined;
|
|
1418
|
-
style?: "normal" | "italic" | "oblique" | undefined;
|
|
1419
|
-
display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
|
|
1420
|
-
stretch?: string | undefined;
|
|
1421
|
-
featureSettings?: string | undefined;
|
|
1422
|
-
variationSettings?: string | undefined;
|
|
1423
|
-
unicodeRange?: [string, ...string[]] | undefined;
|
|
1424
|
-
}[]];
|
|
1116
|
+
provider: import("../../../assets/fonts/types.js").FontProvider<never>;
|
|
1117
|
+
weights?: [string | number, ...(string | number)[]] | undefined;
|
|
1118
|
+
styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
|
|
1119
|
+
subsets?: [string, ...string[]] | undefined;
|
|
1425
1120
|
fallbacks?: string[] | undefined;
|
|
1426
1121
|
optimizedFallbacks?: boolean | undefined;
|
|
1427
|
-
|
|
1428
|
-
name: string;
|
|
1429
|
-
cssVariable: string;
|
|
1430
|
-
provider: {
|
|
1431
|
-
name: string;
|
|
1432
|
-
resolveFont: (options: import("../../../assets/fonts/types.js").ResolveFontOptions<never>) => {
|
|
1433
|
-
fonts: Array<import("unifont").FontFaceData>;
|
|
1434
|
-
} | Promise<{
|
|
1435
|
-
fonts: Array<import("unifont").FontFaceData>;
|
|
1436
|
-
} | undefined> | undefined;
|
|
1437
|
-
config?: Record<string, any> | undefined;
|
|
1438
|
-
init?: ((context: import("../../../assets/fonts/types.js").FontProviderInitContext) => void | Promise<void>) | undefined;
|
|
1439
|
-
listFonts?: (() => string[] | Promise<string[] | undefined> | undefined) | undefined;
|
|
1440
|
-
};
|
|
1441
|
-
options?: Record<string, any> | undefined;
|
|
1122
|
+
formats?: ["woff2" | "woff" | "otf" | "ttf" | "eot", ...("woff2" | "woff" | "otf" | "ttf" | "eot")[]] | undefined;
|
|
1442
1123
|
display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
|
|
1443
1124
|
stretch?: string | undefined;
|
|
1444
1125
|
featureSettings?: string | undefined;
|
|
1445
1126
|
variationSettings?: string | undefined;
|
|
1446
1127
|
unicodeRange?: [string, ...string[]] | undefined;
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
weights?: [string | number, ...(string | number)[]] | undefined;
|
|
1450
|
-
styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
|
|
1451
|
-
subsets?: [string, ...string[]] | undefined;
|
|
1452
|
-
formats?: ["woff2" | "woff" | "otf" | "ttf" | "eot", ...("woff2" | "woff" | "otf" | "ttf" | "eot")[]] | undefined;
|
|
1453
|
-
})[] | undefined;
|
|
1128
|
+
options?: Record<string, any> | undefined;
|
|
1129
|
+
}[] | undefined;
|
|
1454
1130
|
};
|
|
1455
1131
|
legacy: {
|
|
1456
1132
|
collections: boolean;
|
|
@@ -1459,8 +1135,8 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
1459
1135
|
options?: Record<string, any> | undefined;
|
|
1460
1136
|
driver?: string | undefined;
|
|
1461
1137
|
cookie?: {
|
|
1462
|
-
path?: string | undefined;
|
|
1463
1138
|
name?: string | undefined;
|
|
1139
|
+
path?: string | undefined;
|
|
1464
1140
|
domain?: string | undefined;
|
|
1465
1141
|
maxAge?: number | undefined;
|
|
1466
1142
|
sameSite?: boolean | "strict" | "none" | "lax" | undefined;
|
|
@@ -1538,8 +1214,8 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
1538
1214
|
options?: Record<string, any> | undefined;
|
|
1539
1215
|
driver?: string | undefined;
|
|
1540
1216
|
cookie?: string | {
|
|
1541
|
-
path?: string | undefined;
|
|
1542
1217
|
name?: string | undefined;
|
|
1218
|
+
path?: string | undefined;
|
|
1543
1219
|
domain?: string | undefined;
|
|
1544
1220
|
maxAge?: number | undefined;
|
|
1545
1221
|
sameSite?: boolean | "strict" | "none" | "lax" | undefined;
|
|
@@ -1656,70 +1332,23 @@ export declare const AstroConfigSchema: z.ZodObject<{
|
|
|
1656
1332
|
}[] | undefined;
|
|
1657
1333
|
} | undefined;
|
|
1658
1334
|
experimental?: {
|
|
1659
|
-
fonts?:
|
|
1335
|
+
fonts?: {
|
|
1660
1336
|
name: string;
|
|
1661
1337
|
cssVariable: string;
|
|
1662
|
-
provider: "
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
tech?: string | undefined;
|
|
1667
|
-
}, ...(string | URL | {
|
|
1668
|
-
url: string | URL;
|
|
1669
|
-
tech?: string | undefined;
|
|
1670
|
-
})[]];
|
|
1671
|
-
weight?: string | number | undefined;
|
|
1672
|
-
style?: "normal" | "italic" | "oblique" | undefined;
|
|
1673
|
-
display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
|
|
1674
|
-
stretch?: string | undefined;
|
|
1675
|
-
featureSettings?: string | undefined;
|
|
1676
|
-
variationSettings?: string | undefined;
|
|
1677
|
-
unicodeRange?: [string, ...string[]] | undefined;
|
|
1678
|
-
}, ...{
|
|
1679
|
-
src: [string | URL | {
|
|
1680
|
-
url: string | URL;
|
|
1681
|
-
tech?: string | undefined;
|
|
1682
|
-
}, ...(string | URL | {
|
|
1683
|
-
url: string | URL;
|
|
1684
|
-
tech?: string | undefined;
|
|
1685
|
-
})[]];
|
|
1686
|
-
weight?: string | number | undefined;
|
|
1687
|
-
style?: "normal" | "italic" | "oblique" | undefined;
|
|
1688
|
-
display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
|
|
1689
|
-
stretch?: string | undefined;
|
|
1690
|
-
featureSettings?: string | undefined;
|
|
1691
|
-
variationSettings?: string | undefined;
|
|
1692
|
-
unicodeRange?: [string, ...string[]] | undefined;
|
|
1693
|
-
}[]];
|
|
1338
|
+
provider: import("../../../assets/fonts/types.js").FontProvider<never>;
|
|
1339
|
+
weights?: [string | number, ...(string | number)[]] | undefined;
|
|
1340
|
+
styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
|
|
1341
|
+
subsets?: [string, ...string[]] | undefined;
|
|
1694
1342
|
fallbacks?: string[] | undefined;
|
|
1695
1343
|
optimizedFallbacks?: boolean | undefined;
|
|
1696
|
-
|
|
1697
|
-
name: string;
|
|
1698
|
-
cssVariable: string;
|
|
1699
|
-
provider: {
|
|
1700
|
-
name: string;
|
|
1701
|
-
resolveFont: (options: import("../../../assets/fonts/types.js").ResolveFontOptions<never>) => {
|
|
1702
|
-
fonts: Array<import("unifont").FontFaceData>;
|
|
1703
|
-
} | Promise<{
|
|
1704
|
-
fonts: Array<import("unifont").FontFaceData>;
|
|
1705
|
-
} | undefined> | undefined;
|
|
1706
|
-
config?: Record<string, any> | undefined;
|
|
1707
|
-
init?: ((context: import("../../../assets/fonts/types.js").FontProviderInitContext) => void | Promise<void>) | undefined;
|
|
1708
|
-
listFonts?: (() => string[] | Promise<string[] | undefined> | undefined) | undefined;
|
|
1709
|
-
};
|
|
1710
|
-
options?: Record<string, any> | undefined;
|
|
1344
|
+
formats?: ["woff2" | "woff" | "otf" | "ttf" | "eot", ...("woff2" | "woff" | "otf" | "ttf" | "eot")[]] | undefined;
|
|
1711
1345
|
display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
|
|
1712
1346
|
stretch?: string | undefined;
|
|
1713
1347
|
featureSettings?: string | undefined;
|
|
1714
1348
|
variationSettings?: string | undefined;
|
|
1715
1349
|
unicodeRange?: [string, ...string[]] | undefined;
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
weights?: [string | number, ...(string | number)[]] | undefined;
|
|
1719
|
-
styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
|
|
1720
|
-
subsets?: [string, ...string[]] | undefined;
|
|
1721
|
-
formats?: ["woff2" | "woff" | "otf" | "ttf" | "eot", ...("woff2" | "woff" | "otf" | "ttf" | "eot")[]] | undefined;
|
|
1722
|
-
})[] | undefined;
|
|
1350
|
+
options?: Record<string, any> | undefined;
|
|
1351
|
+
}[] | undefined;
|
|
1723
1352
|
clientPrerender?: boolean | undefined;
|
|
1724
1353
|
contentIntellisense?: boolean | undefined;
|
|
1725
1354
|
headingIdCompat?: boolean | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { markdownConfigDefaults, syntaxHighlightDefaults } from "@astrojs/markdown-remark";
|
|
2
2
|
import { bundledThemes } from "shiki";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
import {
|
|
4
|
+
import { fontFamilySchema } from "../../../assets/fonts/config.js";
|
|
5
5
|
import { EnvSchema } from "../../../env/schema.js";
|
|
6
6
|
import { allowedDirectivesSchema, cspAlgorithmSchema, cspHashSchema } from "../../csp/config.js";
|
|
7
7
|
const ASTRO_CONFIG_DEFAULTS = {
|
|
@@ -280,7 +280,7 @@ const AstroConfigSchema = z.object({
|
|
|
280
280
|
contentIntellisense: z.boolean().optional().default(ASTRO_CONFIG_DEFAULTS.experimental.contentIntellisense),
|
|
281
281
|
headingIdCompat: z.boolean().optional().default(ASTRO_CONFIG_DEFAULTS.experimental.headingIdCompat),
|
|
282
282
|
preserveScriptOrder: z.boolean().optional().default(ASTRO_CONFIG_DEFAULTS.experimental.preserveScriptOrder),
|
|
283
|
-
fonts: z.array(
|
|
283
|
+
fonts: z.array(fontFamilySchema).optional(),
|
|
284
284
|
liveContentCollections: z.boolean().optional().default(ASTRO_CONFIG_DEFAULTS.experimental.liveContentCollections),
|
|
285
285
|
csp: z.union([
|
|
286
286
|
z.boolean().optional().default(ASTRO_CONFIG_DEFAULTS.experimental.csp),
|