@kardalum/plugin-sdk 0.19.0 → 0.21.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 (552) hide show
  1. package/CHANGELOG.md +281 -0
  2. package/README.md +19 -0
  3. package/dist/admin-section-registry.d.ts +48 -1
  4. package/dist/admin-section-registry.js +90 -0
  5. package/dist/built-in-editor-ids.d.ts +1 -1
  6. package/dist/built-in-editor-ids.js +2 -20
  7. package/dist/built-in-settings-schemas.d.ts +10 -0
  8. package/dist/built-in-settings-schemas.js +86 -0
  9. package/dist/built-in-value-schemas.js +35 -0
  10. package/dist/built-ins.js +38 -7
  11. package/dist/capabilities.d.ts +11 -1
  12. package/dist/capabilities.js +101 -4
  13. package/dist/cli.d.ts +66 -0
  14. package/dist/cli.js +22 -0
  15. package/dist/consent-entry.d.ts +11 -0
  16. package/dist/consent-entry.js +18 -0
  17. package/dist/content-library.d.ts +102 -0
  18. package/dist/content-library.js +15 -0
  19. package/dist/content-list-extensions.d.ts +50 -0
  20. package/dist/content-list-extensions.js +11 -0
  21. package/dist/content-picker/page-picker-sheet.d.ts +15 -0
  22. package/dist/content-picker/page-picker-sheet.js +105 -0
  23. package/dist/content-picker/page-picker.d.ts +18 -0
  24. package/dist/content-picker/page-picker.js +20 -0
  25. package/dist/content-picker/page-tree.d.ts +25 -0
  26. package/dist/content-picker/page-tree.js +132 -0
  27. package/dist/data-type-plugin.d.ts +7 -1
  28. package/dist/datatype-validation.d.ts +4 -9
  29. package/dist/datatype-validation.js +147 -1
  30. package/dist/datatypes-entry.d.ts +1 -0
  31. package/dist/datatypes-entry.js +2 -0
  32. package/dist/entitlement-entry.d.ts +1 -1
  33. package/dist/entitlement-entry.js +1 -1
  34. package/dist/entitlement-gate.d.ts +14 -0
  35. package/dist/entitlement-gate.js +64 -7
  36. package/dist/entitlement-plan.d.ts +6 -0
  37. package/dist/entitlement-plan.js +10 -0
  38. package/dist/entitlement-types.d.ts +53 -12
  39. package/dist/entitlement.d.ts +31 -4
  40. package/dist/entitlement.js +58 -17
  41. package/dist/hook-entry.d.ts +5 -0
  42. package/dist/hook-entry.js +30 -0
  43. package/dist/host-entry.d.ts +7 -1
  44. package/dist/host-entry.js +14 -1
  45. package/dist/index.d.ts +67 -7
  46. package/dist/index.js +94 -6
  47. package/dist/mail.d.ts +34 -0
  48. package/dist/mail.js +1 -0
  49. package/dist/manifest-entry.d.ts +47 -4
  50. package/dist/manifest-entry.js +63 -2
  51. package/dist/manifest-schema.d.ts +993 -40
  52. package/dist/manifest-schema.js +516 -26
  53. package/dist/manifest.d.ts +1186 -62
  54. package/dist/manifest.js +8 -4
  55. package/dist/media/media-picker.js +31 -18
  56. package/dist/media/upload-error.d.ts +5 -1
  57. package/dist/media/upload-error.js +14 -2
  58. package/dist/media-library.d.ts +32 -0
  59. package/dist/media-library.js +15 -0
  60. package/dist/nested-field-host.d.ts +76 -0
  61. package/dist/nested-field-host.js +90 -0
  62. package/dist/notify.d.ts +12 -4
  63. package/dist/notify.js +1 -1
  64. package/dist/outbound.d.ts +47 -0
  65. package/dist/outbound.js +1 -0
  66. package/dist/plugin-context.d.ts +52 -0
  67. package/dist/plugin-context.js +27 -0
  68. package/dist/plugin-permissions.d.ts +18 -0
  69. package/dist/plugin-permissions.js +25 -0
  70. package/dist/plugin-screen-context.d.ts +262 -9
  71. package/dist/plugin-screen-context.js +56 -0
  72. package/dist/providers.d.ts +313 -0
  73. package/dist/providers.js +74 -0
  74. package/dist/read-all-pages.d.ts +5 -0
  75. package/dist/read-all-pages.js +3 -2
  76. package/dist/render-page.d.ts +15 -0
  77. package/dist/render-page.js +20 -0
  78. package/dist/richtext/block-panel.d.ts +12 -1
  79. package/dist/richtext/block-panel.js +36 -25
  80. package/dist/richtext/button-view.d.ts +11 -0
  81. package/dist/richtext/button-view.js +45 -0
  82. package/dist/richtext/content-guard.d.ts +4 -0
  83. package/dist/richtext/content-guard.js +27 -0
  84. package/dist/richtext/editor-handle.d.ts +34 -0
  85. package/dist/richtext/editor-handle.js +225 -0
  86. package/dist/richtext/extensions.d.ts +6 -0
  87. package/dist/richtext/extensions.js +16 -0
  88. package/dist/richtext/insert-menu.d.ts +6 -1
  89. package/dist/richtext/insert-menu.js +45 -22
  90. package/dist/richtext/item-attributes.d.ts +6 -0
  91. package/dist/richtext/item-attributes.js +19 -0
  92. package/dist/richtext/item-panel.d.ts +25 -0
  93. package/dist/richtext/item-panel.js +118 -0
  94. package/dist/richtext/item-view.d.ts +58 -0
  95. package/dist/richtext/item-view.js +172 -0
  96. package/dist/richtext/mark-form.d.ts +10 -0
  97. package/dist/richtext/mark-form.js +38 -0
  98. package/dist/richtext/paste-choice.d.ts +9 -0
  99. package/dist/richtext/paste-choice.js +13 -0
  100. package/dist/richtext/plugin-items.d.ts +72 -0
  101. package/dist/richtext/plugin-items.js +562 -0
  102. package/dist/richtext/plugin-mark-tooltips.d.ts +5 -0
  103. package/dist/richtext/plugin-mark-tooltips.js +44 -0
  104. package/dist/richtext/plugin-toolbar.d.ts +57 -0
  105. package/dist/richtext/plugin-toolbar.js +186 -0
  106. package/dist/richtext/rich-item-icons.d.ts +5 -0
  107. package/dist/richtext/rich-item-icons.js +42 -0
  108. package/dist/richtext/rich-items.d.ts +42 -0
  109. package/dist/richtext/rich-items.js +68 -0
  110. package/dist/richtext/rich-text-view-host.d.ts +24 -0
  111. package/dist/richtext/rich-text-view-host.js +11 -0
  112. package/dist/richtext/style-listbox.js +6 -4
  113. package/dist/richtext/toolbar-button.d.ts +16 -0
  114. package/dist/richtext/toolbar-button.js +9 -0
  115. package/dist/richtext/url-paste.d.ts +20 -0
  116. package/dist/richtext/url-paste.js +82 -0
  117. package/dist/richtext-html-entry.d.ts +5 -0
  118. package/dist/richtext-html-entry.js +11 -0
  119. package/dist/sdk-strings.d.ts +344 -0
  120. package/dist/sdk-strings.js +411 -0
  121. package/dist/sealing.d.ts +14 -0
  122. package/dist/sealing.js +1 -0
  123. package/dist/service-contract.d.ts +17 -0
  124. package/dist/service-contract.js +39 -0
  125. package/dist/services.d.ts +114 -0
  126. package/dist/services.js +1 -0
  127. package/dist/simple-storage-value-provider.js +24 -24
  128. package/dist/structured-storage-types.d.ts +429 -9
  129. package/dist/tailwind.js +10 -5
  130. package/dist/template-reads.d.ts +16 -0
  131. package/dist/template-reads.js +21 -0
  132. package/dist/testing-entry.d.ts +38 -0
  133. package/dist/testing-entry.js +173 -0
  134. package/dist/text-entry.d.ts +1 -0
  135. package/dist/text-entry.js +7 -0
  136. package/dist/tokens/system-dark.css +1 -0
  137. package/dist/tokens/tailwind-theme.css +7 -0
  138. package/dist/tokens/tokens.css +19 -3
  139. package/dist/tokens/tokens.json +13 -4
  140. package/dist/uploads.d.ts +43 -0
  141. package/dist/uploads.js +1 -0
  142. package/dist/user-library.d.ts +51 -0
  143. package/dist/user-library.js +15 -0
  144. package/dist/view-helpers.d.ts +18 -0
  145. package/dist/view-helpers.js +64 -0
  146. package/dist/views/asset-view.js +4 -1
  147. package/dist/views/content-list-preview.js +3 -1
  148. package/dist/views/content-list-settings-view.js +11 -7
  149. package/dist/views/content-list-view.d.ts +5 -3
  150. package/dist/views/content-list-view.js +243 -40
  151. package/dist/views/content-picker-view.d.ts +3 -0
  152. package/dist/views/content-picker-view.js +143 -0
  153. package/dist/views/crop-view.d.ts +4 -6
  154. package/dist/views/crop-view.js +22 -13
  155. package/dist/views/date-range-view.js +4 -1
  156. package/dist/views/file-upload-view.d.ts +5 -7
  157. package/dist/views/file-upload-view.js +16 -7
  158. package/dist/views/group-view.d.ts +8 -0
  159. package/dist/views/group-view.js +123 -0
  160. package/dist/views/html-view.js +7 -6
  161. package/dist/views/image-view.js +37 -19
  162. package/dist/views/link-view.d.ts +3 -0
  163. package/dist/views/link-view.js +150 -0
  164. package/dist/views/options-list-view.d.ts +3 -0
  165. package/dist/views/options-list-view.js +104 -0
  166. package/dist/views/repeatable-list-view.d.ts +3 -0
  167. package/dist/views/repeatable-list-view.js +113 -0
  168. package/dist/views/rich-text-view.d.ts +2 -0
  169. package/dist/views/rich-text-view.js +208 -35
  170. package/dist/views/suggest-key.d.ts +17 -0
  171. package/dist/views/suggest-key.js +55 -0
  172. package/dist/views/unreadable-rich-text.d.ts +17 -0
  173. package/dist/views/unreadable-rich-text.js +40 -0
  174. package/dist/visitors.d.ts +81 -0
  175. package/dist/visitors.js +1 -0
  176. package/node_modules/@kardalum/api-schemas/dist/ai-app-hosts.d.ts +21 -0
  177. package/node_modules/@kardalum/api-schemas/dist/ai-app-hosts.js +39 -0
  178. package/node_modules/@kardalum/api-schemas/dist/ai-app-redirects.d.ts +2 -0
  179. package/node_modules/@kardalum/api-schemas/dist/ai-app-redirects.js +31 -0
  180. package/node_modules/@kardalum/api-schemas/dist/ai-connections.schema.d.ts +334 -0
  181. package/node_modules/@kardalum/api-schemas/dist/ai-connections.schema.js +254 -0
  182. package/node_modules/@kardalum/api-schemas/dist/ai-context.schema.d.ts +12 -0
  183. package/node_modules/@kardalum/api-schemas/dist/ai-context.schema.js +10 -0
  184. package/node_modules/@kardalum/api-schemas/dist/api-key-api.schema.d.ts +10 -0
  185. package/node_modules/@kardalum/api-schemas/dist/api-key-api.schema.js +5 -0
  186. package/node_modules/@kardalum/api-schemas/dist/audit-api.schema.d.ts +11 -1
  187. package/node_modules/@kardalum/api-schemas/dist/audit-api.schema.js +4 -2
  188. package/node_modules/@kardalum/api-schemas/dist/built-in-editor-ids.d.ts +8 -0
  189. package/node_modules/@kardalum/api-schemas/dist/built-in-editor-ids.js +38 -0
  190. package/node_modules/@kardalum/api-schemas/dist/capability-detail.d.ts +65 -0
  191. package/node_modules/@kardalum/api-schemas/dist/capability-detail.js +144 -0
  192. package/node_modules/@kardalum/api-schemas/dist/content-api.schema.d.ts +115 -3
  193. package/node_modules/@kardalum/api-schemas/dist/content-api.schema.js +58 -11
  194. package/node_modules/@kardalum/api-schemas/dist/content-list.schema.d.ts +137 -2
  195. package/node_modules/@kardalum/api-schemas/dist/content-list.schema.js +178 -2
  196. package/node_modules/@kardalum/api-schemas/dist/content-path.d.ts +1 -1
  197. package/node_modules/@kardalum/api-schemas/dist/content-path.js +1 -1
  198. package/node_modules/@kardalum/api-schemas/dist/content-reads.schema.d.ts +213 -0
  199. package/node_modules/@kardalum/api-schemas/dist/content-reads.schema.js +234 -0
  200. package/node_modules/@kardalum/api-schemas/dist/content-search.schema.d.ts +50 -0
  201. package/node_modules/@kardalum/api-schemas/dist/content-search.schema.js +42 -0
  202. package/node_modules/@kardalum/api-schemas/dist/content-summary.schema.d.ts +37 -0
  203. package/node_modules/@kardalum/api-schemas/dist/content-summary.schema.js +19 -0
  204. package/node_modules/@kardalum/api-schemas/dist/content-unpublish.schema.d.ts +23 -0
  205. package/node_modules/@kardalum/api-schemas/dist/content-unpublish.schema.js +13 -0
  206. package/node_modules/@kardalum/api-schemas/dist/content.schema.d.ts +3 -0
  207. package/node_modules/@kardalum/api-schemas/dist/content.schema.js +10 -0
  208. package/node_modules/@kardalum/api-schemas/dist/contract-cancel.schema.d.ts +41 -0
  209. package/node_modules/@kardalum/api-schemas/dist/contract-cancel.schema.js +86 -0
  210. package/node_modules/@kardalum/api-schemas/dist/contribution-issues.d.ts +11 -0
  211. package/node_modules/@kardalum/api-schemas/dist/contribution-issues.js +14 -0
  212. package/node_modules/@kardalum/api-schemas/dist/core-actions.d.ts +55 -13
  213. package/node_modules/@kardalum/api-schemas/dist/core-actions.js +22 -10
  214. package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.d.ts +25 -0
  215. package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.js +8 -0
  216. package/node_modules/@kardalum/api-schemas/dist/data-type-config.schema.js +1 -1
  217. package/node_modules/@kardalum/api-schemas/dist/data-type-issue.d.ts +35 -0
  218. package/node_modules/@kardalum/api-schemas/dist/data-type-issue.js +60 -0
  219. package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.d.ts +257 -15
  220. package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.js +78 -5
  221. package/node_modules/@kardalum/api-schemas/dist/document-type.schema.d.ts +24 -6
  222. package/node_modules/@kardalum/api-schemas/dist/document-type.schema.js +90 -5
  223. package/node_modules/@kardalum/api-schemas/dist/experimental-points.d.ts +19 -0
  224. package/node_modules/@kardalum/api-schemas/dist/experimental-points.js +250 -0
  225. package/node_modules/@kardalum/api-schemas/dist/form-protection-callers.d.ts +29 -0
  226. package/node_modules/@kardalum/api-schemas/dist/form-protection-callers.js +31 -0
  227. package/node_modules/@kardalum/api-schemas/dist/form-protection.d.ts +23 -0
  228. package/node_modules/@kardalum/api-schemas/dist/form-protection.js +12 -0
  229. package/node_modules/@kardalum/api-schemas/dist/graphql-limits.d.ts +12 -0
  230. package/node_modules/@kardalum/api-schemas/dist/graphql-limits.js +14 -0
  231. package/node_modules/@kardalum/api-schemas/dist/held-embed-words.d.ts +23 -0
  232. package/node_modules/@kardalum/api-schemas/dist/held-embed-words.js +70 -0
  233. package/node_modules/@kardalum/api-schemas/dist/html-scan.d.ts +22 -0
  234. package/node_modules/@kardalum/api-schemas/dist/html-scan.js +122 -0
  235. package/node_modules/@kardalum/api-schemas/dist/html-start-tags.d.ts +48 -0
  236. package/node_modules/@kardalum/api-schemas/dist/html-start-tags.js +381 -0
  237. package/node_modules/@kardalum/api-schemas/dist/index.d.ts +162 -48
  238. package/node_modules/@kardalum/api-schemas/dist/index.js +137 -30
  239. package/node_modules/@kardalum/api-schemas/dist/install-sign-in-switched-off.schema.d.ts +9 -0
  240. package/node_modules/@kardalum/api-schemas/dist/install-sign-in-switched-off.schema.js +9 -0
  241. package/node_modules/@kardalum/api-schemas/dist/json-depth.d.ts +3 -0
  242. package/node_modules/@kardalum/api-schemas/dist/json-depth.js +20 -0
  243. package/node_modules/@kardalum/api-schemas/dist/legal-anchors.d.ts +8 -0
  244. package/node_modules/@kardalum/api-schemas/dist/legal-anchors.js +9 -0
  245. package/node_modules/@kardalum/api-schemas/dist/licensing.schema.d.ts +63 -0
  246. package/node_modules/@kardalum/api-schemas/dist/licensing.schema.js +54 -0
  247. package/node_modules/@kardalum/api-schemas/dist/mail-rules.d.ts +226 -0
  248. package/node_modules/@kardalum/api-schemas/dist/mail-rules.js +409 -0
  249. package/node_modules/@kardalum/api-schemas/dist/management-multipart.schema.d.ts +8 -0
  250. package/node_modules/@kardalum/api-schemas/dist/management-multipart.schema.js +4 -0
  251. package/node_modules/@kardalum/api-schemas/dist/marketplace-leaks.schema.d.ts +145 -0
  252. package/node_modules/@kardalum/api-schemas/dist/marketplace-leaks.schema.js +154 -0
  253. package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.d.ts +490 -10
  254. package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.js +53 -3
  255. package/node_modules/@kardalum/api-schemas/dist/marketplace-package-api.schema.d.ts +15 -0
  256. package/node_modules/@kardalum/api-schemas/dist/marketplace-package-api.schema.js +14 -0
  257. package/node_modules/@kardalum/api-schemas/dist/marketplace-payouts.schema.d.ts +131 -0
  258. package/node_modules/@kardalum/api-schemas/dist/marketplace-payouts.schema.js +272 -0
  259. package/node_modules/@kardalum/api-schemas/dist/marketplace-profile.schema.d.ts +84 -0
  260. package/node_modules/@kardalum/api-schemas/dist/marketplace-profile.schema.js +138 -0
  261. package/node_modules/@kardalum/api-schemas/dist/marketplace-revocation.schema.d.ts +20 -0
  262. package/node_modules/@kardalum/api-schemas/dist/marketplace-revocation.schema.js +49 -0
  263. package/node_modules/@kardalum/api-schemas/dist/marketplace-sites.schema.d.ts +211 -0
  264. package/node_modules/@kardalum/api-schemas/dist/marketplace-sites.schema.js +424 -0
  265. package/node_modules/@kardalum/api-schemas/dist/mcp-plugins.schema.d.ts +78 -0
  266. package/node_modules/@kardalum/api-schemas/dist/mcp-plugins.schema.js +27 -0
  267. package/node_modules/@kardalum/api-schemas/dist/mcp-tool-inputs.schema.d.ts +70 -0
  268. package/node_modules/@kardalum/api-schemas/dist/mcp-tool-inputs.schema.js +43 -0
  269. package/node_modules/@kardalum/api-schemas/dist/media-api.schema.d.ts +38 -0
  270. package/node_modules/@kardalum/api-schemas/dist/media-api.schema.js +13 -1
  271. package/node_modules/@kardalum/api-schemas/dist/media-move.schema.d.ts +75 -0
  272. package/node_modules/@kardalum/api-schemas/dist/media-move.schema.js +53 -0
  273. package/node_modules/@kardalum/api-schemas/dist/media-reference-api.schema.d.ts +2 -2
  274. package/node_modules/@kardalum/api-schemas/dist/media-reference.d.ts +2 -0
  275. package/node_modules/@kardalum/api-schemas/dist/media-reference.js +55 -0
  276. package/node_modules/@kardalum/api-schemas/dist/media.schema.d.ts +5 -0
  277. package/node_modules/@kardalum/api-schemas/dist/media.schema.js +8 -0
  278. package/node_modules/@kardalum/api-schemas/dist/nested-fields.schema.d.ts +204 -0
  279. package/node_modules/@kardalum/api-schemas/dist/nested-fields.schema.js +370 -0
  280. package/node_modules/@kardalum/api-schemas/dist/nested-validation.d.ts +60 -0
  281. package/node_modules/@kardalum/api-schemas/dist/nested-validation.js +333 -0
  282. package/node_modules/@kardalum/api-schemas/dist/news.schema.d.ts +5 -5
  283. package/node_modules/@kardalum/api-schemas/dist/node-access.schema.d.ts +1 -2
  284. package/node_modules/@kardalum/api-schemas/dist/node-access.schema.js +1 -2
  285. package/node_modules/@kardalum/api-schemas/dist/notification-kinds.d.ts +145 -0
  286. package/node_modules/@kardalum/api-schemas/dist/notification-kinds.js +177 -0
  287. package/node_modules/@kardalum/api-schemas/dist/notification.schema.d.ts +258 -7
  288. package/node_modules/@kardalum/api-schemas/dist/notification.schema.js +96 -5
  289. package/node_modules/@kardalum/api-schemas/dist/page-address.d.ts +10 -0
  290. package/node_modules/@kardalum/api-schemas/dist/page-address.js +7 -0
  291. package/node_modules/@kardalum/api-schemas/dist/page-audience.schema.d.ts +87 -0
  292. package/node_modules/@kardalum/api-schemas/dist/page-audience.schema.js +44 -0
  293. package/node_modules/@kardalum/api-schemas/dist/password-reset.schema.d.ts +34 -0
  294. package/node_modules/@kardalum/api-schemas/dist/password-reset.schema.js +60 -0
  295. package/node_modules/@kardalum/api-schemas/dist/plan-editor.schema.d.ts +28 -3
  296. package/node_modules/@kardalum/api-schemas/dist/plan-editor.schema.js +55 -8
  297. package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.d.ts +12 -0
  298. package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.js +13 -0
  299. package/node_modules/@kardalum/api-schemas/dist/plugin-admin-slots.d.ts +11 -0
  300. package/node_modules/@kardalum/api-schemas/dist/plugin-admin-slots.js +61 -0
  301. package/node_modules/@kardalum/api-schemas/dist/plugin-caller.d.ts +23 -0
  302. package/node_modules/@kardalum/api-schemas/dist/plugin-caller.js +16 -0
  303. package/node_modules/@kardalum/api-schemas/dist/plugin-cli-commands.d.ts +76 -0
  304. package/node_modules/@kardalum/api-schemas/dist/plugin-cli-commands.js +316 -0
  305. package/node_modules/@kardalum/api-schemas/dist/plugin-content-access.d.ts +44 -0
  306. package/node_modules/@kardalum/api-schemas/dist/plugin-content-access.js +84 -0
  307. package/node_modules/@kardalum/api-schemas/dist/plugin-content-slots.d.ts +136 -0
  308. package/node_modules/@kardalum/api-schemas/dist/plugin-content-slots.js +254 -0
  309. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-checks.d.ts +22 -0
  310. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-checks.js +66 -0
  311. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-document.d.ts +130 -0
  312. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-document.js +173 -0
  313. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-fetch.d.ts +16 -0
  314. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-fetch.js +112 -0
  315. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-schema.d.ts +70 -0
  316. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-schema.js +380 -0
  317. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-types.d.ts +3 -0
  318. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-types.js +68 -0
  319. package/node_modules/@kardalum/api-schemas/dist/plugin-data-type-configs.d.ts +31 -0
  320. package/node_modules/@kardalum/api-schemas/dist/plugin-data-type-configs.js +131 -0
  321. package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.d.ts +44 -2
  322. package/node_modules/@kardalum/api-schemas/dist/plugin-docs.d.ts +44 -2
  323. package/node_modules/@kardalum/api-schemas/dist/plugin-docs.js +16 -5
  324. package/node_modules/@kardalum/api-schemas/dist/plugin-document-types.d.ts +228 -0
  325. package/node_modules/@kardalum/api-schemas/dist/plugin-document-types.js +41 -0
  326. package/node_modules/@kardalum/api-schemas/dist/plugin-durable-hooks.d.ts +34 -0
  327. package/node_modules/@kardalum/api-schemas/dist/plugin-durable-hooks.js +102 -0
  328. package/node_modules/@kardalum/api-schemas/dist/plugin-editor-extensions.d.ts +43 -0
  329. package/node_modules/@kardalum/api-schemas/dist/plugin-editor-extensions.js +126 -0
  330. package/node_modules/@kardalum/api-schemas/dist/plugin-events.d.ts +24 -0
  331. package/node_modules/@kardalum/api-schemas/dist/plugin-events.js +53 -0
  332. package/node_modules/@kardalum/api-schemas/dist/plugin-field-info.d.ts +41 -0
  333. package/node_modules/@kardalum/api-schemas/dist/plugin-field-info.js +51 -0
  334. package/node_modules/@kardalum/api-schemas/dist/plugin-graphql-fields.d.ts +32 -0
  335. package/node_modules/@kardalum/api-schemas/dist/plugin-graphql-fields.js +102 -0
  336. package/node_modules/@kardalum/api-schemas/dist/plugin-guards.d.ts +112 -0
  337. package/node_modules/@kardalum/api-schemas/dist/plugin-guards.js +118 -0
  338. package/node_modules/@kardalum/api-schemas/dist/plugin-held-embeds.d.ts +119 -0
  339. package/node_modules/@kardalum/api-schemas/dist/plugin-held-embeds.js +216 -0
  340. package/node_modules/@kardalum/api-schemas/dist/plugin-https-origin.d.ts +5 -0
  341. package/node_modules/@kardalum/api-schemas/dist/plugin-https-origin.js +21 -0
  342. package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.d.ts +4 -0
  343. package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.js +3 -0
  344. package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.d.ts +46 -0
  345. package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.js +41 -1
  346. package/node_modules/@kardalum/api-schemas/dist/plugin-install.d.ts +304 -2
  347. package/node_modules/@kardalum/api-schemas/dist/plugin-install.js +220 -6
  348. package/node_modules/@kardalum/api-schemas/dist/plugin-kept-parts.d.ts +138 -0
  349. package/node_modules/@kardalum/api-schemas/dist/plugin-kept-parts.js +110 -0
  350. package/node_modules/@kardalum/api-schemas/dist/plugin-labels.d.ts +26 -0
  351. package/node_modules/@kardalum/api-schemas/dist/plugin-labels.js +29 -1
  352. package/node_modules/@kardalum/api-schemas/dist/plugin-locales.d.ts +32 -8
  353. package/node_modules/@kardalum/api-schemas/dist/plugin-locales.js +120 -14
  354. package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.d.ts +408 -14
  355. package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.js +307 -23
  356. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.d.ts +23 -1
  357. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.js +61 -3
  358. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-ai.d.ts +40 -0
  359. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-ai.js +139 -0
  360. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.d.ts +23 -1
  361. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.js +37 -1
  362. package/node_modules/@kardalum/api-schemas/dist/plugin-media-access.d.ts +25 -0
  363. package/node_modules/@kardalum/api-schemas/dist/plugin-media-access.js +43 -0
  364. package/node_modules/@kardalum/api-schemas/dist/plugin-outbound.d.ts +107 -0
  365. package/node_modules/@kardalum/api-schemas/dist/plugin-outbound.js +150 -0
  366. package/node_modules/@kardalum/api-schemas/dist/plugin-package-build.schema.d.ts +5 -0
  367. package/node_modules/@kardalum/api-schemas/dist/plugin-package-build.schema.js +7 -0
  368. package/node_modules/@kardalum/api-schemas/dist/plugin-providers.d.ts +346 -0
  369. package/node_modules/@kardalum/api-schemas/dist/plugin-providers.js +461 -0
  370. package/node_modules/@kardalum/api-schemas/dist/plugin-read-only.schema.d.ts +4 -0
  371. package/node_modules/@kardalum/api-schemas/dist/plugin-read-only.schema.js +2 -0
  372. package/node_modules/@kardalum/api-schemas/dist/plugin-rich-text.d.ts +638 -0
  373. package/node_modules/@kardalum/api-schemas/dist/plugin-rich-text.js +533 -0
  374. package/node_modules/@kardalum/api-schemas/dist/plugin-sealed-values.d.ts +45 -0
  375. package/node_modules/@kardalum/api-schemas/dist/plugin-sealed-values.js +99 -0
  376. package/node_modules/@kardalum/api-schemas/dist/plugin-secrets.d.ts +68 -0
  377. package/node_modules/@kardalum/api-schemas/dist/plugin-secrets.js +114 -0
  378. package/node_modules/@kardalum/api-schemas/dist/plugin-service-call.d.ts +36 -0
  379. package/node_modules/@kardalum/api-schemas/dist/plugin-service-call.js +32 -0
  380. package/node_modules/@kardalum/api-schemas/dist/plugin-service-connections.d.ts +193 -0
  381. package/node_modules/@kardalum/api-schemas/dist/plugin-service-connections.js +123 -0
  382. package/node_modules/@kardalum/api-schemas/dist/plugin-service-declarations.d.ts +209 -0
  383. package/node_modules/@kardalum/api-schemas/dist/plugin-service-declarations.js +372 -0
  384. package/node_modules/@kardalum/api-schemas/dist/plugin-services.d.ts +90 -0
  385. package/node_modules/@kardalum/api-schemas/dist/plugin-services.js +204 -0
  386. package/node_modules/@kardalum/api-schemas/dist/plugin-settings.d.ts +352 -0
  387. package/node_modules/@kardalum/api-schemas/dist/plugin-settings.js +409 -0
  388. package/node_modules/@kardalum/api-schemas/dist/plugin-site-extensions.d.ts +347 -0
  389. package/node_modules/@kardalum/api-schemas/dist/plugin-site-extensions.js +976 -0
  390. package/node_modules/@kardalum/api-schemas/dist/plugin-site-requests.d.ts +69 -0
  391. package/node_modules/@kardalum/api-schemas/dist/plugin-site-requests.js +149 -0
  392. package/node_modules/@kardalum/api-schemas/dist/plugin-storage-api.schema.d.ts +7 -0
  393. package/node_modules/@kardalum/api-schemas/dist/plugin-storage-api.schema.js +47 -4
  394. package/node_modules/@kardalum/api-schemas/dist/plugin-styles.d.ts +5 -0
  395. package/node_modules/@kardalum/api-schemas/dist/plugin-styles.js +13 -0
  396. package/node_modules/@kardalum/api-schemas/dist/plugin-tasks.d.ts +45 -0
  397. package/node_modules/@kardalum/api-schemas/dist/plugin-tasks.js +197 -0
  398. package/node_modules/@kardalum/api-schemas/dist/plugin-uploads.d.ts +96 -0
  399. package/node_modules/@kardalum/api-schemas/dist/plugin-uploads.js +185 -0
  400. package/node_modules/@kardalum/api-schemas/dist/plugin-user-accounts.d.ts +213 -0
  401. package/node_modules/@kardalum/api-schemas/dist/plugin-user-accounts.js +131 -0
  402. package/node_modules/@kardalum/api-schemas/dist/plugin-view-kit.d.ts +54 -0
  403. package/node_modules/@kardalum/api-schemas/dist/plugin-view-kit.js +154 -0
  404. package/node_modules/@kardalum/api-schemas/dist/plugin-visitor-points.d.ts +37 -0
  405. package/node_modules/@kardalum/api-schemas/dist/plugin-visitor-points.js +124 -0
  406. package/node_modules/@kardalum/api-schemas/dist/plural-rules.d.ts +9 -0
  407. package/node_modules/@kardalum/api-schemas/dist/plural-rules.js +41 -0
  408. package/node_modules/@kardalum/api-schemas/dist/public-api.schema.d.ts +41 -0
  409. package/node_modules/@kardalum/api-schemas/dist/public-api.schema.js +100 -12
  410. package/node_modules/@kardalum/api-schemas/dist/refund-request.schema.d.ts +189 -0
  411. package/node_modules/@kardalum/api-schemas/dist/refund-request.schema.js +164 -0
  412. package/node_modules/@kardalum/api-schemas/dist/render-cache.d.ts +126 -0
  413. package/node_modules/@kardalum/api-schemas/dist/render-cache.js +263 -0
  414. package/node_modules/@kardalum/api-schemas/dist/render-editing.d.ts +307 -4
  415. package/node_modules/@kardalum/api-schemas/dist/render-editing.js +61 -0
  416. package/node_modules/@kardalum/api-schemas/dist/revenue-view.schema.js +7 -3
  417. package/node_modules/@kardalum/api-schemas/dist/rich-text-paste-hosts.d.ts +14 -0
  418. package/node_modules/@kardalum/api-schemas/dist/rich-text-paste-hosts.js +108 -0
  419. package/node_modules/@kardalum/api-schemas/dist/rich-text-shape.d.ts +71 -0
  420. package/node_modules/@kardalum/api-schemas/dist/rich-text-shape.js +540 -0
  421. package/node_modules/@kardalum/api-schemas/dist/rich-text-text.d.ts +66 -0
  422. package/node_modules/@kardalum/api-schemas/dist/rich-text-text.js +394 -0
  423. package/node_modules/@kardalum/api-schemas/dist/sale-conditions.schema.d.ts +82 -0
  424. package/node_modules/@kardalum/api-schemas/dist/sale-conditions.schema.js +99 -0
  425. package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.d.ts +13 -0
  426. package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.js +28 -0
  427. package/node_modules/@kardalum/api-schemas/dist/sandbox-attach.schema.d.ts +201 -1
  428. package/node_modules/@kardalum/api-schemas/dist/sandbox-attach.schema.js +36 -0
  429. package/node_modules/@kardalum/api-schemas/dist/security-overview.schema.d.ts +64 -0
  430. package/node_modules/@kardalum/api-schemas/dist/security-overview.schema.js +38 -0
  431. package/node_modules/@kardalum/api-schemas/dist/server-settings-api.schema.d.ts +97 -8
  432. package/node_modules/@kardalum/api-schemas/dist/server-settings-api.schema.js +64 -1
  433. package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.d.ts +136 -0
  434. package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.js +53 -2
  435. package/node_modules/@kardalum/api-schemas/dist/sign-in-steps.d.ts +724 -0
  436. package/node_modules/@kardalum/api-schemas/dist/sign-in-steps.js +408 -0
  437. package/node_modules/@kardalum/api-schemas/dist/sign-in.schema.d.ts +386 -0
  438. package/node_modules/@kardalum/api-schemas/dist/sign-in.schema.js +618 -0
  439. package/node_modules/@kardalum/api-schemas/dist/site-consent.d.ts +77 -0
  440. package/node_modules/@kardalum/api-schemas/dist/site-consent.js +122 -0
  441. package/node_modules/@kardalum/api-schemas/dist/snapshot-api.schema.d.ts +3 -3
  442. package/node_modules/@kardalum/api-schemas/dist/snapshot.schema.d.ts +1 -1
  443. package/node_modules/@kardalum/api-schemas/dist/structured-duplicate-key.d.ts +13 -0
  444. package/node_modules/@kardalum/api-schemas/dist/structured-duplicate-key.js +26 -0
  445. package/node_modules/@kardalum/api-schemas/dist/structured-fields.schema.d.ts +70 -0
  446. package/node_modules/@kardalum/api-schemas/dist/structured-fields.schema.js +188 -0
  447. package/node_modules/@kardalum/api-schemas/dist/template-api.schema.d.ts +33 -0
  448. package/node_modules/@kardalum/api-schemas/dist/template-api.schema.js +26 -1
  449. package/node_modules/@kardalum/api-schemas/dist/template.schema.d.ts +1 -0
  450. package/node_modules/@kardalum/api-schemas/dist/template.schema.js +3 -0
  451. package/node_modules/@kardalum/api-schemas/dist/transaction-rolled-back.d.ts +13 -0
  452. package/node_modules/@kardalum/api-schemas/dist/transaction-rolled-back.js +29 -0
  453. package/node_modules/@kardalum/api-schemas/dist/trash-purge.schema.d.ts +13 -0
  454. package/node_modules/@kardalum/api-schemas/dist/trash-purge.schema.js +6 -0
  455. package/node_modules/@kardalum/api-schemas/dist/user-api.schema.d.ts +72 -1
  456. package/node_modules/@kardalum/api-schemas/dist/user-api.schema.js +36 -3
  457. package/node_modules/@kardalum/api-schemas/dist/vendor-service.schema.d.ts +5 -1
  458. package/node_modules/@kardalum/api-schemas/dist/vendor-service.schema.js +4 -3
  459. package/node_modules/@kardalum/api-schemas/dist/visitor-accounts.d.ts +482 -0
  460. package/node_modules/@kardalum/api-schemas/dist/visitor-accounts.js +380 -0
  461. package/node_modules/@kardalum/api-schemas/dist/visitor-groups.d.ts +109 -0
  462. package/node_modules/@kardalum/api-schemas/dist/visitor-groups.js +62 -0
  463. package/node_modules/@kardalum/api-schemas/package.json +2 -0
  464. package/node_modules/@kardalum/design-tokens/dist/build-css.js +15 -1
  465. package/node_modules/@kardalum/design-tokens/dist/system-dark.css +1 -0
  466. package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.css +7 -0
  467. package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.d.ts +2 -1
  468. package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.js +2 -0
  469. package/node_modules/@kardalum/design-tokens/dist/tokens.css +19 -3
  470. package/node_modules/@kardalum/design-tokens/dist/tokens.d.ts +1 -1
  471. package/node_modules/@kardalum/design-tokens/dist/tokens.js +18 -3
  472. package/node_modules/@kardalum/design-tokens/dist/tokens.json +13 -4
  473. package/node_modules/@kardalum/design-tokens/dist/types.d.ts +5 -1
  474. package/node_modules/@kardalum/plugin-package/dist/build-reference.d.ts +38 -2
  475. package/node_modules/@kardalum/plugin-package/dist/build-reference.js +17 -2
  476. package/node_modules/@kardalum/plugin-package/dist/capabilities.d.ts +17 -10
  477. package/node_modules/@kardalum/plugin-package/dist/capabilities.js +625 -35
  478. package/node_modules/@kardalum/plugin-package/dist/client-bundle.d.ts +1 -1
  479. package/node_modules/@kardalum/plugin-package/dist/client-bundle.js +25 -0
  480. package/node_modules/@kardalum/plugin-package/dist/cms-range.d.ts +17 -0
  481. package/node_modules/@kardalum/plugin-package/dist/cms-range.js +353 -0
  482. package/node_modules/@kardalum/plugin-package/dist/contract-fingerprint.d.ts +17 -0
  483. package/node_modules/@kardalum/plugin-package/dist/contract-fingerprint.js +39 -0
  484. package/node_modules/@kardalum/plugin-package/dist/delivery/admin-styles.d.ts +23 -0
  485. package/node_modules/@kardalum/plugin-package/dist/delivery/admin-styles.js +351 -0
  486. package/node_modules/@kardalum/plugin-package/dist/delivery/ai-declarations.d.ts +2 -0
  487. package/node_modules/@kardalum/plugin-package/dist/delivery/ai-declarations.js +26 -0
  488. package/node_modules/@kardalum/plugin-package/dist/delivery/archive-names.d.ts +1 -1
  489. package/node_modules/@kardalum/plugin-package/dist/delivery/archive-names.js +3 -2
  490. package/node_modules/@kardalum/plugin-package/dist/delivery/bundle.d.ts +2 -0
  491. package/node_modules/@kardalum/plugin-package/dist/delivery/bundle.js +1 -1
  492. package/node_modules/@kardalum/plugin-package/dist/delivery/content-access.d.ts +2 -0
  493. package/node_modules/@kardalum/plugin-package/dist/delivery/content-access.js +47 -0
  494. package/node_modules/@kardalum/plugin-package/dist/delivery/contributions.js +2 -2
  495. package/node_modules/@kardalum/plugin-package/dist/delivery/editor-extensions.d.ts +2 -0
  496. package/node_modules/@kardalum/plugin-package/dist/delivery/editor-extensions.js +40 -0
  497. package/node_modules/@kardalum/plugin-package/dist/delivery/graphql-fields.d.ts +2 -0
  498. package/node_modules/@kardalum/plugin-package/dist/delivery/graphql-fields.js +22 -0
  499. package/node_modules/@kardalum/plugin-package/dist/delivery/icons.js +3 -2
  500. package/node_modules/@kardalum/plugin-package/dist/delivery/index.d.ts +3 -0
  501. package/node_modules/@kardalum/plugin-package/dist/delivery/index.js +3 -0
  502. package/node_modules/@kardalum/plugin-package/dist/delivery/label-languages.js +76 -6
  503. package/node_modules/@kardalum/plugin-package/dist/delivery/licence-check.d.ts +27 -0
  504. package/node_modules/@kardalum/plugin-package/dist/delivery/licence-check.js +99 -0
  505. package/node_modules/@kardalum/plugin-package/dist/delivery/limits.d.ts +6 -0
  506. package/node_modules/@kardalum/plugin-package/dist/delivery/limits.js +6 -0
  507. package/node_modules/@kardalum/plugin-package/dist/delivery/locales.js +9 -4
  508. package/node_modules/@kardalum/plugin-package/dist/delivery/plugin-settings.d.ts +3 -0
  509. package/node_modules/@kardalum/plugin-package/dist/delivery/plugin-settings.js +68 -0
  510. package/node_modules/@kardalum/plugin-package/dist/delivery/providers.d.ts +5 -0
  511. package/node_modules/@kardalum/plugin-package/dist/delivery/providers.js +316 -0
  512. package/node_modules/@kardalum/plugin-package/dist/delivery/registry.js +40 -4
  513. package/node_modules/@kardalum/plugin-package/dist/delivery/rich-text.d.ts +2 -0
  514. package/node_modules/@kardalum/plugin-package/dist/delivery/rich-text.js +173 -0
  515. package/node_modules/@kardalum/plugin-package/dist/delivery/sample-content.js +91 -2
  516. package/node_modules/@kardalum/plugin-package/dist/delivery/server-powers.d.ts +6 -0
  517. package/node_modules/@kardalum/plugin-package/dist/delivery/server-powers.js +150 -0
  518. package/node_modules/@kardalum/plugin-package/dist/delivery/services-events.d.ts +3 -0
  519. package/node_modules/@kardalum/plugin-package/dist/delivery/services-events.js +35 -0
  520. package/node_modules/@kardalum/plugin-package/dist/delivery/sign-in-steps.d.ts +3 -0
  521. package/node_modules/@kardalum/plugin-package/dist/delivery/sign-in-steps.js +71 -0
  522. package/node_modules/@kardalum/plugin-package/dist/delivery/site-extensions.d.ts +2 -0
  523. package/node_modules/@kardalum/plugin-package/dist/delivery/site-extensions.js +69 -0
  524. package/node_modules/@kardalum/plugin-package/dist/delivery/templates.d.ts +1 -0
  525. package/node_modules/@kardalum/plugin-package/dist/delivery/templates.js +21 -1
  526. package/node_modules/@kardalum/plugin-package/dist/delivery/types.d.ts +17 -0
  527. package/node_modules/@kardalum/plugin-package/dist/delivery/user-accounts.d.ts +3 -0
  528. package/node_modules/@kardalum/plugin-package/dist/delivery/user-accounts.js +36 -0
  529. package/node_modules/@kardalum/plugin-package/dist/delivery/visitor-points.d.ts +3 -0
  530. package/node_modules/@kardalum/plugin-package/dist/delivery/visitor-points.js +33 -0
  531. package/node_modules/@kardalum/plugin-package/dist/index.d.ts +8 -2
  532. package/node_modules/@kardalum/plugin-package/dist/index.js +7 -1
  533. package/node_modules/@kardalum/plugin-package/dist/license-verdict.d.ts +75 -0
  534. package/node_modules/@kardalum/plugin-package/dist/license-verdict.js +123 -0
  535. package/node_modules/@kardalum/plugin-package/dist/public-suffix.d.ts +7 -0
  536. package/node_modules/@kardalum/plugin-package/dist/public-suffix.js +23 -0
  537. package/node_modules/@kardalum/plugin-package/dist/rich-text-summary.d.ts +1 -0
  538. package/node_modules/@kardalum/plugin-package/dist/rich-text-summary.js +27 -0
  539. package/node_modules/@kardalum/plugin-package/dist/stylesheet-load-hook.d.ts +2 -0
  540. package/node_modules/@kardalum/plugin-package/dist/stylesheet-load-hook.js +28 -0
  541. package/node_modules/@kardalum/plugin-package/package.json +4 -0
  542. package/node_modules/@kardalum/ui/dist/components/select.d.ts +6 -0
  543. package/node_modules/@kardalum/ui/dist/components/select.js +7 -0
  544. package/node_modules/@kardalum/ui/dist/components/switch.js +1 -1
  545. package/node_modules/@kardalum/ui/dist/components/textarea.d.ts +6 -0
  546. package/node_modules/@kardalum/ui/dist/components/textarea.js +7 -0
  547. package/node_modules/@kardalum/ui/dist/components/tooltip.js +1 -2
  548. package/node_modules/@kardalum/ui/dist/components/truncated-text.d.ts +6 -1
  549. package/node_modules/@kardalum/ui/dist/components/truncated-text.js +5 -4
  550. package/node_modules/@kardalum/ui/dist/index.d.ts +2 -0
  551. package/node_modules/@kardalum/ui/dist/index.js +2 -0
  552. package/package.json +25 -3
