@discourse/types 2026.8.0-b88e77d4 → 2026.9.0-eb242063

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 (782) hide show
  1. package/declarations/admin/components/admin-badges-show.d.ts.map +1 -1
  2. package/declarations/admin/components/admin-config-areas/components.d.ts.map +1 -1
  3. package/declarations/admin/components/admin-config-areas/upcoming-change-item.d.ts +1 -1
  4. package/declarations/admin/components/admin-config-areas/upcoming-change-item.d.ts.map +1 -1
  5. package/declarations/admin/components/admin-plugin-config-page.d.ts +1 -0
  6. package/declarations/admin/components/admin-plugin-config-page.d.ts.map +1 -1
  7. package/declarations/admin/components/admin-plugins-list-item.d.ts.map +1 -1
  8. package/declarations/admin/components/admin-report-stacked-chart.d.ts +1 -1
  9. package/declarations/admin/components/admin-report-stacked-chart.d.ts.map +1 -1
  10. package/declarations/admin/components/dashboard/engagement/headline.d.ts +4 -3
  11. package/declarations/admin/components/dashboard/engagement/headline.d.ts.map +1 -1
  12. package/declarations/admin/components/dashboard/report-error-state.d.ts +3 -0
  13. package/declarations/admin/components/dashboard/report-error-state.d.ts.map +1 -0
  14. package/declarations/admin/components/dashboard/reports.d.ts.map +1 -1
  15. package/declarations/admin/components/dashboard/search.d.ts +5 -3
  16. package/declarations/admin/components/dashboard/search.d.ts.map +1 -1
  17. package/declarations/admin/components/dashboard/traffic.d.ts +8 -0
  18. package/declarations/admin/components/dashboard/traffic.d.ts.map +1 -1
  19. package/declarations/admin/components/edit-category-localizations.d.ts.map +1 -1
  20. package/declarations/admin/components/edit-category-panel.d.ts +0 -5
  21. package/declarations/admin/components/edit-category-panel.d.ts.map +1 -1
  22. package/declarations/admin/components/form-template/form.d.ts.map +1 -1
  23. package/declarations/admin/components/modal/badge-preview.d.ts.map +1 -1
  24. package/declarations/admin/components/redesigned-admin-dashboard.d.ts.map +1 -1
  25. package/declarations/admin/components/schema-setting/field.d.ts +2 -1
  26. package/declarations/admin/components/schema-setting/field.d.ts.map +1 -1
  27. package/declarations/admin/components/schema-setting/types/icon.d.ts +10 -0
  28. package/declarations/admin/components/schema-setting/types/icon.d.ts.map +1 -0
  29. package/declarations/admin/components/site-setting.d.ts +12 -1
  30. package/declarations/admin/components/site-setting.d.ts.map +1 -1
  31. package/declarations/admin/components/site-settings/icon.d.ts.map +1 -1
  32. package/declarations/admin/components/site-settings/integer.d.ts +0 -1
  33. package/declarations/admin/components/site-settings/integer.d.ts.map +1 -1
  34. package/declarations/admin/components/site-traffic-explorer-breakdown-card.d.ts +21 -0
  35. package/declarations/admin/components/site-traffic-explorer-breakdown-card.d.ts.map +1 -0
  36. package/declarations/admin/components/site-traffic-explorer-breakdown-modal.d.ts +10 -0
  37. package/declarations/admin/components/site-traffic-explorer-breakdown-modal.d.ts.map +1 -0
  38. package/declarations/admin/components/site-traffic-explorer-breakdown-row.d.ts +3 -0
  39. package/declarations/admin/components/site-traffic-explorer-breakdown-row.d.ts.map +1 -0
  40. package/declarations/admin/components/site-traffic-explorer-dimension-label.d.ts +8 -0
  41. package/declarations/admin/components/site-traffic-explorer-dimension-label.d.ts.map +1 -0
  42. package/declarations/admin/components/site-traffic-explorer-filter-pills.d.ts +16 -0
  43. package/declarations/admin/components/site-traffic-explorer-filter-pills.d.ts.map +1 -0
  44. package/declarations/admin/components/site-traffic-explorer-metric.d.ts +3 -0
  45. package/declarations/admin/components/site-traffic-explorer-metric.d.ts.map +1 -0
  46. package/declarations/admin/components/site-traffic-explorer-pageview-count.d.ts +3 -0
  47. package/declarations/admin/components/site-traffic-explorer-pageview-count.d.ts.map +1 -0
  48. package/declarations/admin/components/site-traffic-explorer.d.ts +67 -0
  49. package/declarations/admin/components/site-traffic-explorer.d.ts.map +1 -0
  50. package/declarations/admin/components/upsert-category/appearance.d.ts +6 -10
  51. package/declarations/admin/components/upsert-category/appearance.d.ts.map +1 -1
  52. package/declarations/admin/components/version-checks.d.ts.map +1 -1
  53. package/declarations/admin/controllers/admin/dashboard/general.d.ts +1 -2
  54. package/declarations/admin/controllers/admin/dashboard/general.d.ts.map +1 -1
  55. package/declarations/admin/controllers/admin/dashboard.d.ts +1 -3
  56. package/declarations/admin/controllers/admin/dashboard.d.ts.map +1 -1
  57. package/declarations/admin/controllers/admin-customize-themes/show/index.d.ts +2 -0
  58. package/declarations/admin/controllers/admin-customize-themes/show/index.d.ts.map +1 -1
  59. package/declarations/admin/controllers/admin-plugins/index.d.ts +0 -3
  60. package/declarations/admin/controllers/admin-plugins/index.d.ts.map +1 -1
  61. package/declarations/admin/controllers/admin-plugins.d.ts +2 -2
  62. package/declarations/admin/controllers/admin-plugins.d.ts.map +1 -1
  63. package/declarations/admin/controllers/admin-search-logs/index.d.ts +2 -1
  64. package/declarations/admin/controllers/admin-search-logs/index.d.ts.map +1 -1
  65. package/declarations/admin/controllers/admin-search-logs/term.d.ts +2 -1
  66. package/declarations/admin/controllers/admin-search-logs/term.d.ts.map +1 -1
  67. package/declarations/admin/controllers/admin-site-traffic.d.ts +50 -0
  68. package/declarations/admin/controllers/admin-site-traffic.d.ts.map +1 -0
  69. package/declarations/admin/controllers/admin-watched-words/action.d.ts +2 -0
  70. package/declarations/admin/controllers/admin-watched-words/action.d.ts.map +1 -1
  71. package/declarations/admin/lib/color-scheme-manager.d.ts +44 -0
  72. package/declarations/admin/lib/color-scheme-manager.d.ts.map +1 -1
  73. package/declarations/admin/lib/constants.d.ts.map +1 -1
  74. package/declarations/admin/lib/dashboard-format.d.ts +1 -0
  75. package/declarations/admin/lib/dashboard-format.d.ts.map +1 -1
  76. package/declarations/admin/lib/engagement-headline.d.ts +2 -0
  77. package/declarations/admin/lib/engagement-headline.d.ts.map +1 -0
  78. package/declarations/admin/lib/format-pageview-count.d.ts +4 -0
  79. package/declarations/admin/lib/format-pageview-count.d.ts.map +1 -0
  80. package/declarations/admin/lib/search-headline.d.ts +2 -0
  81. package/declarations/admin/lib/search-headline.d.ts.map +1 -0
  82. package/declarations/admin/models/admin-dashboard.d.ts +1 -1
  83. package/declarations/admin/models/admin-dashboard.d.ts.map +1 -1
  84. package/declarations/admin/models/site-setting.d.ts +2 -0
  85. package/declarations/admin/models/site-setting.d.ts.map +1 -1
  86. package/declarations/admin/models/staff-action-log.d.ts.map +1 -1
  87. package/declarations/admin/routes/admin-route-map.d.ts.map +1 -1
  88. package/declarations/admin/routes/admin-site-traffic.d.ts +52 -0
  89. package/declarations/admin/routes/admin-site-traffic.d.ts.map +1 -0
  90. package/declarations/admin/routes/new-category.d.ts.map +1 -1
  91. package/declarations/admin/services/admin-emojis.d.ts.map +1 -1
  92. package/declarations/admin/templates/admin-site-traffic-loading.d.ts +3 -0
  93. package/declarations/admin/templates/admin-site-traffic-loading.d.ts.map +1 -0
  94. package/declarations/admin/templates/admin-site-traffic.d.ts +3 -0
  95. package/declarations/admin/templates/admin-site-traffic.d.ts.map +1 -0
  96. package/declarations/app/adapters/topic-list.d.ts +2 -1
  97. package/declarations/app/adapters/topic-list.d.ts.map +1 -1
  98. package/declarations/app/app.d.ts +1 -1
  99. package/declarations/app/blocks/block-outlet.d.ts +51 -76
  100. package/declarations/app/blocks/block-outlet.d.ts.map +1 -1
  101. package/declarations/app/blocks/builtin/block-group.d.ts +10 -4
  102. package/declarations/app/blocks/builtin/block-group.d.ts.map +1 -1
  103. package/declarations/app/blocks/builtin/block-head.d.ts +19 -11
  104. package/declarations/app/blocks/builtin/block-head.d.ts.map +1 -1
  105. package/declarations/app/blocks/builtin/index.d.ts +30 -0
  106. package/declarations/app/blocks/builtin/index.d.ts.map +1 -1
  107. package/declarations/app/blocks/conditions/condition.d.ts +71 -52
  108. package/declarations/app/blocks/conditions/condition.d.ts.map +1 -1
  109. package/declarations/app/blocks/conditions/decorator.d.ts +29 -20
  110. package/declarations/app/blocks/conditions/decorator.d.ts.map +1 -1
  111. package/declarations/app/blocks/conditions/index.d.ts +2 -0
  112. package/declarations/app/blocks/conditions/index.d.ts.map +1 -1
  113. package/declarations/app/blocks/conditions/outlet-arg.d.ts +17 -36
  114. package/declarations/app/blocks/conditions/outlet-arg.d.ts.map +1 -1
  115. package/declarations/app/blocks/conditions/route.d.ts +19 -21
  116. package/declarations/app/blocks/conditions/route.d.ts.map +1 -1
  117. package/declarations/app/blocks/conditions/setting.d.ts +21 -28
  118. package/declarations/app/blocks/conditions/setting.d.ts.map +1 -1
  119. package/declarations/app/blocks/conditions/user.d.ts +23 -14
  120. package/declarations/app/blocks/conditions/user.d.ts.map +1 -1
  121. package/declarations/app/blocks/conditions/viewport.d.ts +17 -18
  122. package/declarations/app/blocks/conditions/viewport.d.ts.map +1 -1
  123. package/declarations/app/blocks/index.d.ts +7 -0
  124. package/declarations/app/blocks/index.d.ts.map +1 -1
  125. package/declarations/app/blocks/types.d.ts +153 -0
  126. package/declarations/app/blocks/types.d.ts.map +1 -0
  127. package/declarations/app/components/about-page-extra-groups.d.ts.map +1 -1
  128. package/declarations/app/components/ace-editor.d.ts +3 -0
  129. package/declarations/app/components/ace-editor.d.ts.map +1 -1
  130. package/declarations/app/components/admin-onboarding/banner.d.ts +8 -1
  131. package/declarations/app/components/admin-onboarding/banner.d.ts.map +1 -1
  132. package/declarations/app/components/admin-onboarding/step.d.ts +2 -2
  133. package/declarations/app/components/admin-onboarding/step.d.ts.map +1 -1
  134. package/declarations/app/components/advanced-mode-toggle.d.ts +6 -2
  135. package/declarations/app/components/advanced-mode-toggle.d.ts.map +1 -1
  136. package/declarations/app/components/bookmark-icon.d.ts +1 -1
  137. package/declarations/app/components/bookmark-menu.d.ts +1 -1
  138. package/declarations/app/components/bulk-select-topics-dropdown.d.ts +1 -0
  139. package/declarations/app/components/bulk-select-topics-dropdown.d.ts.map +1 -1
  140. package/declarations/app/components/categories-boxes.d.ts +2 -0
  141. package/declarations/app/components/categories-boxes.d.ts.map +1 -1
  142. package/declarations/app/components/category-list-item.d.ts +4 -0
  143. package/declarations/app/components/category-list-item.d.ts.map +1 -1
  144. package/declarations/app/components/code-login-form.d.ts.map +1 -1
  145. package/declarations/app/components/composer-action-title.d.ts +0 -8
  146. package/declarations/app/components/composer-action-title.d.ts.map +1 -1
  147. package/declarations/app/components/{composer-actions-new.d.ts → composer-actions.d.ts} +1 -1
  148. package/declarations/app/components/composer-actions.d.ts.map +1 -0
  149. package/declarations/app/components/composer-body.d.ts +1 -1
  150. package/declarations/app/components/composer-body.d.ts.map +1 -1
  151. package/declarations/app/components/composer-container.d.ts +4 -2
  152. package/declarations/app/components/composer-container.d.ts.map +1 -1
  153. package/declarations/app/components/composer-editor.d.ts +3 -0
  154. package/declarations/app/components/composer-editor.d.ts.map +1 -1
  155. package/declarations/app/components/composer-messages.d.ts.map +1 -1
  156. package/declarations/app/components/create-topic-button.d.ts +5 -0
  157. package/declarations/app/components/create-topic-button.d.ts.map +1 -1
  158. package/declarations/app/components/design-wizard/colors-section.d.ts +3 -0
  159. package/declarations/app/components/design-wizard/colors-section.d.ts.map +1 -0
  160. package/declarations/app/components/design-wizard/controls.d.ts +23 -0
  161. package/declarations/app/components/design-wizard/controls.d.ts.map +1 -0
  162. package/declarations/app/components/design-wizard/fonts-section.d.ts +9 -0
  163. package/declarations/app/components/design-wizard/fonts-section.d.ts.map +1 -0
  164. package/declarations/app/components/design-wizard/homepage-section.d.ts +3 -0
  165. package/declarations/app/components/design-wizard/homepage-section.d.ts.map +1 -0
  166. package/declarations/app/components/design-wizard/section.d.ts +3 -0
  167. package/declarations/app/components/design-wizard/section.d.ts.map +1 -0
  168. package/declarations/app/components/design-wizard/theme-section.d.ts +3 -0
  169. package/declarations/app/components/design-wizard/theme-section.d.ts.map +1 -0
  170. package/declarations/app/components/design-wizard-panel.d.ts +9 -0
  171. package/declarations/app/components/design-wizard-panel.d.ts.map +1 -0
  172. package/declarations/app/components/docked-composer.d.ts.map +1 -1
  173. package/declarations/app/components/form-template-field/composer.d.ts +8 -1
  174. package/declarations/app/components/form-template-field/composer.d.ts.map +1 -1
  175. package/declarations/app/components/group-flair-inputs.d.ts +0 -1
  176. package/declarations/app/components/group-flair-inputs.d.ts.map +1 -1
  177. package/declarations/app/components/header/icons.d.ts.map +1 -1
  178. package/declarations/app/components/header/topic/info.d.ts.map +1 -1
  179. package/declarations/app/components/invite-panel.d.ts.map +1 -1
  180. package/declarations/app/components/language-switcher.d.ts.map +1 -1
  181. package/declarations/app/components/modal/bookmark.d.ts.map +1 -1
  182. package/declarations/app/components/modal/bulk-topic-actions.d.ts.map +1 -1
  183. package/declarations/app/components/modal/content-language-preferences.d.ts +3 -1
  184. package/declarations/app/components/modal/content-language-preferences.d.ts.map +1 -1
  185. package/declarations/app/components/modal/create-invite-with-roles.d.ts +11 -3
  186. package/declarations/app/components/modal/create-invite-with-roles.d.ts.map +1 -1
  187. package/declarations/app/components/modal/create-invite.d.ts.map +1 -1
  188. package/declarations/app/components/modal/flag.d.ts +2 -2
  189. package/declarations/app/components/modal/history.d.ts +1 -1
  190. package/declarations/app/components/modal/keyboard-shortcuts-help.d.ts.map +1 -1
  191. package/declarations/app/components/modal/sidebar-section-form.d.ts +53 -19
  192. package/declarations/app/components/modal/sidebar-section-form.d.ts.map +1 -1
  193. package/declarations/app/components/parent-category-row.d.ts +1 -0
  194. package/declarations/app/components/parent-category-row.d.ts.map +1 -1
  195. package/declarations/app/components/plugin-outlet.d.ts +11 -1
  196. package/declarations/app/components/plugin-outlet.d.ts.map +1 -1
  197. package/declarations/app/components/post/menu/liked-users-list.d.ts +2 -13
  198. package/declarations/app/components/post/menu/liked-users-list.d.ts.map +1 -1
  199. package/declarations/app/components/post/menu/liked-users-menu.d.ts.map +1 -1
  200. package/declarations/app/components/post-stream.d.ts +2 -5
  201. package/declarations/app/components/post-stream.d.ts.map +1 -1
  202. package/declarations/app/components/post.d.ts +1 -1
  203. package/declarations/app/components/post.d.ts.map +1 -1
  204. package/declarations/app/components/reviewable/index.d.ts +2 -5
  205. package/declarations/app/components/reviewable/index.d.ts.map +1 -1
  206. package/declarations/app/components/reviewable/insights.d.ts.map +1 -1
  207. package/declarations/app/components/reviewable/item.d.ts +10 -12
  208. package/declarations/app/components/reviewable/item.d.ts.map +1 -1
  209. package/declarations/app/components/reviewable/timeline.d.ts +1 -7
  210. package/declarations/app/components/reviewable/timeline.d.ts.map +1 -1
  211. package/declarations/app/components/reviewable-bundled-action.d.ts +1 -1
  212. package/declarations/app/components/reviewable-bundled-action.d.ts.map +1 -1
  213. package/declarations/app/components/setting-definition-field.d.ts.map +1 -1
  214. package/declarations/app/components/setting-field/category.d.ts +7 -0
  215. package/declarations/app/components/setting-field/category.d.ts.map +1 -0
  216. package/declarations/app/components/setting-field/enum.d.ts +5 -0
  217. package/declarations/app/components/setting-field/enum.d.ts.map +1 -1
  218. package/declarations/app/components/setting-field/group.d.ts +9 -0
  219. package/declarations/app/components/setting-field/group.d.ts.map +1 -0
  220. package/declarations/app/components/setting-field/icon.d.ts +3 -0
  221. package/declarations/app/components/setting-field/icon.d.ts.map +1 -0
  222. package/declarations/app/components/setting-field/integer.d.ts +1 -0
  223. package/declarations/app/components/setting-field/integer.d.ts.map +1 -1
  224. package/declarations/app/components/setting-field/locale-enum.d.ts +5 -0
  225. package/declarations/app/components/setting-field/locale-enum.d.ts.map +1 -0
  226. package/declarations/app/components/setting-field/tag-group-list.d.ts +7 -0
  227. package/declarations/app/components/setting-field/tag-group-list.d.ts.map +1 -0
  228. package/declarations/app/components/setting-field/tag-list.d.ts +7 -0
  229. package/declarations/app/components/setting-field/tag-list.d.ts.map +1 -0
  230. package/declarations/app/components/sidebar/anonymous/categories-section.d.ts +2 -0
  231. package/declarations/app/components/sidebar/anonymous/categories-section.d.ts.map +1 -1
  232. package/declarations/app/components/sidebar/anonymous/sections.d.ts +2 -0
  233. package/declarations/app/components/sidebar/anonymous/sections.d.ts.map +1 -1
  234. package/declarations/app/components/sidebar/anonymous/tags-section.d.ts +2 -0
  235. package/declarations/app/components/sidebar/anonymous/tags-section.d.ts.map +1 -1
  236. package/declarations/app/components/sidebar/api-section.d.ts +6 -2
  237. package/declarations/app/components/sidebar/api-section.d.ts.map +1 -1
  238. package/declarations/app/components/sidebar/api-sections.d.ts.map +1 -1
  239. package/declarations/app/components/sidebar/common/all-categories-section-link.d.ts +6 -2
  240. package/declarations/app/components/sidebar/common/all-categories-section-link.d.ts.map +1 -1
  241. package/declarations/app/components/sidebar/common/all-tags-section-link.d.ts +6 -2
  242. package/declarations/app/components/sidebar/common/all-tags-section-link.d.ts.map +1 -1
  243. package/declarations/app/components/sidebar/common/custom-section.d.ts +1 -0
  244. package/declarations/app/components/sidebar/common/custom-section.d.ts.map +1 -1
  245. package/declarations/app/components/sidebar/common/custom-sections.d.ts.map +1 -1
  246. package/declarations/app/components/sidebar/more-section-link.d.ts.map +1 -1
  247. package/declarations/app/components/sidebar/more-section-links.d.ts +2 -0
  248. package/declarations/app/components/sidebar/more-section-links.d.ts.map +1 -1
  249. package/declarations/app/components/sidebar/more-section-trigger.d.ts.map +1 -1
  250. package/declarations/app/components/sidebar/section-form-link.d.ts +0 -2
  251. package/declarations/app/components/sidebar/section-form-link.d.ts.map +1 -1
  252. package/declarations/app/components/sidebar/section-link.d.ts.map +1 -1
  253. package/declarations/app/components/sidebar/section.d.ts +57 -1
  254. package/declarations/app/components/sidebar/section.d.ts.map +1 -1
  255. package/declarations/app/components/sidebar/sections.d.ts.map +1 -1
  256. package/declarations/app/components/sidebar/user/categories-section.d.ts +2 -0
  257. package/declarations/app/components/sidebar/user/categories-section.d.ts.map +1 -1
  258. package/declarations/app/components/sidebar/user/sections.d.ts +38 -0
  259. package/declarations/app/components/sidebar/user/sections.d.ts.map +1 -1
  260. package/declarations/app/components/sidebar/user/tags-section.d.ts +2 -0
  261. package/declarations/app/components/sidebar/user/tags-section.d.ts.map +1 -1
  262. package/declarations/app/components/sidebar.d.ts +12 -0
  263. package/declarations/app/components/sidebar.d.ts.map +1 -1
  264. package/declarations/app/components/subcategories-with-featured-topics.d.ts +1 -0
  265. package/declarations/app/components/subcategories-with-featured-topics.d.ts.map +1 -1
  266. package/declarations/app/components/tag-settings.d.ts.map +1 -1
  267. package/declarations/app/components/topic-bookmarks-menu.d.ts +1 -1
  268. package/declarations/app/components/topic-category.d.ts.map +1 -1
  269. package/declarations/app/components/topic-dismiss-buttons.d.ts.map +1 -1
  270. package/declarations/app/components/topic-drafts-dropdown.d.ts.map +1 -1
  271. package/declarations/app/components/topic-footer-buttons.d.ts +0 -2
  272. package/declarations/app/components/topic-footer-buttons.d.ts.map +1 -1
  273. package/declarations/app/components/topic-list/header/sortable-column.d.ts +1 -0
  274. package/declarations/app/components/topic-list/header/sortable-column.d.ts.map +1 -1
  275. package/declarations/app/components/topic-post-badges.d.ts.map +1 -1
  276. package/declarations/app/components/topic-timeline/container.d.ts.map +1 -1
  277. package/declarations/app/components/topic-timeline/scroller.d.ts.map +1 -1
  278. package/declarations/app/components/user/users-popup.d.ts +7 -0
  279. package/declarations/app/components/user/users-popup.d.ts.map +1 -1
  280. package/declarations/app/components/user-menu/bookmarks-list.d.ts.map +1 -1
  281. package/declarations/app/components/user-menu/items-list.d.ts +1 -1
  282. package/declarations/app/components/user-menu/items-list.d.ts.map +1 -1
  283. package/declarations/app/components/user-menu/likes-notifications-list.d.ts.map +1 -1
  284. package/declarations/app/components/user-menu/messages-list.d.ts.map +1 -1
  285. package/declarations/app/components/user-menu/notifications-list.d.ts.map +1 -1
  286. package/declarations/app/components/user-menu/other-notifications-list.d.ts.map +1 -1
  287. package/declarations/app/components/user-menu/replies-notifications-list.d.ts.map +1 -1
  288. package/declarations/app/components/welcome-banner.d.ts.map +1 -1
  289. package/declarations/app/controllers/exception.d.ts +5 -6
  290. package/declarations/app/controllers/exception.d.ts.map +1 -1
  291. package/declarations/app/controllers/full-page-search.d.ts.map +1 -1
  292. package/declarations/app/controllers/preferences/interface.d.ts +0 -1
  293. package/declarations/app/controllers/preferences/interface.d.ts.map +1 -1
  294. package/declarations/app/controllers/topic.d.ts.map +1 -1
  295. package/declarations/app/deprecation-workflow.d.ts.map +1 -1
  296. package/declarations/app/form-kit/components/fk/control/checkbox.d.ts.map +1 -1
  297. package/declarations/app/form-kit/components/fk/control/icon.d.ts.map +1 -1
  298. package/declarations/app/form-kit/components/fk/control/input.d.ts +2 -0
  299. package/declarations/app/form-kit/components/fk/control/input.d.ts.map +1 -1
  300. package/declarations/app/form-kit/components/fk/control/password.d.ts.map +1 -1
  301. package/declarations/app/form-kit/components/fk/control/tag-chooser.d.ts.map +1 -1
  302. package/declarations/app/form-kit/components/fk/field-data.d.ts +15 -4
  303. package/declarations/app/form-kit/components/fk/field-data.d.ts.map +1 -1
  304. package/declarations/app/form-kit/components/fk/form.d.ts.map +1 -1
  305. package/declarations/app/form-kit/lib/constants.d.ts +0 -1
  306. package/declarations/app/form-kit/lib/constants.d.ts.map +1 -1
  307. package/declarations/app/form-kit/lib/validator.d.ts.map +1 -1
  308. package/declarations/app/helpers/category-list-subcategories.d.ts +30 -0
  309. package/declarations/app/helpers/category-list-subcategories.d.ts.map +1 -0
  310. package/declarations/app/initializers/dev-tools.d.ts +10 -3
  311. package/declarations/app/initializers/dev-tools.d.ts.map +1 -1
  312. package/declarations/app/initializers/freeze-block-registry.d.ts +21 -6
  313. package/declarations/app/initializers/freeze-block-registry.d.ts.map +1 -1
  314. package/declarations/app/instance-initializers/topic-footer-buttons.d.ts.map +1 -1
  315. package/declarations/app/instance-initializers/video-placeholder.d.ts.map +1 -1
  316. package/declarations/app/lib/-internals/drag-and-drop/consumer-may-throw.d.ts +17 -0
  317. package/declarations/app/lib/-internals/drag-and-drop/consumer-may-throw.d.ts.map +1 -0
  318. package/declarations/app/lib/-internals/drag-and-drop/drag-dwell.d.ts +64 -0
  319. package/declarations/app/lib/-internals/drag-and-drop/drag-dwell.d.ts.map +1 -0
  320. package/declarations/app/lib/-internals/drag-and-drop/drop-target-kernel.d.ts +145 -0
  321. package/declarations/app/lib/-internals/drag-and-drop/drop-target-kernel.d.ts.map +1 -0
  322. package/declarations/app/lib/-internals/drag-and-drop/external-vocabulary.d.ts +63 -0
  323. package/declarations/app/lib/-internals/drag-and-drop/external-vocabulary.d.ts.map +1 -0
  324. package/declarations/app/lib/-internals/drag-and-drop/native-drag-adoption.d.ts +60 -0
  325. package/declarations/app/lib/-internals/drag-and-drop/native-drag-adoption.d.ts.map +1 -0
  326. package/declarations/app/lib/-internals/drag-and-drop/vocabulary.d.ts +81 -0
  327. package/declarations/app/lib/-internals/drag-and-drop/vocabulary.d.ts.map +1 -0
  328. package/declarations/app/lib/api.d.ts +1 -0
  329. package/declarations/app/lib/api.d.ts.map +1 -1
  330. package/declarations/app/lib/blocks/-internals/components/block-layout-wrapper.d.ts +14 -78
  331. package/declarations/app/lib/blocks/-internals/components/block-layout-wrapper.d.ts.map +1 -1
  332. package/declarations/app/lib/blocks/-internals/components/block-outlet-inline-error.d.ts +10 -7
  333. package/declarations/app/lib/blocks/-internals/components/block-outlet-inline-error.d.ts.map +1 -1
  334. package/declarations/app/lib/blocks/-internals/components/block-outlet-root-container.d.ts +21 -12
  335. package/declarations/app/lib/blocks/-internals/components/block-outlet-root-container.d.ts.map +1 -1
  336. package/declarations/app/lib/blocks/-internals/css.d.ts +21 -24
  337. package/declarations/app/lib/blocks/-internals/css.d.ts.map +1 -1
  338. package/declarations/app/lib/blocks/-internals/debug-hooks.d.ts +193 -138
  339. package/declarations/app/lib/blocks/-internals/debug-hooks.d.ts.map +1 -1
  340. package/declarations/app/lib/blocks/-internals/decorator.d.ts +43 -216
  341. package/declarations/app/lib/blocks/-internals/decorator.d.ts.map +1 -1
  342. package/declarations/app/lib/blocks/-internals/entry-processing.d.ts +61 -129
  343. package/declarations/app/lib/blocks/-internals/entry-processing.d.ts.map +1 -1
  344. package/declarations/app/lib/blocks/-internals/error.d.ts +61 -69
  345. package/declarations/app/lib/blocks/-internals/error.d.ts.map +1 -1
  346. package/declarations/app/lib/blocks/-internals/matching/condition-evaluator.d.ts +18 -12
  347. package/declarations/app/lib/blocks/-internals/matching/condition-evaluator.d.ts.map +1 -1
  348. package/declarations/app/lib/blocks/-internals/matching/outlet-matcher.d.ts +64 -37
  349. package/declarations/app/lib/blocks/-internals/matching/outlet-matcher.d.ts.map +1 -1
  350. package/declarations/app/lib/blocks/-internals/matching/page-definitions.d.ts +105 -106
  351. package/declarations/app/lib/blocks/-internals/matching/page-definitions.d.ts.map +1 -1
  352. package/declarations/app/lib/blocks/-internals/matching/url-matcher.d.ts +19 -11
  353. package/declarations/app/lib/blocks/-internals/matching/url-matcher.d.ts.map +1 -1
  354. package/declarations/app/lib/blocks/-internals/matching/value-matcher.d.ts +42 -34
  355. package/declarations/app/lib/blocks/-internals/matching/value-matcher.d.ts.map +1 -1
  356. package/declarations/app/lib/blocks/-internals/patterns.d.ts +85 -83
  357. package/declarations/app/lib/blocks/-internals/patterns.d.ts.map +1 -1
  358. package/declarations/app/lib/blocks/-internals/registry/block.d.ts +47 -85
  359. package/declarations/app/lib/blocks/-internals/registry/block.d.ts.map +1 -1
  360. package/declarations/app/lib/blocks/-internals/registry/condition.d.ts +26 -26
  361. package/declarations/app/lib/blocks/-internals/registry/condition.d.ts.map +1 -1
  362. package/declarations/app/lib/blocks/-internals/registry/helpers.d.ts +54 -47
  363. package/declarations/app/lib/blocks/-internals/registry/helpers.d.ts.map +1 -1
  364. package/declarations/app/lib/blocks/-internals/registry/outlet.d.ts +30 -25
  365. package/declarations/app/lib/blocks/-internals/registry/outlet.d.ts.map +1 -1
  366. package/declarations/app/lib/blocks/-internals/types.d.ts +58 -0
  367. package/declarations/app/lib/blocks/-internals/types.d.ts.map +1 -0
  368. package/declarations/app/lib/blocks/-internals/utils.d.ts +59 -86
  369. package/declarations/app/lib/blocks/-internals/utils.d.ts.map +1 -1
  370. package/declarations/app/lib/blocks/-internals/validation/args.d.ts +178 -224
  371. package/declarations/app/lib/blocks/-internals/validation/args.d.ts.map +1 -1
  372. package/declarations/app/lib/blocks/-internals/validation/block-args.d.ts +32 -23
  373. package/declarations/app/lib/blocks/-internals/validation/block-args.d.ts.map +1 -1
  374. package/declarations/app/lib/blocks/-internals/validation/block-decorator.d.ts +23 -17
  375. package/declarations/app/lib/blocks/-internals/validation/block-decorator.d.ts.map +1 -1
  376. package/declarations/app/lib/blocks/-internals/validation/condition-args.d.ts +26 -16
  377. package/declarations/app/lib/blocks/-internals/validation/condition-args.d.ts.map +1 -1
  378. package/declarations/app/lib/blocks/-internals/validation/conditions.d.ts +23 -18
  379. package/declarations/app/lib/blocks/-internals/validation/conditions.d.ts.map +1 -1
  380. package/declarations/app/lib/blocks/-internals/validation/constraints.d.ts +31 -17
  381. package/declarations/app/lib/blocks/-internals/validation/constraints.d.ts.map +1 -1
  382. package/declarations/app/lib/blocks/-internals/validation/layout.d.ts +77 -85
  383. package/declarations/app/lib/blocks/-internals/validation/layout.d.ts.map +1 -1
  384. package/declarations/app/lib/blocks/index.d.ts +127 -2
  385. package/declarations/app/lib/blocks/index.d.ts.map +1 -1
  386. package/declarations/app/lib/codeblock-buttons.d.ts.map +1 -1
  387. package/declarations/app/lib/composer/actions-registry.d.ts +4 -0
  388. package/declarations/app/lib/composer/actions-registry.d.ts.map +1 -0
  389. package/declarations/app/lib/composer/composer-position.d.ts.map +1 -1
  390. package/declarations/app/lib/composer/rich-editor-extensions.d.ts +7 -0
  391. package/declarations/app/lib/composer/rich-editor-extensions.d.ts.map +1 -1
  392. package/declarations/app/lib/composer/text-manipulation.d.ts +4 -0
  393. package/declarations/app/lib/composer/text-manipulation.d.ts.map +1 -1
  394. package/declarations/app/lib/composer/toolbar.d.ts.map +1 -1
  395. package/declarations/app/lib/content-localization.d.ts +14 -1
  396. package/declarations/app/lib/content-localization.d.ts.map +1 -1
  397. package/declarations/app/lib/customization-source.d.ts +26 -0
  398. package/declarations/app/lib/customization-source.d.ts.map +1 -0
  399. package/declarations/app/lib/dag.d.ts +73 -79
  400. package/declarations/app/lib/dag.d.ts.map +1 -1
  401. package/declarations/app/lib/deprecated.d.ts +21 -3
  402. package/declarations/app/lib/deprecated.d.ts.map +1 -1
  403. package/declarations/app/lib/design-wizard-preview.d.ts +52 -0
  404. package/declarations/app/lib/design-wizard-preview.d.ts.map +1 -0
  405. package/declarations/app/lib/download-blob.d.ts +3 -0
  406. package/declarations/app/lib/download-blob.d.ts.map +1 -0
  407. package/declarations/app/lib/download-strategy.d.ts +2 -0
  408. package/declarations/app/lib/download-strategy.d.ts.map +1 -0
  409. package/declarations/app/lib/element-class-lease.d.ts +37 -0
  410. package/declarations/app/lib/element-class-lease.d.ts.map +1 -0
  411. package/declarations/app/lib/filter-mode.d.ts +9 -0
  412. package/declarations/app/lib/filter-mode.d.ts.map +1 -1
  413. package/declarations/app/lib/geometry.d.ts +11 -0
  414. package/declarations/app/lib/geometry.d.ts.map +1 -0
  415. package/declarations/app/lib/helpers.d.ts +43 -9
  416. package/declarations/app/lib/helpers.d.ts.map +1 -1
  417. package/declarations/app/lib/icon-library.d.ts +7 -3
  418. package/declarations/app/lib/icon-library.d.ts.map +1 -1
  419. package/declarations/app/lib/later.d.ts +3 -1
  420. package/declarations/app/lib/later.d.ts.map +1 -1
  421. package/declarations/app/lib/locale-normalizer.d.ts +11 -0
  422. package/declarations/app/lib/locale-normalizer.d.ts.map +1 -0
  423. package/declarations/app/lib/plugin-api.d.ts +36 -5
  424. package/declarations/app/lib/plugin-api.d.ts.map +1 -1
  425. package/declarations/app/lib/registry/block-outlets.d.ts +2 -2
  426. package/declarations/app/lib/registry/block-outlets.d.ts.map +1 -1
  427. package/declarations/app/lib/registry/transformers.d.ts.map +1 -1
  428. package/declarations/app/lib/report-client-error.d.ts +10 -0
  429. package/declarations/app/lib/report-client-error.d.ts.map +1 -0
  430. package/declarations/app/lib/resize-measurements.d.ts +43 -0
  431. package/declarations/app/lib/resize-measurements.d.ts.map +1 -0
  432. package/declarations/app/lib/reviewable-registry.d.ts +12 -0
  433. package/declarations/app/lib/reviewable-registry.d.ts.map +1 -0
  434. package/declarations/app/lib/search.d.ts.map +1 -1
  435. package/declarations/app/lib/setting-field-registry.d.ts.map +1 -1
  436. package/declarations/app/lib/sidebar/active-link.d.ts +25 -0
  437. package/declarations/app/lib/sidebar/active-link.d.ts.map +1 -0
  438. package/declarations/app/lib/sidebar/base-custom-sidebar-section.d.ts +50 -0
  439. package/declarations/app/lib/sidebar/base-custom-sidebar-section.d.ts.map +1 -1
  440. package/declarations/app/lib/sidebar/custom-sections.d.ts.map +1 -1
  441. package/declarations/app/lib/sidebar/link-drop.d.ts +37 -0
  442. package/declarations/app/lib/sidebar/link-drop.d.ts.map +1 -0
  443. package/declarations/app/lib/sidebar/section.d.ts +12 -0
  444. package/declarations/app/lib/sidebar/section.d.ts.map +1 -1
  445. package/declarations/app/lib/sidebar/user/tags-section/tag-section-link.d.ts +1 -1
  446. package/declarations/app/lib/svg-sprite-loader.d.ts +31 -0
  447. package/declarations/app/lib/svg-sprite-loader.d.ts.map +1 -1
  448. package/declarations/app/lib/textarea-text-manipulation.d.ts.map +1 -1
  449. package/declarations/app/lib/url.d.ts +0 -1
  450. package/declarations/app/lib/url.d.ts.map +1 -1
  451. package/declarations/app/models/category.d.ts.map +1 -1
  452. package/declarations/app/models/composer.d.ts.map +1 -1
  453. package/declarations/app/models/post.d.ts +1 -0
  454. package/declarations/app/models/post.d.ts.map +1 -1
  455. package/declarations/app/models/reviewable-history.d.ts +2 -4
  456. package/declarations/app/models/reviewable-history.d.ts.map +1 -1
  457. package/declarations/app/models/reviewable.d.ts +40 -0
  458. package/declarations/app/models/reviewable.d.ts.map +1 -1
  459. package/declarations/app/models/site.d.ts +2 -0
  460. package/declarations/app/models/site.d.ts.map +1 -1
  461. package/declarations/app/models/topic-tracking-state.d.ts.map +1 -1
  462. package/declarations/app/models/user.d.ts +0 -1
  463. package/declarations/app/models/user.d.ts.map +1 -1
  464. package/declarations/app/resolver.d.ts +1 -1
  465. package/declarations/app/routes/application.d.ts +1 -0
  466. package/declarations/app/routes/application.d.ts.map +1 -1
  467. package/declarations/app/routes/build-category-route.d.ts.map +1 -1
  468. package/declarations/app/routes/user-activity-stream.d.ts +3 -3
  469. package/declarations/app/routes/user-activity-stream.d.ts.map +1 -1
  470. package/declarations/app/routes/wizard.d.ts +1 -0
  471. package/declarations/app/routes/wizard.d.ts.map +1 -1
  472. package/declarations/app/services/blocks.d.ts +41 -49
  473. package/declarations/app/services/blocks.d.ts.map +1 -1
  474. package/declarations/app/services/composer.d.ts +1 -1
  475. package/declarations/app/services/deprecation-warning-handler.d.ts.map +1 -1
  476. package/declarations/app/services/design-wizard.d.ts +46 -0
  477. package/declarations/app/services/design-wizard.d.ts.map +1 -0
  478. package/declarations/app/services/discovery.d.ts +9 -0
  479. package/declarations/app/services/discovery.d.ts.map +1 -1
  480. package/declarations/app/services/drag-and-drop.d.ts +52 -0
  481. package/declarations/app/services/drag-and-drop.d.ts.map +1 -0
  482. package/declarations/app/services/exception.d.ts +15 -0
  483. package/declarations/app/services/exception.d.ts.map +1 -0
  484. package/declarations/app/services/human-activity-tracker.d.ts +1 -1
  485. package/declarations/app/services/human-activity-tracker.d.ts.map +1 -1
  486. package/declarations/app/services/loading-slider.d.ts +3 -1
  487. package/declarations/app/services/loading-slider.d.ts.map +1 -1
  488. package/declarations/app/services/presence.d.ts +1 -1
  489. package/declarations/app/services/presence.d.ts.map +1 -1
  490. package/declarations/app/static/dev-tools/block-debug/block-info.d.ts +30 -18
  491. package/declarations/app/static/dev-tools/block-debug/block-info.d.ts.map +1 -1
  492. package/declarations/app/static/dev-tools/block-debug/button.d.ts +7 -8
  493. package/declarations/app/static/dev-tools/block-debug/button.d.ts.map +1 -1
  494. package/declarations/app/static/dev-tools/block-debug/conditions-tree.d.ts +31 -9
  495. package/declarations/app/static/dev-tools/block-debug/conditions-tree.d.ts.map +1 -1
  496. package/declarations/app/static/dev-tools/block-debug/debug-logger.d.ts +86 -76
  497. package/declarations/app/static/dev-tools/block-debug/debug-logger.d.ts.map +1 -1
  498. package/declarations/app/static/dev-tools/block-debug/ghost-block.d.ts +35 -84
  499. package/declarations/app/static/dev-tools/block-debug/ghost-block.d.ts.map +1 -1
  500. package/declarations/app/static/dev-tools/block-debug/outlet-info.d.ts +21 -50
  501. package/declarations/app/static/dev-tools/block-debug/outlet-info.d.ts.map +1 -1
  502. package/declarations/app/static/dev-tools/block-debug/patch.d.ts +1 -1
  503. package/declarations/app/static/dev-tools/block-debug/patch.d.ts.map +1 -1
  504. package/declarations/app/static/dev-tools/entrypoint.d.ts +2 -1
  505. package/declarations/app/static/dev-tools/entrypoint.d.ts.map +1 -1
  506. package/declarations/app/static/dev-tools/toolbar.d.ts +11 -7
  507. package/declarations/app/static/dev-tools/toolbar.d.ts.map +1 -1
  508. package/declarations/app/static/dev-tools/tools.d.ts +15 -0
  509. package/declarations/app/static/dev-tools/tools.d.ts.map +1 -0
  510. package/declarations/app/static/prosemirror/components/prosemirror-editor.d.ts +3 -1
  511. package/declarations/app/static/prosemirror/components/prosemirror-editor.d.ts.map +1 -1
  512. package/declarations/app/static/prosemirror/core/keymap.d.ts.map +1 -1
  513. package/declarations/app/static/prosemirror/extensions/code-block.d.ts.map +1 -1
  514. package/declarations/app/static/prosemirror/extensions/html-inline.d.ts.map +1 -1
  515. package/declarations/app/static/prosemirror/extensions/mention.d.ts.map +1 -1
  516. package/declarations/app/static/prosemirror/extensions/onebox.d.ts +1 -1
  517. package/declarations/app/static/prosemirror/extensions/quote.d.ts.map +1 -1
  518. package/declarations/app/static/prosemirror/extensions/register-default.d.ts.map +1 -1
  519. package/declarations/app/static/prosemirror/extensions/strong.d.ts +4 -0
  520. package/declarations/app/static/prosemirror/extensions/strong.d.ts.map +1 -0
  521. package/declarations/app/static/prosemirror/extensions/trailing-inline-space.d.ts.map +1 -1
  522. package/declarations/app/static/prosemirror/extensions/word-paste.d.ts +0 -1
  523. package/declarations/app/static/prosemirror/extensions/word-paste.d.ts.map +1 -1
  524. package/declarations/app/static/prosemirror/lib/text-manipulation.d.ts.map +1 -1
  525. package/declarations/app/templates/review/show.d.ts +2 -5
  526. package/declarations/app/templates/review/show.d.ts.map +1 -1
  527. package/declarations/app/ui-kit/d-access-control-field.d.ts +11 -0
  528. package/declarations/app/ui-kit/d-access-control-field.d.ts.map +1 -0
  529. package/declarations/app/ui-kit/d-access-control.d.ts.map +1 -1
  530. package/declarations/app/ui-kit/d-async-content.d.ts +10 -0
  531. package/declarations/app/ui-kit/d-async-content.d.ts.map +1 -1
  532. package/declarations/app/ui-kit/d-button.d.ts +2 -2
  533. package/declarations/app/ui-kit/d-button.d.ts.map +1 -1
  534. package/declarations/app/ui-kit/d-combo-button.d.ts +74 -2
  535. package/declarations/app/ui-kit/d-combo-button.d.ts.map +1 -1
  536. package/declarations/app/ui-kit/d-copy-button.d.ts +17 -8
  537. package/declarations/app/ui-kit/d-copy-button.d.ts.map +1 -1
  538. package/declarations/app/ui-kit/d-date-input.d.ts +1 -1
  539. package/declarations/app/ui-kit/d-date-picker.d.ts +1 -1
  540. package/declarations/app/ui-kit/d-editor.d.ts.map +1 -1
  541. package/declarations/app/ui-kit/d-filter-controls.d.ts +11 -1
  542. package/declarations/app/ui-kit/d-filter-controls.d.ts.map +1 -1
  543. package/declarations/app/ui-kit/d-filter-input.d.ts.map +1 -1
  544. package/declarations/app/ui-kit/d-icon-grid-picker/content.d.ts +62 -17
  545. package/declarations/app/ui-kit/d-icon-grid-picker/content.d.ts.map +1 -1
  546. package/declarations/app/ui-kit/d-icon-grid-picker/index.d.ts +6 -8
  547. package/declarations/app/ui-kit/d-icon-grid-picker/index.d.ts.map +1 -1
  548. package/declarations/app/ui-kit/d-load-more.d.ts +78 -19
  549. package/declarations/app/ui-kit/d-load-more.d.ts.map +1 -1
  550. package/declarations/app/ui-kit/d-modal.d.ts.map +1 -1
  551. package/declarations/app/ui-kit/d-resize-handles.d.ts +243 -0
  552. package/declarations/app/ui-kit/d-resize-handles.d.ts.map +1 -0
  553. package/declarations/app/ui-kit/d-resize-separator.d.ts +222 -0
  554. package/declarations/app/ui-kit/d-resize-separator.d.ts.map +1 -0
  555. package/declarations/app/ui-kit/d-skeleton.d.ts +99 -0
  556. package/declarations/app/ui-kit/d-skeleton.d.ts.map +1 -0
  557. package/declarations/app/ui-kit/helpers/d-category-link.d.ts.map +1 -1
  558. package/declarations/app/ui-kit/modifiers/d-drag-and-drop-auto-scroll.d.ts +108 -0
  559. package/declarations/app/ui-kit/modifiers/d-drag-and-drop-auto-scroll.d.ts.map +1 -0
  560. package/declarations/app/ui-kit/modifiers/d-drag-and-drop-external-target.d.ts +80 -0
  561. package/declarations/app/ui-kit/modifiers/d-drag-and-drop-external-target.d.ts.map +1 -0
  562. package/declarations/app/ui-kit/modifiers/d-drag-and-drop-monitor.d.ts +80 -0
  563. package/declarations/app/ui-kit/modifiers/d-drag-and-drop-monitor.d.ts.map +1 -0
  564. package/declarations/app/ui-kit/modifiers/d-drag-and-drop-source.d.ts +249 -0
  565. package/declarations/app/ui-kit/modifiers/d-drag-and-drop-source.d.ts.map +1 -0
  566. package/declarations/app/ui-kit/modifiers/d-drag-and-drop-target.d.ts +102 -0
  567. package/declarations/app/ui-kit/modifiers/d-drag-and-drop-target.d.ts.map +1 -0
  568. package/declarations/app/ui-kit/modifiers/d-drag-dwell.d.ts +215 -0
  569. package/declarations/app/ui-kit/modifiers/d-drag-dwell.d.ts.map +1 -0
  570. package/declarations/app/ui-kit/modifiers/d-draggable.d.ts +15 -0
  571. package/declarations/app/ui-kit/modifiers/d-draggable.d.ts.map +1 -1
  572. package/declarations/app/ui-kit/modifiers/d-on-resize.d.ts +3 -0
  573. package/declarations/app/ui-kit/modifiers/d-on-resize.d.ts.map +1 -1
  574. package/declarations/app/ui-kit/modifiers/d-pointer-drag.d.ts +215 -0
  575. package/declarations/app/ui-kit/modifiers/d-pointer-drag.d.ts.map +1 -0
  576. package/declarations/app/ui-kit/modifiers/d-resize-edge.d.ts +101 -17
  577. package/declarations/app/ui-kit/modifiers/d-resize-edge.d.ts.map +1 -1
  578. package/declarations/app/ui-kit/modifiers/d-swipe.d.ts +8 -0
  579. package/declarations/app/ui-kit/modifiers/d-swipe.d.ts.map +1 -1
  580. package/declarations/float-kit/components/d-float-body.d.ts +39 -0
  581. package/declarations/float-kit/components/d-float-body.d.ts.map +1 -1
  582. package/declarations/float-kit/components/d-headless-menu.d.ts.map +1 -1
  583. package/declarations/float-kit/components/d-inline-float.d.ts +8 -6
  584. package/declarations/float-kit/components/d-inline-float.d.ts.map +1 -1
  585. package/declarations/float-kit/components/d-menu.d.ts +35 -4
  586. package/declarations/float-kit/components/d-menu.d.ts.map +1 -1
  587. package/declarations/float-kit/components/d-tooltip.d.ts +2 -0
  588. package/declarations/float-kit/components/d-tooltip.d.ts.map +1 -1
  589. package/declarations/float-kit/lib/constants.d.ts +63 -4
  590. package/declarations/float-kit/lib/constants.d.ts.map +1 -1
  591. package/declarations/float-kit/lib/d-menu-instance.d.ts +8 -2
  592. package/declarations/float-kit/lib/d-menu-instance.d.ts.map +1 -1
  593. package/declarations/float-kit/lib/d-tooltip-instance.d.ts.map +1 -1
  594. package/declarations/float-kit/lib/float-kit-instance.d.ts +48 -0
  595. package/declarations/float-kit/lib/float-kit-instance.d.ts.map +1 -1
  596. package/declarations/float-kit/lib/tab-order.d.ts +36 -0
  597. package/declarations/float-kit/lib/tab-order.d.ts.map +1 -0
  598. package/declarations/float-kit/lib/update-position.d.ts +11 -0
  599. package/declarations/float-kit/lib/update-position.d.ts.map +1 -1
  600. package/declarations/float-kit/modifiers/apply-floating-ui.d.ts.map +1 -1
  601. package/declarations/float-kit/modifiers/notify-positioned.d.ts +19 -0
  602. package/declarations/float-kit/modifiers/notify-positioned.d.ts.map +1 -0
  603. package/declarations/float-kit/modifiers/tab-order-inline.d.ts +55 -0
  604. package/declarations/float-kit/modifiers/tab-order-inline.d.ts.map +1 -0
  605. package/declarations/float-kit/services/menu.d.ts +11 -0
  606. package/declarations/float-kit/services/menu.d.ts.map +1 -1
  607. package/declarations/select-kit/components/dropdown-select-box.d.ts.map +1 -1
  608. package/declarations/select-kit/components/icon-picker.d.ts +3 -2
  609. package/declarations/select-kit/components/icon-picker.d.ts.map +1 -1
  610. package/declarations/select-kit/components/multi-select/multi-select-header.d.ts.map +1 -1
  611. package/declarations/select-kit/components/multi-select.d.ts.map +1 -1
  612. package/declarations/select-kit/components/select-kit/select-kit-row.d.ts.map +1 -1
  613. package/declarations/select-kit/components/tag-chooser.d.ts +3 -1
  614. package/declarations/select-kit/components/tag-chooser.d.ts.map +1 -1
  615. package/declarations/tests/acceptance/category-default-view-test.d.ts +2 -0
  616. package/declarations/tests/acceptance/category-default-view-test.d.ts.map +1 -0
  617. package/declarations/tests/acceptance/exception-test.d.ts +2 -0
  618. package/declarations/tests/acceptance/exception-test.d.ts.map +1 -0
  619. package/declarations/tests/acceptance/sidebar-link-drop-test.d.ts +2 -0
  620. package/declarations/tests/acceptance/sidebar-link-drop-test.d.ts.map +1 -0
  621. package/declarations/tests/acceptance/topic-list-preload-test.d.ts +2 -0
  622. package/declarations/tests/acceptance/topic-list-preload-test.d.ts.map +1 -0
  623. package/declarations/tests/acceptance/transformers/composer-minimum-post-length-test.d.ts +2 -0
  624. package/declarations/tests/acceptance/transformers/composer-minimum-post-length-test.d.ts.map +1 -0
  625. package/declarations/tests/fixtures/site-fixtures.d.ts +3 -0
  626. package/declarations/tests/fixtures/site-fixtures.d.ts.map +1 -1
  627. package/declarations/tests/fixtures/user-fixtures.d.ts +0 -1
  628. package/declarations/tests/fixtures/user-fixtures.d.ts.map +1 -1
  629. package/declarations/tests/helpers/qunit-helpers.d.ts.map +1 -1
  630. package/declarations/tests/helpers/review-pretender.d.ts.map +1 -1
  631. package/declarations/tests/helpers/rich-editor-helper.d.ts +2 -2
  632. package/declarations/tests/helpers/rich-editor-helper.d.ts.map +1 -1
  633. package/declarations/tests/helpers/stub-intersection-observer.d.ts +4 -2
  634. package/declarations/tests/helpers/stub-intersection-observer.d.ts.map +1 -1
  635. package/declarations/tests/helpers/ui-kit/drag-and-drop-helper.d.ts +178 -0
  636. package/declarations/tests/helpers/ui-kit/drag-and-drop-helper.d.ts.map +1 -0
  637. package/declarations/tests/helpers/ui-kit/pointer-gesture-helper.d.ts +81 -0
  638. package/declarations/tests/helpers/ui-kit/pointer-gesture-helper.d.ts.map +1 -0
  639. package/declarations/tests/integration/components/admin-plugin-config-page-test.d.ts +2 -0
  640. package/declarations/tests/integration/components/admin-plugin-config-page-test.d.ts.map +1 -0
  641. package/declarations/tests/integration/components/category-list-subcategories-test.d.ts +2 -0
  642. package/declarations/tests/integration/components/category-list-subcategories-test.d.ts.map +1 -0
  643. package/declarations/tests/integration/components/composer-container-test.d.ts +2 -0
  644. package/declarations/tests/integration/components/composer-container-test.d.ts.map +1 -0
  645. package/declarations/tests/integration/components/dashboard/search-test.d.ts +2 -0
  646. package/declarations/tests/integration/components/dashboard/search-test.d.ts.map +1 -0
  647. package/declarations/tests/integration/components/dashboard/traffic-test.d.ts +2 -0
  648. package/declarations/tests/integration/components/dashboard/traffic-test.d.ts.map +1 -0
  649. package/declarations/tests/integration/components/design-wizard-sections-test.d.ts +2 -0
  650. package/declarations/tests/integration/components/design-wizard-sections-test.d.ts.map +1 -0
  651. package/declarations/tests/integration/components/dev-tools-toolbar-test.d.ts +2 -0
  652. package/declarations/tests/integration/components/dev-tools-toolbar-test.d.ts.map +1 -0
  653. package/declarations/tests/integration/components/float-kit/apply-floating-ui-test.d.ts +2 -0
  654. package/declarations/tests/integration/components/float-kit/apply-floating-ui-test.d.ts.map +1 -0
  655. package/declarations/tests/integration/components/float-kit/tab-order-inline-test.d.ts +2 -0
  656. package/declarations/tests/integration/components/float-kit/tab-order-inline-test.d.ts.map +1 -0
  657. package/declarations/tests/integration/components/modal/content-language-preferences-test.d.ts +2 -0
  658. package/declarations/tests/integration/components/modal/content-language-preferences-test.d.ts.map +1 -0
  659. package/declarations/tests/integration/components/prosemirror-editor/open-document-test.d.ts +2 -0
  660. package/declarations/tests/integration/components/prosemirror-editor/open-document-test.d.ts.map +1 -0
  661. package/declarations/tests/integration/components/sidebar-section-form-test.d.ts +2 -0
  662. package/declarations/tests/integration/components/sidebar-section-form-test.d.ts.map +1 -0
  663. package/declarations/tests/integration/components/topic-post-badges-test.d.ts +2 -0
  664. package/declarations/tests/integration/components/topic-post-badges-test.d.ts.map +1 -0
  665. package/declarations/tests/integration/ui-kit/d-combo-button-test.d.ts +2 -0
  666. package/declarations/tests/integration/ui-kit/d-combo-button-test.d.ts.map +1 -0
  667. package/declarations/tests/integration/ui-kit/d-resize-handles-test.d.ts +2 -0
  668. package/declarations/tests/integration/ui-kit/d-resize-handles-test.d.ts.map +1 -0
  669. package/declarations/tests/integration/ui-kit/d-resize-separator-test.d.ts +2 -0
  670. package/declarations/tests/integration/ui-kit/d-resize-separator-test.d.ts.map +1 -0
  671. package/declarations/tests/integration/ui-kit/d-skeleton-test.d.ts +2 -0
  672. package/declarations/tests/integration/ui-kit/d-skeleton-test.d.ts.map +1 -0
  673. package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-adoption-test.d.ts +2 -0
  674. package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-adoption-test.d.ts.map +1 -0
  675. package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-auto-scroll-test.d.ts +2 -0
  676. package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-auto-scroll-test.d.ts.map +1 -0
  677. package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-external-target-test.d.ts +2 -0
  678. package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-external-target-test.d.ts.map +1 -0
  679. package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-monitor-test.d.ts +2 -0
  680. package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-monitor-test.d.ts.map +1 -0
  681. package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-test.d.ts +2 -0
  682. package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-test.d.ts.map +1 -0
  683. package/declarations/tests/integration/ui-kit/modifiers/d-drag-dwell-test.d.ts +2 -0
  684. package/declarations/tests/integration/ui-kit/modifiers/d-drag-dwell-test.d.ts.map +1 -0
  685. package/declarations/tests/integration/ui-kit/modifiers/d-draggable-test.d.ts +2 -0
  686. package/declarations/tests/integration/ui-kit/modifiers/d-draggable-test.d.ts.map +1 -0
  687. package/declarations/tests/integration/ui-kit/modifiers/d-observe-intersection-test.d.ts +2 -0
  688. package/declarations/tests/integration/ui-kit/modifiers/d-observe-intersection-test.d.ts.map +1 -0
  689. package/declarations/tests/integration/ui-kit/modifiers/d-pointer-drag-test.d.ts +2 -0
  690. package/declarations/tests/integration/ui-kit/modifiers/d-pointer-drag-test.d.ts.map +1 -0
  691. package/declarations/tests/unit/admin/lib/color-scheme-manager-test.d.ts +2 -0
  692. package/declarations/tests/unit/admin/lib/color-scheme-manager-test.d.ts.map +1 -0
  693. package/declarations/tests/unit/lib/-internals/drag-and-drop/drag-dwell-test.d.ts +2 -0
  694. package/declarations/tests/unit/lib/-internals/drag-and-drop/drag-dwell-test.d.ts.map +1 -0
  695. package/declarations/tests/unit/lib/-internals/drag-and-drop/vocabulary-test.d.ts +2 -0
  696. package/declarations/tests/unit/lib/-internals/drag-and-drop/vocabulary-test.d.ts.map +1 -0
  697. package/declarations/tests/unit/lib/blocks/core/decorator-test.d.ts +2 -0
  698. package/declarations/tests/unit/lib/blocks/core/decorator-test.d.ts.map +1 -0
  699. package/declarations/tests/unit/lib/customization-source-test.d.ts +2 -0
  700. package/declarations/tests/unit/lib/customization-source-test.d.ts.map +1 -0
  701. package/declarations/tests/unit/lib/dag-test.d.ts.map +1 -1
  702. package/declarations/tests/unit/lib/dashboard-reports-loader-test.d.ts +2 -0
  703. package/declarations/tests/unit/lib/dashboard-reports-loader-test.d.ts.map +1 -0
  704. package/declarations/tests/unit/lib/download-blob-test.d.ts +2 -0
  705. package/declarations/tests/unit/lib/download-blob-test.d.ts.map +1 -0
  706. package/declarations/tests/unit/lib/download-strategy-test.d.ts +2 -0
  707. package/declarations/tests/unit/lib/download-strategy-test.d.ts.map +1 -0
  708. package/declarations/tests/unit/lib/filter-mode-test.d.ts +2 -0
  709. package/declarations/tests/unit/lib/filter-mode-test.d.ts.map +1 -0
  710. package/declarations/tests/unit/lib/locale-normalizer-test.d.ts +2 -0
  711. package/declarations/tests/unit/lib/locale-normalizer-test.d.ts.map +1 -0
  712. package/declarations/tests/unit/lib/resize-measurements-test.d.ts +2 -0
  713. package/declarations/tests/unit/lib/resize-measurements-test.d.ts.map +1 -0
  714. package/declarations/tests/unit/lib/sidebar/active-link-test.d.ts +2 -0
  715. package/declarations/tests/unit/lib/sidebar/active-link-test.d.ts.map +1 -0
  716. package/declarations/tests/unit/lib/sidebar/link-drop-test.d.ts +2 -0
  717. package/declarations/tests/unit/lib/sidebar/link-drop-test.d.ts.map +1 -0
  718. package/declarations/tests/unit/services/discovery-test.d.ts +2 -0
  719. package/declarations/tests/unit/services/discovery-test.d.ts.map +1 -0
  720. package/declarations/tests/unit/services/drag-and-drop-test.d.ts +2 -0
  721. package/declarations/tests/unit/services/drag-and-drop-test.d.ts.map +1 -0
  722. package/declarations/tsconfig.tsbuildinfo +1 -1
  723. package/declarations/type-tests/blocks/public-api-test.d.ts +2 -0
  724. package/declarations/type-tests/blocks/public-api-test.d.ts.map +1 -0
  725. package/declarations/type-tests/lib/dag-test.d.ts +2 -0
  726. package/declarations/type-tests/lib/dag-test.d.ts.map +1 -0
  727. package/declarations/type-tests/lib/later-test.d.ts +2 -0
  728. package/declarations/type-tests/lib/later-test.d.ts.map +1 -0
  729. package/declarations/type-tests/ui-kit/create-drag-dwell-test.d.ts +2 -0
  730. package/declarations/type-tests/ui-kit/create-drag-dwell-test.d.ts.map +1 -0
  731. package/declarations/type-tests/ui-kit/d-combo-button-test.d.ts +3 -0
  732. package/declarations/type-tests/ui-kit/d-combo-button-test.d.ts.map +1 -0
  733. package/declarations/type-tests/ui-kit/d-drag-and-drop-adoption-errors-test.d.ts +3 -0
  734. package/declarations/type-tests/ui-kit/d-drag-and-drop-adoption-errors-test.d.ts.map +1 -0
  735. package/declarations/type-tests/ui-kit/d-drag-and-drop-adoption-test.d.ts +3 -0
  736. package/declarations/type-tests/ui-kit/d-drag-and-drop-adoption-test.d.ts.map +1 -0
  737. package/declarations/type-tests/ui-kit/d-drag-and-drop-errors-test.d.ts +3 -0
  738. package/declarations/type-tests/ui-kit/d-drag-and-drop-errors-test.d.ts.map +1 -0
  739. package/declarations/type-tests/ui-kit/d-drag-and-drop-external-errors-test.d.ts +3 -0
  740. package/declarations/type-tests/ui-kit/d-drag-and-drop-external-errors-test.d.ts.map +1 -0
  741. package/declarations/type-tests/ui-kit/d-drag-and-drop-external-test.d.ts +3 -0
  742. package/declarations/type-tests/ui-kit/d-drag-and-drop-external-test.d.ts.map +1 -0
  743. package/declarations/type-tests/ui-kit/d-drag-and-drop-test.d.ts +3 -0
  744. package/declarations/type-tests/ui-kit/d-drag-and-drop-test.d.ts.map +1 -0
  745. package/declarations/type-tests/ui-kit/d-drag-dwell-errors-test.d.ts +3 -0
  746. package/declarations/type-tests/ui-kit/d-drag-dwell-errors-test.d.ts.map +1 -0
  747. package/declarations/type-tests/ui-kit/d-drag-dwell-test.d.ts +3 -0
  748. package/declarations/type-tests/ui-kit/d-drag-dwell-test.d.ts.map +1 -0
  749. package/declarations/type-tests/ui-kit/d-pointer-drag-errors-test.d.ts +3 -0
  750. package/declarations/type-tests/ui-kit/d-pointer-drag-errors-test.d.ts.map +1 -0
  751. package/declarations/type-tests/ui-kit/d-pointer-drag-test.d.ts +8 -0
  752. package/declarations/type-tests/ui-kit/d-pointer-drag-test.d.ts.map +1 -0
  753. package/declarations/type-tests/ui-kit/d-resize-handles-args-errors-test.d.ts +3 -0
  754. package/declarations/type-tests/ui-kit/d-resize-handles-args-errors-test.d.ts.map +1 -0
  755. package/declarations/type-tests/ui-kit/d-resize-handles-box-errors-test.d.ts +3 -0
  756. package/declarations/type-tests/ui-kit/d-resize-handles-box-errors-test.d.ts.map +1 -0
  757. package/declarations/type-tests/ui-kit/d-resize-handles-payload-errors-test.d.ts +3 -0
  758. package/declarations/type-tests/ui-kit/d-resize-handles-payload-errors-test.d.ts.map +1 -0
  759. package/declarations/type-tests/ui-kit/d-resize-handles-test.d.ts +3 -0
  760. package/declarations/type-tests/ui-kit/d-resize-handles-test.d.ts.map +1 -0
  761. package/declarations/type-tests/ui-kit/d-resize-separator-errors-test.d.ts +3 -0
  762. package/declarations/type-tests/ui-kit/d-resize-separator-errors-test.d.ts.map +1 -0
  763. package/declarations/type-tests/ui-kit/d-resize-separator-test.d.ts +3 -0
  764. package/declarations/type-tests/ui-kit/d-resize-separator-test.d.ts.map +1 -0
  765. package/package.json +10 -1
  766. package/declarations/app/components/admin-onboarding/modal/theme-picker.d.ts +0 -13
  767. package/declarations/app/components/admin-onboarding/modal/theme-picker.d.ts.map +0 -1
  768. package/declarations/app/components/composer-actions-new.d.ts.map +0 -1
  769. package/declarations/app/components/link-to-input.d.ts +0 -7
  770. package/declarations/app/components/link-to-input.d.ts.map +0 -1
  771. package/declarations/app/helpers/reviewable-history-description.d.ts +0 -2
  772. package/declarations/app/helpers/reviewable-history-description.d.ts.map +0 -1
  773. package/declarations/app/modifiers/grippie-drag-resize.d.ts +0 -40
  774. package/declarations/app/modifiers/grippie-drag-resize.d.ts.map +0 -1
  775. package/declarations/select-kit/components/composer-actions.d.ts +0 -39
  776. package/declarations/select-kit/components/composer-actions.d.ts.map +0 -1
  777. package/declarations/tests/acceptance/composer-actions-new-test.d.ts +0 -2
  778. package/declarations/tests/acceptance/composer-actions-new-test.d.ts.map +0 -1
  779. package/declarations/tests/acceptance/composer-new-test.d.ts +0 -2
  780. package/declarations/tests/acceptance/composer-new-test.d.ts.map +0 -1
  781. package/declarations/tests/acceptance/keyboard-shortcuts-new-test.d.ts +0 -2
  782. package/declarations/tests/acceptance/keyboard-shortcuts-new-test.d.ts.map +0 -1
