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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/notification`. The `
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/notification@0.5.1-next.920.da8f530](https://github.com/flighthq/flight/tree/da8f530894916f9baa6a9f6822b4f393b9e70a85/packages/notification)
17
- - [License](https://github.com/flighthq/flight/blob/da8f530894916f9baa6a9f6822b4f393b9e70a85/LICENSE.md)
16
+ - [Source for @flighthq/notification@0.7.0-edge.5213.ead804b](https://github.com/flighthq/flight/tree/ead804bfaef3e691a2e6e43e9711ddd3fd8a84a2/packages/notification)
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.notification-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":"8a56eea67330de064179ac4b3d031482","signature":"a8fd2ffbfd4fbdb6f265b2007356e45d","impliedNodeFormat":1},{"version":"16cf8e792ee488ec3f671af302a41f18","signature":"fff4f02efa141a35d4550ba5a889cb92","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.notification-types.d.ts"}
@@ -0,0 +1 @@
1
+ {"version":"7.0.2","root":[[86,89]],"packageJsons":["../../../node_modules/@standard-schema/spec/package.json","../../../node_modules/@testing-library/jest-dom/package.json","../../../node_modules/@types/aria-query/package.json","../../../node_modules/@types/chai/package.json","../../../node_modules/@types/deep-eql/package.json","../../../node_modules/@types/node/package.json","../../../node_modules/@vitest/coverage-v8/package.json","../../../node_modules/@vitest/expect/package.json","../../../node_modules/@vitest/mocker/package.json","../../../node_modules/@vitest/pretty-format/package.json","../../../node_modules/@vitest/runner/package.json","../../../node_modules/@vitest/snapshot/package.json","../../../node_modules/@vitest/spy/package.json","../../../node_modules/@vitest/utils/package.json","../../../node_modules/@webgpu/types/package.json","../../../node_modules/aria-query/package.json","../../../node_modules/assertion-error/package.json","../../../node_modules/chai/package.json","../../../node_modules/deep-eql/package.json","../../../node_modules/expect-type/package.json","../../../node_modules/jiti/package.json","../../../node_modules/jsdom/package.json","../../../node_modules/terser/package.json","../../../node_modules/tinybench/package.json","../../../node_modules/tinyrainbow/package.json","../../../node_modules/tsx/package.json","../../../node_modules/vite/package.json","../../../node_modules/vite/types/package.json","../../../node_modules/vitest/package.json","../../../node_modules/yaml/package.json","../../entity/package.json","../package.json","../../signals/package.json"],"missingPackageJsons":["../../../node_modules/@edge-runtime/vm/package.json","../../../node_modules/@opentelemetry/api/package.json","../../../node_modules/@standard-schema/spec/dist/package.json","../../../node_modules/@testing-library/jest-dom/node_modules/aria-query/package.json","../../../node_modules/@testing-library/jest-dom/node_modules/jest/package.json","../../../node_modules/@testing-library/jest-dom/types/package.json","../../../node_modules/@types/jest/package.json","../../../node_modules/@types/testing-library__jest-dom/package.json","../../../node_modules/@types/vitest/globals/package.json","../../../node_modules/@types/webgpu__types/package.json","../../../node_modules/@vitest/browser-playwright/package.json","../../../node_modules/@vitest/browser-preview/package.json","../../../node_modules/@vitest/browser-webdriverio/package.json","../../../node_modules/@vitest/coverage-istanbul/package.json","../../../node_modules/@vitest/expect/dist/package.json","../../../node_modules/@vitest/mocker/dist/package.json","../../../node_modules/@vitest/pretty-format/dist/package.json","../../../node_modules/@vitest/runner/dist/package.json","../../../node_modules/@vitest/runner/utils/package.json","../../../node_modules/@vitest/snapshot/dist/package.json","../../../node_modules/@vitest/spy/dist/package.json","../../../node_modules/@vitest/ui/package.json","../../../node_modules/@vitest/utils/diff/package.json","../../../node_modules/@vitest/utils/display/package.json","../../../node_modules/@vitest/utils/dist/package.json","../../../node_modules/@webgpu/types/dist/package.json","../../../node_modules/expect-type/dist/package.json","../../../node_modules/happy-dom/package.json","../../../node_modules/jest/package.json","../../../node_modules/less/package.json","../../../node_modules/lightningcss/package.json","../../../node_modules/msw/package.json","../../../node_modules/sass-embedded/package.json","../../../node_modules/sass/package.json","../../../node_modules/stylus/package.json","../../../node_modules/sugarss/package.json","../../../node_modules/tinybench/dist/package.json","../../../node_modules/tinyrainbow/dist/package.json","../../../node_modules/vite/dist/node/chunks/package.json","../../../node_modules/vite/dist/node/package.json","../../../node_modules/vite/dist/package.json","../../../node_modules/vite/module-runner/package.json","../../../node_modules/vitest/dist/chunks/package.json","../../../node_modules/vitest/dist/package.json","../../../node_modules/vitest/globals/package.json"],"fileNames":["lib.es5.d.ts","lib.es2015.d.ts","lib.es2016.d.ts","lib.es2017.d.ts","lib.es2018.d.ts","lib.es2019.d.ts","lib.es2020.d.ts","lib.es2021.d.ts","lib.es2022.d.ts","lib.dom.d.ts","lib.dom.iterable.d.ts","lib.dom.asynciterable.d.ts","lib.webworker.importscripts.d.ts","lib.scripthost.d.ts","lib.es2015.core.d.ts","lib.es2015.collection.d.ts","lib.es2015.generator.d.ts","lib.es2015.iterable.d.ts","lib.es2015.promise.d.ts","lib.es2015.proxy.d.ts","lib.es2015.reflect.d.ts","lib.es2015.symbol.d.ts","lib.es2015.symbol.wellknown.d.ts","lib.es2016.array.include.d.ts","lib.es2016.intl.d.ts","lib.es2017.arraybuffer.d.ts","lib.es2017.date.d.ts","lib.es2017.object.d.ts","lib.es2017.sharedmemory.d.ts","lib.es2017.string.d.ts","lib.es2017.intl.d.ts","lib.es2017.typedarrays.d.ts","lib.es2018.asyncgenerator.d.ts","lib.es2018.asynciterable.d.ts","lib.es2018.intl.d.ts","lib.es2018.promise.d.ts","lib.es2018.regexp.d.ts","lib.es2019.array.d.ts","lib.es2019.object.d.ts","lib.es2019.string.d.ts","lib.es2019.symbol.d.ts","lib.es2019.intl.d.ts","lib.es2020.bigint.d.ts","lib.es2020.date.d.ts","lib.es2020.promise.d.ts","lib.es2020.sharedmemory.d.ts","lib.es2020.string.d.ts","lib.es2020.symbol.wellknown.d.ts","lib.es2020.intl.d.ts","lib.es2020.number.d.ts","lib.es2021.promise.d.ts","lib.es2021.string.d.ts","lib.es2021.weakref.d.ts","lib.es2021.intl.d.ts","lib.es2022.array.d.ts","lib.es2022.error.d.ts","lib.es2022.intl.d.ts","lib.es2022.object.d.ts","lib.es2022.string.d.ts","lib.es2022.regexp.d.ts","lib.decorators.d.ts","lib.decorators.legacy.d.ts","lib.es2022.full.d.ts","../../entity/dist/types.d.ts","../../entity/dist/binding.d.ts","../../entity/dist/clone.d.ts","../../entity/dist/enableEntityRuntimeGuards.d.ts","../../entity/dist/entity.d.ts","../../entity/dist/entityUid.d.ts","../../entity/dist/explainEntityRuntimeWrite.d.ts","../../entity/dist/guards.d.ts","../../entity/dist/runtime.d.ts","../../entity/dist/contract.d.ts","../../signals/dist/types.d.ts","../../signals/dist/connection.d.ts","../../signals/dist/emitter.d.ts","../../signals/dist/internal.d.ts","../../signals/dist/safe.d.ts","../../signals/dist/scope.d.ts","../../signals/dist/signal.d.ts","../../signals/dist/slot.d.ts","../../signals/dist/throttle.d.ts","../../signals/dist/signalTypes.d.ts","../../signals/dist/contract.d.ts","./types.d.ts","../src/notification.ts","../src/contract.ts","../src/index.ts","../src/notification.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","e473212fdae31481e93d3e5cb51e8614",{"version":"069e935844ee401bb6f64a410e1e9b49","signature":"ceab3c94ed7deeee2f3c4b2347e9f971","impliedNodeFormat":1},"0f5dadbfc23960bc2b9bcd94f2304979",{"version":"5b8288bb3ef3bb577afa31800e0cd2a2","signature":"74bb3d82ca80fa9ea8ebbf04e4915f94","impliedNodeFormat":1},{"version":"85adc180d5aaffd6a318f4a035dfd860","signature":"abe7d9981d6018efb6b2b794f40a1607","impliedNodeFormat":1},"56d080dfccb3c53a2d6c74c4f24252e3","75ebd62d9641cc8b34ba9b09be8283a9",{"version":"753f71e16f2994f332390bb1c997b0e3","affectsGlobalScope":true,"impliedNodeFormat":1},"8def0ea0e249f49397d74a4f5bdd45a5",{"version":"ed63d99e1e5c371dc120bef1b84057fc","impliedNodeFormat":99},{"version":"4d3fb552bfc7fb53c9195b2fafb512c0","impliedNodeFormat":99},{"version":"fbf7ba69043f86dc506ba28263e2e783","impliedNodeFormat":99},{"version":"a611eb6935df7737a77b34b01c631a4a","impliedNodeFormat":99},{"version":"6d08f6f1d0ee294c119d0e66f826331a","impliedNodeFormat":99},{"version":"d0abb8fa314728650d85450ff59db909","impliedNodeFormat":99},{"version":"abe007be89c2ad52c4d67fc2b0f6da6b","impliedNodeFormat":99},{"version":"ae1fe3925f3a2c8dfbb269ac2a50f5a6","impliedNodeFormat":99},{"version":"ee8ce731ff781ae7011350481a1af176","impliedNodeFormat":99},{"version":"08dcd98985ae16732a9be03d2b56aea6","impliedNodeFormat":99},{"version":"47f7401876f3c0a5b80bd01fbdfaed2b","impliedNodeFormat":99},"ab8e1ea59f16bc290a0451d09dc5a52e",{"version":"e9d43fb880595ac4ee66a56a364fd5fb","impliedNodeFormat":99},"24367c4ec7d778084b3a83bbdc5a23d4","edbf4843929ee5fe6521503f424e4464",{"version":"5e0eecd60ec8ccc15c22c507248ef1aa","impliedNodeFormat":99},{"version":"0221e2868d1f0d6df8321d945764aadb","impliedNodeFormat":99},{"version":"d2f6ad6f161f0a522886f64842c96a0e","impliedNodeFormat":99},{"version":"618ace1500cc84e42bc2e47c64f8c407","impliedNodeFormat":99},{"version":"9dd3c481cc870c4bf19e59d34f030a27","impliedNodeFormat":99},{"version":"b5c81396e966d59acab5a45f66b70866","impliedNodeFormat":99},{"version":"f94aa434ddb9e71f6e80395de85f6850","impliedNodeFormat":99},{"version":"3486e8f7f01b9874a793ddd451eb62a5","impliedNodeFormat":99},{"version":"cb0e7222aae349c2fb4f89b26efa81bd","impliedNodeFormat":99},{"version":"b9129d694ae6cf810850117dda49d045","impliedNodeFormat":99},{"version":"0d7bbad7f82c886c5f36730065aec119","impliedNodeFormat":99},{"version":"369460c2755240ac2d3d006f09adb5ca","impliedNodeFormat":99},{"version":"4509fca76e721cdf9edb2d028395a117","impliedNodeFormat":99},"548472bfd4ebe2f1c8f494b960a27836",{"version":"fa98b0905a86da0a95fa8fd3e974e038","impliedNodeFormat":99},{"version":"5ede871fecbb2b6f672a99d3c3c6bee7","affectsGlobalScope":true,"impliedNodeFormat":99},{"version":"2c51637edf65b89d39356deff680ed36","affectsGlobalScope":true,"impliedNodeFormat":99},{"version":"0bf0efdacfd4bfadb631a4376097e382","impliedNodeFormat":99},{"version":"bd01f3bcdc72c9256e5cd5093d132df3","impliedNodeFormat":99},{"version":"b01bdc9acbaf3eb24eef464959e8e627","impliedNodeFormat":99},{"version":"2a75a1a065e5d0439fa1514d9c89b0eb","impliedNodeFormat":99},{"version":"b9129d694ae6cf810850117dda49d045","impliedNodeFormat":99},{"version":"c01d22bc96b89eedc0ed1f11d8c270ab","impliedNodeFormat":99},{"version":"c15bc5b81c64386efb6f85fb596c4349","impliedNodeFormat":99},{"version":"5794a694c1f75a9cc38cb5e9c757224e","impliedNodeFormat":99},{"version":"4040d5640775a803b2ca1aa914f7a1d4","impliedNodeFormat":99},{"version":"5ed96746ee2e7eb084ad54f0e0e518bc","impliedNodeFormat":99},{"version":"eba7786b00a4e551c36bafa71bfb1876","impliedNodeFormat":99},"8d8a98bf45979ce5401d9ca4027940cd","7d98e95d38525423bbe0f05e0a508a41","96920299d013de56061cbc74a1d658b2","439adabdf29be1212ec7acc292679f21","3eb46d20ed056dcbfa5e75bad9014661",{"version":"b46aa1886055db890de9be52a97b301e","impliedNodeFormat":99},{"version":"23cbcf6109a45b21e5b22d5f36f59db4","affectsGlobalScope":true,"impliedNodeFormat":99},{"version":"851c83981c28a32944597c743f666820","affectsGlobalScope":true,"impliedNodeFormat":1}],"fileIdsList":[[92],[91],[90],[122,123],[95,101,119,120,121,124],[131],[131,132],[99,101,102],[99,101],[99],[94,99,110,111],[94,99,110],[118],[94,100],[94],[96],[94,95,96,97,98],[137,138],[137,138,139,140],[137,139],[137],[105],[105,106,107,108],[107],[103,126,127,129],[103,104,116,129],[94,101,103,104,112,129],[109],[94,103,104,112,125,128],[103,104,109,112,129],[103,126,127,128,129],[103,109,113,114,115,129],[94,99,101,103,104,109,112,113,114,115,116,117,119,125,126,127,128,129,130,133,134,135,136,141],[94,101,103,104,112,113,126,127,128,129,134],[142],[64],[64,65,66,67,68,69,70,71,72],[73,84],[85,86],[87],[73,84,85,86],[73,84,85],[74],[74,75,76,77,78,79,80,81,82,83],[73]],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":99,"noEmitOnError":true,"noImplicitOverride":true,"outDir":"./","rewriteRelativeImportExtensions":true,"rootDir":"../src","skipLibCheck":true,"strict":true,"sourceMap":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo.runtime","useDefineForClassFields":true},"referencedMap":[[93,1],[92,2],[91,3],[124,4],[125,5],[132,6],[133,7],[103,8],[102,9],[126,8],[110,10],[112,11],[111,12],[119,13],[101,14],[95,15],[97,16],[99,17],[100,15],[139,18],[141,19],[140,20],[138,21],[106,22],[109,23],[107,22],[108,24],[128,25],[117,26],[113,27],[114,10],[135,28],[129,29],[115,30],[134,31],[116,32],[142,33],[136,34],[143,35],[65,36],[66,36],[73,37],[67,36],[68,36],[69,36],[70,36],[71,36],[72,36],[85,38],[87,39],[88,40],[89,41],[86,42],[75,43],[84,44],[76,43],[78,43],[79,43],[80,43],[83,43],[81,43],[82,43],[74,45]],"latestChangedDtsFile":"./notification.test.d.ts"}
@@ -1,3 +1,4 @@
1
- export * from './notification';
2
- export { initializeNotificationResource, initializeScheduledNotificationResource } from './notification';
1
+ export * from './notification.ts';
2
+ export { initializeNotificationResource, initializeScheduledNotificationResource } from './notification.ts';
3
+ export type * from './types.ts';
3
4
  //# sourceMappingURL=contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,8BAA8B,EAAE,uCAAuC,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,8BAA8B,EAAE,uCAAuC,EAAE,MAAM,mBAAmB,CAAC;AAC5G,mBAAmB,YAAY,CAAC"}
package/dist/contract.js CHANGED
@@ -1,3 +1,3 @@
1
- export * from './notification';
2
- export { initializeNotificationResource, initializeScheduledNotificationResource } from './notification';
1
+ export * from './notification.js';
2
+ export { initializeNotificationResource, initializeScheduledNotificationResource } from './notification.js';
3
3
  //# sourceMappingURL=contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,8BAA8B,EAAE,uCAAuC,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,8BAA8B,EAAE,uCAAuC,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export type * from './types.ts';
2
+ //# sourceMappingURL=contract.notification-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.notification-types.d.ts","sourceRoot":"","sources":["../src/contract.notification-types.ts"],"names":[],"mappings":"AAEA,mBAAmB,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=contract.notification-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.notification-types.js","sourceRoot":"","sources":["../src/contract.notification-types.ts"],"names":[],"mappings":""}
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { attachNotificationActionSubscription, attachNotificationClickSubscription, attachNotificationDismissSubscription, attachNotificationReceivedSubscription, attachNotificationReplySubscription, cancelScheduledNotification, closeAllNotifications, closeNotification, createNotificationActionSubscription, createNotificationClickSubscription, createNotificationDismissSubscription, createNotificationReceivedSubscription, createNotificationReplySubscription, destroyNotificationCapabilities, detachNotificationActionSubscription, detachNotificationClickSubscription, detachNotificationDismissSubscription, detachNotificationReceivedSubscription, detachNotificationReplySubscription, disposeNotificationActionSubscription, disposeNotificationClickSubscription, disposeNotificationDismissSubscription, disposeNotificationReceivedSubscription, disposeNotificationReplySubscription, getActiveNotifications, getNotificationPermission, getPendingNotifications, requestNotificationPermission, scheduleNotification, showNotification, } from './contract';
1
+ export { attachNotificationActionSubscription, attachNotificationClickSubscription, attachNotificationDismissSubscription, attachNotificationReceivedSubscription, attachNotificationReplySubscription, cancelScheduledNotification, closeAllNotifications, closeNotification, createNotificationActionSubscription, createNotificationClickSubscription, createNotificationDismissSubscription, createNotificationReceivedSubscription, createNotificationReplySubscription, destroyNotificationCapabilities, detachNotificationActionSubscription, detachNotificationClickSubscription, detachNotificationDismissSubscription, detachNotificationReceivedSubscription, detachNotificationReplySubscription, disposeNotificationActionSubscription, disposeNotificationClickSubscription, disposeNotificationDismissSubscription, disposeNotificationReceivedSubscription, disposeNotificationReplySubscription, getActiveNotifications, getNotificationPermission, getPendingNotifications, requestNotificationPermission, scheduleNotification, showNotification, } from './contract.ts';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oCAAoC,EACpC,mCAAmC,EACnC,qCAAqC,EACrC,sCAAsC,EACtC,mCAAmC,EACnC,2BAA2B,EAC3B,qBAAqB,EACrB,iBAAiB,EACjB,oCAAoC,EACpC,mCAAmC,EACnC,qCAAqC,EACrC,sCAAsC,EACtC,mCAAmC,EACnC,+BAA+B,EAC/B,oCAAoC,EACpC,mCAAmC,EACnC,qCAAqC,EACrC,sCAAsC,EACtC,mCAAmC,EACnC,qCAAqC,EACrC,oCAAoC,EACpC,sCAAsC,EACtC,uCAAuC,EACvC,oCAAoC,EACpC,sBAAsB,EACtB,yBAAyB,EACzB,uBAAuB,EACvB,6BAA6B,EAC7B,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oCAAoC,EACpC,mCAAmC,EACnC,qCAAqC,EACrC,sCAAsC,EACtC,mCAAmC,EACnC,2BAA2B,EAC3B,qBAAqB,EACrB,iBAAiB,EACjB,oCAAoC,EACpC,mCAAmC,EACnC,qCAAqC,EACrC,sCAAsC,EACtC,mCAAmC,EACnC,+BAA+B,EAC/B,oCAAoC,EACpC,mCAAmC,EACnC,qCAAqC,EACrC,sCAAsC,EACtC,mCAAmC,EACnC,qCAAqC,EACrC,oCAAoC,EACpC,sCAAsC,EACtC,uCAAuC,EACvC,oCAAoC,EACpC,sBAAsB,EACtB,yBAAyB,EACzB,uBAAuB,EACvB,6BAA6B,EAC7B,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,eAAe,CAAC"}
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { attachNotificationActionSubscription, attachNotificationClickSubscription, attachNotificationDismissSubscription, attachNotificationReceivedSubscription, attachNotificationReplySubscription, cancelScheduledNotification, closeAllNotifications, closeNotification, createNotificationActionSubscription, createNotificationClickSubscription, createNotificationDismissSubscription, createNotificationReceivedSubscription, createNotificationReplySubscription, destroyNotificationCapabilities, detachNotificationActionSubscription, detachNotificationClickSubscription, detachNotificationDismissSubscription, detachNotificationReceivedSubscription, detachNotificationReplySubscription, disposeNotificationActionSubscription, disposeNotificationClickSubscription, disposeNotificationDismissSubscription, disposeNotificationReceivedSubscription, disposeNotificationReplySubscription, getActiveNotifications, getNotificationPermission, getPendingNotifications, requestNotificationPermission, scheduleNotification, showNotification, } from './contract';
1
+ export { attachNotificationActionSubscription, attachNotificationClickSubscription, attachNotificationDismissSubscription, attachNotificationReceivedSubscription, attachNotificationReplySubscription, cancelScheduledNotification, closeAllNotifications, closeNotification, createNotificationActionSubscription, createNotificationClickSubscription, createNotificationDismissSubscription, createNotificationReceivedSubscription, createNotificationReplySubscription, destroyNotificationCapabilities, detachNotificationActionSubscription, detachNotificationClickSubscription, detachNotificationDismissSubscription, detachNotificationReceivedSubscription, detachNotificationReplySubscription, disposeNotificationActionSubscription, disposeNotificationClickSubscription, disposeNotificationDismissSubscription, disposeNotificationReceivedSubscription, disposeNotificationReplySubscription, getActiveNotifications, getNotificationPermission, getPendingNotifications, requestNotificationPermission, scheduleNotification, showNotification, } from './contract.js';
2
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oCAAoC,EACpC,mCAAmC,EACnC,qCAAqC,EACrC,sCAAsC,EACtC,mCAAmC,EACnC,2BAA2B,EAC3B,qBAAqB,EACrB,iBAAiB,EACjB,oCAAoC,EACpC,mCAAmC,EACnC,qCAAqC,EACrC,sCAAsC,EACtC,mCAAmC,EACnC,+BAA+B,EAC/B,oCAAoC,EACpC,mCAAmC,EACnC,qCAAqC,EACrC,sCAAsC,EACtC,mCAAmC,EACnC,qCAAqC,EACrC,oCAAoC,EACpC,sCAAsC,EACtC,uCAAuC,EACvC,oCAAoC,EACpC,sBAAsB,EACtB,yBAAyB,EACzB,uBAAuB,EACvB,6BAA6B,EAC7B,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oCAAoC,EACpC,mCAAmC,EACnC,qCAAqC,EACrC,sCAAsC,EACtC,mCAAmC,EACnC,2BAA2B,EAC3B,qBAAqB,EACrB,iBAAiB,EACjB,oCAAoC,EACpC,mCAAmC,EACnC,qCAAqC,EACrC,sCAAsC,EACtC,mCAAmC,EACnC,+BAA+B,EAC/B,oCAAoC,EACpC,mCAAmC,EACnC,qCAAqC,EACrC,sCAAsC,EACtC,mCAAmC,EACnC,qCAAqC,EACrC,oCAAoC,EACpC,sCAAsC,EACtC,uCAAuC,EACvC,oCAAoC,EACpC,sBAAsB,EACtB,yBAAyB,EACzB,uBAAuB,EACvB,6BAA6B,EAC7B,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,eAAe,CAAC"}
@@ -1,13 +1,14 @@
1
- import type { HasNotificationAction, HasNotificationActiveList, HasNotificationClick, HasNotificationClose, HasNotificationDelivery, HasNotificationDismiss, HasNotificationLifecycle, HasNotificationPermission, HasNotificationReceived, HasNotificationReply, HasNotificationScheduling, Notification, NotificationActionSubscription, NotificationActiveListOutcome, NotificationCancelOutcome, NotificationClickSubscription, NotificationCloseOutcome, NotificationDeliveryOutcome, NotificationDismissSubscription, NotificationLifecycleOutcome, NotificationPendingListOutcome, NotificationPermissionQueryOutcome, NotificationPermissionRequestOutcome, NotificationReceivedSubscription, NotificationReplySubscription, NotificationRequest, NotificationSchedule, NotificationScheduleOutcome, NotificationSubscriptionAttachOutcome, NotificationSubscriptionDetachOutcome, NotificationSubscriptionDisposeOutcome, ScheduledNotification, EntityConstruction } from '@flighthq/types/contract';
2
- export declare function attachNotificationActionSubscription(host: HasNotificationAction, subscription: NotificationActionSubscription): Promise<NotificationSubscriptionAttachOutcome>;
3
- export declare function attachNotificationClickSubscription(host: HasNotificationClick, subscription: NotificationClickSubscription): Promise<NotificationSubscriptionAttachOutcome>;
4
- export declare function attachNotificationDismissSubscription(host: HasNotificationDismiss, subscription: NotificationDismissSubscription): Promise<NotificationSubscriptionAttachOutcome>;
5
- export declare function attachNotificationReceivedSubscription(host: HasNotificationReceived, subscription: NotificationReceivedSubscription): Promise<NotificationSubscriptionAttachOutcome>;
6
- export declare function attachNotificationReplySubscription(host: HasNotificationReply, subscription: NotificationReplySubscription): Promise<NotificationSubscriptionAttachOutcome>;
1
+ import type { EntityConstruction } from '@flighthq/entity/contract';
2
+ import type { HostNotificationActionCapability, HostNotificationActiveListCapability, HostNotificationClickCapability, HostNotificationCloseCapability, HostNotificationDeliveryCapability, HostNotificationDismissCapability, HostNotificationLifecycleCapability, HostNotificationPermissionCapability, HostNotificationReceivedCapability, HostNotificationReplyCapability, HostNotificationSchedulingCapability, Notification, NotificationActionSubscription, NotificationActiveListOutcome, NotificationCancelOutcome, NotificationClickSubscription, NotificationCloseOutcome, NotificationDeliveryOutcome, NotificationDismissSubscription, NotificationLifecycleOutcome, NotificationPendingListOutcome, NotificationPermissionQueryOutcome, NotificationPermissionRequestOutcome, NotificationReceivedSubscription, NotificationReplySubscription, NotificationRequest, NotificationSchedule, NotificationScheduleOutcome, NotificationSubscriptionAttachOutcome, NotificationSubscriptionDetachOutcome, NotificationSubscriptionDisposeOutcome, ScheduledNotification } from './types.ts';
3
+ export declare function attachNotificationActionSubscription(hostNotificationAction: Readonly<HostNotificationActionCapability>, subscription: NotificationActionSubscription): Promise<NotificationSubscriptionAttachOutcome>;
4
+ export declare function attachNotificationClickSubscription(hostNotificationClick: Readonly<HostNotificationClickCapability>, subscription: NotificationClickSubscription): Promise<NotificationSubscriptionAttachOutcome>;
5
+ export declare function attachNotificationDismissSubscription(hostNotificationDismiss: Readonly<HostNotificationDismissCapability>, subscription: NotificationDismissSubscription): Promise<NotificationSubscriptionAttachOutcome>;
6
+ export declare function attachNotificationReceivedSubscription(hostNotificationReceived: Readonly<HostNotificationReceivedCapability>, subscription: NotificationReceivedSubscription): Promise<NotificationSubscriptionAttachOutcome>;
7
+ export declare function attachNotificationReplySubscription(hostNotificationReply: Readonly<HostNotificationReplyCapability>, subscription: NotificationReplySubscription): Promise<NotificationSubscriptionAttachOutcome>;
7
8
  export declare function bindNotificationClose(notification: Notification, close: () => Promise<NotificationCloseOutcome>): void;
8
9
  export declare function bindScheduledNotificationCancel(scheduled: ScheduledNotification, cancel: () => Promise<NotificationCancelOutcome>): void;
9
10
  export declare function cancelScheduledNotification(scheduled: ScheduledNotification): Promise<NotificationCancelOutcome>;
10
- export declare function closeAllNotifications(host: HasNotificationClose): Promise<NotificationLifecycleOutcome>;
11
+ export declare function closeAllNotifications(hostNotificationClose: Readonly<HostNotificationCloseCapability>): Promise<NotificationLifecycleOutcome>;
11
12
  export declare function closeNotification(notification: Notification): Promise<NotificationCloseOutcome>;
12
13
  export declare function createNotificationActionSubscription(): NotificationActionSubscription;
13
14
  export declare function createNotificationClickSubscription(): NotificationClickSubscription;
@@ -16,7 +17,7 @@ export declare function createNotificationReceivedSubscription(): NotificationRe
16
17
  export declare function createNotificationReplySubscription(): NotificationReplySubscription;
17
18
  export declare function createNotificationResource(id: string, title: string, tag?: string): Notification;
18
19
  export declare function createScheduledNotificationResource(id: string, request: Readonly<NotificationRequest>, schedule: Readonly<NotificationSchedule>): ScheduledNotification;
19
- export declare function destroyNotificationCapabilities(host: HasNotificationLifecycle): Promise<NotificationLifecycleOutcome>;
20
+ export declare function destroyNotificationCapabilities(hostNotificationLifecycle: Readonly<HostNotificationLifecycleCapability>): Promise<NotificationLifecycleOutcome>;
20
21
  export declare function detachNotificationActionSubscription(subscription: NotificationActionSubscription): Promise<NotificationSubscriptionDetachOutcome>;
21
22
  export declare function detachNotificationClickSubscription(subscription: NotificationClickSubscription): Promise<NotificationSubscriptionDetachOutcome>;
22
23
  export declare function detachNotificationDismissSubscription(subscription: NotificationDismissSubscription): Promise<NotificationSubscriptionDetachOutcome>;
@@ -27,12 +28,12 @@ export declare function disposeNotificationClickSubscription(subscription: Notif
27
28
  export declare function disposeNotificationDismissSubscription(subscription: NotificationDismissSubscription): Promise<NotificationSubscriptionDisposeOutcome>;
28
29
  export declare function disposeNotificationReceivedSubscription(subscription: NotificationReceivedSubscription): Promise<NotificationSubscriptionDisposeOutcome>;
29
30
  export declare function disposeNotificationReplySubscription(subscription: NotificationReplySubscription): Promise<NotificationSubscriptionDisposeOutcome>;
30
- export declare function getActiveNotifications(host: HasNotificationActiveList): Promise<NotificationActiveListOutcome>;
31
- export declare function getNotificationPermission(host: HasNotificationPermission): Promise<NotificationPermissionQueryOutcome>;
32
- export declare function getPendingNotifications(host: HasNotificationScheduling): Promise<NotificationPendingListOutcome>;
31
+ export declare function getActiveNotifications(hostNotificationActiveList: Readonly<HostNotificationActiveListCapability>): Promise<NotificationActiveListOutcome>;
32
+ export declare function getNotificationPermission(hostNotificationPermission: Readonly<HostNotificationPermissionCapability>): Promise<NotificationPermissionQueryOutcome>;
33
+ export declare function getPendingNotifications(hostNotificationScheduling: Readonly<HostNotificationSchedulingCapability>): Promise<NotificationPendingListOutcome>;
33
34
  export declare function initializeNotificationResource(out: EntityConstruction<Notification>, id: string, title: string, tag?: string): void;
34
35
  export declare function initializeScheduledNotificationResource(out: EntityConstruction<ScheduledNotification>, id: string, request: Readonly<NotificationRequest>, schedule: Readonly<NotificationSchedule>): void;
35
- export declare function requestNotificationPermission(host: HasNotificationPermission): Promise<NotificationPermissionRequestOutcome>;
36
- export declare function scheduleNotification(host: HasNotificationScheduling, request: Readonly<NotificationRequest>, schedule: Readonly<NotificationSchedule>): Promise<NotificationScheduleOutcome>;
37
- export declare function showNotification(host: HasNotificationDelivery, request: Readonly<NotificationRequest>): Promise<NotificationDeliveryOutcome>;
36
+ export declare function requestNotificationPermission(hostNotificationPermission: Readonly<HostNotificationPermissionCapability>): Promise<NotificationPermissionRequestOutcome>;
37
+ export declare function scheduleNotification(hostNotificationScheduling: Readonly<HostNotificationSchedulingCapability>, request: Readonly<NotificationRequest>, schedule: Readonly<NotificationSchedule>): Promise<NotificationScheduleOutcome>;
38
+ export declare function showNotification(hostNotificationDelivery: Readonly<HostNotificationDeliveryCapability>, request: Readonly<NotificationRequest>): Promise<NotificationDeliveryOutcome>;
38
39
  //# sourceMappingURL=notification.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../src/notification.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,qBAAqB,EACrB,yBAAyB,EACzB,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,EACzB,uBAAuB,EACvB,oBAAoB,EACpB,yBAAyB,EACzB,YAAY,EACZ,8BAA8B,EAC9B,6BAA6B,EAC7B,yBAAyB,EACzB,6BAA6B,EAC7B,wBAAwB,EACxB,2BAA2B,EAC3B,+BAA+B,EAG/B,4BAA4B,EAC5B,8BAA8B,EAC9B,kCAAkC,EAClC,oCAAoC,EACpC,gCAAgC,EAChC,6BAA6B,EAC7B,mBAAmB,EACnB,oBAAoB,EACpB,2BAA2B,EAC3B,qCAAqC,EACrC,qCAAqC,EACrC,sCAAsC,EACtC,qBAAqB,EAErB,kBAAkB,EACnB,MAAM,0BAA0B,CAAC;AAElC,wBAAsB,oCAAoC,CACxD,IAAI,EAAE,qBAAqB,EAC3B,YAAY,EAAE,8BA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qBAAqB,CAAC,EAC9C,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,QAAQ,CAAC,mBAAmB,CAAC,EACtC,QAAQ,EAAE,QAAQ,CAAC,oBAAoB,CAAC,GACvC,IAAI,CAIN;AAED,wBAAgB,6BAA6B,CAC3C,0BAA0B,EAAE,QAAQ,CAAC,oCAAoC,CAAC,GACzE,OAAO,CAAC,oCAAoC,CAAC,CAE/C;AAED,wBAAgB,oBAAoB,CAClC,0BAA0B,EAAE,QAAQ,CAAC,oCAAoC,CAAC,EAC1E,OAAO,EAAE,QAAQ,CAAC,mBAAmB,CAAC,EACtC,QAAQ,EAAE,QAAQ,CAAC,oBAAoB,CAAC,GACvC,OAAO,CAAC,2BAA2B,CAAC,CAEtC;AAED,wBAAgB,gBAAgB,CAC9B,wBAAwB,EAAE,QAAQ,CAAC,kCAAkC,CAAC,EACtE,OAAO,EAAE,QAAQ,CAAC,mBAAmB,CAAC,GACrC,OAAO,CAAC,2BAA2B,CAAC,CAEtC"}
@@ -1,19 +1,19 @@
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
- export async function attachNotificationActionSubscription(host, subscription) {
4
- return attachNotificationSubscription(subscription, (listener) => host.notification.action.attach(listener), (notification, actionId) => emitSignal(subscription.onNotificationAction, notification, actionId));
3
+ export async function attachNotificationActionSubscription(hostNotificationAction, subscription) {
4
+ return attachNotificationSubscription(subscription, (listener) => hostNotificationAction.attach(listener), (notification, actionId) => emitSignal(subscription.onNotificationAction, [notification, actionId]));
5
5
  }
6
- export async function attachNotificationClickSubscription(host, subscription) {
7
- return attachNotificationSubscription(subscription, (listener) => host.notification.click.attach(listener), (notification) => emitSignal(subscription.onNotificationClick, notification));
6
+ export async function attachNotificationClickSubscription(hostNotificationClick, subscription) {
7
+ return attachNotificationSubscription(subscription, (listener) => hostNotificationClick.attach(listener), (notification) => emitSignal(subscription.onNotificationClick, notification));
8
8
  }
9
- export async function attachNotificationDismissSubscription(host, subscription) {
10
- return attachNotificationSubscription(subscription, (listener) => host.notification.dismiss.attach(listener), (notification) => emitSignal(subscription.onNotificationDismiss, notification));
9
+ export async function attachNotificationDismissSubscription(hostNotificationDismiss, subscription) {
10
+ return attachNotificationSubscription(subscription, (listener) => hostNotificationDismiss.attach(listener), (notification) => emitSignal(subscription.onNotificationDismiss, notification));
11
11
  }
12
- export async function attachNotificationReceivedSubscription(host, subscription) {
13
- return attachNotificationSubscription(subscription, (listener) => host.notification.received.attach(listener), (notification) => emitSignal(subscription.onNotificationReceived, notification));
12
+ export async function attachNotificationReceivedSubscription(hostNotificationReceived, subscription) {
13
+ return attachNotificationSubscription(subscription, (listener) => hostNotificationReceived.attach(listener), (notification) => emitSignal(subscription.onNotificationReceived, notification));
14
14
  }
15
- export async function attachNotificationReplySubscription(host, subscription) {
16
- return attachNotificationSubscription(subscription, (listener) => host.notification.reply.attach(listener), (notification, actionId, text) => emitSignal(subscription.onNotificationReply, notification, actionId, text));
15
+ export async function attachNotificationReplySubscription(hostNotificationReply, subscription) {
16
+ return attachNotificationSubscription(subscription, (listener) => hostNotificationReply.attach(listener), (notification, actionId, text) => emitSignal(subscription.onNotificationReply, [notification, actionId, text]));
17
17
  }
18
18
  // Provider-contract hook: binds one public Entity to the exact native close operation that created it.
19
19
  // Kept out of the package root; host providers consume it from /contract.
@@ -43,8 +43,8 @@ export async function cancelScheduledNotification(scheduled) {
43
43
  }
44
44
  return outcome;
45
45
  }
46
- export function closeAllNotifications(host) {
47
- return host.notification.close.closeAllNotifications();
46
+ export function closeAllNotifications(hostNotificationClose) {
47
+ return hostNotificationClose.closeAllNotifications();
48
48
  }
49
49
  export async function closeNotification(notification) {
50
50
  if (_closedNotifications.has(notification))
@@ -93,15 +93,15 @@ export function createNotificationReplySubscription() {
93
93
  export function createNotificationResource(id, title, tag = '') {
94
94
  const out = allocateEntity();
95
95
  initializeNotificationResource(out, id, title, tag);
96
- return finishEntity(out);
96
+ return out;
97
97
  }
98
98
  export function createScheduledNotificationResource(id, request, schedule) {
99
99
  const out = allocateEntity();
100
100
  initializeScheduledNotificationResource(out, id, request, schedule);
101
- return finishEntity(out);
101
+ return out;
102
102
  }
103
- export function destroyNotificationCapabilities(host) {
104
- return host.notification.lifecycle.destroy();
103
+ export function destroyNotificationCapabilities(hostNotificationLifecycle) {
104
+ return hostNotificationLifecycle.destroy();
105
105
  }
106
106
  export function detachNotificationActionSubscription(subscription) {
107
107
  return detachNotificationSubscription(subscription);
@@ -133,14 +133,14 @@ export async function disposeNotificationReceivedSubscription(subscription) {
133
133
  export async function disposeNotificationReplySubscription(subscription) {
134
134
  return disposeNotificationSubscription(subscription, subscription.onNotificationReply);
135
135
  }
136
- export function getActiveNotifications(host) {
137
- return host.notification.activeList.getActiveNotifications();
136
+ export function getActiveNotifications(hostNotificationActiveList) {
137
+ return hostNotificationActiveList.getActiveNotifications();
138
138
  }
139
- export function getNotificationPermission(host) {
140
- return host.notification.permission.getPermission();
139
+ export function getNotificationPermission(hostNotificationPermission) {
140
+ return hostNotificationPermission.getPermission();
141
141
  }
142
- export function getPendingNotifications(host) {
143
- return host.notification.scheduling.getPendingNotifications();
142
+ export function getPendingNotifications(hostNotificationScheduling) {
143
+ return hostNotificationScheduling.getPendingNotifications();
144
144
  }
145
145
  // Provider-contract constructor. Provider-local native keys never enter this public Entity.
146
146
  export function initializeNotificationResource(out, id, title, tag = '') {
@@ -154,19 +154,18 @@ export function initializeScheduledNotificationResource(out, id, request, schedu
154
154
  out.request = request;
155
155
  out.schedule = schedule;
156
156
  }
157
- export function requestNotificationPermission(host) {
158
- return host.notification.permission.requestPermission();
157
+ export function requestNotificationPermission(hostNotificationPermission) {
158
+ return hostNotificationPermission.requestPermission();
159
159
  }
160
- export function scheduleNotification(host, request, schedule) {
161
- return host.notification.scheduling.scheduleNotification(request, schedule);
160
+ export function scheduleNotification(hostNotificationScheduling, request, schedule) {
161
+ return hostNotificationScheduling.scheduleNotification(request, schedule);
162
162
  }
163
- export function showNotification(host, request) {
164
- return host.notification.delivery.notify(request);
163
+ export function showNotification(hostNotificationDelivery, request) {
164
+ return hostNotificationDelivery.notify(request);
165
165
  }
166
166
  function createNotificationSubscription(fields) {
167
167
  const subscription = allocateEntity();
168
168
  Object.assign(subscription, fields);
169
- finishEntity(subscription);
170
169
  _notificationSubscriptions.set(subscription, {
171
170
  attachment: null,
172
171
  disposeCompleted: false,
@@ -1 +1 @@
1
- {"version":3,"file":"notification.js","sourceRoot":"","sources":["../src/notification.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;AAyCnF,MAAM,CAAC,KAAK,UAAU,oCAAoC,CACxD,IAA2B,EAC3B,YAA4C;IAE5C,OAAO,8BAA8B,CACnC,YAAY,EACZ,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,EACvD,CAAC,YAAoC,EAAE,QAAgB,EAAE,EAAE,CACzD,UAAU,CAAC,YAAY,CAAC,oBAAoB,EAAE,YAAY,EAAE,QAAQ,CAAC,CACxE,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,mCAAmC,CACvD,IAA0B,EAC1B,YAA2C;IAE3C,OAAO,8BAA8B,CACnC,YAAY,EACZ,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,EACtD,CAAC,YAAoC,EAAE,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,mBAAmB,EAAE,YAAY,CAAC,CACrG,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,qCAAqC,CACzD,IAA4B,EAC5B,YAA6C;IAE7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,0BAA0B,GAAG,IAAI,OAAO,EAAuD,CAAC"}
@@ -0,0 +1,289 @@
1
+ import type { EntityRaw, EntityRuntime, EntityRuntimeKey } from '@flighthq/entity/contract';
2
+ import type { Signal } from '@flighthq/signals/contract';
3
+ export interface NotificationAction {
4
+ id: string;
5
+ title: string;
6
+ icon?: string;
7
+ }
8
+ export interface NotificationRequest {
9
+ title: string;
10
+ id?: string;
11
+ body?: string;
12
+ icon?: string;
13
+ badge?: string;
14
+ tag?: string;
15
+ silent?: boolean;
16
+ actions?: NotificationAction[];
17
+ dir?: 'auto' | 'ltr' | 'rtl';
18
+ image?: string;
19
+ lang?: string;
20
+ renotify?: boolean;
21
+ requireInteraction?: boolean;
22
+ timestamp?: number;
23
+ vibrate?: ReadonlyArray<number>;
24
+ data?: unknown;
25
+ }
26
+ export type NotificationRequestField = keyof NotificationRequest;
27
+ export type NotificationPermission = 'default' | 'granted' | 'denied';
28
+ export interface NotificationSchedule {
29
+ at: number;
30
+ repeat?: 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year';
31
+ }
32
+ export interface Notification extends EntityRaw {
33
+ [EntityRuntimeKey]: EntityRuntime | undefined;
34
+ readonly id: string;
35
+ readonly tag: string;
36
+ readonly title: string;
37
+ }
38
+ export interface ScheduledNotification extends EntityRaw {
39
+ [EntityRuntimeKey]: EntityRuntime | undefined;
40
+ readonly id: string;
41
+ readonly request: Readonly<NotificationRequest>;
42
+ readonly schedule: Readonly<NotificationSchedule>;
43
+ }
44
+ export type NotificationPermissionQueryOutcome = {
45
+ readonly permission: NotificationPermission;
46
+ readonly reason: 'ok';
47
+ } | {
48
+ readonly reason: 'operation-failed';
49
+ };
50
+ export type NotificationPermissionRequestOutcome = {
51
+ readonly reason: 'denied' | 'dismissed' | 'granted' | 'operation-failed';
52
+ };
53
+ export type NotificationDeliveryOutcome = {
54
+ readonly notification: Notification;
55
+ readonly reason: 'accepted';
56
+ } | {
57
+ readonly fields: ReadonlyArray<NotificationRequestField>;
58
+ readonly reason: 'invalid-request';
59
+ } | {
60
+ readonly reason: 'operation-failed' | 'permission-denied';
61
+ };
62
+ export type NotificationScheduleOutcome = {
63
+ readonly precision: 'exact' | 'inexact';
64
+ readonly reason: 'scheduled';
65
+ readonly scheduled: ScheduledNotification;
66
+ } | {
67
+ readonly fields: ReadonlyArray<NotificationRequestField | 'at' | 'repeat'>;
68
+ readonly reason: 'invalid-schedule';
69
+ } | {
70
+ readonly reason: 'operation-failed' | 'permission-denied';
71
+ };
72
+ export type NotificationCloseOutcome = {
73
+ readonly reason: 'already-closed' | 'ok' | 'operation-failed';
74
+ };
75
+ export type NotificationCancelOutcome = {
76
+ readonly reason: 'already-cancelled' | 'ok' | 'operation-failed';
77
+ };
78
+ export type NotificationActiveListOutcome = {
79
+ readonly notifications: ReadonlyArray<Notification>;
80
+ readonly reason: 'ok';
81
+ } | {
82
+ readonly reason: 'operation-failed';
83
+ };
84
+ export type NotificationPendingListOutcome = {
85
+ readonly notifications: ReadonlyArray<ScheduledNotification>;
86
+ readonly reason: 'ok';
87
+ } | {
88
+ readonly reason: 'operation-failed';
89
+ };
90
+ export interface NotificationLifecycleFailure {
91
+ readonly id: string;
92
+ readonly operation: 'cancel' | 'close' | 'release';
93
+ }
94
+ export type NotificationLifecycleOutcome = {
95
+ readonly reason: 'already-destroyed' | 'ok';
96
+ } | {
97
+ readonly failures: ReadonlyArray<Readonly<NotificationLifecycleFailure>>;
98
+ readonly reason: 'operation-failed';
99
+ };
100
+ export type NotificationEventReleaseOutcome = {
101
+ readonly reason: 'ok' | 'operation-failed';
102
+ };
103
+ export interface NotificationEventAttachment {
104
+ release(): Promise<NotificationEventReleaseOutcome>;
105
+ }
106
+ export type NotificationEventBackendAttachOutcome = {
107
+ readonly attachment: NotificationEventAttachment;
108
+ readonly reason: 'ok';
109
+ } | {
110
+ readonly reason: 'operation-failed';
111
+ readonly releaseFailed: boolean;
112
+ };
113
+ export type NotificationSubscriptionAttachOutcome = {
114
+ readonly reason: 'ok';
115
+ } | {
116
+ readonly attachFailed: boolean;
117
+ readonly reason: 'operation-failed';
118
+ readonly releaseFailed: boolean;
119
+ };
120
+ export type NotificationSubscriptionDetachOutcome = {
121
+ readonly reason: 'not-attached' | 'ok';
122
+ } | {
123
+ readonly reason: 'operation-failed';
124
+ readonly releaseFailed: true;
125
+ };
126
+ export type NotificationSubscriptionDisposeOutcome = {
127
+ readonly reason: 'already-disposed' | 'ok';
128
+ } | {
129
+ readonly attachFailed: boolean;
130
+ readonly reason: 'operation-failed';
131
+ readonly releaseFailed: boolean;
132
+ };
133
+ export interface NotificationActionSubscription extends EntityRaw {
134
+ [EntityRuntimeKey]: EntityRuntime | undefined;
135
+ readonly onNotificationAction: Signal<readonly [notification: Readonly<Notification>, actionId: string]>;
136
+ }
137
+ export interface NotificationClickSubscription extends EntityRaw {
138
+ [EntityRuntimeKey]: EntityRuntime | undefined;
139
+ readonly onNotificationClick: Signal<Readonly<Notification>>;
140
+ }
141
+ export interface NotificationDismissSubscription extends EntityRaw {
142
+ [EntityRuntimeKey]: EntityRuntime | undefined;
143
+ readonly onNotificationDismiss: Signal<Readonly<Notification>>;
144
+ }
145
+ export interface NotificationReplySubscription extends EntityRaw {
146
+ [EntityRuntimeKey]: EntityRuntime | undefined;
147
+ readonly onNotificationReply: Signal<readonly [notification: Readonly<Notification>, actionId: string, text: string]>;
148
+ }
149
+ export interface NotificationReceivedSubscription extends EntityRaw {
150
+ [EntityRuntimeKey]: EntityRuntime | undefined;
151
+ readonly onNotificationReceived: Signal<Readonly<Notification>>;
152
+ }
153
+ export interface HostNotificationPermissionCapability {
154
+ getPermission(): Promise<NotificationPermissionQueryOutcome>;
155
+ requestPermission(): Promise<NotificationPermissionRequestOutcome>;
156
+ }
157
+ export interface HostNotificationDeliveryCapability {
158
+ notify(request: Readonly<NotificationRequest>): Promise<NotificationDeliveryOutcome>;
159
+ }
160
+ export interface HostNotificationSchedulingCapability {
161
+ cancelAllScheduledNotifications(): Promise<NotificationLifecycleOutcome>;
162
+ getPendingNotifications(): Promise<NotificationPendingListOutcome>;
163
+ scheduleNotification(request: Readonly<NotificationRequest>, schedule: Readonly<NotificationSchedule>): Promise<NotificationScheduleOutcome>;
164
+ }
165
+ export interface HostNotificationCloseCapability {
166
+ closeAllNotifications(): Promise<NotificationLifecycleOutcome>;
167
+ }
168
+ export interface HostNotificationActiveListCapability {
169
+ getActiveNotifications(): Promise<NotificationActiveListOutcome>;
170
+ }
171
+ export interface HostNotificationActionCapability {
172
+ attach(listener: (notification: Readonly<Notification>, actionId: string) => void): Promise<NotificationEventBackendAttachOutcome>;
173
+ }
174
+ export interface HostNotificationClickCapability {
175
+ attach(listener: (notification: Readonly<Notification>) => void): Promise<NotificationEventBackendAttachOutcome>;
176
+ }
177
+ export interface HostNotificationDismissCapability {
178
+ attach(listener: (notification: Readonly<Notification>) => void): Promise<NotificationEventBackendAttachOutcome>;
179
+ }
180
+ export interface HostNotificationReplyCapability {
181
+ attach(listener: (notification: Readonly<Notification>, actionId: string, text: string) => void): Promise<NotificationEventBackendAttachOutcome>;
182
+ }
183
+ export interface HostNotificationReceivedCapability {
184
+ attach(listener: (notification: Readonly<Notification>) => void): Promise<NotificationEventBackendAttachOutcome>;
185
+ }
186
+ export interface HostNotificationLifecycleCapability {
187
+ destroy(): Promise<NotificationLifecycleOutcome>;
188
+ }
189
+ export type WebPageNotificationCapabilities = Readonly<{
190
+ click: HostNotificationClickCapability;
191
+ close: HostNotificationCloseCapability;
192
+ delivery: HostNotificationDeliveryCapability;
193
+ dismiss: HostNotificationDismissCapability;
194
+ lifecycle: HostNotificationLifecycleCapability;
195
+ permission: HostNotificationPermissionCapability;
196
+ received: HostNotificationReceivedCapability;
197
+ }>;
198
+ export type WebServiceWorkerNotificationCapabilities = Readonly<{
199
+ action: HostNotificationActionCapability;
200
+ activeList: HostNotificationActiveListCapability;
201
+ click: HostNotificationClickCapability;
202
+ close: HostNotificationCloseCapability;
203
+ delivery: HostNotificationDeliveryCapability;
204
+ dismiss: HostNotificationDismissCapability;
205
+ lifecycle: HostNotificationLifecycleCapability;
206
+ permission: HostNotificationPermissionCapability;
207
+ }>;
208
+ export type ElectronNotificationCapabilities = Readonly<{
209
+ click: HostNotificationClickCapability;
210
+ close: HostNotificationCloseCapability;
211
+ delivery: HostNotificationDeliveryCapability;
212
+ dismiss: HostNotificationDismissCapability;
213
+ lifecycle: HostNotificationLifecycleCapability;
214
+ received: HostNotificationReceivedCapability;
215
+ }>;
216
+ export type ElectronMacosNotificationCapabilities = ElectronNotificationCapabilities & Readonly<{
217
+ action: HostNotificationActionCapability;
218
+ reply: HostNotificationReplyCapability;
219
+ }>;
220
+ export type TauriNotificationCapabilities = Readonly<{
221
+ delivery: HostNotificationDeliveryCapability;
222
+ lifecycle: HostNotificationLifecycleCapability;
223
+ permission: HostNotificationPermissionCapability;
224
+ }>;
225
+ export type CapacitorNotificationCapabilities = Readonly<{
226
+ action: HostNotificationActionCapability;
227
+ click: HostNotificationClickCapability;
228
+ delivery: HostNotificationDeliveryCapability;
229
+ lifecycle: HostNotificationLifecycleCapability;
230
+ permission: HostNotificationPermissionCapability;
231
+ scheduling: HostNotificationSchedulingCapability;
232
+ }>;
233
+ export interface WebNotificationOptions {
234
+ actions?: ReadonlyArray<Readonly<{
235
+ action: string;
236
+ icon?: string;
237
+ title: string;
238
+ }>>;
239
+ badge?: string;
240
+ body?: string;
241
+ data?: unknown;
242
+ dir?: 'auto' | 'ltr' | 'rtl';
243
+ icon?: string;
244
+ image?: string;
245
+ lang?: string;
246
+ renotify?: boolean;
247
+ requireInteraction?: boolean;
248
+ silent?: boolean;
249
+ tag?: string;
250
+ timestamp?: number;
251
+ vibrate?: ReadonlyArray<number>;
252
+ }
253
+ export interface WebPageNotificationInstance {
254
+ close(): void;
255
+ onclick: (() => void) | null;
256
+ onclose: (() => void) | null;
257
+ onerror: (() => void) | null;
258
+ onshow: (() => void) | null;
259
+ }
260
+ export interface WebPageNotificationApi {
261
+ readonly Notification: {
262
+ new (title: string, options?: Readonly<WebNotificationOptions>): WebPageNotificationInstance;
263
+ };
264
+ }
265
+ export interface WebServiceWorkerNotificationInstance {
266
+ readonly data?: unknown;
267
+ readonly tag: string;
268
+ readonly title: string;
269
+ close(): void;
270
+ }
271
+ export interface WebServiceWorkerNotificationRegistration {
272
+ getNotifications(filter?: Readonly<{
273
+ tag?: string;
274
+ }>): Promise<ReadonlyArray<WebServiceWorkerNotificationInstance>>;
275
+ showNotification(title: string, options?: Readonly<WebNotificationOptions>): Promise<void>;
276
+ }
277
+ export interface WebServiceWorkerNotificationApi {
278
+ readonly permission: {
279
+ getPermission(): NotificationPermission;
280
+ requestPermission(): Promise<NotificationPermission>;
281
+ };
282
+ readonly registration: WebServiceWorkerNotificationRegistration;
283
+ }
284
+ export interface WebServiceWorkerNotificationEvent {
285
+ readonly actionId?: string;
286
+ readonly notificationTag: string;
287
+ readonly type: 'notificationclick' | 'notificationclose';
288
+ }
289
+ //# 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,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC5F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEzD,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAA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AAC;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,KAAK,IAAI,IAAI,CAAC;CACf;AAED,MAAM,WAAW,wCAAwC;IACvD,gBAAgB,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC;QAAE,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,OAAO,CAAC,aAAa,CAAC,oCAAoC,CAAC,CAAC,CAAC;IACpH,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,sBAAsB,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5F;AAED,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,UAAU,EAAE;QACnB,aAAa,IAAI,sBAAsB,CAAC;QACxC,iBAAiB,IAAI,OAAO,CAAC,sBAAsB,CAAC,CAAC;KACtD,CAAC;IACF,QAAQ,CAAC,YAAY,EAAE,wCAAwC,CAAC;CACjE;AAED,MAAM,WAAW,iCAAiC;IAChD,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,IAAI,EAAE,mBAAmB,GAAG,mBAAmB,CAAC;CAC1D"}
package/dist/types.js ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flighthq/notification",
3
- "version": "0.5.1-next.920.da8f530",
3
+ "version": "0.7.0-edge.5213.ead804b",
4
4
  "author": "Joshua Granick and other contributors",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -32,18 +32,19 @@
32
32
  "scripts": {
33
33
  "build": "tsc -b",
34
34
  "clean": "tsc -b --clean",
35
+ "generate": "tsx ../../scripts/generate-rust-package.ts --crate flight-notification --package notification",
36
+ "generate:check": "tsx ../../scripts/generate-rust-package.ts --crate flight-notification --package notification --check",
35
37
  "test": "vitest run --config vitest.config.ts",
36
38
  "test:watch": "vitest --watch --config vitest.config.ts",
37
39
  "prepack": "npm run clean && npm run clean:dist && npm run build",
38
40
  "clean:dist": "tsx ../../scripts/clean-package-dist.ts"
39
41
  },
40
42
  "dependencies": {
41
- "@flighthq/entity": "0.5.1-next.920.da8f530",
42
- "@flighthq/signals": "0.5.1-next.920.da8f530",
43
- "@flighthq/types": "0.5.1-next.920.da8f530"
43
+ "@flighthq/entity": "0.7.0-edge.5213.ead804b",
44
+ "@flighthq/signals": "0.7.0-edge.5213.ead804b"
44
45
  },
45
46
  "devDependencies": {
46
- "typescript": "^5.3.0"
47
+ "typescript": "^7.0.2"
47
48
  },
48
49
  "description": "System notifications over a swappable web (Notification API) / native backend",
49
50
  "sideEffects": false
@@ -1,11 +1,5 @@
1
+ import { EntityRuntimeKey } from '@flighthq/entity/contract';
1
2
  import { connectSignal } from '@flighthq/signals/contract';
2
- import { EntityRuntimeKey } from '@flighthq/types/contract';
3
- import type {
4
- HostNotificationCapabilities,
5
- Notification,
6
- NotificationClickBackend,
7
- NotificationEventBackendAttachOutcome,
8
- } from '@flighthq/types/contract';
9
3
 
10
4
  import {
11
5
  attachNotificationActionSubscription,
@@ -44,15 +38,30 @@ import {
44
38
  requestNotificationPermission,
45
39
  scheduleNotification,
46
40
  showNotification,
47
- } from './notification';
41
+ } from './notification.ts';
42
+ import type {
43
+ HostNotificationActionCapability,
44
+ HostNotificationActiveListCapability,
45
+ HostNotificationClickCapability,
46
+ HostNotificationCloseCapability,
47
+ HostNotificationDeliveryCapability,
48
+ HostNotificationDismissCapability,
49
+ HostNotificationLifecycleCapability,
50
+ HostNotificationPermissionCapability,
51
+ HostNotificationReceivedCapability,
52
+ HostNotificationReplyCapability,
53
+ HostNotificationSchedulingCapability,
54
+ Notification,
55
+ NotificationEventBackendAttachOutcome,
56
+ } from './types.ts';
48
57
 
49
- function host<const TCapabilities extends HostNotificationCapabilities>(notification: TCapabilities) {
58
+ function host<const TCapabilities extends NotificationHostSlot>(notification: TCapabilities) {
50
59
  return { notification };
51
60
  }
52
61
 
53
62
  function createClickBackend(options?: Readonly<{ attachFailure?: boolean; releaseFailure?: boolean }>) {
54
63
  const listeners = new Set<(notification: Readonly<Notification>) => void>();
55
- const backend: NotificationClickBackend = {
64
+ const backend: HostNotificationClickCapability = {
56
65
  async attach(listener): Promise<NotificationEventBackendAttachOutcome> {
57
66
  if (options?.attachFailure === true) {
58
67
  return {
@@ -82,7 +91,7 @@ describe('attachNotificationActionSubscription', () => {
82
91
  const subscription = createNotificationActionSubscription();
83
92
  const notification = createNotificationResource('n1', 'Title');
84
93
  const seen: string[] = [];
85
- connectSignal(subscription.onNotificationAction, (value, actionId) => seen.push(`${value.id}:${actionId}`));
94
+ connectSignal(subscription.onNotificationAction, ([value, actionId]) => seen.push(`${value.id}:${actionId}`));
86
95
  await expect(
87
96
  attachNotificationActionSubscription(
88
97
  host({
@@ -100,7 +109,7 @@ describe('attachNotificationActionSubscription', () => {
100
109
  };
101
110
  },
102
111
  },
103
- }),
112
+ }).notification.action,
104
113
  subscription,
105
114
  ),
106
115
  ).resolves.toEqual({ reason: 'ok' });
@@ -115,7 +124,7 @@ describe('attachNotificationClickSubscription', () => {
115
124
  const attached = attachNotificationClickSubscription(
116
125
  host({
117
126
  click: createClickBackend({ attachFailure: true, releaseFailure: true }).backend,
118
- }),
127
+ }).notification.click,
119
128
  subscription,
120
129
  );
121
130
  const disposed = disposeNotificationClickSubscription(subscription);
@@ -133,7 +142,9 @@ describe('attachNotificationClickSubscription', () => {
133
142
  const notification = createNotificationResource('n1', 'Title');
134
143
  const seen: Notification[] = [];
135
144
  connectSignal(subscription.onNotificationClick, (value) => seen.push(value));
136
- await expect(attachNotificationClickSubscription(host({ click: backend }), subscription)).resolves.toEqual({
145
+ await expect(
146
+ attachNotificationClickSubscription(host({ click: backend }).notification.click, subscription),
147
+ ).resolves.toEqual({
137
148
  reason: 'ok',
138
149
  });
139
150
  for (const listener of listeners) listener(notification);
@@ -147,7 +158,9 @@ describe('attachNotificationDismissSubscription', () => {
147
158
  it('acquires and releases the dismiss event', async () => {
148
159
  const { backend } = createClickBackend();
149
160
  const subscription = createNotificationDismissSubscription();
150
- await expect(attachNotificationDismissSubscription(host({ dismiss: backend }), subscription)).resolves.toEqual({
161
+ await expect(
162
+ attachNotificationDismissSubscription(host({ dismiss: backend }).notification.dismiss, subscription),
163
+ ).resolves.toEqual({
151
164
  reason: 'ok',
152
165
  });
153
166
  await expect(detachNotificationDismissSubscription(subscription)).resolves.toEqual({ reason: 'ok' });
@@ -158,7 +171,9 @@ describe('attachNotificationReceivedSubscription', () => {
158
171
  it('acquires and releases the backend-emitted received event', async () => {
159
172
  const { backend } = createClickBackend();
160
173
  const subscription = createNotificationReceivedSubscription();
161
- await expect(attachNotificationReceivedSubscription(host({ received: backend }), subscription)).resolves.toEqual({
174
+ await expect(
175
+ attachNotificationReceivedSubscription(host({ received: backend }).notification.received, subscription),
176
+ ).resolves.toEqual({
162
177
  reason: 'ok',
163
178
  });
164
179
  await expect(detachNotificationReceivedSubscription(subscription)).resolves.toEqual({ reason: 'ok' });
@@ -186,7 +201,7 @@ describe('attachNotificationReplySubscription', () => {
186
201
  };
187
202
  },
188
203
  },
189
- }),
204
+ }).notification.reply,
190
205
  subscription,
191
206
  ),
192
207
  ).resolves.toEqual({ reason: 'ok' });
@@ -243,7 +258,7 @@ describe('closeAllNotifications', () => {
243
258
  return outcome;
244
259
  },
245
260
  },
246
- }),
261
+ }).notification.close,
247
262
  ),
248
263
  ).resolves.toBe(outcome);
249
264
  });
@@ -342,8 +357,10 @@ describe('destroyNotificationCapabilities', () => {
342
357
  },
343
358
  },
344
359
  });
345
- await expect(destroyNotificationCapabilities(value)).resolves.toMatchObject({ reason: 'operation-failed' });
346
- await expect(destroyNotificationCapabilities(value)).resolves.toEqual({
360
+ await expect(destroyNotificationCapabilities(value.notification.lifecycle)).resolves.toMatchObject({
361
+ reason: 'operation-failed',
362
+ });
363
+ await expect(destroyNotificationCapabilities(value.notification.lifecycle)).resolves.toEqual({
347
364
  reason: 'ok',
348
365
  });
349
366
  });
@@ -401,7 +418,7 @@ describe('disposeNotificationClickSubscription', () => {
401
418
  it('keeps a failed release observable', async () => {
402
419
  const subscription = createNotificationClickSubscription();
403
420
  await attachNotificationClickSubscription(
404
- host({ click: createClickBackend({ releaseFailure: true }).backend }),
421
+ host({ click: createClickBackend({ releaseFailure: true }).backend }).notification.click,
405
422
  subscription,
406
423
  );
407
424
  await expect(disposeNotificationClickSubscription(subscription)).resolves.toEqual({
@@ -445,8 +462,8 @@ describe('getActiveNotifications', () => {
445
462
  },
446
463
  };
447
464
  const value = host({ activeList: backend });
448
- const first = await getActiveNotifications(value);
449
- const second = await getActiveNotifications(value);
465
+ const first = await getActiveNotifications(value.notification.activeList);
466
+ const second = await getActiveNotifications(value.notification.activeList);
450
467
  expect(first.reason).toBe('ok');
451
468
  expect(second.reason).toBe('ok');
452
469
  if (first.reason === 'ok' && second.reason === 'ok') expect(second.notifications[0]).toBe(first.notifications[0]);
@@ -466,7 +483,7 @@ describe('getNotificationPermission', () => {
466
483
  return { reason: 'operation-failed' };
467
484
  },
468
485
  },
469
- }),
486
+ }).notification.permission,
470
487
  ),
471
488
  ).resolves.toEqual({ reason: 'operation-failed' });
472
489
  });
@@ -488,7 +505,7 @@ describe('getPendingNotifications', () => {
488
505
  return { reason: 'operation-failed' };
489
506
  },
490
507
  },
491
- }),
508
+ }).notification.scheduling,
492
509
  ),
493
510
  ).resolves.toEqual({ reason: 'operation-failed' });
494
511
  });
@@ -519,7 +536,7 @@ describe('requestNotificationPermission', () => {
519
536
  return { reason: 'dismissed' };
520
537
  },
521
538
  },
522
- }),
539
+ }).notification.permission,
523
540
  ),
524
541
  ).resolves.toEqual({ reason: 'dismissed' });
525
542
  });
@@ -541,7 +558,7 @@ describe('scheduleNotification', () => {
541
558
  return { precision: 'exact', reason: 'scheduled', scheduled };
542
559
  },
543
560
  },
544
- }),
561
+ }).notification.scheduling,
545
562
  { title: 'Later' },
546
563
  { at: 1 },
547
564
  ),
@@ -560,9 +577,26 @@ describe('showNotification', () => {
560
577
  return { notification, reason: 'accepted' };
561
578
  },
562
579
  },
563
- }),
580
+ }).notification.delivery,
564
581
  { title: 'Title' },
565
582
  ),
566
583
  ).resolves.toEqual({ notification, reason: 'accepted' });
567
584
  });
568
585
  });
586
+
587
+ // The `host.notification` slot shape, composed from this package's own capability contracts. The aggregate
588
+ // `HostNotificationCapabilities` is owned by @flighthq/host, which depends on this package, so the fixture
589
+ // mirrors it locally rather than importing back up the graph.
590
+ interface NotificationHostSlot {
591
+ readonly action?: HostNotificationActionCapability;
592
+ readonly activeList?: HostNotificationActiveListCapability;
593
+ readonly click?: HostNotificationClickCapability;
594
+ readonly close?: HostNotificationCloseCapability;
595
+ readonly delivery?: HostNotificationDeliveryCapability;
596
+ readonly dismiss?: HostNotificationDismissCapability;
597
+ readonly lifecycle?: HostNotificationLifecycleCapability;
598
+ readonly permission?: HostNotificationPermissionCapability;
599
+ readonly received?: HostNotificationReceivedCapability;
600
+ readonly reply?: HostNotificationReplyCapability;
601
+ readonly scheduling?: HostNotificationSchedulingCapability;
602
+ }