Skip to content

Commit 3441580

Browse files
committed
Add workflow states management hook
1 parent 3afe3e4 commit 3441580

31 files changed

+458
-341
lines changed

.changeset/fuzzy-sheep-pay.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+
Make action return type any

.changeset/pre.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"free-ears-swim",
3333
"fruity-goats-look",
3434
"full-beans-stop",
35+
"fuzzy-sheep-pay",
3536
"hot-symbols-fry",
3637
"hot-windows-march",
3738
"large-moose-tap",
@@ -56,6 +57,7 @@
5657
"tough-aliens-appear",
5758
"true-suits-fly",
5859
"vast-places-rhyme",
60+
"weak-beers-watch",
5961
"wicked-spoons-fry"
6062
]
6163
}

.changeset/weak-beers-watch.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 action register hook

npm-packages/react-api/CHANGELOG.md

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

3+
## 0.1.1-alpha.45
4+
5+
### Patch Changes
6+
7+
- Make action return type any
8+
- Updated dependencies
9+
- @pulse-editor/shared-utils@0.1.1-alpha.45
10+
11+
## 0.1.1-alpha.44
12+
13+
### Patch Changes
14+
15+
- Update action register hook
16+
- Updated dependencies
17+
- @pulse-editor/shared-utils@0.1.1-alpha.44
18+
319
## 0.1.1-alpha.43
420

521
### 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.43",
3+
"version": "0.1.1-alpha.45",
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.43",
41+
"@pulse-editor/shared-utils": "0.1.1-alpha.45",
4242
"react": "^19.0.0",
4343
"react-dom": "^19.0.0"
4444
}

npm-packages/react-api/src/hooks/editor/use-register-action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function useRegisterAction(
2929
parameters?: Record<string, TypedVariable>;
3030
returns?: Record<string, TypedVariable>;
3131
},
32-
callbackHandler: (args: any) => Promise<string | void>,
32+
callbackHandler: (args: any) => Promise<any>,
3333
deps: DependencyList,
3434
isExtReady: boolean = true
3535
) {

npm-packages/shared-utils/CHANGELOG.md

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

3+
## 0.1.1-alpha.45
4+
5+
### Patch Changes
6+
7+
- Make action return type any
8+
9+
## 0.1.1-alpha.44
10+
11+
### Patch Changes
12+
13+
- Update action register hook
14+
315
## 0.1.1-alpha.43
416

517
### Patch Changes

npm-packages/shared-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pulse-editor/shared-utils",
3-
"version": "0.1.1-alpha.43",
3+
"version": "0.1.1-alpha.45",
44
"main": "dist/main.js",
55
"files": [
66
"dist"

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/components/explorer/app/app-explorer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default function AppExplorer() {
3333
onPress={(ext) => {
3434
const config: AppViewConfig = {
3535
app: ext.config.id,
36-
viewId: v4(),
36+
viewId: `${ext.config.id}-${v4()}`,
3737
recommendedHeight: ext.config.recommendedHeight,
3838
recommendedWidth: ext.config.recommendedWidth,
3939
};

0 commit comments

Comments
 (0)