@furystack/shades 11.0.32 → 11.0.33
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 +6 -103
- package/README.md +8 -0
- package/esm/components/router.d.ts +2 -2
- package/esm/components/router.d.ts.map +1 -1
- package/esm/services/location-service.d.ts +1 -1
- package/esm/services/location-service.d.ts.map +1 -1
- package/esm/services/location-service.js +0 -1
- package/esm/services/location-service.js.map +1 -1
- package/esm/styled-shade.d.ts +8 -1
- package/esm/styled-shade.d.ts.map +1 -1
- package/esm/styled-shade.js +9 -16
- package/esm/styled-shade.js.map +1 -1
- package/package.json +6 -6
- package/src/components/router.tsx +2 -2
- package/src/services/location-service.tsx +1 -2
- package/src/styled-shade.ts +22 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,108 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
3
|
+
## [11.0.33] - 2026-01-22
|
|
5
4
|
|
|
6
|
-
###
|
|
5
|
+
### ⬆️ Dependencies
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
- Dependency updates
|
|
9
8
|
|
|
10
|
-
###
|
|
9
|
+
### 🔧 Chores
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
### [4.0.3](https://github.com/furystack/furystack/compare/@furystack/shades@4.0.1...@furystack/shades@4.0.3) (2022-01-10)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @furystack/shades
|
|
17
|
-
|
|
18
|
-
### [4.0.2](https://github.com/furystack/furystack/compare/@furystack/shades@4.0.1...@furystack/shades@4.0.2) (2022-01-10)
|
|
19
|
-
|
|
20
|
-
**Note:** Version bump only for package @furystack/shades
|
|
21
|
-
|
|
22
|
-
### [4.0.1](https://github.com/furystack/furystack/compare/@furystack/shades@4.0.0...@furystack/shades@4.0.1) (2021-12-20)
|
|
23
|
-
|
|
24
|
-
**Note:** Version bump only for package @furystack/shades
|
|
25
|
-
|
|
26
|
-
## [4.0.0](https://github.com/furystack/furystack/compare/@furystack/shades@3.7.3...@furystack/shades@4.0.0) (2021-12-08)
|
|
27
|
-
|
|
28
|
-
### ⚠ BREAKING CHANGES
|
|
29
|
-
|
|
30
|
-
- **@furystack/shades:** Disposable resources on Shade Components (#165)
|
|
31
|
-
- **@furystack/shades:** Routing based on pathname, add basic unit tests for component factory (#164)
|
|
32
|
-
|
|
33
|
-
- **@furystack/shades:** Routing based on pathname, add basic unit tests for component factory ([#164](https://github.com/furystack/furystack/issues/164)) ([3221e0c](https://github.com/furystack/furystack/commit/3221e0ce60d3532b6e5f570db64d211e479673ec))
|
|
34
|
-
|
|
35
|
-
### 🚀 What's new
|
|
36
|
-
|
|
37
|
-
- **@furystack/shades:** Disposable resources on Shade Components ([#165](https://github.com/furystack/furystack/issues/165)) ([8567e7e](https://github.com/furystack/furystack/commit/8567e7e2e01cec232a5f4448dfc0833c1f183229))
|
|
38
|
-
|
|
39
|
-
### [3.7.3](https://github.com/furystack/furystack/compare/@furystack/shades@3.7.2...@furystack/shades@3.7.3) (2021-11-30)
|
|
40
|
-
|
|
41
|
-
**Note:** Version bump only for package @furystack/shades
|
|
42
|
-
|
|
43
|
-
### [3.7.2](https://github.com/furystack/furystack/compare/@furystack/shades@3.7.1...@furystack/shades@3.7.2) (2021-11-29)
|
|
44
|
-
|
|
45
|
-
**Note:** Version bump only for package @furystack/shades
|
|
46
|
-
|
|
47
|
-
### [3.7.1](https://github.com/furystack/furystack/compare/@furystack/shades@3.7.0...@furystack/shades@3.7.1) (2021-11-19)
|
|
48
|
-
|
|
49
|
-
**Note:** Version bump only for package @furystack/shades
|
|
50
|
-
|
|
51
|
-
## [3.7.0](https://github.com/furystack/furystack/compare/@furystack/shades@3.6.6...@furystack/shades@3.7.0) (2021-11-17)
|
|
52
|
-
|
|
53
|
-
### 🚀 What's new
|
|
54
|
-
|
|
55
|
-
- **@furystack/shades:** Attach Data attributes to native elements ([6225bcb](https://github.com/furystack/furystack/commit/6225bcb0cb6fd311f6761317a86d4d0e5b30bb3e))
|
|
56
|
-
|
|
57
|
-
### [3.6.6](https://github.com/furystack/furystack/compare/@furystack/shades@3.6.5...@furystack/shades@3.6.6) (2021-11-09)
|
|
58
|
-
|
|
59
|
-
**Note:** Version bump only for package @furystack/shades
|
|
60
|
-
|
|
61
|
-
### [3.6.5](https://github.com/furystack/furystack/compare/@furystack/shades@3.6.4...@furystack/shades@3.6.5) (2021-10-15)
|
|
62
|
-
|
|
63
|
-
**Note:** Version bump only for package @furystack/shades
|
|
64
|
-
|
|
65
|
-
### [3.6.4](https://github.com/furystack/furystack/compare/@furystack/shades@3.6.3...@furystack/shades@3.6.4) (2021-10-05)
|
|
66
|
-
|
|
67
|
-
**Note:** Version bump only for package @furystack/shades
|
|
68
|
-
|
|
69
|
-
### [3.6.3](https://github.com/furystack/furystack/compare/@furystack/shades@3.6.2...@furystack/shades@3.6.3) (2021-09-16)
|
|
70
|
-
|
|
71
|
-
**Note:** Version bump only for package @furystack/shades
|
|
72
|
-
|
|
73
|
-
### [3.6.2](https://github.com/furystack/furystack/compare/@furystack/shades@3.6.1...@furystack/shades@3.6.2) (2021-08-27)
|
|
74
|
-
|
|
75
|
-
**Note:** Version bump only for package @furystack/shades
|
|
76
|
-
|
|
77
|
-
### [3.6.1](https://github.com/furystack/furystack/compare/@furystack/shades@3.6.0...@furystack/shades@3.6.1) (2021-08-19)
|
|
78
|
-
|
|
79
|
-
**Note:** Version bump only for package @furystack/shades
|
|
80
|
-
|
|
81
|
-
## [3.6.0](https://github.com/furystack/furystack/compare/@furystack/shades@3.2.10...@furystack/shades@3.6.0) (2021-08-19)
|
|
82
|
-
|
|
83
|
-
### 🚀 What's new
|
|
84
|
-
|
|
85
|
-
- **project:** re-added Shades ([#120](https://github.com/furystack/furystack/issues/120)) ([9f58174](https://github.com/furystack/furystack/commit/9f58174b3762fd4e4106f48215a72ec295cf2553))
|
|
86
|
-
- **Shades:** Added Screen service ([9f836d7](https://github.com/furystack/furystack/commit/9f836d7af4df38f067b387f8755dac8b7a0c98e2))
|
|
87
|
-
|
|
88
|
-
### 🐛 Bug Fixes
|
|
89
|
-
|
|
90
|
-
- **shades:** Orientation detection with media query ([f551318](https://github.com/furystack/furystack/commit/f5513183560a351ff1a3fd93353c42968543b88c))
|
|
91
|
-
|
|
92
|
-
## [3.5.0](https://github.com/furystack/furystack/compare/@furystack/shades@3.2.10...@furystack/shades@3.5.0) (2021-07-31)
|
|
93
|
-
|
|
94
|
-
### 🚀 What's new
|
|
95
|
-
|
|
96
|
-
- **project:** re-added Shades ([#120](https://github.com/furystack/furystack/issues/120)) ([9f58174](https://github.com/furystack/furystack/commit/9f58174b3762fd4e4106f48215a72ec295cf2553))
|
|
97
|
-
- **Shades:** Added Screen service ([9f836d7](https://github.com/furystack/furystack/commit/9f836d7af4df38f067b387f8755dac8b7a0c98e2))
|
|
98
|
-
|
|
99
|
-
### 🐛 Bug Fixes
|
|
100
|
-
|
|
101
|
-
- **shades:** Orientation detection with media query ([f551318](https://github.com/furystack/furystack/commit/f5513183560a351ff1a3fd93353c42968543b88c))
|
|
102
|
-
|
|
103
|
-
## [3.4.0](https://github.com/furystack/furystack/compare/@furystack/shades@3.2.10...@furystack/shades@3.4.0) (2021-07-30)
|
|
104
|
-
|
|
105
|
-
### 🚀 What's new
|
|
106
|
-
|
|
107
|
-
- **project:** re-added Shades ([#120](https://github.com/furystack/furystack/issues/120)) ([9f58174](https://github.com/furystack/furystack/commit/9f58174b3762fd4e4106f48215a72ec295cf2553))
|
|
108
|
-
- **Shades:** Added Screen service ([9f836d7](https://github.com/furystack/furystack/commit/9f836d7af4df38f067b387f8755dac8b7a0c98e2))
|
|
11
|
+
- Migrated to centralized changelog management system
|
package/README.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Shades is a UI library for FuryStack that uses type-safe JSX components, unidirectional data binding, and the same DI/IoC, logging, and utility libraries as FuryStack backend services.
|
|
4
4
|
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @furystack/shades
|
|
9
|
+
# or
|
|
10
|
+
yarn add @furystack/shades
|
|
11
|
+
```
|
|
12
|
+
|
|
5
13
|
## Usage
|
|
6
14
|
|
|
7
15
|
You can check the [@furystack/boilerplate](https://github.com/furystack/boilerplate) repository for a working example.
|
|
@@ -16,8 +16,8 @@ export interface RouterProps {
|
|
|
16
16
|
notFound?: JSX.Element;
|
|
17
17
|
}
|
|
18
18
|
export interface RouterState {
|
|
19
|
-
activeRoute?: Route<
|
|
20
|
-
activeRouteParams?:
|
|
19
|
+
activeRoute?: Route<unknown> | null;
|
|
20
|
+
activeRouteParams?: unknown;
|
|
21
21
|
jsx: JSX.Element;
|
|
22
22
|
}
|
|
23
23
|
export declare const Router: (props: RouterProps & Omit<Partial<HTMLElement>, "style"> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/components/router.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAG/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAKhE,MAAM,WAAW,KAAK,CAAC,YAAY,GAAG,OAAO;IAC3C,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,CAAC,OAAO,EAAE;QACnB,UAAU,EAAE,MAAM,CAAA;QAClB,KAAK,EAAE,WAAW,CAAC,YAAY,SAAS,MAAM,GAAG,YAAY,GAAG,MAAM,CAAC,CAAA;KACxE,KAAK,GAAG,CAAC,OAAO,CAAA;IACjB,cAAc,CAAC,EAAE,YAAY,CAAA;IAC7B,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,CAAC,OAAO,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,C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AE,GAAG,CAAC,OAAO,CAAA;CACvB;AAED,MAAM,WAAW,WAAW;IAC1B,WAAW,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,IAAI,CAAA;IACnC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,GAAG,EAAE,GAAG,CAAC,OAAO,CAAA;CACjB;AACD,eAAO,MAAM,MAAM;;gEA0DjB,CAAA"}
|
|
@@ -20,7 +20,7 @@ export declare class LocationService implements Disposable {
|
|
|
20
20
|
* Observable value that will be updated when the location search (e.g. ?search=1) changes
|
|
21
21
|
*/
|
|
22
22
|
onLocationSearchChanged: ObservableValue<string>;
|
|
23
|
-
onDeserializedLocationSearchChanged: ObservableValue<
|
|
23
|
+
onDeserializedLocationSearchChanged: ObservableValue<Record<string, unknown>>;
|
|
24
24
|
locationDeserializerObserver: import("@furystack/utils").ValueObserver<string>;
|
|
25
25
|
updateState: () => void;
|
|
26
26
|
readonly searchParamObservables: Map<string, ObservableValue<any>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location-service.d.ts","sourceRoot":"","sources":["../../src/services/location-service.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"location-service.d.ts","sourceRoot":"","sources":["../../src/services/location-service.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC7D,OAAO,EACL,sBAAsB,IAAI,6BAA6B,EACvD,sBAAsB,IAAI,6BAA6B,EACxD,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,qBACa,eAAgB,YAAW,UAAU;IAE9C,OAAO,CAAC,QAAQ,CAAC,sBAAsB;aAEvB,sBAAsB;gBAFrB,sBAAsB,+CAAgC,EAEvD,sBAAsB,uDAAgC;IAoBxE,OAAO,CAAC,iBAAiB,CAAiC;IAC1D,OAAO,CAAC,oBAAoB,CAAoC;IAEzD,CAAC,MAAM,CAAC,OAAO,CAAC;IAYvB;;OAEG;IACI,qBAAqB,0BAAuD;IAEnF;;OAEG;IACI,qBAAqB,0BAAsD;IAElF;;OAEG;IACI,uBAAuB,0BAA+C;IAEtE,mCAAmC,EAAE,eAAe,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;IAE7E,4BAA4B,mDAEjC;IAEK,WAAW,aAIL;IAEb,SAAgB,sBAAsB,oCAA0C;IAEhF;;;;;OAKG;IACI,cAAc,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC;IA+BrD,OAAO,CAAC,gBAAgB,CAEvB;IAED,OAAO,CAAC,kBAAkB,CAEb;CACd;AAED,eAAO,MAAM,8BAA8B,GACzC,UAAU,QAAQ,EAClB,WAAW,OAAO,6BAA6B,EAC/C,aAAa,OAAO,6BAA6B,SAQlD,CAAA"}
|
|
@@ -7,7 +7,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
11
10
|
import { Injectable } from '@furystack/inject';
|
|
12
11
|
import { deserializeQueryString as defaultDeserializeQueryString, serializeToQueryString as defaultSerializeToQueryString, } from '@furystack/rest';
|
|
13
12
|
import { ObservableValue } from '@furystack/utils';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location-service.js","sourceRoot":"","sources":["../../src/services/location-service.tsx"],"names":[],"mappings":";;;;;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"location-service.js","sourceRoot":"","sources":["../../src/services/location-service.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAiB,MAAM,mBAAmB,CAAA;AAC7D,OAAO,EACL,sBAAsB,IAAI,6BAA6B,E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AAmB,CAAC,eAAe,EAAE,eAAe,CAAC,CAAA;AAChE,CAAC,CAAA"}
|
package/esm/styled-shade.d.ts
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import type { ChildrenList } from './models/children-list.js';
|
|
2
|
+
/**
|
|
3
|
+
* Props constraint for styled components - must have an optional style property
|
|
4
|
+
*/
|
|
5
|
+
type StyledProps = {
|
|
6
|
+
style?: Partial<CSSStyleDeclaration>;
|
|
7
|
+
};
|
|
2
8
|
/**
|
|
3
9
|
* Creates a shortcut for a specific custom Shade element with additional styles
|
|
4
10
|
* @param element The element instance
|
|
5
11
|
* @param styles The additional styles to add
|
|
6
12
|
* @returns The updated element
|
|
7
13
|
*/
|
|
8
|
-
export declare const styledShade: <
|
|
14
|
+
export declare const styledShade: <TProps extends StyledProps>(element: (props: TProps, children?: ChildrenList) => JSX.Element, styles: Partial<CSSStyleDeclaration>) => ((props: TProps, children?: ChildrenList) => JSX.Element);
|
|
15
|
+
export {};
|
|
9
16
|
//# sourceMappingURL=styled-shade.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styled-shade.d.ts","sourceRoot":"","sources":["../src/styled-shade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"styled-shade.d.ts","sourceRoot":"","sources":["../src/styled-shade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAE7D;;GAEG;AACH,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAA;CACrC,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,MAAM,SAAS,WAAW,EACpD,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,YAAY,KAAK,GAAG,CAAC,OAAO,EAChE,QAAQ,OAAO,CAAC,mBAAmB,CAAC,KACnC,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,YAAY,KAAK,GAAG,CAAC,OAAO,CAa1D,CAAA"}
|
package/esm/styled-shade.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { hasStyle } from './shade-component.js';
|
|
2
1
|
/**
|
|
3
2
|
* Creates a shortcut for a specific custom Shade element with additional styles
|
|
4
3
|
* @param element The element instance
|
|
@@ -6,20 +5,14 @@ import { hasStyle } from './shade-component.js';
|
|
|
6
5
|
* @returns The updated element
|
|
7
6
|
*/
|
|
8
7
|
export const styledShade = (element, styles) => {
|
|
9
|
-
return (
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
style
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
: {
|
|
19
|
-
...props,
|
|
20
|
-
style: styles,
|
|
21
|
-
};
|
|
22
|
-
return element(mergedProps, childrenList);
|
|
23
|
-
});
|
|
8
|
+
return (props, childrenList) => {
|
|
9
|
+
return element({
|
|
10
|
+
...props,
|
|
11
|
+
style: {
|
|
12
|
+
...props.style,
|
|
13
|
+
...styles,
|
|
14
|
+
},
|
|
15
|
+
}, childrenList);
|
|
16
|
+
};
|
|
24
17
|
};
|
|
25
18
|
//# sourceMappingURL=styled-shade.js.map
|
package/esm/styled-shade.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styled-shade.js","sourceRoot":"","sources":["../src/styled-shade.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styled-shade.js","sourceRoot":"","sources":["../src/styled-shade.ts"],"names":[],"mappings":"AASA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,OAAgE,EAChE,MAAoC,EACuB,EAAE;IAC7D,OAAO,CAAC,KAAa,EAAE,YAA2B,EAAe,EAAE;QACjE,OAAO,OAAO,CACZ;YACE,GAAG,KAAK;YACR,KAAK,EAAE;gBACL,GAAG,KAAK,CAAC,KAAK;gBACd,GAAG,MAAM;aACV;SACQ,EACX,YAAY,CACb,CAAA;IACH,CAAC,CAAA;AACH,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@furystack/shades",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.33",
|
|
4
4
|
"description": "Google Authentication Provider for FuryStack",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
"homepage": "https://github.com/furystack/furystack",
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/jsdom": "^27.0.0",
|
|
41
|
-
"@types/node": "^25.0.
|
|
41
|
+
"@types/node": "^25.0.10",
|
|
42
42
|
"jsdom": "^27.4.0",
|
|
43
43
|
"typescript": "^5.9.3",
|
|
44
|
-
"vitest": "^4.0.
|
|
44
|
+
"vitest": "^4.0.17"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@furystack/inject": "^12.0.
|
|
48
|
-
"@furystack/rest": "^8.0.
|
|
49
|
-
"@furystack/utils": "^8.1.
|
|
47
|
+
"@furystack/inject": "^12.0.26",
|
|
48
|
+
"@furystack/rest": "^8.0.32",
|
|
49
|
+
"@furystack/utils": "^8.1.8",
|
|
50
50
|
"path-to-regexp": "^8.3.0",
|
|
51
51
|
"semaphore-async-await": "^1.5.1"
|
|
52
52
|
},
|
|
@@ -25,8 +25,8 @@ export interface RouterProps {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export interface RouterState {
|
|
28
|
-
activeRoute?: Route<
|
|
29
|
-
activeRouteParams?:
|
|
28
|
+
activeRoute?: Route<unknown> | null
|
|
29
|
+
activeRouteParams?: unknown
|
|
30
30
|
jsx: JSX.Element
|
|
31
31
|
}
|
|
32
32
|
export const Router = Shade<RouterProps>({
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
2
1
|
import { Injectable, type Injector } from '@furystack/inject'
|
|
3
2
|
import {
|
|
4
3
|
deserializeQueryString as defaultDeserializeQueryString,
|
|
@@ -60,7 +59,7 @@ export class LocationService implements Disposable {
|
|
|
60
59
|
*/
|
|
61
60
|
public onLocationSearchChanged = new ObservableValue<string>(location.search)
|
|
62
61
|
|
|
63
|
-
public onDeserializedLocationSearchChanged: ObservableValue<
|
|
62
|
+
public onDeserializedLocationSearchChanged: ObservableValue<Record<string, unknown>>
|
|
64
63
|
|
|
65
64
|
public locationDeserializerObserver = this.onLocationSearchChanged.subscribe((search) => {
|
|
66
65
|
this.onDeserializedLocationSearchChanged.setValue(this.deserializeQueryString(search))
|
package/src/styled-shade.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { ChildrenList } from './models/children-list.js'
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Props constraint for styled components - must have an optional style property
|
|
5
|
+
*/
|
|
6
|
+
type StyledProps = {
|
|
7
|
+
style?: Partial<CSSStyleDeclaration>
|
|
8
|
+
}
|
|
3
9
|
|
|
4
10
|
/**
|
|
5
11
|
* Creates a shortcut for a specific custom Shade element with additional styles
|
|
@@ -7,23 +13,20 @@ import { hasStyle } from './shade-component.js'
|
|
|
7
13
|
* @param styles The additional styles to add
|
|
8
14
|
* @returns The updated element
|
|
9
15
|
*/
|
|
10
|
-
export const styledShade = <
|
|
11
|
-
element:
|
|
16
|
+
export const styledShade = <TProps extends StyledProps>(
|
|
17
|
+
element: (props: TProps, children?: ChildrenList) => JSX.Element,
|
|
12
18
|
styles: Partial<CSSStyleDeclaration>,
|
|
13
|
-
) => {
|
|
14
|
-
return (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
return element(mergedProps, childrenList)
|
|
28
|
-
}) as T
|
|
19
|
+
): ((props: TProps, children?: ChildrenList) => JSX.Element) => {
|
|
20
|
+
return (props: TProps, childrenList?: ChildrenList): JSX.Element => {
|
|
21
|
+
return element(
|
|
22
|
+
{
|
|
23
|
+
...props,
|
|
24
|
+
style: {
|
|
25
|
+
...props.style,
|
|
26
|
+
...styles,
|
|
27
|
+
},
|
|
28
|
+
} as TProps,
|
|
29
|
+
childrenList,
|
|
30
|
+
)
|
|
31
|
+
}
|
|
29
32
|
}
|