@bimetal/toast-headless 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +57 -0
- package/README.md +33 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/config.d.ts +11 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +53 -0
- package/dist/config.js.map +1 -0
- package/dist/create-controller.d.ts +12 -0
- package/dist/create-controller.d.ts.map +1 -0
- package/dist/create-controller.js +129 -0
- package/dist/create-controller.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/types.d.ts +102 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +10 -0
- package/dist/types.js.map +1 -0
- package/package.json +51 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
Copyright 2026 Andreas Biederbeck
|
|
2
|
+
|
|
3
|
+
Apache License
|
|
4
|
+
|
|
5
|
+
Version 2.0, January 2004
|
|
6
|
+
|
|
7
|
+
http://www.apache.org/licenses/
|
|
8
|
+
|
|
9
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
10
|
+
|
|
11
|
+
1. Definitions.
|
|
12
|
+
|
|
13
|
+
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
|
14
|
+
|
|
15
|
+
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
|
16
|
+
|
|
17
|
+
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
|
18
|
+
|
|
19
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
|
20
|
+
|
|
21
|
+
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
|
22
|
+
|
|
23
|
+
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
|
24
|
+
|
|
25
|
+
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
|
26
|
+
|
|
27
|
+
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
|
28
|
+
|
|
29
|
+
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
|
30
|
+
|
|
31
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
|
32
|
+
|
|
33
|
+
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
|
34
|
+
|
|
35
|
+
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
|
36
|
+
|
|
37
|
+
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
|
38
|
+
|
|
39
|
+
You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
|
40
|
+
|
|
41
|
+
You must cause any modified files to carry prominent notices stating that You changed the files; and
|
|
42
|
+
|
|
43
|
+
You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
|
44
|
+
|
|
45
|
+
If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
|
46
|
+
|
|
47
|
+
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
|
48
|
+
|
|
49
|
+
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
|
50
|
+
|
|
51
|
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
|
52
|
+
|
|
53
|
+
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
|
54
|
+
|
|
55
|
+
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
|
56
|
+
|
|
57
|
+
END OF TERMS AND CONDITIONS
|
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# @bimetal/toast-headless
|
|
2
|
+
|
|
3
|
+
The canonical, framework-agnostic **toast** controller — the BIMETAL component family's
|
|
4
|
+
first *lightweight / feedback* member.
|
|
5
|
+
|
|
6
|
+
Controller-only: no store, no aggregate, no undo. The app pushes an **already-decided
|
|
7
|
+
message**; the controller owns the whole presentation lifecycle so it behaves identically
|
|
8
|
+
across React, Vue, Svelte, Angular and vanilla:
|
|
9
|
+
|
|
10
|
+
- a **queue** with a `max` cap (oldest dropped past it),
|
|
11
|
+
- per-toast **lifetime** + **auto-dismiss** timers (`durationMs`, `0` = sticky),
|
|
12
|
+
- **manual close**, **pause/resume** (pointer-over the stack),
|
|
13
|
+
- semantic **variants** (`info | success | warning | error`) and a **position** hint.
|
|
14
|
+
|
|
15
|
+
It has **no domain dependency** — in particular, no calendar and no undo/redo knowledge.
|
|
16
|
+
Reacting to a domain event (e.g. a calendar undo) is the *application's* job: observe the
|
|
17
|
+
event, decide the message, and call `push(...)`.
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import { createToastController } from '@bimetal/toast-headless';
|
|
21
|
+
|
|
22
|
+
const toasts = createToastController({ config: { position: 'bottom-end', durationMs: 4000 } });
|
|
23
|
+
|
|
24
|
+
// The app decides the message — the toast never inspects a domain.
|
|
25
|
+
const id = toasts.push({ message: 'Änderung rückgängig gemacht', variant: 'info' });
|
|
26
|
+
|
|
27
|
+
toasts.pause(); // pointer entered the stack
|
|
28
|
+
toasts.resume(); // pointer left
|
|
29
|
+
toasts.dismiss(id);
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Bind it with the thin per-framework packages (`@bimetal/toast-react-components`, …) or
|
|
33
|
+
the generic `useToastController` hook.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../../node_modules/typescript/lib/lib.es2023.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../../node_modules/typescript/lib/lib.esnext.float16.d.ts","../../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/types.ts","../src/config.ts","../../../engine/headless-core/dist/types.d.ts","../../../engine/headless-core/dist/controller-core.d.ts","../../../engine/headless-core/dist/deep-copy.d.ts","../../../engine/headless-core/dist/error-router.d.ts","../../../engine/headless-core/dist/virtual-window.d.ts","../../../engine/headless-core/dist/view-memo.d.ts","../../../engine/headless-core/dist/selection-model.d.ts","../../../engine/headless-core/dist/derivation-memo.d.ts","../../../engine/headless-core/dist/reorder-gesture.d.ts","../../../engine/headless-core/dist/index.d.ts","../src/create-controller.ts","../src/index.ts","../../../../node_modules/@types/alpinejs/index.d.ts","../../../../node_modules/@types/node/compatibility/iterators.d.ts","../../../../node_modules/@types/node/globals.typedarray.d.ts","../../../../node_modules/@types/node/buffer.buffer.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../../node_modules/@types/node/web-globals/blob.d.ts","../../../../node_modules/@types/node/web-globals/console.d.ts","../../../../node_modules/@types/node/web-globals/crypto.d.ts","../../../../node_modules/@types/node/web-globals/domexception.d.ts","../../../../node_modules/@types/node/web-globals/encoding.d.ts","../../../../node_modules/@types/node/web-globals/events.d.ts","../../../../node_modules/undici-types/utility.d.ts","../../../../node_modules/undici-types/header.d.ts","../../../../node_modules/undici-types/readable.d.ts","../../../../node_modules/undici-types/fetch.d.ts","../../../../node_modules/undici-types/formdata.d.ts","../../../../node_modules/undici-types/connector.d.ts","../../../../node_modules/undici-types/client-stats.d.ts","../../../../node_modules/undici-types/client.d.ts","../../../../node_modules/undici-types/errors.d.ts","../../../../node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/undici-types/global-origin.d.ts","../../../../node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/undici-types/pool.d.ts","../../../../node_modules/undici-types/handlers.d.ts","../../../../node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/undici-types/round-robin-pool.d.ts","../../../../node_modules/undici-types/h2c-client.d.ts","../../../../node_modules/undici-types/agent.d.ts","../../../../node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/undici-types/mock-call-history.d.ts","../../../../node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/undici-types/mock-client.d.ts","../../../../node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/undici-types/snapshot-agent.d.ts","../../../../node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/undici-types/socks5-proxy-agent.d.ts","../../../../node_modules/undici-types/env-http-proxy-agent.d.ts","../../../../node_modules/undici-types/retry-handler.d.ts","../../../../node_modules/undici-types/retry-agent.d.ts","../../../../node_modules/undici-types/api.d.ts","../../../../node_modules/undici-types/cache-interceptor.d.ts","../../../../node_modules/undici-types/interceptors.d.ts","../../../../node_modules/undici-types/util.d.ts","../../../../node_modules/undici-types/cookies.d.ts","../../../../node_modules/undici-types/patch.d.ts","../../../../node_modules/undici-types/websocket.d.ts","../../../../node_modules/undici-types/eventsource.d.ts","../../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/undici-types/content-type.d.ts","../../../../node_modules/undici-types/cache.d.ts","../../../../node_modules/undici-types/index.d.ts","../../../../node_modules/@types/node/web-globals/fetch.d.ts","../../../../node_modules/@types/node/web-globals/importmeta.d.ts","../../../../node_modules/@types/node/web-globals/messaging.d.ts","../../../../node_modules/@types/node/web-globals/navigator.d.ts","../../../../node_modules/@types/node/web-globals/performance.d.ts","../../../../node_modules/@types/node/web-globals/storage.d.ts","../../../../node_modules/@types/node/web-globals/streams.d.ts","../../../../node_modules/@types/node/web-globals/timers.d.ts","../../../../node_modules/@types/node/web-globals/url.d.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/inspector.generated.d.ts","../../../../node_modules/@types/node/inspector/promises.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/buffer/index.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/path/posix.d.ts","../../../../node_modules/@types/node/path/win32.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/quic.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/sea.d.ts","../../../../node_modules/@types/node/sqlite.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.d.ts","../../../../node_modules/@types/node/test/reporters.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/util/types.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/amqplib/properties.d.ts","../../../../node_modules/@types/amqplib/index.d.ts","../../../../node_modules/@types/aria-query/index.d.ts","../../../../node_modules/@babel/types/lib/index.d.ts","../../../../node_modules/@types/babel__generator/index.d.ts","../../../../node_modules/@babel/parser/typings/babel-parser.d.ts","../../../../node_modules/@types/babel__template/index.d.ts","../../../../node_modules/@types/babel__traverse/index.d.ts","../../../../node_modules/@types/babel__core/index.d.ts","../../../../node_modules/@types/better-sqlite3/index.d.ts","../../../../node_modules/@types/connect/index.d.ts","../../../../node_modules/@types/body-parser/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/@types/ms/index.d.ts","../../../../node_modules/@types/debug/index.d.ts","../../../../node_modules/@types/estree/index.d.ts","../../../../node_modules/@types/estree-jsx/index.d.ts","../../../../node_modules/@types/send/index.d.ts","../../../../node_modules/@types/qs/index.d.ts","../../../../node_modules/@types/range-parser/index.d.ts","../../../../node_modules/@types/express-serve-static-core/index.d.ts","../../../../node_modules/@types/http-errors/index.d.ts","../../../../node_modules/@types/serve-static/index.d.ts","../../../../node_modules/@types/express/index.d.ts","../../../../node_modules/@types/google-protobuf/index.d.ts","../../../../node_modules/@types/unist/index.d.ts","../../../../node_modules/@types/hast/index.d.ts","../../../../node_modules/@types/mdast/index.d.ts","../../../../node_modules/@types/mime/index.d.ts","../../../../node_modules/@types/react/global.d.ts","../../../../node_modules/csstype/index.d.ts","../../../../node_modules/@types/react/index.d.ts","../../../../node_modules/@types/react-dom/index.d.ts","../../../../node_modules/@types/trusted-types/lib/index.d.ts","../../../../node_modules/@types/trusted-types/index.d.ts","../../../../node_modules/@types/whatwg-mimetype/index.d.ts","../../../../node_modules/@types/ws/index.d.ts"],"fileIdsList":[[81,145,153,157,160,162,163,164,177,206],[81,145,153,157,160,162,163,164,177],[81,145,153,156,157,160,162,163,164,177,202,203],[81,145,153,157,160,162,163,164,177,206,207,208,209,210],[81,145,153,157,160,162,163,164,177,206,208],[81,145,153,157,160,162,163,164,177,202],[81,145,153,157,159,160,162,163,164,177,202,213],[81,145,153,157,160,162,163,164,177,215,216],[81,145,153,157,159,160,162,163,164,177,202],[81,145,153,157,160,162,163,164,177,218],[81,145,153,157,160,162,163,164,177,220,221],[81,145,153,156,157,159,160,162,163,164,177,202,222,223,224],[81,145,153,157,160,162,163,164,177,214,225,227],[81,145,153,157,160,162,163,164,177,230],[81,142,143,145,153,157,160,162,163,164,177],[81,144,145,153,157,160,162,163,164,177],[145,153,157,160,162,163,164,177],[81,145,153,157,160,162,163,164,177,185],[81,145,146,151,153,156,157,160,162,163,164,166,177,182,194],[81,145,146,147,153,156,157,160,162,163,164,177],[81,145,148,153,157,160,162,163,164,177,195],[81,145,149,150,153,157,160,162,163,164,168,177],[81,145,150,153,157,160,162,163,164,177,182,191],[81,145,151,153,156,157,160,162,163,164,166,177],[81,144,145,152,153,157,160,162,163,164,177],[81,145,153,154,157,160,162,163,164,177],[81,145,153,155,156,157,160,162,163,164,177],[81,144,145,153,156,157,160,162,163,164,177],[81,145,153,156,157,158,160,162,163,164,177,182,194],[81,145,153,156,157,158,160,162,163,164,177,182,185],[81,132,145,153,156,157,159,160,162,163,164,166,177,182,194],[81,145,153,156,157,159,160,162,163,164,166,177,182,191,194],[81,145,153,157,159,160,161,162,163,164,177,182,191,194],[79,80,81,82,83,84,85,86,87,88,89,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201],[81,145,153,156,157,160,162,163,164,177],[81,145,153,157,160,162,164,177],[81,145,153,157,160,162,163,164,165,177,194],[81,145,153,156,157,160,162,163,164,166,177,182],[81,145,153,157,160,162,163,164,168,177],[81,145,153,157,160,162,163,164,169,177],[81,145,153,156,157,160,162,163,164,172,177],[81,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201],[81,145,153,157,160,162,163,164,174,177],[81,145,153,157,160,162,163,164,175,177],[81,145,150,153,157,160,162,163,164,166,177,185],[81,145,153,156,157,160,162,163,164,177,178],[81,145,153,157,160,162,163,164,177,179,195,198],[81,145,153,156,157,160,162,163,164,177,182,184,185],[81,145,153,157,160,162,163,164,177,183,185],[81,145,153,157,160,162,163,164,177,185,195],[81,145,153,157,160,162,163,164,177,186],[81,142,145,153,157,160,162,163,164,177,182,188,194],[81,145,153,157,160,162,163,164,177,182,187],[81,145,153,156,157,160,162,163,164,177,189,190],[81,145,153,157,160,162,163,164,177,189,190],[81,145,150,153,157,160,162,163,164,166,177,182,191],[81,145,153,157,160,162,163,164,177,192],[81,145,153,157,160,162,163,164,166,177,193],[81,145,153,157,159,160,162,163,164,175,177,194],[81,145,153,157,160,162,163,164,177,195,196],[81,145,150,153,157,160,162,163,164,177,196],[81,145,153,157,160,162,163,164,177,182,197],[81,145,153,157,160,162,163,164,165,177,198],[81,145,153,157,160,162,163,164,177,199],[81,145,148,153,157,160,162,163,164,177],[81,145,150,153,157,160,162,163,164,177],[81,145,153,157,160,162,163,164,177,195],[81,132,145,153,157,160,162,163,164,177],[81,145,153,157,160,162,163,164,177,194],[81,145,153,157,160,162,163,164,177,200],[81,145,153,157,160,162,163,164,172,177],[81,145,153,157,160,162,163,164,177,190],[81,132,145,153,156,157,158,160,162,163,164,172,177,182,185,194,197,198,200],[81,145,153,157,160,162,163,164,177,182,201],[81,145,153,157,160,162,163,164,177,236],[81,145,153,157,160,162,163,164,177,234,235],[81,145,153,157,160,162,163,164,177,182,202],[81,145,153,157,159,160,162,163,164,177,202,226],[81,145,153,157,160,162,163,164,177,238],[81,145,153,156,157,159,160,161,162,163,164,166,177,182,191,194,201,202],[81,96,99,102,103,145,153,157,160,162,163,164,177,194],[81,99,145,153,157,160,162,163,164,177,182,194],[81,99,103,145,153,157,160,162,163,164,177,194],[81,145,153,157,160,162,163,164,177,182],[81,93,145,153,157,160,162,163,164,177],[81,97,145,153,157,160,162,163,164,177],[81,95,96,99,145,153,157,160,162,163,164,177,194],[81,145,153,157,160,162,163,164,166,177,191],[81,93,145,153,157,160,162,163,164,177,202],[81,95,99,145,153,157,160,162,163,164,166,177,194],[81,90,91,92,94,98,145,153,156,157,160,162,163,164,177,182,194],[81,99,108,116,145,153,157,160,162,163,164,177],[81,91,97,145,153,157,160,162,163,164,177],[81,99,126,127,145,153,157,160,162,163,164,177],[81,91,94,99,145,153,157,160,162,163,164,177,185,194,202],[81,99,145,153,157,160,162,163,164,177],[81,95,99,145,153,157,160,162,163,164,177,194],[81,90,145,153,157,160,162,163,164,177],[81,93,94,95,97,98,99,100,101,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,127,128,129,130,131,145,153,157,160,162,163,164,177],[81,99,119,122,145,153,157,160,162,163,164,177],[81,99,108,109,110,145,153,157,160,162,163,164,177],[81,97,99,109,111,145,153,157,160,162,163,164,177],[81,98,145,153,157,160,162,163,164,177],[81,91,93,99,145,153,157,160,162,163,164,177],[81,99,103,109,111,145,153,157,160,162,163,164,177],[81,103,145,153,157,160,162,163,164,177],[81,97,99,102,145,153,157,160,162,163,164,177,194],[81,91,95,99,108,145,153,157,160,162,163,164,177],[81,99,119,145,153,157,160,162,163,164,177],[81,111,145,153,157,160,162,163,164,177],[81,91,95,99,103,145,153,157,160,162,163,164,177],[81,93,99,126,145,153,157,160,162,163,164,177,185,200,202],[66,81,145,153,157,160,162,163,164,177],[66,67,68,69,70,71,72,73,74,81,145,153,157,160,162,163,164,177],[64,81,145,153,157,160,162,163,164,177],[64,65,75,81,145,153,157,160,162,163,164,177],[64,65,76,81,145,153,157,160,162,163,164,177]],"fileInfos":[{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"4245fee526a7d1754529d19227ecbf3be066ff79ebb6a380d78e41648f2f224d","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"2845bd828e9724e213d5312c8510dfa66e0c1419600c86c796828273021d2ab8","signature":"c4132c5dff7bc13937c6b5fb6ded05feaafc9ca27e8ba479569b4d3dd914db01"},{"version":"79ec5aa2c5133243cd67507806fbc9bfcbaee289267e24e24275866172512e51","signature":"5ad67e46b2be16c36fa5c8d46a06709fe4462b708e0ebfaa69625dfe2d080109"},"614fb2a482f2942b9bf0fa1cc02ef91a20bdea0e5a6d20d249e8049aa3508094","72a95dbf345ec438eaeca328ac140c9c091940727465014255fca84340122a99","e58ed849ba5d24098d1393d2dd77ba352a153c6ee94768c52e47affb8cef9293","fb810299c254f2c8823434b29a9fbf543497c3bb45838c4129bbc2faccc5b9c5","36549077616f7ffb7a03b7d752749f77e3ee80cdae064c6ab6a6bdfd8e7f8664","a25e8f5303a804d3aa1524b4b4da973d04e648e4a7606f4c46e90f3fb4b20135","bb103677099155f7ce745b3585da4d9ab0091112759ef7e0dff56b1789f3ffc8","491ae9f62386ce115f527f80bf21e1d571ebc6b26f3d59353189b86060e71b9b","e3e484897a30c4185557e3c04355e800836f49b653ac561614d467fd5132367d","46e35a6f6424f761a41340824d5ad984f413d7b67b21d84c09396ca53113da83",{"version":"4f0935c152193ed016086d2a0463ec658e33ec6330020e727665c2a9a849f2b4","signature":"c9b7e7524445f5e7d175b8cb718364c537459c588ea75698559db034e0efe505"},{"version":"71ac57ea5164cd56bacab57e0678b92df094c8c5133ac95ddd8f6c21c93fa3d2","signature":"6f5894f352d2b7a8ea88c3c771b5a954c9d9db7459d8c2d77eb25d52dcb742b8"},{"version":"6e5da9faab20faaecae9de78547333a59f775ac44950758a141fb7a671ad0b80","impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"0ccdaa19852d25ecd84eec365c3bfa16e7859cadecf6e9ca6d0dbbbee439743f","affectsGlobalScope":true,"impliedFormat":1},{"version":"cc2110f7decca6bfb9392e30421cfa1436479e4a6756e8fec6cbc22625d4f881","affectsGlobalScope":true,"impliedFormat":1},{"version":"096116f8fedc1765d5bd6ef360c257b4a9048e5415054b3bf3c41b07f8951b0b","affectsGlobalScope":true,"impliedFormat":1},{"version":"e5e01375c9e124a83b52ee4b3244ed1a4d214a6cfb54ac73e164a823a4a7860a","affectsGlobalScope":true,"impliedFormat":1},{"version":"f90ae2bbce1505e67f2f6502392e318f5714bae82d2d969185c4a6cecc8af2fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"4b58e207b93a8f1c88bbf2a95ddc686ac83962b13830fe8ad3f404ffc7051fb4","affectsGlobalScope":true,"impliedFormat":1},{"version":"1fefabcb2b06736a66d2904074d56268753654805e829989a46a0161cd8412c5","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"c18a99f01eb788d849ad032b31cafd49de0b19e083fe775370834c5675d7df8e","affectsGlobalScope":true,"impliedFormat":1},{"version":"5247874c2a23b9a62d178ae84f2db6a1d54e6c9a2e7e057e178cc5eea13757fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"cdcf9ea426ad970f96ac930cd176d5c69c6c24eebd9fc580e1572d6c6a88f62c","impliedFormat":1},{"version":"23cd712e2ce083d68afe69224587438e5914b457b8acf87073c22494d706a3d0","impliedFormat":1},{"version":"156a859e21ef3244d13afeeba4e49760a6afa035c149dda52f0c45ea8903b338","impliedFormat":1},{"version":"10ec5e82144dfac6f04fa5d1d6c11763b3e4dbbac6d99101427219ab3e2ae887","impliedFormat":1},{"version":"615754924717c0b1e293e083b83503c0a872717ad5aa60ed7f1a699eb1b4ea5c","impliedFormat":1},{"version":"14e9acf826baba0ef4b5665704084896e7bcc06f65a9ab13af7e93d27d6b7069","impliedFormat":1},{"version":"68834d631c8838c715f225509cfc3927913b9cc7a4870460b5b60c8dbdb99baf","impliedFormat":1},{"version":"21adf13435b9b748529c8cedf80f884e5130b9684188120a686cd2b26a2059c7","impliedFormat":1},{"version":"eec76bf6b9346f3f95fa402621b889489e96930e72295b0369022f332e9b4a6a","impliedFormat":1},{"version":"0ecd58f413f9bc3b7d4383eae31b0c8fc576985cd7404d6f99f8c643543ade74","impliedFormat":1},{"version":"ea6bc8de8b59f90a7a3960005fd01988f98fd0784e14bc6922dde2e93305ec7d","impliedFormat":1},{"version":"36107995674b29284a115e21a0618c4c2751b32a8766dd4cb3ba740308b16d59","impliedFormat":1},{"version":"914a0ae30d96d71915fc519ccb4efbf2b62c0ddfb3a3fc6129151076bc01dc60","impliedFormat":1},{"version":"9c32412007b5662fd34a8eb04292fb5314ec370d7016d1c2fb8aa193c807fe22","impliedFormat":1},{"version":"7fd1b31fd35876b0aa650811c25ec2c97a3c6387e5473eb18004bed86cdd76b6","impliedFormat":1},{"version":"4d327f7d72ad0918275cea3eee49a6a8dc8114ae1d5b7f3f5d0774de75f7439a","impliedFormat":1},{"version":"6ebe8ebb8659aaa9d1acbf3710d7dae3e923e97610238b9511c25dc39023a166","impliedFormat":1},{"version":"e85d7f8068f6a26710bff0cc8c0fc5e47f71089c3780fbede05857331d2ddec9","impliedFormat":1},{"version":"7befaf0e76b5671be1d47b77fcc65f2b0aad91cc26529df1904f4a7c46d216e9","impliedFormat":1},{"version":"0a60a292b89ca7218b8616f78e5bbd1c96b87e048849469cccb4355e98af959a","impliedFormat":1},{"version":"0b6e25234b4eec6ed96ab138d96eb70b135690d7dd01f3dd8a8ab291c35a683a","impliedFormat":1},{"version":"9666f2f84b985b62400d2e5ab0adae9ff44de9b2a34803c2c5bd3c8325b17dc0","impliedFormat":1},{"version":"40cd35c95e9cf22cfa5bd84e96408b6fcbca55295f4ff822390abb11afbc3dca","impliedFormat":1},{"version":"b1616b8959bf557feb16369c6124a97a0e74ed6f49d1df73bb4b9ddf68acf3f3","impliedFormat":1},{"version":"5b03a034c72146b61573aab280f295b015b9168470f2df05f6080a2122f9b4df","impliedFormat":1},{"version":"40b463c6766ca1b689bfcc46d26b5e295954f32ad43e37ee6953c0a677e4ae2b","impliedFormat":1},{"version":"249b9cab7f5d628b71308c7d9bb0a808b50b091e640ba3ed6e2d0516f4a8d91d","impliedFormat":1},{"version":"d33ce35e3f9cfcc1d94eca415bdd3bde94d5b153ffdd33e6c4455c029986c630","impliedFormat":1},{"version":"80aae6afc67faa5ac0b32b5b8bc8cc9f7fa299cff15cf09cc2e11fd28c6ae29e","impliedFormat":1},{"version":"f473cd2288991ff3221165dcf73cd5d24da30391f87e85b3dd4d0450c787a391","impliedFormat":1},{"version":"499e5b055a5aba1e1998f7311a6c441a369831c70905cc565ceac93c28083d53","impliedFormat":1},{"version":"8aee8b6d4f9f62cf3776cda1305fb18763e2aade7e13cea5bbe699112df85214","impliedFormat":1},{"version":"98498b101803bb3dde9f76a56e65c14b75db1cc8bec5f4db72be541570f74fc5","impliedFormat":1},{"version":"4dc59f6e1dbf3d5f66660fceabe6c174d3261b37b696ae1854f0dbaf255fc753","impliedFormat":1},{"version":"5d0375ca7310efb77e3ef18d068d53784faf62705e0ad04569597ae0e755c401","impliedFormat":1},{"version":"59af37caec41ecf7b2e76059c9672a49e682c1a2aa6f9d7dc78878f53aa284d6","impliedFormat":1},{"version":"addf417b9eb3f938fddf8d81e96393a165e4be0d4a8b6402292f9c634b1cb00d","impliedFormat":1},{"version":"436d7b4543b340b0f3eef4310d524242e41369b9652aa9c70428767c4dcac455","impliedFormat":1},{"version":"adf27937dba6af9f08a68c5b1d3fce0ca7d4b960c57e6d6c844e7d1a8e53adae","impliedFormat":1},{"version":"12950411eeab8563b349cb7959543d92d8d02c289ed893d78499a19becb5a8cc","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"114f493b30f364255290472111b5a4791d5902c308645670cd0401429cbc6930","impliedFormat":1},{"version":"c3f5289820990ab66b70c7fb5b63cb674001009ff84b13de40619619a9c8175f","affectsGlobalScope":true,"impliedFormat":1},{"version":"b3275d55fac10b799c9546804126239baf020d220136163f763b55a74e50e750","affectsGlobalScope":true,"impliedFormat":1},{"version":"fa68a0a3b7cb32c00e39ee3cd31f8f15b80cac97dce51b6ee7fc14a1e8deb30b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1cf059eaf468efcc649f8cf6075d3cb98e9a35a0fe9c44419ec3d2f5428d7123","affectsGlobalScope":true,"impliedFormat":1},{"version":"6c36e755bced82df7fb6ce8169265d0a7bb046ab4e2cb6d0da0cb72b22033e89","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"7a93de4ff8a63bafe62ba86b89af1df0ccb5e40bb85b0c67d6bbcfdcf96bf3d4","affectsGlobalScope":true,"impliedFormat":1},{"version":"90e85f9bc549dfe2b5749b45fe734144e96cd5d04b38eae244028794e142a77e","affectsGlobalScope":true,"impliedFormat":1},{"version":"e0a5deeb610b2a50a6350bd23df6490036a1773a8a71d70f2f9549ab009e67ee","affectsGlobalScope":true,"impliedFormat":1},{"version":"d2ae155afe8a01cc0ae612d99117cf8ef16692ba7c4366590156fdec1bcf2d8c","impliedFormat":1},{"version":"3f5e5d9be35913db9fea42a63f3df0b7e3c8703b97670a2125587b4dbbd56d7c","impliedFormat":1},{"version":"8caeb65fdc3bfe0d13f86f67324fcb2d858ed1c55f1f0cce892eb1acfb9f3239","impliedFormat":1},{"version":"57c23df0b5f7a8e26363a3849b0bc7763f6b241207157c8e40089d1df4116f35","affectsGlobalScope":true,"impliedFormat":1},{"version":"3b8bc0c17b54081b0878673989216229e575d67a10874e84566a21025a2461ee","impliedFormat":1},{"version":"5b0db5a58b73498792a29bfebc333438e61906fef75da898b410e24e52229e6f","impliedFormat":1},{"version":"dbe055b2b29a7bab2c1ca8f259436306adb43f469dca7e639a02cd3695d3f621","impliedFormat":1},{"version":"1678b04557dca52feab73cc67610918a7f5e25bfdba3e7fa081acd625d93106d","impliedFormat":1},{"version":"e3905f6902f0b69e5eefc230daa69fdd4ab707a973ec2d086d65af1b3ea47ef0","impliedFormat":1},{"version":"2ea729503db9793f2691162fec3dd1118cab62e96d025f8eeb376d43ec293395","impliedFormat":1},{"version":"9ec87fea42b92894b0f209931a880789d43c3397d09dd99c631ae40a2f7071d1","impliedFormat":1},{"version":"c68e88cdfadfb6c8ba5fc38e58a3a166b0beae77b1f05b7d921150a32a5ffb8d","impliedFormat":1},{"version":"2bc7aa4fba46df0bd495425a7c8201437a7d465f83854fac859df2d67f664df3","impliedFormat":1},{"version":"41d17e1ad9a002feb11c8cdd2777e5bbc0cdb1e3f595d237e4dded0b6949983b","impliedFormat":1},{"version":"1fede9296beac11ce8e6b425396a1791f64341f2be85deebb6286faf6e16306e","affectsGlobalScope":true,"impliedFormat":1},{"version":"80219a97fd3ce5f91af5c355a264844027a899b3d9a3cd41cf6f3bc5947edc95","impliedFormat":1},{"version":"89444c76f16bf7994e230d98e1bc3f01d654de04ef02f60430d9a98d5b450a8b","impliedFormat":1},{"version":"0eb5d0cbf09de5d34542b977fd6a933bb2e0817bffe8e1a541b2f1ad1b9af1ff","impliedFormat":1},{"version":"fac3e88881b35d3a757ed891ac912b2674792c25e2a1a74e1f5fbc72d19a9792","impliedFormat":1},{"version":"2c2bdaa1d8ead9f68628d6d9d250e46ee8e81aa4898b4769a36956ae15e060fe","impliedFormat":1},{"version":"c32c840c62d8bd7aeb3147aa6754cd2d922b990a6b6634530cb2ebdce5adc8e9","impliedFormat":1},{"version":"e1c1a0b4d1ead0de9eca52203aeb1f771f21e6238d6fcd15aa56ac2a02f1b7bf","impliedFormat":1},{"version":"82b91e4e42e6c41bc7fc1b6c2dc5eba6a2ba98375eb1f210e6ff6bba2d54177e","impliedFormat":1},{"version":"6fe28249ac0c7bc19a79aa9264baf00efbd080e868dbe1d3052033ad1c64f206","affectsGlobalScope":true,"impliedFormat":1},{"version":"cbed824fec91efefc7bbdcb8b43d1a531fdbebd0e2ef19481501ff365a93cb70","impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"d0716593b3f2b0451bcf0c24cfa86dec2235c325c89f201934248b7c742715fc","impliedFormat":1},{"version":"ec501101c2a96133a6c695f934c8f6642149cc728571b29cbb7b770984c1088e","impliedFormat":1},{"version":"b214ebcf76c51b115453f69729ee8aa7b7f8eccdae2a922b568a45c2d7ff52f7","impliedFormat":1},{"version":"429c9cdfa7d126255779efd7e6d9057ced2d69c81859bbab32073bad52e9ba76","impliedFormat":1},{"version":"2991bca2cc0f0628a278df2a2ccdb8d6cbcb700f3761abbed62bba137d5b1790","impliedFormat":1},{"version":"c51b3c3f6c5aa5b121124f4b593996826aab90667f95de88c1ff13c1736e11ba","affectsGlobalScope":true,"impliedFormat":1},{"version":"230763250f20449fa7b3c9273e1967adb0023dc890d4be1553faca658ee65971","impliedFormat":1},{"version":"c3e9078b60cb329d1221f5878e88cecfa3e74460550e605a58fcfb41a66029ff","impliedFormat":1},{"version":"a74edb3bab7394a9dbde529d60632be590def2f5f01024dbd85441587fbfbbe0","impliedFormat":1},{"version":"0ea59f7d3e51440baa64f429253759b106cfcbaf51e474cae606e02265b37cf8","impliedFormat":1},{"version":"bc18a1991ba681f03e13285fa1d7b99b03b67ee671b7bc936254467177543890","impliedFormat":1},{"version":"00049ccc87f3f37726db03c01ca68fe74fd9c0109b68c29eb9923ebec2c76b13","impliedFormat":1},{"version":"fa94bbf532b7af8f394b95fa310980d6e20bd2d4c871c6a6cb9f70f03750a44b","impliedFormat":1},{"version":"7fde0e1be5c8be204ffbf428abfcf01da2eb0f130e1bc3f539eb7275f4fd1f58","impliedFormat":1},{"version":"e284328553df5f425a5d33d36a0c3fa66b46af9d097cad6f4d2e8696dfdeb0f1","affectsGlobalScope":true,"impliedFormat":1},{"version":"7fa2214bb0d64701bc6f9ce8cde2fd2ff8c571e0b23065fa04a8a5a6beb91511","impliedFormat":1},{"version":"f1c93e046fb3d9b7f8249629f4b63dc068dd839b824dd0aa39a5e68476dc9420","impliedFormat":1},{"version":"016b29bf4926b80255a108c53a1451717350059da04fcae64d1075f5e93bbb39","impliedFormat":1},{"version":"841983e39bd4cbb463be385e92fda11057cab368bf27100a801c492f1d86cbaa","impliedFormat":1},{"version":"3856f7d31d0c47ec0dded3ec552519a3cd6639c1ad7be279dd1b31abffd8cc85","impliedFormat":1},{"version":"e16b319e5aca1031168de823c4946ff8e29629c4c8cc0ec0fcfe2a8ab2155043","impliedFormat":1},{"version":"e4156ddb25aa0e3b5303d372f26957b36778f0f6bbd4326359269873295e3058","affectsGlobalScope":true,"impliedFormat":1},{"version":"cc1b433a84cae05ddc5672d4823170af78606ad21ecef60dbc4570190cbf1357","impliedFormat":1},{"version":"9d3821bc75c59577e52643324cec92fc2145642e8d17cf7ee07a3181f21d985d","impliedFormat":1},{"version":"7f78cfb2b343838612c192cb251746e3a7c62ac7675726a47e130d9b213f6580","impliedFormat":1},{"version":"201db9cf1687fab1adf5282fcba861f382b32303dc4f67c89d59655e78a25461","impliedFormat":1},{"version":"2c3c5c0f54055e87640f5d233716fd889f3034fc7911d603b642369b0dbeb2a7","impliedFormat":1},{"version":"0a20eaf2e4b1e3c1e1f87f7bccb0c936375b23b022baeea750519b7c9bc6ce83","impliedFormat":1},{"version":"b484ec11ba00e3a2235562a41898d55372ccabe607986c6fa4f4aba72093749f","impliedFormat":1},{"version":"a16b91b27bd6b706c687c88cbc8a7d4ee98e5ed6043026d6b84bda923c0aed67","impliedFormat":1},{"version":"4ebf086fa2e5ef2b65133a944cb3f8ab518a22087727dfbfc802a3654c396f2f","impliedFormat":1},{"version":"99ab6d0d660ce4d21efb52288a39fd35bb3f556980ec5463b1ae8f304a3bbc85","impliedFormat":1},{"version":"6eeded8c7e352be6e0efb83f4935ec752513c4d22043b52522b90849a49a3a11","impliedFormat":1},{"version":"6c1ad90050ffbb151cacc68e2d06ea1a26a945659391e32651f5d42b86fd7f2c","impliedFormat":1},{"version":"55cdbeebe76a1fa18bbd7e7bf73350a2173926bd3085bb050cf5a5397025ee4e","impliedFormat":1},{"version":"0c51e46ad16a1d483119debc7227cd8fb6f8534408802cef1ce23d298b5a2dd5","impliedFormat":1},{"version":"cd1ac3689ea594fc7fc0e632de1e009106506055603f6457a361e87e15624f80","impliedFormat":1},{"version":"ae77d81a5541a8abb938a0efedf9ac4bea36fb3a24cc28cfa11c598863aba571","impliedFormat":1},{"version":"556ccd493ec36c7d7cb130d51be66e147b91cc1415be383d71da0f1e49f742a9","impliedFormat":1},{"version":"b6d03c9cfe2cf0ba4c673c209fcd7c46c815b2619fd2aad59fc4229aaef2ed43","impliedFormat":1},{"version":"95aba78013d782537cc5e23868e736bec5d377b918990e28ed56110e3ae8b958","impliedFormat":1},{"version":"670a76db379b27c8ff42f1ba927828a22862e2ab0b0908e38b671f0e912cc5ed","impliedFormat":1},{"version":"13b77ab19ef7aadd86a1e54f2f08ea23a6d74e102909e3c00d31f231ed040f62","impliedFormat":1},{"version":"069bebfee29864e3955378107e243508b163e77ab10de6a5ee03ae06939f0bb9","impliedFormat":1},{"version":"c2a6a737189ced24ffe0634e9239b087e4c26378d0490f95141b9b9b042b746c","impliedFormat":1},{"version":"104c67f0da1bdf0d94865419247e20eded83ce7f9911a1aa75fc675c077ca66e","impliedFormat":1},{"version":"cc0d0b339f31ce0ab3b7a5b714d8e578ce698f1e13d7f8c60bfb766baeb1d35c","impliedFormat":1},{"version":"427fe2004642504828c1476d0af4270e6ad4db6de78c0b5da3e4c5ca95052a99","impliedFormat":1},{"version":"2eeffcee5c1661ddca53353929558037b8cf305ffb86a803512982f99bcab50d","impliedFormat":99},{"version":"9afb4cb864d297e4092a79ee2871b5d3143ea14153f62ef0bb04ede25f432030","affectsGlobalScope":true,"impliedFormat":99},{"version":"fb893a0dfc3c9fb0f9ca93d0648694dd95f33cbad2c0f2c629f842981dfd4e2e","impliedFormat":1},{"version":"89e326922cadcc2331d7e851011cf9f0456a681aaf3c95b48b81f8d80e8cdfba","impliedFormat":1},{"version":"151ff381ef9ff8da2da9b9663ebf657eac35c4c9a19183420c05728f31a6761d","impliedFormat":1},{"version":"5d08a179b846f5ee674624b349ebebe2121c455e3a265dc93da4e8d9e89722b4","impliedFormat":1},{"version":"d34aa8df2d0b18fb56b1d772ff9b3c7aea7256cf0d692f969be6e1d27b74d660","impliedFormat":1},{"version":"93a3b8e57c68e348fc4054b245bd7cf4893225f56c991028844b693c2fa8c03c","impliedFormat":1},{"version":"2f5747b1508ccf83fad0c251ba1e5da2f5a30b78b09ffa1cfaf633045160afed","impliedFormat":1},{"version":"6823ccc7b5b77bbf898d878dbcad18aa45e0fa96bdd0abd0de98d514845d9ed9","affectsGlobalScope":true,"impliedFormat":1},{"version":"b71c603a539078a5e3a039b20f2b0a0d1708967530cf97dec8850a9ca45baa2b","impliedFormat":1},{"version":"168d88e14e0d81fe170e0dadd38ae9d217476c11435ea640ddb9b7382bdb6c1f","impliedFormat":1},{"version":"8e04cf0688e0d921111659c2b55851957017148fa7b977b02727477d155b3c47","impliedFormat":1},{"version":"4f817d326453d8d578758889131c3cab8665a0aa252df1ea254a83b653422efa","impliedFormat":1},{"version":"89121c1bf2990f5219bfd802a3e7fc557de447c62058d6af68d6b6348d64499a","impliedFormat":1},{"version":"79b4369233a12c6fa4a07301ecb7085802c98f3a77cf9ab97eee27e1656f82e6","impliedFormat":1},{"version":"d4a22007b481fe2a2e6bfd3a42c00cd62d41edb36d30fc4697df2692e9891fc8","impliedFormat":1},{"version":"d3f2d715f57df3f04bf7b16dde01dec10366f64fce44503c92b8f78f614c1769","impliedFormat":1},{"version":"7e29f41b158de217f94cb9676bf9cbd0cd9b5a46e1985141ed36e075c52bf6ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac51dd7d31333793807a6abaa5ae168512b6131bd41d9c5b98477fc3b7800f9f","impliedFormat":1},{"version":"dc782ff85b2cb10075ecffc158af7bfb27ff97bf8491c917efea0c3d622d5ac4","impliedFormat":1},{"version":"be1cc4d94ea60cbe567bc29ed479d42587bf1e6cba490f123d329976b0fe4ee5","impliedFormat":1},{"version":"15fe687c59d62741b4494d5e623d497d55eb38966ecf5bea7f36e48fc3fbe15e","impliedFormat":1},{"version":"2c3b8be03577c98530ef9cb1a76e2c812636a871f367e9edf4c5f3ce702b77f8","affectsGlobalScope":true,"impliedFormat":1},{"version":"18942319aff2c9619e05c379641b571f0958506472a4b539f906be08fcccf806","impliedFormat":1},{"version":"1ba59c8bbeed2cb75b239bb12041582fa3e8ef32f8d0bd0ec802e38442d3f317","impliedFormat":1}],"root":[64,65,76,77],"options":{"composite":true,"declaration":true,"declarationMap":true,"module":99,"noFallthroughCasesInSwitch":true,"noUncheckedSideEffectImports":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":10,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[208,1],[206,2],[78,2],[204,3],[203,2],[205,2],[211,4],[207,1],[209,5],[210,1],[212,6],[214,7],[217,8],[213,9],[219,10],[215,2],[221,11],[220,2],[225,12],[228,13],[229,2],[231,14],[226,2],[232,14],[233,2],[218,2],[142,15],[143,15],[144,16],[81,17],[145,18],[146,19],[147,20],[79,2],[148,21],[149,22],[150,23],[151,24],[152,25],[153,26],[154,26],[155,27],[156,28],[157,29],[158,30],[82,2],[80,2],[159,31],[160,32],[161,33],[202,34],[162,35],[163,36],[164,35],[165,37],[166,38],[168,39],[169,40],[170,40],[171,40],[172,41],[173,42],[174,43],[175,44],[176,45],[177,46],[178,46],[179,47],[180,2],[181,2],[182,48],[183,49],[184,48],[185,50],[186,51],[187,52],[188,53],[189,54],[190,55],[191,56],[192,57],[193,58],[194,59],[195,60],[196,61],[197,62],[198,63],[199,64],[83,35],[84,2],[85,65],[86,66],[87,2],[88,67],[89,2],[133,68],[134,69],[135,70],[136,70],[137,71],[138,2],[139,18],[140,72],[141,69],[200,73],[201,74],[223,2],[224,2],[237,75],[234,2],[236,76],[222,77],[227,78],[239,79],[238,2],[230,2],[240,2],[241,80],[216,2],[167,2],[235,2],[62,2],[63,2],[12,2],[11,2],[2,2],[13,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[3,2],[21,2],[22,2],[4,2],[23,2],[27,2],[24,2],[25,2],[26,2],[28,2],[29,2],[30,2],[5,2],[31,2],[32,2],[33,2],[34,2],[6,2],[38,2],[35,2],[36,2],[37,2],[39,2],[7,2],[40,2],[45,2],[46,2],[41,2],[42,2],[43,2],[44,2],[8,2],[50,2],[47,2],[48,2],[49,2],[51,2],[9,2],[52,2],[53,2],[54,2],[56,2],[55,2],[57,2],[58,2],[10,2],[59,2],[1,2],[60,2],[61,2],[108,81],[121,82],[105,83],[122,84],[131,85],[96,86],[97,87],[95,88],[130,6],[125,89],[129,90],[99,91],[118,92],[98,93],[128,94],[93,95],[94,89],[100,96],[101,2],[107,97],[104,96],[91,98],[132,99],[123,100],[111,101],[110,96],[112,102],[115,103],[109,104],[113,105],[126,6],[102,106],[103,107],[116,108],[92,84],[120,109],[119,96],[106,107],[114,110],[117,111],[124,2],[90,2],[127,112],[67,113],[68,2],[73,2],[69,2],[75,114],[74,2],[72,2],[66,2],[71,2],[70,2],[65,115],[76,116],[77,117],[64,2]],"latestChangedDtsFile":"./types.d.ts","version":"5.8.3"}
|
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ToastConfig, ToastConfigInput, ToastLocale } from './types.js';
|
|
2
|
+
/** Default German locale — the demos run in German; override via config. */
|
|
3
|
+
export declare const defaultToastLocale: ToastLocale;
|
|
4
|
+
/** The toast's default config: bottom-end, 5 s auto-dismiss, max 4, dismissible, pause-on-hover. */
|
|
5
|
+
export declare const defaultToastConfig: ToastConfig;
|
|
6
|
+
/**
|
|
7
|
+
* Merge a partial `ToastConfigInput` over `defaultToastConfig`, validating each field
|
|
8
|
+
* (throws a `RangeError` on an invalid value).
|
|
9
|
+
*/
|
|
10
|
+
export declare function mergeToastConfig(input?: ToastConfigInput): ToastConfig;
|
|
11
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,WAAW,EAAiB,MAAM,YAAY,CAAC;AAE5F,4EAA4E;AAC5E,eAAO,MAAM,kBAAkB,EAAE,WAEhC,CAAC;AAEF,oGAAoG;AACpG,eAAO,MAAM,kBAAkB,EAAE,WAOhC,CAAC;AA4BF;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,WAAW,CAStE"}
|
package/dist/config.js
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/** Default German locale — the demos run in German; override via config. */
|
|
2
|
+
export const defaultToastLocale = {
|
|
3
|
+
close: 'Schließen',
|
|
4
|
+
};
|
|
5
|
+
/** The toast's default config: bottom-end, 5 s auto-dismiss, max 4, dismissible, pause-on-hover. */
|
|
6
|
+
export const defaultToastConfig = {
|
|
7
|
+
position: 'bottom-end',
|
|
8
|
+
durationMs: 5000,
|
|
9
|
+
max: 4,
|
|
10
|
+
dismissible: true,
|
|
11
|
+
pauseOnHover: true,
|
|
12
|
+
locale: defaultToastLocale,
|
|
13
|
+
};
|
|
14
|
+
const POSITIONS = [
|
|
15
|
+
'top-start', 'top-center', 'top-end', 'bottom-start', 'bottom-center', 'bottom-end',
|
|
16
|
+
];
|
|
17
|
+
function validPosition(v) {
|
|
18
|
+
if (typeof v === 'string' && POSITIONS.includes(v))
|
|
19
|
+
return v;
|
|
20
|
+
throw new RangeError(`toast config "position" must be one of ${POSITIONS.join(' | ')}, got ${String(v)}`);
|
|
21
|
+
}
|
|
22
|
+
/** Non-negative finite integer ms (`0` allowed = sticky/no-cap semantics per field). */
|
|
23
|
+
function nonNegativeMs(v, fallback, name) {
|
|
24
|
+
if (v === undefined)
|
|
25
|
+
return fallback;
|
|
26
|
+
if (typeof v !== 'number' || !Number.isFinite(v) || v < 0) {
|
|
27
|
+
throw new RangeError(`toast config "${name}" must be a non-negative finite number, got ${String(v)}`);
|
|
28
|
+
}
|
|
29
|
+
return v;
|
|
30
|
+
}
|
|
31
|
+
function positiveInt(v, fallback, name) {
|
|
32
|
+
if (v === undefined)
|
|
33
|
+
return fallback;
|
|
34
|
+
if (typeof v !== 'number' || !Number.isFinite(v) || v <= 0 || !Number.isInteger(v)) {
|
|
35
|
+
throw new RangeError(`toast config "${name}" must be a positive integer, got ${String(v)}`);
|
|
36
|
+
}
|
|
37
|
+
return v;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Merge a partial `ToastConfigInput` over `defaultToastConfig`, validating each field
|
|
41
|
+
* (throws a `RangeError` on an invalid value).
|
|
42
|
+
*/
|
|
43
|
+
export function mergeToastConfig(input) {
|
|
44
|
+
return {
|
|
45
|
+
position: input?.position !== undefined ? validPosition(input.position) : defaultToastConfig.position,
|
|
46
|
+
durationMs: nonNegativeMs(input?.durationMs, defaultToastConfig.durationMs, 'durationMs'),
|
|
47
|
+
max: positiveInt(input?.max, defaultToastConfig.max, 'max'),
|
|
48
|
+
dismissible: input?.dismissible ?? defaultToastConfig.dismissible,
|
|
49
|
+
pauseOnHover: input?.pauseOnHover ?? defaultToastConfig.pauseOnHover,
|
|
50
|
+
locale: { ...defaultToastLocale, ...(input?.locale ?? {}) },
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,4EAA4E;AAC5E,MAAM,CAAC,MAAM,kBAAkB,GAAgB;IAC7C,KAAK,EA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C,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;QACnF,MAAM,IAAI,UAAU,CAAC,iBAAiB,IAAI,qCAAqC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAC9F,CAAC;IACD,OAAO,CAAC,CAAC;AACX,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAwB;IACvD,OAAO;QACL,QAAQ,EAAE,KAAK,EAAE,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,QAAQ;QACrG,UAAU,EAAE,aAAa,CAAC,KAAK,EAAE,UAAU,EAAE,kBAAkB,CAAC,UAAU,EAAE,YAAY,CAAC;QACzF,GAAG,EAAE,WAAW,CAAC,KAAK,EAAE,GAAG,EAAE,kBAAkB,CAAC,GAAG,EAAE,KAAK,CAAC;QAC3D,WAAW,EAAE,KAAK,EAAE,WAAW,IAAI,kBAAkB,CAAC,WAAW;QACjE,YAAY,EAAE,KAAK,EAAE,YAAY,IAAI,kBAAkB,CAAC,YAAY;QACpE,MAAM,EAAE,EAAE,GAAG,kBAAkB,EAAE,GAAG,CAAC,KAAK,EAAE,MAAM,IAAI,EAAE,CAAC,EAAE;KAC5D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The canonical, framework-agnostic toast controller — the component family's first
|
|
3
|
+
* LIGHTWEIGHT / FEEDBACK member. Built on `@bimetal/headless-core` (same identity-stable
|
|
4
|
+
* snapshot machine), controller-only: no store, no aggregate, no undo. The app pushes an
|
|
5
|
+
* already-decided message; the controller owns the ENTIRE presentation lifecycle so it is
|
|
6
|
+
* identical across every stack — the queue, per-toast lifetime + auto-dismiss timers,
|
|
7
|
+
* manual dismiss, pause/resume (pointer-over), the `max` cap (oldest dropped), and
|
|
8
|
+
* position/variant as view hints. It knows nothing of any domain.
|
|
9
|
+
*/
|
|
10
|
+
import type { ToastController, ToastControllerOptions } from './types.js';
|
|
11
|
+
export declare function createToastController(options?: ToastControllerOptions): ToastController;
|
|
12
|
+
//# sourceMappingURL=create-controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-controller.d.ts","sourceRoot":"","sources":["../src/create-controller.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAC4B,eAAe,EAAE,sBAAsB,EAE9E,MAAM,YAAY,CAAC;AAYpB,wBAAgB,qBAAqB,CAAC,OAAO,GAAE,sBAA2B,GAAG,eAAe,CAoH3F"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The canonical, framework-agnostic toast controller — the component family's first
|
|
3
|
+
* LIGHTWEIGHT / FEEDBACK member. Built on `@bimetal/headless-core` (same identity-stable
|
|
4
|
+
* snapshot machine), controller-only: no store, no aggregate, no undo. The app pushes an
|
|
5
|
+
* already-decided message; the controller owns the ENTIRE presentation lifecycle so it is
|
|
6
|
+
* identical across every stack — the queue, per-toast lifetime + auto-dismiss timers,
|
|
7
|
+
* manual dismiss, pause/resume (pointer-over), the `max` cap (oldest dropped), and
|
|
8
|
+
* position/variant as view hints. It knows nothing of any domain.
|
|
9
|
+
*/
|
|
10
|
+
import { createControllerCore } from '@bimetal/headless-core';
|
|
11
|
+
import { mergeToastConfig } from './config.js';
|
|
12
|
+
export function createToastController(options = {}) {
|
|
13
|
+
let config = mergeToastConfig(options.config);
|
|
14
|
+
// Injectable clock seam (SSR / tests); ambient Date.now() is only the CSR fallback.
|
|
15
|
+
const clock = options.now ?? (() => Date.now());
|
|
16
|
+
let seq = 0;
|
|
17
|
+
const createId = options.createId ?? (() => `toast-${++seq}`);
|
|
18
|
+
let toasts = [];
|
|
19
|
+
const timers = new Map();
|
|
20
|
+
let paused = false;
|
|
21
|
+
let core;
|
|
22
|
+
const markChanged = () => core.markChanged();
|
|
23
|
+
function buildSnapshot() {
|
|
24
|
+
return {
|
|
25
|
+
toasts: toasts.map(t => ({ ...t })),
|
|
26
|
+
paused,
|
|
27
|
+
config: { ...config, locale: { ...config.locale } },
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
// ── Timer helpers ───────────────────────────────────────────────
|
|
31
|
+
function startTimer(id) {
|
|
32
|
+
const ts = timers.get(id);
|
|
33
|
+
if (!ts || ts.remainingMs <= 0)
|
|
34
|
+
return; // sticky / already elapsed
|
|
35
|
+
ts.startedAt = clock();
|
|
36
|
+
ts.handle = setTimeout(() => { timers.delete(id); removeToast(id); markChanged(); }, ts.remainingMs);
|
|
37
|
+
}
|
|
38
|
+
function stopTimer(id) {
|
|
39
|
+
const ts = timers.get(id);
|
|
40
|
+
if (ts?.handle != null) {
|
|
41
|
+
clearTimeout(ts.handle);
|
|
42
|
+
ts.handle = null;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
/** Remove a toast + clear its timer WITHOUT notifying (callers batch markChanged). */
|
|
46
|
+
function removeToast(id) {
|
|
47
|
+
const i = toasts.findIndex(t => t.id === id);
|
|
48
|
+
if (i === -1)
|
|
49
|
+
return false;
|
|
50
|
+
stopTimer(id);
|
|
51
|
+
timers.delete(id);
|
|
52
|
+
toasts = [...toasts.slice(0, i), ...toasts.slice(i + 1)];
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
// ── Init ────────────────────────────────────────────────────────
|
|
56
|
+
core = createControllerCore({ buildSnapshot });
|
|
57
|
+
const controller = {
|
|
58
|
+
getSnapshot() { return core.getSnapshot(); },
|
|
59
|
+
subscribe(listener) { return core.subscribe(listener); },
|
|
60
|
+
destroy() {
|
|
61
|
+
for (const id of timers.keys())
|
|
62
|
+
stopTimer(id);
|
|
63
|
+
timers.clear();
|
|
64
|
+
toasts = [];
|
|
65
|
+
core.destroy();
|
|
66
|
+
},
|
|
67
|
+
push(input) {
|
|
68
|
+
const opts = typeof input === 'string' ? { message: input } : input;
|
|
69
|
+
const toast = {
|
|
70
|
+
id: createId(),
|
|
71
|
+
message: opts.message,
|
|
72
|
+
variant: opts.variant ?? 'info',
|
|
73
|
+
durationMs: opts.durationMs ?? config.durationMs,
|
|
74
|
+
dismissible: opts.dismissible ?? config.dismissible,
|
|
75
|
+
createdAt: clock(),
|
|
76
|
+
};
|
|
77
|
+
toasts = [...toasts, toast];
|
|
78
|
+
timers.set(toast.id, { remainingMs: toast.durationMs, startedAt: clock(), handle: null });
|
|
79
|
+
// Enforce the max cap — drop the OLDEST beyond it.
|
|
80
|
+
while (toasts.length > config.max)
|
|
81
|
+
removeToast(toasts[0].id);
|
|
82
|
+
// Start the auto-dismiss timer unless sticky or currently paused.
|
|
83
|
+
if (!paused && toast.durationMs > 0 && timers.has(toast.id))
|
|
84
|
+
startTimer(toast.id);
|
|
85
|
+
markChanged();
|
|
86
|
+
return toast.id;
|
|
87
|
+
},
|
|
88
|
+
dismiss(id) { if (removeToast(id))
|
|
89
|
+
markChanged(); },
|
|
90
|
+
clear() {
|
|
91
|
+
if (toasts.length === 0)
|
|
92
|
+
return;
|
|
93
|
+
for (const id of [...timers.keys()])
|
|
94
|
+
stopTimer(id);
|
|
95
|
+
timers.clear();
|
|
96
|
+
toasts = [];
|
|
97
|
+
markChanged();
|
|
98
|
+
},
|
|
99
|
+
pause() {
|
|
100
|
+
if (paused)
|
|
101
|
+
return;
|
|
102
|
+
paused = true;
|
|
103
|
+
const t = clock();
|
|
104
|
+
for (const [, ts] of timers) {
|
|
105
|
+
if (ts.handle != null) {
|
|
106
|
+
const elapsed = t - ts.startedAt;
|
|
107
|
+
ts.remainingMs = Math.max(0, ts.remainingMs - elapsed);
|
|
108
|
+
clearTimeout(ts.handle);
|
|
109
|
+
ts.handle = null;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
markChanged();
|
|
113
|
+
},
|
|
114
|
+
resume() {
|
|
115
|
+
if (!paused)
|
|
116
|
+
return;
|
|
117
|
+
paused = false;
|
|
118
|
+
for (const id of [...timers.keys()])
|
|
119
|
+
startTimer(id);
|
|
120
|
+
markChanged();
|
|
121
|
+
},
|
|
122
|
+
setConfig(next) {
|
|
123
|
+
config = mergeToastConfig(next);
|
|
124
|
+
markChanged();
|
|
125
|
+
},
|
|
126
|
+
};
|
|
127
|
+
return controller;
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=create-controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-controller.js","sourceRoot":"","sources":["../src/create-controller.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,oBAAoB,EAAuB,MAAM,wBAAwB,CAAC;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAgB/C,MAAM,UAAU,qBAAqB,CAAC,UAAkC,EAAE;IACxE,IAAI,MAAM,GAAgB,gBAAgB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC3D,oFAAoF;IACpF,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAChD,IAAI,GAAG,GAAG,CAAC,CAAC;IACZ,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,CAAC,GAAG,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC;IAE9D,IAAI,MAAM,GAAY,EAAE,CAAC;IACzB,MAAM,MAAM,GAAG,IAAI,GAAG,EAAsB,CAAC;IAC7C,IAAI,MAAM,GAAG,KAAK,CAAC;IACnB,IAAI,IAA8C,CAAC;IACnD,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;IAE7C,SAAS,aAAa;QACpB,OAAO;YACL,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAA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Y,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;oBACxB,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC;gBACnB,CAAC;YACH,CAAC;YACD,WAAW,EAAE,CAAC;QAChB,CAAC;QAED,MAAM;YACJ,IAAI,CAAC,MAAM;gBAAE,OAAO;YACpB,MAAM,GAAG,KAAK,CAAC;YACf,KAAK,MAAM,EAAE,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC;gBAAE,UAAU,CAAC,EAAE,CAAC,CAAC;YACpD,WAAW,EAAE,CAAC;QAChB,CAAC;QAED,SAAS,CAAC,IAAuB;YAC/B,MAAM,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;YAChC,WAAW,EAAE,CAAC;QAChB,CAAC;KACF,CAAC;IAEF,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module @bimetal/toast-headless
|
|
3
|
+
*
|
|
4
|
+
* The canonical, framework-agnostic toast controller — the component family's first
|
|
5
|
+
* LIGHTWEIGHT / FEEDBACK member. Controller-only (no store, no aggregate, no undo): the
|
|
6
|
+
* app pushes an already-decided message and the controller owns the presentation
|
|
7
|
+
* lifecycle (queue, lifetime, auto-dismiss, pause/resume, variants, positioning). It has
|
|
8
|
+
* NO domain dependency — in particular, no calendar and no undo/redo knowledge.
|
|
9
|
+
*/
|
|
10
|
+
export { createToastController } from './create-controller.js';
|
|
11
|
+
export { mergeToastConfig, defaultToastConfig, defaultToastLocale } from './config.js';
|
|
12
|
+
export type { ToastController, ToastControllerOptions, ToastControllerSnapshot, Toast, ToastOptions, ToastConfig, ToastConfigInput, ToastLocale, ToastVariant, ToastPosition, } from './types.js';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEvF,YAAY,EACV,eAAe,EACf,sBAAsB,EACtB,uBAAuB,EACvB,KAAK,EACL,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,aAAa,GACd,MAAM,YAAY,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module @bimetal/toast-headless
|
|
3
|
+
*
|
|
4
|
+
* The canonical, framework-agnostic toast controller — the component family's first
|
|
5
|
+
* LIGHTWEIGHT / FEEDBACK member. Controller-only (no store, no aggregate, no undo): the
|
|
6
|
+
* app pushes an already-decided message and the controller owns the presentation
|
|
7
|
+
* lifecycle (queue, lifetime, auto-dismiss, pause/resume, variants, positioning). It has
|
|
8
|
+
* NO domain dependency — in particular, no calendar and no undo/redo knowledge.
|
|
9
|
+
*/
|
|
10
|
+
export { createToastController } from './create-controller.js';
|
|
11
|
+
export { mergeToastConfig, defaultToastConfig, defaultToastLocale } from './config.js';
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Framework-agnostic types for the canonical toast controller.
|
|
3
|
+
*
|
|
4
|
+
* The toast is the component family's first LIGHTWEIGHT / FEEDBACK member. It knows
|
|
5
|
+
* nothing of any domain (no calendar, no undo/redo): the app hands it a already-decided
|
|
6
|
+
* message via `push(...)`, and the controller owns the presentation lifecycle — queue,
|
|
7
|
+
* lifetime, auto-dismiss, manual close, pause-on-hover, variants, positioning hint.
|
|
8
|
+
*/
|
|
9
|
+
/** Semantic variant — drives the toast's colour/icon in the theme layer. */
|
|
10
|
+
export type ToastVariant = 'info' | 'success' | 'warning' | 'error';
|
|
11
|
+
/** Where the toast stack anchors on screen (a VIEW hint — the binding positions it). */
|
|
12
|
+
export type ToastPosition = 'top-start' | 'top-center' | 'top-end' | 'bottom-start' | 'bottom-center' | 'bottom-end';
|
|
13
|
+
/** The already-decided message the app enqueues. Everything but `message` is optional
|
|
14
|
+
* and falls back to the controller config. */
|
|
15
|
+
export interface ToastOptions {
|
|
16
|
+
readonly message: string;
|
|
17
|
+
readonly variant?: ToastVariant;
|
|
18
|
+
/** Auto-dismiss delay in ms; `0` = sticky (stays until dismissed). Defaults to config. */
|
|
19
|
+
readonly durationMs?: number;
|
|
20
|
+
/** Whether this toast shows a close affordance. Defaults to config. */
|
|
21
|
+
readonly dismissible?: boolean;
|
|
22
|
+
}
|
|
23
|
+
/** A live toast on the stack (fully resolved — every field concrete). */
|
|
24
|
+
export interface Toast {
|
|
25
|
+
readonly id: string;
|
|
26
|
+
readonly message: string;
|
|
27
|
+
readonly variant: ToastVariant;
|
|
28
|
+
/** Resolved auto-dismiss delay; `0` = sticky. */
|
|
29
|
+
readonly durationMs: number;
|
|
30
|
+
readonly dismissible: boolean;
|
|
31
|
+
/** Creation timestamp (`config`-injectable clock), for ordering/animation. */
|
|
32
|
+
readonly createdAt: number;
|
|
33
|
+
}
|
|
34
|
+
/** All user-facing strings for the toast UI. */
|
|
35
|
+
export interface ToastLocale {
|
|
36
|
+
/** Accessible name for the close button. */
|
|
37
|
+
close: string;
|
|
38
|
+
}
|
|
39
|
+
/** The fully-merged toast config. */
|
|
40
|
+
export interface ToastConfig {
|
|
41
|
+
/** Anchor of the stack (view hint). Default `bottom-end`. */
|
|
42
|
+
position: ToastPosition;
|
|
43
|
+
/** Default auto-dismiss delay (ms); `0` = sticky. Default 5000. */
|
|
44
|
+
durationMs: number;
|
|
45
|
+
/** Max simultaneously-visible toasts; older ones are dropped past this. Default 4. */
|
|
46
|
+
max: number;
|
|
47
|
+
/** Whether toasts show a close button by default. Default true. */
|
|
48
|
+
dismissible: boolean;
|
|
49
|
+
/** Pause auto-dismiss while the pointer is over the stack (binding calls pause/resume). Default true. */
|
|
50
|
+
pauseOnHover: boolean;
|
|
51
|
+
locale: ToastLocale;
|
|
52
|
+
}
|
|
53
|
+
/** Partial, user-facing config (all fields optional, merged over the defaults). */
|
|
54
|
+
export interface ToastConfigInput {
|
|
55
|
+
position?: ToastPosition;
|
|
56
|
+
durationMs?: number;
|
|
57
|
+
max?: number;
|
|
58
|
+
dismissible?: boolean;
|
|
59
|
+
pauseOnHover?: boolean;
|
|
60
|
+
locale?: Partial<ToastLocale>;
|
|
61
|
+
}
|
|
62
|
+
/** Options accepted by `createToastController`. */
|
|
63
|
+
export interface ToastControllerOptions {
|
|
64
|
+
config?: ToastConfigInput;
|
|
65
|
+
/** Id generator (tests) — defaults to a monotonic in-controller counter. */
|
|
66
|
+
createId?: () => string;
|
|
67
|
+
/** Clock (tests) — defaults to `() => Date.now()`. */
|
|
68
|
+
now?: () => number;
|
|
69
|
+
}
|
|
70
|
+
/** Identity-stable view of the toast stack (the `useSyncExternalStore` contract). */
|
|
71
|
+
export interface ToastControllerSnapshot {
|
|
72
|
+
/** The visible toasts, oldest → newest. */
|
|
73
|
+
readonly toasts: readonly Toast[];
|
|
74
|
+
/** Whether auto-dismiss is currently paused (e.g. pointer over the stack). */
|
|
75
|
+
readonly paused: boolean;
|
|
76
|
+
readonly config: ToastConfig;
|
|
77
|
+
}
|
|
78
|
+
/** The canonical toast controller. Framework bindings only subscribe, render the
|
|
79
|
+
* snapshot, and forward `push`/`dismiss`/`pause`/`resume`. */
|
|
80
|
+
export interface ToastController {
|
|
81
|
+
/** Returns the current identity-stable snapshot; unchanged (`===`) until state changes. */
|
|
82
|
+
getSnapshot(): ToastControllerSnapshot;
|
|
83
|
+
/** Registers a listener invoked after any state change; returns an unsubscribe function. */
|
|
84
|
+
subscribe(listener: () => void): () => void;
|
|
85
|
+
/** Tears down the controller (clears every pending timer, releases listeners). */
|
|
86
|
+
destroy(): void;
|
|
87
|
+
/** Enqueue a toast (pass a string as shorthand for `{ message }`). Returns its id.
|
|
88
|
+
* Starts the auto-dismiss timer unless the toast is sticky (`durationMs === 0`) or
|
|
89
|
+
* the stack is currently paused. Past `config.max`, the OLDEST toast is dropped. */
|
|
90
|
+
push(toast: ToastOptions | string): string;
|
|
91
|
+
/** Dismiss one toast by id (no-op if unknown); clears its timer. */
|
|
92
|
+
dismiss(id: string): void;
|
|
93
|
+
/** Dismiss every toast and clear all timers. */
|
|
94
|
+
clear(): void;
|
|
95
|
+
/** Pause all auto-dismiss timers, preserving each toast's remaining time. */
|
|
96
|
+
pause(): void;
|
|
97
|
+
/** Resume auto-dismiss with each toast's preserved remaining time. */
|
|
98
|
+
resume(): void;
|
|
99
|
+
/** Replace the merged config (does not retroactively re-time existing toasts). */
|
|
100
|
+
setConfig(config?: ToastConfigInput): void;
|
|
101
|
+
}
|
|
102
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,4EAA4E;AAC5E,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAEpE,wFAAwF;AACxF,MAAM,MAAM,aAAa,GACrB,WAAW,GAAG,YAAY,GAAG,SAAS,GACtC,cAAc,GAAG,eAAe,GAAG,YAAY,CAAC;AAEpD;+CAC+C;AAC/C,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAA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AsB;IACrC,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,MAAM,MAAM,CAAC;IACxB,sDAAsD;IACtD,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;CACpB;AAED,qFAAqF;AACrF,MAAM,WAAW,uBAAuB;IACtC,2CAA2C;IAC3C,QAAQ,CAAC,MAAM,EAAE,SAAS,KAAK,EAAE,CAAC;IAClC,8EAA8E;IAC9E,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;CAC9B;AAED;+DAC+D;AAC/D,MAAM,WAAW,eAAe;IAC9B,2FAA2F;IAC3F,WAAW,IAAI,uBAAuB,CAAC;IACvC,4FAA4F;IAC5F,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC;IAC5C,kFAAkF;IAClF,OAAO,IAAI,IAAI,CAAC;IAEhB;;yFAEqF;IACrF,IAAI,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC;IAC3C,oEAAoE;IACpE,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,gDAAgD;IAChD,KAAK,IAAI,IAAI,CAAC;IACd,6EAA6E;IAC7E,KAAK,IAAI,IAAI,CAAC;IACd,sEAAsE;IACtE,MAAM,IAAI,IAAI,CAAC;IACf,kFAAkF;IAClF,SAAS,CAAC,MAAM,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;CAC5C"}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Framework-agnostic types for the canonical toast controller.
|
|
3
|
+
*
|
|
4
|
+
* The toast is the component family's first LIGHTWEIGHT / FEEDBACK member. It knows
|
|
5
|
+
* nothing of any domain (no calendar, no undo/redo): the app hands it a already-decided
|
|
6
|
+
* message via `push(...)`, and the controller owns the presentation lifecycle — queue,
|
|
7
|
+
* lifetime, auto-dismiss, manual close, pause-on-hover, variants, positioning hint.
|
|
8
|
+
*/
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG"}
|
package/package.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bimetal/toast-headless",
|
|
3
|
+
"version": "0.35.0",
|
|
4
|
+
"description": "Canonical, framework-agnostic toast controller (createToastController) on @bimetal/headless-core. The family's first LIGHTWEIGHT / FEEDBACK component — controller-only (no store, no aggregate, no undo). Owns the presentation lifecycle: queue, per-toast lifetime + auto-dismiss, manual close, pause-on-hover, variants, positioning. No domain dependency (no calendar, no undo/redo).",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist",
|
|
16
|
+
"README.md",
|
|
17
|
+
"LICENSE"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "tsc -b",
|
|
21
|
+
"dev": "tsc -b --watch",
|
|
22
|
+
"typecheck": "tsc --noEmit -p tsconfig.test.json",
|
|
23
|
+
"test": "vitest run",
|
|
24
|
+
"test:watch": "vitest",
|
|
25
|
+
"prepublishOnly": "npm run build"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@bimetal/headless-core": "^0.35.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"vitest": "^3.2.4"
|
|
32
|
+
},
|
|
33
|
+
"sideEffects": false,
|
|
34
|
+
"license": "Apache-2.0",
|
|
35
|
+
"author": "Andreas Biederbeck",
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "https://github.com/bimetal/bimetal.git",
|
|
39
|
+
"directory": "packages/toast/toast-headless"
|
|
40
|
+
},
|
|
41
|
+
"keywords": [
|
|
42
|
+
"toast",
|
|
43
|
+
"notification",
|
|
44
|
+
"snackbar",
|
|
45
|
+
"feedback",
|
|
46
|
+
"headless",
|
|
47
|
+
"controller",
|
|
48
|
+
"framework-agnostic",
|
|
49
|
+
"a11y"
|
|
50
|
+
]
|
|
51
|
+
}
|