@burdenoff/microfe-product 2026.516.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.
Files changed (22) hide show
  1. package/dist/generated/global-operations.d.ts +35 -0
  2. package/dist/generated/global-operations.d.ts.map +1 -1
  3. package/dist/generated/global-operations.js +21 -0
  4. package/dist/generated/global-operations.js.map +1 -1
  5. package/dist/generated/global-types.d.ts +373 -1393
  6. package/dist/generated/global-types.d.ts.map +1 -1
  7. package/dist/generated/global-types.js.map +1 -1
  8. package/dist/generated/wspace-types.d.ts +2907 -11652
  9. package/dist/generated/wspace-types.d.ts.map +1 -1
  10. package/dist/product-management/modules/content-pages/components/ContentPageForm.d.ts.map +1 -1
  11. package/dist/product-management/modules/content-pages/components/ContentPageForm.js +275 -47
  12. package/dist/product-management/modules/content-pages/components/ContentPageForm.js.map +1 -1
  13. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.d.ts.map +1 -1
  14. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +135 -98
  15. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -1
  16. package/dist/product-management/modules/content-pages/schemas/index.d.ts +14 -0
  17. package/dist/product-management/modules/content-pages/schemas/index.d.ts.map +1 -1
  18. package/dist/product-management/modules/content-pages/schemas/index.js +36 -22
  19. package/dist/product-management/modules/content-pages/schemas/index.js.map +1 -1
  20. package/dist/product-management/modules/content-pages/types/index.d.ts +22 -0
  21. package/dist/product-management/modules/content-pages/types/index.d.ts.map +1 -1
  22. 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,2CAwkBtB"}
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"}
@@ -87,24 +87,38 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
87
87
  seoKeywords: c?.seoKeywords || "",
88
88
  isPublished: c?.isPublished ?? !1,
89
89
  sortOrder: c?.sortOrder ?? 0,
90
- productId: c?.productId || ""
91
- }), [v, C] = s(c?.tags ?? []), [w, T] = s({}), [E, D] = s(!1), O = o(null), k = () => {
90
+ productId: c?.productId || "",
91
+ excerpt: c?.excerpt || "",
92
+ thumbnail: c?.thumbnail || "",
93
+ author: c?.author || "",
94
+ publishedAt: c?.publishedAt ? c.publishedAt.slice(0, 16) : "",
95
+ readingTime: c?.readingTime ?? 0,
96
+ featured: c?.featured ?? !1,
97
+ category: c?.category || ""
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 = () => {
92
106
  try {
93
107
  let e = c ? i : r, t = { ...h };
94
- 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", e.parse(t), T({}), !0;
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;
95
109
  } catch (e) {
96
110
  if (e instanceof t) {
97
111
  let t = {};
98
112
  e.issues.forEach((e) => {
99
113
  let n = e.path.join(".");
100
114
  t[n] = e.message;
101
- }), T(t);
115
+ }), k(t);
102
116
  }
103
117
  return !1;
104
118
  }
105
- }, A = async (e) => {
106
- if (e.preventDefault(), !k()) return;
107
- 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))];
108
122
  await l(c ? {
109
123
  title: h.title === c.title ? void 0 : h.title,
110
124
  content: h.content === c.content ? void 0 : h.content,
@@ -115,7 +129,14 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
115
129
  isPublished: h.isPublished === c.isPublished ? void 0 : h.isPublished,
116
130
  sortOrder: t === c.sortOrder ? void 0 : t,
117
131
  productId: h.productId === (c.productId || "") ? void 0 : h.productId || void 0,
118
- tags: v
132
+ tags: n,
133
+ excerpt: h.excerpt || void 0,
134
+ thumbnail: h.thumbnail || void 0,
135
+ author: h.author || void 0,
136
+ publishedAt: h.publishedAt ? new Date(h.publishedAt).toISOString() : void 0,
137
+ readingTime: h.readingTime || void 0,
138
+ featured: h.featured,
139
+ category: h.category || void 0
119
140
  } : {
120
141
  slug: h.slug,
121
142
  title: h.title,
@@ -127,10 +148,17 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
127
148
  isPublished: h.isPublished,
128
149
  sortOrder: t,
129
150
  productId: h.productId || void 0,
130
- tags: v
151
+ tags: n,
152
+ excerpt: h.excerpt || void 0,
153
+ thumbnail: h.thumbnail || void 0,
154
+ author: h.author || void 0,
155
+ publishedAt: h.publishedAt ? new Date(h.publishedAt).toISOString() : void 0,
156
+ readingTime: h.readingTime || void 0,
157
+ featured: h.featured,
158
+ category: h.category || void 0
131
159
  });
