@burdenoff/microfe-product 2026.517.1 → 2026.517.2
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-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 +96 -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/types/index.d.ts +1 -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,2CA6zBtB"}
|
|
@@ -95,23 +95,30 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
95
95
|
readingTime: c?.readingTime ?? 0,
|
|
96
96
|
featured: c?.featured ?? !1,
|
|
97
97
|
category: c?.category || ""
|
|
98
|
-
}), [v, C] = s(c?.tags ?? []),
|
|
98
|
+
}), [v, C] = s(c?.tags ?? []), w = [
|
|
99
|
+
"blog",
|
|
100
|
+
"legal",
|
|
101
|
+
"docs",
|
|
102
|
+
"page"
|
|
103
|
+
], [T, E] = s((c?.tags ?? []).find((e) => w.includes(e)) || "page"), D = (e) => {
|
|
104
|
+
E(e), C((t) => [e, ...t.filter((e) => !w.includes(e))]);
|
|
105
|
+
}, [O, k] = s({}), [A, j] = s(!1), M = o(null), N = () => {
|
|
99
106
|
try {
|
|
100
107
|
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),
|
|
108
|
+
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
109
|
} catch (e) {
|
|
103
110
|
if (e instanceof t) {
|
|
104
111
|
let t = {};
|
|
105
112
|
e.issues.forEach((e) => {
|
|
106
113
|
let n = e.path.join(".");
|
|
107
114
|
t[n] = e.message;
|
|
108
|
-
}),
|
|
115
|
+
}), k(t);
|
|
109
116
|
}
|
|
110
117
|
return !1;
|
|
111
118
|
}
|
|
112
|
-
},
|
|
113
|
-
if (e.preventDefault(), !
|
|
114
|
-
let t = typeof h.sortOrder == "string" ? parseInt(h.sortOrder, 10) || 0 : h.sortOrder;
|
|
119
|
+
}, P = async (e) => {
|
|
120
|
+
if (e.preventDefault(), !N()) return;
|
|
121
|
+
let t = typeof h.sortOrder == "string" ? parseInt(h.sortOrder, 10) || 0 : h.sortOrder, n = [T, ...v.filter((e) => !w.includes(e))];
|
|
115
122
|
await l(c ? {
|
|
116
123
|
title: h.title === c.title ? void 0 : h.title,
|
|
117
124
|
content: h.content === c.content ? void 0 : h.content,
|
|
@@ -122,7 +129,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
122
129
|
isPublished: h.isPublished === c.isPublished ? void 0 : h.isPublished,
|
|
123
130
|
sortOrder: t === c.sortOrder ? void 0 : t,
|
|
124
131
|
productId: h.productId === (c.productId || "") ? void 0 : h.productId || void 0,
|
|
125
|
-
tags:
|
|
132
|
+
tags: n,
|
|
126
133
|
excerpt: h.excerpt || void 0,
|
|
127
134
|
thumbnail: h.thumbnail || void 0,
|
|
128
135
|
author: h.author || void 0,
|
|
@@ -141,7 +148,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
141
148
|
isPublished: h.isPublished,
|
|
142
149
|
sortOrder: t,
|
|
143
150
|
productId: h.productId || void 0,
|
|
144
|
-
tags:
|
|
151
|
+
tags: n,
|
|
145
152
|
excerpt: h.excerpt || void 0,
|
|
146
153
|
thumbnail: h.thumbnail || void 0,
|
|
147
154
|
author: h.author || void 0,
|
|
@@ -150,8 +157,8 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
150
157
|
featured: h.featured,
|
|
151
158
|
category: h.category || void 0
|
|
152
159
|
});
|
|
153
|
-
},
|
|
154
|
-
let t =
|
|
160
|
+
}, F = a((e) => {
|
|
161
|
+
let t = M.current;
|
|
155
162
|
if (!t) return;
|
|
156
163
|
let { selectionStart: n, selectionEnd: r } = t, i = h.content, a = i.substring(n, r) || e.placeholder, o, s, c;
|
|
157
164
|
o = e.block && n > 0 && i[n - 1] !== "\n" ? `\n${e.prefix}${a}${e.suffix}` : `${e.prefix}${a}${e.suffix}`;
|
|
@@ -162,9 +169,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
162
169
|
})), s = n + o.indexOf(a), c = s + a.length, requestAnimationFrame(() => {
|
|
163
170
|
t.focus(), t.setSelectionRange(s, c);
|
|
164
171
|
});
|
|
165
|
-
}, [h.content]),
|
|
172
|
+
}, [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
173
|
return /* @__PURE__ */ b("form", {
|
|
167
|
-
onSubmit:
|
|
174
|
+
onSubmit: P,
|
|
168
175
|
className: "space-y-6 animate-in fade-in duration-300",
|
|
169
176
|
children: [
|
|
170
177
|
/* @__PURE__ */ b("div", {
|
|
@@ -174,6 +181,42 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
174
181
|
className: "text-sm font-semibold text-text-secondary uppercase tracking-wider",
|
|
175
182
|
children: m("contentPages.basicInformation", "Basic Information")
|
|
176
183
|
}),
|
|
184
|
+
/* @__PURE__ */ b("div", { children: [
|
|
185
|
+
/* @__PURE__ */ y("label", {
|
|
186
|
+
htmlFor: "pageType",
|
|
187
|
+
className: "block text-sm font-medium text-text-primary mb-1",
|
|
188
|
+
children: m("contentPages.pageType", "Page Type")
|
|
189
|
+
}),
|
|
190
|
+
/* @__PURE__ */ b("select", {
|
|
191
|
+
id: "pageType",
|
|
192
|
+
value: T,
|
|
193
|
+
onChange: (e) => D(e.target.value),
|
|
194
|
+
className: I,
|
|
195
|
+
disabled: p,
|
|
196
|
+
children: [
|
|
197
|
+
/* @__PURE__ */ y("option", {
|
|
198
|
+
value: "blog",
|
|
199
|
+
children: m("contentPages.typeBlog", "Blog Post")
|
|
200
|
+
}),
|
|
201
|
+
/* @__PURE__ */ y("option", {
|
|
202
|
+
value: "legal",
|
|
203
|
+
children: m("contentPages.typeLegal", "Legal")
|
|
204
|
+
}),
|
|
205
|
+
/* @__PURE__ */ y("option", {
|
|
206
|
+
value: "docs",
|
|
207
|
+
children: m("contentPages.typeDocs", "Documentation")
|
|
208
|
+
}),
|
|
209
|
+
/* @__PURE__ */ y("option", {
|
|
210
|
+
value: "page",
|
|
211
|
+
children: m("contentPages.typePage", "General Page")
|
|
212
|
+
})
|
|
213
|
+
]
|
|
214
|
+
}),
|
|
215
|
+
/* @__PURE__ */ y("p", {
|
|
216
|
+
className: "text-xs text-text-tertiary mt-1",
|
|
217
|
+
children: m("contentPages.pageTypeHint", "Sets the primary tag and which fields apply. Blog Posts get the Blog Fields section below.")
|
|
218
|
+
})
|
|
219
|
+
] }),
|
|
177
220
|
/* @__PURE__ */ b("div", { children: [
|
|
178
221
|
/* @__PURE__ */ b("label", {
|
|
179
222
|
htmlFor: "slug",
|
|
@@ -195,7 +238,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
195
238
|
...h,
|
|
196
239
|
slug: e.target.value.toLowerCase().replace(/\s+/g, "-")
|
|
197
240
|
}),
|
|
198
|
-
className:
|
|
241
|
+
className: I,
|
|
199
242
|
placeholder: "page-slug",
|
|
200
243
|
disabled: p || !!c,
|
|
201
244
|
required: !c
|
|
@@ -204,9 +247,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
204
247
|
className: "text-xs text-text-tertiary mt-1",
|
|
205
248
|
children: m("contentPages.slugHint", "Lowercase letters, numbers, and hyphens only. Cannot be changed after creation.")
|
|
206
249
|
}),
|
|
207
|
-
|
|
250
|
+
O.slug && /* @__PURE__ */ y("p", {
|
|
208
251
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
209
|
-
children:
|
|
252
|
+
children: O.slug
|
|
210
253
|
})
|
|
211
254
|
] }),
|
|
212
255
|
/* @__PURE__ */ b("div", { children: [
|
|
@@ -230,14 +273,14 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
230
273
|
...h,
|
|
231
274
|
title: e.target.value
|
|
232
275
|
}),
|
|
233
|
-
className:
|
|
276
|
+
className: I,
|
|
234
277
|
placeholder: m("contentPages.enterPageTitle", "Enter page title"),
|
|
235
278
|
disabled: p,
|
|
236
279
|
required: !0
|
|
237
280
|
}),
|
|
238
|
-
|
|
281
|
+
O.title && /* @__PURE__ */ y("p", {
|
|
239
282
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
240
|
-
children:
|
|
283
|
+
children: O.title
|
|
241
284
|
})
|
|
242
285
|
] })
|
|
243
286
|
]
|
|
@@ -260,8 +303,8 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
260
303
|
return /* @__PURE__ */ y("button", {
|
|
261
304
|
type: "button",
|
|
262
305
|
title: e.label,
|
|
263
|
-
onClick: () =>
|
|
264
|
-
disabled: p ||
|
|
306
|
+
onClick: () => F(e),
|
|
307
|
+
disabled: p || A,
|
|
265
308
|
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
309
|
children: /* @__PURE__ */ y(t, { size: 16 })
|
|
267
310
|
}, e.label);
|
|
@@ -270,28 +313,28 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
270
313
|
className: "flex items-center gap-1",
|
|
271
314
|
children: [/* @__PURE__ */ b("button", {
|
|
272
315
|
type: "button",
|
|
273
|
-
onClick: () =>
|
|
316
|
+
onClick: () => j(!1),
|
|
274
317
|
className: `
|
|
275
318
|
inline-flex items-center gap-1.5 px-3 py-1 rounded text-xs font-medium
|
|
276
319
|
transition-all duration-150
|
|
277
|
-
${
|
|
320
|
+
${A ? "text-text-tertiary hover:text-text-secondary" : "bg-surface text-text-primary shadow-sm"}
|
|
278
321
|
`,
|
|
279
322
|
children: [/* @__PURE__ */ y(d, { size: 14 }), m("contentPages.editMode", "Edit")]
|
|
280
323
|
}), /* @__PURE__ */ b("button", {
|
|
281
324
|
type: "button",
|
|
282
|
-
onClick: () =>
|
|
325
|
+
onClick: () => j(!0),
|
|
283
326
|
className: `
|
|
284
327
|
inline-flex items-center gap-1.5 px-3 py-1 rounded text-xs font-medium
|
|
285
328
|
transition-all duration-150
|
|
286
|
-
${
|
|
329
|
+
${A ? "bg-surface text-text-primary shadow-sm" : "text-text-tertiary hover:text-text-secondary"}
|
|
287
330
|
`,
|
|
288
331
|
children: [/* @__PURE__ */ y(u, { size: 14 }), m("contentPages.previewMode", "Preview")]
|
|
289
332
|
})]
|
|
290
333
|
})]
|
|
291
334
|
}), /* @__PURE__ */ b("div", {
|
|
292
335
|
className: "relative",
|
|
293
|
-
children: [!
|
|
294
|
-
ref:
|
|
336
|
+
children: [!A && /* @__PURE__ */ y("textarea", {
|
|
337
|
+
ref: M,
|
|
295
338
|
id: "content",
|
|
296
339
|
value: h.content,
|
|
297
340
|
onChange: (e) => g({
|
|
@@ -301,15 +344,15 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
301
344
|
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
345
|
placeholder: m("contentPages.writeContentPlaceholder", "Write your content in markdown..."),
|
|
303
346
|
disabled: p
|
|
304
|
-
}),
|
|
347
|
+
}), A && /* @__PURE__ */ y("div", {
|
|
305
348
|
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
349
|
dangerouslySetInnerHTML: { __html: h.content ? x(h.content) : "<p class=\"text-gray-400 italic\">Nothing to preview yet. Start writing in the editor.</p>" }
|
|
307
350
|
})]
|
|
308
351
|
})]
|
|
309
352
|
}),
|
|
310
|
-
|
|
353
|
+
O.content && /* @__PURE__ */ y("p", {
|
|
311
354
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
312
|
-
children:
|
|
355
|
+
children: O.content
|
|
313
356
|
})
|
|
314
357
|
]
|
|
315
358
|
}),
|
|
@@ -334,7 +377,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
334
377
|
...h,
|
|
335
378
|
seoTitle: e.target.value
|
|
336
379
|
}),
|
|
337
|
-
className:
|
|
380
|
+
className: I,
|
|
338
381
|
placeholder: m("contentPages.seoTitlePlaceholder", "Page title for search engines"),
|
|
339
382
|
disabled: p
|
|
340
383
|
}),
|
|
@@ -342,9 +385,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
342
385
|
className: "text-xs text-text-tertiary mt-1",
|
|
343
386
|
children: [h.seoTitle.length, "/100 characters"]
|
|
344
387
|
}),
|
|
345
|
-
|
|
388
|
+
O.seoTitle && /* @__PURE__ */ y("p", {
|
|
346
389
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
347
|
-
children:
|
|
390
|
+
children: O.seoTitle
|
|
348
391
|
})
|
|
349
392
|
] }),
|
|
350
393
|
/* @__PURE__ */ b("div", { children: [
|
|
@@ -361,7 +404,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
361
404
|
seoDescription: e.target.value
|
|
362
405
|
}),
|
|
363
406
|
rows: 3,
|
|
364
|
-
className:
|
|
407
|
+
className: I,
|
|
365
408
|
placeholder: m("contentPages.seoDescriptionPlaceholder", "Brief description for search engine results"),
|
|
366
409
|
disabled: p
|
|
367
410
|
}),
|
|
@@ -369,9 +412,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
369
412
|
className: "text-xs text-text-tertiary mt-1",
|
|
370
413
|
children: [h.seoDescription.length, "/300 characters"]
|
|
371
414
|
}),
|
|
372
|
-
|
|
415
|
+
O.seoDescription && /* @__PURE__ */ y("p", {
|
|
373
416
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
374
|
-
children:
|
|
417
|
+
children: O.seoDescription
|
|
375
418
|
})
|
|
376
419
|
] }),
|
|
377
420
|
/* @__PURE__ */ b("div", { children: [
|
|
@@ -388,7 +431,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
388
431
|
...h,
|
|
389
432
|
seoKeywords: e.target.value
|
|
390
433
|
}),
|
|
391
|
-
className:
|
|
434
|
+
className: I,
|
|
392
435
|
placeholder: "keyword1, keyword2, keyword3",
|
|
393
436
|
disabled: p
|
|
394
437
|
}),
|
|
@@ -400,14 +443,14 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
400
443
|
"/200 characters"
|
|
401
444
|
]
|
|
402
445
|
}),
|
|
403
|
-
|
|
446
|
+
O.seoKeywords && /* @__PURE__ */ y("p", {
|
|
404
447
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
405
|
-
children:
|
|
448
|
+
children: O.seoKeywords
|
|
406
449
|
})
|
|
407
450
|
] })
|
|
408
451
|
]
|
|
409
452
|
}),
|
|
410
|
-
/* @__PURE__ */ b("div", {
|
|
453
|
+
T === "blog" && /* @__PURE__ */ b("div", {
|
|
411
454
|
className: "space-y-4 pt-4 border-t border-default",
|
|
412
455
|
children: [
|
|
413
456
|
/* @__PURE__ */ y("h3", {
|
|
@@ -432,7 +475,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
432
475
|
excerpt: e.target.value
|
|
433
476
|
}),
|
|
434
477
|
rows: 2,
|
|
435
|
-
className:
|
|
478
|
+
className: I,
|
|
436
479
|
placeholder: "Short description shown on blog cards",
|
|
437
480
|
disabled: p
|
|
438
481
|
}),
|
|
@@ -455,7 +498,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
455
498
|
...h,
|
|
456
499
|
thumbnail: e.target.value
|
|
457
500
|
}),
|
|
458
|
-
className:
|
|
501
|
+
className: I,
|
|
459
502
|
placeholder: "https://images.unsplash.com/...",
|
|
460
503
|
disabled: p
|
|
461
504
|
}),
|
|
@@ -483,7 +526,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
483
526
|
...h,
|
|
484
527
|
author: e.target.value
|
|
485
528
|
}),
|
|
486
|
-
className:
|
|
529
|
+
className: I,
|
|
487
530
|
placeholder: "Author name",
|
|
488
531
|
disabled: p
|
|
489
532
|
})] }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
|
|
@@ -498,7 +541,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
498
541
|
...h,
|
|
499
542
|
category: e.target.value
|
|
500
543
|
}),
|
|
501
|
-
className:
|
|
544
|
+
className: I,
|
|
502
545
|
placeholder: "Engineering, Product, Company",
|
|
503
546
|
disabled: p
|
|
504
547
|
})] })]
|
|
@@ -517,7 +560,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
517
560
|
...h,
|
|
518
561
|
publishedAt: e.target.value
|
|
519
562
|
}),
|
|
520
|
-
className:
|
|
563
|
+
className: I,
|
|
521
564
|
disabled: p
|
|
522
565
|
})] }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
|
|
523
566
|
htmlFor: "readingTime",
|
|
@@ -533,7 +576,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
533
576
|
...h,
|
|
534
577
|
readingTime: parseInt(e.target.value, 10) || 0
|
|
535
578
|
}),
|
|
536
|
-
className:
|
|
579
|
+
className: I,
|
|
537
580
|
placeholder: "5",
|
|
538
581
|
disabled: p
|
|
539
582
|
})] })]
|
|
@@ -609,9 +652,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
609
652
|
children: h.isPublished ? m("contentPages.published", "Published") : m("contentPages.draft", "Draft")
|
|
610
653
|
})]
|
|
611
654
|
}),
|
|
612
|
-
|
|
655
|
+
O.isPublished && /* @__PURE__ */ y("p", {
|
|
613
656
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
614
|
-
children:
|
|
657
|
+
children: O.isPublished
|
|
615
658
|
}),
|
|
616
659
|
/* @__PURE__ */ b("div", { children: [
|
|
617
660
|
/* @__PURE__ */ y("label", {
|
|
@@ -628,7 +671,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
628
671
|
...h,
|
|
629
672
|
sortOrder: parseInt(e.target.value, 10) || 0
|
|
630
673
|
}),
|
|
631
|
-
className:
|
|
674
|
+
className: I,
|
|
632
675
|
placeholder: "0",
|
|
633
676
|
disabled: p
|
|
634
677
|
}),
|
|
@@ -636,9 +679,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
636
679
|
className: "text-xs text-text-tertiary mt-1",
|
|
637
680
|
children: m("contentPages.sortOrderHint", "Lower numbers appear first. Default is 0.")
|
|
638
681
|
}),
|
|
639
|
-
|
|
682
|
+
O.sortOrder && /* @__PURE__ */ y("p", {
|
|
640
683
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
641
|
-
children:
|
|
684
|
+
children: O.sortOrder
|
|
642
685
|
})
|
|
643
686
|
] }),
|
|
644
687
|
/* @__PURE__ */ b("div", { children: [
|
|
@@ -655,7 +698,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
655
698
|
...h,
|
|
656
699
|
productId: e.target.value
|
|
657
700
|
}),
|
|
658
|
-
className:
|
|
701
|
+
className: I,
|
|
659
702
|
placeholder: m("contentPages.productIdPlaceholder", "Optional product association"),
|
|
660
703
|
disabled: p
|
|
661
704
|
}),
|
|
@@ -663,9 +706,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
663
706
|
className: "text-xs text-text-tertiary mt-1",
|
|
664
707
|
children: m("contentPages.productIdHint", "Associate this content page with a specific product.")
|
|
665
708
|
}),
|
|
666
|
-
|
|
709
|
+
O.productId && /* @__PURE__ */ y("p", {
|
|
667
710
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
668
|
-
children:
|
|
711
|
+
children: O.productId
|
|
669
712
|
})
|
|
670
713
|
] })
|
|
671
714
|
]
|