@@ -1,11 +1,12 @@
1
1
  export type { PackageSignatureSidecar, SignatureEnvelope, TrustedKey, VerifyFailureReason, VerifyResult, } from "./types.js";
2
2
  export { VERIFY_FAILURE_REASONS } from "./types.js";
3
3
  export { canonicalizeEnvelope, deriveKeyId, generateSigningKeyPair, signEnvelope, verifyEnvelope, } from "./envelope.js";
4
- export type { LicenseChallenge, LicenseTermState, LicenseVerdictEnvelope, LicenseVerdictResult, LicenseVerdictSignatureResult, LicenseVerdictTerm, SignedLicenseVerdict, TamperKind, } from "./license-verdict.js";
5
- export { canonicalizeLicenseVerdict, canonicalizeLicenseVerdictTerm, createLicenseChallenge, ENTITLEMENT_MAX_AGE_MS, hashLicenseKey, LICENSE_TERM_STATES, LICENSE_VERDICT_DETAIL_MAX, LICENSE_VERDICT_PLAN_ID_MAX, MAX_VERDICT_AGE_MS, signLicenseVerdict, signLicenseVerdictWithTerm, verifyLicenseVerdict, verifyLicenseVerdictSignature, } from "./license-verdict.js";
4
+ export type { LicenseChallenge, LicenseTermState, LicenseVerdictEnd, LicenseVerdictEnvelope, LicenseVerdictNotice, LicenseVerdictResult, LicenseVerdictSignatureResult, LicenseVerdictTerm, SignedLicenseVerdict, TamperKind, } from "./license-verdict.js";
5
+ export { canonicalizeLicenseVerdict, canonicalizeLicenseVerdictEnd, canonicalizeLicenseVerdictNotice, canonicalizeLicenseVerdictTerm, createLicenseChallenge, ENTITLEMENT_MAX_AGE_MS, hashLicenseKey, LICENSE_INVALID_REASONS, LICENSE_TERM_STATES, LICENSE_VERDICT_END_EFFECTS, LICENSE_VERDICT_DETAIL_MAX, LICENSE_VERDICT_NOTICE_DOMAIN_MAX, LICENSE_VERDICT_PLAN_ID_MAX, MAX_VERDICT_AGE_MS, signLicenseVerdict, signLicenseVerdictWithEnd, signLicenseVerdictWithNotice, signLicenseVerdictWithTerm, verifyLicenseVerdict, verifyLicenseVerdictEnd, verifyLicenseVerdictNotice, verifyLicenseVerdictSignature, } from "./license-verdict.js";
6
6
  export { VENDOR_TOKEN_LEEWAY_SECONDS, VENDOR_TOKEN_SIGNING_PREFIX, signVendorToken, verifyVendorToken } from "./vendor-token.js";
