@lowentry/react-redux 1.11.2 → 1.11.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowentry/react-redux",
3
- "version": "1.11.2",
3
+ "version": "1.11.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./index.js",
package/tsconfig.json CHANGED
@@ -1,44 +1,27 @@
1
1
  {
2
- "include": ["tsconfig.d.ts", "src"],
3
- "exclude": ["node_modules"],
4
2
  "compilerOptions": {
5
- "lib": [
6
- "dom",
7
- "dom.iterable",
8
- "es5",
9
- "es6",
10
- "es2016",
11
- "es2017",
12
- "es2018",
13
- "es2019",
14
- "es2020",
15
- "es2021",
16
- "es2022",
17
- "es2023",
18
- "esnext"
19
- ],
20
3
  "allowJs": true,
21
- "declaration": true,
22
- "declarationMap": false,
23
- "esModuleInterop": true,
24
- "jsx": "react-jsx",
25
- "module": "esnext",
26
- "moduleResolution": "node",
27
- "outDir": "./build",
28
- "removeComments": false,
29
- "skipLibCheck": true,
30
- "strict": true,
31
- "stripInternal": true,
32
- "target": "esnext",
33
4
  "checkJs": true,
5
+ "strict": true,
6
+ "noEmit": true,
34
7
  "noImplicitAny": false,
35
8
  "noImplicitThis": false,
36
9
  "alwaysStrict": true,
37
10
  "resolveJsonModule": true,
11
+ "esModuleInterop": true,
38
12
  "allowSyntheticDefaultImports": true,
39
- "emitDeclarationOnly": true
13
+ "jsx": "react-jsx",
14
+ "target": "esnext",
15
+ "module": "esnext",
16
+ "moduleResolution": "node",
17
+ "skipLibCheck": true,
18
+ "types": []
40
19
  },
41
- "typeAcquisition": {
42
- "include": ["react", "react-dom"]
43
- }
20
+ "include": [
21
+ "tsconfig.d.ts",
22
+ "src"
23
+ ],
24
+ "exclude": [
25
+ "node_modules"
26
+ ]
44
27
  }
