@kardalum/plugin-sdk 0.0.0-stage → 0.16.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 (332) hide show
  1. package/CHANGELOG.md +118 -0
  2. package/LICENSE +202 -0
  3. package/README.md +80 -2
  4. package/dist/admin-section-registry.d.ts +34 -0
  5. package/dist/admin-section-registry.js +49 -0
  6. package/dist/built-in-serializers.d.ts +3 -0
  7. package/dist/built-in-serializers.js +18 -0
  8. package/dist/built-in-settings-schemas.d.ts +14 -0
  9. package/dist/built-in-settings-schemas.js +225 -0
  10. package/dist/built-in-value-schemas.d.ts +4 -0
  11. package/dist/built-in-value-schemas.js +47 -0
  12. package/dist/built-ins.d.ts +1 -0
  13. package/dist/built-ins.js +257 -0
  14. package/dist/capabilities.d.ts +29 -0
  15. package/dist/capabilities.js +67 -0
  16. package/dist/data-type-plugin.d.ts +28 -0
  17. package/dist/data-type-plugin.js +1 -0
  18. package/dist/datatype-validation.d.ts +26 -0
  19. package/dist/datatype-validation.js +110 -0
  20. package/dist/datatypes-entry.d.ts +4 -0
  21. package/dist/datatypes-entry.js +18 -0
  22. package/dist/define-plugin.d.ts +25 -0
  23. package/dist/define-plugin.js +51 -0
  24. package/dist/entitlement-entry.d.ts +5 -0
  25. package/dist/entitlement-entry.js +24 -0
  26. package/dist/entitlement-gate.d.ts +36 -0
  27. package/dist/entitlement-gate.js +201 -0
  28. package/dist/entitlement-types.d.ts +39 -0
  29. package/dist/entitlement-types.js +1 -0
  30. package/dist/entitlement.d.ts +57 -0
  31. package/dist/entitlement.js +170 -0
  32. package/dist/host-entry.d.ts +1 -0
  33. package/dist/host-entry.js +11 -0
  34. package/dist/icon-name.d.ts +1 -0
  35. package/dist/icon-name.js +1 -0
  36. package/dist/icons.d.ts +2 -0
  37. package/dist/icons.js +10 -0
  38. package/dist/index.d.ts +28 -0
  39. package/dist/index.js +94 -0
  40. package/dist/license-verdict-keys.d.ts +18 -0
  41. package/dist/license-verdict-keys.js +26 -0
  42. package/dist/local-host.d.ts +3 -0
  43. package/dist/local-host.js +38 -0
  44. package/dist/manifest-entry.d.ts +8 -0
  45. package/dist/manifest-entry.js +13 -0
  46. package/dist/manifest-schema.d.ts +476 -0
  47. package/dist/manifest-schema.js +823 -0
  48. package/dist/manifest.d.ts +611 -0
  49. package/dist/manifest.js +86 -0
  50. package/dist/media/media-picker.d.ts +39 -0
  51. package/dist/media/media-picker.js +447 -0
  52. package/dist/media/upload-error.d.ts +12 -0
  53. package/dist/media/upload-error.js +30 -0
  54. package/dist/plugin-context.d.ts +82 -0
  55. package/dist/plugin-context.js +77 -0
  56. package/dist/plugin-screen-context.d.ts +71 -0
  57. package/dist/plugin-screen-context.js +41 -0
  58. package/dist/read-all-pages.d.ts +23 -0
  59. package/dist/read-all-pages.js +30 -0
  60. package/dist/register-built-ins.d.ts +1 -0
  61. package/dist/register-built-ins.js +41 -0
  62. package/dist/registry.d.ts +4 -0
  63. package/dist/registry.js +17 -0
  64. package/dist/rendition-eligibility.d.ts +24 -0
  65. package/dist/rendition-eligibility.js +40 -0
  66. package/dist/richtext/block-panel.d.ts +27 -0
  67. package/dist/richtext/block-panel.js +232 -0
  68. package/dist/richtext/extensions.d.ts +19 -0
  69. package/dist/richtext/extensions.js +56 -0
  70. package/dist/richtext/insert-menu.d.ts +24 -0
  71. package/dist/richtext/insert-menu.js +142 -0
  72. package/dist/richtext/kardalum-block.d.ts +33 -0
  73. package/dist/richtext/kardalum-block.js +282 -0
  74. package/dist/richtext/style-listbox.d.ts +10 -0
  75. package/dist/richtext/style-listbox.js +69 -0
  76. package/dist/richtext/text-style-class.d.ts +18 -0
  77. package/dist/richtext/text-style-class.js +36 -0
  78. package/dist/simple-storage-value-provider.d.ts +9 -0
  79. package/dist/simple-storage-value-provider.js +96 -0
  80. package/dist/structured-storage-types.d.ts +61 -0
  81. package/dist/structured-storage-types.js +11 -0
  82. package/dist/tailwind.d.ts +1 -0
  83. package/dist/tailwind.js +5 -0
  84. package/dist/tokens/system-dark.css +75 -0
  85. package/dist/tokens/tokens.css +239 -0
  86. package/dist/tokens/tokens.json +212 -0
  87. package/dist/tokens.d.ts +1 -0
  88. package/dist/tokens.js +11 -0
  89. package/dist/ui-entry.d.ts +5 -0
  90. package/dist/ui-entry.js +42 -0
  91. package/dist/views/content-list-preview.d.ts +1 -0
  92. package/dist/views/content-list-preview.js +14 -0
  93. package/dist/views/content-list-settings-view.d.ts +1 -0
  94. package/dist/views/content-list-settings-view.js +97 -0
  95. package/dist/views/content-list-view.d.ts +19 -0
  96. package/dist/views/content-list-view.js +248 -0
  97. package/dist/views/crop-view.d.ts +55 -0
  98. package/dist/views/crop-view.js +161 -0
  99. package/dist/views/date-range-view.d.ts +6 -0
  100. package/dist/views/date-range-view.js +55 -0
  101. package/dist/views/file-upload-view.d.ts +43 -0
  102. package/dist/views/file-upload-view.js +104 -0
  103. package/dist/views/html-code-editor.d.ts +10 -0
  104. package/dist/views/html-code-editor.js +101 -0
  105. package/dist/views/html-view.d.ts +3 -0
  106. package/dist/views/html-view.js +53 -0
  107. package/dist/views/image-view.d.ts +3 -0
  108. package/dist/views/image-view.js +372 -0
  109. package/dist/views/rich-text-view.d.ts +2 -0
  110. package/dist/views/rich-text-view.js +429 -0
  111. package/node_modules/@kardalum/api-schemas/LICENSE +202 -0
  112. package/node_modules/@kardalum/api-schemas/README.md +56 -0
  113. package/node_modules/@kardalum/api-schemas/dist/action.schema.d.ts +30 -0
  114. package/node_modules/@kardalum/api-schemas/dist/action.schema.js +88 -0
  115. package/node_modules/@kardalum/api-schemas/dist/api-error.schema.d.ts +17 -0
  116. package/node_modules/@kardalum/api-schemas/dist/api-error.schema.js +25 -0
  117. package/node_modules/@kardalum/api-schemas/dist/api-key-api.schema.d.ts +93 -0
  118. package/node_modules/@kardalum/api-schemas/dist/api-key-api.schema.js +88 -0
  119. package/node_modules/@kardalum/api-schemas/dist/asset-api.schema.d.ts +89 -0
  120. package/node_modules/@kardalum/api-schemas/dist/asset-api.schema.js +60 -0
  121. package/node_modules/@kardalum/api-schemas/dist/asset.schema.d.ts +24 -0
  122. package/node_modules/@kardalum/api-schemas/dist/asset.schema.js +47 -0
  123. package/node_modules/@kardalum/api-schemas/dist/auth.schema.d.ts +38 -0
  124. package/node_modules/@kardalum/api-schemas/dist/auth.schema.js +38 -0
  125. package/node_modules/@kardalum/api-schemas/dist/content-api.schema.d.ts +542 -0
  126. package/node_modules/@kardalum/api-schemas/dist/content-api.schema.js +357 -0
  127. package/node_modules/@kardalum/api-schemas/dist/content-list.schema.d.ts +158 -0
  128. package/node_modules/@kardalum/api-schemas/dist/content-list.schema.js +139 -0
  129. package/node_modules/@kardalum/api-schemas/dist/content-path.d.ts +125 -0
  130. package/node_modules/@kardalum/api-schemas/dist/content-path.js +260 -0
  131. package/node_modules/@kardalum/api-schemas/dist/content-trash-api.schema.d.ts +20 -0
  132. package/node_modules/@kardalum/api-schemas/dist/content-trash-api.schema.js +23 -0
  133. package/node_modules/@kardalum/api-schemas/dist/content-trash.schema.d.ts +152 -0
  134. package/node_modules/@kardalum/api-schemas/dist/content-trash.schema.js +82 -0
  135. package/node_modules/@kardalum/api-schemas/dist/content-version.schema.d.ts +18 -0
  136. package/node_modules/@kardalum/api-schemas/dist/content-version.schema.js +22 -0
  137. package/node_modules/@kardalum/api-schemas/dist/content.schema.d.ts +17 -0
  138. package/node_modules/@kardalum/api-schemas/dist/content.schema.js +20 -0
  139. package/node_modules/@kardalum/api-schemas/dist/core-actions.d.ts +352 -0
  140. package/node_modules/@kardalum/api-schemas/dist/core-actions.js +133 -0
  141. package/node_modules/@kardalum/api-schemas/dist/culture-direction.d.ts +1 -0
  142. package/node_modules/@kardalum/api-schemas/dist/culture-direction.js +9 -0
  143. package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.d.ts +37 -0
  144. package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.js +32 -0
  145. package/node_modules/@kardalum/api-schemas/dist/data-type-config.schema.d.ts +9 -0
  146. package/node_modules/@kardalum/api-schemas/dist/data-type-config.schema.js +32 -0
  147. package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.d.ts +298 -0
  148. package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.js +138 -0
  149. package/node_modules/@kardalum/api-schemas/dist/document-type.schema.d.ts +121 -0
  150. package/node_modules/@kardalum/api-schemas/dist/document-type.schema.js +147 -0
  151. package/node_modules/@kardalum/api-schemas/dist/health.schema.d.ts +6 -0
  152. package/node_modules/@kardalum/api-schemas/dist/health.schema.js +5 -0
  153. package/node_modules/@kardalum/api-schemas/dist/html-entities.d.ts +4 -0
  154. package/node_modules/@kardalum/api-schemas/dist/html-entities.js +250 -0
  155. package/node_modules/@kardalum/api-schemas/dist/index.d.ts +113 -0
  156. package/node_modules/@kardalum/api-schemas/dist/index.js +64 -0
  157. package/node_modules/@kardalum/api-schemas/dist/licensing.schema.d.ts +15 -0
  158. package/node_modules/@kardalum/api-schemas/dist/licensing.schema.js +14 -0
  159. package/node_modules/@kardalum/api-schemas/dist/management-multipart.schema.d.ts +73 -0
  160. package/node_modules/@kardalum/api-schemas/dist/management-multipart.schema.js +104 -0
  161. package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.d.ts +682 -0
  162. package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.js +269 -0
  163. package/node_modules/@kardalum/api-schemas/dist/media-api.schema.d.ts +177 -0
  164. package/node_modules/@kardalum/api-schemas/dist/media-api.schema.js +222 -0
  165. package/node_modules/@kardalum/api-schemas/dist/media-reference-api.schema.d.ts +77 -0
  166. package/node_modules/@kardalum/api-schemas/dist/media-reference-api.schema.js +53 -0
  167. package/node_modules/@kardalum/api-schemas/dist/media-reference-use.d.ts +75 -0
  168. package/node_modules/@kardalum/api-schemas/dist/media-reference-use.js +117 -0
  169. package/node_modules/@kardalum/api-schemas/dist/media-reference.d.ts +27 -0
  170. package/node_modules/@kardalum/api-schemas/dist/media-reference.js +279 -0
  171. package/node_modules/@kardalum/api-schemas/dist/media-rendition.schema.d.ts +74 -0
  172. package/node_modules/@kardalum/api-schemas/dist/media-rendition.schema.js +157 -0
  173. package/node_modules/@kardalum/api-schemas/dist/media.schema.d.ts +80 -0
  174. package/node_modules/@kardalum/api-schemas/dist/media.schema.js +156 -0
  175. package/node_modules/@kardalum/api-schemas/dist/nav.schema.d.ts +23 -0
  176. package/node_modules/@kardalum/api-schemas/dist/nav.schema.js +55 -0
  177. package/node_modules/@kardalum/api-schemas/dist/node-access.schema.d.ts +846 -0
  178. package/node_modules/@kardalum/api-schemas/dist/node-access.schema.js +356 -0
  179. package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.d.ts +20 -0
  180. package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.js +27 -0
  181. package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.d.ts +249 -0
  182. package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.js +84 -0
  183. package/node_modules/@kardalum/api-schemas/dist/plugin-docs-text.d.ts +65 -0
  184. package/node_modules/@kardalum/api-schemas/dist/plugin-docs-text.js +889 -0
  185. package/node_modules/@kardalum/api-schemas/dist/plugin-docs.d.ts +172 -0
  186. package/node_modules/@kardalum/api-schemas/dist/plugin-docs.js +196 -0
  187. package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.d.ts +31 -0
  188. package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.js +38 -0
  189. package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.d.ts +69 -0
  190. package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.js +59 -0
  191. package/node_modules/@kardalum/api-schemas/dist/plugin-install.d.ts +585 -0
  192. package/node_modules/@kardalum/api-schemas/dist/plugin-install.js +536 -0
  193. package/node_modules/@kardalum/api-schemas/dist/plugin-locales.d.ts +75 -0
  194. package/node_modules/@kardalum/api-schemas/dist/plugin-locales.js +213 -0
  195. package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.d.ts +391 -0
  196. package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.js +413 -0
  197. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.d.ts +29 -0
  198. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.js +100 -0
  199. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.d.ts +44 -0
  200. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.js +162 -0
  201. package/node_modules/@kardalum/api-schemas/dist/plugin-registry-api.schema.d.ts +31 -0
  202. package/node_modules/@kardalum/api-schemas/dist/plugin-registry-api.schema.js +25 -0
  203. package/node_modules/@kardalum/api-schemas/dist/plugin-storage-api.schema.d.ts +15 -0
  204. package/node_modules/@kardalum/api-schemas/dist/plugin-storage-api.schema.js +24 -0
  205. package/node_modules/@kardalum/api-schemas/dist/public-api.schema.d.ts +314 -0
  206. package/node_modules/@kardalum/api-schemas/dist/public-api.schema.js +338 -0
  207. package/node_modules/@kardalum/api-schemas/dist/render-editing.d.ts +79 -0
  208. package/node_modules/@kardalum/api-schemas/dist/render-editing.js +50 -0
  209. package/node_modules/@kardalum/api-schemas/dist/render-settings-api.schema.d.ts +9 -0
  210. package/node_modules/@kardalum/api-schemas/dist/render-settings-api.schema.js +13 -0
  211. package/node_modules/@kardalum/api-schemas/dist/reserved-slugs.d.ts +2 -0
  212. package/node_modules/@kardalum/api-schemas/dist/reserved-slugs.js +16 -0
  213. package/node_modules/@kardalum/api-schemas/dist/role.schema.d.ts +96 -0
  214. package/node_modules/@kardalum/api-schemas/dist/role.schema.js +75 -0
  215. package/node_modules/@kardalum/api-schemas/dist/sample-content-outcome.schema.d.ts +17 -0
  216. package/node_modules/@kardalum/api-schemas/dist/sample-content-outcome.schema.js +27 -0
  217. package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.d.ts +35 -0
  218. package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.js +79 -0
  219. package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.d.ts +138 -0
  220. package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.js +105 -0
  221. package/node_modules/@kardalum/api-schemas/dist/sites.schema.d.ts +243 -0
  222. package/node_modules/@kardalum/api-schemas/dist/sites.schema.js +296 -0
  223. package/node_modules/@kardalum/api-schemas/dist/snapshot-api.schema.d.ts +47 -0
  224. package/node_modules/@kardalum/api-schemas/dist/snapshot-api.schema.js +27 -0
  225. package/node_modules/@kardalum/api-schemas/dist/snapshot.schema.d.ts +30 -0
  226. package/node_modules/@kardalum/api-schemas/dist/snapshot.schema.js +19 -0
  227. package/node_modules/@kardalum/api-schemas/dist/template-api.schema.d.ts +112 -0
  228. package/node_modules/@kardalum/api-schemas/dist/template-api.schema.js +74 -0
  229. package/node_modules/@kardalum/api-schemas/dist/template.schema.d.ts +41 -0
  230. package/node_modules/@kardalum/api-schemas/dist/template.schema.js +39 -0
  231. package/node_modules/@kardalum/api-schemas/dist/theme-api.schema.d.ts +21 -0
  232. package/node_modules/@kardalum/api-schemas/dist/theme-api.schema.js +14 -0
  233. package/node_modules/@kardalum/api-schemas/dist/user-api.schema.d.ts +97 -0
  234. package/node_modules/@kardalum/api-schemas/dist/user-api.schema.js +73 -0
  235. package/node_modules/@kardalum/api-schemas/package.json +35 -0
  236. package/node_modules/@kardalum/design-tokens/LICENSE +202 -0
  237. package/node_modules/@kardalum/design-tokens/README.md +29 -0
  238. package/node_modules/@kardalum/design-tokens/dist/build-css.d.ts +32 -0
  239. package/node_modules/@kardalum/design-tokens/dist/build-css.js +88 -0
  240. package/node_modules/@kardalum/design-tokens/dist/generate.d.ts +1 -0
  241. package/node_modules/@kardalum/design-tokens/dist/generate.js +18 -0
  242. package/node_modules/@kardalum/design-tokens/dist/index.d.ts +6 -0
  243. package/node_modules/@kardalum/design-tokens/dist/index.js +4 -0
  244. package/node_modules/@kardalum/design-tokens/dist/system-dark.css +75 -0
  245. package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.d.ts +33 -0
  246. package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.js +54 -0
  247. package/node_modules/@kardalum/design-tokens/dist/theme-css.d.ts +12 -0
  248. package/node_modules/@kardalum/design-tokens/dist/theme-css.js +42 -0
  249. package/node_modules/@kardalum/design-tokens/dist/theme-types.d.ts +43 -0
  250. package/node_modules/@kardalum/design-tokens/dist/theme-types.js +1 -0
  251. package/node_modules/@kardalum/design-tokens/dist/themes/dark.d.ts +13 -0
  252. package/node_modules/@kardalum/design-tokens/dist/themes/dark.js +120 -0
  253. package/node_modules/@kardalum/design-tokens/dist/themes/index.d.ts +5 -0
  254. package/node_modules/@kardalum/design-tokens/dist/themes/index.js +4 -0
  255. package/node_modules/@kardalum/design-tokens/dist/themes/light.d.ts +9 -0
  256. package/node_modules/@kardalum/design-tokens/dist/themes/light.js +13 -0
  257. package/node_modules/@kardalum/design-tokens/dist/tokens.css +239 -0
  258. package/node_modules/@kardalum/design-tokens/dist/tokens.d.ts +25 -0
  259. package/node_modules/@kardalum/design-tokens/dist/tokens.js +276 -0
  260. package/node_modules/@kardalum/design-tokens/dist/tokens.json +212 -0
  261. package/node_modules/@kardalum/design-tokens/dist/types.d.ts +91 -0
  262. package/node_modules/@kardalum/design-tokens/dist/types.js +5 -0
  263. package/node_modules/@kardalum/design-tokens/package.json +42 -0
  264. package/node_modules/@kardalum/plugin-package/LICENSE +202 -0
  265. package/node_modules/@kardalum/plugin-package/README.md +71 -0
  266. package/node_modules/@kardalum/plugin-package/dist/build-reference.d.ts +111 -0
  267. package/node_modules/@kardalum/plugin-package/dist/build-reference.js +61 -0
  268. package/node_modules/@kardalum/plugin-package/dist/capabilities.d.ts +103 -0
  269. package/node_modules/@kardalum/plugin-package/dist/capabilities.js +351 -0
  270. package/node_modules/@kardalum/plugin-package/dist/docs-contract.d.ts +50 -0
  271. package/node_modules/@kardalum/plugin-package/dist/docs-contract.js +659 -0
  272. package/node_modules/@kardalum/plugin-package/dist/envelope.d.ts +19 -0
  273. package/node_modules/@kardalum/plugin-package/dist/envelope.js +104 -0
  274. package/node_modules/@kardalum/plugin-package/dist/extract.d.ts +37 -0
  275. package/node_modules/@kardalum/plugin-package/dist/extract.js +199 -0
  276. package/node_modules/@kardalum/plugin-package/dist/hash.d.ts +17 -0
  277. package/node_modules/@kardalum/plugin-package/dist/hash.js +69 -0
  278. package/node_modules/@kardalum/plugin-package/dist/index.d.ts +13 -0
  279. package/node_modules/@kardalum/plugin-package/dist/index.js +8 -0
  280. package/node_modules/@kardalum/plugin-package/dist/license-verdict.d.ts +185 -0
  281. package/node_modules/@kardalum/plugin-package/dist/license-verdict.js +236 -0
  282. package/node_modules/@kardalum/plugin-package/dist/package-contract.d.ts +50 -0
  283. package/node_modules/@kardalum/plugin-package/dist/package-contract.js +115 -0
  284. package/node_modules/@kardalum/plugin-package/dist/reference-entry.d.ts +2 -0
  285. package/node_modules/@kardalum/plugin-package/dist/reference-entry.js +6 -0
  286. package/node_modules/@kardalum/plugin-package/dist/sample-content.d.ts +20 -0
  287. package/node_modules/@kardalum/plugin-package/dist/sample-content.js +57 -0
  288. package/node_modules/@kardalum/plugin-package/dist/types.d.ts +43 -0
  289. package/node_modules/@kardalum/plugin-package/dist/types.js +15 -0
  290. package/node_modules/@kardalum/plugin-package/package.json +54 -0
  291. package/node_modules/@kardalum/ui/LICENSE +202 -0
  292. package/node_modules/@kardalum/ui/README.md +35 -0
  293. package/node_modules/@kardalum/ui/dist/components/alert-dialog.d.ts +14 -0
  294. package/node_modules/@kardalum/ui/dist/components/alert-dialog.js +38 -0
  295. package/node_modules/@kardalum/ui/dist/components/badge.d.ts +9 -0
  296. package/node_modules/@kardalum/ui/dist/components/badge.js +30 -0
  297. package/node_modules/@kardalum/ui/dist/components/button.d.ts +11 -0
  298. package/node_modules/@kardalum/ui/dist/components/button.js +37 -0
  299. package/node_modules/@kardalum/ui/dist/components/checkbox.d.ts +5 -0
  300. package/node_modules/@kardalum/ui/dist/components/checkbox.js +7 -0
  301. package/node_modules/@kardalum/ui/dist/components/dialog.d.ts +17 -0
  302. package/node_modules/@kardalum/ui/dist/components/dialog.js +48 -0
  303. package/node_modules/@kardalum/ui/dist/components/dropdown-menu.d.ts +18 -0
  304. package/node_modules/@kardalum/ui/dist/components/dropdown-menu.js +53 -0
  305. package/node_modules/@kardalum/ui/dist/components/empty-state.d.ts +30 -0
  306. package/node_modules/@kardalum/ui/dist/components/empty-state.js +9 -0
  307. package/node_modules/@kardalum/ui/dist/components/input.d.ts +4 -0
  308. package/node_modules/@kardalum/ui/dist/components/input.js +6 -0
  309. package/node_modules/@kardalum/ui/dist/components/panel.d.ts +5 -0
  310. package/node_modules/@kardalum/ui/dist/components/panel.js +6 -0
  311. package/node_modules/@kardalum/ui/dist/components/property-field.d.ts +19 -0
  312. package/node_modules/@kardalum/ui/dist/components/property-field.js +89 -0
  313. package/node_modules/@kardalum/ui/dist/components/sheet.d.ts +17 -0
  314. package/node_modules/@kardalum/ui/dist/components/sheet.js +55 -0
  315. package/node_modules/@kardalum/ui/dist/components/skeleton.d.ts +3 -0
  316. package/node_modules/@kardalum/ui/dist/components/skeleton.js +9 -0
  317. package/node_modules/@kardalum/ui/dist/components/switch.d.ts +5 -0
  318. package/node_modules/@kardalum/ui/dist/components/switch.js +7 -0
  319. package/node_modules/@kardalum/ui/dist/components/tab-strip.d.ts +34 -0
  320. package/node_modules/@kardalum/ui/dist/components/tab-strip.js +72 -0
  321. package/node_modules/@kardalum/ui/dist/components/toast.d.ts +18 -0
  322. package/node_modules/@kardalum/ui/dist/components/toast.js +42 -0
  323. package/node_modules/@kardalum/ui/dist/components/toaster.d.ts +12 -0
  324. package/node_modules/@kardalum/ui/dist/components/toaster.js +11 -0
  325. package/node_modules/@kardalum/ui/dist/components/use-toast.d.ts +17 -0
  326. package/node_modules/@kardalum/ui/dist/components/use-toast.js +62 -0
  327. package/node_modules/@kardalum/ui/dist/index.d.ts +18 -0
  328. package/node_modules/@kardalum/ui/dist/index.js +18 -0
  329. package/node_modules/@kardalum/ui/dist/lib/cn.d.ts +2 -0
  330. package/node_modules/@kardalum/ui/dist/lib/cn.js +5 -0
  331. package/node_modules/@kardalum/ui/package.json +63 -0
  332. package/package.json +146 -4