7
7
  export type { VendorTokenFailure, VendorTokenVerifyResult } from "./vendor-token.js";
8
8
  export { hashBuffer, hashArchive, hashDirectories } from "./hash.js";
9
+ export { contractDocumentFor, contractFingerprint, documentFingerprintHolds } from "./contract-fingerprint.js";
9
10
  export type { AdmittedEntry, PlannedEntry } from "./extract.js";
10
11
  export { createEntryGate, createPathKeyGate, decodeEntryName, ENTRY_NAME_MAX, ENTRY_SEGMENTS_MAX, entryViolation, extractArtifact, MAX_ENTRIES, MAX_ENTRY_BYTES, MAX_TOTAL_BYTES, normalizeEntryName, plannedEntryRefusal, } from "./extract.js";
11
12
  export type { ShippedEntry } from "./shipped-files.js";
@@ -18,5 +19,10 @@ export { checkCoverContract, checkPackageContract, checkReadmeContract, COVER_HE
18
19
  export type { DocsContractInput } from "./docs-contract.js";
19
20
  export { capViolations, checkDocsContract, countRemoteImages, docsFilesToShip, MAX_PACKAGE_JSON_BYTES, MAX_VIOLATIONS, packageFilePath, readDocsContractInput } from "./docs-contract.js";
20
21
  export { VIEW_BEARING_CONTRIBUTIONS, declaresClientBundle } from "./client-bundle.js";
22
+ export { richTextExtensionsSummary } from "./rich-text-summary.js";
23
+ export { isPublicSuffix, publicSuffixPasteHosts } from "./public-suffix.js";
21
24
  export { resolvePluginManifestEntry } from "./manifest-entry.js";
25
+ export { registerStylesheetLoadHook } from "./stylesheet-load-hook.js";
22
26
  export * from "./delivery/index.js";
27
+ export type { CmsRangeAgainstBuilt } from "./cms-range.js";
28
+ export { builtCmsRange, cmsRangeAgainstBuilt, cmsRangeAllows } from "./cms-range.js";
@@ -1,9 +1,11 @@
1
1
  export { VERIFY_FAILURE_REASONS } from "./types.js";
2
2
  export { canonicalizeEnvelope, deriveKeyId, generateSigningKeyPair, signEnvelope, verifyEnvelope, } from "./envelope.js";
3
- export { canonicalizeLicenseVerdict, canonicalizeLicenseVerdictTerm, createLicenseChallenge, ENTITLEMENT_MAX_AGE_MS, hashLicenseKey, LICENSE_TERM_STATES, LICENSE_VERDICT_DETAIL_MAX, LICENSE_VERDICT_PLAN_ID_MAX, MAX_VERDICT_AGE_MS, signLicenseVerdict, signLicenseVerdictWithTerm, verifyLicenseVerdict, verifyLicenseVerdictSignature, } from "./license-verdict.js";
3
+ export { canonicalizeLicenseVerdict, canonicalizeLicenseVerdictEnd, canonicalizeLicenseVerdictNotice, canonicalizeLicenseVerdictTerm, createLicenseChallenge, ENTITLEMENT_MAX_AGE_MS, hashLicenseKey, LICENSE_INVALID_REASONS, LICENSE_TERM_STATES, LICENSE_VERDICT_END_EFFECTS, LICENSE_VERDICT_DETAIL_MAX, LICENSE_VERDICT_NOTICE_DOMAIN_MAX, LICENSE_VERDICT_PLAN_ID_MAX, MAX_VERDICT_AGE_MS, signLicenseVerdict, signLicenseVerdictWithEnd, signLicenseVerdictWithNotice, signLicenseVerdictWithTerm, verifyLicenseVerdict, verifyLicenseVerdictEnd, verifyLicenseVerdictNotice, verifyLicenseVerdictSignature, } from "./license-verdict.js";
4
4
  // S320: the vendor token (spec 3a).
5
5
  export { VENDOR_TOKEN_LEEWAY_SECONDS, VENDOR_TOKEN_SIGNING_PREFIX, signVendorToken, verifyVendorToken } from "./vendor-token.js";
6
6
  export { hashBuffer, hashArchive, hashDirectories } from "./hash.js";
7
+ // M35 B1c (plan decision 3): a contract version's fingerprint and the one builder of its document.
8
+ export { contractDocumentFor, contractFingerprint, documentFingerprintHolds } from "./contract-fingerprint.js";
7
9
  export { createEntryGate, createPathKeyGate, decodeEntryName, ENTRY_NAME_MAX, ENTRY_SEGMENTS_MAX, entryViolation, extractArtifact, MAX_ENTRIES, MAX_ENTRY_BYTES, MAX_TOTAL_BYTES, normalizeEntryName, plannedEntryRefusal, } from "./extract.js";
8
10
  export { EXCLUDED_NAMES, createShippedLookup, isExcludedSegment, walkShipped, whyNotShipped } from "./shipped-files.js";
9
11
  export { SAMPLE_CONTENT_MAX_BYTES, hasSampleContentConsumer, installFactsOf, readShippedInstallFacts, readShippedSampleContent } from "./sample-content.js";
@@ -11,5 +13,9 @@ export { MAX_SHIPPED_LOCALES, readShippedLocales } from "./shipped-locales.js";
11
13
  export { checkCoverContract, checkPackageContract, checkReadmeContract, COVER_HEIGHT, COVER_PATH, COVER_WIDTH, pngSize, } from "./package-contract.js";
12
14
  export { capViolations, checkDocsContract, countRemoteImages, docsFilesToShip, MAX_PACKAGE_JSON_BYTES, MAX_VIOLATIONS, packageFilePath, readDocsContractInput } from "./docs-contract.js";
13
15
  export { VIEW_BEARING_CONTRIBUTIONS, declaresClientBundle } from "./client-bundle.js";
16
+ export { richTextExtensionsSummary } from "./rich-text-summary.js";
17
+ export { isPublicSuffix, publicSuffixPasteHosts } from "./public-suffix.js";
14
18
  export { resolvePluginManifestEntry } from "./manifest-entry.js";
19
+ export { registerStylesheetLoadHook } from "./stylesheet-load-hook.js";
15
20
  export * from "./delivery/index.js";
21
+ export { builtCmsRange, cmsRangeAgainstBuilt, cmsRangeAllows } from "./cms-range.js";
@@ -62,6 +62,17 @@ export interface LicenseVerdictEnvelope {
62
62
  /** S317: the licence's term, covered by `termSignature` like `planId`. A
63
63
  * verdict without it reads as plan unknown, term active. */
64
64
  term?: LicenseVerdictTerm;
65
+ /** S367b: where the licence key was refused while a sharing case of the
66
+ * licence is under 30 days old. Covered by `noticeSignature` only, never by
67
+ * `signature` or `termSignature`, so every verifier built before it checks
68
+ * the bytes it always did and ignores this field. */
69
+ notice?: LicenseVerdictNotice;
70
+ /** Part I6f: what the licence's end does to the plugin, and whether it
71
+ * ended by a refund. Covered by `endSignature` only, never by `signature`,
72
+ * `termSignature` or `noticeSignature`, so every verifier built before it
73
+ * checks the bytes it always did and ignores this field. Signed only on a
74
+ * `valid` answer. */
75
+ end?: LicenseVerdictEnd;
65
76
  }
66
77
  /** The longest `detail` a verdict may carry. */
67
78
  export declare const LICENSE_VERDICT_DETAIL_MAX = 500;
@@ -92,6 +103,10 @@ export interface SignedLicenseVerdict {
92
103
  signature: string;
93
104
  /** S317: base64 Ed25519 over canonicalizeLicenseVerdictTerm; present only when the envelope carries planId or term. */
94
105
  termSignature?: string;
106
+ /** S367b: base64 Ed25519 over canonicalizeLicenseVerdictNotice; present only when the envelope carries a notice. */
107
+ noticeSignature?: string;
108
+ /** Part I6f: base64 Ed25519 over canonicalizeLicenseVerdictEnd; present only when the envelope carries an end. */
109
+ endSignature?: string;
95
110
  }
96
111
  /**
97
112
  * A `LicenseChallenge` is the only way to obtain a nonce, and the only
@@ -193,6 +208,45 @@ export declare function canonicalizeLicenseVerdict(envelope: LicenseVerdictEnvel
193
208
  * hold a `planId` key, which the version 1 bytes never do, so neither
194
209
  * signature can stand in for the other. */
195
210
  export declare function canonicalizeLicenseVerdictTerm(envelope: LicenseVerdictEnvelope): Buffer;
211
+ /** S367b: what the buyer's own CMS is told while a sharing case of the
212
+ * licence is under 30 days old. Covered by `noticeSignature` only, so
213
+ * `signature` and `termSignature` keep their bytes and every verifier built
214
+ * before this field ignores it. S367c: `staging-site` tells a staging site's
215
+ * CMS which seated site it belongs to (`domain`) and when it was named
216
+ * (`at`). S367d: `service-closing` tells every CMS the licence service ends at
217
+ * `at`; a CMS that verifies it stops checking (licence terms `updates`). */
218
+ export interface LicenseVerdictNotice {
219
+ kind: "key-seen-elsewhere" | "staging-site" | "service-closing";
220
+ domain: string;
221
+ at: string;
222
+ }
223
+ /** The longest domain a notice carries. */
224
+ export declare const LICENSE_VERDICT_NOTICE_DOMAIN_MAX = 253;
225
+ /** Every reason an `invalid` verdict carries. `domain_mismatch` is no longer
226
+ * answered by the marketplace (S367b) but stays readable on a verdict stored
227
+ * before it. S367d: `public_visitors` is a local or unset domain on a site
228
+ * that answers public visitors (licence terms `local`). S367e: `key_replaced` is
229
+ * a key the operator replaced (licence terms `revocation`); soft, like a full
230
+ * set of seats. */
231
+ export declare const LICENSE_INVALID_REASONS: readonly ["unknown_key", "plugin_mismatch", "domain_mismatch", "domain_blocked", "seat_limit", "seat_move", "key_shared", "licence_locked", "public_visitors", "key_replaced"];
232
+ /** S367b: what `noticeSignature` covers: the version 1 fields, then
233
+ * `notice`. These bytes always hold a `notice` key, which neither the
234
+ * version 1 nor the term bytes do, so no signature can stand in for
235
+ * another. */
236
+ export declare function canonicalizeLicenseVerdictNotice(envelope: LicenseVerdictEnvelope): Buffer;
237
+ /** Part I6f: what a licence's end does to the plugin. `read_only` keeps its
238
+ * reads and refuses its writes; `off` deactivates it. */
239
+ export declare const LICENSE_VERDICT_END_EFFECTS: readonly ["read_only", "off"];
240
+ /** Part I6f: the end the marketplace signs on a `valid` answer: the author's
241
+ * effect for how the licence ended, and whether it ended by a refund. */
242
+ export interface LicenseVerdictEnd {
243
+ effect: (typeof LICENSE_VERDICT_END_EFFECTS)[number];
244
+ refunded: boolean;
245
+ }
246
+ /** Part I6f: what `endSignature` covers: the version 1 fields, then `end`.
247
+ * These bytes always hold an `end` key, which none of the version 1, term or
248
+ * notice bytes do, so no signature can stand in for another. */
249
+ export declare function canonicalizeLicenseVerdictEnd(envelope: LicenseVerdictEnvelope): string;
196
250
  export declare function signLicenseVerdict(envelope: LicenseVerdictEnvelope, privateKeyBase64: string): string;
197
251
  /** S317: what the marketplace's validation route returns. `signature` is
198
252
  * signLicenseVerdict's, byte for byte (Ed25519 is deterministic), so every
@@ -200,6 +254,17 @@ export declare function signLicenseVerdict(envelope: LicenseVerdictEnvelope, pri
200
254
  * the envelope carries a plan or a term. Throws RangeError for a malformed
201
255
  * plan or term: the marketplace never signs one. */
202
256
  export declare function signLicenseVerdictWithTerm(envelope: LicenseVerdictEnvelope, privateKeyBase64: string): SignedLicenseVerdict;
257
+ /** S367b: signLicenseVerdictWithTerm's answer, plus `noticeSignature` when
258
+ * the envelope carries a notice. `signature` and `termSignature` are the
259
+ * same bytes as without the notice. Throws RangeError for a malformed
260
+ * notice: the marketplace never signs one. */
261
+ export declare function signLicenseVerdictWithNotice(envelope: LicenseVerdictEnvelope, privateKeyBase64: string): SignedLicenseVerdict;
262
+ /** Part I6f: signLicenseVerdictWithNotice's answer, plus `endSignature`
263
+ * when the envelope carries an end. `signature`, `termSignature` and
264
+ * `noticeSignature` are the same bytes as without the end. Throws RangeError
265
+ * for a malformed end or an end on an answer that is not `valid`: the
266
+ * marketplace never signs one. */
267
+ export declare function signLicenseVerdictWithEnd(envelope: LicenseVerdictEnvelope, privateKeyBase64: string): SignedLicenseVerdict;
203
268
  export type LicenseVerdictSignatureResult = {
204
269
  ok: true;
205
270
  envelope: LicenseVerdictEnvelope;
@@ -220,3 +285,13 @@ export declare function verifyLicenseVerdictSignature(signed: unknown, trustedKe
220
285
  maxAgeMs?: number;
221
286
  }): LicenseVerdictSignatureResult;
222
287
  export declare function verifyLicenseVerdict(signedVerdict: unknown, challenge: LicenseChallenge, trustedKeys: TrustedKey[], now?: Date): LicenseVerdictResult;
288
+ /** S367b: the notice when it is well formed and `noticeSignature` verifies
289
+ * over it with a trusted key; null otherwise, which reads as a verdict
290
+ * without one. It checks nothing else (freshness, subject): the caller has
291
+ * already verified the verdict itself. */
292
+ export declare function verifyLicenseVerdictNotice(signed: unknown, trustedKeys: TrustedKey[]): LicenseVerdictNotice | null;
293
+ /** Part I6f: the end when it is well formed and `endSignature` verifies over
294
+ * it with a trusted key; null otherwise, which reads as an answer without
295
+ * one. It checks nothing else (freshness, subject, status): the caller has
296
+ * already verified the answer itself. */
297
+ export declare function verifyLicenseVerdictEnd(signed: unknown, trustedKeys: TrustedKey[]): LicenseVerdictEnd | null;
@@ -104,6 +104,66 @@ function isCanonicalInstant(value) {
104
104
  const time = Date.parse(value);
105
105
  return Number.isFinite(time) && new Date(time).toISOString() === value;
106
106
  }
107
+ /** The longest domain a notice carries. */
108
+ export const LICENSE_VERDICT_NOTICE_DOMAIN_MAX = 253;
109
+ /** Every reason an `invalid` verdict carries. `domain_mismatch` is no longer
110
+ * answered by the marketplace (S367b) but stays readable on a verdict stored
111
+ * before it. S367d: `public_visitors` is a local or unset domain on a site
112
+ * that answers public visitors (licence terms `local`). S367e: `key_replaced` is
113
+ * a key the operator replaced (licence terms `revocation`); soft, like a full
114
+ * set of seats. */
115
+ export const LICENSE_INVALID_REASONS = [
116
+ "unknown_key",
117
+ "plugin_mismatch",
118
+ "domain_mismatch",
119
+ "domain_blocked",
120
+ "seat_limit",
121
+ "seat_move",
122
+ "key_shared",
123
+ "licence_locked",
124
+ "public_visitors",
125
+ "key_replaced",
126
+ ];
127
+ function isNotice(value) {
128
+ if (typeof value !== "object" || value === null)
129
+ return false;
130
+ const n = value;
131
+ return ((n.kind === "key-seen-elsewhere" || n.kind === "staging-site" || n.kind === "service-closing") &&
132
+ typeof n.domain === "string" &&
133
+ n.domain.length >= 1 &&
134
+ n.domain.length <= LICENSE_VERDICT_NOTICE_DOMAIN_MAX &&
135
+ typeof n.at === "string" &&
136
+ isCanonicalInstant(n.at));
137
+ }
138
+ /** S367b: what `noticeSignature` covers: the version 1 fields, then
139
+ * `notice`. These bytes always hold a `notice` key, which neither the
140
+ * version 1 nor the term bytes do, so no signature can stand in for
141
+ * another. */
142
+ export function canonicalizeLicenseVerdictNotice(envelope) {
143
+ const n = envelope.notice;
144
+ return Buffer.from(JSON.stringify({ ...canonicalFields(envelope), notice: n === undefined ? null : { kind: n.kind, domain: n.domain, at: n.at } }), "utf8");
145
+ }
146
+ /** Part I6f: what a licence's end does to the plugin. `read_only` keeps its
147
+ * reads and refuses its writes; `off` deactivates it. */
148
+ export const LICENSE_VERDICT_END_EFFECTS = ["read_only", "off"];
149
+ /** Exactly the two keys, in the shapes a verifier keeps: a third key would
150
+ * be unsigned data riding on a verified result. */
151
+ function isEnd(value) {
152
+ if (typeof value !== "object" || value === null || Array.isArray(value))
153
+ return false;
154
+ const keys = Object.keys(value);
155
+ if (keys.length !== 2 || !keys.includes("effect") || !keys.includes("refunded"))
156
+ return false;
157
+ const e = value;
158
+ return LICENSE_VERDICT_END_EFFECTS.includes(e.effect) && typeof e.refunded === "boolean";
159
+ }
160
+ /** Part I6f: what `endSignature` covers: the version 1 fields, then `end`.
161
+ * These bytes always hold an `end` key, which none of the version 1, term or
162
+ * notice bytes do, so no signature can stand in for another. */
163
+ export function canonicalizeLicenseVerdictEnd(envelope) {
164
+ const e = envelope.end;
165
+ return JSON.stringify({ ...canonicalFields(envelope), end: e === undefined ? null : { effect: e.effect, refunded: e.refunded } });
166
+ }
107
167
  function isTerm(value) {
108
168
  if (typeof value !== "object" || value === null)
109
169
  return false;
@@ -148,6 +208,35 @@ export function signLicenseVerdictWithTerm(envelope, privateKeyBase64) {
148
208
  const key = createPrivateKey({ key: Buffer.from(privateKeyBase64, "base64"), format: "der", type: "pkcs8" });
149
209
  return { envelope, signature, termSignature: sign(null, canonicalizeLicenseVerdictTerm(envelope), key).toString("base64") };
150
210
  }
211
+ /** S367b: signLicenseVerdictWithTerm's answer, plus `noticeSignature` when
212
+ * the envelope carries a notice. `signature` and `termSignature` are the
213
+ * same bytes as without the notice. Throws RangeError for a malformed
214
+ * notice: the marketplace never signs one. */
215
+ export function signLicenseVerdictWithNotice(envelope, privateKeyBase64) {
216
+ const signed = signLicenseVerdictWithTerm(envelope, privateKeyBase64);
217
+ if (envelope.notice === undefined)
218
+ return signed;
219
+ if (!isNotice(envelope.notice))
220
+ throw new RangeError("signLicenseVerdictWithNotice: the notice is malformed");
221
+ const key = createPrivateKey({ key: Buffer.from(privateKeyBase64, "base64"), format: "der", type: "pkcs8" });
222
+ return { ...signed, noticeSignature: sign(null, canonicalizeLicenseVerdictNotice(envelope), key).toString("base64") };
223
+ }
224
+ /** Part I6f: signLicenseVerdictWithNotice's answer, plus `endSignature`
225
+ * when the envelope carries an end. `signature`, `termSignature` and
226
+ * `noticeSignature` are the same bytes as without the end. Throws RangeError
227
+ * for a malformed end or an end on an answer that is not `valid`: the
228
+ * marketplace never signs one. */
229
+ export function signLicenseVerdictWithEnd(envelope, privateKeyBase64) {
230
+ const signed = signLicenseVerdictWithNotice(envelope, privateKeyBase64);
231
+ if (envelope.end === undefined)
232
+ return signed;
233
+ if (!isEnd(envelope.end))
234
+ throw new RangeError("signLicenseVerdictWithEnd: the end is malformed");
235
+ if (envelope.status !== "valid")
236
+ throw new RangeError("signLicenseVerdictWithEnd: an end is signed only on a valid answer");
237
+ const key = createPrivateKey({ key: Buffer.from(privateKeyBase64, "base64"), format: "der", type: "pkcs8" });
238
+ return { ...signed, endSignature: sign(null, Buffer.from(canonicalizeLicenseVerdictEnd(envelope), "utf8"), key).toString("base64") };
239
+ }
151
240
  function isEnvelope(value) {
152
241
  if (typeof value !== "object" || value === null)
153
242
  return false;
@@ -328,3 +417,37 @@ export function verifyLicenseVerdict(signedVerdict, challenge, trustedKeys, now
328
417
  envelope: verifiedEnvelope,
329
418
  };
330
419
  }
420
+ /** S367b: the notice when it is well formed and `noticeSignature` verifies
421
+ * over it with a trusted key; null otherwise, which reads as a verdict
422
+ * without one. It checks nothing else (freshness, subject): the caller has
423
+ * already verified the verdict itself. */
424
+ export function verifyLicenseVerdictNotice(signed, trustedKeys) {
425
+ if (!isSigned(signed))
426
+ return null;
427
+ const { envelope } = signed;
428
+ if (!isNotice(envelope.notice))
429
+ return null;
430
+ const noticeSignature = signed.noticeSignature;
431
+ if (typeof noticeSignature !== "string" || noticeSignature.length === 0)
432
+ return null;
433
+ if (checkBytes(envelope.keyId, canonicalizeLicenseVerdictNotice(envelope), noticeSignature, trustedKeys) !== "ok")
434
+ return null;
435
+ return { kind: envelope.notice.kind, domain: envelope.notice.domain, at: envelope.notice.at };
436
+ }
437
+ /** Part I6f: the end when it is well formed and `endSignature` verifies over
438
+ * it with a trusted key; null otherwise, which reads as an answer without
439
+ * one. It checks nothing else (freshness, subject, status): the caller has
440
+ * already verified the answer itself. */
441
+ export function verifyLicenseVerdictEnd(signed, trustedKeys) {
442
+ if (!isSigned(signed))
443
+ return null;
444
+ const { envelope } = signed;
445
+ if (!isEnd(envelope.end))
446
+ return null;
447
+ const endSignature = signed.endSignature;
448
+ if (typeof endSignature !== "string" || endSignature.length === 0)
449
+ return null;
450
+ if (checkBytes(envelope.keyId, Buffer.from(canonicalizeLicenseVerdictEnd(envelope), "utf8"), endSignature, trustedKeys) !== "ok")
451
+ return null;
452
+ return { effect: envelope.end.effect, refunded: envelope.end.refunded };
453
+ }
@@ -0,0 +1,7 @@
1
+ export declare function isPublicSuffix(host: string): boolean;
2
+ /** Every `*.<rest>` host a node's fromUrl lists whose `<rest>` is a public suffix. Read defensively: the door runs it on
3
+ * a manifest.json it has not trusted yet. */
4
+ export declare function publicSuffixPasteHosts(richTextExtensions: unknown): Array<{
5
+ node: string;
6
+ host: string;
7
+ }>;
@@ -0,0 +1,23 @@
1
+ import { getPublicSuffix } from "tldts";
2
+ // M35 C4b (W9, design D17): whether a paste host's wildcard covers a public suffix, by the public suffix list tldts
3
+ // carries (pinned exactly in package.json). Both sections count, so github.io is a suffix as co.uk is. Read only by
4
+ // `kardalum plugin validate`, the marketplace door and the server's install; the editor never loads it.
5
+ export function isPublicSuffix(host) {
6
+ const suffix = getPublicSuffix(host, { allowPrivateDomains: true });
7
+ return suffix !== null && suffix === host;
8
+ }
9
+ /** Every `*.<rest>` host a node's fromUrl lists whose `<rest>` is a public suffix. Read defensively: the door runs it on
10
+ * a manifest.json it has not trusted yet. */
11
+ export function publicSuffixPasteHosts(richTextExtensions) {
12
+ const out = [];
13
+ const nodes = richTextExtensions !== null && typeof richTextExtensions === "object" ? richTextExtensions.nodes : undefined;
14
+ for (const raw of Array.isArray(nodes) ? nodes : []) {
15
+ const node = raw !== null && typeof raw === "object" ? raw : {};
16
+ const hosts = Array.isArray(node.fromUrl?.hosts) ? node.fromUrl.hosts : [];
17
+ for (const host of hosts) {
18
+ if (typeof host === "string" && host.startsWith("*.") && host.length <= 255 && isPublicSuffix(host.slice(2)))
19
+ out.push({ node: typeof node.name === "string" ? node.name : "", host });
20
+ }
21
+ }
22
+ return out;
23
+ }
@@ -0,0 +1 @@
1
+ export declare function richTextExtensionsSummary(value: unknown): unknown;
@@ -0,0 +1,27 @@
1
+ // M35 C4b (C4b-D1): a rich text declaration in manifest.json's form: plain JSON (a JSON round trip drops every function,
2
+ // a node's validate and every view among them) with `hasView: true` where a node, a mark or a button's `does` carried a
3
+ // view. The CLI's manifest writer and the server's declaration index both call it, so the two sides of an install read
4
+ // one shape. Pure data, no node: import.
5
+ const entries = (value) => (Array.isArray(value) ? value : []);
6
+ const isEntry = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
7
+ export function richTextExtensionsSummary(value) {
8
+ if (!isEntry(value))
9
+ return value;
10
+ const plain = JSON.parse(JSON.stringify(value));
11
+ const mark = (key) => {
12
+ entries(value[key]).forEach((live, index) => {
13
+ const written = entries(plain[key])[index];
14
+ if (isEntry(live) && typeof live.view === "function" && isEntry(written))
15
+ written.hasView = true;
16
+ });
17
+ };
18
+ mark("nodes");
19
+ mark("marks");
20
+ entries(value.buttons).forEach((live, index) => {
21
+ const written = entries(plain.buttons)[index];
22
+ const does = isEntry(live) && isEntry(live.does) ? live.does : null;
23
+ if (does && typeof does.view === "function" && isEntry(written) && isEntry(written.does))
24
+ written.does.hasView = true;
25
+ });
26
+ return plain;
27
+ }
@@ -0,0 +1,2 @@
1
+ /** Makes every `.css` import in this process load as an empty module, once. */
2
+ export declare function registerStylesheetLoadHook(): void;
@@ -0,0 +1,28 @@
1
+ import { register } from "node:module";
2
+ // M35 C3 (design D4): a view ships its styles as a CSS file it imports (`import './view.css'`), which
3
+ // Vite bundles and `kardalum plugin build` wraps in the plugin's layer. Loading a plugin's manifest in
4
+ // Node (`kardalum plugin validate`, and `kardalum dev start`'s sandbox registration) runs the manifest
5
+ // module's whole graph, views included, and Node has no loader for `.css`: it fails "Unknown file
6
+ // extension .css". A stylesheet means nothing to the manifest, so every `.css` URL loads as an empty
7
+ // module (a default export too, for `import styles from './x.css'`).
8
+ //
9
+ // One registration per process. tsx's hooks pass a `.css` URL on down the chain to this one, whichever
10
+ // namespace they serve, and a hook registered after tsx's runs before them, so either order works.
11
+ // module.register is the off-thread hooks API of the pinned Node 22 line; later Node lines deprecate it
12
+ // for module.registerHooks, and the Node upgrade moves this one call.
13
+ const STYLESHEET_HOOKS = [
14
+ "export async function load(url, context, nextLoad) {",
15
+ ' if (new URL(url).pathname.toLowerCase().endsWith(".css")) {',
16
+ ' return { format: "module", source: "export default {};", shortCircuit: true };',
17
+ " }",
18
+ " return nextLoad(url, context);",
19
+ "}",
20
+ ].join("\n");
21
+ let registered = false;
22
+ /** Makes every `.css` import in this process load as an empty module, once. */
23
+ export function registerStylesheetLoadHook() {
24
+ if (registered)
25
+ return;
26
+ register(`data:text/javascript,${encodeURIComponent(STYLESHEET_HOOKS)}`, import.meta.url);
27
+ registered = true;
28
+ }
@@ -35,6 +35,8 @@
35
35
  },
36
36
  "homepage": "https://kardalum.com",
37
37
  "peerDependencies": {
38
+ "postcss": "8.5.26",
39
+ "tldts": "7.4.19",
38
40
  "yauzl": "3.4.0"
39
41
  },
40
42
  "devDependencies": {
@@ -42,6 +44,8 @@
42
44
  "@types/yauzl": "^3.4.0",
43
45
  "@types/yazl": "^3.3.1",
44
46
  "lucide-react": "1.38.0",
47
+ "postcss": "8.5.26",
48
+ "tldts": "7.4.19",
45
49
  "typescript": "6.0.3",
46
50
  "vitest": "4.1.12",
47
51
  "yauzl": "3.4.0",
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ /** @experimental */
3
+ export type SelectProps = React.ComponentProps<'select'>;
4
+ /** M35 C3 (W25): a native select with the admin's look. @experimental */
5
+ declare function Select({ className, children, ...props }: SelectProps): React.JSX.Element;
6
+ export { Select };
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from '../lib/cn.js';
3
+ /** M35 C3 (W25): a native select with the admin's look. @experimental */
4
+ function Select({ className, children, ...props }) {
5
+ return (_jsxs("div", { "data-slot": "select-wrapper", className: cn('relative w-full', className), children: [_jsx("select", { "data-slot": "select", className: cn('flex h-10 w-full appearance-none rounded-md border border-border-strong bg-background-elevated py-2 ps-3 pe-10 text-sm text-text-primary transition-colors duration-fast focus-visible:border-primary-600 focus-visible:outline-hidden focus-visible:ring-4 focus-visible:ring-primary-50 disabled:cursor-not-allowed disabled:opacity-50'), ...props, children: children }), _jsx("span", { "aria-hidden": "true", className: "pointer-events-none absolute inset-y-0 end-3 flex items-center text-text-secondary", children: _jsx("svg", { viewBox: "0 0 24 24", className: "size-4", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: _jsx("path", { d: "m6 9 6 6 6-6" }) }) })] }));
6
+ }
7
+ export { Select };
@@ -2,6 +2,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as SwitchPrimitive from '@radix-ui/react-switch';
3
3
  import { cn } from '../lib/cn.js';
4
4
  function Switch({ className, ...props }) {
5
- return (_jsx(SwitchPrimitive.Root, { "data-slot": "switch", className: cn('peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary-600 focus-visible:ring-offset-2 focus-visible:ring-offset-background-base disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary-600 data-[state=unchecked]:bg-border-strong', className), ...props, children: _jsx(SwitchPrimitive.Thumb, { "data-slot": "switch-thumb", className: "pointer-events-none block h-5 w-5 rounded-full bg-background-elevated shadow-sm ring-0 transition-transform data-[state=unchecked]:translate-x-0 ltr:data-[state=checked]:translate-x-5 rtl:data-[state=checked]:-translate-x-5" }) }));
5
+ return (_jsx(SwitchPrimitive.Root, { "data-slot": "switch", className: cn('peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary-600 focus-visible:ring-offset-2 focus-visible:ring-offset-background-base disabled:cursor-not-allowed disabled:opacity-50 aria-checked:bg-primary-600 aria-[checked=false]:bg-border-strong', className), ...props, children: _jsx(SwitchPrimitive.Thumb, { "data-slot": "switch-thumb", className: "pointer-events-none block h-5 w-5 rounded-full bg-background-elevated shadow-sm ring-0 transition-transform data-[state=unchecked]:translate-x-0 ltr:data-[state=checked]:translate-x-5 rtl:data-[state=checked]:-translate-x-5" }) }));
6
6
  }
7
7
  export { Switch };
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ /** @experimental */
3
+ export type TextareaProps = React.ComponentProps<'textarea'>;
4
+ /** M35 C3 (W25): a native text area with the admin's look. @experimental */
5
+ declare function Textarea({ className, ...props }: TextareaProps): React.JSX.Element;
6
+ export { Textarea };
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from '../lib/cn.js';
3
+ /** M35 C3 (W25): a native text area with the admin's look. @experimental */
4
+ function Textarea({ className, ...props }) {
5
+ return (_jsx("textarea", { "data-slot": "textarea", className: cn('flex min-h-20 w-full rounded-md border border-border-strong bg-background-elevated px-3 py-2 text-sm text-text-primary placeholder:text-text-tertiary transition-colors duration-fast focus-visible:border-primary-600 focus-visible:outline-hidden focus-visible:ring-4 focus-visible:ring-primary-50 disabled:cursor-not-allowed disabled:opacity-50', className), ...props }));
6
+ }
7
+ export { Textarea };
@@ -42,8 +42,7 @@ function TooltipTrigger({ onFocus, ...props }) {
42
42
  event.preventDefault();
43
43
  } }));
