@harnessio/ui 1.4.0 → 1.4.1

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 CHANGED
@@ -737,6 +737,7 @@ declare interface CardEntry {
737
737
  status: CardStatus;
738
738
  stateSnapshot: Record<string, unknown>;
739
739
  mountGeneration?: number;
740
+ summary?: string;
740
741
  }
741
742
 
742
743
  declare interface CardImageProps extends ImgHTMLAttributes<HTMLImageElement> {
@@ -1900,6 +1901,10 @@ declare interface ContainerHeaderProps {
1900
1901
  className?: string;
1901
1902
  /** Applied to the description text — e.g. to clamp it to a fixed number of lines. */
1902
1903
  descriptionClassName?: string;
1904
+ /** Optional wrapper for the title element (e.g. DrawerPrimitive.Title asChild). */
1905
+ renderTitle?: (title: ReactElement) => ReactNode;
1906
+ /** Optional wrapper for the description element (e.g. DrawerPrimitive.Description asChild). */
1907
+ renderDescription?: (description: ReactElement) => ReactNode;
1903
1908
  }
1904
1909
 
1905
1910
  declare function Content({ children, className }: {
@@ -2967,6 +2972,7 @@ declare interface EngineContextValue {
2967
2972
  drawerState: DrawerState | null;
2968
2973
  pendingReactivation: string | null;
2969
2974
  complete: (stepId: string, statePatch?: Record<string, unknown>, nextStepId?: string) => void;
2975
+ setSummary: (stepId: string, summary: string) => void;
2970
2976
  error: (stepId: string, nextStepId?: string) => void;
2971
2977
  skip: (stepId: string, nextStepId?: string) => void;
2972
2978
  openDrawer: (id: string, props?: Record<string, unknown>) => Promise<DrawerResult>;
@@ -3272,6 +3278,7 @@ declare interface FlowCardContext<TState = Record<string, unknown>> {
3272
3278
  state: TState;
3273
3279
  status: CardStatus;
3274
3280
  complete: (statePatch?: Partial<TState>, nextStepId?: string) => void;
3281
+ setSummary: (summary: string) => void;
3275
3282
  error: (nextStepId?: string) => void;
3276
3283
  skip: (nextStepId?: string) => void;
3277
3284
  openDrawer: (drawerId: string, props?: Record<string, unknown>) => Promise<DrawerResult>;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { i as s } from "./index-DlSn4SRO.js";
2
- import { i as e } from "./index-BQBqvWjD.js";
2
+ import { i as e } from "./index-DJBxKrPy.js";
3
3
  import { i as a } from "./index-CiTlyv-6.js";
4
4
  import { i as m } from "./index-C4bDY5-3.js";
5
5
  import { i as f } from "./index-DchZrYRY.js";