@kardalum/plugin-sdk 0.20.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 (323) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/dist/admin-section-registry.d.ts +33 -1
  3. package/dist/admin-section-registry.js +67 -0
  4. package/dist/capabilities.js +46 -1
  5. package/dist/consent-entry.d.ts +11 -0
  6. package/dist/consent-entry.js +18 -0
  7. package/dist/content-library.d.ts +17 -0
  8. package/dist/content-list-extensions.d.ts +50 -0
  9. package/dist/content-list-extensions.js +11 -0
  10. package/dist/content-picker/page-picker-sheet.d.ts +2 -0
  11. package/dist/content-picker/page-picker-sheet.js +1 -1
  12. package/dist/content-picker/page-picker.d.ts +18 -0
  13. package/dist/content-picker/page-picker.js +20 -0
  14. package/dist/datatype-validation.js +10 -2
  15. package/dist/datatypes-entry.d.ts +1 -0
  16. package/dist/datatypes-entry.js +2 -0
  17. package/dist/entitlement-types.d.ts +18 -1
  18. package/dist/host-entry.d.ts +7 -1
  19. package/dist/host-entry.js +14 -1
  20. package/dist/index.d.ts +35 -7
  21. package/dist/index.js +46 -5
  22. package/dist/mail.d.ts +6 -2
  23. package/dist/manifest-entry.d.ts +22 -4
  24. package/dist/manifest-entry.js +25 -1
  25. package/dist/manifest-schema.d.ts +570 -31
  26. package/dist/manifest-schema.js +240 -12
  27. package/dist/manifest.d.ts +757 -32
  28. package/dist/manifest.js +8 -4
  29. package/dist/plugin-context.d.ts +47 -0
  30. package/dist/plugin-context.js +27 -0
  31. package/dist/plugin-permissions.d.ts +18 -0
  32. package/dist/plugin-permissions.js +25 -0
  33. package/dist/plugin-screen-context.d.ts +152 -11
  34. package/dist/plugin-screen-context.js +30 -0
  35. package/dist/providers.d.ts +47 -2
  36. package/dist/render-page.d.ts +15 -0
  37. package/dist/render-page.js +20 -0
  38. package/dist/richtext/block-panel.d.ts +12 -1
  39. package/dist/richtext/block-panel.js +27 -21
  40. package/dist/richtext/button-view.d.ts +11 -0
  41. package/dist/richtext/button-view.js +45 -0
  42. package/dist/richtext/content-guard.d.ts +4 -0
  43. package/dist/richtext/content-guard.js +27 -0
  44. package/dist/richtext/editor-handle.d.ts +34 -0
  45. package/dist/richtext/editor-handle.js +225 -0
  46. package/dist/richtext/extensions.d.ts +6 -0
  47. package/dist/richtext/extensions.js +16 -0
  48. package/dist/richtext/insert-menu.d.ts +6 -1
  49. package/dist/richtext/insert-menu.js +38 -18
  50. package/dist/richtext/item-attributes.d.ts +6 -0
  51. package/dist/richtext/item-attributes.js +19 -0
  52. package/dist/richtext/item-panel.d.ts +25 -0
  53. package/dist/richtext/item-panel.js +118 -0
  54. package/dist/richtext/item-view.d.ts +58 -0
  55. package/dist/richtext/item-view.js +172 -0
  56. package/dist/richtext/mark-form.d.ts +10 -0
  57. package/dist/richtext/mark-form.js +38 -0
  58. package/dist/richtext/paste-choice.d.ts +9 -0
  59. package/dist/richtext/paste-choice.js +13 -0
  60. package/dist/richtext/plugin-items.d.ts +72 -0
  61. package/dist/richtext/plugin-items.js +562 -0
  62. package/dist/richtext/plugin-mark-tooltips.d.ts +5 -0
  63. package/dist/richtext/plugin-mark-tooltips.js +44 -0
  64. package/dist/richtext/plugin-toolbar.d.ts +57 -0
  65. package/dist/richtext/plugin-toolbar.js +186 -0
  66. package/dist/richtext/rich-item-icons.d.ts +5 -0
  67. package/dist/richtext/rich-item-icons.js +42 -0
  68. package/dist/richtext/rich-items.d.ts +42 -0
  69. package/dist/richtext/rich-items.js +68 -0
  70. package/dist/richtext/rich-text-view-host.d.ts +24 -0
  71. package/dist/richtext/rich-text-view-host.js +11 -0
  72. package/dist/richtext/toolbar-button.d.ts +16 -0
  73. package/dist/richtext/toolbar-button.js +9 -0
  74. package/dist/richtext/url-paste.d.ts +20 -0
  75. package/dist/richtext/url-paste.js +82 -0
  76. package/dist/richtext-html-entry.d.ts +5 -0
  77. package/dist/richtext-html-entry.js +11 -0
  78. package/dist/sdk-strings.d.ts +59 -0
  79. package/dist/sdk-strings.js +64 -0
  80. package/dist/service-contract.d.ts +17 -0
  81. package/dist/service-contract.js +39 -0
  82. package/dist/services.d.ts +114 -0
  83. package/dist/services.js +1 -0
  84. package/dist/structured-storage-types.d.ts +124 -4
  85. package/dist/tailwind.js +10 -5
  86. package/dist/template-reads.d.ts +16 -0
  87. package/dist/template-reads.js +21 -0
  88. package/dist/testing-entry.d.ts +38 -0
  89. package/dist/testing-entry.js +173 -0
  90. package/dist/text-entry.d.ts +1 -1
  91. package/dist/text-entry.js +3 -2
  92. package/dist/tokens/system-dark.css +1 -0
  93. package/dist/tokens/tailwind-theme.css +2 -0
  94. package/dist/tokens/tokens.css +4 -0
  95. package/dist/tokens/tokens.json +5 -1
  96. package/dist/uploads.d.ts +43 -0
  97. package/dist/uploads.js +1 -0
  98. package/dist/user-library.d.ts +51 -0
  99. package/dist/user-library.js +15 -0
  100. package/dist/view-helpers.d.ts +18 -0
  101. package/dist/view-helpers.js +64 -0
  102. package/dist/views/content-list-view.js +207 -8
  103. package/dist/views/content-picker-view.js +1 -1
  104. package/dist/views/rich-text-view.d.ts +2 -0
  105. package/dist/views/rich-text-view.js +182 -24
  106. package/dist/views/unreadable-rich-text.d.ts +17 -0
  107. package/dist/views/unreadable-rich-text.js +40 -0
  108. package/dist/visitors.d.ts +81 -0
  109. package/dist/visitors.js +1 -0
  110. package/node_modules/@kardalum/api-schemas/dist/ai-app-hosts.d.ts +21 -0
  111. package/node_modules/@kardalum/api-schemas/dist/ai-app-hosts.js +39 -0
  112. package/node_modules/@kardalum/api-schemas/dist/ai-app-redirects.d.ts +2 -0
  113. package/node_modules/@kardalum/api-schemas/dist/ai-app-redirects.js +31 -0
  114. package/node_modules/@kardalum/api-schemas/dist/ai-connections.schema.d.ts +127 -8
  115. package/node_modules/@kardalum/api-schemas/dist/ai-connections.schema.js +82 -7
  116. package/node_modules/@kardalum/api-schemas/dist/audit-api.schema.d.ts +5 -1
  117. package/node_modules/@kardalum/api-schemas/dist/audit-api.schema.js +2 -2
  118. package/node_modules/@kardalum/api-schemas/dist/built-in-editor-ids.d.ts +7 -0
  119. package/node_modules/@kardalum/api-schemas/dist/built-in-editor-ids.js +11 -0
  120. package/node_modules/@kardalum/api-schemas/dist/capability-detail.d.ts +1 -1
  121. package/node_modules/@kardalum/api-schemas/dist/capability-detail.js +18 -0
  122. package/node_modules/@kardalum/api-schemas/dist/content-list.schema.d.ts +80 -0
  123. package/node_modules/@kardalum/api-schemas/dist/content-list.schema.js +41 -2
  124. package/node_modules/@kardalum/api-schemas/dist/content-reads.schema.d.ts +213 -0
  125. package/node_modules/@kardalum/api-schemas/dist/content-reads.schema.js +234 -0
  126. package/node_modules/@kardalum/api-schemas/dist/contribution-issues.d.ts +11 -0
  127. package/node_modules/@kardalum/api-schemas/dist/contribution-issues.js +14 -0
  128. package/node_modules/@kardalum/api-schemas/dist/core-actions.d.ts +50 -13
  129. package/node_modules/@kardalum/api-schemas/dist/core-actions.js +19 -10
  130. package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.d.ts +77 -0
  131. package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.js +37 -0
  132. package/node_modules/@kardalum/api-schemas/dist/experimental-points.d.ts +19 -0
  133. package/node_modules/@kardalum/api-schemas/dist/experimental-points.js +250 -0
  134. package/node_modules/@kardalum/api-schemas/dist/form-protection-callers.d.ts +29 -0
  135. package/node_modules/@kardalum/api-schemas/dist/form-protection-callers.js +31 -0
  136. package/node_modules/@kardalum/api-schemas/dist/html-scan.d.ts +22 -0
  137. package/node_modules/@kardalum/api-schemas/dist/html-scan.js +122 -0
  138. package/node_modules/@kardalum/api-schemas/dist/html-start-tags.d.ts +48 -0
  139. package/node_modules/@kardalum/api-schemas/dist/html-start-tags.js +381 -0
  140. package/node_modules/@kardalum/api-schemas/dist/index.d.ts +52 -14
  141. package/node_modules/@kardalum/api-schemas/dist/index.js +53 -9
  142. package/node_modules/@kardalum/api-schemas/dist/json-depth.d.ts +3 -0
  143. package/node_modules/@kardalum/api-schemas/dist/json-depth.js +20 -0
  144. package/node_modules/@kardalum/api-schemas/dist/mail-rules.d.ts +4 -2
  145. package/node_modules/@kardalum/api-schemas/dist/mail-rules.js +6 -1
  146. package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.d.ts +178 -2
  147. package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.js +10 -0
  148. package/node_modules/@kardalum/api-schemas/dist/mcp-plugins.schema.d.ts +3 -3
  149. package/node_modules/@kardalum/api-schemas/dist/media-api.schema.d.ts +16 -0
  150. package/node_modules/@kardalum/api-schemas/dist/media.schema.d.ts +4 -0
  151. package/node_modules/@kardalum/api-schemas/dist/media.schema.js +4 -0
  152. package/node_modules/@kardalum/api-schemas/dist/nested-validation.d.ts +7 -0
  153. package/node_modules/@kardalum/api-schemas/dist/nested-validation.js +51 -2
  154. package/node_modules/@kardalum/api-schemas/dist/page-audience.schema.d.ts +87 -0
  155. package/node_modules/@kardalum/api-schemas/dist/page-audience.schema.js +44 -0
  156. package/node_modules/@kardalum/api-schemas/dist/plugin-admin-slots.d.ts +11 -0
  157. package/node_modules/@kardalum/api-schemas/dist/plugin-admin-slots.js +61 -0
  158. package/node_modules/@kardalum/api-schemas/dist/plugin-content-access.d.ts +4 -2
  159. package/node_modules/@kardalum/api-schemas/dist/plugin-content-access.js +12 -2
  160. package/node_modules/@kardalum/api-schemas/dist/plugin-content-slots.d.ts +136 -0
  161. package/node_modules/@kardalum/api-schemas/dist/plugin-content-slots.js +254 -0
  162. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-checks.d.ts +22 -0
  163. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-checks.js +66 -0
  164. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-document.d.ts +130 -0
  165. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-document.js +173 -0
  166. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-fetch.d.ts +16 -0
  167. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-fetch.js +112 -0
  168. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-schema.d.ts +70 -0
  169. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-schema.js +380 -0
  170. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-types.d.ts +3 -0
  171. package/node_modules/@kardalum/api-schemas/dist/plugin-contract-types.js +68 -0
  172. package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.d.ts +18 -0
  173. package/node_modules/@kardalum/api-schemas/dist/plugin-docs.d.ts +18 -0
  174. package/node_modules/@kardalum/api-schemas/dist/plugin-docs.js +5 -2
  175. package/node_modules/@kardalum/api-schemas/dist/plugin-durable-hooks.d.ts +10 -2
  176. package/node_modules/@kardalum/api-schemas/dist/plugin-durable-hooks.js +48 -1
  177. package/node_modules/@kardalum/api-schemas/dist/plugin-editor-extensions.d.ts +5 -2
  178. package/node_modules/@kardalum/api-schemas/dist/plugin-editor-extensions.js +6 -4
  179. package/node_modules/@kardalum/api-schemas/dist/plugin-events.d.ts +24 -0
  180. package/node_modules/@kardalum/api-schemas/dist/plugin-events.js +53 -0
  181. package/node_modules/@kardalum/api-schemas/dist/plugin-guards.d.ts +112 -0
  182. package/node_modules/@kardalum/api-schemas/dist/plugin-guards.js +118 -0
  183. package/node_modules/@kardalum/api-schemas/dist/plugin-held-embeds.d.ts +12 -0
  184. package/node_modules/@kardalum/api-schemas/dist/plugin-held-embeds.js +3 -0
  185. package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.d.ts +2 -0
  186. package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.js +3 -0
  187. package/node_modules/@kardalum/api-schemas/dist/plugin-install.d.ts +67 -0
  188. package/node_modules/@kardalum/api-schemas/dist/plugin-install.js +15 -0
  189. package/node_modules/@kardalum/api-schemas/dist/plugin-kept-parts.d.ts +138 -0
  190. package/node_modules/@kardalum/api-schemas/dist/plugin-kept-parts.js +110 -0
  191. package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.d.ts +80 -15
  192. package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.js +67 -23
  193. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.d.ts +10 -3
  194. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.js +33 -8
  195. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.d.ts +2 -1
  196. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.js +7 -1
  197. package/node_modules/@kardalum/api-schemas/dist/plugin-outbound.d.ts +1 -1
  198. package/node_modules/@kardalum/api-schemas/dist/plugin-providers.d.ts +43 -7
  199. package/node_modules/@kardalum/api-schemas/dist/plugin-providers.js +36 -5
  200. package/node_modules/@kardalum/api-schemas/dist/plugin-rich-text.d.ts +638 -0
  201. package/node_modules/@kardalum/api-schemas/dist/plugin-rich-text.js +533 -0
  202. package/node_modules/@kardalum/api-schemas/dist/plugin-service-call.d.ts +36 -0
  203. package/node_modules/@kardalum/api-schemas/dist/plugin-service-call.js +32 -0
  204. package/node_modules/@kardalum/api-schemas/dist/plugin-service-connections.d.ts +193 -0
  205. package/node_modules/@kardalum/api-schemas/dist/plugin-service-connections.js +123 -0
  206. package/node_modules/@kardalum/api-schemas/dist/plugin-service-declarations.d.ts +209 -0
  207. package/node_modules/@kardalum/api-schemas/dist/plugin-service-declarations.js +372 -0
  208. package/node_modules/@kardalum/api-schemas/dist/plugin-services.d.ts +90 -0
  209. package/node_modules/@kardalum/api-schemas/dist/plugin-services.js +204 -0
  210. package/node_modules/@kardalum/api-schemas/dist/plugin-settings.d.ts +10 -0
  211. package/node_modules/@kardalum/api-schemas/dist/plugin-settings.js +10 -1
  212. package/node_modules/@kardalum/api-schemas/dist/plugin-site-extensions.d.ts +171 -4
  213. package/node_modules/@kardalum/api-schemas/dist/plugin-site-extensions.js +406 -42
  214. package/node_modules/@kardalum/api-schemas/dist/plugin-site-requests.d.ts +69 -0
  215. package/node_modules/@kardalum/api-schemas/dist/plugin-site-requests.js +149 -0
  216. package/node_modules/@kardalum/api-schemas/dist/plugin-styles.d.ts +5 -0
  217. package/node_modules/@kardalum/api-schemas/dist/plugin-styles.js +13 -0
  218. package/node_modules/@kardalum/api-schemas/dist/plugin-uploads.d.ts +96 -0
  219. package/node_modules/@kardalum/api-schemas/dist/plugin-uploads.js +185 -0
  220. package/node_modules/@kardalum/api-schemas/dist/plugin-user-accounts.d.ts +213 -0
  221. package/node_modules/@kardalum/api-schemas/dist/plugin-user-accounts.js +131 -0
  222. package/node_modules/@kardalum/api-schemas/dist/plugin-view-kit.d.ts +54 -0
  223. package/node_modules/@kardalum/api-schemas/dist/plugin-view-kit.js +154 -0
  224. package/node_modules/@kardalum/api-schemas/dist/plugin-visitor-points.d.ts +37 -0
  225. package/node_modules/@kardalum/api-schemas/dist/plugin-visitor-points.js +124 -0
  226. package/node_modules/@kardalum/api-schemas/dist/render-cache.d.ts +126 -0
  227. package/node_modules/@kardalum/api-schemas/dist/render-cache.js +263 -0
  228. package/node_modules/@kardalum/api-schemas/dist/render-editing.d.ts +303 -0
  229. package/node_modules/@kardalum/api-schemas/dist/render-editing.js +61 -0
  230. package/node_modules/@kardalum/api-schemas/dist/rich-text-paste-hosts.d.ts +14 -0
  231. package/node_modules/@kardalum/api-schemas/dist/rich-text-paste-hosts.js +108 -0
  232. package/node_modules/@kardalum/api-schemas/dist/rich-text-shape.d.ts +66 -1
  233. package/node_modules/@kardalum/api-schemas/dist/rich-text-shape.js +465 -7
  234. package/node_modules/@kardalum/api-schemas/dist/rich-text-text.js +15 -118
  235. package/node_modules/@kardalum/api-schemas/dist/sandbox-attach.schema.d.ts +110 -0
  236. package/node_modules/@kardalum/api-schemas/dist/sandbox-attach.schema.js +36 -0
  237. package/node_modules/@kardalum/api-schemas/dist/security-overview.schema.d.ts +64 -0
  238. package/node_modules/@kardalum/api-schemas/dist/security-overview.schema.js +38 -0
  239. package/node_modules/@kardalum/api-schemas/dist/server-settings-api.schema.d.ts +9 -2
  240. package/node_modules/@kardalum/api-schemas/dist/server-settings-api.schema.js +7 -2
  241. package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.d.ts +26 -0
  242. package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.js +19 -0
  243. package/node_modules/@kardalum/api-schemas/dist/sign-in-steps.d.ts +724 -0
  244. package/node_modules/@kardalum/api-schemas/dist/sign-in-steps.js +408 -0
  245. package/node_modules/@kardalum/api-schemas/dist/sign-in.schema.d.ts +5 -3
  246. package/node_modules/@kardalum/api-schemas/dist/sign-in.schema.js +3 -1
  247. package/node_modules/@kardalum/api-schemas/dist/site-consent.d.ts +77 -0
  248. package/node_modules/@kardalum/api-schemas/dist/site-consent.js +122 -0
  249. package/node_modules/@kardalum/api-schemas/dist/structured-fields.schema.d.ts +4 -0
  250. package/node_modules/@kardalum/api-schemas/dist/structured-fields.schema.js +28 -0
  251. package/node_modules/@kardalum/api-schemas/dist/template-api.schema.d.ts +33 -0
  252. package/node_modules/@kardalum/api-schemas/dist/template-api.schema.js +26 -1
  253. package/node_modules/@kardalum/api-schemas/dist/user-api.schema.d.ts +14 -0
  254. package/node_modules/@kardalum/api-schemas/dist/user-api.schema.js +2 -0
  255. package/node_modules/@kardalum/api-schemas/dist/visitor-accounts.d.ts +482 -0
  256. package/node_modules/@kardalum/api-schemas/dist/visitor-accounts.js +380 -0
  257. package/node_modules/@kardalum/api-schemas/dist/visitor-groups.d.ts +109 -0
  258. package/node_modules/@kardalum/api-schemas/dist/visitor-groups.js +62 -0
  259. package/node_modules/@kardalum/api-schemas/package.json +1 -0
  260. package/node_modules/@kardalum/design-tokens/dist/build-css.js +9 -1
  261. package/node_modules/@kardalum/design-tokens/dist/system-dark.css +1 -0
  262. package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.css +2 -0
  263. package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.d.ts +1 -0
  264. package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.js +2 -0
  265. package/node_modules/@kardalum/design-tokens/dist/tokens.css +4 -0
  266. package/node_modules/@kardalum/design-tokens/dist/tokens.js +6 -0
  267. package/node_modules/@kardalum/design-tokens/dist/tokens.json +5 -1
  268. package/node_modules/@kardalum/design-tokens/dist/types.d.ts +4 -0
  269. package/node_modules/@kardalum/plugin-package/dist/build-reference.d.ts +17 -0
  270. package/node_modules/@kardalum/plugin-package/dist/build-reference.js +9 -0
  271. package/node_modules/@kardalum/plugin-package/dist/capabilities.d.ts +1 -1
  272. package/node_modules/@kardalum/plugin-package/dist/capabilities.js +276 -19
  273. package/node_modules/@kardalum/plugin-package/dist/client-bundle.d.ts +1 -1
  274. package/node_modules/@kardalum/plugin-package/dist/client-bundle.js +23 -0
  275. package/node_modules/@kardalum/plugin-package/dist/contract-fingerprint.d.ts +17 -0
  276. package/node_modules/@kardalum/plugin-package/dist/contract-fingerprint.js +39 -0
  277. package/node_modules/@kardalum/plugin-package/dist/delivery/admin-styles.d.ts +23 -0
  278. package/node_modules/@kardalum/plugin-package/dist/delivery/admin-styles.js +351 -0
  279. package/node_modules/@kardalum/plugin-package/dist/delivery/bundle.d.ts +2 -0
  280. package/node_modules/@kardalum/plugin-package/dist/delivery/bundle.js +1 -1
  281. package/node_modules/@kardalum/plugin-package/dist/delivery/content-access.js +21 -8
  282. package/node_modules/@kardalum/plugin-package/dist/delivery/contributions.js +1 -1
  283. package/node_modules/@kardalum/plugin-package/dist/delivery/editor-extensions.js +23 -10
  284. package/node_modules/@kardalum/plugin-package/dist/delivery/icons.js +3 -2
  285. package/node_modules/@kardalum/plugin-package/dist/delivery/index.d.ts +2 -0
  286. package/node_modules/@kardalum/plugin-package/dist/delivery/index.js +2 -0
  287. package/node_modules/@kardalum/plugin-package/dist/delivery/label-languages.js +30 -2
  288. package/node_modules/@kardalum/plugin-package/dist/delivery/licence-check.js +6 -2
  289. package/node_modules/@kardalum/plugin-package/dist/delivery/limits.d.ts +6 -0
  290. package/node_modules/@kardalum/plugin-package/dist/delivery/limits.js +6 -0
  291. package/node_modules/@kardalum/plugin-package/dist/delivery/providers.d.ts +2 -0
  292. package/node_modules/@kardalum/plugin-package/dist/delivery/providers.js +24 -6
  293. package/node_modules/@kardalum/plugin-package/dist/delivery/registry.js +15 -0
  294. package/node_modules/@kardalum/plugin-package/dist/delivery/rich-text.d.ts +2 -0
  295. package/node_modules/@kardalum/plugin-package/dist/delivery/rich-text.js +173 -0
  296. package/node_modules/@kardalum/plugin-package/dist/delivery/sample-content.js +1 -1
  297. package/node_modules/@kardalum/plugin-package/dist/delivery/server-powers.js +14 -4
  298. package/node_modules/@kardalum/plugin-package/dist/delivery/services-events.d.ts +3 -0
  299. package/node_modules/@kardalum/plugin-package/dist/delivery/services-events.js +35 -0
  300. package/node_modules/@kardalum/plugin-package/dist/delivery/sign-in-steps.d.ts +3 -0
  301. package/node_modules/@kardalum/plugin-package/dist/delivery/sign-in-steps.js +71 -0
  302. package/node_modules/@kardalum/plugin-package/dist/delivery/site-extensions.js +44 -11
  303. package/node_modules/@kardalum/plugin-package/dist/delivery/types.d.ts +7 -0
  304. package/node_modules/@kardalum/plugin-package/dist/delivery/user-accounts.d.ts +3 -0
  305. package/node_modules/@kardalum/plugin-package/dist/delivery/user-accounts.js +36 -0
  306. package/node_modules/@kardalum/plugin-package/dist/delivery/visitor-points.d.ts +3 -0
  307. package/node_modules/@kardalum/plugin-package/dist/delivery/visitor-points.js +33 -0
  308. package/node_modules/@kardalum/plugin-package/dist/index.d.ts +4 -0
  309. package/node_modules/@kardalum/plugin-package/dist/index.js +5 -0
  310. package/node_modules/@kardalum/plugin-package/dist/public-suffix.d.ts +7 -0
  311. package/node_modules/@kardalum/plugin-package/dist/public-suffix.js +23 -0
  312. package/node_modules/@kardalum/plugin-package/dist/rich-text-summary.d.ts +1 -0
  313. package/node_modules/@kardalum/plugin-package/dist/rich-text-summary.js +27 -0
  314. package/node_modules/@kardalum/plugin-package/dist/stylesheet-load-hook.d.ts +2 -0
  315. package/node_modules/@kardalum/plugin-package/dist/stylesheet-load-hook.js +28 -0
  316. package/node_modules/@kardalum/plugin-package/package.json +4 -0
  317. package/node_modules/@kardalum/ui/dist/components/select.d.ts +6 -0
  318. package/node_modules/@kardalum/ui/dist/components/select.js +7 -0
  319. package/node_modules/@kardalum/ui/dist/components/textarea.d.ts +6 -0
  320. package/node_modules/@kardalum/ui/dist/components/textarea.js +7 -0
  321. package/node_modules/@kardalum/ui/dist/index.d.ts +2 -0
  322. package/node_modules/@kardalum/ui/dist/index.js +2 -0
  323. package/package.json +15 -3