132
- }, j = a((e) => {
133
- let t = O.current;
160
+ }, F = a((e) => {
161
+ let t = M.current;
134
162
  if (!t) return;
135
163
  let { selectionStart: n, selectionEnd: r } = t, i = h.content, a = i.substring(n, r) || e.placeholder, o, s, c;
136
164
  o = e.block && n > 0 && i[n - 1] !== "\n" ? `\n${e.prefix}${a}${e.suffix}` : `${e.prefix}${a}${e.suffix}`;
@@ -141,9 +169,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
141
169
  })), s = n + o.indexOf(a), c = s + a.length, requestAnimationFrame(() => {
142
170
  t.focus(), t.setSelectionRange(s, c);
143
171
  });
144
- }, [h.content]), M = "\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 ";
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 ";
145
173
  return /* @__PURE__ */ b("form", {
146
- onSubmit: A,
174
+ onSubmit: P,
147
175
  className: "space-y-6 animate-in fade-in duration-300",
148
176
  children: [
149
177
  /* @__PURE__ */ b("div", {
@@ -153,6 +181,42 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
153
181
  className: "text-sm font-semibold text-text-secondary uppercase tracking-wider",
154
182
  children: m("contentPages.basicInformation", "Basic Information")
155
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
+ ] }),
156
220
  /* @__PURE__ */ b("div", { children: [
157
221
  /* @__PURE__ */ b("label", {
158
222
  htmlFor: "slug",
@@ -174,7 +238,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
174
238
  ...h,
175
239
  slug: e.target.value.toLowerCase().replace(/\s+/g, "-")
176
240
  }),
177
- className: M,
241
+ className: I,
178
242
  placeholder: "page-slug",
179
243
  disabled: p || !!c,
180
244
  required: !c
@@ -183,9 +247,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
183
247
  className: "text-xs text-text-tertiary mt-1",
184
248
  children: m("contentPages.slugHint", "Lowercase letters, numbers, and hyphens only. Cannot be changed after creation.")
185
249
  }),
186
- w.slug && /* @__PURE__ */ y("p", {
250
+ O.slug && /* @__PURE__ */ y("p", {
187
251
  className: "text-sm text-[var(--color-status-error)] mt-1",
188
- children: w.slug
252
+ children: O.slug
189
253
  })
190
254
  ] }),
191
255
  /* @__PURE__ */ b("div", { children: [
@@ -209,14 +273,14 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
209
273
  ...h,
210
274
  title: e.target.value
211
275
  }),
212
- className: M,
276
+ className: I,
213
277
  placeholder: m("contentPages.enterPageTitle", "Enter page title"),
214
278
  disabled: p,
215
279
  required: !0
216
280
  }),
217
- w.title && /* @__PURE__ */ y("p", {
281
+ O.title && /* @__PURE__ */ y("p", {
218
282
  className: "text-sm text-[var(--color-status-error)] mt-1",
219
- children: w.title
283
+ children: O.title
220
284
  })
221
285
  ] })
222
286
  ]
@@ -239,8 +303,8 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
239
303
  return /* @__PURE__ */ y("button", {
240
304
  type: "button",
241
305
  title: e.label,
242
- onClick: () => j(e),
243
- disabled: p || E,
306
+ onClick: () => F(e),
307
+ disabled: p || A,
244
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 ",
245
309
  children: /* @__PURE__ */ y(t, { size: 16 })
246
310
  }, e.label);
@@ -249,28 +313,28 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
249
313
  className: "flex items-center gap-1",
250
314
  children: [/* @__PURE__ */ b("button", {
251
315
  type: "button",
252
- onClick: () => D(!1),
316
+ onClick: () => j(!1),
253
317
  className: `
254
318
  inline-flex items-center gap-1.5 px-3 py-1 rounded text-xs font-medium
255
319
  transition-all duration-150
256
- ${E ? "text-text-tertiary hover:text-text-secondary" : "bg-surface text-text-primary shadow-sm"}
320
+ ${A ? "text-text-tertiary hover:text-text-secondary" : "bg-surface text-text-primary shadow-sm"}
257
321
  `,
258
322
  children: [/* @__PURE__ */ y(d, { size: 14 }), m("contentPages.editMode", "Edit")]
259
323
  }), /* @__PURE__ */ b("button", {
260
324
  type: "button",
261
- onClick: () => D(!0),
325
+ onClick: () => j(!0),
262
326
  className: `
263
327
  inline-flex items-center gap-1.5 px-3 py-1 rounded text-xs font-medium
264
328
  transition-all duration-150
265
- ${E ? "bg-surface text-text-primary shadow-sm" : "text-text-tertiary hover:text-text-secondary"}
329
+ ${A ? "bg-surface text-text-primary shadow-sm" : "text-text-tertiary hover:text-text-secondary"}
266
330
  `,
267
331
  children: [/* @__PURE__ */ y(u, { size: 14 }), m("contentPages.previewMode", "Preview")]
268
332
  })]
