diff --git a/package.json b/package.json index 7aa0f53..09189e5 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "0.8.0", + "version": "0.8.1", "license": "MIT", "main": "dist/index.js", "typings": "dist/index.d.ts", diff --git a/src/block.tsx b/src/block.tsx index 04e0bce..50609c0 100644 --- a/src/block.tsx +++ b/src/block.tsx @@ -240,6 +240,7 @@ export const Block: React.FC = props => { case "image": case "embed": + case "figma": case "video": const value = block.value as ContentValueType; diff --git a/src/components/asset.tsx b/src/components/asset.tsx index e5f9657..53c78ac 100644 --- a/src/components/asset.tsx +++ b/src/components/asset.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { BlockType, ContentValueType, MapImageUrl } from "../types"; -const types = ["video", "image", "embed"]; +const types = ["video", "image", "embed", "figma"]; const Asset: React.FC<{ block: BlockType; @@ -24,7 +24,7 @@ const Asset: React.FC<{ const aspectRatio = block_aspect_ratio || block_height / block_width; - if (type === "embed" || type === "video") { + if (type === "embed" || type === "video" || type === "figma") { return (
-