frontend-plugin-api: rename plugin ID option to pluginId
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -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 /* ... */],
|
||||
});
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user