@discourse/types 2026.8.0-fb9247e0 → 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.
- package/declarations/admin/components/admin-badges-show.d.ts.map +1 -1
- package/declarations/admin/components/admin-config-areas/components.d.ts.map +1 -1
- package/declarations/admin/components/admin-config-areas/upcoming-change-item.d.ts +1 -1
- package/declarations/admin/components/admin-config-areas/upcoming-change-item.d.ts.map +1 -1
- package/declarations/admin/components/admin-plugin-config-page.d.ts +1 -0
- package/declarations/admin/components/admin-plugin-config-page.d.ts.map +1 -1
- package/declarations/admin/components/admin-plugins-list-item.d.ts.map +1 -1
- package/declarations/admin/components/admin-report-stacked-chart.d.ts +1 -1
- package/declarations/admin/components/admin-report-stacked-chart.d.ts.map +1 -1
- package/declarations/admin/components/chart.d.ts +1 -1
- package/declarations/admin/components/dashboard/engagement/headline.d.ts +4 -3
- package/declarations/admin/components/dashboard/engagement/headline.d.ts.map +1 -1
- package/declarations/admin/components/dashboard/report-error-state.d.ts +3 -0
- package/declarations/admin/components/dashboard/report-error-state.d.ts.map +1 -0
- package/declarations/admin/components/dashboard/reports.d.ts.map +1 -1
- package/declarations/admin/components/dashboard/search.d.ts +5 -3
- package/declarations/admin/components/dashboard/search.d.ts.map +1 -1
- package/declarations/admin/components/dashboard/traffic.d.ts +8 -0
- package/declarations/admin/components/dashboard/traffic.d.ts.map +1 -1
- package/declarations/admin/components/edit-category-localizations.d.ts.map +1 -1
- package/declarations/admin/components/edit-category-panel.d.ts +0 -5
- package/declarations/admin/components/edit-category-panel.d.ts.map +1 -1
- package/declarations/admin/components/form-template/form.d.ts.map +1 -1
- package/declarations/admin/components/modal/badge-preview.d.ts.map +1 -1
- package/declarations/admin/components/modal/penalize-user.d.ts +2 -1
- package/declarations/admin/components/modal/penalize-user.d.ts.map +1 -1
- package/declarations/admin/components/redesigned-admin-dashboard.d.ts.map +1 -1
- package/declarations/admin/components/schema-setting/field.d.ts +2 -1
- package/declarations/admin/components/schema-setting/field.d.ts.map +1 -1
- package/declarations/admin/components/schema-setting/types/icon.d.ts +10 -0
- package/declarations/admin/components/schema-setting/types/icon.d.ts.map +1 -0
- package/declarations/admin/components/site-setting.d.ts +12 -1
- package/declarations/admin/components/site-setting.d.ts.map +1 -1
- package/declarations/admin/components/site-settings/icon.d.ts.map +1 -1
- package/declarations/admin/components/site-settings/integer.d.ts +0 -1
- package/declarations/admin/components/site-settings/integer.d.ts.map +1 -1
- package/declarations/admin/components/site-traffic-explorer-breakdown-card.d.ts +21 -0
- package/declarations/admin/components/site-traffic-explorer-breakdown-card.d.ts.map +1 -0
- package/declarations/admin/components/site-traffic-explorer-breakdown-modal.d.ts +10 -0
- package/declarations/admin/components/site-traffic-explorer-breakdown-modal.d.ts.map +1 -0
- package/declarations/admin/components/site-traffic-explorer-breakdown-row.d.ts +3 -0
- package/declarations/admin/components/site-traffic-explorer-breakdown-row.d.ts.map +1 -0
- package/declarations/admin/components/site-traffic-explorer-dimension-label.d.ts +8 -0
- package/declarations/admin/components/site-traffic-explorer-dimension-label.d.ts.map +1 -0
- package/declarations/admin/components/site-traffic-explorer-filter-pills.d.ts +16 -0
- package/declarations/admin/components/site-traffic-explorer-filter-pills.d.ts.map +1 -0
- package/declarations/admin/components/site-traffic-explorer-metric.d.ts +3 -0
- package/declarations/admin/components/site-traffic-explorer-metric.d.ts.map +1 -0
- package/declarations/admin/components/site-traffic-explorer-pageview-count.d.ts +3 -0
- package/declarations/admin/components/site-traffic-explorer-pageview-count.d.ts.map +1 -0
- package/declarations/admin/components/site-traffic-explorer.d.ts +67 -0
- package/declarations/admin/components/site-traffic-explorer.d.ts.map +1 -0
- package/declarations/admin/components/upsert-category/appearance.d.ts +6 -10
- package/declarations/admin/components/upsert-category/appearance.d.ts.map +1 -1
- package/declarations/admin/components/version-checks.d.ts.map +1 -1
- package/declarations/admin/controllers/admin/dashboard/general.d.ts +1 -2
- package/declarations/admin/controllers/admin/dashboard/general.d.ts.map +1 -1
- package/declarations/admin/controllers/admin/dashboard.d.ts +1 -3
- package/declarations/admin/controllers/admin/dashboard.d.ts.map +1 -1
- package/declarations/admin/controllers/admin-customize-themes/show/index.d.ts +2 -0
- package/declarations/admin/controllers/admin-customize-themes/show/index.d.ts.map +1 -1
- package/declarations/admin/controllers/admin-plugins/index.d.ts +0 -3
- package/declarations/admin/controllers/admin-plugins/index.d.ts.map +1 -1
- package/declarations/admin/controllers/admin-plugins.d.ts +2 -2
- package/declarations/admin/controllers/admin-plugins.d.ts.map +1 -1
- package/declarations/admin/controllers/admin-search-logs/index.d.ts +2 -1
- package/declarations/admin/controllers/admin-search-logs/index.d.ts.map +1 -1
- package/declarations/admin/controllers/admin-search-logs/term.d.ts +2 -1
- package/declarations/admin/controllers/admin-search-logs/term.d.ts.map +1 -1
- package/declarations/admin/controllers/admin-site-traffic.d.ts +50 -0
- package/declarations/admin/controllers/admin-site-traffic.d.ts.map +1 -0
- package/declarations/admin/controllers/admin-watched-words/action.d.ts +2 -0
- package/declarations/admin/controllers/admin-watched-words/action.d.ts.map +1 -1
- package/declarations/admin/lib/color-scheme-manager.d.ts +44 -0
- package/declarations/admin/lib/color-scheme-manager.d.ts.map +1 -1
- package/declarations/admin/lib/constants.d.ts.map +1 -1
- package/declarations/admin/lib/dashboard-format.d.ts +1 -0
- package/declarations/admin/lib/dashboard-format.d.ts.map +1 -1
- package/declarations/admin/lib/engagement-headline.d.ts +2 -0
- package/declarations/admin/lib/engagement-headline.d.ts.map +1 -0
- package/declarations/admin/lib/format-pageview-count.d.ts +4 -0
- package/declarations/admin/lib/format-pageview-count.d.ts.map +1 -0
- package/declarations/admin/lib/search-headline.d.ts +2 -0
- package/declarations/admin/lib/search-headline.d.ts.map +1 -0
- package/declarations/admin/models/admin-dashboard.d.ts +1 -1
- package/declarations/admin/models/admin-dashboard.d.ts.map +1 -1
- package/declarations/admin/models/report.d.ts +5 -5
- package/declarations/admin/models/site-setting.d.ts +2 -0
- package/declarations/admin/models/site-setting.d.ts.map +1 -1
- package/declarations/admin/models/staff-action-log.d.ts.map +1 -1
- package/declarations/admin/routes/admin-route-map.d.ts.map +1 -1
- package/declarations/admin/routes/admin-site-traffic.d.ts +52 -0
- package/declarations/admin/routes/admin-site-traffic.d.ts.map +1 -0
- package/declarations/admin/routes/new-category.d.ts.map +1 -1
- package/declarations/admin/services/admin-emojis.d.ts.map +1 -1
- package/declarations/admin/templates/admin-site-traffic-loading.d.ts +3 -0
- package/declarations/admin/templates/admin-site-traffic-loading.d.ts.map +1 -0
- package/declarations/admin/templates/admin-site-traffic.d.ts +3 -0
- package/declarations/admin/templates/admin-site-traffic.d.ts.map +1 -0
- package/declarations/app/adapters/topic-list.d.ts +2 -1
- package/declarations/app/adapters/topic-list.d.ts.map +1 -1
- package/declarations/app/app.d.ts +1 -1
- package/declarations/app/blocks/block-outlet.d.ts +51 -76
- package/declarations/app/blocks/block-outlet.d.ts.map +1 -1
- package/declarations/app/blocks/builtin/block-group.d.ts +10 -4
- package/declarations/app/blocks/builtin/block-group.d.ts.map +1 -1
- package/declarations/app/blocks/builtin/block-head.d.ts +19 -11
- package/declarations/app/blocks/builtin/block-head.d.ts.map +1 -1
- package/declarations/app/blocks/builtin/index.d.ts +30 -0
- package/declarations/app/blocks/builtin/index.d.ts.map +1 -1
- package/declarations/app/blocks/conditions/condition.d.ts +71 -52
- package/declarations/app/blocks/conditions/condition.d.ts.map +1 -1
- package/declarations/app/blocks/conditions/decorator.d.ts +29 -20
- package/declarations/app/blocks/conditions/decorator.d.ts.map +1 -1
- package/declarations/app/blocks/conditions/index.d.ts +2 -0
- package/declarations/app/blocks/conditions/index.d.ts.map +1 -1
- package/declarations/app/blocks/conditions/outlet-arg.d.ts +17 -36
- package/declarations/app/blocks/conditions/outlet-arg.d.ts.map +1 -1
- package/declarations/app/blocks/conditions/route.d.ts +19 -21
- package/declarations/app/blocks/conditions/route.d.ts.map +1 -1
- package/declarations/app/blocks/conditions/setting.d.ts +21 -28
- package/declarations/app/blocks/conditions/setting.d.ts.map +1 -1
- package/declarations/app/blocks/conditions/user.d.ts +23 -14
- package/declarations/app/blocks/conditions/user.d.ts.map +1 -1
- package/declarations/app/blocks/conditions/viewport.d.ts +17 -18
- package/declarations/app/blocks/conditions/viewport.d.ts.map +1 -1
- package/declarations/app/blocks/index.d.ts +7 -0
- package/declarations/app/blocks/index.d.ts.map +1 -1
- package/declarations/app/blocks/types.d.ts +153 -0
- package/declarations/app/blocks/types.d.ts.map +1 -0
- package/declarations/app/components/a11y/live-regions.d.ts +21 -0
- package/declarations/app/components/a11y/live-regions.d.ts.map +1 -1
- package/declarations/app/components/about-page-extra-groups.d.ts.map +1 -1
- package/declarations/app/components/ace-editor.d.ts +3 -0
- package/declarations/app/components/ace-editor.d.ts.map +1 -1
- package/declarations/app/components/admin-onboarding/banner.d.ts +8 -1
- package/declarations/app/components/admin-onboarding/banner.d.ts.map +1 -1
- package/declarations/app/components/admin-onboarding/step.d.ts +2 -2
- package/declarations/app/components/admin-onboarding/step.d.ts.map +1 -1
- package/declarations/app/components/advanced-mode-toggle.d.ts +6 -2
- package/declarations/app/components/advanced-mode-toggle.d.ts.map +1 -1
- package/declarations/app/components/bookmark-icon.d.ts +1 -1
- package/declarations/app/components/bookmark-menu.d.ts +1 -1
- package/declarations/app/components/bulk-select-topics-dropdown.d.ts +1 -0
- package/declarations/app/components/bulk-select-topics-dropdown.d.ts.map +1 -1
- package/declarations/app/components/categories-boxes.d.ts +2 -0
- package/declarations/app/components/categories-boxes.d.ts.map +1 -1
- package/declarations/app/components/category-list-item.d.ts +4 -0
- package/declarations/app/components/category-list-item.d.ts.map +1 -1
- package/declarations/app/components/code-login-form.d.ts +1 -0
- package/declarations/app/components/code-login-form.d.ts.map +1 -1
- package/declarations/app/components/composer-action-title.d.ts +0 -8
- package/declarations/app/components/composer-action-title.d.ts.map +1 -1
- package/declarations/app/components/{composer-actions-new.d.ts → composer-actions.d.ts} +1 -1
- package/declarations/app/components/composer-actions.d.ts.map +1 -0
- package/declarations/app/components/composer-body.d.ts +1 -1
- package/declarations/app/components/composer-body.d.ts.map +1 -1
- package/declarations/app/components/composer-container.d.ts +4 -2
- package/declarations/app/components/composer-container.d.ts.map +1 -1
- package/declarations/app/components/composer-editor.d.ts +3 -0
- package/declarations/app/components/composer-editor.d.ts.map +1 -1
- package/declarations/app/components/composer-messages.d.ts.map +1 -1
- package/declarations/app/components/composer-toggles.d.ts +1 -0
- package/declarations/app/components/composer-toggles.d.ts.map +1 -1
- package/declarations/app/components/create-topic-button.d.ts +5 -0
- package/declarations/app/components/create-topic-button.d.ts.map +1 -1
- package/declarations/app/components/design-wizard/colors-section.d.ts +3 -0
- package/declarations/app/components/design-wizard/colors-section.d.ts.map +1 -0
- package/declarations/app/components/design-wizard/controls.d.ts +23 -0
- package/declarations/app/components/design-wizard/controls.d.ts.map +1 -0
- package/declarations/app/components/design-wizard/fonts-section.d.ts +9 -0
- package/declarations/app/components/design-wizard/fonts-section.d.ts.map +1 -0
- package/declarations/app/components/design-wizard/homepage-section.d.ts +3 -0
- package/declarations/app/components/design-wizard/homepage-section.d.ts.map +1 -0
- package/declarations/app/components/design-wizard/section.d.ts +3 -0
- package/declarations/app/components/design-wizard/section.d.ts.map +1 -0
- package/declarations/app/components/design-wizard/theme-section.d.ts +3 -0
- package/declarations/app/components/design-wizard/theme-section.d.ts.map +1 -0
- package/declarations/app/components/design-wizard-panel.d.ts +9 -0
- package/declarations/app/components/design-wizard-panel.d.ts.map +1 -0
- package/declarations/app/components/docked-composer.d.ts +2 -4
- package/declarations/app/components/docked-composer.d.ts.map +1 -1
- package/declarations/app/components/embed-mode-composer.d.ts.map +1 -1
- package/declarations/app/components/form-template-field/composer.d.ts +8 -1
- package/declarations/app/components/form-template-field/composer.d.ts.map +1 -1
- package/declarations/app/components/global-notice.d.ts.map +1 -1
- package/declarations/app/components/group-flair-inputs.d.ts +0 -1
- package/declarations/app/components/group-flair-inputs.d.ts.map +1 -1
- package/declarations/app/components/header/icons.d.ts.map +1 -1
- package/declarations/app/components/header/topic/info.d.ts.map +1 -1
- package/declarations/app/components/invite-panel.d.ts.map +1 -1
- package/declarations/app/components/language-switcher.d.ts.map +1 -1
- package/declarations/app/components/local-login-form.d.ts +1 -0
- package/declarations/app/components/local-login-form.d.ts.map +1 -1
- package/declarations/app/components/modal/bookmark.d.ts.map +1 -1
- package/declarations/app/components/modal/bulk-topic-actions.d.ts.map +1 -1
- package/declarations/app/components/modal/content-language-preferences.d.ts +30 -0
- package/declarations/app/components/modal/content-language-preferences.d.ts.map +1 -0
- package/declarations/app/components/modal/create-invite-with-roles.d.ts +11 -3
- package/declarations/app/components/modal/create-invite-with-roles.d.ts.map +1 -1
- package/declarations/app/components/modal/create-invite.d.ts.map +1 -1
- package/declarations/app/components/modal/flag.d.ts +2 -2
- package/declarations/app/components/modal/history.d.ts +1 -1
- package/declarations/app/components/modal/keyboard-shortcuts-help.d.ts.map +1 -1
- package/declarations/app/components/modal/nested-activity-log/item.d.ts +2 -1
- package/declarations/app/components/modal/nested-activity-log/item.d.ts.map +1 -1
- package/declarations/app/components/modal/nested-activity-log.d.ts +20 -1
- package/declarations/app/components/modal/nested-activity-log.d.ts.map +1 -1
- package/declarations/app/components/modal/sidebar-section-form.d.ts +53 -19
- package/declarations/app/components/modal/sidebar-section-form.d.ts.map +1 -1
- package/declarations/app/components/nested.d.ts +1 -0
- package/declarations/app/components/nested.d.ts.map +1 -1
- package/declarations/app/components/parent-category-row.d.ts +1 -0
- package/declarations/app/components/parent-category-row.d.ts.map +1 -1
- package/declarations/app/components/plugin-outlet.d.ts +11 -1
- package/declarations/app/components/plugin-outlet.d.ts.map +1 -1
- package/declarations/app/components/post/menu/liked-users-list.d.ts +2 -13
- package/declarations/app/components/post/menu/liked-users-list.d.ts.map +1 -1
- package/declarations/app/components/post/menu/liked-users-menu.d.ts.map +1 -1
- package/declarations/app/components/post-stream.d.ts +2 -5
- package/declarations/app/components/post-stream.d.ts.map +1 -1
- package/declarations/app/components/post.d.ts +1 -1
- package/declarations/app/components/post.d.ts.map +1 -1
- package/declarations/app/components/reviewable/index.d.ts +2 -5
- package/declarations/app/components/reviewable/index.d.ts.map +1 -1
- package/declarations/app/components/reviewable/insights.d.ts.map +1 -1
- package/declarations/app/components/reviewable/item.d.ts +10 -12
- package/declarations/app/components/reviewable/item.d.ts.map +1 -1
- package/declarations/app/components/reviewable/timeline.d.ts +1 -7
- package/declarations/app/components/reviewable/timeline.d.ts.map +1 -1
- package/declarations/app/components/reviewable/user.d.ts +3 -0
- package/declarations/app/components/reviewable/user.d.ts.map +1 -1
- package/declarations/app/components/reviewable-bundled-action.d.ts +1 -1
- package/declarations/app/components/reviewable-bundled-action.d.ts.map +1 -1
- package/declarations/app/components/setting-definition-field.d.ts.map +1 -1
- package/declarations/app/components/setting-field/category.d.ts +7 -0
- package/declarations/app/components/setting-field/category.d.ts.map +1 -0
- package/declarations/app/components/setting-field/enum.d.ts +5 -0
- package/declarations/app/components/setting-field/enum.d.ts.map +1 -1
- package/declarations/app/components/setting-field/group.d.ts +9 -0
- package/declarations/app/components/setting-field/group.d.ts.map +1 -0
- package/declarations/app/components/setting-field/icon.d.ts +3 -0
- package/declarations/app/components/setting-field/icon.d.ts.map +1 -0
- package/declarations/app/components/setting-field/integer.d.ts +1 -0
- package/declarations/app/components/setting-field/integer.d.ts.map +1 -1
- package/declarations/app/components/setting-field/locale-enum.d.ts +5 -0
- package/declarations/app/components/setting-field/locale-enum.d.ts.map +1 -0
- package/declarations/app/components/setting-field/tag-group-list.d.ts +7 -0
- package/declarations/app/components/setting-field/tag-group-list.d.ts.map +1 -0
- package/declarations/app/components/setting-field/tag-list.d.ts +7 -0
- package/declarations/app/components/setting-field/tag-list.d.ts.map +1 -0
- package/declarations/app/components/sidebar/anonymous/categories-section.d.ts +2 -0
- package/declarations/app/components/sidebar/anonymous/categories-section.d.ts.map +1 -1
- package/declarations/app/components/sidebar/anonymous/sections.d.ts +2 -0
- package/declarations/app/components/sidebar/anonymous/sections.d.ts.map +1 -1
- package/declarations/app/components/sidebar/anonymous/tags-section.d.ts +2 -0
- package/declarations/app/components/sidebar/anonymous/tags-section.d.ts.map +1 -1
- package/declarations/app/components/sidebar/api-section.d.ts +6 -2
- package/declarations/app/components/sidebar/api-section.d.ts.map +1 -1
- package/declarations/app/components/sidebar/api-sections.d.ts.map +1 -1
- package/declarations/app/components/sidebar/common/all-categories-section-link.d.ts +6 -2
- package/declarations/app/components/sidebar/common/all-categories-section-link.d.ts.map +1 -1
- package/declarations/app/components/sidebar/common/all-tags-section-link.d.ts +6 -2
- package/declarations/app/components/sidebar/common/all-tags-section-link.d.ts.map +1 -1
- package/declarations/app/components/sidebar/common/custom-section.d.ts +1 -0
- package/declarations/app/components/sidebar/common/custom-section.d.ts.map +1 -1
- package/declarations/app/components/sidebar/common/custom-sections.d.ts.map +1 -1
- package/declarations/app/components/sidebar/more-section-link.d.ts.map +1 -1
- package/declarations/app/components/sidebar/more-section-links.d.ts +2 -0
- package/declarations/app/components/sidebar/more-section-links.d.ts.map +1 -1
- package/declarations/app/components/sidebar/more-section-trigger.d.ts.map +1 -1
- package/declarations/app/components/sidebar/section-form-link.d.ts +0 -2
- package/declarations/app/components/sidebar/section-form-link.d.ts.map +1 -1
- package/declarations/app/components/sidebar/section-link.d.ts.map +1 -1
- package/declarations/app/components/sidebar/section.d.ts +57 -1
- package/declarations/app/components/sidebar/section.d.ts.map +1 -1
- package/declarations/app/components/sidebar/sections.d.ts.map +1 -1
- package/declarations/app/components/sidebar/user/categories-section.d.ts +2 -0
- package/declarations/app/components/sidebar/user/categories-section.d.ts.map +1 -1
- package/declarations/app/components/sidebar/user/sections.d.ts +38 -0
- package/declarations/app/components/sidebar/user/sections.d.ts.map +1 -1
- package/declarations/app/components/sidebar/user/tags-section.d.ts +2 -0
- package/declarations/app/components/sidebar/user/tags-section.d.ts.map +1 -1
- package/declarations/app/components/sidebar.d.ts +12 -0
- package/declarations/app/components/sidebar.d.ts.map +1 -1
- package/declarations/app/components/subcategories-with-featured-topics.d.ts +1 -0
- package/declarations/app/components/subcategories-with-featured-topics.d.ts.map +1 -1
- package/declarations/app/components/tag-info.d.ts.map +1 -1
- package/declarations/app/components/tag-settings.d.ts.map +1 -1
- package/declarations/app/components/topic-bookmarks-menu.d.ts +1 -1
- package/declarations/app/components/topic-category.d.ts.map +1 -1
- package/declarations/app/components/topic-content-language-preferences.d.ts +7 -0
- package/declarations/app/components/topic-content-language-preferences.d.ts.map +1 -0
- package/declarations/app/components/topic-dismiss-buttons.d.ts.map +1 -1
- package/declarations/app/components/topic-drafts-dropdown.d.ts.map +1 -1
- package/declarations/app/components/topic-footer-buttons.d.ts +0 -2
- package/declarations/app/components/topic-footer-buttons.d.ts.map +1 -1
- package/declarations/app/components/topic-list/header/sortable-column.d.ts +1 -0
- package/declarations/app/components/topic-list/header/sortable-column.d.ts.map +1 -1
- package/declarations/app/components/topic-navigation.d.ts.map +1 -1
- package/declarations/app/components/topic-post-badges.d.ts.map +1 -1
- package/declarations/app/components/topic-timeline/container.d.ts.map +1 -1
- package/declarations/app/components/topic-timeline/scroller.d.ts.map +1 -1
- package/declarations/app/components/user/users-popup.d.ts +7 -0
- package/declarations/app/components/user/users-popup.d.ts.map +1 -1
- package/declarations/app/components/user-menu/bookmarks-list.d.ts.map +1 -1
- package/declarations/app/components/user-menu/items-list.d.ts +1 -1
- package/declarations/app/components/user-menu/items-list.d.ts.map +1 -1
- package/declarations/app/components/user-menu/likes-notifications-list.d.ts.map +1 -1
- package/declarations/app/components/user-menu/messages-list.d.ts.map +1 -1
- package/declarations/app/components/user-menu/notifications-list.d.ts.map +1 -1
- package/declarations/app/components/user-menu/other-notifications-list.d.ts.map +1 -1
- package/declarations/app/components/user-menu/replies-notifications-list.d.ts.map +1 -1
- package/declarations/app/components/welcome-banner.d.ts.map +1 -1
- package/declarations/app/controllers/exception.d.ts +5 -6
- package/declarations/app/controllers/exception.d.ts.map +1 -1
- package/declarations/app/controllers/full-page-search.d.ts.map +1 -1
- package/declarations/app/controllers/login.d.ts.map +1 -1
- package/declarations/app/controllers/nested.d.ts.map +1 -1
- package/declarations/app/controllers/preferences/interface.d.ts +7 -0
- package/declarations/app/controllers/preferences/interface.d.ts.map +1 -1
- package/declarations/app/controllers/topic.d.ts.map +1 -1
- package/declarations/app/deprecation-workflow.d.ts.map +1 -1
- package/declarations/app/form-kit/components/fk/control/checkbox.d.ts.map +1 -1
- package/declarations/app/form-kit/components/fk/control/icon.d.ts.map +1 -1
- package/declarations/app/form-kit/components/fk/control/input.d.ts +2 -0
- package/declarations/app/form-kit/components/fk/control/input.d.ts.map +1 -1
- package/declarations/app/form-kit/components/fk/control/password.d.ts.map +1 -1
- package/declarations/app/form-kit/components/fk/control/tag-chooser.d.ts.map +1 -1
- package/declarations/app/form-kit/components/fk/field-data.d.ts +15 -4
- package/declarations/app/form-kit/components/fk/field-data.d.ts.map +1 -1
- package/declarations/app/form-kit/components/fk/form.d.ts.map +1 -1
- package/declarations/app/form-kit/lib/constants.d.ts +0 -1
- package/declarations/app/form-kit/lib/constants.d.ts.map +1 -1
- package/declarations/app/form-kit/lib/validator.d.ts.map +1 -1
- package/declarations/app/helpers/category-list-subcategories.d.ts +30 -0
- package/declarations/app/helpers/category-list-subcategories.d.ts.map +1 -0
- package/declarations/app/initializers/dev-tools.d.ts +10 -3
- package/declarations/app/initializers/dev-tools.d.ts.map +1 -1
- package/declarations/app/initializers/freeze-block-registry.d.ts +21 -6
- package/declarations/app/initializers/freeze-block-registry.d.ts.map +1 -1
- package/declarations/app/instance-initializers/signup-cta.d.ts.map +1 -1
- package/declarations/app/instance-initializers/topic-footer-buttons.d.ts.map +1 -1
- package/declarations/app/instance-initializers/verify-session-after-restore.d.ts +7 -0
- package/declarations/app/instance-initializers/verify-session-after-restore.d.ts.map +1 -0
- package/declarations/app/instance-initializers/video-placeholder.d.ts.map +1 -1
- package/declarations/app/lib/-internals/drag-and-drop/consumer-may-throw.d.ts +17 -0
- package/declarations/app/lib/-internals/drag-and-drop/consumer-may-throw.d.ts.map +1 -0
- package/declarations/app/lib/-internals/drag-and-drop/drag-dwell.d.ts +64 -0
- package/declarations/app/lib/-internals/drag-and-drop/drag-dwell.d.ts.map +1 -0
- package/declarations/app/lib/-internals/drag-and-drop/drop-target-kernel.d.ts +145 -0
- package/declarations/app/lib/-internals/drag-and-drop/drop-target-kernel.d.ts.map +1 -0
- package/declarations/app/lib/-internals/drag-and-drop/external-vocabulary.d.ts +63 -0
- package/declarations/app/lib/-internals/drag-and-drop/external-vocabulary.d.ts.map +1 -0
- package/declarations/app/lib/-internals/drag-and-drop/native-drag-adoption.d.ts +60 -0
- package/declarations/app/lib/-internals/drag-and-drop/native-drag-adoption.d.ts.map +1 -0
- package/declarations/app/lib/-internals/drag-and-drop/vocabulary.d.ts +81 -0
- package/declarations/app/lib/-internals/drag-and-drop/vocabulary.d.ts.map +1 -0
- package/declarations/app/lib/ajax-error.d.ts +1 -0
- package/declarations/app/lib/ajax-error.d.ts.map +1 -1
- package/declarations/app/lib/api.d.ts +1 -0
- package/declarations/app/lib/api.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/components/block-layout-wrapper.d.ts +14 -78
- package/declarations/app/lib/blocks/-internals/components/block-layout-wrapper.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/components/block-outlet-inline-error.d.ts +10 -7
- package/declarations/app/lib/blocks/-internals/components/block-outlet-inline-error.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/components/block-outlet-root-container.d.ts +21 -12
- package/declarations/app/lib/blocks/-internals/components/block-outlet-root-container.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/css.d.ts +21 -24
- package/declarations/app/lib/blocks/-internals/css.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/debug-hooks.d.ts +193 -138
- package/declarations/app/lib/blocks/-internals/debug-hooks.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/decorator.d.ts +43 -216
- package/declarations/app/lib/blocks/-internals/decorator.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/entry-processing.d.ts +61 -129
- package/declarations/app/lib/blocks/-internals/entry-processing.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/error.d.ts +61 -69
- package/declarations/app/lib/blocks/-internals/error.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/matching/condition-evaluator.d.ts +18 -12
- package/declarations/app/lib/blocks/-internals/matching/condition-evaluator.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/matching/outlet-matcher.d.ts +64 -37
- package/declarations/app/lib/blocks/-internals/matching/outlet-matcher.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/matching/page-definitions.d.ts +105 -106
- package/declarations/app/lib/blocks/-internals/matching/page-definitions.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/matching/url-matcher.d.ts +19 -11
- package/declarations/app/lib/blocks/-internals/matching/url-matcher.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/matching/value-matcher.d.ts +42 -34
- package/declarations/app/lib/blocks/-internals/matching/value-matcher.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/patterns.d.ts +85 -83
- package/declarations/app/lib/blocks/-internals/patterns.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/registry/block.d.ts +47 -85
- package/declarations/app/lib/blocks/-internals/registry/block.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/registry/condition.d.ts +26 -26
- package/declarations/app/lib/blocks/-internals/registry/condition.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/registry/helpers.d.ts +54 -47
- package/declarations/app/lib/blocks/-internals/registry/helpers.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/registry/outlet.d.ts +30 -25
- package/declarations/app/lib/blocks/-internals/registry/outlet.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/types.d.ts +58 -0
- package/declarations/app/lib/blocks/-internals/types.d.ts.map +1 -0
- package/declarations/app/lib/blocks/-internals/utils.d.ts +59 -86
- package/declarations/app/lib/blocks/-internals/utils.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/validation/args.d.ts +178 -224
- package/declarations/app/lib/blocks/-internals/validation/args.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/validation/block-args.d.ts +32 -23
- package/declarations/app/lib/blocks/-internals/validation/block-args.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/validation/block-decorator.d.ts +23 -17
- package/declarations/app/lib/blocks/-internals/validation/block-decorator.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/validation/condition-args.d.ts +26 -16
- package/declarations/app/lib/blocks/-internals/validation/condition-args.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/validation/conditions.d.ts +23 -18
- package/declarations/app/lib/blocks/-internals/validation/conditions.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/validation/constraints.d.ts +31 -17
- package/declarations/app/lib/blocks/-internals/validation/constraints.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/validation/layout.d.ts +77 -85
- package/declarations/app/lib/blocks/-internals/validation/layout.d.ts.map +1 -1
- package/declarations/app/lib/blocks/index.d.ts +127 -2
- package/declarations/app/lib/blocks/index.d.ts.map +1 -1
- package/declarations/app/lib/codeblock-buttons.d.ts.map +1 -1
- package/declarations/app/lib/composer/actions-registry.d.ts +4 -0
- package/declarations/app/lib/composer/actions-registry.d.ts.map +1 -0
- package/declarations/app/lib/composer/composer-position.d.ts.map +1 -1
- package/declarations/app/lib/composer/rich-editor-extensions.d.ts +208 -139
- package/declarations/app/lib/composer/rich-editor-extensions.d.ts.map +1 -1
- package/declarations/app/lib/composer/text-manipulation.d.ts +172 -251
- package/declarations/app/lib/composer/text-manipulation.d.ts.map +1 -1
- package/declarations/app/lib/composer/toolbar.d.ts +161 -80
- package/declarations/app/lib/composer/toolbar.d.ts.map +1 -1
- package/declarations/app/lib/constants.d.ts +2 -0
- package/declarations/app/lib/constants.d.ts.map +1 -1
- package/declarations/app/lib/content-localization.d.ts +18 -0
- package/declarations/app/lib/content-localization.d.ts.map +1 -0
- package/declarations/app/lib/customization-source.d.ts +26 -0
- package/declarations/app/lib/customization-source.d.ts.map +1 -0
- package/declarations/app/lib/dag.d.ts +73 -79
- package/declarations/app/lib/dag.d.ts.map +1 -1
- package/declarations/app/lib/deprecated.d.ts +21 -3
- package/declarations/app/lib/deprecated.d.ts.map +1 -1
- package/declarations/app/lib/design-wizard-preview.d.ts +52 -0
- package/declarations/app/lib/design-wizard-preview.d.ts.map +1 -0
- package/declarations/app/lib/download-blob.d.ts +3 -0
- package/declarations/app/lib/download-blob.d.ts.map +1 -0
- package/declarations/app/lib/download-strategy.d.ts +2 -0
- package/declarations/app/lib/download-strategy.d.ts.map +1 -0
- package/declarations/app/lib/element-class-lease.d.ts +37 -0
- package/declarations/app/lib/element-class-lease.d.ts.map +1 -0
- package/declarations/app/lib/filter-mode.d.ts +9 -0
- package/declarations/app/lib/filter-mode.d.ts.map +1 -1
- package/declarations/app/lib/geometry.d.ts +11 -0
- package/declarations/app/lib/geometry.d.ts.map +1 -0
- package/declarations/app/lib/helpers.d.ts +43 -9
- package/declarations/app/lib/helpers.d.ts.map +1 -1
- package/declarations/app/lib/highlight-syntax.d.ts.map +1 -1
- package/declarations/app/lib/icon-library.d.ts +7 -3
- package/declarations/app/lib/icon-library.d.ts.map +1 -1
- package/declarations/app/lib/later.d.ts +3 -1
- package/declarations/app/lib/later.d.ts.map +1 -1
- package/declarations/app/lib/locale-normalizer.d.ts +11 -0
- package/declarations/app/lib/locale-normalizer.d.ts.map +1 -0
- package/declarations/app/lib/plugin-api.d.ts +36 -5
- package/declarations/app/lib/plugin-api.d.ts.map +1 -1
- package/declarations/app/lib/registry/block-outlets.d.ts +2 -2
- package/declarations/app/lib/registry/block-outlets.d.ts.map +1 -1
- package/declarations/app/lib/registry/transformers.d.ts.map +1 -1
- package/declarations/app/lib/report-client-error.d.ts +10 -0
- package/declarations/app/lib/report-client-error.d.ts.map +1 -0
- package/declarations/app/lib/resize-measurements.d.ts +43 -0
- package/declarations/app/lib/resize-measurements.d.ts.map +1 -0
- package/declarations/app/lib/reviewable-registry.d.ts +12 -0
- package/declarations/app/lib/reviewable-registry.d.ts.map +1 -0
- package/declarations/app/lib/search.d.ts.map +1 -1
- package/declarations/app/lib/setting-field-registry.d.ts.map +1 -1
- package/declarations/app/lib/sidebar/active-link.d.ts +25 -0
- package/declarations/app/lib/sidebar/active-link.d.ts.map +1 -0
- package/declarations/app/lib/sidebar/base-custom-sidebar-section.d.ts +50 -0
- package/declarations/app/lib/sidebar/base-custom-sidebar-section.d.ts.map +1 -1
- package/declarations/app/lib/sidebar/custom-sections.d.ts.map +1 -1
- package/declarations/app/lib/sidebar/link-drop.d.ts +37 -0
- package/declarations/app/lib/sidebar/link-drop.d.ts.map +1 -0
- package/declarations/app/lib/sidebar/section.d.ts +12 -0
- package/declarations/app/lib/sidebar/section.d.ts.map +1 -1
- package/declarations/app/lib/sidebar/user/tags-section/tag-section-link.d.ts +1 -1
- package/declarations/app/lib/svg-sprite-loader.d.ts +31 -0
- package/declarations/app/lib/svg-sprite-loader.d.ts.map +1 -1
- package/declarations/app/lib/text.d.ts +1 -0
- package/declarations/app/lib/text.d.ts.map +1 -1
- package/declarations/app/lib/textarea-text-manipulation.d.ts +67 -81
- package/declarations/app/lib/textarea-text-manipulation.d.ts.map +1 -1
- package/declarations/app/lib/url.d.ts +0 -1
- package/declarations/app/lib/url.d.ts.map +1 -1
- package/declarations/app/models/category.d.ts.map +1 -1
- package/declarations/app/models/composer.d.ts.map +1 -1
- package/declarations/app/models/post.d.ts +1 -0
- package/declarations/app/models/post.d.ts.map +1 -1
- package/declarations/app/models/reviewable-history.d.ts +2 -4
- package/declarations/app/models/reviewable-history.d.ts.map +1 -1
- package/declarations/app/models/reviewable.d.ts +40 -0
- package/declarations/app/models/reviewable.d.ts.map +1 -1
- package/declarations/app/models/site.d.ts +2 -0
- package/declarations/app/models/site.d.ts.map +1 -1
- package/declarations/app/models/tag-group.d.ts +1 -1
- package/declarations/app/models/topic-tracking-state.d.ts.map +1 -1
- package/declarations/app/models/user.d.ts +0 -1
- package/declarations/app/models/user.d.ts.map +1 -1
- package/declarations/app/resolver.d.ts +1 -1
- package/declarations/app/routes/application.d.ts +1 -0
- package/declarations/app/routes/application.d.ts.map +1 -1
- package/declarations/app/routes/build-category-route.d.ts.map +1 -1
- package/declarations/app/routes/login.d.ts.map +1 -1
- package/declarations/app/routes/signup.d.ts.map +1 -1
- package/declarations/app/routes/user-activity-stream.d.ts +3 -3
- package/declarations/app/routes/user-activity-stream.d.ts.map +1 -1
- package/declarations/app/routes/wizard.d.ts +1 -0
- package/declarations/app/routes/wizard.d.ts.map +1 -1
- package/declarations/app/services/a11y.d.ts.map +1 -1
- package/declarations/app/services/blocks.d.ts +41 -49
- package/declarations/app/services/blocks.d.ts.map +1 -1
- package/declarations/app/services/composer.d.ts +1 -1
- package/declarations/app/services/deprecation-warning-handler.d.ts.map +1 -1
- package/declarations/app/services/design-wizard.d.ts +46 -0
- package/declarations/app/services/design-wizard.d.ts.map +1 -0
- package/declarations/app/services/discovery.d.ts +9 -0
- package/declarations/app/services/discovery.d.ts.map +1 -1
- package/declarations/app/services/drag-and-drop.d.ts +52 -0
- package/declarations/app/services/drag-and-drop.d.ts.map +1 -0
- package/declarations/app/services/exception.d.ts +15 -0
- package/declarations/app/services/exception.d.ts.map +1 -0
- package/declarations/app/services/human-activity-tracker.d.ts +1 -1
- package/declarations/app/services/human-activity-tracker.d.ts.map +1 -1
- package/declarations/app/services/loading-slider.d.ts +3 -1
- package/declarations/app/services/loading-slider.d.ts.map +1 -1
- package/declarations/app/services/login.d.ts +3 -0
- package/declarations/app/services/login.d.ts.map +1 -1
- package/declarations/app/services/presence.d.ts +1 -1
- package/declarations/app/services/presence.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/block-debug/block-info.d.ts +30 -18
- package/declarations/app/static/dev-tools/block-debug/block-info.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/block-debug/button.d.ts +7 -8
- package/declarations/app/static/dev-tools/block-debug/button.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/block-debug/conditions-tree.d.ts +31 -9
- package/declarations/app/static/dev-tools/block-debug/conditions-tree.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/block-debug/debug-logger.d.ts +86 -76
- package/declarations/app/static/dev-tools/block-debug/debug-logger.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/block-debug/ghost-block.d.ts +35 -84
- package/declarations/app/static/dev-tools/block-debug/ghost-block.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/block-debug/outlet-info.d.ts +21 -50
- package/declarations/app/static/dev-tools/block-debug/outlet-info.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/block-debug/patch.d.ts +1 -1
- package/declarations/app/static/dev-tools/block-debug/patch.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/entrypoint.d.ts +2 -1
- package/declarations/app/static/dev-tools/entrypoint.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/toolbar.d.ts +11 -7
- package/declarations/app/static/dev-tools/toolbar.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/tools.d.ts +15 -0
- package/declarations/app/static/dev-tools/tools.d.ts.map +1 -0
- package/declarations/app/static/prosemirror/components/prosemirror-editor.d.ts +105 -128
- package/declarations/app/static/prosemirror/components/prosemirror-editor.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/core/keymap.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/code-block.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/code.d.ts +2 -2
- package/declarations/app/static/prosemirror/extensions/code.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/hard-break.d.ts +2 -2
- package/declarations/app/static/prosemirror/extensions/hard-break.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/html-inline.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/link.d.ts +2 -2
- package/declarations/app/static/prosemirror/extensions/link.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/mention.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/onebox.d.ts +1 -1
- package/declarations/app/static/prosemirror/extensions/override-drag-ghost.d.ts +4 -6
- package/declarations/app/static/prosemirror/extensions/override-drag-ghost.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/placeholder.d.ts +3 -4
- package/declarations/app/static/prosemirror/extensions/placeholder.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/quote.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/register-default.d.ts +3 -4
- package/declarations/app/static/prosemirror/extensions/register-default.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/strikethrough.d.ts +2 -2
- package/declarations/app/static/prosemirror/extensions/strikethrough.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/strong.d.ts +4 -0
- package/declarations/app/static/prosemirror/extensions/strong.d.ts.map +1 -0
- package/declarations/app/static/prosemirror/extensions/trailing-inline-space.d.ts +2 -2
- package/declarations/app/static/prosemirror/extensions/trailing-inline-space.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/trailing-paragraph.d.ts +2 -2
- package/declarations/app/static/prosemirror/extensions/trailing-paragraph.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/underline.d.ts +2 -2
- package/declarations/app/static/prosemirror/extensions/underline.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/word-paste.d.ts +0 -1
- package/declarations/app/static/prosemirror/extensions/word-paste.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/lib/text-manipulation.d.ts +48 -59
- package/declarations/app/static/prosemirror/lib/text-manipulation.d.ts.map +1 -1
- package/declarations/app/templates/review/show.d.ts +2 -5
- package/declarations/app/templates/review/show.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-access-control-field.d.ts +11 -0
- package/declarations/app/ui-kit/d-access-control-field.d.ts.map +1 -0
- package/declarations/app/ui-kit/d-access-control.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-async-content.d.ts +10 -0
- package/declarations/app/ui-kit/d-async-content.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-button.d.ts +2 -2
- package/declarations/app/ui-kit/d-button.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-combo-button.d.ts +74 -2
- package/declarations/app/ui-kit/d-combo-button.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-copy-button.d.ts +17 -8
- package/declarations/app/ui-kit/d-copy-button.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-date-input.d.ts +1 -1
- package/declarations/app/ui-kit/d-date-picker.d.ts +1 -1
- package/declarations/app/ui-kit/d-editor.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-filter-controls.d.ts +18 -1
- package/declarations/app/ui-kit/d-filter-controls.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-filter-input.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-icon-grid-picker/content.d.ts +62 -17
- package/declarations/app/ui-kit/d-icon-grid-picker/content.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-icon-grid-picker/index.d.ts +6 -8
- package/declarations/app/ui-kit/d-icon-grid-picker/index.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-load-more.d.ts +78 -19
- package/declarations/app/ui-kit/d-load-more.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-modal.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-resize-handles.d.ts +243 -0
- package/declarations/app/ui-kit/d-resize-handles.d.ts.map +1 -0
- package/declarations/app/ui-kit/d-resize-separator.d.ts +222 -0
- package/declarations/app/ui-kit/d-resize-separator.d.ts.map +1 -0
- package/declarations/app/ui-kit/d-select.d.ts +2 -1
- package/declarations/app/ui-kit/d-select.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-skeleton.d.ts +99 -0
- package/declarations/app/ui-kit/d-skeleton.d.ts.map +1 -0
- package/declarations/app/ui-kit/helpers/d-category-link.d.ts.map +1 -1
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-auto-scroll.d.ts +108 -0
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-auto-scroll.d.ts.map +1 -0
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-external-target.d.ts +80 -0
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-external-target.d.ts.map +1 -0
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-monitor.d.ts +80 -0
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-monitor.d.ts.map +1 -0
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-source.d.ts +249 -0
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-source.d.ts.map +1 -0
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-target.d.ts +102 -0
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-target.d.ts.map +1 -0
- package/declarations/app/ui-kit/modifiers/d-drag-dwell.d.ts +215 -0
- package/declarations/app/ui-kit/modifiers/d-drag-dwell.d.ts.map +1 -0
- package/declarations/app/ui-kit/modifiers/d-draggable.d.ts +15 -0
- package/declarations/app/ui-kit/modifiers/d-draggable.d.ts.map +1 -1
- package/declarations/app/ui-kit/modifiers/d-on-resize.d.ts +3 -0
- package/declarations/app/ui-kit/modifiers/d-on-resize.d.ts.map +1 -1
- package/declarations/app/ui-kit/modifiers/d-pointer-drag.d.ts +215 -0
- package/declarations/app/ui-kit/modifiers/d-pointer-drag.d.ts.map +1 -0
- package/declarations/app/ui-kit/modifiers/d-resize-edge.d.ts +170 -0
- package/declarations/app/ui-kit/modifiers/d-resize-edge.d.ts.map +1 -0
- package/declarations/app/ui-kit/modifiers/d-swipe.d.ts +8 -0
- package/declarations/app/ui-kit/modifiers/d-swipe.d.ts.map +1 -1
- package/declarations/float-kit/components/d-float-body.d.ts +39 -0
- package/declarations/float-kit/components/d-float-body.d.ts.map +1 -1
- package/declarations/float-kit/components/d-headless-menu.d.ts.map +1 -1
- package/declarations/float-kit/components/d-inline-float.d.ts +8 -6
- package/declarations/float-kit/components/d-inline-float.d.ts.map +1 -1
- package/declarations/float-kit/components/d-menu.d.ts +35 -4
- package/declarations/float-kit/components/d-menu.d.ts.map +1 -1
- package/declarations/float-kit/components/d-tooltip.d.ts +2 -0
- package/declarations/float-kit/components/d-tooltip.d.ts.map +1 -1
- package/declarations/float-kit/lib/constants.d.ts +63 -4
- package/declarations/float-kit/lib/constants.d.ts.map +1 -1
- package/declarations/float-kit/lib/d-menu-instance.d.ts +8 -2
- package/declarations/float-kit/lib/d-menu-instance.d.ts.map +1 -1
- package/declarations/float-kit/lib/d-tooltip-instance.d.ts.map +1 -1
- package/declarations/float-kit/lib/float-kit-instance.d.ts +48 -0
- package/declarations/float-kit/lib/float-kit-instance.d.ts.map +1 -1
- package/declarations/float-kit/lib/tab-order.d.ts +36 -0
- package/declarations/float-kit/lib/tab-order.d.ts.map +1 -0
- package/declarations/float-kit/lib/update-position.d.ts +11 -0
- package/declarations/float-kit/lib/update-position.d.ts.map +1 -1
- package/declarations/float-kit/modifiers/apply-floating-ui.d.ts.map +1 -1
- package/declarations/float-kit/modifiers/notify-positioned.d.ts +19 -0
- package/declarations/float-kit/modifiers/notify-positioned.d.ts.map +1 -0
- package/declarations/float-kit/modifiers/tab-order-inline.d.ts +55 -0
- package/declarations/float-kit/modifiers/tab-order-inline.d.ts.map +1 -0
- package/declarations/float-kit/services/menu.d.ts +11 -0
- package/declarations/float-kit/services/menu.d.ts.map +1 -1
- package/declarations/select-kit/components/dropdown-select-box.d.ts.map +1 -1
- package/declarations/select-kit/components/icon-picker.d.ts +3 -2
- package/declarations/select-kit/components/icon-picker.d.ts.map +1 -1
- package/declarations/select-kit/components/multi-select/multi-select-header.d.ts.map +1 -1
- package/declarations/select-kit/components/multi-select.d.ts.map +1 -1
- package/declarations/select-kit/components/multiple-categories-selector.d.ts +13 -0
- package/declarations/select-kit/components/multiple-categories-selector.d.ts.map +1 -0
- package/declarations/select-kit/components/select-kit/select-kit-row.d.ts.map +1 -1
- package/declarations/select-kit/components/selected-choice.d.ts +1 -0
- package/declarations/select-kit/components/selected-choice.d.ts.map +1 -1
- package/declarations/select-kit/components/tag-chooser.d.ts +3 -1
- package/declarations/select-kit/components/tag-chooser.d.ts.map +1 -1
- package/declarations/tests/acceptance/category-default-view-test.d.ts +2 -0
- package/declarations/tests/acceptance/category-default-view-test.d.ts.map +1 -0
- package/declarations/tests/acceptance/exception-test.d.ts +2 -0
- package/declarations/tests/acceptance/exception-test.d.ts.map +1 -0
- package/declarations/tests/acceptance/read-only-mode-test.d.ts +2 -0
- package/declarations/tests/acceptance/read-only-mode-test.d.ts.map +1 -0
- package/declarations/tests/acceptance/sidebar-link-drop-test.d.ts +2 -0
- package/declarations/tests/acceptance/sidebar-link-drop-test.d.ts.map +1 -0
- package/declarations/tests/acceptance/topic-list-preload-test.d.ts +2 -0
- package/declarations/tests/acceptance/topic-list-preload-test.d.ts.map +1 -0
- package/declarations/tests/acceptance/transformers/composer-minimum-post-length-test.d.ts +2 -0
- package/declarations/tests/acceptance/transformers/composer-minimum-post-length-test.d.ts.map +1 -0
- package/declarations/tests/fixtures/session-fixtures.d.ts.map +1 -1
- package/declarations/tests/fixtures/site-fixtures.d.ts +3 -0
- package/declarations/tests/fixtures/site-fixtures.d.ts.map +1 -1
- package/declarations/tests/fixtures/user-fixtures.d.ts +0 -1
- package/declarations/tests/fixtures/user-fixtures.d.ts.map +1 -1
- package/declarations/tests/helpers/qunit-helpers.d.ts.map +1 -1
- package/declarations/tests/helpers/review-pretender.d.ts.map +1 -1
- package/declarations/tests/helpers/rich-editor-helper.d.ts +2 -2
- package/declarations/tests/helpers/rich-editor-helper.d.ts.map +1 -1
- package/declarations/tests/helpers/stub-intersection-observer.d.ts +4 -2
- package/declarations/tests/helpers/stub-intersection-observer.d.ts.map +1 -1
- package/declarations/tests/helpers/ui-kit/drag-and-drop-helper.d.ts +178 -0
- package/declarations/tests/helpers/ui-kit/drag-and-drop-helper.d.ts.map +1 -0
- package/declarations/tests/helpers/ui-kit/pointer-gesture-helper.d.ts +81 -0
- package/declarations/tests/helpers/ui-kit/pointer-gesture-helper.d.ts.map +1 -0
- package/declarations/tests/integration/components/admin-plugin-config-page-test.d.ts +2 -0
- package/declarations/tests/integration/components/admin-plugin-config-page-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/category-list-subcategories-test.d.ts +2 -0
- package/declarations/tests/integration/components/category-list-subcategories-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/composer-container-test.d.ts +2 -0
- package/declarations/tests/integration/components/composer-container-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/dashboard/search-test.d.ts +2 -0
- package/declarations/tests/integration/components/dashboard/search-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/dashboard/traffic-test.d.ts +2 -0
- package/declarations/tests/integration/components/dashboard/traffic-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/design-wizard-sections-test.d.ts +2 -0
- package/declarations/tests/integration/components/design-wizard-sections-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/dev-tools-toolbar-test.d.ts +2 -0
- package/declarations/tests/integration/components/dev-tools-toolbar-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/float-kit/apply-floating-ui-test.d.ts +2 -0
- package/declarations/tests/integration/components/float-kit/apply-floating-ui-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/float-kit/tab-order-inline-test.d.ts +2 -0
- package/declarations/tests/integration/components/float-kit/tab-order-inline-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/modal/content-language-preferences-test.d.ts +2 -0
- package/declarations/tests/integration/components/modal/content-language-preferences-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/prosemirror-editor/open-document-test.d.ts +2 -0
- package/declarations/tests/integration/components/prosemirror-editor/open-document-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/select-kit/multiple-categories-selector-test.d.ts +2 -0
- package/declarations/tests/integration/components/select-kit/multiple-categories-selector-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/sidebar-section-form-test.d.ts +2 -0
- package/declarations/tests/integration/components/sidebar-section-form-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/topic-navigation-test.d.ts +2 -0
- package/declarations/tests/integration/components/topic-navigation-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/topic-post-badges-test.d.ts +2 -0
- package/declarations/tests/integration/components/topic-post-badges-test.d.ts.map +1 -0
- package/declarations/tests/integration/modifiers/d-resize-edge-test.d.ts +2 -0
- package/declarations/tests/integration/modifiers/d-resize-edge-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/d-combo-button-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/d-combo-button-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/d-resize-handles-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/d-resize-handles-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/d-resize-separator-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/d-resize-separator-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/d-skeleton-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/d-skeleton-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-adoption-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-adoption-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-auto-scroll-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-auto-scroll-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-external-target-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-external-target-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-monitor-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-monitor-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-dwell-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-dwell-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-draggable-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-draggable-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-observe-intersection-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-observe-intersection-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-pointer-drag-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-pointer-drag-test.d.ts.map +1 -0
- package/declarations/tests/unit/admin/lib/color-scheme-manager-test.d.ts +2 -0
- package/declarations/tests/unit/admin/lib/color-scheme-manager-test.d.ts.map +1 -0
- package/declarations/tests/unit/instance-initializers/verify-session-after-restore-test.d.ts +2 -0
- package/declarations/tests/unit/instance-initializers/verify-session-after-restore-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/-internals/drag-and-drop/drag-dwell-test.d.ts +2 -0
- package/declarations/tests/unit/lib/-internals/drag-and-drop/drag-dwell-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/-internals/drag-and-drop/vocabulary-test.d.ts +2 -0
- package/declarations/tests/unit/lib/-internals/drag-and-drop/vocabulary-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/blocks/core/decorator-test.d.ts +2 -0
- package/declarations/tests/unit/lib/blocks/core/decorator-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/content-localization-test.d.ts +2 -0
- package/declarations/tests/unit/lib/content-localization-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/customization-source-test.d.ts +2 -0
- package/declarations/tests/unit/lib/customization-source-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/dag-test.d.ts.map +1 -1
- package/declarations/tests/unit/lib/dashboard-reports-loader-test.d.ts +2 -0
- package/declarations/tests/unit/lib/dashboard-reports-loader-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/download-blob-test.d.ts +2 -0
- package/declarations/tests/unit/lib/download-blob-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/download-strategy-test.d.ts +2 -0
- package/declarations/tests/unit/lib/download-strategy-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/filter-mode-test.d.ts +2 -0
- package/declarations/tests/unit/lib/filter-mode-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/locale-normalizer-test.d.ts +2 -0
- package/declarations/tests/unit/lib/locale-normalizer-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/resize-measurements-test.d.ts +2 -0
- package/declarations/tests/unit/lib/resize-measurements-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/sidebar/active-link-test.d.ts +2 -0
- package/declarations/tests/unit/lib/sidebar/active-link-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/sidebar/link-drop-test.d.ts +2 -0
- package/declarations/tests/unit/lib/sidebar/link-drop-test.d.ts.map +1 -0
- package/declarations/tests/unit/services/discovery-test.d.ts +2 -0
- package/declarations/tests/unit/services/discovery-test.d.ts.map +1 -0
- package/declarations/tests/unit/services/drag-and-drop-test.d.ts +2 -0
- package/declarations/tests/unit/services/drag-and-drop-test.d.ts.map +1 -0
- package/declarations/tsconfig.tsbuildinfo +1 -1
- package/declarations/type-tests/blocks/public-api-test.d.ts +2 -0
- package/declarations/type-tests/blocks/public-api-test.d.ts.map +1 -0
- package/declarations/type-tests/lib/dag-test.d.ts +2 -0
- package/declarations/type-tests/lib/dag-test.d.ts.map +1 -0
- package/declarations/type-tests/lib/later-test.d.ts +2 -0
- package/declarations/type-tests/lib/later-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/create-drag-dwell-test.d.ts +2 -0
- package/declarations/type-tests/ui-kit/create-drag-dwell-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-combo-button-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-combo-button-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-adoption-errors-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-adoption-errors-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-adoption-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-adoption-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-errors-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-errors-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-external-errors-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-external-errors-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-external-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-external-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-drag-dwell-errors-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-drag-dwell-errors-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-drag-dwell-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-drag-dwell-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-pointer-drag-errors-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-pointer-drag-errors-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-pointer-drag-test.d.ts +8 -0
- package/declarations/type-tests/ui-kit/d-pointer-drag-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-resize-handles-args-errors-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-resize-handles-args-errors-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-resize-handles-box-errors-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-resize-handles-box-errors-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-resize-handles-payload-errors-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-resize-handles-payload-errors-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-resize-handles-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-resize-handles-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-resize-separator-errors-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-resize-separator-errors-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-resize-separator-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-resize-separator-test.d.ts.map +1 -0
- package/package.json +10 -1
- package/declarations/app/components/admin-onboarding/modal/theme-picker.d.ts +0 -13
- package/declarations/app/components/admin-onboarding/modal/theme-picker.d.ts.map +0 -1
- package/declarations/app/components/composer-actions-new.d.ts.map +0 -1
- package/declarations/app/components/link-to-input.d.ts +0 -7
- package/declarations/app/components/link-to-input.d.ts.map +0 -1
- package/declarations/app/helpers/reviewable-history-description.d.ts +0 -2
- package/declarations/app/helpers/reviewable-history-description.d.ts.map +0 -1
- package/declarations/app/modifiers/grippie-drag-resize.d.ts +0 -40
- package/declarations/app/modifiers/grippie-drag-resize.d.ts.map +0 -1
- package/declarations/select-kit/components/composer-actions.d.ts +0 -39
- package/declarations/select-kit/components/composer-actions.d.ts.map +0 -1
- package/declarations/tests/acceptance/composer-actions-new-test.d.ts +0 -2
- package/declarations/tests/acceptance/composer-actions-new-test.d.ts.map +0 -1
- package/declarations/tests/acceptance/composer-new-test.d.ts +0 -2
- package/declarations/tests/acceptance/composer-new-test.d.ts.map +0 -1
- package/declarations/tests/acceptance/keyboard-shortcuts-new-test.d.ts +0 -2
- package/declarations/tests/acceptance/keyboard-shortcuts-new-test.d.ts.map +0 -1
|
@@ -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":"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"}
|
|
@@ -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"}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import type { CleanupFn } from "@atlaskit/pragmatic-drag-and-drop/types";
|
|
2
|
+
import type { DragInput, DragLocation } from "discourse/lib/-internals/drag-and-drop/drop-target-kernel";
|
|
3
|
+
import { type ExternalDragKind, type ExternalDragPayload } from "discourse/lib/-internals/drag-and-drop/external-vocabulary";
|
|
4
|
+
import { type NormalizedDragSource } from "discourse/lib/-internals/drag-and-drop/vocabulary";
|
|
5
|
+
export { default as createDragDwell, DEFAULT_DRAG_DWELL_DELAY, type DragDwell, type DragDwellOptions, } from "discourse/lib/-internals/drag-and-drop/drag-dwell";
|
|
6
|
+
/** Which adapter the observed drag arrived through. */
|
|
7
|
+
export type DragDwellFamily = "element" | "external";
|
|
8
|
+
/** The dragged payload a dwell observes, from either adapter. */
|
|
9
|
+
export type DragDwellSource = NormalizedDragSource | ExternalDragPayload;
|
|
10
|
+
/**
|
|
11
|
+
* The observed drag: which adapter carried it, discriminating the payload
|
|
12
|
+
* shape. Checking `family` narrows `source`.
|
|
13
|
+
*/
|
|
14
|
+
type DragDwellObservation = {
|
|
15
|
+
/** The drag came from a registered element source. */
|
|
16
|
+
family: "element";
|
|
17
|
+
/** The dragged payload, normalized. */
|
|
18
|
+
source: NormalizedDragSource;
|
|
19
|
+
} | {
|
|
20
|
+
/** The drag came from outside the window. */
|
|
21
|
+
family: "external";
|
|
22
|
+
/** The decorated external payload. */
|
|
23
|
+
source: ExternalDragPayload;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* What {@link DragDwellArgs.canDwell} receives — structurally what a drop
|
|
27
|
+
* target's `canDrop` receives, so one gating function can serve both.
|
|
28
|
+
*/
|
|
29
|
+
export type DragDwellFeedback = DragDwellObservation & {
|
|
30
|
+
/** The pointer, with `clientX`/`clientY`. */
|
|
31
|
+
input: DragInput;
|
|
32
|
+
/** The dwell host element. */
|
|
33
|
+
element: HTMLElement;
|
|
34
|
+
};
|
|
35
|
+
/** What {@link DragDwellArgs.onDwell} receives. */
|
|
36
|
+
export type DragDwellEvent = DragDwellObservation & {
|
|
37
|
+
/** The drag's positions: `initial`, `previous`, and `current`. */
|
|
38
|
+
location: DragLocation;
|
|
39
|
+
/** The dwell host element. */
|
|
40
|
+
element: HTMLElement;
|
|
41
|
+
};
|
|
42
|
+
/** Why a candidacy ended. */
|
|
43
|
+
export type DragDwellEndReason = "left" | "drag-ended";
|
|
44
|
+
/** What {@link DragDwellArgs.onDwellEnd} receives. */
|
|
45
|
+
export type DragDwellEndEvent = DragDwellEvent & {
|
|
46
|
+
/**
|
|
47
|
+
* `"left"` when the drag stopped hovering the element or stopped
|
|
48
|
+
* qualifying; `"drag-ended"` when the drag finished anywhere — dropped,
|
|
49
|
+
* abandoned, or cancelled.
|
|
50
|
+
*/
|
|
51
|
+
reason: DragDwellEndReason;
|
|
52
|
+
/** Whether `onDwell` had fired for this candidacy — the undo predicate. */
|
|
53
|
+
fired: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* On `"drag-ended"`: whether the drop landed on a drop target on this
|
|
56
|
+
* element or on one of its descendants. Always `false` for `"left"`, and
|
|
57
|
+
* `false` when the host subtree registers no drop target at all.
|
|
58
|
+
*/
|
|
59
|
+
droppedHere: boolean;
|
|
60
|
+
};
|
|
61
|
+
interface DDragDwellSignature {
|
|
62
|
+
Element: HTMLElement;
|
|
63
|
+
Args: {
|
|
64
|
+
Named: {
|
|
65
|
+
/**
|
|
66
|
+
* Element drag types to watch. Omit to watch every element drag.
|
|
67
|
+
* Re-read on every frame.
|
|
68
|
+
*/
|
|
69
|
+
types?: string | string[];
|
|
70
|
+
/**
|
|
71
|
+
* External drag kinds to watch. Omitting it, or naming no kinds,
|
|
72
|
+
* refuses every external drag: the dwell only reacts to drags from
|
|
73
|
+
* outside the window when a consumer asks for them.
|
|
74
|
+
*/
|
|
75
|
+
externalKinds?: ExternalDragKind | ExternalDragKind[];
|
|
76
|
+
/**
|
|
77
|
+
* How long a qualifying hover lasts before `onDwell` fires. `true`, the
|
|
78
|
+
* default, is the standard 500 ms; `false` fires on the first qualifying
|
|
79
|
+
* frame; a number is the wait in milliseconds. Sampled when the first
|
|
80
|
+
* candidacy arms.
|
|
81
|
+
*/
|
|
82
|
+
delay?: boolean | number;
|
|
83
|
+
/**
|
|
84
|
+
* Grace before a fired dwell is undone once the drag leaves the
|
|
85
|
+
* element. `true`, the default, mirrors the entry delay, or the
|
|
86
|
+
* standard 500 ms when entry is immediate; `false` ends it in the
|
|
87
|
+
* leaving frame; a number is the grace in milliseconds. A drag
|
|
88
|
+
* returning within the grace keeps the dwell as if it never left, and
|
|
89
|
+
* a drag ending during it reports `drag-ended` instead. A candidacy
|
|
90
|
+
* that has not fired yet ends immediately either way.
|
|
91
|
+
*/
|
|
92
|
+
leaveDelay?: boolean | number;
|
|
93
|
+
/**
|
|
94
|
+
* Whether a drag hovering the element may start or continue a pending
|
|
95
|
+
* candidacy. Same feedback shape as a drop target's `canDrop`, so the
|
|
96
|
+
* two MAY share one function. Only a literal `false` refuses; it runs
|
|
97
|
+
* after `types`/`externalKinds` filtering, and is not consulted again once
|
|
98
|
+
* the dwell has fired.
|
|
99
|
+
*/
|
|
100
|
+
canDwell?: (feedback: DragDwellFeedback) => boolean | void;
|
|
101
|
+
/**
|
|
102
|
+
* Whether a drag whose source element is this element, or inside it,
|
|
103
|
+
* may dwell. Defaults to `true`.
|
|
104
|
+
*/
|
|
105
|
+
acceptsSelf?: boolean;
|
|
106
|
+
/** The dwell fired: the drag hovered long enough. */
|
|
107
|
+
onDwell: (event: DragDwellEvent) => void;
|
|
108
|
+
/**
|
|
109
|
+
* The candidacy ended — the drag left, stopped qualifying, or
|
|
110
|
+
* finished. The place to undo what `onDwell` did.
|
|
111
|
+
*/
|
|
112
|
+
onDwellEnd?: (event: DragDwellEndEvent) => void;
|
|
113
|
+
};
|
|
114
|
+
Positional: [];
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Every named arg of {@link dDragDwell}, for a consumer driving
|
|
119
|
+
* {@link registerDragDwell} imperatively rather than through the modifier.
|
|
120
|
+
*/
|
|
121
|
+
export type DragDwellArgs = DDragDwellSignature["Args"]["Named"];
|
|
122
|
+
/**
|
|
123
|
+
* The entry delay in milliseconds: `true` and omission are the standard
|
|
124
|
+
* delay, `false` is immediate, and a number stands as given.
|
|
125
|
+
*/
|
|
126
|
+
export declare function resolveDwellDelay(delay: boolean | number | undefined): number;
|
|
127
|
+
/**
|
|
128
|
+
* The leave grace in milliseconds: `true` and omission mirror the resolved
|
|
129
|
+
* entry delay and fall back to the standard delay when entry is immediate,
|
|
130
|
+
* `false` is immediate, and a number stands as given.
|
|
131
|
+
*/
|
|
132
|
+
export declare function resolveDwellLeaveDelay(leaveDelay: boolean | number | undefined, delay: boolean | number | undefined): number;
|
|
133
|
+
/**
|
|
134
|
+
* Watches drags the way a monitor does and reports dwells on one element.
|
|
135
|
+
*
|
|
136
|
+
* This uses rectangle containment, which does not account for another element
|
|
137
|
+
* occluding the host. An element drag leaving the window can also leave one
|
|
138
|
+
* stale in-rectangle input until the drag ends. Registering the external
|
|
139
|
+
* monitor mounts that adapter page-wide, as the drag-and-drop service does.
|
|
140
|
+
*
|
|
141
|
+
* The delay is sampled when the first candidacy arms. Every other argument is
|
|
142
|
+
* read lazily from monitor or timer callbacks.
|
|
143
|
+
*
|
|
144
|
+
* @param element - The dwell host.
|
|
145
|
+
* @param getArgsRef - Closure returning the latest arguments.
|
|
146
|
+
* @returns Cleanup; call it once on teardown.
|
|
147
|
+
*/
|
|
148
|
+
export declare function registerDragDwell(element: HTMLElement, getArgsRef: () => DragDwellArgs): CleanupFn;
|
|
149
|
+
/**
|
|
150
|
+
* Fires a callback once a drag has hovered the element for a delay, without
|
|
151
|
+
* making the element a drop target. Every arg is documented on
|
|
152
|
+
* {@link DragDwellArgs}.
|
|
153
|
+
*
|
|
154
|
+
* ```hbs
|
|
155
|
+
* <div {{dDragDwell types="card" onDwell=this.open onDwellEnd=this.close}}>
|
|
156
|
+
* ```
|
|
157
|
+
*/
|
|
158
|
+
declare const _default: import("ember-modifier").FunctionBasedModifier<{
|
|
159
|
+
Element: HTMLElement;
|
|
160
|
+
Args: {
|
|
161
|
+
Named: {
|
|
162
|
+
/**
|
|
163
|
+
* Element drag types to watch. Omit to watch every element drag.
|
|
164
|
+
* Re-read on every frame.
|
|
165
|
+
*/
|
|
166
|
+
types?: string | string[];
|
|
167
|
+
/**
|
|
168
|
+
* External drag kinds to watch. Omitting it, or naming no kinds,
|
|
169
|
+
* refuses every external drag: the dwell only reacts to drags from
|
|
170
|
+
* outside the window when a consumer asks for them.
|
|
171
|
+
*/
|
|
172
|
+
externalKinds?: ExternalDragKind | ExternalDragKind[];
|
|
173
|
+
/**
|
|
174
|
+
* How long a qualifying hover lasts before `onDwell` fires. `true`, the
|
|
175
|
+
* default, is the standard 500 ms; `false` fires on the first qualifying
|
|
176
|
+
* frame; a number is the wait in milliseconds. Sampled when the first
|
|
177
|
+
* candidacy arms.
|
|
178
|
+
*/
|
|
179
|
+
delay?: boolean | number;
|
|
180
|
+
/**
|
|
181
|
+
* Grace before a fired dwell is undone once the drag leaves the
|
|
182
|
+
* element. `true`, the default, mirrors the entry delay, or the
|
|
183
|
+
* standard 500 ms when entry is immediate; `false` ends it in the
|
|
184
|
+
* leaving frame; a number is the grace in milliseconds. A drag
|
|
185
|
+
* returning within the grace keeps the dwell as if it never left, and
|
|
186
|
+
* a drag ending during it reports `drag-ended` instead. A candidacy
|
|
187
|
+
* that has not fired yet ends immediately either way.
|
|
188
|
+
*/
|
|
189
|
+
leaveDelay?: boolean | number;
|
|
190
|
+
/**
|
|
191
|
+
* Whether a drag hovering the element may start or continue a pending
|
|
192
|
+
* candidacy. Same feedback shape as a drop target's `canDrop`, so the
|
|
193
|
+
* two MAY share one function. Only a literal `false` refuses; it runs
|
|
194
|
+
* after `types`/`externalKinds` filtering, and is not consulted again once
|
|
195
|
+
* the dwell has fired.
|
|
196
|
+
*/
|
|
197
|
+
canDwell?: (feedback: DragDwellFeedback) => boolean | void;
|
|
198
|
+
/**
|
|
199
|
+
* Whether a drag whose source element is this element, or inside it,
|
|
200
|
+
* may dwell. Defaults to `true`.
|
|
201
|
+
*/
|
|
202
|
+
acceptsSelf?: boolean;
|
|
203
|
+
/** The dwell fired: the drag hovered long enough. */
|
|
204
|
+
onDwell: (event: DragDwellEvent) => void;
|
|
205
|
+
/**
|
|
206
|
+
* The candidacy ended — the drag left, stopped qualifying, or
|
|
207
|
+
* finished. The place to undo what `onDwell` did.
|
|
208
|
+
*/
|
|
209
|
+
onDwellEnd?: (event: DragDwellEndEvent) => void;
|
|
210
|
+
};
|
|
211
|
+
Positional: [];
|
|
212
|
+
};
|
|
213
|
+
}>;
|
|
214
|
+
export default _default;
|
|
215
|
+
//# sourceMappingURL=d-drag-dwell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"d-drag-dwell.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/ui-kit/modifiers/d-drag-dwell.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Binds a press-drag lifecycle using legacy mouse and touch event pairs, plus
|
|
3
|
+
* native drag events, with document-level listeners for the gesture's duration.
|
|
4
|
+
*
|
|
5
|
+
* @deprecated since 2026.8.0. Use `dPointerDrag`
|
|
6
|
+
* (`discourse/ui-kit/modifiers/d-pointer-drag`). Rename `didStartDrag`,
|
|
7
|
+
* `dragMove` and `didEndDrag` to `onDragStart`, `onDrag` and `onDragEnd`, and
|
|
8
|
+
* add `onDragCancel` so an interrupted gesture still finishes.
|
|
9
|
+
*
|
|
10
|
+
* Three differences bite beyond the renames:
|
|
11
|
+
* - the second callback argument is gesture info, not the element;
|
|
12
|
+
* - the body class is automatic here, but needs `bodyClass` there;
|
|
13
|
+
* - a touch handler reading `event.touches[0]` should read the event itself.
|
|
14
|
+
*/
|
|
1
15
|
export default class DDraggableModifier extends Modifier<import("ember-modifier/-private/signature").DefaultSignature> {
|
|
2
16
|
constructor(owner: any, args: any);
|
|
3
17
|
hasStarted: boolean;
|
|
@@ -14,6 +28,7 @@ export default class DDraggableModifier extends Modifier<import("ember-modifier/
|
|
|
14
28
|
drag(e: any): void;
|
|
15
29
|
didEndDrag(e: any): void;
|
|
16
30
|
cleanup(): void;
|
|
31
|
+
#private;
|
|
17
32
|
}
|
|
18
33
|
import Modifier from "ember-modifier";
|
|
19
34
|
//# sourceMappingURL=d-draggable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"d-draggable.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/ui-kit/modifiers/d-draggable.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"d-draggable.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/ui-kit/modifiers/d-draggable.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;GAaG;AACH;IAKE,mCAOC;IAXD,oBAAmB;IACnB,aAAQ;IAYR;;;;aAcC;IAZC,0BAAwC;IACxC,wBAAoC;IACpC,sBAAgC;IAYlC,uBA0BC;IAED,mBAKC;IAED,yBAaC;IAED,gBAYC;;CACF;qBAhHoB,gBAAgB"}
|
|
@@ -16,6 +16,9 @@ interface DOnResizeSignature {
|
|
|
16
16
|
/**
|
|
17
17
|
* Calls `callback` with the observed `ResizeObserverEntry`s whenever the element
|
|
18
18
|
* resizes, throttled through the runloop. Cleans up the observer on teardown.
|
|
19
|
+
*
|
|
20
|
+
* @see The `DResizeSeparator` / `dResizeEdge` / `DResizeHandles` primitives to let a user
|
|
21
|
+
* PERFORM a resize. The similar names are the trap; this one only watches.
|
|
19
22
|
*/
|
|
20
23
|
export default class DOnResize extends Modifier<DOnResizeSignature> {
|
|
21
24
|
#private;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"d-on-resize.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/ui-kit/modifiers/d-on-resize.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,OAAO,QAAQ,EAAE,EAAE,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAExD,UAAU,gBAAgB;IACxB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,KAAK,iBAAiB,GAAG,CAAC,OAAO,EAAE,mBAAmB,EAAE,KAAK,IAAI,CAAC;AAElE,UAAU,kBAAkB;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE;QACJ,UAAU,EAAE,CAAC,QAAQ,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,gBAAgB,CAAC,CAAC;KACvE,CAAC;CACH;AAED
|
|
1
|
+
{"version":3,"file":"d-on-resize.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/ui-kit/modifiers/d-on-resize.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,OAAO,QAAQ,EAAE,EAAE,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAExD,UAAU,gBAAgB;IACxB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,KAAK,iBAAiB,GAAG,CAAC,OAAO,EAAE,mBAAmB,EAAE,KAAK,IAAI,CAAC;AAElE,UAAU,kBAAkB;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE;QACJ,UAAU,EAAE,CAAC,QAAQ,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,gBAAgB,CAAC,CAAC;KACvE,CAAC;CACH;AAED;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,QAAQ,CAAC,kBAAkB,CAAC;;gBAIrD,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,CAAC,kBAAkB,CAAC;IAK3D,MAAM,CACJ,OAAO,EAAE,OAAO,EAChB,CAAC,EAAE,EAAE,OAAY,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC;CAmB/D"}
|