@applica-software-guru/react-admin 1.5.256 → 1.5.258

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.
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { BaseAttachmentFieldProps } from '../../components/ra-fields/BaseAttachmentField';
3
- declare function AttachmentField({ entityId, property, disabled, showUser, userResource, ...props }: AttachmentFieldProps): JSX.Element;
3
+ declare function AttachmentField({ entityId: _entityId, property, disabled, showUser, userResource, resource: _resource, ...props }: AttachmentFieldProps): JSX.Element;
4
4
  type AttachmentFieldProps = BaseAttachmentFieldProps & {
5
5
  title: string;
6
6
  entityId?: string;
@@ -15,6 +15,11 @@ type AttachmentFieldProps = BaseAttachmentFieldProps & {
15
15
  * If true, the user data associated with the single attachment will be displayed.
16
16
  */
17
17
  showUser?: boolean;
18
+ /**
19
+ * When the AttachmentInput is used inside a nested form, you can specify the root entity to use for the REST calls.
20
+ * If not specified, the default value is the current entity passed by context.
21
+ */
22
+ resource?: string;
18
23
  };
19
24
  export { AttachmentField };
20
25
  export type { AttachmentFieldProps };
@@ -1 +1 @@
1
- {"version":3,"file":"AttachmentField.d.ts","sourceRoot":"","sources":["../../../../src/components/ra-fields/AttachmentField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAuB,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAO3G,iBAAS,eAAe,CAAC,EACvB,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAgB,EAChB,YAA8B,EAC9B,GAAG,KAAK,EACT,EAAE,oBAAoB,GAAG,GAAG,CAAC,OAAO,CA6DpC;AAED,KAAK,oBAAoB,GAAG,wBAAwB,GAAG;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,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