@kong/kongponents 9.43.3-pr.2953.77fdad2.0 → 9.43.3-pr.2953.9e5e5e4.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.
@@ -7,7 +7,7 @@ const defaultToastConfig = {
7
7
  message: 'Success',
8
8
  timeoutMilliseconds: 3000,
9
9
  };
10
- export default function useToast() {
10
+ export function useToast() {
11
11
  // Initialize the toast manager; stub out the `open` and `destroy` methods on the server
12
12
  const toast = import.meta.client ? new ToastManager() : { open: () => { }, destroy: () => { } };
13
13
  const showToast = async (notification) => {
@@ -1,4 +1,4 @@
1
1
  import type { Toast } from '@kong/kongponents';
2
- export default function useToast(): {
2
+ export declare function useToast(): {
3
3
  showToast: (notification: Partial<Toast>) => Promise<void>;
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong/kongponents",
3
- "version": "9.43.3-pr.2953.77fdad2.0",
3
+ "version": "9.43.3-pr.2953.9e5e5e4.0",
4
4
  "description": "Kong Component library",
5
5
  "type": "module",
6
6
  "repository": {