@opencxh/domain 1.42.1 → 1.43.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/platform/sdk.d.ts
CHANGED
|
@@ -37,6 +37,10 @@ export interface InternalSDK<LocalServices extends ServiceMap = {}, TranslationK
|
|
|
37
37
|
open(key: ModalKeys, props?: any): void;
|
|
38
38
|
close(key: ModalKeys): void;
|
|
39
39
|
};
|
|
40
|
+
settings: {
|
|
41
|
+
open(initialPageId?: string): void;
|
|
42
|
+
close(): void;
|
|
43
|
+
};
|
|
40
44
|
toasts: {
|
|
41
45
|
show(config: ToastConfig): void;
|
|
42
46
|
close(id: string): void;
|
package/dist/platform/ui.d.ts
CHANGED
|
@@ -9,6 +9,21 @@ export interface ModalConfig {
|
|
|
9
9
|
props?: Record<string, any>;
|
|
10
10
|
hideHeader?: boolean;
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Settings page registered by an app. Shown in the shell's settings overlay.
|
|
14
|
+
*
|
|
15
|
+
* `displayName` and `group` are i18n keys (resolved via the app's localization
|
|
16
|
+
* namespace at render time). If the key is unknown, the raw string is shown.
|
|
17
|
+
*/
|
|
18
|
+
export interface SettingsPageConfig {
|
|
19
|
+
id: string;
|
|
20
|
+
displayName: string;
|
|
21
|
+
group?: string;
|
|
22
|
+
icon?: string;
|
|
23
|
+
resource: string;
|
|
24
|
+
order?: number;
|
|
25
|
+
permissions?: string[];
|
|
26
|
+
}
|
|
12
27
|
export interface ToastConfig {
|
|
13
28
|
id: string;
|
|
14
29
|
title?: string;
|