gw-admin 0.2.1 → 0.2.2

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## 0.2.2 - 2026-08-27
6
+
7
+ ### Fixed
8
+
9
+ - Restored compatibility between attachment and rich-text uploader types so a
10
+ single application uploader can serve both fields.
11
+
5
12
  ## 0.2.1 - 2026-08-27
6
13
 
7
14
  ### Fixed
package/README.md CHANGED
@@ -514,6 +514,9 @@ export function ServiceAdminForm(
514
514
  }
515
515
  ```
516
516
 
517
+ The rich-text adapter only requires the cancellation and progress context, so
518
+ the same `AdminFileUploader` can be reused for attachment and editor fields.
519
+
517
520
  An application that does not need uploads simply does not install or import the
518
521
  attachment entry point. Omitting `upload` from `AdminRichTextEditor` also
519
522
  removes the attachment toolbar action.
@@ -15,7 +15,7 @@ export declare const adminRichTextNodes: readonly [import("gw-rich-text-editor/u
15
15
  size: number | null;
16
16
  mimeType: string;
17
17
  }>];
18
- export type AdminRichTextFileUploader = (file: File, context: UploadContext) => Promise<AdminUploadedFile>;
18
+ export type AdminRichTextFileUploader = (file: File, context: Pick<UploadContext, "signal" | "onProgress">) => Promise<AdminUploadedFile>;
19
19
  /**
20
20
  * Adapts an application-owned uploader to image, video, and downloadable file
21
21
  * nodes understood by gw-rich-text-editor.
@@ -1 +1 @@
1
- {"version":3,"file":"admin-rich-text-file.d.ts","sourceRoot":"","sources":["../../src/rich-text/admin-rich-text-file.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,aAAa,EAClB,KAAK,aAAa,EACnB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAgBjE;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;UAMnB,MAAM,GAAG,IAAI;;EAgC7B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;UAlCb,MAAM,GAAG,IAAI;;GAkCsC,CAAC;AAEtE,MAAM,MAAM,yBAAyB,GAAG,CACtC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,aAAa,KACnB,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAEhC;;;GAGG;AACH,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,yBAAyB,GACpC,aAAa,CAqCf"}
1
+ {"version":3,"file":"admin-rich-text-file.d.ts","sourceRoot":"","sources":["../../src/rich-text/admin-rich-text-file.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,aAAa,EAClB,KAAK,aAAa,EACnB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAgBjE;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;UAMnB,MAAM,GAAG,IAAI;;EAgC7B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;UAlCb,MAAM,GAAG,IAAI;;GAkCsC,CAAC;AAEtE,MAAM,MAAM,yBAAyB,GAAG,CACtC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,GAAG,YAAY,CAAC,KAClD,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAEhC;;;GAGG;AACH,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,yBAAyB,GACpC,aAAa,CAqCf"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gw-admin",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Composable administration UI for the Next.js App Router and next-headless-crud.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",