package/build/LeRed.d.ts DELETED
@@ -1,107 +0,0 @@
1
- export namespace LeRed {
2
- function set(key: any, value: any): void;
3
- function setAll(obj: any, optionalSkipHasOwnPropertyCheck?: boolean): void;
4
- function configureStore(storeData: any): any;
5
- function createAction(id: any): RTK.ActionCreatorWithoutPayload<string>;
6
- function createSelector(selectorsGenerator: any): (stateOfSlice: any) => any;
7
- function createCachedSelector(selectorsGenerator: any, equalsComparator: any): ((stateOfSlice: any) => any) | undefined;
8
- function createSlice(slice: any): any;
9
- function createFastSlice(slice: any): any;
10
- function current(obj: any): any;
11
- function useConfigureStore(storeData: any): any;
12
- function useSelector(selector: any, equalsComparator: any): unknown;
13
- function useEffect(callable: any, comparingValues: any, equalsComparator: any): any;
14
- function useEffectInterval(callable: any, comparingValues: any, intervalMs: any, fireImmediately: any, equalsComparator: any): any;
15
- function useEffectAnimationFrameInterval(callable: any, comparingValues: any, intervalFrames: any, fireImmediately: any, equalsComparator: any): any;
16
- function useEffectGenerator(callable: any, comparingValues: any, intervalMs: any, fireImmediately: any, equalsComparator: any): any;
17
- function useEffectGeneratorLoop(callable: any, comparingValues: any, intervalMs: any, fireImmediately: any, equalsComparator: any): any;
18
- function useEffectShutdown(callable: any, comparingValues: any, equalsComparator: any): any;
19
- function useEffectPageFocusLost(callable: any, comparingValues: any, equalsComparator: any): any;
20
- function memo(component: any, equalsComparator: any): any;
21
- function useMemo(callable: any, comparingValues: any, equalsComparator: any): any;
22
- function useCallback(callable: any, comparingValues: any, equalsComparator: any): any;
23
- function usePrevious(value: any, initialValue: any): any;
24
- function useFont(font: any): any;
25
- /**
26
- * Adds a <script> tag to the <head> of the document.
27
- * Only for development and testing purposes.
28
- *
29
- * @param {string} url The URL of the js file to include.
30
- * @param {object} props Additional props of the <script> tag.
31
- */
32
- function useScript(url: string, props?: object): any;
33
- function mergeRefs(...refs: any[]): any;
34
- function useTriggerable(event: any): any;
35
- function trigger(event: any, value: any): void;
36
- /**
37
- * A useState() hook that automatically resets to the defaultValue after the given duration.
38
- *
39
- * Example:
40
- *
41
- * ```js
42
- * const [value, setValue] = LeRed.useTempState(true, 2000);
43
- * // somewhere in your code:
44
- * setValue(false); // value is now false, after 2 seconds it will be reset to true
45
- * ```
46
- *
47
- * Repeated calls cause the timer to reset, meaning each set value will always remain for the full given duration.
48
- */
49
- function useTempState(defaultValue: any, duration: any): any[];
50
- function useHistory(onForward: any, onBack: any): (() => void)[];
51
- /**
52
- * Similar to {@link LeRed.useHistory}, but this is specifically for toggling a boolean state between true and false. For example, for a modal, which you'd like to be closed when the user goes back in history.
53
- *
54
- * Example:
55
- *
56
- * ```js
57
- * const [isModalOpen, openModal, closeModal] = LeRed.useHistoryState(false); // you'd open it programmatically using openModal(), afterwards, if the user goes back in history, it will close again
58
- * ```
59
- *
60
- * or, if you'd like it to be true by default:
61
- *
62
- * ```js
63
- * const [isModalOpen, openModal, closeModal] = LeRed.useHistoryState(true); // you'd close it programmatically using closeModal(), afterwards, if the user goes back in history, it will open again
64
- * ```
65
- */
66
- function useHistoryState(initialState: any): any[];
67
- /**
68
- * Allows you to easily create an <pre><img></pre> url and onError handler that will automatically retry loading the image if it fails.
69
- */
70
- function useRetryingImageUrl(url: any, options: any): any[];
71
- /**
72
- * Allows you to easily convert promises to react hooks.
73
- *
74
- * The given callable should return promises. The returned promises can be an array, an object, or even a single promise. The returned data of this hook will match the promises it has operated on.
75
- *
76
- * The given comparingValues can be anything, this is used to detect whether the given promises have changed or not, and so whether new promises have to be generated and executed again.
77
- */
78
- function usePromises(callable: any, comparingValues: any): any[];
79
- /**
80
- * Allows you to easily obtain external data.
81
- */
82
- function useExternal(url: any, options: any, responseFunction: any): any[];
83
- /**
84
- * Allows you to easily obtain external JSON data.
85
- */
86
- function useExternalJson(url: any, options: any): any[];
87
- /**
88
- * Allows you to easily obtain external Blob data.
89
- */
90
- function useExternalBlob(url: any, options: any): any[];
91
- /**
92
- * Allows you to easily obtain external ArrayBuffer data.
93
- */
94
- function useExternalArrayBuffer(url: any, options: any): any[];
95
- /**
96
- * Allows you to easily obtain external string data.
97
- */
98
- function useExternalString(url: any, options: any): any[];
99
- /**
100
- * Allows you to easily obtain external form data.
101
- */
102
- function useExternalFormData(url: any, options: any): any[];
103
- let Root: any;
104
- function PreloadComponent(load: any): any;
105
- let LoadComponent: any;
106
- }
107
- import * as RTK from '@reduxjs/toolkit';
package/build/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export { LeRed } from "./LeRed.jsx";