Skip to content

A free and open-source block-based email template builder.

Bumping block-images version on editor. (#37)

cohitre9cf4807720fb
diff --git a/packages/block-image/package-lock.json b/packages/block-image/package-lock.json
index 910e670..06684e1 100644
--- a/packages/block-image/package-lock.json
+++ b/packages/block-image/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@usewaypoint/block-image",
- "version": "0.0.2",
+ "version": "0.0.3",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@usewaypoint/block-image",
- "version": "0.0.2",
+ "version": "0.0.3",
"license": "MIT",
"devDependencies": {
"@testing-library/react": "^14.2.1"
diff --git a/packages/editor-sample/package-lock.json b/packages/editor-sample/package-lock.json
index cb047df..feec7f6 100644
--- a/packages/editor-sample/package-lock.json
+++ b/packages/editor-sample/package-lock.json
@@ -19,7 +19,7 @@
"@usewaypoint/block-divider": "^0.0.3",
"@usewaypoint/block-heading": "^0.0.2",
"@usewaypoint/block-html": "^0.0.1",
- "@usewaypoint/block-image": "^0.0.2",
+ "@usewaypoint/block-image": "^0.0.3",
"@usewaypoint/block-spacer": "^0.0.2",
"@usewaypoint/block-text": "^0.0.1",
"@usewaypoint/document-core": "^0.0.1",
@@ -1912,9 +1912,9 @@
}
},
"node_modules/@usewaypoint/block-image": {
- "version": "0.0.2",
- "resolved": "https://registry.npmjs.org/@usewaypoint/block-image/-/block-image-0.0.2.tgz",
- "integrity": "sha512-VlozpBGn9+54qn8gCCYWOvx0tVCjbhMtjJKrqJLQa4MCU6Refk9UVbz6rEp67DZb7400+V2Dv7rpB8yIMMUBYg==",
+ "version": "0.0.3",
+ "resolved": "https://registry.npmjs.org/@usewaypoint/block-image/-/block-image-0.0.3.tgz",
+ "integrity": "sha512-lYyYxAc62hRwbRF0ovHGh01prxg01aJNHz6fqFd6s5kRzS6bcgxbFmkMR1be7CSQiwM4s+tiUDP7T4Ix6FcFqA==",
"peerDependencies": {
"react": "^16 || ^17 || ^18",
"zod": "^1 || ^2 || ^3"
diff --git a/packages/editor-sample/package.json b/packages/editor-sample/package.json
index 970a312..8d2d7bf 100644
--- a/packages/editor-sample/package.json
+++ b/packages/editor-sample/package.json
@@ -19,7 +19,7 @@
"@usewaypoint/block-divider": "^0.0.3",
"@usewaypoint/block-heading": "^0.0.2",
"@usewaypoint/block-html": "^0.0.1",
- "@usewaypoint/block-image": "^0.0.2",
+ "@usewaypoint/block-image": "^0.0.3",
"@usewaypoint/block-spacer": "^0.0.2",
"@usewaypoint/block-text": "^0.0.1",
"@usewaypoint/document-core": "^0.0.1",
diff --git a/packages/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/ImageSidebarPanel.tsx b/packages/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/ImageSidebarPanel.tsx
index ff36cbc..5a42e3f 100644
--- a/packages/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/ImageSidebarPanel.tsx
+++ b/packages/editor-sample/src/App/InspectorDrawer/ConfigurationPanel/input-panels/ImageSidebarPanel.tsx
@@ -36,12 +36,12 @@ export default function ImageSidebarPanel({ data, setData }: ImageSidebarPanelPr
<Stack direction="row" spacing={2}>
<TextDimensionInput
label="Width"
- defaultValue={30}
+ defaultValue={data.props?.width}
onChange={(width) => updateData({ ...data, props: { ...data.props, width } })}
/>
<TextDimensionInput
label="Height"
- defaultValue={30}
+ defaultValue={data.props?.height}
onChange={(height) => updateData({ ...data, props: { ...data.props, height } })}
/>
</Stack>