@firecms/core 3.2.0-canary.9c3d298 → 3.3.0-canary.2064433
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/app/AppBar.d.ts +1 -1
- package/dist/app/Drawer.d.ts +1 -1
- package/dist/components/AIIcon.d.ts +3 -2
- package/dist/components/ArrayContainer.d.ts +3 -3
- package/dist/components/CircularProgressCenter.d.ts +2 -1
- package/dist/components/ClearFilterSortButton.d.ts +1 -1
- package/dist/components/ConfirmationDialog.d.ts +1 -1
- package/dist/components/DeleteEntityDialog.d.ts +2 -1
- package/dist/components/EntityCollectionTable/EntityCollectionRowActions.d.ts +1 -1
- package/dist/components/EntityCollectionTable/EntityCollectionTable.d.ts +2 -1
- package/dist/components/EntityCollectionTable/fields/TableReferenceField.d.ts +1 -1
- package/dist/components/EntityCollectionTable/fields/TableStorageUpload.d.ts +2 -2
- package/dist/components/EntityCollectionTable/internal/CollectionTableToolbar.d.ts +1 -1
- package/dist/components/EntityCollectionTable/internal/EntityTableCellActions.d.ts +1 -1
- package/dist/components/EntityCollectionTable/internal/popup_field/PopupFormField.d.ts +4 -3
- package/dist/components/EntityCollectionView/Board.d.ts +2 -1
- package/dist/components/EntityCollectionView/BoardColumnTitle.d.ts +1 -1
- package/dist/components/EntityCollectionView/BoardSortableList.d.ts +1 -1
- package/dist/components/EntityCollectionView/CollectionDataErrorBanner.d.ts +2 -1
- package/dist/components/EntityCollectionView/EntityBoardCard.d.ts +1 -1
- package/dist/components/EntityCollectionView/EntityCard.d.ts +2 -1
- package/dist/components/EntityCollectionView/EntityCollectionBoardView.d.ts +1 -1
- package/dist/components/EntityCollectionView/EntityCollectionCardView.d.ts +1 -1
- package/dist/components/EntityCollectionView/EntityCollectionViewActions.d.ts +2 -1
- package/dist/components/EntityCollectionView/EntityCollectionViewStartActions.d.ts +2 -1
- package/dist/components/EntityCollectionView/FiltersDialog.d.ts +2 -1
- package/dist/components/EntityCollectionView/ViewModeToggle.d.ts +2 -1
- package/dist/components/EntityJsonPreview.d.ts +2 -1
- package/dist/components/EntityPreview.d.ts +1 -1
- package/dist/components/EntityView.d.ts +2 -1
- package/dist/components/ErrorBoundary.d.ts +1 -1
- package/dist/components/ErrorTooltip.d.ts +2 -1
- package/dist/components/FieldCaption.d.ts +1 -1
- package/dist/components/FireCMSLogo.d.ts +1 -1
- package/dist/components/HomePage/DefaultHomePage.d.ts +1 -1
- package/dist/components/HomePage/FavouritesView.d.ts +1 -1
- package/dist/components/HomePage/HomePageDnD.d.ts +4 -4
- package/dist/components/HomePage/NavigationCardBinding.d.ts +2 -1
- package/dist/components/HomePage/NavigationGroup.d.ts +2 -2
- package/dist/components/HomePage/RenameGroupDialog.d.ts +2 -1
- package/dist/components/HomePage/SmallNavigationCard.d.ts +1 -1
- package/dist/components/LanguageToggle.d.ts +2 -1
- package/dist/components/NotFoundPage.d.ts +2 -1
- package/dist/components/PropertyCollectionView.d.ts +2 -1
- package/dist/components/PropertyIdCopyTooltip.d.ts +2 -2
- package/dist/components/ReferenceTable/ReferenceSelectionTable.d.ts +1 -1
- package/dist/components/ReferenceWidget.d.ts +2 -1
- package/dist/components/SearchIconsView.d.ts +2 -1
- package/dist/components/SelectableTable/SelectableTable.d.ts +1 -1
- package/dist/components/SelectableTable/filters/BooleanFilterField.d.ts +2 -1
- package/dist/components/SelectableTable/filters/DateTimeFilterField.d.ts +2 -1
- package/dist/components/SelectableTable/filters/ReferenceFilterField.d.ts +2 -1
- package/dist/components/SelectableTable/filters/StringNumberFilterField.d.ts +2 -1
- package/dist/components/UnsavedChangesDialog.d.ts +1 -1
- package/dist/components/UserDisplay.d.ts +1 -1
- package/dist/components/VirtualTable/VirtualTableHeader.d.ts +1 -0
- package/dist/components/VirtualTable/VirtualTableHeaderRow.d.ts +2 -1
- package/dist/components/VirtualTable/VirtualTableProps.d.ts +6 -1
- package/dist/components/VirtualTable/fields/VirtualTableDateField.d.ts +1 -1
- package/dist/components/VirtualTable/fields/VirtualTableInput.d.ts +2 -1
- package/dist/components/VirtualTable/fields/VirtualTableNumberInput.d.ts +2 -1
- package/dist/components/VirtualTable/fields/VirtualTableSelect.d.ts +1 -1
- package/dist/components/VirtualTable/fields/VirtualTableSwitch.d.ts +2 -1
- package/dist/components/VirtualTable/fields/VirtualTableUserSelect.d.ts +1 -1
- package/dist/components/VirtualTable/types.d.ts +1 -0
- package/dist/core/DefaultAppBar.d.ts +1 -1
- package/dist/core/DefaultDrawer.d.ts +2 -2
- package/dist/core/DrawerNavigationGroup.d.ts +1 -1
- package/dist/core/DrawerNavigationItem.d.ts +1 -1
- package/dist/core/EntityEditView.d.ts +2 -2
- package/dist/core/EntityEditViewFormActions.d.ts +2 -1
- package/dist/core/EntitySidePanel.d.ts +2 -1
- package/dist/core/FireCMS.d.ts +2 -1
- package/dist/core/FireCMSRouter.d.ts +1 -1
- package/dist/core/SideDialogs.d.ts +1 -1
- package/dist/editor/components/SlashCommandMenu.d.ts +2 -1
- package/dist/editor/editor.d.ts +1 -1
- package/dist/editor/selectors/color-selector.d.ts +1 -1
- package/dist/editor/selectors/link-selector.d.ts +1 -1
- package/dist/editor/selectors/node-selector.d.ts +1 -1
- package/dist/editor/selectors/text-buttons.d.ts +1 -1
- package/dist/form/EntityForm.d.ts +1 -1
- package/dist/form/EntityFormActions.d.ts +1 -1
- package/dist/form/components/CustomIdField.d.ts +2 -1
- package/dist/form/components/FieldHelperText.d.ts +1 -1
- package/dist/form/components/FormEntry.d.ts +1 -1
- package/dist/form/components/FormLayout.d.ts +1 -1
- package/dist/form/components/LabelWithIconAndTooltip.d.ts +1 -1
- package/dist/form/components/LocalChangesMenu.d.ts +2 -1
- package/dist/form/components/StorageItemPreview.d.ts +2 -1
- package/dist/form/components/StorageUploadProgress.d.ts +2 -1
- package/dist/form/field_bindings/ArrayCustomShapedFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/ArrayOfReferencesFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/BlockFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/DateTimeFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/KeyValueFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/MapFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/MarkdownEditorFieldBinding.d.ts +3 -2
- package/dist/form/field_bindings/MultiSelectFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/ReadOnlyFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/ReferenceAsStringFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/ReferenceFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/RepeatFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/SelectFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/StorageUploadFieldBinding.d.ts +3 -2
- package/dist/form/field_bindings/SwitchFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/TextFieldBinding.d.ts +2 -1
- package/dist/form/field_bindings/UserSelectFieldBinding.d.ts +2 -1
- package/dist/i18n/FireCMSi18nProvider.d.ts +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +24457 -23726
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +22959 -22228
- package/dist/index.umd.js.map +1 -1
- package/dist/preview/components/ArrayEnumPreview.d.ts +2 -1
- package/dist/preview/components/AsyncPreviewComponent.d.ts +1 -1
- package/dist/preview/components/EmptyValue.d.ts +2 -1
- package/dist/preview/components/EnumValuesChip.d.ts +1 -1
- package/dist/preview/components/ImagePreview.d.ts +2 -1
- package/dist/preview/components/ReferencePreview.d.ts +1 -1
- package/dist/preview/components/StorageThumbnail.d.ts +1 -1
- package/dist/preview/components/UserPreview.d.ts +2 -1
- package/dist/preview/property_previews/ArrayOfMapsPreview.d.ts +2 -1
- package/dist/preview/property_previews/ArrayOfReferencesPreview.d.ts +1 -1
- package/dist/preview/property_previews/ArrayOfStorageComponentsPreview.d.ts +2 -1
- package/dist/preview/property_previews/ArrayOfStringsPreview.d.ts +2 -1
- package/dist/preview/property_previews/ArrayOneOfPreview.d.ts +2 -1
- package/dist/preview/property_previews/ArrayPropertyEnumPreview.d.ts +1 -1
- package/dist/preview/property_previews/ArrayPropertyPreview.d.ts +2 -1
- package/dist/preview/property_previews/MapPropertyPreview.d.ts +3 -2
- package/dist/preview/property_previews/SkeletonPropertyComponent.d.ts +5 -4
- package/dist/routes/FireCMSRoute.d.ts +2 -1
- package/dist/types/collections.d.ts +38 -0
- package/dist/types/properties.d.ts +9 -8
- package/dist/types/translations.d.ts +23 -0
- package/dist/util/index.d.ts +1 -0
- package/dist/util/lazy_eager.d.ts +7 -0
- package/dist/util/objects.d.ts +1 -0
- package/dist/util/property_utils.d.ts +1 -1
- package/package.json +5 -5
- package/src/components/EntityCollectionTable/EntityCollectionRowActions.tsx +9 -3
- package/src/components/EntityCollectionTable/internal/common.tsx +2 -2
- package/src/components/EntityCollectionView/EntityCollectionView.tsx +3 -5
- package/src/components/EntityJsonPreview.tsx +2 -1
- package/src/components/ErrorBoundary.tsx +3 -3
- package/src/components/VirtualTable/VirtualTable.tsx +5 -3
- package/src/components/VirtualTable/VirtualTableHeader.tsx +9 -8
- package/src/components/VirtualTable/VirtualTableHeaderRow.tsx +8 -3
- package/src/components/VirtualTable/VirtualTableProps.tsx +7 -1
- package/src/components/VirtualTable/types.tsx +1 -0
- package/src/core/DrawerNavigationGroup.tsx +1 -1
- package/src/core/EntityEditView.tsx +50 -5
- package/src/core/EntitySidePanel.tsx +2 -1
- package/src/core/field_configs.tsx +4 -2
- package/src/editor/editor.tsx +20 -1
- package/src/editor/markdown.ts +89 -1
- package/src/form/EntityForm.tsx +64 -4
- package/src/form/PropertyFieldBinding.tsx +4 -3
- package/src/form/field_bindings/ArrayCustomShapedFieldBinding.tsx +18 -5
- package/src/form/field_bindings/ArrayOfReferencesFieldBinding.tsx +18 -5
- package/src/form/field_bindings/BlockFieldBinding.tsx +21 -7
- package/src/form/field_bindings/DateTimeFieldBinding.tsx +1 -1
- package/src/form/field_bindings/KeyValueFieldBinding.tsx +23 -6
- package/src/form/field_bindings/MapFieldBinding.tsx +23 -8
- package/src/form/field_bindings/MarkdownEditorFieldBinding.tsx +43 -20
- package/src/form/field_bindings/MultiSelectFieldBinding.tsx +15 -1
- package/src/form/field_bindings/ReferenceAsStringFieldBinding.tsx +25 -11
- package/src/form/field_bindings/ReferenceFieldBinding.tsx +25 -11
- package/src/form/field_bindings/RepeatFieldBinding.tsx +18 -5
- package/src/form/field_bindings/SelectFieldBinding.tsx +7 -5
- package/src/form/field_bindings/StorageUploadFieldBinding.tsx +24 -7
- package/src/form/field_bindings/SwitchFieldBinding.tsx +31 -14
- package/src/form/field_bindings/TextFieldBinding.tsx +10 -7
- package/src/form/field_bindings/UserSelectFieldBinding.tsx +7 -5
- package/src/index.ts +1 -0
- package/src/internal/useBuildSideEntityController.tsx +1 -1
- package/src/locales/de.ts +28 -1
- package/src/locales/en.ts +27 -0
- package/src/locales/es.ts +28 -1
- package/src/locales/fr.ts +28 -1
- package/src/locales/hi.ts +28 -1
- package/src/locales/it.ts +28 -1
- package/src/locales/pt.ts +28 -1
- package/src/preview/PropertyPreview.tsx +6 -5
- package/src/preview/components/ReferencePreview.tsx +2 -1
- package/src/preview/property_previews/MapPropertyPreview.tsx +49 -27
- package/src/routes/FireCMSRoute.tsx +63 -54
- package/src/types/collections.ts +40 -0
- package/src/types/properties.ts +11 -10
- package/src/types/translations.ts +27 -0
- package/src/util/index.ts +1 -0
- package/src/util/lazy_eager.tsx +33 -0
- package/src/util/objects.ts +15 -0
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { VirtualTableContextProps } from "./types";
|
|
2
|
-
export declare const VirtualTableHeaderRow: ({ columns, currentSort, onColumnSort, onFilterUpdate, sortByProperty, filter, onColumnResize, onColumnResizeEnd, createFilterField, AddColumnComponent, onColumnsOrderChange, data, cellRenderer: CellRenderer, rowHeight, draggingColumnId }: VirtualTableContextProps<any>) =>
|
|
3
|
+
export declare const VirtualTableHeaderRow: ({ columns, currentSort, onColumnSort, onFilterUpdate, sortByProperty, filter, onColumnResize, onColumnResizeEnd, createFilterField, AddColumnComponent, onColumnsOrderChange, data, cellRenderer: CellRenderer, rowHeight, draggingColumnId, headerIconSize, }: VirtualTableContextProps<any>) => React.JSX.Element;
|
|
@@ -137,6 +137,11 @@ export interface VirtualTableProps<T extends Record<string, any>> {
|
|
|
137
137
|
* @param columns The new column order
|
|
138
138
|
*/
|
|
139
139
|
onColumnsOrderChange?: (columns: VirtualTableColumn[]) => void;
|
|
140
|
+
/**
|
|
141
|
+
* Size of icons in column headers (sort, filter).
|
|
142
|
+
* @default "small"
|
|
143
|
+
*/
|
|
144
|
+
headerIconSize?: "small" | "smallest";
|
|
140
145
|
}
|
|
141
146
|
export type CellRendererParams<T = any> = {
|
|
142
147
|
column: VirtualTableColumn;
|
|
@@ -169,7 +174,7 @@ export interface VirtualTableColumn<CustomProps = any> {
|
|
|
169
174
|
/**
|
|
170
175
|
* Label displayed in the header
|
|
171
176
|
*/
|
|
172
|
-
title?:
|
|
177
|
+
title?: React.ReactNode;
|
|
173
178
|
/**
|
|
174
179
|
* This column is frozen to the left
|
|
175
180
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
export declare function VirtualTableInput(props: {
|
|
2
3
|
error: Error | undefined;
|
|
3
4
|
value: string;
|
|
@@ -5,4 +6,4 @@ export declare function VirtualTableInput(props: {
|
|
|
5
6
|
focused: boolean;
|
|
6
7
|
disabled: boolean;
|
|
7
8
|
updateValue: (newValue: (string | null)) => void;
|
|
8
|
-
}):
|
|
9
|
+
}): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
export declare function VirtualTableNumberInput(props: {
|
|
2
3
|
error: Error | undefined;
|
|
3
4
|
value: number;
|
|
@@ -5,4 +6,4 @@ export declare function VirtualTableNumberInput(props: {
|
|
|
5
6
|
updateValue: (newValue: (number | null)) => void;
|
|
6
7
|
focused: boolean;
|
|
7
8
|
disabled: boolean;
|
|
8
|
-
}):
|
|
9
|
+
}): React.JSX.Element;
|
|
@@ -12,4 +12,4 @@ export declare function VirtualTableSelect(props: {
|
|
|
12
12
|
updateValue: (newValue: (string | number | string[] | number[] | null)) => void;
|
|
13
13
|
focused: boolean;
|
|
14
14
|
onBlur?: React.FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
15
|
-
}):
|
|
15
|
+
}): React.JSX.Element;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
export declare function VirtualTableSwitch(props: {
|
|
2
3
|
error: Error | undefined;
|
|
3
4
|
internalValue?: boolean;
|
|
4
5
|
focused: boolean;
|
|
5
6
|
disabled: boolean;
|
|
6
7
|
updateValue: (newValue: (boolean | null)) => void;
|
|
7
|
-
}):
|
|
8
|
+
}): React.JSX.Element;
|
|
@@ -9,4 +9,4 @@ export declare function VirtualTableUserSelect(props: {
|
|
|
9
9
|
updateValue: (newValue: (string | string[] | null)) => void;
|
|
10
10
|
focused: boolean;
|
|
11
11
|
onBlur?: React.FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
12
|
-
}):
|
|
12
|
+
}): React.JSX.Element;
|
|
@@ -26,4 +26,4 @@ export type DefaultAppBarProps<ADDITIONAL_PROPS = object> = {
|
|
|
26
26
|
*
|
|
27
27
|
|
|
28
28
|
*/
|
|
29
|
-
export declare const DefaultAppBar: ({ title, endAdornment, startAdornment, dropDownActions, includeModeToggle, className, style, user: userProp, logo: logoProp, }: DefaultAppBarProps) =>
|
|
29
|
+
export declare const DefaultAppBar: ({ title, endAdornment, startAdornment, dropDownActions, includeModeToggle, className, style, user: userProp, logo: logoProp, }: DefaultAppBarProps) => React.JSX.Element;
|
|
@@ -6,7 +6,7 @@ import React from "react";
|
|
|
6
6
|
export declare function DefaultDrawer({ className, style, }: {
|
|
7
7
|
className?: string;
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
|
-
}):
|
|
9
|
+
}): React.JSX.Element;
|
|
10
10
|
/**
|
|
11
11
|
* This is the logo displayed in the drawer
|
|
12
12
|
* It expands when the drawer is open.
|
|
@@ -16,4 +16,4 @@ export declare function DefaultDrawer({ className, style, }: {
|
|
|
16
16
|
*/
|
|
17
17
|
export declare function DrawerLogo({ logo }: {
|
|
18
18
|
logo?: string;
|
|
19
|
-
}):
|
|
19
|
+
}): React.JSX.Element;
|
|
@@ -42,4 +42,4 @@ export interface DrawerNavigationGroupProps {
|
|
|
42
42
|
* Shared drawer navigation group component used by both DefaultDrawer and FireCMSCloudDrawer.
|
|
43
43
|
* Renders a collapsible group with header and navigation items.
|
|
44
44
|
*/
|
|
45
|
-
export declare function DrawerNavigationGroup({ group, entries, collapsed, onToggleCollapsed, drawerOpen, tooltipsOpen, adminMenuOpen, headerActions, onItemClick }: DrawerNavigationGroupProps):
|
|
45
|
+
export declare function DrawerNavigationGroup({ group, entries, collapsed, onToggleCollapsed, drawerOpen, tooltipsOpen, adminMenuOpen, headerActions, onItemClick }: DrawerNavigationGroupProps): React.JSX.Element;
|
|
@@ -49,7 +49,7 @@ export interface EntityEditViewProps<M extends Record<string, any>> {
|
|
|
49
49
|
* This is the default view that is used as the content of a side panel when
|
|
50
50
|
* an entity is opened.
|
|
51
51
|
*/
|
|
52
|
-
export declare function EntityEditView<M extends Record<string, any>, USER extends User>({ entityId, ...props }: EntityEditViewProps<M>):
|
|
52
|
+
export declare function EntityEditView<M extends Record<string, any>, USER extends User>({ entityId, ...props }: EntityEditViewProps<M>): React.JSX.Element;
|
|
53
53
|
export declare function EntityEditViewInner<M extends Record<string, any>>({ path, fullIdPath, entityId, selectedTab: selectedTabProp, collection, parentCollectionIds, onValuesModified, onSaved, onTabChange, entity, initialDirtyValues, dataLoading, layout, barActions, status, setStatus, formProps, canEdit }: EntityEditViewProps<M> & {
|
|
54
54
|
entity?: Entity<M>;
|
|
55
55
|
initialDirtyValues?: Partial<M>;
|
|
@@ -57,4 +57,4 @@ export declare function EntityEditViewInner<M extends Record<string, any>>({ pat
|
|
|
57
57
|
status: EntityStatus;
|
|
58
58
|
setStatus: (status: EntityStatus) => void;
|
|
59
59
|
canEdit?: boolean;
|
|
60
|
-
}):
|
|
60
|
+
}): React.JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { EntityFormActionsProps } from "../form/EntityFormActions";
|
|
2
|
-
export declare function EntityEditViewFormActions({ collection, path, entity, layout, savingError, formex, disabled, status, pluginActions, openEntityMode, showDefaultActions, navigateBack, formContext }: EntityFormActionsProps):
|
|
3
|
+
export declare function EntityEditViewFormActions({ collection, path, entity, layout, savingError, formex, disabled, status, pluginActions, openEntityMode, showDefaultActions, navigateBack, formContext }: EntityFormActionsProps): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { EntitySidePanelProps } from "../types";
|
|
2
3
|
/**
|
|
3
4
|
* This is the component in charge of rendering the side dialog used
|
|
@@ -7,4 +8,4 @@ import { EntitySidePanelProps } from "../types";
|
|
|
7
8
|
* {@link useSideEntityController}
|
|
8
9
|
* @group Components
|
|
9
10
|
*/
|
|
10
|
-
export declare function EntitySidePanel(props: EntitySidePanelProps):
|
|
11
|
+
export declare function EntitySidePanel(props: EntitySidePanelProps): React.JSX.Element;
|
package/dist/core/FireCMS.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { FireCMSProps, User } from "../types";
|
|
2
3
|
/**
|
|
3
4
|
* If you are using independent components of the CMS
|
|
@@ -10,4 +11,4 @@ import { FireCMSProps, User } from "../types";
|
|
|
10
11
|
*
|
|
11
12
|
* @group Core
|
|
12
13
|
*/
|
|
13
|
-
export declare function FireCMS<USER extends User>(props: FireCMSProps<USER>):
|
|
14
|
+
export declare function FireCMS<USER extends User>(props: FireCMSProps<USER>): React.JSX.Element;
|
|
@@ -22,4 +22,4 @@ export declare const useSideDialogContext: () => SideDialogController;
|
|
|
22
22
|
* {@link useSideDialogsController}
|
|
23
23
|
* @group Components
|
|
24
24
|
*/
|
|
25
|
-
export declare function SideDialogs():
|
|
25
|
+
export declare function SideDialogs(): React.JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { EditorAIController } from "../types";
|
|
2
3
|
import { UploadFn } from "../extensions/Image";
|
|
3
4
|
export declare const SlashCommandMenu: ({ upload, aiController }: {
|
|
4
5
|
upload: UploadFn;
|
|
5
6
|
aiController?: EditorAIController;
|
|
6
|
-
}) =>
|
|
7
|
+
}) => React.JSX.Element | null;
|
package/dist/editor/editor.d.ts
CHANGED
|
@@ -27,4 +27,4 @@ export type FireCMSEditorProps = {
|
|
|
27
27
|
disabled?: boolean;
|
|
28
28
|
markdownConfig?: MarkdownEditorConfig;
|
|
29
29
|
};
|
|
30
|
-
export declare const FireCMSEditor: ({ content, onJsonContentChange, onHtmlContentChange, onMarkdownContentChange, version, textSize, highlight, handleImageUpload, aiController, disabled, markdownConfig }: FireCMSEditorProps) =>
|
|
30
|
+
export declare const FireCMSEditor: ({ content, onJsonContentChange, onHtmlContentChange, onMarkdownContentChange, version, textSize, highlight, handleImageUpload, aiController, disabled, markdownConfig }: FireCMSEditorProps) => React.JSX.Element;
|
|
@@ -6,5 +6,5 @@ interface ColorSelectorProps {
|
|
|
6
6
|
open: boolean;
|
|
7
7
|
onOpenChange: (open: boolean) => void;
|
|
8
8
|
}
|
|
9
|
-
export declare const ColorSelector: ({ open, onOpenChange }: ColorSelectorProps) => import("react
|
|
9
|
+
export declare const ColorSelector: ({ open, onOpenChange }: ColorSelectorProps) => import("react").JSX.Element | null;
|
|
10
10
|
export {};
|
|
@@ -4,5 +4,5 @@ interface LinkSelectorProps {
|
|
|
4
4
|
open: boolean;
|
|
5
5
|
onOpenChange: (open: boolean) => void;
|
|
6
6
|
}
|
|
7
|
-
export declare const LinkSelector: ({ open, onOpenChange }: LinkSelectorProps) => import("react
|
|
7
|
+
export declare const LinkSelector: ({ open, onOpenChange }: LinkSelectorProps) => import("react").JSX.Element | null;
|
|
8
8
|
export {};
|
|
@@ -11,5 +11,5 @@ interface NodeSelectorProps {
|
|
|
11
11
|
onOpenChange: (open: boolean) => void;
|
|
12
12
|
portalContainer: HTMLElement | null;
|
|
13
13
|
}
|
|
14
|
-
export declare const NodeSelector: ({ open, onOpenChange, portalContainer }: NodeSelectorProps) => import("react
|
|
14
|
+
export declare const NodeSelector: ({ open, onOpenChange, portalContainer }: NodeSelectorProps) => import("react").JSX.Element | null;
|
|
15
15
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const TextButtons: () => import("react
|
|
1
|
+
export declare const TextButtons: () => import("react").JSX.Element | null;
|
|
@@ -48,6 +48,6 @@ export type EntityFormProps<M extends Record<string, any>> = {
|
|
|
48
48
|
};
|
|
49
49
|
export declare function extractTouchedValues(values: any, touched: Record<string, boolean>): Record<string, any>;
|
|
50
50
|
export declare function getChanges<T extends object>(source: Partial<T>, comparison: Partial<T>): Partial<T>;
|
|
51
|
-
export declare function EntityForm<M extends Record<string, any>>({ path, fullIdPath, entityId: entityIdProp, collection, onValuesModified, onIdChange, onSaved, entity, initialDirtyValues, onFormContextReady, forceActionsAtTheBottom, initialStatus, className, onStatusChange, onEntityChange, openEntityMode, formex: formexProp, disabled: disabledProp, Builder, EntityFormActionsComponent, showDefaultActions, showEntityPath, children }: EntityFormProps<M>):
|
|
51
|
+
export declare function EntityForm<M extends Record<string, any>>({ path, fullIdPath, entityId: entityIdProp, collection, onValuesModified, onIdChange, onSaved, entity, initialDirtyValues, onFormContextReady, forceActionsAtTheBottom, initialStatus, className, onStatusChange, onEntityChange, openEntityMode, formex: formexProp, disabled: disabledProp, Builder, EntityFormActionsComponent, showDefaultActions, showEntityPath, children }: EntityFormProps<M>): React.JSX.Element;
|
|
52
52
|
export declare function getInitialEntityValues<M extends object>(authController: AuthController, collection: EntityCollection, path: string, status: "new" | "existing" | "copy", entity: Entity<M> | undefined, propertyConfigs?: Record<string, PropertyConfig>): Partial<EntityValues<M>>;
|
|
53
53
|
export declare function yupToFormErrors(yupError: ValidationError): Record<string, any>;
|
|
@@ -18,4 +18,4 @@ export interface EntityFormActionsProps {
|
|
|
18
18
|
navigateBack: () => void;
|
|
19
19
|
formContext: FormContext;
|
|
20
20
|
}
|
|
21
|
-
export declare function EntityFormActions({ fullPath, fullIdPath, collection, entity, layout, savingError, formex, disabled, status, pluginActions, openEntityMode, navigateBack, formContext }: EntityFormActionsProps):
|
|
21
|
+
export declare function EntityFormActions({ fullPath, fullIdPath, collection, entity, layout, savingError, formex, disabled, status, pluginActions, openEntityMode, navigateBack, formContext }: EntityFormActionsProps): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { Entity, EntityStatus, EnumValues } from "../../types";
|
|
2
3
|
export declare function CustomIdField<M extends Record<string, any>>({ customId, entityId, status, onChange, error, entity, loading }: {
|
|
3
4
|
customId?: boolean | EnumValues | "optional";
|
|
@@ -7,4 +8,4 @@ export declare function CustomIdField<M extends Record<string, any>>({ customId,
|
|
|
7
8
|
error: boolean;
|
|
8
9
|
entity: Entity<M> | undefined;
|
|
9
10
|
loading: boolean;
|
|
10
|
-
}):
|
|
11
|
+
}): React.JSX.Element;
|
|
@@ -9,4 +9,4 @@ export declare function FieldHelperText({ error, showError, property, includeDes
|
|
|
9
9
|
property: ResolvedProperty | Property;
|
|
10
10
|
includeDescription?: boolean;
|
|
11
11
|
disabled?: boolean;
|
|
12
|
-
}): import("react
|
|
12
|
+
}): import("react").JSX.Element | null;
|
|
@@ -11,5 +11,5 @@ interface LabelWithIconAndTooltip {
|
|
|
11
11
|
* Render the label of with an icon and the title of a property
|
|
12
12
|
* @group Form custom fields
|
|
13
13
|
*/
|
|
14
|
-
export declare function LabelWithIconAndTooltip({ propertyKey, className, ...props }: LabelWithIconAndTooltip):
|
|
14
|
+
export declare function LabelWithIconAndTooltip({ propertyKey, className, ...props }: LabelWithIconAndTooltip): React.JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { FormexController } from "@firecms/formex";
|
|
2
3
|
import { ResolvedProperties } from "../../types";
|
|
3
4
|
interface LocalChangesMenuProps<M extends object> {
|
|
@@ -7,5 +8,5 @@ interface LocalChangesMenuProps<M extends object> {
|
|
|
7
8
|
onClearLocalChanges?: () => void;
|
|
8
9
|
properties: ResolvedProperties<M>;
|
|
9
10
|
}
|
|
10
|
-
export declare function LocalChangesMenu<M extends object>({ cachedData, formex, onClearLocalChanges, cacheKey, properties }: LocalChangesMenuProps<M>):
|
|
11
|
+
export declare function LocalChangesMenu<M extends object>({ cachedData, formex, onClearLocalChanges, cacheKey, properties }: LocalChangesMenuProps<M>): React.JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { ResolvedStringProperty } from "../../types";
|
|
2
3
|
import { PreviewSize } from "../../preview";
|
|
3
4
|
interface StorageItemPreviewProps {
|
|
@@ -10,5 +11,5 @@ interface StorageItemPreviewProps {
|
|
|
10
11
|
placeholder?: boolean;
|
|
11
12
|
className?: string;
|
|
12
13
|
}
|
|
13
|
-
export declare function StorageItemPreview({ name, property, value, onRemove, disabled, size, placeholder, className }: StorageItemPreviewProps):
|
|
14
|
+
export declare function StorageItemPreview({ name, property, value, onRemove, disabled, size, placeholder, className }: StorageItemPreviewProps): React.JSX.Element;
|
|
14
15
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { StorageFieldItem } from "../../util/useStorageUploadController";
|
|
2
3
|
export interface StorageUploadItemProps {
|
|
3
4
|
storagePath: string;
|
|
@@ -7,4 +8,4 @@ export interface StorageUploadItemProps {
|
|
|
7
8
|
imageSize: number;
|
|
8
9
|
simple: boolean;
|
|
9
10
|
}
|
|
10
|
-
export declare function StorageUploadProgress({ storagePath, entry, metadata, onFileUploadComplete, imageSize, simple, }: StorageUploadItemProps):
|
|
11
|
+
export declare function StorageUploadProgress({ storagePath, entry, metadata, onFileUploadComplete, imageSize, simple, }: StorageUploadItemProps): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { FieldProps } from "../../types";
|
|
2
3
|
/**
|
|
3
4
|
* Array field used for custom
|
|
@@ -6,4 +7,4 @@ import { FieldProps } from "../../types";
|
|
|
6
7
|
* and tables to the specified properties.
|
|
7
8
|
* @group Form fields
|
|
8
9
|
*/
|
|
9
|
-
export declare function ArrayCustomShapedFieldBinding<T extends Array<any>>({ propertyKey, value, error, showError, isSubmitting, setValue, minimalistView: minimalistViewProp, property, includeDescription, context, disabled }: FieldProps<T, any, any>):
|
|
10
|
+
export declare function ArrayCustomShapedFieldBinding<T extends Array<any>>({ propertyKey, value, error, showError, isSubmitting, setValue, minimalistView: minimalistViewProp, property, includeDescription, context, disabled }: FieldProps<T, any, any>): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { EntityReference, FieldProps } from "../../types";
|
|
2
3
|
type ArrayOfReferencesFieldProps = FieldProps<EntityReference[]>;
|
|
3
4
|
/**
|
|
@@ -7,5 +8,5 @@ type ArrayOfReferencesFieldProps = FieldProps<EntityReference[]>;
|
|
|
7
8
|
* and tables to the specified properties.
|
|
8
9
|
* @group Form fields
|
|
9
10
|
*/
|
|
10
|
-
export declare function ArrayOfReferencesFieldBinding({ propertyKey, value, error, showError, disabled, isSubmitting, minimalistView: minimalistViewProp, property, includeDescription, setValue, setFieldValue }: ArrayOfReferencesFieldProps):
|
|
11
|
+
export declare function ArrayOfReferencesFieldBinding({ propertyKey, value, error, showError, disabled, isSubmitting, minimalistView: minimalistViewProp, property, includeDescription, setValue, setFieldValue }: ArrayOfReferencesFieldProps): React.JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { FieldProps } from "../../types";
|
|
2
3
|
/**
|
|
3
4
|
* If the `oneOf` property is specified, this fields render each array entry as
|
|
@@ -7,4 +8,4 @@ import { FieldProps } from "../../types";
|
|
|
7
8
|
* and tables to the specified properties.
|
|
8
9
|
* @group Form fields
|
|
9
10
|
*/
|
|
10
|
-
export declare function BlockFieldBinding<T extends Array<any>>({ propertyKey, value, error, showError, isSubmitting, setValue, setFieldValue, minimalistView: minimalistViewProp, property, includeDescription, underlyingValueHasChanged, context, disabled }: FieldProps<T>):
|
|
11
|
+
export declare function BlockFieldBinding<T extends Array<any>>({ propertyKey, value, error, showError, isSubmitting, setValue, setFieldValue, minimalistView: minimalistViewProp, property, includeDescription, underlyingValueHasChanged, context, disabled }: FieldProps<T>): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { FieldProps } from "../../types";
|
|
2
3
|
type DateTimeFieldProps = FieldProps<Date>;
|
|
3
4
|
/**
|
|
@@ -7,5 +8,5 @@ type DateTimeFieldProps = FieldProps<Date>;
|
|
|
7
8
|
* and tables to the specified properties.
|
|
8
9
|
* @group Form fields
|
|
9
10
|
*/
|
|
10
|
-
export declare function DateTimeFieldBinding({ propertyKey, value, setValue, autoFocus, error, showError, disabled, touched, property, includeDescription }: DateTimeFieldProps):
|
|
11
|
+
export declare function DateTimeFieldBinding({ propertyKey, value, setValue, autoFocus, error, showError, disabled, touched, property, includeDescription }: DateTimeFieldProps): React.JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { FieldProps } from "../../types";
|
|
2
3
|
/**
|
|
3
4
|
* Field that allows edition of key value pairs.
|
|
4
5
|
*
|
|
5
6
|
* @group Form fields
|
|
6
7
|
*/
|
|
7
|
-
export declare function KeyValueFieldBinding({ propertyKey, value, showError, error, disabled, property, setValue, minimalistView, includeDescription, underlyingValueHasChanged, autoFocus, context }: FieldProps<Record<string, any>>):
|
|
8
|
+
export declare function KeyValueFieldBinding({ propertyKey, value, showError, error, disabled, property, setValue, minimalistView, includeDescription, underlyingValueHasChanged, autoFocus, context }: FieldProps<Record<string, any>>): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { FieldProps } from "../../types";
|
|
2
3
|
/**
|
|
3
4
|
* Field that renders the children property fields
|
|
@@ -6,4 +7,4 @@ import { FieldProps } from "../../types";
|
|
|
6
7
|
* and tables to the specified properties.
|
|
7
8
|
* @group Form fields
|
|
8
9
|
*/
|
|
9
|
-
export declare function MapFieldBinding({ propertyKey, value, showError, error, disabled, property, partOfArray, minimalistView: minimalistViewProp, includeDescription, autoFocus, context, onPropertyChange }: FieldProps<Record<string, any>>):
|
|
10
|
+
export declare function MapFieldBinding({ propertyKey, value, showError, error, disabled, property, partOfArray, minimalistView: minimalistViewProp, includeDescription, autoFocus, context, onPropertyChange, setValue }: FieldProps<Record<string, any>>): React.JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { FieldProps } from "../../index";
|
|
2
|
-
import { FireCMSEditorProps } from "../../editor";
|
|
3
|
+
import type { FireCMSEditorProps } from "../../editor";
|
|
3
4
|
interface MarkdownEditorFieldProps {
|
|
4
5
|
highlight?: {
|
|
5
6
|
from: number;
|
|
@@ -7,5 +8,5 @@ interface MarkdownEditorFieldProps {
|
|
|
7
8
|
};
|
|
8
9
|
editorProps?: Partial<FireCMSEditorProps>;
|
|
9
10
|
}
|
|
10
|
-
export declare function MarkdownEditorFieldBinding({ property, propertyKey, value, setValue, includeDescription, showError, error, minimalistView, disabled: disabledProp, isSubmitting, context, customProps, }: FieldProps<string, MarkdownEditorFieldProps>):
|
|
11
|
+
export declare function MarkdownEditorFieldBinding({ property, propertyKey, value, setValue, includeDescription, showError, error, minimalistView, disabled: disabledProp, isSubmitting, context, customProps, }: FieldProps<string, MarkdownEditorFieldProps>): React.JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { EnumType, FieldProps } from "../../types";
|
|
2
3
|
/**
|
|
3
4
|
* This fields renders a dropdown with multiple selection.
|
|
@@ -6,4 +7,4 @@ import { EnumType, FieldProps } from "../../types";
|
|
|
6
7
|
* and tables to the specified properties.
|
|
7
8
|
* @group Form fields
|
|
8
9
|
*/
|
|
9
|
-
export declare function MultiSelectFieldBinding({ propertyKey, value, setValue, error, showError, disabled, property, includeDescription, size, autoFocus }: FieldProps<EnumType[], any, any>):
|
|
10
|
+
export declare function MultiSelectFieldBinding({ propertyKey, value, setValue, error, showError, disabled, property, includeDescription, size, autoFocus }: FieldProps<EnumType[], any, any>): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { FieldProps } from "../../types";
|
|
2
3
|
/**
|
|
3
4
|
*
|
|
@@ -7,4 +8,4 @@ import { FieldProps } from "../../types";
|
|
|
7
8
|
* and tables to the specified properties.
|
|
8
9
|
* @group Form fields
|
|
9
10
|
*/
|
|
10
|
-
export declare function ReadOnlyFieldBinding({ propertyKey, value, error, showError, minimalistView, property, includeDescription, context }: FieldProps<any>):
|
|
11
|
+
export declare function ReadOnlyFieldBinding({ propertyKey, value, error, showError, minimalistView, property, includeDescription, context }: FieldProps<any>): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { FieldProps } from "../../types";
|
|
2
3
|
/**
|
|
3
4
|
* Field that opens a reference selection dialog and stores the entity ID as a string.
|
|
@@ -6,4 +7,4 @@ import { FieldProps } from "../../types";
|
|
|
6
7
|
* and tables to the specified properties.
|
|
7
8
|
* @group Form fields
|
|
8
9
|
*/
|
|
9
|
-
export declare function ReferenceAsStringFieldBinding(props: FieldProps<string>):
|
|
10
|
+
export declare function ReferenceAsStringFieldBinding(props: FieldProps<string>): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { FieldProps } from "../../types";
|
|
2
3
|
/**
|
|
3
4
|
* Field that opens a reference selection dialog.
|
|
@@ -6,4 +7,4 @@ import { FieldProps } from "../../types";
|
|
|
6
7
|
* and tables to the specified properties.
|
|
7
8
|
* @group Form fields
|
|
8
9
|
*/
|
|
9
|
-
export declare function ReferenceFieldBinding(props: FieldProps):
|
|
10
|
+
export declare function ReferenceFieldBinding(props: FieldProps): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { FieldProps } from "../../types";
|
|
2
3
|
/**
|
|
3
4
|
* Generic array field that allows reordering and renders the child property
|
|
@@ -7,4 +8,4 @@ import { FieldProps } from "../../types";
|
|
|
7
8
|
* and tables to the specified properties.
|
|
8
9
|
* @group Form fields
|
|
9
10
|
*/
|
|
10
|
-
export declare function RepeatFieldBinding<T extends Array<any>>({ propertyKey, value, error, showError, isSubmitting, setValue, setFieldValue, minimalistView: minimalistViewProp, property, includeDescription, underlyingValueHasChanged, context, disabled }: FieldProps<T>):
|
|
11
|
+
export declare function RepeatFieldBinding<T extends Array<any>>({ propertyKey, value, error, showError, isSubmitting, setValue, setFieldValue, minimalistView: minimalistViewProp, property, includeDescription, underlyingValueHasChanged, context, disabled }: FieldProps<T>): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { EnumType, FieldProps } from "../../types";
|
|
2
3
|
type SelectProps<T extends EnumType> = FieldProps<T>;
|
|
3
4
|
/**
|
|
@@ -8,5 +9,5 @@ type SelectProps<T extends EnumType> = FieldProps<T>;
|
|
|
8
9
|
* and tables to the specified properties.
|
|
9
10
|
* @group Form fields
|
|
10
11
|
*/
|
|
11
|
-
export declare function SelectFieldBinding<T extends EnumType>({ propertyKey, value, setValue, error, showError, disabled, autoFocus, touched, property, includeDescription, size }: SelectProps<T>):
|
|
12
|
+
export declare function SelectFieldBinding<T extends EnumType>({ propertyKey, value, setValue, error, showError, disabled, autoFocus, touched, property, includeDescription, size }: SelectProps<T>): React.JSX.Element;
|
|
12
13
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { FieldProps, ResolvedArrayProperty, ResolvedStringProperty, StorageConfig } from "../../types";
|
|
2
3
|
import { StorageFieldItem } from "../../util/useStorageUploadController";
|
|
3
4
|
type StorageUploadFieldProps = FieldProps<string | string[]>;
|
|
4
|
-
export declare function StorageUploadFieldBinding({ propertyKey, value, setValue, error, showError, autoFocus, minimalistView, property, includeDescription, context, isSubmitting, }: StorageUploadFieldProps):
|
|
5
|
+
export declare function StorageUploadFieldBinding({ propertyKey, value, setValue, error, showError, autoFocus, minimalistView, property, includeDescription, context, isSubmitting, }: StorageUploadFieldProps): React.JSX.Element;
|
|
5
6
|
export interface StorageUploadProps {
|
|
6
7
|
value: StorageFieldItem[];
|
|
7
8
|
setInternalValue: (v: StorageFieldItem[]) => void;
|
|
@@ -17,5 +18,5 @@ export interface StorageUploadProps {
|
|
|
17
18
|
onFileUploadComplete: (uploadedPath: string, entry: StorageFieldItem, fileMetadata?: any) => Promise<void>;
|
|
18
19
|
}
|
|
19
20
|
export declare function StorageUpload({ property, name, value, // This is internalValue from useStorageUploadController
|
|
20
|
-
setInternalValue, onChange, multipleFilesSupported, onFileUploadComplete, disabled, onFilesAdded, autoFocus, storage, storagePathBuilder, }: StorageUploadProps):
|
|
21
|
+
setInternalValue, onChange, multipleFilesSupported, onFileUploadComplete, disabled, onFilesAdded, autoFocus, storage, storagePathBuilder, }: StorageUploadProps): React.JSX.Element;
|
|
21
22
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { FieldProps } from "../../types";
|
|
2
3
|
type SwitchFieldProps = FieldProps<boolean>;
|
|
3
4
|
/**
|
|
@@ -7,5 +8,5 @@ type SwitchFieldProps = FieldProps<boolean>;
|
|
|
7
8
|
* and tables to the specified properties.
|
|
8
9
|
* @group Form fields
|
|
9
10
|
*/
|
|
10
|
-
export declare const SwitchFieldBinding: ({ propertyKey, value, setValue, error, showError, autoFocus, disabled, size, property, includeDescription }: SwitchFieldProps) =>
|
|
11
|
+
export declare const SwitchFieldBinding: ({ propertyKey, value, setValue, error, showError, autoFocus, disabled, size, property, includeDescription }: SwitchFieldProps) => React.JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { FieldProps } from "../../types";
|
|
2
3
|
interface TextFieldBindingProps<T extends string | number> extends FieldProps<T> {
|
|
3
4
|
allowInfinity?: boolean;
|
|
@@ -8,5 +9,5 @@ interface TextFieldBindingProps<T extends string | number> extends FieldProps<T>
|
|
|
8
9
|
* and tables to the specified properties.
|
|
9
10
|
* @group Form fields
|
|
10
11
|
*/
|
|
11
|
-
export declare function TextFieldBinding<T extends string | number>({ propertyKey, value, setValue, error, showError, disabled, autoFocus, property, includeDescription, size }: TextFieldBindingProps<T>):
|
|
12
|
+
export declare function TextFieldBinding<T extends string | number>({ propertyKey, value, setValue, error, showError, disabled, autoFocus, property, includeDescription, size }: TextFieldBindingProps<T>): React.JSX.Element;
|
|
12
13
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { FieldProps } from "../../types";
|
|
2
3
|
type UserSelectProps = FieldProps<string>;
|
|
3
4
|
/**
|
|
@@ -8,5 +9,5 @@ type UserSelectProps = FieldProps<string>;
|
|
|
8
9
|
* and tables to the specified properties.
|
|
9
10
|
* @group Form fields
|
|
10
11
|
*/
|
|
11
|
-
export declare function UserSelectFieldBinding({ propertyKey, value, setValue, error, showError, disabled, autoFocus, touched, property, includeDescription, size }: UserSelectProps):
|
|
12
|
+
export declare function UserSelectFieldBinding({ propertyKey, value, setValue, error, showError, disabled, autoFocus, touched, property, includeDescription, size }: UserSelectProps): React.JSX.Element;
|
|
12
13
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropsWithChildren } from "react";
|
|
1
|
+
import React, { PropsWithChildren } from "react";
|
|
2
2
|
import { FireCMSTranslations } from "../types/translations";
|
|
3
3
|
export declare const FIRECMS_LOCALE_STORAGE_KEY = "firecms_locale";
|
|
4
4
|
/** DeepPartial helper — allows partial overrides at any nesting level */
|
|
@@ -29,5 +29,5 @@ export interface FireCMSi18nProviderProps {
|
|
|
29
29
|
*
|
|
30
30
|
* @internal
|
|
31
31
|
*/
|
|
32
|
-
export declare function FireCMSi18nProvider({ locale, translations, children }: PropsWithChildren<FireCMSi18nProviderProps>):
|
|
32
|
+
export declare function FireCMSi18nProvider({ locale, translations, children }: PropsWithChildren<FireCMSi18nProviderProps>): React.JSX.Element | null;
|
|
33
33
|
export {};
|
package/dist/index.d.ts
CHANGED