@oktis-works/admin 0.13.1 → 0.14.0

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 (112) hide show
  1. package/dist/client/_astro/{ActivityWidget.CCls_jrK.js → ActivityWidget.DmhtX3Xm.js} +2 -2
  2. package/dist/client/_astro/AdminBar.DKoQ5M3w.js +253 -0
  3. package/dist/client/_astro/ApiKeysManager.BaPrAyqm.js +1 -0
  4. package/dist/client/_astro/{AtGlanceWidget.DPkp-rxl.js → AtGlanceWidget.zlWIhmzI.js} +3 -3
  5. package/dist/client/_astro/{BaseLayout.DAkzjMTq.css → BaseLayout.Cp-O10m_.css} +1 -1
  6. package/dist/client/_astro/CommentsManager.DROGQRli.js +21 -0
  7. package/dist/client/_astro/ContentEditor.ChA5r0aE.js +3 -0
  8. package/dist/client/_astro/ContentEditor.CtCFQb14.js +1 -0
  9. package/dist/client/_astro/ContentTypeWorkspace.Dj9dP14a.js +1 -0
  10. package/dist/client/_astro/DashboardHome.Dn6_pJuX.js +1 -0
  11. package/dist/client/_astro/{DashboardLayout.astro_astro_type_script_index_0_lang.D2eyDf2o.js → DashboardLayout.astro_astro_type_script_index_0_lang.NiobGnWg.js} +1 -1
  12. package/dist/client/_astro/FbIcon.Bn4e_qFb.js +1 -0
  13. package/dist/client/_astro/FieldGroupEditor.CiFoYYb2.js +69 -0
  14. package/dist/client/_astro/FieldGroupList.CdN99hvU.js +1 -0
  15. package/dist/client/_astro/FieldRenderer.DYMREsip.js +1 -0
  16. package/dist/client/_astro/FloatingPanel.BetdW5N2.js +1 -0
  17. package/dist/client/_astro/{Footer.JI2Mqd9V.js → Footer.VGpnxqkW.js} +2 -2
  18. package/dist/client/_astro/GeneralSettings.mQ7FyhM-.js +1 -0
  19. package/dist/client/_astro/LogsManager.BUJ7baOa.js +1 -0
  20. package/dist/client/_astro/MediaLibrary.DMvI8KXX.js +1 -0
  21. package/dist/client/_astro/MenuManager._4YgarRt.js +1 -0
  22. package/dist/client/_astro/Modal.DbBPpkbR.js +1 -0
  23. package/dist/client/_astro/{PluginManager.D_E-lPWP.js → PluginManager.BozI4gXB.js} +2 -2
  24. package/dist/client/_astro/PostTypesManager.CifIQbeV.js +1 -0
  25. package/dist/client/_astro/QuickDraftWidget.CsG3_wS2.js +17 -0
  26. package/dist/client/_astro/ResourceHubs.DedTFbiz.js +1 -0
  27. package/dist/client/_astro/TaxonomiesManager.JqBPU1pf.js +1 -0
  28. package/dist/client/_astro/TaxonomyTermsManager.BLGRLt8p.js +1 -0
  29. package/dist/client/_astro/ThemeCustomizer.DrSQPj4W.js +49 -0
  30. package/dist/client/_astro/{ThemeManager.C0TKggfZ.js → ThemeManager.Csu39Xjr.js} +2 -2
  31. package/dist/client/_astro/UserCreateForm.C54wZYbf.js +1 -0
  32. package/dist/client/_astro/UsersManager.BYTWz2I8.js +1 -0
  33. package/dist/client/_astro/WebhooksManager.DeJ_f1Gk.js +1 -0
  34. package/dist/client/_astro/{api.CYg1SW2X.js → api.flUgn70U.js} +1 -1
  35. package/dist/client/_astro/client.ljtU74WL.js +1 -0
  36. package/dist/client/_astro/extensions.DtuT3Phu.js +1 -0
  37. package/dist/client/_astro/i18n.CBexpqud.js +1 -0
  38. package/dist/client/_astro/{login.astro_astro_type_script_index_0_lang.F2J3xZhK.js → login.astro_astro_type_script_index_0_lang.COYjmQTY.js} +1 -1
  39. package/dist/client/_astro/preload-helper.oCYlU9a4.js +1 -0
  40. package/dist/client/_astro/pt-BR.DlIhl4_A.js +1 -0
  41. package/dist/client/_astro/solid.Ck4Vtfe4.js +1 -0
  42. package/dist/client/_astro/src.CYKGYEyR.js +1 -0
  43. package/dist/client/_astro/store.CYzqtRKs.js +1 -0
  44. package/dist/client/_astro/web.DD6VKaIp.js +1 -0
  45. package/dist/server/chunks/{404_C9Eokbcv.mjs → 404_BxFvEXYq.mjs} +1 -1
  46. package/dist/server/chunks/{BaseLayout_DgDmTH8p.mjs → BaseLayout_BTzlA_Yr.mjs} +5 -5
  47. package/dist/server/chunks/ContentEditor_DStZ4RZE.mjs +655 -0
  48. package/dist/server/chunks/{DashboardLayout_CrxyUavx.mjs → DashboardLayout_PXoRmnBH.mjs} +354 -91
  49. package/dist/server/chunks/{ContentEditor_VK16JJMh.mjs → FieldRenderer_BlZgS0Im.mjs} +54 -615
  50. package/dist/server/chunks/{MediaLibrary_CZuj5byR.mjs → MediaLibrary_D7vu5VMd.mjs} +2 -2
  51. package/dist/server/chunks/{Modal_BfWFiyry.mjs → Modal_I_mBEOz2.mjs} +1 -1
  52. package/dist/server/chunks/{_id__BYx77RvL.mjs → _id__DFFoFesR.mjs} +5 -4
  53. package/dist/server/chunks/{_slug__CR6t9xra.mjs → _slug__DBH2w1la.mjs} +1 -1
  54. package/dist/server/chunks/{access_Bp3EnO2H.mjs → access_D1rk89Sh.mjs} +3 -3
  55. package/dist/server/chunks/{api-keys_Dt87wCbg.mjs → api-keys_BqhmvOer.mjs} +3 -3
  56. package/dist/server/chunks/comments_D_ta2fip.mjs +208 -0
  57. package/dist/server/chunks/{custom-fields_CC_ZhBpp.mjs → custom-fields_Cl8P-rrK.mjs} +2 -2
  58. package/dist/server/chunks/customize_DgtzmFmz.mjs +233 -0
  59. package/dist/server/chunks/{edit_VYWajKgt.mjs → edit_DTk4qFj5.mjs} +3 -3
  60. package/dist/server/chunks/{general_DtYlpwnZ.mjs → general_B-fEXuQn.mjs} +2 -2
  61. package/dist/server/chunks/{i18n_B-DWAN0e.mjs → i18n_BmAxDr2Q.mjs} +72 -6
  62. package/dist/server/chunks/{index_6a-jaApt.mjs → index_BKjRvOw4.mjs} +111 -62
  63. package/dist/server/chunks/{index_DgVVWosZ.mjs → index_BXnSMGRk.mjs} +2 -2
  64. package/dist/server/chunks/{index_DXmHKYjS.mjs → index_BcVtYp1L.mjs} +2 -2
  65. package/dist/server/chunks/{index_ieyhXCVt.mjs → index_DI8jAAVQ.mjs} +1 -1
  66. package/dist/server/chunks/{index_CDmqkl48.mjs → index_DXsKda1J.mjs} +2 -2
  67. package/dist/server/chunks/{login_DRJNLDt7.mjs → login_BGPEB2l4.mjs} +1 -1
  68. package/dist/server/chunks/{logs_CaMNxV6h.mjs → logs_XjDk7dqi.mjs} +2 -2
  69. package/dist/server/chunks/{menus_BsV0U5D5.mjs → menus_Kqym4CNK.mjs} +2 -2
  70. package/dist/server/chunks/{new_CyBl1PM1.mjs → new_BiikYmvu.mjs} +2 -2
  71. package/dist/server/chunks/{new_BQ2d8AHk.mjs → new_Dnp7PIHP.mjs} +3 -3
  72. package/dist/server/chunks/{plugins_BiaE4So1.mjs → plugins_C6qX0SAE.mjs} +2 -2
  73. package/dist/server/chunks/{post-types_BBKtACUm.mjs → post-types_Dr4t-TYB.mjs} +2 -2
  74. package/dist/server/chunks/{pt-BR_Da5G4GOV.mjs → pt-BR_DH_fNjEo.mjs} +49 -5
  75. package/dist/server/chunks/{taxonomies_gwfTSCOV.mjs → taxonomies_B0YzIdmD.mjs} +2 -2
  76. package/dist/server/chunks/{taxonomy_BKdLzLps.mjs → taxonomy_CCWZ58qQ.mjs} +64 -19
  77. package/dist/server/chunks/{themes_CqOUZiNg.mjs → themes_C7G3LcIz.mjs} +2 -2
  78. package/dist/server/chunks/{upload_keeE9Mn0.mjs → upload_BT3ud_vb.mjs} +2 -2
  79. package/dist/server/chunks/{webhooks_sTUPF0Xn.mjs → webhooks_CWW0L8EK.mjs} +2 -2
  80. package/dist/server/entry.mjs +104 -50
  81. package/dist/server/virtual_astro_middleware.mjs +1 -1
  82. package/package.json +5 -5
  83. package/dist/client/_astro/AdminBar.BW8zYZI3.js +0 -253
  84. package/dist/client/_astro/ApiKeysManager.Cj5tsk4N.js +0 -1
  85. package/dist/client/_astro/ContentEditor.CByEz10Q.js +0 -3
  86. package/dist/client/_astro/ContentEditor.kdYzULib.js +0 -1
  87. package/dist/client/_astro/ContentTypeWorkspace.BMVbiGGy.js +0 -1
  88. package/dist/client/_astro/DashboardHome.BuDu0DuB.js +0 -1
  89. package/dist/client/_astro/FbIcon.CUNS6rpP.js +0 -1
  90. package/dist/client/_astro/FieldGroupEditor.DGjV1n67.js +0 -69
  91. package/dist/client/_astro/FieldGroupList.BJ2TKSgY.js +0 -1
  92. package/dist/client/_astro/FloatingPanel.BeCEt_JP.js +0 -1
  93. package/dist/client/_astro/GeneralSettings.BSObhTfM.js +0 -1
  94. package/dist/client/_astro/LogsManager.B4-BxzoP.js +0 -1
  95. package/dist/client/_astro/MediaLibrary.BHVM3oJh.js +0 -1
  96. package/dist/client/_astro/MenuManager.BAn4_w6-.js +0 -1
  97. package/dist/client/_astro/Modal.BSZ5IjBl.js +0 -1
  98. package/dist/client/_astro/PostTypesManager.BHU1d2ta.js +0 -1
  99. package/dist/client/_astro/QuickDraftWidget.ClSsMYB_.js +0 -17
  100. package/dist/client/_astro/ResourceHubs.C3suqlP0.js +0 -1
  101. package/dist/client/_astro/TaxonomiesManager.BXYUiJEA.js +0 -1
  102. package/dist/client/_astro/TaxonomyTermsManager.obB3lkr3.js +0 -1
  103. package/dist/client/_astro/UserCreateForm.DaIOqr8v.js +0 -1
  104. package/dist/client/_astro/UsersManager.B5zFoWmR.js +0 -1
  105. package/dist/client/_astro/WebhooksManager.BRvVuxLt.js +0 -1
  106. package/dist/client/_astro/client.DU9Dc2oe.js +0 -1
  107. package/dist/client/_astro/extensions.Brl6zAPA.js +0 -1
  108. package/dist/client/_astro/i18n.vdBFsiPK.js +0 -1
  109. package/dist/client/_astro/pt-BR.CKJnipDe.js +0 -1
  110. package/dist/client/_astro/solid.D49dPDCT.js +0 -1
  111. package/dist/client/_astro/src.DXVWCoHp.js +0 -1
  112. package/dist/client/_astro/web.Bqbl_1YR.js +0 -1