44
44
  }
45
- // Top or bottom, centred: the admin has no Radix DirectionProvider, so a
46
- // start/end alignment would be physical; centred reads the same in RTL.
45
+ // Top or bottom, centred: centred reads the same in both directions.
47
46
  // z-60 puts it above dialogs, sheets and menus (z-50).
48
47
  function TooltipContent({ className, side = 'top', sideOffset = 4, collisionPadding = 8, ...props }) {
49
48
  return (_jsx(TooltipPrimitive.Portal, { children: _jsx(TooltipPrimitive.Content, { "data-slot": "tooltip-content", side: side, align: "center", sideOffset: sideOffset, collisionPadding: collisionPadding, className: cn('z-60 max-w-72 rounded-md border border-border-strong bg-background-elevated px-2 py-1 text-xs text-text-primary shadow-lg [overflow-wrap:anywhere]', className), ...props }) }));
@@ -6,6 +6,11 @@ export interface TruncatedTextProps extends Omit<React.HTMLAttributes<HTMLElemen
6
6
  /** The full text, when the children are not a plain string. */
7
7
  text?: string;
8
8
  side?: 'top' | 'bottom';
9
+ /**
10
+ * Open the tooltip whatever the text's width. For a row whose `text` says
11
+ * more than is shown (what a badge means), so a short name still tells it.
12
+ */
13
+ alwaysShowTooltip?: boolean;
9
14
  }
