@kgalexander/mcreate 0.0.10 → 0.0.11
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.
|
@@ -216,7 +216,7 @@ function formatOpenHouseTime(time24) {
|
|
|
216
216
|
function propertyCardMockMjml(block, context) {
|
|
217
217
|
const a = block.attributes;
|
|
218
218
|
const trackingClasses = context.mode === "editing" ? getTrackingClasses(context.idx, "property-card") : "";
|
|
219
|
-
const href = a["href"] ||
|
|
219
|
+
const href = a["href"] || "#";
|
|
220
220
|
const price = formatPrice(a["price"] || "$0");
|
|
221
221
|
const address = a["address"] || "123 Main Street";
|
|
222
222
|
const city = a["city"] || "City, ST 00000";
|
|
@@ -577,7 +577,7 @@ function propertyCardSingleTwoMockMjml(block, context) {
|
|
|
577
577
|
// src/render/Mockup/mock-property-triple-better.ts
|
|
578
578
|
function renderCard(child, childIdx, context, uniqueId, borderRadius, imageHeight, border, fontFamily, textColor, backgroundColor, innerBorderRadius) {
|
|
579
579
|
const attrs = child.attributes;
|
|
580
|
-
const href = attrs["href"] ||
|
|
580
|
+
const href = attrs["href"] || "#";
|
|
581
581
|
const price = formatPrice(attrs["price"] || "$0");
|
|
582
582
|
const beds = formatNumber(attrs["beds"] || "--");
|
|
583
583
|
const baths = formatNumber(attrs["baths"] || "--");
|
|
@@ -880,7 +880,7 @@ function propertyCardTripleToMjml(block, context) {
|
|
|
880
880
|
const cardNum = index + 1;
|
|
881
881
|
const childAttrs = child.attributes || {};
|
|
882
882
|
productionAttrs[`image-src-${cardNum}`] = childAttrs["image-src"] || "";
|
|
883
|
-
productionAttrs[`href-${cardNum}`] = childAttrs["href"] ||
|
|
883
|
+
productionAttrs[`href-${cardNum}`] = childAttrs["href"] || "#";
|
|
884
884
|
productionAttrs[`price-${cardNum}`] = childAttrs["price"] || "$0";
|
|
885
885
|
productionAttrs[`beds-${cardNum}`] = childAttrs["beds"] || "--";
|
|
886
886
|
productionAttrs[`baths-${cardNum}`] = childAttrs["baths"] || "--";
|
|
@@ -1406,7 +1406,7 @@ function createPropertyCardElement(payload) {
|
|
|
1406
1406
|
"beds": "--",
|
|
1407
1407
|
"baths": "--",
|
|
1408
1408
|
"sqft": "--",
|
|
1409
|
-
"
|
|
1409
|
+
"href": "#",
|
|
1410
1410
|
"status": "Empty",
|
|
1411
1411
|
"is-status": "show",
|
|
1412
1412
|
"status-color": "#B8B8B8",
|
|
@@ -1435,7 +1435,7 @@ function createPropertyCardSingleTwoElement(payload) {
|
|
|
1435
1435
|
"beds": "--",
|
|
1436
1436
|
"baths": "--",
|
|
1437
1437
|
"sqft": "--",
|
|
1438
|
-
"
|
|
1438
|
+
"href": "#",
|
|
1439
1439
|
"status": "Empty",
|
|
1440
1440
|
"is-status": "show",
|
|
1441
1441
|
"status-color": "#B8B8B8",
|
|
@@ -1522,7 +1522,7 @@ function createPropertyCardTripleItemElement(payload) {
|
|
|
1522
1522
|
data: { value: {} },
|
|
1523
1523
|
attributes: {
|
|
1524
1524
|
"image-src": payload?.attributes?.["image-src"] || "https://cornerstonepropertymgmt.com/wp-content/themes/cornerstone/assets/img/nofeaturedimage.jpg",
|
|
1525
|
-
"
|
|
1525
|
+
"href": payload?.attributes?.["href"] || "#",
|
|
1526
1526
|
"price": payload?.attributes?.["price"] || "$0",
|
|
1527
1527
|
"beds": payload?.attributes?.["beds"] || "--",
|
|
1528
1528
|
"baths": payload?.attributes?.["baths"] || "--",
|
package/dist/index.js
CHANGED
|
@@ -267,7 +267,7 @@ var init_format = __esm({
|
|
|
267
267
|
function propertyCardMockMjml(block, context) {
|
|
268
268
|
const a = block.attributes;
|
|
269
269
|
const trackingClasses = context.mode === "editing" ? getTrackingClasses(context.idx, "property-card") : "";
|
|
270
|
-
const href = a["href"] ||
|
|
270
|
+
const href = a["href"] || "#";
|
|
271
271
|
const price = formatPrice(a["price"] || "$0");
|
|
272
272
|
const address = a["address"] || "123 Main Street";
|
|
273
273
|
const city = a["city"] || "City, ST 00000";
|
|
@@ -644,7 +644,7 @@ var init_mock_property_singletwo = __esm({
|
|
|
644
644
|
// src/render/Mockup/mock-property-triple-better.ts
|
|
645
645
|
function renderCard(child, childIdx, context, uniqueId, borderRadius, imageHeight, border, fontFamily, textColor, backgroundColor, innerBorderRadius) {
|
|
646
646
|
const attrs = child.attributes;
|
|
647
|
-
const href = attrs["href"] ||
|
|
647
|
+
const href = attrs["href"] || "#";
|
|
648
648
|
const price = formatPrice(attrs["price"] || "$0");
|
|
649
649
|
const beds = formatNumber(attrs["beds"] || "--");
|
|
650
650
|
const baths = formatNumber(attrs["baths"] || "--");
|
|
@@ -948,7 +948,7 @@ function propertyCardTripleToMjml(block, context) {
|
|
|
948
948
|
const cardNum = index + 1;
|
|
949
949
|
const childAttrs = child.attributes || {};
|
|
950
950
|
productionAttrs[`image-src-${cardNum}`] = childAttrs["image-src"] || "";
|
|
951
|
-
productionAttrs[`href-${cardNum}`] = childAttrs["href"] ||
|
|
951
|
+
productionAttrs[`href-${cardNum}`] = childAttrs["href"] || "#";
|
|
952
952
|
productionAttrs[`price-${cardNum}`] = childAttrs["price"] || "$0";
|
|
953
953
|
productionAttrs[`beds-${cardNum}`] = childAttrs["beds"] || "--";
|
|
954
954
|
productionAttrs[`baths-${cardNum}`] = childAttrs["baths"] || "--";
|
|
@@ -1492,7 +1492,7 @@ function createPropertyCardElement(payload) {
|
|
|
1492
1492
|
"beds": "--",
|
|
1493
1493
|
"baths": "--",
|
|
1494
1494
|
"sqft": "--",
|
|
1495
|
-
"
|
|
1495
|
+
"href": "#",
|
|
1496
1496
|
"status": "Empty",
|
|
1497
1497
|
"is-status": "show",
|
|
1498
1498
|
"status-color": "#B8B8B8",
|
|
@@ -1521,7 +1521,7 @@ function createPropertyCardSingleTwoElement(payload) {
|
|
|
1521
1521
|
"beds": "--",
|
|
1522
1522
|
"baths": "--",
|
|
1523
1523
|
"sqft": "--",
|
|
1524
|
-
"
|
|
1524
|
+
"href": "#",
|
|
1525
1525
|
"status": "Empty",
|
|
1526
1526
|
"is-status": "show",
|
|
1527
1527
|
"status-color": "#B8B8B8",
|
|
@@ -1608,7 +1608,7 @@ function createPropertyCardTripleItemElement(payload) {
|
|
|
1608
1608
|
data: { value: {} },
|
|
1609
1609
|
attributes: {
|
|
1610
1610
|
"image-src": payload?.attributes?.["image-src"] || "https://cornerstonepropertymgmt.com/wp-content/themes/cornerstone/assets/img/nofeaturedimage.jpg",
|
|
1611
|
-
"
|
|
1611
|
+
"href": payload?.attributes?.["href"] || "#",
|
|
1612
1612
|
"price": payload?.attributes?.["price"] || "$0",
|
|
1613
1613
|
"beds": payload?.attributes?.["beds"] || "--",
|
|
1614
1614
|
"baths": payload?.attributes?.["baths"] || "--",
|
package/dist/index.mjs
CHANGED
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
useEditorStore,
|
|
62
62
|
useSidebarContext,
|
|
63
63
|
useUser
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-TDZCSKBT.mjs";
|
|
65
65
|
|
|
66
66
|
// src/core/editor/components/email-template-v2/header.tsx
|
|
67
67
|
import { ArrowLeftIcon, CopyIcon, MegaphoneIcon, MoreHorizontalIcon, PencilIcon, TrashIcon } from "lucide-react";
|
|
@@ -7810,7 +7810,7 @@ function useAutoSave() {
|
|
|
7810
7810
|
// src/core/editor/components/email-template-v2/template-page.tsx
|
|
7811
7811
|
import "react-json-view-lite/dist/index.css";
|
|
7812
7812
|
import { jsx as jsx67, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
7813
|
-
var Editor2 = lazy(() => import("./core-
|
|
7813
|
+
var Editor2 = lazy(() => import("./core-F5E63TCH.mjs").then((module) => ({
|
|
7814
7814
|
default: module.Editor
|
|
7815
7815
|
})));
|
|
7816
7816
|
function TemplatePage({
|