@ttoss/react-hooks 1.23.4 → 1.23.6

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +12 -0
  2. package/package.json +6 -6
@@ -0,0 +1,12 @@
1
+ type ScriptStatus = 'idle' | 'loading' | 'ready' | 'error';
2
+ /**
3
+ * https://usehooks.com/useScript/
4
+ *
5
+ * @param src: string - the url of the script to load.
6
+ * @returns status: Status
7
+ */
8
+ declare const useScript: (src: string) => {
9
+ status: ScriptStatus;
10
+ };
11
+
12
+ export { ScriptStatus, useScript };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/react-hooks",
3
- "version": "1.23.4",
3
+ "version": "1.23.6",
4
4
  "description": "React hooks.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "ttoss",
@@ -23,11 +23,11 @@
23
23
  "react": ">=16.8.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@types/react": "^18.2.11",
27
- "jest": "^29.5.0",
28
- "tsup": "^6.7.0",
29
- "@ttoss/config": "^1.30.3",
30
- "@ttoss/test-utils": "^1.23.4"
26
+ "@types/react": "^18.2.12",
27
+ "jest": "^29.6.1",
28
+ "tsup": "^7.1.0",
29
+ "@ttoss/config": "^1.30.5",
30
+ "@ttoss/test-utils": "^1.23.6"
31
31
  },
32
32
  "keywords": [
33
33
  "React",