@@ -12,15 +12,28 @@ const LABEL_FIELDS = [
12
12
  ["dataTypes", "name"],
13
13
  ["editorPanels", "label"],
14
14
  ["treeActions", "label"],
15
+ // M35 C2: the content list's columns, filters and bulk actions, the tree's badges and the core screens' slots;
16
+ // a list filter's option labels are added below.
17
+ ["contentColumns", "label"],
18
+ ["treeBadges", "label"],
19
+ ["listFilters", "label"],
20
+ ["bulkActions", "label"],
21
+ ["adminSlots", "label"],
15
22
  ["scheduledTasks", "name"],
16
23
  ["mediaProcessors", "name"],
17
- ["exposedServices", "name"],
24
+ // M35 B1a (W16): a contract's, an offer's and a plugin event's label, as the install screen and the
25
+ // Connections page show them; a contract's and an event's description are added below.
26
+ ["serviceContracts", "label"],
27
+ ["exposedServices", "label"],
28
+ ["events", "label"],
18
29
  // M32 F4: what the site owner reads when choosing a provider or entering a secret.
19
30
  ["protectionProviders", "label"],
20
31
  ["searchProviders", "label"],
21
32
  ["mediaStores", "label"],
22
33
  // M32 F4b: what the login page and Server settings show for a sign-in provider.
23
34
  ["signInProviders", "label"],
35
+ // M35 U3a: what the step page, Sign-in methods and Server settings show for a sign-in step.
36
+ ["signInSteps", "label"],
24
37
  // M32 H: the mail sender the site owner chooses.
25
38
  ["mailSenders", "label"],
26
39
  ["secrets", "label"],
@@ -56,7 +69,11 @@ export function collectLabelMaps(manifest) {
56
69
  list(record(entry)?.choices).forEach((choice, j) => addMap(found, `contributions.settings[${i}].choices[${j}]`, record(choice)?.label));
57
70
  return;
58
71
  }
59
- if (contribution === "notifications" || contribution === "mailKinds") {
72
+ if (contribution === "listFilters") {
73
+ list(record(entry)?.options).forEach((option, j) => addMap(found, `contributions.listFilters[${i}].options[${j}]`, record(option)?.label));
74
+ return;
75
+ }
76
+ if (contribution === "notifications" || contribution === "mailKinds" || contribution === "serviceContracts" || contribution === "events") {
60
77
  addMap(found, `contributions.${contribution}[${i}].description`, record(entry)?.description);
61
78
  return;
62
79
  }
@@ -73,6 +90,17 @@ export function collectLabelMaps(manifest) {
73
90
  });
74
91
  list(record(type)?.tabs).forEach((tab, j) => addMap(found, `contributions.documentTypes[${i}].tabs[${j}]`, record(tab)?.name));
75
92
  });
