@sparkstudio/storage-ui 1.0.34 → 1.0.35

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/dist/index.d.cts CHANGED
@@ -114,16 +114,12 @@ declare class SparkStudioStorageSDK {
114
114
  type Props = {
115
115
  containerApiBaseUrl: string;
116
116
  storageApiBaseUrl: string;
117
- /** Controlled list of container ids */
118
117
  containerIds: string[];
119
118
  onContainerIdsChange: React__default.Dispatch<React__default.SetStateAction<string[]>>;
120
- /** Upload options */
121
119
  accept?: string;
122
120
  multiple?: boolean;
123
- /** Selection passthrough */
124
121
  selectedId?: string;
125
122
  onSelect?: (file: ContainerDTO) => void;
126
- /** Icon passthrough */
127
123
  icon?: React__default.ReactNode;
128
124
  iconHtml?: string;
129
125
  deleteDisabled?: boolean;
@@ -194,11 +190,8 @@ type FileIconCardProps = {
194
190
  deleteDisabled?: boolean;
195
191
  selected?: boolean;
196
192
  onSelect?: (file: ContainerDTO) => void;
197
- /** Parent performs the delete + updates state */
198
193
  onDeleteFile?: (file: ContainerDTO) => Promise<void> | void;
199
194
  onClickFile?: (file: ContainerDTO) => void;
200
- icon?: React__default.ReactNode;
201
- iconHtml?: string;
202
195
  title?: string;
203
196
  className?: string;
204
197
  };
@@ -207,11 +200,9 @@ declare const FileIconCard: React__default.FC<FileIconCardProps>;
207
200
  declare function FileIconGrid(props: {
208
201
  files: ContainerDTO[];
209
202
  deleteDisabled?: boolean;
210
- onDeleted?: (file: ContainerDTO) => void;
203
+ onDeleted?: (file: ContainerDTO) => Promise<void> | void;
211
204
  selectedId?: string;
212
205
  onSelect?: (file: ContainerDTO) => void;
213
- icon?: React__default.ReactNode;
214
- iconHtml?: string;
215
206
  className?: string;
216
207
  }): react_jsx_runtime.JSX.Element;
217
208
 
package/dist/index.d.ts CHANGED
@@ -114,16 +114,12 @@ declare class SparkStudioStorageSDK {
114
114
  type Props = {
115
115
  containerApiBaseUrl: string;
116
116
  storageApiBaseUrl: string;
117
- /** Controlled list of container ids */
118
117
  containerIds: string[];
119
118
  onContainerIdsChange: React__default.Dispatch<React__default.SetStateAction<string[]>>;
120
- /** Upload options */
121
119
  accept?: string;
122
120
  multiple?: boolean;
123
- /** Selection passthrough */
124
121
  selectedId?: string;
125
122
  onSelect?: (file: ContainerDTO) => void;
126
- /** Icon passthrough */
127
123
  icon?: React__default.ReactNode;
128
124
  iconHtml?: string;
129
125
  deleteDisabled?: boolean;
@@ -194,11 +190,8 @@ type FileIconCardProps = {
194
190
  deleteDisabled?: boolean;
195
191
  selected?: boolean;
196
192
  onSelect?: (file: ContainerDTO) => void;
197
- /** Parent performs the delete + updates state */
198
193
  onDeleteFile?: (file: ContainerDTO) => Promise<void> | void;
199
194
  onClickFile?: (file: ContainerDTO) => void;
200
- icon?: React__default.ReactNode;
201
- iconHtml?: string;
202
195
  title?: string;
203
196
  className?: string;
204
197
  };
@@ -207,11 +200,9 @@ declare const FileIconCard: React__default.FC<FileIconCardProps>;
207
200
  declare function FileIconGrid(props: {
208
201
  files: ContainerDTO[];
209
202
  deleteDisabled?: boolean;
210
- onDeleted?: (file: ContainerDTO) => void;
203
+ onDeleted?: (file: ContainerDTO) => Promise<void> | void;
211
204
  selectedId?: string;
212
205
  onSelect?: (file: ContainerDTO) => void;
213
- icon?: React__default.ReactNode;
214
- iconHtml?: string;
215
206
  className?: string;
216
207
  }): react_jsx_runtime.JSX.Element;
217
208