@webstudio-is/fonts 0.151.0 → 0.163.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
@@ -9,8 +9,7 @@ var DEFAULT_FONT_FALLBACK = "sans-serif";
9
9
  var FONT_FORMATS = /* @__PURE__ */ new Map([
10
10
  ["woff", "woff"],
11
11
  ["woff2", "woff2"],
12
- ["ttf", "truetype"],
13
- ["otf", "opentype"]
12
+ ["ttf", "truetype"]
14
13
  ]);
15
14
  var FONT_MIME_TYPES = Array.from(FONT_FORMATS.keys()).map((format) => `.${format}`).join(", ");
16
15
  var FONT_STYLES = ["normal", "italic", "oblique"];
@@ -69,8 +68,7 @@ import { z } from "zod";
69
68
  var FontFormat = z.union([
70
69
  z.literal("ttf"),
71
70
  z.literal("woff"),
72
- z.literal("woff2"),
73
- z.literal("otf")
71
+ z.literal("woff2")
74
72
  ]);
75
73
  var AxisName = z.enum([
76
74
  "wght",
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- export declare const FontFormat: z.ZodUnion<[z.ZodLiteral<"ttf">, z.ZodLiteral<"woff">, z.ZodLiteral<"woff2">, z.ZodLiteral<"otf">]>;
2
+ export declare const FontFormat: z.ZodUnion<[z.ZodLiteral<"ttf">, z.ZodLiteral<"woff">, z.ZodLiteral<"woff2">]>;
3
3
  export type FontFormat = z.infer<typeof FontFormat>;
4
4
  declare const VariationAxes: z.ZodRecord<z.ZodEnum<["wght", "wdth", "slnt", "opsz", "ital", "GRAD", "XTRA", "XOPQ", "YOPQ", "YTLC", "YTUC", "YTAS", "YTDE", "YTFI"]>, z.ZodObject<{
5
5
  name: z.ZodString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/fonts",
3
- "version": "0.151.0",
3
+ "version": "0.163.0",
4
4
  "description": "Fonts utils",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
@@ -9,8 +9,8 @@
9
9
  "@jest/globals": "^29.7.0",
10
10
  "typescript": "5.4.5",
11
11
  "zod": "^3.22.4",
12
- "@webstudio-is/jest-config": "1.0.7",
13
- "@webstudio-is/tsconfig": "1.0.7"
12
+ "@webstudio-is/tsconfig": "1.0.7",
13
+ "@webstudio-is/jest-config": "1.0.7"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "zod": "^3.19.1"
@@ -18,8 +18,7 @@
18
18
  "exports": {
19
19
  "webstudio": "./src/index.ts",
20
20
  "types": "./lib/types/index.d.ts",
21
- "import": "./lib/index.js",
22
- "require": "./lib/index.js"
21
+ "import": "./lib/index.js"
23
22
  },
24
23
  "files": [
25
24
  "lib/*",