269
333
  })]
270
334
  }), /* @__PURE__ */ b("div", {
271
335
  className: "relative",
272
- children: [!E && /* @__PURE__ */ y("textarea", {
273
- ref: O,
336
+ children: [!A && /* @__PURE__ */ y("textarea", {
337
+ ref: M,
274
338
  id: "content",
275
339
  value: h.content,
276
340
  onChange: (e) => g({
@@ -280,15 +344,15 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
280
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 ",
281
345
  placeholder: m("contentPages.writeContentPlaceholder", "Write your content in markdown..."),
282
346
  disabled: p
283
- }), E && /* @__PURE__ */ y("div", {
347
+ }), A && /* @__PURE__ */ y("div", {
284
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 ",
285
349
  dangerouslySetInnerHTML: { __html: h.content ? x(h.content) : "<p class=\"text-gray-400 italic\">Nothing to preview yet. Start writing in the editor.</p>" }
286
350
  })]
287
351
  })]
288
352
  }),
289
- w.content && /* @__PURE__ */ y("p", {
353
+ O.content && /* @__PURE__ */ y("p", {
290
354
  className: "text-sm text-[var(--color-status-error)] mt-1",
291
- children: w.content
355
+ children: O.content
292
356
  })
293
357
  ]
294
358
  }),
@@ -313,7 +377,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
313
377
  ...h,
314
378
  seoTitle: e.target.value
315
379
  }),
316
- className: M,
380
+ className: I,
317
381
  placeholder: m("contentPages.seoTitlePlaceholder", "Page title for search engines"),
318
382
  disabled: p
319
383
  }),
@@ -321,9 +385,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
321
385
  className: "text-xs text-text-tertiary mt-1",
322
386
  children: [h.seoTitle.length, "/100 characters"]
323
387
  }),
324
- w.seoTitle && /* @__PURE__ */ y("p", {
388
+ O.seoTitle && /* @__PURE__ */ y("p", {
325
389
  className: "text-sm text-[var(--color-status-error)] mt-1",
326
- children: w.seoTitle
390
+ children: O.seoTitle
327
391
  })
328
392
  ] }),
329
393
  /* @__PURE__ */ b("div", { children: [
@@ -340,7 +404,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
340
404
  seoDescription: e.target.value
341
405
  }),
342
406
  rows: 3,
343
- className: M,
407
+ className: I,
344
408
  placeholder: m("contentPages.seoDescriptionPlaceholder", "Brief description for search engine results"),
345
409
  disabled: p
346
410
  }),
@@ -348,9 +412,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
348
412
  className: "text-xs text-text-tertiary mt-1",
349
413
  children: [h.seoDescription.length, "/300 characters"]
350
414
  }),
351
- w.seoDescription && /* @__PURE__ */ y("p", {
415
+ O.seoDescription && /* @__PURE__ */ y("p", {
352
416
  className: "text-sm text-[var(--color-status-error)] mt-1",
353
- children: w.seoDescription
417
+ children: O.seoDescription
354
418
  })
355
419
  ] }),
356
420
  /* @__PURE__ */ b("div", { children: [
@@ -367,7 +431,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
367
431
  ...h,
368
432
  seoKeywords: e.target.value
369
433
  }),
370
- className: M,
434
+ className: I,
371
435
  placeholder: "keyword1, keyword2, keyword3",
372
436
  disabled: p
373
437
  }),
@@ -379,13 +443,177 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
379
443
  "/200 characters"
380
444
  ]
381
445
  }),
382
- w.seoKeywords && /* @__PURE__ */ y("p", {
446
+ O.seoKeywords && /* @__PURE__ */ y("p", {
383
447
  className: "text-sm text-[var(--color-status-error)] mt-1",
384
- children: w.seoKeywords
448
+ children: O.seoKeywords
385
449
  })
386
450
  ] })
387
451
  ]
388
452
  }),
