@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,243 @@
|
|
|
1
|
+
import Component from "@glimmer/component";
|
|
2
|
+
import type Owner from "@ember/owner";
|
|
3
|
+
import { type TrustedHTML } from "@ember/template";
|
|
4
|
+
import { type DPointerDragInfo } from "discourse/ui-kit/modifiers/d-pointer-drag";
|
|
5
|
+
/** One of the eight compass directions of the built-in box resize. */
|
|
6
|
+
export type BoxDirection = "n" | "ne" | "e" | "se" | "s" | "sw" | "w" | "nw";
|
|
7
|
+
/**
|
|
8
|
+
* The eight compass handles of a box resize, in clockwise order. The common
|
|
9
|
+
* case (resizing a rectangle's edges + corners) — generated from `@handleClass`
|
|
10
|
+
* so consumers don't repeat the list. Each handle's `payload` is its direction.
|
|
11
|
+
*/
|
|
12
|
+
export declare const BOX_DIRECTIONS: BoxDirection[];
|
|
13
|
+
/**
|
|
14
|
+
* One handle to render. The escape hatch from the built-in box: supply these
|
|
15
|
+
* when the handles are not a rectangle's edges and corners.
|
|
16
|
+
*/
|
|
17
|
+
export interface DResizeHandleDescriptor<Payload extends string | number> {
|
|
18
|
+
/**
|
|
19
|
+
* What makes this handle itself. It must be unique among its siblings and
|
|
20
|
+
* stable across recomputes, so that a list changing under a held pointer
|
|
21
|
+
* destroys the handle that really went rather than the last one.
|
|
22
|
+
*
|
|
23
|
+
* Not derived from `payload`, which says what a handle means rather than which
|
|
24
|
+
* one it is. Several handles can legitimately mean the same thing.
|
|
25
|
+
*/
|
|
26
|
+
key: string;
|
|
27
|
+
/** What the handle means. Handed back to every callback, and may repeat. */
|
|
28
|
+
payload: Payload;
|
|
29
|
+
/** Positions and styles the handle. */
|
|
30
|
+
class?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Inline positioning. Wrap the string in `trustHTML` before passing it here.
|
|
33
|
+
* Only the caller knows whether the values it interpolated are safe, so this
|
|
34
|
+
* component will not make that call for it.
|
|
35
|
+
*/
|
|
36
|
+
style?: TrustedHTML;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* The pointer geometry of a move, reported to every callback. Deliberately raw:
|
|
40
|
+
* the consumer decides what a pixel delta means in its own units.
|
|
41
|
+
*
|
|
42
|
+
* Everything here is a snapshot of the moment it was handed over, EXCEPT
|
|
43
|
+
* `session`, which is the one thing that lives for the gesture.
|
|
44
|
+
*/
|
|
45
|
+
export interface DResizeHandleDragInfo<Payload extends string | number, Session extends object = object> {
|
|
46
|
+
/** The handle being dragged — the same value the callback's first argument carries. */
|
|
47
|
+
readonly payload: Payload;
|
|
48
|
+
/** The pointer event that produced this report. */
|
|
49
|
+
readonly event: PointerEvent;
|
|
50
|
+
/** Where the press landed, in client coordinates. */
|
|
51
|
+
readonly origin: Readonly<{
|
|
52
|
+
x: number;
|
|
53
|
+
y: number;
|
|
54
|
+
}>;
|
|
55
|
+
/** Where the pointer is now, in client coordinates. */
|
|
56
|
+
readonly current: Readonly<{
|
|
57
|
+
x: number;
|
|
58
|
+
y: number;
|
|
59
|
+
}>;
|
|
60
|
+
/** How far the pointer has travelled since the press. */
|
|
61
|
+
readonly delta: Readonly<{
|
|
62
|
+
x: number;
|
|
63
|
+
y: number;
|
|
64
|
+
}>;
|
|
65
|
+
/**
|
|
66
|
+
* Whether `@onResize` has fired at least once for THIS gesture. It tells a
|
|
67
|
+
* resize apart from a click that landed on a handle. Commit on `@onResizeEnd`
|
|
68
|
+
* only when it is set, or a bare click records a no-op change.
|
|
69
|
+
*/
|
|
70
|
+
readonly moved: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Scratch for the length of one gesture, and the same object throughout it.
|
|
73
|
+
*
|
|
74
|
+
* Write the press-time snapshot here in `@onResizeStart` and read it back on
|
|
75
|
+
* every later report. It lives here rather than on the consumer so that each
|
|
76
|
+
* gesture starts with a fresh one.
|
|
77
|
+
*/
|
|
78
|
+
readonly session: Session;
|
|
79
|
+
/**
|
|
80
|
+
* The element named by `@measure`, or `null` when none was named. Handed back
|
|
81
|
+
* so a consumer that also needs the element itself (to paint a preview on it,
|
|
82
|
+
* say) does not resolve it a second time.
|
|
83
|
+
*/
|
|
84
|
+
readonly measured: Element | null;
|
|
85
|
+
/**
|
|
86
|
+
* The bounds of the element named by `@measure`, or `null` when none was
|
|
87
|
+
* named. Viewport-relative, with transforms applied, so a consumer working in
|
|
88
|
+
* unscaled units divides by the scale factor and subtracts `left` and `top`.
|
|
89
|
+
*
|
|
90
|
+
* A LIVE reading, re-read on scroll and viewport resize, so it stays correct
|
|
91
|
+
* when the box moves under a held pointer. It is NOT re-read when the element
|
|
92
|
+
* changes size, or on a layout shift or transform. Those raise no event.
|
|
93
|
+
*/
|
|
94
|
+
readonly measuredRect: DOMRect | null;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* The box whose bounds a gesture reports: the element itself, or a function
|
|
98
|
+
* receiving the pressed handle and returning it.
|
|
99
|
+
*/
|
|
100
|
+
type MeasureTarget = Element | ((handle: HTMLElement) => Element | null | undefined);
|
|
101
|
+
interface DResizeHandlesSignature<Payload extends string | number, Session extends object = object> {
|
|
102
|
+
Args: {
|
|
103
|
+
/**
|
|
104
|
+
* BEM block for the built-in 8-direction box. Each handle is classed
|
|
105
|
+
* `<handleClass> --<dir>`. Ignored when `@handles` is supplied.
|
|
106
|
+
*/
|
|
107
|
+
handleClass?: string;
|
|
108
|
+
/**
|
|
109
|
+
* A subset of the eight compass directions to render for the built-in box
|
|
110
|
+
* (e.g. only the edges and corners that can actually move). Defaults to all
|
|
111
|
+
* eight; ignored when `@handles` is supplied.
|
|
112
|
+
*/
|
|
113
|
+
directions?: BoxDirection[];
|
|
114
|
+
/**
|
|
115
|
+
* Explicit handle descriptors. The escape hatch for anything that is not a
|
|
116
|
+
* box — N column-gutter handles at computed offsets, say. Takes precedence
|
|
117
|
+
* over `@handleClass`.
|
|
118
|
+
*/
|
|
119
|
+
handles?: DResizeHandleDescriptor<Payload>[];
|
|
120
|
+
/**
|
|
121
|
+
* The gesture began. Snapshot the press-time state onto `dragInfo.session`
|
|
122
|
+
* here. Return `false` to veto it.
|
|
123
|
+
*
|
|
124
|
+
* The callbacks sit in `NoInfer` positions so that `@handles` alone decides
|
|
125
|
+
* the payload type. Without it a handler taking a number would infer
|
|
126
|
+
* `Payload` as `number` on the built-in box, hiding a real mismatch.
|
|
127
|
+
*/
|
|
128
|
+
onResizeStart?: (payload: NoInfer<Payload>, dragInfo: DResizeHandleDragInfo<NoInfer<Payload>, Session>) => boolean | void;
|
|
129
|
+
/** Fired on every move. Compute and preview here. */
|
|
130
|
+
onResize?: (payload: NoInfer<Payload>, dragInfo: DResizeHandleDragInfo<NoInfer<Payload>, Session>) => void;
|
|
131
|
+
/**
|
|
132
|
+
* Fired once on release, and on teardown for a gesture still held. Commit
|
|
133
|
+
* here, guarded on `dragInfo.moved`.
|
|
134
|
+
*/
|
|
135
|
+
onResizeEnd?: (payload: NoInfer<Payload>, dragInfo: DResizeHandleDragInfo<NoInfer<Payload>, Session>) => void;
|
|
136
|
+
/**
|
|
137
|
+
* Fired when the gesture is cancelled rather than released, teardown with a
|
|
138
|
+
* gesture still held included. Mutually exclusive with `@cancelCommits`,
|
|
139
|
+
* which routes cancels to `@onResizeEnd` and so leaves this one unreachable.
|
|
140
|
+
*/
|
|
141
|
+
onResizeCancel?: (payload: NoInfer<Payload>, dragInfo: DResizeHandleDragInfo<NoInfer<Payload>, Session>) => void;
|
|
142
|
+
/** A class toggled on the active handle while it is being dragged. */
|
|
143
|
+
draggingClass?: string;
|
|
144
|
+
/**
|
|
145
|
+
* Pixels of travel before `@onResize` starts firing, to absorb the jitter of
|
|
146
|
+
* a click that was never meant to be a drag.
|
|
147
|
+
*/
|
|
148
|
+
threshold?: number;
|
|
149
|
+
/**
|
|
150
|
+
* Whether a gesture cut short — `pointercancel`, a lost capture, or another
|
|
151
|
+
* registration claiming the pointer — reports through `@onResizeEnd` rather
|
|
152
|
+
* than `@onResizeCancel`, leaving the latter unreachable.
|
|
153
|
+
*
|
|
154
|
+
* A consumer that commits the terminal event's position must NOT set this: a
|
|
155
|
+
* cancel carries no position the user chose, so the commit would write a
|
|
156
|
+
* coordinate the pointer was never at.
|
|
157
|
+
*/
|
|
158
|
+
cancelCommits?: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* The box being resized, so it and its bounds ride along on every report.
|
|
161
|
+
* Either the element, or a function receiving the pressed handle and
|
|
162
|
+
* returning it. See `measuredRect` for what is and is not re-read.
|
|
163
|
+
*/
|
|
164
|
+
measure?: MeasureTarget;
|
|
165
|
+
/**
|
|
166
|
+
* Whether an accepted press stops propagating. Defaults to `false`, because
|
|
167
|
+
* document-level listeners need to see `pointerdown`. Set it when the handles
|
|
168
|
+
* sit inside another gesture that would otherwise steal the pointer.
|
|
169
|
+
*/
|
|
170
|
+
stopPropagation?: boolean;
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Renders a set of drag handles and drives each through the pointer-drag
|
|
175
|
+
* lifecycle, owning what every consumer would otherwise repeat: the handle loop,
|
|
176
|
+
* the per-handle pointer wiring, and one gesture's state for as long as it runs.
|
|
177
|
+
*
|
|
178
|
+
* It reports pointer geometry rather than a size. The consumer does the math in
|
|
179
|
+
* its own units, paints its own preview, and commits on `@onResizeEnd`.
|
|
180
|
+
*
|
|
181
|
+
* Every gesture ends with exactly one terminal callback, whether it ends on
|
|
182
|
+
* release, on its handle being removed, or on the component being destroyed.
|
|
183
|
+
* Each gesture carries a `session` for press-time state.
|
|
184
|
+
*
|
|
185
|
+
* ONE gesture at a time. A press arriving while another is held is refused, so
|
|
186
|
+
* two handles on one box can never fight over the same geometry. Two separate
|
|
187
|
+
* boxes still drag at once, because each renders its own handles.
|
|
188
|
+
*
|
|
189
|
+
* The common case, a box's 8 edge and corner handles, is built in through
|
|
190
|
+
* `@handleClass`. Anything else passes explicit `@handles` descriptors.
|
|
191
|
+
*
|
|
192
|
+
* @example
|
|
193
|
+
* Box (edges + corners) from a BEM block:
|
|
194
|
+
* ```gjs
|
|
195
|
+
* <DResizeHandles @handleClass="my-block__handle" @onResize={{this.onResize}} />
|
|
196
|
+
* ```
|
|
197
|
+
*
|
|
198
|
+
* @example
|
|
199
|
+
* Escape hatch — explicit descriptors:
|
|
200
|
+
* ```gjs
|
|
201
|
+
* <DResizeHandles @handles={{this.columnHandles}} @onResize={{this.onResize}} />
|
|
202
|
+
* ```
|
|
203
|
+
*
|
|
204
|
+
* `role="separator"` is wrong here and must not be used: a box resized from its
|
|
205
|
+
* corners has no single value to report.
|
|
206
|
+
*
|
|
207
|
+
* Deliberately POINTER-ONLY. The handles are `aria-hidden` and out of the tab
|
|
208
|
+
* order: eight tab stops per box would be hostile, and no ARIA role describes a
|
|
209
|
+
* corner drag. Put keyboard resizing on the resized object itself.
|
|
210
|
+
*
|
|
211
|
+
* @see The `DResizeSeparator` component for a ONE-axis resize between two regions, which is
|
|
212
|
+
* operable by keyboard and announced.
|
|
213
|
+
* @see The `dOnResize` modifier to merely OBSERVE a size change. It is not a gesture.
|
|
214
|
+
*/
|
|
215
|
+
export default class DResizeHandles<Payload extends string | number = BoxDirection, Session extends object = object> extends Component<DResizeHandlesSignature<Payload, Session>> {
|
|
216
|
+
#private;
|
|
217
|
+
constructor(owner: Owner, args: DResizeHandlesSignature<Payload, Session>["Args"]);
|
|
218
|
+
/**
|
|
219
|
+
* The resolved handle descriptors: explicit `@handles` when named, otherwise
|
|
220
|
+
* the built-in box from `@handleClass`.
|
|
221
|
+
*
|
|
222
|
+
* The branch tests whether `@handles` was NAMED, not whether it holds
|
|
223
|
+
* anything, because naming it is what `Payload` is inferred from. Falling
|
|
224
|
+
* through to the box would hand compass strings to differently-typed callbacks.
|
|
225
|
+
*/
|
|
226
|
+
get handles(): DResizeHandleDescriptor<Payload>[];
|
|
227
|
+
onHandleDown(payload: Payload, event: PointerEvent, info: DPointerDragInfo): any;
|
|
228
|
+
onHandleMove(event: PointerEvent, info: DPointerDragInfo): void;
|
|
229
|
+
onHandleUp(event: PointerEvent, info: DPointerDragInfo): void;
|
|
230
|
+
onHandleCancel(event: PointerEvent, info: DPointerDragInfo): void;
|
|
231
|
+
/**
|
|
232
|
+
* Closes the gesture when the handle holding it is destroyed. That happens
|
|
233
|
+
* when `@handles` or `@directions` drops a handle while the pointer is down.
|
|
234
|
+
*
|
|
235
|
+
* The engine reports nothing when its element goes. Without this, the consumer
|
|
236
|
+
* would never get to close what it opened at the press.
|
|
237
|
+
*
|
|
238
|
+
* @param element - The handle being torn down.
|
|
239
|
+
*/
|
|
240
|
+
onHandleTeardown(element: Element): void;
|
|
241
|
+
}
|
|
242
|
+
export {};
|
|
243
|
+
//# sourceMappingURL=d-resize-handles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"d-resize-handles.d.ts","sourceRoot":"","sources":["../../../../discourse/app/ui-kit/d-resize-handles.gts"],"names":[],"mappings":"AAAA,OAgkBO,SAAS,MAAM,oBAAoB,CAAC;AAM3C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAqB,EACnB,KAAK,gBAAgB,EACtB,MAAM,2CAA2C,CAAC;AAEnD,sEAAsE;AACtE,MAAM,MAAM,YAAY,GAAG,GAAG,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC;AAE7E;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,YAAY,EASxC,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,uBAAuB,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM;IACtE;;;;;;;OAOG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ,4EAA4E;IAC5E,OAAO,EAAE,OAAO,CAAC;IAEjB,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB;AAeD;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB,CACpC,OAAO,SAAS,MAAM,GAAG,MAAM,EAC/B,OAAO,SAAS,MAAM,GAAG,MAAM;IAE/B,uFAAuF;IACvF,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B,mDAAmD;IACnD,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAE7B,qDAAqD;IACrD,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAEpD,uDAAuD;IACvD,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAErD,yDAAyD;IACzD,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAEnD;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IAExB;;;;;;OAMG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAAC;IAElC;;;;;;;;OAQG;IACH,QAAQ,CAAC,YAAY,EAAE,OAAO,GAAG,IAAI,CAAC;CACvC;AAED;;;GAGG;AACH,KAAK,aAAa,GACd,OAAO,GACP,CAAC,CAAC,MAAM,EAAE,WAAW,KAAK,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;AAE1D,UAAU,uBAAuB,CAC/B,OAAO,SAAS,MAAM,GAAG,MAAM,EAC/B,OAAO,SAAS,MAAM,GAAG,MAAM;IAE/B,IAAI,EAAE;QACJ;;;WAGG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;;;WAIG;QACH,UAAU,CAAC,EAAE,YAAY,EAAE,CAAC;QAE5B;;;;WAIG;QACH,OAAO,CAAC,EAAE,uBAAuB,CAAC,OAAO,CAAC,EAAE,CAAC;QAE7C;;;;;;;WAOG;QACH,aAAa,CAAC,EAAE,CACd,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,EACzB,QAAQ,EAAE,qBAAqB,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,KACvD,OAAO,GAAG,IAAI,CAAC;QAEpB,qDAAqD;QACrD,QAAQ,CAAC,EAAE,CACT,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,EACzB,QAAQ,EAAE,qBAAqB,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,KACvD,IAAI,CAAC;QAEV;;;WAGG;QACH,WAAW,CAAC,EAAE,CACZ,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,EACzB,QAAQ,EAAE,qBAAqB,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,KACvD,IAAI,CAAC;QAEV;;;;WAIG;QACH,cAAc,CAAC,EAAE,CACf,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,EACzB,QAAQ,EAAE,qBAAqB,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,KACvD,IAAI,CAAC;QAEV,sEAAsE;QACtE,aAAa,CAAC,EAAE,MAAM,CAAC;QAEvB;;;WAGG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;;;;;;;WAQG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;QAExB;;;;WAIG;QACH,OAAO,CAAC,EAAE,aAAa,CAAC;QAExB;;;;WAIG;QACH,eAAe,CAAC,EAAE,OAAO,CAAC;KAC3B,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,MAAM,CAAC,OAAO,OAAO,cAAc,CACjC,OAAO,SAAS,MAAM,GAAG,MAAM,GAAG,YAAY,EAC9C,OAAO,SAAS,MAAM,GAAG,MAAM,CAC/B,SAAQ,SAAS,CAAC,uBAAuB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;;gBAqB1D,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,uBAAuB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC;IAMzD;;;;;;;OAOG;IACH,IAAI,OAAO,uCA0BV;IAGD,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,gBAAgB;IAwC1E,YAAY,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,gBAAgB;IAYxD,UAAU,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,gBAAgB;IAgBtD,cAAc,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,gBAAgB;IAa1D;;;;;;;;OAQG;IAEH,gBAAgB,CAAC,OAAO,EAAE,OAAO;CAsIlC"}
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import Component from "@glimmer/component";
|
|
2
|
+
import type Owner from "@ember/owner";
|
|
3
|
+
import type { Side } from "discourse/lib/geometry";
|
|
4
|
+
import { type ResizeAxis } from "discourse/lib/resize-measurements";
|
|
5
|
+
import { type ResizeReportMeta } from "discourse/ui-kit/modifiers/d-resize-edge";
|
|
6
|
+
/**
|
|
7
|
+
* A size, or a function returning one for a value the template cannot observe.
|
|
8
|
+
* `null` is the unmeasured state — the component withholds `aria-valuenow`
|
|
9
|
+
* until a size is known, so a measurement function may honestly say "not yet".
|
|
10
|
+
*/
|
|
11
|
+
type Measurement = number | null | (() => number | null);
|
|
12
|
+
/**
|
|
13
|
+
* A bound, which unlike a size is expected to be known. There is nothing to clamp
|
|
14
|
+
* against until it is, so a consumer with no limit should leave the arg off.
|
|
15
|
+
*
|
|
16
|
+
* `strictNullChecks` is off repo-wide, so a nullable measurement still type-checks
|
|
17
|
+
* here. The gesture holds the line instead. It skips a bound that does not
|
|
18
|
+
* resolve, rather than reading it as zero.
|
|
19
|
+
*/
|
|
20
|
+
type Bound = number | (() => number);
|
|
21
|
+
/**
|
|
22
|
+
* The box being resized: the element itself, or a function receiving the
|
|
23
|
+
* separator's own element and returning it.
|
|
24
|
+
*/
|
|
25
|
+
type MeasureTarget = HTMLElement | ((separator: HTMLElement) => HTMLElement | null | undefined);
|
|
26
|
+
interface DResizeSeparatorSignature {
|
|
27
|
+
/** The separator itself. Attributes and modifiers pass through to it. */
|
|
28
|
+
Element: HTMLDivElement;
|
|
29
|
+
Args: {
|
|
30
|
+
/**
|
|
31
|
+
* `"vertical"` to resize height, `"horizontal"` to resize width. Defaults to
|
|
32
|
+
* `"vertical"`.
|
|
33
|
+
*/
|
|
34
|
+
axis?: ResizeAxis;
|
|
35
|
+
/**
|
|
36
|
+
* The edge of the resized box the handle sits on, naming the edge OPPOSITE
|
|
37
|
+
* the one that moves: a handle at the top of a bottom-docked box is `"end"`.
|
|
38
|
+
* Defaults to `"start"`.
|
|
39
|
+
*/
|
|
40
|
+
side?: Side;
|
|
41
|
+
/**
|
|
42
|
+
* The box being resized. Given this, the separator measures its own size and
|
|
43
|
+
* bounds along `@axis` and keeps the announced values up to date, which is
|
|
44
|
+
* all an ordinary consumer needs.
|
|
45
|
+
*
|
|
46
|
+
* Either the element, or a function receiving the separator's own element
|
|
47
|
+
* and returning it. Resolved when the arg itself changes, so a stable
|
|
48
|
+
* function reference is called exactly once: pass that form for a box
|
|
49
|
+
* already around the separator when it renders, and the element form when it
|
|
50
|
+
* appears later, since replacing the element re-resolves.
|
|
51
|
+
*/
|
|
52
|
+
measure?: MeasureTarget;
|
|
53
|
+
/**
|
|
54
|
+
* The current size, when it is NOT the measured extent of `@measure` — a
|
|
55
|
+
* number in the consumer's own units, say, or an offset from a resting size.
|
|
56
|
+
* Overrides the measurement. Pass a function whenever the number is a live
|
|
57
|
+
* reading rather than tracked state.
|
|
58
|
+
*/
|
|
59
|
+
value?: Measurement;
|
|
60
|
+
/** The smallest size the box may be dragged to. Overrides the measurement. */
|
|
61
|
+
min?: Bound;
|
|
62
|
+
/** The largest size the box may be dragged to. Overrides the measurement. */
|
|
63
|
+
max?: Bound;
|
|
64
|
+
/**
|
|
65
|
+
* What the separator is called, already translated. Required: a focusable
|
|
66
|
+
* `role="separator"` with no accessible name is announced as a bare
|
|
67
|
+
* "splitter", which says nothing about what it resizes.
|
|
68
|
+
*/
|
|
69
|
+
label: string;
|
|
70
|
+
/** The gesture began. A notification; the return is ignored. */
|
|
71
|
+
onResizeStart?: () => void;
|
|
72
|
+
/** Fired throughout the gesture. Preview here. */
|
|
73
|
+
onResize?: (size: number) => void;
|
|
74
|
+
/**
|
|
75
|
+
* Fired once at the end. Commit here.
|
|
76
|
+
*
|
|
77
|
+
* Also fired if the separator is destroyed with a gesture still held, since
|
|
78
|
+
* the engine beneath reports nothing on teardown and a consumer that opened
|
|
79
|
+
* something at the start would otherwise never get to close it. The size is
|
|
80
|
+
* the last one reported.
|
|
81
|
+
*/
|
|
82
|
+
onResizeEnd?: (size: number) => void;
|
|
83
|
+
};
|
|
84
|
+
Blocks: {
|
|
85
|
+
/**
|
|
86
|
+
* Rendered inside the handle, for the ones that draw themselves with a real
|
|
87
|
+
* element rather than a pseudo-element.
|
|
88
|
+
*/
|
|
89
|
+
default: [];
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* A one-axis resize handle that is operable and announced: the separator semantics
|
|
94
|
+
* and the gesture bound together, so a consumer supplies only the size and what to
|
|
95
|
+
* do with it.
|
|
96
|
+
*
|
|
97
|
+
* Wraps {@link dResizeEdge}, which keeps the value math, the bounds, the keyboard
|
|
98
|
+
* path and the writing-direction flip. What this adds is everything a consumer
|
|
99
|
+
* would otherwise hand-write beside that modifier, and can get subtly wrong:
|
|
100
|
+
*
|
|
101
|
+
* - The separator contract — `role`, one tab stop, and an `aria-orientation` that
|
|
102
|
+
* is the OPPOSITE of the axis, because a separator between vertically stacked
|
|
103
|
+
* regions is itself a horizontal bar.
|
|
104
|
+
* - A tracked mirror of the size for `aria-valuenow`/`min`/`max`. These cannot
|
|
105
|
+
* reuse the modifier's args as they stand: a live measurement has to reach the
|
|
106
|
+
* modifier as a function or it would be read once and every later gesture would
|
|
107
|
+
* work from a stale value, while assistive technology needs a value the template
|
|
108
|
+
* can re-render from.
|
|
109
|
+
* - Withholding `aria-valuenow` until a size is known. Reporting `0` would claim
|
|
110
|
+
* the box has no extent; an absent value says "not measured yet".
|
|
111
|
+
* - Holding the cursor for the length of the gesture. Whether the cursor of the
|
|
112
|
+
* element a drag began on survives the pointer leaving it is engine-dependent,
|
|
113
|
+
* so the intent is stated on the page instead of left to the handle.
|
|
114
|
+
*
|
|
115
|
+
* Point it at the box with `@measure` and it reads the size and both bounds
|
|
116
|
+
* itself, along whichever axis it is resizing. Supply `@value`, `@min` or `@max`
|
|
117
|
+
* only when the number is NOT that measurement — an offset from a resting size,
|
|
118
|
+
* or a count in the consumer's own units — and each one given overrides what
|
|
119
|
+
* would have been measured.
|
|
120
|
+
*
|
|
121
|
+
* Supply `@max` for a second reason too, about layout rather than units. The
|
|
122
|
+
* measured maximum leaves the header its space, which suits a box pinned in the
|
|
123
|
+
* viewport. A box in a scrolling page should pass its own.
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* The ordinary case, where the separator resizes a box on the page:
|
|
127
|
+
* ```gjs
|
|
128
|
+
* <DResizeSeparator
|
|
129
|
+
* @axis="vertical"
|
|
130
|
+
* @side="end"
|
|
131
|
+
* @measure={{this.panel}}
|
|
132
|
+
* @label={{i18n "composer.resize"}}
|
|
133
|
+
* @onResize={{this.preview}}
|
|
134
|
+
* @onResizeEnd={{this.commit}}
|
|
135
|
+
* class="my-block__handle"
|
|
136
|
+
* />
|
|
137
|
+
* ```
|
|
138
|
+
*
|
|
139
|
+
* @example
|
|
140
|
+
* Sizes that are not a measurement, so the consumer supplies all three:
|
|
141
|
+
* ```gjs
|
|
142
|
+
* <DResizeSeparator
|
|
143
|
+
* @value={{this.dragOffset}}
|
|
144
|
+
* @min={{0}}
|
|
145
|
+
* @max={{this.maxOffset}}
|
|
146
|
+
* @label={{i18n "composer.resize"}}
|
|
147
|
+
* @onResize={{this.preview}}
|
|
148
|
+
* />
|
|
149
|
+
* ```
|
|
150
|
+
*
|
|
151
|
+
* Attributes pass through, so a consumer keeps its own class alongside this one —
|
|
152
|
+
* the two are merged rather than replaced — and may add its own modifiers.
|
|
153
|
+
*
|
|
154
|
+
* @see {@link dResizeEdge}, the modifier underneath. Use it directly only when the
|
|
155
|
+
* element and its separator semantics are already yours to own.
|
|
156
|
+
* @see The `DResizeHandles` component for a TWO-dimensional box resize, where the separator role
|
|
157
|
+
* does not apply.
|
|
158
|
+
* @see The `dOnResize` modifier to merely OBSERVE a size change. It is not a gesture.
|
|
159
|
+
*/
|
|
160
|
+
export default class DResizeSeparator extends Component<DResizeSeparatorSignature> {
|
|
161
|
+
#private;
|
|
162
|
+
/**
|
|
163
|
+
* The box resolved from `@measure`, written by the modifier that resolves it.
|
|
164
|
+
* Untracked: the size args read it when the gesture asks, and the modifier
|
|
165
|
+
* refreshes the announcement itself once it has one.
|
|
166
|
+
*/
|
|
167
|
+
measuredBox: HTMLElement | null;
|
|
168
|
+
/** The size and bounds as last read, for assistive technology to announce. */
|
|
169
|
+
_announced: {
|
|
170
|
+
now: number | undefined;
|
|
171
|
+
min: number | undefined;
|
|
172
|
+
max: number | undefined;
|
|
173
|
+
} | null;
|
|
174
|
+
constructor(owner: Owner, args: DResizeSeparatorSignature["Args"]);
|
|
175
|
+
get axis(): import("discourse/lib/geometry").Axis;
|
|
176
|
+
/**
|
|
177
|
+
* The size args as the gesture will see them: the consumer's own when it gave
|
|
178
|
+
* any, otherwise measurements of `@measure`.
|
|
179
|
+
*
|
|
180
|
+
* Owning the measuring functions keeps a trap off the public surface: a size
|
|
181
|
+
* given as a plain number is read once and frozen for the modifier's lifetime.
|
|
182
|
+
*/
|
|
183
|
+
get resolvedValue(): Measurement;
|
|
184
|
+
get resolvedMin(): Bound;
|
|
185
|
+
get resolvedMax(): Bound;
|
|
186
|
+
/** A separator's orientation is its own direction, not the axis it moves. */
|
|
187
|
+
get orientation(): "vertical" | "horizontal";
|
|
188
|
+
get cursorClass(): string;
|
|
189
|
+
/**
|
|
190
|
+
* The size to announce, or `undefined` while it is unknown so that the attribute
|
|
191
|
+
* is left off rather than reporting a number nothing measured.
|
|
192
|
+
*/
|
|
193
|
+
get valueNow(): number;
|
|
194
|
+
get valueMin(): number;
|
|
195
|
+
get valueMax(): number;
|
|
196
|
+
/** Re-reads the size. Called on insert, after every report, and by the observer. */
|
|
197
|
+
refresh(): void;
|
|
198
|
+
measureValue(): number;
|
|
199
|
+
measureMin(): number;
|
|
200
|
+
measureMax(): number;
|
|
201
|
+
onResizeStart(): void;
|
|
202
|
+
/**
|
|
203
|
+
* Re-reads the size only for a keyboard gesture.
|
|
204
|
+
*
|
|
205
|
+
* The modifier reports a move and then, on the last one, the commit — both in the
|
|
206
|
+
* same stack. Dirtying tracked state that the template consumes in between opens
|
|
207
|
+
* a runloop, and a consumer callback reached with one already open is invoked
|
|
208
|
+
* directly rather than through the wrapper that routes exceptions to the
|
|
209
|
+
* application error handler, so a consumer that throws on commit has its exception escape as
|
|
210
|
+
* an unhandled error instead. Mid-gesture there is nothing worth announcing
|
|
211
|
+
* anyway: the size is still moving, and the commit re-reads it.
|
|
212
|
+
*
|
|
213
|
+
* @param size - The size the gesture is passing through.
|
|
214
|
+
* @param meta - What produced the report. A held key is one gesture spanning
|
|
215
|
+
* every repeat, so it is the only source whose announcement cannot wait for
|
|
216
|
+
* the commit.
|
|
217
|
+
*/
|
|
218
|
+
onResize(size: number, meta: ResizeReportMeta): void;
|
|
219
|
+
onResizeEnd(size: number): void;
|
|
220
|
+
}
|
|
221
|
+
export {};
|
|
222
|
+
//# sourceMappingURL=d-resize-separator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"d-resize-separator.d.ts","sourceRoot":"","sources":["../../../../discourse/app/ui-kit/d-resize-separator.gts"],"names":[],"mappings":"AAAA,OA+gBO,SAAS,MAAM,oBAAoB,CAAC;AAI3C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAGtC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAIL,KAAK,UAAU,EAChB,MAAM,mCAAmC,CAAC;AAC3C,OAAoB,EAClB,KAAK,gBAAgB,EACtB,MAAM,0CAA0C,CAAC;AAElD;;;;GAIG;AACH,KAAK,WAAW,GAAG,MAAM,GAAG,IAAI,GAAG,CAAC,MAAM,MAAM,GAAG,IAAI,CAAC,CAAC;AAEzD;;;;;;;GAOG;AACH,KAAK,KAAK,GAAG,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,CAAC;AAErC;;;GAGG;AACH,KAAK,aAAa,GACd,WAAW,GACX,CAAC,CAAC,SAAS,EAAE,WAAW,KAAK,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;AAmEjE,UAAU,yBAAyB;IACjC,yEAAyE;IACzE,OAAO,EAAE,cAAc,CAAC;IACxB,IAAI,EAAE;QACJ;;;WAGG;QACH,IAAI,CAAC,EAAE,UAAU,CAAC;QAElB;;;;WAIG;QACH,IAAI,CAAC,EAAE,IAAI,CAAC;QAEZ;;;;;;;;;;WAUG;QACH,OAAO,CAAC,EAAE,aAAa,CAAC;QAExB;;;;;WAKG;QACH,KAAK,CAAC,EAAE,WAAW,CAAC;QAEpB,8EAA8E;QAC9E,GAAG,CAAC,EAAE,KAAK,CAAC;QAEZ,6EAA6E;QAC7E,GAAG,CAAC,EAAE,KAAK,CAAC;QAEZ;;;;WAIG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd,gEAAgE;QAChE,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;QAE3B,kDAAkD;QAClD,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;QAElC;;;;;;;WAOG;QACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;KACtC,CAAC;IACF,MAAM,EAAE;QACN;;;WAGG;QACH,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,SAAS,CAAC,yBAAyB,CAAC;;IAChF;;;;OAIG;IACH,WAAW,EAAE,WAAW,GAAG,IAAI,CAAQ;IAQvC,8EAA8E;IAE9E,UAAU,EAAE;QACV,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;QACxB,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;QACxB,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;KACzB,GAAG,IAAI,CAAQ;gBAEJ,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,yBAAyB,CAAC,MAAM,CAAC;IAOjE,IAAI,IAAI,0CAEP;IAED;;;;;;OAMG;IACH,IAAI,aAAa,IAAI,WAAW,CAE/B;IAED,IAAI,WAAW,IAAI,KAAK,CAEvB;IAED,IAAI,WAAW,IAAI,KAAK,CAEvB;IAED,6EAA6E;IAC7E,IAAI,WAAW,8BAEd;IAED,IAAI,WAAW,WAEd;IAED;;;OAGG;IACH,IAAI,QAAQ,WAaX;IAED,IAAI,QAAQ,WAEX;IAED,IAAI,QAAQ,WAEX;IAED,oFAAoF;IAEpF,OAAO;IAKP,YAAY;IAKZ,UAAU;IAKV,UAAU;IAKV,aAAa;IAMb;;;;;;;;;;;;;;;OAeG;IAEH,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB;IAgB7C,WAAW,CAAC,IAAI,EAAE,MAAM;CA2HzB"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import Component from "@glimmer/component";
|
|
2
|
+
import { type TrustedHTML } from "@ember/template";
|
|
3
|
+
declare const VARIANTS: readonly ["text", "rect", "circle"];
|
|
4
|
+
type SkeletonVariant = (typeof VARIANTS)[number];
|
|
5
|
+
interface DSkeletonSignature {
|
|
6
|
+
Args: {
|
|
7
|
+
count?: number;
|
|
8
|
+
variant?: SkeletonVariant;
|
|
9
|
+
animated?: boolean;
|
|
10
|
+
width?: string;
|
|
11
|
+
height?: string;
|
|
12
|
+
radius?: string;
|
|
13
|
+
size?: string;
|
|
14
|
+
lastLineWidth?: string;
|
|
15
|
+
};
|
|
16
|
+
Element: HTMLDivElement;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Reusable loading placeholder. Renders one or more shimmer items shaped by
|
|
20
|
+
* `@variant` (a text line, a rectangle, or a circle) and sized to reserve the
|
|
21
|
+
* space the real content will occupy, so revealing the content doesn't shift
|
|
22
|
+
* the surrounding layout.
|
|
23
|
+
*
|
|
24
|
+
* A lone `text` bar takes the inherited line box (`1lh`), matching a real
|
|
25
|
+
* one-line element; stacked text lines drop to ink height (`1em`) spaced one
|
|
26
|
+
* line-height apart, so a paragraph reads as separate lines. Either way the
|
|
27
|
+
* sizing follows the surrounding typography, so a skeleton in a given context
|
|
28
|
+
* (e.g. a heading) needs no hard-coded height or gap. `@lastLineWidth` narrows
|
|
29
|
+
* a multi-line block's final line the way a real paragraph's does.
|
|
30
|
+
*
|
|
31
|
+
* The shimmer comes from the shared `.placeholder-animation` class, which only
|
|
32
|
+
* paints under `prefers-reduced-motion: no-preference`. The items therefore
|
|
33
|
+
* keep a static fill underneath (from the scss) so the placeholder still reads
|
|
34
|
+
* when the animation is suppressed (reduced motion, or `@animated={{false}}`).
|
|
35
|
+
*
|
|
36
|
+
* The placeholder is decorative and the wrapper is `aria-hidden`, so assistive
|
|
37
|
+
* technology sees nothing here. Announcing the load is the caller's half of the
|
|
38
|
+
* contract: mark the region whose content is being replaced `aria-busy` while it
|
|
39
|
+
* resolves. Passing `role="status"` to this component announces nothing on its
|
|
40
|
+
* own, because the wrapper stays hidden; override `aria-hidden` through
|
|
41
|
+
* `...attributes` if the placeholder itself has to be exposed.
|
|
42
|
+
*
|
|
43
|
+
* Adjust it through the custom properties. The theming ones —
|
|
44
|
+
* `--d-skeleton-fill`, `--d-skeleton-shimmer`, `--d-skeleton-duration` and
|
|
45
|
+
* `--d-skeleton-radius` — can be set by a class on the placeholder or scoped from
|
|
46
|
+
* any ancestor, so a container can retint everything inside it. The `circle`
|
|
47
|
+
* variant is the one exception: its radius is what makes it a circle, so it is
|
|
48
|
+
* not themeable from outside. The layout ones,
|
|
49
|
+
* `--d-skeleton-display` and `--d-skeleton-gap`, only take effect on the
|
|
50
|
+
* placeholder itself, so a container cannot relay out a nested one by accident.
|
|
51
|
+
* Keep `--d-skeleton-display` a flex value, since the line rhythm comes from
|
|
52
|
+
* `gap`.
|
|
53
|
+
*
|
|
54
|
+
* The consumer's `...attributes` are forwarded to the wrapper, but `style` is the
|
|
55
|
+
* component's own: it carries the dimensions, so anything passed there is
|
|
56
|
+
* discarded. Use a class.
|
|
57
|
+
*/
|
|
58
|
+
export default class DSkeleton extends Component<DSkeletonSignature> {
|
|
59
|
+
#private;
|
|
60
|
+
/**
|
|
61
|
+
* The variant, defaulting to a text line. Stamped on both the wrapper and
|
|
62
|
+
* each item so the scss can key variant-specific defaults off it. An
|
|
63
|
+
* unrecognised value falls back rather than stamping a modifier no rule
|
|
64
|
+
* matches, which would leave an item with none of its variant's sizing.
|
|
65
|
+
*/
|
|
66
|
+
get variant(): SkeletonVariant;
|
|
67
|
+
/**
|
|
68
|
+
* Whether more than one item is stacked, so the scss can treat a stack
|
|
69
|
+
* differently from a lone bar (e.g. stacked text lines drop from a full line
|
|
70
|
+
* box to ink height so they read as separate lines).
|
|
71
|
+
*/
|
|
72
|
+
get multiline(): boolean;
|
|
73
|
+
/** The indices of the placeholder items to render, one per `@count`. */
|
|
74
|
+
get items(): number[];
|
|
75
|
+
/**
|
|
76
|
+
* The shared class applied to every item: the base item class, its variant
|
|
77
|
+
* modifier, and the shimmer class when animated.
|
|
78
|
+
*/
|
|
79
|
+
get itemClass(): string;
|
|
80
|
+
/**
|
|
81
|
+
* The dimensions shared by every item, emitted as inline custom properties
|
|
82
|
+
* (not `width`/`height`/`border-radius` themselves) so the stylesheet owns the
|
|
83
|
+
* property mapping. They sit on the wrapper because they are uniform, and the
|
|
84
|
+
* items inherit them. `@size` is a shorthand that makes a square; explicit
|
|
85
|
+
* `@width`/`@height` win over it. `undefined` when nothing is set, so the
|
|
86
|
+
* variant's scss tokens apply.
|
|
87
|
+
*/
|
|
88
|
+
get dimensionStyle(): TrustedHTML | undefined;
|
|
89
|
+
/** Overrides the width of the final line so it tapers like a real paragraph's. */
|
|
90
|
+
get lastLineStyle(): TrustedHTML | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* The item `@lastLineWidth` applies to, or `-1` when it applies to none. A
|
|
93
|
+
* lone bar is left at full width: it stands in for a whole element, not for
|
|
94
|
+
* the last line of a paragraph.
|
|
95
|
+
*/
|
|
96
|
+
get lastLineIndex(): number;
|
|
97
|
+
}
|
|
98
|
+
export {};
|
|
99
|
+
//# sourceMappingURL=d-skeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"d-skeleton.d.ts","sourceRoot":"","sources":["../../../../discourse/app/ui-kit/d-skeleton.gts"],"names":[],"mappings":"AAAA,OA4NO,SAAS,MAAM,oBAAoB,CAAC;AAE3C,OAAO,EAAE,KAAK,WAAW,EAAa,MAAM,iBAAiB,CAAC;AAS9D,QAAA,MAAM,QAAQ,qCAAsC,CAAC;AAErD,KAAK,eAAe,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;AAyCjD,UAAU,kBAAkB;IAC1B,IAAI,EAAE;QACJ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,eAAe,CAAC;QAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;CACzB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,SAAS,CAAC,kBAAkB,CAAC;;IAClE;;;;;OAKG;IACH,IAAI,OAAO,IAAI,eAAe,CAG7B;IAED;;;;OAIG;IACH,IAAI,SAAS,IAAI,OAAO,CAEvB;IAkBD,wEAAwE;IACxE,IAAI,KAAK,IAAI,MAAM,EAAE,CAEpB;IAED;;;OAGG;IACH,IAAI,SAAS,IAAI,MAAM,CAQtB;IAED;;;;;;;OAOG;IACH,IAAI,cAAc,IAAI,WAAW,GAAG,SAAS,CAQ5C;IAED,kFAAkF;IAClF,IAAI,aAAa,IAAI,WAAW,GAAG,SAAS,CAI3C;IAED;;;;OAIG;IACH,IAAI,aAAa,IAAI,MAAM,CAI1B;CAmCF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"d-category-link.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/ui-kit/helpers/d-category-link.js"],"names":[],"mappings":"AAcA,2DAEC;AAID,0DAEC;AAED;;;;;;;;;;;;;;GAcG;AACH,uDAVI;IAAuB,GAAG;IACH,kBAAkB;IAClB,IAAI;IACJ,UAAU;IACV,YAAY;IACZ,SAAS;IACT,SAAS;IACT,KAAK;IACL,IAAI;CAC9B,OA2CA;AAED,qGAuCC;AAED,6FAEC;AASD,
|
|
1
|
+
{"version":3,"file":"d-category-link.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/ui-kit/helpers/d-category-link.js"],"names":[],"mappings":"AAcA,2DAEC;AAID,0DAEC;AAED;;;;;;;;;;;;;;GAcG;AACH,uDAVI;IAAuB,GAAG;IACH,kBAAkB;IAClB,IAAI;IACJ,UAAU;IACV,YAAY;IACZ,SAAS;IACT,SAAS;IACT,KAAK;IACL,IAAI;CAC9B,OA2CA;AAED,qGAuCC;AAED,6FAEC;AASD,8EAuGC"}
|