@immense/vue-pom-generator 1.0.92 → 1.0.93

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.mjs","sources":["../../class-generation/callout.ts","../../class-generation/pointer.ts","../../class-generation/base-page.ts"],"sourcesContent":["import type { PwLocator, PwPage } from \"./playwright-types\";\n\nexport const POINTER_CALLOUT_IDS = {\n\tannotation: \"__pw_pointer_callout__\",\n\tarrow: \"__pw_pointer_callout_arrow__\",\n\tcontent: \"__pw_pointer_callout_content__\",\n} as const;\n\nexport const POINTER_CALLOUT_THEME = {\n\tarrowPadding: 10,\n\tarrowSize: 14,\n\tavoidPadding: 12,\n\tbackground: \"#dc2626\",\n\tborder: \"0px solid transparent\",\n\tborderRadius: 0,\n\tboxShadow: \"0 20px 44px rgba(127, 29, 29, 0.32)\",\n\tcharsPerLine: 28,\n\tgap: 18,\n\tmargin: 18,\n\tmaxWidth: 320,\n\tminHeight: 52,\n\tminWidth: 180,\n\ttextColor: \"#f8fafc\",\n} as const;\n\nexport type ElementTarget = string | PwLocator;\n\nexport interface CalloutTargetBox {\n\tx: number;\n\ty: number;\n\twidth: number;\n\theight: number;\n}\n\nexport interface ShowCalloutOptions {\n\tskipScroll?: boolean;\n\ttargetBox?: CalloutTargetBox;\n}\n\nexport interface CalloutRenderRequest {\n\toverlayIds: string[];\n\ttarget: ElementTarget;\n\ttargetBox: CalloutTargetBox;\n\ttext: string;\n}\n\nexport interface CalloutRenderer {\n\treadonly overlayIds?: string[];\n\thide: (page: PwPage) => Promise<void>;\n\tshow: (page: PwPage, request: CalloutRenderRequest) => Promise<void>;\n}\n\nexport interface CalloutOptions {\n\textraOverlayIds?: string[];\n\trenderer?: CalloutRenderer;\n}\n\nexport function measureCalloutBubble(text: string): { bubbleHeight: number; bubbleWidth: number } {\n\treturn {\n\t\tbubbleWidth: Math.min(\n\t\t\tPOINTER_CALLOUT_THEME.maxWidth,\n\t\t\tMath.max(\n\t\t\t\tPOINTER_CALLOUT_THEME.minWidth,\n\t\t\t\tMath.min(text.length, POINTER_CALLOUT_THEME.charsPerLine) * 7 + 44,\n\t\t\t),\n\t\t),\n\t\tbubbleHeight: Math.max(\n\t\t\tPOINTER_CALLOUT_THEME.minHeight,\n\t\t\tMath.ceil(Math.max(text.length, 1) / POINTER_CALLOUT_THEME.charsPerLine) * 20 + 24,\n\t\t),\n\t};\n}\n\nasync function __pw_ensure_simple_callout__(page: PwPage): Promise<void> {\n\tawait page.evaluate(\n\t\t({\n\t\t\tannotationId,\n\t\t\tcontentId,\n\t\t\tbackground,\n\t\t\tborder,\n\t\t\tborderRadius,\n\t\t\tboxShadow,\n\t\t\ttextColor,\n\t\t}: {\n\t\t\tannotationId: string;\n\t\t\tcontentId: string;\n\t\t\tbackground: string;\n\t\t\tborder: string;\n\t\t\tborderRadius: number;\n\t\t\tboxShadow: string;\n\t\t\ttextColor: string;\n\t\t}) => {\n\t\t\tconst ensureElement = <T extends HTMLElement>(id: string, tagName: keyof HTMLElementTagNameMap): T => {\n\t\t\t\tconst existing = document.getElementById(id);\n\t\t\t\tif (existing instanceof HTMLElement) {\n\t\t\t\t\treturn existing as T;\n\t\t\t\t}\n\t\t\t\tconst created = document.createElement(tagName);\n\t\t\t\tcreated.id = id;\n\t\t\t\treturn created as T;\n\t\t\t};\n\n\t\t\tconst annotation = ensureElement<HTMLDivElement>(annotationId, \"div\");\n\t\t\tannotation.setAttribute(\n\t\t\t\t\"style\",\n\t\t\t\t[\n\t\t\t\t\t\"position:fixed\",\n\t\t\t\t\t\"z-index:2147483647\",\n\t\t\t\t\t\"pointer-events:none\",\n\t\t\t\t\t\"left:18px\",\n\t\t\t\t\t\"top:18px\",\n\t\t\t\t\t\"width:220px\",\n\t\t\t\t\t\"box-sizing:border-box\",\n\t\t\t\t\t\"padding:12px 16px\",\n\t\t\t\t\t\"border:\" + border,\n\t\t\t\t\t\"border-radius:\" + borderRadius + \"px\",\n\t\t\t\t\t\"background:\" + background,\n\t\t\t\t\t\"color:\" + textColor,\n\t\t\t\t\t\"font:600 13px/1.45 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif\",\n\t\t\t\t\t\"letter-spacing:0.01em\",\n\t\t\t\t\t\"box-shadow:\" + boxShadow,\n\t\t\t\t\t\"opacity:0\",\n\t\t\t\t\t\"white-space:normal\",\n\t\t\t\t\t\"transform:translate3d(0,0,0)\",\n\t\t\t\t\t\"transform-origin:center\",\n\t\t\t\t].join(\";\"),\n\t\t\t);\n\n\t\t\tconst content = ensureElement<HTMLDivElement>(contentId, \"div\");\n\t\t\tcontent.setAttribute(\"style\", \"position:relative;z-index:1;\");\n\n\t\t\tif (!annotation.isConnected) {\n\t\t\t\tdocument.body.appendChild(annotation);\n\t\t\t}\n\t\t\tif (content.parentElement !== annotation) {\n\t\t\t\tannotation.appendChild(content);\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tannotationId: POINTER_CALLOUT_IDS.annotation,\n\t\t\tcontentId: POINTER_CALLOUT_IDS.content,\n\t\t\tbackground: POINTER_CALLOUT_THEME.background,\n\t\t\tborder: POINTER_CALLOUT_THEME.border,\n\t\t\tborderRadius: POINTER_CALLOUT_THEME.borderRadius,\n\t\t\tboxShadow: POINTER_CALLOUT_THEME.boxShadow,\n\t\t\ttextColor: POINTER_CALLOUT_THEME.textColor,\n\t\t},\n\t);\n}\n\nconst __pw_default_callout_renderer__: CalloutRenderer = {\n\toverlayIds: [\n\t\tPOINTER_CALLOUT_IDS.annotation,\n\t\tPOINTER_CALLOUT_IDS.content,\n\t\tPOINTER_CALLOUT_IDS.arrow,\n\t],\n\tasync hide(page) {\n\t\tawait page.evaluate(\n\t\t\t({ annotationId, contentId, arrowId }: { annotationId: string; contentId: string; arrowId: string }) => {\n\t\t\t\tconst annotation = document.getElementById(annotationId) as HTMLDivElement | null;\n\t\t\t\tconst content = document.getElementById(contentId) as HTMLDivElement | null;\n\t\t\t\tconst arrow = document.getElementById(arrowId) as HTMLDivElement | null;\n\t\t\t\tif (!annotation) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (content) {\n\t\t\t\t\tcontent.textContent = \"\";\n\t\t\t\t}\n\n\t\t\t\tannotation.style.transition = \"opacity 120ms ease-in-out, transform 160ms ease-in-out\";\n\t\t\t\tannotation.style.opacity = \"0\";\n\t\t\t\tannotation.style.transform = \"scale(0.96)\";\n\t\t\t\tannotation.setAttribute(\"data-placement\", \"hidden\");\n\t\t\t\tif (arrow) {\n\t\t\t\t\tarrow.style.opacity = \"0\";\n\t\t\t\t\tarrow.style.left = \"\";\n\t\t\t\t\tarrow.style.top = \"\";\n\t\t\t\t\tarrow.style.right = \"\";\n\t\t\t\t\tarrow.style.bottom = \"\";\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tannotationId: POINTER_CALLOUT_IDS.annotation,\n\t\t\t\tcontentId: POINTER_CALLOUT_IDS.content,\n\t\t\t\tarrowId: POINTER_CALLOUT_IDS.arrow,\n\t\t\t},\n\t\t);\n\t},\n\tasync show(page, request) {\n\t\tawait __pw_ensure_simple_callout__(page);\n\t\tconst { bubbleHeight, bubbleWidth } = measureCalloutBubble(request.text);\n\t\tawait page.evaluate(\n\t\t\t({\n\t\t\t\tannotationId,\n\t\t\t\tcontentId,\n\t\t\t\tarrowId,\n\t\t\t\tbubbleHeight,\n\t\t\t\tbubbleWidth,\n\t\t\t\tborder,\n\t\t\t\tborderRadius,\n\t\t\t\tbackground,\n\t\t\t\tgap,\n\t\t\t\ttext,\n\t\t\t\ttargetBox,\n\t\t\t\tmargin,\n\t\t\t}: {\n\t\t\t\tannotationId: string;\n\t\t\t\tcontentId: string;\n\t\t\t\tarrowId: string;\n\t\t\t\tbubbleHeight: number;\n\t\t\t\tbubbleWidth: number;\n\t\t\t\tborder: string;\n\t\t\t\tborderRadius: number;\n\t\t\t\tbackground: string;\n\t\t\t\tgap: number;\n\t\t\t\ttext: string;\n\t\t\t\ttargetBox: CalloutTargetBox;\n\t\t\t\tmargin: number;\n\t\t\t}) => {\n\t\t\t\tconst annotation = document.getElementById(annotationId) as HTMLDivElement | null;\n\t\t\t\tconst content = document.getElementById(contentId) as HTMLDivElement | null;\n\t\t\t\tconst arrow = document.getElementById(arrowId) as HTMLDivElement | null;\n\t\t\t\tif (!annotation || !content) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tconst viewportWidth = Math.max(window.innerWidth || 0, document.documentElement.clientWidth, 1280);\n\t\t\t\tconst viewportHeight = Math.max(window.innerHeight || 0, document.documentElement.clientHeight, 720);\n\t\t\t\tconst clamp = (value: number, min: number, max: number) => Math.min(max, Math.max(min, value));\n\t\t\t\tconst targetCenterX = targetBox.x + targetBox.width / 2;\n\t\t\t\tconst targetCenterY = targetBox.y + targetBox.height / 2;\n\t\t\t\tconst maxX = Math.max(margin, viewportWidth - bubbleWidth - margin);\n\t\t\t\tconst maxY = Math.max(margin, viewportHeight - bubbleHeight - margin);\n\t\t\t\tconst candidates = [\n\t\t\t\t\t{\n\t\t\t\t\t\tplacement: \"right\",\n\t\t\t\t\t\tx: targetBox.x + targetBox.width + gap,\n\t\t\t\t\t\ty: targetCenterY - bubbleHeight / 2,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tplacement: \"bottom\",\n\t\t\t\t\t\tx: targetCenterX - bubbleWidth / 2,\n\t\t\t\t\t\ty: targetBox.y + targetBox.height + gap,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tplacement: \"left\",\n\t\t\t\t\t\tx: targetBox.x - bubbleWidth - gap,\n\t\t\t\t\t\ty: targetCenterY - bubbleHeight / 2,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tplacement: \"top\",\n\t\t\t\t\t\tx: targetCenterX - bubbleWidth / 2,\n\t\t\t\t\t\ty: targetBox.y - bubbleHeight - gap,\n\t\t\t\t\t},\n\t\t\t\t] as const;\n\n\t\t\t\tlet placement = \"center\";\n\t\t\t\tlet resolvedX = clamp(targetCenterX - bubbleWidth / 2, margin, maxX);\n\t\t\t\tlet resolvedY = clamp(targetCenterY - bubbleHeight / 2, margin, maxY);\n\n\t\t\t\tfor (const candidate of candidates) {\n\t\t\t\t\tconst clampedX = clamp(candidate.x, margin, maxX);\n\t\t\t\t\tconst clampedY = clamp(candidate.y, margin, maxY);\n\t\t\t\t\tconst fitsWithoutShift = Math.abs(clampedX - candidate.x) < 1 && Math.abs(clampedY - candidate.y) < 1;\n\t\t\t\t\tif (fitsWithoutShift) {\n\t\t\t\t\t\tplacement = candidate.placement;\n\t\t\t\t\t\tresolvedX = candidate.x;\n\t\t\t\t\t\tresolvedY = candidate.y;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tcontent.textContent = text;\n\t\t\t\tannotation.style.width = `${bubbleWidth}px`;\n\t\t\t\tannotation.style.minHeight = `${bubbleHeight}px`;\n\t\t\t\tannotation.style.background = background;\n\t\t\t\tannotation.style.border = border;\n\t\t\t\tannotation.style.borderRadius = `${borderRadius}px`;\n\t\t\t\tannotation.style.transition = \"opacity 120ms ease-in-out, transform 160ms ease-in-out\";\n\t\t\t\tannotation.style.willChange = \"left, top, opacity, transform\";\n\t\t\t\tannotation.style.left = `${Math.round(resolvedX)}px`;\n\t\t\t\tannotation.style.top = `${Math.round(resolvedY)}px`;\n\t\t\t\tannotation.style.opacity = \"1\";\n\t\t\t\tannotation.style.transform = \"scale(1)\";\n\t\t\t\tannotation.setAttribute(\"data-placement\", placement);\n\t\t\t\tif (arrow) {\n\t\t\t\t\tarrow.style.opacity = \"0\";\n\t\t\t\t\tarrow.style.left = \"\";\n\t\t\t\t\tarrow.style.top = \"\";\n\t\t\t\t\tarrow.style.right = \"\";\n\t\t\t\t\tarrow.style.bottom = \"\";\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tannotationId: POINTER_CALLOUT_IDS.annotation,\n\t\t\t\tcontentId: POINTER_CALLOUT_IDS.content,\n\t\t\t\tarrowId: POINTER_CALLOUT_IDS.arrow,\n\t\t\t\tbubbleHeight,\n\t\t\t\tbubbleWidth,\n\t\t\t\tborder: POINTER_CALLOUT_THEME.border,\n\t\t\t\tborderRadius: POINTER_CALLOUT_THEME.borderRadius,\n\t\t\t\tbackground: POINTER_CALLOUT_THEME.background,\n\t\t\t\tgap: POINTER_CALLOUT_THEME.gap,\n\t\t\t\ttext: request.text,\n\t\t\t\ttargetBox: request.targetBox,\n\t\t\t\tmargin: POINTER_CALLOUT_THEME.margin,\n\t\t\t},\n\t\t);\n\t},\n};\n\nexport const simpleCalloutRenderer = __pw_default_callout_renderer__;\n\nexport class Callout {\n\tprivate readonly page: PwPage;\n\tprivate readonly extraOverlayIds: string[];\n\tprivate readonly renderer: CalloutRenderer;\n\n\tpublic constructor(page: PwPage, options?: CalloutOptions) {\n\t\tthis.page = page;\n\t\tthis.extraOverlayIds = options?.extraOverlayIds ?? [];\n\t\tthis.renderer = options?.renderer ?? __pw_default_callout_renderer__;\n\t}\n\n\tprivate toLocator(target: ElementTarget): PwLocator {\n\t\treturn typeof target === \"string\" ? this.page.locator(target) : target;\n\t}\n\n\tpublic async hide(): Promise<void> {\n\t\tawait this.renderer.hide(this.page);\n\t}\n\n\tpublic async showForElement(\n\t\ttarget: ElementTarget,\n\t\tannotationText: string,\n\t\toptions?: ShowCalloutOptions,\n\t): Promise<void> {\n\t\tconst text = annotationText.trim();\n\t\tif (!text) {\n\t\t\tawait this.hide();\n\t\t\treturn;\n\t\t}\n\n\t\tconst locator = this.toLocator(target);\n\t\tif (!options?.skipScroll) {\n\t\t\ttry {\n\t\t\t\tawait locator.first().scrollIntoViewIfNeeded();\n\t\t\t}\n\t\t\tcatch {\n\t\t\t\t// Element may detach during navigation; the bounding-box lookup will surface the failure.\n\t\t\t}\n\t\t}\n\n\t\tconst targetBox = options?.targetBox ?? await locator.first().boundingBox();\n\t\tif (!targetBox) {\n\t\t\tthrow new Error(\"Callout.showForElement: target has no bounding box\");\n\t\t}\n\n\t\tconst overlayIds = Array.from(new Set([\n\t\t\t...(this.renderer.overlayIds ?? []),\n\t\t\t...this.extraOverlayIds,\n\t\t]));\n\n\t\tawait this.renderer.show(this.page, {\n\t\t\toverlayIds,\n\t\t\ttarget,\n\t\t\ttargetBox: {\n\t\t\t\theight: targetBox.height,\n\t\t\t\twidth: targetBox.width,\n\t\t\t\tx: targetBox.x,\n\t\t\t\ty: targetBox.y,\n\t\t\t},\n\t\t\ttext,\n\t\t});\n\t}\n}\n","import { Callout, type CalloutOptions, type ElementTarget } from \"./callout\";\nimport type { PwLocator, PwPage } from \"./playwright-types\";\n\nconst __PW_POINTER_ID__ = \"__pw_pointer__\";\nconst __PW_EDITABLE_DESCENDANT_SELECTOR__\n\t= \"input, textarea, select, [contenteditable=''], [contenteditable='true'], [contenteditable]:not([contenteditable='false'])\";\n\n// A minimal 16×24 arrow pointer encoded as a base64 PNG.\nconst __PW_POINTER_PNG__ =\n\t\"data:image/png;base64,\"\n\t+ \"iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAQAAACGG/bgAAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAA\"\n\t+ \"HsYAAB7GAZEt8iwAAAAHdElNRQfgAwgMIwdxU/i7AAABZklEQVQ4y43TsU4UURSH8W+XmYwkS2I0\"\n\t+ \"9CRKpKGhsvIJjG9giQmliHFZlkUIGnEF7KTiCagpsYHWhoTQaiUUxLixYZb5KAAZZhbunu7O/PKf\"\n\t+ \"e+fcA+/pqwb4DuximEqXhT4iI8dMpBWEsWsuGYdpZFttiLSSgTvhZ1W/SvfO1CvYdV1kPghV68a3\"\n\t+ \"0zzUWZH5pBqEui7dnqlFmLoq0gxC1XfGZdoLal2kea8ahLoqKXNAJQBT2yJzwUTVt0bS6ANqy1ga\"\n\t+ \"VCEq/oVTtjji4hQVhhnlYBH4WIJV9vlkXLm+10R8oJb79Jl1j9UdazJRGpkrmNkSF9SOz2T71s7M\"\n\t+ \"SIfD2lmmfjGSRz3hK8l4w1P+bah/HJLN0sys2JSMZQB+jKo6KSc8vLlLn5ikzF4268Wg2+pPOWW6\"\n\t+ \"ONcpr3PrXy9VfS473M/D7H+TLmrqsXtOGctvxvMv2oVNP+Av0uHbzbxyJaywyUjx8TlnPY2YxqkD\"\n\t+ \"dAAAAABJRU5ErkJggg==\";\n\nconst __pw_pointer_positions__ = new WeakMap<object, { x: number; y: number }>();\n\nfunction __pw_get_pointer_pos__(page: PwPage): { x: number; y: number } {\n\treturn __pw_pointer_positions__.get(page as object) ?? { x: 0, y: 0 };\n}\n\nfunction __pw_set_pointer_pos__(page: PwPage, x: number, y: number): void {\n\t__pw_pointer_positions__.set(page as object, { x, y });\n}\n\nexport interface PointerMoveRequest {\n\tanimate: boolean;\n\tdurationMilliseconds: number;\n\tendX: number;\n\tendY: number;\n\tstartX: number;\n\tstartY: number;\n\ttransitionStyle: string;\n}\n\nexport interface PointerPressRequest {\n\tdurationMilliseconds: number;\n}\n\nexport interface PointerRenderer {\n\treadonly overlayIds?: string[];\n\tensure: (page: PwPage) => Promise<void>;\n\tmove: (page: PwPage, request: PointerMoveRequest) => Promise<void>;\n\tpress: (page: PwPage, request: PointerPressRequest) => Promise<void>;\n}\n\n// ---------------------------------------------------------------------------\n// Animation options\n// ---------------------------------------------------------------------------\n\nexport interface PlaywrightAnimationOptions {\n\t/**\n\t * Set to false to disable all animations and delays. Clicks/fills still happen.\n\t * Default: false\n\t */\n\tenabled?: boolean;\n\n\t/**\n\t * Extra delay (ms) added before every action on top of per-action delays.\n\t * Default: 0\n\t */\n\textraDelayMs?: number;\n\n\t/** Visual pointer-movement configuration. */\n\tpointer?: {\n\t\t/**\n\t\t * Duration of the CSS-transition pointer glide in ms.\n\t\t * Set to 0 to teleport the pointer without animation.\n\t\t * Default: 250\n\t\t */\n\t\tdurationMilliseconds?: number;\n\n\t\t/**\n\t\t * CSS transition timing function for the pointer glide.\n\t\t * Default: \"ease-in-out\"\n\t\t */\n\t\ttransitionStyle?: \"linear\" | \"ease\" | \"ease-in\" | \"ease-out\" | \"ease-in-out\";\n\n\t\t/**\n\t\t * Delay (ms) passed to element.click({ delay }) for a realistic press.\n\t\t * Default: 0\n\t\t */\n\t\tclickDelayMilliseconds?: number;\n\t};\n\n\t/** Keyboard / typing configuration. */\n\tkeyboard?: {\n\t\t/**\n\t\t * Delay between keystrokes in ms – makes typing visible on screen / in video.\n\t\t * Default: 100\n\t\t */\n\t\ttypeDelayMilliseconds?: number;\n\t};\n}\n\nlet animationOptions: PlaywrightAnimationOptions = {\n\tenabled: false,\n\textraDelayMs: 0,\n\tpointer: { durationMilliseconds: 250, transitionStyle: \"ease-in-out\", clickDelayMilliseconds: 0 },\n\tkeyboard: { typeDelayMilliseconds: 100 },\n};\n\nexport function setPlaywrightAnimationOptions(options: PlaywrightAnimationOptions): void {\n\tanimationOptions = {\n\t\tenabled: options?.enabled ?? false,\n\t\textraDelayMs: options?.extraDelayMs ?? 0,\n\t\tpointer: {\n\t\t\tdurationMilliseconds: options?.pointer?.durationMilliseconds ?? 250,\n\t\t\ttransitionStyle: options?.pointer?.transitionStyle ?? \"ease-in-out\",\n\t\t\tclickDelayMilliseconds: options?.pointer?.clickDelayMilliseconds ?? 0,\n\t\t},\n\t\tkeyboard: {\n\t\t\ttypeDelayMilliseconds: options?.keyboard?.typeDelayMilliseconds ?? 100,\n\t\t},\n\t};\n}\n\nexport interface AfterPointerClickInfo {\n\t/** Resolved test id from the clicked element (if present). */\n\ttestId?: string;\n\n\t/**\n\t * Whether the click should be considered \"instrumented\".\n\t * BasePage uses this flag to decide whether to wait for the injected click event.\n\t */\n\tinstrumented: boolean;\n}\n\nexport type AfterPointerClick = (info: AfterPointerClickInfo) => void | Promise<void>;\n\nconst __pw_default_pointer_renderer__: PointerRenderer = {\n\toverlayIds: [__PW_POINTER_ID__],\n\tasync ensure(page) {\n\t\tconst exists = await page.evaluate(\n\t\t\t({ pointerId }: { pointerId: string }) => document.getElementById(pointerId) != null,\n\t\t\t{ pointerId: __PW_POINTER_ID__ },\n\t\t);\n\t\tif (exists) return;\n\n\t\t__pw_set_pointer_pos__(page, 0, 0);\n\n\t\tawait page.evaluate(\n\t\t\t({ id, src }: { id: string; src: string }) => {\n\t\t\t\tconst img = document.createElement(\"img\");\n\t\t\t\timg.setAttribute(\"src\", src);\n\t\t\t\timg.setAttribute(\"id\", id);\n\t\t\t\timg.setAttribute(\n\t\t\t\t\t\"style\",\n\t\t\t\t\t\"position:fixed;z-index:2147483647;pointer-events:none;left:0;top:0;transform-origin:0 0;\",\n\t\t\t\t);\n\t\t\t\tdocument.body.appendChild(img);\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: __PW_POINTER_ID__,\n\t\t\t\tsrc: __PW_POINTER_PNG__,\n\t\t\t},\n\t\t);\n\t},\n\tasync move(page, request) {\n\t\tawait page.evaluate(\n\t\t\t({\n\t\t\t\tanimate,\n\t\t\t\tdur,\n\t\t\t\tex,\n\t\t\t\tey,\n\t\t\t\tid,\n\t\t\t\tstyle,\n\t\t\t\tsx,\n\t\t\t\tsy,\n\t\t\t}: {\n\t\t\t\tanimate: boolean;\n\t\t\t\tdur: number;\n\t\t\t\tex: number;\n\t\t\t\tey: number;\n\t\t\t\tid: string;\n\t\t\t\tstyle: string;\n\t\t\t\tsx: number;\n\t\t\t\tsy: number;\n\t\t\t}) => {\n\t\t\t\tconst el = document.getElementById(id);\n\t\t\t\tif (!el) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tel.style.transition = \"\";\n\t\t\t\tel.style.willChange = \"left, top\";\n\t\t\t\tel.style.left = `${animate ? sx : ex}px`;\n\t\t\t\tel.style.top = `${animate ? sy : ey}px`;\n\n\t\t\t\tif (animate) {\n\t\t\t\t\tvoid el.offsetWidth;\n\t\t\t\t\tel.style.transition = `left ${dur}ms ${style}, top ${dur}ms ${style}`;\n\t\t\t\t\tel.style.left = `${ex}px`;\n\t\t\t\t\tel.style.top = `${ey}px`;\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tanimate: request.animate,\n\t\t\t\tdur: request.durationMilliseconds,\n\t\t\t\tex: request.endX,\n\t\t\t\tey: request.endY,\n\t\t\t\tid: __PW_POINTER_ID__,\n\t\t\t\tstyle: request.transitionStyle,\n\t\t\t\tsx: request.startX,\n\t\t\t\tsy: request.startY,\n\t\t\t},\n\t\t);\n\t},\n\tasync press(page, request) {\n\t\tawait page.evaluate(\n\t\t\t({ id, dur }: { id: string; dur: number }) => {\n\t\t\t\tconst el = document.getElementById(id);\n\t\t\t\tif (el) {\n\t\t\t\t\tel.style.transition = `transform ${dur}ms`;\n\t\t\t\t\tel.style.transform = \"scale(0.6)\";\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\tel.style.transition = `transform ${dur}ms`;\n\t\t\t\t\t\tel.style.transform = \"scale(1)\";\n\t\t\t\t\t}, dur);\n\t\t\t\t}\n\t\t\t},\n\t\t\t{ id: __PW_POINTER_ID__, dur: request.durationMilliseconds },\n\t\t);\n\t},\n};\n\n// ---------------------------------------------------------------------------\n// Pointer class\n// ---------------------------------------------------------------------------\n\nexport class Pointer {\n\tprivate readonly page: PwPage;\n\tprivate readonly testIdAttribute: string;\n\tprivate readonly callout: Callout;\n\tprivate readonly renderer: PointerRenderer;\n\n\tpublic constructor(page: PwPage, testIdAttribute: string, callout?: Callout, renderer?: PointerRenderer) {\n\t\tthis.page = page;\n\t\tthis.testIdAttribute = (testIdAttribute ?? \"data-testid\").trim() || \"data-testid\";\n\t\tthis.renderer = renderer ?? __pw_default_pointer_renderer__;\n\t\tconst calloutOptions: CalloutOptions = {\n\t\t\textraOverlayIds: this.renderer.overlayIds,\n\t\t};\n\t\tthis.callout = callout ?? new Callout(page, calloutOptions);\n\t}\n\n\tprivate toLocator(target: ElementTarget): PwLocator {\n\t\treturn typeof target === \"string\" ? this.page.locator(target) : target;\n\t}\n\n\tprivate async getTestId(locator: PwLocator): Promise<string | undefined> {\n\t\tconst raw = await locator.first().getAttribute(this.testIdAttribute);\n\t\tconst trimmed = (raw ?? \"\").trim();\n\t\treturn trimmed || undefined;\n\t}\n\n\t/**\n\t * Playwright waits for an element's box to be stable, but a component library can\n\t * still suppress pointer handlers while an ancestor overlay is finishing a CSS\n\t * transition. Wait for finite animations on the target's ancestor chain so the\n\t * generated action observes the same ready state a user sees. Infinite decorative\n\t * animations are ignored, and a stuck finite animation fails within the shared 5s\n\t * interaction budget instead of encouraging consumer-side sleeps.\n\t */\n\tprivate async waitForFiniteAncestorAnimations(locator: PwLocator): Promise<void> {\n\t\tawait locator.first().evaluate(async (element) => {\n\t\t\tconst timeoutMs = 5_000;\n\t\t\tconst animations = new Set<Animation>();\n\t\t\tfor (let current: typeof element | Element | null = element; current; current = current.parentElement ?? null) {\n\t\t\t\tif (typeof current.getAnimations !== \"function\") continue;\n\t\t\t\tfor (const animation of current.getAnimations()) {\n\t\t\t\t\tconst iterations = Number(animation.effect?.getComputedTiming().iterations ?? 1);\n\t\t\t\t\tif (animation.playState === \"running\" && Number.isFinite(iterations)) {\n\t\t\t\t\t\tanimations.add(animation);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (animations.size === 0) return;\n\n\t\t\tlet timer: ReturnType<typeof setTimeout> | undefined;\n\t\t\ttry {\n\t\t\t\tawait Promise.race([\n\t\t\t\t\tPromise.allSettled([...animations].map(animation => animation.finished)),\n\t\t\t\t\tnew Promise<never>((_resolve, reject) => {\n\t\t\t\t\t\ttimer = setTimeout(() => {\n\t\t\t\t\t\t\treject(new Error(`[vue-pom-generator] Timed out after ${timeoutMs}ms waiting for click-target animations to finish.`));\n\t\t\t\t\t\t}, timeoutMs);\n\t\t\t\t\t}),\n\t\t\t\t]);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tif (timer !== undefined) clearTimeout(timer);\n\t\t\t}\n\t\t});\n\t}\n\n\tprivate async isEditableElement(locator: PwLocator): Promise<boolean> {\n\t\ttry {\n\t\t\treturn await locator.first().evaluate((element) => {\n\t\t\t\tif (!(element instanceof HTMLElement)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tconst tagName = element.tagName.toLowerCase();\n\t\t\t\treturn tagName === \"input\"\n\t\t\t\t\t|| tagName === \"textarea\"\n\t\t\t\t\t|| tagName === \"select\"\n\t\t\t\t\t|| element.isContentEditable;\n\t\t\t});\n\t\t}\n\t\tcatch {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tprivate async resolveEditableLocator(locator: PwLocator): Promise<PwLocator> {\n\t\tconst first = locator.first();\n\t\tif (await this.isEditableElement(first)) {\n\t\t\treturn first;\n\t\t}\n\n\t\tconst descendant = first.locator(__PW_EDITABLE_DESCENDANT_SELECTOR__).first();\n\t\ttry {\n\t\t\tif (await descendant.count() > 0) {\n\t\t\t\treturn descendant;\n\t\t\t}\n\t\t}\n\t\tcatch {\n\t\t\t// Fall back to the original target if descendant lookup fails.\n\t\t}\n\n\t\treturn first;\n\t}\n\n\tpublic async animateCursorToElement(\n\t\ttarget: ElementTarget,\n\t\texecuteClick: boolean = true,\n\t\tdelayMs: number = 1000,\n\t\tannotationText: string = \"\",\n\t\toptions?: {\n\t\t\tafterClick?: AfterPointerClick;\n\t\t},\n\t): Promise<void> {\n\t\tconst locator = this.toLocator(target);\n\t\tconst trimmedAnnotationText = annotationText.trim();\n\n\t\tconst opts = animationOptions;\n\t\tconst animEnabled = opts.enabled !== false;\n\t\tif (executeClick) {\n\t\t\tawait this.waitForFiniteAncestorAnimations(locator);\n\t\t}\n\n\t\tif (!animEnabled) {\n\t\t\tif (trimmedAnnotationText) {\n\t\t\t\tawait this.callout.showForElement(locator, trimmedAnnotationText);\n\t\t\t}\n\n\t\t\t// Fast path: no animation or presentation DOM work. In ordinary test runs\n\t\t\t// annotationText is empty, so touching the callout would add a page.evaluate\n\t\t\t// that can outlive a navigation and obscure the real Playwright failure.\n\t\t\tconst extraDelay = Math.max(0, opts.extraDelayMs ?? 0);\n\t\t\tif (extraDelay > 0) await this.page.waitForTimeout(extraDelay);\n\n\t\t\tlet clickedTestId: string | undefined;\n\t\t\tif (executeClick) {\n\t\t\t\tif (options?.afterClick) {\n\t\t\t\t\ttry { clickedTestId = await this.getTestId(locator); } catch { /* noop */ }\n\t\t\t\t}\n\t\t\t\tawait locator.first().click();\n\t\t\t}\n\t\t\tif (options?.afterClick) {\n\t\t\t\tawait options.afterClick({ testId: clickedTestId, instrumented: Boolean(clickedTestId) });\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\t// --- Animated path ---\n\t\ttry {\n\t\t\tawait locator.first().scrollIntoViewIfNeeded();\n\t\t}\n\t\tcatch {\n\t\t\t// Element may detach during navigation; let the subsequent action surface the error.\n\t\t}\n\n\t\tconst moveDurationMs = opts.pointer?.durationMilliseconds ?? 250;\n\t\tconst transitionStyle = opts.pointer?.transitionStyle ?? \"ease-in-out\";\n\t\tconst clickDelayMs = opts.pointer?.clickDelayMilliseconds ?? 0;\n\t\tconst extraDelayMs = Math.max(0, opts.extraDelayMs ?? 0);\n\t\tconst actionDelayMs = Math.max(0, delayMs);\n\n\t\t// Inject the visual pointer if it doesn't exist yet.\n\t\tawait this.renderer.ensure(this.page);\n\n\t\t// Move the pointer to the target element.\n\t\tconst box = await locator.first().boundingBox();\n\t\tif (box) {\n\t\t\tconst endX = box.x + box.width / 2;\n\t\t\tconst endY = box.y + box.height / 2;\n\t\t\tconst { x: startX, y: startY } = __pw_get_pointer_pos__(this.page);\n\t\t\tconst distance = Math.sqrt((endX - startX) ** 2 + (endY - startY) ** 2);\n\n\t\t\tconst shouldAnimate = moveDurationMs > 0 && distance > 0;\n\t\t\tawait this.renderer.move(this.page, {\n\t\t\t\tanimate: shouldAnimate,\n\t\t\t\tdurationMilliseconds: moveDurationMs,\n\t\t\t\tendX,\n\t\t\t\tendY,\n\t\t\t\tstartX,\n\t\t\t\tstartY,\n\t\t\t\ttransitionStyle,\n\t\t\t});\n\n\t\t\tif (trimmedAnnotationText) {\n\t\t\t\tawait this.callout.showForElement(locator, trimmedAnnotationText, {\n\t\t\t\t\tskipScroll: true,\n\t\t\t\t\ttargetBox: box,\n\t\t\t\t});\n\t\t\t}\n\t\t\telse {\n\t\t\t\tawait this.callout.hide();\n\t\t\t}\n\n\t\t\tif (shouldAnimate) {\n\t\t\t\t// Wait for the animation to finish.\n\t\t\t\tawait this.page.waitForTimeout(moveDurationMs + 25);\n\t\t\t}\n\n\t\t\t__pw_set_pointer_pos__(this.page, endX, endY);\n\t\t}\n\t\telse {\n\t\t\tawait this.callout.hide();\n\t\t}\n\n\t\t// Apply action delay + extra delay.\n\t\tconst totalDelay = actionDelayMs + extraDelayMs;\n\t\tif (totalDelay > 0) await this.page.waitForTimeout(totalDelay);\n\n\t\tlet clickedTestId: string | undefined;\n\t\tif (executeClick) {\n\t\t\t// Brief scale-down \"press\" animation on the pointer image.\n\t\t\tif (moveDurationMs > 0) {\n\t\t\t\tconst pressDur = Math.max(80, Math.round(moveDurationMs / 3));\n\t\t\t\tawait this.renderer.press(this.page, { durationMilliseconds: pressDur });\n\t\t\t}\n\n\t\t\tif (options?.afterClick) {\n\t\t\t\ttry { clickedTestId = await this.getTestId(locator); } catch { /* noop */ }\n\t\t\t}\n\t\t\tawait locator.first().click({ delay: clickDelayMs });\n\t\t}\n\n\t\tif (options?.afterClick) {\n\t\t\tawait options.afterClick({ testId: clickedTestId, instrumented: Boolean(clickedTestId) });\n\t\t}\n\t}\n\n\tpublic async animateCursorToElementAndClickAndFill(\n\t\ttarget: ElementTarget,\n\t\ttext: string,\n\t\texecuteClick: boolean = true,\n\t\tdelayMs: number = 1000,\n\t\tannotationText: string = \"\",\n\t\toptions?: {\n\t\t\tafterClick?: AfterPointerClick;\n\t\t},\n\t): Promise<void> {\n\t\t// Animate the pointer + click first.\n\t\tawait this.animateCursorToElement(target, executeClick, delayMs, annotationText, options);\n\n\t\tconst locator = this.toLocator(target);\n\t\tconst editableLocator = await this.resolveEditableLocator(locator);\n\t\tconst typeDelayMs = animationOptions.keyboard?.typeDelayMilliseconds ?? 100;\n\n\t\tif (animationOptions.enabled !== false && typeDelayMs > 0) {\n\t\t\t// Clear existing content, then type character-by-character so keystrokes are visible.\n\t\t\tawait editableLocator.clear();\n\t\t\tawait this.page.keyboard.type(text, { delay: typeDelayMs });\n\t\t}\n\t\telse {\n\t\t\tawait editableLocator.fill(text);\n\t\t}\n\t}\n}\n","import type { Locator, Page } from \"playwright\";\nimport type { PwLocator, PwPage } from \"./playwright-types\";\n\nimport { TESTID_CLICK_EVENT_NAME } from \"../click-instrumentation\";\nimport type { TestIdClickEventDetail } from \"../click-instrumentation\";\nimport { Callout } from \"./callout\";\nimport type { CalloutRenderer } from \"./callout\";\nimport { Pointer, type AfterPointerClick, type AfterPointerClickInfo, type PointerRenderer } from \"./pointer\";\n\nconst POM_ACTIVE_ACTION_REGISTRY = Symbol.for(\"@immense/vue-pom-generator.active-action-registry\");\n\ninterface PomActiveActionRecord {\n componentName?: string;\n methodName: string;\n expectedTestIds: readonly string[];\n}\n\nfunction setPomAction(page: object, action: PomActiveActionRecord): void {\n const globalRecord = globalThis as typeof globalThis & {\n [POM_ACTIVE_ACTION_REGISTRY]?: WeakMap<object, PomActiveActionRecord>;\n };\n const registry = globalRecord[POM_ACTIVE_ACTION_REGISTRY] ?? new WeakMap<object, PomActiveActionRecord>();\n globalRecord[POM_ACTIVE_ACTION_REGISTRY] = registry;\n registry.set(page, { ...action, expectedTestIds: [...action.expectedTestIds] });\n}\n\n// Click instrumentation is optional for generated POMs.\n//\n// When enabled, POM click/fill helpers will wait for the app to emit\n// `__testid_event__` { testId, phase: \"after\" } after interacting with an\n// element that has a data-testid.\n//\n// Default: disabled. (Playwright already has robust auto-waiting; requiring a\n// custom event makes tests depend on app runtime instrumentation.)\nconst REQUIRE_CLICK_EVENT = false;\n\n// Keep logging off by default.\nconst CLICK_EVENT_DEBUG = false;\n\n/**\n * A chainable, thenable wrapper around a page object.\n *\n * This exists to enable fluent syntax for navigation-generated methods, e.g.:\n * await tenantListPage.goToNewTenant().typeTenantName(\"Acme\")\n *\n * The wrapper is PromiseLike<T>, so `await` returns the underlying page object once\n * the queued navigation/actions complete.\n */\n/**\n * Deep fluent wrapper that preserves the original property surface while making\n * all methods chain back to the root fluent type.\n */\ntype DeepFluent<T, TRoot extends object> = {\n [K in keyof T]: T[K] extends (...args: infer A) => infer _R\n ? K extends \"getObjectId\"\n ? (...args: A) => ValueFluent<Awaited<_R>>\n : K extends \"getObjectIdAsInt\"\n ? (...args: A) => ValueFluent<Awaited<_R>>\n : (...args: A) => Fluent<TRoot>\n : T[K] extends object\n ? DeepFluent<T[K], TRoot>\n : T[K];\n};\n\ntype DeepValueFluent<T> = {\n [K in keyof T]: T[K] extends (...args: infer A) => infer R\n ? (...args: A) => ValueFluent<Awaited<R>>\n : T[K] extends object\n ? DeepValueFluent<T[K]>\n : T[K];\n};\n\nexport type Fluent<T extends object> = DeepFluent<T, T> & PromiseLike<T>;\n\nexport type ValueFluent<T> = DeepValueFluent<T> & PromiseLike<T>;\n\nexport interface BasePageOptions {\n renderers?: {\n callout?: CalloutRenderer;\n pointer?: PointerRenderer;\n };\n testIdAttribute?: string;\n}\n\nexport class ObjectId {\n private readonly raw: string;\n\n public constructor(raw: string) {\n if (!raw) {\n throw new Error(\"ObjectId: raw value is empty\");\n }\n this.raw = raw;\n }\n\n public toString(): string {\n return this.raw;\n }\n\n public asInt(): number {\n return this.AsInt();\n }\n\n public AsInt(): number {\n // Only accept base-10 integer strings.\n if (!/^\\d+$/.test(this.raw)) {\n throw new Error(`ObjectId.AsInt: '${this.raw}' is not a base-10 integer string`);\n }\n const parsed = Number.parseInt(this.raw, 10);\n if (!Number.isSafeInteger(parsed)) {\n throw new TypeError(`ObjectId.AsInt: '${this.raw}' is not a safe integer`);\n }\n return parsed;\n }\n}\n\n/**\n * Base Page Object Model class that provides common functionality\n * for all component-specific Page Object Models\n */\nexport class BasePage {\n protected readonly testIdAttribute: string;\n\n private readonly callout: Callout;\n private readonly pointer: InstanceType<typeof Pointer>;\n\n /**\n * The narrowed Playwright page, stored privately. The narrowing (`PwPage` =\n * `BasePagePage`) is what lets the unit-test `FakePage` double satisfy the\n * constructor without stubbing ~250 `Page` members; it never escapes this\n * class. Subclasses (generated and hand-written POMs) reach the page through\n * the widened {@link BasePage.page} getter, which surfaces Playwright's full\n * `Page` so custom POMs can use `getByRole`/`waitForResponse`/`waitForFunction`\n * etc. for JS/DOM elements the generator can't key.\n */\n private readonly _page: PwPage;\n\n /**\n * Playwright's full `Page`, exposed to subclasses. This is the single,\n * sanctioned way generated/custom POMs touch the page — there is no separate\n * `rawPage`. The narrowed storage (`_page`) is widened here; the value is a\n * real `Page` at runtime.\n */\n protected get page(): Page {\n return this._page as Page;\n }\n\n /**\n * @param page - Playwright page object (narrowed `PwPage` so test doubles fit).\n */\n public constructor(page: PwPage, options?: BasePageOptions) {\n this._page = page;\n this.testIdAttribute = (options?.testIdAttribute || \"data-testid\").trim() || \"data-testid\";\n\n const pointerRenderer = options?.renderers?.pointer;\n this.callout = new Callout(this._page, {\n extraOverlayIds: pointerRenderer?.overlayIds,\n renderer: options?.renderers?.callout,\n });\n this.pointer = new Pointer(this._page, this.testIdAttribute, this.callout, pointerRenderer);\n }\n\n public get screencast(): Page[\"screencast\"] {\n return this.page.screencast;\n }\n\n private async waitForTestIdClickEventAfter(testId: string, options?: { timeoutMs?: number }): Promise<void> {\n if (!REQUIRE_CLICK_EVENT) {\n return;\n }\n\n const timeoutMs = options?.timeoutMs ?? 2_000;\n const requireEvent = REQUIRE_CLICK_EVENT;\n\n if (CLICK_EVENT_DEBUG) {\n // This log is on the Node side (Playwright runner).\n console.log(`[testid-click-event] waiting for '${testId}' after (timeout=${timeoutMs}ms, require=${requireEvent})`);\n }\n\n // If the click triggers navigation, the JS context can be destroyed while waiting.\n // In that scenario, the click already did its job; don't fail the test infra.\n try {\n await this.page.evaluate(\n ({ eventName, expectedTestId, timeoutMs, debug }) => {\n return new Promise<void>((resolve, reject) => {\n const g = globalThis;\n if (!g || typeof g.addEventListener !== \"function\") {\n reject(new Error(`Click instrumentation not available (no addEventListener) for '${expectedTestId}'`));\n return;\n }\n\n const cleanup = (timer: ReturnType<typeof setTimeout>, onEvent: (evt: Event) => void) => {\n clearTimeout(timer);\n try {\n g.removeEventListener(eventName, onEvent);\n }\n catch { /* noop */ }\n };\n\n let finished = false;\n let timer: ReturnType<typeof setTimeout>;\n let onEvent: (evt: Event) => void;\n\n const finishOk = () => {\n if (finished) return;\n finished = true;\n cleanup(timer, onEvent);\n resolve();\n };\n\n const finishErr = (err: Error) => {\n if (finished) return;\n finished = true;\n cleanup(timer, onEvent);\n reject(err);\n };\n\n onEvent = (evt: Event) => {\n const detail = (evt as CustomEvent<TestIdClickEventDetail>).detail;\n if (!detail) return;\n\n if (debug) {\n console.log(`[testid-click-event][page] saw ${eventName} testId='${detail.testId}' phase='${detail.phase}'`);\n }\n\n if (detail.testId !== expectedTestId) return;\n\n if (detail.phase === \"error\") {\n finishErr(new Error(detail.err || `Click handler failed for ${expectedTestId}`));\n return;\n }\n\n if (detail.phase === \"after\") {\n finishOk();\n }\n };\n\n timer = setTimeout(() => {\n finishErr(new Error(`Timed out waiting for ${eventName} 'after' for '${expectedTestId}' (${timeoutMs}ms)`));\n }, timeoutMs);\n\n try {\n if (debug) {\n console.log(`[testid-click-event][page] addEventListener(${eventName}) for '${expectedTestId}'`);\n }\n g.addEventListener(eventName, onEvent);\n }\n catch {\n finishErr(new Error(`Click instrumentation not available (addEventListener threw) for '${expectedTestId}'`));\n }\n });\n },\n {\n eventName: TESTID_CLICK_EVENT_NAME,\n expectedTestId: testId,\n timeoutMs,\n debug: CLICK_EVENT_DEBUG,\n },\n );\n }\n catch (e) {\n const msg = e instanceof Error ? e.message : String(e);\n if (msg.includes(\"Execution context was destroyed\") || msg.includes(\"Target closed\")) {\n if (CLICK_EVENT_DEBUG) {\n console.log(`[testid-click-event] context destroyed while waiting for '${testId}' (likely navigation)`);\n }\n return;\n }\n throw e;\n }\n }\n\n private getAfterPointerClick(wait: boolean = true): AfterPointerClick | undefined {\n if (!REQUIRE_CLICK_EVENT || !wait) return undefined;\n\n return async ({ testId, instrumented }: AfterPointerClickInfo) => {\n if (!testId || !instrumented) return;\n await this.waitForTestIdClickEventAfter(testId);\n };\n }\n\n protected selectorForTestId(testId: string): string {\n return `[${this.testIdAttribute}=\"${testId}\"]`;\n }\n\n protected describeLocator(locator: Locator, description?: string): Locator {\n const normalizedDescription = description?.trim();\n return normalizedDescription ? locator.describe(normalizedDescription) : locator;\n }\n\n protected locatorByTestId(testId: string, description?: string): Locator {\n return this.describeLocator(this.page.locator(this.selectorForTestId(testId)), description);\n }\n\n protected async resolveVisibleTestIdLocator(\n testIds: readonly string[],\n description: string,\n methodName: string,\n componentName?: string,\n ): Promise<Locator> {\n this.recordPomAction(componentName, methodName, testIds);\n const locators = testIds.map(testId => this.locatorByTestId(testId, description));\n if (!locators.length) {\n throw new Error(`[pom] ${methodName} has no candidate test ids.`);\n }\n\n try {\n await Promise.any(locators.map(locator => locator.waitFor({ state: \"visible\", timeout: 5_000 })));\n }\n catch (error) {\n throw new Error(\n `[pom] ${methodName} could not find a visible element for any generated test id: ${testIds.join(\", \")}`,\n { cause: error },\n );\n }\n\n for (const locator of locators) {\n if (await locator.isVisible()) return locator;\n }\n return locators[0]!;\n }\n\n protected recordPomAction(\n componentName: string | undefined,\n methodName: string,\n expectedTestIds: readonly string[],\n ): void {\n setPomAction(this.page, { componentName, methodName, expectedTestIds });\n }\n\n protected locatorWithinTestIdByLabel(\n rootTestId: string,\n label: string,\n options?: { exact?: boolean; description?: string },\n ): Locator {\n // Custom radio controls commonly render an invisible input beneath its visible\n // associated <label>. getByLabel() correctly resolves the input, but clicking it\n // then fails actionability because the label intercepts pointer events. Generated\n // radio actions are user interactions, so click the visible labelled surface.\n const locator = this.locatorByTestId(rootTestId)\n .filter({ visible: true })\n .first()\n .getByText(label, { exact: options?.exact ?? true });\n return this.describeLocator(locator, options?.description);\n }\n\n /**\n * Animates the pointer to an element.\n */\n protected async animateCursorToElement(\n target: string | PwLocator,\n executeClick: boolean = true,\n delayMs: number = 1000,\n annotationText: string = \"\",\n options?: {\n afterClick?: AfterPointerClick;\n },\n ): Promise<void> {\n await this.pointer.animateCursorToElement(target, executeClick, delayMs, annotationText, options);\n }\n\n public async showCallout(target: string | PwLocator, annotationText: string): Promise<void> {\n await this.callout.showForElement(target, annotationText);\n }\n\n public async showCalloutByTestId(testId: string, annotationText: string): Promise<void> {\n await this.showCallout(this.selectorForTestId(testId), annotationText);\n }\n\n public async hideCallout(): Promise<void> {\n await this.callout.hide();\n }\n\n /**\n * Creates an indexable proxy for keyed elements so generated POMs can expose\n * ergonomic accessors like:\n * expect(page.SaveButton[\"MyKey\"]).toBeVisible();\n */\n protected keyedLocators<TKey extends string>(getLocator: (key: TKey) => PwLocator): Record<TKey, Locator> {\n const handler: ProxyHandler<object> = {\n get: (_t, prop) => {\n // Avoid confusing Promise-like detection and ignore symbols.\n if (prop === \"then\" || typeof prop === \"symbol\") {\n return undefined;\n }\n return getLocator(String(prop) as TKey);\n },\n };\n\n // `getLocator` returns the narrowed `PwLocator` (so test doubles satisfy it), but each\n // value is a real Playwright `Locator` at runtime. Widen the record's value type so\n // generated keyed accessors can be passed to `expect(...)`.\n return new Proxy({}, handler) as Record<TKey, Locator>;\n }\n\n public async getObjectId(options?: { timeoutMs?: number }): Promise<ObjectId> {\n const timeoutMs = options?.timeoutMs ?? 5_000;\n const deadline = Date.now() + timeoutMs;\n\n while (true) {\n const url = this.page.url();\n const match = url.match(/\\/(\\d+)(?:[/?#]|$)/);\n if (match) {\n return new ObjectId(match[1]);\n }\n\n if (Date.now() >= deadline) {\n throw new Error(`getObjectId: could not find a numeric id in url '${url}' within ${timeoutMs}ms`);\n }\n\n await new Promise<void>(resolve => setTimeout(resolve, 50));\n }\n }\n\n public async getObjectIdAsInt(options?: { timeoutMs?: number }): Promise<number> {\n const objectId = await this.getObjectId(options);\n return objectId.asInt();\n }\n\n /**\n * Wraps an async factory for a page object into a chainable Fluent<T>.\n *\n * The returned proxy:\n * - forwards method calls to the resolved object\n * - queues async method calls (Promise-returning) so they execute in order\n * - is PromiseLike, so `await` yields the underlying object\n */\n protected fluent<T extends object>(factory: () => Promise<T>): Fluent<T> {\n // Cache the factory result so we don't repeat navigation/actions.\n const rootPromise = factory();\n const getRoot = () => rootPromise;\n\n // Queue of side-effects (navigation + actions). Awaiting the fluent proxy awaits this queue.\n let queue: Promise<void> = Promise.resolve();\n\n let rootProxy: Fluent<T>;\n\n const VALUE_RETURNING_METHODS = new Set<PropertyKey>([\n \"getObjectId\",\n \"getObjectIdAsInt\",\n ]);\n\n const getCtorName = (obj: object): string => {\n const o = obj as { constructor?: { name?: string } };\n return o.constructor?.name ?? \"object\";\n };\n\n const createValueProxy = <V>(getValue: () => Promise<V>): V & PromiseLike<V> => {\n const handler: ProxyHandler<() => void> = {\n get: (_t, prop) => {\n if (prop === \"then\") {\n return (onFulfilled?: ((value: V) => object) | null, onRejected?: ((reason: object) => object) | null) => {\n return queue.then(() => getValue()).then(onFulfilled as never, onRejected as never);\n };\n }\n\n return createValueMemberProxy(getValue, prop);\n },\n };\n\n const target = () => undefined;\n return new Proxy(target, handler) as never as V & PromiseLike<V>;\n };\n\n function createValueMemberProxy<P>(getParent: () => Promise<P>, member: PropertyKey): P & PromiseLike<P> {\n const handler: ProxyHandler<() => void> = {\n get: (_t, prop) => {\n if (prop === \"then\") {\n return (onFulfilled?: ((value: object) => object) | null, onRejected?: ((reason: object) => object) | null) => {\n return queue\n .then(async () => {\n const parent = await getParent();\n const value = Reflect.get(parent as never as object, member);\n if (value == null) {\n throw new Error(`Fluent: '${String(member)}' does not exist on ${getCtorName(parent as never as object)}`);\n }\n return value as object;\n })\n .then(onFulfilled as never, onRejected as never);\n };\n }\n\n return createValueMemberProxy(async () => {\n const parent = await getParent();\n const value = Reflect.get(parent as never as object, member);\n if (value == null) {\n throw new Error(`Fluent: '${String(member)}' does not exist on ${getCtorName(parent as never as object)}`);\n }\n return value as P;\n }, prop);\n },\n apply: (_t, _thisArg, args) => {\n const resultPromise = new Promise((resolve, reject) => {\n queue = queue\n .then(async () => {\n const parent = await getParent();\n const value = Reflect.get(parent as never as object, member);\n if (typeof value !== \"function\") {\n throw new TypeError(`Fluent: '${String(member)}' is not a function on ${getCtorName(parent as never as object)}`);\n }\n const fn = value as (...a: object[]) => PromiseLike<object> | object;\n const result = fn.apply(parent, args as object[]);\n const resolved = result instanceof Promise ? await result : result;\n resolve(resolved);\n })\n .catch(reject);\n });\n\n return createValueProxy(() => resultPromise as Promise<P>);\n },\n };\n\n const target = () => undefined;\n return new Proxy(target, handler) as never as P & PromiseLike<P>;\n }\n\n const createMemberProxy = <P extends object>(getParent: () => Promise<P>, member: PropertyKey): Fluent<T> => {\n const handler: ProxyHandler<() => void> = {\n get: (_t, prop) => {\n if (prop === \"then\") {\n return (onFulfilled?: ((value: object) => object) | null, onRejected?: ((reason: object) => object) | null) => {\n return queue\n .then(async () => {\n const parent = await getParent();\n const value = Reflect.get(parent, member);\n if (value == null) {\n throw new Error(`Fluent: '${String(member)}' does not exist on ${parent.constructor?.name ?? \"object\"}`);\n }\n return value as object;\n })\n .then(onFulfilled as never, onRejected as never);\n };\n }\n\n // Chain deeper: resolve this member value, then access its property.\n return createMemberProxy(async () => {\n const parent = await getParent();\n const value = Reflect.get(parent, member);\n if (value == null) {\n throw new Error(`Fluent: '${String(member)}' does not exist on ${parent.constructor?.name ?? \"object\"}`);\n }\n return value as P;\n }, prop);\n },\n apply: (_t, _thisArg, args) => {\n const resultPromise = new Promise((resolve, reject) => {\n // Call parent[member](...args) with correct `this` binding.\n queue = queue\n .then(async () => {\n const parent = await getParent();\n const value = Reflect.get(parent, member);\n if (typeof value !== \"function\") {\n throw new TypeError(`Fluent: '${String(member)}' is not a function on ${parent.constructor?.name ?? \"object\"}`);\n }\n const fn = value as (...a: object[]) => PromiseLike<object> | object;\n // Preserve `this` so methods can access instance fields (e.g. composed child POMs).\n const result = fn.apply(parent, args as object[]);\n const resolved = result instanceof Promise ? await result : result;\n resolve(resolved);\n })\n .catch(reject);\n });\n\n if (VALUE_RETURNING_METHODS.has(member)) {\n return createValueProxy(() => resultPromise as Promise<object>);\n }\n\n // After calling a method, stay on the *root object* so you can chain sibling methods.\n return rootProxy;\n },\n };\n\n const target = () => undefined;\n return new Proxy(target, handler) as never as Fluent<T>;\n };\n\n const rootHandler: ProxyHandler<object> = {\n get: (_t, prop) => {\n if (prop === \"then\") {\n return (onFulfilled?: ((value: T) => object) | null, onRejected?: ((reason: object) => object) | null) => {\n return queue.then(() => getRoot()).then(onFulfilled as never, onRejected as never);\n };\n }\n return createMemberProxy(getRoot, prop);\n },\n };\n\n const rootTarget = {};\n rootProxy = new Proxy(rootTarget, rootHandler) as Fluent<T>;\n return rootProxy;\n }\n\n /**\n * Clicks on an element with the specified data-testid\n * @param testId The data-testid of the element to click\n */\n public async clickByTestId(\n testId: string,\n annotationText: string = \"\",\n wait: boolean = true,\n description?: string,\n action?: { componentName?: string; methodName: string; preferAssociatedLabel?: boolean },\n ): Promise<void> {\n this.recordPomAction(action?.componentName, action?.methodName ?? description ?? \"clickByTestId\", [testId]);\n const locator = this.locatorByTestId(testId, description).filter({ visible: true }).first();\n let clickTarget = locator;\n let activateWithKeyboard = false;\n if (action?.preferAssociatedLabel) {\n const visibleControl = locator;\n const controlId = await visibleControl.getAttribute(\"id\");\n if (controlId) {\n // Bootstrap custom controls often use an empty label whose painted ::before/::after\n // pseudo-elements intercept the pointer. Playwright's visible filter can exclude that\n // empty label even though its pseudo-element is the actual interaction surface, so first\n // select the associated label by DOM presence and then choose pointer or keyboard activation.\n const associatedLabel = this.page.locator(`label[for=${JSON.stringify(controlId)}]`).first();\n if (await associatedLabel.count() > 0) {\n if (await associatedLabel.isVisible()) {\n clickTarget = associatedLabel;\n }\n else {\n // An empty label can have a zero-size element box while its ::before checkbox/radio\n // remains painted over the input. Pointer clicks cannot target either surface without\n // force; Space is the native, actionability-checked keyboard activation for both.\n activateWithKeyboard = true;\n }\n }\n }\n else {\n clickTarget = visibleControl;\n }\n }\n const afterClick = this.getAfterPointerClick(wait);\n if (activateWithKeyboard) {\n await this.pointer.animateCursorToElement(locator, false, 200, annotationText);\n await locator.press(\"Space\");\n if (afterClick) {\n await afterClick({ testId, instrumented: true });\n }\n return;\n }\n await this.pointer.animateCursorToElement(clickTarget, true, 200, annotationText, afterClick ? { afterClick } : undefined);\n }\n\n public async clickLocator(locator: PwLocator, annotationText: string = \"\", wait: boolean = true): Promise<void> {\n const afterClick = this.getAfterPointerClick(wait);\n await this.pointer.animateCursorToElement(locator, true, 200, annotationText, afterClick ? { afterClick } : undefined);\n }\n\n protected async clickWithinTestIdByLabel(\n rootTestId: string,\n label: string,\n annotationText: string = \"\",\n wait: boolean = true,\n options?: { exact?: boolean; description?: string; componentName?: string; methodName?: string },\n ): Promise<void> {\n this.recordPomAction(options?.componentName, options?.methodName ?? options?.description ?? \"clickWithinTestIdByLabel\", [rootTestId]);\n const locator = this.locatorWithinTestIdByLabel(rootTestId, label, {\n exact: options?.exact,\n description: options?.description,\n });\n await this.clickLocator(locator, annotationText, wait);\n }\n\n protected async fillInputByTestId(\n testId: string,\n text: string,\n annotationText: string = \"\",\n description?: string,\n action?: { componentName?: string; methodName: string },\n ): Promise<void> {\n this.recordPomAction(action?.componentName, action?.methodName ?? description ?? \"fillInputByTestId\", [testId]);\n const locator = this.locatorByTestId(testId, description).filter({ visible: true }).first();\n const afterClick = this.getAfterPointerClick();\n await this.pointer.animateCursorToElementAndClickAndFill(locator, text, true, 200, annotationText, afterClick ? { afterClick } : undefined);\n }\n\n /**\n * Interacts with a vue-select control rooted by a data-testid.\n * This is emitted frequently by the generator; keeping it here reduces per-page duplicated code.\n */\n protected async selectVSelectByTestId(\n testId: string,\n value: string,\n annotationText: string = \"\",\n description?: string,\n action?: { componentName?: string; methodName: string },\n ): Promise<void> {\n this.recordPomAction(action?.componentName, action?.methodName ?? description ?? \"selectVSelectByTestId\", [testId]);\n const root = this.locatorByTestId(testId, description).filter({ visible: true }).first();\n const input = root.locator(\"input\");\n\n await this.pointer.animateCursorToElement(input, false, 200, annotationText);\n await input.click();\n await this.pointer.animateCursorToElementAndClickAndFill(input, value, false, 200, annotationText);\n\n const option = root.locator(\"ul.vs__dropdown-menu li[role='option']\").first();\n await option.waitFor({ state: \"visible\", timeout: 5_000 });\n const afterClick = this.getAfterPointerClick();\n await this.pointer.animateCursorToElement(option, true, 200, annotationText, afterClick ? { afterClick } : undefined);\n }\n\n public async fillInputByLocator(locator: PwLocator, text: string, annotationText: string = \"\"): Promise<void> {\n const afterClick = this.getAfterPointerClick();\n await this.pointer.animateCursorToElementAndClickAndFill(locator, text, true, 200, annotationText, afterClick ? { afterClick } : undefined);\n }\n\n protected async clickByAriaLabel(ariaLabel: string, annotationText: string = \"\"): Promise<void> {\n const afterClick = this.getAfterPointerClick();\n await this.pointer.animateCursorToElement(`[aria-label=\"${ariaLabel}\"]`, true, 200, annotationText, afterClick ? { afterClick } : undefined);\n }\n\n /**\n * Types text into an element with the specified data-testid\n * @param testId The data-testid of the element to type into\n * @param text The text to type\n */\n protected async typeByTestId(testId: string, text: string): Promise<void> {\n await this.fillInputByTestId(testId, text);\n }\n\n /**\n * Checks if an element with the specified data-testid is visible\n * @param testId The data-testid of the element to check\n * @returns True if the element is visible, false otherwise\n */\n protected async isVisibleByTestId(testId: string): Promise<boolean> {\n return this.locatorByTestId(testId).isVisible();\n }\n\n /**\n * Gets the text content of an element with the specified data-testid\n * @param testId The data-testid of the element to get text from\n * @returns The text content of the element\n */\n protected async getTextByTestId(testId: string): Promise<string | null> {\n return this.locatorByTestId(testId).textContent();\n }\n\n /**\n * Waits for an element with the specified data-testid to be visible\n * @param testId The data-testid of the element to wait for\n * @param options Optional timeout and other options\n * @param options.timeout The maximum time to wait for the element to be visible (default is 5000ms)\n * @returns A promise that resolves when the element is visible\n */\n protected async waitForTestId(testId: string, options?: { timeout?: number }): Promise<void> {\n await this.locatorByTestId(testId).waitFor({ state: \"visible\", timeout: options?.timeout ?? 5_000 });\n }\n\n /**\n * Hovers over an element with the specified data-testid\n * @param testId The data-testid of the element to hover over\n */\n protected async hoverByTestId(testId: string): Promise<void> {\n const locator = this.locatorByTestId(testId);\n await this.pointer.animateCursorToElement(locator, false, 200, \"\");\n await locator.hover();\n }\n\n /**\n * Selects an option from a dropdown with the specified data-testid\n * @param testId The data-testid of the dropdown\n * @param value The value to select\n */\n protected async selectByTestId(testId: string, value: string): Promise<void> {\n await this.locatorByTestId(testId).selectOption(value);\n }\n}\n"],"names":["bubbleHeight","bubbleWidth","clickedTestId"],"mappings":"AAEO,MAAM,sBAAsB;AAAA,EAClC,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,SAAS;AACV;AAEO,MAAM,wBAAwB;AAAA,EAIpC,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,cAAc;AAAA,EACd,WAAW;AAAA,EACX,cAAc;AAAA,EACd,KAAK;AAAA,EACL,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,WAAW;AAAA,EACX,UAAU;AAAA,EACV,WAAW;AACZ;AAkCO,SAAS,qBAAqB,MAA6D;AACjG,SAAO;AAAA,IACN,aAAa,KAAK;AAAA,MACjB,sBAAsB;AAAA,MACtB,KAAK;AAAA,QACJ,sBAAsB;AAAA,QACtB,KAAK,IAAI,KAAK,QAAQ,sBAAsB,YAAY,IAAI,IAAI;AAAA,MAAA;AAAA,IACjE;AAAA,IAED,cAAc,KAAK;AAAA,MAClB,sBAAsB;AAAA,MACtB,KAAK,KAAK,KAAK,IAAI,KAAK,QAAQ,CAAC,IAAI,sBAAsB,YAAY,IAAI,KAAK;AAAA,IAAA;AAAA,EACjF;AAEF;AAEA,eAAe,6BAA6B,MAA6B;AACxE,QAAM,KAAK;AAAA,IACV,CAAC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,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M,KAAK,QAAQ,uBAAuB,gBAAgB,SAAS,MAAM,MAAM,KAAK,gBAAgB,aAAa,EAAE,WAAA,IAAe,MAAS;AAAA,EAC7I;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAgB,aAAa,QAAgB,MAA6B;AACxE,UAAM,KAAK,kBAAkB,QAAQ,IAAI;AAAA,EAC3C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAgB,kBAAkB,QAAkC;AAClE,WAAO,KAAK,gBAAgB,MAAM,EAAE,UAAA;AAAA,EACtC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAgB,gBAAgB,QAAwC;AACtE,WAAO,KAAK,gBAAgB,MAAM,EAAE,YAAA;AAAA,EACtC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,MAAgB,cAAc,QAAgB,SAA+C;AAC3F,UAAM,KAAK,gBAAgB,MAAM,EAAE,QAAQ,EAAE,OAAO,WAAW,SAAS,SAAS,WAAW,IAAA,CAAO;AAAA,EACrG;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,MAAgB,cAAc,QAA+B;AAC3D,UAAM,UAAU,KAAK,gBAAgB,MAAM;AAC3C,UAAM,KAAK,QAAQ,uBAAuB,SAAS,OAAO,KAAK,EAAE;AACjE,UAAM,QAAQ,MAAA;AAAA,EAChB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAgB,eAAe,QAAgB,OAA8B;AAC3E,UAAM,KAAK,gBAAgB,MAAM,EAAE,aAAa,KAAK;AAAA,EACvD;AACF;"}
@@ -1 +1 @@
1
- {"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../vite.config.ts"],"names":[],"mappings":";AAEA,wBA+CG"}
1
+ {"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../vite.config.ts"],"names":[],"mappings":";AAEA,wBAiDG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@immense/vue-pom-generator",
3
- "version": "1.0.92",
3
+ "version": "1.0.93",
4
4
  "description": "Injects data-testid attributes for all interactive elements and generates page object models for every page.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -38,6 +38,11 @@
38
38
  "types": "./dist/playwright/reporter.d.ts",
39
39
  "import": "./dist/playwright/reporter.mjs",
40
40
  "require": "./dist/playwright/reporter.cjs"
41
+ },
42
+ "./playwright/runtime": {
43
+ "types": "./dist/class-generation/base-page.d.ts",
44
+ "import": "./dist/playwright/runtime.mjs",
45
+ "require": "./dist/playwright/runtime.cjs"
41
46
  }
42
47
  },
43
48
  "files": [