@webstudio-is/sdk 0.252.2 → 0.253.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
@@ -1041,6 +1041,13 @@ var IMAGE_EXTENSIONS = FILE_EXTENSIONS_BY_CATEGORY.image;
1041
1041
  var IMAGE_MIME_TYPES = IMAGE_EXTENSIONS.map(
1042
1042
  (ext) => ALLOWED_FILE_TYPES[ext]
1043
1043
  );
1044
+ var RESIZABLE_IMAGE_MIME_TYPES = [
1045
+ "image/jpeg",
1046
+ "image/png",
1047
+ "image/gif",
1048
+ "image/webp",
1049
+ "image/svg+xml"
1050
+ ];
1044
1051
  var VIDEO_EXTENSIONS = FILE_EXTENSIONS_BY_CATEGORY.video;
1045
1052
  var VIDEO_MIME_TYPES = VIDEO_EXTENSIONS.map(
1046
1053
  (ext) => ALLOWED_FILE_TYPES[ext]
@@ -3027,6 +3034,7 @@ export {
3027
3034
  PropMeta,
3028
3035
  Props,
3029
3036
  RANGE_UNITS,
3037
+ RESIZABLE_IMAGE_MIME_TYPES,
3030
3038
  ROOT_FOLDER_ID,
3031
3039
  ROOT_INSTANCE_ID,
3032
3040
  Resource,
@@ -73,6 +73,15 @@ export declare const IMAGE_EXTENSIONS: readonly AllowedFileExtension[];
73
73
  * All image MIME types
74
74
  */
75
75
  export declare const IMAGE_MIME_TYPES: readonly string[];
76
+ /**
77
+ * Subset of IMAGE_MIME_TYPES supported as input by the image resizing pipeline.
78
+ * Used in the Accept header when fetching external images to prevent services
79
+ * like Unsplash (with auto=format) from serving formats like AVIF that cause
80
+ * Cloudflare Image Resizing ERROR 9520 during transformation.
81
+ *
82
+ * See: https://developers.cloudflare.com/images/transform-images/#supported-input-formats
83
+ */
84
+ export declare const RESIZABLE_IMAGE_MIME_TYPES: readonly string[];
76
85
  /**
77
86
  * All video file extensions
78
87
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/sdk",
3
- "version": "0.252.2",
3
+ "version": "0.253.0",
4
4
  "description": "Webstudio project data schema",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
@@ -42,15 +42,15 @@
42
42
  "type-fest": "^4.37.0",
43
43
  "warn-once": "^0.1.1",
44
44
  "zod": "^3.24.2",
45
- "@webstudio-is/css-engine": "0.252.2",
46
- "@webstudio-is/icons": "0.252.2",
47
- "@webstudio-is/fonts": "0.252.2"
45
+ "@webstudio-is/css-engine": "0.253.0",
46
+ "@webstudio-is/icons": "0.253.0",
47
+ "@webstudio-is/fonts": "0.253.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "html-tags": "^4.0.0",
51
51
  "vitest": "^3.1.2",
52
52
  "@webstudio-is/css-data": "0.0.0",
53
- "@webstudio-is/template": "0.252.2",
53
+ "@webstudio-is/template": "0.253.0",
54
54
  "@webstudio-is/tsconfig": "1.0.7"
55
55
  },
56
56
  "scripts": {