@@ -0,0 +1,108 @@
1
+ import { type ExternalDragKind } from "discourse/lib/-internals/drag-and-drop/external-vocabulary";
2
+ import type { Axis } from "discourse/lib/geometry";
3
+ /** Which direction the container is allowed to scroll while a drag is in flight. */
4
+ export type AutoScrollAxis = Axis | "all";
5
+ /** What gets scrolled: the element the modifier sits on, or the window. */
6
+ export type AutoScrollTarget = "element" | "window";
7
+ interface DDragAndDropAutoScrollSignature {
8
+ /** The scroll container, or a sentinel when `target` is `"window"`. */
9
+ Element: HTMLElement;
10
+ Args: {
11
+ Named: {
12
+ /**
13
+ * Only drags whose `type` matches engage the auto-scroll; an adopted drag
14
+ * answers to the adoption's declared type. Omit to engage on any element
15
+ * drag.
16
+ */
17
+ types?: string | string[];
18
+ /**
19
+ * Also auto-scroll for drags from outside the window, engaging on these
20
+ * external kinds. Omit it and an external drag scrolls nothing.
21
+ */
22
+ externalKinds?: ExternalDragKind | ExternalDragKind[];
23
+ /** Defaults to `"vertical"`. */
24
+ axis?: AutoScrollAxis;
25
+ /**
26
+ * `"element"` (default) scrolls the host element; `"window"` scrolls the
27
+ * window and ignores the element.
28
+ */
29
+ target?: AutoScrollTarget;
30
+ };
31
+ Positional: [];
32
+ };
33
+ }
34
+ /**
35
+ * The auto-scroll's named args, for a consumer driving
36
+ * {@link registerDragAndDropAutoScroll} imperatively rather than through the
37
+ * modifier.
38
+ */
39
+ export type DragAndDropAutoScrollArgs = DDragAndDropAutoScrollSignature["Args"]["Named"] & {
40
+ /** The scroll container. Required when `target` is `"element"`. */
41
+ element?: HTMLElement;
42
+ };
43
+ /**
44
+ * Imperative auto-scroll registration; the `dDragAndDropAutoScroll` modifier
45
+ * below wraps it.
46
+ *
47
+ * @param getArgsRef - Closure returning the latest args. `types`, `axis` and
48
+ * `externalKinds` are re-read on every scroll attempt; `target`, `element` and
49
+ * whether `externalKinds` is set are read once here and need a fresh registration.
50
+ * @returns Cleanup; call it once on teardown.
51
+ */
52
+ export declare function registerDragAndDropAutoScroll(getArgsRef: () => DragAndDropAutoScrollArgs): () => void;
53
+ /**
54
+ * Enables auto-scroll while a compatible drag is in flight. Every arg is
55
+ * documented on {@link DragAndDropAutoScrollArgs}.
56
+ *
57
+ * On a scroll container:
58
+ *
59
+ * ```hbs
60
+ * <div class="scroll-container"
61
+ * {{dDragAndDropAutoScroll types=(array "card") axis="vertical"}}
62
+ * >
63
+ * ```
64
+ *
65
+ * On a sentinel with `target="window"` to scroll the window instead:
66
+ *
67
+ * ```hbs
68
+ * <span class="visually-hidden"
69
+ * {{dDragAndDropAutoScroll target="window" types=this.acceptedTypes}}
70
+ * ></span>
71
+ * ```
72
+ *
73
+ * With `externalKinds`, for payloads dragged in from outside the window too:
74
+ *
75
+ * ```hbs
76
+ * <div class="scroll-container"
77
+ * {{dDragAndDropAutoScroll types=(array "card") externalKinds="urls"}}
78
+ * >
79
+ * ```
80
+ */
81
+ declare const _default: import("ember-modifier").FunctionBasedModifier<{
82
+ Element: HTMLElement;
83
+ Args: {
84
+ Named: {
85
+ /**
86
+ * Only drags whose `type` matches engage the auto-scroll; an adopted drag
87
+ * answers to the adoption's declared type. Omit to engage on any element
88
+ * drag.
89
+ */
90
+ types?: string | string[];
91
+ /**
92
+ * Also auto-scroll for drags from outside the window, engaging on these
93
+ * external kinds. Omit it and an external drag scrolls nothing.
94
+ */
95
+ externalKinds?: ExternalDragKind | ExternalDragKind[];
96
+ /** Defaults to `"vertical"`. */
97
+ axis?: AutoScrollAxis;
98
+ /**
99
+ * `"element"` (default) scrolls the host element; `"window"` scrolls the
100
+ * window and ignores the element.
101
+ */
102
+ target?: AutoScrollTarget;
103
+ };
104
+ Positional: [];
105
+ };
106
+ }>;
107
+ export default _default;
108
+ //# sourceMappingURL=d-drag-and-drop-auto-scroll.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"d-drag-and-drop-auto-scroll.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/ui-kit/modifiers/d-drag-and-drop-auto-scroll.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,KAAK,gBAAgB,EAEtB,MAAM,4DAA4D,CAAC;AAEpE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAGnD,oFAAoF;AACpF,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,KAAK,CAAC;AAE1C,2EAA2E;AAC3E,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEpD,UAAU,+BAA+B;IACvC,uEAAuE;IACvE,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE;QACJ,KAAK,EAAE;YACL;;;;eAIG;YACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;YAE1B;;;eAGG;YACH,aAAa,CAAC,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,CAAC;YAEtD,gCAAgC;YAChC,IAAI,CAAC,EAAE,cAAc,CAAC;YAEtB;;;eAGG;YACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;SAC3B,CAAC;QACF,UAAU,EAAE,EAAE,CAAC;KAChB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GACnC,+BAA+B,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,GAAG;IACjD,mEAAmE;IACnE,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB,CAAC;AAEJ;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,yBAAyB,cAyC5C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;;;;;YArHG;;;;eAIG;oBACK,MAAM,GAAG,MAAM,EAAE;YAEzB;;;eAGG;4BACa,gBAAgB,GAAG,gBAAgB,EAAE;YAErD,gCAAgC;mBACzB,cAAc;YAErB;;;eAGG;qBACM,gBAAgB;;;;;AAkG/B,wBAWE"}
@@ -0,0 +1,80 @@
1
+ import { type DropPosition, type DropTargetKernelArgs, type DropTargetKernelEvent, type DropTargetKernelFeedback } from "discourse/lib/-internals/drag-and-drop/drop-target-kernel";
2
+ import { type ExternalDragKind, type ExternalDragPayload } from "discourse/lib/-internals/drag-and-drop/external-vocabulary";
3
+ import type { Axis } from "discourse/lib/geometry";
4
+ /** What a synchronous gate (`canDrop`, a `dropEffect` function) is asked about. */
5
+ export type ExternalDropTargetFeedback = DropTargetKernelFeedback<ExternalDragPayload>;
6
+ /** What a lifecycle callback is told. */
7
+ export type ExternalDropTargetEvent = DropTargetKernelEvent<ExternalDragPayload>;
8
+ /**
9
+ * The external drop target's named args, shared by the
10
+ * `dDragAndDropExternalTarget` modifier and
11
+ * {@link registerDragAndDropExternalTarget}.
12
+ */
13
+ export interface DragAndDropExternalTargetArgs extends DropTargetKernelArgs<ExternalDragPayload> {
14
+ /**
15
+ * Filters which external drag kinds engage the target. Omit to accept any
16
+ * external drag.
17
+ */
18
+ accepts?: ExternalDragKind | ExternalDragKind[];
19
+ /** Setting this or `axis` opts the target into resolving a position at all. */
20
+ position?: DropPosition;
21
+ /**
22
+ * Without this or `position` the target is one destination, not a slot:
23
+ * callbacks get `position: null` and the indicator is the single
24
+ * `--drag-over-external` class.
25
+ */
26
+ axis?: Axis;
27
+ }
28
+ /**
29
+ * Imperative external drop-target registration, wrapped by the
30
+ * `dDragAndDropExternalTarget` modifier below; the counterpart of
31
+ * `registerDragAndDropTarget` for drags from outside the window.
32
+ *
33
+ * @param element - The element to register as a drop target.
34
+ * @param getArgsRef - Closure returning the latest args. Adapter callbacks read
35
+ * it on every invocation, so arg changes apply without re-registering.
36
+ * @returns Cleanup; call it once on teardown.
37
+ */
38
+ export declare function registerDragAndDropExternalTarget(element: Element, getArgsRef: () => DragAndDropExternalTargetArgs): import("@atlaskit/pragmatic-drag-and-drop/dist/types/internal-types").CleanupFn;
39
+ /**
40
+ * Marks an element as a drop target for drags from outside the window: files,
41
+ * URLs, HTML or text from another application or tab. Every arg is documented
42
+ * on {@link DragAndDropExternalTargetArgs}, and the payload every callback
43
+ * receives on {@link ExternalDragPayload}.
44
+ *
45
+ * An accepted drop cancels the native event's default without stopping its
46
+ * propagation, so another `dragover` / `drop` handler still runs and sees
47
+ * `defaultPrevented`.
48
+ *
49
+ * Files:
50
+ *
51
+ * ```hbs
52
+ * <div {{dDragAndDropExternalTarget
53
+ * accepts="files"
54
+ * onDrop=this.handleFileDrop
55
+ * }}>...</div>
56
+ * ```
57
+ *
58
+ * A slot rather than a destination, with `axis` opting into a before/after
59
+ * position:
60
+ *
61
+ * ```hbs
62
+ * <li {{dDragAndDropExternalTarget
63
+ * accepts="urls"
64
+ * axis="vertical"
65
+ * onDrop=this.insertBeside
66
+ * }}>...</li>
67
+ * ```
68
+ *
69
+ * An ancestor that should stay lit while a nested target is hovered reads
70
+ * `@service dragAndDrop` instead of registering a target of its own.
71
+ */
72
+ declare const _default: import("ember-modifier").FunctionBasedModifier<{
73
+ Element: HTMLElement;
74
+ Args: {
75
+ Named: DragAndDropExternalTargetArgs;
76
+ Positional: [];
77
+ };
78
+ }>;
79
+ export default _default;
80
+ //# sourceMappingURL=d-drag-and-drop-external-target.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"d-drag-and-drop-external-target.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/ui-kit/modifiers/d-drag-and-drop-external-target.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAE9B,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EAEzB,MAAM,4DAA4D,CAAC;AACpE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAEnD,mFAAmF;AACnF,MAAM,MAAM,0BAA0B,GACpC,wBAAwB,CAAC,mBAAmB,CAAC,CAAC;AAEhD,yCAAyC;AACzC,MAAM,MAAM,uBAAuB,GACjC,qBAAqB,CAAC,mBAAmB,CAAC,CAAC;AAE7C;;;;GAIG;AACH,MAAM,WAAW,6BAA8B,SAAQ,oBAAoB,CAAC,mBAAmB,CAAC;IAC9F;;;OAGG;IACH,OAAO,CAAC,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,CAAC;IAEhD,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,YAAY,CAAC;IAExB;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAWD;;;;;;;;;GASG;AACH,wBAAgB,iCAAiC,CAC/C,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,MAAM,6BAA6B,mFAahD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;;;;;;;;AACH,wBAKE"}
@@ -0,0 +1,80 @@
1
+ import { type ElementEventBasePayload } from "@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter";
2
+ import { type NormalizedDragSource } from "discourse/lib/-internals/drag-and-drop/vocabulary";
3
+ /**
4
+ * What a monitor callback is told: the normalized source and the drag's
5
+ * location history.
6
+ */
7
+ export type DragMonitorEvent = Omit<ElementEventBasePayload, "source"> & {
8
+ source: NormalizedDragSource;
9
+ };
10
+ interface DDragAndDropMonitorSignature {
11
+ /**
12
+ * A monitor is global. The element only anchors the modifier's lifecycle.
13
+ */
14
+ Element: HTMLElement;
15
+ Args: {
16
+ Named: {
17
+ /**
18
+ * Only drags whose `type` matches are observed. Omit to observe any drag.
19
+ */
20
+ types?: string | string[];
21
+ /** A drag started. */
22
+ onDragStart?: (event: DragMonitorEvent) => void;
23
+ /** The drag moved. */
24
+ onDrag?: (event: DragMonitorEvent) => void;
25
+ /** The drag ended, whether or not it landed on a target. */
26
+ onDrop?: (event: DragMonitorEvent) => void;
27
+ };
28
+ Positional: [];
29
+ };
30
+ }
31
+ /**
32
+ * The monitor's named args, for a consumer driving
33
+ * {@link registerDragAndDropMonitor} imperatively rather than through the
34
+ * modifier.
35
+ */
36
+ export type DragAndDropMonitorArgs = DDragAndDropMonitorSignature["Args"]["Named"];
37
+ /**
38
+ * Imperative monitor registration; the `dDragAndDropMonitor` modifier below
39
+ * wraps it.
40
+ *
41
+ * @param getArgsRef - Closure returning the latest args. Callbacks read it on
42
+ * every invocation; `types` is consulted once as a drag starts, so a change
43
+ * applies from the next drag.
44
+ * @returns Cleanup; call it once on teardown.
45
+ */
46
+ export declare function registerDragAndDropMonitor(getArgsRef: () => DragAndDropMonitorArgs): import("@atlaskit/pragmatic-drag-and-drop/dist/types/internal-types").CleanupFn;
47
+ /**
48
+ * Observes the in-flight element drag regardless of drop targets, to react to
49
+ * its progress without making an element droppable. Every arg is documented on
50
+ * {@link DragAndDropMonitorArgs}.
51
+ *
52
+ * ```hbs
53
+ * <div {{dDragAndDropMonitor types=this.dragTypes onDrag=this.onDrag}}></div>
54
+ * ```
55
+ *
56
+ * @see The `dragAndDrop` service to read drag state reactively; rendering from
57
+ * these callbacks duplicates what it keeps.
58
+ * @see `dDragDwell` for the packaged case of acting once a drag has hovered
59
+ * one element for a delay.
60
+ */
61
+ declare const _default: import("ember-modifier").FunctionBasedModifier<{
62
+ Element: HTMLElement;
63
+ Args: {
64
+ Named: {
65
+ /**
66
+ * Only drags whose `type` matches are observed. Omit to observe any drag.
67
+ */
68
+ types?: string | string[];
69
+ /** A drag started. */
70
+ onDragStart?: (event: DragMonitorEvent) => void;
71
+ /** The drag moved. */
72
+ onDrag?: (event: DragMonitorEvent) => void;
73
+ /** The drag ended, whether or not it landed on a target. */
74
+ onDrop?: (event: DragMonitorEvent) => void;
75
+ };
76
+ Positional: [];
77
+ };
78
+ }>;
79
+ export default _default;
80
+ //# sourceMappingURL=d-drag-and-drop-monitor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"d-drag-and-drop-monitor.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/ui-kit/modifiers/d-drag-and-drop-monitor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,2DAA2D,CAAC;AAGnE,OAAO,EAEL,KAAK,oBAAoB,EAE1B,MAAM,mDAAmD,CAAC;AAE3D;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,uBAAuB,EAAE,QAAQ,CAAC,GAAG;IACvE,MAAM,EAAE,oBAAoB,CAAC;CAC9B,CAAC;AAEF,UAAU,4BAA4B;IACpC;;OAEG;IACH,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE;QACJ,KAAK,EAAE;YACL;;eAEG;YACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;YAE1B,sBAAsB;YACtB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;YAEhD,sBAAsB;YACtB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;YAE3C,4DAA4D;YAC5D,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;SAC5C,CAAC;QACF,UAAU,EAAE,EAAE,CAAC;KAChB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAChC,4BAA4B,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;AAEhD;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,sBAAsB,mFAezC;AAED;;;;;;;;;;;;;GAaG;;;;;YAlEG;;eAEG;oBACK,MAAM,GAAG,MAAM,EAAE;YAEzB,sBAAsB;0BACR,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI;YAE/C,sBAAsB;qBACb,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI;YAE1C,4DAA4D;qBACnD,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI;;;;;AAuDhD,wBAUE"}
@@ -0,0 +1,249 @@
1
+ import type Owner from "@ember/owner";
2
+ import Modifier, { type ArgsFor } from "ember-modifier";
3
+ import type { DragInput, DragLocation } from "discourse/lib/-internals/drag-and-drop/drop-target-kernel";
4
+ import { normalizeOwnedDragSource } from "discourse/lib/-internals/drag-and-drop/vocabulary";
5
+ /**
6
+ * Renders a drag preview into an isolated, offscreen container the browser
7
+ * photographs. Return a cleanup function that tears the preview down.
8
+ */
9
+ export type DragPreviewRenderer = (args: {
10
+ /** The offscreen container to render into. */
11
+ container: HTMLElement;
12
+ /** The source element the drag began on. */
13
+ element: HTMLElement;
14
+ }) => (() => void) | void;
15
+ /** The dragged source, as the lifecycle callbacks receive it. */
16
+ export type DragSource = ReturnType<typeof normalizeOwnedDragSource>;
17
+ interface DDragAndDropSourceSignature {
18
+ /** The element to mark draggable. */
19
+ Element: HTMLElement;
20
+ Args: {
21
+ Named: {
22
+ /**
23
+ * Discriminator string. Targets filter on this via their `accepts` arg, and
24
+ * it is stamped onto `source.data.type` for callbacks.
25
+ *
26
+ * Reserved: it overwrites any `type` the payload carries. The `dragAndDrop`
27
+ * service also identifies drags by it, so a source without one is invisible
28
+ * there.
29
+ */
30
+ type: string;
31
+ /**
32
+ * Static payload the source attaches to the drag, exposed as `source.data`
33
+ * in target callbacks. A `type` key on it is overwritten; see `type`.
34
+ */
35
+ data?: object;
36
+ /**
37
+ * Alternative to `data` for dynamic payloads. Called once just before
38
+ * `dragstart`. Its `type` key is overwritten the same way.
39
+ */
40
+ getInitialData?: () => object;
41
+ /**
42
+ * A custom native drag preview. An `Element` is photographed in place: the
43
+ * source element keeps the grab point as its hotspot, any other element
44
+ * uses its top-left. Defaults to the source element.
45
+ *
46
+ * A render function mounts a fresh preview into an isolated, offscreen
47
+ * container, so nothing around the source bleeds into the drag image.
48
+ */
49
+ dragPreview?: Element | DragPreviewRenderer;
50
+ /**
51
+ * CSS lengths (e.g. `{x: "1rem", y: "0.5rem"}`) that push the preview clear
52
+ * of the pointer. Applies only to the render-function `dragPreview`; an
53
+ * `Element` preview is placed by its own hotspot.
54
+ */
55
+ dragPreviewOffset?: {
56
+ x: string;
57
+ y: string;
58
+ };
59
+ /**
60
+ * Which drop operations this drag permits, written onto the native
61
+ * `dataTransfer` at `dragstart`. Defaults to `"move"`, which also stops the
62
+ * browser badging the pointer with its copy offer.
63
+ *
64
+ * A source whose drop duplicates wants `"copyMove"`: a target's
65
+ * `dropEffect` may only name an effect this permits.
66
+ */
67
+ effectAllowed?: DataTransfer["effectAllowed"];
68
+ /** Returning `false` blocks the drag from starting. */
69
+ canDrag?: (feedback: {
70
+ /**
71
+ * The source as it stands before the drag begins. `data` is the arg
72
+ * exactly as passed, before it is merged into the drag payload.
73
+ */
74
+ source: {
75
+ type?: string;
76
+ data?: object;
77
+ element: HTMLElement;
78
+ };
79
+ /** Where the pointer is. */
80
+ input: DragInput;
81
+ }) => boolean | void;
82
+ /** Fires once the drag is confirmed. */
83
+ onDragStart?: (event: {
84
+ /** The dragged source. */
85
+ source: DragSource;
86
+ /** Where the pointer is. */
87
+ input: DragInput;
88
+ }) => void;
89
+ /**
90
+ * Fires once at the end of every drag, landed or abandoned, and is where
91
+ * drag-time state gets undone. A source destroyed before the deferred
92
+ * dispatch fires does not receive it.
93
+ *
94
+ * Fires after the whole drop dispatch, target and monitor callbacks
95
+ * included, so shared dispatch state can be cleared here. Branch on the
96
+ * outcome with `location.current.dropTargets`.
97
+ */
98
+ onDragEnd?: (event: {
99
+ /** The dragged source. */
100
+ source: DragSource;
101
+ /** The drag's location history. */
102
+ location: DragLocation;
103
+ }) => void;
104
+ /**
105
+ * Fires only for a drag that ended on at least one drop target, so this is
106
+ * where the operation is performed. `onDragEnd` fires first, with the same
107
+ * `source` and `location`.
108
+ */
109
+ onDrop?: (event: {
110
+ /** The dragged source. */
111
+ source: DragSource;
112
+ /** The drag's location history. */
113
+ location: DragLocation;
114
+ }) => void;
115
+ /**
116
+ * An element inside this one that a drag must start from, so the rest stays
117
+ * free for selecting text and operating controls. Pass the element itself,
118
+ * captured with a modifier on the handle, not a selector.
119
+ *
120
+ * Changing it re-registers, so a ref that only arrives on a later render
121
+ * still takes effect. Omit it and the whole element initiates a drag.
122
+ *
123
+ * The handle carries `draggable="true"`; this element stays the body: it
124
+ * gets the state markers, is the target's `source.element`, and is what the
125
+ * default preview photographs.
126
+ */
127
+ dragHandle?: Element;
128
+ /**
129
+ * When `true`, the draggable registration is detached; a drag already in
130
+ * flight finishes and reports first. This, not `dragHandle`, is how to stop
131
+ * an element being dragged: a handle only moves where a drag may begin.
132
+ *
133
+ * Style and assert on `data-drag-source`, never on `draggable`: the
134
+ * attribute sits on whichever element was registered.
135
+ */
136
+ disabled?: boolean;
137
+ };
138
+ Positional: [];
139
+ };
140
+ }
141
+ /**
142
+ * What a registration still owes after being detached without cancelling, and
143
+ * the ways its owner can resume or let go of it.
144
+ *
145
+ * A registration waiting for its drag can be reclaimed when the modifier needs
146
+ * that same element again. Work holding only a scheduled dispatch cannot: its
147
+ * drag has ended and its registration has already been torn down.
148
+ */
149
+ export interface DetachedSourceWork {
150
+ /**
151
+ * The element the registration was created on: the drag handle when one was
152
+ * given, the source element otherwise. A replacement registering on the same
153
+ * element can reclaim this work; one registering elsewhere must leave it
154
+ * waiting, because the underlying library dispatches an in-flight drag's end
155
+ * by looking this element up.
156
+ */
157
+ registeredElement: HTMLElement;
158
+ /**
159
+ * Re-adopts a registration still waiting for its drag, or returns `null` when
160
+ * only a scheduled dispatch remains.
161
+ */
162
+ reclaim: () => DragAndDropSourceCleanup | null;
163
+ /** The consumer is going away. Drops everything, dispatch included. */
164
+ abandon: () => void;
165
+ /**
166
+ * Whether anything is still owed. Goes false once the dispatch has fired and
167
+ * no teardown is waiting; a holder has no other way to know when to let go.
168
+ */
169
+ outstanding: () => boolean;
170
+ }
171
+ /**
172
+ * Tears a drag source registration down.
173
+ *
174
+ * `cancelPending` decides the fate of a drop dispatch already scheduled for the
175
+ * next task. `true` (the default) drops it: the consumer is going away. `false`
176
+ * keeps it: the registration is only being replaced and the consumer lives on.
177
+ *
178
+ * Returns the work still owed, or `null`. A caller that kept the dispatch must
179
+ * hold onto it: it is the only way left to reach the registration, and a
180
+ * reclaimed one is torn down by calling this again.
181
+ */
182
+ export type DragAndDropSourceCleanup = (options?: {
183
+ cancelPending?: boolean;
184
+ }) => DetachedSourceWork | null;
185
+ /**
186
+ * The drag source's named args, for a consumer driving
187
+ * {@link registerDragAndDropSource} imperatively rather than through the
188
+ * modifier.
189
+ */
190
+ export type DragAndDropSourceArgs = DDragAndDropSourceSignature["Args"]["Named"];
191
+ /** Test-only: forget every source and unbind the listener between tests. */
192
+ export declare function resetDragSourcesForTesting(): void;
193
+ /**
194
+ * Wraps the underlying draggable registration with payload normalisation, the
195
+ * source's state markers, and the end-of-drag deferral. Exported so a consumer
196
+ * can register a source imperatively, beside `registerDragAndDropTarget`.
197
+ *
198
+ * End-of-drag callbacks are deferred to the next task, after the drop event has
199
+ * finished propagating: `onDragEnd` for every drag, then `onDrop` for one that
200
+ * landed on a target.
201
+ *
202
+ * One registration per element: the underlying library keys registrations by
203
+ * element, so a second one must wait for the first's cleanup.
204
+ *
205
+ * @param element - The element to mark draggable.
206
+ * @param getArgsRef - Closure returning the latest args, read on every library
207
+ * callback, so changes apply without re-registering. `dragHandle` is read once
208
+ * at registration; change it by re-registering.
209
+ * @returns Cleanup function; see {@link DragAndDropSourceCleanup}.
210
+ */
211
+ export declare function registerDragAndDropSource(element: HTMLElement, getArgsRef: () => DragAndDropSourceArgs): DragAndDropSourceCleanup;
212
+ /**
213
+ * Marks an element as a drag source for the Discourse drag-and-drop vocabulary,
214
+ * paired with `dDragAndDropTarget`. A thin wrapper around
215
+ * {@link registerDragAndDropSource}; every arg is documented on
216
+ * {@link DragAndDropSourceArgs}.
217
+ *
218
+ * ```hbs
219
+ * <li {{dDragAndDropSource
220
+ * type="sidebar-link"
221
+ * data=this.link
222
+ * dragPreview=this.previewEl
223
+ * canDrag=this.canDrag
224
+ * onDragStart=this.handleDragStart
225
+ * onDragEnd=this.clearDragState
226
+ * onDrop=this.applyDrop
227
+ * }}>...</li>
228
+ * ```
229
+ *
230
+ * Stamps `data-drag-source` for the registration's lifetime and `--dragging`
231
+ * while a drag is active; the ui-kit drag-and-drop stylesheet gates its
232
+ * selectors on the attribute.
233
+ *
234
+ * Testing: see the note on `dDragAndDropTarget`; the same helpers drive both
235
+ * ends of a drag.
236
+ *
237
+ * Pointer-only. A native drag has no keyboard equivalent, so a surface built on
238
+ * this needs a keyboard route to the same operation beside it.
239
+ *
240
+ * @see The `dPointerDrag` modifier when there is no drop target and no payload:
241
+ * a press that changes a value continuously is a different gesture.
242
+ */
243
+ export default class DDragAndDropSourceModifier extends Modifier<DDragAndDropSourceSignature> {
244
+ #private;
245
+ constructor(owner: Owner, args: ArgsFor<DDragAndDropSourceSignature>);
246
+ modify(element: HTMLElement, _positional: [], args?: DragAndDropSourceArgs): void;
247
+ }
248
+ export {};
249
+ //# sourceMappingURL=d-drag-and-drop-source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"d-drag-and-drop-source.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/ui-kit/modifiers/d-drag-and-drop-source.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAMtC,OAAO,QAAQ,EAAE,EAAE,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAExD,OAAO,KAAK,EACV,SAAS,EACT,YAAY,EACb,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAEL,wBAAwB,EACzB,MAAM,mDAAmD,CAAC;AAE3D;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE;IACvC,8CAA8C;IAC9C,SAAS,EAAE,WAAW,CAAC;IAEvB,4CAA4C;IAC5C,OAAO,EAAE,WAAW,CAAC;CACtB,KAAK,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC;AAE1B,iEAAiE;AACjE,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAErE,UAAU,2BAA2B;IACnC,qCAAqC;IACrC,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE;QACJ,KAAK,EAAE;YACL;;;;;;;eAOG;YACH,IAAI,EAAE,MAAM,CAAC;YAEb;;;eAGG;YACH,IAAI,CAAC,EAAE,MAAM,CAAC;YAEd;;;eAGG;YACH,cAAc,CAAC,EAAE,MAAM,MAAM,CAAC;YAE9B;;;;;;;eAOG;YACH,WAAW,CAAC,EAAE,OAAO,GAAG,mBAAmB,CAAC;YAE5C;;;;eAIG;YACH,iBAAiB,CAAC,EAAE;gBAAE,CAAC,EAAE,MAAM,CAAC;gBAAC,CAAC,EAAE,MAAM,CAAA;aAAE,CAAC;YAE7C;;;;;;;eAOG;YACH,aAAa,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC;YAE9C,uDAAuD;YACvD,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE;gBACnB;;;mBAGG;gBACH,MAAM,EAAE;oBAAE,IAAI,CAAC,EAAE,MAAM,CAAC;oBAAC,IAAI,CAAC,EAAE,MAAM,CAAC;oBAAC,OAAO,EAAE,WAAW,CAAA;iBAAE,CAAC;gBAE/D,4BAA4B;gBAC5B,KAAK,EAAE,SAAS,CAAC;aAClB,KAAK,OAAO,GAAG,IAAI,CAAC;YAErB,wCAAwC;YACxC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE;gBACpB,0BAA0B;gBAC1B,MAAM,EAAE,UAAU,CAAC;gBAEnB,4BAA4B;gBAC5B,KAAK,EAAE,SAAS,CAAC;aAClB,KAAK,IAAI,CAAC;YAEX;;;;;;;;eAQG;YACH,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE;gBAClB,0BAA0B;gBAC1B,MAAM,EAAE,UAAU,CAAC;gBAEnB,mCAAmC;gBACnC,QAAQ,EAAE,YAAY,CAAC;aACxB,KAAK,IAAI,CAAC;YAEX;;;;eAIG;YACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE;gBACf,0BAA0B;gBAC1B,MAAM,EAAE,UAAU,CAAC;gBAEnB,mCAAmC;gBACnC,QAAQ,EAAE,YAAY,CAAC;aACxB,KAAK,IAAI,CAAC;YAEX;;;;;;;;;;;eAWG;YACH,UAAU,CAAC,EAAE,OAAO,CAAC;YAErB;;;;;;;eAOG;YACH,QAAQ,CAAC,EAAE,OAAO,CAAC;SACpB,CAAC;QACF,UAAU,EAAE,EAAE,CAAC;KAChB,CAAC;CACH;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;;OAMG;IACH,iBAAiB,EAAE,WAAW,CAAC;IAE/B;;;OAGG;IACH,OAAO,EAAE,MAAM,wBAAwB,GAAG,IAAI,CAAC;IAE/C,uEAAuE;IACvE,OAAO,EAAE,MAAM,IAAI,CAAC;IAEpB;;;OAGG;IACH,WAAW,EAAE,MAAM,OAAO,CAAC;CAC5B;AAED;;;;;;;;;;GAUG;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,CAAC,EAAE;IAChD,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,KAAK,kBAAkB,GAAG,IAAI,CAAC;AAEhC;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAC/B,2BAA2B,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;AAmF/C,4EAA4E;AAC5E,wBAAgB,0BAA0B,SAMzC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,WAAW,EACpB,UAAU,EAAE,MAAM,qBAAqB,GACtC,wBAAwB,CAuN1B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,CAAC,OAAO,OAAO,0BAA2B,SAAQ,QAAQ,CAAC,2BAA2B,CAAC;;gBAmB/E,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,CAAC,2BAA2B,CAAC;IASpE,MAAM,CACJ,OAAO,EAAE,WAAW,EACpB,WAAW,EAAE,EAAE,EACf,IAAI,GAAE,qBAAmD;CA2D5D"}
@@ -0,0 +1,102 @@
1
+ import { type DropTargetKernelArgs, type DropTargetKernelEvent, type DropTargetKernelFeedback } from "discourse/lib/-internals/drag-and-drop/drop-target-kernel";
2
+ import { type NativeDragAdoption } from "discourse/lib/-internals/drag-and-drop/native-drag-adoption";
3
+ import { type NormalizedDragSource } from "discourse/lib/-internals/drag-and-drop/vocabulary";
4
+ export type { NativeDragAdoption, NativeDragAdoptionFeedback, } from "discourse/lib/-internals/drag-and-drop/native-drag-adoption";
5
+ export { type DropEffect, type DropPosition, type DropPositionOptions, } from "discourse/lib/-internals/drag-and-drop/drop-target-kernel";
6
+ /**
7
+ * The dragged source, normalized to the shape `dDragAndDropSource` publishes.
8
+ * An adopted drag also carries `native`, with the same reader API as an
9
+ * external target's payload; its `items` is always empty.
10
+ */
11
+ export type DropTargetSource = NormalizedDragSource;
12
+ /** What a synchronous gate (`canDrop`, a `dropEffect` function) is asked about. */
13
+ export type DropTargetFeedback = DropTargetKernelFeedback<DropTargetSource>;
14
+ /** What a lifecycle callback is told. */
15
+ export type DropTargetEvent = DropTargetKernelEvent<DropTargetSource>;
16
+ /**
17
+ * The drop target's named args, shared by the `dDragAndDropTarget` modifier
18
+ * and {@link registerDragAndDropTarget}.
19
+ */
20
+ export interface DragAndDropTargetArgs extends DropTargetKernelArgs<DropTargetSource> {
21
+ /**
22
+ * The dragged source's `type` must be in this list for the target to engage.
23
+ * Omit to accept any registered source, unless `adopts` is set; then omission
24
+ * accepts only the adopted drags named there.
25
+ */
26
+ accepts?: string | string[];
27
+ /**
28
+ * Also accept browser-started drags from page content that no
29
+ * `dDragAndDropSource` registered, such as native links or images.
30
+ * Independent of `accepts`, since such content carries no source type;
31
+ * adopted payloads arrive on `source.native`.
32
+ *
33
+ * Adoption is resolved once for the page, not per target. At `dragstart` the
34
+ * first live adoption whose predicate matches names the drag, and every
35
+ * target listing that name accepts it.
36
+ *
37
+ * So two adoptions sharing a name must share a predicate. Declare one as a
38
+ * module constant and offer it from each target.
39
+ *
40
+ * Covers only what the browser started on this page. Pair it with
41
+ * `dDragAndDropExternalTarget` on the same element to take the same content
42
+ * dragged in from outside the window.
43
+ */
44
+ adopts?: NativeDragAdoption | NativeDragAdoption[];
45
+ /**
46
+ * `false` refuses a drop whose dragged element is this element. Defaults to
47
+ * `true`: an element that is both source and target has a meaningful drop
48
+ * onto itself, so excluding it is opt-in.
49
+ */
50
+ acceptsSelf?: boolean;
51
+ }
52
+ /**
53
+ * Imperative drop-target registration; the `dDragAndDropTarget` modifier
54
+ * below wraps it.
55
+ *
56
+ * @param element - The element to register as a drop target.
57
+ * @param getArgsRef - Closure returning the latest args. Library callbacks read
58
+ * it on every invocation, so arg changes apply without re-registering.
59
+ * @returns Cleanup; call it once on teardown.
60
+ */
61
+ export declare function registerDragAndDropTarget(element: Element, getArgsRef: () => DragAndDropTargetArgs): import("@atlaskit/pragmatic-drag-and-drop/dist/types/internal-types").CleanupFn;
62
+ /**
63
+ * Marks an element as a drop target for `dDragAndDropSource` drags. Every arg
64
+ * is documented on {@link DragAndDropTargetArgs}. The indicator classes are
65
+ * styled in `app/assets/stylesheets/common/ui-kit/d-drag-and-drop.scss`.
66
+ *
67
+ * Position from the pointer against the element's midpoint:
68
+ *
69
+ * ```hbs
70
+ * <li {{dDragAndDropTarget accepts="sidebar-link" onDrop=this.reorder}}>...</li>
71
+ * ```
72
+ *
73
+ * A fixed position:
74
+ *
75
+ * ```hbs
76
+ * <div {{dDragAndDropTarget
77
+ * accepts="block"
78
+ * position="inside"
79
+ * onDrop=this.applyMove
80
+ * }}></div>
81
+ * ```
82
+ *
83
+ * Testing: use `simulateDrag` from
84
+ * `discourse/tests/helpers/ui-kit/drag-and-drop-helper` in JS, and
85
+ * `SystemHelpers#drag_and_drop` in system specs; synthetic mouse drags stall.
86
+ *
87
+ * Element drags, and with `adopts` browser-started drags from page content;
88
+ * see `dDragAndDropExternalTarget` for payloads dragged in from outside the
89
+ * window.
90
+ *
91
+ * @see `dDragDwell` to act once a drag has hovered this element for a delay;
92
+ * it composes beside this modifier without joining the target hierarchy.
93
+ */
94
+ declare const _default: import("ember-modifier").FunctionBasedModifier<{
95
+ Element: HTMLElement;
96
+ Args: {
97
+ Named: DragAndDropTargetArgs;
98
+ Positional: [];
99
+ };
100
+ }>;
101
+ export default _default;
102
+ //# sourceMappingURL=d-drag-and-drop-target.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"d-drag-and-drop-target.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/ui-kit/modifiers/d-drag-and-drop-target.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAE9B,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAEL,KAAK,kBAAkB,EAGxB,MAAM,6DAA6D,CAAC;AACrE,OAAO,EAGL,KAAK,oBAAoB,EAE1B,MAAM,mDAAmD,CAAC;AAE3D,YAAY,EACV,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,6DAA6D,CAAC;AAErE,OAAO,EACL,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,mBAAmB,GACzB,MAAM,2DAA2D,CAAC;AAEnE;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,CAAC;AAEpD,mFAAmF;AACnF,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,CAAC,gBAAgB,CAAC,CAAC;AAE5E,yCAAyC;AACzC,MAAM,MAAM,eAAe,GAAG,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;AAEtE;;;GAGG;AACH,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB,CAAC,gBAAgB,CAAC;IACnF;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAE5B;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,EAAE,kBAAkB,GAAG,kBAAkB,EAAE,CAAC;IAEnD;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAWD;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,MAAM,qBAAqB,mFA+BxC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;;;;;;;;AACH,wBAKE"}