mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
18c7a6001d
Attachment queue & previews: - Image lightbox with View Transition API morph animation - Video lightbox with native controls and play button overlay - Document lightbox (PDF via blob URL, text inline, info card fallback) - Drop zone overlay with upload icon - Filename preservation via InputContent metadata - Proper video thumbnail sizing and play/pause indicator - Fix attachment queue positioning (max-w-3xl constraint) - Padding between X button and content for audio/document cards - Document filenames wrap instead of truncating Attachments config: - onUploadFailed callback for validation/upload errors (file-too-large, invalid-type, upload-failed) - onUpload accepts sync or async returns - AttachmentUploadResult discriminated union with explicit interfaces - Metadata field on Attachment and onUpload return type AG-UI version bump: - Bump @ag-ui/client, @ag-ui/core, @ag-ui/encoder, @ag-ui/proto to 0.0.51 - Remove process.env Vite workaround (fixed upstream in 0.0.51) Deprecation lifecycle: - @deprecated JSDoc on all legacy image upload APIs - ImageRenderer, ImageRendererProps, ImageUpload type, imageUploadsEnabled prop, inputFileAccept prop, ImageRenderer prop, AIMessage.image, ImageData - Codemod at codemods/migrate-attachments.ts (15 tests) - Migration guide updated with codemod instructions and new type shapes Docs: - New guide: docs/(root)/multimodal-attachments.mdx - Updated migration guide with onUpload return type, metadata, codemod section - Cross-links from prebuilt-components and migration guide - Label change: "Add photos or files" → "Add attachments" Tests: - CopilotChat.attachments.test.tsx — 5 tests for onUploadFailed - migrate-attachments codemod — 15 tests
91 lines
2.8 KiB
JSON
91 lines
2.8 KiB
JSON
{
|
|
"name": "@copilotkitnext/angular",
|
|
"version": "1.54.1-next.8",
|
|
"description": "Angular library for CopilotKit",
|
|
"license": "Commercial",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/CopilotKit/CopilotKit.git",
|
|
"directory": "packages/angular"
|
|
},
|
|
"type": "module",
|
|
"main": "dist/fesm2022/copilotkitnext-angular.mjs",
|
|
"module": "dist/fesm2022/copilotkitnext-angular.mjs",
|
|
"types": "dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/fesm2022/copilotkitnext-angular.mjs"
|
|
},
|
|
"./styles.css": "./dist/styles.css"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"scripts": {
|
|
"build": "ng-packagr -p ng-package.json && npm run build:css",
|
|
"build:css": "tailwindcss -i ./src/styles/globals.css -o ./dist/styles.css && node scripts/scope-preflight.mjs ./dist/styles.css",
|
|
"dev": "concurrently \"ng-packagr -p ng-package.json --watch\" \"npm run dev:css\"",
|
|
"dev:css": "tailwindcss -i ./src/styles/globals.css -o ./dist/styles.css --watch",
|
|
"check-types": "tsc --noEmit",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest --watch",
|
|
"publint": "publint .",
|
|
"attw": "attw --pack . --profile node16"
|
|
},
|
|
"dependencies": {
|
|
"@ag-ui/client": "0.0.51",
|
|
"@ag-ui/core": "0.0.51",
|
|
"@copilotkit/core": "workspace:*",
|
|
"@copilotkit/shared": "workspace:*",
|
|
"clsx": "^2.1.1",
|
|
"highlight.js": "^11.11.1",
|
|
"katex": "^0.16.22",
|
|
"lucide-angular": "^0.540.0",
|
|
"marked": "^16.2.0",
|
|
"rxjs": "^7.8.1",
|
|
"tailwind-merge": "^2.6.0",
|
|
"tslib": "^2.6.0"
|
|
},
|
|
"devDependencies": {
|
|
"@analogjs/vite-plugin-angular": "^1.20.2",
|
|
"@analogjs/vitest-angular": "^1.20.2",
|
|
"@angular/cdk": "^19.0.0",
|
|
"@angular/common": "^19.0.0",
|
|
"@angular/compiler": "^19.0.0",
|
|
"@angular/compiler-cli": "^19.0.0",
|
|
"@angular/core": "^19.0.0",
|
|
"@angular/platform-browser": "^19.0.0",
|
|
"@angular/platform-browser-dynamic": "^19.0.0",
|
|
"@copilotkit/typescript-config": "workspace:*",
|
|
"@lucide/build-icons": "^1.1.0",
|
|
"@tailwindcss/cli": "^4.1.11",
|
|
"@tailwindcss/postcss": "^4.1.11",
|
|
"@tailwindcss/typography": "^0.5.16",
|
|
"@types/katex": "^0.16.7",
|
|
"@types/node": "^22.5.1",
|
|
"@vitest/ui": "^3.2.4",
|
|
"autoprefixer": "^10.4.16",
|
|
"concurrently": "^9.1.0",
|
|
"jsdom": "^24.0.0",
|
|
"ng-packagr": "^19.0.0",
|
|
"postcss": "^8.4.31",
|
|
"reflect-metadata": "^0.2.2",
|
|
"rimraf": "^6.0.1",
|
|
"rxjs": "^7.8.1",
|
|
"tailwindcss": "^4.0.8",
|
|
"tslib": "^2.8.1",
|
|
"tw-animate-css": "^1.3.5",
|
|
"typescript": "5.8.2",
|
|
"vite": "^7.1.4",
|
|
"vitest": "^3.2.4",
|
|
"zod": "^3.22.4",
|
|
"zone.js": "^0.14.0"
|
|
},
|
|
"peerDependencies": {
|
|
"@angular/cdk": "^19.0.0",
|
|
"@angular/common": "^19.0.0",
|
|
"@angular/core": "^19.0.0",
|
|
"rxjs": "^7.8.0"
|
|
}
|
|
}
|