@wirestate/lit-signals 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,64 @@
1
+ ## 0.6.3
2
+
3
+ - Update readme files for each module
4
+
5
+ ## 0.6.2
6
+
7
+ - Corrected build system, react package structure
8
+
9
+ ## 0.6.1
10
+
11
+ - React related types moved to react lib
12
+ - Avoid prefixed I/T types
13
+
14
+ ## 0.6.0
15
+
16
+ - Split wirestate as separate @wirestate packages
17
+
18
+ ## 0.5.0
19
+
20
+ - Add default initial state param on creation of containers
21
+ - Explicit typing for query callers, export new types
22
+ - For wire-scope add missing optional query/command/resolve methods
23
+ - Add sourcemaps in lib bundles
24
+ - Add `signals` entry for variants of storage usage without mobx
25
+
26
+ ## 0.4.0
27
+
28
+ - Add `OnActivated` decorator
29
+ - Add `OnDeactivated` decorator
30
+ - `initialState` -> `seed`
31
+ - `type` -> `bindingType`
32
+ - `scopeType` -> `bindingScopeType`
33
+ - Emit events with two params instead of manually composed object, signal `from`
34
+ - Add commands module
35
+ - Add WireScope shared class for managing of wirestate events, queries and commands
36
+ - Remove abstract service in favor of WireScope usage
37
+ - Signals -> events
38
+ - `useOptionalInjection` -> add fallback handler
39
+
40
+ ## 0.3.0
41
+
42
+ - Rename `createServicesProvider` to `createInjectablesProvider`
43
+ - Add `useSignals`, `useSignalHandler` hooks for better signal handling ergonomics
44
+ - Add `useOptionalInjection` hook for safe resolution of optional dependencies
45
+ - Support optional queries via `queryOptional`, `useOptionalQueryCaller`, and `useOptionalSyncQueryCaller`
46
+ - Support merging of initial states when multiple providers co-exist
47
+ - Add more re-exports from `mobx` and `inversify` for easier consumer usage
48
+ - Improve test coverage, extend test utilities
49
+ - Correctly notify about `IS_DISPOSED` after deactivation of services
50
+
51
+ ## 0.2.0
52
+
53
+ - Activate and deactivate services in stack ordering
54
+ - Portable libs will not fail with react compiler builds
55
+ - Extend test-utils
56
+ - Increasing test coverage
57
+ - Error handling / custom error class
58
+ - Allow addition of constant bindings in the IOC container
59
+ - useService -> useInjection
60
+ - AbstractService::getService -> AbstractService::resolve
61
+
62
+ ## 0.1.1
63
+
64
+ - Initial release
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Syrotenko Igor
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,16 @@
1
+ # @wirestate/lit-signals
2
+
3
+ [![npm](https://img.shields.io/npm/v/@wirestate/lit-signals.svg?style=flat-square)](https://www.npmjs.com/package/@wirestate/lit-signals)
4
+ [![license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/Neloreck/wirestate/blob/master/LICENSE)
5
+
6
+ Re-exports `@lit-labs/signals` for use with wirestate services in Lit elements.
7
+
8
+ ## Installation
9
+
10
+ ```bash
11
+ npm install @wirestate/lit-signals @lit-labs/signals
12
+ ```
13
+
14
+ ## License
15
+
16
+ MIT
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+
3
+ var signals = require('@lit-labs/signals');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "Computed", {
8
+ enumerable: true,
9
+ get: function () { return signals.Computed; }
10
+ });
11
+ Object.defineProperty(exports, "Signal", {
12
+ enumerable: true,
13
+ get: function () { return signals.Signal; }
14
+ });
15
+ Object.defineProperty(exports, "SignalWatcher", {
16
+ enumerable: true,
17
+ get: function () { return signals.SignalWatcher; }
18
+ });
19
+ Object.defineProperty(exports, "WatchDirective", {
20
+ enumerable: true,
21
+ get: function () { return signals.WatchDirective; }
22
+ });
23
+ Object.defineProperty(exports, "computed", {
24
+ enumerable: true,
25
+ get: function () { return signals.computed; }
26
+ });
27
+ Object.defineProperty(exports, "signal", {
28
+ enumerable: true,
29
+ get: function () { return signals.signal; }
30
+ });
31
+ Object.defineProperty(exports, "svg", {
32
+ enumerable: true,
33
+ get: function () { return signals.svg; }
34
+ });
35
+ Object.defineProperty(exports, "watch", {
36
+ enumerable: true,
37
+ get: function () { return signals.watch; }
38
+ });
39
+ Object.defineProperty(exports, "withWatch", {
40
+ enumerable: true,
41
+ get: function () { return signals.withWatch; }
42
+ });
43
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1 @@
1
+ "use strict";var e=require("@lit-labs/signals");Object.defineProperty(exports,"Computed",{enumerable:!0,get:function(){return e.Computed}}),Object.defineProperty(exports,"Signal",{enumerable:!0,get:function(){return e.Signal}}),Object.defineProperty(exports,"SignalWatcher",{enumerable:!0,get:function(){return e.SignalWatcher}}),Object.defineProperty(exports,"WatchDirective",{enumerable:!0,get:function(){return e.WatchDirective}}),Object.defineProperty(exports,"computed",{enumerable:!0,get:function(){return e.computed}}),Object.defineProperty(exports,"signal",{enumerable:!0,get:function(){return e.signal}}),Object.defineProperty(exports,"svg",{enumerable:!0,get:function(){return e.svg}}),Object.defineProperty(exports,"watch",{enumerable:!0,get:function(){return e.watch}}),Object.defineProperty(exports,"withWatch",{enumerable:!0,get:function(){return e.withWatch}});//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export { Computed, Signal, SignalWatcher, WatchDirective, computed, signal, svg, watch, withWatch } from '@lit-labs/signals';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export{Computed,Signal,SignalWatcher,WatchDirective,computed,signal,svg,watch,withWatch}from"@lit-labs/signals";//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { Signal } from 'signal-polyfill';
2
+ export { Computed, Signal, SignalWatcher, WatchDirective, WatchDirectiveFunction, computed, signal, svg, watch, withWatch } from '@lit-labs/signals';
3
+
4
+ type State<T> = Signal.State<T>;
5
+
6
+ export type { State };
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@wirestate/lit-signals",
3
+ "version": "0.6.0",
4
+ "description": "Signals re-exports for wirestate lit elements",
5
+ "sideEffects": false,
6
+ "author": "Syrotenko Igor",
7
+ "homepage": "https://github.com/neloreck/wirestate#readme",
8
+ "license": "MIT",
9
+ "main": "./cjs/development/index.js",
10
+ "module": "./esm/development/index.js",
11
+ "types": "./index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "types": "./index.d.ts",
15
+ "import": {
16
+ "production": "./esm/production/index.js",
17
+ "default": "./esm/development/index.js"
18
+ },
19
+ "require": {
20
+ "production": "./cjs/production/index.js",
21
+ "default": "./cjs/development/index.js"
22
+ }
23
+ }
24
+ },
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "git+https://github.com/neloreck/wirestate.git"
28
+ },
29
+ "bugs": {
30
+ "url": "https://github.com/neloreck/wirestate/issues"
31
+ },
32
+ "keywords": [
33
+ "class-based",
34
+ "declarative",
35
+ "management",
36
+ "manager",
37
+ "signals",
38
+ "lit",
39
+ "lit-element",
40
+ "web-components",
41
+ "inversify",
42
+ "ioc",
43
+ "di",
44
+ "dependency-injection",
45
+ "state",
46
+ "store",
47
+ "typescript"
48
+ ],
49
+ "dependencies": {},
50
+ "peerDependencies": {
51
+ "@lit-labs/signals": ">=0.2.0",
52
+ "signal-polyfill": ">=0.2.0"
53
+ },
54
+ "optionalDependencies": {}
55
+ }