@burdenoff/microfe-product 2026.510.43

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 (344) hide show
  1. package/README.md +51 -0
  2. package/dist/generated/global-operations.d.ts +1833 -0
  3. package/dist/generated/global-operations.d.ts.map +1 -0
  4. package/dist/generated/global-operations.js +846 -0
  5. package/dist/generated/global-operations.js.map +1 -0
  6. package/dist/generated/global-types.d.ts +20976 -0
  7. package/dist/generated/global-types.d.ts.map +1 -0
  8. package/dist/generated/global-types.js +8 -0
  9. package/dist/generated/global-types.js.map +1 -0
  10. package/dist/generated/wspace-operations.d.ts +2 -0
  11. package/dist/generated/wspace-operations.d.ts.map +1 -0
  12. package/dist/generated/wspace-types.d.ts +54985 -0
  13. package/dist/generated/wspace-types.d.ts.map +1 -0
  14. package/dist/index.d.ts +14 -0
  15. package/dist/index.d.ts.map +1 -0
  16. package/dist/index.js +3 -0
  17. package/dist/node_modules/dompurify/dist/purify.es.js +555 -0
  18. package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -0
  19. package/dist/node_modules/zod/v4/classic/errors.js +23 -0
  20. package/dist/node_modules/zod/v4/classic/errors.js.map +1 -0
  21. package/dist/node_modules/zod/v4/classic/iso.js +33 -0
  22. package/dist/node_modules/zod/v4/classic/iso.js.map +1 -0
  23. package/dist/node_modules/zod/v4/classic/parse.js +8 -0
  24. package/dist/node_modules/zod/v4/classic/parse.js.map +1 -0
  25. package/dist/node_modules/zod/v4/classic/schemas.js +617 -0
  26. package/dist/node_modules/zod/v4/classic/schemas.js.map +1 -0
  27. package/dist/node_modules/zod/v4/core/api.js +503 -0
  28. package/dist/node_modules/zod/v4/core/api.js.map +1 -0
  29. package/dist/node_modules/zod/v4/core/checks.js +285 -0
  30. package/dist/node_modules/zod/v4/core/checks.js.map +1 -0
  31. package/dist/node_modules/zod/v4/core/core.js +49 -0
  32. package/dist/node_modules/zod/v4/core/core.js.map +1 -0
  33. package/dist/node_modules/zod/v4/core/doc.js +25 -0
  34. package/dist/node_modules/zod/v4/core/doc.js.map +1 -0
  35. package/dist/node_modules/zod/v4/core/errors.js +46 -0
  36. package/dist/node_modules/zod/v4/core/errors.js.map +1 -0
  37. package/dist/node_modules/zod/v4/core/json-schema-processors.js +180 -0
  38. package/dist/node_modules/zod/v4/core/json-schema-processors.js.map +1 -0
  39. package/dist/node_modules/zod/v4/core/parse.js +91 -0
  40. package/dist/node_modules/zod/v4/core/parse.js.map +1 -0
  41. package/dist/node_modules/zod/v4/core/regexes.js +27 -0
  42. package/dist/node_modules/zod/v4/core/regexes.js.map +1 -0
  43. package/dist/node_modules/zod/v4/core/registries.js +42 -0
  44. package/dist/node_modules/zod/v4/core/registries.js.map +1 -0
  45. package/dist/node_modules/zod/v4/core/schemas.js +883 -0
  46. package/dist/node_modules/zod/v4/core/schemas.js.map +1 -0
  47. package/dist/node_modules/zod/v4/core/to-json-schema.js +226 -0
  48. package/dist/node_modules/zod/v4/core/to-json-schema.js.map +1 -0
  49. package/dist/node_modules/zod/v4/core/util.js +267 -0
  50. package/dist/node_modules/zod/v4/core/util.js.map +1 -0
  51. package/dist/node_modules/zod/v4/core/versions.js +10 -0
  52. package/dist/node_modules/zod/v4/core/versions.js.map +1 -0
  53. package/dist/product/ProductUserRoot.d.ts +4 -0
  54. package/dist/product/ProductUserRoot.d.ts.map +1 -0
  55. package/dist/product/ProductUserRoot.js +40 -0
  56. package/dist/product/ProductUserRoot.js.map +1 -0
  57. package/dist/product/ProductUserRoutes.d.ts +6 -0
  58. package/dist/product/ProductUserRoutes.d.ts.map +1 -0
  59. package/dist/product/ProductUserRoutes.js +34 -0
  60. package/dist/product/ProductUserRoutes.js.map +1 -0
  61. package/dist/product/hooks/usePublicContentPage.d.ts +9 -0
  62. package/dist/product/hooks/usePublicContentPage.d.ts.map +1 -0
  63. package/dist/product/hooks/usePublicContentPage.js +22 -0
  64. package/dist/product/hooks/usePublicContentPage.js.map +1 -0
  65. package/dist/product/hooks/usePublicProduct.d.ts +9 -0
  66. package/dist/product/hooks/usePublicProduct.d.ts.map +1 -0
  67. package/dist/product/hooks/usePublicProduct.js +19 -0
  68. package/dist/product/hooks/usePublicProduct.js.map +1 -0
  69. package/dist/product/hooks/usePublicProducts.d.ts +21 -0
  70. package/dist/product/hooks/usePublicProducts.d.ts.map +1 -0
  71. package/dist/product/hooks/usePublicProducts.js +25 -0
  72. package/dist/product/hooks/usePublicProducts.js.map +1 -0
  73. package/dist/product/pages/ContentPageViewPage.d.ts +2 -0
  74. package/dist/product/pages/ContentPageViewPage.d.ts.map +1 -0
  75. package/dist/product/pages/ContentPageViewPage.js +81 -0
  76. package/dist/product/pages/ContentPageViewPage.js.map +1 -0
  77. package/dist/product/pages/ProductCatalogPage.d.ts +2 -0
  78. package/dist/product/pages/ProductCatalogPage.d.ts.map +1 -0
  79. package/dist/product/pages/ProductCatalogPage.js +182 -0
  80. package/dist/product/pages/ProductCatalogPage.js.map +1 -0
  81. package/dist/product/pages/ProductViewPage.d.ts +2 -0
  82. package/dist/product/pages/ProductViewPage.d.ts.map +1 -0
  83. package/dist/product/pages/ProductViewPage.js +229 -0
  84. package/dist/product/pages/ProductViewPage.js.map +1 -0
  85. package/dist/product/pages/ProductsLandingPage.d.ts +10 -0
  86. package/dist/product/pages/ProductsLandingPage.d.ts.map +1 -0
  87. package/dist/product/pages/ProductsLandingPage.js +66 -0
  88. package/dist/product/pages/ProductsLandingPage.js.map +1 -0
  89. package/dist/product/pages/UserProductsLandingPage.d.ts +9 -0
  90. package/dist/product/pages/UserProductsLandingPage.d.ts.map +1 -0
  91. package/dist/product/pages/UserProductsLandingPage.js +10 -0
  92. package/dist/product/pages/UserProductsLandingPage.js.map +1 -0
  93. package/dist/product/providers/ProductUserProvider.d.ts +10 -0
  94. package/dist/product/providers/ProductUserProvider.d.ts.map +1 -0
  95. package/dist/product/providers/ProductUserProvider.js +19 -0
  96. package/dist/product/providers/ProductUserProvider.js.map +1 -0
  97. package/dist/product/types/index.d.ts +34 -0
  98. package/dist/product/types/index.d.ts.map +1 -0
  99. package/dist/product-management/ProductManagementRoot.d.ts +4 -0
  100. package/dist/product-management/ProductManagementRoot.d.ts.map +1 -0
  101. package/dist/product-management/ProductManagementRoot.js +59 -0
  102. package/dist/product-management/ProductManagementRoot.js.map +1 -0
  103. package/dist/product-management/ProductManagementRoutes.d.ts +6 -0
  104. package/dist/product-management/ProductManagementRoutes.d.ts.map +1 -0
  105. package/dist/product-management/ProductManagementRoutes.js +144 -0
  106. package/dist/product-management/ProductManagementRoutes.js.map +1 -0
  107. package/dist/product-management/index.d.ts +5 -0
  108. package/dist/product-management/index.d.ts.map +1 -0
  109. package/dist/product-management/modules/content-pages/components/ContentPageForm.d.ts +10 -0
  110. package/dist/product-management/modules/content-pages/components/ContentPageForm.d.ts.map +1 -0
  111. package/dist/product-management/modules/content-pages/components/ContentPageForm.js +530 -0
  112. package/dist/product-management/modules/content-pages/components/ContentPageForm.js.map +1 -0
  113. package/dist/product-management/modules/content-pages/components/ContentPageStatusBadge.d.ts +11 -0
  114. package/dist/product-management/modules/content-pages/components/ContentPageStatusBadge.d.ts.map +1 -0
  115. package/dist/product-management/modules/content-pages/components/ContentPageStatusBadge.js +29 -0
  116. package/dist/product-management/modules/content-pages/components/ContentPageStatusBadge.js.map +1 -0
  117. package/dist/product-management/modules/content-pages/hooks/useContentPages.d.ts +76 -0
  118. package/dist/product-management/modules/content-pages/hooks/useContentPages.d.ts.map +1 -0
  119. package/dist/product-management/modules/content-pages/hooks/useContentPages.js +96 -0
  120. package/dist/product-management/modules/content-pages/hooks/useContentPages.js.map +1 -0
  121. package/dist/product-management/modules/content-pages/index.d.ts +15 -0
  122. package/dist/product-management/modules/content-pages/index.d.ts.map +1 -0
  123. package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.d.ts +2 -0
  124. package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.d.ts.map +1 -0
  125. package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js +69 -0
  126. package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js.map +1 -0
  127. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.d.ts +6 -0
  128. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.d.ts.map +1 -0
  129. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js +273 -0
  130. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js.map +1 -0
  131. package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.d.ts +2 -0
  132. package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.d.ts.map +1 -0
  133. package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js +87 -0
  134. package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js.map +1 -0
  135. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.d.ts +2 -0
  136. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.d.ts.map +1 -0
  137. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +243 -0
  138. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -0
  139. package/dist/product-management/modules/content-pages/schemas/index.d.ts +33 -0
  140. package/dist/product-management/modules/content-pages/schemas/index.d.ts.map +1 -0
  141. package/dist/product-management/modules/content-pages/schemas/index.js +29 -0
  142. package/dist/product-management/modules/content-pages/schemas/index.js.map +1 -0
  143. package/dist/product-management/modules/content-pages/types/index.d.ts +65 -0
  144. package/dist/product-management/modules/content-pages/types/index.d.ts.map +1 -0
  145. package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.d.ts +11 -0
  146. package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.d.ts.map +1 -0
  147. package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js +347 -0
  148. package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js.map +1 -0
  149. package/dist/product-management/modules/feature-flags/components/FeatureFlagStatusBadge.d.ts +8 -0
  150. package/dist/product-management/modules/feature-flags/components/FeatureFlagStatusBadge.d.ts.map +1 -0
  151. package/dist/product-management/modules/feature-flags/components/FeatureFlagStatusBadge.js +23 -0
  152. package/dist/product-management/modules/feature-flags/components/FeatureFlagStatusBadge.js.map +1 -0
  153. package/dist/product-management/modules/feature-flags/components/FeatureFlagTypeBadge.d.ts +8 -0
  154. package/dist/product-management/modules/feature-flags/components/FeatureFlagTypeBadge.d.ts.map +1 -0
  155. package/dist/product-management/modules/feature-flags/components/FeatureFlagTypeBadge.js +31 -0
  156. package/dist/product-management/modules/feature-flags/components/FeatureFlagTypeBadge.js.map +1 -0
  157. package/dist/product-management/modules/feature-flags/hooks/useFeatureFlags.d.ts +58 -0
  158. package/dist/product-management/modules/feature-flags/hooks/useFeatureFlags.d.ts.map +1 -0
  159. package/dist/product-management/modules/feature-flags/hooks/useFeatureFlags.js +91 -0
  160. package/dist/product-management/modules/feature-flags/hooks/useFeatureFlags.js.map +1 -0
  161. package/dist/product-management/modules/feature-flags/index.d.ts +13 -0
  162. package/dist/product-management/modules/feature-flags/index.d.ts.map +1 -0
  163. package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.d.ts +3 -0
  164. package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.d.ts.map +1 -0
  165. package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js +61 -0
  166. package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js.map +1 -0
  167. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.d.ts +3 -0
  168. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.d.ts.map +1 -0
  169. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js +292 -0
  170. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js.map +1 -0
  171. package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.d.ts +3 -0
  172. package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.d.ts.map +1 -0
  173. package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js +88 -0
  174. package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js.map +1 -0
  175. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.d.ts +3 -0
  176. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.d.ts.map +1 -0
  177. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js +467 -0
  178. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js.map +1 -0
  179. package/dist/product-management/modules/feature-flags/schemas/index.d.ts +35 -0
  180. package/dist/product-management/modules/feature-flags/schemas/index.d.ts.map +1 -0
  181. package/dist/product-management/modules/feature-flags/schemas/index.js +35 -0
  182. package/dist/product-management/modules/feature-flags/schemas/index.js.map +1 -0
  183. package/dist/product-management/modules/feature-flags/types/index.d.ts +86 -0
  184. package/dist/product-management/modules/feature-flags/types/index.d.ts.map +1 -0
  185. package/dist/product-management/modules/products/components/ProductCard.d.ts +15 -0
  186. package/dist/product-management/modules/products/components/ProductCard.d.ts.map +1 -0
  187. package/dist/product-management/modules/products/components/ProductForm.d.ts +10 -0
  188. package/dist/product-management/modules/products/components/ProductForm.d.ts.map +1 -0
  189. package/dist/product-management/modules/products/components/ProductForm.js +882 -0
  190. package/dist/product-management/modules/products/components/ProductForm.js.map +1 -0
  191. package/dist/product-management/modules/products/components/ProductPlans.d.ts +8 -0
  192. package/dist/product-management/modules/products/components/ProductPlans.d.ts.map +1 -0
  193. package/dist/product-management/modules/products/components/ProductPlans.js +469 -0
  194. package/dist/product-management/modules/products/components/ProductPlans.js.map +1 -0
  195. package/dist/product-management/modules/products/components/ProductStats.d.ts +23 -0
  196. package/dist/product-management/modules/products/components/ProductStats.d.ts.map +1 -0
  197. package/dist/product-management/modules/products/components/ProductStatusBadge.d.ts +12 -0
  198. package/dist/product-management/modules/products/components/ProductStatusBadge.d.ts.map +1 -0
  199. package/dist/product-management/modules/products/components/ProductStatusBadge.js +50 -0
  200. package/dist/product-management/modules/products/components/ProductStatusBadge.js.map +1 -0
  201. package/dist/product-management/modules/products/hooks/useProducts.d.ts +85 -0
  202. package/dist/product-management/modules/products/hooks/useProducts.d.ts.map +1 -0
  203. package/dist/product-management/modules/products/hooks/useProducts.js +93 -0
  204. package/dist/product-management/modules/products/hooks/useProducts.js.map +1 -0
  205. package/dist/product-management/modules/products/index.d.ts +16 -0
  206. package/dist/product-management/modules/products/index.d.ts.map +1 -0
  207. package/dist/product-management/modules/products/pages/ProductCreatePage.d.ts +2 -0
  208. package/dist/product-management/modules/products/pages/ProductCreatePage.d.ts.map +1 -0
  209. package/dist/product-management/modules/products/pages/ProductCreatePage.js +57 -0
  210. package/dist/product-management/modules/products/pages/ProductCreatePage.js.map +1 -0
  211. package/dist/product-management/modules/products/pages/ProductDetailPage.d.ts +6 -0
  212. package/dist/product-management/modules/products/pages/ProductDetailPage.d.ts.map +1 -0
  213. package/dist/product-management/modules/products/pages/ProductDetailPage.js +422 -0
  214. package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -0
  215. package/dist/product-management/modules/products/pages/ProductEditPage.d.ts +2 -0
  216. package/dist/product-management/modules/products/pages/ProductEditPage.d.ts.map +1 -0
  217. package/dist/product-management/modules/products/pages/ProductEditPage.js +80 -0
  218. package/dist/product-management/modules/products/pages/ProductEditPage.js.map +1 -0
  219. package/dist/product-management/modules/products/pages/ProductsListPage.d.ts +2 -0
  220. package/dist/product-management/modules/products/pages/ProductsListPage.d.ts.map +1 -0
  221. package/dist/product-management/modules/products/pages/ProductsListPage.js +252 -0
  222. package/dist/product-management/modules/products/pages/ProductsListPage.js.map +1 -0
  223. package/dist/product-management/modules/products/schemas/index.d.ts +59 -0
  224. package/dist/product-management/modules/products/schemas/index.d.ts.map +1 -0
  225. package/dist/product-management/modules/products/schemas/index.js +73 -0
  226. package/dist/product-management/modules/products/schemas/index.js.map +1 -0
  227. package/dist/product-management/modules/products/types/index.d.ts +112 -0
  228. package/dist/product-management/modules/products/types/index.d.ts.map +1 -0
  229. package/dist/product-management/modules/products/types/index.js +11 -0
  230. package/dist/product-management/modules/products/types/index.js.map +1 -0
  231. package/dist/product-management/modules/shortcuts/components/ShortcutCategoryBadge.d.ts +6 -0
  232. package/dist/product-management/modules/shortcuts/components/ShortcutCategoryBadge.d.ts.map +1 -0
  233. package/dist/product-management/modules/shortcuts/components/ShortcutCategoryBadge.js +46 -0
  234. package/dist/product-management/modules/shortcuts/components/ShortcutCategoryBadge.js.map +1 -0
  235. package/dist/product-management/modules/shortcuts/components/ShortcutForm.d.ts +10 -0
  236. package/dist/product-management/modules/shortcuts/components/ShortcutForm.d.ts.map +1 -0
  237. package/dist/product-management/modules/shortcuts/components/ShortcutForm.js +389 -0
  238. package/dist/product-management/modules/shortcuts/components/ShortcutForm.js.map +1 -0
  239. package/dist/product-management/modules/shortcuts/components/ShortcutKeyBadge.d.ts +11 -0
  240. package/dist/product-management/modules/shortcuts/components/ShortcutKeyBadge.d.ts.map +1 -0
  241. package/dist/product-management/modules/shortcuts/components/ShortcutKeyBadge.js +45 -0
  242. package/dist/product-management/modules/shortcuts/components/ShortcutKeyBadge.js.map +1 -0
  243. package/dist/product-management/modules/shortcuts/hooks/useShortcuts.d.ts +85 -0
  244. package/dist/product-management/modules/shortcuts/hooks/useShortcuts.d.ts.map +1 -0
  245. package/dist/product-management/modules/shortcuts/hooks/useShortcuts.js +120 -0
  246. package/dist/product-management/modules/shortcuts/hooks/useShortcuts.js.map +1 -0
  247. package/dist/product-management/modules/shortcuts/index.d.ts +17 -0
  248. package/dist/product-management/modules/shortcuts/index.d.ts.map +1 -0
  249. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.d.ts +2 -0
  250. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.d.ts.map +1 -0
  251. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js +60 -0
  252. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js.map +1 -0
  253. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.d.ts +2 -0
  254. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.d.ts.map +1 -0
  255. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +271 -0
  256. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -0
  257. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.d.ts +2 -0
  258. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.d.ts.map +1 -0
  259. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js +85 -0
  260. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js.map +1 -0
  261. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.d.ts +2 -0
  262. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.d.ts.map +1 -0
  263. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js +295 -0
  264. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js.map +1 -0
  265. package/dist/product-management/modules/shortcuts/schemas/index.d.ts +35 -0
  266. package/dist/product-management/modules/shortcuts/schemas/index.d.ts.map +1 -0
  267. package/dist/product-management/modules/shortcuts/schemas/index.js +30 -0
  268. package/dist/product-management/modules/shortcuts/schemas/index.js.map +1 -0
  269. package/dist/product-management/modules/shortcuts/types/index.d.ts +28 -0
  270. package/dist/product-management/modules/shortcuts/types/index.d.ts.map +1 -0
  271. package/dist/product-management/modules/shortcuts/types/index.js +13 -0
  272. package/dist/product-management/modules/shortcuts/types/index.js.map +1 -0
  273. package/dist/product-management/providers/ProductConsoleProvider.d.ts +18 -0
  274. package/dist/product-management/providers/ProductConsoleProvider.d.ts.map +1 -0
  275. package/dist/product-management/providers/ProductConsoleProvider.js +19 -0
  276. package/dist/product-management/providers/ProductConsoleProvider.js.map +1 -0
  277. package/dist/product-management/shared/components/AuditHistoryTab.d.ts +7 -0
  278. package/dist/product-management/shared/components/AuditHistoryTab.d.ts.map +1 -0
  279. package/dist/product-management/shared/components/AuditHistoryTab.js +80 -0
  280. package/dist/product-management/shared/components/AuditHistoryTab.js.map +1 -0
  281. package/dist/product-management/shared/components/TagList.d.ts +7 -0
  282. package/dist/product-management/shared/components/TagList.d.ts.map +1 -0
  283. package/dist/product-management/shared/components/TagList.js +15 -0
  284. package/dist/product-management/shared/components/TagList.js.map +1 -0
  285. package/dist/product-management/shared/components/feedback/EmptyState.d.ts +13 -0
  286. package/dist/product-management/shared/components/feedback/EmptyState.d.ts.map +1 -0
  287. package/dist/product-management/shared/components/feedback/EmptyState.js +30 -0
  288. package/dist/product-management/shared/components/feedback/EmptyState.js.map +1 -0
  289. package/dist/product-management/shared/components/feedback/ErrorState.d.ts +18 -0
  290. package/dist/product-management/shared/components/feedback/ErrorState.d.ts.map +1 -0
  291. package/dist/product-management/shared/components/feedback/ErrorState.js +34 -0
  292. package/dist/product-management/shared/components/feedback/ErrorState.js.map +1 -0
  293. package/dist/product-management/shared/components/feedback/LoadingState.d.ts +13 -0
  294. package/dist/product-management/shared/components/feedback/LoadingState.d.ts.map +1 -0
  295. package/dist/product-management/shared/components/feedback/LoadingState.js +19 -0
  296. package/dist/product-management/shared/components/feedback/LoadingState.js.map +1 -0
  297. package/dist/product-management/shared/components/input/SearchInput.d.ts +22 -0
  298. package/dist/product-management/shared/components/input/SearchInput.d.ts.map +1 -0
  299. package/dist/product-management/shared/components/input/SearchInput.js +31 -0
  300. package/dist/product-management/shared/components/input/SearchInput.js.map +1 -0
  301. package/dist/product-management/shared/components/input/TagInput.d.ts +10 -0
  302. package/dist/product-management/shared/components/input/TagInput.d.ts.map +1 -0
  303. package/dist/product-management/shared/components/input/TagInput.js +54 -0
  304. package/dist/product-management/shared/components/input/TagInput.js.map +1 -0
  305. package/dist/product-management/shared/hooks/useTr.d.ts +17 -0
  306. package/dist/product-management/shared/hooks/useTr.d.ts.map +1 -0
  307. package/dist/product-management/shared/hooks/useTr.js +14 -0
  308. package/dist/product-management/shared/hooks/useTr.js.map +1 -0
  309. package/dist/product-management/shared/index.d.ts +11 -0
  310. package/dist/product-management/shared/index.d.ts.map +1 -0
  311. package/dist/product-management/shared/index.js +4 -0
  312. package/dist/product-management/shared/types/graphql.d.ts +119 -0
  313. package/dist/product-management/shared/types/graphql.d.ts.map +1 -0
  314. package/dist/product-management/shared/utils/cn.d.ts +7 -0
  315. package/dist/product-management/shared/utils/cn.d.ts.map +1 -0
  316. package/dist/product-management/shared/utils/exportUtils.d.ts +5 -0
  317. package/dist/product-management/shared/utils/exportUtils.d.ts.map +1 -0
  318. package/dist/product-management/shared/utils/exportUtils.js +17 -0
  319. package/dist/product-management/shared/utils/exportUtils.js.map +1 -0
  320. package/dist/product-management/types/index.d.ts +40 -0
  321. package/dist/product-management/types/index.d.ts.map +1 -0
  322. package/dist/shared/components/index.d.ts +10 -0
  323. package/dist/shared/components/index.d.ts.map +1 -0
  324. package/dist/shared/components/index.js +5 -0
  325. package/dist/shared/index.d.ts +3 -0
  326. package/dist/shared/index.d.ts.map +1 -0
  327. package/dist/shared/utils/formatDate.d.ts +5 -0
  328. package/dist/shared/utils/formatDate.d.ts.map +1 -0
  329. package/dist/shared/utils/formatDate.js +12 -0
  330. package/dist/shared/utils/formatDate.js.map +1 -0
  331. package/dist/shared/utils/index.d.ts +4 -0
  332. package/dist/shared/utils/index.d.ts.map +1 -0
  333. package/dist/shared/utils/isSafeUrl.d.ts +6 -0
  334. package/dist/shared/utils/isSafeUrl.d.ts.map +1 -0
  335. package/dist/shared/utils/isSafeUrl.js +8 -0
  336. package/dist/shared/utils/isSafeUrl.js.map +1 -0
  337. package/dist/shared/utils/renderMarkdown.d.ts +10 -0
  338. package/dist/shared/utils/renderMarkdown.d.ts.map +1 -0
  339. package/dist/shared/utils/renderMarkdown.js +8 -0
  340. package/dist/shared/utils/renderMarkdown.js.map +1 -0
  341. package/dist/utils/nativeBridge.d.ts +3 -0
  342. package/dist/utils/nativeBridge.d.ts.map +1 -0
  343. package/dist/utils/nativeBridge.js +2 -0
  344. package/package.json +118 -0
