@flighthq/keyboard 0.5.1-next.920.da8f530 → 0.6.0
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/README.md +2 -2
- package/dist/.tsbuildinfo.contract +1 -0
- package/dist/.tsbuildinfo.runtime +1 -0
- package/dist/contract.d.ts +2 -1
- package/dist/contract.d.ts.map +1 -1
- package/dist/contract.js +2 -1
- package/dist/contract.js.map +1 -1
- package/dist/contract.keyboard-types.d.ts +2 -0
- package/dist/contract.keyboard-types.d.ts.map +1 -0
- package/dist/contract.keyboard-types.js +4 -0
- package/dist/contract.keyboard-types.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/keyboard.d.ts +14 -13
- package/dist/keyboard.d.ts.map +1 -1
- package/dist/keyboard.js +31 -27
- package/dist/keyboard.js.map +1 -1
- package/dist/types.d.ts +58 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +12 -0
- package/dist/types.js.map +1 -0
- package/package.json +6 -5
- package/src/keyboard.test.ts +139 -65
package/README.md
CHANGED
|
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/keyboard`. The `@fli
|
|
|
13
13
|
This package is part of the locked-version Flight SDK graph. Applications may instead install and import `@flighthq/sdk` when package-level tree shaking is sufficient.
|
|
14
14
|
|
|
15
15
|
- [Flight project](https://github.com/flighthq/flight)
|
|
16
|
-
- [Source for @flighthq/keyboard@0.
|
|
17
|
-
- [License](https://github.com/flighthq/flight/blob/
|
|
16
|
+
- [Source for @flighthq/keyboard@0.6.0](https://github.com/flighthq/flight/tree/ead804bfaef3e691a2e6e43e9711ddd3fd8a84a2/packages/keyboard)
|
|
17
|
+
- [License](https://github.com/flighthq/flight/blob/ead804bfaef3e691a2e6e43e9711ddd3fd8a84a2/LICENSE.md)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":"7.0.2","root":[[85,86]],"packageJsons":["../../../node_modules/@standard-schema/spec/package.json","../../../node_modules/@testing-library/jest-dom/package.json","../../../node_modules/@types/aria-query/package.json","../../../node_modules/@types/chai/package.json","../../../node_modules/@types/deep-eql/package.json","../../../node_modules/@types/node/package.json","../../../node_modules/@vitest/coverage-v8/package.json","../../../node_modules/@vitest/expect/package.json","../../../node_modules/@vitest/mocker/package.json","../../../node_modules/@vitest/pretty-format/package.json","../../../node_modules/@vitest/runner/package.json","../../../node_modules/@vitest/snapshot/package.json","../../../node_modules/@vitest/spy/package.json","../../../node_modules/@vitest/utils/package.json","../../../node_modules/@webgpu/types/package.json","../../../node_modules/aria-query/package.json","../../../node_modules/assertion-error/package.json","../../../node_modules/chai/package.json","../../../node_modules/deep-eql/package.json","../../../node_modules/expect-type/package.json","../../../node_modules/jiti/package.json","../../../node_modules/jsdom/package.json","../../../node_modules/terser/package.json","../../../node_modules/tinybench/package.json","../../../node_modules/tinyrainbow/package.json","../../../node_modules/tsx/package.json","../../../node_modules/vite/package.json","../../../node_modules/vite/types/package.json","../../../node_modules/vitest/package.json","../../../node_modules/yaml/package.json","../../entity/package.json","../package.json","../../signals/package.json"],"missingPackageJsons":["../../../node_modules/@edge-runtime/vm/package.json","../../../node_modules/@opentelemetry/api/package.json","../../../node_modules/@standard-schema/spec/dist/package.json","../../../node_modules/@testing-library/jest-dom/node_modules/aria-query/package.json","../../../node_modules/@testing-library/jest-dom/node_modules/jest/package.json","../../../node_modules/@testing-library/jest-dom/types/package.json","../../../node_modules/@types/jest/package.json","../../../node_modules/@types/testing-library__jest-dom/package.json","../../../node_modules/@types/vitest/globals/package.json","../../../node_modules/@types/webgpu__types/package.json","../../../node_modules/@vitest/browser-playwright/package.json","../../../node_modules/@vitest/browser-preview/package.json","../../../node_modules/@vitest/browser-webdriverio/package.json","../../../node_modules/@vitest/coverage-istanbul/package.json","../../../node_modules/@vitest/expect/dist/package.json","../../../node_modules/@vitest/mocker/dist/package.json","../../../node_modules/@vitest/pretty-format/dist/package.json","../../../node_modules/@vitest/runner/dist/package.json","../../../node_modules/@vitest/runner/utils/package.json","../../../node_modules/@vitest/snapshot/dist/package.json","../../../node_modules/@vitest/spy/dist/package.json","../../../node_modules/@vitest/ui/package.json","../../../node_modules/@vitest/utils/diff/package.json","../../../node_modules/@vitest/utils/display/package.json","../../../node_modules/@vitest/utils/dist/package.json","../../../node_modules/@webgpu/types/dist/package.json","../../../node_modules/expect-type/dist/package.json","../../../node_modules/happy-dom/package.json","../../../node_modules/jest/package.json","../../../node_modules/less/package.json","../../../node_modules/lightningcss/package.json","../../../node_modules/msw/package.json","../../../node_modules/sass-embedded/package.json","../../../node_modules/sass/package.json","../../../node_modules/stylus/package.json","../../../node_modules/sugarss/package.json","../../../node_modules/tinybench/dist/package.json","../../../node_modules/tinyrainbow/dist/package.json","../../../node_modules/vite/dist/node/chunks/package.json","../../../node_modules/vite/dist/node/package.json","../../../node_modules/vite/dist/package.json","../../../node_modules/vite/module-runner/package.json","../../../node_modules/vitest/dist/chunks/package.json","../../../node_modules/vitest/dist/package.json","../../../node_modules/vitest/globals/package.json"],"fileNames":["lib.es5.d.ts","lib.es2015.d.ts","lib.es2016.d.ts","lib.es2017.d.ts","lib.es2018.d.ts","lib.es2019.d.ts","lib.es2020.d.ts","lib.es2021.d.ts","lib.es2022.d.ts","lib.dom.d.ts","lib.dom.iterable.d.ts","lib.dom.asynciterable.d.ts","lib.webworker.importscripts.d.ts","lib.scripthost.d.ts","lib.es2015.core.d.ts","lib.es2015.collection.d.ts","lib.es2015.generator.d.ts","lib.es2015.iterable.d.ts","lib.es2015.promise.d.ts","lib.es2015.proxy.d.ts","lib.es2015.reflect.d.ts","lib.es2015.symbol.d.ts","lib.es2015.symbol.wellknown.d.ts","lib.es2016.array.include.d.ts","lib.es2016.intl.d.ts","lib.es2017.arraybuffer.d.ts","lib.es2017.date.d.ts","lib.es2017.object.d.ts","lib.es2017.sharedmemory.d.ts","lib.es2017.string.d.ts","lib.es2017.intl.d.ts","lib.es2017.typedarrays.d.ts","lib.es2018.asyncgenerator.d.ts","lib.es2018.asynciterable.d.ts","lib.es2018.intl.d.ts","lib.es2018.promise.d.ts","lib.es2018.regexp.d.ts","lib.es2019.array.d.ts","lib.es2019.object.d.ts","lib.es2019.string.d.ts","lib.es2019.symbol.d.ts","lib.es2019.intl.d.ts","lib.es2020.bigint.d.ts","lib.es2020.date.d.ts","lib.es2020.promise.d.ts","lib.es2020.sharedmemory.d.ts","lib.es2020.string.d.ts","lib.es2020.symbol.wellknown.d.ts","lib.es2020.intl.d.ts","lib.es2020.number.d.ts","lib.es2021.promise.d.ts","lib.es2021.string.d.ts","lib.es2021.weakref.d.ts","lib.es2021.intl.d.ts","lib.es2022.array.d.ts","lib.es2022.error.d.ts","lib.es2022.intl.d.ts","lib.es2022.object.d.ts","lib.es2022.string.d.ts","lib.es2022.regexp.d.ts","lib.decorators.d.ts","lib.decorators.legacy.d.ts","lib.es2022.full.d.ts","../../entity/dist/types.d.ts","../../entity/dist/binding.d.ts","../../entity/dist/clone.d.ts","../../entity/dist/enableEntityRuntimeGuards.d.ts","../../entity/dist/entity.d.ts","../../entity/dist/entityUid.d.ts","../../entity/dist/explainEntityRuntimeWrite.d.ts","../../entity/dist/guards.d.ts","../../entity/dist/runtime.d.ts","../../entity/dist/contract.d.ts","../../signals/dist/types.d.ts","../../signals/dist/connection.d.ts","../../signals/dist/emitter.d.ts","../../signals/dist/internal.d.ts","../../signals/dist/safe.d.ts","../../signals/dist/scope.d.ts","../../signals/dist/signal.d.ts","../../signals/dist/slot.d.ts","../../signals/dist/throttle.d.ts","../../signals/dist/signalTypes.d.ts","../../signals/dist/contract.d.ts","../src/types.ts","../src/contract.keyboard-types.ts","../../../node_modules/@types/aria-query/index.d.ts","../../../node_modules/@testing-library/jest-dom/types/matchers.d.ts","../../../node_modules/@testing-library/jest-dom/types/jest.d.ts","../../../node_modules/@testing-library/jest-dom/types/index.d.ts","../../../node_modules/@vitest/pretty-format/dist/index.d.ts","../../../node_modules/@vitest/utils/dist/display.d.ts","../../../node_modules/@vitest/utils/dist/types.d.ts","../../../node_modules/@vitest/utils/dist/helpers.d.ts","../../../node_modules/@vitest/utils/dist/timers.d.ts","../../../node_modules/@vitest/utils/dist/index.d.ts","../../../node_modules/@vitest/utils/dist/types.d-BCElaP-c.d.ts","../../../node_modules/@vitest/utils/dist/diff.d.ts","../../../node_modules/@vitest/runner/dist/tasks.d-DEYaIMIu.d.ts","../../../node_modules/@vitest/runner/dist/index.d.ts","../../../node_modules/vitest/dist/chunks/traces.d.D2T_R8rx.d.ts","../../../node_modules/vite/types/hmrPayload.d.ts","../../../node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts","../../../node_modules/vite/types/customEvent.d.ts","../../../node_modules/vite/types/hot.d.ts","../../../node_modules/vite/dist/node/module-runner.d.ts","../../../node_modules/@vitest/snapshot/dist/environment.d-DOJxxZV9.d.ts","../../../node_modules/@vitest/snapshot/dist/rawSnapshot.d-D_X3-62x.d.ts","../../../node_modules/@vitest/snapshot/dist/index.d.ts","../../../node_modules/vitest/dist/chunks/config.d.A1h_Y6Jt.d.ts","../../../node_modules/vitest/dist/chunks/environment.d.CrsxCzP1.d.ts","../../../node_modules/vitest/dist/chunks/rpc.d.B_8sPU0w.d.ts","../../../node_modules/vitest/dist/chunks/worker.d.ZpHpO4yb.d.ts","../../../node_modules/vitest/dist/chunks/browser.d.BcoexmFG.d.ts","../../../node_modules/@vitest/spy/optional-types.d.ts","../../../node_modules/@vitest/spy/dist/index.d.ts","../../../node_modules/tinyrainbow/dist/index.d.ts","../../../node_modules/@standard-schema/spec/dist/index.d.ts","../../../node_modules/@types/deep-eql/index.d.ts","../../../node_modules/assertion-error/index.d.ts","../../../node_modules/@types/chai/index.d.ts","../../../node_modules/@vitest/expect/dist/index.d.ts","../../../node_modules/@vitest/runner/dist/utils.d.ts","../../../node_modules/tinybench/dist/index.d.ts","../../../node_modules/vitest/dist/chunks/benchmark.d.DAaHLpsq.d.ts","../../../node_modules/vitest/dist/chunks/global.d.DVsSRdQ5.d.ts","../../../node_modules/vitest/optional-runtime-types.d.ts","../../../node_modules/@vitest/mocker/dist/types.d-BjI5eAwu.d.ts","../../../node_modules/@vitest/mocker/dist/index.d-B41z0AuW.d.ts","../../../node_modules/@vitest/mocker/dist/index.d.ts","../../../node_modules/vitest/dist/chunks/suite.d.udJtyAgw.d.ts","../../../node_modules/vitest/dist/chunks/evaluatedModules.d.BxJ5omdx.d.ts","../../../node_modules/vitest/dist/runners.d.ts","../../../node_modules/expect-type/dist/utils.d.ts","../../../node_modules/expect-type/dist/overloads.d.ts","../../../node_modules/expect-type/dist/branding.d.ts","../../../node_modules/expect-type/dist/messages.d.ts","../../../node_modules/expect-type/dist/index.d.ts","../../../node_modules/vitest/dist/index.d.ts","../../../node_modules/vitest/globals.d.ts","../../../node_modules/@webgpu/types/dist/index.d.ts"],"fileInfos":[{"version":"16934abaab7026ac114da441aabea1a0","affectsGlobalScope":true,"impliedNodeFormat":1},"d4306fb2e47f74835e8674ffac07d76f","e437c5c1302869326c3bb93da85bbbcf","e4324975a566567b21d350615f1fc6ac","333b1b9a2a9ac3b8497dba5c63b5ba50","6cffacd662b6eb5fa7a36aa2ea366bfa","b4c34f9c23304dbef2d23698637ed638","e5cb86a5fc491796ecd1d2dd348d208f","feb6c6fb19cdb246a5d8acb36a6901c7",{"version":"aae8996e8b5684814785a42cbbefcd79","affectsGlobalScope":true,"impliedNodeFormat":1},"abad6dd56cc8caf095c165df8124d237","abad6dd56cc8caf095c165df8124d237",{"version":"2a9941db0809c9ad0e8837ed629b1dcc","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d051b93324f36bcc68d152a5ca0988cd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"926204c28cd3d073865348473ae28d2e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f25e42c801b2cb3cf2b39792006a9beb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6344b55f26a4e81d9608777dbfb877dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3c0ed28e53d3695b363e256ec1c023fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4c2761daba7f17141c25baa0821ac5da","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b87656acabd63e69379ff6ffcfe52fc7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"597469522da047a5af5222cc6989f405","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1708ea4d34dc37fadadc63ca01127e80","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"55d97a8c6fbf34a30450a7b1e5f7a298","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0ee05eb59426d33e374226d8dcfa708b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e347c14030993906efcfbb88915b6a05","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b0231263857c9b6a03641acdc9280ceb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3b15c4a83b598cacb4067676e6f0abed","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b417d97b7934cef63b1889abec0bbfbf","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"09a6cf4032ebba60ce22a501e663f881","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2b056277dd138e8f5650fc04e20eaa8d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e22cc07e3f3cc242ba52fa3f8ea1fc58","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c45da767a1bfbb220848df1bc4029e4","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b44c3e0fbaf2130cdcf6ac38b120ffa1","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b612fb5cf8e5d964b92063a75207632a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02705151a5e1551b9162a9ed8ab763f7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"41025e398be9215d32e4337335da8f0b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"52684c2b1f353a5538e4f275182a54cd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6dedb6a4f90d1df3a6fbe5693e44886c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ca3f36fe3562c07e0f0d71c2bebd3f6d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"409974d6129befbb8226ddd1c6558568","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4d9cfde2a1ae1b4925f1f9bc10848e5d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7e1daecc66dd564144e3bb1a0266b5fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a8e1d9bb35fd0637f2f9fd2b2a54f2ec","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4f168501772a6543182765bfd5f2fbfe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a19c80aad1b2162103496f5ba293a732","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b69afa63cd5d059851c78adb2856ee09","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ae2fc5d954e9b0f5feee3d481b953c27","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1cfd3091a071d8b6feec15277643bafe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1da2c1f258970fd3cc91184f69e91a9d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a0d87491913d843139e0c993650a3235","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4ef72aa378127e7b7abba915b0110b1e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3ec74c6a7d4463f0254db3a74cf75646","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"84c2bdfa470d075526cce6322d81b0b6","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0b3844c2b8c73e4e1ab91431411cad11","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4fc71cf4a15b8d99675a31df77f26e07","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d1b49564ddaeca3df5b6dbae925d2242","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6a25be566d60ccfc2d6e8b7bfdeefa83","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8a20e27646985dfd58c57ca6566553dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9969f02ad3cdcbf4f709405cda44167f","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c9be4792a7a4f42c15ae7360bf28779","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f64453cbf9671f28158677fa5c43967a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"33f317af5428801f944a478d2c1e38e5","affectsGlobalScope":true,"impliedNodeFormat":1},"0eb5b8b97bde45c8fde5cd07c33f6631","22772bc49abb63e5c9ba66ac5fb78a3d","daf7ba9e176366b3caf843bd266d163a","1cd6ad8dcb5625d764e0d55a82295469","76aca40ee07d543a14c24ba839109332","6f54f49ea7e96bdd7a9078f6c94e88fd","e9fd0536114fa9a746eacd5bc23969e5","add935c05420698ee2f670e9c7605d49","8202b77f954e4d5a21783859414fcc7c","524a08ff038d375ae8c86bf6481e17d2","9ff787c1324b2d4c07a342936293f47a","921f8c08344aa1539405420fcf952a20","21a1b4607cb18ab00b1254cb35a77c57","d80705d2e260aba56aa54c416f471fbd","a821537667385a2906566c8bc69a21ed","387cee0627331c24f641f87fc905bff1","859418c3a3f1b2e9500476d829fc6093","32e33ec68ba1aa1147aab680de3b7c90","67c59d76f923f64e85a373fb5a2bbb13","5676a2feb7e6b36f973571c4a4500566","dd2bc19aa76d59fe40aa6c6fb9a33365","7ef4fc8b5166fc742b557034c24ec46b",{"version":"741691d606d7eef34d101310df50510a","signature":"f545cc87a5c9296e4e7c34947360ebf0","impliedNodeFormat":1},{"version":"976a9323e833547a626e19a53b29e8d2","signature":"7d6e428c4ce3a5fa7d2271e504502c6d","impliedNodeFormat":1},"56d080dfccb3c53a2d6c74c4f24252e3","75ebd62d9641cc8b34ba9b09be8283a9",{"version":"753f71e16f2994f332390bb1c997b0e3","affectsGlobalScope":true,"impliedNodeFormat":1},"8def0ea0e249f49397d74a4f5bdd45a5",{"version":"ed63d99e1e5c371dc120bef1b84057fc","impliedNodeFormat":99},{"version":"4d3fb552bfc7fb53c9195b2fafb512c0","impliedNodeFormat":99},{"version":"fbf7ba69043f86dc506ba28263e2e783","impliedNodeFormat":99},{"version":"a611eb6935df7737a77b34b01c631a4a","impliedNodeFormat":99},{"version":"6d08f6f1d0ee294c119d0e66f826331a","impliedNodeFormat":99},{"version":"d0abb8fa314728650d85450ff59db909","impliedNodeFormat":99},{"version":"abe007be89c2ad52c4d67fc2b0f6da6b","impliedNodeFormat":99},{"version":"ae1fe3925f3a2c8dfbb269ac2a50f5a6","impliedNodeFormat":99},{"version":"ee8ce731ff781ae7011350481a1af176","impliedNodeFormat":99},{"version":"08dcd98985ae16732a9be03d2b56aea6","impliedNodeFormat":99},{"version":"47f7401876f3c0a5b80bd01fbdfaed2b","impliedNodeFormat":99},"ab8e1ea59f16bc290a0451d09dc5a52e",{"version":"e9d43fb880595ac4ee66a56a364fd5fb","impliedNodeFormat":99},"24367c4ec7d778084b3a83bbdc5a23d4","edbf4843929ee5fe6521503f424e4464",{"version":"5e0eecd60ec8ccc15c22c507248ef1aa","impliedNodeFormat":99},{"version":"0221e2868d1f0d6df8321d945764aadb","impliedNodeFormat":99},{"version":"d2f6ad6f161f0a522886f64842c96a0e","impliedNodeFormat":99},{"version":"618ace1500cc84e42bc2e47c64f8c407","impliedNodeFormat":99},{"version":"9dd3c481cc870c4bf19e59d34f030a27","impliedNodeFormat":99},{"version":"b5c81396e966d59acab5a45f66b70866","impliedNodeFormat":99},{"version":"f94aa434ddb9e71f6e80395de85f6850","impliedNodeFormat":99},{"version":"3486e8f7f01b9874a793ddd451eb62a5","impliedNodeFormat":99},{"version":"cb0e7222aae349c2fb4f89b26efa81bd","impliedNodeFormat":99},{"version":"b9129d694ae6cf810850117dda49d045","impliedNodeFormat":99},{"version":"0d7bbad7f82c886c5f36730065aec119","impliedNodeFormat":99},{"version":"369460c2755240ac2d3d006f09adb5ca","impliedNodeFormat":99},{"version":"4509fca76e721cdf9edb2d028395a117","impliedNodeFormat":99},"548472bfd4ebe2f1c8f494b960a27836",{"version":"fa98b0905a86da0a95fa8fd3e974e038","impliedNodeFormat":99},{"version":"5ede871fecbb2b6f672a99d3c3c6bee7","affectsGlobalScope":true,"impliedNodeFormat":99},{"version":"2c51637edf65b89d39356deff680ed36","affectsGlobalScope":true,"impliedNodeFormat":99},{"version":"0bf0efdacfd4bfadb631a4376097e382","impliedNodeFormat":99},{"version":"bd01f3bcdc72c9256e5cd5093d132df3","impliedNodeFormat":99},{"version":"b01bdc9acbaf3eb24eef464959e8e627","impliedNodeFormat":99},{"version":"2a75a1a065e5d0439fa1514d9c89b0eb","impliedNodeFormat":99},{"version":"b9129d694ae6cf810850117dda49d045","impliedNodeFormat":99},{"version":"c01d22bc96b89eedc0ed1f11d8c270ab","impliedNodeFormat":99},{"version":"c15bc5b81c64386efb6f85fb596c4349","impliedNodeFormat":99},{"version":"5794a694c1f75a9cc38cb5e9c757224e","impliedNodeFormat":99},{"version":"4040d5640775a803b2ca1aa914f7a1d4","impliedNodeFormat":99},{"version":"5ed96746ee2e7eb084ad54f0e0e518bc","impliedNodeFormat":99},{"version":"eba7786b00a4e551c36bafa71bfb1876","impliedNodeFormat":99},"8d8a98bf45979ce5401d9ca4027940cd","7d98e95d38525423bbe0f05e0a508a41","96920299d013de56061cbc74a1d658b2","439adabdf29be1212ec7acc292679f21","3eb46d20ed056dcbfa5e75bad9014661",{"version":"b46aa1886055db890de9be52a97b301e","impliedNodeFormat":99},{"version":"23cbcf6109a45b21e5b22d5f36f59db4","affectsGlobalScope":true,"impliedNodeFormat":99},{"version":"851c83981c28a32944597c743f666820","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[89],[88],[87],[119,120],[92,98,116,117,118,121],[128],[128,129],[96,98,99],[96,98],[96],[91,96,107,108],[91,96,107],[115],[91,97],[91],[93],[91,92,93,94,95],[134,135],[134,135,136,137],[134,136],[134],[102],[102,103,104,105],[104],[100,123,124,126],[100,101,113,126],[91,98,100,101,109,126],[106],[91,100,101,109,122,125],[100,101,106,109,126],[100,123,124,125,126],[100,106,110,111,112,126],[91,96,98,100,101,106,109,110,111,112,113,114,116,122,123,124,125,126,127,130,131,132,133,138],[91,98,100,101,109,110,123,124,125,126,131],[139],[64],[64,65,66,67,68,69,70,71,72],[85],[73,84],[74],[74,75,76,77,78,79,80,81,82,83],[73]],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":99,"noEmitOnError":true,"noImplicitOverride":true,"outDir":"./","rewriteRelativeImportExtensions":true,"rootDir":"../src","skipLibCheck":true,"strict":true,"sourceMap":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo.contract","useDefineForClassFields":true},"referencedMap":[[90,1],[89,2],[88,3],[121,4],[122,5],[129,6],[130,7],[100,8],[99,9],[123,8],[107,10],[109,11],[108,12],[116,13],[98,14],[92,15],[94,16],[96,17],[97,15],[136,18],[138,19],[137,20],[135,21],[103,22],[106,23],[104,22],[105,24],[125,25],[114,26],[110,27],[111,10],[132,28],[126,29],[112,30],[131,31],[113,32],[139,33],[133,34],[140,35],[65,36],[66,36],[73,37],[67,36],[68,36],[69,36],[70,36],[71,36],[72,36],[86,38],[85,39],[75,40],[84,41],[76,40],[78,40],[79,40],[80,40],[83,40],[81,40],[82,40],[74,42]],"latestChangedDtsFile":"./contract.keyboard-types.d.ts"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":"7.0.2","root":[[86,89]],"packageJsons":["../../../node_modules/@standard-schema/spec/package.json","../../../node_modules/@testing-library/jest-dom/package.json","../../../node_modules/@types/aria-query/package.json","../../../node_modules/@types/chai/package.json","../../../node_modules/@types/deep-eql/package.json","../../../node_modules/@types/node/package.json","../../../node_modules/@vitest/coverage-v8/package.json","../../../node_modules/@vitest/expect/package.json","../../../node_modules/@vitest/mocker/package.json","../../../node_modules/@vitest/pretty-format/package.json","../../../node_modules/@vitest/runner/package.json","../../../node_modules/@vitest/snapshot/package.json","../../../node_modules/@vitest/spy/package.json","../../../node_modules/@vitest/utils/package.json","../../../node_modules/@webgpu/types/package.json","../../../node_modules/aria-query/package.json","../../../node_modules/assertion-error/package.json","../../../node_modules/chai/package.json","../../../node_modules/deep-eql/package.json","../../../node_modules/expect-type/package.json","../../../node_modules/jiti/package.json","../../../node_modules/jsdom/package.json","../../../node_modules/terser/package.json","../../../node_modules/tinybench/package.json","../../../node_modules/tinyrainbow/package.json","../../../node_modules/tsx/package.json","../../../node_modules/vite/package.json","../../../node_modules/vite/types/package.json","../../../node_modules/vitest/package.json","../../../node_modules/yaml/package.json","../../entity/package.json","../package.json","../../signals/package.json"],"missingPackageJsons":["../../../node_modules/@edge-runtime/vm/package.json","../../../node_modules/@opentelemetry/api/package.json","../../../node_modules/@standard-schema/spec/dist/package.json","../../../node_modules/@testing-library/jest-dom/node_modules/aria-query/package.json","../../../node_modules/@testing-library/jest-dom/node_modules/jest/package.json","../../../node_modules/@testing-library/jest-dom/types/package.json","../../../node_modules/@types/jest/package.json","../../../node_modules/@types/testing-library__jest-dom/package.json","../../../node_modules/@types/vitest/globals/package.json","../../../node_modules/@types/webgpu__types/package.json","../../../node_modules/@vitest/browser-playwright/package.json","../../../node_modules/@vitest/browser-preview/package.json","../../../node_modules/@vitest/browser-webdriverio/package.json","../../../node_modules/@vitest/coverage-istanbul/package.json","../../../node_modules/@vitest/expect/dist/package.json","../../../node_modules/@vitest/mocker/dist/package.json","../../../node_modules/@vitest/pretty-format/dist/package.json","../../../node_modules/@vitest/runner/dist/package.json","../../../node_modules/@vitest/runner/utils/package.json","../../../node_modules/@vitest/snapshot/dist/package.json","../../../node_modules/@vitest/spy/dist/package.json","../../../node_modules/@vitest/ui/package.json","../../../node_modules/@vitest/utils/diff/package.json","../../../node_modules/@vitest/utils/display/package.json","../../../node_modules/@vitest/utils/dist/package.json","../../../node_modules/@webgpu/types/dist/package.json","../../../node_modules/expect-type/dist/package.json","../../../node_modules/happy-dom/package.json","../../../node_modules/jest/package.json","../../../node_modules/less/package.json","../../../node_modules/lightningcss/package.json","../../../node_modules/msw/package.json","../../../node_modules/sass-embedded/package.json","../../../node_modules/sass/package.json","../../../node_modules/stylus/package.json","../../../node_modules/sugarss/package.json","../../../node_modules/tinybench/dist/package.json","../../../node_modules/tinyrainbow/dist/package.json","../../../node_modules/vite/dist/node/chunks/package.json","../../../node_modules/vite/dist/node/package.json","../../../node_modules/vite/dist/package.json","../../../node_modules/vite/module-runner/package.json","../../../node_modules/vitest/dist/chunks/package.json","../../../node_modules/vitest/dist/package.json","../../../node_modules/vitest/globals/package.json"],"fileNames":["lib.es5.d.ts","lib.es2015.d.ts","lib.es2016.d.ts","lib.es2017.d.ts","lib.es2018.d.ts","lib.es2019.d.ts","lib.es2020.d.ts","lib.es2021.d.ts","lib.es2022.d.ts","lib.dom.d.ts","lib.dom.iterable.d.ts","lib.dom.asynciterable.d.ts","lib.webworker.importscripts.d.ts","lib.scripthost.d.ts","lib.es2015.core.d.ts","lib.es2015.collection.d.ts","lib.es2015.generator.d.ts","lib.es2015.iterable.d.ts","lib.es2015.promise.d.ts","lib.es2015.proxy.d.ts","lib.es2015.reflect.d.ts","lib.es2015.symbol.d.ts","lib.es2015.symbol.wellknown.d.ts","lib.es2016.array.include.d.ts","lib.es2016.intl.d.ts","lib.es2017.arraybuffer.d.ts","lib.es2017.date.d.ts","lib.es2017.object.d.ts","lib.es2017.sharedmemory.d.ts","lib.es2017.string.d.ts","lib.es2017.intl.d.ts","lib.es2017.typedarrays.d.ts","lib.es2018.asyncgenerator.d.ts","lib.es2018.asynciterable.d.ts","lib.es2018.intl.d.ts","lib.es2018.promise.d.ts","lib.es2018.regexp.d.ts","lib.es2019.array.d.ts","lib.es2019.object.d.ts","lib.es2019.string.d.ts","lib.es2019.symbol.d.ts","lib.es2019.intl.d.ts","lib.es2020.bigint.d.ts","lib.es2020.date.d.ts","lib.es2020.promise.d.ts","lib.es2020.sharedmemory.d.ts","lib.es2020.string.d.ts","lib.es2020.symbol.wellknown.d.ts","lib.es2020.intl.d.ts","lib.es2020.number.d.ts","lib.es2021.promise.d.ts","lib.es2021.string.d.ts","lib.es2021.weakref.d.ts","lib.es2021.intl.d.ts","lib.es2022.array.d.ts","lib.es2022.error.d.ts","lib.es2022.intl.d.ts","lib.es2022.object.d.ts","lib.es2022.string.d.ts","lib.es2022.regexp.d.ts","lib.decorators.d.ts","lib.decorators.legacy.d.ts","lib.es2022.full.d.ts","../../entity/dist/types.d.ts","../../entity/dist/binding.d.ts","../../entity/dist/clone.d.ts","../../entity/dist/enableEntityRuntimeGuards.d.ts","../../entity/dist/entity.d.ts","../../entity/dist/entityUid.d.ts","../../entity/dist/explainEntityRuntimeWrite.d.ts","../../entity/dist/guards.d.ts","../../entity/dist/runtime.d.ts","../../entity/dist/contract.d.ts","../../signals/dist/types.d.ts","../../signals/dist/connection.d.ts","../../signals/dist/emitter.d.ts","../../signals/dist/internal.d.ts","../../signals/dist/safe.d.ts","../../signals/dist/scope.d.ts","../../signals/dist/signal.d.ts","../../signals/dist/slot.d.ts","../../signals/dist/throttle.d.ts","../../signals/dist/signalTypes.d.ts","../../signals/dist/contract.d.ts","./types.d.ts","../src/keyboard.ts","../src/contract.ts","../src/index.ts","../src/keyboard.test.ts","../../../node_modules/@types/aria-query/index.d.ts","../../../node_modules/@testing-library/jest-dom/types/matchers.d.ts","../../../node_modules/@testing-library/jest-dom/types/jest.d.ts","../../../node_modules/@testing-library/jest-dom/types/index.d.ts","../../../node_modules/@vitest/pretty-format/dist/index.d.ts","../../../node_modules/@vitest/utils/dist/display.d.ts","../../../node_modules/@vitest/utils/dist/types.d.ts","../../../node_modules/@vitest/utils/dist/helpers.d.ts","../../../node_modules/@vitest/utils/dist/timers.d.ts","../../../node_modules/@vitest/utils/dist/index.d.ts","../../../node_modules/@vitest/utils/dist/types.d-BCElaP-c.d.ts","../../../node_modules/@vitest/utils/dist/diff.d.ts","../../../node_modules/@vitest/runner/dist/tasks.d-DEYaIMIu.d.ts","../../../node_modules/@vitest/runner/dist/index.d.ts","../../../node_modules/vitest/dist/chunks/traces.d.D2T_R8rx.d.ts","../../../node_modules/vite/types/hmrPayload.d.ts","../../../node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts","../../../node_modules/vite/types/customEvent.d.ts","../../../node_modules/vite/types/hot.d.ts","../../../node_modules/vite/dist/node/module-runner.d.ts","../../../node_modules/@vitest/snapshot/dist/environment.d-DOJxxZV9.d.ts","../../../node_modules/@vitest/snapshot/dist/rawSnapshot.d-D_X3-62x.d.ts","../../../node_modules/@vitest/snapshot/dist/index.d.ts","../../../node_modules/vitest/dist/chunks/config.d.A1h_Y6Jt.d.ts","../../../node_modules/vitest/dist/chunks/environment.d.CrsxCzP1.d.ts","../../../node_modules/vitest/dist/chunks/rpc.d.B_8sPU0w.d.ts","../../../node_modules/vitest/dist/chunks/worker.d.ZpHpO4yb.d.ts","../../../node_modules/vitest/dist/chunks/browser.d.BcoexmFG.d.ts","../../../node_modules/@vitest/spy/optional-types.d.ts","../../../node_modules/@vitest/spy/dist/index.d.ts","../../../node_modules/tinyrainbow/dist/index.d.ts","../../../node_modules/@standard-schema/spec/dist/index.d.ts","../../../node_modules/@types/deep-eql/index.d.ts","../../../node_modules/assertion-error/index.d.ts","../../../node_modules/@types/chai/index.d.ts","../../../node_modules/@vitest/expect/dist/index.d.ts","../../../node_modules/@vitest/runner/dist/utils.d.ts","../../../node_modules/tinybench/dist/index.d.ts","../../../node_modules/vitest/dist/chunks/benchmark.d.DAaHLpsq.d.ts","../../../node_modules/vitest/dist/chunks/global.d.DVsSRdQ5.d.ts","../../../node_modules/vitest/optional-runtime-types.d.ts","../../../node_modules/@vitest/mocker/dist/types.d-BjI5eAwu.d.ts","../../../node_modules/@vitest/mocker/dist/index.d-B41z0AuW.d.ts","../../../node_modules/@vitest/mocker/dist/index.d.ts","../../../node_modules/vitest/dist/chunks/suite.d.udJtyAgw.d.ts","../../../node_modules/vitest/dist/chunks/evaluatedModules.d.BxJ5omdx.d.ts","../../../node_modules/vitest/dist/runners.d.ts","../../../node_modules/expect-type/dist/utils.d.ts","../../../node_modules/expect-type/dist/overloads.d.ts","../../../node_modules/expect-type/dist/branding.d.ts","../../../node_modules/expect-type/dist/messages.d.ts","../../../node_modules/expect-type/dist/index.d.ts","../../../node_modules/vitest/dist/index.d.ts","../../../node_modules/vitest/globals.d.ts","../../../node_modules/@webgpu/types/dist/index.d.ts"],"fileInfos":[{"version":"16934abaab7026ac114da441aabea1a0","affectsGlobalScope":true,"impliedNodeFormat":1},"d4306fb2e47f74835e8674ffac07d76f","e437c5c1302869326c3bb93da85bbbcf","e4324975a566567b21d350615f1fc6ac","333b1b9a2a9ac3b8497dba5c63b5ba50","6cffacd662b6eb5fa7a36aa2ea366bfa","b4c34f9c23304dbef2d23698637ed638","e5cb86a5fc491796ecd1d2dd348d208f","feb6c6fb19cdb246a5d8acb36a6901c7",{"version":"aae8996e8b5684814785a42cbbefcd79","affectsGlobalScope":true,"impliedNodeFormat":1},"abad6dd56cc8caf095c165df8124d237","abad6dd56cc8caf095c165df8124d237",{"version":"2a9941db0809c9ad0e8837ed629b1dcc","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d051b93324f36bcc68d152a5ca0988cd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"926204c28cd3d073865348473ae28d2e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f25e42c801b2cb3cf2b39792006a9beb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6344b55f26a4e81d9608777dbfb877dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3c0ed28e53d3695b363e256ec1c023fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4c2761daba7f17141c25baa0821ac5da","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b87656acabd63e69379ff6ffcfe52fc7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"597469522da047a5af5222cc6989f405","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1708ea4d34dc37fadadc63ca01127e80","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"55d97a8c6fbf34a30450a7b1e5f7a298","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0ee05eb59426d33e374226d8dcfa708b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e347c14030993906efcfbb88915b6a05","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b0231263857c9b6a03641acdc9280ceb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3b15c4a83b598cacb4067676e6f0abed","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b417d97b7934cef63b1889abec0bbfbf","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"09a6cf4032ebba60ce22a501e663f881","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2b056277dd138e8f5650fc04e20eaa8d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e22cc07e3f3cc242ba52fa3f8ea1fc58","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c45da767a1bfbb220848df1bc4029e4","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b44c3e0fbaf2130cdcf6ac38b120ffa1","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b612fb5cf8e5d964b92063a75207632a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02705151a5e1551b9162a9ed8ab763f7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"41025e398be9215d32e4337335da8f0b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"52684c2b1f353a5538e4f275182a54cd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6dedb6a4f90d1df3a6fbe5693e44886c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ca3f36fe3562c07e0f0d71c2bebd3f6d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"409974d6129befbb8226ddd1c6558568","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4d9cfde2a1ae1b4925f1f9bc10848e5d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7e1daecc66dd564144e3bb1a0266b5fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a8e1d9bb35fd0637f2f9fd2b2a54f2ec","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4f168501772a6543182765bfd5f2fbfe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a19c80aad1b2162103496f5ba293a732","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b69afa63cd5d059851c78adb2856ee09","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ae2fc5d954e9b0f5feee3d481b953c27","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1cfd3091a071d8b6feec15277643bafe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1da2c1f258970fd3cc91184f69e91a9d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a0d87491913d843139e0c993650a3235","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4ef72aa378127e7b7abba915b0110b1e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3ec74c6a7d4463f0254db3a74cf75646","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"84c2bdfa470d075526cce6322d81b0b6","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0b3844c2b8c73e4e1ab91431411cad11","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4fc71cf4a15b8d99675a31df77f26e07","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d1b49564ddaeca3df5b6dbae925d2242","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6a25be566d60ccfc2d6e8b7bfdeefa83","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8a20e27646985dfd58c57ca6566553dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9969f02ad3cdcbf4f709405cda44167f","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c9be4792a7a4f42c15ae7360bf28779","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f64453cbf9671f28158677fa5c43967a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"33f317af5428801f944a478d2c1e38e5","affectsGlobalScope":true,"impliedNodeFormat":1},"0eb5b8b97bde45c8fde5cd07c33f6631","22772bc49abb63e5c9ba66ac5fb78a3d","daf7ba9e176366b3caf843bd266d163a","1cd6ad8dcb5625d764e0d55a82295469","76aca40ee07d543a14c24ba839109332","6f54f49ea7e96bdd7a9078f6c94e88fd","e9fd0536114fa9a746eacd5bc23969e5","add935c05420698ee2f670e9c7605d49","8202b77f954e4d5a21783859414fcc7c","524a08ff038d375ae8c86bf6481e17d2","9ff787c1324b2d4c07a342936293f47a","921f8c08344aa1539405420fcf952a20","21a1b4607cb18ab00b1254cb35a77c57","d80705d2e260aba56aa54c416f471fbd","a821537667385a2906566c8bc69a21ed","387cee0627331c24f641f87fc905bff1","859418c3a3f1b2e9500476d829fc6093","32e33ec68ba1aa1147aab680de3b7c90","67c59d76f923f64e85a373fb5a2bbb13","5676a2feb7e6b36f973571c4a4500566","dd2bc19aa76d59fe40aa6c6fb9a33365","7ef4fc8b5166fc742b557034c24ec46b","fedf9ab104a48ec547e2b5176373e0b8",{"version":"e2c7f9d7aaf4447899f67e8d24c2c5ae","signature":"f4148f014d2d36cdc7032f846c5bcf8e","impliedNodeFormat":1},"5db8346c7763ac6841fa7257a09c6972",{"version":"552285e5f47ddc96bc4c345eb08d530e","signature":"bf95955241b5a14780219b0212cd1787","impliedNodeFormat":1},{"version":"061a6cdf56eec396e2b2af1a5d0a8cfd","signature":"abe7d9981d6018efb6b2b794f40a1607","impliedNodeFormat":1},"56d080dfccb3c53a2d6c74c4f24252e3","75ebd62d9641cc8b34ba9b09be8283a9",{"version":"753f71e16f2994f332390bb1c997b0e3","affectsGlobalScope":true,"impliedNodeFormat":1},"8def0ea0e249f49397d74a4f5bdd45a5",{"version":"ed63d99e1e5c371dc120bef1b84057fc","impliedNodeFormat":99},{"version":"4d3fb552bfc7fb53c9195b2fafb512c0","impliedNodeFormat":99},{"version":"fbf7ba69043f86dc506ba28263e2e783","impliedNodeFormat":99},{"version":"a611eb6935df7737a77b34b01c631a4a","impliedNodeFormat":99},{"version":"6d08f6f1d0ee294c119d0e66f826331a","impliedNodeFormat":99},{"version":"d0abb8fa314728650d85450ff59db909","impliedNodeFormat":99},{"version":"abe007be89c2ad52c4d67fc2b0f6da6b","impliedNodeFormat":99},{"version":"ae1fe3925f3a2c8dfbb269ac2a50f5a6","impliedNodeFormat":99},{"version":"ee8ce731ff781ae7011350481a1af176","impliedNodeFormat":99},{"version":"08dcd98985ae16732a9be03d2b56aea6","impliedNodeFormat":99},{"version":"47f7401876f3c0a5b80bd01fbdfaed2b","impliedNodeFormat":99},"ab8e1ea59f16bc290a0451d09dc5a52e",{"version":"e9d43fb880595ac4ee66a56a364fd5fb","impliedNodeFormat":99},"24367c4ec7d778084b3a83bbdc5a23d4","edbf4843929ee5fe6521503f424e4464",{"version":"5e0eecd60ec8ccc15c22c507248ef1aa","impliedNodeFormat":99},{"version":"0221e2868d1f0d6df8321d945764aadb","impliedNodeFormat":99},{"version":"d2f6ad6f161f0a522886f64842c96a0e","impliedNodeFormat":99},{"version":"618ace1500cc84e42bc2e47c64f8c407","impliedNodeFormat":99},{"version":"9dd3c481cc870c4bf19e59d34f030a27","impliedNodeFormat":99},{"version":"b5c81396e966d59acab5a45f66b70866","impliedNodeFormat":99},{"version":"f94aa434ddb9e71f6e80395de85f6850","impliedNodeFormat":99},{"version":"3486e8f7f01b9874a793ddd451eb62a5","impliedNodeFormat":99},{"version":"cb0e7222aae349c2fb4f89b26efa81bd","impliedNodeFormat":99},{"version":"b9129d694ae6cf810850117dda49d045","impliedNodeFormat":99},{"version":"0d7bbad7f82c886c5f36730065aec119","impliedNodeFormat":99},{"version":"369460c2755240ac2d3d006f09adb5ca","impliedNodeFormat":99},{"version":"4509fca76e721cdf9edb2d028395a117","impliedNodeFormat":99},"548472bfd4ebe2f1c8f494b960a27836",{"version":"fa98b0905a86da0a95fa8fd3e974e038","impliedNodeFormat":99},{"version":"5ede871fecbb2b6f672a99d3c3c6bee7","affectsGlobalScope":true,"impliedNodeFormat":99},{"version":"2c51637edf65b89d39356deff680ed36","affectsGlobalScope":true,"impliedNodeFormat":99},{"version":"0bf0efdacfd4bfadb631a4376097e382","impliedNodeFormat":99},{"version":"bd01f3bcdc72c9256e5cd5093d132df3","impliedNodeFormat":99},{"version":"b01bdc9acbaf3eb24eef464959e8e627","impliedNodeFormat":99},{"version":"2a75a1a065e5d0439fa1514d9c89b0eb","impliedNodeFormat":99},{"version":"b9129d694ae6cf810850117dda49d045","impliedNodeFormat":99},{"version":"c01d22bc96b89eedc0ed1f11d8c270ab","impliedNodeFormat":99},{"version":"c15bc5b81c64386efb6f85fb596c4349","impliedNodeFormat":99},{"version":"5794a694c1f75a9cc38cb5e9c757224e","impliedNodeFormat":99},{"version":"4040d5640775a803b2ca1aa914f7a1d4","impliedNodeFormat":99},{"version":"5ed96746ee2e7eb084ad54f0e0e518bc","impliedNodeFormat":99},{"version":"eba7786b00a4e551c36bafa71bfb1876","impliedNodeFormat":99},"8d8a98bf45979ce5401d9ca4027940cd","7d98e95d38525423bbe0f05e0a508a41","96920299d013de56061cbc74a1d658b2","439adabdf29be1212ec7acc292679f21","3eb46d20ed056dcbfa5e75bad9014661",{"version":"b46aa1886055db890de9be52a97b301e","impliedNodeFormat":99},{"version":"23cbcf6109a45b21e5b22d5f36f59db4","affectsGlobalScope":true,"impliedNodeFormat":99},{"version":"851c83981c28a32944597c743f666820","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[92],[91],[90],[122,123],[95,101,119,120,121,124],[131],[131,132],[99,101,102],[99,101],[99],[94,99,110,111],[94,99,110],[118],[94,100],[94],[96],[94,95,96,97,98],[137,138],[137,138,139,140],[137,139],[137],[105],[105,106,107,108],[107],[103,126,127,129],[103,104,116,129],[94,101,103,104,112,129],[109],[94,103,104,112,125,128],[103,104,109,112,129],[103,126,127,128,129],[103,109,113,114,115,129],[94,99,101,103,104,109,112,113,114,115,116,117,119,125,126,127,128,129,130,133,134,135,136,141],[94,101,103,104,112,113,126,127,128,129,134],[142],[64],[64,65,66,67,68,69,70,71,72],[73,84],[85,86],[87],[73,84,85,86],[73,84,85],[74],[74,75,76,77,78,79,80,81,82,83],[73]],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":99,"noEmitOnError":true,"noImplicitOverride":true,"outDir":"./","rewriteRelativeImportExtensions":true,"rootDir":"../src","skipLibCheck":true,"strict":true,"sourceMap":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo.runtime","useDefineForClassFields":true},"referencedMap":[[93,1],[92,2],[91,3],[124,4],[125,5],[132,6],[133,7],[103,8],[102,9],[126,8],[110,10],[112,11],[111,12],[119,13],[101,14],[95,15],[97,16],[99,17],[100,15],[139,18],[141,19],[140,20],[138,21],[106,22],[109,23],[107,22],[108,24],[128,25],[117,26],[113,27],[114,10],[135,28],[129,29],[115,30],[134,31],[116,32],[142,33],[136,34],[143,35],[65,36],[66,36],[73,37],[67,36],[68,36],[69,36],[70,36],[71,36],[72,36],[85,38],[87,39],[88,40],[89,41],[86,42],[75,43],[84,44],[76,43],[78,43],[79,43],[80,43],[83,43],[81,43],[82,43],[74,45]],"latestChangedDtsFile":"./keyboard.test.d.ts"}
|
package/dist/contract.d.ts
CHANGED
package/dist/contract.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC"}
|
package/dist/contract.js
CHANGED
package/dist/contract.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.keyboard-types.d.ts","sourceRoot":"","sources":["../src/contract.keyboard-types.ts"],"names":[],"mappings":"AAEA,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// Acyclic build entry selected by contract-only projects through the `.keyboard-types` module suffix.
|
|
2
|
+
// The published @flighthq/keyboard/contract entry remains contract.ts, which adds the runtime barrel.
|
|
3
|
+
export * from './types.js';
|
|
4
|
+
//# sourceMappingURL=contract.keyboard-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.keyboard-types.js","sourceRoot":"","sources":["../src/contract.keyboard-types.ts"],"names":[],"mappings":"AAAA,sGAAsG;AACtG,sGAAsG;AACtG,cAAc,YAAY,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { attachSoftKeyboard, createSoftKeyboard, detachSoftKeyboard, disposeSoftKeyboard, getSoftKeyboardHeight, getSoftKeyboardInfo, hideSoftKeyboard, isSoftKeyboardVisible, setSoftKeyboardAccessoryBarVisible, setSoftKeyboardResizeMode, setSoftKeyboardScrollAssistEnabled, setSoftKeyboardStyle, showSoftKeyboard, } from './contract';
|
|
1
|
+
export { attachSoftKeyboard, createSoftKeyboard, detachSoftKeyboard, disposeSoftKeyboard, getSoftKeyboardHeight, getSoftKeyboardInfo, hideSoftKeyboard, isSoftKeyboardVisible, setSoftKeyboardAccessoryBarVisible, setSoftKeyboardResizeMode, setSoftKeyboardScrollAssistEnabled, setSoftKeyboardStyle, showSoftKeyboard, } from './contract.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAChB,qBAAqB,EACrB,kCAAkC,EAClC,yBAAyB,EACzB,kCAAkC,EAClC,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAChB,qBAAqB,EACrB,kCAAkC,EAClC,yBAAyB,EACzB,kCAAkC,EAClC,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,eAAe,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { attachSoftKeyboard, createSoftKeyboard, detachSoftKeyboard, disposeSoftKeyboard, getSoftKeyboardHeight, getSoftKeyboardInfo, hideSoftKeyboard, isSoftKeyboardVisible, setSoftKeyboardAccessoryBarVisible, setSoftKeyboardResizeMode, setSoftKeyboardScrollAssistEnabled, setSoftKeyboardStyle, showSoftKeyboard, } from './contract';
|
|
1
|
+
export { attachSoftKeyboard, createSoftKeyboard, detachSoftKeyboard, disposeSoftKeyboard, getSoftKeyboardHeight, getSoftKeyboardInfo, hideSoftKeyboard, isSoftKeyboardVisible, setSoftKeyboardAccessoryBarVisible, setSoftKeyboardResizeMode, setSoftKeyboardScrollAssistEnabled, setSoftKeyboardStyle, showSoftKeyboard, } from './contract.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAChB,qBAAqB,EACrB,kCAAkC,EAClC,yBAAyB,EACzB,kCAAkC,EAClC,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAChB,qBAAqB,EACrB,kCAAkC,EAClC,yBAAyB,EACzB,kCAAkC,EAClC,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,eAAe,CAAC"}
|
package/dist/keyboard.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
export declare function
|
|
1
|
+
import type { EntityConstruction } from '@flighthq/entity/contract';
|
|
2
|
+
import type { HostSoftKeyboardAccessoryBarCapability, HostSoftKeyboardChangeCapability, HostSoftKeyboardInfoCapability, HostSoftKeyboardResizeModeWriteCapability, HostSoftKeyboardScrollAssistCapability, HostSoftKeyboardStyleCapability, HostSoftKeyboardVisibilityCapability, SoftKeyboard, SoftKeyboardAttachResult, SoftKeyboardInfo, SoftKeyboardResizeMode, SoftKeyboardSetterResult, SoftKeyboardStyleKind, SoftKeyboardVisibilityResult } from './types.ts';
|
|
3
|
+
export declare function attachSoftKeyboard(hostSoftKeyboardChange: Readonly<HostSoftKeyboardChangeCapability>, hostSoftKeyboardInfo: Readonly<HostSoftKeyboardInfoCapability>, keyboard: SoftKeyboard): Promise<SoftKeyboardAttachResult>;
|
|
4
|
+
export declare function createSoftKeyboard(): SoftKeyboard;
|
|
4
5
|
export declare function detachSoftKeyboard(keyboard: SoftKeyboard): void;
|
|
5
6
|
export declare function disposeSoftKeyboard(keyboard: SoftKeyboard): void;
|
|
6
|
-
export declare function getSoftKeyboardHeight(
|
|
7
|
-
export declare function getSoftKeyboardInfo(
|
|
8
|
-
export declare function hideSoftKeyboard(
|
|
9
|
-
export declare function initializeSoftKeyboard(out: EntityConstruction<SoftKeyboard
|
|
10
|
-
export declare function isSoftKeyboardVisible(
|
|
11
|
-
export declare function setSoftKeyboardAccessoryBarVisible(
|
|
12
|
-
export declare function setSoftKeyboardResizeMode(
|
|
13
|
-
export declare function setSoftKeyboardScrollAssistEnabled(
|
|
14
|
-
export declare function setSoftKeyboardStyle(
|
|
15
|
-
export declare function showSoftKeyboard(
|
|
7
|
+
export declare function getSoftKeyboardHeight(hostSoftKeyboardInfo: Readonly<HostSoftKeyboardInfoCapability>): number;
|
|
8
|
+
export declare function getSoftKeyboardInfo(hostSoftKeyboardInfo: Readonly<HostSoftKeyboardInfoCapability>, out: SoftKeyboardInfo): void;
|
|
9
|
+
export declare function hideSoftKeyboard(hostSoftKeyboardVisibility: Readonly<HostSoftKeyboardVisibilityCapability>): Promise<SoftKeyboardVisibilityResult>;
|
|
10
|
+
export declare function initializeSoftKeyboard(out: EntityConstruction<SoftKeyboard>): void;
|
|
11
|
+
export declare function isSoftKeyboardVisible(hostSoftKeyboardInfo: Readonly<HostSoftKeyboardInfoCapability>): boolean;
|
|
12
|
+
export declare function setSoftKeyboardAccessoryBarVisible(hostSoftKeyboardAccessoryBar: Readonly<HostSoftKeyboardAccessoryBarCapability>, visible: boolean): Promise<SoftKeyboardSetterResult>;
|
|
13
|
+
export declare function setSoftKeyboardResizeMode(hostSoftKeyboardResizeModeWrite: Readonly<HostSoftKeyboardResizeModeWriteCapability>, mode: SoftKeyboardResizeMode): Promise<SoftKeyboardSetterResult>;
|
|
14
|
+
export declare function setSoftKeyboardScrollAssistEnabled(hostSoftKeyboardScrollAssist: Readonly<HostSoftKeyboardScrollAssistCapability>, enabled: boolean): Promise<SoftKeyboardSetterResult>;
|
|
15
|
+
export declare function setSoftKeyboardStyle(hostSoftKeyboardStyle: Readonly<HostSoftKeyboardStyleCapability>, style: SoftKeyboardStyleKind): Promise<SoftKeyboardSetterResult>;
|
|
16
|
+
export declare function showSoftKeyboard(hostSoftKeyboardVisibility: Readonly<HostSoftKeyboardVisibilityCapability>): Promise<SoftKeyboardVisibilityResult>;
|
|
16
17
|
//# sourceMappingURL=keyboard.d.ts.map
|
package/dist/keyboard.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboard.d.ts","sourceRoot":"","sources":["../src/keyboard.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"keyboard.d.ts","sourceRoot":"","sources":["../src/keyboard.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAGpE,OAAO,KAAK,EACV,sCAAsC,EACtC,gCAAgC,EAChC,8BAA8B,EAC9B,yCAAyC,EACzC,sCAAsC,EACtC,+BAA+B,EAC/B,oCAAoC,EACpC,YAAY,EACZ,wBAAwB,EACxB,gBAAgB,EAChB,sBAAsB,EACtB,wBAAwB,EACxB,qBAAqB,EACrB,4BAA4B,EAC7B,MAAM,YAAY,CAAC;AAEpB,wBAAsB,kBAAkB,CACtC,sBAAsB,EAAE,QAAQ,CAAC,gCAAgC,CAAC,EAClE,oBAAoB,EAAE,QAAQ,CAAC,8BAA8B,CAAC,EAC9D,QAAQ,EAAE,YAAY,GACrB,OAAO,CAAC,wBAAwB,CAAC,CAyBnC;AAED,wBAAgB,kBAAkB,IAAI,YAAY,CAIjD;AAED,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,YAAY,GAAG,IAAI,CAM/D;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,YAAY,GAAG,IAAI,CAEhE;AAED,wBAAgB,qBAAqB,CAAC,oBAAoB,EAA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Signal, emitSignal } from '@flighthq/signals/contract';
|
|
3
|
-
export async function attachSoftKeyboard(
|
|
3
|
+
export async function attachSoftKeyboard(hostSoftKeyboardChange, hostSoftKeyboardInfo, keyboard) {
|
|
4
4
|
detachSoftKeyboard(keyboard);
|
|
5
|
-
const change =
|
|
6
|
-
const info =
|
|
7
|
-
|
|
5
|
+
const change = hostSoftKeyboardChange;
|
|
6
|
+
const info = hostSoftKeyboardInfo;
|
|
7
|
+
info.getInfo(_scratch);
|
|
8
|
+
let prevHeight = _scratch.height;
|
|
8
9
|
const subscription = await change.subscribe(() => {
|
|
9
|
-
|
|
10
|
-
const nowHeight =
|
|
10
|
+
info.getInfo(_scratch);
|
|
11
|
+
const nowHeight = _scratch.height;
|
|
11
12
|
const wasVisible = prevHeight > 0;
|
|
12
13
|
const nowVisible = nowHeight > 0;
|
|
13
14
|
if (nowVisible && !wasVisible) {
|
|
@@ -16,7 +17,7 @@ export async function attachSoftKeyboard(host, keyboard) {
|
|
|
16
17
|
}
|
|
17
18
|
else if (!nowVisible && wasVisible) {
|
|
18
19
|
prevHeight = 0;
|
|
19
|
-
emitSignal(keyboard.onHide);
|
|
20
|
+
emitSignal(keyboard.onHide, undefined);
|
|
20
21
|
}
|
|
21
22
|
else if (nowVisible && nowHeight !== prevHeight) {
|
|
22
23
|
prevHeight = nowHeight;
|
|
@@ -31,7 +32,7 @@ export async function attachSoftKeyboard(host, keyboard) {
|
|
|
31
32
|
export function createSoftKeyboard() {
|
|
32
33
|
const out = allocateEntity();
|
|
33
34
|
initializeSoftKeyboard(out);
|
|
34
|
-
return
|
|
35
|
+
return out;
|
|
35
36
|
}
|
|
36
37
|
export function detachSoftKeyboard(keyboard) {
|
|
37
38
|
const unsubscribe = _subscriptions.get(keyboard);
|
|
@@ -43,37 +44,40 @@ export function detachSoftKeyboard(keyboard) {
|
|
|
43
44
|
export function disposeSoftKeyboard(keyboard) {
|
|
44
45
|
detachSoftKeyboard(keyboard);
|
|
45
46
|
}
|
|
46
|
-
export function getSoftKeyboardHeight(
|
|
47
|
-
|
|
47
|
+
export function getSoftKeyboardHeight(hostSoftKeyboardInfo) {
|
|
48
|
+
hostSoftKeyboardInfo.getInfo(_scratch);
|
|
49
|
+
return _scratch.height;
|
|
48
50
|
}
|
|
49
|
-
export function getSoftKeyboardInfo(
|
|
50
|
-
|
|
51
|
+
export function getSoftKeyboardInfo(hostSoftKeyboardInfo, out) {
|
|
52
|
+
hostSoftKeyboardInfo.getInfo(out);
|
|
53
|
+
return;
|
|
51
54
|
}
|
|
52
|
-
export function hideSoftKeyboard(
|
|
53
|
-
return
|
|
55
|
+
export function hideSoftKeyboard(hostSoftKeyboardVisibility) {
|
|
56
|
+
return hostSoftKeyboardVisibility.hide();
|
|
54
57
|
}
|
|
55
58
|
export function initializeSoftKeyboard(out) {
|
|
56
59
|
out.onHide = createSignal();
|
|
57
60
|
out.onResize = createSignal();
|
|
58
61
|
out.onShow = createSignal();
|
|
59
62
|
}
|
|
60
|
-
export function isSoftKeyboardVisible(
|
|
61
|
-
|
|
63
|
+
export function isSoftKeyboardVisible(hostSoftKeyboardInfo) {
|
|
64
|
+
hostSoftKeyboardInfo.getInfo(_scratch);
|
|
65
|
+
return _scratch.visible;
|
|
62
66
|
}
|
|
63
|
-
export function setSoftKeyboardAccessoryBarVisible(
|
|
64
|
-
return
|
|
67
|
+
export function setSoftKeyboardAccessoryBarVisible(hostSoftKeyboardAccessoryBar, visible) {
|
|
68
|
+
return hostSoftKeyboardAccessoryBar.setAccessoryBarVisible(visible);
|
|
65
69
|
}
|
|
66
|
-
export function setSoftKeyboardResizeMode(
|
|
67
|
-
return
|
|
70
|
+
export function setSoftKeyboardResizeMode(hostSoftKeyboardResizeModeWrite, mode) {
|
|
71
|
+
return hostSoftKeyboardResizeModeWrite.setResizeMode(mode);
|
|
68
72
|
}
|
|
69
|
-
export function setSoftKeyboardScrollAssistEnabled(
|
|
70
|
-
return
|
|
73
|
+
export function setSoftKeyboardScrollAssistEnabled(hostSoftKeyboardScrollAssist, enabled) {
|
|
74
|
+
return hostSoftKeyboardScrollAssist.setScrollAssistEnabled(enabled);
|
|
71
75
|
}
|
|
72
|
-
export function setSoftKeyboardStyle(
|
|
73
|
-
return
|
|
76
|
+
export function setSoftKeyboardStyle(hostSoftKeyboardStyle, style) {
|
|
77
|
+
return hostSoftKeyboardStyle.setStyle(style);
|
|
74
78
|
}
|
|
75
|
-
export function showSoftKeyboard(
|
|
76
|
-
return
|
|
79
|
+
export function showSoftKeyboard(hostSoftKeyboardVisibility) {
|
|
80
|
+
return hostSoftKeyboardVisibility.show();
|
|
77
81
|
}
|
|
78
82
|
const _scratch = { visible: false, height: 0, x: 0, y: 0, width: 0 };
|
|
79
83
|
const _subscriptions = new WeakMap();
|
package/dist/keyboard.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboard.js","sourceRoot":"","sources":["../src/keyboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"keyboard.js","sourceRoot":"","sources":["../src/keyboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAmBtE,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,sBAAkE,EAClE,oBAA8D,EAC9D,QAAsB;IAEtB,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IAC7B,MAAM,MAAM,GAAG,sBAAsB,CAAC;IACtC,MAAM,IAAI,GAAG,oBAAoB,CAAC;IAClC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACvB,IAAI,UAAU,GAAG,QAAQ,CAAC,MAAM,CAAC;IACjC,MAAM,YAAY,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,GAAG,EAAE;QAC/C,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QACvB,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Q,CAAC,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,MAAM,UAAU,gBAAgB,CAC9B,0BAA0E;IAE1E,OAAO,0BAA0B,CAAC,IAAI,EAAE,CAAC;AAC3C,CAAC;AAED,MAAM,QAAQ,GAAqB,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;AACvF,MAAM,cAAc,GAAG,IAAI,OAAO,EAA4B,CAAC"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { EntityRaw, EntityRuntime, EntityRuntimeKey } from '@flighthq/entity/contract';
|
|
2
|
+
import type { Signal } from '@flighthq/signals/contract';
|
|
3
|
+
export type SoftKeyboardResizeMode = string;
|
|
4
|
+
export declare const SoftKeyboardResizeNoneKind = "None";
|
|
5
|
+
export declare const SoftKeyboardResizeBodyKind = "Body";
|
|
6
|
+
export type SoftKeyboardStyleKind = string;
|
|
7
|
+
export declare const SoftKeyboardStyleDefaultKind = "Default";
|
|
8
|
+
export declare const SoftKeyboardStyleDarkKind = "Dark";
|
|
9
|
+
export interface SoftKeyboardInfo {
|
|
10
|
+
visible: boolean;
|
|
11
|
+
height: number;
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
width: number;
|
|
15
|
+
}
|
|
16
|
+
export interface SoftKeyboard extends EntityRaw {
|
|
17
|
+
[EntityRuntimeKey]: EntityRuntime | undefined;
|
|
18
|
+
onShow: Signal<number>;
|
|
19
|
+
onHide: Signal<void>;
|
|
20
|
+
onResize: Signal<number>;
|
|
21
|
+
}
|
|
22
|
+
export type SoftKeyboardVisibilityResult = 'ok' | 'operation-failed';
|
|
23
|
+
export declare const SoftKeyboardVisibilityOkKind = "ok";
|
|
24
|
+
export declare const SoftKeyboardVisibilityOperationFailedKind = "operation-failed";
|
|
25
|
+
export type SoftKeyboardSetterResult = 'ok' | 'operation-unavailable' | 'operation-failed';
|
|
26
|
+
export declare const SoftKeyboardSetterOkKind = "ok";
|
|
27
|
+
export declare const SoftKeyboardSetterOperationUnavailableKind = "operation-unavailable";
|
|
28
|
+
export declare const SoftKeyboardSetterOperationFailedKind = "operation-failed";
|
|
29
|
+
export type SoftKeyboardAttachResult = 'ok' | 'acquisition-failed';
|
|
30
|
+
export declare const SoftKeyboardAttachOkKind = "ok";
|
|
31
|
+
export declare const SoftKeyboardAttachAcquisitionFailedKind = "acquisition-failed";
|
|
32
|
+
export interface HostSoftKeyboardInfoCapability {
|
|
33
|
+
getInfo(out: SoftKeyboardInfo): void;
|
|
34
|
+
}
|
|
35
|
+
export interface SoftKeyboardChangeSubscription {
|
|
36
|
+
readonly result: SoftKeyboardAttachResult;
|
|
37
|
+
readonly unsubscribe: (() => void) | null;
|
|
38
|
+
}
|
|
39
|
+
export interface HostSoftKeyboardChangeCapability {
|
|
40
|
+
subscribe(listener: () => void): Promise<SoftKeyboardChangeSubscription>;
|
|
41
|
+
}
|
|
42
|
+
export interface HostSoftKeyboardVisibilityCapability {
|
|
43
|
+
show(): Promise<SoftKeyboardVisibilityResult>;
|
|
44
|
+
hide(): Promise<SoftKeyboardVisibilityResult>;
|
|
45
|
+
}
|
|
46
|
+
export interface HostSoftKeyboardResizeModeWriteCapability {
|
|
47
|
+
setResizeMode(mode: SoftKeyboardResizeMode): Promise<SoftKeyboardSetterResult>;
|
|
48
|
+
}
|
|
49
|
+
export interface HostSoftKeyboardStyleCapability {
|
|
50
|
+
setStyle(style: SoftKeyboardStyleKind): Promise<SoftKeyboardSetterResult>;
|
|
51
|
+
}
|
|
52
|
+
export interface HostSoftKeyboardAccessoryBarCapability {
|
|
53
|
+
setAccessoryBarVisible(visible: boolean): Promise<SoftKeyboardSetterResult>;
|
|
54
|
+
}
|
|
55
|
+
export interface HostSoftKeyboardScrollAssistCapability {
|
|
56
|
+
setScrollAssistEnabled(enabled: boolean): Promise<SoftKe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= 'None';
|
|
2
|
+
export const SoftKeyboardResizeBodyKind = 'Body';
|
|
3
|
+
export const SoftKeyboardStyleDefaultKind = 'Default';
|
|
4
|
+
export const SoftKeyboardStyleDarkKind = 'Dark';
|
|
5
|
+
export const SoftKeyboardVisibilityOkKind = 'ok';
|
|
6
|
+
export const SoftKeyboardVisibilityOperationFailedKind = 'operation-failed';
|
|
7
|
+
export const SoftKeyboardSetterOkKind = 'ok';
|
|
8
|
+
export const SoftKeyboardSetterOperationUnavailableKind = 'operation-unavailable';
|
|
9
|
+
export const SoftKeyboardSetterOperationFailedKind = 'operation-failed';
|
|
10
|
+
export const SoftKeyboardAttachOkKind = 'ok';
|
|
11
|
+
export const SoftKeyboardAttachAcquisitionFailedKind = 'acquisition-failed';
|
|
12
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,0BAA0B,GAAG,MAAM,CAAC;AACjD,MAAM,CAAC,MAAM,0BAA0B,GAAG,MAAM,CAAC;AAEjD,MAAM,CAAC,MAAM,4BAA4B,GAAG,SAAS,CAAC;AACtD,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC;AAiBhD,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,CAAC;AACjD,MAAM,CAAC,MAAM,yCAAyC,GAAG,kBAAkB,CAAC;AAG5E,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,CAAC;AAC7C,MAAM,CAAC,MAAM,0CAA0C,GAAG,uBAAuB,CAAC;AAClF,MAAM,CAAC,MAAM,qCAAqC,GAAG,kBAAkB,CAAC;AAGxE,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,CAAC;AAC7C,MAAM,CAAC,MAAM,uCAAuC,GAAG,oBAAoB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flighthq/keyboard",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"author": "Joshua Granick and other contributors",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -32,18 +32,19 @@
|
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "tsc -b",
|
|
34
34
|
"clean": "tsc -b --clean",
|
|
35
|
+
"generate": "tsx ../../scripts/generate-rust-package.ts --crate flight-keyboard --package keyboard",
|
|
36
|
+
"generate:check": "tsx ../../scripts/generate-rust-package.ts --crate flight-keyboard --package keyboard --check",
|
|
35
37
|
"test": "vitest run --config vitest.config.ts",
|
|
36
38
|
"test:watch": "vitest --watch --config vitest.config.ts",
|
|
37
39
|
"prepack": "npm run clean && npm run clean:dist && npm run build",
|
|
38
40
|
"clean:dist": "tsx ../../scripts/clean-package-dist.ts"
|
|
39
41
|
},
|
|
40
42
|
"dependencies": {
|
|
41
|
-
"@flighthq/entity": "0.
|
|
42
|
-
"@flighthq/signals": "0.
|
|
43
|
-
"@flighthq/types": "0.5.1-next.920.da8f530"
|
|
43
|
+
"@flighthq/entity": "0.6.0",
|
|
44
|
+
"@flighthq/signals": "0.6.0"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
|
-
"typescript": "^
|
|
47
|
+
"typescript": "^7.0.2"
|
|
47
48
|
},
|
|
48
49
|
"description": "On-screen (soft) keyboard visibility, height, and show/hide/resize signals over a swappable web/native backend",
|
|
49
50
|
"sideEffects": false
|
package/src/keyboard.test.ts
CHANGED
|
@@ -1,18 +1,5 @@
|
|
|
1
|
+
import { EntityRuntimeKey } from '@flighthq/entity/contract';
|
|
1
2
|
import { connectSignal } from '@flighthq/signals/contract';
|
|
2
|
-
import { EntityRuntimeKey, SoftKeyboardResizeBodyKind } from '@flighthq/types/contract';
|
|
3
|
-
import type {
|
|
4
|
-
HasSoftKeyboardAccessoryBar,
|
|
5
|
-
HasSoftKeyboardChange,
|
|
6
|
-
HasSoftKeyboardInfo,
|
|
7
|
-
HasSoftKeyboardResizeModeWrite,
|
|
8
|
-
HasSoftKeyboardScrollAssist,
|
|
9
|
-
HasSoftKeyboardStyle,
|
|
10
|
-
HasSoftKeyboardVisibility,
|
|
11
|
-
SoftKeyboardChangeSubscription,
|
|
12
|
-
SoftKeyboardInfo,
|
|
13
|
-
SoftKeyboardSetterResult,
|
|
14
|
-
SoftKeyboardVisibilityResult,
|
|
15
|
-
} from '@flighthq/types/contract';
|
|
16
3
|
|
|
17
4
|
import {
|
|
18
5
|
attachSoftKeyboard,
|
|
@@ -29,13 +16,29 @@ import {
|
|
|
29
16
|
setSoftKeyboardScrollAssistEnabled,
|
|
30
17
|
setSoftKeyboardStyle,
|
|
31
18
|
showSoftKeyboard,
|
|
32
|
-
} from './keyboard';
|
|
19
|
+
} from './keyboard.ts';
|
|
20
|
+
import { SoftKeyboardResizeBodyKind } from './types.ts';
|
|
21
|
+
import type {
|
|
22
|
+
HostSoftKeyboardAccessoryBarCapability,
|
|
23
|
+
HostSoftKeyboardChangeCapability,
|
|
24
|
+
HostSoftKeyboardInfoCapability,
|
|
25
|
+
HostSoftKeyboardResizeModeWriteCapability,
|
|
26
|
+
HostSoftKeyboardScrollAssistCapability,
|
|
27
|
+
HostSoftKeyboardStyleCapability,
|
|
28
|
+
HostSoftKeyboardVisibilityCapability,
|
|
29
|
+
SoftKeyboardChangeSubscription,
|
|
30
|
+
SoftKeyboardInfo,
|
|
31
|
+
SoftKeyboardSetterResult,
|
|
32
|
+
SoftKeyboardVisibilityResult,
|
|
33
|
+
} from './types.ts';
|
|
33
34
|
|
|
34
35
|
type OmitRuntime<T> = Omit<T, typeof EntityRuntimeKey>;
|
|
35
36
|
|
|
36
37
|
function fakeInfoBackend(
|
|
37
38
|
info: Partial<SoftKeyboardInfo> = {},
|
|
38
|
-
): OmitRuntime<
|
|
39
|
+
): OmitRuntime<
|
|
40
|
+
{ readonly input: { readonly softKeyboardInfo: HostSoftKeyboardInfoCapability } }['input']['softKeyboardInfo']
|
|
41
|
+
> {
|
|
39
42
|
const data: SoftKeyboardInfo = { visible: false, height: 0, x: 0, y: 0, width: 0, ...info };
|
|
40
43
|
return {
|
|
41
44
|
getInfo(out: SoftKeyboardInfo): SoftKeyboardInfo {
|
|
@@ -49,7 +52,11 @@ function fakeInfoBackend(
|
|
|
49
52
|
};
|
|
50
53
|
}
|
|
51
54
|
|
|
52
|
-
function fakeChangeBackend(
|
|
55
|
+
function fakeChangeBackend(
|
|
56
|
+
willSucceed = true,
|
|
57
|
+
): OmitRuntime<
|
|
58
|
+
{ readonly input: { readonly softKeyboardChange: HostSoftKeyboardChangeCapability } }['input']['softKeyboardChange']
|
|
59
|
+
> {
|
|
53
60
|
return {
|
|
54
61
|
async subscribe(): Promise<SoftKeyboardChangeSubscription> {
|
|
55
62
|
if (!willSucceed) return { result: 'acquisition-failed', unsubscribe: null };
|
|
@@ -58,9 +65,13 @@ function fakeChangeBackend(willSucceed = true): OmitRuntime<HasSoftKeyboardChang
|
|
|
58
65
|
};
|
|
59
66
|
}
|
|
60
67
|
|
|
61
|
-
function fakeVisibilityBackend(
|
|
62
|
-
|
|
63
|
-
|
|
68
|
+
function fakeVisibilityBackend(result: SoftKeyboardVisibilityResult = 'ok'): OmitRuntime<
|
|
69
|
+
{
|
|
70
|
+
readonly input: {
|
|
71
|
+
readonly softKeyboardVisibility: HostSoftKeyboardVisibilityCapability;
|
|
72
|
+
};
|
|
73
|
+
}['input']['softKeyboardVisibility']
|
|
74
|
+
> {
|
|
64
75
|
return {
|
|
65
76
|
async show(): Promise<SoftKeyboardVisibilityResult> {
|
|
66
77
|
return result;
|
|
@@ -71,9 +82,13 @@ function fakeVisibilityBackend(
|
|
|
71
82
|
};
|
|
72
83
|
}
|
|
73
84
|
|
|
74
|
-
function fakeAccessoryBarBackend(
|
|
75
|
-
|
|
76
|
-
|
|
85
|
+
function fakeAccessoryBarBackend(result: SoftKeyboardSetterResult = 'ok'): OmitRuntime<
|
|
86
|
+
{
|
|
87
|
+
readonly input: {
|
|
88
|
+
readonly softKeyboardAccessoryBar: HostSoftKeyboardAccessoryBarCapability;
|
|
89
|
+
};
|
|
90
|
+
}['input']['softKeyboardAccessoryBar']
|
|
91
|
+
> {
|
|
77
92
|
return {
|
|
78
93
|
async setAccessoryBarVisible(): Promise<SoftKeyboardSetterResult> {
|
|
79
94
|
return result;
|
|
@@ -81,9 +96,13 @@ function fakeAccessoryBarBackend(
|
|
|
81
96
|
};
|
|
82
97
|
}
|
|
83
98
|
|
|
84
|
-
function fakeResizeModeWriteBackend(
|
|
85
|
-
|
|
86
|
-
|
|
99
|
+
function fakeResizeModeWriteBackend(result: SoftKeyboardSetterResult = 'ok'): OmitRuntime<
|
|
100
|
+
{
|
|
101
|
+
readonly input: {
|
|
102
|
+
readonly softKeyboardResizeModeWrite: HostSoftKeyboardResizeModeWriteCapability;
|
|
103
|
+
};
|
|
104
|
+
}['input']['softKeyboardResizeModeWrite']
|
|
105
|
+
> {
|
|
87
106
|
return {
|
|
88
107
|
async setResizeMode(): Promise<SoftKeyboardSetterResult> {
|
|
89
108
|
return result;
|
|
@@ -91,9 +110,13 @@ function fakeResizeModeWriteBackend(
|
|
|
91
110
|
};
|
|
92
111
|
}
|
|
93
112
|
|
|
94
|
-
function fakeScrollAssistBackend(
|
|
95
|
-
|
|
96
|
-
|
|
113
|
+
function fakeScrollAssistBackend(result: SoftKeyboardSetterResult = 'ok'): OmitRuntime<
|
|
114
|
+
{
|
|
115
|
+
readonly input: {
|
|
116
|
+
readonly softKeyboardScrollAssist: HostSoftKeyboardScrollAssistCapability;
|
|
117
|
+
};
|
|
118
|
+
}['input']['softKeyboardScrollAssist']
|
|
119
|
+
> {
|
|
97
120
|
return {
|
|
98
121
|
async setScrollAssistEnabled(): Promise<SoftKeyboardSetterResult> {
|
|
99
122
|
return result;
|
|
@@ -103,7 +126,9 @@ function fakeScrollAssistBackend(
|
|
|
103
126
|
|
|
104
127
|
function fakeStyleBackend(
|
|
105
128
|
result: SoftKeyboardSetterResult = 'ok',
|
|
106
|
-
): OmitRuntime<
|
|
129
|
+
): OmitRuntime<
|
|
130
|
+
{ readonly input: { readonly softKeyboardStyle: HostSoftKeyboardStyleCapability } }['input']['softKeyboardStyle']
|
|
131
|
+
> {
|
|
107
132
|
return {
|
|
108
133
|
async setStyle(): Promise<SoftKeyboardSetterResult> {
|
|
109
134
|
return result;
|
|
@@ -111,37 +136,55 @@ function fakeStyleBackend(
|
|
|
111
136
|
};
|
|
112
137
|
}
|
|
113
138
|
|
|
114
|
-
function infoHost(info: Partial<SoftKeyboardInfo> = {}):
|
|
115
|
-
|
|
139
|
+
function infoHost(info: Partial<SoftKeyboardInfo> = {}): {
|
|
140
|
+
readonly input: { readonly softKeyboardInfo: HostSoftKeyboardInfoCapability };
|
|
141
|
+
} {
|
|
142
|
+
return { input: { softKeyboardInfo: fakeInfoBackend(info) } } as {
|
|
143
|
+
readonly input: { readonly softKeyboardInfo: HostSoftKeyboardInfoCapability };
|
|
144
|
+
};
|
|
116
145
|
}
|
|
117
146
|
|
|
118
|
-
function visibilityHost(result: SoftKeyboardVisibilityResult = 'ok'):
|
|
119
|
-
|
|
147
|
+
function visibilityHost(result: SoftKeyboardVisibilityResult = 'ok'): {
|
|
148
|
+
readonly input: {
|
|
149
|
+
readonly softKeyboardVisibility: HostSoftKeyboardVisibilityCapability;
|
|
150
|
+
};
|
|
151
|
+
} {
|
|
152
|
+
return { input: { softKeyboardVisibility: fakeVisibilityBackend(result) } } as {
|
|
153
|
+
readonly input: {
|
|
154
|
+
readonly softKeyboardVisibility: HostSoftKeyboardVisibilityCapability;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
120
157
|
}
|
|
121
158
|
|
|
122
159
|
function attachHost(
|
|
123
160
|
willSucceed = true,
|
|
124
161
|
info: Partial<SoftKeyboardInfo> = {},
|
|
125
|
-
):
|
|
162
|
+
): { readonly input: { readonly softKeyboardChange: HostSoftKeyboardChangeCapability } } & {
|
|
163
|
+
readonly input: { readonly softKeyboardInfo: HostSoftKeyboardInfoCapability };
|
|
164
|
+
} {
|
|
126
165
|
return {
|
|
127
166
|
input: {
|
|
128
167
|
softKeyboardChange: fakeChangeBackend(willSucceed),
|
|
129
168
|
softKeyboardInfo: fakeInfoBackend(info),
|
|
130
169
|
},
|
|
131
|
-
} as
|
|
170
|
+
} as { readonly input: { readonly softKeyboardChange: HostSoftKeyboardChangeCapability } } & {
|
|
171
|
+
readonly input: { readonly softKeyboardInfo: HostSoftKeyboardInfoCapability };
|
|
172
|
+
};
|
|
132
173
|
}
|
|
133
174
|
|
|
134
175
|
describe('attachSoftKeyboard', () => {
|
|
135
176
|
it('returns ok when change and info backends are present and subscribe succeeds', async () => {
|
|
136
177
|
const host = attachHost(true);
|
|
137
178
|
const keyboard = createSoftKeyboard();
|
|
138
|
-
expect(await attachSoftKeyboard(host, keyboard)).toBe('ok');
|
|
179
|
+
expect(await attachSoftKeyboard(host.input.softKeyboardChange, host.input.softKeyboardInfo, keyboard)).toBe('ok');
|
|
139
180
|
});
|
|
140
181
|
|
|
141
182
|
it('returns acquisition-failed when subscribe returns null', async () => {
|
|
142
183
|
const host = attachHost(false);
|
|
143
184
|
const keyboard = createSoftKeyboard();
|
|
144
|
-
expect(await attachSoftKeyboard(host, keyboard)).toBe(
|
|
185
|
+
expect(await attachSoftKeyboard(host.input.softKeyboardChange, host.input.softKeyboardInfo, keyboard)).toBe(
|
|
186
|
+
'acquisition-failed',
|
|
187
|
+
);
|
|
145
188
|
});
|
|
146
189
|
|
|
147
190
|
it('fires onShow when height goes from 0 to positive', async () => {
|
|
@@ -166,13 +209,15 @@ describe('attachSoftKeyboard', () => {
|
|
|
166
209
|
},
|
|
167
210
|
},
|
|
168
211
|
},
|
|
169
|
-
} as
|
|
212
|
+
} as { readonly input: { readonly softKeyboardChange: HostSoftKeyboardChangeCapability } } & {
|
|
213
|
+
readonly input: { readonly softKeyboardInfo: HostSoftKeyboardInfoCapability };
|
|
214
|
+
};
|
|
170
215
|
const keyboard = createSoftKeyboard();
|
|
171
216
|
let firedHeight = -1;
|
|
172
217
|
connectSignal(keyboard.onShow, (h) => {
|
|
173
218
|
firedHeight = h;
|
|
174
219
|
});
|
|
175
|
-
await attachSoftKeyboard(host, keyboard);
|
|
220
|
+
await attachSoftKeyboard(host.input.softKeyboardChange, host.input.softKeyboardInfo, keyboard);
|
|
176
221
|
data.visible = true;
|
|
177
222
|
data.height = 300;
|
|
178
223
|
listener!();
|
|
@@ -201,13 +246,15 @@ describe('attachSoftKeyboard', () => {
|
|
|
201
246
|
},
|
|
202
247
|
},
|
|
203
248
|
},
|
|
204
|
-
} as
|
|
249
|
+
} as { readonly input: { readonly softKeyboardChange: HostSoftKeyboardChangeCapability } } & {
|
|
250
|
+
readonly input: { readonly softKeyboardInfo: HostSoftKeyboardInfoCapability };
|
|
251
|
+
};
|
|
205
252
|
const keyboard = createSoftKeyboard();
|
|
206
253
|
let hideFired = false;
|
|
207
254
|
connectSignal(keyboard.onHide, () => {
|
|
208
255
|
hideFired = true;
|
|
209
256
|
});
|
|
210
|
-
await attachSoftKeyboard(host, keyboard);
|
|
257
|
+
await attachSoftKeyboard(host.input.softKeyboardChange, host.input.softKeyboardInfo, keyboard);
|
|
211
258
|
data.visible = false;
|
|
212
259
|
data.height = 0;
|
|
213
260
|
listener!();
|
|
@@ -236,13 +283,15 @@ describe('attachSoftKeyboard', () => {
|
|
|
236
283
|
},
|
|
237
284
|
},
|
|
238
285
|
},
|
|
239
|
-
} as
|
|
286
|
+
} as { readonly input: { readonly softKeyboardChange: HostSoftKeyboardChangeCapability } } & {
|
|
287
|
+
readonly input: { readonly softKeyboardInfo: HostSoftKeyboardInfoCapability };
|
|
288
|
+
};
|
|
240
289
|
const keyboard = createSoftKeyboard();
|
|
241
290
|
let resizedHeight = -1;
|
|
242
291
|
connectSignal(keyboard.onResize, (h) => {
|
|
243
292
|
resizedHeight = h;
|
|
244
293
|
});
|
|
245
|
-
await attachSoftKeyboard(host, keyboard);
|
|
294
|
+
await attachSoftKeyboard(host.input.softKeyboardChange, host.input.softKeyboardInfo, keyboard);
|
|
246
295
|
data.height = 400;
|
|
247
296
|
listener!();
|
|
248
297
|
expect(resizedHeight).toBe(400);
|
|
@@ -272,20 +321,19 @@ describe('disposeSoftKeyboard', () => {
|
|
|
272
321
|
|
|
273
322
|
describe('getSoftKeyboardHeight', () => {
|
|
274
323
|
it('returns the height from the info backend', () => {
|
|
275
|
-
expect(getSoftKeyboardHeight(infoHost({ height: 250 }))).toBe(250);
|
|
324
|
+
expect(getSoftKeyboardHeight(infoHost({ height: 250 }).input.softKeyboardInfo)).toBe(250);
|
|
276
325
|
});
|
|
277
326
|
|
|
278
327
|
it('returns 0 when info reports 0', () => {
|
|
279
|
-
expect(getSoftKeyboardHeight(infoHost({ height: 0 }))).toBe(0);
|
|
328
|
+
expect(getSoftKeyboardHeight(infoHost({ height: 0 }).input.softKeyboardInfo)).toBe(0);
|
|
280
329
|
});
|
|
281
330
|
});
|
|
282
331
|
|
|
283
332
|
describe('getSoftKeyboardInfo', () => {
|
|
284
|
-
it('writes into the out parameter
|
|
333
|
+
it('writes into the out parameter', () => {
|
|
285
334
|
const host = infoHost({ visible: true, height: 300, x: 10, y: 20, width: 400 });
|
|
286
335
|
const out: SoftKeyboardInfo = { visible: false, height: 0, x: 0, y: 0, width: 0 };
|
|
287
|
-
|
|
288
|
-
expect(result).toBe(out);
|
|
336
|
+
getSoftKeyboardInfo(host.input.softKeyboardInfo, out);
|
|
289
337
|
expect(out.visible).toBe(true);
|
|
290
338
|
expect(out.height).toBe(300);
|
|
291
339
|
expect(out.x).toBe(10);
|
|
@@ -296,11 +344,13 @@ describe('getSoftKeyboardInfo', () => {
|
|
|
296
344
|
|
|
297
345
|
describe('hideSoftKeyboard', () => {
|
|
298
346
|
it('delegates to the visibility backend', async () => {
|
|
299
|
-
expect(await hideSoftKeyboard(visibilityHost('ok'))).toBe('ok');
|
|
347
|
+
expect(await hideSoftKeyboard(visibilityHost('ok').input.softKeyboardVisibility)).toBe('ok');
|
|
300
348
|
});
|
|
301
349
|
|
|
302
350
|
it('returns operation-failed when the backend reports failure', async () => {
|
|
303
|
-
expect(await hideSoftKeyboard(visibilityHost('operation-failed'))).toBe(
|
|
351
|
+
expect(await hideSoftKeyboard(visibilityHost('operation-failed').input.softKeyboardVisibility)).toBe(
|
|
352
|
+
'operation-failed',
|
|
353
|
+
);
|
|
304
354
|
});
|
|
305
355
|
});
|
|
306
356
|
|
|
@@ -312,25 +362,35 @@ describe('initializeSoftKeyboard', () => {
|
|
|
312
362
|
|
|
313
363
|
describe('isSoftKeyboardVisible', () => {
|
|
314
364
|
it('returns true when info reports visible', () => {
|
|
315
|
-
expect(isSoftKeyboardVisible(infoHost({ visible: true, height: 300 }))).toBe(true);
|
|
365
|
+
expect(isSoftKeyboardVisible(infoHost({ visible: true, height: 300 }).input.softKeyboardInfo)).toBe(true);
|
|
316
366
|
});
|
|
317
367
|
|
|
318
368
|
it('returns false when info reports not visible', () => {
|
|
319
|
-
expect(isSoftKeyboardVisible(infoHost({ visible: false }))).toBe(false);
|
|
369
|
+
expect(isSoftKeyboardVisible(infoHost({ visible: false }).input.softKeyboardInfo)).toBe(false);
|
|
320
370
|
});
|
|
321
371
|
});
|
|
322
372
|
|
|
323
373
|
describe('setSoftKeyboardAccessoryBarVisible', () => {
|
|
324
374
|
it('delegates to the accessory bar backend', async () => {
|
|
325
|
-
const host = { input: { softKeyboardAccessoryBar: fakeAccessoryBarBackend('ok') } } as
|
|
326
|
-
|
|
375
|
+
const host = { input: { softKeyboardAccessoryBar: fakeAccessoryBarBackend('ok') } } as {
|
|
376
|
+
readonly input: {
|
|
377
|
+
readonly softKeyboardAccessoryBar: HostSoftKeyboardAccessoryBarCapability;
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
expect(await setSoftKeyboardAccessoryBarVisible(host.input.softKeyboardAccessoryBar, true)).toBe('ok');
|
|
327
381
|
});
|
|
328
382
|
|
|
329
383
|
it('returns operation-failed from the backend', async () => {
|
|
330
384
|
const host = {
|
|
331
385
|
input: { softKeyboardAccessoryBar: fakeAccessoryBarBackend('operation-failed') },
|
|
332
|
-
} as
|
|
333
|
-
|
|
386
|
+
} as {
|
|
387
|
+
readonly input: {
|
|
388
|
+
readonly softKeyboardAccessoryBar: HostSoftKeyboardAccessoryBarCapability;
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
expect(await setSoftKeyboardAccessoryBarVisible(host.input.softKeyboardAccessoryBar, false)).toBe(
|
|
392
|
+
'operation-failed',
|
|
393
|
+
);
|
|
334
394
|
});
|
|
335
395
|
});
|
|
336
396
|
|
|
@@ -338,8 +398,14 @@ describe('setSoftKeyboardResizeMode', () => {
|
|
|
338
398
|
it('delegates to the resize mode write backend', async () => {
|
|
339
399
|
const host = {
|
|
340
400
|
input: { softKeyboardResizeModeWrite: fakeResizeModeWriteBackend('ok') },
|
|
341
|
-
} as
|
|
342
|
-
|
|
401
|
+
} as {
|
|
402
|
+
readonly input: {
|
|
403
|
+
readonly softKeyboardResizeModeWrite: HostSoftKeyboardResizeModeWriteCapability;
|
|
404
|
+
};
|
|
405
|
+
};
|
|
406
|
+
expect(await setSoftKeyboardResizeMode(host.input.softKeyboardResizeModeWrite, SoftKeyboardResizeBodyKind)).toBe(
|
|
407
|
+
'ok',
|
|
408
|
+
);
|
|
343
409
|
});
|
|
344
410
|
});
|
|
345
411
|
|
|
@@ -347,23 +413,31 @@ describe('setSoftKeyboardScrollAssistEnabled', () => {
|
|
|
347
413
|
it('delegates to the scroll assist backend', async () => {
|
|
348
414
|
const host = {
|
|
349
415
|
input: { softKeyboardScrollAssist: fakeScrollAssistBackend('ok') },
|
|
350
|
-
} as
|
|
351
|
-
|
|
416
|
+
} as {
|
|
417
|
+
readonly input: {
|
|
418
|
+
readonly softKeyboardScrollAssist: HostSoftKeyboardScrollAssistCapability;
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
expect(await setSoftKeyboardScrollAssistEnabled(host.input.softKeyboardScrollAssist, true)).toBe('ok');
|
|
352
422
|
});
|
|
353
423
|
});
|
|
354
424
|
|
|
355
425
|
describe('setSoftKeyboardStyle', () => {
|
|
356
426
|
it('delegates to the style backend', async () => {
|
|
357
|
-
const host = { input: { softKeyboardStyle: fakeStyleBackend('ok') } } as
|
|
358
|
-
|
|
427
|
+
const host = { input: { softKeyboardStyle: fakeStyleBackend('ok') } } as {
|
|
428
|
+
readonly input: { readonly softKeyboardStyle: HostSoftKeyboardStyleCapability };
|
|
429
|
+
};
|
|
430
|
+
expect(await setSoftKeyboardStyle(host.input.softKeyboardStyle, 'Dark')).toBe('ok');
|
|
359
431
|
});
|
|
360
432
|
});
|
|
361
433
|
describe('showSoftKeyboard', () => {
|
|
362
434
|
it('delegates to the visibility backend', async () => {
|
|
363
|
-
expect(await showSoftKeyboard(visibilityHost('ok'))).toBe('ok');
|
|
435
|
+
expect(await showSoftKeyboard(visibilityHost('ok').input.softKeyboardVisibility)).toBe('ok');
|
|
364
436
|
});
|
|
365
437
|
|
|
366
438
|
it('returns operation-failed when the backend reports failure', async () => {
|
|
367
|
-
expect(await showSoftKeyboard(visibilityHost('operation-failed'))).toBe(
|
|
439
|
+
expect(await showSoftKeyboard(visibilityHost('operation-failed').input.softKeyboardVisibility)).toBe(
|
|
440
|
+
'operation-failed',
|
|
441
|
+
);
|
|
368
442
|
});
|
|
369
443
|
});
|