astro 5.16.13 → 5.16.14

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.
Files changed (84) hide show
  1. package/components/Font.astro +4 -4
  2. package/dist/assets/fonts/config.d.ts +15 -145
  3. package/dist/assets/fonts/config.js +3 -22
  4. package/dist/assets/fonts/constants.d.ts +0 -1
  5. package/dist/assets/fonts/constants.js +0 -2
  6. package/dist/assets/fonts/core/collect-component-data.d.ts +9 -0
  7. package/dist/assets/fonts/core/collect-component-data.js +47 -0
  8. package/dist/assets/fonts/core/collect-font-assets-from-faces.d.ts +17 -0
  9. package/dist/assets/fonts/core/collect-font-assets-from-faces.js +71 -0
  10. package/dist/assets/fonts/core/collect-font-data.d.ts +4 -0
  11. package/dist/assets/fonts/core/collect-font-data.js +23 -0
  12. package/dist/assets/fonts/core/compute-font-families-assets.d.ts +20 -0
  13. package/dist/assets/fonts/core/compute-font-families-assets.js +67 -0
  14. package/dist/assets/fonts/core/filter-and-transform-font-faces.d.ts +20 -0
  15. package/dist/assets/fonts/core/filter-and-transform-font-faces.js +39 -0
  16. package/dist/assets/fonts/core/get-or-create-font-family-assets.d.ts +8 -0
  17. package/dist/assets/fonts/core/get-or-create-font-family-assets.js +34 -0
  18. package/dist/assets/fonts/core/optimize-fallbacks.d.ts +2 -3
  19. package/dist/assets/fonts/core/optimize-fallbacks.js +2 -3
  20. package/dist/assets/fonts/core/resolve-family.d.ts +6 -0
  21. package/dist/assets/fonts/core/resolve-family.js +23 -0
  22. package/dist/assets/fonts/definitions.d.ts +6 -28
  23. package/dist/assets/fonts/infra/build-font-file-id-generator.d.ts +13 -0
  24. package/dist/assets/fonts/infra/{build-url-proxy-hash-resolver.js → build-font-file-id-generator.js} +3 -6
  25. package/dist/assets/fonts/infra/build-url-resolver.d.ts +1 -1
  26. package/dist/assets/fonts/infra/build-url-resolver.js +4 -4
  27. package/dist/assets/fonts/infra/cached-font-fetcher.d.ts +1 -1
  28. package/dist/assets/fonts/infra/cached-font-fetcher.js +11 -3
  29. package/dist/assets/fonts/infra/capsize-font-metrics-resolver.d.ts +2 -2
  30. package/dist/assets/fonts/infra/dev-font-file-id-generator.d.ts +16 -0
  31. package/dist/assets/fonts/infra/{dev-url-proxy-hash-resolver.js → dev-font-file-id-generator.js} +8 -8
  32. package/dist/assets/fonts/infra/dev-url-resolver.d.ts +1 -1
  33. package/dist/assets/fonts/infra/dev-url-resolver.js +2 -2
  34. package/dist/assets/fonts/infra/fs-font-file-content-resolver.d.ts +10 -0
  35. package/dist/assets/fonts/infra/fs-font-file-content-resolver.js +21 -0
  36. package/dist/assets/fonts/infra/minifiable-css-renderer.d.ts +2 -1
  37. package/dist/assets/fonts/infra/{font-type-extractor.d.ts → node-font-type-extractor.d.ts} +1 -1
  38. package/dist/assets/fonts/infra/{font-type-extractor.js → node-font-type-extractor.js} +2 -2
  39. package/dist/assets/fonts/infra/unifont-font-resolver.d.ts +5 -3
  40. package/dist/assets/fonts/infra/unifont-font-resolver.js +14 -17
  41. package/dist/assets/fonts/providers/index.d.ts +6 -1
  42. package/dist/assets/fonts/providers/index.js +9 -1
  43. package/dist/assets/fonts/providers/local.d.ts +41 -8
  44. package/dist/assets/fonts/providers/local.js +65 -48
  45. package/dist/assets/fonts/runtime/client.d.ts +1 -1
  46. package/dist/assets/fonts/runtime/client.js +1 -1
  47. package/dist/assets/fonts/runtime/server.d.ts +1 -1
  48. package/dist/assets/fonts/runtime/server.js +1 -1
  49. package/dist/assets/fonts/types.d.ts +61 -110
  50. package/dist/assets/fonts/utils.d.ts +1 -7
  51. package/dist/assets/fonts/utils.js +1 -15
  52. package/dist/assets/fonts/vite-plugin-fonts.js +149 -141
  53. package/dist/cli/add/index.js +39 -0
  54. package/dist/cli/infra/build-time-astro-version-provider.js +1 -1
  55. package/dist/config/index.d.ts +1 -2
  56. package/dist/content/content-layer.js +3 -3
  57. package/dist/core/config/schemas/base.d.ts +60 -337
  58. package/dist/core/config/schemas/base.js +2 -2
  59. package/dist/core/config/schemas/relative.d.ts +80 -431
  60. package/dist/core/constants.js +1 -1
  61. package/dist/core/dev/dev.js +1 -1
  62. package/dist/core/errors/errors-data.d.ts +1 -1
  63. package/dist/core/errors/errors-data.js +1 -1
  64. package/dist/core/messages.js +2 -2
  65. package/dist/types/public/config.d.ts +3 -4
  66. package/package.json +5 -5
  67. package/dist/assets/fonts/core/normalize-remote-font-faces.d.ts +0 -7
  68. package/dist/assets/fonts/core/normalize-remote-font-faces.js +0 -41
  69. package/dist/assets/fonts/core/resolve-families.d.ts +0 -16
  70. package/dist/assets/fonts/core/resolve-families.js +0 -63
  71. package/dist/assets/fonts/infra/build-url-proxy-hash-resolver.d.ts +0 -15
  72. package/dist/assets/fonts/infra/data-collector.d.ts +0 -10
  73. package/dist/assets/fonts/infra/data-collector.js +0 -35
  74. package/dist/assets/fonts/infra/dev-url-proxy-hash-resolver.d.ts +0 -15
  75. package/dist/assets/fonts/infra/local-url-proxy-content-resolver.d.ts +0 -4
  76. package/dist/assets/fonts/infra/local-url-proxy-content-resolver.js +0 -14
  77. package/dist/assets/fonts/infra/remote-url-proxy-content-resolver.d.ts +0 -4
  78. package/dist/assets/fonts/infra/remote-url-proxy-content-resolver.js +0 -9
  79. package/dist/assets/fonts/infra/require-local-provider-url-resolver.d.ts +0 -9
  80. package/dist/assets/fonts/infra/require-local-provider-url-resolver.js +0 -30
  81. package/dist/assets/fonts/infra/url-proxy.d.ts +0 -16
  82. package/dist/assets/fonts/infra/url-proxy.js +0 -50
  83. package/dist/assets/fonts/orchestrate.d.ts +0 -42
  84. 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,136 +757,7 @@ 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.ZodUnion<[z.ZodObject<{
761
- provider: z.ZodLiteral<"local">;
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<{
760
+ fonts: z.ZodOptional<z.ZodArray<z.ZodObject<{
890
761
  provider: z.ZodObject<{
891
762
  name: z.ZodString;
892
763
  config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -950,18 +821,18 @@ export declare const AstroConfigSchema: z.ZodObject<{
950
821
  init?: ((context: import("../../../assets/fonts/types.js").FontProviderInitContext) => void | Promise<void>) | undefined;
951
822
  listFonts?: (() => string[] | Promise<string[] | undefined> | undefined) | undefined;
952
823
  };
953
- options?: Record<string, any> | undefined;
824
+ weights?: [string | number, ...(string | number)[]] | undefined;
825
+ styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
826
+ subsets?: [string, ...string[]] | undefined;
827
+ fallbacks?: string[] | undefined;
828
+ optimizedFallbacks?: boolean | undefined;
829
+ formats?: ["woff2" | "woff" | "otf" | "ttf" | "eot", ...("woff2" | "woff" | "otf" | "ttf" | "eot")[]] | undefined;
954
830
  display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
955
831
  stretch?: string | undefined;
956
832
  featureSettings?: string | undefined;
957
833
  variationSettings?: string | undefined;
958
834
  unicodeRange?: [string, ...string[]] | undefined;
959
- fallbacks?: string[] | undefined;
960
- optimizedFallbacks?: boolean | undefined;
961
- weights?: [string | number, ...(string | number)[]] | undefined;
962
- styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
963
- subsets?: [string, ...string[]] | undefined;
964
- formats?: ["woff2" | "woff" | "otf" | "ttf" | "eot", ...("woff2" | "woff" | "otf" | "ttf" | "eot")[]] | undefined;
835
+ options?: Record<string, any> | undefined;
965
836
  }, {
966
837
  name: string;
967
838
  cssVariable: string;
@@ -976,19 +847,19 @@ export declare const AstroConfigSchema: z.ZodObject<{
976
847
  init?: ((context: import("../../../assets/fonts/types.js").FontProviderInitContext) => void | Promise<void>) | undefined;
977
848
  listFonts?: (() => string[] | Promise<string[] | undefined> | undefined) | undefined;
978
849
  };
979
- options?: Record<string, any> | undefined;
850
+ weights?: [string | number, ...(string | number)[]] | undefined;
851
+ styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
852
+ subsets?: [string, ...string[]] | undefined;
853
+ fallbacks?: string[] | undefined;
854
+ optimizedFallbacks?: boolean | undefined;
855
+ formats?: ["woff2" | "woff" | "otf" | "ttf" | "eot", ...("woff2" | "woff" | "otf" | "ttf" | "eot")[]] | undefined;
980
856
  display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
981
857
  stretch?: string | undefined;
982
858
  featureSettings?: string | undefined;
983
859
  variationSettings?: string | undefined;
984
860
  unicodeRange?: [string, ...string[]] | undefined;
985
- fallbacks?: string[] | undefined;
986
- optimizedFallbacks?: boolean | undefined;
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">>;
861
+ options?: Record<string, any> | undefined;
862
+ }>, "many">>;
992
863
  liveContentCollections: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
993
864
  csp: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodDefault<z.ZodOptional<z.ZodBoolean>>, z.ZodObject<{
994
865
  algorithm: z.ZodDefault<z.ZodOptional<z.ZodEnum<["SHA-256", "SHA-384", "SHA-512"]>>>;
@@ -1068,44 +939,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
1068
939
  chromeDevtoolsWorkspace: boolean;
1069
940
  failOnPrerenderConflict: boolean;
1070
941
  svgo: boolean | SvgoConfig;
1071
- fonts?: ({
1072
- name: string;
1073
- cssVariable: string;
1074
- provider: "local";
1075
- variants: [{
1076
- src: [string | URL | {
1077
- url: string | URL;
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
- }[]];
1106
- fallbacks?: string[] | undefined;
1107
- optimizedFallbacks?: boolean | undefined;
1108
- } | {
942
+ fonts?: {
1109
943
  name: string;
1110
944
  cssVariable: string;
1111
945
  provider: {
@@ -1119,58 +953,21 @@ export declare const AstroConfigSchema: z.ZodObject<{
1119
953
  init?: ((context: import("../../../assets/fonts/types.js").FontProviderInitContext) => void | Promise<void>) | undefined;
1120
954
  listFonts?: (() => string[] | Promise<string[] | undefined> | undefined) | undefined;
1121
955
  };
1122
- options?: Record<string, any> | undefined;
956
+ weights?: [string | number, ...(string | number)[]] | undefined;
957
+ styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
958
+ subsets?: [string, ...string[]] | undefined;
959
+ fallbacks?: string[] | undefined;
960
+ optimizedFallbacks?: boolean | undefined;
961
+ formats?: ["woff2" | "woff" | "otf" | "ttf" | "eot", ...("woff2" | "woff" | "otf" | "ttf" | "eot")[]] | undefined;
1123
962
  display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
1124
963
  stretch?: string | undefined;
1125
964
  featureSettings?: string | undefined;
1126
965
  variationSettings?: string | undefined;
1127
966
  unicodeRange?: [string, ...string[]] | undefined;
1128
- fallbacks?: string[] | undefined;
1129
- optimizedFallbacks?: boolean | undefined;
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;
967
+ options?: Record<string, any> | undefined;
968
+ }[] | undefined;
1135
969
  }, {
1136
- fonts?: ({
1137
- name: string;
1138
- cssVariable: string;
1139
- provider: "local";
1140
- variants: [{
1141
- src: [string | URL | {
1142
- url: string | URL;
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
- }[]];
1171
- fallbacks?: string[] | undefined;
1172
- optimizedFallbacks?: boolean | undefined;
1173
- } | {
970
+ fonts?: {
1174
971
  name: string;
1175
972
  cssVariable: string;
1176
973
  provider: {
@@ -1184,19 +981,19 @@ export declare const AstroConfigSchema: z.ZodObject<{
1184
981
  init?: ((context: import("../../../assets/fonts/types.js").FontProviderInitContext) => void | Promise<void>) | undefined;
1185
982
  listFonts?: (() => string[] | Promise<string[] | undefined> | undefined) | undefined;
1186
983
  };
1187
- options?: Record<string, any> | undefined;
984
+ weights?: [string | number, ...(string | number)[]] | undefined;
985
+ styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
986
+ subsets?: [string, ...string[]] | undefined;
987
+ fallbacks?: string[] | undefined;
988
+ optimizedFallbacks?: boolean | undefined;
989
+ formats?: ["woff2" | "woff" | "otf" | "ttf" | "eot", ...("woff2" | "woff" | "otf" | "ttf" | "eot")[]] | undefined;
1188
990
  display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
1189
991
  stretch?: string | undefined;
1190
992
  featureSettings?: string | undefined;
1191
993
  variationSettings?: string | undefined;
1192
994
  unicodeRange?: [string, ...string[]] | undefined;
1193
- fallbacks?: string[] | undefined;
1194
- optimizedFallbacks?: boolean | undefined;
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;
995
+ options?: Record<string, any> | undefined;
996
+ }[] | undefined;
1200
997
  clientPrerender?: boolean | undefined;
1201
998
  contentIntellisense?: boolean | undefined;
1202
999
  headingIdCompat?: boolean | undefined;
@@ -1387,44 +1184,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
1387
1184
  chromeDevtoolsWorkspace: boolean;
1388
1185
  failOnPrerenderConflict: boolean;
1389
1186
  svgo: boolean | SvgoConfig;
1390
- fonts?: ({
1391
- name: string;
1392
- cssVariable: string;
1393
- provider: "local";
1394
- variants: [{
1395
- src: [string | URL | {
1396
- url: string | URL;
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
- }[]];
1425
- fallbacks?: string[] | undefined;
1426
- optimizedFallbacks?: boolean | undefined;
1427
- } | {
1187
+ fonts?: {
1428
1188
  name: string;
1429
1189
  cssVariable: string;
1430
1190
  provider: {
@@ -1438,19 +1198,19 @@ export declare const AstroConfigSchema: z.ZodObject<{
1438
1198
  init?: ((context: import("../../../assets/fonts/types.js").FontProviderInitContext) => void | Promise<void>) | undefined;
1439
1199
  listFonts?: (() => string[] | Promise<string[] | undefined> | undefined) | undefined;
1440
1200
  };
1441
- options?: Record<string, any> | undefined;
1201
+ weights?: [string | number, ...(string | number)[]] | undefined;
1202
+ styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
1203
+ subsets?: [string, ...string[]] | undefined;
1204
+ fallbacks?: string[] | undefined;
1205
+ optimizedFallbacks?: boolean | undefined;
1206
+ formats?: ["woff2" | "woff" | "otf" | "ttf" | "eot", ...("woff2" | "woff" | "otf" | "ttf" | "eot")[]] | undefined;
1442
1207
  display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
1443
1208
  stretch?: string | undefined;
1444
1209
  featureSettings?: string | undefined;
1445
1210
  variationSettings?: string | undefined;
1446
1211
  unicodeRange?: [string, ...string[]] | undefined;
1447
- fallbacks?: string[] | undefined;
1448
- optimizedFallbacks?: boolean | undefined;
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;
1212
+ options?: Record<string, any> | undefined;
1213
+ }[] | undefined;
1454
1214
  };
1455
1215
  legacy: {
1456
1216
  collections: boolean;
@@ -1459,8 +1219,8 @@ export declare const AstroConfigSchema: z.ZodObject<{
1459
1219
  options?: Record<string, any> | undefined;
1460
1220
  driver?: string | undefined;
1461
1221
  cookie?: {
1462
- path?: string | undefined;
1463
1222
  name?: string | undefined;
1223
+ path?: string | undefined;
1464
1224
  domain?: string | undefined;
1465
1225
  maxAge?: number | undefined;
1466
1226
  sameSite?: boolean | "strict" | "none" | "lax" | undefined;
@@ -1538,8 +1298,8 @@ export declare const AstroConfigSchema: z.ZodObject<{
1538
1298
  options?: Record<string, any> | undefined;
1539
1299
  driver?: string | undefined;
1540
1300
  cookie?: string | {
1541
- path?: string | undefined;
1542
1301
  name?: string | undefined;
1302
+ path?: string | undefined;
1543
1303
  domain?: string | undefined;
1544
1304
  maxAge?: number | undefined;
1545
1305
  sameSite?: boolean | "strict" | "none" | "lax" | undefined;
@@ -1656,44 +1416,7 @@ export declare const AstroConfigSchema: z.ZodObject<{
1656
1416
  }[] | undefined;
1657
1417
  } | undefined;
1658
1418
  experimental?: {
1659
- fonts?: ({
1660
- name: string;
1661
- cssVariable: string;
1662
- provider: "local";
1663
- variants: [{
1664
- src: [string | URL | {
1665
- url: string | URL;
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
- }[]];
1694
- fallbacks?: string[] | undefined;
1695
- optimizedFallbacks?: boolean | undefined;
1696
- } | {
1419
+ fonts?: {
1697
1420
  name: string;
1698
1421
  cssVariable: string;
1699
1422
  provider: {
@@ -1707,19 +1430,19 @@ export declare const AstroConfigSchema: z.ZodObject<{
1707
1430
  init?: ((context: import("../../../assets/fonts/types.js").FontProviderInitContext) => void | Promise<void>) | undefined;
1708
1431
  listFonts?: (() => string[] | Promise<string[] | undefined> | undefined) | undefined;
1709
1432
  };
1710
- options?: Record<string, any> | undefined;
1433
+ weights?: [string | number, ...(string | number)[]] | undefined;
1434
+ styles?: ["normal" | "italic" | "oblique", ...("normal" | "italic" | "oblique")[]] | undefined;
1435
+ subsets?: [string, ...string[]] | undefined;
1436
+ fallbacks?: string[] | undefined;
1437
+ optimizedFallbacks?: boolean | undefined;
1438
+ formats?: ["woff2" | "woff" | "otf" | "ttf" | "eot", ...("woff2" | "woff" | "otf" | "ttf" | "eot")[]] | undefined;
1711
1439
  display?: "auto" | "block" | "swap" | "fallback" | "optional" | undefined;
1712
1440
  stretch?: string | undefined;
1713
1441
  featureSettings?: string | undefined;
1714
1442
  variationSettings?: string | undefined;
1715
1443
  unicodeRange?: [string, ...string[]] | undefined;
1716
- fallbacks?: string[] | undefined;
1717
- optimizedFallbacks?: boolean | undefined;
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;
1444
+ options?: Record<string, any> | undefined;
1445
+ }[] | undefined;
1723
1446
  clientPrerender?: boolean | undefined;
1724
1447
  contentIntellisense?: boolean | undefined;
1725
1448
  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 { localFontFamilySchema, remoteFontFamilySchema } from "../../../assets/fonts/config.js";
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(z.union([localFontFamilySchema, remoteFontFamilySchema])).optional(),
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),