@discourse/types 2026.8.0-fb9247e0 → 2026.9.0-eb242063
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/declarations/admin/components/admin-badges-show.d.ts.map +1 -1
- package/declarations/admin/components/admin-config-areas/components.d.ts.map +1 -1
- package/declarations/admin/components/admin-config-areas/upcoming-change-item.d.ts +1 -1
- package/declarations/admin/components/admin-config-areas/upcoming-change-item.d.ts.map +1 -1
- package/declarations/admin/components/admin-plugin-config-page.d.ts +1 -0
- package/declarations/admin/components/admin-plugin-config-page.d.ts.map +1 -1
- package/declarations/admin/components/admin-plugins-list-item.d.ts.map +1 -1
- package/declarations/admin/components/admin-report-stacked-chart.d.ts +1 -1
- package/declarations/admin/components/admin-report-stacked-chart.d.ts.map +1 -1
- package/declarations/admin/components/chart.d.ts +1 -1
- package/declarations/admin/components/dashboard/engagement/headline.d.ts +4 -3
- package/declarations/admin/components/dashboard/engagement/headline.d.ts.map +1 -1
- package/declarations/admin/components/dashboard/report-error-state.d.ts +3 -0
- package/declarations/admin/components/dashboard/report-error-state.d.ts.map +1 -0
- package/declarations/admin/components/dashboard/reports.d.ts.map +1 -1
- package/declarations/admin/components/dashboard/search.d.ts +5 -3
- package/declarations/admin/components/dashboard/search.d.ts.map +1 -1
- package/declarations/admin/components/dashboard/traffic.d.ts +8 -0
- package/declarations/admin/components/dashboard/traffic.d.ts.map +1 -1
- package/declarations/admin/components/edit-category-localizations.d.ts.map +1 -1
- package/declarations/admin/components/edit-category-panel.d.ts +0 -5
- package/declarations/admin/components/edit-category-panel.d.ts.map +1 -1
- package/declarations/admin/components/form-template/form.d.ts.map +1 -1
- package/declarations/admin/components/modal/badge-preview.d.ts.map +1 -1
- package/declarations/admin/components/modal/penalize-user.d.ts +2 -1
- package/declarations/admin/components/modal/penalize-user.d.ts.map +1 -1
- package/declarations/admin/components/redesigned-admin-dashboard.d.ts.map +1 -1
- package/declarations/admin/components/schema-setting/field.d.ts +2 -1
- package/declarations/admin/components/schema-setting/field.d.ts.map +1 -1
- package/declarations/admin/components/schema-setting/types/icon.d.ts +10 -0
- package/declarations/admin/components/schema-setting/types/icon.d.ts.map +1 -0
- package/declarations/admin/components/site-setting.d.ts +12 -1
- package/declarations/admin/components/site-setting.d.ts.map +1 -1
- package/declarations/admin/components/site-settings/icon.d.ts.map +1 -1
- package/declarations/admin/components/site-settings/integer.d.ts +0 -1
- package/declarations/admin/components/site-settings/integer.d.ts.map +1 -1
- package/declarations/admin/components/site-traffic-explorer-breakdown-card.d.ts +21 -0
- package/declarations/admin/components/site-traffic-explorer-breakdown-card.d.ts.map +1 -0
- package/declarations/admin/components/site-traffic-explorer-breakdown-modal.d.ts +10 -0
- package/declarations/admin/components/site-traffic-explorer-breakdown-modal.d.ts.map +1 -0
- package/declarations/admin/components/site-traffic-explorer-breakdown-row.d.ts +3 -0
- package/declarations/admin/components/site-traffic-explorer-breakdown-row.d.ts.map +1 -0
- package/declarations/admin/components/site-traffic-explorer-dimension-label.d.ts +8 -0
- package/declarations/admin/components/site-traffic-explorer-dimension-label.d.ts.map +1 -0
- package/declarations/admin/components/site-traffic-explorer-filter-pills.d.ts +16 -0
- package/declarations/admin/components/site-traffic-explorer-filter-pills.d.ts.map +1 -0
- package/declarations/admin/components/site-traffic-explorer-metric.d.ts +3 -0
- package/declarations/admin/components/site-traffic-explorer-metric.d.ts.map +1 -0
- package/declarations/admin/components/site-traffic-explorer-pageview-count.d.ts +3 -0
- package/declarations/admin/components/site-traffic-explorer-pageview-count.d.ts.map +1 -0
- package/declarations/admin/components/site-traffic-explorer.d.ts +67 -0
- package/declarations/admin/components/site-traffic-explorer.d.ts.map +1 -0
- package/declarations/admin/components/upsert-category/appearance.d.ts +6 -10
- package/declarations/admin/components/upsert-category/appearance.d.ts.map +1 -1
- package/declarations/admin/components/version-checks.d.ts.map +1 -1
- package/declarations/admin/controllers/admin/dashboard/general.d.ts +1 -2
- package/declarations/admin/controllers/admin/dashboard/general.d.ts.map +1 -1
- package/declarations/admin/controllers/admin/dashboard.d.ts +1 -3
- package/declarations/admin/controllers/admin/dashboard.d.ts.map +1 -1
- package/declarations/admin/controllers/admin-customize-themes/show/index.d.ts +2 -0
- package/declarations/admin/controllers/admin-customize-themes/show/index.d.ts.map +1 -1
- package/declarations/admin/controllers/admin-plugins/index.d.ts +0 -3
- package/declarations/admin/controllers/admin-plugins/index.d.ts.map +1 -1
- package/declarations/admin/controllers/admin-plugins.d.ts +2 -2
- package/declarations/admin/controllers/admin-plugins.d.ts.map +1 -1
- package/declarations/admin/controllers/admin-search-logs/index.d.ts +2 -1
- package/declarations/admin/controllers/admin-search-logs/index.d.ts.map +1 -1
- package/declarations/admin/controllers/admin-search-logs/term.d.ts +2 -1
- package/declarations/admin/controllers/admin-search-logs/term.d.ts.map +1 -1
- package/declarations/admin/controllers/admin-site-traffic.d.ts +50 -0
- package/declarations/admin/controllers/admin-site-traffic.d.ts.map +1 -0
- package/declarations/admin/controllers/admin-watched-words/action.d.ts +2 -0
- package/declarations/admin/controllers/admin-watched-words/action.d.ts.map +1 -1
- package/declarations/admin/lib/color-scheme-manager.d.ts +44 -0
- package/declarations/admin/lib/color-scheme-manager.d.ts.map +1 -1
- package/declarations/admin/lib/constants.d.ts.map +1 -1
- package/declarations/admin/lib/dashboard-format.d.ts +1 -0
- package/declarations/admin/lib/dashboard-format.d.ts.map +1 -1
- package/declarations/admin/lib/engagement-headline.d.ts +2 -0
- package/declarations/admin/lib/engagement-headline.d.ts.map +1 -0
- package/declarations/admin/lib/format-pageview-count.d.ts +4 -0
- package/declarations/admin/lib/format-pageview-count.d.ts.map +1 -0
- package/declarations/admin/lib/search-headline.d.ts +2 -0
- package/declarations/admin/lib/search-headline.d.ts.map +1 -0
- package/declarations/admin/models/admin-dashboard.d.ts +1 -1
- package/declarations/admin/models/admin-dashboard.d.ts.map +1 -1
- package/declarations/admin/models/report.d.ts +5 -5
- package/declarations/admin/models/site-setting.d.ts +2 -0
- package/declarations/admin/models/site-setting.d.ts.map +1 -1
- package/declarations/admin/models/staff-action-log.d.ts.map +1 -1
- package/declarations/admin/routes/admin-route-map.d.ts.map +1 -1
- package/declarations/admin/routes/admin-site-traffic.d.ts +52 -0
- package/declarations/admin/routes/admin-site-traffic.d.ts.map +1 -0
- package/declarations/admin/routes/new-category.d.ts.map +1 -1
- package/declarations/admin/services/admin-emojis.d.ts.map +1 -1
- package/declarations/admin/templates/admin-site-traffic-loading.d.ts +3 -0
- package/declarations/admin/templates/admin-site-traffic-loading.d.ts.map +1 -0
- package/declarations/admin/templates/admin-site-traffic.d.ts +3 -0
- package/declarations/admin/templates/admin-site-traffic.d.ts.map +1 -0
- package/declarations/app/adapters/topic-list.d.ts +2 -1
- package/declarations/app/adapters/topic-list.d.ts.map +1 -1
- package/declarations/app/app.d.ts +1 -1
- package/declarations/app/blocks/block-outlet.d.ts +51 -76
- package/declarations/app/blocks/block-outlet.d.ts.map +1 -1
- package/declarations/app/blocks/builtin/block-group.d.ts +10 -4
- package/declarations/app/blocks/builtin/block-group.d.ts.map +1 -1
- package/declarations/app/blocks/builtin/block-head.d.ts +19 -11
- package/declarations/app/blocks/builtin/block-head.d.ts.map +1 -1
- package/declarations/app/blocks/builtin/index.d.ts +30 -0
- package/declarations/app/blocks/builtin/index.d.ts.map +1 -1
- package/declarations/app/blocks/conditions/condition.d.ts +71 -52
- package/declarations/app/blocks/conditions/condition.d.ts.map +1 -1
- package/declarations/app/blocks/conditions/decorator.d.ts +29 -20
- package/declarations/app/blocks/conditions/decorator.d.ts.map +1 -1
- package/declarations/app/blocks/conditions/index.d.ts +2 -0
- package/declarations/app/blocks/conditions/index.d.ts.map +1 -1
- package/declarations/app/blocks/conditions/outlet-arg.d.ts +17 -36
- package/declarations/app/blocks/conditions/outlet-arg.d.ts.map +1 -1
- package/declarations/app/blocks/conditions/route.d.ts +19 -21
- package/declarations/app/blocks/conditions/route.d.ts.map +1 -1
- package/declarations/app/blocks/conditions/setting.d.ts +21 -28
- package/declarations/app/blocks/conditions/setting.d.ts.map +1 -1
- package/declarations/app/blocks/conditions/user.d.ts +23 -14
- package/declarations/app/blocks/conditions/user.d.ts.map +1 -1
- package/declarations/app/blocks/conditions/viewport.d.ts +17 -18
- package/declarations/app/blocks/conditions/viewport.d.ts.map +1 -1
- package/declarations/app/blocks/index.d.ts +7 -0
- package/declarations/app/blocks/index.d.ts.map +1 -1
- package/declarations/app/blocks/types.d.ts +153 -0
- package/declarations/app/blocks/types.d.ts.map +1 -0
- package/declarations/app/components/a11y/live-regions.d.ts +21 -0
- package/declarations/app/components/a11y/live-regions.d.ts.map +1 -1
- package/declarations/app/components/about-page-extra-groups.d.ts.map +1 -1
- package/declarations/app/components/ace-editor.d.ts +3 -0
- package/declarations/app/components/ace-editor.d.ts.map +1 -1
- package/declarations/app/components/admin-onboarding/banner.d.ts +8 -1
- package/declarations/app/components/admin-onboarding/banner.d.ts.map +1 -1
- package/declarations/app/components/admin-onboarding/step.d.ts +2 -2
- package/declarations/app/components/admin-onboarding/step.d.ts.map +1 -1
- package/declarations/app/components/advanced-mode-toggle.d.ts +6 -2
- package/declarations/app/components/advanced-mode-toggle.d.ts.map +1 -1
- package/declarations/app/components/bookmark-icon.d.ts +1 -1
- package/declarations/app/components/bookmark-menu.d.ts +1 -1
- package/declarations/app/components/bulk-select-topics-dropdown.d.ts +1 -0
- package/declarations/app/components/bulk-select-topics-dropdown.d.ts.map +1 -1
- package/declarations/app/components/categories-boxes.d.ts +2 -0
- package/declarations/app/components/categories-boxes.d.ts.map +1 -1
- package/declarations/app/components/category-list-item.d.ts +4 -0
- package/declarations/app/components/category-list-item.d.ts.map +1 -1
- package/declarations/app/components/code-login-form.d.ts +1 -0
- package/declarations/app/components/code-login-form.d.ts.map +1 -1
- package/declarations/app/components/composer-action-title.d.ts +0 -8
- package/declarations/app/components/composer-action-title.d.ts.map +1 -1
- package/declarations/app/components/{composer-actions-new.d.ts → composer-actions.d.ts} +1 -1
- package/declarations/app/components/composer-actions.d.ts.map +1 -0
- package/declarations/app/components/composer-body.d.ts +1 -1
- package/declarations/app/components/composer-body.d.ts.map +1 -1
- package/declarations/app/components/composer-container.d.ts +4 -2
- package/declarations/app/components/composer-container.d.ts.map +1 -1
- package/declarations/app/components/composer-editor.d.ts +3 -0
- package/declarations/app/components/composer-editor.d.ts.map +1 -1
- package/declarations/app/components/composer-messages.d.ts.map +1 -1
- package/declarations/app/components/composer-toggles.d.ts +1 -0
- package/declarations/app/components/composer-toggles.d.ts.map +1 -1
- package/declarations/app/components/create-topic-button.d.ts +5 -0
- package/declarations/app/components/create-topic-button.d.ts.map +1 -1
- package/declarations/app/components/design-wizard/colors-section.d.ts +3 -0
- package/declarations/app/components/design-wizard/colors-section.d.ts.map +1 -0
- package/declarations/app/components/design-wizard/controls.d.ts +23 -0
- package/declarations/app/components/design-wizard/controls.d.ts.map +1 -0
- package/declarations/app/components/design-wizard/fonts-section.d.ts +9 -0
- package/declarations/app/components/design-wizard/fonts-section.d.ts.map +1 -0
- package/declarations/app/components/design-wizard/homepage-section.d.ts +3 -0
- package/declarations/app/components/design-wizard/homepage-section.d.ts.map +1 -0
- package/declarations/app/components/design-wizard/section.d.ts +3 -0
- package/declarations/app/components/design-wizard/section.d.ts.map +1 -0
- package/declarations/app/components/design-wizard/theme-section.d.ts +3 -0
- package/declarations/app/components/design-wizard/theme-section.d.ts.map +1 -0
- package/declarations/app/components/design-wizard-panel.d.ts +9 -0
- package/declarations/app/components/design-wizard-panel.d.ts.map +1 -0
- package/declarations/app/components/docked-composer.d.ts +2 -4
- package/declarations/app/components/docked-composer.d.ts.map +1 -1
- package/declarations/app/components/embed-mode-composer.d.ts.map +1 -1
- package/declarations/app/components/form-template-field/composer.d.ts +8 -1
- package/declarations/app/components/form-template-field/composer.d.ts.map +1 -1
- package/declarations/app/components/global-notice.d.ts.map +1 -1
- package/declarations/app/components/group-flair-inputs.d.ts +0 -1
- package/declarations/app/components/group-flair-inputs.d.ts.map +1 -1
- package/declarations/app/components/header/icons.d.ts.map +1 -1
- package/declarations/app/components/header/topic/info.d.ts.map +1 -1
- package/declarations/app/components/invite-panel.d.ts.map +1 -1
- package/declarations/app/components/language-switcher.d.ts.map +1 -1
- package/declarations/app/components/local-login-form.d.ts +1 -0
- package/declarations/app/components/local-login-form.d.ts.map +1 -1
- package/declarations/app/components/modal/bookmark.d.ts.map +1 -1
- package/declarations/app/components/modal/bulk-topic-actions.d.ts.map +1 -1
- package/declarations/app/components/modal/content-language-preferences.d.ts +30 -0
- package/declarations/app/components/modal/content-language-preferences.d.ts.map +1 -0
- package/declarations/app/components/modal/create-invite-with-roles.d.ts +11 -3
- package/declarations/app/components/modal/create-invite-with-roles.d.ts.map +1 -1
- package/declarations/app/components/modal/create-invite.d.ts.map +1 -1
- package/declarations/app/components/modal/flag.d.ts +2 -2
- package/declarations/app/components/modal/history.d.ts +1 -1
- package/declarations/app/components/modal/keyboard-shortcuts-help.d.ts.map +1 -1
- package/declarations/app/components/modal/nested-activity-log/item.d.ts +2 -1
- package/declarations/app/components/modal/nested-activity-log/item.d.ts.map +1 -1
- package/declarations/app/components/modal/nested-activity-log.d.ts +20 -1
- package/declarations/app/components/modal/nested-activity-log.d.ts.map +1 -1
- package/declarations/app/components/modal/sidebar-section-form.d.ts +53 -19
- package/declarations/app/components/modal/sidebar-section-form.d.ts.map +1 -1
- package/declarations/app/components/nested.d.ts +1 -0
- package/declarations/app/components/nested.d.ts.map +1 -1
- package/declarations/app/components/parent-category-row.d.ts +1 -0
- package/declarations/app/components/parent-category-row.d.ts.map +1 -1
- package/declarations/app/components/plugin-outlet.d.ts +11 -1
- package/declarations/app/components/plugin-outlet.d.ts.map +1 -1
- package/declarations/app/components/post/menu/liked-users-list.d.ts +2 -13
- package/declarations/app/components/post/menu/liked-users-list.d.ts.map +1 -1
- package/declarations/app/components/post/menu/liked-users-menu.d.ts.map +1 -1
- package/declarations/app/components/post-stream.d.ts +2 -5
- package/declarations/app/components/post-stream.d.ts.map +1 -1
- package/declarations/app/components/post.d.ts +1 -1
- package/declarations/app/components/post.d.ts.map +1 -1
- package/declarations/app/components/reviewable/index.d.ts +2 -5
- package/declarations/app/components/reviewable/index.d.ts.map +1 -1
- package/declarations/app/components/reviewable/insights.d.ts.map +1 -1
- package/declarations/app/components/reviewable/item.d.ts +10 -12
- package/declarations/app/components/reviewable/item.d.ts.map +1 -1
- package/declarations/app/components/reviewable/timeline.d.ts +1 -7
- package/declarations/app/components/reviewable/timeline.d.ts.map +1 -1
- package/declarations/app/components/reviewable/user.d.ts +3 -0
- package/declarations/app/components/reviewable/user.d.ts.map +1 -1
- package/declarations/app/components/reviewable-bundled-action.d.ts +1 -1
- package/declarations/app/components/reviewable-bundled-action.d.ts.map +1 -1
- package/declarations/app/components/setting-definition-field.d.ts.map +1 -1
- package/declarations/app/components/setting-field/category.d.ts +7 -0
- package/declarations/app/components/setting-field/category.d.ts.map +1 -0
- package/declarations/app/components/setting-field/enum.d.ts +5 -0
- package/declarations/app/components/setting-field/enum.d.ts.map +1 -1
- package/declarations/app/components/setting-field/group.d.ts +9 -0
- package/declarations/app/components/setting-field/group.d.ts.map +1 -0
- package/declarations/app/components/setting-field/icon.d.ts +3 -0
- package/declarations/app/components/setting-field/icon.d.ts.map +1 -0
- package/declarations/app/components/setting-field/integer.d.ts +1 -0
- package/declarations/app/components/setting-field/integer.d.ts.map +1 -1
- package/declarations/app/components/setting-field/locale-enum.d.ts +5 -0
- package/declarations/app/components/setting-field/locale-enum.d.ts.map +1 -0
- package/declarations/app/components/setting-field/tag-group-list.d.ts +7 -0
- package/declarations/app/components/setting-field/tag-group-list.d.ts.map +1 -0
- package/declarations/app/components/setting-field/tag-list.d.ts +7 -0
- package/declarations/app/components/setting-field/tag-list.d.ts.map +1 -0
- package/declarations/app/components/sidebar/anonymous/categories-section.d.ts +2 -0
- package/declarations/app/components/sidebar/anonymous/categories-section.d.ts.map +1 -1
- package/declarations/app/components/sidebar/anonymous/sections.d.ts +2 -0
- package/declarations/app/components/sidebar/anonymous/sections.d.ts.map +1 -1
- package/declarations/app/components/sidebar/anonymous/tags-section.d.ts +2 -0
- package/declarations/app/components/sidebar/anonymous/tags-section.d.ts.map +1 -1
- package/declarations/app/components/sidebar/api-section.d.ts +6 -2
- package/declarations/app/components/sidebar/api-section.d.ts.map +1 -1
- package/declarations/app/components/sidebar/api-sections.d.ts.map +1 -1
- package/declarations/app/components/sidebar/common/all-categories-section-link.d.ts +6 -2
- package/declarations/app/components/sidebar/common/all-categories-section-link.d.ts.map +1 -1
- package/declarations/app/components/sidebar/common/all-tags-section-link.d.ts +6 -2
- package/declarations/app/components/sidebar/common/all-tags-section-link.d.ts.map +1 -1
- package/declarations/app/components/sidebar/common/custom-section.d.ts +1 -0
- package/declarations/app/components/sidebar/common/custom-section.d.ts.map +1 -1
- package/declarations/app/components/sidebar/common/custom-sections.d.ts.map +1 -1
- package/declarations/app/components/sidebar/more-section-link.d.ts.map +1 -1
- package/declarations/app/components/sidebar/more-section-links.d.ts +2 -0
- package/declarations/app/components/sidebar/more-section-links.d.ts.map +1 -1
- package/declarations/app/components/sidebar/more-section-trigger.d.ts.map +1 -1
- package/declarations/app/components/sidebar/section-form-link.d.ts +0 -2
- package/declarations/app/components/sidebar/section-form-link.d.ts.map +1 -1
- package/declarations/app/components/sidebar/section-link.d.ts.map +1 -1
- package/declarations/app/components/sidebar/section.d.ts +57 -1
- package/declarations/app/components/sidebar/section.d.ts.map +1 -1
- package/declarations/app/components/sidebar/sections.d.ts.map +1 -1
- package/declarations/app/components/sidebar/user/categories-section.d.ts +2 -0
- package/declarations/app/components/sidebar/user/categories-section.d.ts.map +1 -1
- package/declarations/app/components/sidebar/user/sections.d.ts +38 -0
- package/declarations/app/components/sidebar/user/sections.d.ts.map +1 -1
- package/declarations/app/components/sidebar/user/tags-section.d.ts +2 -0
- package/declarations/app/components/sidebar/user/tags-section.d.ts.map +1 -1
- package/declarations/app/components/sidebar.d.ts +12 -0
- package/declarations/app/components/sidebar.d.ts.map +1 -1
- package/declarations/app/components/subcategories-with-featured-topics.d.ts +1 -0
- package/declarations/app/components/subcategories-with-featured-topics.d.ts.map +1 -1
- package/declarations/app/components/tag-info.d.ts.map +1 -1
- package/declarations/app/components/tag-settings.d.ts.map +1 -1
- package/declarations/app/components/topic-bookmarks-menu.d.ts +1 -1
- package/declarations/app/components/topic-category.d.ts.map +1 -1
- package/declarations/app/components/topic-content-language-preferences.d.ts +7 -0
- package/declarations/app/components/topic-content-language-preferences.d.ts.map +1 -0
- package/declarations/app/components/topic-dismiss-buttons.d.ts.map +1 -1
- package/declarations/app/components/topic-drafts-dropdown.d.ts.map +1 -1
- package/declarations/app/components/topic-footer-buttons.d.ts +0 -2
- package/declarations/app/components/topic-footer-buttons.d.ts.map +1 -1
- package/declarations/app/components/topic-list/header/sortable-column.d.ts +1 -0
- package/declarations/app/components/topic-list/header/sortable-column.d.ts.map +1 -1
- package/declarations/app/components/topic-navigation.d.ts.map +1 -1
- package/declarations/app/components/topic-post-badges.d.ts.map +1 -1
- package/declarations/app/components/topic-timeline/container.d.ts.map +1 -1
- package/declarations/app/components/topic-timeline/scroller.d.ts.map +1 -1
- package/declarations/app/components/user/users-popup.d.ts +7 -0
- package/declarations/app/components/user/users-popup.d.ts.map +1 -1
- package/declarations/app/components/user-menu/bookmarks-list.d.ts.map +1 -1
- package/declarations/app/components/user-menu/items-list.d.ts +1 -1
- package/declarations/app/components/user-menu/items-list.d.ts.map +1 -1
- package/declarations/app/components/user-menu/likes-notifications-list.d.ts.map +1 -1
- package/declarations/app/components/user-menu/messages-list.d.ts.map +1 -1
- package/declarations/app/components/user-menu/notifications-list.d.ts.map +1 -1
- package/declarations/app/components/user-menu/other-notifications-list.d.ts.map +1 -1
- package/declarations/app/components/user-menu/replies-notifications-list.d.ts.map +1 -1
- package/declarations/app/components/welcome-banner.d.ts.map +1 -1
- package/declarations/app/controllers/exception.d.ts +5 -6
- package/declarations/app/controllers/exception.d.ts.map +1 -1
- package/declarations/app/controllers/full-page-search.d.ts.map +1 -1
- package/declarations/app/controllers/login.d.ts.map +1 -1
- package/declarations/app/controllers/nested.d.ts.map +1 -1
- package/declarations/app/controllers/preferences/interface.d.ts +7 -0
- package/declarations/app/controllers/preferences/interface.d.ts.map +1 -1
- package/declarations/app/controllers/topic.d.ts.map +1 -1
- package/declarations/app/deprecation-workflow.d.ts.map +1 -1
- package/declarations/app/form-kit/components/fk/control/checkbox.d.ts.map +1 -1
- package/declarations/app/form-kit/components/fk/control/icon.d.ts.map +1 -1
- package/declarations/app/form-kit/components/fk/control/input.d.ts +2 -0
- package/declarations/app/form-kit/components/fk/control/input.d.ts.map +1 -1
- package/declarations/app/form-kit/components/fk/control/password.d.ts.map +1 -1
- package/declarations/app/form-kit/components/fk/control/tag-chooser.d.ts.map +1 -1
- package/declarations/app/form-kit/components/fk/field-data.d.ts +15 -4
- package/declarations/app/form-kit/components/fk/field-data.d.ts.map +1 -1
- package/declarations/app/form-kit/components/fk/form.d.ts.map +1 -1
- package/declarations/app/form-kit/lib/constants.d.ts +0 -1
- package/declarations/app/form-kit/lib/constants.d.ts.map +1 -1
- package/declarations/app/form-kit/lib/validator.d.ts.map +1 -1
- package/declarations/app/helpers/category-list-subcategories.d.ts +30 -0
- package/declarations/app/helpers/category-list-subcategories.d.ts.map +1 -0
- package/declarations/app/initializers/dev-tools.d.ts +10 -3
- package/declarations/app/initializers/dev-tools.d.ts.map +1 -1
- package/declarations/app/initializers/freeze-block-registry.d.ts +21 -6
- package/declarations/app/initializers/freeze-block-registry.d.ts.map +1 -1
- package/declarations/app/instance-initializers/signup-cta.d.ts.map +1 -1
- package/declarations/app/instance-initializers/topic-footer-buttons.d.ts.map +1 -1
- package/declarations/app/instance-initializers/verify-session-after-restore.d.ts +7 -0
- package/declarations/app/instance-initializers/verify-session-after-restore.d.ts.map +1 -0
- package/declarations/app/instance-initializers/video-placeholder.d.ts.map +1 -1
- package/declarations/app/lib/-internals/drag-and-drop/consumer-may-throw.d.ts +17 -0
- package/declarations/app/lib/-internals/drag-and-drop/consumer-may-throw.d.ts.map +1 -0
- package/declarations/app/lib/-internals/drag-and-drop/drag-dwell.d.ts +64 -0
- package/declarations/app/lib/-internals/drag-and-drop/drag-dwell.d.ts.map +1 -0
- package/declarations/app/lib/-internals/drag-and-drop/drop-target-kernel.d.ts +145 -0
- package/declarations/app/lib/-internals/drag-and-drop/drop-target-kernel.d.ts.map +1 -0
- package/declarations/app/lib/-internals/drag-and-drop/external-vocabulary.d.ts +63 -0
- package/declarations/app/lib/-internals/drag-and-drop/external-vocabulary.d.ts.map +1 -0
- package/declarations/app/lib/-internals/drag-and-drop/native-drag-adoption.d.ts +60 -0
- package/declarations/app/lib/-internals/drag-and-drop/native-drag-adoption.d.ts.map +1 -0
- package/declarations/app/lib/-internals/drag-and-drop/vocabulary.d.ts +81 -0
- package/declarations/app/lib/-internals/drag-and-drop/vocabulary.d.ts.map +1 -0
- package/declarations/app/lib/ajax-error.d.ts +1 -0
- package/declarations/app/lib/ajax-error.d.ts.map +1 -1
- package/declarations/app/lib/api.d.ts +1 -0
- package/declarations/app/lib/api.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/components/block-layout-wrapper.d.ts +14 -78
- package/declarations/app/lib/blocks/-internals/components/block-layout-wrapper.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/components/block-outlet-inline-error.d.ts +10 -7
- package/declarations/app/lib/blocks/-internals/components/block-outlet-inline-error.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/components/block-outlet-root-container.d.ts +21 -12
- package/declarations/app/lib/blocks/-internals/components/block-outlet-root-container.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/css.d.ts +21 -24
- package/declarations/app/lib/blocks/-internals/css.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/debug-hooks.d.ts +193 -138
- package/declarations/app/lib/blocks/-internals/debug-hooks.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/decorator.d.ts +43 -216
- package/declarations/app/lib/blocks/-internals/decorator.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/entry-processing.d.ts +61 -129
- package/declarations/app/lib/blocks/-internals/entry-processing.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/error.d.ts +61 -69
- package/declarations/app/lib/blocks/-internals/error.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/matching/condition-evaluator.d.ts +18 -12
- package/declarations/app/lib/blocks/-internals/matching/condition-evaluator.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/matching/outlet-matcher.d.ts +64 -37
- package/declarations/app/lib/blocks/-internals/matching/outlet-matcher.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/matching/page-definitions.d.ts +105 -106
- package/declarations/app/lib/blocks/-internals/matching/page-definitions.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/matching/url-matcher.d.ts +19 -11
- package/declarations/app/lib/blocks/-internals/matching/url-matcher.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/matching/value-matcher.d.ts +42 -34
- package/declarations/app/lib/blocks/-internals/matching/value-matcher.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/patterns.d.ts +85 -83
- package/declarations/app/lib/blocks/-internals/patterns.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/registry/block.d.ts +47 -85
- package/declarations/app/lib/blocks/-internals/registry/block.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/registry/condition.d.ts +26 -26
- package/declarations/app/lib/blocks/-internals/registry/condition.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/registry/helpers.d.ts +54 -47
- package/declarations/app/lib/blocks/-internals/registry/helpers.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/registry/outlet.d.ts +30 -25
- package/declarations/app/lib/blocks/-internals/registry/outlet.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/types.d.ts +58 -0
- package/declarations/app/lib/blocks/-internals/types.d.ts.map +1 -0
- package/declarations/app/lib/blocks/-internals/utils.d.ts +59 -86
- package/declarations/app/lib/blocks/-internals/utils.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/validation/args.d.ts +178 -224
- package/declarations/app/lib/blocks/-internals/validation/args.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/validation/block-args.d.ts +32 -23
- package/declarations/app/lib/blocks/-internals/validation/block-args.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/validation/block-decorator.d.ts +23 -17
- package/declarations/app/lib/blocks/-internals/validation/block-decorator.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/validation/condition-args.d.ts +26 -16
- package/declarations/app/lib/blocks/-internals/validation/condition-args.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/validation/conditions.d.ts +23 -18
- package/declarations/app/lib/blocks/-internals/validation/conditions.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/validation/constraints.d.ts +31 -17
- package/declarations/app/lib/blocks/-internals/validation/constraints.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/validation/layout.d.ts +77 -85
- package/declarations/app/lib/blocks/-internals/validation/layout.d.ts.map +1 -1
- package/declarations/app/lib/blocks/index.d.ts +127 -2
- package/declarations/app/lib/blocks/index.d.ts.map +1 -1
- package/declarations/app/lib/codeblock-buttons.d.ts.map +1 -1
- package/declarations/app/lib/composer/actions-registry.d.ts +4 -0
- package/declarations/app/lib/composer/actions-registry.d.ts.map +1 -0
- package/declarations/app/lib/composer/composer-position.d.ts.map +1 -1
- package/declarations/app/lib/composer/rich-editor-extensions.d.ts +208 -139
- package/declarations/app/lib/composer/rich-editor-extensions.d.ts.map +1 -1
- package/declarations/app/lib/composer/text-manipulation.d.ts +172 -251
- package/declarations/app/lib/composer/text-manipulation.d.ts.map +1 -1
- package/declarations/app/lib/composer/toolbar.d.ts +161 -80
- package/declarations/app/lib/composer/toolbar.d.ts.map +1 -1
- package/declarations/app/lib/constants.d.ts +2 -0
- package/declarations/app/lib/constants.d.ts.map +1 -1
- package/declarations/app/lib/content-localization.d.ts +18 -0
- package/declarations/app/lib/content-localization.d.ts.map +1 -0
- package/declarations/app/lib/customization-source.d.ts +26 -0
- package/declarations/app/lib/customization-source.d.ts.map +1 -0
- package/declarations/app/lib/dag.d.ts +73 -79
- package/declarations/app/lib/dag.d.ts.map +1 -1
- package/declarations/app/lib/deprecated.d.ts +21 -3
- package/declarations/app/lib/deprecated.d.ts.map +1 -1
- package/declarations/app/lib/design-wizard-preview.d.ts +52 -0
- package/declarations/app/lib/design-wizard-preview.d.ts.map +1 -0
- package/declarations/app/lib/download-blob.d.ts +3 -0
- package/declarations/app/lib/download-blob.d.ts.map +1 -0
- package/declarations/app/lib/download-strategy.d.ts +2 -0
- package/declarations/app/lib/download-strategy.d.ts.map +1 -0
- package/declarations/app/lib/element-class-lease.d.ts +37 -0
- package/declarations/app/lib/element-class-lease.d.ts.map +1 -0
- package/declarations/app/lib/filter-mode.d.ts +9 -0
- package/declarations/app/lib/filter-mode.d.ts.map +1 -1
- package/declarations/app/lib/geometry.d.ts +11 -0
- package/declarations/app/lib/geometry.d.ts.map +1 -0
- package/declarations/app/lib/helpers.d.ts +43 -9
- package/declarations/app/lib/helpers.d.ts.map +1 -1
- package/declarations/app/lib/highlight-syntax.d.ts.map +1 -1
- package/declarations/app/lib/icon-library.d.ts +7 -3
- package/declarations/app/lib/icon-library.d.ts.map +1 -1
- package/declarations/app/lib/later.d.ts +3 -1
- package/declarations/app/lib/later.d.ts.map +1 -1
- package/declarations/app/lib/locale-normalizer.d.ts +11 -0
- package/declarations/app/lib/locale-normalizer.d.ts.map +1 -0
- package/declarations/app/lib/plugin-api.d.ts +36 -5
- package/declarations/app/lib/plugin-api.d.ts.map +1 -1
- package/declarations/app/lib/registry/block-outlets.d.ts +2 -2
- package/declarations/app/lib/registry/block-outlets.d.ts.map +1 -1
- package/declarations/app/lib/registry/transformers.d.ts.map +1 -1
- package/declarations/app/lib/report-client-error.d.ts +10 -0
- package/declarations/app/lib/report-client-error.d.ts.map +1 -0
- package/declarations/app/lib/resize-measurements.d.ts +43 -0
- package/declarations/app/lib/resize-measurements.d.ts.map +1 -0
- package/declarations/app/lib/reviewable-registry.d.ts +12 -0
- package/declarations/app/lib/reviewable-registry.d.ts.map +1 -0
- package/declarations/app/lib/search.d.ts.map +1 -1
- package/declarations/app/lib/setting-field-registry.d.ts.map +1 -1
- package/declarations/app/lib/sidebar/active-link.d.ts +25 -0
- package/declarations/app/lib/sidebar/active-link.d.ts.map +1 -0
- package/declarations/app/lib/sidebar/base-custom-sidebar-section.d.ts +50 -0
- package/declarations/app/lib/sidebar/base-custom-sidebar-section.d.ts.map +1 -1
- package/declarations/app/lib/sidebar/custom-sections.d.ts.map +1 -1
- package/declarations/app/lib/sidebar/link-drop.d.ts +37 -0
- package/declarations/app/lib/sidebar/link-drop.d.ts.map +1 -0
- package/declarations/app/lib/sidebar/section.d.ts +12 -0
- package/declarations/app/lib/sidebar/section.d.ts.map +1 -1
- package/declarations/app/lib/sidebar/user/tags-section/tag-section-link.d.ts +1 -1
- package/declarations/app/lib/svg-sprite-loader.d.ts +31 -0
- package/declarations/app/lib/svg-sprite-loader.d.ts.map +1 -1
- package/declarations/app/lib/text.d.ts +1 -0
- package/declarations/app/lib/text.d.ts.map +1 -1
- package/declarations/app/lib/textarea-text-manipulation.d.ts +67 -81
- package/declarations/app/lib/textarea-text-manipulation.d.ts.map +1 -1
- package/declarations/app/lib/url.d.ts +0 -1
- package/declarations/app/lib/url.d.ts.map +1 -1
- package/declarations/app/models/category.d.ts.map +1 -1
- package/declarations/app/models/composer.d.ts.map +1 -1
- package/declarations/app/models/post.d.ts +1 -0
- package/declarations/app/models/post.d.ts.map +1 -1
- package/declarations/app/models/reviewable-history.d.ts +2 -4
- package/declarations/app/models/reviewable-history.d.ts.map +1 -1
- package/declarations/app/models/reviewable.d.ts +40 -0
- package/declarations/app/models/reviewable.d.ts.map +1 -1
- package/declarations/app/models/site.d.ts +2 -0
- package/declarations/app/models/site.d.ts.map +1 -1
- package/declarations/app/models/tag-group.d.ts +1 -1
- package/declarations/app/models/topic-tracking-state.d.ts.map +1 -1
- package/declarations/app/models/user.d.ts +0 -1
- package/declarations/app/models/user.d.ts.map +1 -1
- package/declarations/app/resolver.d.ts +1 -1
- package/declarations/app/routes/application.d.ts +1 -0
- package/declarations/app/routes/application.d.ts.map +1 -1
- package/declarations/app/routes/build-category-route.d.ts.map +1 -1
- package/declarations/app/routes/login.d.ts.map +1 -1
- package/declarations/app/routes/signup.d.ts.map +1 -1
- package/declarations/app/routes/user-activity-stream.d.ts +3 -3
- package/declarations/app/routes/user-activity-stream.d.ts.map +1 -1
- package/declarations/app/routes/wizard.d.ts +1 -0
- package/declarations/app/routes/wizard.d.ts.map +1 -1
- package/declarations/app/services/a11y.d.ts.map +1 -1
- package/declarations/app/services/blocks.d.ts +41 -49
- package/declarations/app/services/blocks.d.ts.map +1 -1
- package/declarations/app/services/composer.d.ts +1 -1
- package/declarations/app/services/deprecation-warning-handler.d.ts.map +1 -1
- package/declarations/app/services/design-wizard.d.ts +46 -0
- package/declarations/app/services/design-wizard.d.ts.map +1 -0
- package/declarations/app/services/discovery.d.ts +9 -0
- package/declarations/app/services/discovery.d.ts.map +1 -1
- package/declarations/app/services/drag-and-drop.d.ts +52 -0
- package/declarations/app/services/drag-and-drop.d.ts.map +1 -0
- package/declarations/app/services/exception.d.ts +15 -0
- package/declarations/app/services/exception.d.ts.map +1 -0
- package/declarations/app/services/human-activity-tracker.d.ts +1 -1
- package/declarations/app/services/human-activity-tracker.d.ts.map +1 -1
- package/declarations/app/services/loading-slider.d.ts +3 -1
- package/declarations/app/services/loading-slider.d.ts.map +1 -1
- package/declarations/app/services/login.d.ts +3 -0
- package/declarations/app/services/login.d.ts.map +1 -1
- package/declarations/app/services/presence.d.ts +1 -1
- package/declarations/app/services/presence.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/block-debug/block-info.d.ts +30 -18
- package/declarations/app/static/dev-tools/block-debug/block-info.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/block-debug/button.d.ts +7 -8
- package/declarations/app/static/dev-tools/block-debug/button.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/block-debug/conditions-tree.d.ts +31 -9
- package/declarations/app/static/dev-tools/block-debug/conditions-tree.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/block-debug/debug-logger.d.ts +86 -76
- package/declarations/app/static/dev-tools/block-debug/debug-logger.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/block-debug/ghost-block.d.ts +35 -84
- package/declarations/app/static/dev-tools/block-debug/ghost-block.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/block-debug/outlet-info.d.ts +21 -50
- package/declarations/app/static/dev-tools/block-debug/outlet-info.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/block-debug/patch.d.ts +1 -1
- package/declarations/app/static/dev-tools/block-debug/patch.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/entrypoint.d.ts +2 -1
- package/declarations/app/static/dev-tools/entrypoint.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/toolbar.d.ts +11 -7
- package/declarations/app/static/dev-tools/toolbar.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/tools.d.ts +15 -0
- package/declarations/app/static/dev-tools/tools.d.ts.map +1 -0
- package/declarations/app/static/prosemirror/components/prosemirror-editor.d.ts +105 -128
- package/declarations/app/static/prosemirror/components/prosemirror-editor.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/core/keymap.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/code-block.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/code.d.ts +2 -2
- package/declarations/app/static/prosemirror/extensions/code.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/hard-break.d.ts +2 -2
- package/declarations/app/static/prosemirror/extensions/hard-break.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/html-inline.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/link.d.ts +2 -2
- package/declarations/app/static/prosemirror/extensions/link.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/mention.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/onebox.d.ts +1 -1
- package/declarations/app/static/prosemirror/extensions/override-drag-ghost.d.ts +4 -6
- package/declarations/app/static/prosemirror/extensions/override-drag-ghost.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/placeholder.d.ts +3 -4
- package/declarations/app/static/prosemirror/extensions/placeholder.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/quote.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/register-default.d.ts +3 -4
- package/declarations/app/static/prosemirror/extensions/register-default.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/strikethrough.d.ts +2 -2
- package/declarations/app/static/prosemirror/extensions/strikethrough.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/strong.d.ts +4 -0
- package/declarations/app/static/prosemirror/extensions/strong.d.ts.map +1 -0
- package/declarations/app/static/prosemirror/extensions/trailing-inline-space.d.ts +2 -2
- package/declarations/app/static/prosemirror/extensions/trailing-inline-space.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/trailing-paragraph.d.ts +2 -2
- package/declarations/app/static/prosemirror/extensions/trailing-paragraph.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/underline.d.ts +2 -2
- package/declarations/app/static/prosemirror/extensions/underline.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/word-paste.d.ts +0 -1
- package/declarations/app/static/prosemirror/extensions/word-paste.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/lib/text-manipulation.d.ts +48 -59
- package/declarations/app/static/prosemirror/lib/text-manipulation.d.ts.map +1 -1
- package/declarations/app/templates/review/show.d.ts +2 -5
- package/declarations/app/templates/review/show.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-access-control-field.d.ts +11 -0
- package/declarations/app/ui-kit/d-access-control-field.d.ts.map +1 -0
- package/declarations/app/ui-kit/d-access-control.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-async-content.d.ts +10 -0
- package/declarations/app/ui-kit/d-async-content.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-button.d.ts +2 -2
- package/declarations/app/ui-kit/d-button.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-combo-button.d.ts +74 -2
- package/declarations/app/ui-kit/d-combo-button.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-copy-button.d.ts +17 -8
- package/declarations/app/ui-kit/d-copy-button.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-date-input.d.ts +1 -1
- package/declarations/app/ui-kit/d-date-picker.d.ts +1 -1
- package/declarations/app/ui-kit/d-editor.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-filter-controls.d.ts +18 -1
- package/declarations/app/ui-kit/d-filter-controls.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-filter-input.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-icon-grid-picker/content.d.ts +62 -17
- package/declarations/app/ui-kit/d-icon-grid-picker/content.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-icon-grid-picker/index.d.ts +6 -8
- package/declarations/app/ui-kit/d-icon-grid-picker/index.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-load-more.d.ts +78 -19
- package/declarations/app/ui-kit/d-load-more.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-modal.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-resize-handles.d.ts +243 -0
- package/declarations/app/ui-kit/d-resize-handles.d.ts.map +1 -0
- package/declarations/app/ui-kit/d-resize-separator.d.ts +222 -0
- package/declarations/app/ui-kit/d-resize-separator.d.ts.map +1 -0
- package/declarations/app/ui-kit/d-select.d.ts +2 -1
- package/declarations/app/ui-kit/d-select.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-skeleton.d.ts +99 -0
- package/declarations/app/ui-kit/d-skeleton.d.ts.map +1 -0
- package/declarations/app/ui-kit/helpers/d-category-link.d.ts.map +1 -1
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-auto-scroll.d.ts +108 -0
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-auto-scroll.d.ts.map +1 -0
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-external-target.d.ts +80 -0
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-external-target.d.ts.map +1 -0
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-monitor.d.ts +80 -0
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-monitor.d.ts.map +1 -0
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-source.d.ts +249 -0
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-source.d.ts.map +1 -0
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-target.d.ts +102 -0
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-target.d.ts.map +1 -0
- package/declarations/app/ui-kit/modifiers/d-drag-dwell.d.ts +215 -0
- package/declarations/app/ui-kit/modifiers/d-drag-dwell.d.ts.map +1 -0
- package/declarations/app/ui-kit/modifiers/d-draggable.d.ts +15 -0
- package/declarations/app/ui-kit/modifiers/d-draggable.d.ts.map +1 -1
- package/declarations/app/ui-kit/modifiers/d-on-resize.d.ts +3 -0
- package/declarations/app/ui-kit/modifiers/d-on-resize.d.ts.map +1 -1
- package/declarations/app/ui-kit/modifiers/d-pointer-drag.d.ts +215 -0
- package/declarations/app/ui-kit/modifiers/d-pointer-drag.d.ts.map +1 -0
- package/declarations/app/ui-kit/modifiers/d-resize-edge.d.ts +170 -0
- package/declarations/app/ui-kit/modifiers/d-resize-edge.d.ts.map +1 -0
- package/declarations/app/ui-kit/modifiers/d-swipe.d.ts +8 -0
- package/declarations/app/ui-kit/modifiers/d-swipe.d.ts.map +1 -1
- package/declarations/float-kit/components/d-float-body.d.ts +39 -0
- package/declarations/float-kit/components/d-float-body.d.ts.map +1 -1
- package/declarations/float-kit/components/d-headless-menu.d.ts.map +1 -1
- package/declarations/float-kit/components/d-inline-float.d.ts +8 -6
- package/declarations/float-kit/components/d-inline-float.d.ts.map +1 -1
- package/declarations/float-kit/components/d-menu.d.ts +35 -4
- package/declarations/float-kit/components/d-menu.d.ts.map +1 -1
- package/declarations/float-kit/components/d-tooltip.d.ts +2 -0
- package/declarations/float-kit/components/d-tooltip.d.ts.map +1 -1
- package/declarations/float-kit/lib/constants.d.ts +63 -4
- package/declarations/float-kit/lib/constants.d.ts.map +1 -1
- package/declarations/float-kit/lib/d-menu-instance.d.ts +8 -2
- package/declarations/float-kit/lib/d-menu-instance.d.ts.map +1 -1
- package/declarations/float-kit/lib/d-tooltip-instance.d.ts.map +1 -1
- package/declarations/float-kit/lib/float-kit-instance.d.ts +48 -0
- package/declarations/float-kit/lib/float-kit-instance.d.ts.map +1 -1
- package/declarations/float-kit/lib/tab-order.d.ts +36 -0
- package/declarations/float-kit/lib/tab-order.d.ts.map +1 -0
- package/declarations/float-kit/lib/update-position.d.ts +11 -0
- package/declarations/float-kit/lib/update-position.d.ts.map +1 -1
- package/declarations/float-kit/modifiers/apply-floating-ui.d.ts.map +1 -1
- package/declarations/float-kit/modifiers/notify-positioned.d.ts +19 -0
- package/declarations/float-kit/modifiers/notify-positioned.d.ts.map +1 -0
- package/declarations/float-kit/modifiers/tab-order-inline.d.ts +55 -0
- package/declarations/float-kit/modifiers/tab-order-inline.d.ts.map +1 -0
- package/declarations/float-kit/services/menu.d.ts +11 -0
- package/declarations/float-kit/services/menu.d.ts.map +1 -1
- package/declarations/select-kit/components/dropdown-select-box.d.ts.map +1 -1
- package/declarations/select-kit/components/icon-picker.d.ts +3 -2
- package/declarations/select-kit/components/icon-picker.d.ts.map +1 -1
- package/declarations/select-kit/components/multi-select/multi-select-header.d.ts.map +1 -1
- package/declarations/select-kit/components/multi-select.d.ts.map +1 -1
- package/declarations/select-kit/components/multiple-categories-selector.d.ts +13 -0
- package/declarations/select-kit/components/multiple-categories-selector.d.ts.map +1 -0
- package/declarations/select-kit/components/select-kit/select-kit-row.d.ts.map +1 -1
- package/declarations/select-kit/components/selected-choice.d.ts +1 -0
- package/declarations/select-kit/components/selected-choice.d.ts.map +1 -1
- package/declarations/select-kit/components/tag-chooser.d.ts +3 -1
- package/declarations/select-kit/components/tag-chooser.d.ts.map +1 -1
- package/declarations/tests/acceptance/category-default-view-test.d.ts +2 -0
- package/declarations/tests/acceptance/category-default-view-test.d.ts.map +1 -0
- package/declarations/tests/acceptance/exception-test.d.ts +2 -0
- package/declarations/tests/acceptance/exception-test.d.ts.map +1 -0
- package/declarations/tests/acceptance/read-only-mode-test.d.ts +2 -0
- package/declarations/tests/acceptance/read-only-mode-test.d.ts.map +1 -0
- package/declarations/tests/acceptance/sidebar-link-drop-test.d.ts +2 -0
- package/declarations/tests/acceptance/sidebar-link-drop-test.d.ts.map +1 -0
- package/declarations/tests/acceptance/topic-list-preload-test.d.ts +2 -0
- package/declarations/tests/acceptance/topic-list-preload-test.d.ts.map +1 -0
- package/declarations/tests/acceptance/transformers/composer-minimum-post-length-test.d.ts +2 -0
- package/declarations/tests/acceptance/transformers/composer-minimum-post-length-test.d.ts.map +1 -0
- package/declarations/tests/fixtures/session-fixtures.d.ts.map +1 -1
- package/declarations/tests/fixtures/site-fixtures.d.ts +3 -0
- package/declarations/tests/fixtures/site-fixtures.d.ts.map +1 -1
- package/declarations/tests/fixtures/user-fixtures.d.ts +0 -1
- package/declarations/tests/fixtures/user-fixtures.d.ts.map +1 -1
- package/declarations/tests/helpers/qunit-helpers.d.ts.map +1 -1
- package/declarations/tests/helpers/review-pretender.d.ts.map +1 -1
- package/declarations/tests/helpers/rich-editor-helper.d.ts +2 -2
- package/declarations/tests/helpers/rich-editor-helper.d.ts.map +1 -1
- package/declarations/tests/helpers/stub-intersection-observer.d.ts +4 -2
- package/declarations/tests/helpers/stub-intersection-observer.d.ts.map +1 -1
- package/declarations/tests/helpers/ui-kit/drag-and-drop-helper.d.ts +178 -0
- package/declarations/tests/helpers/ui-kit/drag-and-drop-helper.d.ts.map +1 -0
- package/declarations/tests/helpers/ui-kit/pointer-gesture-helper.d.ts +81 -0
- package/declarations/tests/helpers/ui-kit/pointer-gesture-helper.d.ts.map +1 -0
- package/declarations/tests/integration/components/admin-plugin-config-page-test.d.ts +2 -0
- package/declarations/tests/integration/components/admin-plugin-config-page-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/category-list-subcategories-test.d.ts +2 -0
- package/declarations/tests/integration/components/category-list-subcategories-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/composer-container-test.d.ts +2 -0
- package/declarations/tests/integration/components/composer-container-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/dashboard/search-test.d.ts +2 -0
- package/declarations/tests/integration/components/dashboard/search-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/dashboard/traffic-test.d.ts +2 -0
- package/declarations/tests/integration/components/dashboard/traffic-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/design-wizard-sections-test.d.ts +2 -0
- package/declarations/tests/integration/components/design-wizard-sections-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/dev-tools-toolbar-test.d.ts +2 -0
- package/declarations/tests/integration/components/dev-tools-toolbar-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/float-kit/apply-floating-ui-test.d.ts +2 -0
- package/declarations/tests/integration/components/float-kit/apply-floating-ui-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/float-kit/tab-order-inline-test.d.ts +2 -0
- package/declarations/tests/integration/components/float-kit/tab-order-inline-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/modal/content-language-preferences-test.d.ts +2 -0
- package/declarations/tests/integration/components/modal/content-language-preferences-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/prosemirror-editor/open-document-test.d.ts +2 -0
- package/declarations/tests/integration/components/prosemirror-editor/open-document-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/select-kit/multiple-categories-selector-test.d.ts +2 -0
- package/declarations/tests/integration/components/select-kit/multiple-categories-selector-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/sidebar-section-form-test.d.ts +2 -0
- package/declarations/tests/integration/components/sidebar-section-form-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/topic-navigation-test.d.ts +2 -0
- package/declarations/tests/integration/components/topic-navigation-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/topic-post-badges-test.d.ts +2 -0
- package/declarations/tests/integration/components/topic-post-badges-test.d.ts.map +1 -0
- package/declarations/tests/integration/modifiers/d-resize-edge-test.d.ts +2 -0
- package/declarations/tests/integration/modifiers/d-resize-edge-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/d-combo-button-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/d-combo-button-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/d-resize-handles-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/d-resize-handles-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/d-resize-separator-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/d-resize-separator-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/d-skeleton-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/d-skeleton-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-adoption-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-adoption-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-auto-scroll-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-auto-scroll-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-external-target-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-external-target-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-monitor-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-monitor-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-dwell-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-dwell-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-draggable-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-draggable-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-observe-intersection-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-observe-intersection-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-pointer-drag-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-pointer-drag-test.d.ts.map +1 -0
- package/declarations/tests/unit/admin/lib/color-scheme-manager-test.d.ts +2 -0
- package/declarations/tests/unit/admin/lib/color-scheme-manager-test.d.ts.map +1 -0
- package/declarations/tests/unit/instance-initializers/verify-session-after-restore-test.d.ts +2 -0
- package/declarations/tests/unit/instance-initializers/verify-session-after-restore-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/-internals/drag-and-drop/drag-dwell-test.d.ts +2 -0
- package/declarations/tests/unit/lib/-internals/drag-and-drop/drag-dwell-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/-internals/drag-and-drop/vocabulary-test.d.ts +2 -0
- package/declarations/tests/unit/lib/-internals/drag-and-drop/vocabulary-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/blocks/core/decorator-test.d.ts +2 -0
- package/declarations/tests/unit/lib/blocks/core/decorator-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/content-localization-test.d.ts +2 -0
- package/declarations/tests/unit/lib/content-localization-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/customization-source-test.d.ts +2 -0
- package/declarations/tests/unit/lib/customization-source-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/dag-test.d.ts.map +1 -1
- package/declarations/tests/unit/lib/dashboard-reports-loader-test.d.ts +2 -0
- package/declarations/tests/unit/lib/dashboard-reports-loader-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/download-blob-test.d.ts +2 -0
- package/declarations/tests/unit/lib/download-blob-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/download-strategy-test.d.ts +2 -0
- package/declarations/tests/unit/lib/download-strategy-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/filter-mode-test.d.ts +2 -0
- package/declarations/tests/unit/lib/filter-mode-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/locale-normalizer-test.d.ts +2 -0
- package/declarations/tests/unit/lib/locale-normalizer-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/resize-measurements-test.d.ts +2 -0
- package/declarations/tests/unit/lib/resize-measurements-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/sidebar/active-link-test.d.ts +2 -0
- package/declarations/tests/unit/lib/sidebar/active-link-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/sidebar/link-drop-test.d.ts +2 -0
- package/declarations/tests/unit/lib/sidebar/link-drop-test.d.ts.map +1 -0
- package/declarations/tests/unit/services/discovery-test.d.ts +2 -0
- package/declarations/tests/unit/services/discovery-test.d.ts.map +1 -0
- package/declarations/tests/unit/services/drag-and-drop-test.d.ts +2 -0
- package/declarations/tests/unit/services/drag-and-drop-test.d.ts.map +1 -0
- package/declarations/tsconfig.tsbuildinfo +1 -1
- package/declarations/type-tests/blocks/public-api-test.d.ts +2 -0
- package/declarations/type-tests/blocks/public-api-test.d.ts.map +1 -0
- package/declarations/type-tests/lib/dag-test.d.ts +2 -0
- package/declarations/type-tests/lib/dag-test.d.ts.map +1 -0
- package/declarations/type-tests/lib/later-test.d.ts +2 -0
- package/declarations/type-tests/lib/later-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/create-drag-dwell-test.d.ts +2 -0
- package/declarations/type-tests/ui-kit/create-drag-dwell-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-combo-button-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-combo-button-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-adoption-errors-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-adoption-errors-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-adoption-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-adoption-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-errors-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-errors-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-external-errors-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-external-errors-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-external-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-external-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-drag-dwell-errors-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-drag-dwell-errors-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-drag-dwell-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-drag-dwell-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-pointer-drag-errors-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-pointer-drag-errors-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-pointer-drag-test.d.ts +8 -0
- package/declarations/type-tests/ui-kit/d-pointer-drag-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-resize-handles-args-errors-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-resize-handles-args-errors-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-resize-handles-box-errors-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-resize-handles-box-errors-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-resize-handles-payload-errors-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-resize-handles-payload-errors-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-resize-handles-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-resize-handles-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-resize-separator-errors-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-resize-separator-errors-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-resize-separator-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-resize-separator-test.d.ts.map +1 -0
- package/package.json +10 -1
- package/declarations/app/components/admin-onboarding/modal/theme-picker.d.ts +0 -13
- package/declarations/app/components/admin-onboarding/modal/theme-picker.d.ts.map +0 -1
- package/declarations/app/components/composer-actions-new.d.ts.map +0 -1
- package/declarations/app/components/link-to-input.d.ts +0 -7
- package/declarations/app/components/link-to-input.d.ts.map +0 -1
- package/declarations/app/helpers/reviewable-history-description.d.ts +0 -2
- package/declarations/app/helpers/reviewable-history-description.d.ts.map +0 -1
- package/declarations/app/modifiers/grippie-drag-resize.d.ts +0 -40
- package/declarations/app/modifiers/grippie-drag-resize.d.ts.map +0 -1
- package/declarations/select-kit/components/composer-actions.d.ts +0 -39
- package/declarations/select-kit/components/composer-actions.d.ts.map +0 -1
- package/declarations/tests/acceptance/composer-actions-new-test.d.ts +0 -2
- package/declarations/tests/acceptance/composer-actions-new-test.d.ts.map +0 -1
- package/declarations/tests/acceptance/composer-new-test.d.ts +0 -2
- package/declarations/tests/acceptance/composer-new-test.d.ts.map +0 -1
- package/declarations/tests/acceptance/keyboard-shortcuts-new-test.d.ts +0 -2
- package/declarations/tests/acceptance/keyboard-shortcuts-new-test.d.ts.map +0 -1
|
@@ -1,19 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BlockOutlet System
|
|
3
|
+
*
|
|
4
|
+
* This module provides the BlockOutlet component and outlet layout management.
|
|
5
|
+
* BlockOutlet is the root entry point for rendering blocks in designated areas.
|
|
6
|
+
*
|
|
7
|
+
* This file handles:
|
|
8
|
+
* - BlockOutlet component
|
|
9
|
+
* - Outlet layout registration and management
|
|
10
|
+
* - Child block creation and rendering
|
|
11
|
+
*/
|
|
12
|
+
import Component from "@glimmer/component";
|
|
13
|
+
import type Owner from "@ember/owner";
|
|
14
|
+
import type { LayoutEntry } from "discourse/blocks/types";
|
|
15
|
+
import type { BlockEntry } from "discourse/lib/blocks/-internals/types";
|
|
1
16
|
/**
|
|
2
17
|
* Clears all registered outlet layouts.
|
|
3
18
|
*
|
|
4
19
|
* USE ONLY FOR TESTING PURPOSES.
|
|
5
20
|
*/
|
|
6
|
-
export function _resetOutletLayoutsForTesting(): void;
|
|
21
|
+
export declare function _resetOutletLayoutsForTesting(): void;
|
|
7
22
|
/**
|
|
8
23
|
* Returns the internal outlet layouts map for testing.
|
|
9
24
|
* Allows tests to access validation promises to verify error handling.
|
|
10
25
|
*
|
|
11
26
|
* USE ONLY FOR TESTING PURPOSES.
|
|
12
|
-
*
|
|
13
|
-
* @returns {Map<string, {validatedLayout: Promise<Array<Object>>}>} The outlet layouts map.
|
|
14
27
|
*/
|
|
15
|
-
export function _getOutletLayouts(): Map<string, {
|
|
16
|
-
validatedLayout: Promise<
|
|
28
|
+
export declare function _getOutletLayouts(): Map<string, {
|
|
29
|
+
validatedLayout: Promise<BlockEntry[]>;
|
|
17
30
|
}>;
|
|
18
31
|
/**
|
|
19
32
|
* Registers an outlet layout (array of block entries) for a named outlet.
|
|
@@ -25,13 +38,9 @@ export function _getOutletLayouts(): Map<string, {
|
|
|
25
38
|
* @experimental This API is under active development and may change or be removed
|
|
26
39
|
* in future releases without prior notice. Use with caution in production environments.
|
|
27
40
|
*
|
|
28
|
-
* @param
|
|
29
|
-
* @param
|
|
30
|
-
* @param {Object} [owner] - The application owner for service lookup (passed from plugin API).
|
|
31
|
-
* @param {Error|null} [callSiteError] - Pre-captured error for source-mapped stack traces.
|
|
41
|
+
* @param owner - The application owner for service lookup (passed from plugin API).
|
|
42
|
+
* @param callSiteError - Pre-captured error for source-mapped stack traces.
|
|
32
43
|
* When called via api.renderBlocks(), this is captured there to exclude the PluginApi wrapper.
|
|
33
|
-
* @returns {Promise<Array<Object>>} Promise resolving to the validated layout array.
|
|
34
|
-
* @throws {Error} If validation fails or outlet already has a layout.
|
|
35
44
|
*
|
|
36
45
|
* @example
|
|
37
46
|
* ```js
|
|
@@ -55,29 +64,34 @@ export function _getOutletLayouts(): Map<string, {
|
|
|
55
64
|
* ]);
|
|
56
65
|
* ```
|
|
57
66
|
*/
|
|
58
|
-
export function _renderBlocks(outletName: string, layout:
|
|
67
|
+
export declare function _renderBlocks(outletName: string, layout: LayoutEntry[], owner?: Owner, callSiteError?: Error | null): Promise<BlockEntry[]>;
|
|
59
68
|
/**
|
|
60
69
|
* Checks if a layout has been registered for a given outlet.
|
|
61
70
|
*
|
|
62
71
|
* @internal This is an internal API. Use the `blocks` service's `hasLayout()` method instead.
|
|
63
|
-
*
|
|
64
|
-
* @param {string} outletName - The outlet identifier to check.
|
|
65
|
-
* @returns {boolean} True if a layout is registered for this outlet.
|
|
66
|
-
*/
|
|
67
|
-
export function _hasLayout(outletName: string): boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Component signature for BlockOutlet.
|
|
70
|
-
*
|
|
71
|
-
* @typedef {Object} BlockOutletSignature
|
|
72
|
-
* @property {Object} Args
|
|
73
|
-
* @property {string} Args.name - The outlet name (must be in BLOCK_OUTLETS registry).
|
|
74
|
-
* @property {Object} [Args.outletArgs] - Arguments to pass to blocks rendered in this outlet.
|
|
75
|
-
* @property {Object} [Args.deprecatedArgs] - Deprecated args with deprecation warnings.
|
|
76
|
-
* @property {Object} Blocks
|
|
77
|
-
* @property {[hasLayout: boolean]} Blocks.before - Yields hasLayout flag before content.
|
|
78
|
-
* @property {[hasLayout: boolean]} Blocks.after - Yields hasLayout flag after content.
|
|
79
|
-
* @property {[error: Error]} Blocks.error - Yields error when validation fails.
|
|
80
72
|
*/
|
|
73
|
+
export declare function _hasLayout(outletName: string): boolean;
|
|
74
|
+
interface BlockOutletSignature {
|
|
75
|
+
Args: {
|
|
76
|
+
name: string;
|
|
77
|
+
outletArgs?: Record<string, unknown>;
|
|
78
|
+
deprecatedArgs?: Record<string, unknown>;
|
|
79
|
+
};
|
|
80
|
+
Blocks: {
|
|
81
|
+
before?: [hasLayout: boolean];
|
|
82
|
+
after?: [hasLayout: boolean];
|
|
83
|
+
error?: [error: Error];
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
/** The signature `debugHooks.outletInfoComponent` renders with, when set. */
|
|
87
|
+
interface OutletInfoSignature {
|
|
88
|
+
Args: {
|
|
89
|
+
outletName: string;
|
|
90
|
+
blockCount: number;
|
|
91
|
+
outletArgs: Record<string, unknown>;
|
|
92
|
+
error: Error | null;
|
|
93
|
+
};
|
|
94
|
+
}
|
|
81
95
|
/**
|
|
82
96
|
* Root component for rendering registered blocks in a designated outlet.
|
|
83
97
|
*
|
|
@@ -93,8 +107,6 @@ export function _hasLayout(outletName: string): boolean;
|
|
|
93
107
|
* @experimental This API is under active development and may change or be removed
|
|
94
108
|
* in future releases without prior notice. Use with caution in production environments.
|
|
95
109
|
*
|
|
96
|
-
* @extends {Component<BlockOutletSignature>}
|
|
97
|
-
*
|
|
98
110
|
* @example
|
|
99
111
|
* ```hbs
|
|
100
112
|
* <BlockOutlet @name="homepage-blocks">
|
|
@@ -107,37 +119,27 @@ export function _hasLayout(outletName: string): boolean;
|
|
|
107
119
|
* ```
|
|
108
120
|
*/
|
|
109
121
|
export default class BlockOutlet extends Component<BlockOutletSignature> {
|
|
110
|
-
|
|
111
|
-
|
|
122
|
+
#private;
|
|
123
|
+
constructor(owner: Owner, args: BlockOutletSignature["Args"]);
|
|
124
|
+
get validatedLayout(): Promise<BlockEntry[]> | undefined;
|
|
112
125
|
/**
|
|
113
126
|
* Processes block entries and returns renderable components.
|
|
114
|
-
*
|
|
115
|
-
* @returns {Promise<{rawChildren: Array<Object>, showGhosts: boolean, showVisualOverlay: boolean, isLoggingEnabled: boolean}>|undefined}
|
|
116
127
|
*/
|
|
117
128
|
get children(): Promise<{
|
|
118
|
-
rawChildren:
|
|
129
|
+
rawChildren: BlockEntry[];
|
|
119
130
|
showGhosts: boolean;
|
|
120
131
|
showVisualOverlay: boolean;
|
|
121
132
|
isLoggingEnabled: boolean;
|
|
122
|
-
}> | undefined;
|
|
133
|
+
} | undefined> | undefined;
|
|
123
134
|
/**
|
|
124
135
|
* The locked outlet name, used for CSS class generation and config lookup.
|
|
125
|
-
*
|
|
126
|
-
* @returns {string}
|
|
127
136
|
*/
|
|
128
137
|
get outletName(): string;
|
|
129
138
|
/**
|
|
130
139
|
* The component to render for outlet boundary debug info.
|
|
131
140
|
* Returns the OutletInfo component when debug mode is enabled, null otherwise.
|
|
132
|
-
*
|
|
133
|
-
* @returns {typeof Component<{outletName: string, blockCount: number, outletArgs: object, error: Error}>|null}
|
|
134
141
|
*/
|
|
135
|
-
get OutletInfoComponent(): typeof Component<
|
|
136
|
-
outletName: string;
|
|
137
|
-
blockCount: number;
|
|
138
|
-
outletArgs: object;
|
|
139
|
-
error: Error;
|
|
140
|
-
}> | null;
|
|
142
|
+
get OutletInfoComponent(): typeof Component<OutletInfoSignature> | null | undefined;
|
|
141
143
|
/**
|
|
142
144
|
* Combines `@outletArgs` with `@deprecatedArgs` for lazy evaluation.
|
|
143
145
|
*
|
|
@@ -147,35 +149,8 @@ export default class BlockOutlet extends Component<BlockOutletSignature> {
|
|
|
147
149
|
*
|
|
148
150
|
* Deprecated args trigger a deprecation warning when accessed, helping
|
|
149
151
|
* migrate consumers away from renamed or removed outlet args.
|
|
150
|
-
*
|
|
151
|
-
* @returns {Object} Combined args object with lazy property getters
|
|
152
152
|
*/
|
|
153
|
-
get outletArgsWithDeprecations():
|
|
154
|
-
#private;
|
|
153
|
+
get outletArgsWithDeprecations(): Record<string, unknown>;
|
|
155
154
|
}
|
|
156
|
-
|
|
157
|
-
* A block entry in a layout configuration.
|
|
158
|
-
*/
|
|
159
|
-
export type LayoutEntry = {
|
|
160
|
-
/**
|
|
161
|
-
* - The block component class (must use
|
|
162
|
-
*/
|
|
163
|
-
block: typeof Component | string;
|
|
164
|
-
};
|
|
165
|
-
/**
|
|
166
|
-
* Component signature for BlockOutlet.
|
|
167
|
-
*/
|
|
168
|
-
export type BlockOutletSignature = {
|
|
169
|
-
Args: {
|
|
170
|
-
name: string;
|
|
171
|
-
outletArgs?: any;
|
|
172
|
-
deprecatedArgs?: any;
|
|
173
|
-
};
|
|
174
|
-
Blocks: {
|
|
175
|
-
before: [hasLayout: boolean];
|
|
176
|
-
after: [hasLayout: boolean];
|
|
177
|
-
error: [error: Error];
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
import Component from "@glimmer/component";
|
|
155
|
+
export {};
|
|
181
156
|
//# sourceMappingURL=block-outlet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-outlet.d.ts","sourceRoot":"","sources":["../../../../discourse/app/blocks/block-outlet.
|
|
1
|
+
{"version":3,"file":"block-outlet.d.ts","sourceRoot":"","sources":["../../../../discourse/app/blocks/block-outlet.gts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAgoBO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,OAAO,KAAK,EAAiB,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAsBzE,OAAO,KAAK,EAGV,UAAU,EAEX,MAAM,uCAAuC,CAAC;AAgD/C;;;;GAIG;AACH,wBAAgB,6BAA6B,IAAI,IAAI,CAKpD;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,IAAI,GAAG,CACtC,MAAM,EACN;IAAE,eAAe,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC,CAAA;CAAE,CAC3C,CAKA;AAwJD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,aAAa,CAC3B,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,WAAW,EAAE,EACrB,KAAK,CAAC,EAAE,KAAK,EACb,aAAa,GAAE,KAAK,GAAG,IAAW,GACjC,OAAO,CAAC,UAAU,EAAE,CAAC,CA8CvB;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAEtD;AAED,UAAU,oBAAoB;IAC5B,IAAI,EAAE;QAEJ,IAAI,EAAE,MAAM,CAAC;QAEb,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAErC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC1C,CAAC;IACF,MAAM,EAAE;QAEN,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAE9B,KAAK,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAE7B,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;KACxB,CAAC;CACH;AAED,6EAA6E;AAC7E,UAAU,mBAAmB;IAC3B,IAAI,EAAE;QACJ,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACpC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;KACrB,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,SAAS,CAAC,oBAAoB,CAAC;;gBAO1D,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,oBAAoB,CAAC,MAAM,CAAC;IAa5D,IAAI,eAAe,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC,GAAG,SAAS,CAEvD;IAED;;OAEG;IACH,IACI,QAAQ,IACR,OAAO,CACH;QACE,WAAW,EAAE,UAAU,EAAE,CAAC;QAC1B,UAAU,EAAE,OAAO,CAAC;QACpB,iBAAiB,EAAE,OAAO,CAAC;QAC3B,gBAAgB,EAAE,OAAO,CAAC;KAC3B,GACD,SAAS,CACZ,GACD,SAAS,CA+CZ;IAED;;OAEG;IACH,IAAI,UAAU,IAAI,MAAM,CAEvB;IAED;;;OAGG;IACH,IAAI,mBAAmB,IACnB,OAAO,SAAS,CAAC,mBAAmB,CAAC,GACrC,IAAI,GACJ,SAAS,CAMZ;IAED;;;;;;;;;OASG;IACH,IACI,0BAA0B,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAWxD;CAsFF"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
import Component from "@glimmer/component";
|
|
2
|
+
import type { ChildBlockResult } from "discourse/lib/blocks/-internals/types";
|
|
3
|
+
interface GroupedBlocksSignature {
|
|
4
|
+
Args: {
|
|
5
|
+
children: ChildBlockResult[];
|
|
6
|
+
};
|
|
7
|
+
}
|
|
1
8
|
/**
|
|
2
9
|
* A container block that groups multiple children blocks together.
|
|
3
|
-
* Rendered children are pre-processed by the block outlet system and passed via the
|
|
10
|
+
* Rendered children are pre-processed by the block outlet system and passed via the `@children` arg.
|
|
4
11
|
*
|
|
5
12
|
* The system wrapper provides standard BEM classes:
|
|
6
13
|
* - `{outletName}__block-container` - Standard container class
|
|
@@ -10,8 +17,7 @@
|
|
|
10
17
|
* - `@outletName` - The outlet identifier this group belongs to
|
|
11
18
|
* - `@outletArgs` - Outlet args available for condition evaluation and access
|
|
12
19
|
*/
|
|
13
|
-
export default class GroupedBlocks extends Component<
|
|
14
|
-
constructor(owner: import("@ember/-internals/owner").default, args: any);
|
|
20
|
+
export default class GroupedBlocks extends Component<GroupedBlocksSignature> {
|
|
15
21
|
}
|
|
16
|
-
|
|
22
|
+
export {};
|
|
17
23
|
//# sourceMappingURL=block-group.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-group.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/blocks/builtin/block-group.
|
|
1
|
+
{"version":3,"file":"block-group.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/blocks/builtin/block-group.gts"],"names":[],"mappings":"AAAA,OAiCO,SAAS,MAAM,oBAAoB,CAAC;AAE3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAE9E,UAAU,sBAAsB;IAC9B,IAAI,EAAE;QACJ,QAAQ,EAAE,gBAAgB,EAAE,CAAC;KAC9B,CAAC;CACH;AAED;;;;;;;;;;;GAWG;AAKH,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,SAAS,CAAC,sBAAsB,CAAC;CAc3E"}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
import Component from "@glimmer/component";
|
|
2
|
+
import type { ChildBlockResult } from "discourse/lib/blocks/-internals/types";
|
|
3
|
+
import type Blocks from "discourse/services/blocks";
|
|
4
|
+
interface HeadBlockSignature {
|
|
5
|
+
Args: {
|
|
6
|
+
children: ChildBlockResult[];
|
|
7
|
+
};
|
|
8
|
+
}
|
|
1
9
|
/**
|
|
2
10
|
* A container block that renders only its first visible child.
|
|
3
11
|
*
|
|
@@ -16,7 +24,7 @@
|
|
|
16
24
|
* not display children 2+, we are responsible for:
|
|
17
25
|
*
|
|
18
26
|
* 1. Rendering ghosts for children that failed their own conditions
|
|
19
|
-
* (already ghost blocks in
|
|
27
|
+
* (already ghost blocks in `@children`)
|
|
20
28
|
* 2. Converting children that passed conditions but aren't rendered
|
|
21
29
|
* (because another sibling was first) into ghosts with an explanation
|
|
22
30
|
*
|
|
@@ -47,21 +55,21 @@
|
|
|
47
55
|
* ]);
|
|
48
56
|
* ```
|
|
49
57
|
*/
|
|
50
|
-
export default class HeadBlock extends Component<
|
|
51
|
-
|
|
52
|
-
blocks: any;
|
|
58
|
+
export default class HeadBlock extends Component<HeadBlockSignature> {
|
|
59
|
+
blocks: Blocks;
|
|
53
60
|
/**
|
|
54
61
|
* Children that passed their conditions and could be rendered.
|
|
55
|
-
*
|
|
56
|
-
* @returns {Array<import("discourse/lib/blocks/-internals/entry-processing").ChildBlockResult>}
|
|
57
62
|
*/
|
|
58
|
-
get renderableChildren():
|
|
63
|
+
get renderableChildren(): ChildBlockResult[];
|
|
59
64
|
/**
|
|
60
65
|
* The one child we actually render (first that passed conditions).
|
|
61
|
-
*
|
|
62
|
-
* @returns {import("discourse/lib/blocks/-internals/entry-processing").ChildBlockResult|undefined}
|
|
63
66
|
*/
|
|
64
|
-
get firstChild():
|
|
67
|
+
get firstChild(): ChildBlockResult | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Converts a passed-over sibling into a ghost with the given reason,
|
|
70
|
+
* for the debug visual overlay.
|
|
71
|
+
*/
|
|
72
|
+
ghostify(child: ChildBlockResult, reason: string): ChildBlockResult | null;
|
|
65
73
|
}
|
|
66
|
-
|
|
74
|
+
export {};
|
|
67
75
|
//# sourceMappingURL=block-head.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-head.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/blocks/builtin/block-head.
|
|
1
|
+
{"version":3,"file":"block-head.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/blocks/builtin/block-head.gts"],"names":[],"mappings":"AAAA,OAiIO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAIpD,UAAU,kBAAkB;IAC1B,IAAI,EAAE;QACJ,QAAQ,EAAE,gBAAgB,EAAE,CAAC;KAC9B,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AAKH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,SAAS,CAAC,kBAAkB,CAAC;IACjD,MAAM,EAAE,MAAM,CAAC;IAEhC;;OAEG;IACH,IAAI,kBAAkB,IAAI,gBAAgB,EAAE,CAE3C;IAED;;OAEG;IACH,IAAI,UAAU,IAAI,gBAAgB,GAAG,SAAS,CAE7C;IAED;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI;CA8C3E"}
|
|
@@ -1,3 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in blocks registry.
|
|
3
|
+
*
|
|
4
|
+
* This module lists all built-in block components provided by Discourse.
|
|
5
|
+
* These blocks are registered at runtime by the `freeze-block-registry`
|
|
6
|
+
* initializer, which imports from this file and calls `api.registerBlock()`
|
|
7
|
+
* for each exported block.
|
|
8
|
+
*
|
|
9
|
+
* ## Adding a New Built-in Block
|
|
10
|
+
*
|
|
11
|
+
* 1. Create the block component in `app/blocks/builtin/` with the `@block` decorator:
|
|
12
|
+
*
|
|
13
|
+
* ```javascript
|
|
14
|
+
* import Component from "@glimmer/component";
|
|
15
|
+
* import { block } from "discourse/blocks";
|
|
16
|
+
*
|
|
17
|
+
* @block("my-block")
|
|
18
|
+
* export default class MyBlock extends Component {
|
|
19
|
+
* // ...
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* 2. Add an export to this file:
|
|
24
|
+
*
|
|
25
|
+
* ```javascript
|
|
26
|
+
* export { default as MyBlock } from "discourse/blocks/builtin/my-block";
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* The initializer automatically picks up any new exports and registers them.
|
|
30
|
+
*/
|
|
1
31
|
export { default as BlockHead } from "./block-head";
|
|
2
32
|
export { default as BlockGroup } from "./block-group";
|
|
3
33
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/blocks/builtin/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/blocks/builtin/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,3 +1,52 @@
|
|
|
1
|
+
import type { ArgSchema, BlockConstraints } from "discourse/blocks/types";
|
|
2
|
+
import type { DebugLoggerInterface } from "discourse/lib/blocks/-internals/debug-hooks";
|
|
3
|
+
/**
|
|
4
|
+
* Declares how a condition handles the `source` parameter.
|
|
5
|
+
*
|
|
6
|
+
* - `"none"`: `source` parameter is disallowed.
|
|
7
|
+
* - `"outletArgs"`: `source` must be `@outletArgs.propertyPath`; the base
|
|
8
|
+
* class resolves it via outlet args.
|
|
9
|
+
* - `"object"`: `source` is passed directly as an object (e.g., for settings).
|
|
10
|
+
*/
|
|
11
|
+
export type ConditionSourceType = "none" | "outletArgs" | "object";
|
|
12
|
+
/**
|
|
13
|
+
* Custom validation function for a condition, run at registration time
|
|
14
|
+
* against the condition's resolved args. Returns an error message (or
|
|
15
|
+
* messages), or `null`/`undefined` when the args are valid.
|
|
16
|
+
*/
|
|
17
|
+
export type ConditionValidateFn = (args: Record<string, unknown>) => string | string[] | null | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Evaluation context passed to `evaluate()`, `resolveSource()`, and
|
|
20
|
+
* `getResolvedValueForLogging()`. Built by the block render pipeline (and,
|
|
21
|
+
* for nested route params, by the route condition itself).
|
|
22
|
+
*/
|
|
23
|
+
export interface ConditionContext {
|
|
24
|
+
/** Whether debug logging is enabled for this evaluation. */
|
|
25
|
+
debug?: boolean;
|
|
26
|
+
/** Outlet args passed to the block, used to resolve `@outletArgs.*` sources. */
|
|
27
|
+
outletArgs?: Record<string, unknown>;
|
|
28
|
+
/** Current nesting depth, used for debug log indentation. */
|
|
29
|
+
_depth?: number;
|
|
30
|
+
/** Logger interface for nested debug logging (used by the route condition
|
|
31
|
+
* to log its OR/NOT/param sub-checks). */
|
|
32
|
+
logger?: DebugLoggerInterface | null;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Resolved-value info returned by `getResolvedValueForLogging()`, shown in
|
|
36
|
+
* the dev-tools debug overlay. Conditions that don't resolve a value (e.g.
|
|
37
|
+
* because `source` wasn't provided) return `undefined` instead.
|
|
38
|
+
*/
|
|
39
|
+
export interface ConditionResolvedValue {
|
|
40
|
+
/** Always `true` when a value was resolved. */
|
|
41
|
+
hasValue: true;
|
|
42
|
+
/** The resolved value, for conditions that resolve via `source`. */
|
|
43
|
+
value?: unknown;
|
|
44
|
+
/** An additional annotation, e.g. a "did you mean" note for an unknown setting. */
|
|
45
|
+
note?: string;
|
|
46
|
+
/** An alternate formatted payload, for conditions with non-`source`
|
|
47
|
+
* resolution (e.g. the `outletArg` condition's `path`/`actual`/`configured` triple). */
|
|
48
|
+
formatted?: unknown;
|
|
49
|
+
}
|
|
1
50
|
/**
|
|
2
51
|
* Base class for all block conditions.
|
|
3
52
|
*
|
|
@@ -33,8 +82,6 @@
|
|
|
33
82
|
* @experimental This API is under active development and may change or be removed
|
|
34
83
|
* in future releases without prior notice. Use with caution in production environments.
|
|
35
84
|
*
|
|
36
|
-
* @class BlockCondition
|
|
37
|
-
*
|
|
38
85
|
* @example
|
|
39
86
|
* ```javascript
|
|
40
87
|
* import { blockCondition, BlockCondition } from "discourse/blocks/conditions";
|
|
@@ -65,15 +112,13 @@
|
|
|
65
112
|
* }
|
|
66
113
|
* ```
|
|
67
114
|
*/
|
|
68
|
-
export class BlockCondition {
|
|
115
|
+
export declare class BlockCondition {
|
|
69
116
|
/**
|
|
70
117
|
* Unique identifier for this condition type.
|
|
71
118
|
* Used in condition specs: `{ type: "route", ... }`
|
|
72
119
|
*
|
|
73
120
|
* This property is defined by the `@blockCondition` decorator and should not
|
|
74
121
|
* be set directly. Pass the `type` option to the decorator instead.
|
|
75
|
-
*
|
|
76
|
-
* @type {string}
|
|
77
122
|
*/
|
|
78
123
|
static type: string;
|
|
79
124
|
/**
|
|
@@ -85,40 +130,32 @@ export class BlockCondition {
|
|
|
85
130
|
*
|
|
86
131
|
* This property is defined by the `@blockCondition` decorator and should not
|
|
87
132
|
* be set directly. Pass the `sourceType` option to the decorator instead.
|
|
88
|
-
*
|
|
89
|
-
* @type {"none" | "outletArgs" | "object"}
|
|
90
133
|
*/
|
|
91
|
-
static sourceType:
|
|
134
|
+
static sourceType: ConditionSourceType;
|
|
92
135
|
/**
|
|
93
136
|
* Arg schema definitions for this condition.
|
|
94
137
|
*
|
|
95
138
|
* This property is defined by the `@blockCondition` decorator and should not
|
|
96
139
|
* be overridden directly. The decorator creates a non-configurable getter
|
|
97
140
|
* that returns a frozen object.
|
|
98
|
-
*
|
|
99
|
-
* @type {Object}
|
|
100
141
|
*/
|
|
101
|
-
static argsSchema:
|
|
142
|
+
static argsSchema: Readonly<Record<string, ArgSchema>>;
|
|
102
143
|
/**
|
|
103
144
|
* Cross-arg constraint definitions for this condition.
|
|
104
145
|
*
|
|
105
146
|
* This property is defined by the `@blockCondition` decorator and should not
|
|
106
147
|
* be overridden directly. The decorator creates a non-configurable getter
|
|
107
148
|
* that returns a frozen object or undefined.
|
|
108
|
-
*
|
|
109
|
-
* @type {Object|undefined}
|
|
110
149
|
*/
|
|
111
|
-
static constraints:
|
|
150
|
+
static constraints: Readonly<BlockConstraints> | undefined;
|
|
112
151
|
/**
|
|
113
152
|
* Custom validation function for this condition.
|
|
114
153
|
*
|
|
115
154
|
* This property is defined by the `@blockCondition` decorator and should not
|
|
116
155
|
* be overridden directly. The decorator creates a non-configurable getter
|
|
117
156
|
* that returns the validate function or undefined.
|
|
118
|
-
*
|
|
119
|
-
* @type {Function|undefined}
|
|
120
157
|
*/
|
|
121
|
-
static validateFn:
|
|
158
|
+
static validateFn: ConditionValidateFn | undefined;
|
|
122
159
|
/**
|
|
123
160
|
* Valid argument keys for this condition.
|
|
124
161
|
*
|
|
@@ -127,8 +164,6 @@ export class BlockCondition {
|
|
|
127
164
|
*
|
|
128
165
|
* The `source` key is automatically added by the decorator when
|
|
129
166
|
* `sourceType !== "none"`.
|
|
130
|
-
*
|
|
131
|
-
* @type {readonly string[]}
|
|
132
167
|
*/
|
|
133
168
|
static validArgKeys: readonly string[];
|
|
134
169
|
/**
|
|
@@ -138,29 +173,24 @@ export class BlockCondition {
|
|
|
138
173
|
* and retrieves the corresponding value from `context.outletArgs`.
|
|
139
174
|
* - `sourceType: "object"`: Returns the `source` value directly.
|
|
140
175
|
*
|
|
141
|
-
* @param
|
|
142
|
-
* @param
|
|
143
|
-
* @
|
|
144
|
-
* @returns {*} The resolved value from outlet args, or undefined if not found.
|
|
176
|
+
* @param args - The condition arguments containing `source`.
|
|
177
|
+
* @param context - Evaluation context containing `outletArgs`.
|
|
178
|
+
* @returns The resolved value from outlet args, or undefined if not found.
|
|
145
179
|
*/
|
|
146
|
-
resolveSource(args:
|
|
147
|
-
outletArgs?: any;
|
|
148
|
-
}): any;
|
|
180
|
+
resolveSource(args: Record<string, unknown>, context?: ConditionContext): unknown;
|
|
149
181
|
/**
|
|
150
182
|
* Default source value when `source` parameter is not provided.
|
|
151
183
|
* Override in subclasses to provide a fallback (e.g., currentUser, siteSettings).
|
|
152
|
-
*
|
|
153
|
-
* @type {*}
|
|
154
184
|
*/
|
|
155
|
-
get defaultSource():
|
|
185
|
+
get defaultSource(): unknown;
|
|
156
186
|
/**
|
|
157
187
|
* Resolves the source value, falling back to defaultSource when not provided.
|
|
158
188
|
*
|
|
159
|
-
* @param
|
|
160
|
-
* @param
|
|
161
|
-
* @returns
|
|
189
|
+
* @param args - The condition arguments.
|
|
190
|
+
* @param context - Evaluation context.
|
|
191
|
+
* @returns The resolved source or defaultSource.
|
|
162
192
|
*/
|
|
163
|
-
getSourceValue(args:
|
|
193
|
+
getSourceValue(args: Record<string, unknown>, context?: ConditionContext): unknown;
|
|
164
194
|
/**
|
|
165
195
|
* Evaluates whether the condition passes.
|
|
166
196
|
* Called at render time to determine if a block should be shown.
|
|
@@ -169,18 +199,11 @@ export class BlockCondition {
|
|
|
169
199
|
* multiple times during a single render cycle (e.g., when debug logging
|
|
170
200
|
* is enabled), and should not have side effects.
|
|
171
201
|
*
|
|
172
|
-
* @param
|
|
173
|
-
* @param
|
|
174
|
-
* @
|
|
175
|
-
* @param {Object} [context.outletArgs] - Outlet args for source resolution.
|
|
176
|
-
* @param {number} [context._depth] - Current nesting depth for logging.
|
|
177
|
-
* @returns {boolean} True if condition passes, false otherwise.
|
|
202
|
+
* @param args - The condition arguments from the layout entry.
|
|
203
|
+
* @param context - Evaluation context from the blocks service.
|
|
204
|
+
* @returns True if condition passes, false otherwise.
|
|
178
205
|
*/
|
|
179
|
-
evaluate(args:
|
|
180
|
-
debug?: boolean;
|
|
181
|
-
outletArgs?: any;
|
|
182
|
-
_depth?: number;
|
|
183
|
-
}): boolean;
|
|
206
|
+
evaluate(args: Record<string, unknown>, context?: ConditionContext): boolean;
|
|
184
207
|
/**
|
|
185
208
|
* Returns the resolved value for debug logging purposes.
|
|
186
209
|
*
|
|
@@ -189,14 +212,10 @@ export class BlockCondition {
|
|
|
189
212
|
* For example, the `outletArg` condition uses a `path` parameter
|
|
190
213
|
* to resolve values from outlet args.
|
|
191
214
|
*
|
|
192
|
-
* @param
|
|
193
|
-
* @param
|
|
194
|
-
* @returns
|
|
195
|
-
* or undefined if this condition doesn't resolve values.
|
|
215
|
+
* @param args - The condition arguments from the layout entry.
|
|
216
|
+
* @param context - Evaluation context containing outletArgs.
|
|
217
|
+
* @returns Object with resolved value, or undefined if this condition doesn't resolve values.
|
|
196
218
|
*/
|
|
197
|
-
getResolvedValueForLogging(args:
|
|
198
|
-
value: any;
|
|
199
|
-
hasValue: true;
|
|
200
|
-
} | undefined;
|
|
219
|
+
getResolvedValueForLogging(args: Record<string, unknown>, context?: ConditionContext): ConditionResolvedValue | undefined;
|
|
201
220
|
}
|
|
202
221
|
//# sourceMappingURL=condition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/blocks/conditions/condition.
|
|
1
|
+
{"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/blocks/conditions/condition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AAExF;;;;;;;GAOG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,YAAY,GAAG,QAAQ,CAAC;AAEnE;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAChC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC1B,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC;AAE1C;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,4DAA4D;IAC5D,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB,gFAAgF;IAChF,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAErC,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;+CAC2C;IAC3C,MAAM,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;CACtC;AAED;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,+CAA+C;IAC/C,QAAQ,EAAE,IAAI,CAAC;IAEf,oEAAoE;IACpE,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB,mFAAmF;IACnF,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;6FACyF;IACzF,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AACH,qBAAa,cAAc;IACzB;;;;;;OAMG;IACH,OAAe,IAAI,EAAE,MAAM,CAAC;IAE5B;;;;;;;;;OASG;IACH,MAAM,CAAC,UAAU,EAAE,mBAAmB,CAAU;IAEhD;;;;;;OAMG;IACH,OAAe,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC;IAE/D;;;;;;OAMG;IACH,OAAe,WAAW,EAAE,QAAQ,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC;IAEnE;;;;;;OAMG;IACH,OAAe,UAAU,EAAE,mBAAmB,GAAG,SAAS,CAAC;IAE3D;;;;;;;;OAQG;IACH,OAAe,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IAE/C;;;;;;;;;;OAUG;IACH,aAAa,CACX,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,CAAC,EAAE,gBAAgB,GACzB,OAAO;IAyBV;;;OAGG;IACH,IAAI,aAAa,IAAI,OAAO,CAE3B;IAED;;;;;;OAMG;IACH,cAAc,CACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,CAAC,EAAE,gBAAgB,GACzB,OAAO;IAMV;;;;;;;;;;;OAWG;IAEH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,OAAO;IAI5E;;;;;;;;;;;OAWG;IACH,0BAA0B,CACxB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,CAAC,EAAE,gBAAgB,GACzB,sBAAsB,GAAG,SAAS;CAOtC"}
|
|
@@ -1,14 +1,33 @@
|
|
|
1
|
+
import type { ArgSchema, BlockConstraints } from "discourse/blocks/types";
|
|
2
|
+
import { BlockCondition, type ConditionSourceType, type ConditionValidateFn } from "./condition";
|
|
1
3
|
/**
|
|
2
|
-
* Checks if a class was decorated with
|
|
4
|
+
* Checks if a class was decorated with `@blockCondition`.
|
|
3
5
|
* Used by the block registration system to reject non-decorated classes.
|
|
4
6
|
*
|
|
5
7
|
* @experimental This API is under active development and may change or be removed
|
|
6
8
|
* in future releases without prior notice. Use with caution in production environments.
|
|
7
9
|
*
|
|
8
|
-
* @param
|
|
9
|
-
*
|
|
10
|
+
* @param ConditionClass - The class to check. Widened to `object` (rather than
|
|
11
|
+
* a condition-class type) because this is also probed defensively before a
|
|
12
|
+
* class is known to extend `BlockCondition`.
|
|
13
|
+
* @returns True if the class was decorated.
|
|
10
14
|
*/
|
|
11
|
-
export function isDecoratedCondition(ConditionClass:
|
|
15
|
+
export declare function isDecoratedCondition(ConditionClass: object): boolean;
|
|
16
|
+
/** Configuration accepted by the `@blockCondition` decorator. */
|
|
17
|
+
export interface BlockConditionConfig {
|
|
18
|
+
/** Unique condition type identifier. */
|
|
19
|
+
type: string;
|
|
20
|
+
/** How the `source` parameter is handled. Defaults to `"none"`. */
|
|
21
|
+
sourceType?: ConditionSourceType;
|
|
22
|
+
/** Arg schema definitions (type, required, min, max, pattern, etc.).
|
|
23
|
+
* Use `{ type: "any" }` to allow any type. */
|
|
24
|
+
args?: Record<string, ArgSchema>;
|
|
25
|
+
/** Cross-arg constraints (atLeastOne, exactlyOne, allOrNone, atMostOne). */
|
|
26
|
+
constraints?: BlockConstraints;
|
|
27
|
+
/** Custom validation function called at registration time. Receives the
|
|
28
|
+
* args object, returns an error string/array or null. */
|
|
29
|
+
validate?: ConditionValidateFn;
|
|
30
|
+
}
|
|
12
31
|
/**
|
|
13
32
|
* Decorator to define a block condition with declarative arg validation.
|
|
14
33
|
*
|
|
@@ -19,17 +38,10 @@ export function isDecoratedCondition(ConditionClass: Function): boolean;
|
|
|
19
38
|
* @experimental This API is under active development and may change or be removed
|
|
20
39
|
* in future releases without prior notice. Use with caution in production environments.
|
|
21
40
|
*
|
|
22
|
-
* @
|
|
23
|
-
* @param {string} config.type - Unique condition type identifier.
|
|
24
|
-
* @param {"none"|"outletArgs"|"object"} [config.sourceType="none"] - How source parameter is handled.
|
|
25
|
-
* @param {Object} [config.args={}] - Arg schema definitions (type, required, min, max, pattern, etc.).
|
|
26
|
-
* Use `{ type: "any" }` to allow any type.
|
|
27
|
-
* @param {Object} [config.constraints] - Cross-arg constraints (atLeastOne, exactlyOne, allOrNone, atMostOne).
|
|
28
|
-
* @param {Function} [config.validate] - Custom validation function called at registration time.
|
|
29
|
-
* Receives args object, returns error string/array or null.
|
|
30
|
-
* @throws {Error} If config is invalid or class doesn't extend BlockCondition.
|
|
41
|
+
* @throws Error If config is invalid or class doesn't extend BlockCondition.
|
|
31
42
|
*
|
|
32
43
|
* @example
|
|
44
|
+
* ```javascript
|
|
33
45
|
* import { blockCondition, BlockCondition } from "discourse/blocks/conditions";
|
|
34
46
|
*
|
|
35
47
|
* @blockCondition({
|
|
@@ -52,8 +64,10 @@ export function isDecoratedCondition(ConditionClass: Function): boolean;
|
|
|
52
64
|
* @service currentUser;
|
|
53
65
|
* evaluate(args, context) { ... }
|
|
54
66
|
* }
|
|
67
|
+
* ```
|
|
55
68
|
*
|
|
56
69
|
* @example
|
|
70
|
+
* ```javascript
|
|
57
71
|
* // With constraints
|
|
58
72
|
* @blockCondition({
|
|
59
73
|
* type: "setting",
|
|
@@ -68,12 +82,7 @@ export function isDecoratedCondition(ConditionClass: Function): boolean;
|
|
|
68
82
|
* atMostOne: ["enabled", "equals", "includes"],
|
|
69
83
|
* },
|
|
70
84
|
* })
|
|
85
|
+
* ```
|
|
71
86
|
*/
|
|
72
|
-
export function blockCondition(config:
|
|
73
|
-
type: string;
|
|
74
|
-
sourceType?: "none" | "outletArgs" | "object";
|
|
75
|
-
args?: any;
|
|
76
|
-
constraints?: any;
|
|
77
|
-
validate?: Function;
|
|
78
|
-
}): (TargetClass: any) => any;
|
|
87
|
+
export declare function blockCondition(config: BlockConditionConfig): <T extends typeof BlockCondition>(TargetClass: T) => T;
|
|
79
88
|
//# sourceMappingURL=decorator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorator.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/blocks/conditions/decorator.
|
|
1
|
+
{"version":3,"file":"decorator.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/blocks/conditions/decorator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAU1E,OAAO,EACL,cAAc,EACd,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACzB,MAAM,aAAa,CAAC;AA4BrB;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAEpE;AAED,iEAAiE;AACjE,MAAM,WAAW,oBAAoB;IACnC,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;IAEb,mEAAmE;IACnE,UAAU,CAAC,EAAE,mBAAmB,CAAC;IAEjC;mDAC+C;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAEjC,4EAA4E;IAC5E,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAE/B;8DAC0D;IAC1D,QAAQ,CAAC,EAAE,mBAAmB,CAAC;CAChC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,oBAAoB,GAC3B,CAAC,CAAC,SAAS,OAAO,cAAc,EAAE,WAAW,EAAE,CAAC,KAAK,CAAC,CAiHxD"}
|