10
- declare function TruncatedText({ as, text, side, children, ...rest }: TruncatedTextProps): React.JSX.Element;
15
+ declare function TruncatedText({ as, text, side, alwaysShowTooltip, children, ...rest }: TruncatedTextProps): React.JSX.Element;
11
16
  export { TruncatedText };
@@ -39,10 +39,11 @@ function watchSize(el, onResize) {
39
39
  observer?.unobserve(el);
40
40
  };
41
41
  }
42
- function TruncatedText({ as = 'span', text, side = 'top', children, ...rest }) {
42
+ function TruncatedText({ as = 'span', text, side = 'top', alwaysShowTooltip = false, children, ...rest }) {
43
43
  const plain = typeof children === 'string' || typeof children === 'number';
44
44
  const full = text ?? (plain ? String(children) : '');
45
45
  const ref = React.useRef(null);
46
+ const worthShowing = (el) => alwaysShowTooltip || isTextCut(el);
46
47
  const [open, setOpen] = React.useState(false);
47
48
  const [standalone, setStandalone] = React.useState(false);
48
49
  const [cut, setCut] = React.useState(false);
@@ -77,7 +78,7 @@ function TruncatedText({ as = 'span', text, side = 'top', children, ...rest }) {
77
78
  }
78
79
  setStandalone(false);
79
80
  const onFocus = () => {
80
- if (isFocusVisible(host) && isTextCut(el))
81
+ if (full !== '' && isFocusVisible(host) && worthShowing(el))
81
82
  setOpen(true);
82
83
  };
83
84
  const onBlur = () => setOpen(false);
@@ -87,8 +88,8 @@ function TruncatedText({ as = 'span', text, side = 'top', children, ...rest }) {
87
88
  host.removeEventListener('focus', onFocus);
88
89
  host.removeEventListener('blur', onBlur);
89
90
  };
90
- }, [full, as]);
91
+ }, [full, as, alwaysShowTooltip]);
91
92
  const Tag = as;
