Skip to content

Commit

Permalink
feat: update for context
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Nov 23, 2023
1 parent de045cd commit c5e7122
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ deeming conventional ones too inflexible for his creative process. Let us pay ho

Todos

- [ ] Migrate javascript to typescript
- [ ] Spike editor for edit user requirements/feature.
- [x] ProseMirror
- [x] Menu Bar. Click in menu bar, show menu.
Expand Down
31 changes: 31 additions & 0 deletions types/custom-action.type.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
enum FacetType {
TOOLBAR_MENU = 0,
BUBBLE_MENU = 1,
CONTEXT_MENU = 2,
SLASH_COMMAND = 3,
QUICK_INSERT = 4,
}

enum OutputForm {
STREAMING = 0,
NORMAL = 1,
CHAT = 2,
INSIDE_BOX = 3,
NOTIFICATION = 4,
}

enum VariableType {
BEFORE_CURSOR,
AFTER_CURSOR,
SELECTION,
ALL,
SIMILAR_CHUNKS,
RELATED_CHUNKS,
}

interface CustomAction {
facetType: FacetType;
outputForm: OutputForm;
content?: any;
}

0 comments on commit c5e7122

Please sign in to comment.