tempo-sdk 0.0.27 → 0.0.28

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  parseCanvasFile
3
- } from "../chunk-GBKYTBEE.js";
3
+ } from "../chunk-2MAQPUCU.js";
4
4
 
5
5
  // canvas/editor.ts
6
6
  import { parseSync } from "oxc-parser";
@@ -236,12 +236,33 @@ interface StoryboardLayout {
236
236
  zIndex?: number;
237
237
  intrinsicSizing?: "root-element";
238
238
  }
239
+ interface StoryboardVrtIgnoreRegion {
240
+ x: number;
241
+ y: number;
242
+ w: number;
243
+ h: number;
244
+ }
245
+ /**
246
+ * Opt-in visual-regression tracking config (TEM-1775). The `vrt` prop is a
247
+ * static, build-time mark read by AST enumeration (`parseCanvasFile`) — it
248
+ * has no runtime behavior. Values must be literals to be tracked.
249
+ */
250
+ interface StoryboardVrtConfig {
251
+ /** Per-storyboard pixelmatch threshold override (0..0.5). */
252
+ threshold?: number;
253
+ /** Temporarily untracked without losing config. */
254
+ skip?: boolean;
255
+ /** Regions (storyboard-local px) excluded from comparison. */
256
+ ignore?: StoryboardVrtIgnoreRegion[];
257
+ }
239
258
  declare function Storyboard<Props extends object = object>({ id, name, component, layout, props, }: {
240
259
  id: string;
241
260
  component: ComponentType<Props>;
242
261
  layout: StoryboardLayout;
243
262
  name?: string;
244
263
  props?: Props;
264
+ /** Opt this storyboard into visual regression testing (static mark). */
265
+ vrt?: boolean | StoryboardVrtConfig;
245
266
  }): react_jsx_runtime.JSX.Element;
246
267
  declare function LegacyStoryboardV1({ id, storyboard, }: {
247
268
  id: string;
@@ -271,4 +292,4 @@ declare function StoryboardSlot({ children, id, kind, layout, name, route, filep
271
292
  src?: string;
272
293
  }): react_jsx_runtime.JSX.Element | null;
273
294
 
274
- export { CANVAS_HOST_DOCUMENT_TITLE, Canvas, CanvasContext, CanvasHost, type CanvasHostCaptureResult, CanvasHostContractError, type CanvasHostModule, type CanvasHostRecoveryEvent, type CanvasHostRecoveryFeed, type CanvasHostRuntime, type CanvasHostWatch, CanvasImportBoundary, HtmlStoryboard, LegacyStoryboardV1, RouteStoryboard, Storyboard, type StoryboardLayout, StoryboardSlot, TEMPO_INTERACT_FRAME_NAME, buildRenderContentFiberSelector, buildRenderContentSelector, buildRenderSelector, canvasHostCapability, captureStoryboardCombined, captureStoryboardHtml, captureStoryboardImage, getCanvasHostRecoveryFeed, getCanvasHostRuntime, getCanvasStoryboardRenderId, getOptionalCanvasHostRuntime, isTempoInteractFrameName, stripRenderContentWrapperAttributes, stripRenderContentWrapperFromCombinedCapture, useActiveState, watchStoryboardCombined };
295
+ export { CANVAS_HOST_DOCUMENT_TITLE, Canvas, CanvasContext, CanvasHost, type CanvasHostCaptureResult, CanvasHostContractError, type CanvasHostModule, type CanvasHostRecoveryEvent, type CanvasHostRecoveryFeed, type CanvasHostRuntime, type CanvasHostWatch, CanvasImportBoundary, HtmlStoryboard, LegacyStoryboardV1, RouteStoryboard, Storyboard, type StoryboardLayout, StoryboardSlot, type StoryboardVrtConfig, type StoryboardVrtIgnoreRegion, TEMPO_INTERACT_FRAME_NAME, buildRenderContentFiberSelector, buildRenderContentSelector, buildRenderSelector, canvasHostCapability, captureStoryboardCombined, captureStoryboardHtml, captureStoryboardImage, getCanvasHostRecoveryFeed, getCanvasHostRuntime, getCanvasStoryboardRenderId, getOptionalCanvasHostRuntime, isTempoInteractFrameName, stripRenderContentWrapperAttributes, stripRenderContentWrapperFromCombinedCapture, useActiveState, watchStoryboardCombined };