@webstudio-is/fonts 0.282.0 → 0.283.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/lib/index.js CHANGED
@@ -352,6 +352,10 @@ var fontMetaVariable = z.object({
352
352
  variationAxes
353
353
  });
354
354
  var fontMeta = z.union([fontMetaStatic, fontMetaVariable]);
355
+ var fontMetaUpdate = z.union([
356
+ fontMetaStatic.partial().strict(),
357
+ fontMetaVariable.partial().strict()
358
+ ]);
355
359
 
356
360
  // src/font-weights.ts
357
361
  var fontWeights = {
@@ -407,6 +411,8 @@ export {
407
411
  fontFormat,
408
412
  fontMeta,
409
413
  fontMetaStatic,
414
+ fontMetaUpdate,
415
+ fontMetaVariable,
410
416
  fontWeightNames,
411
417
  fontWeights,
412
418
  getFontFaces
@@ -33,6 +33,30 @@ export declare const fontMetaStatic: z.ZodObject<{
33
33
  weight: z.ZodNumber;
34
34
  }, z.core.$strip>;
35
35
  export type FontMetaStatic = z.infer<typeof fontMetaStatic>;
36
+ export declare const fontMetaVariable: z.ZodObject<{
37
+ family: z.ZodString;
38
+ variationAxes: z.ZodRecord<z.ZodEnum<{
39
+ GRAD: "GRAD";
40
+ XOPQ: "XOPQ";
41
+ XTRA: "XTRA";
42
+ YOPQ: "YOPQ";
43
+ YTAS: "YTAS";
44
+ YTDE: "YTDE";
45
+ YTFI: "YTFI";
46
+ YTLC: "YTLC";
47
+ YTUC: "YTUC";
48
+ ital: "ital";
49
+ opsz: "opsz";
50
+ slnt: "slnt";
51
+ wdth: "wdth";
52
+ wght: "wght";
53
+ }> & z.core.$partial, z.ZodObject<{
54
+ name: z.ZodString;
55
+ min: z.ZodNumber;
56
+ default: z.ZodNumber;
57
+ max: z.ZodNumber;
58
+ }, z.core.$strip>>;
59
+ }, z.core.$strip>;
36
60
  export declare const fontMeta: z.ZodUnion<readonly [z.ZodObject<{
37
61
  family: z.ZodString;
38
62
  style: z.ZodEnum<{
@@ -65,5 +89,37 @@ export declare const fontMeta: z.ZodUnion<readonly [z.ZodObject<{
65
89
  max: z.ZodNumber;
66
90
  }, z.core.$strip>>;
67
91
  }, z.core.$strip>]>;
92
+ export declare const fontMetaUpdate: z.ZodUnion<readonly [z.ZodObject<{
93
+ family: z.ZodOptional<z.ZodString>;
94
+ style: z.ZodOptional<z.ZodEnum<{
95
+ italic: "italic";
96
+ normal: "normal";
97
+ oblique: "oblique";
98
+ }>>;
99
+ weight: z.ZodOptional<z.ZodNumber>;
100
+ }, z.core.$strict>, z.ZodObject<{
101
+ family: z.ZodOptional<z.ZodString>;
102
+ variationAxes: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
103
+ GRAD: "GRAD";
104
+ XOPQ: "XOPQ";
105
+ XTRA: "XTRA";
106
+ YOPQ: "YOPQ";
107
+ YTAS: "YTAS";
108
+ YTDE: "YTDE";
109
+ YTFI: "YTFI";
110
+ YTLC: "YTLC";
111
+ YTUC: "YTUC";
112
+ ital: "ital";
113
+ opsz: "opsz";
114
+ slnt: "slnt";
115
+ wdth: "wdth";
116
+ wght: "wght";
117
+ }> & z.core.$partial, z.ZodObject<{
118
+ name: z.ZodString;
119
+ min: z.ZodNumber;
120
+ default: z.ZodNumber;
121
+ max: z.ZodNumber;
122
+ }, z.core.$strip>>>;
123
+ }, z.core.$strict>]>;
68
124
  export type FontMeta = z.infer<typeof fontMeta>;
69
125
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/fonts",
3
- "version": "0.282.0",
3
+ "version": "0.283.0",
4
4
  "description": "Fonts utils",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",