@pulse-editor/react-api 0.1.1-alpha.0 → 0.1.1-alpha.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.
Files changed (2) hide show
  1. package/package.json +7 -5
  2. package/src/main.ts +15 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pulse-editor/react-api",
3
- "version": "0.1.1-alpha.0",
4
- "main": "dist/main.js",
3
+ "version": "0.1.1-alpha.3",
4
+ "main": "src/main.ts",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
@@ -10,8 +10,9 @@
10
10
  "access": "public"
11
11
  },
12
12
  "scripts": {
13
- "build": "rollup -c",
14
- "lint": "eslint ."
13
+ "build": "npm run clean && rollup -c",
14
+ "lint": "eslint .",
15
+ "clean": "rimraf dist"
15
16
  },
16
17
  "devDependencies": {
17
18
  "@babel/core": "^7.26.10",
@@ -29,13 +30,14 @@
29
30
  "npm": "^11.3.0",
30
31
  "react": "^19.1.0",
31
32
  "react-dom": "^19.1.0",
33
+ "rimraf": "^3.0.2",
32
34
  "rollup": "^4.40.0",
33
35
  "rollup-plugin-peer-deps-external": "^2.2.4",
34
36
  "typescript": "^5.8.3",
35
37
  "typescript-eslint": "^8.30.1"
36
38
  },
37
39
  "peerDependencies": {
38
- "@pulse-editor/shared-utils": "0.1.1-alpha.0",
40
+ "@pulse-editor/shared-utils": "0.1.1-alpha.3",
39
41
  "react": "^19.0.0",
40
42
  "react-dom": "^19.0.0"
41
43
  }
package/src/main.ts ADDED
@@ -0,0 +1,15 @@
1
+ import useFileView from "./hooks/use-file-view";
2
+ import useTheme from "./hooks/use-theme";
3
+ import useNotification from "./hooks/use-notification";
4
+ import useAgents from "./hooks/use-agents";
5
+ import useOCR from "./hooks/use-orc";
6
+ import useTerminal from "./hooks/use-terminal";
7
+
8
+ export {
9
+ useFileView,
10
+ useTheme,
11
+ useNotification,
12
+ useAgents,
13
+ useOCR,
14
+ useTerminal,
15
+ };