This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse
David Taylor 8efb787d87
DEV: Introduce support for Glimmer PluginOutlet connectors (#20108)
Previously, all plugin connector templates would be rendered using the PluginConnector classic component definition. This commit introduces three key changes:

1. PluginOutlets can be passed `@defaultGlimmer={{true}}`, which will cause all connectors to be rendered as highly-performant 'template only glimmer components'. For now, to avoid breaking backwards compatibility, this is only intended for use on newly introduced PluginOutlets.

2. Connector js files can now directly export component definitions. This allows connectors on existing outlets to start using Glimmer components (template-only, or otherwise) straight away. It also makes it much more ergonomic to introduce custom logic to outlets. `shouldRender` continues to be supported (as a static class method).

3. Outlet arguments are now made available as `@outletArgs` in classic, glimmer and template-only-glimmer connectors. In glimmer and template-only-glimmer connectors, this is the only way to access the outlet's arguments. In classic connectors, the old methods still function - `@outletArgs` exists as a path for incremental migration
2023-02-13 09:43:16 +00:00
..
app DEV: Introduce support for Glimmer PluginOutlet connectors (#20108) 2023-02-13 09:43:16 +00:00
config Drop support for iOS < 15.7 (#19847) 2023-01-16 17:28:59 +00:00
lib DEV: Enable parallel babel processing in ember-cli (#20215) 2023-02-09 16:24:24 +00:00
public/assets/scripts DEV: Enable @cached decorator for themes and plugins (#19261) 2022-11-30 15:53:54 +00:00
scripts Drop support for iOS < 15.7 (#19847) 2023-01-16 17:28:59 +00:00
tests DEV: Introduce support for Glimmer PluginOutlet connectors (#20108) 2023-02-13 09:43:16 +00:00
.ember-cli REFACTOR: Sync up master with changes for Ember-CLI (#11671) 2021-01-12 10:13:21 -05:00
.npmrc DEV: Prevent npm usage (#13945) 2021-08-04 22:04:58 +02:00
ember-cli-build.js DEV: Enable parallel babel processing in ember-cli (#20215) 2023-02-09 16:24:24 +00:00
jsconfig.json DEV: Add discourse/tests to jsconfig (#19031) 2022-11-15 11:33:56 +00:00
package.json Build(deps): Bump eslint in /app/assets/javascripts (#20249) 2023-02-13 00:17:33 +01:00
testem.js DEV: Move shouldLoadPluginTestJs() (#19045) 2022-11-16 11:07:58 +01:00