@firecms/entity_history 3.0.0 → 3.1.0-canary.02232f4

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.
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Fetches the latest history entry from the __history subcollection
3
+ * and displays who last edited the entity and when.
4
+ */
5
+ export declare function LastEditedByIndicator({ path, entityId, collection }: {
6
+ path: string;
7
+ entityId: string;
8
+ collection: any;
9
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { PluginFormActionProps } from "@firecms/core";
2
+ /**
3
+ * Renders the "last edited by" indicator in the entity form top bar.
4
+ * Used as a plugin `form.ActionsTop` component.
5
+ */
6
+ export declare function LastEditedByFormAction({ entityId, path, status, collection, }: PluginFormActionProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +1,4 @@
1
1
  import { EntityCallbacks } from "@firecms/core";
2
2
  import { NewHistoryEntryParams } from "./types";
3
- export declare function createHistoryEntry<T = any>({ context, previousValues, values, path, entityId }: NewHistoryEntryParams<T>): void;
3
+ export declare function createHistoryEntry<T = any>({ context, previousValues, values, path, entityId, collection }: NewHistoryEntryParams<T>): void;
4
4
  export declare const entityHistoryCallbacks: EntityCallbacks;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from "./useEntityHistoryPlugin";
2
2
  export * from "./HistoryControllerProvider";
3
3
  export { createHistoryEntry } from "./entity_history_callbacks";
4
+ export { LastEditedByIndicator } from "./components/LastEditedByIndicator";
4
5
  export * from "./types";