bb-relay 0.0.26 → 0.0.27
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/dist/{Locale-WvQQn-Rm.d.mts → Locale-D_rGwMX3.d.mts} +4 -0
- package/dist/{Locale-WvQQn-Rm.d.ts → Locale-D_rGwMX3.d.ts} +4 -0
- package/dist/{RequestReturn-Dz6GOUXl.d.mts → RequestReturn-BgtFhYjb.d.mts} +45 -1
- package/dist/{RequestReturn-HqaTSu6S.d.ts → RequestReturn-C5NpmrZy.d.ts} +45 -1
- package/dist/api.d.mts +2 -2
- package/dist/api.d.ts +2 -2
- package/dist/editor.d.mts +1 -1
- package/dist/editor.d.ts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +0 -3
- package/dist/index.mjs +0 -3
- package/dist/locale.d.mts +2 -2
- package/dist/locale.d.ts +2 -2
- package/dist/locale.js +10 -2
- package/dist/locale.mjs +10 -2
- package/package.json +1 -1
- package/src/locales/en-GB.ts +4 -0
- package/src/locales/fr-FR.ts +4 -0
- package/src/relay/postRequestResponse.ts +0 -3
- package/src/types/api/BBRequest.ts +3 -1
- package/src/types/requests/storage.ts +34 -0
|
@@ -129,6 +129,10 @@ declare const enGB: {
|
|
|
129
129
|
"plugins.enable.all": string;
|
|
130
130
|
"plugins.disable.all": string;
|
|
131
131
|
"plugins.install.local": string;
|
|
132
|
+
"check.all": string;
|
|
133
|
+
"uncheck.all": string;
|
|
134
|
+
"checkpoint.latest": string;
|
|
135
|
+
errors: string;
|
|
132
136
|
};
|
|
133
137
|
|
|
134
138
|
type Language = keyof typeof enGB;
|
|
@@ -129,6 +129,10 @@ declare const enGB: {
|
|
|
129
129
|
"plugins.enable.all": string;
|
|
130
130
|
"plugins.disable.all": string;
|
|
131
131
|
"plugins.install.local": string;
|
|
132
|
+
"check.all": string;
|
|
133
|
+
"uncheck.all": string;
|
|
134
|
+
"checkpoint.latest": string;
|
|
135
|
+
errors: string;
|
|
132
136
|
};
|
|
133
137
|
|
|
134
138
|
type Language = keyof typeof enGB;
|
|
@@ -267,7 +267,51 @@ type GitRequests = {
|
|
|
267
267
|
};
|
|
268
268
|
};
|
|
269
269
|
|
|
270
|
-
type
|
|
270
|
+
type StorageRequests = {
|
|
271
|
+
"storage:getItem": {
|
|
272
|
+
arg: {
|
|
273
|
+
key: string;
|
|
274
|
+
};
|
|
275
|
+
response: unknown;
|
|
276
|
+
};
|
|
277
|
+
"storage:setItem": {
|
|
278
|
+
arg: {
|
|
279
|
+
key: string;
|
|
280
|
+
value: string;
|
|
281
|
+
};
|
|
282
|
+
response: null;
|
|
283
|
+
};
|
|
284
|
+
"storage:removeItem": {
|
|
285
|
+
arg: {
|
|
286
|
+
key: string;
|
|
287
|
+
};
|
|
288
|
+
response: null;
|
|
289
|
+
};
|
|
290
|
+
"storage:clear": {
|
|
291
|
+
arg: null;
|
|
292
|
+
response: null;
|
|
293
|
+
};
|
|
294
|
+
"storage:keys": {
|
|
295
|
+
arg: null;
|
|
296
|
+
response: string[];
|
|
297
|
+
};
|
|
298
|
+
"storage:length": {
|
|
299
|
+
arg: null;
|
|
300
|
+
response: number;
|
|
301
|
+
};
|
|
302
|
+
"storage:getAll": {
|
|
303
|
+
arg: null;
|
|
304
|
+
response: Record<string, unknown>;
|
|
305
|
+
};
|
|
306
|
+
"storage:key": {
|
|
307
|
+
arg: {
|
|
308
|
+
index: number;
|
|
309
|
+
};
|
|
310
|
+
response: string;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
type BBRequest = FileRequests & FolderRequest & ProjectRequest & AppRequest & GitRequests & FetchRequest & StorageRequests;
|
|
271
315
|
|
|
272
316
|
interface EventReturn<K extends keyof BBEvent> {
|
|
273
317
|
type: K;
|
|
@@ -267,7 +267,51 @@ type GitRequests = {
|
|
|
267
267
|
};
|
|
268
268
|
};
|
|
269
269
|
|
|
270
|
-
type
|
|
270
|
+
type StorageRequests = {
|
|
271
|
+
"storage:getItem": {
|
|
272
|
+
arg: {
|
|
273
|
+
key: string;
|
|
274
|
+
};
|
|
275
|
+
response: unknown;
|
|
276
|
+
};
|
|
277
|
+
"storage:setItem": {
|
|
278
|
+
arg: {
|
|
279
|
+
key: string;
|
|
280
|
+
value: string;
|
|
281
|
+
};
|
|
282
|
+
response: null;
|
|
283
|
+
};
|
|
284
|
+
"storage:removeItem": {
|
|
285
|
+
arg: {
|
|
286
|
+
key: string;
|
|
287
|
+
};
|
|
288
|
+
response: null;
|
|
289
|
+
};
|
|
290
|
+
"storage:clear": {
|
|
291
|
+
arg: null;
|
|
292
|
+
response: null;
|
|
293
|
+
};
|
|
294
|
+
"storage:keys": {
|
|
295
|
+
arg: null;
|
|
296
|
+
response: string[];
|
|
297
|
+
};
|
|
298
|
+
"storage:length": {
|
|
299
|
+
arg: null;
|
|
300
|
+
response: number;
|
|
301
|
+
};
|
|
302
|
+
"storage:getAll": {
|
|
303
|
+
arg: null;
|
|
304
|
+
response: Record<string, unknown>;
|
|
305
|
+
};
|
|
306
|
+
"storage:key": {
|
|
307
|
+
arg: {
|
|
308
|
+
index: number;
|
|
309
|
+
};
|
|
310
|
+
response: string;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
type BBRequest = FileRequests & FolderRequest & ProjectRequest & AppRequest & GitRequests & FetchRequest & StorageRequests;
|
|
271
315
|
|
|
272
316
|
interface EventReturn<K extends keyof BBEvent> {
|
|
273
317
|
type: K;
|
package/dist/api.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BBEvent, a as BBRequest } from './RequestReturn-
|
|
2
|
-
export { E as EventReturn, R as RequestReturn } from './RequestReturn-
|
|
1
|
+
import { B as BBEvent, a as BBRequest } from './RequestReturn-BgtFhYjb.mjs';
|
|
2
|
+
export { E as EventReturn, R as RequestReturn } from './RequestReturn-BgtFhYjb.mjs';
|
|
3
3
|
import './fetch-BFabLq7k.mjs';
|
|
4
4
|
import './Project-B7IjpqOJ.mjs';
|
|
5
5
|
import './PROJECT_CATEGORY-BivLHtB6.mjs';
|
package/dist/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BBEvent, a as BBRequest } from './RequestReturn-
|
|
2
|
-
export { E as EventReturn, R as RequestReturn } from './RequestReturn-
|
|
1
|
+
import { B as BBEvent, a as BBRequest } from './RequestReturn-C5NpmrZy.js';
|
|
2
|
+
export { E as EventReturn, R as RequestReturn } from './RequestReturn-C5NpmrZy.js';
|
|
3
3
|
import './fetch-BFabLq7k.js';
|
|
4
4
|
import './Project-B_Vppjgw.js';
|
|
5
5
|
import './PROJECT_CATEGORY-BivLHtB6.js';
|
package/dist/editor.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { C as Commit } from './Commit-PdsjrKSG.mjs';
|
|
2
2
|
export { C as CopyArg, a as FileContent, b as FileStat, F as FolderContent, c as FolderStat, G as GitFileStatus, I as IPCResponse } from './fetch-BFabLq7k.mjs';
|
|
3
|
-
import { L as Language, a as Locale } from './Locale-
|
|
3
|
+
import { L as Language, a as Locale } from './Locale-D_rGwMX3.mjs';
|
|
4
4
|
export { R as Result } from './Result-BLbZLEgX.mjs';
|
|
5
5
|
|
|
6
6
|
type IconArg = {
|
package/dist/editor.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { C as Commit } from './Commit-PdsjrKSG.js';
|
|
2
2
|
export { C as CopyArg, a as FileContent, b as FileStat, F as FolderContent, c as FolderStat, G as GitFileStatus, I as IPCResponse } from './fetch-BFabLq7k.js';
|
|
3
|
-
import { L as Language, a as Locale } from './Locale-
|
|
3
|
+
import { L as Language, a as Locale } from './Locale-D_rGwMX3.js';
|
|
4
4
|
export { R as Result } from './Result-BLbZLEgX.js';
|
|
5
5
|
|
|
6
6
|
type IconArg = {
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BBEvent, E as EventReturn, a as BBRequest, R as RequestReturn } from './RequestReturn-
|
|
1
|
+
import { B as BBEvent, E as EventReturn, a as BBRequest, R as RequestReturn } from './RequestReturn-BgtFhYjb.mjs';
|
|
2
2
|
import { a as FileContent } from './fetch-BFabLq7k.mjs';
|
|
3
3
|
export { R as Result } from './Result-BLbZLEgX.mjs';
|
|
4
4
|
import { P as Plugin } from './Plugin-BMoQ48uq.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BBEvent, E as EventReturn, a as BBRequest, R as RequestReturn } from './RequestReturn-
|
|
1
|
+
import { B as BBEvent, E as EventReturn, a as BBRequest, R as RequestReturn } from './RequestReturn-C5NpmrZy.js';
|
|
2
2
|
import { a as FileContent } from './fetch-BFabLq7k.js';
|
|
3
3
|
export { R as Result } from './Result-BLbZLEgX.js';
|
|
4
4
|
import { P as Plugin } from './Plugin-BojCB5ZJ.js';
|
package/dist/index.js
CHANGED
|
@@ -188,14 +188,11 @@ function postEventResponse(window2, response) {
|
|
|
188
188
|
|
|
189
189
|
// src/relay/postRequestResponse.ts
|
|
190
190
|
function postRequestResponse(window2, response) {
|
|
191
|
-
console.log("postRequestResponse response", response);
|
|
192
|
-
console.log("postRequestResponse window", window2);
|
|
193
191
|
const res = {
|
|
194
192
|
...response,
|
|
195
193
|
source: "request",
|
|
196
194
|
responseId: crypto.randomUUID()
|
|
197
195
|
};
|
|
198
|
-
console.log("postRequestResponse res", res);
|
|
199
196
|
window2.postMessage(res, "*");
|
|
200
197
|
}
|
|
201
198
|
|
package/dist/index.mjs
CHANGED
|
@@ -188,14 +188,11 @@ function postEventResponse(window2, response) {
|
|
|
188
188
|
|
|
189
189
|
// src/relay/postRequestResponse.ts
|
|
190
190
|
function postRequestResponse(window2, response) {
|
|
191
|
-
console.log("postRequestResponse response", response);
|
|
192
|
-
console.log("postRequestResponse window", window2);
|
|
193
191
|
const res = {
|
|
194
192
|
...response,
|
|
195
193
|
source: "request",
|
|
196
194
|
responseId: crypto.randomUUID()
|
|
197
195
|
};
|
|
198
|
-
console.log("postRequestResponse res", res);
|
|
199
196
|
window2.postMessage(res, "*");
|
|
200
197
|
}
|
|
201
198
|
|
package/dist/locale.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as Language } from './Locale-
|
|
2
|
-
export { a as Locale, e as enGB } from './Locale-
|
|
1
|
+
import { L as Language } from './Locale-D_rGwMX3.mjs';
|
|
2
|
+
export { a as Locale, e as enGB } from './Locale-D_rGwMX3.mjs';
|
|
3
3
|
|
|
4
4
|
declare const frFR: {
|
|
5
5
|
[key in Language]: string;
|
package/dist/locale.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as Language } from './Locale-
|
|
2
|
-
export { a as Locale, e as enGB } from './Locale-
|
|
1
|
+
import { L as Language } from './Locale-D_rGwMX3.js';
|
|
2
|
+
export { a as Locale, e as enGB } from './Locale-D_rGwMX3.js';
|
|
3
3
|
|
|
4
4
|
declare const frFR: {
|
|
5
5
|
[key in Language]: string;
|
package/dist/locale.js
CHANGED
|
@@ -129,7 +129,11 @@ var enGB = {
|
|
|
129
129
|
"updates.download": "Download updates",
|
|
130
130
|
"plugins.enable.all": "Enable all plugins",
|
|
131
131
|
"plugins.disable.all": "Disable all plugins",
|
|
132
|
-
"plugins.install.local": "Install local plugins"
|
|
132
|
+
"plugins.install.local": "Install local plugins",
|
|
133
|
+
"check.all": "Check all",
|
|
134
|
+
"uncheck.all": "Uncheck all",
|
|
135
|
+
"checkpoint.latest": "Go back to latest",
|
|
136
|
+
errors: "Errors"
|
|
133
137
|
};
|
|
134
138
|
var en_GB_default = enGB;
|
|
135
139
|
|
|
@@ -264,7 +268,11 @@ var frFR = {
|
|
|
264
268
|
"updates.download": "T\xE9l\xE9charger les mises \xE0 jour",
|
|
265
269
|
"plugins.enable.all": "Activer tous les plugins",
|
|
266
270
|
"plugins.disable.all": "D\xE9sactiver tous les plugins",
|
|
267
|
-
"plugins.install.local": "Installer des plugins locaux"
|
|
271
|
+
"plugins.install.local": "Installer des plugins locaux",
|
|
272
|
+
"check.all": "Tout cocher",
|
|
273
|
+
"uncheck.all": "Tout d\xE9cocher",
|
|
274
|
+
"checkpoint.latest": "Revenir au dernier point de contr\xF4le",
|
|
275
|
+
errors: "Erreurs"
|
|
268
276
|
};
|
|
269
277
|
var fr_FR_default = frFR;
|
|
270
278
|
|
package/dist/locale.mjs
CHANGED
|
@@ -129,7 +129,11 @@ var enGB = {
|
|
|
129
129
|
"updates.download": "Download updates",
|
|
130
130
|
"plugins.enable.all": "Enable all plugins",
|
|
131
131
|
"plugins.disable.all": "Disable all plugins",
|
|
132
|
-
"plugins.install.local": "Install local plugins"
|
|
132
|
+
"plugins.install.local": "Install local plugins",
|
|
133
|
+
"check.all": "Check all",
|
|
134
|
+
"uncheck.all": "Uncheck all",
|
|
135
|
+
"checkpoint.latest": "Go back to latest",
|
|
136
|
+
errors: "Errors"
|
|
133
137
|
};
|
|
134
138
|
var en_GB_default = enGB;
|
|
135
139
|
|
|
@@ -264,7 +268,11 @@ var frFR = {
|
|
|
264
268
|
"updates.download": "T\xE9l\xE9charger les mises \xE0 jour",
|
|
265
269
|
"plugins.enable.all": "Activer tous les plugins",
|
|
266
270
|
"plugins.disable.all": "D\xE9sactiver tous les plugins",
|
|
267
|
-
"plugins.install.local": "Installer des plugins locaux"
|
|
271
|
+
"plugins.install.local": "Installer des plugins locaux",
|
|
272
|
+
"check.all": "Tout cocher",
|
|
273
|
+
"uncheck.all": "Tout d\xE9cocher",
|
|
274
|
+
"checkpoint.latest": "Revenir au dernier point de contr\xF4le",
|
|
275
|
+
errors: "Erreurs"
|
|
268
276
|
};
|
|
269
277
|
var fr_FR_default = frFR;
|
|
270
278
|
export {
|
package/package.json
CHANGED
package/src/locales/en-GB.ts
CHANGED
|
@@ -138,6 +138,10 @@ export const enGB = {
|
|
|
138
138
|
"plugins.enable.all": "Enable all plugins",
|
|
139
139
|
"plugins.disable.all": "Disable all plugins",
|
|
140
140
|
"plugins.install.local": "Install local plugins",
|
|
141
|
+
"check.all": "Check all",
|
|
142
|
+
"uncheck.all": "Uncheck all",
|
|
143
|
+
"checkpoint.latest": "Go back to latest",
|
|
144
|
+
errors: "Errors",
|
|
141
145
|
};
|
|
142
146
|
|
|
143
147
|
export default enGB;
|
package/src/locales/fr-FR.ts
CHANGED
|
@@ -141,6 +141,10 @@ export const frFR: { [key in Language]: string } = {
|
|
|
141
141
|
"plugins.enable.all": "Activer tous les plugins",
|
|
142
142
|
"plugins.disable.all": "Désactiver tous les plugins",
|
|
143
143
|
"plugins.install.local": "Installer des plugins locaux",
|
|
144
|
+
"check.all": "Tout cocher",
|
|
145
|
+
"uncheck.all": "Tout décocher",
|
|
146
|
+
"checkpoint.latest": "Revenir au dernier point de contrôle",
|
|
147
|
+
errors: "Erreurs",
|
|
144
148
|
};
|
|
145
149
|
|
|
146
150
|
export default frFR;
|
|
@@ -6,13 +6,10 @@ export function postRequestResponse<K extends BBRequestKey>(
|
|
|
6
6
|
window: Window,
|
|
7
7
|
response: Omit<RequestReturn<K>, "source" | "responseId">
|
|
8
8
|
): void {
|
|
9
|
-
console.log("postRequestResponse response", response);
|
|
10
|
-
console.log("postRequestResponse window", window);
|
|
11
9
|
const res: RequestReturn<K> = {
|
|
12
10
|
...response,
|
|
13
11
|
source: "request",
|
|
14
12
|
responseId: crypto.randomUUID(),
|
|
15
13
|
};
|
|
16
|
-
console.log("postRequestResponse res", res);
|
|
17
14
|
window.postMessage(res, "*");
|
|
18
15
|
}
|
|
@@ -4,12 +4,14 @@ import ProjectRequest from "../requests/project";
|
|
|
4
4
|
import { AppRequest } from "../requests/app";
|
|
5
5
|
import { GitRequests } from "../requests/git";
|
|
6
6
|
import { FetchRequest } from "../requests/fetch";
|
|
7
|
+
import { StorageRequests } from "../requests/storage";
|
|
7
8
|
|
|
8
9
|
type BBRequest = FileRequests &
|
|
9
10
|
FolderRequest &
|
|
10
11
|
ProjectRequest &
|
|
11
12
|
AppRequest &
|
|
12
13
|
GitRequests &
|
|
13
|
-
FetchRequest
|
|
14
|
+
FetchRequest &
|
|
15
|
+
StorageRequests;
|
|
14
16
|
|
|
15
17
|
export default BBRequest;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export type StorageRequests = {
|
|
2
|
+
"storage:getItem": {
|
|
3
|
+
arg: { key: string };
|
|
4
|
+
response: unknown;
|
|
5
|
+
};
|
|
6
|
+
"storage:setItem": {
|
|
7
|
+
arg: { key: string; value: string };
|
|
8
|
+
response: null;
|
|
9
|
+
};
|
|
10
|
+
"storage:removeItem": {
|
|
11
|
+
arg: { key: string };
|
|
12
|
+
response: null;
|
|
13
|
+
};
|
|
14
|
+
"storage:clear": {
|
|
15
|
+
arg: null;
|
|
16
|
+
response: null;
|
|
17
|
+
};
|
|
18
|
+
"storage:keys": {
|
|
19
|
+
arg: null;
|
|
20
|
+
response: string[];
|
|
21
|
+
};
|
|
22
|
+
"storage:length": {
|
|
23
|
+
arg: null;
|
|
24
|
+
response: number;
|
|
25
|
+
};
|
|
26
|
+
"storage:getAll": {
|
|
27
|
+
arg: null;
|
|
28
|
+
response: Record<string, unknown>;
|
|
29
|
+
};
|
|
30
|
+
"storage:key": {
|
|
31
|
+
arg: { index: number };
|
|
32
|
+
response: string;
|
|
33
|
+
};
|
|
34
|
+
};
|