@@ -0,0 +1,585 @@
1
+ import { z } from "zod";
2
+ /** The most steps one declaration may have. */
3
+ export declare const INSTALL_MAX_STEPS = 16;
4
+ /** The most options one step may ask. */
5
+ export declare const INSTALL_MAX_OPTIONS_PER_STEP = 32;
6
+ /** The most choices one select or multi-select option may offer. */
7
+ export declare const INSTALL_MAX_CHOICES_PER_OPTION = 64;
8
+ /** The longest a label's text may be, per language. */
9
+ export declare const INSTALL_LABEL_MAX_LENGTH = 120;
10
+ /** The longest a description's text may be, per language. */
11
+ export declare const INSTALL_DESCRIPTION_MAX_LENGTH = 500;
12
+ /** The most languages one label or description may carry. */
13
+ export declare const INSTALL_LABEL_MAX_LANGUAGES = 32;
14
+ /** The longest language code a label's key may be: DocsLanguageSchema's
15
+ * bound, checked before the culture pattern ever sees the key. */
16
+ export declare const INSTALL_LABEL_KEY_MAX_LENGTH = 35;
17
+ /** The most option answers one answers object may carry: every option of a full declaration. */
18
+ export declare const INSTALL_MAX_OPTION_ANSWERS: number;
19
+ /** The most offered roles one answers object may name. */
20
+ export declare const INSTALL_MAX_ROLE_ANSWERS = 64;
21
+ export declare const INSTALL_OPTION_KINDS: readonly ["boolean", "select", "multiSelect"];
22
+ export type InstallOptionKind = (typeof INSTALL_OPTION_KINDS)[number];
23
+ export declare const InstallLabelSchema: z.ZodPreprocess<z.ZodObject<{
24
+ en: z.ZodString;
25
+ }, z.core.$catchall<z.ZodString>>>;
26
+ export type InstallLabel = z.infer<typeof InstallLabelSchema>;
27
+ export declare const InstallDescriptionSchema: z.ZodPreprocess<z.ZodObject<{
28
+ en: z.ZodString;
29
+ }, z.core.$catchall<z.ZodString>>>;
30
+ export type InstallDescription = z.infer<typeof InstallDescriptionSchema>;
31
+ /** A step's, an option's or a choice's id: the slot id rule, so an id needs
32
+ * no encoding anywhere it travels and can never be "." or "..". */
33
+ export declare const InstallIdSchema: z.ZodString;
34
+ declare const InstallChoiceSchema: z.ZodObject<{
35
+ id: z.ZodString;
36
+ label: z.ZodPreprocess<z.ZodObject<{
37
+ en: z.ZodString;
38
+ }, z.core.$catchall<z.ZodString>>>;
39
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
40
+ en: z.ZodString;
41
+ }, z.core.$catchall<z.ZodString>>>>;
42
+ }, z.core.$strict>;
43
+ export type InstallChoice = z.infer<typeof InstallChoiceSchema>;
44
+ /** One question. A select with no default must be answered unless it says
45
+ * `required: false`; a select with a default is never required. */
46
+ export declare const InstallOptionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
47
+ kind: z.ZodLiteral<"boolean">;
48
+ default: z.ZodBoolean;
49
+ id: z.ZodString;
50
+ label: z.ZodPreprocess<z.ZodObject<{
51
+ en: z.ZodString;
52
+ }, z.core.$catchall<z.ZodString>>>;
53
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
54
+ en: z.ZodString;
55
+ }, z.core.$catchall<z.ZodString>>>>;
56
+ }, z.core.$strict>, z.ZodObject<{
57
+ kind: z.ZodLiteral<"select">;
58
+ choices: z.ZodArray<z.ZodObject<{
59
+ id: z.ZodString;
60
+ label: z.ZodPreprocess<z.ZodObject<{
61
+ en: z.ZodString;
62
+ }, z.core.$catchall<z.ZodString>>>;
63
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
64
+ en: z.ZodString;
65
+ }, z.core.$catchall<z.ZodString>>>>;
66
+ }, z.core.$strict>>;
67
+ default: z.ZodOptional<z.ZodString>;
68
+ required: z.ZodOptional<z.ZodBoolean>;
69
+ id: z.ZodString;
70
+ label: z.ZodPreprocess<z.ZodObject<{
71
+ en: z.ZodString;
72
+ }, z.core.$catchall<z.ZodString>>>;
73
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
74
+ en: z.ZodString;
75
+ }, z.core.$catchall<z.ZodString>>>>;
76
+ }, z.core.$strict>, z.ZodObject<{
77
+ kind: z.ZodLiteral<"multiSelect">;
78
+ choices: z.ZodArray<z.ZodObject<{
79
+ id: z.ZodString;
80
+ label: z.ZodPreprocess<z.ZodObject<{
81
+ en: z.ZodString;
82
+ }, z.core.$catchall<z.ZodString>>>;
83
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
84
+ en: z.ZodString;
85
+ }, z.core.$catchall<z.ZodString>>>>;
86
+ }, z.core.$strict>>;
87
+ default: z.ZodArray<z.ZodString>;
88
+ id: z.ZodString;
89
+ label: z.ZodPreprocess<z.ZodObject<{
90
+ en: z.ZodString;
91
+ }, z.core.$catchall<z.ZodString>>>;
92
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
93
+ en: z.ZodString;
94
+ }, z.core.$catchall<z.ZodString>>>>;
95
+ }, z.core.$strict>], "kind">;
96
+ export type InstallOption = z.infer<typeof InstallOptionSchema>;
97
+ export declare const InstallStepSchema: z.ZodObject<{
98
+ id: z.ZodString;
99
+ label: z.ZodPreprocess<z.ZodObject<{
100
+ en: z.ZodString;
101
+ }, z.core.$catchall<z.ZodString>>>;
102
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
103
+ en: z.ZodString;
104
+ }, z.core.$catchall<z.ZodString>>>>;
105
+ options: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
106
+ kind: z.ZodLiteral<"boolean">;
107
+ default: z.ZodBoolean;
108
+ id: z.ZodString;
109
+ label: z.ZodPreprocess<z.ZodObject<{
110
+ en: z.ZodString;
111
+ }, z.core.$catchall<z.ZodString>>>;
112
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
113
+ en: z.ZodString;
114
+ }, z.core.$catchall<z.ZodString>>>>;
115
+ }, z.core.$strict>, z.ZodObject<{
116
+ kind: z.ZodLiteral<"select">;
117
+ choices: z.ZodArray<z.ZodObject<{
118
+ id: z.ZodString;
119
+ label: z.ZodPreprocess<z.ZodObject<{
120
+ en: z.ZodString;
121
+ }, z.core.$catchall<z.ZodString>>>;
122
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
123
+ en: z.ZodString;
124
+ }, z.core.$catchall<z.ZodString>>>>;
125
+ }, z.core.$strict>>;
126
+ default: z.ZodOptional<z.ZodString>;
127
+ required: z.ZodOptional<z.ZodBoolean>;
128
+ id: z.ZodString;
129
+ label: z.ZodPreprocess<z.ZodObject<{
130
+ en: z.ZodString;
131
+ }, z.core.$catchall<z.ZodString>>>;
132
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
133
+ en: z.ZodString;
134
+ }, z.core.$catchall<z.ZodString>>>>;
135
+ }, z.core.$strict>, z.ZodObject<{
136
+ kind: z.ZodLiteral<"multiSelect">;
137
+ choices: z.ZodArray<z.ZodObject<{
138
+ id: z.ZodString;
139
+ label: z.ZodPreprocess<z.ZodObject<{
140
+ en: z.ZodString;
141
+ }, z.core.$catchall<z.ZodString>>>;
142
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
143
+ en: z.ZodString;
144
+ }, z.core.$catchall<z.ZodString>>>>;
145
+ }, z.core.$strict>>;
146
+ default: z.ZodArray<z.ZodString>;
147
+ id: z.ZodString;
148
+ label: z.ZodPreprocess<z.ZodObject<{
149
+ en: z.ZodString;
150
+ }, z.core.$catchall<z.ZodString>>>;
151
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
152
+ en: z.ZodString;
153
+ }, z.core.$catchall<z.ZodString>>>>;
154
+ }, z.core.$strict>], "kind">>;
155
+ }, z.core.$strict>;
156
+ export type InstallStep = z.infer<typeof InstallStepSchema>;
157
+ /** The manifest's `install`: the steps the install asks, in order. */
158
+ export declare const PluginInstallDeclarationSchema: z.ZodObject<{
159
+ steps: z.ZodArray<z.ZodObject<{
160
+ id: z.ZodString;
161
+ label: z.ZodPreprocess<z.ZodObject<{
162
+ en: z.ZodString;
163
+ }, z.core.$catchall<z.ZodString>>>;
164
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
165
+ en: z.ZodString;
166
+ }, z.core.$catchall<z.ZodString>>>>;
167
+ options: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
168
+ kind: z.ZodLiteral<"boolean">;
169
+ default: z.ZodBoolean;
170
+ id: z.ZodString;
171
+ label: z.ZodPreprocess<z.ZodObject<{
172
+ en: z.ZodString;
173
+ }, z.core.$catchall<z.ZodString>>>;
174
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
175
+ en: z.ZodString;
176
+ }, z.core.$catchall<z.ZodString>>>>;
177
+ }, z.core.$strict>, z.ZodObject<{
178
+ kind: z.ZodLiteral<"select">;
179
+ choices: z.ZodArray<z.ZodObject<{
180
+ id: z.ZodString;
181
+ label: z.ZodPreprocess<z.ZodObject<{
182
+ en: z.ZodString;
183
+ }, z.core.$catchall<z.ZodString>>>;
184
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
185
+ en: z.ZodString;
186
+ }, z.core.$catchall<z.ZodString>>>>;
187
+ }, z.core.$strict>>;
188
+ default: z.ZodOptional<z.ZodString>;
189
+ required: z.ZodOptional<z.ZodBoolean>;
190
+ id: z.ZodString;
191
+ label: z.ZodPreprocess<z.ZodObject<{
192
+ en: z.ZodString;
193
+ }, z.core.$catchall<z.ZodString>>>;
194
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
195
+ en: z.ZodString;
196
+ }, z.core.$catchall<z.ZodString>>>>;
197
+ }, z.core.$strict>, z.ZodObject<{
198
+ kind: z.ZodLiteral<"multiSelect">;
199
+ choices: z.ZodArray<z.ZodObject<{
200
+ id: z.ZodString;
201
+ label: z.ZodPreprocess<z.ZodObject<{
202
+ en: z.ZodString;
203
+ }, z.core.$catchall<z.ZodString>>>;
204
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
205
+ en: z.ZodString;
206
+ }, z.core.$catchall<z.ZodString>>>>;
207
+ }, z.core.$strict>>;
208
+ default: z.ZodArray<z.ZodString>;
209
+ id: z.ZodString;
210
+ label: z.ZodPreprocess<z.ZodObject<{
211
+ en: z.ZodString;
212
+ }, z.core.$catchall<z.ZodString>>>;
213
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
214
+ en: z.ZodString;
215
+ }, z.core.$catchall<z.ZodString>>>>;
216
+ }, z.core.$strict>], "kind">>;
217
+ }, z.core.$strict>>;
218
+ }, z.core.$strict>;
219
+ export type PluginInstallDeclaration = z.infer<typeof PluginInstallDeclarationSchema>;
220
+ export interface InstallDeclarationIssue {
221
+ path: (string | number)[];
222
+ message: string;
223
+ }
224
+ /** Whether an option must be answered: a select with no default, unless it
225
+ * says `required: false`. buildReference (@kardalum/plugin-package) writes
226
+ * the same rule inline, and its test pins the two together. */
227
+ export declare function installOptionNeedsAnswer(option: InstallOption): boolean;
228
+ /** The rules over a parsed declaration that its shape cannot express: the
229
+ * caps, distinct ids (option ids across every step, because each keys its
230
+ * answer), defaults among the choices. Paths are rooted at `install`. */
231
+ export declare function checkInstallDeclaration(install: PluginInstallDeclaration): InstallDeclarationIssue[];
232
+ /** One option's answer: true or false, a choice id, or a list of choice ids. */
233
+ export declare const InstallAnswerValueSchema: z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodArray<z.ZodString>]>;
234
+ export type InstallAnswerValue = z.infer<typeof InstallAnswerValueSchema>;
235
+ /** The answers object every install path takes. Strict, so a misspelt key is
236
+ * refused rather than ignored; read by resolveInstallAnswers. */
237
+ export declare const InstallAnswersSchema: z.ZodObject<{
238
+ sampleContent: z.ZodOptional<z.ZodBoolean>;
239
+ roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
240
+ options: z.ZodOptional<z.ZodPreprocess<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodArray<z.ZodString>]>>>>;
241
+ }, z.core.$strict>;
242
+ export type InstallAnswers = z.infer<typeof InstallAnswersSchema>;
243
+ /** The answers with every default filled: what onInstall and onUpdate are
244
+ * told, and what S293 records on the registry row. */
245
+ export declare const ResolvedInstallAnswersSchema: z.ZodObject<{
246
+ sampleContent: z.ZodBoolean;
247
+ roles: z.ZodArray<z.ZodString>;
248
+ options: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodArray<z.ZodString>]>>;
249
+ }, z.core.$strict>;
250
+ export type ResolvedInstallAnswers = z.infer<typeof ResolvedInstallAnswersSchema>;
251
+ /** What a package carries that the built-in questions are derived from.
252
+ * readShippedInstallFacts (@kardalum/plugin-package) reads it from a package
253
+ * directory. */
254
+ export interface ShippedInstallFacts {
255
+ /** A sample-content.json the seeder can read ships at the package root. */
256
+ sampleContent: boolean;
257
+ /** That file's own words for the sample, when it gives any. */
258
+ sampleContentDescription?: InstallDescription;
259
+ }
260
+ /** What resolveInstallAnswers reads from a manifest, the live one or
261
+ * manifest.json. */
262
+ export interface InstallAnswersManifest {
263
+ install?: PluginInstallDeclaration;
264
+ roles?: ReadonlyArray<{
265
+ id: string;
266
+ }>;
267
+ }
268
+ export interface InstallAnswerIssue {
269
+ path: (string | number)[];
270
+ message: string;
271
+ }
272
+ export type InstallAnswersResult = {
273
+ ok: true;
274
+ answers: ResolvedInstallAnswers;
275
+ } | {
276
+ ok: false;
277
+ issues: InstallAnswerIssue[];
278
+ };
279
+ /** The answers with every default filled, or every reason they cannot be:
280
+ * the sample content first, then the roles in answer order, then option
281
+ * keys the declaration lacks in answer order, then the declared options in
282
+ * declaration order. `answers` has passed InstallAnswersSchema (a door's
283
+ * body schema); its options are read as own properties only. The
284
+ * manifest's declaration has passed checkInstallDeclaration (the SDK's
285
+ * manifest schema runs it, and so does parseInstallAnswersManifest): an
286
+ * option id declared twice would otherwise resolve against its last
287
+ * declaration alone. */
288
+ export declare function resolveInstallAnswers(manifest: InstallAnswersManifest, shipped: ShippedInstallFacts, answers: InstallAnswers): InstallAnswersResult;
289
+ /** What a door reads from manifest.json (or the live manifest) to resolve
290
+ * answers. Not strict: a manifest's other keys are allowed and left out of
291
+ * the result. */
292
+ export declare const InstallAnswersManifestSchema: z.ZodObject<{
293
+ install: z.ZodOptional<z.ZodObject<{
294
+ steps: z.ZodArray<z.ZodObject<{
295
+ id: z.ZodString;
296
+ label: z.ZodPreprocess<z.ZodObject<{
297
+ en: z.ZodString;
298
+ }, z.core.$catchall<z.ZodString>>>;
299
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
300
+ en: z.ZodString;
301
+ }, z.core.$catchall<z.ZodString>>>>;
302
+ options: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
303
+ kind: z.ZodLiteral<"boolean">;
304
+ default: z.ZodBoolean;
305
+ id: z.ZodString;
306
+ label: z.ZodPreprocess<z.ZodObject<{
307
+ en: z.ZodString;
308
+ }, z.core.$catchall<z.ZodString>>>;
309
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
310
+ en: z.ZodString;
311
+ }, z.core.$catchall<z.ZodString>>>>;
312
+ }, z.core.$strict>, z.ZodObject<{
313
+ kind: z.ZodLiteral<"select">;
314
+ choices: z.ZodArray<z.ZodObject<{
315
+ id: z.ZodString;
316
+ label: z.ZodPreprocess<z.ZodObject<{
317
+ en: z.ZodString;
318
+ }, z.core.$catchall<z.ZodString>>>;
319
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
320
+ en: z.ZodString;
321
+ }, z.core.$catchall<z.ZodString>>>>;
322
+ }, z.core.$strict>>;
323
+ default: z.ZodOptional<z.ZodString>;
324
+ required: z.ZodOptional<z.ZodBoolean>;
325
+ id: z.ZodString;
326
+ label: z.ZodPreprocess<z.ZodObject<{
327
+ en: z.ZodString;
328
+ }, z.core.$catchall<z.ZodString>>>;
329
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
330
+ en: z.ZodString;
331
+ }, z.core.$catchall<z.ZodString>>>>;
332
+ }, z.core.$strict>, z.ZodObject<{
333
+ kind: z.ZodLiteral<"multiSelect">;
334
+ choices: z.ZodArray<z.ZodObject<{
335
+ id: z.ZodString;
336
+ label: z.ZodPreprocess<z.ZodObject<{
337
+ en: z.ZodString;
338
+ }, z.core.$catchall<z.ZodString>>>;
339
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
340
+ en: z.ZodString;
341
+ }, z.core.$catchall<z.ZodString>>>>;
342
+ }, z.core.$strict>>;
343
+ default: z.ZodArray<z.ZodString>;
344
+ id: z.ZodString;
345
+ label: z.ZodPreprocess<z.ZodObject<{
346
+ en: z.ZodString;
347
+ }, z.core.$catchall<z.ZodString>>>;
348
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
349
+ en: z.ZodString;
350
+ }, z.core.$catchall<z.ZodString>>>>;
351
+ }, z.core.$strict>], "kind">>;
352
+ }, z.core.$strict>>;
353
+ }, z.core.$strict>>;
354
+ roles: z.ZodOptional<z.ZodArray<z.ZodObject<{
355
+ id: z.ZodString;
356
+ label: z.ZodString;
357
+ actions: z.ZodArray<z.ZodString>;
358
+ }, z.core.$strip>>>;
359
+ }, z.core.$strip>;
360
+ export type ParsedInstallAnswersManifest = {
361
+ ok: true;
362
+ manifest: InstallAnswersManifest;
363
+ } | {
364
+ ok: false;
365
+ issues: InstallAnswerIssue[];
366
+ };
367
+ /** A manifest nothing has validated yet, read for its answers: the shape first,
368
+ * then checkInstallDeclaration on a declaration that parsed (S292 C7), because
369
+ * the resolvers trust the declaration they are given. */
370
+ export declare function parseInstallAnswersManifest(raw: unknown): ParsedInstallAnswersManifest;
371
+ /** A declaration's steps, each keeping only the options the recorded answers
372
+ * do not cover (no recorded answer, or one the option no longer accepts); a
373
+ * step left with none is dropped. No record covers nothing. */
374
+ export declare function stepsNotCoveredBy(steps: readonly InstallStep[], recorded: ResolvedInstallAnswers | null): InstallStep[];
375
+ /** An update's answers (2026-10-13-s293-the-wizard-installed-design.md 3.5):
376
+ * the record's sample choice, the recorded roles the new version still
377
+ * offers, each covered option's recorded answer (a copy), and every other
378
+ * declared option resolved from the request's answer or its default. Every
379
+ * refusal at once: the sample content, the roles, the request's option keys
380
+ * in answer order, then the declared options in declaration order. `given`
381
+ * and the declaration are held to what resolveInstallAnswers assumes;
382
+ * `recorded` is the row's record read through readInstallRecord, or null
383
+ * for a plugin installed before S293. */
384
+ export declare function resolveUpdateAnswers(manifest: InstallAnswersManifest, recorded: ResolvedInstallAnswers | null, given: InstallAnswers): InstallAnswersResult;
385
+ /** What installing does whatever the answers, in the order the install
386
+ * applies it, structured storage last (it is what an uninstall must
387
+ * snapshot). */
388
+ export declare const INSTALL_CONSENT_IDS: readonly ["migrations", "documentTypes", "actions", "templates", "assets", "structuredStorage"];
389
+ export type InstallConsentId = (typeof INSTALL_CONSENT_IDS)[number];
390
+ /** The install interface: what a screen shows and a script answers, before
391
+ * anything is installed. The marketplace stores it per version and its
392
+ * listing API carries it to the admin. A consent id is an open string on
393
+ * the wire, as a capability id is (MarketplaceCapabilitySchema): a newer
394
+ * marketplace's new item reaches an older admin as an id it has no words
395
+ * for, not as a listing that fails to parse. Option kinds stay closed: a CMS
396
+ * whose SDK does not know a kind refuses that plugin's manifest anyway. */
397
+ export declare const InstallInterfaceSchema: z.ZodObject<{
398
+ consent: z.ZodArray<z.ZodObject<{
399
+ id: z.ZodString;
400
+ details: z.ZodArray<z.ZodString>;
401
+ }, z.core.$strict>>;
402
+ sampleContent: z.ZodNullable<z.ZodObject<{
403
+ default: z.ZodLiteral<true>;
404
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
405
+ en: z.ZodString;
406
+ }, z.core.$catchall<z.ZodString>>>>;
407
+ }, z.core.$strict>>;
408
+ roles: z.ZodArray<z.ZodObject<{
409
+ id: z.ZodString;
410
+ label: z.ZodString;
411
+ actions: z.ZodArray<z.ZodString>;
412
+ default: z.ZodLiteral<false>;
413
+ }, z.core.$strict>>;
414
+ steps: z.ZodArray<z.ZodObject<{
415
+ id: z.ZodString;
416
+ label: z.ZodPreprocess<z.ZodObject<{
417
+ en: z.ZodString;
418
+ }, z.core.$catchall<z.ZodString>>>;
419
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
420
+ en: z.ZodString;
421
+ }, z.core.$catchall<z.ZodString>>>>;
422
+ options: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
423
+ kind: z.ZodLiteral<"boolean">;
424
+ default: z.ZodBoolean;
425
+ id: z.ZodString;
426
+ label: z.ZodPreprocess<z.ZodObject<{
427
+ en: z.ZodString;
428
+ }, z.core.$catchall<z.ZodString>>>;
429
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
430
+ en: z.ZodString;
431
+ }, z.core.$catchall<z.ZodString>>>>;
432
+ }, z.core.$strict>, z.ZodObject<{
433
+ kind: z.ZodLiteral<"select">;
434
+ choices: z.ZodArray<z.ZodObject<{
435
+ id: z.ZodString;
436
+ label: z.ZodPreprocess<z.ZodObject<{
437
+ en: z.ZodString;
438
+ }, z.core.$catchall<z.ZodString>>>;
439
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
440
+ en: z.ZodString;
441
+ }, z.core.$catchall<z.ZodString>>>>;
442
+ }, z.core.$strict>>;
443
+ default: z.ZodOptional<z.ZodString>;
444
+ required: z.ZodOptional<z.ZodBoolean>;
445
+ id: z.ZodString;
446
+ label: z.ZodPreprocess<z.ZodObject<{
447
+ en: z.ZodString;
448
+ }, z.core.$catchall<z.ZodString>>>;
449
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
450
+ en: z.ZodString;
451
+ }, z.core.$catchall<z.ZodString>>>>;
452
+ }, z.core.$strict>, z.ZodObject<{
453
+ kind: z.ZodLiteral<"multiSelect">;
454
+ choices: z.ZodArray<z.ZodObject<{
455
+ id: z.ZodString;
456
+ label: z.ZodPreprocess<z.ZodObject<{
457
+ en: z.ZodString;
458
+ }, z.core.$catchall<z.ZodString>>>;
459
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
460
+ en: z.ZodString;
461
+ }, z.core.$catchall<z.ZodString>>>>;
462
+ }, z.core.$strict>>;
463
+ default: z.ZodArray<z.ZodString>;
464
+ id: z.ZodString;
465
+ label: z.ZodPreprocess<z.ZodObject<{
466
+ en: z.ZodString;
467
+ }, z.core.$catchall<z.ZodString>>>;
468
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
469
+ en: z.ZodString;
470
+ }, z.core.$catchall<z.ZodString>>>>;
471
+ }, z.core.$strict>], "kind">>;
472
+ }, z.core.$strict>>;
473
+ }, z.core.$strict>;
474
+ export type InstallInterface = z.infer<typeof InstallInterfaceSchema>;
475
+ /** InstallInterfaceSchema as the listing wire carries it, from the
476
+ * marketplace's detail API through a CMS's proxy to its admin. The two are
477
+ * deployed and versioned apart, so a key a newer marketplace adds is
478
+ * dropped here rather than refused: refused, it would fail an older CMS's
479
+ * response validation and turn the whole listing into an error. Unknown
480
+ * keys are dropped on the interface, its consent items, its sample content
481
+ * and its roles; the steps stay on the closed InstallStepSchema (D15),
482
+ * because a step an older SDK cannot read belongs to a plugin that CMS
483
+ * refuses at install anyway. */
484
+ export declare const InstallInterfaceWireSchema: z.ZodObject<{
485
+ consent: z.ZodArray<z.ZodObject<{
486
+ id: z.ZodString;
487
+ details: z.ZodArray<z.ZodString>;
488
+ }, z.core.$strip>>;
489
+ sampleContent: z.ZodNullable<z.ZodObject<{
490
+ default: z.ZodLiteral<true>;
491
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
492
+ en: z.ZodString;
493
+ }, z.core.$catchall<z.ZodString>>>>;
494
+ }, z.core.$strip>>;
495
+ roles: z.ZodArray<z.ZodObject<{
496
+ id: z.ZodString;
497
+ label: z.ZodString;
498
+ actions: z.ZodArray<z.ZodString>;
499
+ default: z.ZodLiteral<false>;
500
+ }, z.core.$strip>>;
501
+ steps: z.ZodArray<z.ZodObject<{
502
+ id: z.ZodString;
503
+ label: z.ZodPreprocess<z.ZodObject<{
504
+ en: z.ZodString;
505
+ }, z.core.$catchall<z.ZodString>>>;
506
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
507
+ en: z.ZodString;
508
+ }, z.core.$catchall<z.ZodString>>>>;
509
+ options: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
510
+ kind: z.ZodLiteral<"boolean">;
511
+ default: z.ZodBoolean;
512
+ id: z.ZodString;
513
+ label: z.ZodPreprocess<z.ZodObject<{
514
+ en: z.ZodString;
515
+ }, z.core.$catchall<z.ZodString>>>;
516
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
517
+ en: z.ZodString;
518
+ }, z.core.$catchall<z.ZodString>>>>;
519
+ }, z.core.$strict>, z.ZodObject<{
520
+ kind: z.ZodLiteral<"select">;
521
+ choices: z.ZodArray<z.ZodObject<{
522
+ id: z.ZodString;
523
+ label: z.ZodPreprocess<z.ZodObject<{
524
+ en: z.ZodString;
525
+ }, z.core.$catchall<z.ZodString>>>;
526
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
527
+ en: z.ZodString;
528
+ }, z.core.$catchall<z.ZodString>>>>;
529
+ }, z.core.$strict>>;
530
+ default: z.ZodOptional<z.ZodString>;
531
+ required: z.ZodOptional<z.ZodBoolean>;
532
+ id: z.ZodString;
533
+ label: z.ZodPreprocess<z.ZodObject<{
534
+ en: z.ZodString;
535
+ }, z.core.$catchall<z.ZodString>>>;
536
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
537
+ en: z.ZodString;
538
+ }, z.core.$catchall<z.ZodString>>>>;
539
+ }, z.core.$strict>, z.ZodObject<{
540
+ kind: z.ZodLiteral<"multiSelect">;
541
+ choices: z.ZodArray<z.ZodObject<{
542
+ id: z.ZodString;
543
+ label: z.ZodPreprocess<z.ZodObject<{
544
+ en: z.ZodString;
545
+ }, z.core.$catchall<z.ZodString>>>;
546
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
547
+ en: z.ZodString;
548
+ }, z.core.$catchall<z.ZodString>>>>;
549
+ }, z.core.$strict>>;
550
+ default: z.ZodArray<z.ZodString>;
551
+ id: z.ZodString;
552
+ label: z.ZodPreprocess<z.ZodObject<{
553
+ en: z.ZodString;
554
+ }, z.core.$catchall<z.ZodString>>>;
555
+ description: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
556
+ en: z.ZodString;
557
+ }, z.core.$catchall<z.ZodString>>>>;
558
+ }, z.core.$strict>], "kind">>;
559
+ }, z.core.$strict>>;
560
+ }, z.core.$strip>;
561
+ export type InstallInterfaceWire = z.infer<typeof InstallInterfaceWireSchema>;
562
+ /** What installInterfaceFor reads: the live manifest or manifest.json's
563
+ * redacted form (where migrations are ids). The consent facts are read
564
+ * defensively, as deriveCapabilities reads them. */
565
+ export interface InstallInterfaceManifest {
566
+ install?: PluginInstallDeclaration;
567
+ roles?: ReadonlyArray<{
568
+ id: string;
569
+ label: string;
570
+ actions: ReadonlyArray<string>;
571
+ }>;
572
+ actions?: ReadonlyArray<{
573
+ id: string;
574
+ label: string;
575
+ }>;
576
+ migrations?: unknown;
577
+ databaseCompatibility?: unknown;
578
+ contributions?: unknown;
579
+ }
580
+ /** The interface a package's install asks, in the order a screen asks it:
581
+ * the consent list, the sample content when it ships, one unticked question
582
+ * per offered role, then the plugin's own steps (a copy). The built-ins are
583
+ * never declared; they follow from what ships. */
584
+ export declare function installInterfaceFor(manifest: InstallInterfaceManifest, shipped: ShippedInstallFacts): InstallInterface;
585
+ export {};