@appkit/dek-plugin 0.9.0 → 0.10.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/dist/index.es.js +4 -1
- package/dist/index.umd.js +4 -1
- package/dist/lib/api.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -213,7 +213,7 @@ class Api {
|
|
|
213
213
|
return this.globals.registry;
|
|
214
214
|
}
|
|
215
215
|
get boardKey() {
|
|
216
|
-
return this.globals.boardKey;
|
|
216
|
+
return this.globals.navigateParams.boardKey || "#error";
|
|
217
217
|
}
|
|
218
218
|
get boards() {
|
|
219
219
|
return this.globals.boards;
|
|
@@ -232,6 +232,9 @@ class Api {
|
|
|
232
232
|
navigate(path) {
|
|
233
233
|
this.globals.setLocation(`/${this.boardKey}${path}`);
|
|
234
234
|
}
|
|
235
|
+
get navigateParams() {
|
|
236
|
+
return this.globals.navigateParams;
|
|
237
|
+
}
|
|
235
238
|
navigateBack() {
|
|
236
239
|
history.back();
|
|
237
240
|
}
|
package/dist/index.umd.js
CHANGED
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
return this.globals.registry;
|
|
217
217
|
}
|
|
218
218
|
get boardKey() {
|
|
219
|
-
return this.globals.boardKey;
|
|
219
|
+
return this.globals.navigateParams.boardKey || "#error";
|
|
220
220
|
}
|
|
221
221
|
get boards() {
|
|
222
222
|
return this.globals.boards;
|
|
@@ -235,6 +235,9 @@
|
|
|
235
235
|
navigate(path) {
|
|
236
236
|
this.globals.setLocation(`/${this.boardKey}${path}`);
|
|
237
237
|
}
|
|
238
|
+
get navigateParams() {
|
|
239
|
+
return this.globals.navigateParams;
|
|
240
|
+
}
|
|
238
241
|
navigateBack() {
|
|
239
242
|
history.back();
|
|
240
243
|
}
|
package/dist/lib/api.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ export type DekApi = {
|
|
|
43
43
|
layout: string;
|
|
44
44
|
commandGroups: Record<string, any>;
|
|
45
45
|
navigate: (path: string) => void;
|
|
46
|
+
navigateParams: Record<string, string | undefined>;
|
|
46
47
|
navigateBack: () => void;
|
|
47
48
|
open: (boardKey: string) => void;
|
|
48
49
|
plugins: Record<string, DekApiPlugin>;
|
|
@@ -60,6 +61,7 @@ export declare class Api implements DekApi {
|
|
|
60
61
|
get layout(): string;
|
|
61
62
|
get commandGroups(): Record<string, any>;
|
|
62
63
|
navigate(path: string): void;
|
|
64
|
+
get navigateParams(): Record<string, string | undefined>;
|
|
63
65
|
navigateBack(): void;
|
|
64
66
|
open(boardKey: string): void;
|
|
65
67
|
private createPluginWrapper;
|