@burdenoff/microfe-product 2026.517.1 → 2026.517.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/generated/global-operations.d.ts +5 -0
- package/dist/generated/global-operations.d.ts.map +1 -1
- package/dist/generated/global-operations.js +3 -0
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.d.ts +2 -0
- package/dist/generated/global-types.d.ts.map +1 -1
- package/dist/generated/global-types.js.map +1 -1
- package/dist/product-management/modules/content-pages/components/ContentPageForm.d.ts.map +1 -1
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js +138 -53
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.d.ts.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +135 -98
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -1
- package/dist/product-management/modules/content-pages/schemas/index.d.ts +10 -0
- package/dist/product-management/modules/content-pages/schemas/index.d.ts.map +1 -1
- package/dist/product-management/modules/content-pages/schemas/index.js +48 -38
- package/dist/product-management/modules/content-pages/schemas/index.js.map +1 -1
- package/dist/product-management/modules/content-pages/types/index.d.ts +5 -0
- package/dist/product-management/modules/content-pages/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentPageForm.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/content-pages/components/ContentPageForm.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAGnG,UAAU,oBAAoB;IAC5B,WAAW,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACxC,QAAQ,EAAE,CAAC,IAAI,EAAE,sBAAsB,GAAG,sBAAsB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnF,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AA0ID,wBAAgB,eAAe,CAAC,EAC9B,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,OAAO,GACR,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"ContentPageForm.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/content-pages/components/ContentPageForm.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAGnG,UAAU,oBAAoB;IAC5B,WAAW,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACxC,QAAQ,EAAE,CAAC,IAAI,EAAE,sBAAsB,GAAG,sBAAsB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnF,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AA0ID,wBAAgB,eAAe,CAAC,EAC9B,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,OAAO,GACR,EAAE,oBAAoB,2CAu2BtB"}
|
|
@@ -86,6 +86,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
86
86
|
seoDescription: c?.seoDescription || "",
|
|
87
87
|
seoKeywords: c?.seoKeywords || "",
|
|
88
88
|
isPublished: c?.isPublished ?? !1,
|
|
89
|
+
visibility: c?.visibility ?? "PUBLIC",
|
|
89
90
|
sortOrder: c?.sortOrder ?? 0,
|
|
90
91
|
productId: c?.productId || "",
|
|
91
92
|
excerpt: c?.excerpt || "",
|
|
@@ -95,23 +96,30 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
95
96
|
readingTime: c?.readingTime ?? 0,
|
|
96
97
|
featured: c?.featured ?? !1,
|
|
97
98
|
category: c?.category || ""
|
|
98
|
-
}), [v, C] = s(c?.tags ?? []),
|
|
99
|
+
}), [v, C] = s(c?.tags ?? []), w = [
|
|
100
|
+
"blog",
|
|
101
|
+
"legal",
|
|
102
|
+
"docs",
|
|
103
|
+
"page"
|
|
104
|
+
], [T, E] = s((c?.tags ?? []).find((e) => w.includes(e)) || "page"), D = (e) => {
|
|
105
|
+
E(e), C((t) => [e, ...t.filter((e) => !w.includes(e))]);
|
|
106
|
+
}, [O, k] = s({}), [A, j] = s(!1), M = o(null), N = () => {
|
|
99
107
|
try {
|
|
100
108
|
let e = c ? i : r, t = { ...h };
|
|
101
|
-
return t.sortOrder = typeof h.sortOrder == "string" ? parseInt(h.sortOrder, 10) || 0 : h.sortOrder, t.seoTitle || delete t.seoTitle, t.seoDescription || delete t.seoDescription, t.seoKeywords || delete t.seoKeywords, t.productId || delete t.productId, t.contentFormat ||= "markdown", t.excerpt || delete t.excerpt, t.thumbnail || delete t.thumbnail, t.author || delete t.author, t.publishedAt || delete t.publishedAt, t.readingTime || delete t.readingTime, t.category || delete t.category, e.parse(t),
|
|
109
|
+
return t.sortOrder = typeof h.sortOrder == "string" ? parseInt(h.sortOrder, 10) || 0 : h.sortOrder, t.seoTitle || delete t.seoTitle, t.seoDescription || delete t.seoDescription, t.seoKeywords || delete t.seoKeywords, t.productId || delete t.productId, t.contentFormat ||= "markdown", t.excerpt || delete t.excerpt, t.thumbnail || delete t.thumbnail, t.author || delete t.author, t.publishedAt || delete t.publishedAt, t.readingTime || delete t.readingTime, t.category || delete t.category, e.parse(t), k({}), !0;
|
|
102
110
|
} catch (e) {
|
|
103
111
|
if (e instanceof t) {
|
|
104
112
|
let t = {};
|
|
105
113
|
e.issues.forEach((e) => {
|
|
106
114
|
let n = e.path.join(".");
|
|
107
115
|
t[n] = e.message;
|
|
108
|
-
}),
|
|
116
|
+
}), k(t);
|
|
109
117
|
}
|
|
110
118
|
return !1;
|
|
111
119
|
}
|
|
112
|
-
},
|
|
113
|
-
if (e.preventDefault(), !
|
|
114
|
-
let t = typeof h.sortOrder == "string" ? parseInt(h.sortOrder, 10) || 0 : h.sortOrder;
|
|
120
|
+
}, P = async (e) => {
|
|
121
|
+
if (e.preventDefault(), !N()) return;
|
|
122
|
+
let t = typeof h.sortOrder == "string" ? parseInt(h.sortOrder, 10) || 0 : h.sortOrder, n = [T, ...v.filter((e) => !w.includes(e))];
|
|
115
123
|
await l(c ? {
|
|
116
124
|
title: h.title === c.title ? void 0 : h.title,
|
|
117
125
|
content: h.content === c.content ? void 0 : h.content,
|
|
@@ -120,9 +128,10 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
120
128
|
seoDescription: h.seoDescription === (c.seoDescription || "") ? void 0 : h.seoDescription || void 0,
|
|
121
129
|
seoKeywords: h.seoKeywords === (c.seoKeywords || "") ? void 0 : h.seoKeywords || void 0,
|
|
122
130
|
isPublished: h.isPublished === c.isPublished ? void 0 : h.isPublished,
|
|
131
|
+
visibility: h.visibility === c.visibility ? void 0 : h.visibility,
|
|
123
132
|
sortOrder: t === c.sortOrder ? void 0 : t,
|
|
124
133
|
productId: h.productId === (c.productId || "") ? void 0 : h.productId || void 0,
|
|
125
|
-
tags:
|
|
134
|
+
tags: n,
|
|
126
135
|
excerpt: h.excerpt || void 0,
|
|
127
136
|
thumbnail: h.thumbnail || void 0,
|
|
128
137
|
author: h.author || void 0,
|
|
@@ -139,9 +148,10 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
139
148
|
seoDescription: h.seoDescription || void 0,
|
|
140
149
|
seoKeywords: h.seoKeywords || void 0,
|
|
141
150
|
isPublished: h.isPublished,
|
|
151
|
+
visibility: h.visibility,
|
|
142
152
|
sortOrder: t,
|
|
143
153
|
productId: h.productId || void 0,
|
|
144
|
-
tags:
|
|
154
|
+
tags: n,
|
|
145
155
|
excerpt: h.excerpt || void 0,
|
|
146
156
|
thumbnail: h.thumbnail || void 0,
|
|
147
157
|
author: h.author || void 0,
|
|
@@ -150,8 +160,8 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
150
160
|
featured: h.featured,
|
|
151
161
|
category: h.category || void 0
|
|
152
162
|
});
|
|
153
|
-
},
|
|
154
|
-
let t =
|
|
163
|
+
}, F = a((e) => {
|
|
164
|
+
let t = M.current;
|
|
155
165
|
if (!t) return;
|
|
156
166
|
let { selectionStart: n, selectionEnd: r } = t, i = h.content, a = i.substring(n, r) || e.placeholder, o, s, c;
|
|
157
167
|
o = e.block && n > 0 && i[n - 1] !== "\n" ? `\n${e.prefix}${a}${e.suffix}` : `${e.prefix}${a}${e.suffix}`;
|
|
@@ -162,9 +172,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
162
172
|
})), s = n + o.indexOf(a), c = s + a.length, requestAnimationFrame(() => {
|
|
163
173
|
t.focus(), t.setSelectionRange(s, c);
|
|
164
174
|
});
|
|
165
|
-
}, [h.content]),
|
|
175
|
+
}, [h.content]), I = "\n w-full px-3 py-2\n bg-surface\n border border-default\n rounded-lg\n text-text-primary\n placeholder:text-text-tertiary\n focus:outline-none focus:ring-2 focus:ring-[var(--color-border-focus)]\n disabled:bg-muted disabled:cursor-not-allowed\n transition-all duration-200\n ";
|
|
166
176
|
return /* @__PURE__ */ b("form", {
|
|
167
|
-
onSubmit:
|
|
177
|
+
onSubmit: P,
|
|
168
178
|
className: "space-y-6 animate-in fade-in duration-300",
|
|
169
179
|
children: [
|
|
170
180
|
/* @__PURE__ */ b("div", {
|
|
@@ -174,6 +184,42 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
174
184
|
className: "text-sm font-semibold text-text-secondary uppercase tracking-wider",
|
|
175
185
|
children: m("contentPages.basicInformation", "Basic Information")
|
|
176
186
|
}),
|
|
187
|
+
/* @__PURE__ */ b("div", { children: [
|
|
188
|
+
/* @__PURE__ */ y("label", {
|
|
189
|
+
htmlFor: "pageType",
|
|
190
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
191
|
+
children: m("contentPages.pageType", "Page Type")
|
|
192
|
+
}),
|
|
193
|
+
/* @__PURE__ */ b("select", {
|
|
194
|
+
id: "pageType",
|
|
195
|
+
value: T,
|
|
196
|
+
onChange: (e) => D(e.target.value),
|
|
197
|
+
className: I,
|
|
198
|
+
disabled: p,
|
|
199
|
+
children: [
|
|
200
|
+
/* @__PURE__ */ y("option", {
|
|
201
|
+
value: "blog",
|
|
202
|
+
children: m("contentPages.typeBlog", "Blog Post")
|
|
203
|
+
}),
|
|
204
|
+
/* @__PURE__ */ y("option", {
|
|
205
|
+
value: "legal",
|
|
206
|
+
children: m("contentPages.typeLegal", "Legal")
|
|
207
|
+
}),
|
|
208
|
+
/* @__PURE__ */ y("option", {
|
|
209
|
+
value: "docs",
|
|
210
|
+
children: m("contentPages.typeDocs", "Documentation")
|
|
211
|
+
}),
|
|
212
|
+
/* @__PURE__ */ y("option", {
|
|
213
|
+
value: "page",
|
|
214
|
+
children: m("contentPages.typePage", "General Page")
|
|
215
|
+
})
|
|
216
|
+
]
|
|
217
|
+
}),
|
|
218
|
+
/* @__PURE__ */ y("p", {
|
|
219
|
+
className: "text-xs text-text-tertiary mt-1",
|
|
220
|
+
children: m("contentPages.pageTypeHint", "Sets the primary tag and which fields apply. Blog Posts get the Blog Fields section below.")
|
|
221
|
+
})
|
|
222
|
+
] }),
|
|
177
223
|
/* @__PURE__ */ b("div", { children: [
|
|
178
224
|
/* @__PURE__ */ b("label", {
|
|
179
225
|
htmlFor: "slug",
|
|
@@ -195,7 +241,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
195
241
|
...h,
|
|
196
242
|
slug: e.target.value.toLowerCase().replace(/\s+/g, "-")
|
|
197
243
|
}),
|
|
198
|
-
className:
|
|
244
|
+
className: I,
|
|
199
245
|
placeholder: "page-slug",
|
|
200
246
|
disabled: p || !!c,
|
|
201
247
|
required: !c
|
|
@@ -204,9 +250,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
204
250
|
className: "text-xs text-text-tertiary mt-1",
|
|
205
251
|
children: m("contentPages.slugHint", "Lowercase letters, numbers, and hyphens only. Cannot be changed after creation.")
|
|
206
252
|
}),
|
|
207
|
-
|
|
253
|
+
O.slug && /* @__PURE__ */ y("p", {
|
|
208
254
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
209
|
-
children:
|
|
255
|
+
children: O.slug
|
|
210
256
|
})
|
|
211
257
|
] }),
|
|
212
258
|
/* @__PURE__ */ b("div", { children: [
|
|
@@ -230,14 +276,14 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
230
276
|
...h,
|
|
231
277
|
title: e.target.value
|
|
232
278
|
}),
|
|
233
|
-
className:
|
|
279
|
+
className: I,
|
|
234
280
|
placeholder: m("contentPages.enterPageTitle", "Enter page title"),
|
|
235
281
|
disabled: p,
|
|
236
282
|
required: !0
|
|
237
283
|
}),
|
|
238
|
-
|
|
284
|
+
O.title && /* @__PURE__ */ y("p", {
|
|
239
285
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
240
|
-
children:
|
|
286
|
+
children: O.title
|
|
241
287
|
})
|
|
242
288
|
] })
|
|
243
289
|
]
|
|
@@ -260,8 +306,8 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
260
306
|
return /* @__PURE__ */ y("button", {
|
|
261
307
|
type: "button",
|
|
262
308
|
title: e.label,
|
|
263
|
-
onClick: () =>
|
|
264
|
-
disabled: p ||
|
|
309
|
+
onClick: () => F(e),
|
|
310
|
+
disabled: p || A,
|
|
265
311
|
className: "\n inline-flex items-center justify-center\n w-8 h-8\n rounded\n text-text-secondary\n hover:bg-muted hover:text-text-primary\n transition-all duration-150\n disabled:opacity-50 disabled:cursor-not-allowed\n ",
|
|
266
312
|
children: /* @__PURE__ */ y(t, { size: 16 })
|
|
267
313
|
}, e.label);
|
|
@@ -270,28 +316,28 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
270
316
|
className: "flex items-center gap-1",
|
|
271
317
|
children: [/* @__PURE__ */ b("button", {
|
|
272
318
|
type: "button",
|
|
273
|
-
onClick: () =>
|
|
319
|
+
onClick: () => j(!1),
|
|
274
320
|
className: `
|
|
275
321
|
inline-flex items-center gap-1.5 px-3 py-1 rounded text-xs font-medium
|
|
276
322
|
transition-all duration-150
|
|
277
|
-
${
|
|
323
|
+
${A ? "text-text-tertiary hover:text-text-secondary" : "bg-surface text-text-primary shadow-sm"}
|
|
278
324
|
`,
|
|
279
325
|
children: [/* @__PURE__ */ y(d, { size: 14 }), m("contentPages.editMode", "Edit")]
|
|
280
326
|
}), /* @__PURE__ */ b("button", {
|
|
281
327
|
type: "button",
|
|
282
|
-
onClick: () =>
|
|
328
|
+
onClick: () => j(!0),
|
|
283
329
|
className: `
|
|
284
330
|
inline-flex items-center gap-1.5 px-3 py-1 rounded text-xs font-medium
|
|
285
331
|
transition-all duration-150
|
|
286
|
-
${
|
|
332
|
+
${A ? "bg-surface text-text-primary shadow-sm" : "text-text-tertiary hover:text-text-secondary"}
|
|
287
333
|
`,
|
|
288
334
|
children: [/* @__PURE__ */ y(u, { size: 14 }), m("contentPages.previewMode", "Preview")]
|
|
289
335
|
})]
|
|
290
336
|
})]
|
|
291
337
|
}), /* @__PURE__ */ b("div", {
|
|
292
338
|
className: "relative",
|
|
293
|
-
children: [!
|
|
294
|
-
ref:
|
|
339
|
+
children: [!A && /* @__PURE__ */ y("textarea", {
|
|
340
|
+
ref: M,
|
|
295
341
|
id: "content",
|
|
296
342
|
value: h.content,
|
|
297
343
|
onChange: (e) => g({
|
|
@@ -301,15 +347,15 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
301
347
|
className: "\n w-full px-4 py-3\n min-h-[400px]\n bg-surface\n text-text-primary\n placeholder:text-text-tertiary\n focus:outline-none\n disabled:bg-muted disabled:cursor-not-allowed\n font-mono text-sm\n resize-y\n transition-all duration-200\n ",
|
|
302
348
|
placeholder: m("contentPages.writeContentPlaceholder", "Write your content in markdown..."),
|
|
303
349
|
disabled: p
|
|
304
|
-
}),
|
|
350
|
+
}), A && /* @__PURE__ */ y("div", {
|
|
305
351
|
className: "\n w-full px-4 py-3\n min-h-[400px]\n bg-surface\n text-text-primary\n overflow-y-auto\n prose-like\n ",
|
|
306
352
|
dangerouslySetInnerHTML: { __html: h.content ? x(h.content) : "<p class=\"text-gray-400 italic\">Nothing to preview yet. Start writing in the editor.</p>" }
|
|
307
353
|
})]
|
|
308
354
|
})]
|
|
309
355
|
}),
|
|
310
|
-
|
|
356
|
+
O.content && /* @__PURE__ */ y("p", {
|
|
311
357
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
312
|
-
children:
|
|
358
|
+
children: O.content
|
|
313
359
|
})
|
|
314
360
|
]
|
|
315
361
|
}),
|
|
@@ -334,7 +380,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
334
380
|
...h,
|
|
335
381
|
seoTitle: e.target.value
|
|
336
382
|
}),
|
|
337
|
-
className:
|
|
383
|
+
className: I,
|
|
338
384
|
placeholder: m("contentPages.seoTitlePlaceholder", "Page title for search engines"),
|
|
339
385
|
disabled: p
|
|
340
386
|
}),
|
|
@@ -342,9 +388,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
342
388
|
className: "text-xs text-text-tertiary mt-1",
|
|
343
389
|
children: [h.seoTitle.length, "/100 characters"]
|
|
344
390
|
}),
|
|
345
|
-
|
|
391
|
+
O.seoTitle && /* @__PURE__ */ y("p", {
|
|
346
392
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
347
|
-
children:
|
|
393
|
+
children: O.seoTitle
|
|
348
394
|
})
|
|
349
395
|
] }),
|
|
350
396
|
/* @__PURE__ */ b("div", { children: [
|
|
@@ -361,7 +407,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
361
407
|
seoDescription: e.target.value
|
|
362
408
|
}),
|
|
363
409
|
rows: 3,
|
|
364
|
-
className:
|
|
410
|
+
className: I,
|
|
365
411
|
placeholder: m("contentPages.seoDescriptionPlaceholder", "Brief description for search engine results"),
|
|
366
412
|
disabled: p
|
|
367
413
|
}),
|
|
@@ -369,9 +415,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
369
415
|
className: "text-xs text-text-tertiary mt-1",
|
|
370
416
|
children: [h.seoDescription.length, "/300 characters"]
|
|
371
417
|
}),
|
|
372
|
-
|
|
418
|
+
O.seoDescription && /* @__PURE__ */ y("p", {
|
|
373
419
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
374
|
-
children:
|
|
420
|
+
children: O.seoDescription
|
|
375
421
|
})
|
|
376
422
|
] }),
|
|
377
423
|
/* @__PURE__ */ b("div", { children: [
|
|
@@ -388,7 +434,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
388
434
|
...h,
|
|
389
435
|
seoKeywords: e.target.value
|
|
390
436
|
}),
|
|
391
|
-
className:
|
|
437
|
+
className: I,
|
|
392
438
|
placeholder: "keyword1, keyword2, keyword3",
|
|
393
439
|
disabled: p
|
|
394
440
|
}),
|
|
@@ -400,14 +446,14 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
400
446
|
"/200 characters"
|
|
401
447
|
]
|
|
402
448
|
}),
|
|
403
|
-
|
|
449
|
+
O.seoKeywords && /* @__PURE__ */ y("p", {
|
|
404
450
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
405
|
-
children:
|
|
451
|
+
children: O.seoKeywords
|
|
406
452
|
})
|
|
407
453
|
] })
|
|
408
454
|
]
|
|
409
455
|
}),
|
|
410
|
-
/* @__PURE__ */ b("div", {
|
|
456
|
+
T === "blog" && /* @__PURE__ */ b("div", {
|
|
411
457
|
className: "space-y-4 pt-4 border-t border-default",
|
|
412
458
|
children: [
|
|
413
459
|
/* @__PURE__ */ y("h3", {
|
|
@@ -432,7 +478,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
432
478
|
excerpt: e.target.value
|
|
433
479
|
}),
|
|
434
480
|
rows: 2,
|
|
435
|
-
className:
|
|
481
|
+
className: I,
|
|
436
482
|
placeholder: "Short description shown on blog cards",
|
|
437
483
|
disabled: p
|
|
438
484
|
}),
|
|
@@ -455,7 +501,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
455
501
|
...h,
|
|
456
502
|
thumbnail: e.target.value
|
|
457
503
|
}),
|
|
458
|
-
className:
|
|
504
|
+
className: I,
|
|
459
505
|
placeholder: "https://images.unsplash.com/...",
|
|
460
506
|
disabled: p
|
|
461
507
|
}),
|
|
@@ -483,7 +529,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
483
529
|
...h,
|
|
484
530
|
author: e.target.value
|
|
485
531
|
}),
|
|
486
|
-
className:
|
|
532
|
+
className: I,
|
|
487
533
|
placeholder: "Author name",
|
|
488
534
|
disabled: p
|
|
489
535
|
})] }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
|
|
@@ -498,7 +544,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
498
544
|
...h,
|
|
499
545
|
category: e.target.value
|
|
500
546
|
}),
|
|
501
|
-
className:
|
|
547
|
+
className: I,
|
|
502
548
|
placeholder: "Engineering, Product, Company",
|
|
503
549
|
disabled: p
|
|
504
550
|
})] })]
|
|
@@ -517,7 +563,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
517
563
|
...h,
|
|
518
564
|
publishedAt: e.target.value
|
|
519
565
|
}),
|
|
520
|
-
className:
|
|
566
|
+
className: I,
|
|
521
567
|
disabled: p
|
|
522
568
|
})] }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
|
|
523
569
|
htmlFor: "readingTime",
|
|
@@ -533,7 +579,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
533
579
|
...h,
|
|
534
580
|
readingTime: parseInt(e.target.value, 10) || 0
|
|
535
581
|
}),
|
|
536
|
-
className:
|
|
582
|
+
className: I,
|
|
537
583
|
placeholder: "5",
|
|
538
584
|
disabled: p
|
|
539
585
|
})] })]
|
|
@@ -609,10 +655,49 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
609
655
|
children: h.isPublished ? m("contentPages.published", "Published") : m("contentPages.draft", "Draft")
|
|
610
656
|
})]
|
|
611
657
|
}),
|
|
612
|
-
|
|
658
|
+
O.isPublished && /* @__PURE__ */ y("p", {
|
|
613
659
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
614
|
-
children:
|
|
660
|
+
children: O.isPublished
|
|
615
661
|
}),
|
|
662
|
+
/* @__PURE__ */ b("div", { children: [
|
|
663
|
+
/* @__PURE__ */ y("label", {
|
|
664
|
+
htmlFor: "visibility",
|
|
665
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
666
|
+
children: m("contentPages.visibility", "Visibility")
|
|
667
|
+
}),
|
|
668
|
+
/* @__PURE__ */ b("select", {
|
|
669
|
+
id: "visibility",
|
|
670
|
+
value: h.visibility,
|
|
671
|
+
onChange: (e) => g({
|
|
672
|
+
...h,
|
|
673
|
+
visibility: e.target.value
|
|
674
|
+
}),
|
|
675
|
+
className: I,
|
|
676
|
+
disabled: p,
|
|
677
|
+
children: [
|
|
678
|
+
/* @__PURE__ */ y("option", {
|
|
679
|
+
value: "PUBLIC",
|
|
680
|
+
children: m("contentPages.visibilityPublic", "Public — visible to everyone")
|
|
681
|
+
}),
|
|
682
|
+
/* @__PURE__ */ y("option", {
|
|
683
|
+
value: "AUTHENTICATED",
|
|
684
|
+
children: m("contentPages.visibilityAuthenticated", "Authenticated — signed-in users only")
|
|
685
|
+
}),
|
|
686
|
+
/* @__PURE__ */ y("option", {
|
|
687
|
+
value: "INTERNAL",
|
|
688
|
+
children: m("contentPages.visibilityInternal", "Internal — staff/admin only")
|
|
689
|
+
})
|
|
690
|
+
]
|
|
691
|
+
}),
|
|
692
|
+
/* @__PURE__ */ y("p", {
|
|
693
|
+
className: "text-xs text-text-tertiary mt-1",
|
|
694
|
+
children: m("contentPages.visibilityHint", "Public is required for blog posts and legal pages to appear on the website.")
|
|
695
|
+
}),
|
|
696
|
+
O.visibility && /* @__PURE__ */ y("p", {
|
|
697
|
+
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
698
|
+
children: O.visibility
|
|
699
|
+
})
|
|
700
|
+
] }),
|
|
616
701
|
/* @__PURE__ */ b("div", { children: [
|
|
617
702
|
/* @__PURE__ */ y("label", {
|
|
618
703
|
htmlFor: "sortOrder",
|
|
@@ -628,7 +713,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
628
713
|
...h,
|
|
629
714
|
sortOrder: parseInt(e.target.value, 10) || 0
|
|
630
715
|
}),
|
|
631
|
-
className:
|
|
716
|
+
className: I,
|
|
632
717
|
placeholder: "0",
|
|
633
718
|
disabled: p
|
|
634
719
|
}),
|
|
@@ -636,9 +721,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
636
721
|
className: "text-xs text-text-tertiary mt-1",
|
|
637
722
|
children: m("contentPages.sortOrderHint", "Lower numbers appear first. Default is 0.")
|
|
638
723
|
}),
|
|
639
|
-
|
|
724
|
+
O.sortOrder && /* @__PURE__ */ y("p", {
|
|
640
725
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
641
|
-
children:
|
|
726
|
+
children: O.sortOrder
|
|
642
727
|
})
|
|
643
728
|
] }),
|
|
644
729
|
/* @__PURE__ */ b("div", { children: [
|
|
@@ -655,7 +740,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
655
740
|
...h,
|
|
656
741
|
productId: e.target.value
|
|
657
742
|
}),
|
|
658
|
-
className:
|
|
743
|
+
className: I,
|
|
659
744
|
placeholder: m("contentPages.productIdPlaceholder", "Optional product association"),
|
|
660
745
|
disabled: p
|
|
661
746
|
}),
|
|
@@ -663,9 +748,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
663
748
|
className: "text-xs text-text-tertiary mt-1",
|
|
664
749
|
children: m("contentPages.productIdHint", "Associate this content page with a specific product.")
|
|
665
750
|
}),
|
|
666
|
-
|
|
751
|
+
O.productId && /* @__PURE__ */ y("p", {
|
|
667
752
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
668
|
-
children:
|
|
753
|
+
children: O.productId
|
|
669
754
|
})
|
|
670
755
|
] })
|
|
671
756
|
]
|