92
- return (_jsxs(Tooltip, { open: open, onOpenChange: (next) => setOpen(next && ref.current !== null && isTextCut(ref.current)), children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(Tag, { ref: ref, tabIndex: standalone && cut ? 0 : undefined, ...rest, children: children }) }), _jsx(TooltipContent, { side: side, children: full })] }));
93
+ return (_jsxs(Tooltip, { open: open, onOpenChange: (next) => setOpen(next && full !== '' && ref.current !== null && worthShowing(ref.current)), children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(Tag, { ref: ref, tabIndex: standalone && cut ? 0 : undefined, ...rest, children: children }) }), _jsx(TooltipContent, { side: side, children: full })] }));
93
94
  }
94
95
  export { TruncatedText };
@@ -1,5 +1,7 @@
1
1
  export { Button, buttonVariants, type ButtonProps } from './components/button.js';
2
2
  export { Input, type InputProps } from './components/input.js';
3
+ export { Select, type SelectProps } from './components/select.js';
4
+ export { Textarea, type TextareaProps } from './components/textarea.js';
3
5
  export { Checkbox, type CheckboxProps } from './components/checkbox.js';
4
6
  export { Switch, type SwitchProps } from './components/switch.js';
5
7
  export { Panel, type PanelProps } from './components/panel.js';
