@texturehq/edges 1.31.0 → 1.32.0

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.cts CHANGED
@@ -3394,6 +3394,11 @@ interface DeviceMetaCellProps<T = unknown> extends CellComponentProps<T> {
3394
3394
  align?: "left" | "center" | "right";
3395
3395
  /** Additional classes */
3396
3396
  className?: string;
3397
+ /**
3398
+ * Entity identifier for PII masking (can be a function to extract from row)
3399
+ * Example: (row) => `device:${row.id}`
3400
+ */
3401
+ piiEntity?: string | ((row: T) => string | undefined);
3397
3402
  }
3398
3403
  /**
3399
3404
  * DeviceMetaCell
@@ -3420,7 +3425,7 @@ interface DeviceMetaCellProps<T = unknown> extends CellComponentProps<T> {
3420
3425
  * }
3421
3426
  * ```
3422
3427
  */
3423
- declare function DeviceMetaCell<T = unknown>({ row, context, manufacturer, model, deviceType, logoUrl, layout, size, href, LinkComponent, linkVariant, showDeviceTypeIcon, showLogo, emphasis, align, className, }: DeviceMetaCellProps<T>): react_jsx_runtime.JSX.Element;
3428
+ declare function DeviceMetaCell<T = unknown>({ row, context, manufacturer, model, deviceType, logoUrl, layout, size, href, LinkComponent, linkVariant, showDeviceTypeIcon, showLogo, emphasis, align, className, piiEntity, }: DeviceMetaCellProps<T>): react_jsx_runtime.JSX.Element;
3424
3429
 
3425
3430
  interface DeviceStateCellProps<T = any> extends Omit<CellComponentProps<T>, "value"> {
3426
3431
  /** The device state value */
@@ -3894,6 +3899,11 @@ interface DeviceMetaDisplayProps {
3894
3899
  isLoading?: boolean;
3895
3900
  /** Additional classes */
3896
3901
  className?: string;
3902
+ /**
3903
+ * Entity identifier for PII masking (e.g., "device:device_abc123")
3904
+ * When provided, adds data-pii-* attributes for the Curtain extension
3905
+ */
3906
+ piiEntity?: string;
3897
3907
  }
3898
3908
  /**
3899
3909
  * DeviceMetaDisplay
@@ -3931,7 +3941,7 @@ interface DeviceMetaDisplayProps {
3931
3941
  * />
3932
3942
  * ```
3933
3943
  */
3934
- declare function DeviceMetaDisplay({ manufacturer, model, deviceType, deviceTypeIconName, logoUrl, layout, size, href, LinkComponent, linkVariant, showDeviceTypeIcon, showLogo, emphasis, isLoading, className, }: DeviceMetaDisplayProps): react_jsx_runtime.JSX.Element;
3944
+ declare function DeviceMetaDisplay({ manufacturer, model, deviceType, deviceTypeIconName, logoUrl, layout, size, href, LinkComponent, linkVariant, showDeviceTypeIcon, showLogo, emphasis, isLoading, className, piiEntity, }: DeviceMetaDisplayProps): react_jsx_runtime.JSX.Element;
3935
3945
 
3936
3946
  interface DeviceStateBadgeProps extends Omit<BadgeProps, "variant" | "children"> {
3937
3947
  /** The device state to display */
package/dist/index.d.ts CHANGED
@@ -3394,6 +3394,11 @@ interface DeviceMetaCellProps<T = unknown> extends CellComponentProps<T> {
3394
3394
  align?: "left" | "center" | "right";
3395
3395
  /** Additional classes */
3396
3396
  className?: string;
3397
+ /**
3398
+ * Entity identifier for PII masking (can be a function to extract from row)
3399
+ * Example: (row) => `device:${row.id}`
3400
+ */
3401
+ piiEntity?: string | ((row: T) => string | undefined);
3397
3402
  }
3398
3403
  /**
3399
3404
  * DeviceMetaCell
@@ -3420,7 +3425,7 @@ interface DeviceMetaCellProps<T = unknown> extends CellComponentProps<T> {
3420
3425
  * }
3421
3426
  * ```
3422
3427
  */
3423
- declare function DeviceMetaCell<T = unknown>({ row, context, manufacturer, model, deviceType, logoUrl, layout, size, href, LinkComponent, linkVariant, showDeviceTypeIcon, showLogo, emphasis, align, className, }: DeviceMetaCellProps<T>): react_jsx_runtime.JSX.Element;
3428
+ declare function DeviceMetaCell<T = unknown>({ row, context, manufacturer, model, deviceType, logoUrl, layout, size, href, LinkComponent, linkVariant, showDeviceTypeIcon, showLogo, emphasis, align, className, piiEntity, }: DeviceMetaCellProps<T>): react_jsx_runtime.JSX.Element;
3424
3429
 
3425
3430
  interface DeviceStateCellProps<T = any> extends Omit<CellComponentProps<T>, "value"> {
3426
3431
  /** The device state value */
@@ -3894,6 +3899,11 @@ interface DeviceMetaDisplayProps {
3894
3899
  isLoading?: boolean;
3895
3900
  /** Additional classes */
3896
3901
  className?: string;
3902
+ /**
3903
+ * Entity identifier for PII masking (e.g., "device:device_abc123")
3904
+ * When provided, adds data-pii-* attributes for the Curtain extension
3905
+ */
3906
+ piiEntity?: string;
3897
3907
  }
3898
3908
  /**
3899
3909
  * DeviceMetaDisplay
@@ -3931,7 +3941,7 @@ interface DeviceMetaDisplayProps {
3931
3941
  * />
3932
3942
  * ```
3933
3943
  */
3934
- declare function DeviceMetaDisplay({ manufacturer, model, deviceType, deviceTypeIconName, logoUrl, layout, size, href, LinkComponent, linkVariant, showDeviceTypeIcon, showLogo, emphasis, isLoading, className, }: DeviceMetaDisplayProps): react_jsx_runtime.JSX.Element;
3944
+ declare function DeviceMetaDisplay({ manufacturer, model, deviceType, deviceTypeIconName, logoUrl, layout, size, href, LinkComponent, linkVariant, showDeviceTypeIcon, showLogo, emphasis, isLoading, className, piiEntity, }: DeviceMetaDisplayProps): react_jsx_runtime.JSX.Element;
3935
3945
 
3936
3946
  interface DeviceStateBadgeProps extends Omit<BadgeProps, "variant" | "children"> {
3937
3947
  /** The device state to display */