@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
- const charLimit = useMemo(() => {
831
- if (modalPlatforms.length === 0) return void 0;
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
- return limits.length > 0 ? Math.min(...limits) : void 0;
834
- }, [modalPlatforms, drivers]);
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" ? h(WeekView, null) : h(MonthView, null),
1270
- h(PreviewModal, null),
1271
- h(CreateModal, null)
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jiggai/kitchen-plugin-marketing",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "description": "Marketing Suite plugin for ClawKitchen",
5
5
  "main": "dist/index.js",
6
6
  "files": [