@eliseubatista99/react-scaffold-core 1.2.9 → 1.2.11
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.
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
export interface
|
|
3
|
-
visibleItems: string[];
|
|
2
|
+
export interface FeedbackStateContextData {
|
|
3
|
+
visibleItems: readonly string[];
|
|
4
4
|
isItemVisible: (id: string) => boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface FeedbackActionsContextData {
|
|
5
7
|
showItem: (id: string) => void;
|
|
6
8
|
hideItem: (id: string) => void;
|
|
7
9
|
}
|
|
8
|
-
export declare const
|
|
10
|
+
export declare const FeedbackStateContext: React.Context<FeedbackStateContextData | undefined>;
|
|
11
|
+
export declare const FeedbackActionsContext: React.Context<FeedbackActionsContextData | undefined>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const useFeedback: () => {
|
|
2
|
-
visibleItems: string[];
|
|
3
|
-
isItemVisible: (id: string) => boolean;
|
|
4
2
|
showItem: (id: string) => void;
|
|
5
3
|
hideItem: (id: string) => void;
|
|
4
|
+
visibleItems: readonly string[];
|
|
5
|
+
isItemVisible: (id: string) => boolean;
|
|
6
6
|
};
|
|
7
|
+
export declare const useFeedbackActions: () => import('./feedbackContext').FeedbackActionsContextData;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eliseubatista99/react-scaffold-core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A library which provides basic components, hooks, helpers and providers to easily build a React application and avoid repeating the usual code.",
|
|
6
6
|
"main": "dist/index.cjs.js",
|