@frogbotai/storage-vercel-blob 0.28.0 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -15,14 +15,13 @@ import { buildConfig } from 'frogbot';
15
15
  import { vercelBlobStorage } from '@frogbotai/storage-vercel-blob';
16
16
 
17
17
  export default buildConfig({
18
- storage: [
18
+ plugins: [
19
19
  vercelBlobStorage({
20
20
  token: process.env.BLOB_READ_WRITE_TOKEN,
21
- collections: {
22
- media: true,
23
- },
24
21
  }),
25
22
  ],
26
23
  // ...rest of config
27
24
  });
28
25
  ```
26
+
27
+ The adapter stores files for FrogBot's files collection and chat assets automatically. List your own upload collections in `collections`, for example `collections: { media: true }`. See [Storage Adapters](https://docs.frogbot.ai/upload/storage-adapters) for every option.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import { vercelBlobStorage as _vercelBlobStorage } from '@payloadcms/storage-vercel-blob';
2
2
  import type { Plugin } from 'frogbot';
3
- export type { VercelBlobStorageOptions } from '@payloadcms/storage-vercel-blob';
4
- type VercelBlobStorageOptions = Parameters<typeof _vercelBlobStorage>[0];
3
+ import type { StorageAdapterOptions } from 'frogbot/internal';
4
+ type PayloadVercelBlobStorageOptions = Parameters<typeof _vercelBlobStorage>[0];
5
+ export type VercelBlobStorageOptions = StorageAdapterOptions<PayloadVercelBlobStorageOptions>;
5
6
  export declare const vercelBlobStorage: (options: VercelBlobStorageOptions) => Plugin;
7
+ export {};
6
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,IAAI,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC,YAAY,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAEhF,KAAK,wBAAwB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;AAEzE,eAAO,MAAM,iBAAiB,YAAa,wBAAwB,KAAG,MACpB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,IAAI,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAG9D,KAAK,+BAA+B,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;AAEhF,MAAM,MAAM,wBAAwB,GAAG,qBAAqB,CAAC,+BAA+B,CAAC,CAAC;AAE9F,eAAO,MAAM,iBAAiB,YAAa,wBAAwB,KAAG,MACoB,CAAC"}
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
1
  import { vercelBlobStorage as _vercelBlobStorage } from '@payloadcms/storage-vercel-blob';
2
- export const vercelBlobStorage = (options) => _vercelBlobStorage(options);
2
+ import { storageAdapter } from 'frogbot/internal';
3
+ export const vercelBlobStorage = (options) => storageAdapter({ options, plugin: _vercelBlobStorage });
3
4
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,IAAI,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAO1F,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,OAAiC,EAAU,EAAE,CAC7E,kBAAkB,CAAC,OAAO,CAAsB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,IAAI,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAG1F,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAMlD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,OAAiC,EAAU,EAAE,CAC7E,cAAc,CAAkC,EAAE,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frogbotai/storage-vercel-blob",
3
- "version": "0.28.0",
3
+ "version": "0.29.0",
4
4
  "description": "Vercel Blob storage adapter for FrogBot.",
5
5
  "license": "MIT",
6
6
  "author": "Colby Gilbert",
@@ -33,11 +33,11 @@
33
33
  "@payloadcms/storage-vercel-blob": "3.90.1"
34
34
  },
35
35
  "peerDependencies": {
36
- "frogbot": "0.28.0"
36
+ "frogbot": "0.29.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "typescript": "5.6.2",
40
- "frogbot": "0.28.0"
40
+ "frogbot": "0.29.0"
41
41
  },
42
42
  "publishConfig": {
43
43
  "access": "public"