@jiggai/kitchen-plugin-marketing 0.2.2 → 0.2.3
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.
- package/dist/tabs/accounts.js +44 -29
- package/dist/tabs/analytics.js +37 -21
- package/dist/tabs/content-calendar.js +45 -15
- package/dist/tabs/content-library.js +34 -16
- package/package.json +1 -1
package/dist/tabs/accounts.js
CHANGED
|
@@ -3,40 +3,55 @@
|
|
|
3
3
|
(function() {
|
|
4
4
|
const React = window.React;
|
|
5
5
|
if (!React) return;
|
|
6
|
+
const s = {
|
|
7
|
+
page: "padding:2rem;max-width:1200px;margin:0 auto",
|
|
8
|
+
h2: "font-size:1.5rem;font-weight:700;color:var(--ck-text-primary);margin-bottom:1.5rem",
|
|
9
|
+
card: "background:var(--ck-bg-glass);border:1px solid var(--ck-border-subtle);border-radius:14px;padding:1.5rem;backdrop-filter:blur(18px) saturate(1.25)",
|
|
10
|
+
cardTitle: "font-size:1.1rem;font-weight:600;color:var(--ck-text-primary);margin-bottom:1rem",
|
|
11
|
+
muted: "color:var(--ck-text-secondary);font-size:0.9rem",
|
|
12
|
+
mutedSm: "color:var(--ck-text-tertiary);font-size:0.85rem",
|
|
13
|
+
banner: "background:var(--ck-bg-glass);border:1px solid rgba(237,199,80,0.25);border-radius:14px;padding:1.25rem;color:rgba(237,199,80,0.9);font-size:0.9rem;margin-bottom:1.5rem;backdrop-filter:blur(18px)",
|
|
14
|
+
platformGrid: "display:grid;grid-template-columns:repeat(4,1fr);gap:0.75rem;margin-bottom:1.5rem",
|
|
15
|
+
platformBtn: "border:1px solid var(--ck-border-subtle);border-radius:12px;padding:1.25rem 1rem;cursor:pointer;text-align:center;transition:all 0.15s;background:var(--ck-bg-glass);backdrop-filter:blur(18px)",
|
|
16
|
+
platformIcon: "font-size:1.75rem;margin-bottom:0.5rem",
|
|
17
|
+
platformName: "font-size:0.85rem;font-weight:500;color:var(--ck-text-primary)",
|
|
18
|
+
emptyIcon: "font-size:2.5rem;margin-bottom:0.75rem;opacity:0.6",
|
|
19
|
+
emptyCenter: "text-align:center;padding:2.5rem 0"
|
|
20
|
+
};
|
|
6
21
|
function Accounts() {
|
|
7
22
|
return React.createElement("div", { dangerouslySetInnerHTML: { __html: `
|
|
8
|
-
<div
|
|
9
|
-
<h2
|
|
10
|
-
<div
|
|
11
|
-
|
|
23
|
+
<div style="${s.page}">
|
|
24
|
+
<h2 style="${s.h2}">Social Media Accounts</h2>
|
|
25
|
+
<div style="${s.banner}">
|
|
26
|
+
\u{1F517} Connect and manage your social media accounts
|
|
12
27
|
</div>
|
|
13
|
-
<div style="margin-bottom:
|
|
14
|
-
<h3
|
|
15
|
-
<div style="
|
|
16
|
-
<
|
|
17
|
-
<div style="
|
|
18
|
-
<div>Twitter/X</div>
|
|
19
|
-
</
|
|
20
|
-
<
|
|
21
|
-
<div style="
|
|
22
|
-
<div>Instagram</div>
|
|
23
|
-
</
|
|
24
|
-
<
|
|
25
|
-
<div style="
|
|
26
|
-
<div>YouTube</div>
|
|
27
|
-
</
|
|
28
|
-
<
|
|
29
|
-
<div style="
|
|
30
|
-
<div>
|
|
31
|
-
</
|
|
28
|
+
<div style="${s.card};margin-bottom:1rem">
|
|
29
|
+
<h3 style="${s.cardTitle}">Add New Account</h3>
|
|
30
|
+
<div style="${s.platformGrid}">
|
|
31
|
+
<div style="${s.platformBtn}">
|
|
32
|
+
<div style="${s.platformIcon}">\u{1D54F}</div>
|
|
33
|
+
<div style="${s.platformName}">Twitter / X</div>
|
|
34
|
+
</div>
|
|
35
|
+
<div style="${s.platformBtn}">
|
|
36
|
+
<div style="${s.platformIcon}">\u{1F4F7}</div>
|
|
37
|
+
<div style="${s.platformName}">Instagram</div>
|
|
38
|
+
</div>
|
|
39
|
+
<div style="${s.platformBtn}">
|
|
40
|
+
<div style="${s.platformIcon}">\u{1F3AC}</div>
|
|
41
|
+
<div style="${s.platformName}">YouTube</div>
|
|
42
|
+
</div>
|
|
43
|
+
<div style="${s.platformBtn}">
|
|
44
|
+
<div style="${s.platformIcon}">\u{1F4BC}</div>
|
|
45
|
+
<div style="${s.platformName}">LinkedIn</div>
|
|
46
|
+
</div>
|
|
32
47
|
</div>
|
|
33
48
|
</div>
|
|
34
|
-
<div
|
|
35
|
-
<h3
|
|
36
|
-
<div style="
|
|
37
|
-
<div style="
|
|
38
|
-
<p
|
|
39
|
-
<p
|
|
49
|
+
<div style="${s.card}">
|
|
50
|
+
<h3 style="${s.cardTitle}">Connected Accounts</h3>
|
|
51
|
+
<div style="${s.emptyCenter}">
|
|
52
|
+
<div style="${s.emptyIcon}">\u{1F50C}</div>
|
|
53
|
+
<p style="${s.muted}">No accounts connected yet</p>
|
|
54
|
+
<p style="${s.mutedSm}">Click a platform above to get started</p>
|
|
40
55
|
</div>
|
|
41
56
|
</div>
|
|
42
57
|
</div>
|
package/dist/tabs/analytics.js
CHANGED
|
@@ -3,34 +3,50 @@
|
|
|
3
3
|
(function() {
|
|
4
4
|
const React = window.React;
|
|
5
5
|
if (!React) return;
|
|
6
|
+
const s = {
|
|
7
|
+
page: "padding:2rem;max-width:1200px;margin:0 auto",
|
|
8
|
+
h2: "font-size:1.5rem;font-weight:700;color:var(--ck-text-primary);margin-bottom:1.5rem",
|
|
9
|
+
card: "background:var(--ck-bg-glass);border:1px solid var(--ck-border-subtle);border-radius:14px;padding:1.5rem;backdrop-filter:blur(18px) saturate(1.25)",
|
|
10
|
+
cardTitle: "font-size:1.1rem;font-weight:600;color:var(--ck-text-primary);margin-bottom:1rem",
|
|
11
|
+
muted: "color:var(--ck-text-secondary);font-size:0.9rem",
|
|
12
|
+
mutedSm: "color:var(--ck-text-tertiary);font-size:0.85rem",
|
|
13
|
+
banner: "background:var(--ck-bg-glass);border:1px solid rgba(183,148,244,0.25);border-radius:14px;padding:1.25rem;color:rgba(183,148,244,0.9);font-size:0.9rem;margin-bottom:1.5rem;backdrop-filter:blur(18px)",
|
|
14
|
+
statsGrid: "display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:1.5rem",
|
|
15
|
+
statCard: "background:var(--ck-bg-glass);border:1px solid var(--ck-border-subtle);border-radius:14px;padding:1.25rem;text-align:center;backdrop-filter:blur(18px) saturate(1.25)",
|
|
16
|
+
statValue: "font-size:2rem;font-weight:700;margin-bottom:0.25rem",
|
|
17
|
+
statLabel: "color:var(--ck-text-tertiary);font-size:0.8rem;text-transform:uppercase;letter-spacing:0.05em",
|
|
18
|
+
emptyChart: "height:16rem;border-radius:10px;display:flex;align-items:center;justify-content:center;border:1px dashed var(--ck-border-subtle)",
|
|
19
|
+
emptyIcon: "font-size:2.5rem;margin-bottom:0.75rem;opacity:0.6",
|
|
20
|
+
emptyCenter: "text-align:center"
|
|
21
|
+
};
|
|
6
22
|
function Analytics() {
|
|
7
23
|
return React.createElement("div", { dangerouslySetInnerHTML: { __html: `
|
|
8
|
-
<div
|
|
9
|
-
<h2
|
|
10
|
-
<div
|
|
11
|
-
|
|
24
|
+
<div style="${s.page}">
|
|
25
|
+
<h2 style="${s.h2}">Analytics</h2>
|
|
26
|
+
<div style="${s.banner}">
|
|
27
|
+
\u{1F4CA} Track your content performance across platforms
|
|
12
28
|
</div>
|
|
13
|
-
<div style="
|
|
14
|
-
<div
|
|
15
|
-
<div
|
|
16
|
-
<div
|
|
29
|
+
<div style="${s.statsGrid}">
|
|
30
|
+
<div style="${s.statCard}">
|
|
31
|
+
<div style="${s.statValue};color:rgba(99,179,237,0.9)">0</div>
|
|
32
|
+
<div style="${s.statLabel}">Total Posts</div>
|
|
17
33
|
</div>
|
|
18
|
-
<div
|
|
19
|
-
<div
|
|
20
|
-
<div
|
|
34
|
+
<div style="${s.statCard}">
|
|
35
|
+
<div style="${s.statValue};color:rgba(72,187,120,0.9)">0</div>
|
|
36
|
+
<div style="${s.statLabel}">Engagements</div>
|
|
21
37
|
</div>
|
|
22
|
-
<div
|
|
23
|
-
<div
|
|
24
|
-
<div
|
|
38
|
+
<div style="${s.statCard}">
|
|
39
|
+
<div style="${s.statValue};color:rgba(237,137,54,0.9)">0</div>
|
|
40
|
+
<div style="${s.statLabel}">New Followers</div>
|
|
25
41
|
</div>
|
|
26
42
|
</div>
|
|
27
|
-
<div
|
|
28
|
-
<h3
|
|
29
|
-
<div
|
|
30
|
-
<div style="
|
|
31
|
-
<div style="
|
|
32
|
-
<p
|
|
33
|
-
<p
|
|
43
|
+
<div style="${s.card}">
|
|
44
|
+
<h3 style="${s.cardTitle}">Engagement Over Time</h3>
|
|
45
|
+
<div style="${s.emptyChart}">
|
|
46
|
+
<div style="${s.emptyCenter}">
|
|
47
|
+
<div style="${s.emptyIcon}">\u{1F4C8}</div>
|
|
48
|
+
<p style="${s.muted}">Your engagement chart will appear here</p>
|
|
49
|
+
<p style="${s.mutedSm}">Start publishing content to see analytics</p>
|
|
34
50
|
</div>
|
|
35
51
|
</div>
|
|
36
52
|
</div>
|
|
@@ -3,25 +3,55 @@
|
|
|
3
3
|
(function() {
|
|
4
4
|
const React = window.React;
|
|
5
5
|
if (!React) return;
|
|
6
|
+
const s = {
|
|
7
|
+
page: "padding:2rem;max-width:1200px;margin:0 auto",
|
|
8
|
+
h2: "font-size:1.5rem;font-weight:700;color:var(--ck-text-primary);margin-bottom:1.5rem",
|
|
9
|
+
card: "background:var(--ck-bg-glass);border:1px solid var(--ck-border-subtle);border-radius:14px;padding:1.5rem;backdrop-filter:blur(18px) saturate(1.25)",
|
|
10
|
+
muted: "color:var(--ck-text-secondary);font-size:0.9rem",
|
|
11
|
+
mutedSm: "color:var(--ck-text-tertiary);font-size:0.85rem;margin-top:1rem",
|
|
12
|
+
banner: "background:var(--ck-bg-glass);border:1px solid rgba(72,187,120,0.25);border-radius:14px;padding:1.25rem;color:rgba(72,187,120,0.9);font-size:0.9rem;margin-bottom:1.5rem;backdrop-filter:blur(18px)",
|
|
13
|
+
grid7: "display:grid;grid-template-columns:repeat(7,1fr);gap:4px",
|
|
14
|
+
dayHeader: "text-align:center;padding:0.5rem;font-weight:600;font-size:0.8rem;color:var(--ck-text-tertiary);text-transform:uppercase;letter-spacing:0.05em",
|
|
15
|
+
dayCell: "border:1px solid var(--ck-border-subtle);border-radius:8px;padding:0.5rem;min-height:5rem;transition:background 0.15s",
|
|
16
|
+
dayCellActive: "border:1px solid var(--ck-border-subtle);border-radius:8px;padding:0.5rem;min-height:5rem;background:rgba(255,255,255,0.03);transition:background 0.15s",
|
|
17
|
+
dayCellEmpty: "border:1px solid transparent;border-radius:8px;padding:0.5rem;min-height:5rem;opacity:0.3",
|
|
18
|
+
dayNum: "font-size:0.8rem;font-weight:500;color:var(--ck-text-secondary)",
|
|
19
|
+
todayNum: "font-size:0.8rem;font-weight:700;color:rgba(99,179,237,1);background:rgba(99,179,237,0.15);width:1.5rem;height:1.5rem;border-radius:50%;display:inline-flex;align-items:center;justify-content:center"
|
|
20
|
+
};
|
|
21
|
+
const now = /* @__PURE__ */ new Date();
|
|
22
|
+
const year = now.getFullYear();
|
|
23
|
+
const month = now.getMonth();
|
|
24
|
+
const today = now.getDate();
|
|
25
|
+
const firstDay = new Date(year, month, 1).getDay();
|
|
26
|
+
const daysInMonth = new Date(year, month + 1, 0).getDate();
|
|
27
|
+
const monthName = now.toLocaleString("default", { month: "long", year: "numeric" });
|
|
6
28
|
const days = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
|
|
7
|
-
const headerHtml = days.map((d) => `<div
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
29
|
+
const headerHtml = days.map((d) => `<div style="${s.dayHeader}">${d}</div>`).join("");
|
|
30
|
+
let cellsHtml = "";
|
|
31
|
+
for (let i = 0; i < 42; i++) {
|
|
32
|
+
const dayNum = i - firstDay + 1;
|
|
33
|
+
if (dayNum < 1 || dayNum > daysInMonth) {
|
|
34
|
+
cellsHtml += `<div style="${s.dayCellEmpty}"></div>`;
|
|
35
|
+
} else {
|
|
36
|
+
const isToday = dayNum === today;
|
|
37
|
+
const numStyle = isToday ? s.todayNum : s.dayNum;
|
|
38
|
+
cellsHtml += `<div style="${isToday ? s.dayCellActive : s.dayCellActive}">
|
|
39
|
+
<span style="${numStyle}">${dayNum}</span>
|
|
40
|
+
</div>`;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
14
43
|
function ContentCalendar() {
|
|
15
44
|
return React.createElement("div", { dangerouslySetInnerHTML: { __html: `
|
|
16
|
-
<div
|
|
17
|
-
<h2
|
|
18
|
-
<div
|
|
19
|
-
|
|
45
|
+
<div style="${s.page}">
|
|
46
|
+
<h2 style="${s.h2}">Content Calendar</h2>
|
|
47
|
+
<div style="${s.banner}">
|
|
48
|
+
\u{1F4C5} Schedule and plan your content
|
|
20
49
|
</div>
|
|
21
|
-
<div
|
|
22
|
-
<div
|
|
23
|
-
<div
|
|
24
|
-
<
|
|
50
|
+
<div style="${s.card}">
|
|
51
|
+
<div style="text-align:center;font-weight:600;font-size:1.1rem;color:var(--ck-text-primary);margin-bottom:1rem">${monthName}</div>
|
|
52
|
+
<div style="${s.grid7}">${headerHtml}</div>
|
|
53
|
+
<div style="${s.grid7};margin-top:4px">${cellsHtml}</div>
|
|
54
|
+
<p style="${s.mutedSm}">Scheduled posts will appear on their respective dates. Drag to reschedule.</p>
|
|
25
55
|
</div>
|
|
26
56
|
</div>
|
|
27
57
|
` } });
|
|
@@ -3,27 +3,45 @@
|
|
|
3
3
|
(function() {
|
|
4
4
|
const React = window.React;
|
|
5
5
|
if (!React) return;
|
|
6
|
+
const s = {
|
|
7
|
+
page: "padding:2rem;max-width:1200px;margin:0 auto",
|
|
8
|
+
h2: "font-size:1.5rem;font-weight:700;color:var(--ck-text-primary);margin-bottom:1.5rem",
|
|
9
|
+
card: "background:var(--ck-bg-glass);border:1px solid var(--ck-border-subtle);border-radius:14px;padding:1.5rem;backdrop-filter:blur(18px) saturate(1.25)",
|
|
10
|
+
cardTitle: "font-size:1.1rem;font-weight:600;color:var(--ck-text-primary);margin-bottom:0.75rem",
|
|
11
|
+
muted: "color:var(--ck-text-secondary);font-size:0.9rem;line-height:1.6",
|
|
12
|
+
mutedSm: "color:var(--ck-text-tertiary);font-size:0.85rem;font-style:italic",
|
|
13
|
+
stack: "display:flex;flex-direction:column;gap:1rem",
|
|
14
|
+
list: "color:var(--ck-text-secondary);font-size:0.9rem;line-height:2;margin-top:0.5rem;padding-left:1.25rem",
|
|
15
|
+
banner: "background:var(--ck-bg-glass);border:1px solid rgba(99,179,237,0.25);border-radius:14px;padding:1.25rem;color:rgba(99,179,237,0.9);font-size:0.9rem;margin-bottom:1.5rem;backdrop-filter:blur(18px)",
|
|
16
|
+
emptyIcon: "font-size:2.5rem;margin-bottom:0.75rem;opacity:0.6",
|
|
17
|
+
emptyCenter: "text-align:center;padding:2.5rem 0",
|
|
18
|
+
btn: "background:rgba(99,179,237,0.15);border:1px solid rgba(99,179,237,0.3);color:rgba(99,179,237,0.9);padding:0.6rem 1.25rem;border-radius:10px;cursor:pointer;font-size:0.9rem;font-weight:500;transition:all 0.15s"
|
|
19
|
+
};
|
|
6
20
|
function ContentLibrary() {
|
|
7
21
|
return React.createElement("div", { dangerouslySetInnerHTML: { __html: `
|
|
8
|
-
<div
|
|
9
|
-
<h2
|
|
10
|
-
<div
|
|
11
|
-
|
|
22
|
+
<div style="${s.page}">
|
|
23
|
+
<h2 style="${s.h2}">Content Library</h2>
|
|
24
|
+
<div style="${s.banner}">
|
|
25
|
+
\u{1F389} Marketing Suite plugin is active! Manage your content from here.
|
|
12
26
|
</div>
|
|
13
|
-
<div style="
|
|
14
|
-
<div
|
|
15
|
-
<h3
|
|
16
|
-
<p
|
|
17
|
-
<ul
|
|
18
|
-
<li>Rich text editor</li>
|
|
19
|
-
<li>
|
|
20
|
-
<li>
|
|
21
|
-
<li>
|
|
27
|
+
<div style="${s.stack}">
|
|
28
|
+
<div style="${s.card}">
|
|
29
|
+
<h3 style="${s.cardTitle}">Create New Post</h3>
|
|
30
|
+
<p style="${s.muted}">Your content creation tools will live here:</p>
|
|
31
|
+
<ul style="${s.list}">
|
|
32
|
+
<li>Rich text editor with media embedding</li>
|
|
33
|
+
<li>Multi-platform publishing (Twitter, Instagram, LinkedIn)</li>
|
|
34
|
+
<li>Scheduling & auto-posting</li>
|
|
35
|
+
<li>Template library for quick starts</li>
|
|
22
36
|
</ul>
|
|
23
37
|
</div>
|
|
24
|
-
<div
|
|
25
|
-
<h3
|
|
26
|
-
<
|
|
38
|
+
<div style="${s.card}">
|
|
39
|
+
<h3 style="${s.cardTitle}">Recent Posts</h3>
|
|
40
|
+
<div style="${s.emptyCenter}">
|
|
41
|
+
<div style="${s.emptyIcon}">\u270D\uFE0F</div>
|
|
42
|
+
<p style="${s.muted}">No posts yet</p>
|
|
43
|
+
<p style="${s.mutedSm}">Create your first post to get started</p>
|
|
44
|
+
</div>
|
|
27
45
|
</div>
|
|
28
46
|
</div>
|
|
29
47
|
</div>
|