@jiggai/kitchen-plugin-marketing 0.5.5 → 0.5.6
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.
|
@@ -827,11 +827,11 @@
|
|
|
827
827
|
}
|
|
828
828
|
function CreateModal() {
|
|
829
829
|
if (!modalOpen) return null;
|
|
830
|
-
|
|
831
|
-
|
|
830
|
+
let charLimit = void 0;
|
|
831
|
+
if (modalPlatforms.length > 0) {
|
|
832
832
|
const limits = modalPlatforms.map((p) => drivers.find((d) => d.platform === p)?.capabilities?.maxLength).filter((l) => l !== void 0);
|
|
833
|
-
|
|
834
|
-
}
|
|
833
|
+
if (limits.length > 0) charLimit = Math.min(...limits);
|
|
834
|
+
}
|
|
835
835
|
return h(
|
|
836
836
|
Portal,
|
|
837
837
|
null,
|
|
@@ -1266,9 +1266,9 @@
|
|
|
1266
1266
|
h("button", { style: s.btnPrimary, onClick: () => openCreateModal() }, "+ New Post")
|
|
1267
1267
|
)
|
|
1268
1268
|
),
|
|
1269
|
-
loading ? h("div", { style: { textAlign: "center", padding: "3rem", color: "var(--ck-text-tertiary)" } }, "Loading calendar\u2026") : view === "week" ?
|
|
1270
|
-
|
|
1271
|
-
|
|
1269
|
+
loading ? h("div", { style: { textAlign: "center", padding: "3rem", color: "var(--ck-text-tertiary)" } }, "Loading calendar\u2026") : view === "week" ? WeekView() : MonthView(),
|
|
1270
|
+
PreviewModal(),
|
|
1271
|
+
CreateModal()
|
|
1272
1272
|
);
|
|
1273
1273
|
}
|
|
1274
1274
|
window.KitchenPlugin.registerTab("marketing", "content-calendar", ContentCalendar);
|