@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,31 +1,39 @@
|
|
|
1
|
+
import type { ValidationContext } from "discourse/lib/blocks/-internals/utils";
|
|
1
2
|
/**
|
|
2
3
|
* Parses a condition path string into path segments.
|
|
3
4
|
* Handles both dot notation (`.key`) and bracket notation (`[0]`).
|
|
4
5
|
*
|
|
5
|
-
* @param
|
|
6
|
-
* @returns
|
|
6
|
+
* @param path - The path string (e.g., "conditions.any[0][1].queryParams").
|
|
7
|
+
* @returns Array of path segments.
|
|
7
8
|
*
|
|
8
9
|
* @example
|
|
10
|
+
* ```
|
|
9
11
|
* parseConditionPath("conditions.any[0][1].type")
|
|
10
12
|
* // Returns: ["conditions", "any", 0, 1, "type"]
|
|
13
|
+
* ```
|
|
11
14
|
*/
|
|
12
|
-
export function parseConditionPath(path: string):
|
|
15
|
+
export declare function parseConditionPath(path: string): (string | number)[];
|
|
16
|
+
/**
|
|
17
|
+
* Formatting options accepted by `formatEntryWithErrorPath()` and, in turn,
|
|
18
|
+
* `PathHighlightRenderer`.
|
|
19
|
+
*/
|
|
20
|
+
export interface FormatEntryOptions {
|
|
21
|
+
/** Prefix to skip in the path. */
|
|
22
|
+
prefix?: string;
|
|
23
|
+
/** Label to show before the entry. */
|
|
24
|
+
label?: string;
|
|
25
|
+
}
|
|
13
26
|
/**
|
|
14
27
|
* Renders a block entry object with the error path highlighted.
|
|
15
28
|
* Shows the structure with proper indentation and adds a comment marker
|
|
16
29
|
* to indicate where the error occurred.
|
|
17
30
|
*
|
|
18
|
-
* @param
|
|
19
|
-
* @param
|
|
20
|
-
* @param
|
|
21
|
-
* @
|
|
22
|
-
* @param {string} [options.label] - Label to show before the entry (e.g., "conditions:").
|
|
23
|
-
* @returns {string} Formatted string with the error location highlighted.
|
|
31
|
+
* @param entry - The block entry object (or array) to render.
|
|
32
|
+
* @param errorPath - The path to the error (e.g., "conditions.any[0][0].queryParams").
|
|
33
|
+
* @param options - Formatting options.
|
|
34
|
+
* @returns Formatted string with the error location highlighted.
|
|
24
35
|
*/
|
|
25
|
-
export function formatEntryWithErrorPath(entry:
|
|
26
|
-
prefix?: string;
|
|
27
|
-
label?: string;
|
|
28
|
-
}): string;
|
|
36
|
+
export declare function formatEntryWithErrorPath(entry: unknown, errorPath: string, options?: FormatEntryOptions): string;
|
|
29
37
|
/**
|
|
30
38
|
* Truncates an object for JSON serialization in error messages.
|
|
31
39
|
* Returns actual objects/arrays with truncated content, not strings.
|
|
@@ -35,13 +43,13 @@ export function formatEntryWithErrorPath(entry: any | any[], errorPath: string,
|
|
|
35
43
|
*
|
|
36
44
|
* Handles special cases like block classes, children arrays, and circular references.
|
|
37
45
|
*
|
|
38
|
-
* @param
|
|
39
|
-
* @param
|
|
40
|
-
* @param
|
|
41
|
-
* @param
|
|
42
|
-
* @returns
|
|
46
|
+
* @param obj - The object to truncate.
|
|
47
|
+
* @param maxDepth - Maximum nesting depth before truncating.
|
|
48
|
+
* @param maxKeys - Maximum number of keys to show per object.
|
|
49
|
+
* @param _seen - Internal parameter for tracking circular references.
|
|
50
|
+
* @returns Truncated representation of the object.
|
|
43
51
|
*/
|
|
44
|
-
export function truncateForDisplay(obj:
|
|
52
|
+
export declare function truncateForDisplay(obj: unknown, maxDepth?: number, maxKeys?: number, _seen?: WeakSet<object> | null): unknown;
|
|
45
53
|
/**
|
|
46
54
|
* Captures the current call site as an Error object, excluding internal frames.
|
|
47
55
|
* Call this at the entry point (e.g., renderBlocks) to capture where
|
|
@@ -51,45 +59,23 @@ export function truncateForDisplay(obj: any, maxDepth?: number, maxKeys?: number
|
|
|
51
59
|
* and everything above it from the stack trace. This means the stack will
|
|
52
60
|
* point directly to the user's code, not to internal block system functions.
|
|
53
61
|
*
|
|
54
|
-
* @param
|
|
62
|
+
* @param callerFn - The function to exclude from the stack trace.
|
|
55
63
|
* Pass the function that calls `captureCallSite` (e.g., `_renderBlocks`).
|
|
56
|
-
* @returns
|
|
64
|
+
* @returns An Error object with stack trace starting from callerFn's caller.
|
|
57
65
|
*/
|
|
58
|
-
export function captureCallSite(callerFn:
|
|
66
|
+
export declare function captureCallSite(callerFn: (...args: any[]) => void): Error;
|
|
59
67
|
/**
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
* If context is provided, the error message will include the block
|
|
63
|
-
* entry for debugging.
|
|
64
|
-
*
|
|
65
|
-
* If a `callSiteError` is present in the context, it is reused with the
|
|
66
|
-
* new message. This preserves the original stack trace pointing to where
|
|
67
|
-
* `renderBlocks()` was called, which is more useful than pointing to this
|
|
68
|
-
* function. Source maps are applied automatically by the browser.
|
|
69
|
-
*
|
|
70
|
-
* @param {string} message - The error message.
|
|
71
|
-
* @param {Object} [context] - Optional error context for better error messages.
|
|
72
|
-
* @param {string} [context.outletName] - The outlet name where the block is registered.
|
|
73
|
-
* @param {string} [context.blockName] - The name of the block being validated.
|
|
74
|
-
* @param {string} [context.path] - Path within the layout to the error (e.g., "[2].conditions.params.categoryId").
|
|
75
|
-
* Used by validation code to indicate where errors occurred. Combined with `errorPath` for display.
|
|
76
|
-
* @param {Object} [context.entry] - The block entry being validated.
|
|
77
|
-
* @param {Object} [context.conditions] - The conditions being validated.
|
|
78
|
-
* @param {string} [context.errorPath] - Full path to the error for display (e.g., "[2].conditions.params.categoryId").
|
|
79
|
-
* @param {Array<Object>} [context.rootLayout] - The root outlet layout for tree display in errors.
|
|
80
|
-
* @param {Error | null} [context.callSiteError] - Error object capturing where renderBlocks() was called.
|
|
81
|
-
* @throws {BlockError} Always throws.
|
|
68
|
+
* Options accepted by `BlockError`'s constructor.
|
|
82
69
|
*/
|
|
83
|
-
export
|
|
84
|
-
|
|
85
|
-
|
|
70
|
+
export interface BlockErrorOptions {
|
|
71
|
+
/** The underlying cause of this error, chained via the standard ES2022 `cause` option. */
|
|
72
|
+
cause?: Error;
|
|
73
|
+
/**
|
|
74
|
+
* Path to the error within the layout (e.g., "[0].conditions.any[0].type"
|
|
75
|
+
* or "[0].args.showIcon").
|
|
76
|
+
*/
|
|
86
77
|
path?: string;
|
|
87
|
-
|
|
88
|
-
conditions?: any;
|
|
89
|
-
errorPath?: string;
|
|
90
|
-
rootLayout?: Array<any>;
|
|
91
|
-
callSiteError?: Error | null;
|
|
92
|
-
}): void;
|
|
78
|
+
}
|
|
93
79
|
/**
|
|
94
80
|
* Error thrown when block validation fails.
|
|
95
81
|
* Used by block entry and condition validation to report
|
|
@@ -100,24 +86,30 @@ export function raiseBlockError(message: string, context?: {
|
|
|
100
86
|
* `callSiteError` directly (mutating its message and name) rather than
|
|
101
87
|
* passing it as `cause`. This preserves the original stack trace pointing
|
|
102
88
|
* to where `renderBlocks()` was called.
|
|
103
|
-
*
|
|
104
|
-
* @class BlockError
|
|
105
|
-
* @extends Error
|
|
106
89
|
*/
|
|
107
|
-
export class BlockError extends Error {
|
|
90
|
+
export declare class BlockError extends Error {
|
|
91
|
+
path?: string;
|
|
108
92
|
/**
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
* @param {string} message - The error message.
|
|
112
|
-
* @param {Object} [options] - Error options.
|
|
113
|
-
* @param {Error} [options.cause] - The underlying cause of this error.
|
|
114
|
-
* @param {string} [options.path] - Path to the error within the layout
|
|
115
|
-
* (e.g., "[0].conditions.any[0].type" or "[0].args.showIcon").
|
|
93
|
+
* @param message - The error message.
|
|
94
|
+
* @param options - Error options.
|
|
116
95
|
*/
|
|
117
|
-
constructor(message: string, options?:
|
|
118
|
-
cause?: Error;
|
|
119
|
-
path?: string;
|
|
120
|
-
});
|
|
121
|
-
path: string;
|
|
96
|
+
constructor(message: string, options?: BlockErrorOptions);
|
|
122
97
|
}
|
|
98
|
+
/**
|
|
99
|
+
* Raises a block error by throwing a `BlockError`.
|
|
100
|
+
*
|
|
101
|
+
* If context is provided, the error message will include the block
|
|
102
|
+
* entry for debugging.
|
|
103
|
+
*
|
|
104
|
+
* If a `callSiteError` is present in the context, it is reused with the
|
|
105
|
+
* new message. This preserves the original stack trace pointing to where
|
|
106
|
+
* `renderBlocks()` was called, which is more useful than pointing to this
|
|
107
|
+
* function. Source maps are applied automatically by the browser.
|
|
108
|
+
*
|
|
109
|
+
* @param message - The error message.
|
|
110
|
+
* @param context - Optional error context for better error messages (see
|
|
111
|
+
* `ValidationContext`).
|
|
112
|
+
* @throws Always throws a `BlockError`.
|
|
113
|
+
*/
|
|
114
|
+
export declare function raiseBlockError(message: string, context?: Partial<ValidationContext> | null): never;
|
|
123
115
|
//# sourceMappingURL=error.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../../../../discourse/app/lib/blocks/-internals/error.
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../../../../discourse/app/lib/blocks/-internals/error.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AA8D/E;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAmCpE;AAID;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,kCAAkC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAgYD;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,OAAO,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE,kBAAuB,GAC/B,MAAM,CAER;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,OAAO,EACZ,QAAQ,SAAI,EACZ,OAAO,SAAI,EACX,KAAK,GAAE,OAAO,CAAC,MAAM,CAAC,GAAG,IAAW,GACnC,OAAO,CA+DT;AAgBD;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAE7B,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,GACjC,KAAK,CAWP;AAmLD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,0FAA0F;IAC1F,KAAK,CAAC,EAAE,KAAK,CAAC;IACd;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;GAUG;AACH,qBAAa,UAAW,SAAQ,KAAK;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;gBACS,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,iBAAiB;CAKzD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG,IAAW,GAChD,KAAK,CAoCP"}
|
|
@@ -1,18 +1,24 @@
|
|
|
1
|
+
import type { BlockCondition } from "discourse/blocks/conditions";
|
|
2
|
+
/**
|
|
3
|
+
* Evaluation context passed through `evaluateConditions()` and its
|
|
4
|
+
* combinator helpers.
|
|
5
|
+
*/
|
|
6
|
+
export interface ConditionEvaluationContext {
|
|
7
|
+
/** Enable debug logging for this evaluation. */
|
|
8
|
+
debug?: boolean;
|
|
9
|
+
/** Internal: nesting depth for logging. */
|
|
10
|
+
_depth?: number;
|
|
11
|
+
/** Outlet arguments passed to conditions. */
|
|
12
|
+
outletArgs?: Record<string, unknown>;
|
|
13
|
+
}
|
|
1
14
|
/**
|
|
2
15
|
* Evaluates condition specs at render time.
|
|
3
16
|
* Recursively evaluates nested conditions with AND/OR/NOT logic.
|
|
4
17
|
*
|
|
5
|
-
* @param
|
|
6
|
-
* @param
|
|
7
|
-
* @param
|
|
8
|
-
* @
|
|
9
|
-
* @param {number} [context._depth] - Internal: nesting depth for logging.
|
|
10
|
-
* @param {Object} [context.outletArgs] - Outlet arguments passed to conditions.
|
|
11
|
-
* @returns {boolean} True if conditions pass, false otherwise.
|
|
18
|
+
* @param conditionSpec - Condition spec(s) to evaluate.
|
|
19
|
+
* @param conditionTypes - Map of registered condition types.
|
|
20
|
+
* @param context - Evaluation context.
|
|
21
|
+
* @returns True if conditions pass, false otherwise.
|
|
12
22
|
*/
|
|
13
|
-
export function evaluateConditions(conditionSpec:
|
|
14
|
-
debug?: boolean;
|
|
15
|
-
_depth?: number;
|
|
16
|
-
outletArgs?: any;
|
|
17
|
-
}): boolean;
|
|
23
|
+
export declare function evaluateConditions(conditionSpec: unknown, conditionTypes: Map<string, BlockCondition>, context?: ConditionEvaluationContext): boolean;
|
|
18
24
|
//# sourceMappingURL=condition-evaluator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"condition-evaluator.d.ts","sourceRoot":"","sources":["../../../../../../../discourse/app/lib/blocks/-internals/matching/condition-evaluator.
|
|
1
|
+
{"version":3,"file":"condition-evaluator.d.ts","sourceRoot":"","sources":["../../../../../../../discourse/app/lib/blocks/-internals/matching/condition-evaluator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAQlE;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC,gDAAgD;IAChD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,2CAA2C;IAC3C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6CAA6C;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,aAAa,EAAE,OAAO,EACtB,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,EAC3C,OAAO,GAAE,0BAA+B,GACvC,OAAO,CAuET"}
|
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The result of `detectPatternConflicts()`.
|
|
3
|
+
*/
|
|
4
|
+
export type PatternConflictResult = {
|
|
5
|
+
conflict: false;
|
|
6
|
+
} | {
|
|
7
|
+
conflict: true;
|
|
8
|
+
details: {
|
|
9
|
+
outlet: string;
|
|
10
|
+
allowed: string;
|
|
11
|
+
denied: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The result of `isBlockPermittedInOutlet()`.
|
|
16
|
+
*/
|
|
17
|
+
export interface OutletPermissionResult {
|
|
18
|
+
permitted: boolean;
|
|
19
|
+
reason?: string;
|
|
20
|
+
}
|
|
1
21
|
/**
|
|
2
22
|
* Checks if a pattern targets a namespaced outlet.
|
|
3
23
|
*
|
|
@@ -6,16 +26,13 @@
|
|
|
6
26
|
* These patterns bypass known-outlet validation since they reference outlets
|
|
7
27
|
* that may not be in the core `BLOCK_OUTLETS` registry.
|
|
8
28
|
*
|
|
9
|
-
* @param {string} pattern - The pattern to check.
|
|
10
|
-
* @returns {boolean} True if the pattern contains a namespace separator.
|
|
11
|
-
*
|
|
12
29
|
* @example
|
|
13
30
|
* isNamespacedPattern("my-plugin:dashboard"); // true
|
|
14
31
|
* isNamespacedPattern("my-theme:hero-section"); // true
|
|
15
32
|
* isNamespacedPattern("sidebar-blocks"); // false
|
|
16
33
|
* isNamespacedPattern("sidebar-*"); // false
|
|
17
34
|
*/
|
|
18
|
-
export function isNamespacedPattern(pattern: string): boolean;
|
|
35
|
+
export declare function isNamespacedPattern(pattern: string): boolean;
|
|
19
36
|
/**
|
|
20
37
|
* Matches an outlet name against a glob pattern using picomatch.
|
|
21
38
|
*
|
|
@@ -27,32 +44,42 @@ export function isNamespacedPattern(pattern: string): boolean;
|
|
|
27
44
|
* - `{a,b}` matches any of the comma-separated patterns
|
|
28
45
|
* - `!(pattern)` negative match (matches anything except pattern)
|
|
29
46
|
*
|
|
30
|
-
* @param
|
|
31
|
-
* @param
|
|
32
|
-
* @returns
|
|
47
|
+
* @param outlet - The outlet name to test.
|
|
48
|
+
* @param pattern - The glob pattern to match against.
|
|
49
|
+
* @returns True if the outlet matches the pattern.
|
|
33
50
|
*
|
|
34
51
|
* @example
|
|
52
|
+
* ```
|
|
35
53
|
* // Exact match
|
|
36
54
|
* matchOutletPattern("sidebar-blocks", "sidebar-blocks"); // true
|
|
55
|
+
* ```
|
|
37
56
|
*
|
|
38
57
|
* @example
|
|
58
|
+
* ```
|
|
39
59
|
* // Wildcard matching
|
|
40
60
|
* matchOutletPattern("sidebar-left", "sidebar-*"); // true
|
|
41
61
|
* matchOutletPattern("sidebar-left-top", "sidebar-*"); // true
|
|
62
|
+
* ```
|
|
42
63
|
*
|
|
43
64
|
* @example
|
|
65
|
+
* ```
|
|
44
66
|
* // Brace expansion
|
|
45
67
|
* matchOutletPattern("sidebar-blocks", "{sidebar,footer}-*"); // true
|
|
68
|
+
* ```
|
|
46
69
|
*
|
|
47
70
|
* @example
|
|
71
|
+
* ```
|
|
48
72
|
* // Character class
|
|
49
73
|
* matchOutletPattern("modal-1", "modal-[0-9]"); // true
|
|
74
|
+
* ```
|
|
50
75
|
*
|
|
51
76
|
* @example
|
|
77
|
+
* ```
|
|
52
78
|
* // Negation
|
|
53
79
|
* matchOutletPattern("sidebar-blocks", "!(*-debug)"); // true
|
|
80
|
+
* ```
|
|
54
81
|
*/
|
|
55
|
-
export function matchOutletPattern(outlet: string, pattern: string): boolean;
|
|
82
|
+
export declare function matchOutletPattern(outlet: string, pattern: string): boolean;
|
|
56
83
|
/**
|
|
57
84
|
* Validates that outlet patterns are a valid array of strings with valid picomatch syntax.
|
|
58
85
|
*
|
|
@@ -62,15 +89,15 @@ export function matchOutletPattern(outlet: string, pattern: string): boolean;
|
|
|
62
89
|
* 2. Each pattern in the array is a string
|
|
63
90
|
* 3. Each pattern can be compiled by picomatch
|
|
64
91
|
*
|
|
65
|
-
* @param
|
|
66
|
-
* @param
|
|
67
|
-
* @param
|
|
92
|
+
* @param patterns - The patterns to validate.
|
|
93
|
+
* @param blockName - Block name for error messages.
|
|
94
|
+
* @param propertyName - Property name ("allowedOutlets" or "deniedOutlets").
|
|
68
95
|
*
|
|
69
96
|
* @example
|
|
70
97
|
* validateOutletPatterns(["sidebar-*", "homepage-blocks"], "my-block", "allowedOutlets");
|
|
71
98
|
* validateOutletPatterns(null, "my-block", "allowedOutlets"); // null means no restrictions
|
|
72
99
|
*/
|
|
73
|
-
export function validateOutletPatterns(patterns:
|
|
100
|
+
export declare function validateOutletPatterns(patterns: unknown, blockName: string, propertyName: string): void;
|
|
74
101
|
/**
|
|
75
102
|
* Detects if allowed and denied patterns could match the same outlet name.
|
|
76
103
|
*
|
|
@@ -84,29 +111,25 @@ export function validateOutletPatterns(patterns: any, blockName: string, propert
|
|
|
84
111
|
* in patterns with concrete characters. This catches conflicts for outlets
|
|
85
112
|
* that don't exist yet (e.g., plugin-defined outlets).
|
|
86
113
|
*
|
|
87
|
-
* @param
|
|
88
|
-
* @param
|
|
89
|
-
* @returns
|
|
90
|
-
* Returns conflict: true with details if a conflict is detected.
|
|
114
|
+
* @param allowedPatterns - Patterns for allowed outlets.
|
|
115
|
+
* @param deniedPatterns - Patterns for denied outlets.
|
|
116
|
+
* @returns Conflict: true with details if a conflict is detected.
|
|
91
117
|
*
|
|
92
118
|
* @example
|
|
119
|
+
* ```
|
|
93
120
|
* // No conflict
|
|
94
121
|
* detectPatternConflicts(["sidebar-*"], ["homepage-*"]);
|
|
95
122
|
* // { conflict: false }
|
|
123
|
+
* ```
|
|
96
124
|
*
|
|
97
125
|
* @example
|
|
126
|
+
* ```
|
|
98
127
|
* // Conflict detected
|
|
99
128
|
* detectPatternConflicts(["*-blocks"], ["sidebar-*"]);
|
|
100
129
|
* // { conflict: true, details: { outlet: "sidebar-blocks", allowed: "*-blocks", denied: "sidebar-*" } }
|
|
130
|
+
* ```
|
|
101
131
|
*/
|
|
102
|
-
export function detectPatternConflicts(allowedPatterns: string[] | null, deniedPatterns: string[] | null):
|
|
103
|
-
conflict: boolean;
|
|
104
|
-
details?: {
|
|
105
|
-
outlet: string;
|
|
106
|
-
allowed: string;
|
|
107
|
-
denied: string;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
132
|
+
export declare function detectPatternConflicts(allowedPatterns: string[] | null | undefined, deniedPatterns: string[] | null | undefined): PatternConflictResult;
|
|
110
133
|
/**
|
|
111
134
|
* Checks if a block is permitted to render in a specific outlet.
|
|
112
135
|
*
|
|
@@ -118,36 +141,40 @@ export function detectPatternConflicts(allowedPatterns: string[] | null, deniedP
|
|
|
118
141
|
* Denial takes precedence over allowance. An empty `allowedOutlets` array means
|
|
119
142
|
* "no outlets allowed" (strict whitelist).
|
|
120
143
|
*
|
|
121
|
-
* @param
|
|
122
|
-
* @param
|
|
123
|
-
* @param
|
|
124
|
-
* @returns
|
|
125
|
-
* Returns permitted: true if allowed, or permitted: false with a reason if denied.
|
|
144
|
+
* @param outlet - The outlet name to check.
|
|
145
|
+
* @param allowedPatterns - Patterns for allowed outlets.
|
|
146
|
+
* @param deniedPatterns - Patterns for denied outlets.
|
|
147
|
+
* @returns Permitted: true if allowed, or permitted: false with a reason if denied.
|
|
126
148
|
*
|
|
127
149
|
* @example
|
|
150
|
+
* ```
|
|
128
151
|
* // No restrictions
|
|
129
152
|
* isBlockPermittedInOutlet("sidebar-blocks", null, null);
|
|
130
153
|
* // { permitted: true }
|
|
154
|
+
* ```
|
|
131
155
|
*
|
|
132
156
|
* @example
|
|
157
|
+
* ```
|
|
133
158
|
* // Allowed by pattern
|
|
134
159
|
* isBlockPermittedInOutlet("sidebar-blocks", ["sidebar-*"], null);
|
|
135
160
|
* // { permitted: true }
|
|
161
|
+
* ```
|
|
136
162
|
*
|
|
137
163
|
* @example
|
|
164
|
+
* ```
|
|
138
165
|
* // Denied by pattern
|
|
139
166
|
* isBlockPermittedInOutlet("sidebar-blocks", null, ["sidebar-*"]);
|
|
140
167
|
* // { permitted: false, reason: 'outlet "sidebar-blocks" matches deniedOutlets pattern "sidebar-*"' }
|
|
168
|
+
* ```
|
|
141
169
|
*
|
|
142
170
|
* @example
|
|
171
|
+
* ```
|
|
143
172
|
* // Not in allowed list
|
|
144
173
|
* isBlockPermittedInOutlet("homepage-blocks", ["sidebar-*"], null);
|
|
145
174
|
* // { permitted: false, reason: 'outlet "homepage-blocks" does not match any allowedOutlets pattern' }
|
|
175
|
+
* ```
|
|
146
176
|
*/
|
|
147
|
-
export function isBlockPermittedInOutlet(outlet: string, allowedPatterns: string[] | null, deniedPatterns: string[] | null):
|
|
148
|
-
permitted: boolean;
|
|
149
|
-
reason?: string;
|
|
150
|
-
};
|
|
177
|
+
export declare function isBlockPermittedInOutlet(outlet: string, allowedPatterns: string[] | null | undefined, deniedPatterns: string[] | null | undefined): OutletPermissionResult;
|
|
151
178
|
/**
|
|
152
179
|
* Warns if patterns don't match any known outlet (helps catch typos).
|
|
153
180
|
*
|
|
@@ -158,14 +185,14 @@ export function isBlockPermittedInOutlet(outlet: string, allowedPatterns: string
|
|
|
158
185
|
* Warnings are only printed in development builds (when DEBUG is true).
|
|
159
186
|
* This prevents noise in production.
|
|
160
187
|
*
|
|
161
|
-
* @param
|
|
162
|
-
* @param
|
|
163
|
-
* @param
|
|
188
|
+
* @param patterns - The patterns to check.
|
|
189
|
+
* @param blockName - Block name for warning messages.
|
|
190
|
+
* @param propertyName - Property name ("allowedOutlets" or "deniedOutlets").
|
|
164
191
|
*
|
|
165
192
|
* @example
|
|
166
193
|
* // Warns about typo
|
|
167
194
|
* warnUnknownOutletPatterns(["sidbar-*"], "my-block", "allowedOutlets");
|
|
168
195
|
* // Console: [Blocks] Block "my-block": allowedOutlets pattern "sidbar-*" does not match any known outlet...
|
|
169
196
|
*/
|
|
170
|
-
export function warnUnknownOutletPatterns(patterns: string[] | null, blockName: string, propertyName: string): void;
|
|
197
|
+
export declare function warnUnknownOutletPatterns(patterns: string[] | null | undefined, blockName: string, propertyName: string): void;
|
|
171
198
|
//# sourceMappingURL=outlet-matcher.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outlet-matcher.d.ts","sourceRoot":"","sources":["../../../../../../../discourse/app/lib/blocks/-internals/matching/outlet-matcher.
|
|
1
|
+
{"version":3,"file":"outlet-matcher.d.ts","sourceRoot":"","sources":["../../../../../../../discourse/app/lib/blocks/-internals/matching/outlet-matcher.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAC7B;IAAE,QAAQ,EAAE,KAAK,CAAA;CAAE,GACnB;IACE,QAAQ,EAAE,IAAI,CAAC;IACf,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CAC9D,CAAC;AAEN;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAE5D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAI3E;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,GACnB,IAAI,CAiCN;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,sBAAsB,CACpC,eAAe,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,EAC5C,cAAc,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,GAC1C,qBAAqB,CA0DvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,EAC5C,cAAc,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,GAC1C,sBAAsB,CAwCxB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,EACrC,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,GACnB,IAAI,CA2BN"}
|