93
+ // M35 C4a (design D14): rich text items' labels, their attributes' labels and the buttons'.
94
+ const rte = record(contributions.richTextExtensions);
95
+ list(rte?.nodes).forEach((node, i) => {
96
+ addMap(found, `contributions.richTextExtensions.nodes[${i}]`, record(node)?.label);
97
+ list(record(node)?.attrs).forEach((attr, j) => addMap(found, `contributions.richTextExtensions.nodes[${i}].attrs[${j}]`, record(attr)?.label));
98
+ });
99
+ list(rte?.marks).forEach((mark, i) => {
100
+ addMap(found, `contributions.richTextExtensions.marks[${i}]`, record(mark)?.label);
101
+ list(record(mark)?.attrs).forEach((attr, j) => addMap(found, `contributions.richTextExtensions.marks[${i}].attrs[${j}]`, record(attr)?.label));
102
+ });
103
+ list(rte?.buttons).forEach((button, i) => addMap(found, `contributions.richTextExtensions.buttons[${i}]`, record(button)?.label));
76
104
  // M32 H (H19): the form replies switch is one object, not a list.
77
105
  addMap(found, "contributions.formReplies", record(contributions.formReplies)?.label);
78
106
  addMap(found, "contributions.formReplies.description", record(contributions.formReplies)?.description);