@@ -0,0 +1,530 @@
1
+ import { useTr as e } from "../../../shared/hooks/useTr.js";
2
+ import { ZodError as t } from "../../../../node_modules/zod/v4/classic/errors.js";
3
+ import { TagInput as n } from "../../../shared/components/input/TagInput.js";
4
+ import { createContentPageSchema as r, updateContentPageSchema as i } from "../schemas/index.js";
5
+ import { useCallback as a, useRef as o, useState as s } from "react";
6
+ import { Bold as c, Code as l, Eye as u, EyeOff as d, Heading as f, Italic as p, Link as m, List as h, ListOrdered as g, Loader2 as _, Quote as v } from "lucide-react";
7
+ import { jsx as y, jsxs as b } from "react/jsx-runtime";
8
+ //#region src/product-management/modules/content-pages/components/ContentPageForm.tsx
9
+ function x(e) {
10
+ let t = e;
11
+ return t = t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), t = t.replace(/```(\w*)\n([\s\S]*?)```/g, (e, t, n) => `<pre class="bg-gray-900 text-gray-100 rounded-lg p-4 overflow-x-auto my-3"><code>${n.trim()}</code></pre>`), t = t.replace(/`([^`]+)`/g, "<code class=\"bg-gray-200 dark:bg-gray-700 px-1.5 py-0.5 rounded text-sm\">$1</code>"), t = t.replace(/^###### (.+)$/gm, "<h6 class=\"text-sm font-semibold mt-4 mb-2\">$1</h6>"), t = t.replace(/^##### (.+)$/gm, "<h5 class=\"text-sm font-bold mt-4 mb-2\">$1</h5>"), t = t.replace(/^#### (.+)$/gm, "<h4 class=\"text-base font-bold mt-4 mb-2\">$1</h4>"), t = t.replace(/^### (.+)$/gm, "<h3 class=\"text-lg font-bold mt-4 mb-2\">$1</h3>"), t = t.replace(/^## (.+)$/gm, "<h2 class=\"text-xl font-bold mt-5 mb-2\">$1</h2>"), t = t.replace(/^# (.+)$/gm, "<h1 class=\"text-2xl font-bold mt-6 mb-3\">$1</h1>"), t = t.replace(/\*\*\*(.+?)\*\*\*/g, "<strong><em>$1</em></strong>"), t = t.replace(/\*\*(.+?)\*\*/g, "<strong>$1</strong>"), t = t.replace(/\*(.+?)\*/g, "<em>$1</em>"), t = t.replace(/\[([^\]]+)\]\(([^)]+)\)/g, "<a href=\"$2\" class=\"text-blue-500 underline hover:text-blue-700\" target=\"_blank\" rel=\"noopener noreferrer\">$1</a>"), t = t.replace(/^&gt; (.+)$/gm, "<blockquote class=\"border-l-4 border-gray-300 pl-4 italic text-gray-600 my-2\">$1</blockquote>"), t = t.replace(/(^- .+$(\n^- .+$)*)/gm, (e) => `<ul class="list-disc list-inside my-2">\n${e.split("\n").map((e) => `<li class="ml-4">${e.replace(/^- /, "")}</li>`).join("\n")}\n</ul>`), t = t.replace(/(^\d+\. .+$(\n^\d+\. .+$)*)/gm, (e) => `<ol class="list-decimal list-inside my-2">\n${e.split("\n").map((e) => `<li class="ml-4">${e.replace(/^\d+\. /, "")}</li>`).join("\n")}\n</ol>`), t = t.replace(/^---$/gm, "<hr class=\"my-4 border-gray-300\" />"), t = t.split(/\n\n+/).map((e) => {
12
+ let t = e.trim();
13
+ return t ? /^<(h[1-6]|ul|ol|pre|blockquote|hr|div)/.test(t) ? t : `<p class="my-2 leading-relaxed">${t.replace(/\n/g, "<br />")}</p>` : "";
14
+ }).join("\n"), t;
15
+ }
16
+ var S = [
17
+ {
18
+ label: "Bold",
19
+ icon: c,
20
+ prefix: "**",
21
+ suffix: "**",
22
+ placeholder: "bold text"
23
+ },
24
+ {
25
+ label: "Italic",
26
+ icon: p,
27
+ prefix: "*",
28
+ suffix: "*",
29
+ placeholder: "italic text"
30
+ },
31
+ {
32
+ label: "Heading",
33
+ icon: f,
34
+ prefix: "## ",
35
+ suffix: "",
36
+ placeholder: "Heading",
37
+ block: !0
38
+ },
39
+ {
40
+ label: "Bullet List",
41
+ icon: h,
42
+ prefix: "- ",
43
+ suffix: "",
44
+ placeholder: "List item",
45
+ block: !0
46
+ },
47
+ {
48
+ label: "Numbered List",
49
+ icon: g,
50
+ prefix: "1. ",
51
+ suffix: "",
52
+ placeholder: "List item",
53
+ block: !0
54
+ },
55
+ {
56
+ label: "Link",
57
+ icon: m,
58
+ prefix: "[",
59
+ suffix: "](url)",
60
+ placeholder: "link text"
61
+ },
62
+ {
63
+ label: "Code Block",
64
+ icon: l,
65
+ prefix: "```\n",
66
+ suffix: "\n```",
67
+ placeholder: "code",
68
+ block: !0
69
+ },
70
+ {
71
+ label: "Quote",
72
+ icon: v,
73
+ prefix: "> ",
74
+ suffix: "",
75
+ placeholder: "quote text",
76
+ block: !0
77
+ }
78
+ ];
79
+ function C({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
80
+ let m = e(), [h, g] = s({
81
+ slug: c?.slug || "",
82
+ title: c?.title || "",
83
+ content: c?.content || "",
84
+ contentFormat: c?.contentFormat || "markdown",
85
+ seoTitle: c?.seoTitle || "",
86
+ seoDescription: c?.seoDescription || "",
87
+ seoKeywords: c?.seoKeywords || "",
88
+ isPublished: c?.isPublished ?? !1,
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 = () => {
92
+ try {
93
+ 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;
95
+ } catch (e) {
96
+ if (e instanceof t) {
97
+ let t = {};
98
+ e.issues.forEach((e) => {
99
+ let n = e.path.join(".");
100
+ t[n] = e.message;
101
+ }), T(t);
102
+ }
103
+ return !1;
104
+ }
105
+ }, A = async (e) => {
106
+ if (e.preventDefault(), !k()) return;
107
+ let t = typeof h.sortOrder == "string" ? parseInt(h.sortOrder, 10) || 0 : h.sortOrder;
108
+ await l(c ? {
109
+ title: h.title === c.title ? void 0 : h.title,
110
+ content: h.content === c.content ? void 0 : h.content,
111
+ contentFormat: h.contentFormat === c.contentFormat ? void 0 : h.contentFormat,
112
+ seoTitle: h.seoTitle === (c.seoTitle || "") ? void 0 : h.seoTitle || void 0,
113
+ seoDescription: h.seoDescription === (c.seoDescription || "") ? void 0 : h.seoDescription || void 0,
114
+ seoKeywords: h.seoKeywords === (c.seoKeywords || "") ? void 0 : h.seoKeywords || void 0,
115
+ isPublished: h.isPublished === c.isPublished ? void 0 : h.isPublished,
116
+ sortOrder: t === c.sortOrder ? void 0 : t,
117
+ productId: h.productId === (c.productId || "") ? void 0 : h.productId || void 0,
118
+ tags: v
119
+ } : {
120
+ slug: h.slug,
121
+ title: h.title,
122
+ content: h.content,
123
+ contentFormat: h.contentFormat || "markdown",
124
+ seoTitle: h.seoTitle || void 0,
125
+ seoDescription: h.seoDescription || void 0,
126
+ seoKeywords: h.seoKeywords || void 0,
127
+ isPublished: h.isPublished,
128
+ sortOrder: t,
129
+ productId: h.productId || void 0,
130
+ tags: v
131
+ });
132
+ }, j = a((e) => {
133
+ let t = O.current;
134
+ if (!t) return;
135
+ let { selectionStart: n, selectionEnd: r } = t, i = h.content, a = i.substring(n, r) || e.placeholder, o, s, c;
136
+ o = e.block && n > 0 && i[n - 1] !== "\n" ? `\n${e.prefix}${a}${e.suffix}` : `${e.prefix}${a}${e.suffix}`;
137
+ let l = i.substring(0, n), u = i.substring(r), d = l + o + u;
138
+ g((e) => ({
139
+ ...e,
140
+ content: d
141
+ })), s = n + o.indexOf(a), c = s + a.length, requestAnimationFrame(() => {
142
+ t.focus(), t.setSelectionRange(s, c);
143
+ });
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 ";
145
+ return /* @__PURE__ */ b("form", {
146
+ onSubmit: A,
147
+ className: "space-y-6 animate-in fade-in duration-300",
148
+ children: [
149
+ /* @__PURE__ */ b("div", {
150
+ className: "space-y-4",
151
+ children: [
152
+ /* @__PURE__ */ y("h3", {
153
+ className: "text-sm font-semibold text-text-secondary uppercase tracking-wider",
154
+ children: m("contentPages.basicInformation", "Basic Information")
155
+ }),
156
+ /* @__PURE__ */ b("div", { children: [
157
+ /* @__PURE__ */ b("label", {
158
+ htmlFor: "slug",
159
+ className: "block text-sm font-medium text-text-primary mb-1",
160
+ children: [
161
+ m("contentPages.slug", "Slug"),
162
+ " ",
163
+ /* @__PURE__ */ y("span", {
164
+ className: "text-[var(--color-status-error)]",
165
+ children: "*"
166
+ })
167
+ ]
168
+ }),
169
+ /* @__PURE__ */ y("input", {
170
+ id: "slug",
171
+ type: "text",
172
+ value: h.slug,
173
+ onChange: (e) => g({
174
+ ...h,
175
+ slug: e.target.value.toLowerCase().replace(/\s+/g, "-")
176
+ }),
177
+ className: M,
178
+ placeholder: "page-slug",
179
+ disabled: p || !!c,
180
+ required: !c
181
+ }),
182
+ /* @__PURE__ */ y("p", {
183
+ className: "text-xs text-text-tertiary mt-1",
184
+ children: m("contentPages.slugHint", "Lowercase letters, numbers, and hyphens only. Cannot be changed after creation.")
185
+ }),
186
+ w.slug && /* @__PURE__ */ y("p", {
187
+ className: "text-sm text-[var(--color-status-error)] mt-1",
188
+ children: w.slug
189
+ })
190
+ ] }),
191
+ /* @__PURE__ */ b("div", { children: [
192
+ /* @__PURE__ */ b("label", {
193
+ htmlFor: "title",
194
+ className: "block text-sm font-medium text-text-primary mb-1",
195
+ children: [
196
+ m("contentPages.pageTitle", "Title"),
197
+ " ",
198
+ /* @__PURE__ */ y("span", {
199
+ className: "text-[var(--color-status-error)]",
200
+ children: "*"
201
+ })
202
+ ]
203
+ }),
204
+ /* @__PURE__ */ y("input", {
205
+ id: "title",
206
+ type: "text",
207
+ value: h.title,
208
+ onChange: (e) => g({
209
+ ...h,
210
+ title: e.target.value
211
+ }),
212
+ className: M,
213
+ placeholder: m("contentPages.enterPageTitle", "Enter page title"),
214
+ disabled: p,
215
+ required: !0
216
+ }),
217
+ w.title && /* @__PURE__ */ y("p", {
218
+ className: "text-sm text-[var(--color-status-error)] mt-1",
219
+ children: w.title
220
+ })
221
+ ] })
222
+ ]
223
+ }),
224
+ /* @__PURE__ */ b("div", {
225
+ className: "space-y-4 pt-4 border-t border-default",
226
+ children: [
227
+ /* @__PURE__ */ y("h3", {
228
+ className: "text-sm font-semibold text-text-secondary uppercase tracking-wider",
229
+ children: m("contentPages.contentEditor", "Content Editor")
230
+ }),
231
+ /* @__PURE__ */ b("div", {
232
+ className: "border border-default rounded-lg overflow-hidden",
233
+ children: [/* @__PURE__ */ b("div", {
234
+ className: "flex items-center justify-between bg-muted px-2 py-1.5 border-b border-default",
235
+ children: [/* @__PURE__ */ y("div", {
236
+ className: "flex items-center gap-0.5",
237
+ children: S.map((e) => {
238
+ let t = e.icon;
239
+ return /* @__PURE__ */ y("button", {
240
+ type: "button",
241
+ title: e.label,
242
+ onClick: () => j(e),
243
+ disabled: p || E,
244
+ 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
+ children: /* @__PURE__ */ y(t, { size: 16 })
246
+ }, e.label);
247
+ })
248
+ }), /* @__PURE__ */ b("div", {
249
+ className: "flex items-center gap-1",
250
+ children: [/* @__PURE__ */ b("button", {
251
+ type: "button",
252
+ onClick: () => D(!1),
253
+ className: `
254
+ inline-flex items-center gap-1.5 px-3 py-1 rounded text-xs font-medium
255
+ transition-all duration-150
256
+ ${E ? "text-text-tertiary hover:text-text-secondary" : "bg-surface text-text-primary shadow-sm"}
257
+ `,
258
+ children: [/* @__PURE__ */ y(d, { size: 14 }), m("contentPages.editMode", "Edit")]
259
+ }), /* @__PURE__ */ b("button", {
260
+ type: "button",
261
+ onClick: () => D(!0),
262
+ className: `
263
+ inline-flex items-center gap-1.5 px-3 py-1 rounded text-xs font-medium
264
+ transition-all duration-150
265
+ ${E ? "bg-surface text-text-primary shadow-sm" : "text-text-tertiary hover:text-text-secondary"}
266
+ `,
267
+ children: [/* @__PURE__ */ y(u, { size: 14 }), m("contentPages.previewMode", "Preview")]
268
+ })]
269
+ })]
270
+ }), /* @__PURE__ */ b("div", {
271
+ className: "relative",
272
+ children: [!E && /* @__PURE__ */ y("textarea", {
273
+ ref: O,
274
+ id: "content",
275
+ value: h.content,
276
+ onChange: (e) => g({
277
+ ...h,
278
+ content: e.target.value
279
+ }),
280
+ 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
+ placeholder: m("contentPages.writeContentPlaceholder", "Write your content in markdown..."),
282
+ disabled: p
283
+ }), E && /* @__PURE__ */ y("div", {
284
+ 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
+ dangerouslySetInnerHTML: { __html: h.content ? x(h.content) : "<p class=\"text-gray-400 italic\">Nothing to preview yet. Start writing in the editor.</p>" }
286
+ })]
287
+ })]
288
+ }),
289
+ w.content && /* @__PURE__ */ y("p", {
290
+ className: "text-sm text-[var(--color-status-error)] mt-1",
291
+ children: w.content
292
+ })
293
+ ]
294
+ }),
295
+ /* @__PURE__ */ b("div", {
296
+ className: "space-y-4 pt-4 border-t border-default",
297
+ children: [
298
+ /* @__PURE__ */ y("h3", {
299
+ className: "text-sm font-semibold text-text-secondary uppercase tracking-wider",
300
+ children: m("contentPages.seoMetadata", "SEO Metadata")
301
+ }),
302
+ /* @__PURE__ */ b("div", { children: [
303
+ /* @__PURE__ */ y("label", {
304
+ htmlFor: "seoTitle",
305
+ className: "block text-sm font-medium text-text-primary mb-1",
306
+ children: m("contentPages.seoTitle", "SEO Title")
307
+ }),
308
+ /* @__PURE__ */ y("input", {
309
+ id: "seoTitle",
310
+ type: "text",
311
+ value: h.seoTitle,
312
+ onChange: (e) => g({
313
+ ...h,
314
+ seoTitle: e.target.value
315
+ }),
316
+ className: M,
317
+ placeholder: m("contentPages.seoTitlePlaceholder", "Page title for search engines"),
318
+ disabled: p
319
+ }),
320
+ /* @__PURE__ */ b("p", {
321
+ className: "text-xs text-text-tertiary mt-1",
322
+ children: [h.seoTitle.length, "/100 characters"]
323
+ }),
324
+ w.seoTitle && /* @__PURE__ */ y("p", {
325
+ className: "text-sm text-[var(--color-status-error)] mt-1",
326
+ children: w.seoTitle
327
+ })
328
+ ] }),
329
+ /* @__PURE__ */ b("div", { children: [
330
+ /* @__PURE__ */ y("label", {
331
+ htmlFor: "seoDescription",
332
+ className: "block text-sm font-medium text-text-primary mb-1",
333
+ children: m("contentPages.seoDescription", "SEO Description")
334
+ }),
335
+ /* @__PURE__ */ y("textarea", {
336
+ id: "seoDescription",
337
+ value: h.seoDescription,
338
+ onChange: (e) => g({
339
+ ...h,
340
+ seoDescription: e.target.value
341
+ }),
342
+ rows: 3,
343
+ className: M,
344
+ placeholder: m("contentPages.seoDescriptionPlaceholder", "Brief description for search engine results"),
345
+ disabled: p
346
+ }),
347
+ /* @__PURE__ */ b("p", {
348
+ className: "text-xs text-text-tertiary mt-1",
349
+ children: [h.seoDescription.length, "/300 characters"]
350
+ }),
351
+ w.seoDescription && /* @__PURE__ */ y("p", {
352
+ className: "text-sm text-[var(--color-status-error)] mt-1",
353
+ children: w.seoDescription
354
+ })
355
+ ] }),
356
+ /* @__PURE__ */ b("div", { children: [
357
+ /* @__PURE__ */ y("label", {
358
+ htmlFor: "seoKeywords",
359
+ className: "block text-sm font-medium text-text-primary mb-1",
360
+ children: m("contentPages.seoKeywords", "SEO Keywords")
361
+ }),
362
+ /* @__PURE__ */ y("input", {
363
+ id: "seoKeywords",
364
+ type: "text",
365
+ value: h.seoKeywords,
366
+ onChange: (e) => g({
367
+ ...h,
368
+ seoKeywords: e.target.value
369
+ }),
370
+ className: M,
371
+ placeholder: "keyword1, keyword2, keyword3",
372
+ disabled: p
373
+ }),
374
+ /* @__PURE__ */ b("p", {
375
+ className: "text-xs text-text-tertiary mt-1",
376
+ children: [
377
+ "Comma-separated keywords. ",
378
+ h.seoKeywords.length,
379
+ "/200 characters"
380
+ ]
381
+ }),
382
+ w.seoKeywords && /* @__PURE__ */ y("p", {
383
+ className: "text-sm text-[var(--color-status-error)] mt-1",
384
+ children: w.seoKeywords
385
+ })
386
+ ] })
387
+ ]
388
+ }),
389
+ /* @__PURE__ */ b("div", {
390
+ className: "space-y-4 pt-4 border-t border-default",
391
+ children: [
392
+ /* @__PURE__ */ y("h3", {
393
+ className: "text-sm font-semibold text-text-secondary uppercase tracking-wider",
394
+ children: m("contentPages.publishing", "Publishing")
395
+ }),
396
+ /* @__PURE__ */ b("div", {
397
+ className: "flex items-center gap-3",
398
+ children: [/* @__PURE__ */ y("button", {
399
+ type: "button",
400
+ role: "switch",
401
+ "aria-checked": h.isPublished,
402
+ onClick: () => g({
403
+ ...h,
404
+ isPublished: !h.isPublished
405
+ }),
406
+ disabled: p,
407
+ className: `
408
+ relative inline-flex h-6 w-11 shrink-0
409
+ cursor-pointer rounded-full
410
+ border-2 border-transparent
411
+ transition-colors duration-200 ease-in-out
412
+ focus:outline-none focus:ring-2 focus:ring-[var(--color-border-focus)] focus:ring-offset-2
413
+ disabled:opacity-50 disabled:cursor-not-allowed
414
+ ${h.isPublished ? "bg-[var(--color-action-primary-bg)]" : "bg-gray-300 dark:bg-gray-600"}
415
+ `,
416
+ children: /* @__PURE__ */ y("span", { className: `
417
+ pointer-events-none inline-block h-5 w-5
418
+ transform rounded-full bg-white shadow ring-0
419
+ transition duration-200 ease-in-out
420
+ ${h.isPublished ? "translate-x-5" : "translate-x-0"}
421
+ ` })
422
+ }), /* @__PURE__ */ y("label", {
423
+ className: "text-sm font-medium text-text-primary",
424
+ children: h.isPublished ? m("contentPages.published", "Published") : m("contentPages.draft", "Draft")
425
+ })]
426
+ }),
427
+ w.isPublished && /* @__PURE__ */ y("p", {
428
+ className: "text-sm text-[var(--color-status-error)] mt-1",
429
+ children: w.isPublished
430
+ }),
431
+ /* @__PURE__ */ b("div", { children: [
432
+ /* @__PURE__ */ y("label", {
433
+ htmlFor: "sortOrder",
434
+ className: "block text-sm font-medium text-text-primary mb-1",
435
+ children: m("contentPages.sortOrder", "Sort Order")
436
+ }),
437
+ /* @__PURE__ */ y("input", {
438
+ id: "sortOrder",
439
+ type: "number",
440
+ min: 0,
441
+ value: h.sortOrder,
442
+ onChange: (e) => g({
443
+ ...h,
444
+ sortOrder: parseInt(e.target.value, 10) || 0
445
+ }),
446
+ className: M,
447
+ placeholder: "0",
448
+ disabled: p
449
+ }),
450
+ /* @__PURE__ */ y("p", {
451
+ className: "text-xs text-text-tertiary mt-1",
452
+ children: m("contentPages.sortOrderHint", "Lower numbers appear first. Default is 0.")
453
+ }),
454
+ w.sortOrder && /* @__PURE__ */ y("p", {
455
+ className: "text-sm text-[var(--color-status-error)] mt-1",
456
+ children: w.sortOrder
457
+ })
458
+ ] }),
459
+ /* @__PURE__ */ b("div", { children: [
460
+ /* @__PURE__ */ y("label", {
461
+ htmlFor: "productId",
462
+ className: "block text-sm font-medium text-text-primary mb-1",
463
+ children: m("contentPages.productId", "Product ID")
464
+ }),
465
+ /* @__PURE__ */ y("input", {
466
+ id: "productId",
467
+ type: "text",
468
+ value: h.productId,
469
+ onChange: (e) => g({
470
+ ...h,
471
+ productId: e.target.value
472
+ }),
473
+ className: M,
474
+ placeholder: m("contentPages.productIdPlaceholder", "Optional product association"),
475
+ disabled: p
476
+ }),
477
+ /* @__PURE__ */ y("p", {
478
+ className: "text-xs text-text-tertiary mt-1",
479
+ children: m("contentPages.productIdHint", "Associate this content page with a specific product.")
480
+ }),
481
+ w.productId && /* @__PURE__ */ y("p", {
482
+ className: "text-sm text-[var(--color-status-error)] mt-1",
483
+ children: w.productId
484
+ })
485
+ ] })
486
+ ]
487
+ }),
488
+ /* @__PURE__ */ b("div", {
489
+ className: "space-y-4 pt-4 border-t border-default",
490
+ children: [
491
+ /* @__PURE__ */ y("h3", {
492
+ className: "text-sm font-semibold text-text-secondary uppercase tracking-wider",
493
+ children: "Tags"
494
+ }),
495
+ /* @__PURE__ */ y(n, {
496
+ value: v,
497
+ onChange: C,
498
+ disabled: p
499
+ }),
500
+ /* @__PURE__ */ y("p", {
501
+ className: "text-xs text-text-tertiary",
502
+ children: "Press Enter or comma to add a tag."
503
+ })
504
+ ]
505
+ }),
506
+ /* @__PURE__ */ b("div", {
507
+ className: "flex gap-3 pt-4 border-t border-default",
508
+ children: [/* @__PURE__ */ b("button", {
509
+ type: "submit",
510
+ disabled: p,
511
+ className: "\n inline-flex items-center gap-2 px-6 py-2.5\n bg-[var(--color-action-primary-bg)]\n text-[var(--color-action-primary-text)]\n rounded-lg\n hover:opacity-90 hover:scale-[1.02]\n transition-all duration-200\n font-medium\n disabled:opacity-50 disabled:cursor-not-allowed\n ",
512
+ children: [p && /* @__PURE__ */ y(_, {
513
+ size: 16,
514
+ className: "animate-spin"
515
+ }), c ? m("contentPages.updateContentPage", "Update Content Page") : m("contentPages.createContentPage", "Create Content Page")]
516
+ }), /* @__PURE__ */ y("button", {
517
+ type: "button",
518
+ onClick: f,
519
+ disabled: p,
520
+ className: "\n px-6 py-2.5\n bg-transparent\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-muted\n transition-all duration-200\n font-medium\n disabled:opacity-50 disabled:cursor-not-allowed\n ",
521
+ children: m("productCommon.cancel", "Cancel")
522
+ })]
523
+ })
524
+ ]
525
+ });
526
+ }
527
+ //#endregion
528
+ export { C as ContentPageForm };
529
+
530
+ //# sourceMappingURL=ContentPageForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentPageForm.js","names":[],"sources":["../../../../../src/product-management/modules/content-pages/components/ContentPageForm.tsx"],"sourcesContent":["import { useState, useRef, useCallback } from 'react';\nimport { TagInput } from '../../../shared/components/input/TagInput';\nimport {\n Loader2,\n Eye,\n EyeOff,\n Bold,\n Italic,\n Heading,\n List,\n ListOrdered,\n Link,\n Code,\n Quote,\n} from 'lucide-react';\nimport { ZodError } from 'zod';\nimport { useTr } from '../../../shared/hooks/useTr';\nimport type { ProductContentPage, CreateContentPageInput, UpdateContentPageInput } from '../types';\nimport { createContentPageSchema, updateContentPageSchema } from '../schemas';\n\ninterface ContentPageFormProps {\n contentPage?: ProductContentPage | null;\n onSubmit: (data: CreateContentPageInput | UpdateContentPageInput) => Promise<void>;\n onCancel: () => void;\n loading?: boolean;\n}\n\n/**\n * Simple markdown-to-HTML renderer.\n * Converts common markdown syntax to HTML using regex replacements.\n * No external libraries required.\n */\nfunction renderMarkdown(md: string): string {\n let html = md;\n\n // Escape HTML entities first to prevent XSS\n html = html.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');\n\n // Code blocks (fenced with ```)\n html = html.replace(/```(\\w*)\\n([\\s\\S]*?)```/g, (_match, _lang, code) => {\n return `<pre class=\"bg-gray-900 text-gray-100 rounded-lg p-4 overflow-x-auto my-3\"><code>${code.trim()}</code></pre>`;\n });\n\n // Inline code\n html = html.replace(\n /`([^`]+)`/g,\n '<code class=\"bg-gray-200 dark:bg-gray-700 px-1.5 py-0.5 rounded text-sm\">$1</code>'\n );\n\n // Headings (h1 - h6)\n html = html.replace(/^###### (.+)$/gm, '<h6 class=\"text-sm font-semibold mt-4 mb-2\">$1</h6>');\n html = html.replace(/^##### (.+)$/gm, '<h5 class=\"text-sm font-bold mt-4 mb-2\">$1</h5>');\n html = html.replace(/^#### (.+)$/gm, '<h4 class=\"text-base font-bold mt-4 mb-2\">$1</h4>');\n html = html.replace(/^### (.+)$/gm, '<h3 class=\"text-lg font-bold mt-4 mb-2\">$1</h3>');\n html = html.replace(/^## (.+)$/gm, '<h2 class=\"text-xl font-bold mt-5 mb-2\">$1</h2>');\n html = html.replace(/^# (.+)$/gm, '<h1 class=\"text-2xl font-bold mt-6 mb-3\">$1</h1>');\n\n // Bold & Italic combined\n html = html.replace(/\\*\\*\\*(.+?)\\*\\*\\*/g, '<strong><em>$1</em></strong>');\n // Bold\n html = html.replace(/\\*\\*(.+?)\\*\\*/g, '<strong>$1</strong>');\n // Italic\n html = html.replace(/\\*(.+?)\\*/g, '<em>$1</em>');\n\n // Links: [text](url)\n html = html.replace(\n /\\[([^\\]]+)\\]\\(([^)]+)\\)/g,\n '<a href=\"$2\" class=\"text-blue-500 underline hover:text-blue-700\" target=\"_blank\" rel=\"noopener noreferrer\">$1</a>'\n );\n\n // Blockquotes (supports multi-line consecutive &gt; lines)\n html = html.replace(\n /^&gt; (.+)$/gm,\n '<blockquote class=\"border-l-4 border-gray-300 pl-4 italic text-gray-600 my-2\">$1</blockquote>'\n );\n\n // Unordered lists: detect consecutive lines starting with \"- \"\n html = html.replace(/(^- .+$(\\n^- .+$)*)/gm, (block) => {\n const items = block\n .split('\\n')\n .map((line) => `<li class=\"ml-4\">${line.replace(/^- /, '')}</li>`)\n .join('\\n');\n return `<ul class=\"list-disc list-inside my-2\">\\n${items}\\n</ul>`;\n });\n\n // Ordered lists: detect consecutive lines starting with \"N. \"\n html = html.replace(/(^\\d+\\. .+$(\\n^\\d+\\. .+$)*)/gm, (block) => {\n const items = block\n .split('\\n')\n .map((line) => `<li class=\"ml-4\">${line.replace(/^\\d+\\. /, '')}</li>`)\n .join('\\n');\n return `<ol class=\"list-decimal list-inside my-2\">\\n${items}\\n</ol>`;\n });\n\n // Horizontal rule\n html = html.replace(/^---$/gm, '<hr class=\"my-4 border-gray-300\" />');\n\n // Paragraphs: wrap remaining bare lines in <p> tags\n // Split by double newlines for paragraph breaks\n html = html\n .split(/\\n\\n+/)\n .map((block) => {\n const trimmed = block.trim();\n if (!trimmed) return '';\n // Don't wrap blocks that already start with HTML tags\n if (/^<(h[1-6]|ul|ol|pre|blockquote|hr|div)/.test(trimmed)) {\n return trimmed;\n }\n return `<p class=\"my-2 leading-relaxed\">${trimmed.replace(/\\n/g, '<br />')}</p>`;\n })\n .join('\\n');\n\n return html;\n}\n\ntype ToolbarAction = {\n label: string;\n icon: React.ComponentType<{ size?: number }>;\n prefix: string;\n suffix: string;\n placeholder: string;\n block?: boolean;\n};\n\nconst TOOLBAR_ACTIONS: ToolbarAction[] = [\n { label: 'Bold', icon: Bold, prefix: '**', suffix: '**', placeholder: 'bold text' },\n { label: 'Italic', icon: Italic, prefix: '*', suffix: '*', placeholder: 'italic text' },\n {\n label: 'Heading',\n icon: Heading,\n prefix: '## ',\n suffix: '',\n placeholder: 'Heading',\n block: true,\n },\n {\n label: 'Bullet List',\n icon: List,\n prefix: '- ',\n suffix: '',\n placeholder: 'List item',\n block: true,\n },\n {\n label: 'Numbered List',\n icon: ListOrdered,\n prefix: '1. ',\n suffix: '',\n placeholder: 'List item',\n block: true,\n },\n { label: 'Link', icon: Link, prefix: '[', suffix: '](url)', placeholder: 'link text' },\n {\n label: 'Code Block',\n icon: Code,\n prefix: '```\\n',\n suffix: '\\n```',\n placeholder: 'code',\n block: true,\n },\n { label: 'Quote', icon: Quote, prefix: '> ', suffix: '', placeholder: 'quote text', block: true },\n];\n\nexport function ContentPageForm({\n contentPage,\n onSubmit,\n onCancel,\n loading,\n}: ContentPageFormProps) {\n const tr = useTr();\n const [formData, setFormData] = useState({\n slug: contentPage?.slug || '',\n title: contentPage?.title || '',\n content: contentPage?.content || '',\n contentFormat: contentPage?.contentFormat || 'markdown',\n seoTitle: contentPage?.seoTitle || '',\n seoDescription: contentPage?.seoDescription || '',\n seoKeywords: contentPage?.seoKeywords || '',\n isPublished: contentPage?.isPublished ?? false,\n sortOrder: contentPage?.sortOrder ?? 0,\n productId: contentPage?.productId || '',\n });\n\n const [tags, setTags] = useState<string[]>(contentPage?.tags ?? []);\n const [errors, setErrors] = useState<Record<string, string>>({});\n const [showPreview, setShowPreview] = useState(false);\n const textareaRef = useRef<HTMLTextAreaElement>(null);\n\n const validate = () => {\n try {\n const schema = contentPage ? updateContentPageSchema : createContentPageSchema;\n const dataToValidate: Record<string, unknown> = { ...formData };\n // Convert sortOrder to number for validation\n dataToValidate.sortOrder =\n typeof formData.sortOrder === 'string'\n ? parseInt(formData.sortOrder as string, 10) || 0\n : formData.sortOrder;\n // Strip empty optional strings so Zod doesn't complain\n if (!dataToValidate.seoTitle) delete dataToValidate.seoTitle;\n if (!dataToValidate.seoDescription) delete dataToValidate.seoDescription;\n if (!dataToValidate.seoKeywords) delete dataToValidate.seoKeywords;\n if (!dataToValidate.productId) delete dataToValidate.productId;\n if (!dataToValidate.contentFormat) dataToValidate.contentFormat = 'markdown';\n\n schema.parse(dataToValidate);\n setErrors({});\n return true;\n } catch (error) {\n if (error instanceof ZodError) {\n const newErrors: Record<string, string> = {};\n error.issues.forEach((issue) => {\n const path = issue.path.join('.');\n newErrors[path] = issue.message;\n });\n setErrors(newErrors);\n }\n return false;\n }\n };\n\n const handleSubmit = async (e: React.FormEvent) => {\n e.preventDefault();\n\n if (!validate()) {\n return;\n }\n\n const sortOrderNum =\n typeof formData.sortOrder === 'string'\n ? parseInt(formData.sortOrder as string, 10) || 0\n : formData.sortOrder;\n\n const submitData = contentPage\n ? {\n // Update only changed fields\n title: formData.title !== contentPage.title ? formData.title : undefined,\n content: formData.content !== contentPage.content ? formData.content : undefined,\n contentFormat:\n formData.contentFormat !== contentPage.contentFormat\n ? formData.contentFormat\n : undefined,\n seoTitle:\n formData.seoTitle !== (contentPage.seoTitle || '')\n ? formData.seoTitle || undefined\n : undefined,\n seoDescription:\n formData.seoDescription !== (contentPage.seoDescription || '')\n ? formData.seoDescription || undefined\n : undefined,\n seoKeywords:\n formData.seoKeywords !== (contentPage.seoKeywords || '')\n ? formData.seoKeywords || undefined\n : undefined,\n isPublished:\n formData.isPublished !== contentPage.isPublished ? formData.isPublished : undefined,\n sortOrder: sortOrderNum !== contentPage.sortOrder ? sortOrderNum : undefined,\n productId:\n formData.productId !== (contentPage.productId || '')\n ? formData.productId || undefined\n : undefined,\n tags,\n }\n : {\n // Create with all fields\n slug: formData.slug,\n title: formData.title,\n content: formData.content,\n contentFormat: formData.contentFormat || 'markdown',\n seoTitle: formData.seoTitle || undefined,\n seoDescription: formData.seoDescription || undefined,\n seoKeywords: formData.seoKeywords || undefined,\n isPublished: formData.isPublished,\n sortOrder: sortOrderNum,\n productId: formData.productId || undefined,\n tags,\n };\n\n await onSubmit(submitData);\n };\n\n const insertMarkdown = useCallback(\n (action: ToolbarAction) => {\n const textarea = textareaRef.current;\n if (!textarea) return;\n\n const { selectionStart, selectionEnd } = textarea;\n const currentContent = formData.content;\n const selectedText = currentContent.substring(selectionStart, selectionEnd);\n const textToWrap = selectedText || action.placeholder;\n\n let insertion: string;\n let newCursorStart: number;\n let newCursorEnd: number;\n\n if (action.block && selectionStart > 0 && currentContent[selectionStart - 1] !== '\\n') {\n // For block-level elements, ensure they start on a new line\n insertion = `\\n${action.prefix}${textToWrap}${action.suffix}`;\n } else {\n insertion = `${action.prefix}${textToWrap}${action.suffix}`;\n }\n\n const before = currentContent.substring(0, selectionStart);\n const after = currentContent.substring(selectionEnd);\n const newContent = before + insertion + after;\n\n setFormData((prev) => ({ ...prev, content: newContent }));\n\n // Calculate new cursor position to select the inserted text\n const prefixLen = insertion.indexOf(textToWrap);\n newCursorStart = selectionStart + prefixLen;\n newCursorEnd = newCursorStart + textToWrap.length;\n\n // Restore focus and selection after state update\n requestAnimationFrame(() => {\n textarea.focus();\n textarea.setSelectionRange(newCursorStart, newCursorEnd);\n });\n },\n [formData.content]\n );\n\n const inputClassName = `\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 `;\n\n const toolbarButtonClassName = `\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 `;\n\n return (\n <form onSubmit={handleSubmit} className=\"space-y-6 animate-in fade-in duration-300\">\n {/* Basic Information Section */}\n <div className=\"space-y-4\">\n <h3 className=\"text-sm font-semibold text-text-secondary uppercase tracking-wider\">\n {tr('contentPages.basicInformation', 'Basic Information')}\n </h3>\n\n {/* Slug */}\n <div>\n <label htmlFor=\"slug\" className=\"block text-sm font-medium text-text-primary mb-1\">\n {tr('contentPages.slug', 'Slug')}{' '}\n <span className=\"text-[var(--color-status-error)]\">*</span>\n </label>\n <input\n id=\"slug\"\n type=\"text\"\n value={formData.slug}\n onChange={(e) =>\n setFormData({\n ...formData,\n slug: e.target.value.toLowerCase().replace(/\\s+/g, '-'),\n })\n }\n className={inputClassName}\n placeholder=\"page-slug\"\n disabled={loading || !!contentPage}\n required={!contentPage}\n />\n <p className=\"text-xs text-text-tertiary mt-1\">\n {tr(\n 'contentPages.slugHint',\n 'Lowercase letters, numbers, and hyphens only. Cannot be changed after creation.'\n )}\n </p>\n {errors.slug && (\n <p className=\"text-sm text-[var(--color-status-error)] mt-1\">{errors.slug}</p>\n )}\n </div>\n\n {/* Title */}\n <div>\n <label htmlFor=\"title\" className=\"block text-sm font-medium text-text-primary mb-1\">\n {tr('contentPages.pageTitle', 'Title')}{' '}\n <span className=\"text-[var(--color-status-error)]\">*</span>\n </label>\n <input\n id=\"title\"\n type=\"text\"\n value={formData.title}\n onChange={(e) => setFormData({ ...formData, title: e.target.value })}\n className={inputClassName}\n placeholder={tr('contentPages.enterPageTitle', 'Enter page title')}\n disabled={loading}\n required\n />\n {errors.title && (\n <p className=\"text-sm text-[var(--color-status-error)] mt-1\">{errors.title}</p>\n )}\n </div>\n </div>\n\n {/* Content Editor Section */}\n <div className=\"space-y-4 pt-4 border-t border-default\">\n <h3 className=\"text-sm font-semibold text-text-secondary uppercase tracking-wider\">\n {tr('contentPages.contentEditor', 'Content Editor')}\n </h3>\n\n {/* Editor Toolbar & Tabs */}\n <div className=\"border border-default rounded-lg overflow-hidden\">\n {/* Top bar: Toolbar + Toggle */}\n <div className=\"flex items-center justify-between bg-muted px-2 py-1.5 border-b border-default\">\n {/* Formatting Toolbar */}\n <div className=\"flex items-center gap-0.5\">\n {TOOLBAR_ACTIONS.map((action) => {\n const IconComponent = action.icon;\n return (\n <button\n key={action.label}\n type=\"button\"\n title={action.label}\n onClick={() => insertMarkdown(action)}\n disabled={loading || showPreview}\n className={toolbarButtonClassName}\n >\n <IconComponent size={16} />\n </button>\n );\n })}\n </div>\n\n {/* Edit / Preview Toggle */}\n <div className=\"flex items-center gap-1\">\n <button\n type=\"button\"\n onClick={() => setShowPreview(false)}\n className={`\n inline-flex items-center gap-1.5 px-3 py-1 rounded text-xs font-medium\n transition-all duration-150\n ${\n !showPreview\n ? 'bg-surface text-text-primary shadow-sm'\n : 'text-text-tertiary hover:text-text-secondary'\n }\n `}\n >\n <EyeOff size={14} />\n {tr('contentPages.editMode', 'Edit')}\n </button>\n <button\n type=\"button\"\n onClick={() => setShowPreview(true)}\n className={`\n inline-flex items-center gap-1.5 px-3 py-1 rounded text-xs font-medium\n transition-all duration-150\n ${\n showPreview\n ? 'bg-surface text-text-primary shadow-sm'\n : 'text-text-tertiary hover:text-text-secondary'\n }\n `}\n >\n <Eye size={14} />\n {tr('contentPages.previewMode', 'Preview')}\n </button>\n </div>\n </div>\n\n {/* Editor / Preview Panels */}\n <div className=\"relative\">\n {/* Edit Panel */}\n {!showPreview && (\n <textarea\n ref={textareaRef}\n id=\"content\"\n value={formData.content}\n onChange={(e) => setFormData({ ...formData, content: e.target.value })}\n 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 `}\n placeholder={tr(\n 'contentPages.writeContentPlaceholder',\n 'Write your content in markdown...'\n )}\n disabled={loading}\n />\n )}\n\n {/* Preview Panel */}\n {showPreview && (\n <div\n 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 \"\n dangerouslySetInnerHTML={{\n __html: formData.content\n ? renderMarkdown(formData.content)\n : '<p class=\"text-gray-400 italic\">Nothing to preview yet. Start writing in the editor.</p>',\n }}\n />\n )}\n </div>\n </div>\n\n {errors.content && (\n <p className=\"text-sm text-[var(--color-status-error)] mt-1\">{errors.content}</p>\n )}\n </div>\n\n {/* SEO Metadata Section */}\n <div className=\"space-y-4 pt-4 border-t border-default\">\n <h3 className=\"text-sm font-semibold text-text-secondary uppercase tracking-wider\">\n {tr('contentPages.seoMetadata', 'SEO Metadata')}\n </h3>\n\n {/* SEO Title */}\n <div>\n <label htmlFor=\"seoTitle\" className=\"block text-sm font-medium text-text-primary mb-1\">\n {tr('contentPages.seoTitle', 'SEO Title')}\n </label>\n <input\n id=\"seoTitle\"\n type=\"text\"\n value={formData.seoTitle}\n onChange={(e) => setFormData({ ...formData, seoTitle: e.target.value })}\n className={inputClassName}\n placeholder={tr('contentPages.seoTitlePlaceholder', 'Page title for search engines')}\n disabled={loading}\n />\n <p className=\"text-xs text-text-tertiary mt-1\">\n {formData.seoTitle.length}/100 characters\n </p>\n {errors.seoTitle && (\n <p className=\"text-sm text-[var(--color-status-error)] mt-1\">{errors.seoTitle}</p>\n )}\n </div>\n\n {/* SEO Description */}\n <div>\n <label\n htmlFor=\"seoDescription\"\n className=\"block text-sm font-medium text-text-primary mb-1\"\n >\n {tr('contentPages.seoDescription', 'SEO Description')}\n </label>\n <textarea\n id=\"seoDescription\"\n value={formData.seoDescription}\n onChange={(e) => setFormData({ ...formData, seoDescription: e.target.value })}\n rows={3}\n className={inputClassName}\n placeholder={tr(\n 'contentPages.seoDescriptionPlaceholder',\n 'Brief description for search engine results'\n )}\n disabled={loading}\n />\n <p className=\"text-xs text-text-tertiary mt-1\">\n {formData.seoDescription.length}/300 characters\n </p>\n {errors.seoDescription && (\n <p className=\"text-sm text-[var(--color-status-error)] mt-1\">{errors.seoDescription}</p>\n )}\n </div>\n\n {/* SEO Keywords */}\n <div>\n <label htmlFor=\"seoKeywords\" className=\"block text-sm font-medium text-text-primary mb-1\">\n {tr('contentPages.seoKeywords', 'SEO Keywords')}\n </label>\n <input\n id=\"seoKeywords\"\n type=\"text\"\n value={formData.seoKeywords}\n onChange={(e) => setFormData({ ...formData, seoKeywords: e.target.value })}\n className={inputClassName}\n placeholder=\"keyword1, keyword2, keyword3\"\n disabled={loading}\n />\n <p className=\"text-xs text-text-tertiary mt-1\">\n Comma-separated keywords. {formData.seoKeywords.length}/200 characters\n </p>\n {errors.seoKeywords && (\n <p className=\"text-sm text-[var(--color-status-error)] mt-1\">{errors.seoKeywords}</p>\n )}\n </div>\n </div>\n\n {/* Publishing Section */}\n <div className=\"space-y-4 pt-4 border-t border-default\">\n <h3 className=\"text-sm font-semibold text-text-secondary uppercase tracking-wider\">\n {tr('contentPages.publishing', 'Publishing')}\n </h3>\n\n {/* Is Published Toggle */}\n <div className=\"flex items-center gap-3\">\n <button\n type=\"button\"\n role=\"switch\"\n aria-checked={formData.isPublished}\n onClick={() => setFormData({ ...formData, isPublished: !formData.isPublished })}\n disabled={loading}\n className={`\n relative inline-flex h-6 w-11 shrink-0\n cursor-pointer rounded-full\n border-2 border-transparent\n transition-colors duration-200 ease-in-out\n focus:outline-none focus:ring-2 focus:ring-[var(--color-border-focus)] focus:ring-offset-2\n disabled:opacity-50 disabled:cursor-not-allowed\n ${formData.isPublished ? 'bg-[var(--color-action-primary-bg)]' : 'bg-gray-300 dark:bg-gray-600'}\n `}\n >\n <span\n className={`\n pointer-events-none inline-block h-5 w-5\n transform rounded-full bg-white shadow ring-0\n transition duration-200 ease-in-out\n ${formData.isPublished ? 'translate-x-5' : 'translate-x-0'}\n `}\n />\n </button>\n <label className=\"text-sm font-medium text-text-primary\">\n {formData.isPublished\n ? tr('contentPages.published', 'Published')\n : tr('contentPages.draft', 'Draft')}\n </label>\n </div>\n {errors.isPublished && (\n <p className=\"text-sm text-[var(--color-status-error)] mt-1\">{errors.isPublished}</p>\n )}\n\n {/* Sort Order */}\n <div>\n <label htmlFor=\"sortOrder\" className=\"block text-sm font-medium text-text-primary mb-1\">\n {tr('contentPages.sortOrder', 'Sort Order')}\n </label>\n <input\n id=\"sortOrder\"\n type=\"number\"\n min={0}\n value={formData.sortOrder}\n onChange={(e) =>\n setFormData({\n ...formData,\n sortOrder: parseInt(e.target.value, 10) || 0,\n })\n }\n className={inputClassName}\n placeholder=\"0\"\n disabled={loading}\n />\n <p className=\"text-xs text-text-tertiary mt-1\">\n {tr('contentPages.sortOrderHint', 'Lower numbers appear first. Default is 0.')}\n </p>\n {errors.sortOrder && (\n <p className=\"text-sm text-[var(--color-status-error)] mt-1\">{errors.sortOrder}</p>\n )}\n </div>\n\n {/* Product ID (optional association) */}\n <div>\n <label htmlFor=\"productId\" className=\"block text-sm font-medium text-text-primary mb-1\">\n {tr('contentPages.productId', 'Product ID')}\n </label>\n <input\n id=\"productId\"\n type=\"text\"\n value={formData.productId}\n onChange={(e) => setFormData({ ...formData, productId: e.target.value })}\n className={inputClassName}\n placeholder={tr('contentPages.productIdPlaceholder', 'Optional product association')}\n disabled={loading}\n />\n <p className=\"text-xs text-text-tertiary mt-1\">\n {tr(\n 'contentPages.productIdHint',\n 'Associate this content page with a specific product.'\n )}\n </p>\n {errors.productId && (\n <p className=\"text-sm text-[var(--color-status-error)] mt-1\">{errors.productId}</p>\n )}\n </div>\n </div>\n\n {/* Tags Section */}\n <div className=\"space-y-4 pt-4 border-t border-default\">\n <h3 className=\"text-sm font-semibold text-text-secondary uppercase tracking-wider\">Tags</h3>\n <TagInput value={tags} onChange={setTags} disabled={loading} />\n <p className=\"text-xs text-text-tertiary\">Press Enter or comma to add a tag.</p>\n </div>\n\n {/* Form Actions */}\n <div className=\"flex gap-3 pt-4 border-t border-default\">\n <button\n type=\"submit\"\n disabled={loading}\n className=\"\n inline-flex items-center gap-2 px-6 py-2.5\n bg-[var(--color-action-primary-bg)]\n text-[var(--color-action-primary-text)]\n rounded-lg\n hover:opacity-90 hover:scale-[1.02]\n transition-all duration-200\n font-medium\n disabled:opacity-50 disabled:cursor-not-allowed\n \"\n >\n {loading && <Loader2 size={16} className=\"animate-spin\" />}\n {contentPage\n ? tr('contentPages.updateContentPage', 'Update Content Page')\n : tr('contentPages.createContentPage', 'Create Content Page')}\n </button>\n\n <button\n type=\"button\"\n onClick={onCancel}\n disabled={loading}\n className=\"\n px-6 py-2.5\n bg-transparent\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-muted\n transition-all duration-200\n font-medium\n disabled:opacity-50 disabled:cursor-not-allowed\n \"\n >\n {tr('productCommon.cancel', 'Cancel')}\n </button>\n </div>\n </form>\n );\n}\n"],"mappings":";;;;;;;;AAgCA,SAAS,EAAe,GAAoB;CAC1C,IAAI,IAAO;AA+EX,QA5EA,IAAO,EAAK,QAAQ,MAAM,QAAQ,CAAC,QAAQ,MAAM,OAAO,CAAC,QAAQ,MAAM,OAAO,EAG9E,IAAO,EAAK,QAAQ,6BAA6B,GAAQ,GAAO,MACvD,oFAAoF,EAAK,MAAM,CAAC,eACvG,EAGF,IAAO,EAAK,QACV,cACA,uFACD,EAGD,IAAO,EAAK,QAAQ,mBAAmB,wDAAsD,EAC7F,IAAO,EAAK,QAAQ,kBAAkB,oDAAkD,EACxF,IAAO,EAAK,QAAQ,iBAAiB,sDAAoD,EACzF,IAAO,EAAK,QAAQ,gBAAgB,oDAAkD,EACtF,IAAO,EAAK,QAAQ,eAAe,oDAAkD,EACrF,IAAO,EAAK,QAAQ,cAAc,qDAAmD,EAGrF,IAAO,EAAK,QAAQ,sBAAsB,+BAA+B,EAEzE,IAAO,EAAK,QAAQ,kBAAkB,sBAAsB,EAE5D,IAAO,EAAK,QAAQ,cAAc,cAAc,EAGhD,IAAO,EAAK,QACV,4BACA,4HACD,EAGD,IAAO,EAAK,QACV,iBACA,kGACD,EAGD,IAAO,EAAK,QAAQ,0BAA0B,MAKrC,4CAJO,EACX,MAAM,KAAK,CACX,KAAK,MAAS,oBAAoB,EAAK,QAAQ,OAAO,GAAG,CAAC,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KAAW,kBAAC,GAAD;MAAS,MAAM;MAAI,WAAU;MAAiB,CAAA,EACzD,IACG,EAAG,kCAAkC,sBAAsB,GAC3D,EAAG,kCAAkC,sBAAsB,CACxD;QAET,kBAAC,UAAD;KACE,MAAK;KACL,SAAS;KACT,UAAU;KACV,WAAU;eAYT,EAAG,wBAAwB,SAAS;KAC9B,CAAA,CACL;;GACD"}
@@ -0,0 +1,11 @@
1
+ interface ContentPageStatusBadgeProps {
2
+ isPublished: boolean;
3
+ showIcon?: boolean;
4
+ }
5
+ /**
6
+ * ContentPageStatusBadge
7
+ * Displays the published status of a content page with color coding and optional icon
8
+ */
9
+ export declare function ContentPageStatusBadge({ isPublished, showIcon, }: ContentPageStatusBadgeProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=ContentPageStatusBadge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentPageStatusBadge.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/content-pages/components/ContentPageStatusBadge.tsx"],"names":[],"mappings":"AAGA,UAAU,2BAA2B;IACnC,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,WAAW,EACX,QAAe,GAChB,EAAE,2BAA2B,2CAqC7B"}