{"_id":"standard-navigation","_rev":"9-fa16cf835a009c57ac5d893c0b62044e","name":"standard-navigation","dist-tags":{"latest":"0.0.9"},"versions":{"0.0.1":{"name":"standard-navigation","version":"0.0.1","keywords":["react-navigation","expo-router"],"author":{"name":"Satyajit Sahoo","email":"satyajit.happy@gmail.com"},"license":"MIT","_id":"standard-navigation@0.0.1","maintainers":[{"name":"satya164","email":"satyajit.happy@gmail.com"}],"homepage":"https://github.com/react-navigation/standard-navigation#readme","bugs":{"url":"https://github.com/react-navigation/standard-navigation/issues"},"dist":{"shasum":"8590eafdd9403986f48cd0712de04cede595e9c9","tarball":"https://registry.npmjs.org/standard-navigation/-/standard-navigation-0.0.1.tgz","fileCount":4,"integrity":"sha512-d2fCcq6fhlA73EPOuGMe1B5vvcxkWcl0uYahgblj6lu4SaPzPL+tob7rZ009TPD/6G9OcnL1cn2l56lFMokGdQ==","signatures":[{"sig":"MEQCIHsZl2Wfa0DfUz1Lvc865fSp0s8TAmzQgaEJ3qAVPSCdAiBCAxY2Fs3mKRaWRYLW0+3z/5fyuzDvkD7xBC0edBev2A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7374},"main":"src/index.tsx","type":"module","gitHead":"2c058f25805ade1ddf14995b1b1734ee64fe1873","scripts":{"prepare":"tsc"},"_npmUser":{"name":"satya164","email":"satyajit.happy@gmail.com"},"repository":{"url":"git+ssh://git@github.com/react-navigation/standard-navigation.git","type":"git"},"_npmVersion":"11.6.2","description":"Standard navigation API for navigation libraries","directories":{},"_nodeVersion":"24.13.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@types/react":"^19.2.14"},"_npmOperationalInternal":{"tmp":"tmp/standard-navigation_0.0.1_1779013682630_0.1284343733059936","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"standard-navigation","version":"0.0.2","keywords":["react-navigation","expo-router"],"author":{"name":"Satyajit Sahoo","email":"satyajit.happy@gmail.com"},"license":"MIT","_id":"standard-navigation@0.0.2","maintainers":[{"name":"satya164","email":"satyajit.happy@gmail.com"}],"homepage":"https://github.com/react-navigation/standard-navigation#readme","bugs":{"url":"https://github.com/react-navigation/standard-navigation/issues"},"dist":{"shasum":"03d1663138e86e1c73491834d8337fa38991b63d","tarball":"https://registry.npmjs.org/standard-navigation/-/standard-navigation-0.0.2.tgz","fileCount":3,"integrity":"sha512-DCV1IWB/FE2v5dfMBfu84959DBCvta/SvtiiiB067X1BntvInCUsmiy4S4PSmBCUUxSNIWyZcN+mDfkJGvDGlw==","signatures":[{"sig":"MEUCIHmuNKnbp0A3GU2zr0pS8VqlpF6q4PvtM2QLgTgGUvsxAiEAuAMfCPpMHHIdvodVj674xDFvDSS2GJjuiEigROLnJsI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3988},"main":"lib/src/index.js","type":"module","types":"lib/src/index.d.ts","gitHead":"ab9497fe7de45391e46b5b0b4bd91dc9d1582ea0","scripts":{"prepare":"tsc"},"_npmUser":{"name":"satya164","email":"satyajit.happy@gmail.com"},"repository":{"url":"git+ssh://git@github.com/react-navigation/standard-navigation.git","type":"git"},"_npmVersion":"11.6.2","description":"Standard navigation API for navigation libraries","directories":{},"_nodeVersion":"24.13.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@types/react":"^19.2.14"},"_npmOperationalInternal":{"tmp":"tmp/standard-navigation_0.0.2_1779370105630_0.4520980111406381","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"standard-navigation","version":"0.0.3","keywords":["react-navigation","expo-router"],"author":{"name":"Satyajit Sahoo","email":"satyajit.happy@gmail.com"},"license":"MIT","_id":"standard-navigation@0.0.3","maintainers":[{"name":"satya164","email":"satyajit.happy@gmail.com"}],"homepage":"https://github.com/react-navigation/standard-navigation#readme","bugs":{"url":"https://github.com/react-navigation/standard-navigation/issues"},"dist":{"shasum":"217840d45c4fe668e998fd9fe4f6c2378d705100","tarball":"https://registry.npmjs.org/standard-navigation/-/standard-navigation-0.0.3.tgz","fileCount":4,"integrity":"sha512-JPdhcn5n36Io6cDsmQSWUSW/Vw30uW6zafqdJP+DaGu8Lvab01wOeMwVeqTACHVXq+eDiG11K3uHF+fHpOR/Dw==","signatures":[{"sig":"MEQCIC0KerQtfKrWLvXaSp47prBYFJGrwOKf9RlgmKy7QLtxAiALUmBsTbuatGtQ8Td5XKNcYWHq/DZDyLpuNs7RLhe8xg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6646},"main":"lib/src/index.js","type":"module","types":"lib/src/index.d.ts","gitHead":"2338ee71515a3436c2e6891f3c4f616466694258","scripts":{"prepare":"tsc"},"_npmUser":{"name":"satya164","email":"satyajit.happy@gmail.com"},"repository":{"url":"git+ssh://git@github.com/react-navigation/standard-navigation.git","type":"git"},"_npmVersion":"11.6.2","description":"Standard navigation API for navigation libraries","directories":{},"_nodeVersion":"24.13.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@types/react":"^19.2.14"},"_npmOperationalInternal":{"tmp":"tmp/standard-navigation_0.0.3_1779372382998_0.12255896622095541","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"standard-navigation","version":"0.0.4","keywords":["react-navigation","expo-router"],"author":{"name":"Satyajit Sahoo","email":"satyajit.happy@gmail.com"},"license":"MIT","_id":"standard-navigation@0.0.4","maintainers":[{"name":"satya164","email":"satyajit.happy@gmail.com"}],"homepage":"https://github.com/react-navigation/standard-navigation#readme","bugs":{"url":"https://github.com/react-navigation/standard-navigation/issues"},"dist":{"shasum":"22d25ba9116e66b63f012e1ccea03035c429abca","tarball":"https://registry.npmjs.org/standard-navigation/-/standard-navigation-0.0.4.tgz","fileCount":4,"integrity":"sha512-WocAf0QiFQKfuQMzrpdae2vQPguKPIGRk1dSxqrDqUVh/IinWPqXeQWhTc3Jbfhw0DEpJAHSXdJc4f03LlYhmg==","signatures":[{"sig":"MEUCIAtfjmXK3WWwta+oqORhaoksRK2pvxl9mkPGoveCEVmNAiEAt5fmCBWZnvvDQapFlWjo0CZNi7xejFz02FkphHDQVUs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6804},"main":"lib/src/index.js","type":"module","types":"lib/src/index.d.ts","gitHead":"0237fa465be2c4b5d6a2ab48c18a95311d092bdb","scripts":{"prepare":"tsc"},"_npmUser":{"name":"satya164","email":"satyajit.happy@gmail.com"},"repository":{"url":"git+ssh://git@github.com/react-navigation/standard-navigation.git","type":"git"},"_npmVersion":"11.6.2","description":"Standard navigation API for navigation libraries","directories":{},"_nodeVersion":"24.13.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@types/react":"^19.2.14"},"_npmOperationalInternal":{"tmp":"tmp/standard-navigation_0.0.4_1779715487228_0.06077106164524171","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"standard-navigation","version":"0.0.5","keywords":["react-navigation","expo-router"],"author":{"name":"Satyajit Sahoo","email":"satyajit.happy@gmail.com"},"license":"MIT","_id":"standard-navigation@0.0.5","maintainers":[{"name":"satya164","email":"satyajit.happy@gmail.com"}],"homepage":"https://github.com/react-navigation/standard-navigation#readme","bugs":{"url":"https://github.com/react-navigation/standard-navigation/issues"},"dist":{"shasum":"8ce5fef5a251991f58ed69283bee5cc1d242625e","tarball":"https://registry.npmjs.org/standard-navigation/-/standard-navigation-0.0.5.tgz","fileCount":4,"integrity":"sha512-YAmzwAiiQVocZxO/VGPFiQHcu5pKiz09QIGC0MK6aRMoa3E0QkoTQgcqJr7ZZ3OMiNhu4DkaGElFI5htjOIDbw==","signatures":[{"sig":"MEUCIQCnsyZ66jc1CBP5s/3pFaWxeCIlmMT0RrEe06HEnp8zGwIgQ3pmlnKkyVAD8VudgZ/dFXsx1Ol1wDnRsLogyB3F0rA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7991},"main":"lib/src/index.js","type":"module","types":"lib/src/index.d.ts","gitHead":"0016fae7800b9f27bab91326697b740a6d2266dc","scripts":{"prepare":"tsc"},"_npmUser":{"name":"satya164","email":"satyajit.happy@gmail.com"},"repository":{"url":"git+ssh://git@github.com/react-navigation/standard-navigation.git","type":"git"},"_npmVersion":"11.6.2","description":"Standard navigation API for navigation libraries","directories":{},"_nodeVersion":"24.13.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@types/react":"^19.2.14"},"_npmOperationalInternal":{"tmp":"tmp/standard-navigation_0.0.5_1779811867979_0.32650304161651444","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"standard-navigation","version":"0.0.6","keywords":["react-navigation","expo-router"],"author":{"name":"Satyajit Sahoo","email":"satyajit.happy@gmail.com"},"license":"MIT","_id":"standard-navigation@0.0.6","maintainers":[{"name":"satya164","email":"satyajit.happy@gmail.com"}],"homepage":"https://github.com/react-navigation/standard-navigation#readme","bugs":{"url":"https://github.com/react-navigation/standard-navigation/issues"},"dist":{"shasum":"01695811d4460793a17d5b0400cd470215fab347","tarball":"https://registry.npmjs.org/standard-navigation/-/standard-navigation-0.0.6.tgz","fileCount":3,"integrity":"sha512-i7x5r11qOvbQ/shVks6gxokZpFjQftKUT7k7tp1Y4ncJuhQEhYtojTJGYsjQ9n6P6xeJpYa/MRgFwvh1DRHgvQ==","signatures":[{"sig":"MEUCICEr+o8B5P6Xj29ZGUg74rk5jwsu75vTrdOZ1Fkd6BrbAiEAyWvRf2Q4soHL3K4t32zZk94dUrBe3eFIMyU087XHG9o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5075},"main":"lib/src/index.js","type":"module","types":"lib/src/index.d.ts","gitHead":"d764fd8214ed0b31577a91c59034a9ddfa473313","scripts":{"prepare":"tsc"},"_npmUser":{"name":"satya164","email":"satyajit.happy@gmail.com"},"repository":{"url":"git+ssh://git@github.com/react-navigation/standard-navigation.git","type":"git"},"_npmVersion":"11.6.2","description":"Standard navigation API for navigation libraries","directories":{},"_nodeVersion":"24.13.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@types/react":"^19.2.14"},"_npmOperationalInternal":{"tmp":"tmp/standard-navigation_0.0.6_1780507901293_0.07710486207986711","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"standard-navigation","version":"0.0.7","keywords":["react-navigation","expo-router"],"author":{"name":"Satyajit Sahoo","email":"satyajit.happy@gmail.com"},"license":"MIT","_id":"standard-navigation@0.0.7","maintainers":[{"name":"satya164","email":"satyajit.happy@gmail.com"}],"homepage":"https://github.com/react-navigation/standard-navigation#readme","bugs":{"url":"https://github.com/react-navigation/standard-navigation/issues"},"dist":{"shasum":"8c5265c4244446e0fb2b4bc9861a9979dd34f22f","tarball":"https://registry.npmjs.org/standard-navigation/-/standard-navigation-0.0.7.tgz","fileCount":4,"integrity":"sha512-NCGLCNyuXrFOkGHxdNZFnpsehGtiq1oXbPhKl7ZuxFO5J//H2evqqOchmD4YwEUJnkjO4kH9Xp4hQX6hdAYCKQ==","signatures":[{"sig":"MEYCIQCmN/ofDpGEyZ6+JM3zoPtGh+Mj/sFuIJz90v02cOzTaQIhAIVuUILBmq0NowH0pSU10YnWLAkyzvZtxV0gIZOsT1OS","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8366},"main":"lib/src/index.js","type":"module","types":"lib/src/index.d.ts","gitHead":"c6e04f4bc6790eb2fe700a0a6947b0489a442cd3","scripts":{"prepare":"tsc"},"_npmUser":{"name":"satya164","email":"satyajit.happy@gmail.com"},"repository":{"url":"git+ssh://git@github.com/react-navigation/standard-navigation.git","type":"git"},"_npmVersion":"11.6.2","description":"Standard navigation API for navigation libraries","directories":{},"_nodeVersion":"24.13.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@types/react":"^19.2.14"},"_npmOperationalInternal":{"tmp":"tmp/standard-navigation_0.0.7_1780600302071_0.11367913055178058","host":"s3://npm-registry-packages-npm-production"}},"0.0.8":{"name":"standard-navigation","version":"0.0.8","keywords":["react-navigation","expo-router"],"author":{"name":"Satyajit Sahoo","email":"satyajit.happy@gmail.com"},"license":"MIT","_id":"standard-navigation@0.0.8","maintainers":[{"name":"satya164","email":"satyajit.happy@gmail.com"}],"homepage":"https://github.com/react-navigation/standard-navigation#readme","bugs":{"url":"https://github.com/react-navigation/standard-navigation/issues"},"dist":{"shasum":"aef79bef130ec8ba0a9c070d3a728d96d68df8a8","tarball":"https://registry.npmjs.org/standard-navigation/-/standard-navigation-0.0.8.tgz","fileCount":4,"integrity":"sha512-TyVbo7INUDWtsUWDFn8RR7kwR87U0S4xHfLfbbnyeC581TmmyqQ+eM+nPw8rQTSD8QitRVcYfPaSHr/QJiUy1g==","signatures":[{"sig":"MEQCIDppOrBvEYNcQWPJ3NQqIv5TEhzO/YYGi6zJHLE7bPpNAiABuuLnNjjtemWuRE1FCUOdBwNZoQ7t41u6U7uI+WyCAg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8548},"main":"lib/src/index.js","type":"module","types":"lib/src/index.d.ts","gitHead":"4b038b914b71549d54655a81eae9ed502b4780d4","scripts":{"prepare":"tsc"},"_npmUser":{"name":"satya164","email":"satyajit.happy@gmail.com"},"repository":{"url":"git+ssh://git@github.com/react-navigation/standard-navigation.git","type":"git"},"_npmVersion":"11.6.2","description":"Standard navigation API for navigation libraries","directories":{},"_nodeVersion":"24.13.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@types/react":"^19.2.14"},"peerDependencies":{"react":"*"},"_npmOperationalInternal":{"tmp":"tmp/standard-navigation_0.0.8_1784206000699_0.7538161080986008","host":"s3://npm-registry-packages-npm-production"}},"0.0.9":{"_id":"standard-navigation@0.0.9","bugs":{"url":"https://github.com/react-navigation/standard-navigation/issues"},"dist":{"shasum":"acdfb0a9c1623fa7298dfa5f49b176ec18917d4e","tarball":"https://registry.npmjs.org/standard-navigation/-/standard-navigation-0.0.9.tgz","fileCount":5,"integrity":"sha512-wPyhORF3kazxGp2lOOBrx5fFPzUNp3psBrKzkSrJRhs8/bk6gjjVrHq5mjz+4FBA9CfFl2zoxiirgEhqv4NOsw==","signatures":[{"sig":"MEYCIQDfiRPFEcKJNh/daH08UE8LRmpYxVrF5z3DUae+iPFOmQIhALj/Hrgg/naOxbddAQn3JW4JOuqpf0A8mF07svtLwKiz","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIE5kpIz6r5vgvBKJ8wi5ddSywjhSawKJAxGAY0b7vfcfAiAaU2y84642qzqTNL7QPylQic0xu/azeelm0ATNyWADoA=="}],"unpackedSize":9603},"main":"lib/src/index.js","name":"standard-navigation","type":"module","types":"lib/src/index.d.ts","author":{"name":"Satyajit Sahoo","email":"satyajit.happy@gmail.com"},"gitHead":"4ebc8b3229da88cb6ade1ff4484491915bedd7cc","license":"MIT","scripts":{"prepare":"tsc"},"version":"0.0.9","_npmUser":{"name":"satya164","email":"satyajit.happy@gmail.com"},"homepage":"https://github.com/react-navigation/standard-navigation#readme","keywords":["react-navigation","expo-router"],"repository":{"url":"git+ssh://git@github.com/react-navigation/standard-navigation.git","type":"git"},"_npmVersion":"11.6.2","description":"Standard navigation API for navigation libraries","directories":{},"maintainers":[{"name":"satya164","email":"satyajit.happy@gmail.com"}],"_nodeVersion":"24.13.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.3","@types/react":"^19.2.14"},"peerDependencies":{"react":"*"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/standard-navigation_0.0.9_1786048939965_0.8509539951294611"}}},"time":{"created":"2026-05-17T10:28:02.630Z","modified":"2026-08-06T20:42:20.260Z","0.0.1":"2026-05-17T10:28:02.768Z","0.0.2":"2026-05-21T13:28:25.762Z","0.0.3":"2026-05-21T14:06:23.147Z","0.0.4":"2026-05-25T13:24:47.349Z","0.0.5":"2026-05-26T16:11:08.189Z","0.0.6":"2026-06-03T17:31:41.439Z","0.0.7":"2026-06-04T19:11:42.212Z","0.0.8":"2026-07-16T12:46:40.830Z","0.0.9":"2026-08-06T20:42:20.076Z"},"bugs":{"url":"https://github.com/react-navigation/standard-navigation/issues"},"author":{"name":"Satyajit Sahoo","email":"satyajit.happy@gmail.com"},"license":"MIT","homepage":"https://github.com/react-navigation/standard-navigation#readme","keywords":["react-navigation","expo-router"],"repository":{"url":"git+ssh://git@github.com/react-navigation/standard-navigation.git","type":"git"},"description":"Standard navigation API for navigation libraries","maintainers":[{"name":"satya164","email":"satyajit.happy@gmail.com"}],"readme":"# Standard Navigation\n\nA standard API for creating navigators that can work with multiple navigation libraries, such as React Navigation and Expo Router.\n\nThis package only contains minimal helpers and types. The actual implementation of integrating with this API should live in respective libraries (e.g. [React Navigation](https://reactnavigation.org/docs/standard-navigator), [Expo Router](https://docs.expo.dev/router/advanced/custom-navigators), etc.).\n\n## API\n\n```tsx\nimport * as React from 'react';\nimport { createStandardNavigator } from 'standard-navigation';\n\ntype MyNavigatorOptions = {\n  title?: string;\n};\n\ntype MyNavigatorEventMap = {\n  tabPress: {\n    data: { isAlreadyFocused: boolean };\n    canPreventDefault: true;\n  };\n};\n\ntype MyNavigatorProps = {\n  className?: string;\n};\n\nconst MyStandardNavigator = createStandardNavigator<\n  MyNavigatorOptions,\n  MyNavigatorEventMap,\n  MyNavigatorProps\n>(({ state, descriptors, actions, emitter, className }) => {\n  return (\n    <div className={className}>\n      {state.routes.map((route, index) => (\n        <React.Activity\n          key={route.key}\n          mode={state.index === index ? 'visible' : 'hidden'}\n        >\n          {descriptors[route.key].render()}\n        </React.Activity>\n      ))}\n      {state.routes.map((route, index) => (\n        <a\n          href={route.href}\n          key={route.key}\n          onClick={(e) => {\n            e.preventDefault();\n\n            const event = emitter.emit({\n              type: 'tabPress',\n              target: route.key,\n              canPreventDefault: true,\n              data: {\n                isAlreadyFocused: state.index === index,\n              },\n            });\n\n            if (event.defaultPrevented) {\n              return;\n            }\n\n            actions.navigate(route.name, route.params);\n          }}\n        >\n          {descriptors[route.key].options.title}\n        </a>\n      ))}\n    </div>\n  );\n});\n```\n\nA navigator is created by calling `createStandardNavigator` with a function. It can be typed with three generics:\n\n- `NavigatorOptions`: The options for each route descriptor.\n- `NavigatorEventMap`: The events that can be emitted by the navigator.\n- `NavigatorProps`: Additional props accepted by the navigator content.\n\nIt returns an object as follows:\n\n```ts\n{\n  type: 'standard',\n  version: 1,\n  NavigatorContent: React.ComponentType,\n}\n```\n\nThis object can be used by helpers exported from libraries like React Navigation and Expo Router to create navigators to use in those libraries. Refer to the documentation of those libraries for more details on how to use this API with them.\n\nThe callback function receives an object with the following properties:\n\n### `state`\n\nThe current navigation state:\n\n- `index`: The index of the currently focused route in `routes`.\n- `routes`: An array of route objects to render, each containing the following properties:\n  - `key`: A unique key for the route.\n  - `name`: The name of the route.\n  - `params`: An optional object of params for the route.\n  - `href`: An href for the route, used for web navigation, or `undefined` if unavailable.\n\n### `descriptors`\n\nAn object mapping each route's `key` to a descriptor for that route:\n\n- `options`: The options for the route, e.g. `title`.\n- `render`: A function that returns the React element to render for the route.\n\n### `actions`\n\nAn object of navigation actions that the navigator can perform:\n\n- `navigate`: Navigates to a route. Accepts `name` and `params` to navigate by route name and params.\n- `back`: Goes back to the previous route in history.\n\n### `emitter`\n\nAn event emitter that can be used to emit events. Calling `emit` accepts an object with the following properties:\n\n- `type`: The type of the event (e.g. `tabPress`).\n- `target`: An optional key of the route which is the target of the event.\n- `canPreventDefault`: When the event allows preventing the default action, set this to `true` to enable `event.preventDefault()` on the returned event.\n- `data`: Data associated with the event. This is optional when the event's data type includes `undefined`.\n\nThe returned event object contains a `defaultPrevented` boolean (when `canPreventDefault` is `true`) which can be used to check whether `event.preventDefault()` was called by a listener.\n","readmeFilename":"README.md"}