bb-relay 0.0.1 → 0.0.2

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 (33) hide show
  1. package/dist/index.d.mts +1 -1
  2. package/dist/index.d.ts +1 -1
  3. package/package.json +1 -1
  4. package/src/index.ts +20 -20
  5. package/src/load-virtual-editor/events/handle-dir-update.ts +1 -1
  6. package/src/load-virtual-editor/events/handle-file-update.ts +1 -1
  7. package/src/load-virtual-editor/events/handle-load.ts +1 -1
  8. package/src/load-virtual-editor/events/handle-selected.ts +1 -1
  9. package/src/load-virtual-editor/postResponse.ts +1 -1
  10. package/src/locales/fr-FR.ts +1 -1
  11. package/src/relay/index.ts +1 -1
  12. package/src/types/{EventParam.ts → editor/EventParam.ts} +1 -1
  13. package/src/types/{EventReturn.ts → editor/EventReturn.ts} +1 -1
  14. package/src/types/{RenameType.ts → editor/RenameType.ts} +1 -1
  15. /package/src/types/{Checkpoint.ts → editor/Checkpoint.ts} +0 -0
  16. /package/src/types/{CopyArg.ts → editor/CopyArg.ts} +0 -0
  17. /package/src/types/{DirectoryContents.ts → editor/DirectoryContents.ts} +0 -0
  18. /package/src/types/{DirectoryStats.ts → editor/DirectoryStats.ts} +0 -0
  19. /package/src/types/{FileContent.ts → editor/FileContent.ts} +0 -0
  20. /package/src/types/{GitFileStatus.ts → editor/GitFileStatus.ts} +0 -0
  21. /package/src/types/{IconArg.ts → editor/IconArg.ts} +0 -0
  22. /package/src/types/{Language.ts → editor/Language.ts} +0 -0
  23. /package/src/types/{Locale.ts → editor/Locale.ts} +0 -0
  24. /package/src/types/{MenuContent.ts → editor/MenuContent.ts} +0 -0
  25. /package/src/types/{Nav.ts → editor/Nav.ts} +0 -0
  26. /package/src/types/{PluginItem.ts → editor/PluginItem.ts} +0 -0
  27. /package/src/types/{Result.ts → editor/Result.ts} +0 -0
  28. /package/src/types/{Route.ts → editor/Route.ts} +0 -0
  29. /package/src/types/{Settings.ts → editor/Settings.ts} +0 -0
  30. /package/src/types/{TutorialHeader.ts → editor/TutorialHeader.ts} +0 -0
  31. /package/src/types/{User.ts → editor/User.ts} +0 -0
  32. /package/src/types/{WatchFSEvent.ts → editor/WatchFSEvent.ts} +0 -0
  33. /package/src/types/{database.types.ts → editor/database.types.ts} +0 -0
