chayns-api 2.0.3 → 2.0.4
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/dist/cjs/hooks/index.js +8 -1
- package/dist/cjs/hooks/useCustomCallbackFunction.js +18 -0
- package/dist/esm/hooks/index.js +2 -1
- package/dist/esm/hooks/useCustomCallbackFunction.js +12 -0
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/useCustomCallbackFunction.d.ts +5 -0
- package/package.json +1 -1
package/dist/cjs/hooks/index.js
CHANGED
|
@@ -21,6 +21,12 @@ Object.defineProperty(exports, "useCurrentPage", {
|
|
|
21
21
|
return _useCurrentPage.useCurrentPage;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
+
Object.defineProperty(exports, "useCustomCallbackFunction", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _useCustomCallbackFunction.useCustomCallbackFunction;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
24
30
|
Object.defineProperty(exports, "useCustomData", {
|
|
25
31
|
enumerable: true,
|
|
26
32
|
get: function () {
|
|
@@ -169,4 +175,5 @@ var _useValues = require("./useValues");
|
|
|
169
175
|
var _useFunctions = require("./useFunctions");
|
|
170
176
|
var _useCurrentPage = require("./useCurrentPage");
|
|
171
177
|
var _useCustomData = require("./useCustomData");
|
|
172
|
-
var _useDialogState = require("./useDialogState");
|
|
178
|
+
var _useDialogState = require("./useDialogState");
|
|
179
|
+
var _useCustomCallbackFunction = require("./useCustomCallbackFunction");
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useCustomCallbackFunction = void 0;
|
|
7
|
+
var _useFunctions = require("./useFunctions");
|
|
8
|
+
/**
|
|
9
|
+
* @category Hooks
|
|
10
|
+
* Returns customCallbackFunction
|
|
11
|
+
*/
|
|
12
|
+
const useCustomCallbackFunction = () => {
|
|
13
|
+
const {
|
|
14
|
+
customCallbackFunction
|
|
15
|
+
} = (0, _useFunctions.useFunctions)();
|
|
16
|
+
return customCallbackFunction;
|
|
17
|
+
};
|
|
18
|
+
exports.useCustomCallbackFunction = useCustomCallbackFunction;
|
package/dist/esm/hooks/index.js
CHANGED
|
@@ -14,4 +14,5 @@ export { useValues } from './useValues';
|
|
|
14
14
|
export { useFunctions } from './useFunctions';
|
|
15
15
|
export { useCurrentPage } from './useCurrentPage';
|
|
16
16
|
export { useCustomData } from './useCustomData';
|
|
17
|
-
export { useDialogState, useDialogData } from './useDialogState';
|
|
17
|
+
export { useDialogState, useDialogData } from './useDialogState';
|
|
18
|
+
export { useCustomCallbackFunction } from './useCustomCallbackFunction';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useFunctions } from './useFunctions';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @category Hooks
|
|
5
|
+
* Returns customCallbackFunction
|
|
6
|
+
*/
|
|
7
|
+
export const useCustomCallbackFunction = () => {
|
|
8
|
+
const {
|
|
9
|
+
customCallbackFunction
|
|
10
|
+
} = useFunctions();
|
|
11
|
+
return customCallbackFunction;
|
|
12
|
+
};
|
|
@@ -15,3 +15,4 @@ export { useFunctions } from './useFunctions';
|
|
|
15
15
|
export { useCurrentPage } from './useCurrentPage';
|
|
16
16
|
export { useCustomData } from './useCustomData';
|
|
17
17
|
export { useDialogState, useDialogData } from './useDialogState';
|
|
18
|
+
export { useCustomCallbackFunction } from './useCustomCallbackFunction';
|