@bynder/compact-view 2.5.0 → 2.6.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/components.d.ts CHANGED
@@ -1,5 +1,34 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
+ interface MetapropertyOptionType {
4
+ id: string;
5
+ label: string;
6
+ assetCount: number;
7
+ }
8
+ interface MetapropertyOptionProps {
9
+ metapropertyOption: MetapropertyOptionType;
10
+ selectedOptionIds?: string[];
11
+ isLoading?: boolean;
12
+ onAddOption: () => void;
13
+ onRemoveOption: () => void;
14
+ }
15
+ declare function MetapropertyOptionComponent(props: MetapropertyOptionProps): JSX.Element;
16
+ interface MetapropertyType {
17
+ __typename: "Metaproperty";
18
+ id: string;
19
+ label: string;
20
+ options: MetapropertyOptionType[];
21
+ showInGridView: boolean;
22
+ showInListView: boolean;
23
+ }
24
+ interface MetapropertyProps {
25
+ metaproperty: MetapropertyType;
26
+ selectedOptionIds: string[];
27
+ isLoading: boolean;
28
+ onAddOption: (metapropertyOption: MetapropertyOptionType) => void;
29
+ onRemoveOption: (metapropertyOption: MetapropertyOptionType) => void;
30
+ }
31
+ declare function MetaPropertyFilterContent(props: MetapropertyProps): JSX.Element;
3
32
  interface Derivatives {
4
33
  thumbnail?: string;
5
34
  }
@@ -11,6 +40,9 @@ interface Asset {
11
40
  url: string;
12
41
  isArchived: boolean;
13
42
  isWatermarked: boolean;
43
+ metaproperties?: {
44
+ nodes: MetapropertyType[];
45
+ };
14
46
  }
15
47
  interface Props {
16
48
  className?: string;
@@ -75,8 +107,9 @@ interface CardProps {
75
107
  onClick?: (e: React.MouseEvent) => void;
76
108
  children?: React.ReactNode;
77
109
  ["aria-selected"]?: boolean;
110
+ metaproperties?: MetapropertyType[];
78
111
  }
79
- declare function Card({ alt, className, fadeIn, id, style, stacked, title, onClick, children, ...props }: CardProps): JSX.Element;
112
+ declare function Card({ alt, className, fadeIn, id, style, stacked, title, onClick, children, metaproperties, ...props }: CardProps): JSX.Element;
80
113
  interface CardImagesProps {
81
114
  urls: string[];
82
115
  totalCount: number;
@@ -121,33 +154,6 @@ interface ListItemProps {
121
154
  children: React.ReactNode;
122
155
  }
123
156
  declare function DropdownListItem({ selected, ...props }: ListItemProps): JSX.Element;
124
- interface MetapropertyOptionType {
125
- id: string;
126
- label: string;
127
- assetCount: number;
128
- }
129
- interface MetapropertyOptionProps {
130
- metapropertyOption: MetapropertyOptionType;
131
- selectedOptionIds?: string[];
132
- isLoading?: boolean;
133
- onAddOption: () => void;
134
- onRemoveOption: () => void;
135
- }
136
- declare function MetapropertyOptionComponent(props: MetapropertyOptionProps): JSX.Element;
137
- interface MetapropertyType {
138
- __typename: "Metaproperty";
139
- id: string;
140
- label: string;
141
- options: MetapropertyOptionType[];
142
- }
143
- interface MetapropertyProps {
144
- metaproperty: MetapropertyType;
145
- selectedOptionIds: string[];
146
- isLoading: boolean;
147
- onAddOption: (metapropertyOption: MetapropertyOptionType) => void;
148
- onRemoveOption: (metapropertyOption: MetapropertyOptionType) => void;
149
- }
150
- declare function MetapropertyComponent(props: MetapropertyProps): JSX.Element;
151
157
  interface SmartfilterType {
152
158
  __typename: "Smartfilter";
153
159
  id: string;
@@ -163,7 +169,7 @@ interface SmartfilterProps {
163
169
  onAddOption: (metapropertyOption: MetapropertyOptionType) => void;
164
170
  onRemoveOption: (metapropertyOption: MetapropertyOptionType) => void;
165
171
  }
166
- declare function SmartfilterComponent(props: SmartfilterProps): JSX.Element;
172
+ declare function SmartFilterContent(props: SmartfilterProps): JSX.Element;
167
173
  interface Props$5 {
168
174
  static?: React.ReactNode;
169
175
  className: string;
@@ -219,4 +225,4 @@ interface Props$12 {
219
225
  className?: string;
220
226
  }
221
227
  declare function Spinner(props: Props$12): JSX.Element;
222
- export { AssetCard as Asset, Asset as displayAsset, AssetList, Button, Card, CardImages, CardImage, Checkbox, Chip, Dropdown, DropdownListItem, MetapropertyComponent as Metaproperty, MetapropertyType as metaproperty, MetapropertyOptionComponent as MetapropertyOption, MetapropertyOptionType as metapropertyOption, SmartfilterComponent as Smartfilter, SmartfilterType as smartfilter, HorizontalScroll, InfiniteScroll, Modal, NoResults, Oops, OverlayButton, ShadowRoot, Skeleton, Spinner };
228
+ export { AssetCard as Asset, Asset as displayAsset, AssetList, Button, Card, CardImages, CardImage, Checkbox, Chip, Dropdown, DropdownListItem, MetaPropertyFilterContent as Metaproperty, MetapropertyType as metaproperty, MetapropertyOptionComponent as MetapropertyOption, MetapropertyOptionType as metapropertyOption, SmartFilterContent as Smartfilter, SmartfilterType as smartfilter, HorizontalScroll, InfiniteScroll, Modal, NoResults, Oops, OverlayButton, ShadowRoot, Skeleton, Spinner };