@tamagui/dom 0.0.0-bootstrap.0 → 3.0.0-beta.643.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/cjs/events.cjs +17 -0
- package/dist/cjs/events.native.cjs +19 -0
- package/dist/cjs/events.native.js +21 -0
- package/dist/cjs/events.native.js.map +1 -0
- package/dist/cjs/index.cjs +26 -0
- package/dist/cjs/index.native.cjs +28 -0
- package/dist/cjs/index.native.js +30 -0
- package/dist/cjs/index.native.js.map +1 -0
- package/dist/cjs/props.cjs +17 -0
- package/dist/cjs/props.native.cjs +19 -0
- package/dist/cjs/props.native.js +21 -0
- package/dist/cjs/props.native.js.map +1 -0
- package/dist/cjs/tables/attributes.cjs +850 -0
- package/dist/cjs/tables/attributes.native.cjs +862 -0
- package/dist/cjs/tables/attributes.native.js +864 -0
- package/dist/cjs/tables/attributes.native.js.map +1 -0
- package/dist/cjs/tables/compatibility.cjs +338 -0
- package/dist/cjs/tables/compatibility.native.cjs +340 -0
- package/dist/cjs/tables/compatibility.native.js +342 -0
- package/dist/cjs/tables/compatibility.native.js.map +1 -0
- package/dist/cjs/tables/events.cjs +169 -0
- package/dist/cjs/tables/events.native.cjs +175 -0
- package/dist/cjs/tables/events.native.js +177 -0
- package/dist/cjs/tables/events.native.js.map +1 -0
- package/dist/cjs/tables/nativeBacking.cjs +133 -0
- package/dist/cjs/tables/nativeBacking.native.cjs +135 -0
- package/dist/cjs/tables/nativeBacking.native.js +137 -0
- package/dist/cjs/tables/nativeBacking.native.js.map +1 -0
- package/dist/cjs/tables/tags.cjs +576 -0
- package/dist/cjs/tables/tags.native.cjs +578 -0
- package/dist/cjs/tables/tags.native.js +580 -0
- package/dist/cjs/tables/tags.native.js.map +1 -0
- package/dist/cjs/tables/types.cjs +17 -0
- package/dist/cjs/tables/types.native.cjs +19 -0
- package/dist/cjs/tables/types.native.js +21 -0
- package/dist/cjs/tables/types.native.js.map +1 -0
- package/dist/esm/events.mjs +0 -0
- package/dist/esm/events.native.js +0 -0
- package/dist/esm/index.mjs +15 -0
- package/dist/esm/index.native.js +15 -0
- package/dist/esm/props.mjs +0 -0
- package/dist/esm/props.native.js +0 -0
- package/dist/esm/tables/attributes.mjs +821 -0
- package/dist/esm/tables/attributes.mjs.map +1 -0
- package/dist/esm/tables/attributes.native.js +831 -0
- package/dist/esm/tables/attributes.native.js.map +1 -0
- package/dist/esm/tables/compatibility.mjs +314 -0
- package/dist/esm/tables/compatibility.mjs.map +1 -0
- package/dist/esm/tables/compatibility.native.js +314 -0
- package/dist/esm/tables/compatibility.native.js.map +1 -0
- package/dist/esm/tables/events.mjs +145 -0
- package/dist/esm/tables/events.mjs.map +1 -0
- package/dist/esm/tables/events.native.js +149 -0
- package/dist/esm/tables/events.native.js.map +1 -0
- package/dist/esm/tables/nativeBacking.mjs +106 -0
- package/dist/esm/tables/nativeBacking.mjs.map +1 -0
- package/dist/esm/tables/nativeBacking.native.js +106 -0
- package/dist/esm/tables/nativeBacking.native.js.map +1 -0
- package/dist/esm/tables/tags.mjs +550 -0
- package/dist/esm/tables/tags.mjs.map +1 -0
- package/dist/esm/tables/tags.native.js +550 -0
- package/dist/esm/tables/tags.native.js.map +1 -0
- package/dist/esm/tables/types.mjs +0 -0
- package/dist/esm/tables/types.native.js +0 -0
- package/package.json +57 -7
- package/src/events.ts +58 -0
- package/src/index.ts +19 -0
- package/src/props.ts +699 -0
- package/src/tables/attributes.ts +863 -0
- package/src/tables/compatibility.ts +360 -0
- package/src/tables/events.ts +176 -0
- package/src/tables/nativeBacking.ts +132 -0
- package/src/tables/tags.ts +557 -0
- package/src/tables/types.ts +202 -0
- package/types/events.d.ts +58 -0
- package/types/events.d.ts.map +11 -0
- package/types/index.d.ts +20 -0
- package/types/index.d.ts.map +11 -0
- package/types/props.d.ts +499 -0
- package/types/props.d.ts.map +11 -0
- package/types/tables/attributes.d.ts +21 -0
- package/types/tables/attributes.d.ts.map +11 -0
- package/types/tables/compatibility.d.ts +28 -0
- package/types/tables/compatibility.d.ts.map +11 -0
- package/types/tables/events.d.ts +5 -0
- package/types/tables/events.d.ts.map +11 -0
- package/types/tables/nativeBacking.d.ts +28 -0
- package/types/tables/nativeBacking.d.ts.map +11 -0
- package/types/tables/tags.d.ts +36 -0
- package/types/tables/tags.d.ts.map +11 -0
- package/types/tables/types.d.ts +135 -0
- package/types/tables/types.d.ts.map +11 -0
- package/README.md +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compatibility.native.js","names":[],"sources":["cjs/tables/compatibility.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar compatibility_exports = {};\n__export(compatibility_exports, {\n COMPATIBILITY: () => COMPATIBILITY,\n RSD_REFERENCE: () => RSD_REFERENCE\n});\nmodule.exports = __toCommonJS(compatibility_exports);\nvar RSD_REFERENCE = {\n version: \"0.0.55\",\n commit: \"c877f5c19b141e25c089d993b4cc584e669b6e39\",\n date: \"2026-06-23\"\n};\nvar COMPATIBILITY = [\n {\n area: \"tag\",\n subject: \"html.select, html.option, html.optgroup\",\n keys: [],\n rsd: \"renders a view and text elements on native with no menu behaviour, and documents the tags as unsupported there\",\n tamagui: \"native build error naming the tag\",\n reason: \"an element that renders but cannot open, select or report a value is a silent approximation, which the DOM contract rules out\"\n },\n {\n area: \"tag\",\n subject: \"html.form, html.fieldset\",\n keys: [],\n rsd: \"documents form as unsupported on native\",\n tamagui: \"renders as a native container, with no submission, validation or reset\",\n reason: \"the layout and accessibility of the container are correct on native; only submission is missing, and that is documented per prop\"\n },\n {\n area: \"prop\",\n subject: \"autoCapitalize, enterKeyHint, inputMode, spellCheck\",\n keys: [\n \"autoCapitalize\",\n \"enterKeyHint\",\n \"inputMode\",\n \"spellCheck\"\n ],\n rsd: \"declared on every element, forwarded only by the text-entry factory\",\n tamagui: \"declared on input and textarea only\",\n reason: \"they have no effect anywhere else on either platform, so the narrower type is the honest one\"\n },\n {\n area: \"prop\",\n subject: \"spellCheck on native\",\n keys: [],\n rsd: \"documented as unsupported\",\n tamagui: \"forwarded to the text-entry control, ios only\",\n reason: \"react native implements spellCheck on TextInput for ios; the RSD table predates it and its own runtime forwards the prop\"\n },\n {\n area: \"prop\",\n subject: \"aria-describedby\",\n keys: [],\n rsd: \"documented as polyfilled on native, but its runtime does not map it\",\n tamagui: \"web only, with a note pointing at aria-label\",\n reason: \"react native has no described-by relationship, so the table follows the runtime rather than the documentation\"\n },\n {\n area: \"prop\",\n subject: \"data-*\",\n keys: [\n \"data-*\"\n ],\n rsd: \"allows any data- prefixed prop at runtime but types none of them\",\n tamagui: \"one data-* row, so the generated interfaces admit the whole prefix\",\n reason: \"the runtime already accepts them; leaving them untyped only means authors reach for a cast\"\n },\n {\n area: \"prop\",\n subject: \"data-layoutconformance\",\n keys: [\n \"data-layoutconformance\"\n ],\n rsd: \"opts an element subtree into W3C layout conformance on native\",\n tamagui: \"not part of the contract\",\n reason: \"it is an escape hatch for a specific react native migration, not a DOM prop, and DOM mode targets one layout model\"\n },\n {\n area: \"prop\",\n subject: \"selected on html.option\",\n keys: [\n \"selected\"\n ],\n rsd: \"allowlisted, but not declared by its option props type\",\n tamagui: \"not part of the contract\",\n reason: \"react warns on it and steers to value or defaultValue on the select, and select has no native rendering anyway\"\n },\n {\n area: \"prop\",\n subject: \"children on a void or text-only element\",\n keys: [],\n rsd: \"types children as a react node on every element, including br, hr, img, input, textarea and option\",\n tamagui: \"types it as never on the five void elements and as string or number inside an option, from the content model in the tag table\",\n reason: \"the compiler already reports this nesting as a build error, and the same rule stated in the types reports it in the editor instead of at build time\"\n },\n {\n area: \"event\",\n subject: \"onSelectionChange\",\n keys: [\n \"onSelectionChange\"\n ],\n rsd: \"allowlisted and typed on input and textarea, then warned about as unsupported\",\n tamagui: \"not part of the contract; the selection cache behind the ref polyfill stays internal\",\n reason: \"it is not a React DOM prop, so it does nothing on web and warns on native: no platform supports it\"\n },\n {\n area: \"event\",\n subject: \"onMouseMove\",\n keys: [],\n rsd: \"allowed on the strict surface but omitted from the native prop forwarding path\",\n tamagui: \"native diagnostic pointing at onPointerMove\",\n reason: \"a handler that is silently dropped is worse than a build error naming the supported cross-platform spelling; the other mouse events and onScroll match the upstream native host passthrough\"\n },\n {\n area: \"event\",\n subject: \"onClick on native\",\n keys: [],\n rsd: \"documented as unsupported, polyfilled in its runtime through the press event\",\n tamagui: \"polyfilled through the press event, documented as a polyfill\",\n reason: \"the polyfill is real and useful; the payload subset it can fill in is documented instead of denied\"\n },\n {\n area: \"style\",\n subject: \"inline reset spelling\",\n keys: [\n // the thirteen tags RSD gives its inline reset on web\n \"web.a.textAlign\",\n \"web.a.textDecoration\",\n \"web.a.textDecorationLine\",\n \"web.b.textAlign\",\n \"web.b.textDecoration\",\n \"web.b.textDecorationLine\",\n \"web.bdi.textAlign\",\n \"web.bdi.textDecoration\",\n \"web.bdi.textDecorationLine\",\n \"web.bdo.textAlign\",\n \"web.bdo.textDecoration\",\n \"web.bdo.textDecorationLine\",\n \"web.code.textAlign\",\n \"web.code.textDecoration\",\n \"web.code.textDecorationLine\",\n \"web.em.textAlign\",\n \"web.em.textDecoration\",\n \"web.em.textDecorationLine\",\n \"web.i.textAlign\",\n \"web.i.textDecoration\",\n \"web.i.textDecorationLine\",\n \"web.label.textAlign\",\n \"web.label.textDecoration\",\n \"web.label.textDecorationLine\",\n \"web.mark.textAlign\",\n \"web.mark.textDecoration\",\n \"web.mark.textDecorationLine\",\n \"web.span.textAlign\",\n \"web.span.textDecoration\",\n \"web.span.textDecorationLine\",\n \"web.strong.textAlign\",\n \"web.strong.textDecoration\",\n \"web.strong.textDecorationLine\",\n \"web.sub.textAlign\",\n \"web.sub.textDecoration\",\n \"web.sub.textDecorationLine\",\n \"web.sup.textAlign\",\n \"web.sup.textDecoration\",\n \"web.sup.textDecorationLine\"\n ],\n rsd: \"resets inline elements with textDecoration: none and textAlign: inherit\",\n tamagui: \"resets with textDecorationLine: none and leaves textAlign alone\",\n reason: \"textDecorationLine is the one spelling that means the same thing on both platforms, and textAlign already inherits, so declaring it changes nothing\"\n },\n {\n area: \"style\",\n subject: \"element defaults RSD leaves to the browser on web\",\n keys: [\n // br, del, ins, kbd, optgroup, option, s and u get no RSD web styles at all\n \"web.br.margin\",\n \"web.br.padding\",\n \"web.br.textDecorationLine\",\n \"web.del.margin\",\n \"web.del.padding\",\n \"web.del.textDecorationLine\",\n \"web.ins.margin\",\n \"web.ins.padding\",\n \"web.ins.textDecorationLine\",\n \"web.kbd.fontFamily\",\n \"web.kbd.fontSize\",\n \"web.kbd.margin\",\n \"web.kbd.padding\",\n \"web.kbd.textDecorationLine\",\n \"web.optgroup.margin\",\n \"web.optgroup.padding\",\n \"web.option.margin\",\n \"web.option.padding\",\n \"web.s.margin\",\n \"web.s.padding\",\n \"web.s.textDecorationLine\",\n \"web.u.margin\",\n \"web.u.padding\",\n \"web.u.textDecorationLine\",\n // and the rest lean on the browser stylesheet for their one decoration\n \"web.b.fontWeight\",\n \"web.em.fontStyle\",\n \"web.h1.fontWeight\",\n \"web.h2.fontWeight\",\n \"web.h3.fontWeight\",\n \"web.h4.fontWeight\",\n \"web.h5.fontWeight\",\n \"web.h6.fontWeight\",\n \"web.i.fontStyle\",\n \"web.mark.backgroundColor\",\n \"web.mark.color\"\n ],\n rsd: \"applies no default styles at all to br, del, ins, kbd, optgroup, option, s and u on web, and relies on the browser stylesheet for the bold, italic, monospace, strike, underline and highlight of every other tag\",\n tamagui: \"applies the same element defaults on both platforms\",\n reason: \"one source has to render the same on web and native, which it cannot if half the defaults come from a browser stylesheet a css reset is free to remove\"\n },\n {\n area: \"style\",\n subject: \"html.a default styles\",\n keys: [\n \"native.a.color\",\n \"native.a.textDecorationLine\"\n ],\n rsd: \"strips the underline on web and adds blue plus underline on native, so one source renders differently per platform\",\n tamagui: \"applies the same inline reset on both platforms and adds no link colour\",\n reason: \"cross-platform parity is the point of the shared fixture, and a hardcoded link colour cannot follow a theme\"\n },\n {\n area: \"style\",\n subject: \"monospace font family\",\n keys: [\n \"web.code.fontFamily\",\n \"web.pre.fontFamily\",\n \"native.code.fontFamily\",\n \"native.kbd.fontFamily\",\n \"native.pre.fontFamily\"\n ],\n rsd: 'writes monospace, \"monospace\" on web to cancel the browser size quirk, and picks Menlo on ios',\n tamagui: \"writes monospace on both platforms and cancels the size quirk with fontSize: 1em instead\",\n reason: \"the duplicated family name only exists to defeat the size quirk, which 1em does directly; the font family itself belongs to the theme, not to the tag\"\n },\n {\n area: \"style\",\n subject: \"overflow on html.code\",\n keys: [\n \"web.code.overflow\"\n ],\n rsd: \"shares one rule between code and pre, so inline code gets overflow: auto too\",\n tamagui: \"scrolls pre only\",\n reason: \"overflow does nothing on an inline element\"\n },\n {\n area: \"style\",\n subject: \"web css properties a Tamagui style prop cannot express\",\n keys: [\n \"web.a.wordWrap\",\n \"web.b.wordWrap\",\n \"web.bdi.wordWrap\",\n \"web.bdo.wordWrap\",\n \"web.code.wordWrap\",\n \"web.em.wordWrap\",\n \"web.h1.wordWrap\",\n \"web.h2.wordWrap\",\n \"web.h3.wordWrap\",\n \"web.h4.wordWrap\",\n \"web.h5.wordWrap\",\n \"web.h6.wordWrap\",\n \"web.i.wordWrap\",\n \"web.label.wordWrap\",\n \"web.mark.wordWrap\",\n \"web.span.wordWrap\",\n \"web.strong.wordWrap\",\n \"web.sub.wordWrap\",\n \"web.sup.wordWrap\",\n \"web.ol.listStyle\",\n \"web.ul.listStyle\",\n \"web.textarea.resize\"\n ],\n rsd: \"sets overflow-wrap on inline text and headings, list-style: none on ol and ul, and resize: vertical on a textarea, all as plain stylex rules\",\n tamagui: \"sets none of the three\",\n reason: \"Tamagui resolves none of these three property names, and an unresolved style prop does not quietly do nothing \\u2014 it reaches the element as an attribute, which is a react warning and still no styling. list-style has no visible consequence anyway, because every view-backed element carries `.is_View { display: flex }`, so an li is never display: list-item and no marker is generated. The other two are cosmetic and web-only. Closing this means teaching the style pipeline the three properties, not working around it here\"\n },\n {\n area: \"style\",\n subject: \"html.img sizing\",\n keys: [\n \"web.img.aspectRatio\",\n \"web.img.objectFit\",\n \"web.img.margin\",\n \"web.img.padding\",\n \"web.img.textDecorationLine\"\n ],\n rsd: \"derives the aspect ratio from the width and height attributes with attr(), which only lands in recent chromium, and gives img no inline reset\",\n tamagui: \"sets objectFit, resets img like any other inline element, and lets the compiler turn the width and height props into an aspect ratio on native\",\n reason: \"a css feature one engine supports cannot be the cross-platform contract, and the props are known at build time anyway; the inline reset still matters because an img inside an anchor otherwise inherits its underline\"\n },\n {\n area: \"style\",\n subject: \"universal native element defaults\",\n keys: [\n \"native.br.boxSizing\",\n \"native.br.position\",\n \"native.hr.boxSizing\"\n ],\n rsd: \"skips the shared native reset on br, and overrides boxSizing to border-box on hr\",\n tamagui: \"applies the same native element defaults to every tag\",\n reason: \"br is not special, and neither override changes what renders: hr has no border or padding for border-box to measure differently\"\n },\n {\n area: \"behavior\",\n subject: \"invalid nesting\",\n keys: [],\n rsd: \"reports nothing at build time; an invalid tree fails at runtime on native\",\n tamagui: \"compile diagnostic for statically knowable invalid nesting, from the content model in the tag table\",\n reason: \"the compiler already classifies every tag, so the error belongs at build time where the source is\"\n },\n {\n area: \"behavior\",\n subject: \"children as a render function\",\n keys: [],\n rsd: \"supports a function child that receives the resolved native props\",\n tamagui: \"not part of the contract\",\n reason: \"it exposes the native prop shape as public api and blocks compile-time literal-text wrapping\"\n },\n {\n area: \"ref\",\n subject: \"native element ref\",\n keys: [],\n rsd: \"wraps every ref-ed host node in an Object.create view adding nodeName, viewport-scaled metrics and the tag polyfills\",\n tamagui: \"wraps only ref-ed hosts in a stable Object.create facade adding nodeName, tagName, image complete, text-entry selection APIs, bound host methods and viewport-scaled geometry\",\n reason: \"the compiler supplies the semantic tag only on the ref path, preserving the zero-allocation common path; the viewport provider scales synchronous DOM-shaped lengths and getBoundingClientRect while native measure methods remain bound to the host instance\"\n }\n];\n//# sourceMappingURL=compatibility.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,wBAAwB,CAAC;AAC7B,SAAS,uBAAuB;CAC9B,qBAAqB;CACrB,qBAAqB;AACvB,CAAC;AACD,OAAO,UAAU,aAAa,qBAAqB;AACnD,IAAI,gBAAgB;CAClB,SAAS;CACT,QAAQ;CACR,MAAM;AACR;AACA,IAAI,gBAAgB;CAClB;EACE,MAAM;EACN,SAAS;EACT,MAAM,CAAC;EACP,KAAK;EACL,SAAS;EACT,QAAQ;CACV;CACA;EACE,MAAM;EACN,SAAS;EACT,MAAM,CAAC;EACP,KAAK;EACL,SAAS;EACT,QAAQ;CACV;CACA;EACE,MAAM;EACN,SAAS;EACT,MAAM;GACJ;GACA;GACA;GACA;EACF;EACA,KAAK;EACL,SAAS;EACT,QAAQ;CACV;CACA;EACE,MAAM;EACN,SAAS;EACT,MAAM,CAAC;EACP,KAAK;EACL,SAAS;EACT,QAAQ;CACV;CACA;EACE,MAAM;EACN,SAAS;EACT,MAAM,CAAC;EACP,KAAK;EACL,SAAS;EACT,QAAQ;CACV;CACA;EACE,MAAM;EACN,SAAS;EACT,MAAM,CACJ,QACF;EACA,KAAK;EACL,SAAS;EACT,QAAQ;CACV;CACA;EACE,MAAM;EACN,SAAS;EACT,MAAM,CACJ,wBACF;EACA,KAAK;EACL,SAAS;EACT,QAAQ;CACV;CACA;EACE,MAAM;EACN,SAAS;EACT,MAAM,CACJ,UACF;EACA,KAAK;EACL,SAAS;EACT,QAAQ;CACV;CACA;EACE,MAAM;EACN,SAAS;EACT,MAAM,CAAC;EACP,KAAK;EACL,SAAS;EACT,QAAQ;CACV;CACA;EACE,MAAM;EACN,SAAS;EACT,MAAM,CACJ,mBACF;EACA,KAAK;EACL,SAAS;EACT,QAAQ;CACV;CACA;EACE,MAAM;EACN,SAAS;EACT,MAAM,CAAC;EACP,KAAK;EACL,SAAS;EACT,QAAQ;CACV;CACA;EACE,MAAM;EACN,SAAS;EACT,MAAM,CAAC;EACP,KAAK;EACL,SAAS;EACT,QAAQ;CACV;CACA;EACE,MAAM;EACN,SAAS;EACT,MAAM;GAEJ;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACF;EACA,KAAK;EACL,SAAS;EACT,QAAQ;CACV;CACA;EACE,MAAM;EACN,SAAS;EACT,MAAM;GAEJ;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GAEA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACF;EACA,KAAK;EACL,SAAS;EACT,QAAQ;CACV;CACA;EACE,MAAM;EACN,SAAS;EACT,MAAM,CACJ,kBACA,6BACF;EACA,KAAK;EACL,SAAS;EACT,QAAQ;CACV;CACA;EACE,MAAM;EACN,SAAS;EACT,MAAM;GACJ;GACA;GACA;GACA;GACA;EACF;EACA,KAAK;EACL,SAAS;EACT,QAAQ;CACV;CACA;EACE,MAAM;EACN,SAAS;EACT,MAAM,CACJ,mBACF;EACA,KAAK;EACL,SAAS;EACT,QAAQ;CACV;CACA;EACE,MAAM;EACN,SAAS;EACT,MAAM;GACJ;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACF;EACA,KAAK;EACL,SAAS;EACT,QAAQ;CACV;CACA;EACE,MAAM;EACN,SAAS;EACT,MAAM;GACJ;GACA;GACA;GACA;GACA;EACF;EACA,KAAK;EACL,SAAS;EACT,QAAQ;CACV;CACA;EACE,MAAM;EACN,SAAS;EACT,MAAM;GACJ;GACA;GACA;EACF;EACA,KAAK;EACL,SAAS;EACT,QAAQ;CACV;CACA;EACE,MAAM;EACN,SAAS;EACT,MAAM,CAAC;EACP,KAAK;EACL,SAAS;EACT,QAAQ;CACV;CACA;EACE,MAAM;EACN,SAAS;EACT,MAAM,CAAC;EACP,KAAK;EACL,SAAS;EACT,QAAQ;CACV;CACA;EACE,MAAM;EACN,SAAS;EACT,MAAM,CAAC;EACP,KAAK;EACL,SAAS;EACT,QAAQ;CACV;AACF"}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all) __defProp(target, name, {
|
|
8
|
+
get: all[name],
|
|
9
|
+
enumerable: true
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
22
|
+
var events_exports = {};
|
|
23
|
+
__export(events_exports, {
|
|
24
|
+
EVENTS: () => EVENTS,
|
|
25
|
+
EVENT_NAMES: () => EVENT_NAMES
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(events_exports);
|
|
28
|
+
const FORM_CONTROLS = [
|
|
29
|
+
"input",
|
|
30
|
+
"select",
|
|
31
|
+
"textarea"
|
|
32
|
+
];
|
|
33
|
+
const nativeHost = (nativeProp) => ({
|
|
34
|
+
tags: "*",
|
|
35
|
+
payload: "unknown",
|
|
36
|
+
nativeProp,
|
|
37
|
+
web: "host",
|
|
38
|
+
native: "host"
|
|
39
|
+
});
|
|
40
|
+
const webOnly = (note) => ({
|
|
41
|
+
tags: "*",
|
|
42
|
+
payload: "unknown",
|
|
43
|
+
nativeProp: null,
|
|
44
|
+
web: "host",
|
|
45
|
+
native: "none",
|
|
46
|
+
note
|
|
47
|
+
});
|
|
48
|
+
const EVENTS = {
|
|
49
|
+
onPointerCancel: nativeHost("onPointerCancel"),
|
|
50
|
+
onPointerDown: nativeHost("onPointerDown"),
|
|
51
|
+
onPointerEnter: nativeHost("onPointerEnter"),
|
|
52
|
+
onPointerLeave: nativeHost("onPointerLeave"),
|
|
53
|
+
onPointerMove: nativeHost("onPointerMove"),
|
|
54
|
+
onPointerOut: nativeHost("onPointerOut"),
|
|
55
|
+
onPointerOver: nativeHost("onPointerOver"),
|
|
56
|
+
onPointerUp: nativeHost("onPointerUp"),
|
|
57
|
+
onGotPointerCapture: nativeHost("onGotPointerCapture"),
|
|
58
|
+
onLostPointerCapture: nativeHost("onLostPointerCapture"),
|
|
59
|
+
onTouchCancel: nativeHost("onTouchCancel"),
|
|
60
|
+
onTouchEnd: nativeHost("onTouchEnd"),
|
|
61
|
+
onTouchMove: nativeHost("onTouchMove"),
|
|
62
|
+
onTouchStart: nativeHost("onTouchStart"),
|
|
63
|
+
onClick: {
|
|
64
|
+
tags: "*",
|
|
65
|
+
payload: "DOMClickEvent",
|
|
66
|
+
nativeProp: "onPress",
|
|
67
|
+
web: "host",
|
|
68
|
+
native: "polyfill",
|
|
69
|
+
note: "native builds the click payload from the press event; preventDefault and stopPropagation are no-ops because there is nothing to cancel"
|
|
70
|
+
},
|
|
71
|
+
onAuxClick: webOnly("native has no secondary pointer button"),
|
|
72
|
+
onContextMenu: webOnly("native has no context menu event; use a long press"),
|
|
73
|
+
onBlur: {
|
|
74
|
+
tags: "*",
|
|
75
|
+
payload: "unknown",
|
|
76
|
+
nativeProp: "onBlur",
|
|
77
|
+
web: "host",
|
|
78
|
+
native: "polyfill",
|
|
79
|
+
note: "native focus events only fire on elements that can hold focus, which is text entry and pressable elements"
|
|
80
|
+
},
|
|
81
|
+
onFocus: {
|
|
82
|
+
tags: "*",
|
|
83
|
+
payload: "unknown",
|
|
84
|
+
nativeProp: "onFocus",
|
|
85
|
+
web: "host",
|
|
86
|
+
native: "polyfill",
|
|
87
|
+
note: "native focus events only fire on elements that can hold focus, which is text entry and pressable elements"
|
|
88
|
+
},
|
|
89
|
+
onFocusIn: webOnly("native has no bubbling focus event; use onFocus"),
|
|
90
|
+
onFocusOut: webOnly("native has no bubbling blur event; use onBlur"),
|
|
91
|
+
onKeyDown: {
|
|
92
|
+
tags: "*",
|
|
93
|
+
payload: "DOMKeyEvent",
|
|
94
|
+
nativeProp: "onKeyPress",
|
|
95
|
+
web: "host",
|
|
96
|
+
native: "polyfill",
|
|
97
|
+
note: "native only reports key presses inside a text-entry control, and reports the submit key as Enter"
|
|
98
|
+
},
|
|
99
|
+
onKeyUp: webOnly("react native reports key presses, not key releases"),
|
|
100
|
+
onCopy: webOnly("native has no clipboard events"),
|
|
101
|
+
onCut: webOnly("native has no clipboard events"),
|
|
102
|
+
onPaste: webOnly("native has no clipboard events"),
|
|
103
|
+
onFullscreenChange: webOnly("fullscreen is a browser api"),
|
|
104
|
+
onFullscreenError: webOnly("fullscreen is a browser api"),
|
|
105
|
+
onScroll: nativeHost("onScroll"),
|
|
106
|
+
onWheel: webOnly("native has no wheel input"),
|
|
107
|
+
onMouseDown: nativeHost("onMouseDown"),
|
|
108
|
+
onMouseEnter: nativeHost("onMouseEnter"),
|
|
109
|
+
onMouseLeave: nativeHost("onMouseLeave"),
|
|
110
|
+
onMouseMove: webOnly("use onPointerMove for cross-platform pointer input"),
|
|
111
|
+
onMouseOut: nativeHost("onMouseOut"),
|
|
112
|
+
onMouseOver: nativeHost("onMouseOver"),
|
|
113
|
+
onMouseUp: nativeHost("onMouseUp"),
|
|
114
|
+
onError: {
|
|
115
|
+
tags: ["img"],
|
|
116
|
+
payload: "DOMImageErrorEvent",
|
|
117
|
+
nativeProp: "onError",
|
|
118
|
+
web: "host",
|
|
119
|
+
native: "polyfill"
|
|
120
|
+
},
|
|
121
|
+
onLoad: {
|
|
122
|
+
tags: ["img"],
|
|
123
|
+
payload: "DOMImageLoadEvent",
|
|
124
|
+
nativeProp: "onLoad",
|
|
125
|
+
web: "host",
|
|
126
|
+
native: "polyfill",
|
|
127
|
+
note: "native reports naturalWidth and naturalHeight from the decoded source"
|
|
128
|
+
},
|
|
129
|
+
onChange: {
|
|
130
|
+
tags: FORM_CONTROLS,
|
|
131
|
+
payload: "DOMChangeEvent",
|
|
132
|
+
nativeProp: "onChange",
|
|
133
|
+
web: "host",
|
|
134
|
+
native: "polyfill",
|
|
135
|
+
note: "native fires on every keystroke like onInput, because there is no commit-on-blur change event"
|
|
136
|
+
},
|
|
137
|
+
onInput: {
|
|
138
|
+
tags: FORM_CONTROLS,
|
|
139
|
+
payload: "DOMInputEvent",
|
|
140
|
+
nativeProp: "onChange",
|
|
141
|
+
web: "host",
|
|
142
|
+
native: "polyfill"
|
|
143
|
+
},
|
|
144
|
+
onBeforeInput: {
|
|
145
|
+
tags: FORM_CONTROLS,
|
|
146
|
+
payload: "unknown",
|
|
147
|
+
nativeProp: null,
|
|
148
|
+
web: "host",
|
|
149
|
+
native: "none",
|
|
150
|
+
note: "native text entry reports changes only after they are applied"
|
|
151
|
+
},
|
|
152
|
+
onInvalid: {
|
|
153
|
+
tags: FORM_CONTROLS,
|
|
154
|
+
payload: "unknown",
|
|
155
|
+
nativeProp: null,
|
|
156
|
+
web: "host",
|
|
157
|
+
native: "none",
|
|
158
|
+
note: "native has no form validation"
|
|
159
|
+
},
|
|
160
|
+
onSelect: {
|
|
161
|
+
tags: FORM_CONTROLS,
|
|
162
|
+
payload: "unknown",
|
|
163
|
+
nativeProp: null,
|
|
164
|
+
web: "host",
|
|
165
|
+
native: "none",
|
|
166
|
+
note: "read the selection through the element ref instead"
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
const EVENT_NAMES = Object.keys(EVENTS);
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var events_exports = {};
|
|
25
|
+
__export(events_exports, {
|
|
26
|
+
EVENTS: () => EVENTS,
|
|
27
|
+
EVENT_NAMES: () => EVENT_NAMES
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(events_exports);
|
|
30
|
+
var FORM_CONTROLS = [
|
|
31
|
+
"input",
|
|
32
|
+
"select",
|
|
33
|
+
"textarea"
|
|
34
|
+
];
|
|
35
|
+
var nativeHost = function(nativeProp) {
|
|
36
|
+
return {
|
|
37
|
+
tags: "*",
|
|
38
|
+
payload: "unknown",
|
|
39
|
+
nativeProp,
|
|
40
|
+
web: "host",
|
|
41
|
+
native: "host"
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
var webOnly = function(note) {
|
|
45
|
+
return {
|
|
46
|
+
tags: "*",
|
|
47
|
+
payload: "unknown",
|
|
48
|
+
nativeProp: null,
|
|
49
|
+
web: "host",
|
|
50
|
+
native: "none",
|
|
51
|
+
note
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
var EVENTS = {
|
|
55
|
+
onPointerCancel: nativeHost("onPointerCancel"),
|
|
56
|
+
onPointerDown: nativeHost("onPointerDown"),
|
|
57
|
+
onPointerEnter: nativeHost("onPointerEnter"),
|
|
58
|
+
onPointerLeave: nativeHost("onPointerLeave"),
|
|
59
|
+
onPointerMove: nativeHost("onPointerMove"),
|
|
60
|
+
onPointerOut: nativeHost("onPointerOut"),
|
|
61
|
+
onPointerOver: nativeHost("onPointerOver"),
|
|
62
|
+
onPointerUp: nativeHost("onPointerUp"),
|
|
63
|
+
onGotPointerCapture: nativeHost("onGotPointerCapture"),
|
|
64
|
+
onLostPointerCapture: nativeHost("onLostPointerCapture"),
|
|
65
|
+
onTouchCancel: nativeHost("onTouchCancel"),
|
|
66
|
+
onTouchEnd: nativeHost("onTouchEnd"),
|
|
67
|
+
onTouchMove: nativeHost("onTouchMove"),
|
|
68
|
+
onTouchStart: nativeHost("onTouchStart"),
|
|
69
|
+
onClick: {
|
|
70
|
+
tags: "*",
|
|
71
|
+
payload: "DOMClickEvent",
|
|
72
|
+
nativeProp: "onPress",
|
|
73
|
+
web: "host",
|
|
74
|
+
native: "polyfill",
|
|
75
|
+
note: "native builds the click payload from the press event; preventDefault and stopPropagation are no-ops because there is nothing to cancel"
|
|
76
|
+
},
|
|
77
|
+
onAuxClick: webOnly("native has no secondary pointer button"),
|
|
78
|
+
onContextMenu: webOnly("native has no context menu event; use a long press"),
|
|
79
|
+
onBlur: {
|
|
80
|
+
tags: "*",
|
|
81
|
+
payload: "unknown",
|
|
82
|
+
nativeProp: "onBlur",
|
|
83
|
+
web: "host",
|
|
84
|
+
native: "polyfill",
|
|
85
|
+
note: "native focus events only fire on elements that can hold focus, which is text entry and pressable elements"
|
|
86
|
+
},
|
|
87
|
+
onFocus: {
|
|
88
|
+
tags: "*",
|
|
89
|
+
payload: "unknown",
|
|
90
|
+
nativeProp: "onFocus",
|
|
91
|
+
web: "host",
|
|
92
|
+
native: "polyfill",
|
|
93
|
+
note: "native focus events only fire on elements that can hold focus, which is text entry and pressable elements"
|
|
94
|
+
},
|
|
95
|
+
onFocusIn: webOnly("native has no bubbling focus event; use onFocus"),
|
|
96
|
+
onFocusOut: webOnly("native has no bubbling blur event; use onBlur"),
|
|
97
|
+
onKeyDown: {
|
|
98
|
+
tags: "*",
|
|
99
|
+
payload: "DOMKeyEvent",
|
|
100
|
+
nativeProp: "onKeyPress",
|
|
101
|
+
web: "host",
|
|
102
|
+
native: "polyfill",
|
|
103
|
+
note: "native only reports key presses inside a text-entry control, and reports the submit key as Enter"
|
|
104
|
+
},
|
|
105
|
+
onKeyUp: webOnly("react native reports key presses, not key releases"),
|
|
106
|
+
onCopy: webOnly("native has no clipboard events"),
|
|
107
|
+
onCut: webOnly("native has no clipboard events"),
|
|
108
|
+
onPaste: webOnly("native has no clipboard events"),
|
|
109
|
+
onFullscreenChange: webOnly("fullscreen is a browser api"),
|
|
110
|
+
onFullscreenError: webOnly("fullscreen is a browser api"),
|
|
111
|
+
onScroll: nativeHost("onScroll"),
|
|
112
|
+
onWheel: webOnly("native has no wheel input"),
|
|
113
|
+
onMouseDown: nativeHost("onMouseDown"),
|
|
114
|
+
onMouseEnter: nativeHost("onMouseEnter"),
|
|
115
|
+
onMouseLeave: nativeHost("onMouseLeave"),
|
|
116
|
+
onMouseMove: webOnly("use onPointerMove for cross-platform pointer input"),
|
|
117
|
+
onMouseOut: nativeHost("onMouseOut"),
|
|
118
|
+
onMouseOver: nativeHost("onMouseOver"),
|
|
119
|
+
onMouseUp: nativeHost("onMouseUp"),
|
|
120
|
+
onError: {
|
|
121
|
+
tags: ["img"],
|
|
122
|
+
payload: "DOMImageErrorEvent",
|
|
123
|
+
nativeProp: "onError",
|
|
124
|
+
web: "host",
|
|
125
|
+
native: "polyfill"
|
|
126
|
+
},
|
|
127
|
+
onLoad: {
|
|
128
|
+
tags: ["img"],
|
|
129
|
+
payload: "DOMImageLoadEvent",
|
|
130
|
+
nativeProp: "onLoad",
|
|
131
|
+
web: "host",
|
|
132
|
+
native: "polyfill",
|
|
133
|
+
note: "native reports naturalWidth and naturalHeight from the decoded source"
|
|
134
|
+
},
|
|
135
|
+
onChange: {
|
|
136
|
+
tags: FORM_CONTROLS,
|
|
137
|
+
payload: "DOMChangeEvent",
|
|
138
|
+
nativeProp: "onChange",
|
|
139
|
+
web: "host",
|
|
140
|
+
native: "polyfill",
|
|
141
|
+
note: "native fires on every keystroke like onInput, because there is no commit-on-blur change event"
|
|
142
|
+
},
|
|
143
|
+
onInput: {
|
|
144
|
+
tags: FORM_CONTROLS,
|
|
145
|
+
payload: "DOMInputEvent",
|
|
146
|
+
nativeProp: "onChange",
|
|
147
|
+
web: "host",
|
|
148
|
+
native: "polyfill"
|
|
149
|
+
},
|
|
150
|
+
onBeforeInput: {
|
|
151
|
+
tags: FORM_CONTROLS,
|
|
152
|
+
payload: "unknown",
|
|
153
|
+
nativeProp: null,
|
|
154
|
+
web: "host",
|
|
155
|
+
native: "none",
|
|
156
|
+
note: "native text entry reports changes only after they are applied"
|
|
157
|
+
},
|
|
158
|
+
onInvalid: {
|
|
159
|
+
tags: FORM_CONTROLS,
|
|
160
|
+
payload: "unknown",
|
|
161
|
+
nativeProp: null,
|
|
162
|
+
web: "host",
|
|
163
|
+
native: "none",
|
|
164
|
+
note: "native has no form validation"
|
|
165
|
+
},
|
|
166
|
+
onSelect: {
|
|
167
|
+
tags: FORM_CONTROLS,
|
|
168
|
+
payload: "unknown",
|
|
169
|
+
nativeProp: null,
|
|
170
|
+
web: "host",
|
|
171
|
+
native: "none",
|
|
172
|
+
note: "read the selection through the element ref instead"
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
var EVENT_NAMES = Object.keys(EVENTS);
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var events_exports = {};
|
|
25
|
+
__export(events_exports, {
|
|
26
|
+
EVENTS: () => EVENTS,
|
|
27
|
+
EVENT_NAMES: () => EVENT_NAMES
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(events_exports);
|
|
30
|
+
var FORM_CONTROLS = [
|
|
31
|
+
"input",
|
|
32
|
+
"select",
|
|
33
|
+
"textarea"
|
|
34
|
+
];
|
|
35
|
+
var nativeHost = function(nativeProp) {
|
|
36
|
+
return {
|
|
37
|
+
tags: "*",
|
|
38
|
+
payload: "unknown",
|
|
39
|
+
nativeProp,
|
|
40
|
+
web: "host",
|
|
41
|
+
native: "host"
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
var webOnly = function(note) {
|
|
45
|
+
return {
|
|
46
|
+
tags: "*",
|
|
47
|
+
payload: "unknown",
|
|
48
|
+
nativeProp: null,
|
|
49
|
+
web: "host",
|
|
50
|
+
native: "none",
|
|
51
|
+
note
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
var EVENTS = {
|
|
55
|
+
onPointerCancel: nativeHost("onPointerCancel"),
|
|
56
|
+
onPointerDown: nativeHost("onPointerDown"),
|
|
57
|
+
onPointerEnter: nativeHost("onPointerEnter"),
|
|
58
|
+
onPointerLeave: nativeHost("onPointerLeave"),
|
|
59
|
+
onPointerMove: nativeHost("onPointerMove"),
|
|
60
|
+
onPointerOut: nativeHost("onPointerOut"),
|
|
61
|
+
onPointerOver: nativeHost("onPointerOver"),
|
|
62
|
+
onPointerUp: nativeHost("onPointerUp"),
|
|
63
|
+
onGotPointerCapture: nativeHost("onGotPointerCapture"),
|
|
64
|
+
onLostPointerCapture: nativeHost("onLostPointerCapture"),
|
|
65
|
+
onTouchCancel: nativeHost("onTouchCancel"),
|
|
66
|
+
onTouchEnd: nativeHost("onTouchEnd"),
|
|
67
|
+
onTouchMove: nativeHost("onTouchMove"),
|
|
68
|
+
onTouchStart: nativeHost("onTouchStart"),
|
|
69
|
+
onClick: {
|
|
70
|
+
tags: "*",
|
|
71
|
+
payload: "DOMClickEvent",
|
|
72
|
+
nativeProp: "onPress",
|
|
73
|
+
web: "host",
|
|
74
|
+
native: "polyfill",
|
|
75
|
+
note: "native builds the click payload from the press event; preventDefault and stopPropagation are no-ops because there is nothing to cancel"
|
|
76
|
+
},
|
|
77
|
+
onAuxClick: webOnly("native has no secondary pointer button"),
|
|
78
|
+
onContextMenu: webOnly("native has no context menu event; use a long press"),
|
|
79
|
+
onBlur: {
|
|
80
|
+
tags: "*",
|
|
81
|
+
payload: "unknown",
|
|
82
|
+
nativeProp: "onBlur",
|
|
83
|
+
web: "host",
|
|
84
|
+
native: "polyfill",
|
|
85
|
+
note: "native focus events only fire on elements that can hold focus, which is text entry and pressable elements"
|
|
86
|
+
},
|
|
87
|
+
onFocus: {
|
|
88
|
+
tags: "*",
|
|
89
|
+
payload: "unknown",
|
|
90
|
+
nativeProp: "onFocus",
|
|
91
|
+
web: "host",
|
|
92
|
+
native: "polyfill",
|
|
93
|
+
note: "native focus events only fire on elements that can hold focus, which is text entry and pressable elements"
|
|
94
|
+
},
|
|
95
|
+
onFocusIn: webOnly("native has no bubbling focus event; use onFocus"),
|
|
96
|
+
onFocusOut: webOnly("native has no bubbling blur event; use onBlur"),
|
|
97
|
+
onKeyDown: {
|
|
98
|
+
tags: "*",
|
|
99
|
+
payload: "DOMKeyEvent",
|
|
100
|
+
nativeProp: "onKeyPress",
|
|
101
|
+
web: "host",
|
|
102
|
+
native: "polyfill",
|
|
103
|
+
note: "native only reports key presses inside a text-entry control, and reports the submit key as Enter"
|
|
104
|
+
},
|
|
105
|
+
onKeyUp: webOnly("react native reports key presses, not key releases"),
|
|
106
|
+
onCopy: webOnly("native has no clipboard events"),
|
|
107
|
+
onCut: webOnly("native has no clipboard events"),
|
|
108
|
+
onPaste: webOnly("native has no clipboard events"),
|
|
109
|
+
onFullscreenChange: webOnly("fullscreen is a browser api"),
|
|
110
|
+
onFullscreenError: webOnly("fullscreen is a browser api"),
|
|
111
|
+
onScroll: nativeHost("onScroll"),
|
|
112
|
+
onWheel: webOnly("native has no wheel input"),
|
|
113
|
+
onMouseDown: nativeHost("onMouseDown"),
|
|
114
|
+
onMouseEnter: nativeHost("onMouseEnter"),
|
|
115
|
+
onMouseLeave: nativeHost("onMouseLeave"),
|
|
116
|
+
onMouseMove: webOnly("use onPointerMove for cross-platform pointer input"),
|
|
117
|
+
onMouseOut: nativeHost("onMouseOut"),
|
|
118
|
+
onMouseOver: nativeHost("onMouseOver"),
|
|
119
|
+
onMouseUp: nativeHost("onMouseUp"),
|
|
120
|
+
onError: {
|
|
121
|
+
tags: ["img"],
|
|
122
|
+
payload: "DOMImageErrorEvent",
|
|
123
|
+
nativeProp: "onError",
|
|
124
|
+
web: "host",
|
|
125
|
+
native: "polyfill"
|
|
126
|
+
},
|
|
127
|
+
onLoad: {
|
|
128
|
+
tags: ["img"],
|
|
129
|
+
payload: "DOMImageLoadEvent",
|
|
130
|
+
nativeProp: "onLoad",
|
|
131
|
+
web: "host",
|
|
132
|
+
native: "polyfill",
|
|
133
|
+
note: "native reports naturalWidth and naturalHeight from the decoded source"
|
|
134
|
+
},
|
|
135
|
+
onChange: {
|
|
136
|
+
tags: FORM_CONTROLS,
|
|
137
|
+
payload: "DOMChangeEvent",
|
|
138
|
+
nativeProp: "onChange",
|
|
139
|
+
web: "host",
|
|
140
|
+
native: "polyfill",
|
|
141
|
+
note: "native fires on every keystroke like onInput, because there is no commit-on-blur change event"
|
|
142
|
+
},
|
|
143
|
+
onInput: {
|
|
144
|
+
tags: FORM_CONTROLS,
|
|
145
|
+
payload: "DOMInputEvent",
|
|
146
|
+
nativeProp: "onChange",
|
|
147
|
+
web: "host",
|
|
148
|
+
native: "polyfill"
|
|
149
|
+
},
|
|
150
|
+
onBeforeInput: {
|
|
151
|
+
tags: FORM_CONTROLS,
|
|
152
|
+
payload: "unknown",
|
|
153
|
+
nativeProp: null,
|
|
154
|
+
web: "host",
|
|
155
|
+
native: "none",
|
|
156
|
+
note: "native text entry reports changes only after they are applied"
|
|
157
|
+
},
|
|
158
|
+
onInvalid: {
|
|
159
|
+
tags: FORM_CONTROLS,
|
|
160
|
+
payload: "unknown",
|
|
161
|
+
nativeProp: null,
|
|
162
|
+
web: "host",
|
|
163
|
+
native: "none",
|
|
164
|
+
note: "native has no form validation"
|
|
165
|
+
},
|
|
166
|
+
onSelect: {
|
|
167
|
+
tags: FORM_CONTROLS,
|
|
168
|
+
payload: "unknown",
|
|
169
|
+
nativeProp: null,
|
|
170
|
+
web: "host",
|
|
171
|
+
native: "none",
|
|
172
|
+
note: "read the selection through the element ref instead"
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
var EVENT_NAMES = Object.keys(EVENTS);
|
|
176
|
+
|
|
177
|
+
//# sourceMappingURL=events.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.native.js","names":[],"sources":["cjs/tables/events.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar events_exports = {};\n__export(events_exports, {\n EVENTS: () => EVENTS,\n EVENT_NAMES: () => EVENT_NAMES\n});\nmodule.exports = __toCommonJS(events_exports);\nvar FORM_CONTROLS = [\n \"input\",\n \"select\",\n \"textarea\"\n];\nvar nativeHost = function(nativeProp) {\n return {\n tags: \"*\",\n payload: \"unknown\",\n nativeProp,\n web: \"host\",\n native: \"host\"\n };\n};\nvar webOnly = function(note) {\n return {\n tags: \"*\",\n payload: \"unknown\",\n nativeProp: null,\n web: \"host\",\n native: \"none\",\n note\n };\n};\nvar EVENTS = {\n // pointer and touch\n onPointerCancel: nativeHost(\"onPointerCancel\"),\n onPointerDown: nativeHost(\"onPointerDown\"),\n onPointerEnter: nativeHost(\"onPointerEnter\"),\n onPointerLeave: nativeHost(\"onPointerLeave\"),\n onPointerMove: nativeHost(\"onPointerMove\"),\n onPointerOut: nativeHost(\"onPointerOut\"),\n onPointerOver: nativeHost(\"onPointerOver\"),\n onPointerUp: nativeHost(\"onPointerUp\"),\n onGotPointerCapture: nativeHost(\"onGotPointerCapture\"),\n onLostPointerCapture: nativeHost(\"onLostPointerCapture\"),\n onTouchCancel: nativeHost(\"onTouchCancel\"),\n onTouchEnd: nativeHost(\"onTouchEnd\"),\n onTouchMove: nativeHost(\"onTouchMove\"),\n onTouchStart: nativeHost(\"onTouchStart\"),\n // press\n onClick: {\n tags: \"*\",\n payload: \"DOMClickEvent\",\n nativeProp: \"onPress\",\n web: \"host\",\n native: \"polyfill\",\n note: \"native builds the click payload from the press event; preventDefault and stopPropagation are no-ops because there is nothing to cancel\"\n },\n onAuxClick: webOnly(\"native has no secondary pointer button\"),\n onContextMenu: webOnly(\"native has no context menu event; use a long press\"),\n // focus\n onBlur: {\n tags: \"*\",\n payload: \"unknown\",\n nativeProp: \"onBlur\",\n web: \"host\",\n native: \"polyfill\",\n note: \"native focus events only fire on elements that can hold focus, which is text entry and pressable elements\"\n },\n onFocus: {\n tags: \"*\",\n payload: \"unknown\",\n nativeProp: \"onFocus\",\n web: \"host\",\n native: \"polyfill\",\n note: \"native focus events only fire on elements that can hold focus, which is text entry and pressable elements\"\n },\n onFocusIn: webOnly(\"native has no bubbling focus event; use onFocus\"),\n onFocusOut: webOnly(\"native has no bubbling blur event; use onBlur\"),\n // keyboard\n onKeyDown: {\n tags: \"*\",\n payload: \"DOMKeyEvent\",\n nativeProp: \"onKeyPress\",\n web: \"host\",\n native: \"polyfill\",\n note: \"native only reports key presses inside a text-entry control, and reports the submit key as Enter\"\n },\n onKeyUp: webOnly(\"react native reports key presses, not key releases\"),\n // clipboard\n onCopy: webOnly(\"native has no clipboard events\"),\n onCut: webOnly(\"native has no clipboard events\"),\n onPaste: webOnly(\"native has no clipboard events\"),\n // document and viewport\n onFullscreenChange: webOnly(\"fullscreen is a browser api\"),\n onFullscreenError: webOnly(\"fullscreen is a browser api\"),\n onScroll: nativeHost(\"onScroll\"),\n onWheel: webOnly(\"native has no wheel input\"),\n // React Native desktop carries the mouse subset that React Strict DOM forwards.\n onMouseDown: nativeHost(\"onMouseDown\"),\n onMouseEnter: nativeHost(\"onMouseEnter\"),\n onMouseLeave: nativeHost(\"onMouseLeave\"),\n onMouseMove: webOnly(\"use onPointerMove for cross-platform pointer input\"),\n onMouseOut: nativeHost(\"onMouseOut\"),\n onMouseOver: nativeHost(\"onMouseOver\"),\n onMouseUp: nativeHost(\"onMouseUp\"),\n // image\n onError: {\n tags: [\n \"img\"\n ],\n payload: \"DOMImageErrorEvent\",\n nativeProp: \"onError\",\n web: \"host\",\n native: \"polyfill\"\n },\n onLoad: {\n tags: [\n \"img\"\n ],\n payload: \"DOMImageLoadEvent\",\n nativeProp: \"onLoad\",\n web: \"host\",\n native: \"polyfill\",\n note: \"native reports naturalWidth and naturalHeight from the decoded source\"\n },\n // form controls\n onChange: {\n tags: FORM_CONTROLS,\n payload: \"DOMChangeEvent\",\n nativeProp: \"onChange\",\n web: \"host\",\n native: \"polyfill\",\n note: \"native fires on every keystroke like onInput, because there is no commit-on-blur change event\"\n },\n onInput: {\n tags: FORM_CONTROLS,\n payload: \"DOMInputEvent\",\n nativeProp: \"onChange\",\n web: \"host\",\n native: \"polyfill\"\n },\n onBeforeInput: {\n tags: FORM_CONTROLS,\n payload: \"unknown\",\n nativeProp: null,\n web: \"host\",\n native: \"none\",\n note: \"native text entry reports changes only after they are applied\"\n },\n onInvalid: {\n tags: FORM_CONTROLS,\n payload: \"unknown\",\n nativeProp: null,\n web: \"host\",\n native: \"none\",\n note: \"native has no form validation\"\n },\n onSelect: {\n tags: FORM_CONTROLS,\n payload: \"unknown\",\n nativeProp: null,\n web: \"host\",\n native: \"none\",\n note: \"read the selection through the element ref instead\"\n }\n};\nvar EVENT_NAMES = Object.keys(EVENTS);\n//# sourceMappingURL=events.js.map\n"],"mappings":"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"}
|