@burdenoff/microfe-product 2026.519.1 → 2026.520.1
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 +36 -0
- package/dist/generated/global-operations.d.ts.map +1 -1
- package/dist/generated/global-operations.js +126 -109
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.d.ts +105 -19
- 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 +68 -68
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js.map +1 -1
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.d.ts.map +1 -1
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js +281 -218
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js.map +1 -1
- package/dist/product-management/modules/press-kit/hooks/usePressKitAssets.d.ts +16 -1
- package/dist/product-management/modules/press-kit/hooks/usePressKitAssets.d.ts.map +1 -1
- package/dist/product-management/modules/press-kit/hooks/usePressKitAssets.js +49 -14
- package/dist/product-management/modules/press-kit/hooks/usePressKitAssets.js.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;
|
|
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;AA+ID,wBAAgB,eAAe,CAAC,EAC9B,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,OAAO,GACR,EAAE,oBAAoB,2CAy2BtB"}
|
|
@@ -75,8 +75,8 @@ var S = [
|
|
|
75
75
|
placeholder: "quote text",
|
|
76
76
|
block: !0
|
|
77
77
|
}
|
|
78
|
-
];
|
|
79
|
-
function
|
|
78
|
+
], C = new Set(["blog", "press"]);
|
|
79
|
+
function w({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
80
80
|
let m = e(), [h, g] = s({
|
|
81
81
|
slug: c?.slug || "",
|
|
82
82
|
title: c?.title || "",
|
|
@@ -96,31 +96,31 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
96
96
|
readingTime: c?.readingTime ?? 0,
|
|
97
97
|
featured: c?.featured ?? !1,
|
|
98
98
|
category: c?.category || ""
|
|
99
|
-
}), [v,
|
|
99
|
+
}), [v, w] = s(c?.tags ?? []), T = [
|
|
100
100
|
"blog",
|
|
101
101
|
"legal",
|
|
102
102
|
"docs",
|
|
103
103
|
"press",
|
|
104
104
|
"page"
|
|
105
|
-
], [
|
|
106
|
-
|
|
107
|
-
}, [
|
|
105
|
+
], [E, D] = s((c?.tags ?? []).find((e) => T.includes(e)) || "page"), O = (e) => {
|
|
106
|
+
D(e), w((t) => [e, ...t.filter((e) => !T.includes(e))]);
|
|
107
|
+
}, [k, A] = s({}), [j, M] = s(!1), N = o(null), P = () => {
|
|
108
108
|
try {
|
|
109
109
|
let e = c ? i : r, t = { ...h };
|
|
110
|
-
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),
|
|
110
|
+
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), A({}), !0;
|
|
111
111
|
} catch (e) {
|
|
112
112
|
if (e instanceof t) {
|
|
113
113
|
let t = {};
|
|
114
114
|
e.issues.forEach((e) => {
|
|
115
115
|
let n = e.path.join(".");
|
|
116
116
|
t[n] = e.message;
|
|
117
|
-
}),
|
|
117
|
+
}), A(t);
|
|
118
118
|
}
|
|
119
119
|
return !1;
|
|
120
120
|
}
|
|
121
|
-
},
|
|
122
|
-
if (e.preventDefault(), !
|
|
123
|
-
let t = typeof h.sortOrder == "string" ? parseInt(h.sortOrder, 10) || 0 : h.sortOrder, n = [
|
|
121
|
+
}, F = async (e) => {
|
|
122
|
+
if (e.preventDefault(), !P()) return;
|
|
123
|
+
let t = typeof h.sortOrder == "string" ? parseInt(h.sortOrder, 10) || 0 : h.sortOrder, n = [E, ...v.filter((e) => !T.includes(e))];
|
|
124
124
|
await l(c ? {
|
|
125
125
|
title: h.title === c.title ? void 0 : h.title,
|
|
126
126
|
content: h.content === c.content ? void 0 : h.content,
|
|
@@ -161,8 +161,8 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
161
161
|
featured: h.featured,
|
|
162
162
|
category: h.category || void 0
|
|
163
163
|
});
|
|
164
|
-
},
|
|
165
|
-
let t =
|
|
164
|
+
}, I = a((e) => {
|
|
165
|
+
let t = N.current;
|
|
166
166
|
if (!t) return;
|
|
167
167
|
let { selectionStart: n, selectionEnd: r } = t, i = h.content, a = i.substring(n, r) || e.placeholder, o, s, c;
|
|
168
168
|
o = e.block && n > 0 && i[n - 1] !== "\n" ? `\n${e.prefix}${a}${e.suffix}` : `${e.prefix}${a}${e.suffix}`;
|
|
@@ -173,9 +173,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
173
173
|
})), s = n + o.indexOf(a), c = s + a.length, requestAnimationFrame(() => {
|
|
174
174
|
t.focus(), t.setSelectionRange(s, c);
|
|
175
175
|
});
|
|
176
|
-
}, [h.content]),
|
|
176
|
+
}, [h.content]), L = "\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 ";
|
|
177
177
|
return /* @__PURE__ */ b("form", {
|
|
178
|
-
onSubmit:
|
|
178
|
+
onSubmit: F,
|
|
179
179
|
className: "space-y-6 animate-in fade-in duration-300",
|
|
180
180
|
children: [
|
|
181
181
|
/* @__PURE__ */ b("div", {
|
|
@@ -193,9 +193,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
193
193
|
}),
|
|
194
194
|
/* @__PURE__ */ b("select", {
|
|
195
195
|
id: "pageType",
|
|
196
|
-
value:
|
|
197
|
-
onChange: (e) =>
|
|
198
|
-
className:
|
|
196
|
+
value: E,
|
|
197
|
+
onChange: (e) => O(e.target.value),
|
|
198
|
+
className: L,
|
|
199
199
|
disabled: p,
|
|
200
200
|
children: [
|
|
201
201
|
/* @__PURE__ */ y("option", {
|
|
@@ -222,7 +222,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
222
222
|
}),
|
|
223
223
|
/* @__PURE__ */ y("p", {
|
|
224
224
|
className: "text-xs text-text-tertiary mt-1",
|
|
225
|
-
children: m("contentPages.pageTypeHint", "Sets the primary tag and which fields apply. Blog Posts get the
|
|
225
|
+
children: m("contentPages.pageTypeHint", "Sets the primary tag and which fields apply. Blog Posts and Press Releases get the extra Article Details section below.")
|
|
226
226
|
})
|
|
227
227
|
] }),
|
|
228
228
|
/* @__PURE__ */ b("div", { children: [
|
|
@@ -246,7 +246,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
246
246
|
...h,
|
|
247
247
|
slug: e.target.value.toLowerCase().replace(/\s+/g, "-")
|
|
248
248
|
}),
|
|
249
|
-
className:
|
|
249
|
+
className: L,
|
|
250
250
|
placeholder: "page-slug",
|
|
251
251
|
disabled: p || !!c,
|
|
252
252
|
required: !c
|
|
@@ -255,9 +255,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
255
255
|
className: "text-xs text-text-tertiary mt-1",
|
|
256
256
|
children: m("contentPages.slugHint", "Lowercase letters, numbers, and hyphens only. Cannot be changed after creation.")
|
|
257
257
|
}),
|
|
258
|
-
|
|
258
|
+
k.slug && /* @__PURE__ */ y("p", {
|
|
259
259
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
260
|
-
children:
|
|
260
|
+
children: k.slug
|
|
261
261
|
})
|
|
262
262
|
] }),
|
|
263
263
|
/* @__PURE__ */ b("div", { children: [
|
|
@@ -281,14 +281,14 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
281
281
|
...h,
|
|
282
282
|
title: e.target.value
|
|
283
283
|
}),
|
|
284
|
-
className:
|
|
284
|
+
className: L,
|
|
285
285
|
placeholder: m("contentPages.enterPageTitle", "Enter page title"),
|
|
286
286
|
disabled: p,
|
|
287
287
|
required: !0
|
|
288
288
|
}),
|
|
289
|
-
|
|
289
|
+
k.title && /* @__PURE__ */ y("p", {
|
|
290
290
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
291
|
-
children:
|
|
291
|
+
children: k.title
|
|
292
292
|
})
|
|
293
293
|
] })
|
|
294
294
|
]
|
|
@@ -311,8 +311,8 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
311
311
|
return /* @__PURE__ */ y("button", {
|
|
312
312
|
type: "button",
|
|
313
313
|
title: e.label,
|
|
314
|
-
onClick: () =>
|
|
315
|
-
disabled: p ||
|
|
314
|
+
onClick: () => I(e),
|
|
315
|
+
disabled: p || j,
|
|
316
316
|
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 ",
|
|
317
317
|
children: /* @__PURE__ */ y(t, { size: 16 })
|
|
318
318
|
}, e.label);
|
|
@@ -321,28 +321,28 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
321
321
|
className: "flex items-center gap-1",
|
|
322
322
|
children: [/* @__PURE__ */ b("button", {
|
|
323
323
|
type: "button",
|
|
324
|
-
onClick: () =>
|
|
324
|
+
onClick: () => M(!1),
|
|
325
325
|
className: `
|
|
326
326
|
inline-flex items-center gap-1.5 px-3 py-1 rounded text-xs font-medium
|
|
327
327
|
transition-all duration-150
|
|
328
|
-
${
|
|
328
|
+
${j ? "text-text-tertiary hover:text-text-secondary" : "bg-surface text-text-primary shadow-sm"}
|
|
329
329
|
`,
|
|
330
330
|
children: [/* @__PURE__ */ y(d, { size: 14 }), m("contentPages.editMode", "Edit")]
|
|
331
331
|
}), /* @__PURE__ */ b("button", {
|
|
332
332
|
type: "button",
|
|
333
|
-
onClick: () =>
|
|
333
|
+
onClick: () => M(!0),
|
|
334
334
|
className: `
|
|
335
335
|
inline-flex items-center gap-1.5 px-3 py-1 rounded text-xs font-medium
|
|
336
336
|
transition-all duration-150
|
|
337
|
-
${
|
|
337
|
+
${j ? "bg-surface text-text-primary shadow-sm" : "text-text-tertiary hover:text-text-secondary"}
|
|
338
338
|
`,
|
|
339
339
|
children: [/* @__PURE__ */ y(u, { size: 14 }), m("contentPages.previewMode", "Preview")]
|
|
340
340
|
})]
|
|
341
341
|
})]
|
|
342
342
|
}), /* @__PURE__ */ b("div", {
|
|
343
343
|
className: "relative",
|
|
344
|
-
children: [!
|
|
345
|
-
ref:
|
|
344
|
+
children: [!j && /* @__PURE__ */ y("textarea", {
|
|
345
|
+
ref: N,
|
|
346
346
|
id: "content",
|
|
347
347
|
value: h.content,
|
|
348
348
|
onChange: (e) => g({
|
|
@@ -352,15 +352,15 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
352
352
|
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 ",
|
|
353
353
|
placeholder: m("contentPages.writeContentPlaceholder", "Write your content in markdown..."),
|
|
354
354
|
disabled: p
|
|
355
|
-
}),
|
|
355
|
+
}), j && /* @__PURE__ */ y("div", {
|
|
356
356
|
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 ",
|
|
357
357
|
dangerouslySetInnerHTML: { __html: h.content ? x(h.content) : "<p class=\"text-gray-400 italic\">Nothing to preview yet. Start writing in the editor.</p>" }
|
|
358
358
|
})]
|
|
359
359
|
})]
|
|
360
360
|
}),
|
|
361
|
-
|
|
361
|
+
k.content && /* @__PURE__ */ y("p", {
|
|
362
362
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
363
|
-
children:
|
|
363
|
+
children: k.content
|
|
364
364
|
})
|
|
365
365
|
]
|
|
366
366
|
}),
|
|
@@ -385,7 +385,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
385
385
|
...h,
|
|
386
386
|
seoTitle: e.target.value
|
|
387
387
|
}),
|
|
388
|
-
className:
|
|
388
|
+
className: L,
|
|
389
389
|
placeholder: m("contentPages.seoTitlePlaceholder", "Page title for search engines"),
|
|
390
390
|
disabled: p
|
|
391
391
|
}),
|
|
@@ -393,9 +393,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
393
393
|
className: "text-xs text-text-tertiary mt-1",
|
|
394
394
|
children: [h.seoTitle.length, "/100 characters"]
|
|
395
395
|
}),
|
|
396
|
-
|
|
396
|
+
k.seoTitle && /* @__PURE__ */ y("p", {
|
|
397
397
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
398
|
-
children:
|
|
398
|
+
children: k.seoTitle
|
|
399
399
|
})
|
|
400
400
|
] }),
|
|
401
401
|
/* @__PURE__ */ b("div", { children: [
|
|
@@ -412,7 +412,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
412
412
|
seoDescription: e.target.value
|
|
413
413
|
}),
|
|
414
414
|
rows: 3,
|
|
415
|
-
className:
|
|
415
|
+
className: L,
|
|
416
416
|
placeholder: m("contentPages.seoDescriptionPlaceholder", "Brief description for search engine results"),
|
|
417
417
|
disabled: p
|
|
418
418
|
}),
|
|
@@ -420,9 +420,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
420
420
|
className: "text-xs text-text-tertiary mt-1",
|
|
421
421
|
children: [h.seoDescription.length, "/300 characters"]
|
|
422
422
|
}),
|
|
423
|
-
|
|
423
|
+
k.seoDescription && /* @__PURE__ */ y("p", {
|
|
424
424
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
425
|
-
children:
|
|
425
|
+
children: k.seoDescription
|
|
426
426
|
})
|
|
427
427
|
] }),
|
|
428
428
|
/* @__PURE__ */ b("div", { children: [
|
|
@@ -439,7 +439,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
439
439
|
...h,
|
|
440
440
|
seoKeywords: e.target.value
|
|
441
441
|
}),
|
|
442
|
-
className:
|
|
442
|
+
className: L,
|
|
443
443
|
placeholder: "keyword1, keyword2, keyword3",
|
|
444
444
|
disabled: p
|
|
445
445
|
}),
|
|
@@ -451,23 +451,23 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
451
451
|
"/200 characters"
|
|
452
452
|
]
|
|
453
453
|
}),
|
|
454
|
-
|
|
454
|
+
k.seoKeywords && /* @__PURE__ */ y("p", {
|
|
455
455
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
456
|
-
children:
|
|
456
|
+
children: k.seoKeywords
|
|
457
457
|
})
|
|
458
458
|
] })
|
|
459
459
|
]
|
|
460
460
|
}),
|
|
461
|
-
|
|
461
|
+
C.has(E) && /* @__PURE__ */ b("div", {
|
|
462
462
|
className: "space-y-4 pt-4 border-t border-default",
|
|
463
463
|
children: [
|
|
464
464
|
/* @__PURE__ */ y("h3", {
|
|
465
465
|
className: "text-sm font-semibold text-text-secondary uppercase tracking-wider",
|
|
466
|
-
children: m("contentPages.
|
|
466
|
+
children: m("contentPages.extraDetailFields", "Article Details")
|
|
467
467
|
}),
|
|
468
468
|
/* @__PURE__ */ y("p", {
|
|
469
469
|
className: "text-xs text-text-tertiary",
|
|
470
|
-
children: "Optional
|
|
470
|
+
children: "Optional details for blog posts and press releases — summary, hero image, author, publish date, category."
|
|
471
471
|
}),
|
|
472
472
|
/* @__PURE__ */ b("div", { children: [
|
|
473
473
|
/* @__PURE__ */ y("label", {
|
|
@@ -483,8 +483,8 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
483
483
|
excerpt: e.target.value
|
|
484
484
|
}),
|
|
485
485
|
rows: 2,
|
|
486
|
-
className:
|
|
487
|
-
placeholder: "Short
|
|
486
|
+
className: L,
|
|
487
|
+
placeholder: "Short summary shown on listing cards",
|
|
488
488
|
disabled: p
|
|
489
489
|
}),
|
|
490
490
|
/* @__PURE__ */ b("p", {
|
|
@@ -506,7 +506,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
506
506
|
...h,
|
|
507
507
|
thumbnail: e.target.value
|
|
508
508
|
}),
|
|
509
|
-
className:
|
|
509
|
+
className: L,
|
|
510
510
|
placeholder: "https://images.unsplash.com/...",
|
|
511
511
|
disabled: p
|
|
512
512
|
}),
|
|
@@ -534,7 +534,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
534
534
|
...h,
|
|
535
535
|
author: e.target.value
|
|
536
536
|
}),
|
|
537
|
-
className:
|
|
537
|
+
className: L,
|
|
538
538
|
placeholder: "Author name",
|
|
539
539
|
disabled: p
|
|
540
540
|
})] }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
|
|
@@ -549,7 +549,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
549
549
|
...h,
|
|
550
550
|
category: e.target.value
|
|
551
551
|
}),
|
|
552
|
-
className:
|
|
552
|
+
className: L,
|
|
553
553
|
placeholder: "Engineering, Product, Company",
|
|
554
554
|
disabled: p
|
|
555
555
|
})] })]
|
|
@@ -568,7 +568,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
568
568
|
...h,
|
|
569
569
|
publishedAt: e.target.value
|
|
570
570
|
}),
|
|
571
|
-
className:
|
|
571
|
+
className: L,
|
|
572
572
|
disabled: p
|
|
573
573
|
})] }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
|
|
574
574
|
htmlFor: "readingTime",
|
|
@@ -584,7 +584,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
584
584
|
...h,
|
|
585
585
|
readingTime: parseInt(e.target.value, 10) || 0
|
|
586
586
|
}),
|
|
587
|
-
className:
|
|
587
|
+
className: L,
|
|
588
588
|
placeholder: "5",
|
|
589
589
|
disabled: p
|
|
590
590
|
})] })]
|
|
@@ -660,9 +660,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
660
660
|
children: h.isPublished ? m("contentPages.published", "Published") : m("contentPages.draft", "Draft")
|
|
661
661
|
})]
|
|
662
662
|
}),
|
|
663
|
-
|
|
663
|
+
k.isPublished && /* @__PURE__ */ y("p", {
|
|
664
664
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
665
|
-
children:
|
|
665
|
+
children: k.isPublished
|
|
666
666
|
}),
|
|
667
667
|
/* @__PURE__ */ b("div", { children: [
|
|
668
668
|
/* @__PURE__ */ y("label", {
|
|
@@ -677,7 +677,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
677
677
|
...h,
|
|
678
678
|
visibility: e.target.value
|
|
679
679
|
}),
|
|
680
|
-
className:
|
|
680
|
+
className: L,
|
|
681
681
|
disabled: p,
|
|
682
682
|
children: [
|
|
683
683
|
/* @__PURE__ */ y("option", {
|
|
@@ -698,9 +698,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
698
698
|
className: "text-xs text-text-tertiary mt-1",
|
|
699
699
|
children: m("contentPages.visibilityHint", "Public is required for blog posts and legal pages to appear on the website.")
|
|
700
700
|
}),
|
|
701
|
-
|
|
701
|
+
k.visibility && /* @__PURE__ */ y("p", {
|
|
702
702
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
703
|
-
children:
|
|
703
|
+
children: k.visibility
|
|
704
704
|
})
|
|
705
705
|
] }),
|
|
706
706
|
/* @__PURE__ */ b("div", { children: [
|
|
@@ -718,7 +718,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
718
718
|
...h,
|
|
719
719
|
sortOrder: parseInt(e.target.value, 10) || 0
|
|
720
720
|
}),
|
|
721
|
-
className:
|
|
721
|
+
className: L,
|
|
722
722
|
placeholder: "0",
|
|
723
723
|
disabled: p
|
|
724
724
|
}),
|
|
@@ -726,9 +726,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
726
726
|
className: "text-xs text-text-tertiary mt-1",
|
|
727
727
|
children: m("contentPages.sortOrderHint", "Lower numbers appear first. Default is 0.")
|
|
728
728
|
}),
|
|
729
|
-
|
|
729
|
+
k.sortOrder && /* @__PURE__ */ y("p", {
|
|
730
730
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
731
|
-
children:
|
|
731
|
+
children: k.sortOrder
|
|
732
732
|
})
|
|
733
733
|
] }),
|
|
734
734
|
/* @__PURE__ */ b("div", { children: [
|
|
@@ -745,7 +745,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
745
745
|
...h,
|
|
746
746
|
productId: e.target.value
|
|
747
747
|
}),
|
|
748
|
-
className:
|
|
748
|
+
className: L,
|
|
749
749
|
placeholder: m("contentPages.productIdPlaceholder", "Optional product association"),
|
|
750
750
|
disabled: p
|
|
751
751
|
}),
|
|
@@ -753,9 +753,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
753
753
|
className: "text-xs text-text-tertiary mt-1",
|
|
754
754
|
children: m("contentPages.productIdHint", "Associate this content page with a specific product.")
|
|
755
755
|
}),
|
|
756
|
-
|
|
756
|
+
k.productId && /* @__PURE__ */ y("p", {
|
|
757
757
|
className: "text-sm text-[var(--color-status-error)] mt-1",
|
|
758
|
-
children:
|
|
758
|
+
children: k.productId
|
|
759
759
|
})
|
|
760
760
|
] })
|
|
761
761
|
]
|
|
@@ -769,7 +769,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
769
769
|
}),
|
|
770
770
|
/* @__PURE__ */ y(n, {
|
|
771
771
|
value: v,
|
|
772
|
-
onChange:
|
|
772
|
+
onChange: w,
|
|
773
773
|
disabled: p
|
|
774
774
|
}),
|
|
775
775
|
/* @__PURE__ */ y("p", {
|
|
@@ -800,6 +800,6 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
800
800
|
});
|
|
801
801
|
}
|
|
802
802
|
//#endregion
|
|
803
|
-
export {
|
|
803
|
+
export { w as ContentPageForm };
|
|
804
804
|
|
|
805
805
|
//# sourceMappingURL=ContentPageForm.js.map
|