@nivaro/react 0.1.153 → 0.1.155
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.ts +9 -2
- package/dist/index.js +19805 -19756
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CascadeFilterRule } from '@nivaro/sdk';
|
|
2
2
|
import { Context } from 'react';
|
|
3
|
+
import type { CSSProperties } from 'react';
|
|
3
4
|
import { default as default_2 } from 'react';
|
|
4
5
|
import { FieldDependencyConfig } from '@nivaro/sdk';
|
|
5
6
|
import { ImportParseResponse } from '@nivaro/sdk';
|
|
@@ -1779,7 +1780,7 @@ export declare type ItemEditAuthContextValue = {
|
|
|
1779
1780
|
userId: string;
|
|
1780
1781
|
};
|
|
1781
1782
|
|
|
1782
|
-
export declare function ItemEditForm({ collection, itemId: itemIdProp, layoutSlug, onBack, onSaved, onDeleted, showHeader, focusField, showItemActions, onDirtyChange, documentTitle, registerSaveHandler, onDuplicate, showRevisions, showClone, showPipeline, showWorkflow, showComments, showTasks, showLockBanner, className, headerClassName, renderField, extraTopContent, extraBottomContent, onHeaderWidgets, initialImportResult, initialValues, initialLinks, initialRows }: ItemEditFormProps): JSX.Element;
|
|
1783
|
+
export declare function ItemEditForm({ collection, itemId: itemIdProp, layoutSlug, onBack, onSaved, onDeleted, showHeader, headerExtra, focusField, showItemActions, onDirtyChange, documentTitle, registerSaveHandler, onDuplicate, showRevisions, showClone, showPipeline, showWorkflow, showComments, showTasks, showLockBanner, className, headerClassName, renderField, extraTopContent, extraBottomContent, onHeaderWidgets, initialImportResult, initialValues, initialLinks, initialRows }: ItemEditFormProps): JSX.Element;
|
|
1783
1784
|
|
|
1784
1785
|
export declare interface ItemEditFormProps {
|
|
1785
1786
|
collection: string;
|
|
@@ -1789,6 +1790,10 @@ export declare interface ItemEditFormProps {
|
|
|
1789
1790
|
onSaved?: (id: string) => void;
|
|
1790
1791
|
onDeleted?: () => void;
|
|
1791
1792
|
showHeader?: boolean;
|
|
1793
|
+
/** Host-provided content rendered at the start of the header's action
|
|
1794
|
+
* cluster (e.g. an "Open Project 360°" link) — keeps host actions inside
|
|
1795
|
+
* the toolbar instead of floating above the form. */
|
|
1796
|
+
headerExtra?: ReactNode;
|
|
1792
1797
|
/** Render extension-registered item actions (Push to Fusion etc.) in the
|
|
1793
1798
|
* header toolbar. Off by default — the admin's ItemEdit page renders its
|
|
1794
1799
|
* own copy in the page header; headless hosts opt in. */
|
|
@@ -4094,11 +4099,13 @@ export declare function usePeerReadAt(room: string | null): string | null;
|
|
|
4094
4099
|
* exact colors/ring/size, and this component must never change how a user
|
|
4095
4100
|
* without a photo renders.
|
|
4096
4101
|
*/
|
|
4097
|
-
export declare function UserAvatar({ userId, fallback, className, alt }: {
|
|
4102
|
+
export declare function UserAvatar({ userId, fallback, className, style, alt }: {
|
|
4098
4103
|
userId: string | number | null | undefined;
|
|
4099
4104
|
fallback: ReactNode;
|
|
4100
4105
|
/** Applied to the <img> when a photo exists — size + ring classes of the site's disc. */
|
|
4101
4106
|
className?: string;
|
|
4107
|
+
/** Inline size for sites whose disc dimensions are dynamic (px-based avatars). */
|
|
4108
|
+
style?: CSSProperties;
|
|
4102
4109
|
alt?: string;
|
|
4103
4110
|
}): JSX.Element;
|
|
4104
4111
|
|