package/dist/index.d.mts CHANGED
@@ -632,7 +632,7 @@ type PluginItem = Tables<"plugins"> & {
632
632
 
633
633
  interface RenameType {
634
634
  path: string;
635
- newPath: string;
635
+ name: string;
636
636
  }
637
637
 
638
638
  type Result<T = null> = {
package/dist/index.d.ts CHANGED
@@ -632,7 +632,7 @@ type PluginItem = Tables<"plugins"> & {
632
632
 
633
633
  interface RenameType {
634
634
  path: string;
635
- newPath: string;
635
+ name: string;
636
636
  }
637
637
 
638
638
  type Result<T = null> = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bb-relay",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "For managing bb-editor extension",
5
5
  "license": "ISC",
6
6
  "author": "Ade Adeola",
package/src/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import BBRelay from "./relay";
2
2
  import DirInfo from "./types/dir/DirInfo";
3
3
  import BBEvent from "./types/BBEvent";
4
- import EventReturn from "./types/EventReturn";
4
+ import EventReturn from "./types/editor/EventReturn";
5
5
  import FileInfo from "./types/files/FileInfo";
6
6
  import Load from "./types/status/Load";
7
7
  import registerEvent from "./relay/registerEvent";
@@ -9,26 +9,26 @@ import registerRequest from "./relay/registerRequest";
9
9
  import BBRequest from "./types/BBRequest";
10
10
  import RequestReturn from "./types/RequestReturn";
11
11
  import injectStyles from "./utils/inject-styles";
12
- import Checkpoint from "./types/Checkpoint";
13
- import CopyArg from "./types/CopyArg";
14
- import { WatchFSEvent } from "./types/WatchFSEvent";
15
- import { User } from "./types/User";
16
- import DirectoryContents from "./types/DirectoryContents";
17
- import { DirectoryStats } from "./types/DirectoryStats";
18
- import FileContent from "./types/FileContent";
19
- import GitFileStatus from "./types/GitFileStatus";
20
- import IconArg from "./types/IconArg";
21
- import Language from "./types/Language";
22
- import Locale from "./types/Locale";
23
- import { MenuContent } from "./types/MenuContent";
24
- import Nav from "./types/Nav";
25
- import { PluginItem } from "./types/PluginItem";
12
+ import Checkpoint from "./types/editor/Checkpoint";
13
+ import CopyArg from "./types/editor/CopyArg";
14
+ import { WatchFSEvent } from "./types/editor/WatchFSEvent";
15
+ import { User } from "./types/editor/User";
16
+ import DirectoryContents from "./types/editor/DirectoryContents";
17
+ import { DirectoryStats } from "./types/editor/DirectoryStats";
18
+ import FileContent from "./types/editor/FileContent";
19
+ import GitFileStatus from "./types/editor/GitFileStatus";
20
+ import IconArg from "./types/editor/IconArg";
21
+ import Language from "./types/editor/Language";
22
+ import Locale from "./types/editor/Locale";
23
+ import { MenuContent } from "./types/editor/MenuContent";
24
+ import Nav from "./types/editor/Nav";
25
+ import { PluginItem } from "./types/editor/PluginItem";
26
26
  import Project from "./types/project/Project";
27
- import { RenameType } from "./types/RenameType";
28
- import Result from "./types/Result";
29
- import { Route } from "./types/Route";
30
- import { Settings } from "./types/Settings";
31
- import { TutorialHeader } from "./types/TutorialHeader";
27
+ import { RenameType } from "./types/editor/RenameType";
28
+ import Result from "./types/editor/Result";
29
+ import { Route } from "./types/editor/Route";
30
+ import { Settings } from "./types/editor/Settings";
31
+ import { TutorialHeader } from "./types/editor/TutorialHeader";
32
32
  import enGB from "./locales/en-GB";
33
33
  import frFR from "./locales/fr-FR";
34
34
 
@@ -1,4 +1,4 @@
1
- import EventReturn from "@/types/EventReturn";
1
+ import EventReturn from "@/types/editor/EventReturn";
2
2
  import postResponse from "../postResponse";
3
3
  import { watch } from "../node/watch";
4
4
 
@@ -1,4 +1,4 @@
1
- import EventReturn from "@/types/EventReturn";
1
+ import EventReturn from "@/types/editor/EventReturn";
2
2
  import postResponse from "../postResponse";
3
3
  import { watch } from "../node/watch";
4
4
 
@@ -1,4 +1,4 @@
1
- import EventReturn from "@/types/EventReturn";
1
+ import EventReturn from "@/types/editor/EventReturn";
2
2
  import appStore from "../app/store";
3
3
  import postResponse from "../postResponse";
4
4
 
@@ -1,4 +1,4 @@
1
- import EventReturn from "@/types/EventReturn";
1
+ import EventReturn from "@/types/editor/EventReturn";
2
2
  import postResponse from "../postResponse";
3
3
  import selectedStore from "../selected/store";
4
4
  import watch from "../selected/watch";
@@ -1,5 +1,5 @@
1
1
  import BBEvent from "@/types/BBEvent";
2
- import EventReturn from "@/types/EventReturn";
2
+ import EventReturn from "@/types/editor/EventReturn";
3
3
  import BBRequest from "@/types/BBRequest";
4
4
  import RequestReturn from "@/types/RequestReturn";
5
5
 
@@ -1,4 +1,4 @@
1
- import Language from "@/types/Language";
1
+ import Language from "@/types/editor/Language";
2
2
 
3
3
  export const frFR: { [key in Language] } = {
4
4
  "language.british_english": "Anglais britannique",
@@ -3,7 +3,7 @@ import BBRequest from "../types/BBRequest";
3
3
  import storageBridge from "./storage-bridge";
4
4
  import RequestReturn from "../types/RequestReturn";
5
5
  import BBEvent from "../types/BBEvent";
6
- import EventReturn from "../types/EventReturn";
6
+ import EventReturn from "../types/editor/EventReturn";
7
7
  import registerEvent from "./registerEvent";
8
8
 
9
9
  export default class BBRelay {
@@ -1,4 +1,4 @@
1
- import BBEvent from "./BBEvent";
1
+ import BBEvent from "../BBEvent";
2
2
 
3
3
  type EventParam<K extends keyof BBEvent> = {
4
4
  id: string;
@@ -1,4 +1,4 @@
1
- import BBEvent from "./BBEvent";
1
+ import BBEvent from "../BBEvent";
2
2
 
3
3
  interface EventReturn<K extends keyof BBEvent> {
4
4
  type: K;
@@ -1,4 +1,4 @@
1
1
  export interface RenameType {
2
2
  path: string;
3
- newPath: string;
3
+ name: string;
4
4
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes