@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,29 @@
1
+ import { useTr as e } from "../../../shared/hooks/useTr.js";
2
+ import { CircleAlert as t, CircleCheck as n } from "lucide-react";
3
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
+ //#region src/product-management/modules/content-pages/components/ContentPageStatusBadge.tsx
5
+ function a({ isPublished: a, showIcon: o = !0 }) {
6
+ let s = e(), c = a ? {
7
+ label: s("contentPages.published", "Published"),
8
+ icon: n,
9
+ className: "bg-[var(--color-status-success-subtle)] text-[var(--color-status-success)] border-[var(--color-status-success-border)]"
10
+ } : {
11
+ label: s("contentPages.unpublished", "Unpublished"),
12
+ icon: t,
13
+ className: "bg-[var(--color-status-pending-subtle)] text-[var(--color-status-pending)] border-[var(--color-status-pending-border)]"
14
+ }, l = c.icon;
15
+ return /* @__PURE__ */ i("span", {
16
+ className: `
17
+ inline-flex items-center gap-1.5 px-2.5 py-1
18
+ rounded-full text-xs font-medium
19
+ border
20
+ transition-all duration-200
21
+ ${c.className}
22
+ `,
23
+ children: [o && /* @__PURE__ */ r(l, { size: 14 }), c.label]
24
+ });
25
+ }
26
+ //#endregion
27
+ export { a as ContentPageStatusBadge };
28
+
29
+ //# sourceMappingURL=ContentPageStatusBadge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentPageStatusBadge.js","names":[],"sources":["../../../../../src/product-management/modules/content-pages/components/ContentPageStatusBadge.tsx"],"sourcesContent":["import { CircleCheck, CircleAlert } from 'lucide-react';\nimport { useTr } from '../../../shared/hooks/useTr';\n\ninterface ContentPageStatusBadgeProps {\n isPublished: boolean;\n showIcon?: boolean;\n}\n\n/**\n * ContentPageStatusBadge\n * Displays the published status of a content page with color coding and optional icon\n */\nexport function ContentPageStatusBadge({\n isPublished,\n showIcon = true,\n}: ContentPageStatusBadgeProps) {\n const tr = useTr();\n const getStatusConfig = () => {\n if (isPublished) {\n return {\n label: tr('contentPages.published', 'Published'),\n icon: CircleCheck,\n className:\n 'bg-[var(--color-status-success-subtle)] text-[var(--color-status-success)] border-[var(--color-status-success-border)]',\n };\n }\n\n return {\n label: tr('contentPages.unpublished', 'Unpublished'),\n icon: CircleAlert,\n className:\n 'bg-[var(--color-status-pending-subtle)] text-[var(--color-status-pending)] border-[var(--color-status-pending-border)]',\n };\n };\n\n const config = getStatusConfig();\n const Icon = config.icon;\n\n return (\n <span\n className={`\n inline-flex items-center gap-1.5 px-2.5 py-1\n rounded-full text-xs font-medium\n border\n transition-all duration-200\n ${config.className}\n `}\n >\n {showIcon && <Icon size={14} />}\n {config.label}\n </span>\n );\n}\n"],"mappings":";;;;AAYA,SAAgB,EAAuB,EACrC,gBACA,cAAW,MACmB;CAC9B,IAAM,IAAK,GAAO,EAmBZ,IAjBA,IACK;EACL,OAAO,EAAG,0BAA0B,YAAY;EAChD,MAAM;EACN,WACE;EACH,GAGI;EACL,OAAO,EAAG,4BAA4B,cAAc;EACpD,MAAM;EACN,WACE;EACH,EAIG,IAAO,EAAO;AAEpB,QACE,kBAAC,QAAD;EACE,WAAW;;;;;UAKP,EAAO,UAAU;;YANvB,CASG,KAAY,kBAAC,GAAD,EAAM,MAAM,IAAM,CAAA,EAC9B,EAAO,MACH"}
@@ -0,0 +1,76 @@
1
+ import { ProductContentPage, ContentPageFilterInput, CreateContentPageInput, UpdateContentPageInput } from '../types';
2
+ /**
3
+ * Hook to fetch content pages with filtering and pagination
4
+ */
5
+ export declare function useContentPages(productId?: string, filter?: ContentPageFilterInput, options?: {
6
+ limit?: number;
7
+ offset?: number;
8
+ }): {
9
+ contentPages: ProductContentPage[];
10
+ total: any;
11
+ hasMore: any;
12
+ loading: boolean;
13
+ error: import('@apollo/client').ApolloError | undefined;
14
+ refetch: (variables?: any) => Promise<import('@apollo/client').ApolloQueryResult<Types.GetContentPagesQuery>>;
15
+ fetchMore: <TFetchData = Types.GetContentPagesQuery, TFetchVars extends import('@apollo/client').OperationVariables = Types.GetContentPagesQueryVariables>(fetchMoreOptions: import('@apollo/client').FetchMoreQueryOptions<TFetchVars, TFetchData> & {
16
+ updateQuery?: ((previousQueryResult: any, options: {
17
+ fetchMoreResult: import('@apollo/client').Unmasked<TFetchData>;
18
+ variables: TFetchVars;
19
+ }) => any) | undefined;
20
+ }) => Promise<import('@apollo/client').ApolloQueryResult<TFetchData>>;
21
+ };
22
+ /**
23
+ * Hook to fetch a single content page by ID
24
+ */
25
+ export declare function useContentPage(id: string): {
26
+ contentPage: ProductContentPage | undefined;
27
+ loading: boolean;
28
+ error: import('@apollo/client').ApolloError | undefined;
29
+ refetch: (variables?: any) => Promise<import('@apollo/client').ApolloQueryResult<Types.GetContentPageQuery>>;
30
+ };
31
+ /**
32
+ * Hook to fetch a content page by slug
33
+ */
34
+ export declare function useContentPageBySlug(slug: string, productId?: string): {
35
+ contentPage: ProductContentPage | undefined;
36
+ loading: boolean;
37
+ error: import('@apollo/client').ApolloError | undefined;
38
+ refetch: (variables?: any) => Promise<import('@apollo/client').ApolloQueryResult<Types.GetContentPageBySlugQuery>>;
39
+ };
40
+ /**
41
+ * Hook to fetch a resolved content page by slug and product
42
+ */
43
+ export declare function useResolvedContentPage(slug: string, productId: string): {
44
+ contentPage: ProductContentPage | undefined;
45
+ loading: boolean;
46
+ error: import('@apollo/client').ApolloError | undefined;
47
+ refetch: (variables?: any) => Promise<import('@apollo/client').ApolloQueryResult<Types.GetResolvedContentPageQuery>>;
48
+ };
49
+ /**
50
+ * Hook to create a new content page
51
+ */
52
+ export declare function useCreateContentPage(): {
53
+ createContentPage: (input: CreateContentPageInput) => Promise<import('@apollo/client').FetchResult<Types.CreateContentPageMutation>>;
54
+ data: ProductContentPage | undefined;
55
+ loading: boolean;
56
+ error: import('@apollo/client').ApolloError | undefined;
57
+ };
58
+ /**
59
+ * Hook to update a content page
60
+ */
61
+ export declare function useUpdateContentPage(): {
62
+ updateContentPage: (id: string, input: UpdateContentPageInput) => Promise<import('@apollo/client').FetchResult<Types.UpdateContentPageMutation>>;
63
+ data: ProductContentPage | undefined;
64
+ loading: boolean;
65
+ error: import('@apollo/client').ApolloError | undefined;
66
+ };
67
+ /**
68
+ * Hook to delete a content page
69
+ */
70
+ export declare function useDeleteContentPage(): {
71
+ deleteContentPage: (id: string) => Promise<import('@apollo/client').FetchResult<Types.DeleteContentPageMutation>>;
72
+ data: any;
73
+ loading: boolean;
74
+ error: import('@apollo/client').ApolloError | undefined;
75
+ };
76
+ //# sourceMappingURL=useContentPages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useContentPages.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/content-pages/hooks/useContentPages.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACvB,MAAM,UAAU,CAAC;AAElB;;GAEG;AACH,wBAAgB,eAAe,CAC7B,SAAS,CAAC,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,sBAAsB,EAC/B,OAAO,CAAC,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE;kBAaQ,kBAAkB,EAAE;;;;;;;;;;;;EAQ1E;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM;iBAQH,kBAAkB,GAAG,SAAS;;;;EAKnE;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;iBAQzB,kBAAkB,GAAG,SAAS;;;;EAKzE;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;iBAQxB,kBAAkB,GAAG,SAAS;;;;EAK3E;AAED;;GAEG;AACH,wBAAgB,oBAAoB;+BAOC,sBAAsB;UAatB,kBAAkB,GAAG,SAAS;;;EAIlE;AAED;;GAEG;AACH,wBAAgB,oBAAoB;4BAKF,MAAM,SAAS,sBAAsB;UAalC,kBAAkB,GAAG,SAAS;;;EAIlE;AAED;;GAEG;AACH,wBAAgB,oBAAoB;4BAOF,MAAM;;;;EAWvC"}
@@ -0,0 +1,96 @@
1
+ import { GetContentPagesDocument as e, useCreateContentPageMutation as t, useDeleteContentPageMutation as n, useGetContentPageQuery as r, useGetContentPagesQuery as i, useUpdateContentPageMutation as a } from "../../../../generated/global-operations.js";
2
+ import { useEventEmitter as o } from "@burdenoff/fe-libs/shared/events";
3
+ //#region src/product-management/modules/content-pages/hooks/useContentPages.ts
4
+ function s(e, t, n) {
5
+ let { data: r, loading: a, error: o, refetch: s, fetchMore: c } = i({
6
+ variables: {
7
+ productId: e,
8
+ filter: t,
9
+ limit: n?.limit || 50,
10
+ offset: n?.offset || 0
11
+ },
12
+ fetchPolicy: "cache-and-network"
13
+ });
14
+ return {
15
+ contentPages: r?.contentPages?.items || [],
16
+ total: r?.contentPages?.total || 0,
17
+ hasMore: r?.contentPages?.hasMore || !1,
18
+ loading: a,
19
+ error: o,
20
+ refetch: s,
21
+ fetchMore: c
22
+ };
23
+ }
24
+ function c(e) {
25
+ let { data: t, loading: n, error: i, refetch: a } = r({
26
+ variables: { id: e },
27
+ skip: !e,
28
+ fetchPolicy: "cache-and-network"
29
+ });
30
+ return {
31
+ contentPage: t?.contentPage,
32
+ loading: n,
33
+ error: i,
34
+ refetch: a
35
+ };
36
+ }
37
+ function l() {
38
+ let [n, { data: r, loading: i, error: a }] = t({ refetchQueries: [e] }), s = o("tenant.contentpage.created", { component: "microfe-product" });
39
+ return {
40
+ createContentPage: async (e) => {
41
+ let t = await n({ variables: { input: e } }), r = t.data?.createContentPage;
42
+ return r && s({
43
+ resourceId: r.id,
44
+ resourceSlug: r.slug,
45
+ productId: r.productId ?? void 0,
46
+ metadata: {
47
+ title: r.title,
48
+ isPublished: r.isPublished
49
+ }
50
+ }), t;
51
+ },
52
+ data: r?.createContentPage,
53
+ loading: i,
54
+ error: a
55
+ };
56
+ }
57
+ function u() {
58
+ let [e, { data: t, loading: n, error: r }] = a(), i = o("tenant.contentpage.updated", { component: "microfe-product" });
59
+ return {
60
+ updateContentPage: async (t, n) => {
61
+ let r = await e({ variables: {
62
+ id: t,
63
+ input: n
64
+ } }), a = r.data?.updateContentPage;
65
+ return a && i({
66
+ resourceId: a.id,
67
+ resourceSlug: a.slug,
68
+ productId: a.productId ?? void 0,
69
+ metadata: {
70
+ title: a.title,
71
+ isPublished: a.isPublished,
72
+ version: a.version
73
+ }
74
+ }), r;
75
+ },
76
+ data: t?.updateContentPage,
77
+ loading: n,
78
+ error: r
79
+ };
80
+ }
81
+ function d() {
82
+ let [t, { data: r, loading: i, error: a }] = n({ refetchQueries: [e] }), s = o("tenant.contentpage.deleted", { component: "microfe-product" });
83
+ return {
84
+ deleteContentPage: async (e) => {
85
+ let n = await t({ variables: { id: e } });
86
+ return n.data?.deleteContentPage && s({ resourceId: e }), n;
87
+ },
88
+ data: r?.deleteContentPage,
89
+ loading: i,
90
+ error: a
91
+ };
92
+ }
93
+ //#endregion
94
+ export { c as useContentPage, s as useContentPages, l as useCreateContentPage, d as useDeleteContentPage, u as useUpdateContentPage };
95
+
96
+ //# sourceMappingURL=useContentPages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useContentPages.js","names":[],"sources":["../../../../../src/product-management/modules/content-pages/hooks/useContentPages.ts"],"sourcesContent":["import { useEventEmitter } from '@burdenoff/fe-libs/shared/events';\n\nimport {\n useGetContentPagesQuery,\n useGetContentPageQuery,\n useGetContentPageBySlugQuery,\n useGetResolvedContentPageQuery,\n useCreateContentPageMutation,\n useUpdateContentPageMutation,\n useDeleteContentPageMutation,\n GetContentPagesDocument,\n} from '../../../../generated/global-operations';\nimport type {\n ProductContentPage,\n ContentPageFilterInput,\n CreateContentPageInput,\n UpdateContentPageInput,\n} from '../types';\n\n/**\n * Hook to fetch content pages with filtering and pagination\n */\nexport function useContentPages(\n productId?: string,\n filter?: ContentPageFilterInput,\n options?: { limit?: number; offset?: number }\n) {\n const { data, loading, error, refetch, fetchMore } = useGetContentPagesQuery({\n variables: {\n productId,\n filter,\n limit: options?.limit || 50,\n offset: options?.offset || 0,\n },\n fetchPolicy: 'cache-and-network',\n });\n\n return {\n contentPages: (data?.contentPages?.items || []) as ProductContentPage[],\n total: data?.contentPages?.total || 0,\n hasMore: data?.contentPages?.hasMore || false,\n loading,\n error,\n refetch,\n fetchMore,\n };\n}\n\n/**\n * Hook to fetch a single content page by ID\n */\nexport function useContentPage(id: string) {\n const { data, loading, error, refetch } = useGetContentPageQuery({\n variables: { id },\n skip: !id,\n fetchPolicy: 'cache-and-network',\n });\n\n return {\n contentPage: data?.contentPage as ProductContentPage | undefined,\n loading,\n error,\n refetch,\n };\n}\n\n/**\n * Hook to fetch a content page by slug\n */\nexport function useContentPageBySlug(slug: string, productId?: string) {\n const { data, loading, error, refetch } = useGetContentPageBySlugQuery({\n variables: { slug, productId },\n skip: !slug,\n fetchPolicy: 'cache-and-network',\n });\n\n return {\n contentPage: data?.contentPageBySlug as ProductContentPage | undefined,\n loading,\n error,\n refetch,\n };\n}\n\n/**\n * Hook to fetch a resolved content page by slug and product\n */\nexport function useResolvedContentPage(slug: string, productId: string) {\n const { data, loading, error, refetch } = useGetResolvedContentPageQuery({\n variables: { slug, productId },\n skip: !slug || !productId,\n fetchPolicy: 'cache-and-network',\n });\n\n return {\n contentPage: data?.resolvedContentPage as ProductContentPage | undefined,\n loading,\n error,\n refetch,\n };\n}\n\n/**\n * Hook to create a new content page\n */\nexport function useCreateContentPage() {\n const [createContentPageMutation, { data, loading, error }] = useCreateContentPageMutation({\n refetchQueries: [GetContentPagesDocument],\n });\n const emit = useEventEmitter('tenant.contentpage.created', { component: 'microfe-product' });\n\n return {\n createContentPage: async (input: CreateContentPageInput) => {\n const result = await createContentPageMutation({ variables: { input } });\n const page = result.data?.createContentPage;\n if (page) {\n emit({\n resourceId: page.id,\n resourceSlug: page.slug,\n productId: page.productId ?? undefined,\n metadata: { title: page.title, isPublished: page.isPublished },\n });\n }\n return result;\n },\n data: data?.createContentPage as ProductContentPage | undefined,\n loading,\n error,\n };\n}\n\n/**\n * Hook to update a content page\n */\nexport function useUpdateContentPage() {\n const [updateContentPageMutation, { data, loading, error }] = useUpdateContentPageMutation();\n const emit = useEventEmitter('tenant.contentpage.updated', { component: 'microfe-product' });\n\n return {\n updateContentPage: async (id: string, input: UpdateContentPageInput) => {\n const result = await updateContentPageMutation({ variables: { id, input } });\n const page = result.data?.updateContentPage;\n if (page) {\n emit({\n resourceId: page.id,\n resourceSlug: page.slug,\n productId: page.productId ?? undefined,\n metadata: { title: page.title, isPublished: page.isPublished, version: page.version },\n });\n }\n return result;\n },\n data: data?.updateContentPage as ProductContentPage | undefined,\n loading,\n error,\n };\n}\n\n/**\n * Hook to delete a content page\n */\nexport function useDeleteContentPage() {\n const [deleteContentPageMutation, { data, loading, error }] = useDeleteContentPageMutation({\n refetchQueries: [GetContentPagesDocument],\n });\n const emit = useEventEmitter('tenant.contentpage.deleted', { component: 'microfe-product' });\n\n return {\n deleteContentPage: async (id: string) => {\n const result = await deleteContentPageMutation({ variables: { id } });\n if (result.data?.deleteContentPage) {\n emit({ resourceId: id });\n }\n return result;\n },\n data: data?.deleteContentPage,\n loading,\n error,\n };\n}\n"],"mappings":";;;AAsBA,SAAgB,EACd,GACA,GACA,GACA;CACA,IAAM,EAAE,SAAM,YAAS,UAAO,YAAS,iBAAc,EAAwB;EAC3E,WAAW;GACT;GACA;GACA,OAAO,GAAS,SAAS;GACzB,QAAQ,GAAS,UAAU;GAC5B;EACD,aAAa;EACd,CAAC;AAEF,QAAO;EACL,cAAe,GAAM,cAAc,SAAS,EAAE;EAC9C,OAAO,GAAM,cAAc,SAAS;EACpC,SAAS,GAAM,cAAc,WAAW;EACxC;EACA;EACA;EACA;EACD;;AAMH,SAAgB,EAAe,GAAY;CACzC,IAAM,EAAE,SAAM,YAAS,UAAO,eAAY,EAAuB;EAC/D,WAAW,EAAE,OAAI;EACjB,MAAM,CAAC;EACP,aAAa;EACd,CAAC;AAEF,QAAO;EACL,aAAa,GAAM;EACnB;EACA;EACA;EACD;;AA0CH,SAAgB,IAAuB;CACrC,IAAM,CAAC,GAA2B,EAAE,SAAM,YAAS,cAAW,EAA6B,EACzF,gBAAgB,CAAC,EAAwB,EAC1C,CAAC,EACI,IAAO,EAAgB,8BAA8B,EAAE,WAAW,mBAAmB,CAAC;AAE5F,QAAO;EACL,mBAAmB,OAAO,MAAkC;GAC1D,IAAM,IAAS,MAAM,EAA0B,EAAE,WAAW,EAAE,UAAO,EAAE,CAAC,EAClE,IAAO,EAAO,MAAM;AAS1B,UARI,KACF,EAAK;IACH,YAAY,EAAK;IACjB,cAAc,EAAK;IACnB,WAAW,EAAK,aAAa,KAAA;IAC7B,UAAU;KAAE,OAAO,EAAK;KAAO,aAAa,EAAK;KAAa;IAC/D,CAAC,EAEG;;EAET,MAAM,GAAM;EACZ;EACA;EACD;;AAMH,SAAgB,IAAuB;CACrC,IAAM,CAAC,GAA2B,EAAE,SAAM,YAAS,cAAW,GAA8B,EACtF,IAAO,EAAgB,8BAA8B,EAAE,WAAW,mBAAmB,CAAC;AAE5F,QAAO;EACL,mBAAmB,OAAO,GAAY,MAAkC;GACtE,IAAM,IAAS,MAAM,EAA0B,EAAE,WAAW;IAAE;IAAI;IAAO,EAAE,CAAC,EACtE,IAAO,EAAO,MAAM;AAS1B,UARI,KACF,EAAK;IACH,YAAY,EAAK;IACjB,cAAc,EAAK;IACnB,WAAW,EAAK,aAAa,KAAA;IAC7B,UAAU;KAAE,OAAO,EAAK;KAAO,aAAa,EAAK;KAAa,SAAS,EAAK;KAAS;IACtF,CAAC,EAEG;;EAET,MAAM,GAAM;EACZ;EACA;EACD;;AAMH,SAAgB,IAAuB;CACrC,IAAM,CAAC,GAA2B,EAAE,SAAM,YAAS,cAAW,EAA6B,EACzF,gBAAgB,CAAC,EAAwB,EAC1C,CAAC,EACI,IAAO,EAAgB,8BAA8B,EAAE,WAAW,mBAAmB,CAAC;AAE5F,QAAO;EACL,mBAAmB,OAAO,MAAe;GACvC,IAAM,IAAS,MAAM,EAA0B,EAAE,WAAW,EAAE,OAAI,EAAE,CAAC;AAIrE,UAHI,EAAO,MAAM,qBACf,EAAK,EAAE,YAAY,GAAI,CAAC,EAEnB;;EAET,MAAM,GAAM;EACZ;EACA;EACD"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Content Pages Module
3
+ * Exports all components, pages, hooks, and types for content pages management
4
+ */
5
+ export { ContentPagesListPage } from './pages/ContentPagesListPage';
6
+ export { ContentPageCreatePage } from './pages/ContentPageCreatePage';
7
+ export { ContentPageDetailPage } from './pages/ContentPageDetailPage';
8
+ export { ContentPageEditPage } from './pages/ContentPageEditPage';
9
+ export { ContentPageForm } from './components/ContentPageForm';
10
+ export { ContentPageStatusBadge } from './components/ContentPageStatusBadge';
11
+ export { useContentPages, useContentPage, useContentPageBySlug, useResolvedContentPage, useCreateContentPage, useUpdateContentPage, useDeleteContentPage, } from './hooks/useContentPages';
12
+ export type { ContentPage, ProductContentPage, ContentPageFilterInput, CreateContentPageInput, UpdateContentPageInput, ContentPagesConnection, } from './types';
13
+ export { createContentPageSchema, updateContentPageSchema } from './schemas';
14
+ export type { CreateContentPageFormData, UpdateContentPageFormData } from './schemas';
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/product-management/modules/content-pages/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAGlE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAG7E,OAAO,EACL,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AAGjC,YAAY,EACV,WAAW,EACX,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAC7E,YAAY,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function ContentPageCreatePage(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=ContentPageCreatePage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentPageCreatePage.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/content-pages/pages/ContentPageCreatePage.tsx"],"names":[],"mappings":"AAQA,wBAAgB,qBAAqB,4CAiEpC"}
@@ -0,0 +1,69 @@
1
+ import { useTr as e } from "../../../shared/hooks/useTr.js";
2
+ import { useProductConsole as t } from "../../../providers/ProductConsoleProvider.js";
3
+ import { useCreateContentPage as n } from "../hooks/useContentPages.js";
4
+ import { ContentPageForm as r } from "../components/ContentPageForm.js";
5
+ import { useState as i } from "react";
6
+ import { ArrowLeft as a } from "lucide-react";
7
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
8
+ //#region src/product-management/modules/content-pages/pages/ContentPageCreatePage.tsx
9
+ function c() {
10
+ let { navigate: c, basePath: l = "/products" } = t(), u = `${l}/content-pages`, { createContentPage: d, loading: f } = n(), p = e(), [m, h] = i(null), g = async (e) => {
11
+ try {
12
+ h(null);
13
+ let t = await d(e);
14
+ t.data?.createContentPage && c(`${u}/${t.data.createContentPage.id}`);
15
+ } catch (e) {
16
+ h(e instanceof Error ? e.message : "Failed to create content page"), console.error("Failed to create content page:", e);
17
+ }
18
+ }, _ = () => {
19
+ c(u);
20
+ };
21
+ return /* @__PURE__ */ s("div", {
22
+ className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300",
23
+ children: [
24
+ /* @__PURE__ */ s("div", {
25
+ className: "mb-6",
26
+ children: [
27
+ /* @__PURE__ */ s("button", {
28
+ onClick: _,
29
+ className: "\n inline-flex items-center gap-2 mb-4\n text-text-secondary\n hover:text-text-primary\n transition-all duration-200\n ",
30
+ children: [/* @__PURE__ */ o(a, { size: 20 }), /* @__PURE__ */ o("span", {
31
+ className: "text-sm font-medium",
32
+ children: p("contentPages.backToContentPages", "Back to Content Pages")
33
+ })]
34
+ }),
35
+ /* @__PURE__ */ o("h1", {
36
+ className: "text-3xl font-bold text-text-primary mb-2",
37
+ children: p("contentPages.createContentPage", "Create Content Page")
38
+ }),
39
+ /* @__PURE__ */ o("p", {
40
+ className: "text-text-secondary",
41
+ children: p("contentPages.createContentPageSubtitle", "Add a new content page")
42
+ })
43
+ ]
44
+ }),
45
+ m && /* @__PURE__ */ o("div", {
46
+ className: "mb-6 p-4 bg-[var(--color-status-error-subtle)] border border-[var(--color-status-error-border)] rounded-lg",
47
+ children: /* @__PURE__ */ o("p", {
48
+ className: "text-sm text-[var(--color-status-error)]",
49
+ children: m
50
+ })
51
+ }),
52
+ /* @__PURE__ */ o("div", {
53
+ className: "max-w-2xl",
54
+ children: /* @__PURE__ */ o("div", {
55
+ className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]",
56
+ children: /* @__PURE__ */ o(r, {
57
+ onSubmit: g,
58
+ onCancel: _,
59
+ loading: f
60
+ })
61
+ })
62
+ })
63
+ ]
64
+ });
65
+ }
66
+ //#endregion
67
+ export { c as ContentPageCreatePage };
68
+
69
+ //# sourceMappingURL=ContentPageCreatePage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentPageCreatePage.js","names":[],"sources":["../../../../../src/product-management/modules/content-pages/pages/ContentPageCreatePage.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { ArrowLeft } from 'lucide-react';\nimport { useTr } from '../../../shared/hooks/useTr';\nimport { useProductConsole } from '../../../providers/ProductConsoleProvider';\nimport { useCreateContentPage } from '../hooks/useContentPages';\nimport { ContentPageForm } from '../components/ContentPageForm';\nimport type { CreateContentPageInput, UpdateContentPageInput } from '../types';\n\nexport function ContentPageCreatePage() {\n const { navigate, basePath = '/products' } = useProductConsole();\n const contentPagesBasePath = `${basePath}/content-pages`;\n const { createContentPage, loading } = useCreateContentPage();\n const tr = useTr();\n const [error, setError] = useState<string | null>(null);\n\n const handleSubmit = async (data: CreateContentPageInput | UpdateContentPageInput) => {\n try {\n setError(null);\n const createData = data as CreateContentPageInput;\n const result = await createContentPage(createData);\n if (result.data?.createContentPage) {\n navigate(`${contentPagesBasePath}/${result.data.createContentPage.id}`);\n }\n } catch (err) {\n const message = err instanceof Error ? err.message : 'Failed to create content page';\n setError(message);\n console.error('Failed to create content page:', err);\n }\n };\n\n const handleCancel = () => {\n navigate(contentPagesBasePath);\n };\n\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300\">\n <div className=\"mb-6\">\n <button\n onClick={handleCancel}\n className=\"\n inline-flex items-center gap-2 mb-4\n text-text-secondary\n hover:text-text-primary\n transition-all duration-200\n \"\n >\n <ArrowLeft size={20} />\n <span className=\"text-sm font-medium\">\n {tr('contentPages.backToContentPages', 'Back to Content Pages')}\n </span>\n </button>\n\n <h1 className=\"text-3xl font-bold text-text-primary mb-2\">\n {tr('contentPages.createContentPage', 'Create Content Page')}\n </h1>\n <p className=\"text-text-secondary\">\n {tr('contentPages.createContentPageSubtitle', 'Add a new content page')}\n </p>\n </div>\n\n {error && (\n <div className=\"mb-6 p-4 bg-[var(--color-status-error-subtle)] border border-[var(--color-status-error-border)] rounded-lg\">\n <p className=\"text-sm text-[var(--color-status-error)]\">{error}</p>\n </div>\n )}\n\n <div className=\"max-w-2xl\">\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]\">\n <ContentPageForm onSubmit={handleSubmit} onCancel={handleCancel} loading={loading} />\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;AAQA,SAAgB,IAAwB;CACtC,IAAM,EAAE,aAAU,cAAW,gBAAgB,GAAmB,EAC1D,IAAuB,GAAG,EAAS,iBACnC,EAAE,sBAAmB,eAAY,GAAsB,EACvD,IAAK,GAAO,EACZ,CAAC,GAAO,KAAY,EAAwB,KAAK,EAEjD,IAAe,OAAO,MAA0D;AACpF,MAAI;AACF,KAAS,KAAK;GAEd,IAAM,IAAS,MAAM,EAAkB,EAAW;AAClD,GAAI,EAAO,MAAM,qBACf,EAAS,GAAG,EAAqB,GAAG,EAAO,KAAK,kBAAkB,KAAK;WAElE,GAAK;AAGZ,GADA,EADgB,aAAe,QAAQ,EAAI,UAAU,gCACpC,EACjB,QAAQ,MAAM,kCAAkC,EAAI;;IAIlD,UAAqB;AACzB,IAAS,EAAqB;;AAGhC,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf;GACE,kBAAC,OAAD;IAAK,WAAU;cAAf;KACE,kBAAC,UAAD;MACE,SAAS;MACT,WAAU;gBAFZ,CASE,kBAAC,GAAD,EAAW,MAAM,IAAM,CAAA,EACvB,kBAAC,QAAD;OAAM,WAAU;iBACb,EAAG,mCAAmC,wBAAwB;OAC1D,CAAA,CACA;;KAET,kBAAC,MAAD;MAAI,WAAU;gBACX,EAAG,kCAAkC,sBAAsB;MACzD,CAAA;KACL,kBAAC,KAAD;MAAG,WAAU;gBACV,EAAG,0CAA0C,yBAAyB;MACrE,CAAA;KACA;;GAEL,KACC,kBAAC,OAAD;IAAK,WAAU;cACb,kBAAC,KAAD;KAAG,WAAU;eAA4C;KAAU,CAAA;IAC/D,CAAA;GAGR,kBAAC,OAAD;IAAK,WAAU;cACb,kBAAC,OAAD;KAAK,WAAU;eACb,kBAAC,GAAD;MAAiB,UAAU;MAAc,UAAU;MAAuB;MAAW,CAAA;KACjF,CAAA;IACF,CAAA;GACF"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Content Page Detail Page
3
+ * Shows comprehensive content page information
4
+ */
5
+ export declare function ContentPageDetailPage(): import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=ContentPageDetailPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentPageDetailPage.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/content-pages/pages/ContentPageDetailPage.tsx"],"names":[],"mappings":"AAkDA;;;GAGG;AACH,wBAAgB,qBAAqB,4CAiVpC"}
@@ -0,0 +1,273 @@
1
+ import { useTr as e } from "../../../shared/hooks/useTr.js";
2
+ import { useProductConsole as t } from "../../../providers/ProductConsoleProvider.js";
3
+ import { LoadingState as n } from "../../../shared/components/feedback/LoadingState.js";
4
+ import { ErrorState as r } from "../../../shared/components/feedback/ErrorState.js";
5
+ import { nativeConfirm as i, nativeImpact as a, nativeNotify as o } from "../../../../utils/nativeBridge.js";
6
+ import { useContentPage as s, useDeleteContentPage as c } from "../hooks/useContentPages.js";
7
+ import { ContentPageStatusBadge as l } from "../components/ContentPageStatusBadge.js";
8
+ import { TagList as u } from "../../../shared/components/TagList.js";
9
+ import { AuditHistoryTab as d } from "../../../shared/components/AuditHistoryTab.js";
10
+ import { ArrowLeft as f, Edit as p, FileText as m, Globe as h, Package as g, Trash2 as _ } from "lucide-react";
11
+ import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
12
+ import { useParams as x } from "react-router-dom";
13
+ //#region src/product-management/modules/content-pages/pages/ContentPageDetailPage.tsx
14
+ function S(e) {
15
+ return e.replace(/^### (.+)$/gm, "<h3 class=\"text-lg font-semibold mt-4 mb-2\">$1</h3>").replace(/^## (.+)$/gm, "<h2 class=\"text-xl font-semibold mt-5 mb-2\">$1</h2>").replace(/^# (.+)$/gm, "<h1 class=\"text-2xl font-bold mt-6 mb-3\">$1</h1>").replace(/\*\*(.+?)\*\*/g, "<strong>$1</strong>").replace(/\*(.+?)\*/g, "<em>$1</em>").replace(/`(.+?)`/g, "<code class=\"px-1.5 py-0.5 bg-muted rounded text-sm font-mono\">$1</code>").replace(/```[\s\S]*?```/g, (e) => `<pre class="bg-muted rounded-lg p-4 overflow-x-auto my-3"><code class="text-sm font-mono">${e.replace(/```\w*\n?/, "").replace(/\n?```$/, "")}</code></pre>`).replace(/\[(.+?)\]\((.+?)\)/g, "<a href=\"$2\" class=\"text-[var(--color-status-info)] underline\">$1</a>").replace(/^- (.+)$/gm, "<li class=\"ml-4 list-disc\">$1</li>").replace(/\n\n/g, "</p><p class=\"mb-3\">").replace(/\n/g, "<br/>");
16
+ }
17
+ function C() {
18
+ let { id: C } = x(), { navigate: w, basePath: T = "/products" } = t(), E = `${T}/content-pages`, { contentPage: D, loading: O, error: k } = s(C), { deleteContentPage: A, loading: j } = c(), M = e(), N = async () => {
19
+ a("medium");
20
+ let e = M("contentPages.confirmDelete", "Are you sure you want to delete this content page?"), t = await i({
21
+ title: "Delete content page",
22
+ message: e,
23
+ okButtonTitle: "Delete",
24
+ cancelButtonTitle: "Cancel"
25
+ });
26
+ if (t === null ? window.confirm(e) : t) try {
27
+ await A(C), o("success"), w(E);
28
+ } catch (e) {
29
+ o("error"), console.error("Failed to delete content page:", e);
30
+ }
31
+ };
32
+ if (O) return /* @__PURE__ */ y("div", {
33
+ className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
34
+ children: /* @__PURE__ */ y(n, { message: M("contentPages.loadingContentPage", "Loading content page...") })
35
+ });
36
+ if (k || !D) return /* @__PURE__ */ y("div", {
37
+ className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
38
+ children: /* @__PURE__ */ y(r, {
39
+ message: k?.message || M("contentPages.contentPageNotFound", "Content page not found"),
40
+ action: {
41
+ label: M("contentPages.backToContentPages", "Back to Content Pages"),
42
+ onClick: () => w(E)
43
+ }
44
+ })
45
+ });
46
+ let P = (e) => e ? new Date(e).toLocaleDateString("en-US", {
47
+ year: "numeric",
48
+ month: "long",
49
+ day: "numeric",
50
+ hour: "2-digit",
51
+ minute: "2-digit"
52
+ }) : "—", F = D.seoTitle || D.seoDescription || D.seoKeywords;
53
+ return /* @__PURE__ */ b("div", {
54
+ className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300",
55
+ children: [/* @__PURE__ */ b("div", {
56
+ className: "mb-6",
57
+ children: [/* @__PURE__ */ b("button", {
58
+ onClick: () => w(E),
59
+ className: "\n inline-flex items-center gap-2 mb-4\n text-text-secondary\n hover:text-text-primary\n transition-all duration-200\n ",
60
+ children: [/* @__PURE__ */ y(f, { size: 20 }), /* @__PURE__ */ y("span", {
61
+ className: "text-sm font-medium",
62
+ children: M("contentPages.backToContentPages", "Back to Content Pages")
63
+ })]
64
+ }), /* @__PURE__ */ b("div", {
65
+ className: "flex items-start justify-between",
66
+ children: [/* @__PURE__ */ b("div", {
67
+ className: "flex items-center gap-4",
68
+ children: [/* @__PURE__ */ y("div", {
69
+ className: "w-16 h-16 rounded-lg bg-[var(--color-status-info-subtle)] flex items-center justify-center",
70
+ children: /* @__PURE__ */ y(m, {
71
+ size: 32,
72
+ className: "text-[var(--color-status-info)]"
73
+ })
74
+ }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ b("div", {
75
+ className: "flex items-center gap-3 mb-2",
76
+ children: [/* @__PURE__ */ y("h1", {
77
+ className: "text-3xl font-bold text-text-primary",
78
+ children: D.title
79
+ }), /* @__PURE__ */ y(l, { isPublished: D.isPublished })]
80
+ }), /* @__PURE__ */ b("p", {
81
+ className: "text-text-secondary",
82
+ children: ["/", D.slug]
83
+ })] })]
84
+ }), /* @__PURE__ */ b("div", {
85
+ className: "flex gap-2",
86
+ children: [/* @__PURE__ */ b("button", {
87
+ onClick: () => w(`${E}/${C}/edit`),
88
+ className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-surface\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-muted\n transition-all duration-200\n font-medium\n ",
89
+ children: [/* @__PURE__ */ y(p, { size: 16 }), "Edit Page"]
90
+ }), /* @__PURE__ */ b("button", {
91
+ onClick: N,
92
+ disabled: j,
93
+ className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-status-error-subtle)]\n text-[var(--color-status-error)]\n border border-[var(--color-status-error-border)]\n rounded-lg\n hover:opacity-80\n transition-all duration-200\n font-medium\n disabled:opacity-50\n ",
94
+ children: [/* @__PURE__ */ y(_, { size: 16 }), "Delete"]
95
+ })]
96
+ })]
97
+ })]
98
+ }), /* @__PURE__ */ b("div", {
99
+ className: "grid grid-cols-1 lg:grid-cols-2 gap-6",
100
+ children: [
101
+ /* @__PURE__ */ b("div", {
102
+ className: "lg:col-span-2 bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]",
103
+ children: [/* @__PURE__ */ y("h2", {
104
+ className: "text-lg font-semibold text-text-primary mb-4",
105
+ children: M("contentPages.contentPreview", "Content Preview")
106
+ }), /* @__PURE__ */ y("div", {
107
+ className: "prose prose-sm max-w-none text-text-secondary leading-relaxed",
108
+ dangerouslySetInnerHTML: { __html: D.contentFormat === "markdown" ? S(D.content) : D.content }
109
+ })]
110
+ }),
111
+ /* @__PURE__ */ b("div", {
112
+ className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]",
113
+ children: [/* @__PURE__ */ y("h2", {
114
+ className: "text-lg font-semibold text-text-primary mb-4",
115
+ children: M("contentPages.metadata", "Metadata")
116
+ }), /* @__PURE__ */ b("dl", {
117
+ className: "space-y-3",
118
+ children: [
119
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
120
+ className: "text-sm font-medium text-text-secondary",
121
+ children: M("contentPages.slug", "Slug")
122
+ }), /* @__PURE__ */ y("dd", {
123
+ className: "text-sm text-text-primary mt-1 font-mono",
124
+ children: D.slug
125
+ })] }),
126
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
127
+ className: "text-sm font-medium text-text-secondary",
128
+ children: M("contentPages.version", "Version")
129
+ }), /* @__PURE__ */ b("dd", {
130
+ className: "text-sm text-text-primary mt-1 font-mono",
131
+ children: ["v", D.version]
132
+ })] }),
133
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
134
+ className: "text-sm font-medium text-text-secondary",
135
+ children: M("contentPages.contentFormat", "Content Format")
136
+ }), /* @__PURE__ */ y("dd", {
137
+ className: "text-sm text-text-primary mt-1 capitalize",
138
+ children: D.contentFormat
139
+ })] }),
140
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
141
+ className: "text-sm font-medium text-text-secondary",
142
+ children: M("contentPages.sortOrder", "Sort Order")
143
+ }), /* @__PURE__ */ y("dd", {
144
+ className: "text-sm text-text-primary mt-1 font-mono",
145
+ children: D.sortOrder
146
+ })] }),
147
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
148
+ className: "text-sm font-medium text-text-secondary",
149
+ children: M("contentPages.created", "Created")
150
+ }), /* @__PURE__ */ y("dd", {
151
+ className: "text-sm text-text-primary mt-1",
152
+ children: P(D.createdAt)
153
+ })] }),
154
+ /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
155
+ className: "text-sm font-medium text-text-secondary",
156
+ children: M("contentPages.lastUpdated", "Last Updated")
157
+ }), /* @__PURE__ */ y("dd", {
158
+ className: "text-sm text-text-primary mt-1",
159
+ children: P(D.updatedAt)
160
+ })] }),
161
+ D.lastUpdated && /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
162
+ className: "text-sm font-medium text-text-secondary",
163
+ children: M("contentPages.contentLastUpdated", "Content Last Updated")
164
+ }), /* @__PURE__ */ y("dd", {
165
+ className: "text-sm text-text-primary mt-1",
166
+ children: P(D.lastUpdated)
167
+ })] })
168
+ ]
169
+ })]
170
+ }),
171
+ F && /* @__PURE__ */ b("div", {
172
+ className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]",
173
+ children: [/* @__PURE__ */ b("div", {
174
+ className: "flex items-center gap-2 mb-4",
175
+ children: [/* @__PURE__ */ y(h, {
176
+ size: 20,
177
+ className: "text-text-secondary"
178
+ }), /* @__PURE__ */ y("h2", {
179
+ className: "text-lg font-semibold text-text-primary",
180
+ children: M("contentPages.seoInformation", "SEO Information")
181
+ })]
182
+ }), /* @__PURE__ */ b("dl", {
183
+ className: "space-y-3",
184
+ children: [
185
+ D.seoTitle && /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
186
+ className: "text-sm font-medium text-text-secondary",
187
+ children: M("contentPages.seoTitle", "SEO Title")
188
+ }), /* @__PURE__ */ y("dd", {
189
+ className: "text-sm text-text-primary mt-1",
190
+ children: D.seoTitle
191
+ })] }),
192
+ D.seoDescription && /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
193
+ className: "text-sm font-medium text-text-secondary",
194
+ children: M("contentPages.seoDescription", "SEO Description")
195
+ }), /* @__PURE__ */ y("dd", {
196
+ className: "text-sm text-text-primary mt-1",
197
+ children: D.seoDescription
198
+ })] }),
199
+ D.seoKeywords && /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
200
+ className: "text-sm font-medium text-text-secondary",
201
+ children: M("contentPages.seoKeywords", "SEO Keywords")
202
+ }), /* @__PURE__ */ y("dd", {
203
+ className: "text-sm text-text-primary mt-1",
204
+ children: /* @__PURE__ */ y("div", {
205
+ className: "flex flex-wrap gap-1.5 mt-1",
206
+ children: D.seoKeywords.split(",").map((e, t) => /* @__PURE__ */ y("span", {
207
+ className: "\n inline-flex px-2 py-0.5\n bg-muted\n text-text-secondary\n rounded-md text-xs font-medium\n ",
208
+ children: e.trim()
209
+ }, t))
210
+ })
211
+ })] })
212
+ ]
213
+ })]
214
+ }),
215
+ D.productId && /* @__PURE__ */ b("div", {
216
+ className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)] transition-all duration-200 hover:shadow-[var(--shadow-elevation-2)]",
217
+ children: [/* @__PURE__ */ b("div", {
218
+ className: "flex items-center gap-2 mb-4",
219
+ children: [/* @__PURE__ */ y(g, {
220
+ size: 20,
221
+ className: "text-text-secondary"
222
+ }), /* @__PURE__ */ y("h2", {
223
+ className: "text-lg font-semibold text-text-primary",
224
+ children: M("contentPages.productAssociation", "Product Association")
225
+ })]
226
+ }), /* @__PURE__ */ b("dl", {
227
+ className: "space-y-3",
228
+ children: [/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
229
+ className: "text-sm font-medium text-text-secondary",
230
+ children: M("contentPages.productId", "Product ID")
231
+ }), /* @__PURE__ */ y("dd", {
232
+ className: "text-sm text-text-primary mt-1 font-mono",
233
+ children: D.productId
234
+ })] }), D.product && /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
235
+ className: "text-sm font-medium text-text-secondary",
236
+ children: M("contentPages.productName", "Product Name")
237
+ }), /* @__PURE__ */ y("dd", {
238
+ className: "text-sm text-text-primary mt-1",
239
+ children: D.product.name
240
+ })] }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("dt", {
241
+ className: "text-sm font-medium text-text-secondary",
242
+ children: M("contentPages.productSlug", "Product Slug")
243
+ }), /* @__PURE__ */ b("dd", {
244
+ className: "text-sm text-text-primary mt-1 font-mono",
245
+ children: ["/", D.product.slug]
246
+ })] })] })]
247
+ })]
248
+ }),
249
+ D.tags && D.tags.length > 0 && /* @__PURE__ */ b("div", {
250
+ className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]",
251
+ children: [/* @__PURE__ */ y("h2", {
252
+ className: "text-lg font-semibold text-text-primary mb-4",
253
+ children: M("contentPages.tags", "Tags")
254
+ }), /* @__PURE__ */ y(u, { tags: D.tags })]
255
+ }),
256
+ /* @__PURE__ */ b("div", {
257
+ className: "lg:col-span-2 bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)]",
258
+ children: [/* @__PURE__ */ y("h2", {
259
+ className: "text-lg font-semibold text-text-primary p-6 pb-0",
260
+ children: M("contentPages.activityHistory", "Activity History")
261
+ }), /* @__PURE__ */ y(d, {
262
+ resourceId: D.id,
263
+ resourceType: "ProductContentPage"
264
+ })]
265
+ })
266
+ ]
267
+ })]
268
+ });
269
+ }
270
+ //#endregion
271
+ export { C as ContentPageDetailPage };
272
+
273
+ //# sourceMappingURL=ContentPageDetailPage.js.map