@ixo/editor 3.0.0-beta.31 → 3.0.0-beta.32
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.
|
@@ -29859,7 +29859,6 @@ var LocationTemplateView = ({ editor, block }) => {
|
|
|
29859
29859
|
const panelId = `${LOCATION_TEMPLATE_PANEL_ID}-${block.id}`;
|
|
29860
29860
|
const panelContent = useMemo110(() => /* @__PURE__ */ React279.createElement(TemplateConfig17, { editor, block }), [editor, block]);
|
|
29861
29861
|
const { open } = usePanel(panelId, panelContent);
|
|
29862
|
-
console.log("block.props:", block.props);
|
|
29863
29862
|
const hasLocation = block.props.latitude && block.props.longitude;
|
|
29864
29863
|
return /* @__PURE__ */ React279.createElement(BaseContainer, { blockId: block.id, onClick: open, style: { minHeight: 90, justifyContent: "center" } }, /* @__PURE__ */ React279.createElement(Stack191, { gap: "xs", justify: "center" }, /* @__PURE__ */ React279.createElement(Group102, { wrap: "nowrap", align: "center" }, /* @__PURE__ */ React279.createElement(IconMapPin, { color: "white", size: 26, stroke: 1.5 }), /* @__PURE__ */ React279.createElement(Stack191, { gap: 2 }, /* @__PURE__ */ React279.createElement(Text165, { fw: 500, size: "sm", contentEditable: false }, block.props.title || "Location"), block.props.description && /* @__PURE__ */ React279.createElement(Text165, { size: "xs", c: "dimmed", contentEditable: false }, block.props.description))), hasLocation && /* @__PURE__ */ React279.createElement(LocationMap, { latitude: block.props.latitude, longitude: block.props.longitude, mapId: `location-template-map-${block.id}`, zoom: 14, showMarker: true, showTilesControl: true })));
|
|
29865
29864
|
};
|
|
@@ -33927,4 +33926,4 @@ export {
|
|
|
33927
33926
|
getExtraSlashMenuItems,
|
|
33928
33927
|
useCreateIxoEditor
|
|
33929
33928
|
};
|
|
33930
|
-
//# sourceMappingURL=chunk-
|
|
33929
|
+
//# sourceMappingURL=chunk-UWTEHXWI.mjs.map
|