epos 1.15.0 → 1.16.0
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.
- package/package.json +3 -3
- package/src/epos.ts +11 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "epos",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "imkost",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@types/chrome": "^0.1.16",
|
|
22
|
-
"@types/react": "^19.1.
|
|
23
|
-
"@types/react-dom": "^19.1.
|
|
22
|
+
"@types/react": "^19.1.17",
|
|
23
|
+
"@types/react-dom": "^19.1.11",
|
|
24
24
|
"mobx": "^6.15.0",
|
|
25
25
|
"mobx-react-lite": "^4.1.1",
|
|
26
26
|
"react": "^19.1.1",
|
package/src/epos.ts
CHANGED
|
@@ -101,25 +101,27 @@ export interface Epos {
|
|
|
101
101
|
frame: {
|
|
102
102
|
/** Open frame in the background. */
|
|
103
103
|
open(name: string, url: string, attributes?: Record<string, unknown>): Promise<void>
|
|
104
|
-
/**
|
|
104
|
+
/** Close background frame by its name. */
|
|
105
105
|
close(name: string): Promise<void>
|
|
106
|
+
/** Check if background frame with the given name exists. */
|
|
107
|
+
exists(name: string): Promise<boolean>
|
|
106
108
|
/** Get list of all open background frames. */
|
|
107
109
|
list(): Promise<{ name: string; url: string }[]>
|
|
108
110
|
}
|
|
109
111
|
|
|
110
|
-
//
|
|
111
|
-
|
|
112
|
-
/** Get
|
|
112
|
+
// Static
|
|
113
|
+
static: {
|
|
114
|
+
/** Get static file URL. The file must be loaded first via `epos.static.load`. */
|
|
113
115
|
url(path: string): string
|
|
114
|
-
/** Load
|
|
116
|
+
/** Load static file by path. */
|
|
115
117
|
load(path: string): Promise<Blob>
|
|
116
|
-
/** Load all
|
|
118
|
+
/** Load all static files. */
|
|
117
119
|
loadAll(): Promise<Blob[]>
|
|
118
|
-
/** Unload
|
|
120
|
+
/** Unload static file from memory. */
|
|
119
121
|
unload(path: string): void
|
|
120
|
-
/** Unload all
|
|
122
|
+
/** Unload all static files from memory. */
|
|
121
123
|
unloadAll(): void
|
|
122
|
-
/** Get list of all available
|
|
124
|
+
/** Get list of all available static files. */
|
|
123
125
|
list(filter?: { loaded?: boolean }): { path: string; loaded: boolean }[]
|
|
124
126
|
}
|
|
125
127
|
|