frontend-plugin-api: rename plugin ID option to pluginId

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2025-04-27 12:06:13 +02:00
parent c4fd744f42
commit fb58f20613
44 changed files with 216 additions and 115 deletions
@@ -28,7 +28,7 @@ const myPage = PageBlueprint.make({
});
export default createFrontendPlugin({
id: 'my-plugin',
pluginId: 'my-plugin',
extensions: [myPage],
});
```
@@ -55,7 +55,7 @@ const catalogIndexPage = createPageExtension({
});
export default createFrontendPlugin({
id: 'catalog',
pluginId: 'catalog',
// highlight-start
routes: {
index: indexRouteRef,
@@ -204,7 +204,7 @@ const catalogIndexPage = createPageExtension({
});
export default createFrontendPlugin({
id: 'catalog',
pluginId: 'catalog',
routes: {
index: indexRouteRef,
},
@@ -411,7 +411,7 @@ const catalogIndexPage = createPageExtension({
});
export default createFrontendPlugin({
id: 'catalog',
pluginId: 'catalog',
routes: {
index: indexRouteRef,
// highlight-next-line
@@ -24,7 +24,7 @@ Example:
```ts
// This declaration is only for internal usage in tests. This could also be a direct default export.
export const userSettingsPlugin = createFrontendPlugin({
id: 'user-settings',
pluginId: 'user-settings',
...
})
@@ -68,7 +68,7 @@ const catalogSearchResultListItem = SearchResultListItemBlueprint.make({
// Note that the extensions themselves are not exported, only the plugin instance
export const catalogPlugin = createFrontendPlugin({
id: 'catalog',
pluginId: 'catalog',
extensions: [catalogEntityPage, catalogSearchResultListItem /* ... */],
});
```