@nivaro/react 0.1.154 → 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.
Files changed (3) hide show
  1. package/dist/index.d.ts +4 -1
  2. package/dist/index.js +2614 -2567
  3. 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';
@@ -4098,11 +4099,13 @@ export declare function usePeerReadAt(room: string | null): string | null;
4098
4099
  * exact colors/ring/size, and this component must never change how a user
4099
4100
  * without a photo renders.
4100
4101
  */
4101
- export declare function UserAvatar({ userId, fallback, className, alt }: {
4102
+ export declare function UserAvatar({ userId, fallback, className, style, alt }: {
4102
4103
  userId: string | number | null | undefined;
4103
4104
  fallback: ReactNode;
4104
4105
  /** Applied to the <img> when a photo exists — size + ring classes of the site's disc. */
4105
4106
  className?: string;
4107
+ /** Inline size for sites whose disc dimensions are dynamic (px-based avatars). */
4108
+ style?: CSSProperties;
4106
4109
  alt?: string;
4107
4110
  }): JSX.Element;
4108
4111