@@ -90,7 +90,7 @@ async function loadLocale(locale) {
90
90
  "./locales/it.json": () => import("./it_CMLpQyoj.mjs"),
91
91
  "./locales/ja.json": () => import("./ja_CYRz0pHv.mjs"),
92
92
  "./locales/pl.json": () => import("./pl_BuXVPvU1.mjs"),
93
- "./locales/pt-BR.json": () => import("./pt-BR_Da5G4GOV.mjs"),
93
+ "./locales/pt-BR.json": () => import("./pt-BR_DH_fNjEo.mjs"),
94
94
  "./locales/ru.json": () => import("./ru_C56ltukG.mjs"),
95
95
  "./locales/sw.json": () => import("./sw_Dhw0GAgD.mjs"),
96
96
  "./locales/tr.json": () => import("./tr_zELRy7A-.mjs"),
@@ -123,7 +123,7 @@ function joinApiUrl(base, path) {
123
123
  return `${base}${path}`;
124
124
  }
125
125
  //#endregion
126
- //#region src/lib/api.js
126
+ //#region src/lib/api.ts
127
127
  var ApiError = class ApiError extends Error {
128
128
  status;
129
129
  code;
@@ -545,6 +545,22 @@ var ApiClient = class {
545
545
  async deleteTaxonomyTerm(slug, id) {
546
546
  await this.request("DELETE", `/api/v1/taxonomies/${encodeURIComponent(slug)}/terms/${id}`);
547
547
  }
548
+ async getComments(query = {}) {
549
+ const params = new URLSearchParams();
550
+ if (query.status) params.set("status", query.status);
551
+ if (query.contentId) params.set("contentId", query.contentId);
552
+ if (query.search) params.set("search", query.search);
553
+ if (query.limit !== void 0) params.set("limit", String(query.limit));
554
+ if (query.offset !== void 0) params.set("offset", String(query.offset));
555
+ const qs = params.toString();
556
+ return this.request("GET", `/api/v1/comments${qs ? `?${qs}` : ""}`);
557
+ }
558
+ async updateComment(id, data) {
559
+ return this.request("PATCH", `/api/v1/comments/${id}`, data);
560
+ }
561
+ async deleteComment(id) {
562
+ await this.request("DELETE", `/api/v1/comments/${id}`);
563
+ }
548
564
  async getCategories() {
549
565
  return this.request("GET", "/api/v1/categories");
550
566
  }
@@ -785,6 +801,10 @@ var ApiClient = class {
785
801
  manifest: plugin["manifest"] ?? null
786
802
  }));
787
803
  }
804
+ /** Slots declarativos do admin (FEAT-098): manifest.admin + api.admin (runtime). */
805
+ async getAdminExtensions() {
806
+ return this.request("GET", "/api/v1/plugins/extensions");
807
+ }
788
808
  async activatePlugin(id, tenantId) {
789
809
  return this.request("POST", `/api/v1/plugins/${id}/activate`, { tenantId });
790
810
  }
