@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 +7 -0
- package/alertsStore/react.d.ts +4 -1
- package/esm/alertsStore/react.d.ts +4 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/alertsStore/react.d.ts
CHANGED
|
@@ -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>,
|
|
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>,
|
|
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