@firecms/core
Advanced tools
Comparing version 3.0.0-beta.9 to 3.0.0-beta.10
@@ -8,3 +8,2 @@ /** | ||
* | ||
*/ | ||
@@ -11,0 +10,0 @@ export declare function Drawer({ children, className, style }: { |
@@ -10,3 +10,3 @@ import * as React from "react"; | ||
previewProperties?: string[]; | ||
disabled: undefined | boolean; | ||
disabled?: boolean; | ||
entity: Entity<any>; | ||
@@ -13,0 +13,0 @@ includeId?: boolean; |
@@ -21,3 +21,3 @@ export type { ErrorViewProps } from "./ErrorView"; | ||
export * from "./ErrorBoundary"; | ||
export * from "./DeleteConfirmationDialog"; | ||
export * from "./ConfirmationDialog"; | ||
export * from "./FireCMSLogo"; | ||
@@ -24,0 +24,0 @@ export * from "../core/DefaultAppBar"; |
import { PropertyConfig } from "../types"; | ||
export declare function PropertyConfigBadge({ propertyConfig }: { | ||
export declare function PropertyConfigBadge({ propertyConfig, disabled }: { | ||
propertyConfig: PropertyConfig | undefined; | ||
disabled?: boolean; | ||
}): React.ReactNode; |
@@ -8,2 +8,8 @@ import { AuthController, DataSourceDelegate, FireCMSPlugin } from "../types"; | ||
}; | ||
export declare function useProjectLog(authController: AuthController, dataSourceDelegate: DataSourceDelegate, plugins?: FireCMSPlugin<any, any, any>[]): AccessResponse | null; | ||
export interface UseProjectLogParams { | ||
apiKey?: string; | ||
authController: AuthController; | ||
dataSourceDelegate: DataSourceDelegate; | ||
plugins?: FireCMSPlugin<any, any, any>[]; | ||
} | ||
export declare function useProjectLog({ authController, dataSourceDelegate, plugins, apiKey }: UseProjectLogParams): AccessResponse | null; |
@@ -66,2 +66,6 @@ import React from "react"; | ||
/** | ||
* If you have a custom API key, you can use it here. | ||
*/ | ||
apiKey?: string; | ||
/** | ||
* Record of custom form fields to be used in the CMS. | ||
@@ -68,0 +72,0 @@ * You can use the key to reference the custom field in |
{ | ||
"name": "@firecms/core", | ||
"type": "module", | ||
"version": "3.0.0-beta.9", | ||
"version": "3.0.0-beta.10", | ||
"description": "Awesome Firebase/Firestore-based headless open-source CMS", | ||
@@ -49,7 +49,7 @@ "funding": { | ||
"dependencies": { | ||
"@firecms/editor": "^3.0.0-beta.9", | ||
"@firecms/formex": "^3.0.0-beta.9", | ||
"@firecms/ui": "^3.0.0-beta.9", | ||
"@hello-pangea/dnd": "^16.6.0", | ||
"@radix-ui/react-portal": "^1.1.1", | ||
"@firecms/editor": "^3.0.0-beta.10", | ||
"@firecms/formex": "^3.0.0-beta.10", | ||
"@firecms/ui": "^3.0.0-beta.10", | ||
"@hello-pangea/dnd": "^17.0.0", | ||
"@radix-ui/react-portal": "^1.1.2", | ||
"clsx": "^2.1.1", | ||
@@ -62,3 +62,3 @@ "date-fns": "^3.6.0", | ||
"object-hash": "^3.0.0", | ||
"react-dropzone": "^14.2.3", | ||
"react-dropzone": "^14.2.9", | ||
"react-fast-compare": "^3.2.2", | ||
@@ -80,22 +80,22 @@ "react-image-file-resizer": "^0.4.8", | ||
"@jest/globals": "^29.7.0", | ||
"@testing-library/react": "^15.0.7", | ||
"@testing-library/react": "^16.0.1", | ||
"@testing-library/user-event": "^14.5.2", | ||
"@types/jest": "^29.5.12", | ||
"@types/node": "^20.14.12", | ||
"@types/jest": "^29.5.13", | ||
"@types/node": "^20.16.11", | ||
"@types/object-hash": "^3.0.6", | ||
"@types/react": "^18.3.3", | ||
"@types/react": "^18.3.11", | ||
"@types/react-dom": "^18.3.0", | ||
"@types/react-measure": "^2.0.12", | ||
"@vitejs/plugin-react": "^4.3.1", | ||
"@vitejs/plugin-react": "^4.3.2", | ||
"cross-env": "^7.0.3", | ||
"firebase": "^10.12.4", | ||
"firebase": "^10.14.0", | ||
"jest": "^29.7.0", | ||
"npm-run-all": "^4.1.5", | ||
"react-router": "^6.25.1", | ||
"react-router-dom": "^6.25.1", | ||
"ts-jest": "^29.2.3", | ||
"react-router": "^6.26.2", | ||
"react-router-dom": "^6.26.2", | ||
"ts-jest": "^29.2.5", | ||
"ts-node": "^10.9.2", | ||
"tsd": "^0.31.1", | ||
"typescript": "^5.5.4", | ||
"vite": "^5.3.4" | ||
"tsd": "^0.31.2", | ||
"typescript": "^5.6.3", | ||
"vite": "^5.4.8" | ||
}, | ||
@@ -106,3 +106,3 @@ "files": [ | ||
], | ||
"gitHead": "a2fffa74049d185e674aae9f70b462f011edd1c2", | ||
"gitHead": "f844c3f86094efec6c33313c3f106f30cdcd309f", | ||
"publishConfig": { | ||
@@ -109,0 +109,0 @@ "access": "public" |
@@ -12,3 +12,3 @@ <p align="center"> | ||
<h1 align="center">FireCMS</h1> | ||
<h3 align="center">Awesome Firebase/Firestore-based headless CMS</h3> | ||
<h3 align="center">Awesome Firebase/MongoDB-based headless CMS</h3> | ||
<p align="center"><a href="https://demo.firecms.co">Live demo</a></p> | ||
@@ -93,3 +93,3 @@ | ||
FireCMS includes **over 15 built-in fields** with numerous customization and | ||
FireCMS includes **over 20 built-in fields** with numerous customization and | ||
validation options. The components have been carefully designed for an | ||
@@ -96,0 +96,0 @@ outstanding user experience, including advanced features like **references** to |
@@ -7,5 +7,7 @@ import { Properties, PropertiesOrBuilders } from "../types"; | ||
const property = properties[key]; | ||
property.editable = true; | ||
if (property.dataType === "map" && property.properties) { | ||
makePropertiesEditable(property.properties as Properties); | ||
if (property) { | ||
property.editable = true; | ||
if (property.dataType === "map" && property.properties) { | ||
makePropertiesEditable(property.properties as Properties); | ||
} | ||
} | ||
@@ -19,3 +21,6 @@ }); | ||
if (!isPropertyBuilder(property) && property.dataType === "map" && property.properties) { | ||
const updated = { ...property, properties: makePropertiesNonEditable(property.properties as PropertiesOrBuilders) }; | ||
const updated = { | ||
...property, | ||
properties: makePropertiesNonEditable(property.properties as PropertiesOrBuilders) | ||
}; | ||
acc[key] = updated; | ||
@@ -26,3 +31,6 @@ } | ||
} else { | ||
acc[key] = { ...property, editable: false }; | ||
acc[key] = { | ||
...property, | ||
editable: false | ||
}; | ||
} | ||
@@ -29,0 +37,0 @@ return acc; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
6003155
515
76010
+ Added@hello-pangea/dnd@17.0.0(transitive)
+ Addedreact-redux@9.2.0(transitive)
+ Addedredux@5.0.1(transitive)
- Removed@hello-pangea/dnd@16.6.0(transitive)
- Removed@types/hoist-non-react-statics@3.3.6(transitive)
- Removed@types/use-sync-external-store@0.0.3(transitive)
- Removedhoist-non-react-statics@3.3.2(transitive)
- Removedreact-is@18.3.1(transitive)
- Removedreact-redux@8.1.3(transitive)
- Removedredux@4.2.1(transitive)
Updated@firecms/ui@^3.0.0-beta.10
Updated@hello-pangea/dnd@^17.0.0
Updatedreact-dropzone@^14.2.9