@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,27 +1,37 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Condition-specific arg validation.
|
|
3
|
+
*
|
|
4
|
+
* This module adapts the shared arg validation utilities from args.ts
|
|
5
|
+
* for use with block conditions. Key differences from block arg validation:
|
|
6
|
+
* - Error messages use "Condition" instead of "Block"
|
|
7
|
+
* - The "default" property is not allowed (conditions don't use defaults)
|
|
8
|
+
* - Type validation happens at registration time
|
|
9
|
+
*/
|
|
10
|
+
import type { ArgSchema } from "discourse/blocks/types";
|
|
11
|
+
/**
|
|
12
|
+
* Valid properties for condition arg schemas.
|
|
13
|
+
* Includes all standard arg properties except those in DISALLOWED_CONDITION_PROPERTIES.
|
|
14
|
+
*/
|
|
15
|
+
export declare const VALID_CONDITION_ARG_PROPERTIES: readonly string[];
|
|
16
|
+
/**
|
|
17
|
+
* Validates the arg schema definition passed to the `@blockCondition` decorator.
|
|
3
18
|
* Enforces strict schema format - unknown properties are not allowed.
|
|
4
19
|
* Called at decoration time to catch schema errors early.
|
|
5
20
|
*
|
|
6
|
-
* @param
|
|
7
|
-
* @param
|
|
8
|
-
* @throws
|
|
21
|
+
* @param argsSchema - The args schema object from decorator options.
|
|
22
|
+
* @param conditionType - Condition type name for error messages.
|
|
23
|
+
* @throws Error if schema is invalid.
|
|
9
24
|
*/
|
|
10
|
-
export function validateConditionArgsSchema(argsSchema:
|
|
25
|
+
export declare function validateConditionArgsSchema(argsSchema: Record<string, ArgSchema> | null | undefined, conditionType: string): void;
|
|
11
26
|
/**
|
|
12
27
|
* Validates provided arg values against the condition's schema.
|
|
13
28
|
* Called at block registration time to catch invalid values early.
|
|
14
29
|
*
|
|
15
|
-
* @param
|
|
16
|
-
* @param
|
|
17
|
-
* @param
|
|
18
|
-
* @param
|
|
19
|
-
* @throws
|
|
20
|
-
*/
|
|
21
|
-
export function validateConditionArgValues(args: any, argsSchema: any, conditionType: string, path: string): void;
|
|
22
|
-
/**
|
|
23
|
-
* Valid properties for condition arg schemas.
|
|
24
|
-
* Includes all standard arg properties except those in DISALLOWED_CONDITION_PROPERTIES.
|
|
30
|
+
* @param args - The arguments provided to the condition.
|
|
31
|
+
* @param argsSchema - The condition's args schema.
|
|
32
|
+
* @param conditionType - The condition type for error messages.
|
|
33
|
+
* @param path - The path to this condition in the block tree.
|
|
34
|
+
* @throws BlockError if validation fails.
|
|
25
35
|
*/
|
|
26
|
-
export
|
|
36
|
+
export declare function validateConditionArgValues(args: Record<string, unknown>, argsSchema: Record<string, ArgSchema>, conditionType: string, path: string): void;
|
|
27
37
|
//# sourceMappingURL=condition-args.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"condition-args.d.ts","sourceRoot":"","sources":["../../../../../../../discourse/app/lib/blocks/-internals/validation/condition-args.
|
|
1
|
+
{"version":3,"file":"condition-args.d.ts","sourceRoot":"","sources":["../../../../../../../discourse/app/lib/blocks/-internals/validation/condition-args.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAoBxD;;;GAGG;AACH,eAAO,MAAM,8BAA8B,EAAE,SAAS,MAAM,EAI3D,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAI,GAAG,SAAS,EACxD,aAAa,EAAE,MAAM,GACpB,IAAI,CAwBN;AAkBD;;;;;;;;;GASG;AACH,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EACrC,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,MAAM,GACX,IAAI,CA8BN"}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
import type { BlockCondition } from "discourse/blocks/conditions";
|
|
2
|
+
/** The result of `validateConditionSource()`: error info, or `null` if valid. */
|
|
3
|
+
export interface ConditionSourceError {
|
|
4
|
+
/** The error message. */
|
|
5
|
+
message: string;
|
|
6
|
+
/** The path to the invalid `source` parameter. */
|
|
7
|
+
path?: string;
|
|
8
|
+
}
|
|
1
9
|
/**
|
|
2
10
|
* Validates the `source` parameter based on the condition's `sourceType`.
|
|
3
11
|
*
|
|
@@ -5,25 +13,22 @@
|
|
|
5
13
|
* - `sourceType: "outletArgs"`: Validates format is `@outletArgs.propertyPath`
|
|
6
14
|
* - `sourceType: "object"`: Validates `source` is an object if provided
|
|
7
15
|
*
|
|
8
|
-
* @param
|
|
9
|
-
* @param
|
|
10
|
-
* @returns
|
|
16
|
+
* @param sourceType - The condition's source type.
|
|
17
|
+
* @param args - The condition arguments from the layout entry.
|
|
18
|
+
* @returns Error info or null if valid.
|
|
11
19
|
*/
|
|
12
|
-
export function validateConditionSource(sourceType: "none" | "outletArgs" | "object", args:
|
|
13
|
-
message: string;
|
|
14
|
-
path?: string;
|
|
15
|
-
} | null;
|
|
20
|
+
export declare function validateConditionSource(sourceType: "none" | "outletArgs" | "object", args: Record<string, unknown>): ConditionSourceError | null;
|
|
16
21
|
/**
|
|
17
22
|
* Validates that all provided args are recognized by a condition.
|
|
18
23
|
* Suggests corrections for typos using fuzzy string matching.
|
|
19
24
|
*
|
|
20
|
-
* @param
|
|
21
|
-
* @param
|
|
22
|
-
* @param
|
|
23
|
-
* @param
|
|
24
|
-
* @throws
|
|
25
|
+
* @param instance - The condition instance.
|
|
26
|
+
* @param type - The condition type name.
|
|
27
|
+
* @param args - The args provided to the condition.
|
|
28
|
+
* @param path - The path to this condition in the block tree.
|
|
29
|
+
* @throws BlockError if an unrecognized arg key is found.
|
|
25
30
|
*/
|
|
26
|
-
export function validateConditionArgKeys(instance:
|
|
31
|
+
export declare function validateConditionArgKeys(instance: BlockCondition, type: string, args: Record<string, unknown>, path: string): void;
|
|
27
32
|
/**
|
|
28
33
|
* Validates condition specs at block registration time.
|
|
29
34
|
* Recursively validates nested conditions in `any` and `not` combinators.
|
|
@@ -38,11 +43,11 @@ export function validateConditionArgKeys(instance: import("discourse/blocks/cond
|
|
|
38
43
|
* This is acceptable since condition keys come from theme/plugin layouts
|
|
39
44
|
* where unusual characters are rare.
|
|
40
45
|
*
|
|
41
|
-
* @param
|
|
42
|
-
* @param
|
|
43
|
-
* @param
|
|
46
|
+
* @param conditionSpec - Condition spec(s) to validate.
|
|
47
|
+
* @param conditionTypes - Map of registered condition types.
|
|
48
|
+
* @param path - The path to this condition relative to conditions root
|
|
44
49
|
* (e.g., "", "[0]", "any[1]", "params.categoryId").
|
|
45
|
-
* @throws
|
|
50
|
+
* @throws BlockError if validation fails.
|
|
46
51
|
*/
|
|
47
|
-
export function validateConditions(conditionSpec:
|
|
52
|
+
export declare function validateConditions(conditionSpec: unknown, conditionTypes: Map<string, BlockCondition>, path?: string): void;
|
|
48
53
|
//# sourceMappingURL=conditions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conditions.d.ts","sourceRoot":"","sources":["../../../../../../../discourse/app/lib/blocks/-internals/validation/conditions.
|
|
1
|
+
{"version":3,"file":"conditions.d.ts","sourceRoot":"","sources":["../../../../../../../discourse/app/lib/blocks/-internals/validation/conditions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAelE,iFAAiF;AACjF,MAAM,WAAW,oBAAoB;IACnC,yBAAyB;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,kDAAkD;IAClD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GAAG,YAAY,GAAG,QAAQ,EAC5C,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,oBAAoB,GAAG,IAAI,CAwC7B;AAED;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,cAAc,EACxB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,IAAI,EAAE,MAAM,GACX,IAAI,CAoBN;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,kBAAkB,CAChC,aAAa,EAAE,OAAO,EACtB,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,EAC3C,IAAI,SAAK,GACR,IAAI,CAuCN"}
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cross-arg constraint validation for blocks.
|
|
3
|
+
*
|
|
4
|
+
* This module handles validation rules that span multiple arguments, such as
|
|
5
|
+
* "at least one of these args must be provided" or "these args must be provided together."
|
|
6
|
+
*
|
|
7
|
+
* Supported constraint types:
|
|
8
|
+
* - atLeastOne: At least one of the specified args must be provided
|
|
9
|
+
* - exactlyOne: Exactly one of the specified args must be provided
|
|
10
|
+
* - allOrNone: Either all or none of the specified args must be provided
|
|
11
|
+
* - atMostOne: At most one of the specified args may be provided (0 or 1)
|
|
12
|
+
* - requires: If a dependent arg is provided, its required arg must also be provided
|
|
13
|
+
*/
|
|
14
|
+
import type { ArgSchema, BlockConstraints, BlockValidateFn } from "discourse/blocks/types";
|
|
15
|
+
/**
|
|
16
|
+
* Valid constraint types for cross-arg validation.
|
|
17
|
+
*/
|
|
18
|
+
export declare const VALID_CONSTRAINT_TYPES: readonly string[];
|
|
1
19
|
/**
|
|
2
20
|
* Validates the constraints schema at decoration time.
|
|
3
21
|
* Checks for:
|
|
@@ -7,31 +25,27 @@
|
|
|
7
25
|
* - Incompatible constraints (exactlyOne + allOrNone, exactlyOne + atLeastOne)
|
|
8
26
|
* - Vacuous constraints (constraints rendered always true/false by defaults)
|
|
9
27
|
*
|
|
10
|
-
* @param
|
|
11
|
-
* @param
|
|
12
|
-
* @param
|
|
28
|
+
* @param constraints - The constraints object from decorator options.
|
|
29
|
+
* @param argsSchema - The args schema object from decorator options.
|
|
30
|
+
* @param blockName - Block name for error messages.
|
|
13
31
|
*/
|
|
14
|
-
export function validateConstraintsSchema(constraints:
|
|
32
|
+
export declare function validateConstraintsSchema(constraints: BlockConstraints | null | undefined, argsSchema: Record<string, ArgSchema> | null | undefined, blockName: string): void;
|
|
15
33
|
/**
|
|
16
34
|
* Validates constraints against the provided args at runtime.
|
|
17
35
|
* Called after defaults are applied.
|
|
18
36
|
*
|
|
19
|
-
* @param
|
|
20
|
-
* @param
|
|
21
|
-
* @param
|
|
22
|
-
* @returns
|
|
37
|
+
* @param constraints - The constraints from block metadata.
|
|
38
|
+
* @param args - The resolved args (with defaults applied).
|
|
39
|
+
* @param blockName - Block name for error messages.
|
|
40
|
+
* @returns Error message if validation fails, null otherwise.
|
|
23
41
|
*/
|
|
24
|
-
export function validateConstraints(constraints:
|
|
42
|
+
export declare function validateConstraints(constraints: BlockConstraints | null | undefined, args: Record<string, unknown>, blockName: string): string | null;
|
|
25
43
|
/**
|
|
26
44
|
* Runs a custom validation function if provided.
|
|
27
45
|
*
|
|
28
|
-
* @param
|
|
29
|
-
* @param
|
|
30
|
-
* @returns
|
|
31
|
-
*/
|
|
32
|
-
export function runCustomValidation(validateFn: Function, args: any): string[] | null;
|
|
33
|
-
/**
|
|
34
|
-
* Valid constraint types for cross-arg validation.
|
|
46
|
+
* @param validateFn - The custom validate function.
|
|
47
|
+
* @param args - The resolved args (with defaults applied).
|
|
48
|
+
* @returns Array of error messages if validation fails, null otherwise.
|
|
35
49
|
*/
|
|
36
|
-
export
|
|
50
|
+
export declare function runCustomValidation(validateFn: BlockValidateFn | null | undefined, args: Record<string, unknown>): string[] | null;
|
|
37
51
|
//# sourceMappingURL=constraints.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constraints.d.ts","sourceRoot":"","sources":["../../../../../../../discourse/app/lib/blocks/-internals/validation/constraints.
|
|
1
|
+
{"version":3,"file":"constraints.d.ts","sourceRoot":"","sources":["../../../../../../../discourse/app/lib/blocks/-internals/validation/constraints.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAChB,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAIhC;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,SAAS,MAAM,EAMlD,CAAC;AAYH;;;;;;;;;;;;GAYG;AACH,wBAAgB,yBAAyB,CACvC,WAAW,EAAE,gBAAgB,GAAG,IAAI,GAAG,SAAS,EAChD,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAI,GAAG,SAAS,EACxD,SAAS,EAAE,MAAM,GAChB,IAAI,CAuHN;AAsID;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,gBAAgB,GAAG,IAAI,GAAG,SAAS,EAChD,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,SAAS,EAAE,MAAM,GAChB,MAAM,GAAG,IAAI,CA0Cf;AAqID;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,eAAe,GAAG,IAAI,GAAG,SAAS,EAC9C,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,MAAM,EAAE,GAAG,IAAI,CA6BjB"}
|
|
@@ -1,12 +1,37 @@
|
|
|
1
|
+
import type { ChildArgSchema, LayoutEntry } from "discourse/blocks/types";
|
|
2
|
+
import { OPTIONAL_MISSING } from "discourse/lib/blocks/-internals/patterns";
|
|
3
|
+
import type { BlockClass } from "discourse/lib/blocks/-internals/types";
|
|
4
|
+
import type Blocks from "discourse/services/blocks";
|
|
1
5
|
/**
|
|
2
6
|
* Validates that a block entry's `id` matches the required pattern.
|
|
3
7
|
* IDs must start with a lowercase letter and contain only lowercase letters,
|
|
4
8
|
* numbers, and hyphens (same format as block names).
|
|
5
9
|
*
|
|
6
|
-
* @param
|
|
7
|
-
* @throws
|
|
10
|
+
* @param entry - The block entry.
|
|
11
|
+
* @throws BlockError if the id format is invalid.
|
|
8
12
|
*/
|
|
9
|
-
export function validateEntryIdFormat(entry:
|
|
13
|
+
export declare function validateEntryIdFormat(entry: LayoutEntry): void;
|
|
14
|
+
/** Context accepted by `resolveBlockForValidation`. */
|
|
15
|
+
interface ResolveBlockForValidationContext {
|
|
16
|
+
/** Path to this entry in the block tree. */
|
|
17
|
+
path?: string;
|
|
18
|
+
/** The block entry object. */
|
|
19
|
+
entry?: LayoutEntry | null;
|
|
20
|
+
/** Error capturing call site location. */
|
|
21
|
+
callSiteError?: Error | null;
|
|
22
|
+
/** Root layout array for error display. */
|
|
23
|
+
rootLayout?: LayoutEntry[] | null;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Marker returned by `resolveBlockForValidation()` for an optional block
|
|
27
|
+
* reference (`name?`) that isn't registered, keyed by the `OPTIONAL_MISSING`
|
|
28
|
+
* symbol (distinct from the `registry/block.ts` `OptionalMissingMarker` shape,
|
|
29
|
+
* which is keyed by the plain `"optionalMissing"` property).
|
|
30
|
+
*/
|
|
31
|
+
type ResolveOptionalMissingMarker = {
|
|
32
|
+
[OPTIONAL_MISSING]: true;
|
|
33
|
+
name: string;
|
|
34
|
+
};
|
|
10
35
|
/**
|
|
11
36
|
* Resolves a block reference (string or class) to a BlockClass for validation.
|
|
12
37
|
*
|
|
@@ -25,25 +50,19 @@ export function validateEntryIdFormat(entry: any): void;
|
|
|
25
50
|
* is returned instead of throwing an error. The calling code should check for this
|
|
26
51
|
* marker and skip validation/rendering for the block.
|
|
27
52
|
*
|
|
28
|
-
* @param
|
|
29
|
-
* @param
|
|
30
|
-
* @param
|
|
31
|
-
* @
|
|
32
|
-
* @
|
|
33
|
-
* @param {Error} [context.callSiteError] - Error capturing call site location.
|
|
34
|
-
* @param {Array} [context.rootLayout] - Root layout array for error display.
|
|
35
|
-
* @returns {Promise<Object | string | { [OPTIONAL_MISSING]: true, name: string }>}
|
|
36
|
-
* Resolved BlockClass, string name if deferred, or optional missing marker object.
|
|
37
|
-
* @throws {Error} If required block is not registered.
|
|
53
|
+
* @param blockRef - Block name string (possibly with `?` suffix) or BlockClass.
|
|
54
|
+
* @param outletName - Outlet name for error messages.
|
|
55
|
+
* @param context - Context for error messages.
|
|
56
|
+
* @returns Resolved BlockClass, string name if deferred, or optional missing marker object.
|
|
57
|
+
* @throws Error if required block is not registered.
|
|
38
58
|
*/
|
|
39
|
-
export function resolveBlockForValidation(blockRef: string |
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}>;
|
|
59
|
+
export declare function resolveBlockForValidation(blockRef: string | BlockClass, outletName: string, context?: ResolveBlockForValidationContext): Promise<BlockClass | string | ResolveOptionalMissingMarker | null | undefined>;
|
|
60
|
+
/**
|
|
61
|
+
* Valid top-level keys in block entry objects.
|
|
62
|
+
* Any key not in this list will trigger a validation error, helping catch
|
|
63
|
+
* common typos like `condition` instead of `conditions`.
|
|
64
|
+
*/
|
|
65
|
+
export declare const VALID_ENTRY_KEYS: readonly string[];
|
|
47
66
|
/**
|
|
48
67
|
* Validates that a block entry only uses known keys.
|
|
49
68
|
* Uses fuzzy matching to suggest corrections for typos like "condition",
|
|
@@ -52,26 +71,29 @@ export function resolveBlockForValidation(blockRef: string | any, outletName: st
|
|
|
52
71
|
* Internal keys (starting with `__`) are skipped as they are added by the
|
|
53
72
|
* system during preprocessing (e.g., `__visible`, `__failureReason`).
|
|
54
73
|
*
|
|
55
|
-
* @param
|
|
56
|
-
* @throws
|
|
74
|
+
* @param entry - The block entry object.
|
|
75
|
+
* @throws BlockError if unknown keys are found.
|
|
57
76
|
*/
|
|
58
|
-
export function validateEntryKeys(entry:
|
|
77
|
+
export declare function validateEntryKeys(entry: LayoutEntry): void;
|
|
59
78
|
/**
|
|
60
79
|
* Validates the types of optional entry fields.
|
|
61
80
|
* Iterates over ENTRY_TYPE_RULES to check each field's type.
|
|
62
81
|
*
|
|
63
|
-
* @param
|
|
64
|
-
* @throws
|
|
82
|
+
* @param entry - The block entry object.
|
|
83
|
+
* @throws BlockError if any field has an invalid type.
|
|
65
84
|
*/
|
|
66
|
-
export function validateEntryTypes(entry:
|
|
85
|
+
export declare function validateEntryTypes(entry: LayoutEntry): void;
|
|
67
86
|
/**
|
|
68
87
|
* Validation context passed through layout validation recursion.
|
|
69
88
|
* Created at the root level and shared across all entries to enable
|
|
70
89
|
* cross-cutting validation (e.g., ID uniqueness across the entire tree).
|
|
71
|
-
*
|
|
72
|
-
* @typedef {Object} LayoutValidationContext
|
|
73
|
-
* @property {Map<string, {path: string}>} seenIds - Map of entry IDs to their paths for uniqueness validation.
|
|
74
90
|
*/
|
|
91
|
+
export interface LayoutValidationContext {
|
|
92
|
+
/** Map of entry IDs to their paths for uniqueness validation. */
|
|
93
|
+
seenIds: Map<string, {
|
|
94
|
+
path: string;
|
|
95
|
+
}>;
|
|
96
|
+
}
|
|
75
97
|
/**
|
|
76
98
|
* Recursively validates an outlet layout (array of block entries).
|
|
77
99
|
* Validates each block entry and traverses nested children.
|
|
@@ -80,26 +102,25 @@ export function validateEntryTypes(entry: any): void;
|
|
|
80
102
|
* - In dev/test: Eagerly resolves all factories for early error detection.
|
|
81
103
|
* - In production: Defers factory resolution to render time.
|
|
82
104
|
*
|
|
83
|
-
* @param
|
|
84
|
-
* @param
|
|
85
|
-
* @param
|
|
86
|
-
* @param
|
|
87
|
-
* @param
|
|
88
|
-
* @param
|
|
89
|
-
* @param
|
|
90
|
-
* @param
|
|
91
|
-
* @param
|
|
92
|
-
* @param
|
|
93
|
-
* @
|
|
94
|
-
* @throws {Error} If any block entry is invalid or nesting depth exceeds MAX_LAYOUT_DEPTH.
|
|
105
|
+
* @param layout - The outlet layout (array of block entries) to validate.
|
|
106
|
+
* @param outletName - The outlet these blocks belong to.
|
|
107
|
+
* @param blocksService - Service for validating conditions.
|
|
108
|
+
* @param parentPath - JSON-path style parent location for error context.
|
|
109
|
+
* @param callSiteError - Where renderBlocks() was called from.
|
|
110
|
+
* @param rootLayout - The root layout array for error context display.
|
|
111
|
+
* @param parentChildArgsSchema - The parent container's childArgs schema, if any.
|
|
112
|
+
* @param parentBlockName - The parent container's block name for error messages.
|
|
113
|
+
* @param depth - Current nesting depth for recursion limit checking.
|
|
114
|
+
* @param context - Validation context for cross-cutting concerns like ID uniqueness.
|
|
115
|
+
* @throws Error if any block entry is invalid or nesting depth exceeds MAX_LAYOUT_DEPTH.
|
|
95
116
|
*/
|
|
96
|
-
export function validateLayout(layout:
|
|
117
|
+
export declare function validateLayout(layout: LayoutEntry[], outletName: string, blocksService: Blocks | undefined, parentPath?: string, callSiteError?: Error | null, rootLayout?: LayoutEntry[] | null, parentChildArgsSchema?: Record<string, ChildArgSchema> | null, parentBlockName?: string | null, depth?: number, context?: LayoutValidationContext): Promise<void>;
|
|
97
118
|
/**
|
|
98
119
|
* Validates a single block entry object.
|
|
99
120
|
*
|
|
100
121
|
* Performs comprehensive validation including:
|
|
101
122
|
* - Outlet name is a valid registered outlet (core or custom)
|
|
102
|
-
* - Block reference is valid (string name or
|
|
123
|
+
* - Block reference is valid (string name or `@block`-decorated class)
|
|
103
124
|
* - Block is registered in the registry
|
|
104
125
|
* - Container/children relationship is valid
|
|
105
126
|
* - No reserved arg names are used
|
|
@@ -110,46 +131,17 @@ export function validateLayout(layout: Array<any>, outletName: string, blocksSer
|
|
|
110
131
|
* if a block reference is a string pointing to an unresolved factory, full
|
|
111
132
|
* validation is deferred to render time.
|
|
112
133
|
*
|
|
113
|
-
* @param
|
|
114
|
-
* @param
|
|
115
|
-
* @param
|
|
116
|
-
* @param
|
|
117
|
-
* @param
|
|
118
|
-
* @param
|
|
119
|
-
* @param
|
|
120
|
-
* @param
|
|
121
|
-
* @
|
|
122
|
-
* @
|
|
123
|
-
* @param {Array<Object>} [rootLayout] - The root layout array for error context display.
|
|
124
|
-
* @param {Object|null} [parentChildArgsSchema=null] - The parent container's childArgs schema, if any.
|
|
125
|
-
* @param {string|null} [parentBlockName=null] - The parent container's block name for error messages.
|
|
126
|
-
* @returns {Promise<Object|null>} The block's childArgsSchema if it's a container with childArgs, otherwise null.
|
|
127
|
-
* @throws {Error} If validation fails.
|
|
128
|
-
*/
|
|
129
|
-
export function validateEntry(entry: {
|
|
130
|
-
block: typeof import("@glimmer/component").default | string;
|
|
131
|
-
args?: any;
|
|
132
|
-
containerArgs?: any;
|
|
133
|
-
children?: Array<any>;
|
|
134
|
-
conditions?: Array<any> | any;
|
|
135
|
-
}, outletName: string, blocksService: import("discourse/services/blocks").default, path?: string, callSiteError?: Error | null, rootLayout?: Array<any>, parentChildArgsSchema?: any | null, parentBlockName?: string | null): Promise<any | null>;
|
|
136
|
-
/**
|
|
137
|
-
* Valid top-level keys in block entry objects.
|
|
138
|
-
* Any key not in this list will trigger a validation error, helping catch
|
|
139
|
-
* common typos like `condition` instead of `conditions`.
|
|
134
|
+
* @param entry - The block entry object.
|
|
135
|
+
* @param outletName - The outlet this block belongs to.
|
|
136
|
+
* @param blocksService - Service for validating conditions.
|
|
137
|
+
* @param path - JSON-path style location in layout (e.g., "[3].children[0]").
|
|
138
|
+
* @param callSiteError - Where renderBlocks() was called from.
|
|
139
|
+
* @param rootLayout - The root layout array for error context display.
|
|
140
|
+
* @param parentChildArgsSchema - The parent container's childArgs schema, if any.
|
|
141
|
+
* @param parentBlockName - The parent container's block name for error messages.
|
|
142
|
+
* @returns The block's childArgsSchema if it's a container with childArgs, otherwise null.
|
|
143
|
+
* @throws Error if validation fails.
|
|
140
144
|
*/
|
|
141
|
-
export
|
|
142
|
-
|
|
143
|
-
* Validation context passed through layout validation recursion.
|
|
144
|
-
* Created at the root level and shared across all entries to enable
|
|
145
|
-
* cross-cutting validation (e.g., ID uniqueness across the entire tree).
|
|
146
|
-
*/
|
|
147
|
-
export type LayoutValidationContext = {
|
|
148
|
-
/**
|
|
149
|
-
* - Map of entry IDs to their paths for uniqueness validation.
|
|
150
|
-
*/
|
|
151
|
-
seenIds: Map<string, {
|
|
152
|
-
path: string;
|
|
153
|
-
}>;
|
|
154
|
-
};
|
|
145
|
+
export declare function validateEntry(entry: LayoutEntry, outletName: string, blocksService: Blocks | undefined, path: string, callSiteError?: Error | null, rootLayout?: LayoutEntry[] | null, parentChildArgsSchema?: Record<string, ChildArgSchema> | null, parentBlockName?: string | null): Promise<Record<string, ChildArgSchema> | null>;
|
|
146
|
+
export {};
|
|
155
147
|
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../../../../discourse/app/lib/blocks/-internals/validation/layout.
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../../../../discourse/app/lib/blocks/-internals/validation/layout.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAEV,cAAc,EACd,WAAW,EACZ,MAAM,wBAAwB,CAAC;AAOhC,OAAO,EAEL,gBAAgB,EAGjB,MAAM,0CAA0C,CAAC;AAUlD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAcxE,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAkRpD;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI,CAY9D;AAwFD,uDAAuD;AACvD,UAAU,gCAAgC;IACxC,4CAA4C;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8BAA8B;IAC9B,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC3B,0CAA0C;IAC1C,aAAa,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAC7B,2CAA2C;IAC3C,UAAU,CAAC,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;CACnC;AAED;;;;;GAKG;AACH,KAAK,4BAA4B,GAAG;IAAE,CAAC,gBAAgB,CAAC,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAE/E;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,yBAAyB,CAC7C,QAAQ,EAAE,MAAM,GAAG,UAAU,EAC7B,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,gCAAqC,GAC7C,OAAO,CACR,UAAU,GAAG,MAAM,GAAG,4BAA4B,GAAG,IAAI,GAAG,SAAS,CACtE,CA0CA;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,SAAS,MAAM,EAQ5C,CAAC;AAwDH;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI,CAmB1D;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI,CAe3D;AAED;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC,iEAAiE;IACjE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACxC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,WAAW,EAAE,EACrB,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,UAAU,SAAK,EACf,aAAa,GAAE,KAAK,GAAG,IAAW,EAClC,UAAU,GAAE,WAAW,EAAE,GAAG,IAAW,EACvC,qBAAqB,GAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,GAAG,IAAW,EACnE,eAAe,GAAE,MAAM,GAAG,IAAW,EACrC,KAAK,SAAI,EACT,OAAO,GAAE,uBAAgD,GACxD,OAAO,CAAC,IAAI,CAAC,CAkHf;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAsB,aAAa,CACjC,KAAK,EAAE,WAAW,EAClB,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,IAAI,EAAE,MAAM,EACZ,aAAa,GAAE,KAAK,GAAG,IAAW,EAClC,UAAU,GAAE,WAAW,EAAE,GAAG,IAAW,EACvC,qBAAqB,GAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,GAAG,IAAW,EACnE,eAAe,GAAE,MAAM,GAAG,IAAW,GACpC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,GAAG,IAAI,CAAC,CA0LhD"}
|
|
@@ -1,7 +1,132 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public API for the Discourse Block system.
|
|
3
|
+
*
|
|
4
|
+
* This module exposes constants and utilities that plugin and theme developers
|
|
5
|
+
* can use when working with blocks. Internal implementation details are kept
|
|
6
|
+
* in the `-internals/` directory and should not be imported directly.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```javascript
|
|
10
|
+
* import {
|
|
11
|
+
* VALID_BLOCK_NAME_PATTERN,
|
|
12
|
+
* parseBlockName,
|
|
13
|
+
* VALID_ARG_TYPES,
|
|
14
|
+
* matchValue,
|
|
15
|
+
* } from "discourse/lib/blocks";
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Valid block name pattern: lowercase letters, numbers, and hyphens.
|
|
20
|
+
* Must start with a letter. Examples: "hero-banner", "sidebar-blocks", "my-block-1"
|
|
21
|
+
*
|
|
22
|
+
* Used for both block names and outlet names since they follow the same format.
|
|
23
|
+
*/
|
|
24
|
+
export { VALID_BLOCK_NAME_PATTERN } from "discourse/lib/blocks/-internals/patterns";
|
|
25
|
+
/**
|
|
26
|
+
* Valid namespaced block name pattern. Supports three formats:
|
|
27
|
+
*
|
|
28
|
+
* - **Core blocks**: `block-name` (no prefix)
|
|
29
|
+
* - **Plugin blocks**: `plugin-name:block-name` (where plugin-name is not "theme")
|
|
30
|
+
* - **Theme blocks**: `theme:theme-name:block-name`
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```
|
|
34
|
+
* // Valid patterns:
|
|
35
|
+
* "group" // Core block
|
|
36
|
+
* "chat:message-widget" // Plugin block
|
|
37
|
+
* "theme:tactile:hero-banner" // Theme block
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export { VALID_NAMESPACED_BLOCK_PATTERN } from "discourse/lib/blocks/-internals/patterns";
|
|
41
|
+
/**
|
|
42
|
+
* Parses a full block name into its components.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```
|
|
46
|
+
* parseBlockName("group")
|
|
47
|
+
* // => { type: "core", namespace: null, name: "group" }
|
|
48
|
+
*
|
|
49
|
+
* parseBlockName("chat:message-widget")
|
|
50
|
+
* // => { type: "plugin", namespace: "chat", name: "message-widget" }
|
|
51
|
+
*
|
|
52
|
+
* parseBlockName("theme:tactile:hero-banner")
|
|
53
|
+
* // => { type: "theme", namespace: "tactile", name: "hero-banner" }
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
export { parseBlockName } from "discourse/lib/blocks/-internals/patterns";
|
|
57
|
+
/**
|
|
58
|
+
* Parses a block reference string to extract the block name and optional flag.
|
|
59
|
+
*
|
|
60
|
+
* Block references can be marked as optional by appending a `?` suffix to the
|
|
61
|
+
* name. Optional blocks that are not registered will be silently skipped
|
|
62
|
+
* instead of throwing an error.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```
|
|
66
|
+
* parseBlockReference("chat:widget?")
|
|
67
|
+
* // => { name: "chat:widget", optional: true }
|
|
68
|
+
*
|
|
69
|
+
* parseBlockReference("hero-banner")
|
|
70
|
+
* // => { name: "hero-banner", optional: false }
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
export { parseBlockReference } from "discourse/lib/blocks/-internals/patterns";
|
|
74
|
+
/**
|
|
75
|
+
* Valid arg types for schema definitions.
|
|
76
|
+
* Types: "string", "number", "boolean", "array", "any"
|
|
77
|
+
*/
|
|
78
|
+
export { VALID_ARG_TYPES } from "discourse/lib/blocks/-internals/validation/args";
|
|
79
|
+
/**
|
|
80
|
+
* Valid item types for array args.
|
|
81
|
+
* Types: "string", "number", "boolean"
|
|
82
|
+
*/
|
|
83
|
+
export { VALID_ITEM_TYPES } from "discourse/lib/blocks/-internals/validation/args";
|
|
84
|
+
/**
|
|
85
|
+
* Valid constraint types for cross-arg validation.
|
|
86
|
+
* Types: "atLeastOne", "exactlyOne", "allOrNone", "atMostOne", "requires"
|
|
87
|
+
*/
|
|
1
88
|
export { VALID_CONSTRAINT_TYPES } from "discourse/lib/blocks/-internals/validation/constraints";
|
|
89
|
+
/**
|
|
90
|
+
* Array of all valid page type names for the route condition.
|
|
91
|
+
* Types: "CATEGORY_PAGES", "TAG_PAGES", "DISCOVERY_PAGES", "HOMEPAGE",
|
|
92
|
+
* "TOP_MENU", "TOPIC_PAGES", "USER_PAGES", "ADMIN_PAGES", "GROUP_PAGES"
|
|
93
|
+
*/
|
|
2
94
|
export { VALID_PAGE_TYPES } from "discourse/lib/blocks/-internals/matching/page-definitions";
|
|
95
|
+
/**
|
|
96
|
+
* Retrieves a value from a nested object using dot-notation path.
|
|
97
|
+
*
|
|
98
|
+
* This utility safely navigates through nested object properties using a
|
|
99
|
+
* dot-separated path string. It handles null/undefined values gracefully
|
|
100
|
+
* at any level of the path.
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* ```
|
|
104
|
+
* const user = { profile: { name: "Alice", settings: { theme: "dark" } } };
|
|
105
|
+
* getByPath(user, "profile.name"); // "Alice"
|
|
106
|
+
* getByPath(user, "profile.settings.theme"); // "dark"
|
|
107
|
+
* getByPath(user, "profile.missing"); // undefined
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
3
110
|
export { getByPath } from "discourse/lib/blocks/-internals/utils";
|
|
111
|
+
/**
|
|
112
|
+
* Evaluates a value matcher spec against an actual value.
|
|
113
|
+
* Supports the same AND/OR/NOT logic as condition evaluation.
|
|
114
|
+
*
|
|
115
|
+
* Supports:
|
|
116
|
+
* - Exact match: `123`, `"foo"`
|
|
117
|
+
* - Array of simple values (OR): `[123, 456]` matches if actual is any of these
|
|
118
|
+
* - Array of complex specs (AND): `[{ not: "a" }, { not: "b" }]` all specs must match
|
|
119
|
+
* - RegExp: `/^foo/` matches if actual matches the pattern
|
|
120
|
+
* - NOT: `{ not: value }` matches if actual does NOT match value
|
|
121
|
+
* - ANY (OR): `{ any: [...] }` matches if actual matches any spec in array
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* ```
|
|
125
|
+
* matchValue({ actual: 5, expected: 5 }) // true
|
|
126
|
+
* matchValue({ actual: 5, expected: [3, 5, 7] }) // true (OR)
|
|
127
|
+
* matchValue({ actual: "hello", expected: /^hel/ }) // true
|
|
128
|
+
* matchValue({ actual: 5, expected: { not: 3 } }) // true
|
|
129
|
+
* ```
|
|
130
|
+
*/
|
|
4
131
|
export { matchValue } from "discourse/lib/blocks/-internals/matching/value-matcher";
|
|
5
|
-
export { VALID_BLOCK_NAME_PATTERN, VALID_NAMESPACED_BLOCK_PATTERN, parseBlockName, parseBlockReference } from "discourse/lib/blocks/-internals/patterns";
|
|
6
|
-
export { VALID_ARG_TYPES, VALID_ITEM_TYPES } from "discourse/lib/blocks/-internals/validation/args";
|
|
7
132
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/lib/blocks/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/lib/blocks/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH;;;;;GAKG;AACH,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AAEpF;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,8BAA8B,EAAE,MAAM,0CAA0C,CAAC;AAE1F;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE1E;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAI/E;;;GAGG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,iDAAiD,CAAC;AAElF;;;GAGG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAC;AAInF;;;GAGG;AACH,OAAO,EAAE,sBAAsB,EAAE,MAAM,wDAAwD,CAAC;AAIhG;;;;GAIG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,2DAA2D,CAAC;AAI7F;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAElE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,wDAAwD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codeblock-buttons.d.ts","sourceRoot":"","sources":["../../../../discourse/app/lib/codeblock-buttons.js"],"names":[],"mappings":"AAgCA;IAGE,uBAeC;IAdC,kCAAuC;IACvC,+BAAoC;IAWpC,oBAAyC;IACzC,cAA6B;IAG/B,gDASC;IAED,oCAUC;IAED,gBAYC;IAED,wDAWC;IAED,kCAIC;IAED,
|
|
1
|
+
{"version":3,"file":"codeblock-buttons.d.ts","sourceRoot":"","sources":["../../../../discourse/app/lib/codeblock-buttons.js"],"names":[],"mappings":"AAgCA;IAGE,uBAeC;IAdC,kCAAuC;IACvC,+BAAoC;IAWpC,oBAAyC;IACzC,cAA6B;IAG/B,gDASC;IAED,oCAUC;IAED,gBAYC;IAED,wDAWC;IAED,kCAIC;IAED,sCA0CC;IAED,mCAEC;IAED,+BA2CC;IAED,iCAiBC;;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions-registry.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/lib/composer/actions-registry.js"],"names":[],"mappings":"AAEA,wDAEC;AAED,mDAEC;AAED,gDAEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composer-position.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/lib/composer/composer-position.js"],"names":[],"mappings":"AAIA;;
|
|
1
|
+
{"version":3,"file":"composer-position.d.ts","sourceRoot":"","sources":["../../../../../discourse/app/lib/composer/composer-position.js"],"names":[],"mappings":"AAIA;;eAiJC"}
|
|
@@ -13,6 +13,11 @@ import type { CapabilitiesService } from "discourse/services/capabilities";
|
|
|
13
13
|
import type ModalService from "discourse/services/modal";
|
|
14
14
|
import type GlimmerNodeView from "discourse/static/prosemirror/lib/glimmer-node-view";
|
|
15
15
|
import type { ToolbarBase } from "./toolbar";
|
|
16
|
+
export interface MarkdownOptions {
|
|
17
|
+
/** Avatar template of a post in the host editor's topic. */
|
|
18
|
+
lookupAvatarTemplateByPostNumber?: (postNumber: number, topicId: number) => string | undefined;
|
|
19
|
+
[key: string]: unknown;
|
|
20
|
+
}
|
|
16
21
|
export interface PluginContext {
|
|
17
22
|
/** Placeholder shown when the document is empty. */
|
|
18
23
|
placeholder?: string;
|
|
@@ -40,6 +45,8 @@ export interface PluginContext {
|
|
|
40
45
|
dialog: DialogService;
|
|
41
46
|
/** Replaces or restores the toolbar displayed by the editor container. */
|
|
42
47
|
replaceToolbar?: (toolbar: ToolbarBase | null, owner?: ToolbarBase) => void;
|
|
48
|
+
/** Markdown cook options provided by the host editor. */
|
|
49
|
+
markdownOptions?: MarkdownOptions;
|
|
43
50
|
/** Registers a rendered component-backed node view. */
|
|
44
51
|
addGlimmerNodeView: (nodeView: GlimmerNodeView) => void;
|
|
45
52
|
/** Unregisters a rendered component-backed node view. */
|