[BUGFIX] Live Search: Rework registration of renderers and invoke handlers
This patch introduces a new global `LiveSearchConfigurator` module that can be used anywhere in the TYPO3 backend to load configuration of the Live Search. The methods `LiveSearch.addRenderer()` and `LiveSearch.addInvokeHandler()` were removed. Instead, `LiveSearchConfigurator` should be used. Web components where thinned out to not rely on getting such configuration handed in anymore. However, there's a small API change: `LiveSearchConfigurator.addRenderer()` now requires a new argument `module` to be able to load modules on-demand if they were not loaded already in the current backend scope. Resolves: #99891 Releases: main Change-Id: I30d9562b92671d0c6d1f8d1234dfcdd9da742a3a Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77796 Reviewed-by:Frank Nägler <frank.naegler@typo3.com> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Benni Mack <benni@typo3.org> Tested-by:
Frank Nägler <frank.naegler@typo3.com> Reviewed-b...
Showing
- Build/Sources/TypeScript/backend/live-search/element/result/item/item-container.ts 14 additions, 7 deletions...backend/live-search/element/result/item/item-container.ts
- Build/Sources/TypeScript/backend/live-search/element/result/result-container.ts 7 additions, 6 deletions...pt/backend/live-search/element/result/result-container.ts
- Build/Sources/TypeScript/backend/live-search/live-search-configurator.ts 48 additions, 0 deletions...ypeScript/backend/live-search/live-search-configurator.ts
- Build/Sources/TypeScript/backend/live-search/result-types/default-result-type.ts 3 additions, 3 deletions...t/backend/live-search/result-types/default-result-type.ts
- Build/Sources/TypeScript/backend/live-search/result-types/page-result-type.ts 14 additions, 11 deletions...ript/backend/live-search/result-types/page-result-type.ts
- Build/Sources/TypeScript/backend/toolbar/live-search.ts 0 additions, 12 deletionsBuild/Sources/TypeScript/backend/toolbar/live-search.ts
- typo3/sysext/backend/Resources/Public/JavaScript/live-search/element/result/item/item-container.js 4 additions, 4 deletions...aScript/live-search/element/result/item/item-container.js
- typo3/sysext/backend/Resources/Public/JavaScript/live-search/element/result/result-container.js 3 additions, 3 deletions...JavaScript/live-search/element/result/result-container.js
- typo3/sysext/backend/Resources/Public/JavaScript/live-search/live-search-configurator.js 13 additions, 0 deletions...Public/JavaScript/live-search/live-search-configurator.js
- typo3/sysext/backend/Resources/Public/JavaScript/live-search/result-types/default-result-type.js 1 addition, 1 deletion...avaScript/live-search/result-types/default-result-type.js
- typo3/sysext/backend/Resources/Public/JavaScript/live-search/result-types/page-result-type.js 6 additions, 6 deletions...c/JavaScript/live-search/result-types/page-result-type.js
- typo3/sysext/backend/Resources/Public/JavaScript/toolbar/live-search.js 1 addition, 1 deletion...ackend/Resources/Public/JavaScript/toolbar/live-search.js
Please register or sign in to comment