diff --git a/content/@theme/plugin.js b/content/@theme/plugin.js index 3f71769b2a..50656f4ffe 100644 --- a/content/@theme/plugin.js +++ b/content/@theme/plugin.js @@ -7,7 +7,7 @@ export default function customPlugin() { - /** @type {import("@redocly/portal/dist/server/plugins/types").PluginInstance } */ + /** @type {import("@redocly/realm/dist/server/plugins/types").PluginInstance } */ const pluginInstance = { processContent: async (content, actions) => { await indexPagesInst.processContent?.(content, actions); diff --git a/content/@theme/plugins/code-samples.js b/content/@theme/plugins/code-samples.js index 86d2a94518..d867bf394a 100644 --- a/content/@theme/plugins/code-samples.js +++ b/content/@theme/plugins/code-samples.js @@ -1,12 +1,12 @@ // @ts-check -import { getInnerText } from '@redocly/portal/dist/shared/markdoc.js'; +import { getInnerText } from '@redocly/realm/dist/shared/markdoc.js'; import { dirname, relative, join as joinPath } from 'path'; import markdoc from '@markdoc/markdoc'; export function codeSamples() { - /** @type {import("@redocly/portal/dist/server/plugins/types").PluginInstance } */ + /** @type {import("@redocly/realm/dist/server/plugins/types").PluginInstance } */ const instance = { processContent: async (contentProvider, actions) => { try { diff --git a/content/@theme/plugins/index-pages.js b/content/@theme/plugins/index-pages.js index fd4bc5a76a..00cd7f1151 100644 --- a/content/@theme/plugins/index-pages.js +++ b/content/@theme/plugins/index-pages.js @@ -1,9 +1,9 @@ // @ts-check -import { readSharedData } from '@redocly/portal/dist/server/utils/shared-data.js'; // TODO: export function from root package +import { readSharedData } from '@redocly/realm/dist/server/utils/shared-data.js'; // TODO: export function from root package const INDEX_PAGE_INFO_DATA_KEY = 'index-page-items'; export function indexPages() { - /** @type {import("@redocly/portal/dist/server/plugins/types").PluginInstance } */ + /** @type {import("@redocly/realm/dist/server/plugins/types").PluginInstance } */ const instance = { // hook that gets executed after all routes were created async afterRoutesCreated(contentProvider, actions) { diff --git a/tsconfig.json b/tsconfig.json index d9c2a99607..333d796297 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,7 +10,7 @@ "./node_modules/@redocly/theme/src/*" ], "@portal/*": [ - "./node_modules/@redocly/portal/dist/client/App/*" + "./node_modules/@redocly/realm/dist/client/App/*" ] }, }