@@ -1,5 +1,7 @@
1
1
  export { Button, buttonVariants } from './components/button.js';
2
2
  export { Input } from './components/input.js';
3
+ export { Select } from './components/select.js';
4
+ export { Textarea } from './components/textarea.js';
3
5
  export { Checkbox } from './components/checkbox.js';
4
6
  export { Switch } from './components/switch.js';
5
7
  export { Panel } from './components/panel.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kardalum/plugin-sdk",
3
- "version": "0.19.0",
3
+ "version": "0.21.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "The SDK for building Kardalum plugins: manifest declaration, data type and admin section registries, storage-value providers, and shared UI components.",
6
6
  "engines": {
@@ -50,6 +50,16 @@
50
50
  "import": "./dist/richtext-html-entry.js",
51
51
  "default": "./dist/richtext-html-entry.js"
52
52
  },
53
+ "./text": {
54
+ "types": "./dist/text-entry.d.ts",
55
+ "import": "./dist/text-entry.js",
56
+ "default": "./dist/text-entry.js"
57
+ },
58
+ "./consent": {
59
+ "types": "./dist/consent-entry.d.ts",
60
+ "import": "./dist/consent-entry.js",
61
+ "default": "./dist/consent-entry.js"
62
+ },
53
63
  "./ui": {
54
64
  "types": "./dist/ui-entry.d.ts",
55
65
  "import": "./dist/ui-entry.js",
@@ -65,6 +75,16 @@
65
75
  "import": "./dist/entitlement-entry.js",
66
76
  "default": "./dist/entitlement-entry.js"
67
77
  },