453
+ T === "blog" && /* @__PURE__ */ b("div", {
454
+ className: "space-y-4 pt-4 border-t border-default",
455
+ children: [
456
+ /* @__PURE__ */ y("h3", {
457
+ className: "text-sm font-semibold text-text-secondary uppercase tracking-wider",
458
+ children: m("contentPages.blogFields", "Blog Fields")
459
+ }),
460
+ /* @__PURE__ */ y("p", {
461
+ className: "text-xs text-text-tertiary",
462
+ children: "Optional fields for blog posts. Fill these when the content page is a blog article."
463
+ }),
464
+ /* @__PURE__ */ b("div", { children: [
465
+ /* @__PURE__ */ y("label", {
466
+ htmlFor: "excerpt",
467
+ className: "block text-sm font-medium text-text-primary mb-1",
468
+ children: m("contentPages.excerpt", "Excerpt")
469
+ }),
470
+ /* @__PURE__ */ y("textarea", {
471
+ id: "excerpt",
472
+ value: h.excerpt,
473
+ onChange: (e) => g({
474
+ ...h,
475
+ excerpt: e.target.value
476
+ }),
477
+ rows: 2,
478
+ className: I,
479
+ placeholder: "Short description shown on blog cards",
480
+ disabled: p
481
+ }),
482
+ /* @__PURE__ */ b("p", {
483
+ className: "text-xs text-text-tertiary mt-1",
484
+ children: [h.excerpt.length, "/500 characters"]
485
+ })
486
+ ] }),
487
+ /* @__PURE__ */ b("div", { children: [
488
+ /* @__PURE__ */ y("label", {
489
+ htmlFor: "thumbnail",
490
+ className: "block text-sm font-medium text-text-primary mb-1",
491
+ children: m("contentPages.thumbnail", "Thumbnail URL")
492
+ }),
493
+ /* @__PURE__ */ y("input", {
494
+ id: "thumbnail",
495
+ type: "url",
496
+ value: h.thumbnail,
497
+ onChange: (e) => g({
498
+ ...h,
499
+ thumbnail: e.target.value
500
+ }),
501
+ className: I,
502
+ placeholder: "https://images.unsplash.com/...",
503
+ disabled: p
504
+ }),
505
+ h.thumbnail && /* @__PURE__ */ y("div", {
506
+ className: "mt-2 rounded-lg overflow-hidden border border-default",
507
+ style: { maxWidth: 320 },
508
+ children: /* @__PURE__ */ y("img", {
509
+ src: h.thumbnail,
510
+ alt: "Thumbnail preview",
511
+ className: "w-full h-auto"
512
+ })
513
+ })
514
+ ] }),
515
+ /* @__PURE__ */ b("div", {
516
+ className: "grid grid-cols-2 gap-4",
517
+ children: [/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
518
+ htmlFor: "author",
519
+ className: "block text-sm font-medium text-text-primary mb-1",
520
+ children: m("contentPages.author", "Author")
521
+ }), /* @__PURE__ */ y("input", {
522
+ id: "author",
523
+ type: "text",
524
+ value: h.author,
525
+ onChange: (e) => g({
526
+ ...h,
527
+ author: e.target.value
528
+ }),
529
+ className: I,
530
+ placeholder: "Author name",
531
+ disabled: p
532
+ })] }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
533
+ htmlFor: "category",
534
+ className: "block text-sm font-medium text-text-primary mb-1",
535
+ children: m("contentPages.category", "Category")
536
+ }), /* @__PURE__ */ y("input", {
537
+ id: "category",
538
+ type: "text",
539
+ value: h.category,
540
+ onChange: (e) => g({
541
+ ...h,
542
+ category: e.target.value
543
+ }),
544
+ className: I,
545
+ placeholder: "Engineering, Product, Company",
546
+ disabled: p
547
+ })] })]
548
+ }),
549
+ /* @__PURE__ */ b("div", {
550
+ className: "grid grid-cols-2 gap-4",
551
+ children: [/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
552
+ htmlFor: "publishedAt",
553
+ className: "block text-sm font-medium text-text-primary mb-1",
554
+ children: m("contentPages.publishedAt", "Publish Date")
555
+ }), /* @__PURE__ */ y("input", {
556
+ id: "publishedAt",
557
+ type: "datetime-local",
558
+ value: h.publishedAt,
559
+ onChange: (e) => g({
560
+ ...h,
561
+ publishedAt: e.target.value
562
+ }),
563
+ className: I,
564
+ disabled: p
565
+ })] }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("label", {
566
+ htmlFor: "readingTime",
567
+ className: "block text-sm font-medium text-text-primary mb-1",
568
+ children: m("contentPages.readingTime", "Reading Time (min)")
569
+ }), /* @__PURE__ */ y("input", {
570
+ id: "readingTime",
571
+ type: "number",
572
+ min: 0,
573
+ max: 999,
574
+ value: h.readingTime,
575
+ onChange: (e) => g({
576
+ ...h,
577
+ readingTime: parseInt(e.target.value, 10) || 0
578
+ }),
579
+ className: I,
580
+ placeholder: "5",
581
+ disabled: p
582
+ })] })]
583
+ }),
584
+ /* @__PURE__ */ b("div", {
585
+ className: "flex items-center gap-3",
586
+ children: [/* @__PURE__ */ y("button", {
587
+ type: "button",
588
+ role: "switch",
589
+ "aria-checked": h.featured,
590
+ onClick: () => g({
591
+ ...h,
592
+ featured: !h.featured
593
+ }),
594
+ disabled: p,
595
+ className: `
596
+ relative inline-flex h-6 w-11 shrink-0
597
+ cursor-pointer rounded-full
598
+ border-2 border-transparent
599
+ transition-colors duration-200 ease-in-out
600
+ focus:outline-none focus:ring-2 focus:ring-[var(--color-border-focus)] focus:ring-offset-2
601
+ disabled:opacity-50 disabled:cursor-not-allowed
602
+ ${h.featured ? "bg-[var(--color-action-primary-bg)]" : "bg-gray-300 dark:bg-gray-600"}
603
+ `,
604
+ children: /* @__PURE__ */ y("span", { className: `
605
+ pointer-events-none inline-block h-5 w-5
606
+ transform rounded-full bg-white shadow ring-0
607
+ transition duration-200 ease-in-out
608
+ ${h.featured ? "translate-x-5" : "translate-x-0"}
609
+ ` })
610
+ }), /* @__PURE__ */ y("label", {
611
+ className: "text-sm font-medium text-text-primary",
612
+ children: h.featured ? m("contentPages.featured", "Featured") : m("contentPages.notFeatured", "Not Featured")
613
+ })]
614
+ })
615
+ ]
616
+ }),
389
617
  /* @__PURE__ */ b("div", {
390
618
  className: "space-y-4 pt-4 border-t border-default",
391
619
  children: [
@@ -424,9 +652,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
424
652
  children: h.isPublished ? m("contentPages.published", "Published") : m("contentPages.draft", "Draft")
425
653
  })]
