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.
- package/dist/canvas/editor.js +1 -1
- package/dist/canvas/index.d.ts +22 -1
- package/dist/canvas/index.js.map +1 -1
- package/dist/canvas/parser.d.ts +24 -1
- package/dist/canvas/parser.js +3 -1
- package/dist/{chunk-GBKYTBEE.js → chunk-2MAQPUCU.js} +111 -2
- package/dist/chunk-2MAQPUCU.js.map +1 -0
- package/dist/{chunk-IPCTMTJE.js → chunk-XEXMGSTU.js} +2 -2
- package/dist/{chunk-IPCTMTJE.js.map → chunk-XEXMGSTU.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/nextjs/plugin.js +1 -1
- package/dist/nextjs.cjs +1 -1
- package/dist/nextjs.cjs.map +1 -1
- package/dist/nextjs.js +1 -1
- package/package.json +27 -25
- package/dist/chunk-GBKYTBEE.js.map +0 -1
package/dist/canvas/editor.js
CHANGED
package/dist/canvas/index.d.ts
CHANGED
|
@@ -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 };
|