@discourse/types 2026.8.0-b88e77d4 → 2026.9.0-eb242063
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/declarations/admin/components/admin-badges-show.d.ts.map +1 -1
- package/declarations/admin/components/admin-config-areas/components.d.ts.map +1 -1
- package/declarations/admin/components/admin-config-areas/upcoming-change-item.d.ts +1 -1
- package/declarations/admin/components/admin-config-areas/upcoming-change-item.d.ts.map +1 -1
- package/declarations/admin/components/admin-plugin-config-page.d.ts +1 -0
- package/declarations/admin/components/admin-plugin-config-page.d.ts.map +1 -1
- package/declarations/admin/components/admin-plugins-list-item.d.ts.map +1 -1
- package/declarations/admin/components/admin-report-stacked-chart.d.ts +1 -1
- package/declarations/admin/components/admin-report-stacked-chart.d.ts.map +1 -1
- package/declarations/admin/components/dashboard/engagement/headline.d.ts +4 -3
- package/declarations/admin/components/dashboard/engagement/headline.d.ts.map +1 -1
- package/declarations/admin/components/dashboard/report-error-state.d.ts +3 -0
- package/declarations/admin/components/dashboard/report-error-state.d.ts.map +1 -0
- package/declarations/admin/components/dashboard/reports.d.ts.map +1 -1
- package/declarations/admin/components/dashboard/search.d.ts +5 -3
- package/declarations/admin/components/dashboard/search.d.ts.map +1 -1
- package/declarations/admin/components/dashboard/traffic.d.ts +8 -0
- package/declarations/admin/components/dashboard/traffic.d.ts.map +1 -1
- package/declarations/admin/components/edit-category-localizations.d.ts.map +1 -1
- package/declarations/admin/components/edit-category-panel.d.ts +0 -5
- package/declarations/admin/components/edit-category-panel.d.ts.map +1 -1
- package/declarations/admin/components/form-template/form.d.ts.map +1 -1
- package/declarations/admin/components/modal/badge-preview.d.ts.map +1 -1
- package/declarations/admin/components/redesigned-admin-dashboard.d.ts.map +1 -1
- package/declarations/admin/components/schema-setting/field.d.ts +2 -1
- package/declarations/admin/components/schema-setting/field.d.ts.map +1 -1
- package/declarations/admin/components/schema-setting/types/icon.d.ts +10 -0
- package/declarations/admin/components/schema-setting/types/icon.d.ts.map +1 -0
- package/declarations/admin/components/site-setting.d.ts +12 -1
- package/declarations/admin/components/site-setting.d.ts.map +1 -1
- package/declarations/admin/components/site-settings/icon.d.ts.map +1 -1
- package/declarations/admin/components/site-settings/integer.d.ts +0 -1
- package/declarations/admin/components/site-settings/integer.d.ts.map +1 -1
- package/declarations/admin/components/site-traffic-explorer-breakdown-card.d.ts +21 -0
- package/declarations/admin/components/site-traffic-explorer-breakdown-card.d.ts.map +1 -0
- package/declarations/admin/components/site-traffic-explorer-breakdown-modal.d.ts +10 -0
- package/declarations/admin/components/site-traffic-explorer-breakdown-modal.d.ts.map +1 -0
- package/declarations/admin/components/site-traffic-explorer-breakdown-row.d.ts +3 -0
- package/declarations/admin/components/site-traffic-explorer-breakdown-row.d.ts.map +1 -0
- package/declarations/admin/components/site-traffic-explorer-dimension-label.d.ts +8 -0
- package/declarations/admin/components/site-traffic-explorer-dimension-label.d.ts.map +1 -0
- package/declarations/admin/components/site-traffic-explorer-filter-pills.d.ts +16 -0
- package/declarations/admin/components/site-traffic-explorer-filter-pills.d.ts.map +1 -0
- package/declarations/admin/components/site-traffic-explorer-metric.d.ts +3 -0
- package/declarations/admin/components/site-traffic-explorer-metric.d.ts.map +1 -0
- package/declarations/admin/components/site-traffic-explorer-pageview-count.d.ts +3 -0
- package/declarations/admin/components/site-traffic-explorer-pageview-count.d.ts.map +1 -0
- package/declarations/admin/components/site-traffic-explorer.d.ts +67 -0
- package/declarations/admin/components/site-traffic-explorer.d.ts.map +1 -0
- package/declarations/admin/components/upsert-category/appearance.d.ts +6 -10
- package/declarations/admin/components/upsert-category/appearance.d.ts.map +1 -1
- package/declarations/admin/components/version-checks.d.ts.map +1 -1
- package/declarations/admin/controllers/admin/dashboard/general.d.ts +1 -2
- package/declarations/admin/controllers/admin/dashboard/general.d.ts.map +1 -1
- package/declarations/admin/controllers/admin/dashboard.d.ts +1 -3
- package/declarations/admin/controllers/admin/dashboard.d.ts.map +1 -1
- package/declarations/admin/controllers/admin-customize-themes/show/index.d.ts +2 -0
- package/declarations/admin/controllers/admin-customize-themes/show/index.d.ts.map +1 -1
- package/declarations/admin/controllers/admin-plugins/index.d.ts +0 -3
- package/declarations/admin/controllers/admin-plugins/index.d.ts.map +1 -1
- package/declarations/admin/controllers/admin-plugins.d.ts +2 -2
- package/declarations/admin/controllers/admin-plugins.d.ts.map +1 -1
- package/declarations/admin/controllers/admin-search-logs/index.d.ts +2 -1
- package/declarations/admin/controllers/admin-search-logs/index.d.ts.map +1 -1
- package/declarations/admin/controllers/admin-search-logs/term.d.ts +2 -1
- package/declarations/admin/controllers/admin-search-logs/term.d.ts.map +1 -1
- package/declarations/admin/controllers/admin-site-traffic.d.ts +50 -0
- package/declarations/admin/controllers/admin-site-traffic.d.ts.map +1 -0
- package/declarations/admin/controllers/admin-watched-words/action.d.ts +2 -0
- package/declarations/admin/controllers/admin-watched-words/action.d.ts.map +1 -1
- package/declarations/admin/lib/color-scheme-manager.d.ts +44 -0
- package/declarations/admin/lib/color-scheme-manager.d.ts.map +1 -1
- package/declarations/admin/lib/constants.d.ts.map +1 -1
- package/declarations/admin/lib/dashboard-format.d.ts +1 -0
- package/declarations/admin/lib/dashboard-format.d.ts.map +1 -1
- package/declarations/admin/lib/engagement-headline.d.ts +2 -0
- package/declarations/admin/lib/engagement-headline.d.ts.map +1 -0
- package/declarations/admin/lib/format-pageview-count.d.ts +4 -0
- package/declarations/admin/lib/format-pageview-count.d.ts.map +1 -0
- package/declarations/admin/lib/search-headline.d.ts +2 -0
- package/declarations/admin/lib/search-headline.d.ts.map +1 -0
- package/declarations/admin/models/admin-dashboard.d.ts +1 -1
- package/declarations/admin/models/admin-dashboard.d.ts.map +1 -1
- package/declarations/admin/models/site-setting.d.ts +2 -0
- package/declarations/admin/models/site-setting.d.ts.map +1 -1
- package/declarations/admin/models/staff-action-log.d.ts.map +1 -1
- package/declarations/admin/routes/admin-route-map.d.ts.map +1 -1
- package/declarations/admin/routes/admin-site-traffic.d.ts +52 -0
- package/declarations/admin/routes/admin-site-traffic.d.ts.map +1 -0
- package/declarations/admin/routes/new-category.d.ts.map +1 -1
- package/declarations/admin/services/admin-emojis.d.ts.map +1 -1
- package/declarations/admin/templates/admin-site-traffic-loading.d.ts +3 -0
- package/declarations/admin/templates/admin-site-traffic-loading.d.ts.map +1 -0
- package/declarations/admin/templates/admin-site-traffic.d.ts +3 -0
- package/declarations/admin/templates/admin-site-traffic.d.ts.map +1 -0
- package/declarations/app/adapters/topic-list.d.ts +2 -1
- package/declarations/app/adapters/topic-list.d.ts.map +1 -1
- package/declarations/app/app.d.ts +1 -1
- package/declarations/app/blocks/block-outlet.d.ts +51 -76
- package/declarations/app/blocks/block-outlet.d.ts.map +1 -1
- package/declarations/app/blocks/builtin/block-group.d.ts +10 -4
- package/declarations/app/blocks/builtin/block-group.d.ts.map +1 -1
- package/declarations/app/blocks/builtin/block-head.d.ts +19 -11
- package/declarations/app/blocks/builtin/block-head.d.ts.map +1 -1
- package/declarations/app/blocks/builtin/index.d.ts +30 -0
- package/declarations/app/blocks/builtin/index.d.ts.map +1 -1
- package/declarations/app/blocks/conditions/condition.d.ts +71 -52
- package/declarations/app/blocks/conditions/condition.d.ts.map +1 -1
- package/declarations/app/blocks/conditions/decorator.d.ts +29 -20
- package/declarations/app/blocks/conditions/decorator.d.ts.map +1 -1
- package/declarations/app/blocks/conditions/index.d.ts +2 -0
- package/declarations/app/blocks/conditions/index.d.ts.map +1 -1
- package/declarations/app/blocks/conditions/outlet-arg.d.ts +17 -36
- package/declarations/app/blocks/conditions/outlet-arg.d.ts.map +1 -1
- package/declarations/app/blocks/conditions/route.d.ts +19 -21
- package/declarations/app/blocks/conditions/route.d.ts.map +1 -1
- package/declarations/app/blocks/conditions/setting.d.ts +21 -28
- package/declarations/app/blocks/conditions/setting.d.ts.map +1 -1
- package/declarations/app/blocks/conditions/user.d.ts +23 -14
- package/declarations/app/blocks/conditions/user.d.ts.map +1 -1
- package/declarations/app/blocks/conditions/viewport.d.ts +17 -18
- package/declarations/app/blocks/conditions/viewport.d.ts.map +1 -1
- package/declarations/app/blocks/index.d.ts +7 -0
- package/declarations/app/blocks/index.d.ts.map +1 -1
- package/declarations/app/blocks/types.d.ts +153 -0
- package/declarations/app/blocks/types.d.ts.map +1 -0
- package/declarations/app/components/about-page-extra-groups.d.ts.map +1 -1
- package/declarations/app/components/ace-editor.d.ts +3 -0
- package/declarations/app/components/ace-editor.d.ts.map +1 -1
- package/declarations/app/components/admin-onboarding/banner.d.ts +8 -1
- package/declarations/app/components/admin-onboarding/banner.d.ts.map +1 -1
- package/declarations/app/components/admin-onboarding/step.d.ts +2 -2
- package/declarations/app/components/admin-onboarding/step.d.ts.map +1 -1
- package/declarations/app/components/advanced-mode-toggle.d.ts +6 -2
- package/declarations/app/components/advanced-mode-toggle.d.ts.map +1 -1
- package/declarations/app/components/bookmark-icon.d.ts +1 -1
- package/declarations/app/components/bookmark-menu.d.ts +1 -1
- package/declarations/app/components/bulk-select-topics-dropdown.d.ts +1 -0
- package/declarations/app/components/bulk-select-topics-dropdown.d.ts.map +1 -1
- package/declarations/app/components/categories-boxes.d.ts +2 -0
- package/declarations/app/components/categories-boxes.d.ts.map +1 -1
- package/declarations/app/components/category-list-item.d.ts +4 -0
- package/declarations/app/components/category-list-item.d.ts.map +1 -1
- package/declarations/app/components/code-login-form.d.ts.map +1 -1
- package/declarations/app/components/composer-action-title.d.ts +0 -8
- package/declarations/app/components/composer-action-title.d.ts.map +1 -1
- package/declarations/app/components/{composer-actions-new.d.ts → composer-actions.d.ts} +1 -1
- package/declarations/app/components/composer-actions.d.ts.map +1 -0
- package/declarations/app/components/composer-body.d.ts +1 -1
- package/declarations/app/components/composer-body.d.ts.map +1 -1
- package/declarations/app/components/composer-container.d.ts +4 -2
- package/declarations/app/components/composer-container.d.ts.map +1 -1
- package/declarations/app/components/composer-editor.d.ts +3 -0
- package/declarations/app/components/composer-editor.d.ts.map +1 -1
- package/declarations/app/components/composer-messages.d.ts.map +1 -1
- package/declarations/app/components/create-topic-button.d.ts +5 -0
- package/declarations/app/components/create-topic-button.d.ts.map +1 -1
- package/declarations/app/components/design-wizard/colors-section.d.ts +3 -0
- package/declarations/app/components/design-wizard/colors-section.d.ts.map +1 -0
- package/declarations/app/components/design-wizard/controls.d.ts +23 -0
- package/declarations/app/components/design-wizard/controls.d.ts.map +1 -0
- package/declarations/app/components/design-wizard/fonts-section.d.ts +9 -0
- package/declarations/app/components/design-wizard/fonts-section.d.ts.map +1 -0
- package/declarations/app/components/design-wizard/homepage-section.d.ts +3 -0
- package/declarations/app/components/design-wizard/homepage-section.d.ts.map +1 -0
- package/declarations/app/components/design-wizard/section.d.ts +3 -0
- package/declarations/app/components/design-wizard/section.d.ts.map +1 -0
- package/declarations/app/components/design-wizard/theme-section.d.ts +3 -0
- package/declarations/app/components/design-wizard/theme-section.d.ts.map +1 -0
- package/declarations/app/components/design-wizard-panel.d.ts +9 -0
- package/declarations/app/components/design-wizard-panel.d.ts.map +1 -0
- package/declarations/app/components/docked-composer.d.ts.map +1 -1
- package/declarations/app/components/form-template-field/composer.d.ts +8 -1
- package/declarations/app/components/form-template-field/composer.d.ts.map +1 -1
- package/declarations/app/components/group-flair-inputs.d.ts +0 -1
- package/declarations/app/components/group-flair-inputs.d.ts.map +1 -1
- package/declarations/app/components/header/icons.d.ts.map +1 -1
- package/declarations/app/components/header/topic/info.d.ts.map +1 -1
- package/declarations/app/components/invite-panel.d.ts.map +1 -1
- package/declarations/app/components/language-switcher.d.ts.map +1 -1
- package/declarations/app/components/modal/bookmark.d.ts.map +1 -1
- package/declarations/app/components/modal/bulk-topic-actions.d.ts.map +1 -1
- package/declarations/app/components/modal/content-language-preferences.d.ts +3 -1
- package/declarations/app/components/modal/content-language-preferences.d.ts.map +1 -1
- package/declarations/app/components/modal/create-invite-with-roles.d.ts +11 -3
- package/declarations/app/components/modal/create-invite-with-roles.d.ts.map +1 -1
- package/declarations/app/components/modal/create-invite.d.ts.map +1 -1
- package/declarations/app/components/modal/flag.d.ts +2 -2
- package/declarations/app/components/modal/history.d.ts +1 -1
- package/declarations/app/components/modal/keyboard-shortcuts-help.d.ts.map +1 -1
- package/declarations/app/components/modal/sidebar-section-form.d.ts +53 -19
- package/declarations/app/components/modal/sidebar-section-form.d.ts.map +1 -1
- package/declarations/app/components/parent-category-row.d.ts +1 -0
- package/declarations/app/components/parent-category-row.d.ts.map +1 -1
- package/declarations/app/components/plugin-outlet.d.ts +11 -1
- package/declarations/app/components/plugin-outlet.d.ts.map +1 -1
- package/declarations/app/components/post/menu/liked-users-list.d.ts +2 -13
- package/declarations/app/components/post/menu/liked-users-list.d.ts.map +1 -1
- package/declarations/app/components/post/menu/liked-users-menu.d.ts.map +1 -1
- package/declarations/app/components/post-stream.d.ts +2 -5
- package/declarations/app/components/post-stream.d.ts.map +1 -1
- package/declarations/app/components/post.d.ts +1 -1
- package/declarations/app/components/post.d.ts.map +1 -1
- package/declarations/app/components/reviewable/index.d.ts +2 -5
- package/declarations/app/components/reviewable/index.d.ts.map +1 -1
- package/declarations/app/components/reviewable/insights.d.ts.map +1 -1
- package/declarations/app/components/reviewable/item.d.ts +10 -12
- package/declarations/app/components/reviewable/item.d.ts.map +1 -1
- package/declarations/app/components/reviewable/timeline.d.ts +1 -7
- package/declarations/app/components/reviewable/timeline.d.ts.map +1 -1
- package/declarations/app/components/reviewable-bundled-action.d.ts +1 -1
- package/declarations/app/components/reviewable-bundled-action.d.ts.map +1 -1
- package/declarations/app/components/setting-definition-field.d.ts.map +1 -1
- package/declarations/app/components/setting-field/category.d.ts +7 -0
- package/declarations/app/components/setting-field/category.d.ts.map +1 -0
- package/declarations/app/components/setting-field/enum.d.ts +5 -0
- package/declarations/app/components/setting-field/enum.d.ts.map +1 -1
- package/declarations/app/components/setting-field/group.d.ts +9 -0
- package/declarations/app/components/setting-field/group.d.ts.map +1 -0
- package/declarations/app/components/setting-field/icon.d.ts +3 -0
- package/declarations/app/components/setting-field/icon.d.ts.map +1 -0
- package/declarations/app/components/setting-field/integer.d.ts +1 -0
- package/declarations/app/components/setting-field/integer.d.ts.map +1 -1
- package/declarations/app/components/setting-field/locale-enum.d.ts +5 -0
- package/declarations/app/components/setting-field/locale-enum.d.ts.map +1 -0
- package/declarations/app/components/setting-field/tag-group-list.d.ts +7 -0
- package/declarations/app/components/setting-field/tag-group-list.d.ts.map +1 -0
- package/declarations/app/components/setting-field/tag-list.d.ts +7 -0
- package/declarations/app/components/setting-field/tag-list.d.ts.map +1 -0
- package/declarations/app/components/sidebar/anonymous/categories-section.d.ts +2 -0
- package/declarations/app/components/sidebar/anonymous/categories-section.d.ts.map +1 -1
- package/declarations/app/components/sidebar/anonymous/sections.d.ts +2 -0
- package/declarations/app/components/sidebar/anonymous/sections.d.ts.map +1 -1
- package/declarations/app/components/sidebar/anonymous/tags-section.d.ts +2 -0
- package/declarations/app/components/sidebar/anonymous/tags-section.d.ts.map +1 -1
- package/declarations/app/components/sidebar/api-section.d.ts +6 -2
- package/declarations/app/components/sidebar/api-section.d.ts.map +1 -1
- package/declarations/app/components/sidebar/api-sections.d.ts.map +1 -1
- package/declarations/app/components/sidebar/common/all-categories-section-link.d.ts +6 -2
- package/declarations/app/components/sidebar/common/all-categories-section-link.d.ts.map +1 -1
- package/declarations/app/components/sidebar/common/all-tags-section-link.d.ts +6 -2
- package/declarations/app/components/sidebar/common/all-tags-section-link.d.ts.map +1 -1
- package/declarations/app/components/sidebar/common/custom-section.d.ts +1 -0
- package/declarations/app/components/sidebar/common/custom-section.d.ts.map +1 -1
- package/declarations/app/components/sidebar/common/custom-sections.d.ts.map +1 -1
- package/declarations/app/components/sidebar/more-section-link.d.ts.map +1 -1
- package/declarations/app/components/sidebar/more-section-links.d.ts +2 -0
- package/declarations/app/components/sidebar/more-section-links.d.ts.map +1 -1
- package/declarations/app/components/sidebar/more-section-trigger.d.ts.map +1 -1
- package/declarations/app/components/sidebar/section-form-link.d.ts +0 -2
- package/declarations/app/components/sidebar/section-form-link.d.ts.map +1 -1
- package/declarations/app/components/sidebar/section-link.d.ts.map +1 -1
- package/declarations/app/components/sidebar/section.d.ts +57 -1
- package/declarations/app/components/sidebar/section.d.ts.map +1 -1
- package/declarations/app/components/sidebar/sections.d.ts.map +1 -1
- package/declarations/app/components/sidebar/user/categories-section.d.ts +2 -0
- package/declarations/app/components/sidebar/user/categories-section.d.ts.map +1 -1
- package/declarations/app/components/sidebar/user/sections.d.ts +38 -0
- package/declarations/app/components/sidebar/user/sections.d.ts.map +1 -1
- package/declarations/app/components/sidebar/user/tags-section.d.ts +2 -0
- package/declarations/app/components/sidebar/user/tags-section.d.ts.map +1 -1
- package/declarations/app/components/sidebar.d.ts +12 -0
- package/declarations/app/components/sidebar.d.ts.map +1 -1
- package/declarations/app/components/subcategories-with-featured-topics.d.ts +1 -0
- package/declarations/app/components/subcategories-with-featured-topics.d.ts.map +1 -1
- package/declarations/app/components/tag-settings.d.ts.map +1 -1
- package/declarations/app/components/topic-bookmarks-menu.d.ts +1 -1
- package/declarations/app/components/topic-category.d.ts.map +1 -1
- package/declarations/app/components/topic-dismiss-buttons.d.ts.map +1 -1
- package/declarations/app/components/topic-drafts-dropdown.d.ts.map +1 -1
- package/declarations/app/components/topic-footer-buttons.d.ts +0 -2
- package/declarations/app/components/topic-footer-buttons.d.ts.map +1 -1
- package/declarations/app/components/topic-list/header/sortable-column.d.ts +1 -0
- package/declarations/app/components/topic-list/header/sortable-column.d.ts.map +1 -1
- package/declarations/app/components/topic-post-badges.d.ts.map +1 -1
- package/declarations/app/components/topic-timeline/container.d.ts.map +1 -1
- package/declarations/app/components/topic-timeline/scroller.d.ts.map +1 -1
- package/declarations/app/components/user/users-popup.d.ts +7 -0
- package/declarations/app/components/user/users-popup.d.ts.map +1 -1
- package/declarations/app/components/user-menu/bookmarks-list.d.ts.map +1 -1
- package/declarations/app/components/user-menu/items-list.d.ts +1 -1
- package/declarations/app/components/user-menu/items-list.d.ts.map +1 -1
- package/declarations/app/components/user-menu/likes-notifications-list.d.ts.map +1 -1
- package/declarations/app/components/user-menu/messages-list.d.ts.map +1 -1
- package/declarations/app/components/user-menu/notifications-list.d.ts.map +1 -1
- package/declarations/app/components/user-menu/other-notifications-list.d.ts.map +1 -1
- package/declarations/app/components/user-menu/replies-notifications-list.d.ts.map +1 -1
- package/declarations/app/components/welcome-banner.d.ts.map +1 -1
- package/declarations/app/controllers/exception.d.ts +5 -6
- package/declarations/app/controllers/exception.d.ts.map +1 -1
- package/declarations/app/controllers/full-page-search.d.ts.map +1 -1
- package/declarations/app/controllers/preferences/interface.d.ts +0 -1
- package/declarations/app/controllers/preferences/interface.d.ts.map +1 -1
- package/declarations/app/controllers/topic.d.ts.map +1 -1
- package/declarations/app/deprecation-workflow.d.ts.map +1 -1
- package/declarations/app/form-kit/components/fk/control/checkbox.d.ts.map +1 -1
- package/declarations/app/form-kit/components/fk/control/icon.d.ts.map +1 -1
- package/declarations/app/form-kit/components/fk/control/input.d.ts +2 -0
- package/declarations/app/form-kit/components/fk/control/input.d.ts.map +1 -1
- package/declarations/app/form-kit/components/fk/control/password.d.ts.map +1 -1
- package/declarations/app/form-kit/components/fk/control/tag-chooser.d.ts.map +1 -1
- package/declarations/app/form-kit/components/fk/field-data.d.ts +15 -4
- package/declarations/app/form-kit/components/fk/field-data.d.ts.map +1 -1
- package/declarations/app/form-kit/components/fk/form.d.ts.map +1 -1
- package/declarations/app/form-kit/lib/constants.d.ts +0 -1
- package/declarations/app/form-kit/lib/constants.d.ts.map +1 -1
- package/declarations/app/form-kit/lib/validator.d.ts.map +1 -1
- package/declarations/app/helpers/category-list-subcategories.d.ts +30 -0
- package/declarations/app/helpers/category-list-subcategories.d.ts.map +1 -0
- package/declarations/app/initializers/dev-tools.d.ts +10 -3
- package/declarations/app/initializers/dev-tools.d.ts.map +1 -1
- package/declarations/app/initializers/freeze-block-registry.d.ts +21 -6
- package/declarations/app/initializers/freeze-block-registry.d.ts.map +1 -1
- package/declarations/app/instance-initializers/topic-footer-buttons.d.ts.map +1 -1
- package/declarations/app/instance-initializers/video-placeholder.d.ts.map +1 -1
- package/declarations/app/lib/-internals/drag-and-drop/consumer-may-throw.d.ts +17 -0
- package/declarations/app/lib/-internals/drag-and-drop/consumer-may-throw.d.ts.map +1 -0
- package/declarations/app/lib/-internals/drag-and-drop/drag-dwell.d.ts +64 -0
- package/declarations/app/lib/-internals/drag-and-drop/drag-dwell.d.ts.map +1 -0
- package/declarations/app/lib/-internals/drag-and-drop/drop-target-kernel.d.ts +145 -0
- package/declarations/app/lib/-internals/drag-and-drop/drop-target-kernel.d.ts.map +1 -0
- package/declarations/app/lib/-internals/drag-and-drop/external-vocabulary.d.ts +63 -0
- package/declarations/app/lib/-internals/drag-and-drop/external-vocabulary.d.ts.map +1 -0
- package/declarations/app/lib/-internals/drag-and-drop/native-drag-adoption.d.ts +60 -0
- package/declarations/app/lib/-internals/drag-and-drop/native-drag-adoption.d.ts.map +1 -0
- package/declarations/app/lib/-internals/drag-and-drop/vocabulary.d.ts +81 -0
- package/declarations/app/lib/-internals/drag-and-drop/vocabulary.d.ts.map +1 -0
- package/declarations/app/lib/api.d.ts +1 -0
- package/declarations/app/lib/api.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/components/block-layout-wrapper.d.ts +14 -78
- package/declarations/app/lib/blocks/-internals/components/block-layout-wrapper.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/components/block-outlet-inline-error.d.ts +10 -7
- package/declarations/app/lib/blocks/-internals/components/block-outlet-inline-error.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/components/block-outlet-root-container.d.ts +21 -12
- package/declarations/app/lib/blocks/-internals/components/block-outlet-root-container.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/css.d.ts +21 -24
- package/declarations/app/lib/blocks/-internals/css.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/debug-hooks.d.ts +193 -138
- package/declarations/app/lib/blocks/-internals/debug-hooks.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/decorator.d.ts +43 -216
- package/declarations/app/lib/blocks/-internals/decorator.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/entry-processing.d.ts +61 -129
- package/declarations/app/lib/blocks/-internals/entry-processing.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/error.d.ts +61 -69
- package/declarations/app/lib/blocks/-internals/error.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/matching/condition-evaluator.d.ts +18 -12
- package/declarations/app/lib/blocks/-internals/matching/condition-evaluator.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/matching/outlet-matcher.d.ts +64 -37
- package/declarations/app/lib/blocks/-internals/matching/outlet-matcher.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/matching/page-definitions.d.ts +105 -106
- package/declarations/app/lib/blocks/-internals/matching/page-definitions.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/matching/url-matcher.d.ts +19 -11
- package/declarations/app/lib/blocks/-internals/matching/url-matcher.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/matching/value-matcher.d.ts +42 -34
- package/declarations/app/lib/blocks/-internals/matching/value-matcher.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/patterns.d.ts +85 -83
- package/declarations/app/lib/blocks/-internals/patterns.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/registry/block.d.ts +47 -85
- package/declarations/app/lib/blocks/-internals/registry/block.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/registry/condition.d.ts +26 -26
- package/declarations/app/lib/blocks/-internals/registry/condition.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/registry/helpers.d.ts +54 -47
- package/declarations/app/lib/blocks/-internals/registry/helpers.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/registry/outlet.d.ts +30 -25
- package/declarations/app/lib/blocks/-internals/registry/outlet.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/types.d.ts +58 -0
- package/declarations/app/lib/blocks/-internals/types.d.ts.map +1 -0
- package/declarations/app/lib/blocks/-internals/utils.d.ts +59 -86
- package/declarations/app/lib/blocks/-internals/utils.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/validation/args.d.ts +178 -224
- package/declarations/app/lib/blocks/-internals/validation/args.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/validation/block-args.d.ts +32 -23
- package/declarations/app/lib/blocks/-internals/validation/block-args.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/validation/block-decorator.d.ts +23 -17
- package/declarations/app/lib/blocks/-internals/validation/block-decorator.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/validation/condition-args.d.ts +26 -16
- package/declarations/app/lib/blocks/-internals/validation/condition-args.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/validation/conditions.d.ts +23 -18
- package/declarations/app/lib/blocks/-internals/validation/conditions.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/validation/constraints.d.ts +31 -17
- package/declarations/app/lib/blocks/-internals/validation/constraints.d.ts.map +1 -1
- package/declarations/app/lib/blocks/-internals/validation/layout.d.ts +77 -85
- package/declarations/app/lib/blocks/-internals/validation/layout.d.ts.map +1 -1
- package/declarations/app/lib/blocks/index.d.ts +127 -2
- package/declarations/app/lib/blocks/index.d.ts.map +1 -1
- package/declarations/app/lib/codeblock-buttons.d.ts.map +1 -1
- package/declarations/app/lib/composer/actions-registry.d.ts +4 -0
- package/declarations/app/lib/composer/actions-registry.d.ts.map +1 -0
- package/declarations/app/lib/composer/composer-position.d.ts.map +1 -1
- package/declarations/app/lib/composer/rich-editor-extensions.d.ts +7 -0
- package/declarations/app/lib/composer/rich-editor-extensions.d.ts.map +1 -1
- package/declarations/app/lib/composer/text-manipulation.d.ts +4 -0
- package/declarations/app/lib/composer/text-manipulation.d.ts.map +1 -1
- package/declarations/app/lib/composer/toolbar.d.ts.map +1 -1
- package/declarations/app/lib/content-localization.d.ts +14 -1
- package/declarations/app/lib/content-localization.d.ts.map +1 -1
- package/declarations/app/lib/customization-source.d.ts +26 -0
- package/declarations/app/lib/customization-source.d.ts.map +1 -0
- package/declarations/app/lib/dag.d.ts +73 -79
- package/declarations/app/lib/dag.d.ts.map +1 -1
- package/declarations/app/lib/deprecated.d.ts +21 -3
- package/declarations/app/lib/deprecated.d.ts.map +1 -1
- package/declarations/app/lib/design-wizard-preview.d.ts +52 -0
- package/declarations/app/lib/design-wizard-preview.d.ts.map +1 -0
- package/declarations/app/lib/download-blob.d.ts +3 -0
- package/declarations/app/lib/download-blob.d.ts.map +1 -0
- package/declarations/app/lib/download-strategy.d.ts +2 -0
- package/declarations/app/lib/download-strategy.d.ts.map +1 -0
- package/declarations/app/lib/element-class-lease.d.ts +37 -0
- package/declarations/app/lib/element-class-lease.d.ts.map +1 -0
- package/declarations/app/lib/filter-mode.d.ts +9 -0
- package/declarations/app/lib/filter-mode.d.ts.map +1 -1
- package/declarations/app/lib/geometry.d.ts +11 -0
- package/declarations/app/lib/geometry.d.ts.map +1 -0
- package/declarations/app/lib/helpers.d.ts +43 -9
- package/declarations/app/lib/helpers.d.ts.map +1 -1
- package/declarations/app/lib/icon-library.d.ts +7 -3
- package/declarations/app/lib/icon-library.d.ts.map +1 -1
- package/declarations/app/lib/later.d.ts +3 -1
- package/declarations/app/lib/later.d.ts.map +1 -1
- package/declarations/app/lib/locale-normalizer.d.ts +11 -0
- package/declarations/app/lib/locale-normalizer.d.ts.map +1 -0
- package/declarations/app/lib/plugin-api.d.ts +36 -5
- package/declarations/app/lib/plugin-api.d.ts.map +1 -1
- package/declarations/app/lib/registry/block-outlets.d.ts +2 -2
- package/declarations/app/lib/registry/block-outlets.d.ts.map +1 -1
- package/declarations/app/lib/registry/transformers.d.ts.map +1 -1
- package/declarations/app/lib/report-client-error.d.ts +10 -0
- package/declarations/app/lib/report-client-error.d.ts.map +1 -0
- package/declarations/app/lib/resize-measurements.d.ts +43 -0
- package/declarations/app/lib/resize-measurements.d.ts.map +1 -0
- package/declarations/app/lib/reviewable-registry.d.ts +12 -0
- package/declarations/app/lib/reviewable-registry.d.ts.map +1 -0
- package/declarations/app/lib/search.d.ts.map +1 -1
- package/declarations/app/lib/setting-field-registry.d.ts.map +1 -1
- package/declarations/app/lib/sidebar/active-link.d.ts +25 -0
- package/declarations/app/lib/sidebar/active-link.d.ts.map +1 -0
- package/declarations/app/lib/sidebar/base-custom-sidebar-section.d.ts +50 -0
- package/declarations/app/lib/sidebar/base-custom-sidebar-section.d.ts.map +1 -1
- package/declarations/app/lib/sidebar/custom-sections.d.ts.map +1 -1
- package/declarations/app/lib/sidebar/link-drop.d.ts +37 -0
- package/declarations/app/lib/sidebar/link-drop.d.ts.map +1 -0
- package/declarations/app/lib/sidebar/section.d.ts +12 -0
- package/declarations/app/lib/sidebar/section.d.ts.map +1 -1
- package/declarations/app/lib/sidebar/user/tags-section/tag-section-link.d.ts +1 -1
- package/declarations/app/lib/svg-sprite-loader.d.ts +31 -0
- package/declarations/app/lib/svg-sprite-loader.d.ts.map +1 -1
- package/declarations/app/lib/textarea-text-manipulation.d.ts.map +1 -1
- package/declarations/app/lib/url.d.ts +0 -1
- package/declarations/app/lib/url.d.ts.map +1 -1
- package/declarations/app/models/category.d.ts.map +1 -1
- package/declarations/app/models/composer.d.ts.map +1 -1
- package/declarations/app/models/post.d.ts +1 -0
- package/declarations/app/models/post.d.ts.map +1 -1
- package/declarations/app/models/reviewable-history.d.ts +2 -4
- package/declarations/app/models/reviewable-history.d.ts.map +1 -1
- package/declarations/app/models/reviewable.d.ts +40 -0
- package/declarations/app/models/reviewable.d.ts.map +1 -1
- package/declarations/app/models/site.d.ts +2 -0
- package/declarations/app/models/site.d.ts.map +1 -1
- package/declarations/app/models/topic-tracking-state.d.ts.map +1 -1
- package/declarations/app/models/user.d.ts +0 -1
- package/declarations/app/models/user.d.ts.map +1 -1
- package/declarations/app/resolver.d.ts +1 -1
- package/declarations/app/routes/application.d.ts +1 -0
- package/declarations/app/routes/application.d.ts.map +1 -1
- package/declarations/app/routes/build-category-route.d.ts.map +1 -1
- package/declarations/app/routes/user-activity-stream.d.ts +3 -3
- package/declarations/app/routes/user-activity-stream.d.ts.map +1 -1
- package/declarations/app/routes/wizard.d.ts +1 -0
- package/declarations/app/routes/wizard.d.ts.map +1 -1
- package/declarations/app/services/blocks.d.ts +41 -49
- package/declarations/app/services/blocks.d.ts.map +1 -1
- package/declarations/app/services/composer.d.ts +1 -1
- package/declarations/app/services/deprecation-warning-handler.d.ts.map +1 -1
- package/declarations/app/services/design-wizard.d.ts +46 -0
- package/declarations/app/services/design-wizard.d.ts.map +1 -0
- package/declarations/app/services/discovery.d.ts +9 -0
- package/declarations/app/services/discovery.d.ts.map +1 -1
- package/declarations/app/services/drag-and-drop.d.ts +52 -0
- package/declarations/app/services/drag-and-drop.d.ts.map +1 -0
- package/declarations/app/services/exception.d.ts +15 -0
- package/declarations/app/services/exception.d.ts.map +1 -0
- package/declarations/app/services/human-activity-tracker.d.ts +1 -1
- package/declarations/app/services/human-activity-tracker.d.ts.map +1 -1
- package/declarations/app/services/loading-slider.d.ts +3 -1
- package/declarations/app/services/loading-slider.d.ts.map +1 -1
- package/declarations/app/services/presence.d.ts +1 -1
- package/declarations/app/services/presence.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/block-debug/block-info.d.ts +30 -18
- package/declarations/app/static/dev-tools/block-debug/block-info.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/block-debug/button.d.ts +7 -8
- package/declarations/app/static/dev-tools/block-debug/button.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/block-debug/conditions-tree.d.ts +31 -9
- package/declarations/app/static/dev-tools/block-debug/conditions-tree.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/block-debug/debug-logger.d.ts +86 -76
- package/declarations/app/static/dev-tools/block-debug/debug-logger.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/block-debug/ghost-block.d.ts +35 -84
- package/declarations/app/static/dev-tools/block-debug/ghost-block.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/block-debug/outlet-info.d.ts +21 -50
- package/declarations/app/static/dev-tools/block-debug/outlet-info.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/block-debug/patch.d.ts +1 -1
- package/declarations/app/static/dev-tools/block-debug/patch.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/entrypoint.d.ts +2 -1
- package/declarations/app/static/dev-tools/entrypoint.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/toolbar.d.ts +11 -7
- package/declarations/app/static/dev-tools/toolbar.d.ts.map +1 -1
- package/declarations/app/static/dev-tools/tools.d.ts +15 -0
- package/declarations/app/static/dev-tools/tools.d.ts.map +1 -0
- package/declarations/app/static/prosemirror/components/prosemirror-editor.d.ts +3 -1
- package/declarations/app/static/prosemirror/components/prosemirror-editor.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/core/keymap.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/code-block.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/html-inline.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/mention.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/onebox.d.ts +1 -1
- package/declarations/app/static/prosemirror/extensions/quote.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/register-default.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/strong.d.ts +4 -0
- package/declarations/app/static/prosemirror/extensions/strong.d.ts.map +1 -0
- package/declarations/app/static/prosemirror/extensions/trailing-inline-space.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/extensions/word-paste.d.ts +0 -1
- package/declarations/app/static/prosemirror/extensions/word-paste.d.ts.map +1 -1
- package/declarations/app/static/prosemirror/lib/text-manipulation.d.ts.map +1 -1
- package/declarations/app/templates/review/show.d.ts +2 -5
- package/declarations/app/templates/review/show.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-access-control-field.d.ts +11 -0
- package/declarations/app/ui-kit/d-access-control-field.d.ts.map +1 -0
- package/declarations/app/ui-kit/d-access-control.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-async-content.d.ts +10 -0
- package/declarations/app/ui-kit/d-async-content.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-button.d.ts +2 -2
- package/declarations/app/ui-kit/d-button.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-combo-button.d.ts +74 -2
- package/declarations/app/ui-kit/d-combo-button.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-copy-button.d.ts +17 -8
- package/declarations/app/ui-kit/d-copy-button.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-date-input.d.ts +1 -1
- package/declarations/app/ui-kit/d-date-picker.d.ts +1 -1
- package/declarations/app/ui-kit/d-editor.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-filter-controls.d.ts +11 -1
- package/declarations/app/ui-kit/d-filter-controls.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-filter-input.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-icon-grid-picker/content.d.ts +62 -17
- package/declarations/app/ui-kit/d-icon-grid-picker/content.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-icon-grid-picker/index.d.ts +6 -8
- package/declarations/app/ui-kit/d-icon-grid-picker/index.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-load-more.d.ts +78 -19
- package/declarations/app/ui-kit/d-load-more.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-modal.d.ts.map +1 -1
- package/declarations/app/ui-kit/d-resize-handles.d.ts +243 -0
- package/declarations/app/ui-kit/d-resize-handles.d.ts.map +1 -0
- package/declarations/app/ui-kit/d-resize-separator.d.ts +222 -0
- package/declarations/app/ui-kit/d-resize-separator.d.ts.map +1 -0
- package/declarations/app/ui-kit/d-skeleton.d.ts +99 -0
- package/declarations/app/ui-kit/d-skeleton.d.ts.map +1 -0
- package/declarations/app/ui-kit/helpers/d-category-link.d.ts.map +1 -1
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-auto-scroll.d.ts +108 -0
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-auto-scroll.d.ts.map +1 -0
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-external-target.d.ts +80 -0
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-external-target.d.ts.map +1 -0
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-monitor.d.ts +80 -0
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-monitor.d.ts.map +1 -0
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-source.d.ts +249 -0
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-source.d.ts.map +1 -0
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-target.d.ts +102 -0
- package/declarations/app/ui-kit/modifiers/d-drag-and-drop-target.d.ts.map +1 -0
- package/declarations/app/ui-kit/modifiers/d-drag-dwell.d.ts +215 -0
- package/declarations/app/ui-kit/modifiers/d-drag-dwell.d.ts.map +1 -0
- package/declarations/app/ui-kit/modifiers/d-draggable.d.ts +15 -0
- package/declarations/app/ui-kit/modifiers/d-draggable.d.ts.map +1 -1
- package/declarations/app/ui-kit/modifiers/d-on-resize.d.ts +3 -0
- package/declarations/app/ui-kit/modifiers/d-on-resize.d.ts.map +1 -1
- package/declarations/app/ui-kit/modifiers/d-pointer-drag.d.ts +215 -0
- package/declarations/app/ui-kit/modifiers/d-pointer-drag.d.ts.map +1 -0
- package/declarations/app/ui-kit/modifiers/d-resize-edge.d.ts +101 -17
- package/declarations/app/ui-kit/modifiers/d-resize-edge.d.ts.map +1 -1
- package/declarations/app/ui-kit/modifiers/d-swipe.d.ts +8 -0
- package/declarations/app/ui-kit/modifiers/d-swipe.d.ts.map +1 -1
- package/declarations/float-kit/components/d-float-body.d.ts +39 -0
- package/declarations/float-kit/components/d-float-body.d.ts.map +1 -1
- package/declarations/float-kit/components/d-headless-menu.d.ts.map +1 -1
- package/declarations/float-kit/components/d-inline-float.d.ts +8 -6
- package/declarations/float-kit/components/d-inline-float.d.ts.map +1 -1
- package/declarations/float-kit/components/d-menu.d.ts +35 -4
- package/declarations/float-kit/components/d-menu.d.ts.map +1 -1
- package/declarations/float-kit/components/d-tooltip.d.ts +2 -0
- package/declarations/float-kit/components/d-tooltip.d.ts.map +1 -1
- package/declarations/float-kit/lib/constants.d.ts +63 -4
- package/declarations/float-kit/lib/constants.d.ts.map +1 -1
- package/declarations/float-kit/lib/d-menu-instance.d.ts +8 -2
- package/declarations/float-kit/lib/d-menu-instance.d.ts.map +1 -1
- package/declarations/float-kit/lib/d-tooltip-instance.d.ts.map +1 -1
- package/declarations/float-kit/lib/float-kit-instance.d.ts +48 -0
- package/declarations/float-kit/lib/float-kit-instance.d.ts.map +1 -1
- package/declarations/float-kit/lib/tab-order.d.ts +36 -0
- package/declarations/float-kit/lib/tab-order.d.ts.map +1 -0
- package/declarations/float-kit/lib/update-position.d.ts +11 -0
- package/declarations/float-kit/lib/update-position.d.ts.map +1 -1
- package/declarations/float-kit/modifiers/apply-floating-ui.d.ts.map +1 -1
- package/declarations/float-kit/modifiers/notify-positioned.d.ts +19 -0
- package/declarations/float-kit/modifiers/notify-positioned.d.ts.map +1 -0
- package/declarations/float-kit/modifiers/tab-order-inline.d.ts +55 -0
- package/declarations/float-kit/modifiers/tab-order-inline.d.ts.map +1 -0
- package/declarations/float-kit/services/menu.d.ts +11 -0
- package/declarations/float-kit/services/menu.d.ts.map +1 -1
- package/declarations/select-kit/components/dropdown-select-box.d.ts.map +1 -1
- package/declarations/select-kit/components/icon-picker.d.ts +3 -2
- package/declarations/select-kit/components/icon-picker.d.ts.map +1 -1
- package/declarations/select-kit/components/multi-select/multi-select-header.d.ts.map +1 -1
- package/declarations/select-kit/components/multi-select.d.ts.map +1 -1
- package/declarations/select-kit/components/select-kit/select-kit-row.d.ts.map +1 -1
- package/declarations/select-kit/components/tag-chooser.d.ts +3 -1
- package/declarations/select-kit/components/tag-chooser.d.ts.map +1 -1
- package/declarations/tests/acceptance/category-default-view-test.d.ts +2 -0
- package/declarations/tests/acceptance/category-default-view-test.d.ts.map +1 -0
- package/declarations/tests/acceptance/exception-test.d.ts +2 -0
- package/declarations/tests/acceptance/exception-test.d.ts.map +1 -0
- package/declarations/tests/acceptance/sidebar-link-drop-test.d.ts +2 -0
- package/declarations/tests/acceptance/sidebar-link-drop-test.d.ts.map +1 -0
- package/declarations/tests/acceptance/topic-list-preload-test.d.ts +2 -0
- package/declarations/tests/acceptance/topic-list-preload-test.d.ts.map +1 -0
- package/declarations/tests/acceptance/transformers/composer-minimum-post-length-test.d.ts +2 -0
- package/declarations/tests/acceptance/transformers/composer-minimum-post-length-test.d.ts.map +1 -0
- package/declarations/tests/fixtures/site-fixtures.d.ts +3 -0
- package/declarations/tests/fixtures/site-fixtures.d.ts.map +1 -1
- package/declarations/tests/fixtures/user-fixtures.d.ts +0 -1
- package/declarations/tests/fixtures/user-fixtures.d.ts.map +1 -1
- package/declarations/tests/helpers/qunit-helpers.d.ts.map +1 -1
- package/declarations/tests/helpers/review-pretender.d.ts.map +1 -1
- package/declarations/tests/helpers/rich-editor-helper.d.ts +2 -2
- package/declarations/tests/helpers/rich-editor-helper.d.ts.map +1 -1
- package/declarations/tests/helpers/stub-intersection-observer.d.ts +4 -2
- package/declarations/tests/helpers/stub-intersection-observer.d.ts.map +1 -1
- package/declarations/tests/helpers/ui-kit/drag-and-drop-helper.d.ts +178 -0
- package/declarations/tests/helpers/ui-kit/drag-and-drop-helper.d.ts.map +1 -0
- package/declarations/tests/helpers/ui-kit/pointer-gesture-helper.d.ts +81 -0
- package/declarations/tests/helpers/ui-kit/pointer-gesture-helper.d.ts.map +1 -0
- package/declarations/tests/integration/components/admin-plugin-config-page-test.d.ts +2 -0
- package/declarations/tests/integration/components/admin-plugin-config-page-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/category-list-subcategories-test.d.ts +2 -0
- package/declarations/tests/integration/components/category-list-subcategories-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/composer-container-test.d.ts +2 -0
- package/declarations/tests/integration/components/composer-container-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/dashboard/search-test.d.ts +2 -0
- package/declarations/tests/integration/components/dashboard/search-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/dashboard/traffic-test.d.ts +2 -0
- package/declarations/tests/integration/components/dashboard/traffic-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/design-wizard-sections-test.d.ts +2 -0
- package/declarations/tests/integration/components/design-wizard-sections-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/dev-tools-toolbar-test.d.ts +2 -0
- package/declarations/tests/integration/components/dev-tools-toolbar-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/float-kit/apply-floating-ui-test.d.ts +2 -0
- package/declarations/tests/integration/components/float-kit/apply-floating-ui-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/float-kit/tab-order-inline-test.d.ts +2 -0
- package/declarations/tests/integration/components/float-kit/tab-order-inline-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/modal/content-language-preferences-test.d.ts +2 -0
- package/declarations/tests/integration/components/modal/content-language-preferences-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/prosemirror-editor/open-document-test.d.ts +2 -0
- package/declarations/tests/integration/components/prosemirror-editor/open-document-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/sidebar-section-form-test.d.ts +2 -0
- package/declarations/tests/integration/components/sidebar-section-form-test.d.ts.map +1 -0
- package/declarations/tests/integration/components/topic-post-badges-test.d.ts +2 -0
- package/declarations/tests/integration/components/topic-post-badges-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/d-combo-button-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/d-combo-button-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/d-resize-handles-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/d-resize-handles-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/d-resize-separator-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/d-resize-separator-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/d-skeleton-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/d-skeleton-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-adoption-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-adoption-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-auto-scroll-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-auto-scroll-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-external-target-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-external-target-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-monitor-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-monitor-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-and-drop-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-dwell-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-drag-dwell-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-draggable-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-draggable-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-observe-intersection-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-observe-intersection-test.d.ts.map +1 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-pointer-drag-test.d.ts +2 -0
- package/declarations/tests/integration/ui-kit/modifiers/d-pointer-drag-test.d.ts.map +1 -0
- package/declarations/tests/unit/admin/lib/color-scheme-manager-test.d.ts +2 -0
- package/declarations/tests/unit/admin/lib/color-scheme-manager-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/-internals/drag-and-drop/drag-dwell-test.d.ts +2 -0
- package/declarations/tests/unit/lib/-internals/drag-and-drop/drag-dwell-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/-internals/drag-and-drop/vocabulary-test.d.ts +2 -0
- package/declarations/tests/unit/lib/-internals/drag-and-drop/vocabulary-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/blocks/core/decorator-test.d.ts +2 -0
- package/declarations/tests/unit/lib/blocks/core/decorator-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/customization-source-test.d.ts +2 -0
- package/declarations/tests/unit/lib/customization-source-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/dag-test.d.ts.map +1 -1
- package/declarations/tests/unit/lib/dashboard-reports-loader-test.d.ts +2 -0
- package/declarations/tests/unit/lib/dashboard-reports-loader-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/download-blob-test.d.ts +2 -0
- package/declarations/tests/unit/lib/download-blob-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/download-strategy-test.d.ts +2 -0
- package/declarations/tests/unit/lib/download-strategy-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/filter-mode-test.d.ts +2 -0
- package/declarations/tests/unit/lib/filter-mode-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/locale-normalizer-test.d.ts +2 -0
- package/declarations/tests/unit/lib/locale-normalizer-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/resize-measurements-test.d.ts +2 -0
- package/declarations/tests/unit/lib/resize-measurements-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/sidebar/active-link-test.d.ts +2 -0
- package/declarations/tests/unit/lib/sidebar/active-link-test.d.ts.map +1 -0
- package/declarations/tests/unit/lib/sidebar/link-drop-test.d.ts +2 -0
- package/declarations/tests/unit/lib/sidebar/link-drop-test.d.ts.map +1 -0
- package/declarations/tests/unit/services/discovery-test.d.ts +2 -0
- package/declarations/tests/unit/services/discovery-test.d.ts.map +1 -0
- package/declarations/tests/unit/services/drag-and-drop-test.d.ts +2 -0
- package/declarations/tests/unit/services/drag-and-drop-test.d.ts.map +1 -0
- package/declarations/tsconfig.tsbuildinfo +1 -1
- package/declarations/type-tests/blocks/public-api-test.d.ts +2 -0
- package/declarations/type-tests/blocks/public-api-test.d.ts.map +1 -0
- package/declarations/type-tests/lib/dag-test.d.ts +2 -0
- package/declarations/type-tests/lib/dag-test.d.ts.map +1 -0
- package/declarations/type-tests/lib/later-test.d.ts +2 -0
- package/declarations/type-tests/lib/later-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/create-drag-dwell-test.d.ts +2 -0
- package/declarations/type-tests/ui-kit/create-drag-dwell-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-combo-button-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-combo-button-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-adoption-errors-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-adoption-errors-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-adoption-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-adoption-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-errors-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-errors-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-external-errors-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-external-errors-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-external-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-external-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-drag-and-drop-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-drag-dwell-errors-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-drag-dwell-errors-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-drag-dwell-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-drag-dwell-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-pointer-drag-errors-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-pointer-drag-errors-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-pointer-drag-test.d.ts +8 -0
- package/declarations/type-tests/ui-kit/d-pointer-drag-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-resize-handles-args-errors-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-resize-handles-args-errors-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-resize-handles-box-errors-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-resize-handles-box-errors-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-resize-handles-payload-errors-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-resize-handles-payload-errors-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-resize-handles-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-resize-handles-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-resize-separator-errors-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-resize-separator-errors-test.d.ts.map +1 -0
- package/declarations/type-tests/ui-kit/d-resize-separator-test.d.ts +3 -0
- package/declarations/type-tests/ui-kit/d-resize-separator-test.d.ts.map +1 -0
- package/package.json +10 -1
- package/declarations/app/components/admin-onboarding/modal/theme-picker.d.ts +0 -13
- package/declarations/app/components/admin-onboarding/modal/theme-picker.d.ts.map +0 -1
- package/declarations/app/components/composer-actions-new.d.ts.map +0 -1
- package/declarations/app/components/link-to-input.d.ts +0 -7
- package/declarations/app/components/link-to-input.d.ts.map +0 -1
- package/declarations/app/helpers/reviewable-history-description.d.ts +0 -2
- package/declarations/app/helpers/reviewable-history-description.d.ts.map +0 -1
- package/declarations/app/modifiers/grippie-drag-resize.d.ts +0 -40
- package/declarations/app/modifiers/grippie-drag-resize.d.ts.map +0 -1
- package/declarations/select-kit/components/composer-actions.d.ts +0 -39
- package/declarations/select-kit/components/composer-actions.d.ts.map +0 -1
- package/declarations/tests/acceptance/composer-actions-new-test.d.ts +0 -2
- package/declarations/tests/acceptance/composer-actions-new-test.d.ts.map +0 -1
- package/declarations/tests/acceptance/composer-new-test.d.ts +0 -2
- package/declarations/tests/acceptance/composer-new-test.d.ts.map +0 -1
- package/declarations/tests/acceptance/keyboard-shortcuts-new-test.d.ts +0 -2
- package/declarations/tests/acceptance/keyboard-shortcuts-new-test.d.ts.map +0 -1
|
@@ -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"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { BlockCondition } from "./condition";
|
|
2
|
+
export type { ConditionContext, ConditionResolvedValue, ConditionSourceType, ConditionValidateFn, } from "./condition";
|
|
2
3
|
export { blockCondition } from "./decorator";
|
|
4
|
+
export type { BlockConditionConfig } from "./decorator";
|
|
3
5
|
export { default as BlockOutletArgCondition } from "./outlet-arg";
|
|
4
6
|
export { default as BlockRouteCondition } from "./route";
|
|
5
7
|
export { default as BlockUserCondition } from "./user";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/blocks/conditions/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/blocks/conditions/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,YAAY,EACV,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,YAAY,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAIxD,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,18 +1,10 @@
|
|
|
1
|
+
import { BlockCondition, type ConditionContext, type ConditionResolvedValue } from "./condition";
|
|
1
2
|
/**
|
|
2
3
|
* A condition that evaluates based on outlet arg values.
|
|
3
4
|
*
|
|
4
5
|
* Checks properties passed via `@outletArgs` on the BlockOutlet. Supports
|
|
5
6
|
* dot-notation paths for nested properties and flexible value matching.
|
|
6
7
|
*
|
|
7
|
-
* @class BlockOutletArgCondition
|
|
8
|
-
* @extends BlockCondition
|
|
9
|
-
*
|
|
10
|
-
* @param {string} path - Dot-notation path to the property (required).
|
|
11
|
-
* E.g., `"topic.closed"`, `"user.trust_level"`, `"category.id"`.
|
|
12
|
-
* @param {*} [value] - Value to match against (see matching rules below).
|
|
13
|
-
* @param {boolean} [exists] - If true, passes when property exists (not undefined);
|
|
14
|
-
* if false, passes when property is undefined.
|
|
15
|
-
*
|
|
16
8
|
* ## Value Matching Rules
|
|
17
9
|
*
|
|
18
10
|
* Uses the shared `matchValue` utility:
|
|
@@ -24,66 +16,55 @@
|
|
|
24
16
|
* - **`{ any: [...] }`**: Passes if `actual` matches ANY spec in array (OR logic)
|
|
25
17
|
*
|
|
26
18
|
* @example
|
|
19
|
+
* ```
|
|
27
20
|
* // Check if topic is closed
|
|
28
21
|
* { type: "outlet-arg", path: "topic.closed", value: true }
|
|
22
|
+
* ```
|
|
29
23
|
*
|
|
30
24
|
* @example
|
|
25
|
+
* ```
|
|
31
26
|
* // Check user trust level is 2 or higher
|
|
32
27
|
* { type: "outlet-arg", path: "user.trust_level", value: [2, 3, 4] }
|
|
28
|
+
* ```
|
|
33
29
|
*
|
|
34
30
|
* @example
|
|
31
|
+
* ```
|
|
35
32
|
* // Check category is one of several IDs
|
|
36
33
|
* { type: "outlet-arg", path: "category.id", value: [1, 2, 3] }
|
|
34
|
+
* ```
|
|
37
35
|
*
|
|
38
36
|
* @example
|
|
37
|
+
* ```
|
|
39
38
|
* // Check if topic property exists
|
|
40
39
|
* { type: "outlet-arg", path: "topic", exists: true }
|
|
40
|
+
* ```
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
|
+
* ```
|
|
43
44
|
* // Check topic is NOT closed
|
|
44
45
|
* { type: "outlet-arg", path: "topic.closed", value: { not: true } }
|
|
46
|
+
* ```
|
|
45
47
|
*
|
|
46
48
|
* @example
|
|
49
|
+
* ```
|
|
47
50
|
* // Check category slug matches pattern
|
|
48
51
|
* { type: "outlet-arg", path: "category.slug", value: /^support/ }
|
|
52
|
+
* ```
|
|
49
53
|
*
|
|
50
54
|
* @example
|
|
55
|
+
* ```
|
|
51
56
|
* // Check topic is closed OR archived (using any)
|
|
52
57
|
* { type: "outlet-arg", path: "topic.closed", value: { any: [true, { not: false }] } }
|
|
58
|
+
* ```
|
|
53
59
|
*/
|
|
54
60
|
export default class BlockOutletArgCondition extends BlockCondition {
|
|
55
61
|
/**
|
|
56
62
|
* Evaluates whether the outlet arg condition passes.
|
|
57
|
-
*
|
|
58
|
-
* @param {Object} args - The condition arguments.
|
|
59
|
-
* @param {Object} [context] - Evaluation context.
|
|
60
|
-
* @returns {boolean} True if the condition passes.
|
|
61
63
|
*/
|
|
62
|
-
evaluate(args:
|
|
64
|
+
evaluate(args: Record<string, unknown>, context?: ConditionContext): boolean;
|
|
63
65
|
/**
|
|
64
66
|
* Returns the resolved value at the path for debug logging.
|
|
65
|
-
*
|
|
66
|
-
* @param {Object} args - The condition arguments containing `path`, `value`, `exists`.
|
|
67
|
-
* @param {Object} [context] - Evaluation context containing outletArgs.
|
|
68
|
-
* @returns {{
|
|
69
|
-
* hasValue: true,
|
|
70
|
-
* formatted: {
|
|
71
|
-
* path: string,
|
|
72
|
-
* actual: *,
|
|
73
|
-
* configured: * | { exists: boolean }
|
|
74
|
-
* }
|
|
75
|
-
* }} Object with formatted log data showing path, actual value, and configured expectation.
|
|
76
67
|
*/
|
|
77
|
-
getResolvedValueForLogging(args:
|
|
78
|
-
hasValue: true;
|
|
79
|
-
formatted: {
|
|
80
|
-
path: string;
|
|
81
|
-
actual: any;
|
|
82
|
-
configured: any | {
|
|
83
|
-
exists: boolean;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
};
|
|
68
|
+
getResolvedValueForLogging(args: Record<string, unknown>, context?: ConditionContext): ConditionResolvedValue;
|
|
87
69
|
}
|
|
88
|
-
import { BlockCondition } from "./condition";
|
|
89
70
|
//# sourceMappingURL=outlet-arg.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outlet-arg.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/blocks/conditions/outlet-arg.
|
|
1
|
+
{"version":3,"file":"outlet-arg.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/blocks/conditions/outlet-arg.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC5B,MAAM,aAAa,CAAC;AAuBrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AAmCH,MAAM,CAAC,OAAO,OAAO,uBAAwB,SAAQ,cAAc;IACjE;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,OAAO;IAiB5E;;OAEG;IACH,0BAA0B,CACxB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,CAAC,EAAE,gBAAgB,GACzB,sBAAsB;CAW1B"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type RouterService from "@ember/routing/router-service";
|
|
2
|
+
import type DiscoveryService from "discourse/services/discovery";
|
|
3
|
+
import { BlockCondition, type ConditionContext } from "./condition";
|
|
1
4
|
/**
|
|
2
5
|
* A condition that evaluates based on the current URL path, semantic page types,
|
|
3
6
|
* route parameters, and query parameters.
|
|
@@ -24,51 +27,52 @@
|
|
|
24
27
|
* normalizing URLs before matching. Theme authors don't need to know if
|
|
25
28
|
* Discourse runs on `/forum` or root - patterns like `/c/**` work everywhere.
|
|
26
29
|
*
|
|
27
|
-
* @class BlockRouteCondition
|
|
28
|
-
* @extends BlockCondition
|
|
29
|
-
*
|
|
30
|
-
* @param {string[]} [urls] - URL patterns to match (passes if ANY match).
|
|
31
|
-
* @param {string[]} [pages] - Page types to match (passes if ANY match).
|
|
32
|
-
* @param {Object} [params] - Page parameters to match (only valid with `pages`).
|
|
33
|
-
* @param {Object} [queryParams] - Query parameters to match. Note: queryParams alone
|
|
34
|
-
* is not sufficient - the condition requires `urls` or `pages` to match first.
|
|
35
|
-
* This creates implicit AND behavior between route and query params.
|
|
36
|
-
*
|
|
37
30
|
* @example
|
|
31
|
+
* ```
|
|
38
32
|
* // Match category pages using page type
|
|
39
33
|
* { type: "route", pages: ["CATEGORY_PAGES"] }
|
|
34
|
+
* ```
|
|
40
35
|
*
|
|
41
36
|
* @example
|
|
37
|
+
* ```
|
|
42
38
|
* // Match category pages using URL pattern
|
|
43
39
|
* { type: "route", urls: ["/c/**"] }
|
|
40
|
+
* ```
|
|
44
41
|
*
|
|
45
42
|
* @example
|
|
43
|
+
* ```
|
|
46
44
|
* // Match multiple page types (OR logic)
|
|
47
45
|
* { type: "route", pages: ["CATEGORY_PAGES", "TAG_PAGES"] }
|
|
46
|
+
* ```
|
|
48
47
|
*
|
|
49
48
|
* @example
|
|
49
|
+
* ```
|
|
50
50
|
* // Match specific category by ID
|
|
51
51
|
* { type: "route", pages: ["CATEGORY_PAGES"], params: { categoryId: 5 } }
|
|
52
|
+
* ```
|
|
52
53
|
*
|
|
53
54
|
* @example
|
|
55
|
+
* ```
|
|
54
56
|
* // Match with query params
|
|
55
57
|
* { type: "route", urls: ["/latest"], queryParams: { filter: "solved" } }
|
|
58
|
+
* ```
|
|
56
59
|
*
|
|
57
60
|
* @example
|
|
61
|
+
* ```
|
|
58
62
|
* // Exclude pages using NOT combinator
|
|
59
63
|
* { not: { type: "route", pages: ["ADMIN_PAGES"] } }
|
|
64
|
+
* ```
|
|
60
65
|
*/
|
|
61
66
|
export default class BlockRouteCondition extends BlockCondition {
|
|
62
|
-
|
|
63
|
-
|
|
67
|
+
#private;
|
|
68
|
+
router: RouterService;
|
|
69
|
+
discovery: DiscoveryService;
|
|
64
70
|
/**
|
|
65
71
|
* Returns the current URL path, normalized for matching.
|
|
66
72
|
*
|
|
67
73
|
* Normalization strips the subfolder prefix, query strings, hash fragments,
|
|
68
74
|
* and trailing slashes. This allows patterns to work consistently regardless
|
|
69
75
|
* of Discourse's installation configuration.
|
|
70
|
-
*
|
|
71
|
-
* @returns {string} The normalized URL path.
|
|
72
76
|
*/
|
|
73
77
|
get currentPath(): string;
|
|
74
78
|
/**
|
|
@@ -84,13 +88,7 @@ export default class BlockRouteCondition extends BlockCondition {
|
|
|
84
88
|
* will only pass if BOTH the route (via `urls` or `pages`) AND the queryParams
|
|
85
89
|
* match. This is implicit AND behavior. To match only based on query parameters,
|
|
86
90
|
* use `urls: ["**"]` to match all routes first.
|
|
87
|
-
*
|
|
88
|
-
* @param {Object} args - The condition arguments.
|
|
89
|
-
* @param {Object} [context={}] - Evaluation context (for debugging).
|
|
90
|
-
* @returns {boolean} True if the condition passes.
|
|
91
91
|
*/
|
|
92
|
-
evaluate(args:
|
|
93
|
-
#private;
|
|
92
|
+
evaluate(args: Record<string, unknown>, context?: ConditionContext): boolean;
|
|
94
93
|
}
|
|
95
|
-
import { BlockCondition } from "./condition";
|
|
96
94
|
//# sourceMappingURL=route.d.ts.map
|