@discourse/types 2026.8.0-b88e77d4 → 2026.9.0-eb242063
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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/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/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/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.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/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.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/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/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 +3 -1
- package/declarations/app/components/modal/content-language-preferences.d.ts.map +1 -1
- 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/sidebar-section-form.d.ts +53 -19
- package/declarations/app/components/modal/sidebar-section-form.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-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-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-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-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/preferences/interface.d.ts +0 -1
- 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/topic-footer-buttons.d.ts.map +1 -1
- 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/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 +7 -0
- package/declarations/app/lib/composer/rich-editor-extensions.d.ts.map +1 -1
- package/declarations/app/lib/composer/text-manipulation.d.ts +4 -0
- package/declarations/app/lib/composer/text-manipulation.d.ts.map +1 -1
- package/declarations/app/lib/composer/toolbar.d.ts.map +1 -1
- package/declarations/app/lib/content-localization.d.ts +14 -1
- package/declarations/app/lib/content-localization.d.ts.map +1 -1
- 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/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/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/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/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/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/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 +3 -1
- 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/html-inline.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/quote.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/register-default.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.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.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 +11 -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-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 +101 -17
- package/declarations/app/ui-kit/modifiers/d-resize-edge.d.ts.map +1 -1
- 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/select-kit/select-kit-row.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/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/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/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-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/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/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/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,108 @@
|
|
|
1
|
+
import { type ExternalDragKind } from "discourse/lib/-internals/drag-and-drop/external-vocabulary";
|
|
2
|
+
import type { Axis } from "discourse/lib/geometry";
|
|
3
|
+
/** Which direction the container is allowed to scroll while a drag is in flight. */
|
|
4
|
+
export type AutoScrollAxis = Axis | "all";
|
|
5
|
+
/** What gets scrolled: the element the modifier sits on, or the window. */
|
|
6
|
+
export type AutoScrollTarget = "element" | "window";
|
|
7
|
+
interface DDragAndDropAutoScrollSignature {
|
|
8
|
+
/** The scroll container, or a sentinel when `target` is `"window"`. */
|
|
9
|
+
Element: HTMLElement;
|
|
10
|
+
Args: {
|
|
11
|
+
Named: {
|
|
12
|
+
/**
|
|
13
|
+
* Only drags whose `type` matches engage the auto-scroll; an adopted drag
|
|
14
|
+
* answers to the adoption's declared type. Omit to engage on any element
|
|
15
|
+
* drag.
|
|
16
|
+
*/
|
|
17
|
+
types?: string | string[];
|
|
18
|
+
/**
|
|
19
|
+
* Also auto-scroll for drags from outside the window, engaging on these
|
|
20
|
+
* external kinds. Omit it and an external drag scrolls nothing.
|
|
21
|
+
*/
|
|
22
|
+
externalKinds?: ExternalDragKind | ExternalDragKind[];
|
|
23
|
+
/** Defaults to `"vertical"`. */
|
|
24
|
+
axis?: AutoScrollAxis;
|
|
25
|
+
/**
|
|
26
|
+
* `"element"` (default) scrolls the host element; `"window"` scrolls the
|
|
27
|
+
* window and ignores the element.
|
|
28
|
+
*/
|
|
29
|
+
target?: AutoScrollTarget;
|
|
30
|
+
};
|
|
31
|
+
Positional: [];
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* The auto-scroll's named args, for a consumer driving
|
|
36
|
+
* {@link registerDragAndDropAutoScroll} imperatively rather than through the
|
|
37
|
+
* modifier.
|
|
38
|
+
*/
|
|
39
|
+
export type DragAndDropAutoScrollArgs = DDragAndDropAutoScrollSignature["Args"]["Named"] & {
|
|
40
|
+
/** The scroll container. Required when `target` is `"element"`. */
|
|
41
|
+
element?: HTMLElement;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Imperative auto-scroll registration; the `dDragAndDropAutoScroll` modifier
|
|
45
|
+
* below wraps it.
|
|
46
|
+
*
|
|
47
|
+
* @param getArgsRef - Closure returning the latest args. `types`, `axis` and
|
|
48
|
+
* `externalKinds` are re-read on every scroll attempt; `target`, `element` and
|
|
49
|
+
* whether `externalKinds` is set are read once here and need a fresh registration.
|
|
50
|
+
* @returns Cleanup; call it once on teardown.
|
|
51
|
+
*/
|
|
52
|
+
export declare function registerDragAndDropAutoScroll(getArgsRef: () => DragAndDropAutoScrollArgs): () => void;
|
|
53
|
+
/**
|
|
54
|
+
* Enables auto-scroll while a compatible drag is in flight. Every arg is
|
|
55
|
+
* documented on {@link DragAndDropAutoScrollArgs}.
|
|
56
|
+
*
|
|
57
|
+
* On a scroll container:
|
|
58
|
+
*
|
|
59
|
+
* ```hbs
|
|
60
|
+
* <div class="scroll-container"
|
|
61
|
+
* {{dDragAndDropAutoScroll types=(array "card") axis="vertical"}}
|
|
62
|
+
* >
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* On a sentinel with `target="window"` to scroll the window instead:
|
|
66
|
+
*
|
|
67
|
+
* ```hbs
|
|
68
|
+
* <span class="visually-hidden"
|
|
69
|
+
* {{dDragAndDropAutoScroll target="window" types=this.acceptedTypes}}
|
|
70
|
+
* ></span>
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* With `externalKinds`, for payloads dragged in from outside the window too:
|
|
74
|
+
*
|
|
75
|
+
* ```hbs
|
|
76
|
+
* <div class="scroll-container"
|
|
77
|
+
* {{dDragAndDropAutoScroll types=(array "card") externalKinds="urls"}}
|
|
78
|
+
* >
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
declare const _default: import("ember-modifier").FunctionBasedModifier<{
|
|
82
|
+
Element: HTMLElement;
|
|
83
|
+
Args: {
|
|
84
|
+
Named: {
|
|
85
|
+
/**
|
|
86
|
+
* Only drags whose `type` matches engage the auto-scroll; an adopted drag
|
|
87
|
+
* answers to the adoption's declared type. Omit to engage on any element
|
|
88
|
+
* drag.
|
|
89
|
+
*/
|
|
90
|
+
types?: string | string[];
|
|
91
|
+
/**
|
|
92
|
+
* Also auto-scroll for drags from outside the window, engaging on these
|
|
93
|
+
* external kinds. Omit it and an external drag scrolls nothing.
|
|
94
|
+
*/
|
|
95
|
+
externalKinds?: ExternalDragKind | ExternalDragKind[];
|
|
96
|
+
/** Defaults to `"vertical"`. */
|
|
97
|
+
axis?: AutoScrollAxis;
|
|
98
|
+
/**
|
|
99
|
+
* `"element"` (default) scrolls the host element; `"window"` scrolls the
|
|
100
|
+
* window and ignores the element.
|
|
101
|
+
*/
|
|
102
|
+
target?: AutoScrollTarget;
|
|
103
|
+
};
|
|
104
|
+
Positional: [];
|
|
105
|
+
};
|
|
106
|
+
}>;
|
|
107
|
+
export default _default;
|
|
108
|
+
//# sourceMappingURL=d-drag-and-drop-auto-scroll.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"d-drag-and-drop-auto-scroll.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/ui-kit/modifiers/d-drag-and-drop-auto-scroll.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,KAAK,gBAAgB,EAEtB,MAAM,4DAA4D,CAAC;AAEpE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAGnD,oFAAoF;AACpF,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,KAAK,CAAC;AAE1C,2EAA2E;AAC3E,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEpD,UAAU,+BAA+B;IACvC,uEAAuE;IACvE,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE;QACJ,KAAK,EAAE;YACL;;;;eAIG;YACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;YAE1B;;;eAGG;YACH,aAAa,CAAC,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,CAAC;YAEtD,gCAAgC;YAChC,IAAI,CAAC,EAAE,cAAc,CAAC;YAEtB;;;eAGG;YACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;SAC3B,CAAC;QACF,UAAU,EAAE,EAAE,CAAC;KAChB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GACnC,+BAA+B,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,GAAG;IACjD,mEAAmE;IACnE,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB,CAAC;AAEJ;;;;;;;;GAQG;AACH,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,yBAAyB,cAyC5C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;;;;;YArHG;;;;eAIG;oBACK,MAAM,GAAG,MAAM,EAAE;YAEzB;;;eAGG;4BACa,gBAAgB,GAAG,gBAAgB,EAAE;YAErD,gCAAgC;mBACzB,cAAc;YAErB;;;eAGG;qBACM,gBAAgB;;;;;AAkG/B,wBAWE"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { type DropPosition, type DropTargetKernelArgs, type DropTargetKernelEvent, type DropTargetKernelFeedback } from "discourse/lib/-internals/drag-and-drop/drop-target-kernel";
|
|
2
|
+
import { type ExternalDragKind, type ExternalDragPayload } from "discourse/lib/-internals/drag-and-drop/external-vocabulary";
|
|
3
|
+
import type { Axis } from "discourse/lib/geometry";
|
|
4
|
+
/** What a synchronous gate (`canDrop`, a `dropEffect` function) is asked about. */
|
|
5
|
+
export type ExternalDropTargetFeedback = DropTargetKernelFeedback<ExternalDragPayload>;
|
|
6
|
+
/** What a lifecycle callback is told. */
|
|
7
|
+
export type ExternalDropTargetEvent = DropTargetKernelEvent<ExternalDragPayload>;
|
|
8
|
+
/**
|
|
9
|
+
* The external drop target's named args, shared by the
|
|
10
|
+
* `dDragAndDropExternalTarget` modifier and
|
|
11
|
+
* {@link registerDragAndDropExternalTarget}.
|
|
12
|
+
*/
|
|
13
|
+
export interface DragAndDropExternalTargetArgs extends DropTargetKernelArgs<ExternalDragPayload> {
|
|
14
|
+
/**
|
|
15
|
+
* Filters which external drag kinds engage the target. Omit to accept any
|
|
16
|
+
* external drag.
|
|
17
|
+
*/
|
|
18
|
+
accepts?: ExternalDragKind | ExternalDragKind[];
|
|
19
|
+
/** Setting this or `axis` opts the target into resolving a position at all. */
|
|
20
|
+
position?: DropPosition;
|
|
21
|
+
/**
|
|
22
|
+
* Without this or `position` the target is one destination, not a slot:
|
|
23
|
+
* callbacks get `position: null` and the indicator is the single
|
|
24
|
+
* `--drag-over-external` class.
|
|
25
|
+
*/
|
|
26
|
+
axis?: Axis;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Imperative external drop-target registration, wrapped by the
|
|
30
|
+
* `dDragAndDropExternalTarget` modifier below; the counterpart of
|
|
31
|
+
* `registerDragAndDropTarget` for drags from outside the window.
|
|
32
|
+
*
|
|
33
|
+
* @param element - The element to register as a drop target.
|
|
34
|
+
* @param getArgsRef - Closure returning the latest args. Adapter callbacks read
|
|
35
|
+
* it on every invocation, so arg changes apply without re-registering.
|
|
36
|
+
* @returns Cleanup; call it once on teardown.
|
|
37
|
+
*/
|
|
38
|
+
export declare function registerDragAndDropExternalTarget(element: Element, getArgsRef: () => DragAndDropExternalTargetArgs): import("@atlaskit/pragmatic-drag-and-drop/dist/types/internal-types").CleanupFn;
|
|
39
|
+
/**
|
|
40
|
+
* Marks an element as a drop target for drags from outside the window: files,
|
|
41
|
+
* URLs, HTML or text from another application or tab. Every arg is documented
|
|
42
|
+
* on {@link DragAndDropExternalTargetArgs}, and the payload every callback
|
|
43
|
+
* receives on {@link ExternalDragPayload}.
|
|
44
|
+
*
|
|
45
|
+
* An accepted drop cancels the native event's default without stopping its
|
|
46
|
+
* propagation, so another `dragover` / `drop` handler still runs and sees
|
|
47
|
+
* `defaultPrevented`.
|
|
48
|
+
*
|
|
49
|
+
* Files:
|
|
50
|
+
*
|
|
51
|
+
* ```hbs
|
|
52
|
+
* <div {{dDragAndDropExternalTarget
|
|
53
|
+
* accepts="files"
|
|
54
|
+
* onDrop=this.handleFileDrop
|
|
55
|
+
* }}>...</div>
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* A slot rather than a destination, with `axis` opting into a before/after
|
|
59
|
+
* position:
|
|
60
|
+
*
|
|
61
|
+
* ```hbs
|
|
62
|
+
* <li {{dDragAndDropExternalTarget
|
|
63
|
+
* accepts="urls"
|
|
64
|
+
* axis="vertical"
|
|
65
|
+
* onDrop=this.insertBeside
|
|
66
|
+
* }}>...</li>
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* An ancestor that should stay lit while a nested target is hovered reads
|
|
70
|
+
* `@service dragAndDrop` instead of registering a target of its own.
|
|
71
|
+
*/
|
|
72
|
+
declare const _default: import("ember-modifier").FunctionBasedModifier<{
|
|
73
|
+
Element: HTMLElement;
|
|
74
|
+
Args: {
|
|
75
|
+
Named: DragAndDropExternalTargetArgs;
|
|
76
|
+
Positional: [];
|
|
77
|
+
};
|
|
78
|
+
}>;
|
|
79
|
+
export default _default;
|
|
80
|
+
//# sourceMappingURL=d-drag-and-drop-external-target.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"d-drag-and-drop-external-target.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/ui-kit/modifiers/d-drag-and-drop-external-target.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAE9B,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EAEzB,MAAM,4DAA4D,CAAC;AACpE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAEnD,mFAAmF;AACnF,MAAM,MAAM,0BAA0B,GACpC,wBAAwB,CAAC,mBAAmB,CAAC,CAAC;AAEhD,yCAAyC;AACzC,MAAM,MAAM,uBAAuB,GACjC,qBAAqB,CAAC,mBAAmB,CAAC,CAAC;AAE7C;;;;GAIG;AACH,MAAM,WAAW,6BAA8B,SAAQ,oBAAoB,CAAC,mBAAmB,CAAC;IAC9F;;;OAGG;IACH,OAAO,CAAC,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,CAAC;IAEhD,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,YAAY,CAAC;IAExB;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAWD;;;;;;;;;GASG;AACH,wBAAgB,iCAAiC,CAC/C,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,MAAM,6BAA6B,mFAahD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;;;;;;;;AACH,wBAKE"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { type ElementEventBasePayload } from "@atlaskit/pragmatic-drag-and-drop/adapter/element-adapter";
|
|
2
|
+
import { type NormalizedDragSource } from "discourse/lib/-internals/drag-and-drop/vocabulary";
|
|
3
|
+
/**
|
|
4
|
+
* What a monitor callback is told: the normalized source and the drag's
|
|
5
|
+
* location history.
|
|
6
|
+
*/
|
|
7
|
+
export type DragMonitorEvent = Omit<ElementEventBasePayload, "source"> & {
|
|
8
|
+
source: NormalizedDragSource;
|
|
9
|
+
};
|
|
10
|
+
interface DDragAndDropMonitorSignature {
|
|
11
|
+
/**
|
|
12
|
+
* A monitor is global. The element only anchors the modifier's lifecycle.
|
|
13
|
+
*/
|
|
14
|
+
Element: HTMLElement;
|
|
15
|
+
Args: {
|
|
16
|
+
Named: {
|
|
17
|
+
/**
|
|
18
|
+
* Only drags whose `type` matches are observed. Omit to observe any drag.
|
|
19
|
+
*/
|
|
20
|
+
types?: string | string[];
|
|
21
|
+
/** A drag started. */
|
|
22
|
+
onDragStart?: (event: DragMonitorEvent) => void;
|
|
23
|
+
/** The drag moved. */
|
|
24
|
+
onDrag?: (event: DragMonitorEvent) => void;
|
|
25
|
+
/** The drag ended, whether or not it landed on a target. */
|
|
26
|
+
onDrop?: (event: DragMonitorEvent) => void;
|
|
27
|
+
};
|
|
28
|
+
Positional: [];
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The monitor's named args, for a consumer driving
|
|
33
|
+
* {@link registerDragAndDropMonitor} imperatively rather than through the
|
|
34
|
+
* modifier.
|
|
35
|
+
*/
|
|
36
|
+
export type DragAndDropMonitorArgs = DDragAndDropMonitorSignature["Args"]["Named"];
|
|
37
|
+
/**
|
|
38
|
+
* Imperative monitor registration; the `dDragAndDropMonitor` modifier below
|
|
39
|
+
* wraps it.
|
|
40
|
+
*
|
|
41
|
+
* @param getArgsRef - Closure returning the latest args. Callbacks read it on
|
|
42
|
+
* every invocation; `types` is consulted once as a drag starts, so a change
|
|
43
|
+
* applies from the next drag.
|
|
44
|
+
* @returns Cleanup; call it once on teardown.
|
|
45
|
+
*/
|
|
46
|
+
export declare function registerDragAndDropMonitor(getArgsRef: () => DragAndDropMonitorArgs): import("@atlaskit/pragmatic-drag-and-drop/dist/types/internal-types").CleanupFn;
|
|
47
|
+
/**
|
|
48
|
+
* Observes the in-flight element drag regardless of drop targets, to react to
|
|
49
|
+
* its progress without making an element droppable. Every arg is documented on
|
|
50
|
+
* {@link DragAndDropMonitorArgs}.
|
|
51
|
+
*
|
|
52
|
+
* ```hbs
|
|
53
|
+
* <div {{dDragAndDropMonitor types=this.dragTypes onDrag=this.onDrag}}></div>
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* @see The `dragAndDrop` service to read drag state reactively; rendering from
|
|
57
|
+
* these callbacks duplicates what it keeps.
|
|
58
|
+
* @see `dDragDwell` for the packaged case of acting once a drag has hovered
|
|
59
|
+
* one element for a delay.
|
|
60
|
+
*/
|
|
61
|
+
declare const _default: import("ember-modifier").FunctionBasedModifier<{
|
|
62
|
+
Element: HTMLElement;
|
|
63
|
+
Args: {
|
|
64
|
+
Named: {
|
|
65
|
+
/**
|
|
66
|
+
* Only drags whose `type` matches are observed. Omit to observe any drag.
|
|
67
|
+
*/
|
|
68
|
+
types?: string | string[];
|
|
69
|
+
/** A drag started. */
|
|
70
|
+
onDragStart?: (event: DragMonitorEvent) => void;
|
|
71
|
+
/** The drag moved. */
|
|
72
|
+
onDrag?: (event: DragMonitorEvent) => void;
|
|
73
|
+
/** The drag ended, whether or not it landed on a target. */
|
|
74
|
+
onDrop?: (event: DragMonitorEvent) => void;
|
|
75
|
+
};
|
|
76
|
+
Positional: [];
|
|
77
|
+
};
|
|
78
|
+
}>;
|
|
79
|
+
export default _default;
|
|
80
|
+
//# sourceMappingURL=d-drag-and-drop-monitor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"d-drag-and-drop-monitor.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/ui-kit/modifiers/d-drag-and-drop-monitor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,EAE7B,MAAM,2DAA2D,CAAC;AAGnE,OAAO,EAEL,KAAK,oBAAoB,EAE1B,MAAM,mDAAmD,CAAC;AAE3D;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,uBAAuB,EAAE,QAAQ,CAAC,GAAG;IACvE,MAAM,EAAE,oBAAoB,CAAC;CAC9B,CAAC;AAEF,UAAU,4BAA4B;IACpC;;OAEG;IACH,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE;QACJ,KAAK,EAAE;YACL;;eAEG;YACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;YAE1B,sBAAsB;YACtB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;YAEhD,sBAAsB;YACtB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;YAE3C,4DAA4D;YAC5D,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;SAC5C,CAAC;QACF,UAAU,EAAE,EAAE,CAAC;KAChB,CAAC;CACH;AAED;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAChC,4BAA4B,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;AAEhD;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,sBAAsB,mFAezC;AAED;;;;;;;;;;;;;GAaG;;;;;YAlEG;;eAEG;oBACK,MAAM,GAAG,MAAM,EAAE;YAEzB,sBAAsB;0BACR,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI;YAE/C,sBAAsB;qBACb,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI;YAE1C,4DAA4D;qBACnD,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI;;;;;AAuDhD,wBAUE"}
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import type Owner from "@ember/owner";
|
|
2
|
+
import Modifier, { type ArgsFor } from "ember-modifier";
|
|
3
|
+
import type { DragInput, DragLocation } from "discourse/lib/-internals/drag-and-drop/drop-target-kernel";
|
|
4
|
+
import { normalizeOwnedDragSource } from "discourse/lib/-internals/drag-and-drop/vocabulary";
|
|
5
|
+
/**
|
|
6
|
+
* Renders a drag preview into an isolated, offscreen container the browser
|
|
7
|
+
* photographs. Return a cleanup function that tears the preview down.
|
|
8
|
+
*/
|
|
9
|
+
export type DragPreviewRenderer = (args: {
|
|
10
|
+
/** The offscreen container to render into. */
|
|
11
|
+
container: HTMLElement;
|
|
12
|
+
/** The source element the drag began on. */
|
|
13
|
+
element: HTMLElement;
|
|
14
|
+
}) => (() => void) | void;
|
|
15
|
+
/** The dragged source, as the lifecycle callbacks receive it. */
|
|
16
|
+
export type DragSource = ReturnType<typeof normalizeOwnedDragSource>;
|
|
17
|
+
interface DDragAndDropSourceSignature {
|
|
18
|
+
/** The element to mark draggable. */
|
|
19
|
+
Element: HTMLElement;
|
|
20
|
+
Args: {
|
|
21
|
+
Named: {
|
|
22
|
+
/**
|
|
23
|
+
* Discriminator string. Targets filter on this via their `accepts` arg, and
|
|
24
|
+
* it is stamped onto `source.data.type` for callbacks.
|
|
25
|
+
*
|
|
26
|
+
* Reserved: it overwrites any `type` the payload carries. The `dragAndDrop`
|
|
27
|
+
* service also identifies drags by it, so a source without one is invisible
|
|
28
|
+
* there.
|
|
29
|
+
*/
|
|
30
|
+
type: string;
|
|
31
|
+
/**
|
|
32
|
+
* Static payload the source attaches to the drag, exposed as `source.data`
|
|
33
|
+
* in target callbacks. A `type` key on it is overwritten; see `type`.
|
|
34
|
+
*/
|
|
35
|
+
data?: object;
|
|
36
|
+
/**
|
|
37
|
+
* Alternative to `data` for dynamic payloads. Called once just before
|
|
38
|
+
* `dragstart`. Its `type` key is overwritten the same way.
|
|
39
|
+
*/
|
|
40
|
+
getInitialData?: () => object;
|
|
41
|
+
/**
|
|
42
|
+
* A custom native drag preview. An `Element` is photographed in place: the
|
|
43
|
+
* source element keeps the grab point as its hotspot, any other element
|
|
44
|
+
* uses its top-left. Defaults to the source element.
|
|
45
|
+
*
|
|
46
|
+
* A render function mounts a fresh preview into an isolated, offscreen
|
|
47
|
+
* container, so nothing around the source bleeds into the drag image.
|
|
48
|
+
*/
|
|
49
|
+
dragPreview?: Element | DragPreviewRenderer;
|
|
50
|
+
/**
|
|
51
|
+
* CSS lengths (e.g. `{x: "1rem", y: "0.5rem"}`) that push the preview clear
|
|
52
|
+
* of the pointer. Applies only to the render-function `dragPreview`; an
|
|
53
|
+
* `Element` preview is placed by its own hotspot.
|
|
54
|
+
*/
|
|
55
|
+
dragPreviewOffset?: {
|
|
56
|
+
x: string;
|
|
57
|
+
y: string;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Which drop operations this drag permits, written onto the native
|
|
61
|
+
* `dataTransfer` at `dragstart`. Defaults to `"move"`, which also stops the
|
|
62
|
+
* browser badging the pointer with its copy offer.
|
|
63
|
+
*
|
|
64
|
+
* A source whose drop duplicates wants `"copyMove"`: a target's
|
|
65
|
+
* `dropEffect` may only name an effect this permits.
|
|
66
|
+
*/
|
|
67
|
+
effectAllowed?: DataTransfer["effectAllowed"];
|
|
68
|
+
/** Returning `false` blocks the drag from starting. */
|
|
69
|
+
canDrag?: (feedback: {
|
|
70
|
+
/**
|
|
71
|
+
* The source as it stands before the drag begins. `data` is the arg
|
|
72
|
+
* exactly as passed, before it is merged into the drag payload.
|
|
73
|
+
*/
|
|
74
|
+
source: {
|
|
75
|
+
type?: string;
|
|
76
|
+
data?: object;
|
|
77
|
+
element: HTMLElement;
|
|
78
|
+
};
|
|
79
|
+
/** Where the pointer is. */
|
|
80
|
+
input: DragInput;
|
|
81
|
+
}) => boolean | void;
|
|
82
|
+
/** Fires once the drag is confirmed. */
|
|
83
|
+
onDragStart?: (event: {
|
|
84
|
+
/** The dragged source. */
|
|
85
|
+
source: DragSource;
|
|
86
|
+
/** Where the pointer is. */
|
|
87
|
+
input: DragInput;
|
|
88
|
+
}) => void;
|
|
89
|
+
/**
|
|
90
|
+
* Fires once at the end of every drag, landed or abandoned, and is where
|
|
91
|
+
* drag-time state gets undone. A source destroyed before the deferred
|
|
92
|
+
* dispatch fires does not receive it.
|
|
93
|
+
*
|
|
94
|
+
* Fires after the whole drop dispatch, target and monitor callbacks
|
|
95
|
+
* included, so shared dispatch state can be cleared here. Branch on the
|
|
96
|
+
* outcome with `location.current.dropTargets`.
|
|
97
|
+
*/
|
|
98
|
+
onDragEnd?: (event: {
|
|
99
|
+
/** The dragged source. */
|
|
100
|
+
source: DragSource;
|
|
101
|
+
/** The drag's location history. */
|
|
102
|
+
location: DragLocation;
|
|
103
|
+
}) => void;
|
|
104
|
+
/**
|
|
105
|
+
* Fires only for a drag that ended on at least one drop target, so this is
|
|
106
|
+
* where the operation is performed. `onDragEnd` fires first, with the same
|
|
107
|
+
* `source` and `location`.
|
|
108
|
+
*/
|
|
109
|
+
onDrop?: (event: {
|
|
110
|
+
/** The dragged source. */
|
|
111
|
+
source: DragSource;
|
|
112
|
+
/** The drag's location history. */
|
|
113
|
+
location: DragLocation;
|
|
114
|
+
}) => void;
|
|
115
|
+
/**
|
|
116
|
+
* An element inside this one that a drag must start from, so the rest stays
|
|
117
|
+
* free for selecting text and operating controls. Pass the element itself,
|
|
118
|
+
* captured with a modifier on the handle, not a selector.
|
|
119
|
+
*
|
|
120
|
+
* Changing it re-registers, so a ref that only arrives on a later render
|
|
121
|
+
* still takes effect. Omit it and the whole element initiates a drag.
|
|
122
|
+
*
|
|
123
|
+
* The handle carries `draggable="true"`; this element stays the body: it
|
|
124
|
+
* gets the state markers, is the target's `source.element`, and is what the
|
|
125
|
+
* default preview photographs.
|
|
126
|
+
*/
|
|
127
|
+
dragHandle?: Element;
|
|
128
|
+
/**
|
|
129
|
+
* When `true`, the draggable registration is detached; a drag already in
|
|
130
|
+
* flight finishes and reports first. This, not `dragHandle`, is how to stop
|
|
131
|
+
* an element being dragged: a handle only moves where a drag may begin.
|
|
132
|
+
*
|
|
133
|
+
* Style and assert on `data-drag-source`, never on `draggable`: the
|
|
134
|
+
* attribute sits on whichever element was registered.
|
|
135
|
+
*/
|
|
136
|
+
disabled?: boolean;
|
|
137
|
+
};
|
|
138
|
+
Positional: [];
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* What a registration still owes after being detached without cancelling, and
|
|
143
|
+
* the ways its owner can resume or let go of it.
|
|
144
|
+
*
|
|
145
|
+
* A registration waiting for its drag can be reclaimed when the modifier needs
|
|
146
|
+
* that same element again. Work holding only a scheduled dispatch cannot: its
|
|
147
|
+
* drag has ended and its registration has already been torn down.
|
|
148
|
+
*/
|
|
149
|
+
export interface DetachedSourceWork {
|
|
150
|
+
/**
|
|
151
|
+
* The element the registration was created on: the drag handle when one was
|
|
152
|
+
* given, the source element otherwise. A replacement registering on the same
|
|
153
|
+
* element can reclaim this work; one registering elsewhere must leave it
|
|
154
|
+
* waiting, because the underlying library dispatches an in-flight drag's end
|
|
155
|
+
* by looking this element up.
|
|
156
|
+
*/
|
|
157
|
+
registeredElement: HTMLElement;
|
|
158
|
+
/**
|
|
159
|
+
* Re-adopts a registration still waiting for its drag, or returns `null` when
|
|
160
|
+
* only a scheduled dispatch remains.
|
|
161
|
+
*/
|
|
162
|
+
reclaim: () => DragAndDropSourceCleanup | null;
|
|
163
|
+
/** The consumer is going away. Drops everything, dispatch included. */
|
|
164
|
+
abandon: () => void;
|
|
165
|
+
/**
|
|
166
|
+
* Whether anything is still owed. Goes false once the dispatch has fired and
|
|
167
|
+
* no teardown is waiting; a holder has no other way to know when to let go.
|
|
168
|
+
*/
|
|
169
|
+
outstanding: () => boolean;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Tears a drag source registration down.
|
|
173
|
+
*
|
|
174
|
+
* `cancelPending` decides the fate of a drop dispatch already scheduled for the
|
|
175
|
+
* next task. `true` (the default) drops it: the consumer is going away. `false`
|
|
176
|
+
* keeps it: the registration is only being replaced and the consumer lives on.
|
|
177
|
+
*
|
|
178
|
+
* Returns the work still owed, or `null`. A caller that kept the dispatch must
|
|
179
|
+
* hold onto it: it is the only way left to reach the registration, and a
|
|
180
|
+
* reclaimed one is torn down by calling this again.
|
|
181
|
+
*/
|
|
182
|
+
export type DragAndDropSourceCleanup = (options?: {
|
|
183
|
+
cancelPending?: boolean;
|
|
184
|
+
}) => DetachedSourceWork | null;
|
|
185
|
+
/**
|
|
186
|
+
* The drag source's named args, for a consumer driving
|
|
187
|
+
* {@link registerDragAndDropSource} imperatively rather than through the
|
|
188
|
+
* modifier.
|
|
189
|
+
*/
|
|
190
|
+
export type DragAndDropSourceArgs = DDragAndDropSourceSignature["Args"]["Named"];
|
|
191
|
+
/** Test-only: forget every source and unbind the listener between tests. */
|
|
192
|
+
export declare function resetDragSourcesForTesting(): void;
|
|
193
|
+
/**
|
|
194
|
+
* Wraps the underlying draggable registration with payload normalisation, the
|
|
195
|
+
* source's state markers, and the end-of-drag deferral. Exported so a consumer
|
|
196
|
+
* can register a source imperatively, beside `registerDragAndDropTarget`.
|
|
197
|
+
*
|
|
198
|
+
* End-of-drag callbacks are deferred to the next task, after the drop event has
|
|
199
|
+
* finished propagating: `onDragEnd` for every drag, then `onDrop` for one that
|
|
200
|
+
* landed on a target.
|
|
201
|
+
*
|
|
202
|
+
* One registration per element: the underlying library keys registrations by
|
|
203
|
+
* element, so a second one must wait for the first's cleanup.
|
|
204
|
+
*
|
|
205
|
+
* @param element - The element to mark draggable.
|
|
206
|
+
* @param getArgsRef - Closure returning the latest args, read on every library
|
|
207
|
+
* callback, so changes apply without re-registering. `dragHandle` is read once
|
|
208
|
+
* at registration; change it by re-registering.
|
|
209
|
+
* @returns Cleanup function; see {@link DragAndDropSourceCleanup}.
|
|
210
|
+
*/
|
|
211
|
+
export declare function registerDragAndDropSource(element: HTMLElement, getArgsRef: () => DragAndDropSourceArgs): DragAndDropSourceCleanup;
|
|
212
|
+
/**
|
|
213
|
+
* Marks an element as a drag source for the Discourse drag-and-drop vocabulary,
|
|
214
|
+
* paired with `dDragAndDropTarget`. A thin wrapper around
|
|
215
|
+
* {@link registerDragAndDropSource}; every arg is documented on
|
|
216
|
+
* {@link DragAndDropSourceArgs}.
|
|
217
|
+
*
|
|
218
|
+
* ```hbs
|
|
219
|
+
* <li {{dDragAndDropSource
|
|
220
|
+
* type="sidebar-link"
|
|
221
|
+
* data=this.link
|
|
222
|
+
* dragPreview=this.previewEl
|
|
223
|
+
* canDrag=this.canDrag
|
|
224
|
+
* onDragStart=this.handleDragStart
|
|
225
|
+
* onDragEnd=this.clearDragState
|
|
226
|
+
* onDrop=this.applyDrop
|
|
227
|
+
* }}>...</li>
|
|
228
|
+
* ```
|
|
229
|
+
*
|
|
230
|
+
* Stamps `data-drag-source` for the registration's lifetime and `--dragging`
|
|
231
|
+
* while a drag is active; the ui-kit drag-and-drop stylesheet gates its
|
|
232
|
+
* selectors on the attribute.
|
|
233
|
+
*
|
|
234
|
+
* Testing: see the note on `dDragAndDropTarget`; the same helpers drive both
|
|
235
|
+
* ends of a drag.
|
|
236
|
+
*
|
|
237
|
+
* Pointer-only. A native drag has no keyboard equivalent, so a surface built on
|
|
238
|
+
* this needs a keyboard route to the same operation beside it.
|
|
239
|
+
*
|
|
240
|
+
* @see The `dPointerDrag` modifier when there is no drop target and no payload:
|
|
241
|
+
* a press that changes a value continuously is a different gesture.
|
|
242
|
+
*/
|
|
243
|
+
export default class DDragAndDropSourceModifier extends Modifier<DDragAndDropSourceSignature> {
|
|
244
|
+
#private;
|
|
245
|
+
constructor(owner: Owner, args: ArgsFor<DDragAndDropSourceSignature>);
|
|
246
|
+
modify(element: HTMLElement, _positional: [], args?: DragAndDropSourceArgs): void;
|
|
247
|
+
}
|
|
248
|
+
export {};
|
|
249
|
+
//# sourceMappingURL=d-drag-and-drop-source.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"d-drag-and-drop-source.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/ui-kit/modifiers/d-drag-and-drop-source.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAMtC,OAAO,QAAQ,EAAE,EAAE,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAExD,OAAO,KAAK,EACV,SAAS,EACT,YAAY,EACb,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAEL,wBAAwB,EACzB,MAAM,mDAAmD,CAAC;AAE3D;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE;IACvC,8CAA8C;IAC9C,SAAS,EAAE,WAAW,CAAC;IAEvB,4CAA4C;IAC5C,OAAO,EAAE,WAAW,CAAC;CACtB,KAAK,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC;AAE1B,iEAAiE;AACjE,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAErE,UAAU,2BAA2B;IACnC,qCAAqC;IACrC,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE;QACJ,KAAK,EAAE;YACL;;;;;;;eAOG;YACH,IAAI,EAAE,MAAM,CAAC;YAEb;;;eAGG;YACH,IAAI,CAAC,EAAE,MAAM,CAAC;YAEd;;;eAGG;YACH,cAAc,CAAC,EAAE,MAAM,MAAM,CAAC;YAE9B;;;;;;;eAOG;YACH,WAAW,CAAC,EAAE,OAAO,GAAG,mBAAmB,CAAC;YAE5C;;;;eAIG;YACH,iBAAiB,CAAC,EAAE;gBAAE,CAAC,EAAE,MAAM,CAAC;gBAAC,CAAC,EAAE,MAAM,CAAA;aAAE,CAAC;YAE7C;;;;;;;eAOG;YACH,aAAa,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC;YAE9C,uDAAuD;YACvD,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE;gBACnB;;;mBAGG;gBACH,MAAM,EAAE;oBAAE,IAAI,CAAC,EAAE,MAAM,CAAC;oBAAC,IAAI,CAAC,EAAE,MAAM,CAAC;oBAAC,OAAO,EAAE,WAAW,CAAA;iBAAE,CAAC;gBAE/D,4BAA4B;gBAC5B,KAAK,EAAE,SAAS,CAAC;aAClB,KAAK,OAAO,GAAG,IAAI,CAAC;YAErB,wCAAwC;YACxC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE;gBACpB,0BAA0B;gBAC1B,MAAM,EAAE,UAAU,CAAC;gBAEnB,4BAA4B;gBAC5B,KAAK,EAAE,SAAS,CAAC;aAClB,KAAK,IAAI,CAAC;YAEX;;;;;;;;eAQG;YACH,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE;gBAClB,0BAA0B;gBAC1B,MAAM,EAAE,UAAU,CAAC;gBAEnB,mCAAmC;gBACnC,QAAQ,EAAE,YAAY,CAAC;aACxB,KAAK,IAAI,CAAC;YAEX;;;;eAIG;YACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE;gBACf,0BAA0B;gBAC1B,MAAM,EAAE,UAAU,CAAC;gBAEnB,mCAAmC;gBACnC,QAAQ,EAAE,YAAY,CAAC;aACxB,KAAK,IAAI,CAAC;YAEX;;;;;;;;;;;eAWG;YACH,UAAU,CAAC,EAAE,OAAO,CAAC;YAErB;;;;;;;eAOG;YACH,QAAQ,CAAC,EAAE,OAAO,CAAC;SACpB,CAAC;QACF,UAAU,EAAE,EAAE,CAAC;KAChB,CAAC;CACH;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;;OAMG;IACH,iBAAiB,EAAE,WAAW,CAAC;IAE/B;;;OAGG;IACH,OAAO,EAAE,MAAM,wBAAwB,GAAG,IAAI,CAAC;IAE/C,uEAAuE;IACvE,OAAO,EAAE,MAAM,IAAI,CAAC;IAEpB;;;OAGG;IACH,WAAW,EAAE,MAAM,OAAO,CAAC;CAC5B;AAED;;;;;;;;;;GAUG;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,CAAC,EAAE;IAChD,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,KAAK,kBAAkB,GAAG,IAAI,CAAC;AAEhC;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAC/B,2BAA2B,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;AAmF/C,4EAA4E;AAC5E,wBAAgB,0BAA0B,SAMzC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,WAAW,EACpB,UAAU,EAAE,MAAM,qBAAqB,GACtC,wBAAwB,CAuN1B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,CAAC,OAAO,OAAO,0BAA2B,SAAQ,QAAQ,CAAC,2BAA2B,CAAC;;gBAmB/E,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,CAAC,2BAA2B,CAAC;IASpE,MAAM,CACJ,OAAO,EAAE,WAAW,EACpB,WAAW,EAAE,EAAE,EACf,IAAI,GAAE,qBAAmD;CA2D5D"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { type DropTargetKernelArgs, type DropTargetKernelEvent, type DropTargetKernelFeedback } from "discourse/lib/-internals/drag-and-drop/drop-target-kernel";
|
|
2
|
+
import { type NativeDragAdoption } from "discourse/lib/-internals/drag-and-drop/native-drag-adoption";
|
|
3
|
+
import { type NormalizedDragSource } from "discourse/lib/-internals/drag-and-drop/vocabulary";
|
|
4
|
+
export type { NativeDragAdoption, NativeDragAdoptionFeedback, } from "discourse/lib/-internals/drag-and-drop/native-drag-adoption";
|
|
5
|
+
export { type DropEffect, type DropPosition, type DropPositionOptions, } from "discourse/lib/-internals/drag-and-drop/drop-target-kernel";
|
|
6
|
+
/**
|
|
7
|
+
* The dragged source, normalized to the shape `dDragAndDropSource` publishes.
|
|
8
|
+
* An adopted drag also carries `native`, with the same reader API as an
|
|
9
|
+
* external target's payload; its `items` is always empty.
|
|
10
|
+
*/
|
|
11
|
+
export type DropTargetSource = NormalizedDragSource;
|
|
12
|
+
/** What a synchronous gate (`canDrop`, a `dropEffect` function) is asked about. */
|
|
13
|
+
export type DropTargetFeedback = DropTargetKernelFeedback<DropTargetSource>;
|
|
14
|
+
/** What a lifecycle callback is told. */
|
|
15
|
+
export type DropTargetEvent = DropTargetKernelEvent<DropTargetSource>;
|
|
16
|
+
/**
|
|
17
|
+
* The drop target's named args, shared by the `dDragAndDropTarget` modifier
|
|
18
|
+
* and {@link registerDragAndDropTarget}.
|
|
19
|
+
*/
|
|
20
|
+
export interface DragAndDropTargetArgs extends DropTargetKernelArgs<DropTargetSource> {
|
|
21
|
+
/**
|
|
22
|
+
* The dragged source's `type` must be in this list for the target to engage.
|
|
23
|
+
* Omit to accept any registered source, unless `adopts` is set; then omission
|
|
24
|
+
* accepts only the adopted drags named there.
|
|
25
|
+
*/
|
|
26
|
+
accepts?: string | string[];
|
|
27
|
+
/**
|
|
28
|
+
* Also accept browser-started drags from page content that no
|
|
29
|
+
* `dDragAndDropSource` registered, such as native links or images.
|
|
30
|
+
* Independent of `accepts`, since such content carries no source type;
|
|
31
|
+
* adopted payloads arrive on `source.native`.
|
|
32
|
+
*
|
|
33
|
+
* Adoption is resolved once for the page, not per target. At `dragstart` the
|
|
34
|
+
* first live adoption whose predicate matches names the drag, and every
|
|
35
|
+
* target listing that name accepts it.
|
|
36
|
+
*
|
|
37
|
+
* So two adoptions sharing a name must share a predicate. Declare one as a
|
|
38
|
+
* module constant and offer it from each target.
|
|
39
|
+
*
|
|
40
|
+
* Covers only what the browser started on this page. Pair it with
|
|
41
|
+
* `dDragAndDropExternalTarget` on the same element to take the same content
|
|
42
|
+
* dragged in from outside the window.
|
|
43
|
+
*/
|
|
44
|
+
adopts?: NativeDragAdoption | NativeDragAdoption[];
|
|
45
|
+
/**
|
|
46
|
+
* `false` refuses a drop whose dragged element is this element. Defaults to
|
|
47
|
+
* `true`: an element that is both source and target has a meaningful drop
|
|
48
|
+
* onto itself, so excluding it is opt-in.
|
|
49
|
+
*/
|
|
50
|
+
acceptsSelf?: boolean;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Imperative drop-target registration; the `dDragAndDropTarget` modifier
|
|
54
|
+
* below wraps it.
|
|
55
|
+
*
|
|
56
|
+
* @param element - The element to register as a drop target.
|
|
57
|
+
* @param getArgsRef - Closure returning the latest args. Library callbacks read
|
|
58
|
+
* it on every invocation, so arg changes apply without re-registering.
|
|
59
|
+
* @returns Cleanup; call it once on teardown.
|
|
60
|
+
*/
|
|
61
|
+
export declare function registerDragAndDropTarget(element: Element, getArgsRef: () => DragAndDropTargetArgs): import("@atlaskit/pragmatic-drag-and-drop/dist/types/internal-types").CleanupFn;
|
|
62
|
+
/**
|
|
63
|
+
* Marks an element as a drop target for `dDragAndDropSource` drags. Every arg
|
|
64
|
+
* is documented on {@link DragAndDropTargetArgs}. The indicator classes are
|
|
65
|
+
* styled in `app/assets/stylesheets/common/ui-kit/d-drag-and-drop.scss`.
|
|
66
|
+
*
|
|
67
|
+
* Position from the pointer against the element's midpoint:
|
|
68
|
+
*
|
|
69
|
+
* ```hbs
|
|
70
|
+
* <li {{dDragAndDropTarget accepts="sidebar-link" onDrop=this.reorder}}>...</li>
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* A fixed position:
|
|
74
|
+
*
|
|
75
|
+
* ```hbs
|
|
76
|
+
* <div {{dDragAndDropTarget
|
|
77
|
+
* accepts="block"
|
|
78
|
+
* position="inside"
|
|
79
|
+
* onDrop=this.applyMove
|
|
80
|
+
* }}></div>
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* Testing: use `simulateDrag` from
|
|
84
|
+
* `discourse/tests/helpers/ui-kit/drag-and-drop-helper` in JS, and
|
|
85
|
+
* `SystemHelpers#drag_and_drop` in system specs; synthetic mouse drags stall.
|
|
86
|
+
*
|
|
87
|
+
* Element drags, and with `adopts` browser-started drags from page content;
|
|
88
|
+
* see `dDragAndDropExternalTarget` for payloads dragged in from outside the
|
|
89
|
+
* window.
|
|
90
|
+
*
|
|
91
|
+
* @see `dDragDwell` to act once a drag has hovered this element for a delay;
|
|
92
|
+
* it composes beside this modifier without joining the target hierarchy.
|
|
93
|
+
*/
|
|
94
|
+
declare const _default: import("ember-modifier").FunctionBasedModifier<{
|
|
95
|
+
Element: HTMLElement;
|
|
96
|
+
Args: {
|
|
97
|
+
Named: DragAndDropTargetArgs;
|
|
98
|
+
Positional: [];
|
|
99
|
+
};
|
|
100
|
+
}>;
|
|
101
|
+
export default _default;
|
|
102
|
+
//# sourceMappingURL=d-drag-and-drop-target.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"d-drag-and-drop-target.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/ui-kit/modifiers/d-drag-and-drop-target.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAE9B,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAEL,KAAK,kBAAkB,EAGxB,MAAM,6DAA6D,CAAC;AACrE,OAAO,EAGL,KAAK,oBAAoB,EAE1B,MAAM,mDAAmD,CAAC;AAE3D,YAAY,EACV,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,6DAA6D,CAAC;AAErE,OAAO,EACL,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,mBAAmB,GACzB,MAAM,2DAA2D,CAAC;AAEnE;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,CAAC;AAEpD,mFAAmF;AACnF,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,CAAC,gBAAgB,CAAC,CAAC;AAE5E,yCAAyC;AACzC,MAAM,MAAM,eAAe,GAAG,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;AAEtE;;;GAGG;AACH,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB,CAAC,gBAAgB,CAAC;IACnF;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAE5B;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,EAAE,kBAAkB,GAAG,kBAAkB,EAAE,CAAC;IAEnD;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAWD;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,MAAM,qBAAqB,mFA+BxC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;;;;;;;;AACH,wBAKE"}
|