@@ -859,8 +879,10 @@ var en_exports = /* @__PURE__ */ __exportAll({
859
879
  activity: () => activity,
860
880
  adminBar: () => adminBar,
861
881
  apiKeys: () => apiKeys,
882
+ comments: () => comments,
862
883
  common: () => common,
863
884
  content: () => content,
885
+ customizer: () => customizer,
864
886
  dashboard: () => dashboard,
865
887
  default: () => en_default,
866
888
  footer: () => footer,
@@ -891,7 +913,9 @@ var layout = {
891
913
  "menus": "Menus",
892
914
  "settings": "Settings",
893
915
  "plugins": "Plugins",
894
- "themes": "Themes"
916
+ "themes": "Themes",
917
+ "customize": "Customize",
918
+ "comments": "Comments"
895
919
  },
896
920
  "actions": {
897
921
  "logout": "Logout",
@@ -1035,7 +1059,8 @@ var content = {
1035
1059
  "add": "Add term",
1036
1060
  "delete": "Delete",
1037
1061
  "empty": "No terms yet.",
1038
- "confirmDelete": "Delete \"{name}\"?"
1062
+ "confirmDelete": "Delete \"{name}\"?",
1063
+ "termFields": "Term fields"
1039
1064
  }
1040
1065
  };
1041
1066
  var media = {
@@ -1146,7 +1171,7 @@ var users = {
1146
1171
  "confirmDelete": "Delete user {email}?"
1147
1172
  }
1148
1173
  };
1149
- var settings = /*#__PURE__*/ JSON.parse("{\"general\":{\"title\":\"General\",\"description\":\"Basic information displayed on the site.\",\"back\":\"← All settings\",\"fields\":{\"siteTitle\":\"Site Title\",\"siteTitlePlaceholder\":\"My Site\",\"siteDescription\":\"Description\",\"siteDescriptionPlaceholder\":\"A new site built with OkCMS\",\"language\":\"Language\",\"timezone\":\"Timezone\",\"timezonePlaceholder\":\"America/Sao_Paulo\"},\"saved\":\"Settings saved ✓\",\"loading\":\"Loading…\",\"save\":\"Save\"},\"postTypes\":{\"title\":\"Content Types\",\"description\":\"Create custom content types (CPTs) beyond Posts and Pages.\",\"form\":{\"title\":\"Create Content Type\",\"slug\":\"Slug (singular, e.g.: portfolio)\",\"slugHint\":\"Only lowercase letters, numbers and underscore\",\"singular\":\"Singular name\",\"plural\":\"Plural name\",\"supports\":\"Supports\",\"supportsOptions\":{\"title\":\"Title\",\"editor\":\"Editor\",\"thumbnail\":\"Featured Image\",\"excerpt\":\"Excerpt\",\"revisions\":\"Revisions\"},\"hasArchive\":\"Has public archive (/slug)\",\"singleton\":\"Singleton (only one content entry)\",\"icon\":\"Sidebar menu icon\",\"iconHint\":\"Pick a Lucide icon — its name is what shows in the admin sidebar\",\"iconSearchPlaceholder\":\"Search icons…\",\"iconEmpty\":\"No icons found.\",\"iconCount\":\"{count} icons available\",\"editTitle\":\"Edit Content Type\",\"update\":\"Update\",\"cancel\":\"Cancel\",\"create\":\"Create\"},\"table\":{\"slug\":\"Slug\",\"singular\":\"Singular\",\"plural\":\"Plural\",\"source\":\"Source\",\"supports\":\"Supports\",\"archive\":\"Archive\",\"mode\":\"Mode\",\"singleton\":\"Singleton\",\"collection\":\"Collection\",\"icon\":\"Icon\",\"actions\":{\"edit\":\"Edit\",\"remove\":\"Remove\"}},\"sources\":{\"admin\":\"Admin\",\"core\":\"Core\"}},\"taxonomies\":{\"title\":\"Taxonomies\",\"description\":\"Create custom taxonomies and link them to content types.\",\"form\":{\"title\":\"Create Taxonomy\",\"name\":\"Name (e.g.: Genre)\",\"slug\":\"Slug (optional, generated from name)\",\"slugHint\":\"Only lowercase letters, numbers and underscore\",\"hierarchical\":\"Hierarchical (allows parent/child terms)\",\"attachTo\":\"Link to content types\",\"create\":\"Create\"},\"table\":{\"taxonomy\":\"Taxonomy\",\"hierarchical\":\"Hierarchical\",\"attachedTypes\":\"Linked content types\",\"actions\":{\"remove\":\"Remove\"}}},\"customFields\":{\"title\":\"Custom Fields\",\"description\":\"Create field groups, arrange fields and choose which standard fields are visible for each content type.\",\"contentType\":\"Content type\",\"location\":{\"title\":\"Location rules\",\"description\":\"Choose where this field group appears. Rules in the same group use AND; groups use OR.\",\"parameter\":\"Location parameter\",\"operator\":\"Operator\",\"chooseValue\":\"Choose a value\",\"valuePlaceholder\":\"Enter a value or slug\",\"showIf\":\"Show if\",\"removeRule\":\"Remove rule\",\"required\":\"Add a value to every location rule.\",\"addRule\":\"Add condition\",\"addGroup\":\"Add OR group\",\"remove\":\"Remove\",\"and\":\"AND\",\"or\":\"OR\",\"params\":{\"content_type\":\"Post type\",\"content_slug\":\"Post slug\",\"taxonomy\":\"Taxonomy\",\"term\":\"Term slug\",\"user_role\":\"User role\",\"page_template\":\"Page template\",\"post_status\":\"Post status\"},\"operators\":{\"eq\":\"is\",\"neq\":\"is not\"}},\"standard\":{\"title\":\"Standard fields\",\"description\":\"Title and slug are required. The other standard fields can be enabled or disabled.\",\"enabled\":\"Enabled\",\"locked\":\"Required\",\"fields\":{\"title\":\"Title\",\"slug\":\"Slug\",\"content\":\"Content\",\"excerpt\":\"Excerpt\",\"featured_image\":\"Featured image\",\"seo_title\":\"SEO title\",\"seo_description\":\"SEO description\",\"status\":\"Status\",\"author\":\"Author\"}},\"groups\":{\"title\":\"Field groups\",\"new\":\"New field group\",\"empty\":\"No custom field groups yet.\",\"emptyHint\":\"Create your first group to start modelling your content.\",\"search\":\"Search groups…\",\"groupName\":\"Group\",\"status\":\"Status\",\"fields\":\"fields\",\"appliesTo\":\"Applies to\",\"allContentTypes\":\"All content types\",\"edit\":\"Edit\",\"active\":\"Active\",\"inactive\":\"Inactive\"},\"form\":{\"createTitle\":\"Create field group\",\"editTitle\":\"Edit field group\",\"title\":\"Group name\",\"titlePlaceholder\":\"Example: Product details\",\"displayTitle\":\"Display title\",\"active\":\"Active\",\"backToGroups\":\"Back to groups\",\"editorEyebrow\":\"Field builder\",\"groupTitleHint\":\"This name identifies the field set inside the content editor.\",\"fieldsTitle\":\"Fields\",\"fieldsDescription\":\"Add, configure and order fields. Use the six-dot handle to drag without losing their position.\",\"noFields\":\"This group has no fields yet.\",\"settingsTitle\":\"Group settings\",\"settingsDescription\":\"Presentation and panel visibility options for this panel.\",\"description\":\"Description\",\"labelPlacement\":\"Label placement\",\"instructionPlacement\":\"Instruction placement\",\"menuOrder\":\"Menu order\",\"hideOnScreen\":\"Hide on edit screen\",\"hide\":{\"permalink\":\"Permalink\",\"content\":\"Content editor\",\"excerpt\":\"Excerpt\",\"featured_image\":\"Featured image\",\"author\":\"Author\",\"revisions\":\"Revisions\",\"comments\":\"Comments\"},\"assignTitle\":\"Location\",\"assignDescription\":\"Choose the content type where this field group will be available.\",\"contentType\":\"Content type\",\"position\":\"Position\",\"positions\":{\"normal\":\"Normal\",\"side\":\"Sidebar\",\"after_title\":\"After title\"},\"displayStyle\":\"Display style\",\"displayStyles\":{\"standard\":\"Standard\",\"seamless\":\"Seamless\",\"grouped\":\"Grouped\"},\"field\":\"Field\",\"fieldName\":\"Name/key\",\"fieldNamePlaceholder\":\"product_code\",\"fieldLabel\":\"Label\",\"fieldLabelPlaceholder\":\"Product code\",\"fieldType\":\"Type\",\"instructions\":\"Instructions\",\"instructionsPlaceholder\":\"Optional help text for editors\",\"required\":\"Required\",\"options\":\"Options\",\"optionsHint\":\"One option per line: value|Label\",\"addField\":\"Add field\",\"removeField\":\"Remove\",\"dragHint\":\"Drag to reorder\",\"editField\":\"Edit\",\"duplicateField\":\"Duplicate\",\"copySuffix\":\"(copy)\",\"selectFieldType\":\"Select field type\",\"searchFieldTypes\":\"Search field types…\",\"popularFields\":\"Popular\",\"noMatchingFieldTypes\":\"No field types found.\",\"fieldTypeHint\":\"Choose the type that best represents the value editors will enter in this field.\",\"selectField\":\"Select field\",\"save\":\"Save group\",\"cancel\":\"Cancel\",\"newFieldDefault\":\"New field\",\"saved\":\"Field group saved.\",\"deleted\":\"Field group deleted.\"},\"listEyebrow\":\"Content structure\",\"validation\":{\"titleRequired\":\"Group name is required.\"},\"tabs\":{\"locationRules\":\"Location rules\",\"presentation\":\"Presentation\",\"groupSettings\":\"Group settings\"},\"fieldSettings\":{\"general\":\"General\",\"fieldLabel\":\"Field label\",\"fieldName\":\"Field name\",\"instructions\":\"Instructions\",\"required\":\"Required\",\"defaultValue\":\"Default value\",\"placeholder\":\"Placeholder\",\"presentation\":\"Presentation\",\"wrapperWidth\":\"Wrapper width (%)\",\"labelPlacement\":\"Label\",\"instructionPlacement\":\"Instructions\",\"top\":\"Above\",\"left\":\"Left\",\"above\":\"Before field\",\"below\":\"After field\",\"textSettings\":\"Text\",\"prepend\":\"Prepend\",\"append\":\"Append\",\"minLength\":\"Minimum length\",\"maxLength\":\"Maximum length\",\"rows\":\"Rows\",\"newLines\":\"New lines\",\"wpautop\":\"Automatic paragraphs\",\"none\":\"None\",\"numberSettings\":\"Number\",\"min\":\"Minimum\",\"max\":\"Maximum\",\"step\":\"Step\",\"choiceSettings\":\"Choices\",\"choices\":\"Choices\",\"layout\":\"Layout\",\"vertical\":\"Vertical\",\"horizontal\":\"Horizontal\",\"multiple\":\"Multiple choice\",\"allowNull\":\"Allow empty\",\"mediaSettings\":\"Media\",\"returnFormat\":\"Return format\",\"array\":\"Array\",\"id\":\"ID\",\"previewSize\":\"Preview size\",\"library\":\"Library\",\"all\":\"All\",\"uploadedToPost\":\"Uploaded to this post\",\"allowedTypes\":\"Allowed types\",\"minWidth\":\"Minimum width\",\"maxWidth\":\"Maximum width\",\"minHeight\":\"Minimum height\",\"maxHeight\":\"Maximum height\",\"wysiwygSettings\":\"WYSIWYG\",\"tabs\":\"Tabs\",\"toolbar\":\"Toolbar\",\"mediaUpload\":\"Allow media upload\",\"dateSettings\":\"Date and time\",\"displayFormat\":\"Display format\",\"firstDay\":\"First day\",\"colorSettings\":\"Color\",\"enableOpacity\":\"Allow opacity\",\"mapSettings\":\"Map\",\"center\":\"Center\",\"zoom\":\"Zoom\",\"height\":\"Height\",\"relationSettings\":\"Relationship\",\"postType\":\"Post type\",\"taxonomy\":\"Taxonomy\",\"booleanSettings\":\"True/False\",\"message\":\"Message\",\"defaultChecked\":\"Checked by default\",\"linkSettings\":\"Link\",\"cloneSettings\":\"Clone\",\"cloneFields\":\"Fields to clone\",\"cloneHint\":\"One field name per line\",\"containerSettings\":\"Structure\",\"buttonLabel\":\"Button label\",\"collapsed\":\"Collapsed row title field\",\"subFields\":\"Subfields\",\"layouts\":\"Layouts\",\"addLayout\":\"Add layout\",\"newLayout\":\"New layout\",\"layoutName\":\"Layout name\",\"layoutLabel\":\"Layout label\",\"layoutDisplay\":\"Layout display\",\"conditionalLogic\":\"Conditional logic\",\"conditionalHint\":\"Show this field only when the rules match.\",\"chooseField\":\"Choose a field\",\"conditionValue\":\"Value\",\"addCondition\":\"Add condition\",\"addConditionGroup\":\"Add OR group\",\"conditionsAnd\":\"Conditions in this group use AND.\",\"choicesHint\":\"One choice per line in the format value|Label.\",\"cloneSource\":\"Source group or field\",\"cloneSourceHint\":\"Field group key or field name to copy fields from.\",\"requiredOn\":\"Required\",\"requiredOff\":\"Not required\",\"pluginConfig\":\"Plugin Configuration\",\"mermaid\":{\"diagramSettings\":\"Diagram Settings\",\"theme\":\"Theme\",\"selectTheme\":\"Select theme\",\"editable\":\"Allow editing in content editor\",\"defaultCode\":\"Default Mermaid Code\",\"defaultCodeHint\":\"Initial code when field is added to content. User can edit later.\",\"examples\":\"Examples\",\"exampleFlowchart\":\"Flowchart\",\"exampleSequence\":\"Sequence\",\"exampleClass\":\"Class Diagram\",\"diagram\":\"Mermaid Diagram\",\"copyCode\":\"Copy code\",\"rerender\":\"Re-render\",\"showCode\":\"Show source code\",\"renderError\":\"Render Error\",\"rendering\":\"Rendering diagram...\"},\"libraryAll\":\"All\",\"libraryUploaded\":\"Uploaded to this post\",\"ui\":\"Enhanced UI\",\"uiHint\":\"Use enhanced styling for the dropdown.\",\"wrapperClass\":\"Wrapper class\",\"wrapperWidthHint\":\"CSS width of the field wrapper, e.g. 50%.\",\"collapsedHint\":\"Name of the sub-field used as the row title.\",\"conditionalActive\":\"Active\",\"showIf\":\"Show if\",\"removeRule\":\"Remove rule\",\"and\":\"AND\",\"or\":\"OR\",\"noLayouts\":\"No layouts yet.\",\"validation\":\"Validation\",\"advanced\":\"Advanced\",\"fieldType\":\"Type\",\"fieldNameHint\":\"Letters, numbers and underscores only.\",\"ariaLabel\":\"Field settings\",\"operators\":{\"eq\":\"equals\",\"neq\":\"does not equal\",\"gt\":\"is greater than\",\"lt\":\"is less than\",\"contains\":\"contains\",\"hasAny\":\"has any value\",\"hasNone\":\"is empty\"}},\"actions\":{\"delete\":\"Delete\",\"confirmDelete\":\"Delete this field group?\",\"edit\":\"Edit\",\"duplicate\":\"Duplicate\",\"activate\":\"Activate\",\"deactivate\":\"Deactivate\",\"export\":\"Export\",\"import\":\"Import\"},\"import\":{\"description\":\"Import field groups from a JSON file. The file must contain a field group object or an array of field group objects. Existing groups with the same key will be updated; new groups will be created.\",\"dropzone\":\"Click to select a .json file, or drag and drop here\",\"hint\":\"File selected. Click Import to proceed.\"},\"loading\":\"Loading custom fields…\",\"loadError\":\"Could not load custom fields.\"}}");
1174
+ var settings = /*#__PURE__*/ JSON.parse("{\"general\":{\"title\":\"General\",\"description\":\"Basic information displayed on the site.\",\"back\":\"← All settings\",\"fields\":{\"siteTitle\":\"Site Title\",\"siteTitlePlaceholder\":\"My Site\",\"siteDescription\":\"Description\",\"siteDescriptionPlaceholder\":\"A new site built with OkCMS\",\"language\":\"Language\",\"timezone\":\"Timezone\",\"timezonePlaceholder\":\"America/Sao_Paulo\"},\"saved\":\"Settings saved ✓\",\"loading\":\"Loading…\",\"save\":\"Save\"},\"postTypes\":{\"title\":\"Content Types\",\"description\":\"Create custom content types (CPTs) beyond Posts and Pages.\",\"form\":{\"title\":\"Create Content Type\",\"slug\":\"Slug (singular, e.g.: portfolio)\",\"slugHint\":\"Only lowercase letters, numbers and underscore\",\"singular\":\"Singular name\",\"plural\":\"Plural name\",\"supports\":\"Supports\",\"supportsOptions\":{\"title\":\"Title\",\"editor\":\"Editor\",\"thumbnail\":\"Featured Image\",\"excerpt\":\"Excerpt\",\"revisions\":\"Revisions\"},\"hasArchive\":\"Has public archive (/slug)\",\"singleton\":\"Singleton (only one content entry)\",\"icon\":\"Sidebar menu icon\",\"iconHint\":\"Pick a Lucide icon — its name is what shows in the admin sidebar\",\"iconSearchPlaceholder\":\"Search icons…\",\"iconEmpty\":\"No icons found.\",\"iconCount\":\"{count} icons available\",\"editTitle\":\"Edit Content Type\",\"update\":\"Update\",\"cancel\":\"Cancel\",\"create\":\"Create\"},\"table\":{\"slug\":\"Slug\",\"singular\":\"Singular\",\"plural\":\"Plural\",\"source\":\"Source\",\"supports\":\"Supports\",\"archive\":\"Archive\",\"mode\":\"Mode\",\"singleton\":\"Singleton\",\"collection\":\"Collection\",\"icon\":\"Icon\",\"actions\":{\"edit\":\"Edit\",\"remove\":\"Remove\"}},\"sources\":{\"admin\":\"Admin\",\"core\":\"Core\"}},\"taxonomies\":{\"title\":\"Taxonomies\",\"description\":\"Create custom taxonomies and link them to content types.\",\"form\":{\"title\":\"Create Taxonomy\",\"name\":\"Name (e.g.: Genre)\",\"slug\":\"Slug (optional, generated from name)\",\"slugHint\":\"Only lowercase letters, numbers and underscore\",\"hierarchical\":\"Hierarchical (allows parent/child terms)\",\"attachTo\":\"Link to content types\",\"create\":\"Create\"},\"table\":{\"taxonomy\":\"Taxonomy\",\"hierarchical\":\"Hierarchical\",\"attachedTypes\":\"Linked content types\",\"actions\":{\"remove\":\"Remove\"}}},\"customFields\":{\"title\":\"Custom Fields\",\"description\":\"Create field groups, arrange fields and choose which standard fields are visible for each content type.\",\"contentType\":\"Content type\",\"location\":{\"title\":\"Location rules\",\"description\":\"Choose where this field group appears. Rules in the same group use AND; groups use OR.\",\"parameter\":\"Location parameter\",\"operator\":\"Operator\",\"chooseValue\":\"Choose a value\",\"valuePlaceholder\":\"Enter a value or slug\",\"showIf\":\"Show if\",\"removeRule\":\"Remove rule\",\"required\":\"Add a value to every location rule.\",\"addRule\":\"Add condition\",\"addGroup\":\"Add OR group\",\"remove\":\"Remove\",\"and\":\"AND\",\"or\":\"OR\",\"params\":{\"content_type\":\"Post type\",\"content_slug\":\"Post slug\",\"taxonomy\":\"Taxonomy\",\"term\":\"Term slug\",\"user_role\":\"User role\",\"page_template\":\"Page template\",\"post_status\":\"Post status\",\"block\":\"Block\"},\"operators\":{\"eq\":\"is\",\"neq\":\"is not\"}},\"standard\":{\"title\":\"Standard fields\",\"description\":\"Title and slug are required. The other standard fields can be enabled or disabled.\",\"enabled\":\"Enabled\",\"locked\":\"Required\",\"fields\":{\"title\":\"Title\",\"slug\":\"Slug\",\"content\":\"Content\",\"excerpt\":\"Excerpt\",\"featured_image\":\"Featured image\",\"seo_title\":\"SEO title\",\"seo_description\":\"SEO description\",\"status\":\"Status\",\"author\":\"Author\"}},\"groups\":{\"title\":\"Field groups\",\"new\":\"New field group\",\"empty\":\"No custom field groups yet.\",\"emptyHint\":\"Create your first group to start modelling your content.\",\"search\":\"Search groups…\",\"groupName\":\"Group\",\"status\":\"Status\",\"fields\":\"fields\",\"appliesTo\":\"Applies to\",\"allContentTypes\":\"All content types\",\"edit\":\"Edit\",\"active\":\"Active\",\"inactive\":\"Inactive\"},\"form\":{\"createTitle\":\"Create field group\",\"editTitle\":\"Edit field group\",\"title\":\"Group name\",\"titlePlaceholder\":\"Example: Product details\",\"displayTitle\":\"Display title\",\"active\":\"Active\",\"backToGroups\":\"Back to groups\",\"editorEyebrow\":\"Field builder\",\"groupTitleHint\":\"This name identifies the field set inside the content editor.\",\"fieldsTitle\":\"Fields\",\"fieldsDescription\":\"Add, configure and order fields. Use the six-dot handle to drag without losing their position.\",\"noFields\":\"This group has no fields yet.\",\"settingsTitle\":\"Group settings\",\"settingsDescription\":\"Presentation and panel visibility options for this panel.\",\"description\":\"Description\",\"labelPlacement\":\"Label placement\",\"instructionPlacement\":\"Instruction placement\",\"menuOrder\":\"Menu order\",\"hideOnScreen\":\"Hide on edit screen\",\"hide\":{\"permalink\":\"Permalink\",\"content\":\"Content editor\",\"excerpt\":\"Excerpt\",\"featured_image\":\"Featured image\",\"author\":\"Author\",\"revisions\":\"Revisions\",\"comments\":\"Comments\"},\"assignTitle\":\"Location\",\"assignDescription\":\"Choose the content type where this field group will be available.\",\"contentType\":\"Content type\",\"position\":\"Position\",\"positions\":{\"normal\":\"Normal\",\"side\":\"Sidebar\",\"after_title\":\"After title\"},\"displayStyle\":\"Display style\",\"displayStyles\":{\"standard\":\"Standard\",\"seamless\":\"Seamless\",\"grouped\":\"Grouped\"},\"field\":\"Field\",\"fieldName\":\"Name/key\",\"fieldNamePlaceholder\":\"product_code\",\"fieldLabel\":\"Label\",\"fieldLabelPlaceholder\":\"Product code\",\"fieldType\":\"Type\",\"instructions\":\"Instructions\",\"instructionsPlaceholder\":\"Optional help text for editors\",\"required\":\"Required\",\"options\":\"Options\",\"optionsHint\":\"One option per line: value|Label\",\"addField\":\"Add field\",\"removeField\":\"Remove\",\"dragHint\":\"Drag to reorder\",\"editField\":\"Edit\",\"duplicateField\":\"Duplicate\",\"copySuffix\":\"(copy)\",\"selectFieldType\":\"Select field type\",\"searchFieldTypes\":\"Search field types…\",\"popularFields\":\"Popular\",\"noMatchingFieldTypes\":\"No field types found.\",\"fieldTypeHint\":\"Choose the type that best represents the value editors will enter in this field.\",\"selectField\":\"Select field\",\"save\":\"Save group\",\"cancel\":\"Cancel\",\"newFieldDefault\":\"New field\",\"saved\":\"Field group saved.\",\"deleted\":\"Field group deleted.\"},\"listEyebrow\":\"Content structure\",\"validation\":{\"titleRequired\":\"Group name is required.\"},\"tabs\":{\"locationRules\":\"Location rules\",\"presentation\":\"Presentation\",\"groupSettings\":\"Group settings\"},\"fieldSettings\":{\"general\":\"General\",\"fieldLabel\":\"Field label\",\"fieldName\":\"Field name\",\"instructions\":\"Instructions\",\"required\":\"Required\",\"defaultValue\":\"Default value\",\"placeholder\":\"Placeholder\",\"presentation\":\"Presentation\",\"wrapperWidth\":\"Wrapper width (%)\",\"labelPlacement\":\"Label\",\"instructionPlacement\":\"Instructions\",\"top\":\"Above\",\"left\":\"Left\",\"above\":\"Before field\",\"below\":\"After field\",\"textSettings\":\"Text\",\"prepend\":\"Prepend\",\"append\":\"Append\",\"minLength\":\"Minimum length\",\"maxLength\":\"Maximum length\",\"rows\":\"Rows\",\"newLines\":\"New lines\",\"wpautop\":\"Automatic paragraphs\",\"none\":\"None\",\"numberSettings\":\"Number\",\"min\":\"Minimum\",\"max\":\"Maximum\",\"step\":\"Step\",\"choiceSettings\":\"Choices\",\"choices\":\"Choices\",\"layout\":\"Layout\",\"vertical\":\"Vertical\",\"horizontal\":\"Horizontal\",\"multiple\":\"Multiple choice\",\"allowNull\":\"Allow empty\",\"mediaSettings\":\"Media\",\"returnFormat\":\"Return format\",\"array\":\"Array\",\"id\":\"ID\",\"previewSize\":\"Preview size\",\"library\":\"Library\",\"all\":\"All\",\"uploadedToPost\":\"Uploaded to this post\",\"allowedTypes\":\"Allowed types\",\"minWidth\":\"Minimum width\",\"maxWidth\":\"Maximum width\",\"minHeight\":\"Minimum height\",\"maxHeight\":\"Maximum height\",\"wysiwygSettings\":\"WYSIWYG\",\"tabs\":\"Tabs\",\"toolbar\":\"Toolbar\",\"mediaUpload\":\"Allow media upload\",\"dateSettings\":\"Date and time\",\"displayFormat\":\"Display format\",\"firstDay\":\"First day\",\"colorSettings\":\"Color\",\"enableOpacity\":\"Allow opacity\",\"mapSettings\":\"Map\",\"center\":\"Center\",\"zoom\":\"Zoom\",\"height\":\"Height\",\"relationSettings\":\"Relationship\",\"postType\":\"Post type\",\"taxonomy\":\"Taxonomy\",\"booleanSettings\":\"True/False\",\"message\":\"Message\",\"defaultChecked\":\"Checked by default\",\"linkSettings\":\"Link\",\"cloneSettings\":\"Clone\",\"cloneFields\":\"Fields to clone\",\"cloneHint\":\"One field name per line\",\"containerSettings\":\"Structure\",\"buttonLabel\":\"Button label\",\"collapsed\":\"Collapsed row title field\",\"subFields\":\"Subfields\",\"layouts\":\"Layouts\",\"addLayout\":\"Add layout\",\"newLayout\":\"New layout\",\"layoutName\":\"Layout name\",\"layoutLabel\":\"Layout label\",\"layoutDisplay\":\"Layout display\",\"conditionalLogic\":\"Conditional logic\",\"conditionalHint\":\"Show this field only when the rules match.\",\"chooseField\":\"Choose a field\",\"conditionValue\":\"Value\",\"addCondition\":\"Add condition\",\"addConditionGroup\":\"Add OR group\",\"conditionsAnd\":\"Conditions in this group use AND.\",\"choicesHint\":\"One choice per line in the format value|Label.\",\"cloneSource\":\"Source group or field\",\"cloneSourceHint\":\"Field group key or field name to copy fields from.\",\"requiredOn\":\"Required\",\"requiredOff\":\"Not required\",\"pluginConfig\":\"Plugin Configuration\",\"mermaid\":{\"diagramSettings\":\"Diagram Settings\",\"theme\":\"Theme\",\"selectTheme\":\"Select theme\",\"editable\":\"Allow editing in content editor\",\"defaultCode\":\"Default Mermaid Code\",\"defaultCodeHint\":\"Initial code when field is added to content. User can edit later.\",\"examples\":\"Examples\",\"exampleFlowchart\":\"Flowchart\",\"exampleSequence\":\"Sequence\",\"exampleClass\":\"Class Diagram\",\"diagram\":\"Mermaid Diagram\",\"copyCode\":\"Copy code\",\"rerender\":\"Re-render\",\"showCode\":\"Show source code\",\"renderError\":\"Render Error\",\"rendering\":\"Rendering diagram...\"},\"libraryAll\":\"All\",\"libraryUploaded\":\"Uploaded to this post\",\"ui\":\"Enhanced UI\",\"uiHint\":\"Use enhanced styling for the dropdown.\",\"wrapperClass\":\"Wrapper class\",\"wrapperWidthHint\":\"CSS width of the field wrapper, e.g. 50%.\",\"collapsedHint\":\"Name of the sub-field used as the row title.\",\"conditionalActive\":\"Active\",\"showIf\":\"Show if\",\"removeRule\":\"Remove rule\",\"and\":\"AND\",\"or\":\"OR\",\"noLayouts\":\"No layouts yet.\",\"validation\":\"Validation\",\"advanced\":\"Advanced\",\"fieldType\":\"Type\",\"fieldNameHint\":\"Letters, numbers and underscores only.\",\"ariaLabel\":\"Field settings\",\"operators\":{\"eq\":\"equals\",\"neq\":\"does not equal\",\"gt\":\"is greater than\",\"lt\":\"is less than\",\"contains\":\"contains\",\"hasAny\":\"has any value\",\"hasNone\":\"is empty\"}},\"actions\":{\"delete\":\"Delete\",\"confirmDelete\":\"Delete this field group?\",\"edit\":\"Edit\",\"duplicate\":\"Duplicate\",\"activate\":\"Activate\",\"deactivate\":\"Deactivate\",\"export\":\"Export\",\"import\":\"Import\"},\"import\":{\"description\":\"Import field groups from a JSON file. The file must contain a field group object or an array of field group objects. Existing groups with the same key will be updated; new groups will be created.\",\"dropzone\":\"Click to select a .json file, or drag and drop here\",\"hint\":\"File selected. Click Import to proceed.\"},\"loading\":\"Loading custom fields…\",\"loadError\":\"Could not load custom fields.\"}}");
1150
1175
  var menus = {
1151
1176
  "title": "Menus",
1152
1177
  "description": "Create and manage the navigation menus used by your site.",
@@ -1542,6 +1567,45 @@ var screenOptions = {
1542
1567
  "label": "Screen Options",
1543
1568
  "showOnScreen": "Show on screen"
1544
1569
  };
1570
+ var customizer = {
1571
+ "title": "Customizer",
1572
+ "description": "Adjust the active theme settings with a live preview. Changes apply to the preview instantly and only persist when you save.",
1573
+ "loadError": "Failed to load themes.",
1574
+ "saveError": "Failed to save the theme settings.",
1575
+ "noTheme": "No active theme to customize.",
1576
+ "goToThemes": "Go to Themes",
1577
+ "noSettings": "This theme declares no customizable settings (manifest.settings).",
1578
+ "save": "Save",
1579
+ "saving": "Saving...",
1580
+ "saved": "Saved.",
1581
+ "reset": "Reset",
1582
+ "refreshPreview": "Refresh preview",
1583
+ "previewHint": "The preview overlays your draft on top of the saved settings — it is request-only and never persists.",
1584
+ "previewPath": "Preview path",
1585
+ "previewTitle": "Theme preview"
1586
+ };
1587
+ var comments = {
1588
+ "title": "Comments",
1589
+ "description": "Moderate visitor comments: approve, mark as spam, trash or delete permanently.",
1590
+ "loading": "Loading comments...",
1591
+ "empty": "No comments in this queue.",
1592
+ "reload": "Reload",
1593
+ "author": "Author",
1594
+ "comment": "Comment",
1595
+ "inReplyTo": "Content",
1596
+ "submitted": "Submitted",
1597
+ "approve": "Approve",
1598
+ "spam": "Spam",
1599
+ "trash": "Trash",
1600
+ "delete": "Delete",
1601
+ "confirmDelete": "Delete this comment permanently? This cannot be undone.",
1602
+ "status": {
1603
+ "pending": "Pending",
1604
+ "approved": "Approved",
1605
+ "spam": "Spam",
1606
+ "trashed": "Trash"
1607
+ }
1608
+ };
1545
1609
  var en_default = {
1546
1610
  layout,
1547
1611
  dashboard,
@@ -1565,7 +1629,9 @@ var en_default = {
1565
1629
  adminBar,
1566
1630
  footer,
1567
1631
  helpTabs,
1568
- screenOptions
1632
+ screenOptions,
1633
+ customizer,
1634
+ comments
1569
1635
  };
1570
1636
  //#endregion
1571
1637
  //#region src/i18n/index.js
@@ -1,19 +1,25 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
3
3
  import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
4
- import { n as useTranslation, r as apiClient } from "./i18n_B-DWAN0e.mjs";
5
- import { c as Pagination, d as Table, i as Card, l as Select, n as Badge, o as Input, r as Button, t as $$DashboardLayout } from "./DashboardLayout_CrxyUavx.mjs";
6
- import { t as ContentEditor } from "./ContentEditor_VK16JJMh.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BmAxDr2Q.mjs";
5
+ import { c as Button, d as Input, g as Table, i as ActionLinksSlot, l as Card, m as Select, n as emptyExtensionsState, o as PluginComponentHost, p as Pagination, r as loadExtensions, s as Badge, t as $$DashboardLayout } from "./DashboardLayout_PXoRmnBH.mjs";
7
6
  import { t as PageHeader } from "./PageHeader_CRpzf5xU.mjs";
7
+ import { t as ContentEditor } from "./ContentEditor_DStZ4RZE.mjs";
8
8
  import { createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
9
9
  import { Show, createMemo, createSignal, onMount } from "solid-js";
10
- //#region src/components/content/ContentList.jsx
11
- var _tmpl$$1 = [
10
+ //#region src/components/content/ContentList.tsx
11
+ var _tmpl$$1 = ["<span", " class=\"muted\">—</span>"];
12
+ var _tmpl$2$1 = [
12
13
  "<span",
13
14
  " class=\"muted\">",
14
15
  "</span>"
15
16
  ];
16
- var _tmpl$2$1 = [
17
+ var _tmpl$3 = [
18
+ "<span",
19
+ ">",
20
+ "</span>"
21
+ ];
22
+ var _tmpl$4 = [
17
23
  "<div",
18
24
  " class=\"users-table__actions\"><a class=\"btn btn-secondary btn-sm\" href=\"",
19
25
  "\">",
@@ -21,17 +27,17 @@ var _tmpl$2$1 = [
21
27
  "<!--/--><!--$-->",
22
28
  "<!--/--></div>"
23
29
  ];
24
- var _tmpl$3 = [
30
+ var _tmpl$5 = [
25
31
  "<div",
26
32
  " class=\"notice notice--error\">",
27
33
  "</div>"
28
34
  ];
29
- var _tmpl$4 = [
35
+ var _tmpl$6 = [
30
36
  "<div",
31
37
  " class=\"notice\">",
32
38
  "</div>"
33
39
  ];
34
- var _tmpl$5 = [
40
+ var _tmpl$7 = [
35
41
  "<div",
36
42
  " class=\"content-list\"><div class=\"content-list__heading\"><div><h2>",
37
43
  "</h2><p class=\"muted\">",
@@ -43,6 +49,7 @@ var _tmpl$5 = [
43
49
  "<!--/--><!--$-->",
44
50
  "<!--/--><!--$-->",
45
51
  "<!--/--></div><!--$-->",
52
+ "<!--/--><!--$-->",
46
53
  "<!--/--></div>"
47
54
  ];
48
55
  function raw(row) {
@@ -66,6 +73,7 @@ function ContentList(props) {
66
73
  const [error, setError] = createSignal("");
67
74
  const [info, setInfo] = createSignal("");
68
75
  const [busyId, setBusyId] = createSignal("");
76
+ const [extensions, setExtensions] = createSignal(emptyExtensionsState());
69
77
  const limit = 20;
70
78
  const load = async () => {
71
79
  try {
@@ -83,6 +91,7 @@ function ContentList(props) {
83
91
  }
84
92
  };
85
93
  onMount(async () => {
94
+ loadExtensions().then(setExtensions);
86
95
  const query = new URLSearchParams(window.location.search);
87
96
  setStatus(query.get("status") ?? "");
88
97
  setSearch(query.get("search") ?? "");
@@ -123,71 +132,109 @@ function ContentList(props) {
123
132
  setError(err instanceof Error ? err.message : String(err));
124
133
  }
125
134
  };
126
- const columns = createMemo(() => [
127
- {
128
- key: "title",
129
- label: t("content.list.columns.title")
130
- },
131
- {
132
- key: "type",
133
- label: t("content.list.columns.type")
134
- },
135
- {
136
- key: "status",
137
- label: t("content.list.columns.status"),
135
+ const columns = createMemo(() => {
136
+ const pluginDefs = extensions().columns[type()] ?? [];
137
+ const pluginRenderers = extensions().columnRenderers[type()] ?? {};
138
+ const pluginColumn = (def) => ({
139
+ key: def.key,
140
+ label: def.label,
138
141
  render: (_value, row) => {
139
- const statusValue = String(row["status"] ?? "");
140
- return createComponent(Badge, {
141
- variant: statusValue === "PUBLISHED" ? "success" : statusValue === "ARCHIVED" ? "warning" : "secondary",
142
- children: statusValue
143
- });
142
+ const rendererId = pluginRenderers[def.key];
143
+ if (rendererId) {
144
+ const pluginName = rendererId.split(":")[0] ?? "";
145
+ return createComponent(PluginComponentHost, {
146
+ componentId: rendererId,
147
+ plugin: pluginName,
148
+ extraProps: { row }
149
+ });
150
+ }
151
+ const value = row[def.key];
152
+ if (value == null) return ssr(_tmpl$$1, ssrHydrationKey());
153
+ if (typeof value === "object") return ssr(_tmpl$2$1, ssrHydrationKey(), escape(JSON.stringify(value)));
154
+ return ssr(_tmpl$3, ssrHydrationKey(), escape(String(value)));
144
155
  }
145
- },
146
- {
147
- key: "updated_at",
148
- label: t("content.list.columns.updated"),
149
- render: (_value, row) => ssr(_tmpl$$1, ssrHydrationKey(), escape(formatDate(row)))
150
- },
151
- {
152
- key: "actions",
153
- label: "",
154
- render: (_value, row) => {
155
- const content = row;
156
- const isPublished = raw(content)["status"] === "PUBLISHED";
157
- return ssr(_tmpl$2$1, ssrHydrationKey(), `/content/${escape(encodeURIComponent(content.type || type()), true)}/edit?id=${escape(encodeURIComponent(content.id), true)}`, escape(t("content.list.actions.edit")), escape(createComponent(Button, {
158
- variant: isPublished ? "secondary" : "primary",
159
- size: "sm",
160
- get loading() {
161
- return busyId() === content.id;
162
- },
163
- onClick: () => void togglePublish(content),
164
- get children() {
165
- return isPublished ? t("content.list.actions.unpublish") : t("content.list.actions.publish");
166
- }
167
- })), escape(createComponent(Button, {
168
- variant: "danger",
169
- size: "sm",
170
- onClick: () => void remove(content),
171
- get children() {
172
- return t("content.list.actions.delete");
173
- }
174
- })));
156
+ });
157
+ const beforeTitle = pluginDefs.filter((def) => def.position === "before_title").map(pluginColumn);
158
+ const afterTitle = pluginDefs.filter((def) => def.position === "after_title").map(pluginColumn);
159
+ const implicit = pluginDefs.filter((def) => !def.position).map(pluginColumn);
160
+ const atEnd = pluginDefs.filter((def) => def.position === "end").map(pluginColumn);
161
+ const core = [
162
+ {
163
+ key: "title",
164
+ label: t("content.list.columns.title")
165
+ },
166
+ {
167
+ key: "type",
168
+ label: t("content.list.columns.type")
169
+ },
170
+ {
171
+ key: "status",
172
+ label: t("content.list.columns.status"),
173
+ render: (_value, row) => {
174
+ const statusValue = String(row["status"] ?? "");
175
+ return createComponent(Badge, {
176
+ variant: statusValue === "PUBLISHED" ? "success" : statusValue === "ARCHIVED" ? "warning" : "secondary",
177
+ children: statusValue
178
+ });
179
+ }
180
+ },
181
+ {
182
+ key: "updated_at",
183
+ label: t("content.list.columns.updated"),
184
+ render: (_value, row) => ssr(_tmpl$2$1, ssrHydrationKey(), escape(formatDate(row)))
185
+ },
186
+ {
187
+ key: "actions",
188
+ label: "",
189
+ render: (_value, row) => {
190
+ const content = row;
191
+ const isPublished = raw(content)["status"] === "PUBLISHED";
192
+ return ssr(_tmpl$4, ssrHydrationKey(), `/content/${escape(encodeURIComponent(content.type || type()), true)}/edit?id=${escape(encodeURIComponent(content.id), true)}`, escape(t("content.list.actions.edit")), escape(createComponent(Button, {
193
+ variant: isPublished ? "secondary" : "primary",
194
+ size: "sm",
195
+ get loading() {
196
+ return busyId() === content.id;
197
+ },
198
+ onClick: () => void togglePublish(content),
199
+ get children() {
200
+ return isPublished ? t("content.list.actions.unpublish") : t("content.list.actions.publish");
201
+ }
202
+ })), escape(createComponent(Button, {
203
+ variant: "danger",
204
+ size: "sm",
205
+ onClick: () => void remove(content),
206
+ get children() {
207
+ return t("content.list.actions.delete");
208
+ }
209
+ })));
210
+ }
175
211
  }
176
- }
177
- ]);
178
- return ssr(_tmpl$5, ssrHydrationKey(), escape(pageTitle()), escape(t("content.list.description")), ssrAttribute("href", escape(newContentHref(), true), false), escape(t("content.list.buttons.addNew")), escape(createComponent(Show, {
212
+ ];
213
+ return [
214
+ ...beforeTitle,
215
+ core[0],
216
+ ...afterTitle,
217
+ core[1],
218
+ core[2],
219
+ core[3],
220
+ ...implicit,
221
+ core[4],
222
+ ...atEnd
223
+ ];
224
+ });
225
+ return ssr(_tmpl$7, ssrHydrationKey(), escape(pageTitle()), escape(t("content.list.description")), ssrAttribute("href", escape(newContentHref(), true), false), escape(t("content.list.buttons.addNew")), escape(createComponent(Show, {
179
226
  get when() {
180
227
  return error();
181
228
  },
182
229
  get children() {
183
- return ssr(_tmpl$3, ssrHydrationKey(), escape(error()));
230
+ return ssr(_tmpl$5, ssrHydrationKey(), escape(error()));
184
231
  }
185
232
  })), escape(createComponent(Show, {
186
233
  get when() {
187
234
  return info();
188
235
  },
189
236
  get children() {
190
- return ssr(_tmpl$4, ssrHydrationKey(), escape(info()));
237
+ return ssr(_tmpl$6, ssrHydrationKey(), escape(info()));
191
238
  }
192
239
  })), escape(createComponent(Input, {
193
240
  name: "search",
@@ -235,7 +282,9 @@ function ContentList(props) {
235
282
  get children() {
236
283
  return t("content.list.buttons.search");
237
284
  }
238
- })), escape(createComponent(Card, { get children() {
285
+ })), escape(createComponent(ActionLinksSlot, { get extensions() {
286
+ return extensions();
287
+ } })), escape(createComponent(Card, { get children() {
239
288
  return [createComponent(Table, {
240
289
  get columns() {
241
290
  return columns();
@@ -1,8 +1,8 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
3
3
  import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
4
- import { n as useTranslation, r as apiClient } from "./i18n_B-DWAN0e.mjs";
5
- import { t as $$DashboardLayout } from "./DashboardLayout_CrxyUavx.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BmAxDr2Q.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_PXoRmnBH.mjs";
6
6
  import { createComponent, escape, ssr, ssrHydrationKey } from "solid-js/web";
7
7
  import { For, Show, createSignal, onMount } from "solid-js";
8
8
  //#region src/components/apps/dashboard/DashboardHome.jsx
@@ -1,8 +1,8 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
3
3
  import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
4
- import { n as useTranslation, r as apiClient } from "./i18n_B-DWAN0e.mjs";
5
- import { a as For2, c as Pagination, l as Select, m as onMount, n as Badge, o as Input, p as createSignal, r as Button, t as $$DashboardLayout, u as Show2 } from "./DashboardLayout_CrxyUavx.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BmAxDr2Q.mjs";
5
+ import { c as Button, d as Input, h as Show2, m as Select, p as Pagination, s as Badge, t as $$DashboardLayout, u as For2, v as createSignal, y as onMount } from "./DashboardLayout_PXoRmnBH.mjs";
6
6
  import { t as PageHeader } from "./PageHeader_CRpzf5xU.mjs";
7
7
  import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
8
8
  //#region src/components/apps/users/UsersManager.jsx
@@ -1,7 +1,7 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
3
3
  import { t as createComponent } from "./compiler_O7J1rlsi.mjs";
4
- import { t as $$DashboardLayout } from "./DashboardLayout_CrxyUavx.mjs";
4
+ import { t as $$DashboardLayout } from "./DashboardLayout_PXoRmnBH.mjs";
5
5
  import { t as PageHeader } from "./PageHeader_CRpzf5xU.mjs";
6
6
  //#region src/pages/settings/index.astro
7
7
  var settings_exports = /* @__PURE__ */ __exportAll({
@@ -1,9 +1,9 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
3
3
  import { t as createComponent } from "./compiler_O7J1rlsi.mjs";
4
- import { t as $$DashboardLayout } from "./DashboardLayout_CrxyUavx.mjs";
4
+ import { t as $$DashboardLayout } from "./DashboardLayout_PXoRmnBH.mjs";
5
5
  import { t as PageHeader } from "./PageHeader_CRpzf5xU.mjs";
6
- import { t as MediaLibrary } from "./MediaLibrary_CZuj5byR.mjs";
6
+ import { t as MediaLibrary } from "./MediaLibrary_D7vu5VMd.mjs";
7
7
  //#region src/pages/media/index.astro
8
8
  var media_exports = /* @__PURE__ */ __exportAll({
9
9
  default: () => $$Index,
@@ -1,7 +1,7 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
3
3
  import { t as createComponent } from "./compiler_O7J1rlsi.mjs";
4
- import { n as renderScript, t as $$BaseLayout } from "./BaseLayout_DgDmTH8p.mjs";
4
+ import { n as renderScript, t as $$BaseLayout } from "./BaseLayout_BTzlA_Yr.mjs";
5
5
  //#region src/pages/login.astro
6
6
  var login_exports = /* @__PURE__ */ __exportAll({
7
7
  default: () => $$Login,
@@ -1,8 +1,8 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
3
3
  import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
4
- import { n as useTranslation, r as apiClient } from "./i18n_B-DWAN0e.mjs";
5
- import { t as $$DashboardLayout } from "./DashboardLayout_CrxyUavx.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BmAxDr2Q.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_PXoRmnBH.mjs";
6
6
  import { t as PageHeader } from "./PageHeader_CRpzf5xU.mjs";
7
7
  import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
8
8
  import { For, Show, createSignal, onMount } from "solid-js";
@@ -1,8 +1,8 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, d as maybeRenderHead, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
3
3
  import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
4
- import { n as useTranslation, r as apiClient } from "./i18n_B-DWAN0e.mjs";
5
- import { t as $$DashboardLayout } from "./DashboardLayout_CrxyUavx.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BmAxDr2Q.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_PXoRmnBH.mjs";
6
6
  import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
7
7
  import { For, Show, createMemo, createSignal, onMount } from "solid-js";
8
8
  //#region src/components/apps/menus/MenuManager.jsx
@@ -1,8 +1,8 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
3
3
  import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
4
- import { n as useTranslation, r as apiClient } from "./i18n_B-DWAN0e.mjs";
5
- import { t as $$DashboardLayout } from "./DashboardLayout_CrxyUavx.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BmAxDr2Q.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_PXoRmnBH.mjs";
6
6
  import { t as PageHeader } from "./PageHeader_CRpzf5xU.mjs";
7
7
  import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
8
8
  import { For, Show, createSignal, onMount } from "solid-js";
@@ -1,9 +1,9 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
3
3
  import { t as createComponent } from "./compiler_O7J1rlsi.mjs";
4
- import { t as $$DashboardLayout } from "./DashboardLayout_CrxyUavx.mjs";
5
- import { t as ContentEditor } from "./ContentEditor_VK16JJMh.mjs";
4
+ import { t as $$DashboardLayout } from "./DashboardLayout_PXoRmnBH.mjs";
6
5
  import { t as PageHeader } from "./PageHeader_CRpzf5xU.mjs";
6
+ import { t as ContentEditor } from "./ContentEditor_DStZ4RZE.mjs";
7
7
  //#region src/pages/content/[type]/new.astro
8
8
  var new_exports = /* @__PURE__ */ __exportAll({
9
9
  default: () => $$New,
@@ -23,7 +23,7 @@ var $$New = createComponent(($$result, $$props, $$slots) => {
23
23
  "client:load": true,
24
24
  "initialType": contentType,
25
25
  "client:component-hydration": "load",
26
- "client:component-path": "/home/runner/work/cms/cms/apps/admin/src/components/content/ContentEditor.jsx",
26
+ "client:component-path": "/home/runner/work/cms/cms/apps/admin/src/components/content/ContentEditor.tsx",
27
27
  "client:component-export": "ContentEditor"
28
28
  })}` })}`;
29
29
  }, "/home/runner/work/cms/cms/apps/admin/src/pages/content/[type]/new.astro", void 0);
@@ -1,8 +1,8 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
3
3
  import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
4
- import { n as useTranslation, r as apiClient } from "./i18n_B-DWAN0e.mjs";
5
- import { t as $$DashboardLayout } from "./DashboardLayout_CrxyUavx.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BmAxDr2Q.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_PXoRmnBH.mjs";
6
6
  import { t as PageHeader } from "./PageHeader_CRpzf5xU.mjs";
7
7
  import { createComponent, escape, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
8
8
  import { For, createSignal, onMount } from "solid-js";
@@ -1,8 +1,8 @@
1
1
  import { r as __exportAll } from "./rolldown-runtime_BMI-E3GI.mjs";
2
2
  import { S as createAstro, i as renderComponent, u as renderTemplate } from "./server_B5N27szj.mjs";
3
3
  import { t as createComponent$1 } from "./compiler_O7J1rlsi.mjs";
4
- import { n as useTranslation, r as apiClient } from "./i18n_B-DWAN0e.mjs";
5
- import { t as $$DashboardLayout } from "./DashboardLayout_CrxyUavx.mjs";
4
+ import { n as useTranslation, r as apiClient } from "./i18n_BmAxDr2Q.mjs";
5
+ import { t as $$DashboardLayout } from "./DashboardLayout_PXoRmnBH.mjs";
6
6
  import { t as PageHeader } from "./PageHeader_CRpzf5xU.mjs";
7
7
  import { t as FloatingPanel } from "./FloatingPanel_BtB-nNBT.mjs";
8
8
  import { createComponent, escape, memo, ssr, ssrAttribute, ssrHydrationKey, ssrStyleProperty } from "solid-js/web";