fix(payload-ai): remove phantom SCSS import and disable dynamic provider injection
All checks were successful
Monorepo Pipeline / ⚡ Prioritize Release (push) Successful in 1s
Monorepo Pipeline / 🧪 Test (push) Successful in 1m3s
Monorepo Pipeline / 🏗️ Build (push) Successful in 3m34s
Monorepo Pipeline / 🧹 Lint (push) Successful in 3m56s
Monorepo Pipeline / 🚀 Release (push) Has been skipped
Monorepo Pipeline / 🐳 Build Gatekeeper (Product) (push) Has been skipped
Monorepo Pipeline / 🐳 Build Build-Base (push) Has been skipped
Monorepo Pipeline / 🐳 Build Production Runtime (push) Has been skipped

- Remove non-existent ChatWindow.scss import causing Webpack resolution errors
- Disable dynamic ChatWindowProvider injection (now statically declared in host app)
- Revert build script to tsc (no SCSS copy needed)
This commit is contained in:
2026-03-07 11:46:41 +01:00
parent 77e2c4f9b6
commit 048fafa3db
3 changed files with 8 additions and 8 deletions

View File

@@ -11,12 +11,13 @@
"types": "./dist/index.d.ts",
"exports": {
".": "./dist/index.js",
"./components/*": "./dist/components/*",
"./actions/*": "./dist/actions/*",
"./globals/*": "./dist/globals/*",
"./endpoints/*": "./dist/endpoints/*",
"./utils/*": "./dist/utils/*",
"./tools/*": "./dist/tools/*"
"./components/FieldGenerators/*": "./dist/components/FieldGenerators/*.js",
"./components/*": "./dist/components/*.js",
"./actions/*": "./dist/actions/*.js",
"./globals/*": "./dist/globals/*.js",
"./endpoints/*": "./dist/endpoints/*.js",
"./utils/*": "./dist/utils/*.js",
"./tools/*": "./dist/tools/*.js"
},
"peerDependencies": {
"@payloadcms/next": ">=3.0.0",

View File

@@ -88,7 +88,7 @@ export const payloadChatPlugin =
...(config.admin?.components || {}),
providers: [
...(config.admin?.components?.providers || []),
"@mintel/payload-ai/components/ChatWindow#ChatWindowProvider",
"@mintel/payload-ai/components/ChatWindow/index#ChatWindowProvider",
],
},
};

View File

@@ -2,7 +2,6 @@
import React, { useState, useEffect } from "react";
import { useChat } from "@ai-sdk/react";
import "./ChatWindow.scss";
export const ChatWindowProvider: React.FC<{ children: React.ReactNode }> = ({
children,