@firecms/core 3.0.0-tw4.6 → 3.0.1
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/README.md +1 -1
- package/dist/components/VirtualTable/VirtualTable.performance.test.d.ts +1 -0
- package/dist/form/components/LocalChangesMenu.d.ts +2 -2
- package/dist/form/components/StorageUploadProgress.d.ts +1 -1
- package/dist/index.es.js +218 -238
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +218 -238
- package/dist/index.umd.js.map +1 -1
- package/dist/types/entities.d.ts +1 -0
- package/dist/types/properties.d.ts +9 -0
- package/dist/types/storage.d.ts +8 -0
- package/dist/util/useStorageUploadController.d.ts +1 -1
- package/package.json +6 -5
- package/src/app/Scaffold.tsx +1 -1
- package/src/components/ArrayContainer.tsx +1 -1
- package/src/components/EntityCollectionTable/EntityCollectionRowActions.tsx +1 -1
- package/src/components/EntityCollectionTable/internal/EntityTableCell.tsx +3 -3
- package/src/components/EntityPreview.tsx +1 -1
- package/src/components/ReferenceWidget.tsx +1 -1
- package/src/components/SelectableTable/SelectableTable.tsx +1 -1
- package/src/components/VirtualTable/VirtualTable.performance.test.tsx +386 -0
- package/src/components/VirtualTable/VirtualTable.tsx +3 -3
- package/src/components/VirtualTable/VirtualTableHeader.tsx +1 -1
- package/src/components/VirtualTable/VirtualTableRow.tsx +1 -1
- package/src/core/DefaultDrawer.tsx +1 -1
- package/src/core/DrawerNavigationItem.tsx +3 -4
- package/src/form/EntityForm.tsx +3 -10
- package/src/form/components/LocalChangesMenu.tsx +6 -6
- package/src/form/components/StorageUploadProgress.tsx +4 -3
- package/src/preview/components/EmptyValue.tsx +1 -1
- package/src/preview/components/ReferencePreview.tsx +6 -1
- package/src/types/entities.ts +10 -0
- package/src/types/properties.ts +10 -0
- package/src/types/storage.ts +9 -0
- package/src/util/useStorageUploadController.tsx +11 -1
package/README.md
CHANGED
|
@@ -167,7 +167,7 @@ in `example/src`.
|
|
|
167
167
|
That file needs to export a valid Firebase config, that you can get
|
|
168
168
|
from your Firebase console when creating a webapp for your project.
|
|
169
169
|
|
|
170
|
-
Then simply run `
|
|
170
|
+
Then simply run `yarn` and `yarn dev`
|
|
171
171
|
|
|
172
172
|
## License
|
|
173
173
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,10 +2,10 @@ import { FormexController } from "@firecms/formex";
|
|
|
2
2
|
import { ResolvedProperties } from "../../types";
|
|
3
3
|
interface LocalChangesMenuProps<M extends object> {
|
|
4
4
|
cacheKey: string;
|
|
5
|
-
|
|
5
|
+
cachedData: Partial<M>;
|
|
6
6
|
formex: FormexController<M>;
|
|
7
7
|
onClearLocalChanges?: () => void;
|
|
8
8
|
properties: ResolvedProperties<M>;
|
|
9
9
|
}
|
|
10
|
-
export declare function LocalChangesMenu<M extends object>({
|
|
10
|
+
export declare function LocalChangesMenu<M extends object>({ cachedData, formex, onClearLocalChanges, cacheKey, properties }: LocalChangesMenuProps<M>): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -3,7 +3,7 @@ export interface StorageUploadItemProps {
|
|
|
3
3
|
storagePath: string;
|
|
4
4
|
metadata?: any;
|
|
5
5
|
entry: StorageFieldItem;
|
|
6
|
-
onFileUploadComplete: (value: string, entry: StorageFieldItem, metadata?: any) => Promise<void>;
|
|
6
|
+
onFileUploadComplete: (value: string, entry: StorageFieldItem, metadata?: any, uploadedUrl?: string) => Promise<void>;
|
|
7
7
|
imageSize: number;
|
|
8
8
|
simple: boolean;
|
|
9
9
|
}
|