fansunited-management-components 1.26.0 → 1.26.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fansunited-management-components",
3
- "version": "1.26.0",
3
+ "version": "1.26.2",
4
4
  "main": "index.es.js",
5
5
  "author": "Fans United",
6
6
  "description": "",
@@ -1,11 +1,11 @@
1
1
  import { default as React } from 'react';
2
- import { RelatedEntityOption } from '../../../models/related/RelatedEntityRelationship';
2
+ import { EntityRelationship, RelatedEntityOption } from '../../../models/related/RelatedEntityRelationship';
3
3
 
4
4
  type RelatedEntityCardProps = {
5
5
  entity: RelatedEntityOption;
6
6
  relationshipLabel: string;
7
7
  deleteLabel: string;
8
- onDelete: (id: string) => void;
8
+ onDelete: (id: string, relationship: EntityRelationship) => void;
9
9
  };
10
10
  declare const RelatedEntityCard: React.FC<RelatedEntityCardProps>;
11
11
  export default RelatedEntityCard;
@@ -1,6 +1,3 @@
1
1
  import { EntityType, RelatedEntityOption } from '../models/related/RelatedEntityRelationship';
2
2
 
3
- export declare const useRelatedEntityOptions: (entityType: EntityType | null, toggleToast: () => void) => {
4
- relatedEntityOptions: RelatedEntityOption[] | null;
5
- setRelatedEntityOptions: import('react').Dispatch<import('react').SetStateAction<RelatedEntityOption[] | null>>;
6
- };
3
+ export declare const useRelatedEntityOptions: (entityType: EntityType | null, toggleToast: () => void) => RelatedEntityOption[] | null;
@@ -5,6 +5,7 @@ export interface RelatedEntityOption {
5
5
  name: string;
6
6
  type: EntityType;
7
7
  status: string;
8
+ relationship: EntityRelationship;
8
9
  }
9
10
  export default class RelatedRelationshipRequest {
10
11
  entity_id: string;