tabwright 1.0.0 → 1.0.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/aria-snapshot.d.ts +0 -1
- package/dist/aria-snapshot.js +9 -1
- package/dist/assets/cursors/screen-studio/pointer-macos-tahoe-data-url.d.ts +0 -1
- package/dist/assets/cursors/screen-studio/pointer-macos-tahoe-data-url.js +0 -1
- package/dist/bippy.js +1 -1
- package/dist/browser-config.d.ts +0 -1
- package/dist/browser-config.js +0 -1
- package/dist/browser-install.d.ts +0 -1
- package/dist/browser-install.js +0 -1
- package/dist/browser-launch.d.ts +0 -1
- package/dist/browser-launch.js +0 -1
- package/dist/builtin-capabilities.d.ts +0 -1
- package/dist/builtin-capabilities.js +0 -1
- package/dist/capability-agent-skill.d.ts +0 -1
- package/dist/capability-agent-skill.js +0 -1
- package/dist/capability-auth-state.d.ts +0 -1
- package/dist/capability-auth-state.js +0 -1
- package/dist/capability-auth.d.ts +0 -1
- package/dist/capability-auth.js +0 -1
- package/dist/capability-options.d.ts +0 -1
- package/dist/capability-options.js +0 -1
- package/dist/capability-package.d.ts +0 -1
- package/dist/capability-package.js +0 -1
- package/dist/capability-registry.d.ts +0 -1
- package/dist/capability-registry.js +0 -1
- package/dist/capability-runner.d.ts +0 -1
- package/dist/capability-runner.js +0 -1
- package/dist/capability-studio.d.ts +0 -1
- package/dist/capability-studio.js +0 -1
- package/dist/cdp-log.d.ts +0 -1
- package/dist/cdp-log.js +0 -1
- package/dist/cdp-relay.d.ts +0 -1
- package/dist/cdp-relay.js +0 -1
- package/dist/cdp-session.d.ts +0 -1
- package/dist/cdp-session.js +0 -1
- package/dist/cdp-types.d.ts +0 -1
- package/dist/cdp-types.js +0 -1
- package/dist/chrome-discovery.d.ts +0 -1
- package/dist/chrome-discovery.js +0 -1
- package/dist/clean-html.d.ts +0 -1
- package/dist/clean-html.js +0 -1
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +9 -2
- package/dist/cloud-client.d.ts +0 -1
- package/dist/cloud-client.js +0 -1
- package/dist/create-logger.d.ts +0 -1
- package/dist/create-logger.js +0 -1
- package/dist/debugger-examples-types.d.ts +0 -1
- package/dist/debugger-examples-types.js +0 -1
- package/dist/debugger-examples.d.ts +0 -1
- package/dist/debugger-examples.js +0 -1
- package/dist/debugger.d.ts +0 -1
- package/dist/debugger.js +0 -1
- package/dist/diff-utils.d.ts +0 -1
- package/dist/diff-utils.js +0 -1
- package/dist/doctor.d.ts +0 -1
- package/dist/doctor.js +5 -7
- package/dist/editor-examples.d.ts +0 -1
- package/dist/editor-examples.js +0 -1
- package/dist/editor.d.ts +0 -1
- package/dist/editor.js +0 -1
- package/dist/env-compat.d.ts +0 -1
- package/dist/env-compat.js +0 -1
- package/dist/executor.d.ts +0 -1
- package/dist/executor.js +1 -2
- package/dist/extension/background.js +7 -3
- package/dist/extension/manifest.json +1 -1
- package/dist/ghost-browser.d.ts +0 -1
- package/dist/ghost-browser.js +0 -1
- package/dist/ghost-cursor-controller.d.ts +0 -1
- package/dist/ghost-cursor-controller.js +0 -1
- package/dist/ghost-cursor.d.ts +0 -1
- package/dist/ghost-cursor.js +0 -1
- package/dist/htmlrewrite.d.ts +0 -1
- package/dist/htmlrewrite.js +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/kill-port.d.ts +0 -1
- package/dist/kill-port.js +0 -1
- package/dist/kitty-graphics.d.ts +0 -1
- package/dist/kitty-graphics.js +0 -1
- package/dist/mcp.d.ts +0 -1
- package/dist/mcp.js +0 -1
- package/dist/package-paths.d.ts +0 -1
- package/dist/package-paths.js +0 -1
- package/dist/page-markdown.d.ts +0 -1
- package/dist/page-markdown.js +0 -1
- package/dist/performance-examples.d.ts +0 -1
- package/dist/performance-examples.js +0 -1
- package/dist/playwright-import.d.ts +0 -1
- package/dist/playwright-import.js +0 -1
- package/dist/product-paths.d.ts +0 -1
- package/dist/product-paths.js +0 -1
- package/dist/protocol.d.ts +0 -1
- package/dist/protocol.js +0 -1
- package/dist/react-source.d.ts +0 -1
- package/dist/react-source.js +0 -1
- package/dist/readability.js +1 -1
- package/dist/relay-client.d.ts +0 -1
- package/dist/relay-client.js +0 -1
- package/dist/relay-state.d.ts +0 -1
- package/dist/relay-state.js +0 -1
- package/dist/replay-ai-index.d.ts +0 -1
- package/dist/replay-ai-index.js +0 -1
- package/dist/replay-eval.d.ts +0 -1
- package/dist/replay-eval.js +0 -1
- package/dist/replay-handoff.d.ts +0 -1
- package/dist/replay-handoff.js +0 -1
- package/dist/replay-workflow-compiler.d.ts +0 -1
- package/dist/replay-workflow-compiler.js +0 -1
- package/dist/rrweb-recording-relay.d.ts +0 -1
- package/dist/rrweb-recording-relay.js +0 -1
- package/dist/rrweb-recording.d.ts +0 -1
- package/dist/rrweb-recording.js +0 -1
- package/dist/scoped-fs.d.ts +0 -1
- package/dist/scoped-fs.js +0 -1
- package/dist/selector-generator.js +1 -1
- package/dist/start-relay-server.d.ts +0 -1
- package/dist/start-relay-server.js +0 -1
- package/dist/styles-examples.d.ts +0 -1
- package/dist/styles-examples.js +0 -1
- package/dist/styles.d.ts +0 -1
- package/dist/styles.js +0 -1
- package/dist/tabwright-agent-skill.d.ts +0 -1
- package/dist/tabwright-agent-skill.js +0 -1
- package/dist/test-declarations.d.ts +0 -1
- package/dist/test-declarations.js +0 -1
- package/dist/utils.d.ts +0 -1
- package/dist/utils.js +2 -2
- package/dist/wait-for-page-load.d.ts +0 -1
- package/dist/wait-for-page-load.js +0 -1
- package/dist/workflow-capability.d.ts +0 -1
- package/dist/workflow-capability.js +0 -1
- package/package.json +9 -4
- package/readme.md +35 -0
- package/dist/aria-snapshot.d.ts.map +0 -1
- package/dist/aria-snapshot.js.map +0 -1
- package/dist/aria-snapshot.test.d.ts +0 -2
- package/dist/aria-snapshot.test.d.ts.map +0 -1
- package/dist/aria-snapshot.test.js +0 -270
- package/dist/aria-snapshot.test.js.map +0 -1
- package/dist/aria-snapshot.unit.test.d.ts +0 -2
- package/dist/aria-snapshot.unit.test.d.ts.map +0 -1
- package/dist/aria-snapshot.unit.test.js +0 -542
- package/dist/aria-snapshot.unit.test.js.map +0 -1
- package/dist/assets/cursors/screen-studio/pointer-macos-tahoe-data-url.d.ts.map +0 -1
- package/dist/assets/cursors/screen-studio/pointer-macos-tahoe-data-url.js.map +0 -1
- package/dist/browser-config.d.ts.map +0 -1
- package/dist/browser-config.js.map +0 -1
- package/dist/browser-install.d.ts.map +0 -1
- package/dist/browser-install.js.map +0 -1
- package/dist/browser-launch.d.ts.map +0 -1
- package/dist/browser-launch.js.map +0 -1
- package/dist/builtin-capabilities.d.ts.map +0 -1
- package/dist/builtin-capabilities.js.map +0 -1
- package/dist/capability-agent-skill.d.ts.map +0 -1
- package/dist/capability-agent-skill.js.map +0 -1
- package/dist/capability-auth-state.d.ts.map +0 -1
- package/dist/capability-auth-state.js.map +0 -1
- package/dist/capability-auth.d.ts.map +0 -1
- package/dist/capability-auth.js.map +0 -1
- package/dist/capability-cli-confirmation.test.d.ts +0 -2
- package/dist/capability-cli-confirmation.test.d.ts.map +0 -1
- package/dist/capability-cli-confirmation.test.js +0 -79
- package/dist/capability-cli-confirmation.test.js.map +0 -1
- package/dist/capability-options.d.ts.map +0 -1
- package/dist/capability-options.js.map +0 -1
- package/dist/capability-options.test.d.ts +0 -2
- package/dist/capability-options.test.d.ts.map +0 -1
- package/dist/capability-options.test.js +0 -81
- package/dist/capability-options.test.js.map +0 -1
- package/dist/capability-package.d.ts.map +0 -1
- package/dist/capability-package.js.map +0 -1
- package/dist/capability-package.test.d.ts +0 -2
- package/dist/capability-package.test.d.ts.map +0 -1
- package/dist/capability-package.test.js +0 -179
- package/dist/capability-package.test.js.map +0 -1
- package/dist/capability-registry.d.ts.map +0 -1
- package/dist/capability-registry.js.map +0 -1
- package/dist/capability-registry.test.d.ts +0 -2
- package/dist/capability-registry.test.d.ts.map +0 -1
- package/dist/capability-registry.test.js +0 -1683
- package/dist/capability-registry.test.js.map +0 -1
- package/dist/capability-runner.d.ts.map +0 -1
- package/dist/capability-runner.js.map +0 -1
- package/dist/capability-search-relevance.test.d.ts +0 -2
- package/dist/capability-search-relevance.test.d.ts.map +0 -1
- package/dist/capability-search-relevance.test.js +0 -67
- package/dist/capability-search-relevance.test.js.map +0 -1
- package/dist/capability-studio.d.ts.map +0 -1
- package/dist/capability-studio.js.map +0 -1
- package/dist/capability-studio.test.d.ts +0 -2
- package/dist/capability-studio.test.d.ts.map +0 -1
- package/dist/capability-studio.test.js +0 -41
- package/dist/capability-studio.test.js.map +0 -1
- package/dist/cdp-log.d.ts.map +0 -1
- package/dist/cdp-log.js.map +0 -1
- package/dist/cdp-log.test.d.ts +0 -2
- package/dist/cdp-log.test.d.ts.map +0 -1
- package/dist/cdp-log.test.js +0 -109
- package/dist/cdp-log.test.js.map +0 -1
- package/dist/cdp-relay.d.ts.map +0 -1
- package/dist/cdp-relay.js.map +0 -1
- package/dist/cdp-session.d.ts.map +0 -1
- package/dist/cdp-session.js.map +0 -1
- package/dist/cdp-types.d.ts.map +0 -1
- package/dist/cdp-types.js.map +0 -1
- package/dist/channel-owner-inspect.test.d.ts +0 -2
- package/dist/channel-owner-inspect.test.d.ts.map +0 -1
- package/dist/channel-owner-inspect.test.js +0 -75
- package/dist/channel-owner-inspect.test.js.map +0 -1
- package/dist/chrome-discovery.d.ts.map +0 -1
- package/dist/chrome-discovery.js.map +0 -1
- package/dist/chrome-discovery.test.d.ts +0 -2
- package/dist/chrome-discovery.test.d.ts.map +0 -1
- package/dist/chrome-discovery.test.js +0 -41
- package/dist/chrome-discovery.test.js.map +0 -1
- package/dist/clean-html.d.ts.map +0 -1
- package/dist/clean-html.js.map +0 -1
- package/dist/cli-help.test.d.ts +0 -2
- package/dist/cli-help.test.d.ts.map +0 -1
- package/dist/cli-help.test.js +0 -98
- package/dist/cli-help.test.js.map +0 -1
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/cloud-client.d.ts.map +0 -1
- package/dist/cloud-client.js.map +0 -1
- package/dist/create-logger.d.ts.map +0 -1
- package/dist/create-logger.js.map +0 -1
- package/dist/debugger-examples-types.d.ts.map +0 -1
- package/dist/debugger-examples-types.js.map +0 -1
- package/dist/debugger-examples.d.ts.map +0 -1
- package/dist/debugger-examples.js.map +0 -1
- package/dist/debugger.d.ts.map +0 -1
- package/dist/debugger.js.map +0 -1
- package/dist/diff-utils.d.ts.map +0 -1
- package/dist/diff-utils.js.map +0 -1
- package/dist/diff-utils.test.d.ts +0 -2
- package/dist/diff-utils.test.d.ts.map +0 -1
- package/dist/diff-utils.test.js +0 -137
- package/dist/diff-utils.test.js.map +0 -1
- package/dist/doctor.d.ts.map +0 -1
- package/dist/doctor.js.map +0 -1
- package/dist/doctor.test.d.ts +0 -2
- package/dist/doctor.test.d.ts.map +0 -1
- package/dist/doctor.test.js +0 -208
- package/dist/doctor.test.js.map +0 -1
- package/dist/editor-examples.d.ts.map +0 -1
- package/dist/editor-examples.js.map +0 -1
- package/dist/editor.d.ts.map +0 -1
- package/dist/editor.js.map +0 -1
- package/dist/env-compat.d.ts.map +0 -1
- package/dist/env-compat.js.map +0 -1
- package/dist/executor.d.ts.map +0 -1
- package/dist/executor.js.map +0 -1
- package/dist/executor.unit.test.d.ts +0 -2
- package/dist/executor.unit.test.d.ts.map +0 -1
- package/dist/executor.unit.test.js +0 -143
- package/dist/executor.unit.test.js.map +0 -1
- package/dist/extension-connection.test.d.ts +0 -2
- package/dist/extension-connection.test.d.ts.map +0 -1
- package/dist/extension-connection.test.js +0 -708
- package/dist/extension-connection.test.js.map +0 -1
- package/dist/extension-icon-warning.test.d.ts +0 -2
- package/dist/extension-icon-warning.test.d.ts.map +0 -1
- package/dist/extension-icon-warning.test.js +0 -33
- package/dist/extension-icon-warning.test.js.map +0 -1
- package/dist/ghost-browser.d.ts.map +0 -1
- package/dist/ghost-browser.js.map +0 -1
- package/dist/ghost-cursor-controller.d.ts.map +0 -1
- package/dist/ghost-cursor-controller.js.map +0 -1
- package/dist/ghost-cursor.d.ts.map +0 -1
- package/dist/ghost-cursor.js.map +0 -1
- package/dist/htmlrewrite.d.ts.map +0 -1
- package/dist/htmlrewrite.js.map +0 -1
- package/dist/htmlrewrite.test.d.ts +0 -2
- package/dist/htmlrewrite.test.d.ts.map +0 -1
- package/dist/htmlrewrite.test.js +0 -7975
- package/dist/htmlrewrite.test.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/kill-port.d.ts.map +0 -1
- package/dist/kill-port.js.map +0 -1
- package/dist/kitty-graphics.d.ts.map +0 -1
- package/dist/kitty-graphics.js.map +0 -1
- package/dist/kitty-graphics.test.d.ts +0 -2
- package/dist/kitty-graphics.test.d.ts.map +0 -1
- package/dist/kitty-graphics.test.js +0 -125
- package/dist/kitty-graphics.test.js.map +0 -1
- package/dist/locator-selector.test.d.ts +0 -2
- package/dist/locator-selector.test.d.ts.map +0 -1
- package/dist/locator-selector.test.js +0 -98
- package/dist/locator-selector.test.js.map +0 -1
- package/dist/mcp-client.d.ts +0 -20
- package/dist/mcp-client.d.ts.map +0 -1
- package/dist/mcp-client.js +0 -56
- package/dist/mcp-client.js.map +0 -1
- package/dist/mcp.d.ts.map +0 -1
- package/dist/mcp.js.map +0 -1
- package/dist/on-mouse-action.test.d.ts +0 -2
- package/dist/on-mouse-action.test.d.ts.map +0 -1
- package/dist/on-mouse-action.test.js +0 -180
- package/dist/on-mouse-action.test.js.map +0 -1
- package/dist/options-page.test.d.ts +0 -2
- package/dist/options-page.test.d.ts.map +0 -1
- package/dist/options-page.test.js +0 -773
- package/dist/options-page.test.js.map +0 -1
- package/dist/package-paths.d.ts.map +0 -1
- package/dist/package-paths.js.map +0 -1
- package/dist/page-markdown.d.ts.map +0 -1
- package/dist/page-markdown.js.map +0 -1
- package/dist/performance-examples.d.ts.map +0 -1
- package/dist/performance-examples.js.map +0 -1
- package/dist/playwright-import.d.ts.map +0 -1
- package/dist/playwright-import.js.map +0 -1
- package/dist/popup-relocation.test.d.ts +0 -7
- package/dist/popup-relocation.test.d.ts.map +0 -1
- package/dist/popup-relocation.test.js +0 -139
- package/dist/popup-relocation.test.js.map +0 -1
- package/dist/product-paths.d.ts.map +0 -1
- package/dist/product-paths.js.map +0 -1
- package/dist/product-paths.test.d.ts +0 -2
- package/dist/product-paths.test.d.ts.map +0 -1
- package/dist/product-paths.test.js +0 -39
- package/dist/product-paths.test.js.map +0 -1
- package/dist/protocol.d.ts.map +0 -1
- package/dist/protocol.js.map +0 -1
- package/dist/protocol.test.d.ts +0 -2
- package/dist/protocol.test.d.ts.map +0 -1
- package/dist/protocol.test.js +0 -31
- package/dist/protocol.test.js.map +0 -1
- package/dist/react-source.d.ts.map +0 -1
- package/dist/react-source.js.map +0 -1
- package/dist/relay-client.d.ts.map +0 -1
- package/dist/relay-client.js.map +0 -1
- package/dist/relay-client.test.d.ts +0 -2
- package/dist/relay-client.test.d.ts.map +0 -1
- package/dist/relay-client.test.js +0 -305
- package/dist/relay-client.test.js.map +0 -1
- package/dist/relay-core.test.d.ts +0 -2
- package/dist/relay-core.test.d.ts.map +0 -1
- package/dist/relay-core.test.js +0 -1427
- package/dist/relay-core.test.js.map +0 -1
- package/dist/relay-navigation.test.d.ts +0 -2
- package/dist/relay-navigation.test.d.ts.map +0 -1
- package/dist/relay-navigation.test.js +0 -661
- package/dist/relay-navigation.test.js.map +0 -1
- package/dist/relay-session.test.d.ts +0 -2
- package/dist/relay-session.test.d.ts.map +0 -1
- package/dist/relay-session.test.js +0 -1121
- package/dist/relay-session.test.js.map +0 -1
- package/dist/relay-state.d.ts.map +0 -1
- package/dist/relay-state.js.map +0 -1
- package/dist/relay-state.test.d.ts +0 -2
- package/dist/relay-state.test.d.ts.map +0 -1
- package/dist/relay-state.test.js +0 -594
- package/dist/relay-state.test.js.map +0 -1
- package/dist/replay-ai-index.d.ts.map +0 -1
- package/dist/replay-ai-index.js.map +0 -1
- package/dist/replay-ai-index.test.d.ts +0 -2
- package/dist/replay-ai-index.test.d.ts.map +0 -1
- package/dist/replay-ai-index.test.js +0 -255
- package/dist/replay-ai-index.test.js.map +0 -1
- package/dist/replay-cli.test.d.ts +0 -2
- package/dist/replay-cli.test.d.ts.map +0 -1
- package/dist/replay-cli.test.js +0 -275
- package/dist/replay-cli.test.js.map +0 -1
- package/dist/replay-eval.d.ts.map +0 -1
- package/dist/replay-eval.js.map +0 -1
- package/dist/replay-handoff.d.ts.map +0 -1
- package/dist/replay-handoff.js.map +0 -1
- package/dist/replay-handoff.test.d.ts +0 -2
- package/dist/replay-handoff.test.d.ts.map +0 -1
- package/dist/replay-handoff.test.js +0 -123
- package/dist/replay-handoff.test.js.map +0 -1
- package/dist/replay-workflow-compiler.d.ts.map +0 -1
- package/dist/replay-workflow-compiler.js.map +0 -1
- package/dist/replay-workflow-compiler.test.d.ts +0 -2
- package/dist/replay-workflow-compiler.test.d.ts.map +0 -1
- package/dist/replay-workflow-compiler.test.js +0 -223
- package/dist/replay-workflow-compiler.test.js.map +0 -1
- package/dist/rrweb-recording-relay.d.ts.map +0 -1
- package/dist/rrweb-recording-relay.js.map +0 -1
- package/dist/rrweb-recording-relay.test.d.ts +0 -2
- package/dist/rrweb-recording-relay.test.d.ts.map +0 -1
- package/dist/rrweb-recording-relay.test.js +0 -85
- package/dist/rrweb-recording-relay.test.js.map +0 -1
- package/dist/rrweb-recording.d.ts.map +0 -1
- package/dist/rrweb-recording.js.map +0 -1
- package/dist/scoped-fs.d.ts.map +0 -1
- package/dist/scoped-fs.js.map +0 -1
- package/dist/scoped-fs.test.d.ts +0 -5
- package/dist/scoped-fs.test.d.ts.map +0 -1
- package/dist/scoped-fs.test.js +0 -73
- package/dist/scoped-fs.test.js.map +0 -1
- package/dist/skill-stub.test.d.ts +0 -2
- package/dist/skill-stub.test.d.ts.map +0 -1
- package/dist/skill-stub.test.js +0 -22
- package/dist/skill-stub.test.js.map +0 -1
- package/dist/snapshot-tools.test.d.ts +0 -2
- package/dist/snapshot-tools.test.d.ts.map +0 -1
- package/dist/snapshot-tools.test.js +0 -856
- package/dist/snapshot-tools.test.js.map +0 -1
- package/dist/start-relay-server.d.ts.map +0 -1
- package/dist/start-relay-server.js.map +0 -1
- package/dist/styles-examples.d.ts.map +0 -1
- package/dist/styles-examples.js.map +0 -1
- package/dist/styles.d.ts.map +0 -1
- package/dist/styles.js.map +0 -1
- package/dist/tabwright-agent-skill.d.ts.map +0 -1
- package/dist/tabwright-agent-skill.js.map +0 -1
- package/dist/tabwright-agent-skill.test.d.ts +0 -2
- package/dist/tabwright-agent-skill.test.d.ts.map +0 -1
- package/dist/tabwright-agent-skill.test.js +0 -51
- package/dist/tabwright-agent-skill.test.js.map +0 -1
- package/dist/test-declarations.d.ts.map +0 -1
- package/dist/test-declarations.js.map +0 -1
- package/dist/test-utils.d.ts +0 -69
- package/dist/test-utils.d.ts.map +0 -1
- package/dist/test-utils.js +0 -448
- package/dist/test-utils.js.map +0 -1
- package/dist/test-utils.test.d.ts +0 -2
- package/dist/test-utils.test.d.ts.map +0 -1
- package/dist/test-utils.test.js +0 -55
- package/dist/test-utils.test.js.map +0 -1
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils.js.map +0 -1
- package/dist/wait-for-page-load.d.ts.map +0 -1
- package/dist/wait-for-page-load.js.map +0 -1
- package/dist/workflow-capability.d.ts.map +0 -1
- package/dist/workflow-capability.js.map +0 -1
- package/dist/workflow-script-flow.test.d.ts +0 -2
- package/dist/workflow-script-flow.test.d.ts.map +0 -1
- package/dist/workflow-script-flow.test.js +0 -285
- package/dist/workflow-script-flow.test.js.map +0 -1
- package/src/__snapshots__/x.com.processed.html +0 -1003
- package/src/__snapshots__/x.com.processed.withStyles.html +0 -2720
- package/src/a11y-client.ts +0 -241
- package/src/aria-snapshot.test.ts +0 -311
- package/src/aria-snapshot.ts +0 -1681
- package/src/aria-snapshot.unit.test.ts +0 -615
- package/src/aria-snapshots/github-interactive.txt +0 -193
- package/src/aria-snapshots/github-raw.txt +0 -309
- package/src/aria-snapshots/hackernews-interactive.txt +0 -477
- package/src/aria-snapshots/hackernews-raw.txt +0 -428
- package/src/aria-snapshots/prosemirror-interactive.txt +0 -66
- package/src/aria-snapshots/prosemirror-raw.txt +0 -145
- package/src/assets/aria-labels-hacker-news.png +0 -0
- package/src/assets/aria-labels-old-reddit.png +0 -0
- package/src/assets/cursors/screen-studio/pointer-macos-tahoe-data-url.ts +0 -5
- package/src/assets/cursors/screen-studio/pointer-macos-tahoe.svg +0 -18
- package/src/assets/x.com.html +0 -32946
- package/src/browser-config.ts +0 -179
- package/src/browser-install.ts +0 -284
- package/src/browser-launch.ts +0 -75
- package/src/builtin-capabilities.ts +0 -2765
- package/src/capability-agent-skill.ts +0 -305
- package/src/capability-auth-state.ts +0 -197
- package/src/capability-auth.ts +0 -249
- package/src/capability-cli-confirmation.test.ts +0 -90
- package/src/capability-options.test.ts +0 -89
- package/src/capability-options.ts +0 -57
- package/src/capability-package.test.ts +0 -204
- package/src/capability-package.ts +0 -555
- package/src/capability-registry.test.ts +0 -1905
- package/src/capability-registry.ts +0 -1234
- package/src/capability-runner.ts +0 -801
- package/src/capability-search-relevance.test.ts +0 -73
- package/src/capability-studio.test.ts +0 -45
- package/src/capability-studio.ts +0 -641
- package/src/cdp-log.test.ts +0 -131
- package/src/cdp-log.ts +0 -112
- package/src/cdp-relay.ts +0 -2944
- package/src/cdp-session.ts +0 -77
- package/src/cdp-types.ts +0 -158
- package/src/channel-owner-inspect.test.ts +0 -94
- package/src/chrome-discovery.test.ts +0 -50
- package/src/chrome-discovery.ts +0 -220
- package/src/clean-html.ts +0 -141
- package/src/cli-help.test.ts +0 -123
- package/src/cli.ts +0 -3181
- package/src/cloud-client.ts +0 -179
- package/src/create-logger.ts +0 -38
- package/src/debugger-examples-types.ts +0 -16
- package/src/debugger-examples.ts +0 -66
- package/src/debugger.ts +0 -708
- package/src/diff-utils.test.ts +0 -152
- package/src/diff-utils.ts +0 -70
- package/src/doctor.test.ts +0 -244
- package/src/doctor.ts +0 -321
- package/src/editor-examples.ts +0 -158
- package/src/editor.ts +0 -426
- package/src/env-compat.ts +0 -28
- package/src/executor.ts +0 -1824
- package/src/executor.unit.test.ts +0 -168
- package/src/extension-connection.test.ts +0 -855
- package/src/extension-icon-warning.test.ts +0 -45
- package/src/ghost-browser.ts +0 -149
- package/src/ghost-cursor-client.ts +0 -494
- package/src/ghost-cursor-controller.ts +0 -129
- package/src/ghost-cursor.ts +0 -123
- package/src/htmlrewrite.test.ts +0 -8008
- package/src/htmlrewrite.ts +0 -390
- package/src/index.ts +0 -53
- package/src/kill-port.ts +0 -219
- package/src/kitty-graphics.test.ts +0 -139
- package/src/kitty-graphics.ts +0 -79
- package/src/locator-selector.test.ts +0 -119
- package/src/mcp-client.ts +0 -78
- package/src/mcp.ts +0 -629
- package/src/on-mouse-action.test.ts +0 -226
- package/src/options-page.test.ts +0 -839
- package/src/package-paths.ts +0 -38
- package/src/page-markdown.ts +0 -240
- package/src/performance-examples.ts +0 -186
- package/src/playwright-import.ts +0 -59
- package/src/popup-relocation.test.ts +0 -163
- package/src/product-paths.test.ts +0 -47
- package/src/product-paths.ts +0 -28
- package/src/protocol.test.ts +0 -52
- package/src/protocol.ts +0 -351
- package/src/react-source.ts +0 -379
- package/src/relay-client.test.ts +0 -375
- package/src/relay-client.ts +0 -572
- package/src/relay-core.test.ts +0 -1603
- package/src/relay-navigation.test.ts +0 -790
- package/src/relay-session.test.ts +0 -1375
- package/src/relay-state.test.ts +0 -729
- package/src/relay-state.ts +0 -561
- package/src/replay-ai-index.test.ts +0 -278
- package/src/replay-ai-index.ts +0 -872
- package/src/replay-cli.test.ts +0 -325
- package/src/replay-eval.ts +0 -1039
- package/src/replay-handoff.test.ts +0 -163
- package/src/replay-handoff.ts +0 -109
- package/src/replay-workflow-compiler.test.ts +0 -250
- package/src/replay-workflow-compiler.ts +0 -700
- package/src/resource.md +0 -409
- package/src/rrweb-recording-relay.test.ts +0 -99
- package/src/rrweb-recording-relay.ts +0 -400
- package/src/rrweb-recording.ts +0 -322
- package/src/scoped-fs.test.ts +0 -80
- package/src/scoped-fs.ts +0 -420
- package/src/skill-stub.test.ts +0 -24
- package/src/snapshot-tools.test.ts +0 -1017
- package/src/snapshots/hacker-news-accessibility-full.md +0 -81
- package/src/snapshots/hacker-news-accessibility-interactive.md +0 -43
- package/src/snapshots/page-markdown-output.txt +0 -16
- package/src/snapshots/shadcn-ui-accessibility-full.md +0 -201
- package/src/snapshots/shadcn-ui-accessibility-interactive.md +0 -109
- package/src/start-relay-server.ts +0 -69
- package/src/styles-examples.ts +0 -84
- package/src/styles.ts +0 -343
- package/src/tabwright-agent-skill.test.ts +0 -61
- package/src/tabwright-agent-skill.ts +0 -105
- package/src/test-declarations.ts +0 -13
- package/src/test-utils.test.ts +0 -70
- package/src/test-utils.ts +0 -566
- package/src/utils.ts +0 -78
- package/src/wait-for-page-load.ts +0 -198
- package/src/workflow-capability.ts +0 -417
- package/src/workflow-script-flow.test.ts +0 -388
package/src/react-source.ts
DELETED
|
@@ -1,379 +0,0 @@
|
|
|
1
|
-
import fs from 'node:fs'
|
|
2
|
-
import path from 'node:path'
|
|
3
|
-
import { fileURLToPath } from 'node:url'
|
|
4
|
-
import type { Page, Locator, ElementHandle } from '@xmorse/playwright-core'
|
|
5
|
-
import type { ICDPSession } from './cdp-session.js'
|
|
6
|
-
|
|
7
|
-
export interface ReactSourceLocation {
|
|
8
|
-
fileName: string | null
|
|
9
|
-
lineNumber: number | null
|
|
10
|
-
columnNumber: number | null
|
|
11
|
-
componentName: string | null
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export type ReactSerializedProp =
|
|
15
|
-
| string
|
|
16
|
-
| number
|
|
17
|
-
| boolean
|
|
18
|
-
| null
|
|
19
|
-
| ReactSerializedProp[]
|
|
20
|
-
| { [key: string]: ReactSerializedProp }
|
|
21
|
-
|
|
22
|
-
export interface ReactComponentHierarchyItem {
|
|
23
|
-
componentName: string | null
|
|
24
|
-
source: Omit<ReactSourceLocation, 'componentName'> | null
|
|
25
|
-
props: ReactSerializedProp
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface ReactComponentInfo {
|
|
29
|
-
componentName: string | null
|
|
30
|
-
source: Omit<ReactSourceLocation, 'componentName'> | null
|
|
31
|
-
hierarchy: ReactComponentHierarchyItem[]
|
|
32
|
-
props: ReactSerializedProp
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
type ReactInspectableValue =
|
|
36
|
-
| string
|
|
37
|
-
| number
|
|
38
|
-
| boolean
|
|
39
|
-
| bigint
|
|
40
|
-
| symbol
|
|
41
|
-
| null
|
|
42
|
-
| undefined
|
|
43
|
-
| object
|
|
44
|
-
| ((...args: never[]) => ReactInspectableValue)
|
|
45
|
-
|
|
46
|
-
type BrowserElement = object
|
|
47
|
-
|
|
48
|
-
interface BippySourceFrame {
|
|
49
|
-
fileName?: string | null
|
|
50
|
-
lineNumber?: number | null
|
|
51
|
-
columnNumber?: number | null
|
|
52
|
-
functionName?: string | null
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
interface BippyFiber {
|
|
56
|
-
return?: BippyFiber | null
|
|
57
|
-
type?: ReactInspectableValue
|
|
58
|
-
memoizedProps?: ReactInspectableValue
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
interface BippyRuntime {
|
|
62
|
-
getFiberFromHostInstance(el: BrowserElement): BippyFiber | null
|
|
63
|
-
getSource(fiber: BippyFiber): Promise<BippySourceFrame | null>
|
|
64
|
-
getOwnerStack(fiber: BippyFiber): Promise<BippySourceFrame[]>
|
|
65
|
-
getDisplayName(type: ReactInspectableValue): string | null
|
|
66
|
-
isCompositeFiber(fiber: BippyFiber): boolean
|
|
67
|
-
normalizeFileName(fileName: string): string
|
|
68
|
-
isSourceFile(fileName: string): boolean
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
declare global {
|
|
72
|
-
var __bippy: BippyRuntime | undefined
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
let bippyCode: string | null = null
|
|
76
|
-
|
|
77
|
-
function getBippyCode(): string {
|
|
78
|
-
if (bippyCode) {
|
|
79
|
-
return bippyCode
|
|
80
|
-
}
|
|
81
|
-
const currentDir = path.dirname(fileURLToPath(import.meta.url))
|
|
82
|
-
const bippyPath = path.join(currentDir, '..', 'dist', 'bippy.js')
|
|
83
|
-
bippyCode = fs.readFileSync(bippyPath, 'utf-8')
|
|
84
|
-
return bippyCode
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
async function getPageFromTarget(target: Locator | ElementHandle): Promise<Page> {
|
|
88
|
-
if ('page' in target) {
|
|
89
|
-
return target.page()
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
const frame = await target.ownerFrame()
|
|
93
|
-
if (!frame) {
|
|
94
|
-
throw new Error('Could not get frame from element handle')
|
|
95
|
-
}
|
|
96
|
-
return frame.page()
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
async function ensureBippy({ page, cdp }: { page: Page; cdp: ICDPSession }): Promise<void> {
|
|
100
|
-
const hasBippy = await page.evaluate(() => {
|
|
101
|
-
return !!globalThis.__bippy
|
|
102
|
-
})
|
|
103
|
-
|
|
104
|
-
if (hasBippy) {
|
|
105
|
-
return
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
const code = getBippyCode()
|
|
109
|
-
await cdp.send('Runtime.evaluate', { expression: code })
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export async function getReactSource({
|
|
113
|
-
locator,
|
|
114
|
-
cdp: cdpSession,
|
|
115
|
-
}: {
|
|
116
|
-
locator: Locator | ElementHandle
|
|
117
|
-
cdp: ICDPSession
|
|
118
|
-
}): Promise<ReactSourceLocation | null> {
|
|
119
|
-
const cdp = cdpSession
|
|
120
|
-
const page = await getPageFromTarget(locator)
|
|
121
|
-
await ensureBippy({ page, cdp })
|
|
122
|
-
|
|
123
|
-
const evaluateReactSource = async (
|
|
124
|
-
el: BrowserElement,
|
|
125
|
-
): Promise<(ReactSourceLocation & { _notFound?: undefined }) | { _notFound: 'fiber' | 'source' }> => {
|
|
126
|
-
const bippy = globalThis.__bippy
|
|
127
|
-
if (!bippy) {
|
|
128
|
-
throw new Error('bippy not loaded')
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
// bippy.normalizeFileName strips "/app-pages-browser/" but not the parenthesized
|
|
132
|
-
// form "/(app-pages-browser)/" that Next.js webpack actually uses. This strips
|
|
133
|
-
// all webpack layer prefixes like (app-pages-browser), (ssr), (rsc), etc.
|
|
134
|
-
const cleanName = (name: string): string => {
|
|
135
|
-
let f = bippy.normalizeFileName(name)
|
|
136
|
-
f = f.replace(/^\/?\([-\w]+\)\//, '')
|
|
137
|
-
f = f.replace(/^\.\//, '')
|
|
138
|
-
return f
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
const fiber = bippy.getFiberFromHostInstance(el)
|
|
142
|
-
if (!fiber) {
|
|
143
|
-
return { _notFound: 'fiber' as const }
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
const source = await bippy.getSource(fiber)
|
|
147
|
-
if (source) {
|
|
148
|
-
return {
|
|
149
|
-
fileName: source.fileName ? cleanName(source.fileName) : null,
|
|
150
|
-
lineNumber: source.lineNumber ?? null,
|
|
151
|
-
columnNumber: source.columnNumber ?? null,
|
|
152
|
-
componentName: source.functionName ?? bippy.getDisplayName(fiber.type) ?? null,
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
const ownerStack = await bippy.getOwnerStack(fiber)
|
|
157
|
-
for (const frame of ownerStack) {
|
|
158
|
-
if (frame.fileName && bippy.isSourceFile(frame.fileName)) {
|
|
159
|
-
return {
|
|
160
|
-
fileName: cleanName(frame.fileName),
|
|
161
|
-
lineNumber: frame.lineNumber ?? null,
|
|
162
|
-
columnNumber: frame.columnNumber ?? null,
|
|
163
|
-
componentName: frame.functionName ?? null,
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
return { _notFound: 'source' as const }
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
const resolveResult = (
|
|
172
|
-
result: (ReactSourceLocation & { _notFound?: undefined }) | { _notFound: 'fiber' | 'source' },
|
|
173
|
-
): ReactSourceLocation | null => {
|
|
174
|
-
if (result?._notFound) {
|
|
175
|
-
if (result._notFound === 'fiber') {
|
|
176
|
-
console.warn('[getReactSource] no fiber found - is this a React element?')
|
|
177
|
-
} else {
|
|
178
|
-
console.warn('[getReactSource] no source location found - is this a React dev build?')
|
|
179
|
-
}
|
|
180
|
-
return null
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
return result
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
if ('page' in locator) {
|
|
187
|
-
return resolveResult(await locator.evaluate(evaluateReactSource))
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
return resolveResult(await locator.evaluate(evaluateReactSource))
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
export async function getReactComponentInfo({
|
|
194
|
-
locator,
|
|
195
|
-
cdp: cdpSession,
|
|
196
|
-
}: {
|
|
197
|
-
locator: Locator | ElementHandle
|
|
198
|
-
cdp: ICDPSession
|
|
199
|
-
}): Promise<ReactComponentInfo | null> {
|
|
200
|
-
const cdp = cdpSession
|
|
201
|
-
const page = await getPageFromTarget(locator)
|
|
202
|
-
await ensureBippy({ page, cdp })
|
|
203
|
-
|
|
204
|
-
const evaluateReactComponentInfo = async (el: BrowserElement): Promise<ReactComponentInfo | null> => {
|
|
205
|
-
const bippy = globalThis.__bippy
|
|
206
|
-
if (!bippy) {
|
|
207
|
-
throw new Error('bippy not loaded')
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
// bippy.normalizeFileName strips "/app-pages-browser/" but not the parenthesized
|
|
211
|
-
// form "/(app-pages-browser)/" that Next.js webpack actually uses. This strips
|
|
212
|
-
// all webpack layer prefixes like (app-pages-browser), (ssr), (rsc), etc.
|
|
213
|
-
const cleanName = (name: string): string => {
|
|
214
|
-
let f = bippy.normalizeFileName(name)
|
|
215
|
-
f = f.replace(/^\/?\([-\w]+\)\//, '')
|
|
216
|
-
f = f.replace(/^\.\//, '')
|
|
217
|
-
return f
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
const serializeReactValue = (
|
|
221
|
-
value: ReactInspectableValue,
|
|
222
|
-
options: { depth: number; seen: WeakSet<object> },
|
|
223
|
-
): ReactSerializedProp => {
|
|
224
|
-
if (value === null) {
|
|
225
|
-
return null
|
|
226
|
-
}
|
|
227
|
-
if (typeof value === 'string') {
|
|
228
|
-
return value.length > 300 ? `${value.slice(0, 300)}…[truncated]` : value
|
|
229
|
-
}
|
|
230
|
-
if (typeof value === 'number' || typeof value === 'boolean') {
|
|
231
|
-
return value
|
|
232
|
-
}
|
|
233
|
-
if (typeof value === 'undefined') {
|
|
234
|
-
return '[undefined]'
|
|
235
|
-
}
|
|
236
|
-
if (typeof value === 'function') {
|
|
237
|
-
return '[function]'
|
|
238
|
-
}
|
|
239
|
-
if (typeof value === 'symbol') {
|
|
240
|
-
return '[symbol]'
|
|
241
|
-
}
|
|
242
|
-
if (typeof value === 'bigint') {
|
|
243
|
-
return `${value.toString()}n`
|
|
244
|
-
}
|
|
245
|
-
if (typeof value !== 'object') {
|
|
246
|
-
return `[${typeof value}]`
|
|
247
|
-
}
|
|
248
|
-
const objectTag = Object.prototype.toString.call(value)
|
|
249
|
-
if (objectTag.includes('Element]') || objectTag === '[object Window]' || objectTag === '[object Document]') {
|
|
250
|
-
return '[dom-node]'
|
|
251
|
-
}
|
|
252
|
-
if (options.seen.has(value)) {
|
|
253
|
-
return '[circular]'
|
|
254
|
-
}
|
|
255
|
-
if (options.depth >= 3) {
|
|
256
|
-
return '[max-depth]'
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
options.seen.add(value)
|
|
260
|
-
|
|
261
|
-
if (Array.isArray(value)) {
|
|
262
|
-
const items = value.slice(0, 20).map((item) => {
|
|
263
|
-
return serializeReactValue(item, { depth: options.depth + 1, seen: options.seen })
|
|
264
|
-
})
|
|
265
|
-
if (value.length > 20) {
|
|
266
|
-
items.push(`…[${value.length - 20} more]`)
|
|
267
|
-
}
|
|
268
|
-
options.seen.delete(value)
|
|
269
|
-
return items
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
const entries = Object.entries(value).slice(0, 20)
|
|
273
|
-
const result: { [key: string]: ReactSerializedProp } = Object.fromEntries(
|
|
274
|
-
entries.map(([key, childValue]) => {
|
|
275
|
-
return [key, serializeReactValue(childValue, { depth: options.depth + 1, seen: options.seen })]
|
|
276
|
-
}),
|
|
277
|
-
)
|
|
278
|
-
const totalKeys = Object.keys(value).length
|
|
279
|
-
if (totalKeys > 20) {
|
|
280
|
-
result['…'] = `[${totalKeys - 20} more keys]`
|
|
281
|
-
}
|
|
282
|
-
options.seen.delete(value)
|
|
283
|
-
return result
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
const getSourceForFiber = async (fiber: BippyFiber): Promise<Omit<ReactSourceLocation, 'componentName'> | null> => {
|
|
287
|
-
try {
|
|
288
|
-
const source = await bippy.getSource(fiber)
|
|
289
|
-
if (source?.fileName) {
|
|
290
|
-
return {
|
|
291
|
-
fileName: cleanName(source.fileName),
|
|
292
|
-
lineNumber: source.lineNumber ?? null,
|
|
293
|
-
columnNumber: source.columnNumber ?? null,
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
const ownerStack = await bippy.getOwnerStack(fiber)
|
|
298
|
-
const frame = ownerStack.find((ownerFrame) => {
|
|
299
|
-
return ownerFrame.fileName ? bippy.isSourceFile(ownerFrame.fileName) : false
|
|
300
|
-
})
|
|
301
|
-
if (frame?.fileName) {
|
|
302
|
-
return {
|
|
303
|
-
fileName: cleanName(frame.fileName),
|
|
304
|
-
lineNumber: frame.lineNumber ?? null,
|
|
305
|
-
columnNumber: frame.columnNumber ?? null,
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
} catch {
|
|
309
|
-
return null
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
return null
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
let fiber: BippyFiber | null = null
|
|
316
|
-
try {
|
|
317
|
-
fiber = bippy.getFiberFromHostInstance(el)
|
|
318
|
-
} catch {
|
|
319
|
-
return null
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
if (!fiber) {
|
|
323
|
-
return null
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
const componentFibers: BippyFiber[] = []
|
|
327
|
-
let current: BippyFiber | null | undefined = fiber
|
|
328
|
-
while (current && componentFibers.length < 20) {
|
|
329
|
-
try {
|
|
330
|
-
if (bippy.isCompositeFiber(current)) {
|
|
331
|
-
componentFibers.push(current)
|
|
332
|
-
}
|
|
333
|
-
} catch {
|
|
334
|
-
// Ignore malformed or unsupported fibers and keep walking upward.
|
|
335
|
-
}
|
|
336
|
-
current = current.return
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
if (componentFibers.length === 0) {
|
|
340
|
-
return null
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
const hierarchy = await Promise.all(
|
|
344
|
-
componentFibers.map(async (componentFiber): Promise<ReactComponentHierarchyItem> => {
|
|
345
|
-
const componentName = (() => {
|
|
346
|
-
try {
|
|
347
|
-
return componentFiber.type ? bippy.getDisplayName(componentFiber.type) : null
|
|
348
|
-
} catch {
|
|
349
|
-
return null
|
|
350
|
-
}
|
|
351
|
-
})()
|
|
352
|
-
|
|
353
|
-
return {
|
|
354
|
-
componentName,
|
|
355
|
-
source: await getSourceForFiber(componentFiber),
|
|
356
|
-
props: serializeReactValue(componentFiber.memoizedProps, { depth: 0, seen: new WeakSet<object>() }),
|
|
357
|
-
}
|
|
358
|
-
}),
|
|
359
|
-
)
|
|
360
|
-
|
|
361
|
-
const nearest = hierarchy[0]
|
|
362
|
-
if (!nearest) {
|
|
363
|
-
return null
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
return {
|
|
367
|
-
componentName: nearest.componentName,
|
|
368
|
-
source: nearest.source,
|
|
369
|
-
hierarchy,
|
|
370
|
-
props: nearest.props,
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
if ('page' in locator) {
|
|
375
|
-
return await locator.evaluate(evaluateReactComponentInfo)
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
return await locator.evaluate(evaluateReactComponentInfo)
|
|
379
|
-
}
|