@reykjavik/webtools 0.3.7 → 0.3.8

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,13 @@
4
4
 
5
5
  - ... <!-- Add new lines here. -->
6
6
 
7
+ ## 0.3.8
8
+
9
+ _2026-03-16_
10
+
11
+ - `@reykjavik/webtools/alertsStore/react`
12
+ - fix: Wrong parameter type signature for `makeReactSubscription`
13
+
7
14
  ## 0.3.7
8
15
 
9
16
  _2026-03-16_
@@ -1,6 +1,9 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { AlertMessage } from './index.js';
3
- type SubsScriber<AlertInfo> = (callback: (alerts: Array<AlertInfo>, _type: string) => void) => () => void;
3
+ type SubsScriber<AlertInfo> = (callback: (alerts: Array<AlertInfo>, meta: {
4
+ type: string;
5
+ ids: Array<string>;
6
+ }) => void) => () => void;
4
7
  /**
5
8
  * Factory function that creates a React subscription hook and a container
6
9
  * component linked to a specific alerter store subscibe function.
@@ -1,6 +1,9 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { AlertMessage } from './index.js';
3
- type SubsScriber<AlertInfo> = (callback: (alerts: Array<AlertInfo>, _type: string) => void) => () => void;
3
+ type SubsScriber<AlertInfo> = (callback: (alerts: Array<AlertInfo>, meta: {
4
+ type: string;
5
+ ids: Array<string>;
6
+ }) => void) => () => void;
4
7
  /**
5
8
  * Factory function that creates a React subscription hook and a container
6
9
  * component linked to a specific alerter store subscibe function.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reykjavik/webtools",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
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",