426
654
  }),
427
- w.isPublished && /* @__PURE__ */ y("p", {
655
+ O.isPublished && /* @__PURE__ */ y("p", {
428
656
  className: "text-sm text-[var(--color-status-error)] mt-1",
429
- children: w.isPublished
657
+ children: O.isPublished
430
658
  }),
431
659
  /* @__PURE__ */ b("div", { children: [
432
660
  /* @__PURE__ */ y("label", {
@@ -443,7 +671,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
443
671
  ...h,
444
672
  sortOrder: parseInt(e.target.value, 10) || 0
445
673
  }),
446
- className: M,
674
+ className: I,
447
675
  placeholder: "0",
448
676
  disabled: p
449
677
  }),
@@ -451,9 +679,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
451
679
  className: "text-xs text-text-tertiary mt-1",
452
680
  children: m("contentPages.sortOrderHint", "Lower numbers appear first. Default is 0.")
453
681
  }),
454
- w.sortOrder && /* @__PURE__ */ y("p", {
682
+ O.sortOrder && /* @__PURE__ */ y("p", {
455
683
  className: "text-sm text-[var(--color-status-error)] mt-1",
456
- children: w.sortOrder
684
+ children: O.sortOrder
457
685
  })
458
686
  ] }),
459
687
  /* @__PURE__ */ b("div", { children: [
@@ -470,7 +698,7 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
470
698
  ...h,
471
699
  productId: e.target.value
472
700
  }),
473
- className: M,
701
+ className: I,
474
702
  placeholder: m("contentPages.productIdPlaceholder", "Optional product association"),
475
703
  disabled: p
476
704
  }),
@@ -478,9 +706,9 @@ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
478
706
  className: "text-xs text-text-tertiary mt-1",
479
707
  children: m("contentPages.productIdHint", "Associate this content page with a specific product.")
480
708
  }),
481
- w.productId && /* @__PURE__ */ y("p", {
709
+ O.productId && /* @__PURE__ */ y("p", {
482
710
  className: "text-sm text-[var(--color-status-error)] mt-1",
483
- children: w.productId
711
+ children: O.productId
484
712
  })
485
713
  ] })
486
714
  ]