@flighthq/device 0.5.1-next.920.da8f530 → 0.7.0-edge.5213.ead804b

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 CHANGED
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/device`. The `@fligh
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/device@0.5.1-next.920.da8f530](https://github.com/flighthq/flight/tree/da8f530894916f9baa6a9f6822b4f393b9e70a85/packages/device)
17
- - [License](https://github.com/flighthq/flight/blob/da8f530894916f9baa6a9f6822b4f393b9e70a85/LICENSE.md)
16
+ - [Source for @flighthq/device@0.7.0-edge.5213.ead804b](https://github.com/flighthq/flight/tree/ead804bfaef3e691a2e6e43e9711ddd3fd8a84a2/packages/device)
17
+ - [License](https://github.com/flighthq/flight/blob/ead804bfaef3e691a2e6e43e9711ddd3fd8a84a2/LICENSE.md)
@@ -0,0 +1 @@
1
+ {"version":"7.0.2","root":[[69,70]],"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","../package.json","../../useragent/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","../../useragent/dist/deviceFormFactor.d.ts","../../useragent/dist/userAgentNative.d.ts","../../useragent/dist/userAgent.d.ts","../../useragent/dist/userAgentParse.d.ts","../../useragent/dist/contract.d.ts","../src/types.ts","../src/contract.device-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","d94db54ab7f07492109e4279d449bc87","c0cbd33c80136233b82463ef03546ecd","449e5166a6af5ef4b0f72a7a273661b5","329198cb4e071e170a7f3e2cd1081dfa","c52d973f25ea6c06cfed74b3e0427bae",{"version":"10a252d0811ff992e567a02e4da4a0e2","signature":"e6e5fd114c24f1751aa1b4dcc4db5f85","impliedNodeFormat":1},{"version":"7ab2a61fe89f76440b35856c923392db","signature":"3c35c9bc6d91df61f836c0d89fe68f6f","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":[[73],[72],[71],[103,104],[76,82,100,101,102,105],[112],[112,113],[80,82,83],[80,82],[80],[75,80,91,92],[75,80,91],[99],[75,81],[75],[77],[75,76,77,78,79],[118,119],[118,119,120,121],[118,120],[118],[86],[86,87,88,89],[88],[84,107,108,110],[84,85,97,110],[75,82,84,85,93,110],[90],[75,84,85,93,106,109],[84,85,90,93,110],[84,107,108,109,110],[84,90,94,95,96,110],[75,80,82,84,85,90,93,94,95,96,97,98,100,106,107,108,109,110,111,114,115,116,117,122],[75,82,84,85,93,94,107,108,109,110,115],[123],[69],[68],[64,66,67],[65],[64]],"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":[[74,1],[73,2],[72,3],[105,4],[106,5],[113,6],[114,7],[84,8],[83,9],[107,8],[91,10],[93,11],[92,12],[100,13],[82,14],[76,15],[78,16],[80,17],[81,15],[120,18],[122,19],[121,20],[119,21],[87,22],[90,23],[88,22],[89,24],[109,25],[98,26],[94,27],[95,10],[116,28],[110,29],[96,30],[115,31],[97,32],[123,33],[117,34],[124,35],[70,36],[69,37],[68,38],[66,39],[67,40]],"latestChangedDtsFile":"./contract.device-types.d.ts"}
@@ -0,0 +1 @@
1
+ {"version":"7.0.2","root":[[81,84]],"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","../package.json","../../entity/package.json","../../useragent/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","../../useragent/dist/deviceFormFactor.d.ts","../../useragent/dist/userAgentNative.d.ts","../../useragent/dist/userAgent.d.ts","../../useragent/dist/userAgentParse.d.ts","../../useragent/dist/contract.d.ts","./types.d.ts","./contract.device-types.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","../src/device.ts","../src/contract.ts","../src/device.test.ts","../src/index.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","d94db54ab7f07492109e4279d449bc87","c0cbd33c80136233b82463ef03546ecd","449e5166a6af5ef4b0f72a7a273661b5","329198cb4e071e170a7f3e2cd1081dfa","c52d973f25ea6c06cfed74b3e0427bae","02747470debc63915a0096b078ac3453","7ec53e21c2123fe2e61ae14c5a551ad8","22772bc49abb63e5c9ba66ac5fb78a3d","daf7ba9e176366b3caf843bd266d163a","1cd6ad8dcb5625d764e0d55a82295469","76aca40ee07d543a14c24ba839109332","6f54f49ea7e96bdd7a9078f6c94e88fd","e9fd0536114fa9a746eacd5bc23969e5","add935c05420698ee2f670e9c7605d49","8202b77f954e4d5a21783859414fcc7c","524a08ff038d375ae8c86bf6481e17d2","9ff787c1324b2d4c07a342936293f47a",{"version":"643d5e3258e5f93155d3ab725f3c01fd","signature":"32006d57175bfe9e58b889b1cc1cf3e3","impliedNodeFormat":1},"d8e9b26e6fdd586263a8d240ec1e51ca",{"version":"7a976b7a105d9986a2d2ea0b3dc7a9bc","signature":"abe7d9981d6018efb6b2b794f40a1607","impliedNodeFormat":1},{"version":"9e57f2463a28e4213bd2f2352f428788","signature":"0b2352fd514046e1ad227126c3b7dda9","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":[[87],[86],[85],[117,118],[90,96,114,115,116,119],[126],[126,127],[94,96,97],[94,96],[94],[89,94,105,106],[89,94,105],[113],[89,95],[89],[91],[89,90,91,92,93],[132,133],[132,133,134,135],[132,134],[132],[100],[100,101,102,103],[102],[98,121,122,124],[98,99,111,124],[89,96,98,99,107,124],[104],[89,98,99,107,120,123],[98,99,104,107,124],[98,121,122,123,124],[98,104,108,109,110,124],[89,94,96,98,99,104,107,108,109,110,111,112,114,120,121,122,123,124,125,128,129,130,131,136],[89,96,98,99,107,108,121,122,123,124,129],[137],[69],[68],[70,81],[68,69,81],[68,69,80],[82],[71],[71,72,73,74,75,76,77,78,79],[64,66,67],[65],[64]],"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":[[88,1],[87,2],[86,3],[119,4],[120,5],[127,6],[128,7],[98,8],[97,9],[121,8],[105,10],[107,11],[106,12],[114,13],[96,14],[90,15],[92,16],[94,17],[95,15],[134,18],[136,19],[135,20],[133,21],[101,22],[104,23],[102,22],[103,24],[123,25],[112,26],[108,27],[109,10],[130,28],[124,29],[110,30],[129,31],[111,32],[137,33],[131,34],[138,35],[70,36],[69,37],[82,38],[83,39],[81,40],[84,41],[72,42],[73,42],[80,43],[74,42],[75,42],[76,42],[77,42],[78,42],[79,42],[68,44],[66,45],[67,46]],"latestChangedDtsFile":"./index.d.ts"}
@@ -1,3 +1,3 @@
1
- export * from './device';
2
- export { initializeDeviceCapabilities, initializeDeviceDisplayMetrics, initializeDeviceInfo, initializeSafeAreaInsets, } from './device';
1
+ export * from './contract.device-types.ts';
2
+ export * from './device.ts';
3
3
  //# sourceMappingURL=contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,OAAO,EACL,4BAA4B,EAC5B,8BAA8B,EAC9B,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,aAAa,CAAC"}
@@ -0,0 +1,2 @@
1
+ export type { DeviceCapabilities, DeviceDisplayMetrics, DeviceInfo, HostDeviceCapabilities, HostDeviceCapability, SafeAreaInsets, } from './types.ts';
2
+ //# sourceMappingURL=contract.device-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.device-types.d.ts","sourceRoot":"","sources":["../src/contract.device-types.ts"],"names":[],"mappings":"AAEA,YAAY,EACV,kBAAkB,EAClB,oBAAoB,EACpB,UAAU,EACV,sBAAsB,EACtB,oBAAoB,EACpB,cAAc,GACf,MAAM,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=contract.device-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.device-types.js","sourceRoot":"","sources":["../src/contract.device-types.ts"],"names":[],"mappings":""}
package/dist/contract.js CHANGED
@@ -1,3 +1,3 @@
1
- export * from './device';
2
- export { initializeDeviceCapabilities, initializeDeviceDisplayMetrics, initializeDeviceInfo, initializeSafeAreaInsets, } from './device';
1
+ export * from './contract.device-types.js';
2
+ export * from './device.js';
3
3
  //# sourceMappingURL=contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,OAAO,EACL,4BAA4B,EAC5B,8BAA8B,EAC9B,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,aAAa,CAAC"}
package/dist/device.d.ts CHANGED
@@ -1,16 +1,13 @@
1
- import type { DeviceCapabilities, DeviceDisplayMetrics, DeviceInfo, EntityConstruction, HasSystemDevice, SafeAreaInsets } from '@flighthq/types/contract';
2
- export declare function createDeviceCapabilities(): DeviceCapabilities;
3
- export declare function createDeviceDisplayMetrics(): DeviceDisplayMetrics;
4
- export declare function createDeviceInfo(): DeviceInfo;
5
- export declare function createSafeAreaInsets(): SafeAreaInsets;
6
- export declare function getDeviceCapabilities(host: HasSystemDevice, out: DeviceCapabilities): DeviceCapabilities;
7
- export declare function getDeviceDisplayMetrics(host: HasSystemDevice, out: DeviceDisplayMetrics): DeviceDisplayMetrics;
8
- export declare function getDeviceId(host: HasSystemDevice): string;
9
- export declare function getDeviceInfo(host: HasSystemDevice, out: DeviceInfo): DeviceInfo;
10
- export declare function getSafeAreaInsets(host: HasSystemDevice, out: SafeAreaInsets): SafeAreaInsets;
11
- export declare function initializeDeviceCapabilities(out: EntityConstruction<DeviceCapabilities>): void;
12
- export declare function initializeDeviceDisplayMetrics(out: EntityConstruction<DeviceDisplayMetrics>): void;
13
- export declare function initializeDeviceInfo(out: EntityConstruction<DeviceInfo>): void;
14
- export declare function initializeSafeAreaInsets(out: EntityConstruction<SafeAreaInsets>): void;
15
- export declare function refreshDeviceInfo(host: HasSystemDevice): void;
1
+ import type { NonEntityCreateResult } from '@flighthq/entity/contract';
2
+ import type { DeviceCapabilities, DeviceDisplayMetrics, DeviceInfo, HostDeviceCapability, SafeAreaInsets } from './types.ts';
3
+ export declare function createDeviceCapabilities(): NonEntityCreateResult<DeviceCapabilities, 'descriptor'>;
4
+ export declare function createDeviceDisplayMetrics(): NonEntityCreateResult<DeviceDisplayMetrics, 'descriptor'>;
5
+ export declare function createDeviceInfo(): NonEntityCreateResult<DeviceInfo, 'descriptor'>;
6
+ export declare function createSafeAreaInsets(): NonEntityCreateResult<SafeAreaInsets, 'descriptor'>;
7
+ export declare function getDeviceCapabilities(hostDevice: Readonly<HostDeviceCapability>, out: DeviceCapabilities): void;
8
+ export declare function getDeviceDisplayMetrics(hostDevice: Readonly<HostDeviceCapability>, out: DeviceDisplayMetrics): void;
9
+ export declare function getDeviceId(hostDevice: Readonly<HostDeviceCapability>): string;
10
+ export declare function getDeviceInfo(hostDevice: Readonly<HostDeviceCapability>, out: DeviceInfo): void;
11
+ export declare function getSafeAreaInsets(hostDevice: Readonly<HostDeviceCapability>, out: SafeAreaInsets): void;
12
+ export declare function refreshDeviceInfo(hostDevice: Readonly<HostDeviceCapability>): void;
16
13
  //# sourceMappingURL=device.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../src/device.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,kBAAkB,EAClB,oBAAoB,EACpB,UAAU,EACV,kBAAkB,EAClB,eAAe,EACf,cAAc,EACf,MAAM,0BAA0B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AAM,YAAY,CAAC;AAEpB,wBAAgB,wBAAwB,IAAI,qBAAqB,CAAC,kBAAkB,EAAE,YAAY,CAAC,CAElG;AAED,wBAAgB,0BAA0B,IAAI,qBAAqB,CAAC,oBAAoB,EAAE,YAAY,CAAC,CAYtG;AAED,wBAAgB,gBAAgB,IAAI,qBAAqB,CAAC,UAAU,EAAE,YAAY,CAAC,CA4BlF;AAED,wBAAgB,oBAAoB,IAAI,qBAAqB,CAAC,cAAc,EAAE,YAAY,CAAC,CAE1F;AAED,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EAAE,GAAG,EAAE,kBAAkB,GAAG,IAAI,CAG/G;AAED,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EAAE,GAAG,EAAE,oBAAoB,GAAG,IAAI,CAGnH;AAED,wBAAgB,WAAW,CAAC,UAAU,EAAE,QAAQ,CAAC,oBAAoB,CAAC,GAAG,MAAM,CAE9E;AAED,wBAAgB,aAAa,CAAC,UAAU,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EAAE,GAAG,EAAE,UAAU,GAAG,IAAI,CAG/F;AAED,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EAAE,GAAG,EAAE,cAAc,GAAG,IAAI,CAGvG;AAED,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,QAAQ,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAElF"}
package/dist/device.js CHANGED
@@ -1,88 +1,72 @@
1
- import { allocateEntity, finishEntity } from '@flighthq/entity/contract';
2
- import { DeviceFormFactorUnknown } from '@flighthq/types/contract';
1
+ import { DeviceFormFactorUnknown } from '@flighthq/useragent/contract';
3
2
  export function createDeviceCapabilities() {
4
- const out = allocateEntity();
5
- initializeDeviceCapabilities(out);
6
- return finishEntity(out);
3
+ return { hasKeyboard: false, hasMouse: false, hasStylus: false };
7
4
  }
8
5
  export function createDeviceDisplayMetrics() {
9
- const out = allocateEntity();
10
- initializeDeviceDisplayMetrics(out);
11
- return finishEntity(out);
6
+ // -1 is the "not reported" sentinel every field starts at, so a host that supplies only some of
7
+ // them leaves the rest visibly unknown rather than reading as a real zero.
8
+ return {
9
+ colorDepth: -1,
10
+ densityDpi: -1,
11
+ logicalHeight: -1,
12
+ logicalWidth: -1,
13
+ physicalHeight: -1,
14
+ physicalWidth: -1,
15
+ pixelRatio: -1,
16
+ };
12
17
  }
13
18
  export function createDeviceInfo() {
14
- const out = allocateEntity();
15
- initializeDeviceInfo(out);
16
- return finishEntity(out);
19
+ return {
20
+ arch: '',
21
+ availableMemory: -1,
22
+ boardName: '',
23
+ colorGamut: '',
24
+ cpuCores: -1,
25
+ fontScale: -1,
26
+ formFactor: DeviceFormFactorUnknown,
27
+ gpuRenderer: '',
28
+ gpuVendor: '',
29
+ isHdr: false,
30
+ isJailbroken: false,
31
+ isLowEndDevice: false,
32
+ isRooted: false,
33
+ isVirtual: false,
34
+ manufacturer: '',
35
+ marketingName: '',
36
+ model: '',
37
+ osBuild: '',
38
+ osName: '',
39
+ osVersion: '',
40
+ platformString: '',
41
+ productName: '',
42
+ supportedAbis: [],
43
+ totalMemory: -1,
44
+ webViewVersion: '',
45
+ };
17
46
  }
18
47
  export function createSafeAreaInsets() {
19
- const out = allocateEntity();
20
- initializeSafeAreaInsets(out);
21
- return finishEntity(out);
48
+ return { bottom: 0, left: 0, right: 0, top: 0 };
22
49
  }
23
- export function getDeviceCapabilities(host, out) {
24
- return host.system.device.getCapabilities(out);
50
+ export function getDeviceCapabilities(hostDevice, out) {
51
+ hostDevice.getCapabilities(out);
52
+ return;
25
53
  }
26
- export function getDeviceDisplayMetrics(host, out) {
27
- return host.system.device.getDisplayMetrics(out);
54
+ export function getDeviceDisplayMetrics(hostDevice, out) {
55
+ hostDevice.getDisplayMetrics(out);
56
+ return;
28
57
  }
29
- export function getDeviceId(host) {
30
- return host.system.device.getId();
58
+ export function getDeviceId(hostDevice) {
59
+ return hostDevice.getId();
31
60
  }
32
- export function getDeviceInfo(host, out) {
33
- return host.system.device.getInfo(out);
61
+ export function getDeviceInfo(hostDevice, out) {
62
+ hostDevice.getInfo(out);
63
+ return;
34
64
  }
35
- export function getSafeAreaInsets(host, out) {
36
- return host.system.device.getSafeAreaInsets(out);
65
+ export function getSafeAreaInsets(hostDevice, out) {
66
+ hostDevice.getSafeAreaInsets(out);
67
+ return;
37
68
  }
38
- export function initializeDeviceCapabilities(out) {
39
- out.hasKeyboard = false;
40
- out.hasMouse = false;
41
- out.hasStylus = false;
42
- }
43
- export function initializeDeviceDisplayMetrics(out) {
44
- out.colorDepth = -1;
45
- out.densityDpi = -1;
46
- out.logicalHeight = -1;
47
- out.logicalWidth = -1;
48
- out.physicalHeight = -1;
49
- out.physicalWidth = -1;
50
- out.pixelRatio = -1;
51
- }
52
- export function initializeDeviceInfo(out) {
53
- out.arch = '';
54
- out.availableMemory = -1;
55
- out.boardName = '';
56
- out.colorGamut = '';
57
- out.cpuCores = -1;
58
- out.fontScale = -1;
59
- out.formFactor = DeviceFormFactorUnknown;
60
- out.gpuRenderer = '';
61
- out.gpuVendor = '';
62
- out.isHdr = false;
63
- out.isJailbroken = false;
64
- out.isLowEndDevice = false;
65
- out.isRooted = false;
66
- out.isVirtual = false;
67
- out.manufacturer = '';
68
- out.marketingName = '';
69
- out.model = '';
70
- out.osBuild = '';
71
- out.osName = '';
72
- out.osVersion = '';
73
- out.platformString = '';
74
- out.productName = '';
75
- out.supportedAbis = [];
76
- out.totalMemory = -1;
77
- out.webViewVersion = '';
78
- }
79
- export function initializeSafeAreaInsets(out) {
80
- out.bottom = 0;
81
- out.left = 0;
82
- out.right = 0;
83
- out.top = 0;
84
- }
85
- export function refreshDeviceInfo(host) {
86
- host.system.device.refresh?.();
69
+ export function refreshDeviceInfo(hostDevice) {
70
+ hostDevice.refresh?.();
87
71
  }
88
72
  //# sourceMappingURL=device.js.map
@@ -1 +1 @@
1
- {"version":3,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AM,UAAU,qBAAqB,CAAC,UAA0C,EAAE,GAAuB;IACvG,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;IAChC,OAAO;AACT,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,UAA0C,EAAE,GAAyB;IAC3G,UAAU,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC;IAClC,OAAO;AACT,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,UAA0C;IACpE,OAAO,UAAU,CAAC,KAAK,EAAE,CAAC;AAC5B,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,UAA0C,EAAE,GAAe;IACvF,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACxB,OAAO;AACT,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,UAA0C,EAAE,GAAmB;IAC/F,UAAU,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC;IAClC,OAAO;AACT,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,UAA0C;IAC1E,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC;AACzB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
- export { createDeviceCapabilities, createDeviceDisplayMetrics, createDeviceInfo, createSafeAreaInsets, getDeviceCapabilities, getDeviceDisplayMetrics, getDeviceId, getDeviceInfo, getSafeAreaInsets, refreshDeviceInfo, } from './contract';
1
+ export { createDeviceCapabilities, createDeviceDisplayMetrics, createDeviceInfo, createSafeAreaInsets, getDeviceCapabilities, getDeviceDisplayMetrics, getDeviceId, getDeviceInfo, getSafeAreaInsets, refreshDeviceInfo, } from './contract.ts';
2
+ export type { DeviceCapabilities, DeviceDisplayMetrics, DeviceInfo, HostDeviceCapabilities, HostDeviceCapability, SafeAreaInsets, } from './contract.ts';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,uBAAuB,EACvB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,uBAAuB,EACvB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,kBAAkB,EAClB,oBAAoB,EACpB,UAAU,EACV,sBAAsB,EACtB,oBAAoB,EACpB,cAAc,GACf,MAAM,eAAe,CAAC"}
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { createDeviceCapabilities, createDeviceDisplayMetrics, createDeviceInfo, createSafeAreaInsets, getDeviceCapabilities, getDeviceDisplayMetrics, getDeviceId, getDeviceInfo, getSafeAreaInsets, refreshDeviceInfo, } from './contract';
1
+ export { createDeviceCapabilities, createDeviceDisplayMetrics, createDeviceInfo, createSafeAreaInsets, getDeviceCapabilities, getDeviceDisplayMetrics, getDeviceId, getDeviceInfo, getSafeAreaInsets, refreshDeviceInfo, } 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,wBAAwB,EACxB,0BAA0B,EAC1B,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,uBAAuB,EACvB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,uBAAuB,EACvB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,eAAe,CAAC"}
@@ -0,0 +1,61 @@
1
+ import type { DeviceFormFactor } from '@flighthq/useragent/contract';
2
+ export interface DeviceCapabilities {
3
+ hasKeyboard: boolean;
4
+ hasMouse: boolean;
5
+ hasStylus: boolean;
6
+ }
7
+ export interface DeviceDisplayMetrics {
8
+ colorDepth: number;
9
+ densityDpi: number;
10
+ logicalHeight: number;
11
+ logicalWidth: number;
12
+ physicalHeight: number;
13
+ physicalWidth: number;
14
+ pixelRatio: number;
15
+ }
16
+ export interface DeviceInfo {
17
+ arch: string;
18
+ availableMemory: number;
19
+ boardName: string;
20
+ colorGamut: string;
21
+ cpuCores: number;
22
+ fontScale: number;
23
+ formFactor: DeviceFormFactor;
24
+ gpuRenderer: string;
25
+ gpuVendor: string;
26
+ isHdr: boolean;
27
+ isJailbroken: boolean;
28
+ isLowEndDevice: boolean;
29
+ isRooted: boolean;
30
+ isVirtual: boolean;
31
+ manufacturer: string;
32
+ marketingName: string;
33
+ model: string;
34
+ osBuild: string;
35
+ osName: string;
36
+ osVersion: string;
37
+ platformString: string;
38
+ productName: string;
39
+ supportedAbis: readonly string[];
40
+ totalMemory: number;
41
+ webViewVersion: string;
42
+ }
43
+ export interface SafeAreaInsets {
44
+ top: number;
45
+ right: number;
46
+ bottom: number;
47
+ left: number;
48
+ }
49
+ export interface HostDeviceCapability {
50
+ getCapabilities(out: DeviceCapabilities): void;
51
+ getDisplayMetrics(out: DeviceDisplayMetrics): void;
52
+ getId(): string;
53
+ getInfo(out: DeviceInfo): void;
54
+ getSafeAreaInsets(out: SafeAreaInsets): void;
55
+ refresh?(): void;
56
+ }
57
+ /** The complete device capability group. An omitted slot is capability absence. */
58
+ export interface HostDeviceCapabilities {
59
+ readonly info?: HostDeviceCapability;
60
+ }
61
+ //# sourceMappingURL=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AAM,EAAE,CAAC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;CAGxB;AAGD,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAID,MAAM,WAAW,oBAAoB;IACnC,eAAe,CAAC,GAAG,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC/C,iBAAiB,CAAC,GAAG,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACnD,KAAK,IAAI,MAAM,CAAC;IAChB,OAAO,CAAC,GAAG,EAAE,UAAU,GAAG,IAAI,CAAC;IAC/B,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,IAAI,CAAC;IAC7C,OAAO,CAAC,IAAI,IAAI,CAAC;CAClB;AAED,mFAAmF;AACnF,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,IAAI,CAAC,EAAE,oBAAoB,CAAC;CACtC"}
package/dist/types.js ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flighthq/device",
3
- "version": "0.5.1-next.920.da8f530",
3
+ "version": "0.7.0-edge.5213.ead804b",
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-device --package device",
36
+ "generate:check": "tsx ../../scripts/generate-rust-package.ts --crate flight-device --package device --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.5.1-next.920.da8f530",
42
- "@flighthq/types": "0.5.1-next.920.da8f530",
43
- "@flighthq/useragent": "0.5.1-next.920.da8f530"
43
+ "@flighthq/entity": "0.7.0-edge.5213.ead804b",
44
+ "@flighthq/useragent": "0.7.0-edge.5213.ead804b"
44
45
  },
45
46
  "devDependencies": {
46
- "typescript": "^5.3.0"
47
+ "typescript": "^7.0.2"
47
48
  },
48
49
  "description": "Device identity, hardware, and safe-area insets over a swappable web/native backend",
49
50
  "sideEffects": false
@@ -1,14 +1,6 @@
1
- import type {
2
- DeviceBackend,
3
- DeviceCapabilities,
4
- DeviceDisplayMetrics,
5
- DeviceInfo,
6
- HasSystemDevice,
7
- SafeAreaInsets,
8
- } from '@flighthq/types/contract';
9
- import { DeviceFormFactorUnknown, EntityRuntimeKey } from '@flighthq/types/contract';
1
+ import { DeviceFormFactorUnknown } from '@flighthq/useragent/contract';
10
2
 
11
- import * as deviceContract from './device';
3
+ import * as deviceContract from './device.ts';
12
4
  import {
13
5
  createDeviceCapabilities,
14
6
  createDeviceDisplayMetrics,
@@ -19,16 +11,18 @@ import {
19
11
  getDeviceId,
20
12
  getDeviceInfo,
21
13
  getSafeAreaInsets,
22
- initializeDeviceCapabilities,
23
- initializeDeviceDisplayMetrics,
24
- initializeDeviceInfo,
25
- initializeSafeAreaInsets,
26
14
  refreshDeviceInfo,
27
- } from './device';
15
+ } from './device.ts';
16
+ import type {
17
+ DeviceCapabilities,
18
+ DeviceDisplayMetrics,
19
+ DeviceInfo,
20
+ HostDeviceCapability,
21
+ SafeAreaInsets,
22
+ } from './types.ts';
28
23
 
29
- function fakeBackend(): DeviceBackend {
24
+ function fakeBackend(): HostDeviceCapability {
30
25
  return {
31
- [EntityRuntimeKey]: undefined,
32
26
  getCapabilities(out: DeviceCapabilities): DeviceCapabilities {
33
27
  out.hasKeyboard = true;
34
28
  out.hasMouse = true;
@@ -86,7 +80,7 @@ function fakeBackend(): DeviceBackend {
86
80
  };
87
81
  }
88
82
 
89
- function fakeHost(): HasSystemDevice {
83
+ function fakeHost(): { readonly system: { readonly device: HostDeviceCapability } } {
90
84
  return { system: { device: fakeBackend() } };
91
85
  }
92
86
 
@@ -150,11 +144,10 @@ describe('createSafeAreaInsets', () => {
150
144
  });
151
145
 
152
146
  describe('getDeviceCapabilities', () => {
153
- it('fills and returns out via the host backend', () => {
147
+ it('fills out via the host backend', () => {
154
148
  const host = fakeHost();
155
149
  const out = createDeviceCapabilities();
156
- const result = getDeviceCapabilities(host, out);
157
- expect(result).toBe(out);
150
+ getDeviceCapabilities(host.system.device, out);
158
151
  expect(out.hasKeyboard).toBe(true);
159
152
  expect(out.hasMouse).toBe(true);
160
153
  expect(out.hasStylus).toBe(false);
@@ -162,11 +155,10 @@ describe('getDeviceCapabilities', () => {
162
155
  });
163
156
 
164
157
  describe('getDeviceDisplayMetrics', () => {
165
- it('fills and returns out via the host backend', () => {
158
+ it('fills out via the host backend', () => {
166
159
  const host = fakeHost();
167
160
  const out = createDeviceDisplayMetrics();
168
- const result = getDeviceDisplayMetrics(host, out);
169
- expect(result).toBe(out);
161
+ getDeviceDisplayMetrics(host.system.device, out);
170
162
  expect(out.colorDepth).toBe(8);
171
163
  expect(out.densityDpi).toBe(440);
172
164
  expect(out.logicalHeight).toBe(800);
@@ -180,16 +172,15 @@ describe('getDeviceDisplayMetrics', () => {
180
172
  describe('getDeviceId', () => {
181
173
  it('returns the value from the host backend', () => {
182
174
  const host = fakeHost();
183
- expect(getDeviceId(host)).toBe('test-device-id');
175
+ expect(getDeviceId(host.system.device)).toBe('test-device-id');
184
176
  });
185
177
  });
186
178
 
187
179
  describe('getDeviceInfo', () => {
188
- it('fills and returns out via the host backend', () => {
180
+ it('fills out via the host backend', () => {
189
181
  const host = fakeHost();
190
182
  const out = createDeviceInfo();
191
- const result = getDeviceInfo(host, out);
192
- expect(result).toBe(out);
183
+ getDeviceInfo(host.system.device, out);
193
184
  expect(out.arch).toBe('arm64');
194
185
  expect(out.availableMemory).toBe(3_000_000_000);
195
186
  expect(out.boardName).toBe('msm8998');
@@ -219,39 +210,15 @@ describe('getDeviceInfo', () => {
219
210
  });
220
211
 
221
212
  describe('getSafeAreaInsets', () => {
222
- it('fills and returns out via the host backend', () => {
213
+ it('fills out via the host backend', () => {
223
214
  const host = fakeHost();
224
215
  const out = createSafeAreaInsets();
225
- const result = getSafeAreaInsets(host, out);
226
- expect(result).toBe(out);
216
+ getSafeAreaInsets(host.system.device, out);
227
217
  expect(out.top).toBe(24);
228
218
  expect(out.bottom).toBe(16);
229
219
  });
230
220
  });
231
221
 
232
- describe('initializeDeviceCapabilities', () => {
233
- it('is the construction initializer of createDeviceCapabilities', () => {
234
- expect(typeof initializeDeviceCapabilities).toBe('function');
235
- });
236
- });
237
-
238
- describe('initializeDeviceDisplayMetrics', () => {
239
- it('is the construction initializer of createDeviceDisplayMetrics', () => {
240
- expect(typeof initializeDeviceDisplayMetrics).toBe('function');
241
- });
242
- });
243
- describe('initializeDeviceInfo', () => {
244
- it('is the construction initializer of createDeviceInfo', () => {
245
- expect(typeof initializeDeviceInfo).toBe('function');
246
- });
247
- });
248
-
249
- describe('initializeSafeAreaInsets', () => {
250
- it('is the construction initializer of createSafeAreaInsets', () => {
251
- expect(typeof initializeSafeAreaInsets).toBe('function');
252
- });
253
- });
254
-
255
222
  describe('R3 boundary', () => {
256
223
  it('exports no ambient-state API (setDeviceBackend, getDeviceBackend, etc.)', () => {
257
224
  const exports = Object.keys(deviceContract);
@@ -274,7 +241,7 @@ describe('R3 boundary', () => {
274
241
  describe('refreshDeviceInfo', () => {
275
242
  it('does not throw on a backend without refresh', () => {
276
243
  const host = fakeHost();
277
- expect(() => refreshDeviceInfo(host)).not.toThrow();
244
+ expect(() => refreshDeviceInfo(host.system.device)).not.toThrow();
278
245
  });
279
246
 
280
247
  it('calls refresh() on backends that expose it', () => {
@@ -285,8 +252,8 @@ describe('refreshDeviceInfo', () => {
285
252
  refreshed = true;
286
253
  },
287
254
  };
288
- const host: HasSystemDevice = { system: { device: backend } };
289
- refreshDeviceInfo(host);
255
+ const host: { readonly system: { readonly device: HostDeviceCapability } } = { system: { device: backend } };
256
+ refreshDeviceInfo(host.system.device);
290
257
  expect(refreshed).toBe(true);
291
258
  });
292
259
  });