Skip to content

Commit 10b035e

Browse files
authored
Merge pull request #62 from ClayPulse/add-canvas
Allow opening apps in canvas view from side menu panel
2 parents 6585eb0 + e431d37 commit 10b035e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+2265
-1292
lines changed

.changeset/clean-mangos-swim.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@pulse-editor/shared-utils": patch
3+
"@pulse-editor/react-api": patch
4+
---
5+
6+
Add recommended display dimension in canvas view

.changeset/cold-shrimps-give.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@pulse-editor/shared-utils": patch
3+
"@pulse-editor/react-api": patch
4+
---
5+
6+
Revert mfversion in extension config

.changeset/hot-windows-march.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@pulse-editor/shared-utils": patch
3+
"@pulse-editor/react-api": patch
4+
---
5+
6+
Update types

.changeset/pre.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
"beige-pandas-rhyme",
1818
"calm-rivers-march",
1919
"chatty-trains-beam",
20+
"clean-mangos-swim",
21+
"cold-shrimps-give",
2022
"cruel-waves-double",
2123
"cruel-zoos-play",
2224
"curvy-places-wash",
@@ -28,6 +30,7 @@
2830
"fruity-goats-look",
2931
"full-beans-stop",
3032
"hot-symbols-fry",
33+
"hot-windows-march",
3134
"large-moose-tap",
3235
"lazy-zebras-mate",
3336
"mighty-ghosts-crash",
@@ -37,6 +40,7 @@
3740
"real-knives-rest",
3841
"rude-ducks-design",
3942
"sad-tables-join",
43+
"sharp-memes-give",
4044
"shiny-doodles-jump",
4145
"slick-roses-fix",
4246
"social-donkeys-cross",

.changeset/sharp-memes-give.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@pulse-editor/shared-utils": patch
3+
"@pulse-editor/react-api": patch
4+
---
5+
6+
Update types

desktop/main.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,15 @@ async function handleCreateProject(event, uri) {
188188
await fs.promises.mkdir(uri);
189189
}
190190

191+
async function handleDeleteProject(event, uri) {
192+
await fs.promises.rm(uri, { recursive: true, force: true });
193+
}
194+
195+
async function handleUpdateProject(event, uri, updatedInfo) {
196+
const newUri = path.join(path.dirname(uri), updatedInfo.name);
197+
await fs.promises.rename(uri, newUri);
198+
}
199+
191200
async function handleCreateFolder(event, uri) {
192201
// Create a folder at the uri
193202
await fs.promises.mkdir(uri);
@@ -272,6 +281,9 @@ app.whenReady().then(() => {
272281
ipcMain.handle("list-path-content", handleListPathContent);
273282

274283
ipcMain.handle("create-project", handleCreateProject);
284+
ipcMain.handle("delete-project", handleDeleteProject);
285+
ipcMain.handle("update-project", handleUpdateProject);
286+
275287
ipcMain.handle("create-folder", handleCreateFolder);
276288
ipcMain.handle("create-file", handleCreateFile);
277289

desktop/preload.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ contextBridge.exposeInMainWorld("electronAPI", {
1010
ipcRenderer.invoke("list-path-content", uri, options),
1111

1212
createProject: (uri) => ipcRenderer.invoke("create-project", uri),
13+
deleteProject: (uri) => ipcRenderer.invoke("delete-project", uri),
14+
updateProject: (uri, updatedInfo) => ipcRenderer.invoke("update-project", uri, updatedInfo),
15+
1316
createFolder: (uri) => ipcRenderer.invoke("create-folder", uri),
1417
createFile: (uri) => ipcRenderer.invoke("create-file", uri),
1518

npm-packages/react-api/CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
11
# @pulse-editor/react-api
22

3+
## 0.1.1-alpha.34
4+
5+
### Patch Changes
6+
7+
- Revert mfversion in extension config
8+
- Updated dependencies
9+
- @pulse-editor/shared-utils@0.1.1-alpha.34
10+
11+
## 0.1.1-alpha.33
12+
13+
### Patch Changes
14+
15+
- Update types
16+
- Updated dependencies
17+
- @pulse-editor/shared-utils@0.1.1-alpha.33
18+
19+
## 0.1.1-alpha.32
20+
21+
### Patch Changes
22+
23+
- Update types
24+
- Updated dependencies
25+
- @pulse-editor/shared-utils@0.1.1-alpha.32
26+
27+
## 0.1.1-alpha.31
28+
29+
### Patch Changes
30+
31+
- Add recommended display dimension in canvas view
32+
- Updated dependencies
33+
- @pulse-editor/shared-utils@0.1.1-alpha.31
34+
335
## 0.1.1-alpha.30
436

537
### Patch Changes

npm-packages/react-api/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pulse-editor/react-api",
3-
"version": "0.1.1-alpha.30",
3+
"version": "0.1.1-alpha.34",
44
"main": "dist/main.js",
55
"files": [
66
"dist"
@@ -38,7 +38,7 @@
3838
"typescript-eslint": "^8.30.1"
3939
},
4040
"peerDependencies": {
41-
"@pulse-editor/shared-utils": "0.1.1-alpha.30",
41+
"@pulse-editor/shared-utils": "0.1.1-alpha.34",
4242
"react": "^19.0.0",
4343
"react-dom": "^19.0.0"
4444
}

npm-packages/shared-utils/CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# @pulse-editor/shared-utils
22

3+
## 0.1.1-alpha.34
4+
5+
### Patch Changes
6+
7+
- Revert mfversion in extension config
8+
9+
## 0.1.1-alpha.33
10+
11+
### Patch Changes
12+
13+
- Update types
14+
15+
## 0.1.1-alpha.32
16+
17+
### Patch Changes
18+
19+
- Update types
20+
21+
## 0.1.1-alpha.31
22+
23+
### Patch Changes
24+
25+
- Add recommended display dimension in canvas view
26+
327
## 0.1.1-alpha.30
428

529
### Patch Changes

0 commit comments

Comments
 (0)