aiware-js 1.32.0 → 1.36.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/lib/registry.d.ts CHANGED
@@ -35,7 +35,9 @@ export declare enum AvailableComponents {
35
35
  SETTING_PREFERENCE = "SETTING_PREFERENCE",
36
36
  ORGANIZATION_PANEL = "ORGANIZATION_PANEL",
37
37
  DATA_CENTER_BROWSE = "DATA_CENTER_BROWSE",
38
- DATA_LABELER = "DATA_LABELER"
38
+ DATA_CENTER_IMPORTER = "DATA_CENTER_IMPORTER",
39
+ DATA_LABELER = "DATA_LABELER",
40
+ ADMIN_CENTER_OPEN_ID = "ADMIN_CENTER_OPEN_ID"
39
41
  }
40
42
  /**
41
43
  * Register The Widget
@@ -67,12 +69,27 @@ export declare const registry: {
67
69
  panelRendered: boolean;
68
70
  hidePanel?: (() => void) | undefined;
69
71
  }) => JSX.Element | null;
72
+ DATA_CENTER_IMPORTER: (props: {
73
+ dataId: string;
74
+ panelRendered: boolean;
75
+ hidePanel?: (() => void) | undefined;
76
+ }) => JSX.Element;
70
77
  DATA_LABELER: (props: {
71
78
  blueEyeConfig: import("../../../../../dist/libs/os/data-labeler/types").BlueEyeConfig;
72
79
  datasetAssets: import("../../../../../dist/libs/os/data-labeler/types").IDatasetAsset[];
73
80
  panelRendered: boolean;
74
- publishCallback: (ids: string[]) => void;
81
+ publishCallback: () => void;
82
+ hidePanel?: (() => void) | undefined;
83
+ disableSetting?: boolean | undefined;
84
+ }) => JSX.Element | null;
85
+ ADMIN_CENTER_OPEN_ID: (props: {
86
+ dataId: string;
87
+ panelRendered: boolean;
75
88
  hidePanel?: (() => void) | undefined;
89
+ config: {
90
+ appId: string;
91
+ connectorId: string;
92
+ };
76
93
  }) => JSX.Element | null;
77
94
  };
78
95
  /**
@@ -0,0 +1,43 @@
1
+ import { IMicroFrontend, IVeritoneAppbarPanelConfig } from '@aiware/js/interfaces';
2
+ import AiwareSDKHelpers from './sdk-helpers';
3
+ declare class HelpCenter extends AiwareSDKHelpers {
4
+ CUSTOM_HELP_PANEL_ID: string;
5
+ getPanelConfig(): {
6
+ helpPanelMicroFrontend: IMicroFrontend<unknown>;
7
+ helpPanelConfig: IVeritoneAppbarPanelConfig;
8
+ };
9
+ mountHelpPanel(): void;
10
+ panels(): IVeritoneAppbarPanelConfig[];
11
+ isCustomHelpPanelOpen(): boolean;
12
+ /**
13
+ * Updates the `customDocsUrl` field in the store
14
+ * and sets the active tab to 1
15
+ *
16
+ * @param {String} url
17
+ */
18
+ handleCustomDocsUrl(url: string): void;
19
+ /**
20
+ * Updates the `customKnowledgeBaseUrl` field in the store.
21
+ * and sets the active tab to 0
22
+ *
23
+ * @param {String} url
24
+ */
25
+ handleCustomKnowledgeBaseUrl(url: string): void;
26
+ /**
27
+ * Opens the help center panel with provided url.
28
+ * Sets the url to `knowledgeBaseUrl` in the `initConfig`
29
+ * if the url param is not provided.
30
+ *
31
+ * @param {String} url
32
+ */
33
+ openDocsPanel(url?: string): void;
34
+ /**
35
+ * Opens the help center panel with provided url.
36
+ * Sets the url to `knowledgeBaseUrl` in the `initConfig`
37
+ * if the url param is not provided.
38
+ *
39
+ * @param {String} url
40
+ */
41
+ openKnowledgeBasePanel(url?: string): void;
42
+ }
43
+ export default HelpCenter;
@@ -0,0 +1,3 @@
1
+ import HelpCenterUtilities from './help-center';
2
+ import SdkHelpers from './sdk-helpers';
3
+ export { HelpCenterUtilities, SdkHelpers };
@@ -0,0 +1,12 @@
1
+ export default class AiwareSDKHelpers {
2
+ /**
3
+ * Checks whether the provided URL is valid.
4
+ *
5
+ * @param {String} url
6
+ */
7
+ isURLValid(url?: string): boolean;
8
+ /**
9
+ * Unmounts all the open panels
10
+ */
11
+ unmountAllPanel(): void;
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiware-js",
3
- "version": "1.32.0",
3
+ "version": "1.36.0",
4
4
  "private": false,
5
5
  "main": "./js-core.umd.js",
6
6
  "module": "./js-core.esm.js",
@@ -15,6 +15,8 @@
15
15
  "js-function": "0.0.1",
16
16
  "os-app-bar-panel": "0.0.1",
17
17
  "os-sample-app-bar-assets": "0.0.1",
18
+ "classnames": "^2.3.1",
19
+ "shared-icons": "0.0.1",
18
20
  "aiware-share-ui": "0.0.1",
19
21
  "shared-intl": "0.0.1",
20
22
  "os-sample-app-bar": "0.0.1",
@@ -22,15 +24,14 @@
22
24
  "react-idle-timer": "4.5.4",
23
25
  "os-notification-panel": "0.0.1",
24
26
  "@material-ui/data-grid": "4.0.0-alpha.11",
25
- "shared-icons": "0.0.1",
26
27
  "os-notification-subscription": "0.0.1",
27
28
  "os-sample-panels": "0.0.1",
28
29
  "os-help-panel": "0.0.1",
29
30
  "os-flow-center": "0.0.1",
30
31
  "os-helpers": "0.0.1",
31
- "os-interfaces": "0.0.1",
32
32
  "os-config": "0.0.1",
33
33
  "os-flow-widget": "0.0.1",
34
+ "os-interfaces": "0.0.1",
34
35
  "uuid-random": "1.3.2",
35
36
  "material-ui-dropzone": "3.5.0",
36
37
  "os-setting-preference-panel": "0.0.1",
@@ -38,7 +39,9 @@
38
39
  "react-window": "1.8.6",
39
40
  "react-window-infinite-loader": "1.0.7",
40
41
  "react-virtualized-auto-sizer": "1.0.5",
42
+ "os-data-center-importer": "0.0.1",
41
43
  "os-data-labeler": "0.0.1",
44
+ "os-admin-center-open-id": "0.0.1",
42
45
  "os-panel": "0.0.1",
43
46
  "os-organization-panel": "0.0.1"
44
47
  }