@@ -20,7 +20,11 @@ export const LICENCE_CHECK_KEY_TEXTS = ["MCowBQYDK2VwAyEA5k/u12E1qUYgQRR4+sjtdmB
20
20
  // and the head function that builds a page's entries at render time), so a paid plugin declaring them is checked too.
21
21
  // M32 F4: the three provider keys run plugin code too (verify, index and query, put and open), so they count.
22
22
  // M32 F4b: a sign-in provider is server work the core runs (and an oauth2 one's `profile` is plugin code), so it counts.
23
- export const SERVER_CODE_CONTRIBUTIONS = ["hooks", "scheduledTasks", "mediaProcessors", "serializers", "apiRoutes", "exposedServices", "notifications", "siteRoutes", "siteFallback", "templateFilters", "templateTags", "pageHead", "protectionProviders", "searchProviders", "mediaStores", "signInProviders", "mailSenders"];
23
+ // M35 P1: a page output transform is plugin code the render runs on every public page, so it counts.
24
+ // M35 B2: a guard is a handler the core runs before a write, so it counts.
25
+ // M35 P2: a request guard and a response headers function are plugin code the core runs on every public request, so they count.
26
+ // M35 P4: a page gate and a page cache function are plugin code the core runs for every rendered public page, so they count.
27
+ export const SERVER_CODE_CONTRIBUTIONS = ["hooks", "scheduledTasks", "mediaProcessors", "serializers", "apiRoutes", "exposedServices", "notifications", "siteRoutes", "siteFallback", "templateFilters", "templateTags", "pageHead", "pageOutput", "requestGuard", "responseHeaders", "pageCache", "pageGate", "protectionProviders", "searchProviders", "mediaStores", "signInProviders", "mailSenders", "guards"];
24
28
  function declared(value) {
25
29
  if (value === true)
26
30
  return true;
@@ -63,7 +67,7 @@ const NO_KEY = "server/plugin.js carries the licence check but not Kardalum's ve
63
67
  * otherwise skipped, saying a paid listing needs it. */
64
68
  export const licenceCheck = {
65
69
  name: LICENCE_CHECK_NAME,
66
- rule: "A paid plugin (a manifest `price` above 0, or at the marketplace a listing with a live paid plan) whose manifest declares server code (`hooks`, `scheduledTasks`, `mediaProcessors`, `serializers`, `apiRoutes`, `exposedServices`, `notifications`, `siteRoutes`, `siteFallback`, `templateFilters`, `templateTags`, `pageHead`, `protectionProviders`, `searchProviders`, `mediaStores`, `signInProviders`, `mailSenders` or a `vendorService`) calls `requireEntitlement` from `@kardalum/plugin-sdk/entitlement` (SDK 0.20 or later): `server/plugin.js`, the one server bundle, carries the SDK's licence check marker and one of Kardalum's verdict keys. A paid plugin without server code passes, since the CMS's own licence gate covers it; a plugin that does not call it is skipped while its listing sells no paid plan.",
70
+ rule: "A paid plugin (a manifest `price` above 0, or at the marketplace a listing with a live paid plan) whose manifest declares server code (`hooks`, `scheduledTasks`, `mediaProcessors`, `serializers`, `apiRoutes`, `exposedServices`, `notifications`, `siteRoutes`, `siteFallback`, `templateFilters`, `templateTags`, `pageHead`, `pageOutput`, `requestGuard`, `responseHeaders`, `pageCache`, `pageGate`, `protectionProviders`, `searchProviders`, `mediaStores`, `signInProviders`, `mailSenders`, `guards` or a `vendorService`) calls `requireEntitlement` from `@kardalum/plugin-sdk/entitlement` (SDK 0.20 or later): `server/plugin.js`, the one server bundle, carries the SDK's licence check marker and one of Kardalum's verdict keys. A paid plugin without server code passes, since the CMS's own licence gate covers it; a plugin that does not call it is skipped while its listing sells no paid plan.",
67
71
  gates: ["cli", "door"],
68
72
  needsManifest: true,
69
73
  run: ({ dir, manifest, paid, server }) => {
@@ -7,6 +7,12 @@ export declare const BUNDLE_MAX_GZIP_BYTES: number;
7
7
  /** At or above this share of BUNDLE_MAX_GZIP_BYTES the "bundle size" check
8
8
  * warns: a bundle that close grows past the limit with its next dependency. */
9
9
  export declare const BUNDLE_WARN_SHARE = 0.9;
10
+ /** M35 C3 (design D4): the largest stylesheet of a client bundle the admin styles check reads. */
11
+ export declare const ADMIN_STYLESHEET_MAX_BYTES = 1048576;
12
+ /** M35 C3 (design D4): how deep rules and at-rules may nest inside a plugin's layer block (its own
13
+ * children are level 1). A deeper block is refused and not read, so the admin styles check's work stays
14
+ * linear in the file whatever its shape. */
15
+ export declare const ADMIN_STYLESHEET_NESTING_MAX = 32;
10
16
  /** A byte count as the delivery page and every rule string write it (S311 docs
11
17
  * wave): binary units, 1 KiB being 1024 bytes, the largest that divides the
12
18
  * count exactly, so a limit is never rounded into a different number. A check's
@@ -8,6 +8,12 @@ export const BUNDLE_MAX_GZIP_BYTES = 250 * 1024;
8
8
  /** At or above this share of BUNDLE_MAX_GZIP_BYTES the "bundle size" check
9
9
  * warns: a bundle that close grows past the limit with its next dependency. */
10
10
  export const BUNDLE_WARN_SHARE = 0.9;
11
+ /** M35 C3 (design D4): the largest stylesheet of a client bundle the admin styles check reads. */
12
+ export const ADMIN_STYLESHEET_MAX_BYTES = 1_048_576;
13
+ /** M35 C3 (design D4): how deep rules and at-rules may nest inside a plugin's layer block (its own
14
+ * children are level 1). A deeper block is refused and not read, so the admin styles check's work stays
15
+ * linear in the file whatever its shape. */
16
+ export const ADMIN_STYLESHEET_NESTING_MAX = 32;
11
17
  /** A byte count as the delivery page and every rule string write it (S311 docs
12
18
  * wave): binary units, 1 KiB being 1024 bytes, the largest that divides the
13
19
  * count exactly, so a limit is never rounded into a different number. A check's
@@ -1,3 +1,5 @@
1
1
  import type { DeliveryCheck } from "./types.js";
2
2
  export declare const PROVIDERS_CHECK_NAME = "Providers and secrets";
3
+ /** The problem with a label or description, or null: the texts keep to `max` and are readable, and the shape is the manifest's label. */
4
+ export declare function providerTextProblem(value: unknown, max: number): string | null;
3
5
  export declare const providersCheck: DeliveryCheck;
@@ -1,4 +1,4 @@
1
- import { PLUGIN_MAIL_KINDS_MAX, PLUGIN_MAIL_KIND_ID_MAX, PLUGIN_SECRETS_MAX, PLUGIN_SECRET_NAME_MAX, PROTECTION_FIELD_PREFIX_MAX, PROTECTION_FIELD_PREFIX_MIN, PROVIDERS_PER_KIND_MAX, PROVIDER_DESCRIPTION_MAX, PROVIDER_ID_MAX, PROVIDER_LABEL_MAX, PROVIDER_TABLE_CONTRIBUTION_KEYS, PROVIDER_TABLE_FUNCTIONS, PROVIDER_TABLE_KINDS, PluginLabelSchema, SIGN_IN_DESCRIPTION_MAX, SIGN_IN_HOSTED_DOMAIN_CLAIM_MAX, SIGN_IN_MARK_BYTES_MAX, SIGN_IN_MARK_NAME_MAX, SIGN_IN_MARK_NAME_MIN, SIGN_IN_MARK_PX_MAX, SIGN_IN_MARK_PX_MIN, SIGN_IN_SCOPES_MAX, SIGN_IN_URL_MAX, SIGN_IN_USERINFO_URLS_MAX, isPluginMailKindId, isPluginSecretName, isProtectionFieldPrefix, isProtectionWidgetScript, isProviderId, isProviderText, isSignInMark, signInDeclarationProblems, } from "@kardalum/api-schemas";
1
+ import { PLUGIN_MAIL_KINDS_MAX, PLUGIN_MAIL_KIND_ID_MAX, PLUGIN_SECRETS_MAX, PLUGIN_SECRET_NAME_MAX, PROTECTION_FIELD_PREFIX_MAX, PROTECTION_FIELD_PREFIX_MIN, PROVIDERS_PER_KIND_MAX, PROVIDER_DESCRIPTION_MAX, PROVIDER_ID_MAX, PROVIDER_LABEL_MAX, PROVIDER_TABLE_CONTRIBUTION_KEYS, PROVIDER_TABLE_FUNCTIONS, PROVIDER_TABLE_KINDS, PluginLabelSchema, SIGN_IN_DESCRIPTION_MAX, SIGN_IN_HOSTED_DOMAIN_CLAIM_MAX, SIGN_IN_MARK_BYTES_MAX, SIGN_IN_MARK_NAME_MAX, SIGN_IN_MARK_NAME_MIN, SIGN_IN_MARK_PX_MAX, SIGN_IN_MARK_PX_MIN, SIGN_IN_SCOPES_MAX, SIGN_IN_URL_MAX, SIGN_IN_USERINFO_URLS_MAX, isPluginMailKindId, isPluginSecretName, isProtectionFieldPrefix, isProtectionWidgetScript, isConsentToolFile, isProviderId, isProviderText, isSignInMark, signInDeclarationProblems, } from "@kardalum/api-schemas";
2
2
  import { readFileSync, statSync } from "node:fs";
3
3
  import { join } from "node:path";
4
4
  import { pngSize } from "../package-contract.js";
@@ -10,16 +10,18 @@ import { contributionsOf, failed, listCapped, passed, plural, record } from "./s
10
10
  // what the author wrote. M32 F4b (D33) adds `signInProviders` to the same check (it stays the 39th):
11
11
  // the shared base, then signInDeclarationProblems against the secrets the manifest declares.
12
12
  export const PROVIDERS_CHECK_NAME = "Providers and secrets";
13
+ const CHECKED_KINDS = PROVIDER_TABLE_KINDS.filter((kind) => kind !== "signInStep");
13
14
  /** The words that count each table kind's entries in the check's summary. */
14
15
  const KIND_WORDS = {
15
16
  formProtection: { one: "form protection provider", many: "form protection providers" },
16
17
  search: { one: "search provider", many: "search providers" },
17
18
  mediaStore: { one: "media store", many: "media stores" },
18
19
  mail: { one: "mail sender", many: "mail senders" },
20
+ consent: { one: "consent tool", many: "consent tools" },
19
21
  signIn: { one: "sign-in provider", many: "sign-in providers" },
20
22
  };
21
23
  /** Per kind: the functions a provider must have, the ones it may have, and the words that count it. */
22
- const KINDS = PROVIDER_TABLE_KINDS.map((kind) => ({
24
+ const KINDS = CHECKED_KINDS.map((kind) => ({
23
25
  key: PROVIDER_TABLE_CONTRIBUTION_KEYS[kind],
24
26
  ...PROVIDER_TABLE_FUNCTIONS[kind],
25
27
  ...KIND_WORDS[kind],
@@ -52,7 +54,7 @@ function declaredSecretNamesOf(value) {
52
54
  return names;
53
55
  }
54
56
  /** The problem with a label or description, or null: the texts keep to `max` and are readable, and the shape is the manifest's label. */
55
- function textProblem(value, max) {
57
+ export function providerTextProblem(value, max) {
56
58
  const texts = labelTexts(value);
57
59
  if (texts === null || texts.length === 0)
58
60
  return "must be text, or a map of language to text with English";
@@ -79,12 +81,12 @@ function checkEntryText(entry, where, issues, labelRequired, descriptionChecked
79
81
  issues.push(`${where}.label is required`);
80
82
  }
81
83
  else {
82
- const problem = textProblem(entry.label, PROVIDER_LABEL_MAX);
84
+ const problem = providerTextProblem(entry.label, PROVIDER_LABEL_MAX);
83
85
  if (problem !== null)
84
86
  issues.push(`${where}.label ${problem}`);
85
87
  }
86
88
  if (descriptionChecked && entry.description !== undefined) {
87
- const problem = textProblem(entry.description, PROVIDER_DESCRIPTION_MAX);
89
+ const problem = providerTextProblem(entry.description, PROVIDER_DESCRIPTION_MAX);
88
90
  if (problem !== null)
89
91
  issues.push(`${where}.description ${problem}`);
90
92
  }
@@ -163,6 +165,21 @@ function checkProviders(kind, value, issues, declaredSecretNames, whyNotShipped,
163
165
  }
164
166
  }
165
167
  }
168
+ if (kind.key === "consentTools") {
169
+ // M35 P5 (P5-D5): the tool's script and stylesheet, files of public/ by the one rule, that the package carries.
170
+ for (const [field, extension, example] of [["script", ".js", 'such as "consent.js"'], ["stylesheet", ".css", 'such as "consent.css"']]) {
171
+ const file = entry[field];
172
+ if (file === undefined && field === "stylesheet")
173
+ continue;
174
+ if (!isConsentToolFile(file, extension)) {
175
+ issues.push(`${where}.${field} must name a ${extension} file in the plugin's public/ folder, ${example}`);
176
+ continue;
177
+ }
178
+ const why = whyNotShipped(`public/${file}`);
179
+ if (why !== null)
180
+ issues.push(`${where}.${field} names public/${file}, which ${why}`);
181
+ }
182
+ }
166
183
  if (kind.key === "signInProviders") {
167
184
  // The protocol decides whether `profile` is required or refused, so its rule is signInDeclarationProblems' alone.
168
185
  issues.push(...signInDeclarationProblems(entry, declaredSecretNames, where));
@@ -255,7 +272,8 @@ export const providersCheck = {
255
272
  `a \`label\` of at most ${PROVIDER_LABEL_MAX} characters and, when given, a \`description\` of at most ${PROVIDER_DESCRIPTION_MAX}; a form protection provider has a \`fieldPrefix\` of ${PROTECTION_FIELD_PREFIX_MIN} to ${PROTECTION_FIELD_PREFIX_MAX} lower-case letters, digits and "_" that ends with "_" and does not start with "kp", a \`verify\` function and, when given, a \`widgetScript\` naming a \`.js\` file of its \`public/\` folder that the package carries; ` +
256
273
  "a search provider has `index`, `remove` and `query` functions; a media store has `put`, `open`, `delete` and `exists` functions. " +
257
274
  `\`signInProviders\` keeps to the same count, id and label rules; an \`oidc\` entry declares exactly one of \`issuer\` and \`issuerSecret\` and no \`profile\`, an \`oauth2\` entry declares \`authorizationUrl\`, \`tokenUrl\`, 1 to ${SIGN_IN_USERINFO_URLS_MAX} \`userInfoUrls\` and a \`profile\` function, every address is https with no credentials or fragment and at most ${SIGN_IN_URL_MAX} characters, \`scopes\` lists 1 to ${SIGN_IN_SCOPES_MAX} distinct scopes, \`clientIdSecret\` and \`clientSecretSecret\` name two different secrets the plugin declares in \`secrets\` (as \`issuerSecret\` does when given), and \`icon\` and \`clientAuth\` are a listed value when given; a sign-in entry's \`description\` is at most ${SIGN_IN_DESCRIPTION_MAX} characters per language with no control, direction or other hidden character, its \`mark\`, when given, names a PNG of its \`public/\` folder (${SIGN_IN_MARK_NAME_MIN} to ${SIGN_IN_MARK_NAME_MAX} lower-case letters, digits and "-", ending in ".png") that the package carries, square, ${SIGN_IN_MARK_PX_MIN} to ${SIGN_IN_MARK_PX_MAX} pixels a side and at most ${SIGN_IN_MARK_BYTES_MAX.toLocaleString("en-US")} bytes, and its \`hostedDomainClaim\`, on an \`oidc\` entry only, is 1 to ${SIGN_IN_HOSTED_DOMAIN_CLAIM_MAX} characters: a lower-case letter, then lower-case letters, digits and "_". ` +
258
- "`mailSenders` keeps to the same count, id and label rules, and a mail sender has a `send` function (`ready` is optional); `formReplies` is one object with a `label` and, when given, a `description`, kept to the same limits. " +
275
+ "`mailSenders` keeps to the same count, id and label rules, and a mail sender has a `send` function (`ready` is optional). " +
276
+ "`consentTools` keeps to the same count, id and label rules, and a consent tool has a `script` naming a `.js` file and, when given, a `stylesheet` naming a `.css` file of its `public/` folder that the package carries; `formReplies` is one object with a `label` and, when given, a `description`, kept to the same limits. " +
259
277
  `\`mailKinds\` holds at most ${PLUGIN_MAIL_KINDS_MAX} kinds of email, each with an \`id\` of a letter, then letters, digits and "_", 1 to ${PLUGIN_MAIL_KIND_ID_MAX} characters, used once, a \`label\` and, when given, a \`description\`, kept to the same limits. ` +
260
278
  `\`secrets\` holds at most ${PLUGIN_SECRETS_MAX} entries, each with a \`name\` of 1 to ${PLUGIN_SECRET_NAME_MAX} lower-case letters, digits and "_" starting with a letter, used once, and a \`label\` and \`description\` kept to the same limits. A label or description is text, or a map of language to text with English.`,
261
279
  gates: ["cli", "door"],
@@ -2,12 +2,14 @@ import { FILE_NAME_MAX, MAX_DOC_PAGE_BYTES, MAX_ASSET_CONTENT_BYTES, MAX_DOC_PAG
2
2
  import { ENTRY_NAME_MAX, ENTRY_SEGMENTS_MAX, MAX_ENTRIES, MAX_ENTRY_BYTES, MAX_TOTAL_BYTES } from "../extract.js";
3
3
  import { COVER_HEIGHT, COVER_WIDTH } from "../package-contract.js";
4
4
  import { SAMPLE_CONTENT_MAX_BYTES, readShippedSampleContent } from "../sample-content.js";
5
+ import { adminStylesCheck } from "./admin-styles.js";
5
6
  import { aiDeclarationsCheck } from "./ai-declarations.js";
6
7
  import { archiveNamesCheck } from "./archive-names.js";
7
8
  import { bundleSizeCheck } from "./bundle.js";
8
9
  import { contentAccessCheck } from "./content-access.js";
9
10
  import { apiRoutesCheck, databaseCheck, iconNamesCheck, requiredViewsCheck, vendorServiceCheck } from "./contributions.js";
10
11
  import { editorExtensionsCheck } from "./editor-extensions.js";
12
+ import { richTextCheck } from "./rich-text.js";
11
13
  import { graphqlFieldsCheck } from "./graphql-fields.js";
12
14
  import { labelLanguagesCheck } from "./label-languages.js";
13
15
  import { licenceCheck } from "./licence-check.js";
@@ -16,7 +18,11 @@ import { localeParityCheck, localesCheck } from "./locales.js";
16
18
  import { coverCheck, docsContractCheck, docsLinksCheck, readmeCheck } from "./package-files.js";
17
19
  import { pluginSettingsCheck } from "./plugin-settings.js";
18
20
  import { serverPowersCheck } from "./server-powers.js";
21
+ import { userAccountsCheck } from "./user-accounts.js";
22
+ import { servicesEventsCheck } from "./services-events.js";
23
+ import { visitorPointsCheck } from "./visitor-points.js";
19
24
  import { providersCheck } from "./providers.js";
25
+ import { signInStepsCheck } from "./sign-in-steps.js";
20
26
  import { installOptionsCheck, sampleContentCheck } from "./sample-content.js";
21
27
  import { siteExtensionsCheck } from "./site-extensions.js";
22
28
  import { describeError } from "./support.js";
@@ -55,9 +61,16 @@ export const DELIVERY_CHECKS = [
55
61
  contentAccessCheck,
56
62
  siteExtensionsCheck,
57
63
  editorExtensionsCheck,
64
+ // M35 C4a (design D14): rich text items, after the editor extensions.
65
+ richTextCheck,
58
66
  providersCheck,
67
+ // M35 U3a (D5): sign-in steps, after the providers check that leaves that key to it.
68
+ signInStepsCheck,
59
69
  pluginSettingsCheck,
60
70
  serverPowersCheck,
71
+ userAccountsCheck,
72
+ servicesEventsCheck,
73
+ visitorPointsCheck,
61
74
  databaseCheck,
62
75
  vendorServiceCheck,
63
76
  licenceCheck,
@@ -80,6 +93,7 @@ export const DELIVERY_CHECKS = [
80
93
  entryBudgetCheck,
81
94
  archiveNamesCheck,
82
95
  bundleSizeCheck,
96
+ adminStylesCheck,
83
97
  ];
84
98
  /** What only one gate can measure, as data, so the page and the tests see every
85
99
  * check either gate can emit. Each CLI name is the one its check module in the
@@ -93,6 +107,7 @@ export const GATE_ONLY_CHECKS = [
93
107
  { name: "templates parse", gate: "cli", rule: "Every template parses as Liquid; the marketplace never parses template code and reports it skipped.", skippedAtDoor: true },
94
108
  { name: "template references resolve", gate: "cli", rule: "Every `render` and `layout` target names a declared alias; the marketplace does not read template text and reports it skipped.", skippedAtDoor: true },
95
109
  { name: "CLI commands", gate: "cli", rule: `The \`kardalum.cli\` member of the plugin's own \`package.json\`, when there is one, declares at most ${PLUGIN_CLI_COMMANDS_MAX} commands, each with a name of 1 to ${PLUGIN_CLI_COMMAND_NAME_MAX} lower-case letters, digits and \`-\` and a summary of 1 to ${PLUGIN_CLI_SUMMARY_MAX} printable characters, used once, a module path inside the package ending in \`.js\` or \`.mjs\`, and a \`plugin\` equal to the manifest's \`id\` whose last segment is not a word the CLI keeps for its own commands. The marketplace receives a built package without that \`package.json\`, so it never runs this check.`, skippedAtDoor: false },
110
+ { name: "service contracts", gate: "cli", rule: "Each offer or use of another plugin's service contract matches the project's copy in `contracts/`, which `kardalum plugin contract add` writes: an offer implements every method of its version, a use's range admits the copy, and a copy changed by hand fails. With `--online`, and always on `kardalum plugin publish`, the copies are also compared with the marketplace, and the plugin's own contracts are held to the growth rule against the newest published version of each. A newer minor, or a marketplace that cannot be reached, is reported on an advisory `service contract updates` line that never fails.", skippedAtDoor: false },
96
111
  { name: "reference", gate: "cli", rule: "The manifest yields a valid `reference.json`, which the build writes and the marketplace reads.", skippedAtDoor: false },
97
112
  { name: "CMS version range", gate: "cli", rule: "Advisory beside a written range: the build writes `cmsVersion` from the plugin SDK it is built with (the manifest need not name one), and this check says which range that is. A written `cmsVersion` that admits Kardalum versions the plugin was not built against, or that cannot be read, warns; one that admits no version, or a missing plugin SDK when none is written, fails.", skippedAtDoor: false },
98
113
  { name: "plugin SDK federation share key correct", gate: "cli", rule: "The federation config shares the SDK under its package name, and react, react-dom and the SDK each set `singleton: true` and `import: false`, so the bundle carries no fallback copy of what the host provides. The check reads the literal `shared: { ... }` in `vite.config.ts`, so write every entry out in it: it cannot follow a spread, a variable or a helper.", skippedAtDoor: false },
@@ -0,0 +1,2 @@
1
+ import type { DeliveryCheck } from "./types.js";
2
+ export declare const richTextCheck: DeliveryCheck;
@@ -0,0 +1,173 @@
1
+ import { join } from "node:path";
2
+ import { lstatSync, readFileSync } from "node:fs";
3
+ import { PluginTemplateFileSchema, RICH_TEXT_BUTTONS_PER_PLUGIN_MAX, RICH_TEXT_MARKS_PER_PLUGIN_MAX, RICH_TEXT_NODES_PER_PLUGIN_MAX, RichTextExtensionsSchema, checkRichTextExtensionDeclarations, compareRichTextVersions, forEachRichTextItem, listIssues, richTextVersionSummaryOf } from "@kardalum/api-schemas";
4
+ import { publicSuffixPasteHosts } from "../public-suffix.js";
5
+ import { contributionsOf, failed, list, passed, record, warning } from "./support.js";
6
+ /** The most of a template file the warnings read (a partial is small; the template checks bound the rest). */
7
+ const PARTIAL_READ_MAX_BYTES = 262_144;
8
+ const RAW_WARNING = "A partial must never assume the plugin's validate passed: data stored while the plugin was off was never judged";
9
+ /** The text between each `{{` and its `}}`, by indexOf, never a pattern. */
10
+ function outputTags(text) {
11
+ const tags = [];
12
+ let at = 0;
13
+ while (at < text.length) {
14
+ const open = text.indexOf("{{", at);
15
+ if (open === -1)
16
+ break;
17
+ const close = text.indexOf("}}", open + 2);
18
+ if (close === -1)
19
+ break;
20
+ tags.push(text.slice(open + 2, close));
21
+ at = close + 2;
22
+ }
23
+ return tags;
24
+ }
25
+ /** Whether an output tag's first word is `content`, after Liquid's whitespace control (`{{- content -}}`): a leading
26
+ * `-` and spaces are skipped by a forward loop. */
27
+ function printsContent(tag) {
28
+ let at = 0;
29
+ while (at < tag.length) {
30
+ const code = tag.charCodeAt(at);
31
+ if (code !== 0x2d && code !== 0x20 && code !== 0x09 && code !== 0x0a && code !== 0x0d)
32
+ break;
33
+ at += 1;
34
+ }
35
+ if (!tag.startsWith("content", at))
36
+ return false;
37
+ const after = tag.charCodeAt(at + "content".length);
38
+ // The word ends at the tag's end, a space, a filter's "|" or whitespace control's "-"; `contents` is another name.
39
+ return Number.isNaN(after) || after === 0x20 || after === 0x09 || after === 0x0a || after === 0x0d || after === 0x7c || after === 0x2d;
40
+ }
41
+ /** A partial's text, read only when its name is a valid template file and it is a regular file within the cap. At the
42
+ * door the manifest's templates are unchecked when this runs, so a `../` name, a link, a directory or a device is
43
+ * never read (the same guard as templates.ts's fileSize). */
44
+ function partialText(dir, file) {
45
+ if (!PluginTemplateFileSchema.safeParse(file).success)
46
+ return null;
47
+ try {
48
+ const path = join(dir, "templates", ...file.split("/"));
49
+ const stat = lstatSync(path, { throwIfNoEntry: false });
50
+ if (!stat?.isFile() || stat.size > PARTIAL_READ_MAX_BYTES)
51
+ return null;
52
+ return readFileSync(path, "utf8");
53
+ }
54
+ catch {
55
+ return null;
56
+ }
57
+ }
58
+ /** How many values of a sample-content.json the foreign item walk reads before it gives up. */
59
+ const SAMPLE_CONTENT_WALK_MAX = 100_000;
60
+ /** The plugin ids items in a sample document name, other than `own`. Answers false when the walk could not read the
61
+ * whole file (past SAMPLE_CONTENT_WALK_MAX values, or a document past the rich text walk's bounds), so the check
62
+ * fails closed instead of passing what it never saw. */
63
+ function foreignItems(value, own, into) {
64
+ const stack = [value];
65
+ let visited = 0;
66
+ while (stack.length > 0) {
67
+ if (visited >= SAMPLE_CONTENT_WALK_MAX)
68
+ return false;
69
+ const current = stack.pop();
70
+ visited += 1;
71
+ if (current === null || typeof current !== "object")
72
+ continue;
73
+ const node = current;
74
+ if (node.type === "doc") {
75
+ const whole = forEachRichTextItem(node, (item) => {
76
+ if (typeof item.attrs.plugin === "string" && item.attrs.plugin !== own)
77
+ into.add(item.attrs.plugin);
78
+ });
79
+ if (!whole)
80
+ return false;
81
+ continue;
82
+ }
83
+ for (const member of Array.isArray(current) ? current : Object.values(node))
84
+ stack.push(member);
85
+ }
86
+ return true;
87
+ }
88
+ // M35 C4a (design D14): one check at validate and at the door, on the same manifest.json.
89
+ export const richTextCheck = {
90
+ name: "rich text extensions",
91
+ rule: `\`richTextExtensions\` declares at most ${RICH_TEXT_NODES_PER_PLUGIN_MAX} nodes, ${RICH_TEXT_MARKS_PER_PLUGIN_MAX} marks and ` +
92
+ `${RICH_TEXT_BUTTONS_PER_PLUGIN_MAX} buttons; each node's partial is a partial template of this plugin; a button inserts a declared ` +
93
+ "node, toggles a declared mark or opens a view with the plugin's own action; a node made from pasted addresses names a " +
94
+ "`url` attribute and lists hosts of the core's form (`*.` only as the whole first label), none covering a public suffix; " +
95
+ "a `json` attribute and `textFromView` need the node's own view; icons come from the core's list; sample content holds " +
96
+ "only this plugin's items; against the previous published version (the marketplace, and validate --online), an item keeps " +
97
+ "its shape and its editorial setting. It warns " +
98
+ "for a partial that also carries a `kardalum:block` annotation, a wrapper partial that never prints `content`, and a partial " +
99
+ "that prints `item.data` through `raw`.",
100
+ gates: ["cli", "door"],
101
+ needsManifest: true,
102
+ run: ({ manifest, dir, sampleContent, previousRichText }) => {
103
+ const contributions = contributionsOf(manifest);
104
+ const declared = contributions.richTextExtensions;
105
+ if (declared === undefined)
106
+ return { status: "skipped", message: "no rich text extensions declared" };
107
+ const parsed = RichTextExtensionsSchema.safeParse(declared);
108
+ if (!parsed.success) {
109
+ return failed(`manifest.json declares its rich text extensions wrongly: ${parsed.error.issues.slice(0, 5).map((issue) => `${issue.path.join(".")}: ${issue.message.slice(0, 160)}`).join("; ")}`);
110
+ }
111
+ const issues = checkRichTextExtensionDeclarations(manifest);
112
+ if (issues.length > 0)
113
+ return failed(`manifest.json declares its rich text extensions wrongly: ${listIssues(issues)}`);
114
+ // M35 C4b (design D17): a wildcard whose remainder is a public suffix would match every site under it.
115
+ const wide = publicSuffixPasteHosts(declared);
116
+ if (wide.length > 0) {
117
+ return failed(`manifest.json lists paste hosts that cover a public suffix, so every site under them would match: ${wide.slice(0, 5).map(({ node, host }) => `the item "${node.slice(0, 40)}" pastes from ${host.slice(0, 80)}`).join("; ")}`);
118
+ }
119
+ // M35 C4b (design D13, D14, evidence 169): against the previous published version. A changed shape or editorial
120
+ // setting fails (stored items would no longer match); a dropped name, a retyped or dropped attribute and a newly
121
+ // required one warn, with the server's own sentences.
122
+ const warnings = [];
123
+ const notes = [];
124
+ if (previousRichText !== undefined) {
125
+ const after = richTextVersionSummaryOf(declared);
126
+ if (previousRichText.summary === null)
127
+ notes.push(`the previous version ${previousRichText.version} has no rich text summary, so it was not compared`);
128
+ else if (after !== null) {
129
+ const changes = compareRichTextVersions(previousRichText.summary, after);
130
+ const refused = [
131
+ ...changes.shapeChanged.map((name) => `changes the shape of the rich text item "${name}" from version ${previousRichText.version}: a new shape needs a new name`),
132
+ ...changes.editorialChanged.map((name) => `turns the rich text item "${name}" editorial or back from version ${previousRichText.version}: a new editorial item needs a new name`),
133
+ ];
134
+ if (refused.length > 0)
135
+ return failed(`manifest.json ${refused.slice(0, 5).join("; ")}`);
136
+ warnings.push(...changes.warnings);
137
+ }
138
+ }
139
+ const own = typeof manifest.id === "string" ? manifest.id : "";
140
+ // ShippedSampleContent's states are "absent", "unreadable" and "ships"; the registry always fills it (registry.ts:60).
141
+ if (sampleContent?.status === "ships") {
142
+ const foreign = new Set();
143
+ if (!foreignItems(sampleContent.file, own, foreign))
144
+ return failed("sample content is too large to check for other plugins' items");
145
+ if (foreign.size > 0)
146
+ return failed(`sample content holds rich text items of other plugins: ${[...foreign].slice(0, 5).map((id) => id.slice(0, 60)).join(", ")}`);
147
+ }
148
+ const files = new Map();
149
+ for (const raw of list(contributions.templates)) {
150
+ const entry = record(raw);
151
+ if (entry && entry.kind === "partial" && typeof entry.alias === "string" && typeof entry.file === "string")
152
+ files.set(entry.alias, entry.file);
153
+ }
154
+ const nodes = parsed.data.nodes ?? [];
155
+ for (const node of nodes) {
156
+ const file = files.get(node.partial);
157
+ const text = file === undefined ? null : partialText(dir, file);
158
+ if (text === null)
159
+ continue;
160
+ if (text.includes("kardalum:block"))
161
+ warnings.push(`the partial "${node.partial}" also carries a kardalum:block annotation, so it shows twice in the insert menu`);
162
+ const tags = outputTags(text);
163
+ if (node.shape === "wrapper" && !tags.some(printsContent)) {
164
+ warnings.push(`the wrapper "${node.name}"'s partial never prints content, so the text inside the box is not shown`);
165
+ }
166
+ if (tags.some((tag) => tag.includes("item.data") && tag.includes("raw")))
167
+ warnings.push(`the partial "${node.partial}" prints item.data through raw. ${RAW_WARNING}`);
168
+ }
169
+ const marks = parsed.data.marks ?? [];
170
+ const summary = `${nodes.length + marks.length} item${nodes.length + marks.length === 1 ? "" : "s"}`;
171
+ return warnings.length > 0 ? warning(summary, [...warnings, ...notes]) : passed(summary, notes.length > 0 ? notes : undefined);
172
+ },
173
+ };
@@ -65,7 +65,7 @@ function pageTokenProblem(nodes, manifest) {
65
65
  for (const node of nodes) {
66
66
  for (const fieldId of sampleDeferredFieldIds(node.data)) {
67
67
  if (required.get(node.documentType)?.has(fieldId) === true) {
68
- return `sample-content.json node "${node.slug}" field "${fieldId}": a page token cannot fill a required field: the page is created first and the field is saved after`;
68
+ return `sample-content.json node "${node.slug}" field "${fieldId}": a page token cannot fill a required field: the sample is checked before any of its pages exist, so the field would be checked empty`;
69
69
  }
70
70
  }
71
71
  }
@@ -1,4 +1,4 @@
1
- import { DURABLE_EVENT_TRIES, OUTBOUND_METHODS, OUTBOUND_REASON_MAX, PLUGIN_HOOK_EVENTS, PLUGIN_SEALED_KINDS_MAX, PLUGIN_SEALED_KIND_ID_MAX, PLUGIN_SEALED_VALUE_MAX_BYTES, PluginOutboundRequestsSchema, PluginSealedValuesSchema, } from "@kardalum/api-schemas";
1
+ import { DURABLE_EVENT_TRIES, NON_DURABLE_HOOK_EVENTS, OUTBOUND_METHODS, OUTBOUND_REASON_MAX, PLUGIN_HOOK_EVENTS, PLUGIN_SEALED_KINDS_MAX, PLUGIN_SEALED_KIND_ID_MAX, PLUGIN_SEALED_VALUE_MAX_BYTES, PluginOutboundRequestsSchema, PluginSealedValuesSchema, isDurableAllowed, parsePluginEventKey, } from "@kardalum/api-schemas";
2
2
  import { cmsRangeAdmitsBelow } from "../cms-range.js";
3
3
  import { contributionsOf, failed, listCapped, passed, plural, record } from "./support.js";
4
4
  // M33 K16, K17, K18 (core part 3): the 42nd delivery check. `outboundRequests` and `sealedValues` are
@@ -25,7 +25,7 @@ function readHooks(value) {
25
25
  const seen = new Set();
26
26
  let durable = 0;
27
27
  const take = (event, where) => {
28
- if (typeof event !== "string" || !EVENTS.has(event)) {
28
+ if (typeof event !== "string" || (!EVENTS.has(event) && parsePluginEventKey(event) === null)) {
29
29
  issues.push(`${where} names ${typeof event === "string" ? quoted(event) : "no event"}, which is not an event a plugin can hook`);
30
30
  return false;
31
31
  }
@@ -49,8 +49,14 @@ function readHooks(value) {
49
49
  issues.push(`${where} must be an event name or { event, durable: true }`);
50
50
  return;
51
51
  }
52
- if (take(plain.event, where))
52
+ if (take(plain.event, where)) {
53
+ // M35 B2: a shutdown is gone after a restart, so its hook is never kept in the outbox.
54
+ if (!isDurableAllowed(plain.event)) {
55
+ issues.push(`${where} names ${quoted(plain.event)} as durable: ${plain.event} is never durable, because its moment is gone after a restart`);
56
+ return;
57
+ }
53
58
  durable += 1;
59
+ }
54
60
  });
55
61
  return { durable, issues };
56
62
  }
@@ -68,6 +74,10 @@ function readHooks(value) {
68
74
  issues.push(`${where} must be a handler or { handler, durable: true }`);
69
75
  continue;
70
76
  }
77
+ if (!isDurableAllowed(event)) {
78
+ issues.push(`${where} is durable: ${event} is never durable, because its moment is gone after a restart`);
79
+ continue;
80
+ }
71
81
  durable += 1;
72
82
  }
73
83
  return { durable, issues };
@@ -76,7 +86,7 @@ export const serverPowersCheck = {
76
86
  name: SERVER_POWERS_CHECK_NAME,
77
87
  rule: `\`outboundRequests\` has a \`reason\` of 1 to ${OUTBOUND_REASON_MAX} characters in each language, with English, and 1 to ${OUTBOUND_METHODS.length} \`methods\` from ${OUTBOUND_METHODS.join(", ")}, each once; ` +
78
88
  `\`sealedValues\` lists 1 to ${PLUGIN_SEALED_KINDS_MAX} kinds, each with an \`id\` of 1 to ${PLUGIN_SEALED_KIND_ID_MAX} characters used once and a \`label\`, and a sealed value is at most ${PLUGIN_SEALED_VALUE_MAX_BYTES} bytes; ` +
79
- `a \`hooks\` entry names an event a plugin can hook once, and is durable only as \`{ handler, durable: true }\` (\`{ event, durable: true }\` in \`manifest.json\`), which keeps the event until the handler finishes and tries it ${DURABLE_EVENT_TRIES} times; ` +
89
+ `a \`hooks\` entry names an event a plugin can hook, or another plugin's event as \`<plugin id>:<event name>\`, once, and is durable only as \`{ handler, durable: true }\` (\`{ event, durable: true }\` in \`manifest.json\`), which keeps the event until the handler finishes and tries it ${DURABLE_EVENT_TRIES} times, while ${NON_DURABLE_HOOK_EVENTS.map((event) => `\`${event}\``).join(", ")} is never durable, because its moment is gone after a restart; ` +
80
90
  `a package that uses any of the three, declares \`heldEmbeds\`, has a form protection provider with a \`widgetScript\` or has a sign-in entry with a \`hostedDomainClaim\`, has a \`cmsVersion\` admitting no version below ${SERVER_POWERS_CMS_FLOOR}, because an older CMS cannot run them.`,
81
91
  gates: ["cli", "door"],
82
92
  needsManifest: true,
@@ -0,0 +1,3 @@
1
+ import type { DeliveryCheck } from "./types.js";
2
+ export declare const SERVICES_EVENTS_CHECK_NAME = "services and events";
3
+ export declare const servicesEventsCheck: DeliveryCheck;
@@ -0,0 +1,35 @@
1
+ import { checkServiceDeclarations, experimentalPointsDeclared, listIssues, readServiceDeclarations } from "@kardalum/api-schemas";
2
+ import { failed, passed, plural } from "./support.js";
3
+ // M35 B1a (W16): the 44th delivery check. The four keys and plugin event hook keys, by the rule the SDK's
4
+ // manifest schema and the server run (api-schemas). The comparison with versions on the marketplace
5
+ // (does an offer name a published version, has the owner grown its contract by the rule) is the door's
6
+ // (Task 16 of 35-B1a), and for an author the CLI's own "service contracts" check (35-B1c), which compares an
7
+ // offer or a use with the project's copy and, with --online, the marketplace, and online runs the growth rule
8
+ // on the plugin's own contracts. No CMS floor yet (the wave 1 decision).
9
+ export const SERVICES_EVENTS_CHECK_NAME = "services and events";
10
+ export const servicesEventsCheck = {
11
+ name: SERVICES_EVENTS_CHECK_NAME,
12
+ rule: "`serviceContracts`, `exposedServices`, `usedServices` and `events` follow the services rule: names and versions in their alphabets, " +
13
+ "method schemas in the contract subset (JSON Schema of plain data, built by `contractMethod`), no field named like a secret, no personal field in an event, " +
14
+ "an offer of the plugin's own contract implementing every method of the version it names; a `hooks` key names a core event or another plugin's event as `<plugin id>:<event name>`, never the plugin's own.",
15
+ gates: ["cli", "door"],
16
+ needsManifest: true,
17
+ run: ({ manifest }) => {
18
+ const issues = checkServiceDeclarations(manifest);
19
+ if (issues.length > 0)
20
+ return failed(`manifest.json declares its services or events wrongly: ${listIssues(issues)}`);
21
+ const declarations = readServiceDeclarations(manifest);
22
+ const parts = [
23
+ declarations.contracts.length > 0 ? plural(declarations.contracts.length, "contract") : null,
24
+ declarations.offers.length > 0 ? plural(declarations.offers.length, "offer") : null,
25
+ declarations.uses.length > 0 ? plural(declarations.uses.length, "use") : null,
26
+ declarations.events.length > 0 ? plural(declarations.events.length, "event") : null,
27
+ declarations.listens.length > 0 ? `hears ${plural(declarations.listens.length, "plugin event")}` : null,
28
+ ].filter((part) => part !== null);
29
+ if (parts.length === 0)
30
+ return passed("no services or plugin events declared");
31
+ const keys = ["serviceContracts", "exposedServices", "usedServices", "events"];
32
+ const experimental = experimentalPointsDeclared(manifest).filter((point) => keys.includes(point));
33
+ return passed(`${parts.join(", ")}${experimental.length > 0 ? ` (experimental: ${experimental.join(", ")})` : ""}`);
34
+ },
35
+ };
@@ -0,0 +1,3 @@
1
+ import type { DeliveryCheck } from "./types.js";
2
+ export declare const SIGN_IN_STEPS_CHECK_NAME = "sign-in steps";
3
+ export declare const signInStepsCheck: DeliveryCheck;