78
+ "./testing": {
79
+ "types": "./dist/testing-entry.d.ts",
80
+ "import": "./dist/testing-entry.js",
81
+ "default": "./dist/testing-entry.js"
82
+ },
83
+ "./cli": {
84
+ "types": "./dist/cli.d.ts",
85
+ "import": "./dist/cli.js",
86
+ "default": "./dist/cli.js"
87
+ },
68
88
  "./vendor": {
69
89
  "types": "./dist/vendor-entry.d.ts",
70
90
  "import": "./dist/vendor-entry.js",
@@ -125,13 +145,15 @@
125
145
  "clsx": "2.1.1",
126
146
  "happy-dom": "21.0.4",
127
147
  "lucide-react": "1.38.0",
148
+ "postcss": "8.5.26",
128
149
  "tailwind-merge": "3.6.0",
150
+ "tldts": "7.4.19",
129
151
  "yauzl": "3.4.0",
130
152
  "zod": "4.6.6",
131
153
  "@kardalum/api-schemas": "0.14.0",
132
154
  "@kardalum/plugin-package": "0.14.0",
133
- "@kardalum/design-tokens": "0.14.0",
134
- "@kardalum/ui": "0.14.0"
155
+ "@kardalum/ui": "0.14.0",
156
+ "@kardalum/design-tokens": "0.14.0"
135
157
  },
136
158
  "peerDependencies": {
137
159
  "react": "^19.0.0",