@flighthq/menu 0.5.1-next.973.788d3d7 → 0.7.0-next.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/menu`. The `@flighth
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/menu@0.5.1-next.973.788d3d7](https://github.com/flighthq/flight/tree/788d3d7375cca3a0233cecedda1a4e031bd26dec/packages/menu)
17
- - [License](https://github.com/flighthq/flight/blob/788d3d7375cca3a0233cecedda1a4e031bd26dec/LICENSE.md)
16
+ - [Source for @flighthq/menu@0.7.0-next.5213.ead804b](https://github.com/flighthq/flight/tree/ead804bfaef3e691a2e6e43e9711ddd3fd8a84a2/packages/menu)
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.menu-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":"8b19a361d2318805da1c1e16fe23da49","signature":"693b15314182a02d664be5f48647c738","impliedNodeFormat":1},{"version":"b279ca643cd858e2ecb3ca99bd3c7e35","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.menu-types.d.ts"}
@@ -0,0 +1 @@
1
+ {"version":"7.0.2","root":[[87,94]],"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","./contract.menu-types.d.ts","../src/menu.ts","../src/menu-templates.ts","../src/runtime.ts","../src/contract.ts","../src/index.ts","../src/menu-templates.test.ts","../src/menu.test.ts","../src/types.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","f5e26d78b1b772156b3e8949fc39a19d","422a57575128dae8eae1d40a703217a8",{"version":"e39300e2e2fd3ef20d7dd6ae1dfbaaaf","signature":"6b12f33f928c38dfbe3ba1dff4077931","impliedNodeFormat":1},{"version":"a2448fbc34cfd20506f8180f9c79db6b","signature":"85c2430693913eba6689dbfc3a4618db","impliedNodeFormat":1},"a4e746cbad2f5c8cc160b7ef75537738","a2cf85aeabd43ab13cb2365a52681d9b",{"version":"8fb621ff1a0561503a0a412a99dabbab","signature":"78ac5358eaa4dae00f5ba56c8cc045fd","impliedNodeFormat":1},{"version":"5e622aada0a75c424385f3bf235a0882","signature":"abe7d9981d6018efb6b2b794f40a1607","impliedNodeFormat":1},{"version":"40a862f47032ac7ebadb0f031c29ff1b","signature":"abe7d9981d6018efb6b2b794f40a1607","impliedNodeFormat":1},{"version":"ae333e8b249c8a112ae09e7d2605894b","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":[[97],[96],[95],[127,128],[100,106,124,125,126,129],[136],[136,137],[104,106,107],[104,106],[104],[99,104,115,116],[99,104,115],[123],[99,105],[99],[101],[99,100,101,102,103],[142,143],[142,143,144,145],[142,144],[142],[110],[110,111,112,113],[112],[108,131,132,134],[108,109,121,134],[99,106,108,109,117,134],[114],[99,108,109,117,130,133],[108,109,114,117,134],[108,131,132,133,134],[108,114,118,119,120,134],[99,104,106,108,109,114,117,118,119,120,121,122,124,130,131,132,133,134,135,138,139,140,141,146],[99,106,108,109,117,118,131,132,133,134,139],[147],[64],[64,65,66,67,68,69,70,71,72],[85],[73,84],[86,89],[85,88],[73,85],[73,84,85,87],[73,84,85],[87,88],[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":[[98,1],[97,2],[96,3],[129,4],[130,5],[137,6],[138,7],[108,8],[107,9],[131,8],[115,10],[117,11],[116,12],[124,13],[106,14],[100,15],[102,16],[104,17],[105,15],[144,18],[146,19],[145,20],[143,21],[111,22],[114,23],[112,22],[113,24],[133,25],[122,26],[118,27],[119,10],[140,28],[134,29],[120,30],[139,31],[121,32],[147,33],[141,34],[148,35],[65,36],[66,36],[73,37],[67,36],[68,36],[69,36],[70,36],[71,36],[72,36],[86,38],[85,39],[90,40],[91,40],[92,41],[88,42],[93,43],[87,44],[89,45],[94,42],[75,46],[84,47],[76,46],[78,46],[79,46],[80,46],[83,46],[81,46],[82,46],[74,48]],"latestChangedDtsFile":"./types.test.d.ts"}
@@ -1,4 +1,3 @@
1
- export * from './menu';
2
- export * from './menu-templates';
3
- export { initializeMenuHighlight, initializeMenuSelect } from './menu';
1
+ export * from './contract.menu-types.ts';
2
+ export * from './runtime.ts';
4
3
  //# sourceMappingURL=contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC"}
package/dist/contract.js CHANGED
@@ -1,4 +1,3 @@
1
- export * from './menu';
2
- export * from './menu-templates';
3
- export { initializeMenuHighlight, initializeMenuSelect } from './menu';
1
+ export * from './contract.menu-types.js';
2
+ export * from './runtime.js';
4
3
  //# sourceMappingURL=contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './types.ts';
2
+ //# sourceMappingURL=contract.menu-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.menu-types.d.ts","sourceRoot":"","sources":["../src/contract.menu-types.ts"],"names":[],"mappings":"AAEA,cAAc,YAAY,CAAC"}
@@ -0,0 +1,4 @@
1
+ // Acyclic build entry selected by contract-only projects through the `.menu-types` module suffix.
2
+ // The published @flighthq/menu/contract entry remains contract.ts, which adds the runtime barrel.
3
+ export * from './types.js';
4
+ //# sourceMappingURL=contract.menu-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.menu-types.js","sourceRoot":"","sources":["../src/contract.menu-types.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,kGAAkG;AAClG,cAAc,YAAY,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
- export { cloneMenuTemplate, createDefaultAppMenuTemplate, createDefaultEditMenuTemplate, createDefaultFileMenuTemplate, createDefaultHelpMenuTemplate, createDefaultViewMenuTemplate, createDefaultWindowMenuTemplate, createMenuItemTemplate, attachMenuHighlight, attachMenuSelect, createMenuHighlight, createMenuSelect, destroyMenuApplication, detachMenuHighlight, detachMenuSelect, disposeMenuHighlight, disposeMenuSelect, enableMenuSignals, getMenuSignals, setApplicationMenu, showContextMenu, validateMenuItemTemplate, } from './contract';
1
+ export { cloneMenuTemplate, createDefaultAppMenuTemplate, createDefaultEditMenuTemplate, createDefaultFileMenuTemplate, createDefaultHelpMenuTemplate, createDefaultViewMenuTemplate, createDefaultWindowMenuTemplate, createMenuItemTemplate, attachMenuHighlight, attachMenuSelect, createMenuHighlight, createMenuSelect, destroyAppMenu, detachMenuHighlight, detachMenuSelect, disposeMenuHighlight, disposeMenuSelect, enableMenuSignals, getMenuSignals, setAppMenu, showContextMenu, validateMenuItemTemplate, } from './runtime.ts';
2
+ export * from './contract.menu-types.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,iBAAiB,EACjB,4BAA4B,EAC5B,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,EAC7B,+BAA+B,EAC/B,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,wBAAwB,GACzB,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,4BAA4B,EAC5B,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,EAC7B,+BAA+B,EAC/B,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,UAAU,EACV,eAAe,EACf,wBAAwB,GACzB,MAAM,cAAc,CAAC;AACtB,cAAc,0BAA0B,CAAC"}
package/dist/index.js CHANGED
@@ -1,2 +1,3 @@
1
- export { cloneMenuTemplate, createDefaultAppMenuTemplate, createDefaultEditMenuTemplate, createDefaultFileMenuTemplate, createDefaultHelpMenuTemplate, createDefaultViewMenuTemplate, createDefaultWindowMenuTemplate, createMenuItemTemplate, attachMenuHighlight, attachMenuSelect, createMenuHighlight, createMenuSelect, destroyMenuApplication, detachMenuHighlight, detachMenuSelect, disposeMenuHighlight, disposeMenuSelect, enableMenuSignals, getMenuSignals, setApplicationMenu, showContextMenu, validateMenuItemTemplate, } from './contract';
1
+ export { cloneMenuTemplate, createDefaultAppMenuTemplate, createDefaultEditMenuTemplate, createDefaultFileMenuTemplate, createDefaultHelpMenuTemplate, createDefaultViewMenuTemplate, createDefaultWindowMenuTemplate, createMenuItemTemplate, attachMenuHighlight, attachMenuSelect, createMenuHighlight, createMenuSelect, destroyAppMenu, detachMenuHighlight, detachMenuSelect, disposeMenuHighlight, disposeMenuSelect, enableMenuSignals, getMenuSignals, setAppMenu, showContextMenu, validateMenuItemTemplate, } from './runtime.js';
2
+ export * from './contract.menu-types.js';
2
3
  //# 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,iBAAiB,EACjB,4BAA4B,EAC5B,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,EAC7B,+BAA+B,EAC/B,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,wBAAwB,GACzB,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,4BAA4B,EAC5B,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,EAC7B,+BAA+B,EAC/B,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,UAAU,EACV,eAAe,EACf,wBAAwB,GACzB,MAAM,cAAc,CAAC;AACtB,cAAc,0BAA0B,CAAC"}
@@ -1,4 +1,5 @@
1
- import type { MenuItemTemplate, NonEntityCreateResult } from '@flighthq/types/contract';
1
+ import type { NonEntityCreateResult } from '@flighthq/entity/contract';
2
+ import type { MenuItemTemplate } from './types.ts';
2
3
  export declare function createDefaultAppMenuTemplate(appName: string): NonEntityCreateResult<MenuItemTemplate, 'descriptor'>;
3
4
  export declare function createDefaultEditMenuTemplate(): NonEntityCreateResult<MenuItemTemplate, 'descriptor'>;
4
5
  export declare function createDefaultFileMenuTemplate(): NonEntityCreateResult<MenuItemTemplate, 'descriptor'>;
@@ -1 +1 @@
1
- {"version":3,"file":"menu-templates.d.ts","sourceRoot":"","sources":["../src/menu-templates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAMxF,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,GAAG,qBAAqB,CAAC,gBAAgB,EAAE,YAAY,CAAC,CA0DnH;AAMD,wBAAgB,6BAA6B,IAAI,qBAAqB,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAyErG;AAID,wBAAgB,6BAA6B,IAAI,qBAAqB,CAAC,gBAAgB,EAAE,YAAY,CAAC,CA+CrG;AAID,wBAAgB,6BAA6B,IAAI,qBAAqB,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAgBrG;AAID,wBAAgB,6BAA6B,IAAI,qBAAqB,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAmDrG;AAID,wBAAgB,+BAA+B,IAAI,qBAAqB,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAyBvG"}
1
+ {"version":3,"file":"menu-templates.d.ts","sourceRoot":"","sources":["../src/menu-templates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAGvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAKnD,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,GAAG,qBAAqB,CAAC,gBAAgB,EAAE,YAAY,CAAC,CA0DnH;AAMD,wBAAgB,6BAA6B,IAAI,qBAAqB,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAyErG;AAID,wBAAgB,6BAA6B,IAAI,qBAAqB,CAAC,gBAAgB,EAAE,YAAY,CAAC,CA+CrG;AAID,wBAAgB,6BAA6B,IAAI,qBAAqB,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAgBrG;AAID,wBAAgB,6BAA6B,IAAI,qBAAqB,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAmDrG;AAID,wBAAgB,+BAA+B,IAAI,qBAAqB,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAyBvG"}
@@ -1,4 +1,4 @@
1
- import { WellKnownMenuItemRole } from '@flighthq/types/contract';
1
+ import { WellKnownMenuItemRole } from './types.js';
2
2
  // Returns a standard macOS-style application menu (the first menu, labeled with the app name).
3
3
  // On Windows/Linux this menu is typically omitted; native backends handle that automatically when
4
4
  // the whole-submenu role 'appMenu' is set. Includes About, Services, Hide/Show, and Quit.
@@ -1 +1 @@
1
- {"version":3,"file":"menu-templates.js","sourceRoot":"","sources":["../src/menu-templates.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAq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AAI;KACd,CAAC;AACJ,CAAC;AAED,8FAA8F;AAC9F,yEAAyE;AACzE,MAAM,UAAU,+BAA+B;IAC7C,OAAO;QACL,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,qBAAqB,CAAC,UAAU;QACtC,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACP;gBACE,EAAE,EAAE,UAAU;gBACd,KAAK,EAAE,UAAU;gBACjB,IAAI,EAAE,qBAAqB,CAAC,QAAQ;gBACpC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,IAAI;aACd;YACD;gBACE,EAAE,EAAE,OAAO;gBACX,KAAK,EAAE,OAAO;gBACd,IAAI,EAAE,qBAAqB,CAAC,KAAK;gBACjC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,IAAI;aACd;SACF;QACD,OAAO,EAAE,IAAI;KACd,CAAC;AACJ,CAAC"}
package/dist/menu.d.ts CHANGED
@@ -1,11 +1,12 @@
1
- import type { EntityConstruction, HasMenuApplication, HasMenuHighlight, HasMenuPopup, HasMenuSelect, MenuHighlight, MenuItemTemplate, MenuSelect, MenuSignals, NonEntityCreateResult } from '@flighthq/types/contract';
2
- export declare function attachMenuHighlight(host: HasMenuHighlight, highlight: MenuHighlight): void;
3
- export declare function attachMenuSelect(host: HasMenuSelect, select: MenuSelect): void;
1
+ import type { EntityConstruction, NonEntityCreateResult } from '@flighthq/entity/contract';
2
+ import type { HostAppMenuCapability, HostMenuHighlightCapability, HostMenuPopupCapability, HostMenuSelectCapability, MenuHighlight, MenuItemTemplate, MenuSelect, MenuSignals } from './types.ts';
3
+ export declare function attachMenuHighlight(hostMenuHighlight: Readonly<HostMenuHighlightCapability>, highlight: MenuHighlight): void;
4
+ export declare function attachMenuSelect(hostMenuSelect: Readonly<HostMenuSelectCapability>, select: MenuSelect): void;
4
5
  export declare function cloneMenuTemplate(template: Readonly<MenuItemTemplate>): MenuItemTemplate;
5
6
  export declare function createMenuHighlight(): MenuHighlight;
6
7
  export declare function createMenuItemTemplate(template?: Readonly<Partial<MenuItemTemplate>>): NonEntityCreateResult<MenuItemTemplate, 'descriptor'>;
7
8
  export declare function createMenuSelect(): MenuSelect;
8
- export declare function destroyMenuApplication(...hosts: readonly HasMenuApplication[]): void;
9
+ export declare function destroyAppMenu(...hostAppMenu: readonly Readonly<HostAppMenuCapability>[]): void;
9
10
  export declare function detachMenuHighlight(highlight: MenuHighlight): void;
10
11
  export declare function detachMenuSelect(select: MenuSelect): void;
11
12
  export declare function disposeMenuHighlight(highlight: MenuHighlight): void;
@@ -14,7 +15,7 @@ export declare function enableMenuSignals(): MenuSignals;
14
15
  export declare function getMenuSignals(): Readonly<MenuSignals> | null;
15
16
  export declare function initializeMenuHighlight(out: EntityConstruction<MenuHighlight>): void;
16
17
  export declare function initializeMenuSelect(out: EntityConstruction<MenuSelect>): void;
17
- export declare function setApplicationMenu(host: HasMenuApplication, items: readonly MenuItemTemplate[]): boolean;
18
- export declare function showContextMenu(host: HasMenuPopup, items: readonly MenuItemTemplate[], x: number, y: number): Promise<string | null>;
18
+ export declare function setAppMenu(hostAppMenu: Readonly<HostAppMenuCapability>, items: readonly MenuItemTemplate[]): boolean;
19
+ export declare function showContextMenu(hostMenuPopup: Readonly<HostMenuPopupCapability>, items: readonly MenuItemTemplate[], x: number, y: number): Promise<string | null>;
19
20
  export declare function validateMenuItemTemplate(template: Readonly<MenuItemTemplate>): string | null;
20
21
  //# sourceMappingURL=menu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../src/menu.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EAEb,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,WAAW,EACX,qBAAqB,EACtB,MAAM,0BAA0B,CAAC;AAQlC,wBAAgB,mBAAmB,CAA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AS,EAAE,aAAa,GAAG,IAAI,CAGlE;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAGzD;AAID,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,aAAa,GAAG,IAAI,CAGnE;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAG1D;AAMD,wBAAgB,iBAAiB,IAAI,WAAW,CAQ/C;AAED,wBAAgB,cAAc,IAAI,QAAQ,CAAC,WAAW,CAAC,GAAG,IAAI,CAE7D;AAID,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,kBAAkB,CAAC,aAAa,CAAC,GAAG,IAAI,CAEpF;AAGD,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,kBAAkB,CAAC,UAAU,CAAC,GAAG,IAAI,CAE9E;AAKD,wBAAgB,UAAU,CAAC,WAAW,EAAE,QAAQ,CAAC,qBAAqB,CAAC,EAAE,KAAK,EAAE,SAAS,gBAAgB,EAAE,GAAG,OAAO,CAEpH;AAID,wBAAgB,eAAe,CAC7B,aAAa,EAAE,QAAQ,CAAC,uBAAuB,CAAC,EAChD,KAAK,EAAE,SAAS,gBAAgB,EAAE,EAClC,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,GACR,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAMxB;AAKD,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,QAAQ,CAAC,gBAAgB,CAAC,GAAG,MAAM,GAAG,IAAI,CAE5F"}
package/dist/menu.js CHANGED
@@ -1,21 +1,21 @@
1
- import { allocateEntity, finishEntity } from '@flighthq/entity/contract';
1
+ import { allocateEntity } from '@flighthq/entity/contract';
2
2
  import { clearSignal, createSignal, emitSignal } from '@flighthq/signals/contract';
3
3
  // Starts delivering highlight notifications from the host's provider into `highlight`. Re-attaching
4
4
  // detaches first, so one entity never holds two live subscriptions.
5
5
  //
6
6
  // The unsubscribe is ORIGIN-PINNED: it is stored beside the entity that opened it, so detach ends
7
7
  // exactly the subscription this attach created. Under the old ambient model a rebind could leave an
8
- // earlier subscription live against a replaced backend with nothing holding its unsubscribe.
9
- export function attachMenuHighlight(host, highlight) {
8
+ // earlier subscription live against a replaced provider with nothing holding its unsubscribe.
9
+ export function attachMenuHighlight(hostMenuHighlight, highlight) {
10
10
  detachMenuHighlight(highlight);
11
- const unsubscribe = host.menu.highlight.subscribe((id) => emitSignal(highlight.onMenuItemHighlight, id));
11
+ const unsubscribe = hostMenuHighlight.subscribe((id) => emitSignal(highlight.onMenuItemHighlight, id));
12
12
  _highlightUnsubscribe.set(highlight, unsubscribe);
13
13
  }
14
14
  // Starts delivering application menu-bar selections from the host's provider into `select`. Same
15
15
  // origin-pinned unsubscribe contract as attachMenuHighlight.
16
- export function attachMenuSelect(host, select) {
16
+ export function attachMenuSelect(hostMenuSelect, select) {
17
17
  detachMenuSelect(select);
18
- const unsubscribe = host.menu.select.subscribe((id) => emitSignal(select.onMenuItemSelect, id));
18
+ const unsubscribe = hostMenuSelect.subscribe((id) => emitSignal(select.onMenuItemSelect, id));
19
19
  _selectUnsubscribe.set(select, unsubscribe);
20
20
  }
21
21
  // Deep-clones a MenuItemTemplate tree. The returned tree has the same shape and values. Safe to call
@@ -30,7 +30,7 @@ export function cloneMenuTemplate(template) {
30
30
  export function createMenuHighlight() {
31
31
  const out = allocateEntity();
32
32
  initializeMenuHighlight(out);
33
- return finishEntity(out);
33
+ return out;
34
34
  }
35
35
  // Builds a menu item template, filling defaults (type 'normal', enabled true). Recursively normalizes
36
36
  // any submenu children through the same default-fill, so every item in the tree has canonical defaults
@@ -49,10 +49,10 @@ export function createMenuItemTemplate(template) {
49
49
  export function createMenuSelect() {
50
50
  const out = allocateEntity();
51
51
  initializeMenuSelect(out);
52
- return finishEntity(out);
52
+ return out;
53
53
  }
54
54
  // Stops delivery without discarding the entity: runs this entity's own unsubscribe, if it has one.
55
- // Safe to call when never attached. Does NOT touch the provider — backend teardown is `destroy` on the
55
+ // Safe to call when never attached. Does NOT touch the provider — provider teardown is `destroy` on the
56
56
  // slot, a separate host/provider lifecycle concern.
57
57
  // FINAL RELEASE for the one menu slot that owns a whole-provider resource: the installed native menu.
58
58
  // Destroys every DISTINCT application provider exactly once — alias-safe, because two hosts may share
@@ -61,11 +61,10 @@ export function createMenuSelect() {
61
61
  // Attempt-all: every obligation is tried even after one throws, and the first error is rethrown once the
62
62
  // siblings have run. A provider whose destroy threw is RETAINED, so a later call retries only the
63
63
  // failures; the ones that succeeded are forgotten and never destroyed twice.
64
- export function destroyMenuApplication(...hosts) {
64
+ export function destroyAppMenu(...hostAppMenu) {
65
65
  const pending = new Set();
66
- for (const host of hosts) {
67
- const provider = host.menu.application;
68
- if (!_destroyedApplication.has(provider))
66
+ for (const provider of hostAppMenu) {
67
+ if (!_destroyedAppLoop.has(provider))
69
68
  pending.add(provider);
70
69
  }
71
70
  let failure = null;
@@ -78,7 +77,7 @@ export function destroyMenuApplication(...hosts) {
78
77
  failure ??= error;
79
78
  continue;
80
79
  }
81
- _destroyedApplication.add(provider);
80
+ _destroyedAppLoop.add(provider);
82
81
  }
83
82
  if (failure !== null)
84
83
  throw failure;
@@ -102,7 +101,7 @@ export function disposeMenuSelect(select) {
102
101
  clearSignal(select.onMenuItemSelect);
103
102
  }
104
103
  // Activates the core context-menu dispatcher signals and returns the group. These are NOT host
105
- // capabilities: the dispatcher below emits them around the popup call, so no backend can deliver them.
104
+ // capabilities: the dispatcher below emits them around the popup call, so no provider can deliver them.
106
105
  // The module-level identity/enable state here is package state, not ambient capability resolution —
107
106
  // nothing about which provider serves a call is decided by it.
108
107
  export function enableMenuSignals() {
@@ -110,7 +109,7 @@ export function enableMenuSignals() {
110
109
  const out = allocateEntity();
111
110
  out.onContextMenuClose = createSignal();
112
111
  out.onContextMenuOpen = createSignal();
113
- return finishEntity(out);
112
+ return out;
114
113
  })();
115
114
  return _menuSignals;
116
115
  }
@@ -129,18 +128,18 @@ export function initializeMenuSelect(out) {
129
128
  // Installs the application menu bar through the host's provider. Returns false when the install did
130
129
  // not take effect. A host without a native menu bar omits the slot entirely, so this cannot be reached
131
130
  // with a stub that always answers false.
132
- export function setApplicationMenu(host, items) {
133
- return host.menu.application.setApplicationMenu(items);
131
+ export function setAppMenu(hostAppMenu, items) {
132
+ return hostAppMenu.setAppMenu(items);
134
133
  }
135
134
  // Pops up a context menu through the host's provider and resolves the chosen item id, or null when
136
135
  // dismissed. Emits the core open/close dispatcher signals around the call when they are enabled.
137
- export function showContextMenu(host, items, x, y) {
136
+ export function showContextMenu(hostMenuPopup, items, x, y) {
138
137
  const signals = _menuSignals;
139
138
  if (signals !== null)
140
- emitSignal(signals.onContextMenuOpen);
141
- const promise = host.menu.popup.popup(items, x, y);
139
+ emitSignal(signals.onContextMenuOpen, undefined);
140
+ const promise = hostMenuPopup.popup(items, x, y);
142
141
  if (signals !== null)
143
- void promise.then(() => emitSignal(signals.onContextMenuClose));
142
+ void promise.then(() => emitSignal(signals.onContextMenuClose, undefined));
144
143
  return promise;
145
144
  }
146
145
  // Validates a MenuItemTemplate tree for consistency. Returns null on success, or a string describing
@@ -169,8 +168,8 @@ function _validateItem(item, seen) {
169
168
  return `item type "${item.type ?? 'normal'}" has a submenu (only type "submenu" should carry children)`;
170
169
  }
171
170
  // `checked` only means something on the two toggle types. Setting it elsewhere is the mistake that
172
- // renders silently: the web backend draws the checkmark from `checked` alone, so a normal item with
173
- // checked: true grows a tick it can never clear, and native backends typically drop it instead —
171
+ // renders silently: the Web popup provider draws the checkmark from `checked` alone, so a normal item with
172
+ // checked: true grows a tick it can never clear, and native providers typically drop it instead —
174
173
  // same descriptor, two different wrong results, which is exactly what validation is for.
175
174
  if (item.checked !== undefined && item.type !== 'checkbox' && item.type !== 'radio') {
176
175
  return `item type "${item.type ?? 'normal'}" has "checked" (only "checkbox" and "radio" items are checkable)`;
@@ -191,7 +190,7 @@ function _validateItem(item, seen) {
191
190
  }
192
191
  // A radio group is a run of adjacent radio items — any other item type, including a separator, starts
193
192
  // a new one. Exactly one member of a run may be checked; two checked members describe a state the
194
- // widget cannot represent, and each backend picks a different winner. Checked on a non-radio item is
193
+ // widget cannot represent, and each provider picks a different winner. Checked on a non-radio item is
195
194
  // caught per-item above; this is the rule that only exists across siblings, which is why it runs where
196
195
  // the child list is known rather than inside the per-item walk.
197
196
  function _validateRadioGroups(items) {
@@ -216,7 +215,7 @@ const _highlightUnsubscribe = new WeakMap();
216
215
  const _selectUnsubscribe = new WeakMap();
217
216
  // Providers already finally-released. A destroy that THREW is deliberately absent, so the next call
218
217
  // retries exactly the failed obligations and never re-destroys a successful one.
219
- const _destroyedApplication = new WeakSet();
218
+ const _destroyedAppLoop = new WeakSet();
220
219
  function assertSyncVoid(value) {
221
220
  void value;
222
221
  }
package/dist/menu.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"menu.js","sourceRoot":"","sources":["../src/menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAenF,oGAAoG;AACpG,oEAAoE;AACpE,EAAE;AACF,kGAAkG;AAClG,oGAAoG;AACpG,6FAA6F;AAC7F,MAAM,UAAU,mBAAmB,CAAC,IAAsB,EAAE,SAAwB;IAClF,mBAAmB,CAAC,SAAS,CAAC,CAAC;IAC/B,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC,CAAC;IACzG,qBAAqB,CAAC,GAAG,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;AACpD,CAAC;AAED,iGAAiG;AACjG,6DAA6D;AAC7D,MAAM,UAAU,gBAAgB,CAAC,IAAmB,EAAE,MAAkB;IACtE,gBAAgB,CAAC,MAAM,CAA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AAI,KAAK,OAAO,EAAE,CAAC;YAC1B,YAAY,GAAG,CAAC,CAAC;YACjB,SAAS;QACX,CAAC;QACD,IAAI,IAAI,CAAC,OAAO,KAAK,IAAI;YAAE,YAAY,EAAE,CAAC;QAC1C,IAAI,YAAY,GAAG,CAAC,EAAE,CAAC;YACrB,OAAO,mBAAmB,YAAY,qDAAqD,CAAC;QAC9F,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,IAAI,YAAY,GAAuB,IAAI,CAAC;AAE5C,uGAAuG;AACvG,6EAA6E;AAC7E,MAAM,qBAAqB,GAAG,IAAI,OAAO,EAA6B,CAAC;AACvE,MAAM,kBAAkB,GAAG,IAAI,OAAO,EAA0B,CAAC;AAEjE,oGAAoG;AACpG,iFAAiF;AACjF,MAAM,iBAAiB,GAAG,IAAI,OAAO,EAAyB,CAAC;AAG/D,SAAS,cAAc,CAAI,KAA6E;IACtG,KAAK,KAAK,CAAC;AACb,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './menu.ts';
2
+ export * from './menu-templates.ts';
3
+ //# sourceMappingURL=runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './menu.js';
2
+ export * from './menu-templates.js';
3
+ //# sourceMappingURL=runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,110 @@
1
+ import type { EntityRuntimeKey } from '@flighthq/entity/contract';
2
+ import type { EntityRaw, EntityRuntime } from '@flighthq/entity/contract';
3
+ import type { Signal } from '@flighthq/signals/contract';
4
+ export type MenuItemType = 'normal' | 'separator' | 'submenu' | 'checkbox' | 'radio';
5
+ export declare const WellKnownMenuItemRole: {
6
+ readonly copy: 'copy';
7
+ readonly cut: 'cut';
8
+ readonly delete: 'delete';
9
+ readonly paste: 'paste';
10
+ readonly pasteAndMatchStyle: 'pasteAndMatchStyle';
11
+ readonly redo: 'redo';
12
+ readonly selectAll: 'selectAll';
13
+ readonly toggleSpellChecker: 'toggleSpellChecker';
14
+ readonly undo: 'undo';
15
+ readonly about: 'about';
16
+ readonly close: 'close';
17
+ readonly front: 'front';
18
+ readonly hide: 'hide';
19
+ readonly hideOthers: 'hideOthers';
20
+ readonly mergeAllWindows: 'mergeAllWindows';
21
+ readonly minimize: 'minimize';
22
+ readonly moveTabToNewWindow: 'moveTabToNewWindow';
23
+ readonly quit: 'quit';
24
+ readonly selectNextTab: 'selectNextTab';
25
+ readonly selectPreviousTab: 'selectPreviousTab';
26
+ readonly toggleTabBar: 'toggleTabBar';
27
+ readonly unhide: 'unhide';
28
+ readonly zoom: 'zoom';
29
+ readonly forceReload: 'forceReload';
30
+ readonly reload: 'reload';
31
+ readonly resetZoom: 'resetZoom';
32
+ readonly toggleDevTools: 'toggleDevTools';
33
+ readonly toggleFullscreen: 'toggleFullscreen';
34
+ readonly zoomIn: 'zoomIn';
35
+ readonly zoomOut: 'zoomOut';
36
+ readonly help: 'help';
37
+ readonly services: 'services';
38
+ readonly startSpeaking: 'startSpeaking';
39
+ readonly stopSpeaking: 'stopSpeaking';
40
+ readonly clearRecentDocuments: 'clearRecentDocuments';
41
+ readonly recentDocuments: 'recentDocuments';
42
+ readonly appMenu: 'appMenu';
43
+ readonly editMenu: 'editMenu';
44
+ readonly fileMenu: 'fileMenu';
45
+ readonly helpMenu: 'helpMenu';
46
+ readonly shareMenu: 'shareMenu';
47
+ readonly viewMenu: 'viewMenu';
48
+ readonly windowMenu: 'windowMenu';
49
+ };
50
+ export type WellKnownMenuItemRoleValue = (typeof WellKnownMenuItemRole)[keyof typeof WellKnownMenuItemRole];
51
+ export type MenuItemRole = WellKnownMenuItemRoleValue | (string & {});
52
+ export interface MenuItemTemplate {
53
+ id?: string;
54
+ label?: string;
55
+ type?: MenuItemType;
56
+ role?: MenuItemRole;
57
+ accelerator?: string;
58
+ enabled?: boolean;
59
+ checked?: boolean;
60
+ visible?: boolean;
61
+ sublabel?: string;
62
+ toolTip?: string;
63
+ submenu?: MenuItemTemplate[];
64
+ }
65
+ export interface HostAppMenuCapability {
66
+ destroy?(): void;
67
+ setAppMenu(items: readonly MenuItemTemplate[]): boolean;
68
+ }
69
+ export interface HostMenuHighlightCapability {
70
+ subscribe(listener: (id: string) => void): () => void;
71
+ }
72
+ export interface HostMenuPopupCapability {
73
+ popup(items: readonly MenuItemTemplate[], x: number, y: number): Promise<string | null>;
74
+ }
75
+ export interface HostMenuSelectCapability {
76
+ subscribe(listener: (id: string) => void): () => void;
77
+ }
78
+ export interface HostMenuCapabilities {
79
+ readonly app?: HostAppMenuCapability;
80
+ readonly highlight?: HostMenuHighlightCapability;
81
+ readonly popup?: HostMenuPopupCapability;
82
+ readonly select?: HostMenuSelectCapability;
83
+ }
84
+ export type ElectronMenuCapabilities = Required<Pick<HostMenuCapabilities, 'app' | 'popup' | 'select'>>;
85
+ export type TauriMenuCapabilities = Required<Pick<HostMenuCapabilities, 'app' | 'popup' | 'select'>>;
86
+ export interface MenuHighlight extends EntityRaw {
87
+ readonly [EntityRuntimeKey]: EntityRuntime | undefined;
88
+ onMenuItemHighlight: Signal<string>;
89
+ }
90
+ export interface MenuSelect extends EntityRaw {
91
+ readonly [EntityRuntimeKey]: EntityRuntime | undefined;
92
+ onMenuItemSelect: Signal<string>;
93
+ }
94
+ /**
95
+ * Core context-menu dispatcher signals. These stay a package-level opt-in group rather than Host event
96
+ * slots because the CORE dispatcher emits them around the popup call — no backend emits them, so under
97
+ * R18 they are not a host capability. Opt in via `enableMenuSignals()` from `@flighthq/menu`.
98
+ *
99
+ * Item selection and item highlight are NOT here: after the DOM overlay moved to host-web, both are
100
+ * emitted by a backend, so they became Host event slots (`menu.select`, `menu.highlight`) with their own
101
+ * signal entities.
102
+ */
103
+ export interface MenuSignals extends EntityRaw {
104
+ readonly [EntityRuntimeKey]: EntityRuntime | undefined;
105
+ /** Fires when a context menu is dismissed (either by selection or outside-click). */
106
+ onContextMenuClose: Signal<void>;
107
+ /** Fires when a context menu is opened via showContextMenu. */
108
+ onContextMenuOpen: Signal<void>;
109
+ }
110
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAQzD,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;AAmBrF,eAAO,MAAM,qBAAqB;aAEhC,IAAI,EAAE,MAAM;aACZ,GAAG,EAAE,KAAK;aACV,MAAM,EAAE,QAAQ;aAChB,KAAK,EAAE,OAAO;aACd,kBAAkB,EAAE,oBAAoB;aACxC,IAAI,EAAE,MAAM;aACZ,SAAS,EAAE,WAAW;aACtB,kBAAkB,EAAE,oBAAoB;aACxC,IAAI,EAAE,MAAM;aAEZ,KAAK,EAAE,OAAO;aACd,KAAK,EAAE,OAAO;aACd,KAAK,EAAE,OAAO;aACd,IAAI,EAAE,MAAM;aACZ,UAAU,EAAE,YAAY;aACxB,eAAe,EAAE,iBAAiB;aAClC,QAAQ,EAAE,UAAU;aACpB,kBAAkB,EAAE,oBAAoB;aACxC,IAAI,EAAE,MAAM;aACZ,aAAa,EAAE,eAAe;aAC9B,iBAAiB,EAAE,mBAAmB;aACtC,YAAY,EAAE,cAAc;aAC5B,MAAM,EAAE,QAAQ;aAChB,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a,GAAG,SAAS,CAAC;IACvD,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;CAClC;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,QAAQ,CAAC,CAAC,gBAAgB,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IACvD,qFAAqF;IACrF,kBAAkB,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IACjC,+DAA+D;IAC/D,iBAAiB,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;CACjC"}
package/dist/types.js ADDED
@@ -0,0 +1,69 @@
1
+ // The documented set of well-known MenuItemRole string values. MenuItemRole is an open contract, so
2
+ // custom roles are allowed; vendor-prefix them to avoid collisions with future built-in roles (for
3
+ // example, 'acme.myRole'). Backends ignore roles they do not recognize.
4
+ //
5
+ // Platform support matrix:
6
+ // macOS-only: hide, hideOthers, unhide, front, services, startSpeaking, stopSpeaking,
7
+ // toggleTabBar, selectNextTab, selectPreviousTab, mergeAllWindows,
8
+ // moveTabToNewWindow, recentDocuments, clearRecentDocuments, shareMenu,
9
+ // toggleSpellChecker
10
+ // Windows/Linux: quit, minimize, close
11
+ // Electron desktop: zoom, zoomIn, zoomOut, resetZoom, reload, forceReload, toggleDevTools,
12
+ // toggleFullscreen
13
+ // All platforms: undo, redo, cut, copy, paste, delete, selectAll, about, help,
14
+ // pasteAndMatchStyle
15
+ //
16
+ // Whole-submenu roles (set on a submenu container to let native hosts substitute a platform menu):
17
+ // appMenu, fileMenu, editMenu, viewMenu, windowMenu, helpMenu, recentDocuments, shareMenu
18
+ export const WellKnownMenuItemRole = {
19
+ // --- Edit ---
20
+ copy: 'copy',
21
+ cut: 'cut',
22
+ delete: 'delete',
23
+ paste: 'paste',
24
+ pasteAndMatchStyle: 'pasteAndMatchStyle',
25
+ redo: 'redo',
26
+ selectAll: 'selectAll',
27
+ toggleSpellChecker: 'toggleSpellChecker',
28
+ undo: 'undo',
29
+ // --- App / Window ---
30
+ about: 'about',
31
+ close: 'close',
32
+ front: 'front',
33
+ hide: 'hide',
34
+ hideOthers: 'hideOthers',
35
+ mergeAllWindows: 'mergeAllWindows',
36
+ minimize: 'minimize',
37
+ moveTabToNewWindow: 'moveTabToNewWindow',
38
+ quit: 'quit',
39
+ selectNextTab: 'selectNextTab',
40
+ selectPreviousTab: 'selectPreviousTab',
41
+ toggleTabBar: 'toggleTabBar',
42
+ unhide: 'unhide',
43
+ zoom: 'zoom',
44
+ // --- View ---
45
+ forceReload: 'forceReload',
46
+ reload: 'reload',
47
+ resetZoom: 'resetZoom',
48
+ toggleDevTools: 'toggleDevTools',
49
+ toggleFullscreen: 'toggleFullscreen',
50
+ zoomIn: 'zoomIn',
51
+ zoomOut: 'zoomOut',
52
+ // --- Help / Services (macOS) ---
53
+ help: 'help',
54
+ services: 'services',
55
+ startSpeaking: 'startSpeaking',
56
+ stopSpeaking: 'stopSpeaking',
57
+ // --- Recent documents (macOS) ---
58
+ clearRecentDocuments: 'clearRecentDocuments',
59
+ recentDocuments: 'recentDocuments',
60
+ // --- Whole-submenu roles (native backends substitute a platform-standard menu) ---
61
+ appMenu: 'appMenu',
62
+ editMenu: 'editMenu',
63
+ fileMenu: 'fileMenu',
64
+ helpMenu: 'helpMenu',
65
+ shareMenu: 'shareMenu',
66
+ viewMenu: 'viewMenu',
67
+ windowMenu: 'windowMenu',
68
+ };
69
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAYA,oGAAoG;AACpG,mGAAmG;AACnG,wEAAwE;AACxE,EAAE;AACF,2BAA2B;AAC3B,8FAA8F;AAC9F,uFAAuF;AACvF,4FAA4F;AAC5F,yCAAyC;AACzC,4CAA4C;AAC5C,6FAA6F;AAC7F,uCAAuC;AACvC,oFAAoF;AACpF,yCAAyC;AACzC,EAAE;AACF,mGAAmG;AACnG,4FAA4F;AAC5F,MAAM,CAAC,MAAM,q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2
2
  "name": "@flighthq/menu",
3
- "version": "0.5.1-next.973.788d3d7",
3
+ "version": "0.7.0-next.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-menu --package menu",
36
+ "generate:check": "tsx ../../scripts/generate-rust-package.ts --crate flight-menu --package menu --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.973.788d3d7",
42
- "@flighthq/signals": "0.5.1-next.973.788d3d7",
43
- "@flighthq/types": "0.5.1-next.973.788d3d7"
43
+ "@flighthq/entity": "0.7.0-next.5213.ead804b",
44
+ "@flighthq/signals": "0.7.0-next.5213.ead804b"
44
45
  },
45
46
  "devDependencies": {
46
- "typescript": "^5.3.0"
47
+ "typescript": "^7.0.2"
47
48
  },
48
49
  "description": "Native application and context menus over a swappable web/native backend",
49
50
  "sideEffects": false
@@ -1,5 +1,3 @@
1
- import type { MenuItemTemplate } from '@flighthq/types/contract';
2
-
3
1
  import {
4
2
  createDefaultAppMenuTemplate,
5
3
  createDefaultEditMenuTemplate,
@@ -7,7 +5,8 @@ import {
7
5
  createDefaultHelpMenuTemplate,
8
6
  createDefaultViewMenuTemplate,
9
7
  createDefaultWindowMenuTemplate,
10
- } from './menu-templates';
8
+ } from './menu-templates.ts';
9
+ import type { MenuItemTemplate } from './types.ts';
11
10
 
12
11
  function collectIds(items: readonly MenuItemTemplate[]): string[] {
13
12
  const ids: string[] = [];
package/src/menu.test.ts CHANGED
@@ -1,18 +1,6 @@
1
- import { allocateEntity, finishEntity } from '@flighthq/entity/contract';
2
- import { connectSignal } from '@flighthq/signals/contract';
3
- import type {
4
- EntityWithoutRuntime,
5
- HasMenuApplication,
6
- HasMenuHighlight,
7
- HasMenuPopup,
8
- HasMenuSelect,
9
- MenuApplicationBackend,
10
- MenuHighlightBackend,
11
- MenuItemTemplate,
12
- MenuPopupBackend,
13
- MenuSelectBackend,
14
- } from '@flighthq/types/contract';
15
- import { EntityRuntimeKey } from '@flighthq/types/contract';
1
+ import { allocateEntity } from '@flighthq/entity/contract';
2
+ import { connectSignal, disconnectSignal } from '@flighthq/signals/contract';
3
+ import type { Signal, SlotId } from '@flighthq/signals/contract';
16
4
 
17
5
  import {
18
6
  attachMenuHighlight,
@@ -21,7 +9,7 @@ import {
21
9
  createMenuHighlight,
22
10
  createMenuItemTemplate,
23
11
  createMenuSelect,
24
- destroyMenuApplication,
12
+ destroyAppMenu,
25
13
  detachMenuHighlight,
26
14
  detachMenuSelect,
27
15
  disposeMenuHighlight,
@@ -30,45 +18,61 @@ import {
30
18
  getMenuSignals,
31
19
  initializeMenuHighlight,
32
20
  initializeMenuSelect,
33
- setApplicationMenu,
21
+ setAppMenu,
34
22
  showContextMenu,
35
23
  validateMenuItemTemplate,
36
- } from './menu';
24
+ } from './menu.ts';
25
+ import type {
26
+ HostAppMenuCapability,
27
+ HostMenuHighlightCapability,
28
+ HostMenuPopupCapability,
29
+ HostMenuSelectCapability,
30
+ MenuItemTemplate,
31
+ } from './types.ts';
37
32
 
38
33
  // A host exposing exactly the slots a test needs. Nothing is installed anywhere: two of these can be
39
34
  // live at once, which is the property the ambient model could not express.
40
- function popupHost(result: string | null, calls: string[] = []): HasMenuPopup & { calls: string[] } {
35
+ function popupHost(
36
+ result: string | null,
37
+ calls: string[] = [],
38
+ ): { readonly menu: { readonly popup: HostMenuPopupCapability } } & { calls: string[] } {
41
39
  return {
42
40
  calls,
43
41
  menu: {
44
42
  popup: (() => {
45
- const out = allocateEntity<any>();
43
+ const out = allocateEntity<any>() as any;
46
44
  out.popup = (_items: readonly MenuItemTemplate[], x: number, y: number): Promise<string | null> => {
47
45
  calls.push(`popup@${x},${y}`);
48
46
  return Promise.resolve(result);
49
47
  };
50
- return finishEntity(out);
48
+ return out;
51
49
  })(),
52
50
  },
53
51
  };
54
52
  }
55
53
 
56
- function applicationHost(accepted: boolean, seen: MenuItemTemplate[][] = []): HasMenuApplication {
54
+ function applicationHost(
55
+ accepted: boolean,
56
+ seen: MenuItemTemplate[][] = [],
57
+ ): { readonly menu: { readonly app: HostAppMenuCapability } } {
57
58
  return {
58
59
  menu: {
59
- application: (() => {
60
- const out = allocateEntity<any>();
61
- out.setApplicationMenu = (items: readonly MenuItemTemplate[]): boolean => {
60
+ app: (() => {
61
+ const out = allocateEntity<any>() as any;
62
+ out.setAppMenu = (items: readonly MenuItemTemplate[]): boolean => {
62
63
  seen.push([...items]);
63
64
  return accepted;
64
65
  };
65
- return finishEntity(out);
66
+ return out;
66
67
  })(),
67
68
  },
68
69
  };
69
70
  }
70
71
 
71
- function selectHost(): HasMenuSelect & { emit(id: string): void; subscriberCount(): number } {
72
+ function selectHost(): { readonly menu: { readonly select: HostMenuSelectCapability } } & {
73
+ emit(id: string): void;
74
+ subscriberCount(): number;
75
+ } {
72
76
  const listeners = new Set<(id: string) => void>();
73
77
  return {
74
78
  emit(id: string): void {
@@ -76,14 +80,14 @@ function selectHost(): HasMenuSelect & { emit(id: string): void; subscriberCount
76
80
  },
77
81
  menu: {
78
82
  select: (() => {
79
- const out = allocateEntity<any>();
83
+ const out = allocateEntity<any>() as any;
80
84
  out.subscribe = (listener: (id: string) => void): (() => void) => {
81
85
  listeners.add(listener);
82
86
  return () => {
83
87
  listeners.delete(listener);
84
88
  };
85
89
  };
86
- return finishEntity(out);
90
+ return out;
87
91
  })(),
88
92
  },
89
93
  subscriberCount(): number {
@@ -92,7 +96,9 @@ function selectHost(): HasMenuSelect & { emit(id: string): void; subscriberCount
92
96
  };
93
97
  }
94
98
 
95
- function highlightHost(): HasMenuHighlight & { emit(id: string): void } {
99
+ function highlightHost(): { readonly menu: { readonly highlight: HostMenuHighlightCapability } } & {
100
+ emit(id: string): void;
101
+ } {
96
102
  const listeners = new Set<(id: string) => void>();
97
103
  return {
98
104
  emit(id: string): void {
@@ -100,14 +106,14 @@ function highlightHost(): HasMenuHighlight & { emit(id: string): void } {
100
106
  },
101
107
  menu: {
102
108
  highlight: (() => {
103
- const out = allocateEntity<any>();
109
+ const out = allocateEntity<any>() as any;
104
110
  out.subscribe = (listener: (id: string) => void): (() => void) => {
105
111
  listeners.add(listener);
106
112
  return () => {
107
113
  listeners.delete(listener);
108
114
  };
109
115
  };
110
- return finishEntity(out);
116
+ return out;
111
117
  })(),
112
118
  },
113
119
  };
@@ -119,7 +125,7 @@ describe('attachMenuHighlight', () => {
119
125
  const highlight = createMenuHighlight();
120
126
  const seen: string[] = [];
121
127
  connectSignal(highlight.onMenuItemHighlight, (id) => seen.push(id));
122
- attachMenuHighlight(host, highlight);
128
+ attachMenuHighlight(host.menu.highlight, highlight);
123
129
  host.emit('open');
124
130
  expect(seen).toEqual(['open']);
125
131
  });
@@ -132,8 +138,21 @@ describe('attachMenuSelect', () => {
132
138
  const select = createMenuSelect();
133
139
  const seen: string[] = [];
134
140
  connectSignal(select.onMenuItemSelect, (id) => seen.push(id));
135
- attachMenuSelect(host, select);
141
+ attachMenuSelect(host.menu.select, select);
142
+ host.emit('save');
143
+ expect(seen).toEqual(['save']);
144
+ });
145
+
146
+ it('types the selection by its item id and stops a slot disconnected by its SlotId', () => {
147
+ const host = selectHost();
148
+ const select = createMenuSelect();
149
+ expectTypeOf(select.onMenuItemSelect).toEqualTypeOf<Signal<string>>();
150
+ const seen: string[] = [];
151
+ const id: SlotId = connectSignal(select.onMenuItemSelect, (item: string) => seen.push(item));
152
+ attachMenuSelect(host.menu.select, select);
136
153
  host.emit('save');
154
+ disconnectSignal(select.onMenuItemSelect, id);
155
+ host.emit('open');
137
156
  expect(seen).toEqual(['save']);
138
157
  });
139
158
 
@@ -143,8 +162,8 @@ describe('attachMenuSelect', () => {
143
162
  const select = createMenuSelect();
144
163
  const seen: string[] = [];
145
164
  connectSignal(select.onMenuItemSelect, (id) => seen.push(id));
146
- attachMenuSelect(host, select);
147
- attachMenuSelect(host, select);
165
+ attachMenuSelect(host.menu.select, select);
166
+ attachMenuSelect(host.menu.select, select);
148
167
  expect(host.subscriberCount()).toBe(1);
149
168
  host.emit('save');
150
169
  expect(seen).toEqual(['save']);
@@ -200,25 +219,26 @@ describe('createMenuSelect', () => {
200
219
  });
201
220
  });
202
221
 
203
- describe('destroyMenuApplication', () => {
204
- function applicationHostWith(provider: EntityWithoutRuntime<MenuApplicationBackend>): HasMenuApplication {
205
- (provider as Record<symbol, unknown>)[EntityRuntimeKey] = undefined;
206
- return { menu: { application: provider as MenuApplicationBackend } };
222
+ describe('destroyAppMenu', () => {
223
+ function applicationHostWith(provider: HostAppMenuCapability): {
224
+ readonly menu: { readonly app: HostAppMenuCapability };
225
+ } {
226
+ return { menu: { app: provider } };
207
227
  }
208
228
 
209
229
  it('destroys each distinct provider exactly once, even when hosts alias one', () => {
210
230
  let destroyed = 0;
211
- const shared = { destroy: () => destroyed++, setApplicationMenu: () => true };
231
+ const shared = { destroy: () => destroyed++, setAppMenu: () => true };
212
232
  // ★ ALIAS SAFETY: two hosts, ONE provider object. Destroying it twice would clear a successor's menu.
213
- destroyMenuApplication(applicationHostWith(shared), applicationHostWith(shared));
233
+ destroyAppMenu(applicationHostWith(shared).menu.app, applicationHostWith(shared).menu.app);
214
234
  expect(destroyed).toBe(1);
215
235
  });
216
236
 
217
237
  it('never destroys an already-released provider a second time', () => {
218
238
  let destroyed = 0;
219
- const provider = { destroy: () => destroyed++, setApplicationMenu: () => true };
220
- destroyMenuApplication(applicationHostWith(provider));
221
- destroyMenuApplication(applicationHostWith(provider));
239
+ const provider = { destroy: () => destroyed++, setAppMenu: () => true };
240
+ destroyAppMenu(applicationHostWith(provider).menu.app);
241
+ destroyAppMenu(applicationHostWith(provider).menu.app);
222
242
  expect(destroyed).toBe(1);
223
243
  });
224
244
 
@@ -229,10 +249,10 @@ describe('destroyMenuApplication', () => {
229
249
  destroy: () => {
230
250
  throw new Error('first failed');
231
251
  },
232
- setApplicationMenu: () => true,
252
+ setAppMenu: () => true,
233
253
  };
234
- const healthy = { destroy: () => (secondDestroyed = true), setApplicationMenu: () => true };
235
- expect(() => destroyMenuApplication(applicationHostWith(failing), applicationHostWith(healthy))).toThrow(
254
+ const healthy = { destroy: () => (secondDestroyed = true), setAppMenu: () => true };
255
+ expect(() => destroyAppMenu(applicationHostWith(failing).menu.app, applicationHostWith(healthy).menu.app)).toThrow(
236
256
  'first failed',
237
257
  );
238
258
  expect(secondDestroyed).toBe(true);
@@ -247,17 +267,19 @@ describe('destroyMenuApplication', () => {
247
267
  attempts++;
248
268
  if (attempts === 1) throw new Error('transient');
249
269
  },
250
- setApplicationMenu: () => true,
270
+ setAppMenu: () => true,
251
271
  };
252
- const healthy = { destroy: () => healthyDestroyed++, setApplicationMenu: () => true };
253
- expect(() => destroyMenuApplication(applicationHostWith(flaky), applicationHostWith(healthy))).toThrow();
254
- expect(() => destroyMenuApplication(applicationHostWith(flaky), applicationHostWith(healthy))).not.toThrow();
272
+ const healthy = { destroy: () => healthyDestroyed++, setAppMenu: () => true };
273
+ expect(() => destroyAppMenu(applicationHostWith(flaky).menu.app, applicationHostWith(healthy).menu.app)).toThrow();
274
+ expect(() =>
275
+ destroyAppMenu(applicationHostWith(flaky).menu.app, applicationHostWith(healthy).menu.app),
276
+ ).not.toThrow();
255
277
  expect(attempts).toBe(2);
256
278
  expect(healthyDestroyed).toBe(1);
257
279
  });
258
280
 
259
281
  it('tolerates a provider that declares no destroy', () => {
260
- expect(() => destroyMenuApplication(applicationHostWith({ setApplicationMenu: () => true }))).not.toThrow();
282
+ expect(() => destroyAppMenu(applicationHostWith({ setAppMenu: () => true }).menu.app)).not.toThrow();
261
283
  });
262
284
  });
263
285
 
@@ -274,7 +296,7 @@ describe('detachMenuSelect', () => {
274
296
  const select = createMenuSelect();
275
297
  const seen: string[] = [];
276
298
  connectSignal(select.onMenuItemSelect, (id) => seen.push(id));
277
- attachMenuSelect(host, select);
299
+ attachMenuSelect(host.menu.select, select);
278
300
  host.emit('first');
279
301
  detachMenuSelect(select);
280
302
  host.emit('second');
@@ -289,8 +311,8 @@ describe('detachMenuSelect', () => {
289
311
  const dropped = createMenuSelect();
290
312
  const keptSeen: string[] = [];
291
313
  connectSignal(kept.onMenuItemSelect, (id) => keptSeen.push(id));
292
- attachMenuSelect(host, kept);
293
- attachMenuSelect(host, dropped);
314
+ attachMenuSelect(host.menu.select, kept);
315
+ attachMenuSelect(host.menu.select, dropped);
294
316
  detachMenuSelect(dropped);
295
317
  host.emit('still-here');
296
318
  expect(keptSeen).toEqual(['still-here']);
@@ -305,7 +327,7 @@ describe('disposeMenuHighlight', () => {
305
327
  const highlight = createMenuHighlight();
306
328
  const seen: string[] = [];
307
329
  connectSignal(highlight.onMenuItemHighlight, (id) => seen.push(id));
308
- attachMenuHighlight(host, highlight);
330
+ attachMenuHighlight(host.menu.highlight, highlight);
309
331
  disposeMenuHighlight(highlight);
310
332
  host.emit('after-dispose');
311
333
  expect(seen).toEqual([]);
@@ -320,7 +342,7 @@ describe('disposeMenuSelect', () => {
320
342
  const select = createMenuSelect();
321
343
  const seen: string[] = [];
322
344
  connectSignal(select.onMenuItemSelect, (id) => seen.push(id));
323
- attachMenuSelect(host, select);
345
+ attachMenuSelect(host.menu.select, select);
324
346
  disposeMenuSelect(select);
325
347
  host.emit('after-dispose');
326
348
  expect(seen).toEqual([]);
@@ -353,19 +375,19 @@ describe('initializeMenuSelect', () => {
353
375
  });
354
376
  });
355
377
 
356
- describe('setApplicationMenu', () => {
378
+ describe('setAppMenu', () => {
357
379
  // ★ FALSIFIER 2 — assert the RETURN VALUE and the DELIVERED ITEMS, never mere operation presence.
358
380
  // A structural "does it have setApplicationMenu" probe passed on the old web stub, which answered
359
381
  // false unconditionally; only the delivered items distinguish a real install.
360
382
  it('reports the provider result and delivers the items', () => {
361
383
  const seen: MenuItemTemplate[][] = [];
362
384
  const items = [{ id: 'quit', label: 'Quit' }];
363
- expect(setApplicationMenu(applicationHost(true, seen), items)).toBe(true);
385
+ expect(setAppMenu(applicationHost(true, seen).menu.app, items)).toBe(true);
364
386
  expect(seen).toEqual([items]);
365
387
  });
366
388
 
367
389
  it('reports a refused install as false', () => {
368
- expect(setApplicationMenu(applicationHost(false), [{ id: 'quit', label: 'Quit' }])).toBe(false);
390
+ expect(setAppMenu(applicationHost(false).menu.app, [{ id: 'quit', label: 'Quit' }])).toBe(false);
369
391
  });
370
392
  });
371
393
  describe('showContextMenu', () => {
@@ -374,8 +396,8 @@ describe('showContextMenu', () => {
374
396
  it('routes each call to the host it was given', async () => {
375
397
  const first = popupHost('from-first');
376
398
  const second = popupHost('from-second');
377
- await expect(showContextMenu(first, [], 1, 2)).resolves.toBe('from-first');
378
- await expect(showContextMenu(second, [], 3, 4)).resolves.toBe('from-second');
399
+ await expect(showContextMenu(first.menu.popup, [], 1, 2)).resolves.toBe('from-first');
400
+ await expect(showContextMenu(second.menu.popup, [], 3, 4)).resolves.toBe('from-second');
379
401
  expect(first.calls).toEqual(['popup@1,2']);
380
402
  expect(second.calls).toEqual(['popup@3,4']);
381
403
  });
@@ -385,7 +407,7 @@ describe('showContextMenu', () => {
385
407
  const order: string[] = [];
386
408
  connectSignal(signals.onContextMenuOpen, () => order.push('open'));
387
409
  connectSignal(signals.onContextMenuClose, () => order.push('close'));
388
- await showContextMenu(popupHost('x'), [], 0, 0);
410
+ await showContextMenu(popupHost('x').menu.popup, [], 0, 0);
389
411
  expect(order).toEqual(['open', 'close']);
390
412
  });
391
413
  });
@@ -0,0 +1,43 @@
1
+ import type { EntityRuntimeKey } from '@flighthq/entity/contract';
2
+ import type { EntityRuntime } from '@flighthq/entity/contract';
3
+
4
+ import type {
5
+ ElectronMenuCapabilities,
6
+ HostAppMenuCapability,
7
+ HostMenuCapabilities,
8
+ HostMenuHighlightCapability,
9
+ HostMenuPopupCapability,
10
+ HostMenuSelectCapability,
11
+ MenuHighlight,
12
+ MenuSelect,
13
+ MenuSignals,
14
+ TauriMenuCapabilities,
15
+ } from './types.ts';
16
+
17
+ type EntityCompatibility = { readonly [EntityRuntimeKey]: EntityRuntime | undefined };
18
+
19
+ type MenuCapabilitiesAreStructural = [
20
+ HostAppMenuCapability extends EntityCompatibility ? true : false,
21
+ HostMenuHighlightCapability extends EntityCompatibility ? true : false,
22
+ HostMenuPopupCapability extends EntityCompatibility ? true : false,
23
+ HostMenuSelectCapability extends EntityCompatibility ? true : false,
24
+ ];
25
+
26
+ type ConcreteMenuBundlesAreStructural = [
27
+ ElectronMenuCapabilities extends EntityCompatibility ? true : false,
28
+ TauriMenuCapabilities extends EntityCompatibility ? true : false,
29
+ ];
30
+
31
+ describe('menu Entity boundaries', () => {
32
+ it('keeps provider capabilities and platform bundles structural', () => {
33
+ expectTypeOf<MenuCapabilitiesAreStructural>().toEqualTypeOf<[false, false, false, false]>();
34
+ expectTypeOf<ConcreteMenuBundlesAreStructural>().toEqualTypeOf<[false, false]>();
35
+ expectTypeOf<HostMenuCapabilities extends EntityCompatibility ? true : false>().toEqualTypeOf<false>();
36
+ });
37
+
38
+ it('keeps signal-bearing menu records as entities', () => {
39
+ expectTypeOf<MenuHighlight>().toMatchTypeOf<EntityCompatibility>();
40
+ expectTypeOf<MenuSelect>().toMatchTypeOf<EntityCompatibility>();
41
+ expectTypeOf<MenuSignals>().toMatchTypeOf<EntityCompatibility>();
42
+ });
43
+ });