diff --git a/apps/web/components/tailwind/generative/ai-selector-commands.tsx b/apps/web/components/tailwind/generative/ai-selector-commands.tsx index efef68b8d..dad106b0a 100644 --- a/apps/web/components/tailwind/generative/ai-selector-commands.tsx +++ b/apps/web/components/tailwind/generative/ai-selector-commands.tsx @@ -1,6 +1,6 @@ import { ArrowDownWideNarrow, CheckCheck, RefreshCcwDot, StepForward, WrapText } from "lucide-react"; import { useEditor } from "novel"; -import { getPrevText } from "novel/extensions"; +import { getPrevText } from "novel/utils"; import { CommandGroup, CommandItem, CommandSeparator } from "../ui/command"; const options = [ diff --git a/packages/headless/package.json b/packages/headless/package.json index 892ec7326..a6dccd0bb 100644 --- a/packages/headless/package.json +++ b/packages/headless/package.json @@ -25,6 +25,11 @@ "types": "./dist/plugins.d.ts", "import": "./dist/plugins.js", "require": "./dist/plugins.cjs" + }, + "./utils": { + "types": "./dist/utils.d.ts", + "import": "./dist/utils.js", + "require": "./dist/utils.cjs" } }, "scripts": { diff --git a/packages/headless/src/extensions/index.ts b/packages/headless/src/extensions/index.ts index 091e32643..469426970 100644 --- a/packages/headless/src/extensions/index.ts +++ b/packages/headless/src/extensions/index.ts @@ -84,5 +84,4 @@ export { GlobalDragHandle, }; -// Todo: Maybe I should create an utils entry -export { getPrevText } from "../utils/utils"; + \ No newline at end of file diff --git a/packages/headless/src/utils/utils.ts b/packages/headless/src/utils/index.ts similarity index 100% rename from packages/headless/src/utils/utils.ts rename to packages/headless/src/utils/index.ts diff --git a/packages/headless/tsup.config.ts b/packages/headless/tsup.config.ts index d40649119..78c75c39b 100644 --- a/packages/headless/tsup.config.ts +++ b/packages/headless/tsup.config.ts @@ -5,6 +5,7 @@ export default defineConfig((options: Options) => ({ index: "src/components/index.ts", extensions: "src/extensions/index.ts", plugins: "src/plugins/index.ts", + utils: "src/utils/index.ts", }, banner: { js: "'use client'",