@reykjavik/webtools 0.1.21 → 0.1.22

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 CHANGED
@@ -4,6 +4,12 @@
4
4
 
5
5
  - ... <!-- Add new lines here. -->
6
6
 
7
+ ## 0.1.22
8
+
9
+ _2024-03-14_
10
+
11
+ - fix: Relax unnecessary restriction on fallback props
12
+
7
13
  ## 0.1.21
8
14
 
9
15
  _2024-03-14_
@@ -11,7 +17,7 @@ _2024-03-14_
11
17
  - feat: Add `@reykjavik/webtools/remix/Wait` component
12
18
  - feat: Add `@reykjavik/webtools/remix/http` module — with `isClientFetch`
13
19
  helper
14
- - feat: Add `@reykjavik/webtools/remix/async` module with promise helpers
20
+ - feat: Add `@reykjavik/webtools/async` module with promise helpers
15
21
 
16
22
  ## 0.1.18 – 0.1.20
17
23
 
@@ -18,12 +18,12 @@ type WaitFallbacks = {
18
18
  /**
19
19
  * Custom loading/spinner component.
20
20
  */
21
- meanwhile?: Exclude<ReactNode, number>;
21
+ meanwhile?: ReactNode;
22
22
  /**
23
23
  * Custom error component if the promise is rejected or if it resolves to an
24
24
  * object with an `error` property.
25
25
  */
26
- error?: Exclude<ReactNode, number>;
26
+ error?: ReactNode;
27
27
  };
28
28
  export type WaitProps<T> = WaitPropsBase<T> & WaitFallbacks;
29
29
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reykjavik/webtools",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "Misc. JS/TS helpers used by Reykjavík City's web dev teams.",
5
5
  "main": "index.js",
6
6
  "repository": "ssh://git@github.com:reykjavikcity/webtools.git",
package/remix/Wait.d.ts CHANGED
@@ -18,12 +18,12 @@ type WaitFallbacks = {
18
18
  /**
19
19
  * Custom loading/spinner component.
20
20
  */
21
- meanwhile?: Exclude<ReactNode, number>;
21
+ meanwhile?: ReactNode;
22
22
  /**
23
23
  * Custom error component if the promise is rejected or if it resolves to an
24
24
  * object with an `error` property.
25
25
  */
26
- error?: Exclude<ReactNode, number>;
26
+ error?: ReactNode;
27
27
  };
28
28
  export type WaitProps<T> = WaitPropsBase<T> & WaitFallbacks;
29
29
  /**