@interopio/home-ui-react 2.2.8 → 4.3.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/README.md +81 -57
- package/dist/index.css +2 -2
- package/dist/index.d.ts +420 -25
- package/dist/index.js +17 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12682 -10225
- package/dist/index.mjs.map +1 -1
- package/package.json +23 -16
- package/LICENSE +0 -21
- package/dist/common/sequelizer.d.ts +0 -7
- package/dist/common/types.d.ts +0 -25
- package/dist/common/utils.d.ts +0 -2
- package/dist/constants/alerts.d.ts +0 -8
- package/dist/constants/auth0LoginTypes.d.ts +0 -4
- package/dist/constants/defaults.d.ts +0 -1
- package/dist/constants/dialogs.d.ts +0 -5
- package/dist/constants/itemTypes.d.ts +0 -6
- package/dist/constants/modifierKeys.d.ts +0 -4
- package/dist/constants/platformPrefs.d.ts +0 -13
- package/dist/constants/regex.d.ts +0 -1
- package/dist/constants/sections.d.ts +0 -5
- package/dist/constants/sortOrder.d.ts +0 -5
- package/dist/constants/storageKeys.d.ts +0 -5
- package/dist/decoders/base.d.ts +0 -5
- package/dist/decoders/config.d.ts +0 -3
- package/dist/decoders/layouts.d.ts +0 -3
- package/dist/decoders/platform.d.ts +0 -5
- package/dist/decoders/user.d.ts +0 -3
- package/dist/decoders/validation.d.ts +0 -3
- package/dist/executors/applicationActions.d.ts +0 -4
- package/dist/executors/layoutActions.d.ts +0 -4
- package/dist/executors/setupStepsActions.d.ts +0 -3
- package/dist/executors/types.d.ts +0 -33
- package/dist/executors/workspaceActions.d.ts +0 -4
- package/dist/helpers/a11y.d.ts +0 -22
- package/dist/helpers/alerts.d.ts +0 -9
- package/dist/helpers/sort.d.ts +0 -11
- package/dist/hooks/index.d.ts +0 -29
- package/dist/hooks/useApplications.d.ts +0 -2
- package/dist/hooks/useApplicationsInstances.d.ts +0 -3
- package/dist/hooks/useBeforeunload.d.ts +0 -1
- package/dist/hooks/useExecuteApplicationAction.d.ts +0 -2
- package/dist/hooks/useExecuteLayoutAction.d.ts +0 -5
- package/dist/hooks/useExecuteLayoutOperationIfNotBlocked.d.ts +0 -1
- package/dist/hooks/useExecuteWorkspaceAction.d.ts +0 -2
- package/dist/hooks/useFavorites.d.ts +0 -8
- package/dist/hooks/useFrameId.d.ts +0 -1
- package/dist/hooks/useInvokeInteropMethod.d.ts +0 -2
- package/dist/hooks/useIsHomeLoaded.d.ts +0 -1
- package/dist/hooks/useIsLaunchpadCollapsed.d.ts +0 -9
- package/dist/hooks/useIsLaunchpadPinned.d.ts +0 -8
- package/dist/hooks/useIsRunningInDesktopContainer.d.ts +0 -1
- package/dist/hooks/useLayouts.d.ts +0 -5
- package/dist/hooks/useNotifications.d.ts +0 -2
- package/dist/hooks/useNotificationsConfiguration.d.ts +0 -3
- package/dist/hooks/useOnIframeFocus.d.ts +0 -6
- package/dist/hooks/useOnOutsideClick.d.ts +0 -9
- package/dist/hooks/usePlatformWindow.d.ts +0 -5
- package/dist/hooks/usePressedKeys.d.ts +0 -1
- package/dist/hooks/useRestoreLayout.d.ts +0 -2
- package/dist/hooks/useRestoreWorkspace.d.ts +0 -5
- package/dist/hooks/useSearch.d.ts +0 -5
- package/dist/hooks/useStartApplication.d.ts +0 -7
- package/dist/hooks/useStorage.d.ts +0 -4
- package/dist/hooks/useUA.d.ts +0 -2
- package/dist/hooks/useWorkspaces.d.ts +0 -2
- package/dist/hooks/useWorkspacesInstances.d.ts +0 -3
- package/dist/lib/applications-section/applications-section.d.ts +0 -3
- package/dist/lib/applications-section/helpers.d.ts +0 -5
- package/dist/lib/applications-section/types.d.ts +0 -9
- package/dist/lib/base-section/base-section-header.d.ts +0 -8
- package/dist/lib/base-section/base-section-item.d.ts +0 -14
- package/dist/lib/base-section/base-section.d.ts +0 -14
- package/dist/lib/base-section/helpers.d.ts +0 -2
- package/dist/lib/base-section/types.d.ts +0 -20
- package/dist/lib/base-section/useCollapsedSections.d.ts +0 -4
- package/dist/lib/context-menu/constants.d.ts +0 -11
- package/dist/lib/context-menu/context-menu.d.ts +0 -11
- package/dist/lib/context-menu/dropdown-button/dropdown-button.d.ts +0 -24
- package/dist/lib/context-menu/types.d.ts +0 -13
- package/dist/lib/default-header-system-buttons/constants.d.ts +0 -2
- package/dist/lib/default-header-system-buttons/default-header-system-buttons.d.ts +0 -2
- package/dist/lib/default-header-system-buttons/default-header-system-menu.d.ts +0 -2
- package/dist/lib/favorites-section/favorites-section.d.ts +0 -3
- package/dist/lib/favorites-section/helpers.d.ts +0 -3
- package/dist/lib/home-app-workspace/after-tabs.d.ts +0 -3
- package/dist/lib/home-app-workspace/constants.d.ts +0 -2
- package/dist/lib/home-app-workspace/group-header-buttons.d.ts +0 -3
- package/dist/lib/home-app-workspace/home-app-workspace.d.ts +0 -12
- package/dist/lib/home-app-workspace/index.d.ts +0 -1
- package/dist/lib/home-app-workspace/launchpad-access.d.ts +0 -6
- package/dist/lib/home-app-workspace/no-logo.d.ts +0 -2
- package/dist/lib/home-app-workspace/types.d.ts +0 -3
- package/dist/lib/home-app-workspace/useAddWindowButtonVisible.d.ts +0 -1
- package/dist/lib/home-app-workspace/workspace-components-context.d.ts +0 -11
- package/dist/lib/icon-components/index.d.ts +0 -4
- package/dist/lib/icon-components/platform-setup/browser-notifications-icon.d.ts +0 -2
- package/dist/lib/icon-components/platform-setup/index.d.ts +0 -4
- package/dist/lib/icon-components/platform-setup/popups-icon.d.ts +0 -2
- package/dist/lib/icon-components/platform-setup/pwa-install-icon.d.ts +0 -2
- package/dist/lib/icon-components/platform-setup/window-management-icon.d.ts +0 -2
- package/dist/lib/icon-components/reopen-prompt-icon.d.ts +0 -2
- package/dist/lib/icon-components/start-failed-icon.d.ts +0 -2
- package/dist/lib/icon-components/warning-icon.d.ts +0 -2
- package/dist/lib/info-card/info-card.d.ts +0 -10
- package/dist/lib/info-page-container/info-page-container.d.ts +0 -9
- package/dist/lib/io-connect-home/auth0-login-home.d.ts +0 -8
- package/dist/lib/io-connect-home/home-app.d.ts +0 -2
- package/dist/lib/io-connect-home/io-connect-home.d.ts +0 -2
- package/dist/lib/io-connect-home/no-login-home.d.ts +0 -8
- package/dist/lib/io-connect-home/simple-login-home.d.ts +0 -8
- package/dist/lib/io-connect-home/types.d.ts +0 -131
- package/dist/lib/io-connect-home/useUser.d.ts +0 -8
- package/dist/lib/io-connect-home-provider/constants.d.ts +0 -5
- package/dist/lib/io-connect-home-provider/helpers.d.ts +0 -2
- package/dist/lib/io-connect-home-provider/io-connect-home-provider.d.ts +0 -16
- package/dist/lib/io-connect-home-provider/types.d.ts +0 -8
- package/dist/lib/io-init-error-screen/io-init-error-screen.d.ts +0 -3
- package/dist/lib/launchpad/constants.d.ts +0 -2
- package/dist/lib/launchpad/helpers.d.ts +0 -4
- package/dist/lib/launchpad/launchpad-body.d.ts +0 -5
- package/dist/lib/launchpad/launchpad-config.context.d.ts +0 -10
- package/dist/lib/launchpad/launchpad-contents-container.d.ts +0 -10
- package/dist/lib/launchpad/launchpad-header.d.ts +0 -5
- package/dist/lib/launchpad/launchpad-pin-button.d.ts +0 -5
- package/dist/lib/launchpad/launchpad-search.context.d.ts +0 -11
- package/dist/lib/launchpad/launchpad.context.d.ts +0 -21
- package/dist/lib/launchpad/launchpad.d.ts +0 -10
- package/dist/lib/layouts-panel/active-layout.d.ts +0 -2
- package/dist/lib/layouts-panel/all-layouts.d.ts +0 -2
- package/dist/lib/layouts-panel/constants.d.ts +0 -8
- package/dist/lib/layouts-panel/create-layout-button.d.ts +0 -2
- package/dist/lib/layouts-panel/helpers.d.ts +0 -3
- package/dist/lib/layouts-panel/layouts-dropdown.d.ts +0 -6
- package/dist/lib/layouts-panel/layouts-list.d.ts +0 -7
- package/dist/lib/layouts-panel/layouts-panel.d.ts +0 -2
- package/dist/lib/layouts-panel/save-layout-button.d.ts +0 -5
- package/dist/lib/layouts-panel/types.d.ts +0 -8
- package/dist/lib/layouts-panel/useIsLayoutsPanelOpen.d.ts +0 -9
- package/dist/lib/login/auth0/auth0-login-page.d.ts +0 -13
- package/dist/lib/login/constants.d.ts +0 -1
- package/dist/lib/login/index.d.ts +0 -3
- package/dist/lib/login/login-heading.d.ts +0 -1
- package/dist/lib/login/login-logo.d.ts +0 -6
- package/dist/lib/login/login-page-container.d.ts +0 -7
- package/dist/lib/login/simple/reducers.d.ts +0 -2
- package/dist/lib/login/simple/simple-login-form.d.ts +0 -10
- package/dist/lib/login/simple/simple-login-page.d.ts +0 -11
- package/dist/lib/login/types.d.ts +0 -9
- package/dist/lib/notifications-panel-button/notifications-badge.d.ts +0 -2
- package/dist/lib/notifications-panel-button/notifications-panel-button.d.ts +0 -5
- package/dist/lib/notifications-panels/notification-settings-panel.d.ts +0 -9
- package/dist/lib/notifications-panels/notifications-panel-with-toggle-button.d.ts +0 -3
- package/dist/lib/notifications-panels/notifications-panel.d.ts +0 -10
- package/dist/lib/panels/launchpad/launchpad-button.d.ts +0 -6
- package/dist/lib/panels/launchpad/launchpad-panel.d.ts +0 -2
- package/dist/lib/panels/panel-with-toggle-button.d.ts +0 -11
- package/dist/lib/panels/panel-wrapper.d.ts +0 -10
- package/dist/lib/panels/types.d.ts +0 -9
- package/dist/lib/platform-setup/constants.d.ts +0 -12
- package/dist/lib/platform-setup/platform-setup.d.ts +0 -15
- package/dist/lib/platform-setup/reducers.d.ts +0 -7
- package/dist/lib/platform-setup/setup-steps-list.d.ts +0 -8
- package/dist/lib/platform-setup/setup-steps.d.ts +0 -7
- package/dist/lib/platform-setup/types.d.ts +0 -32
- package/dist/lib/platform-setup/use-edge-notifications-permission.d.ts +0 -6
- package/dist/lib/preferences-panel/preferences-panel.d.ts +0 -2
- package/dist/lib/profile-panel/profile-panel.d.ts +0 -9
- package/dist/lib/search/search-bar/search-bar.d.ts +0 -8
- package/dist/lib/search/search-results-section/search-results-section.d.ts +0 -5
- package/dist/lib/search/search-results-section/types.d.ts +0 -8
- package/dist/lib/search/search-results-section/useExecuteLayoutSearchResultAction.d.ts +0 -2
- package/dist/lib/search/search-results-section/useGenerateLayoutFromId.d.ts +0 -2
- package/dist/lib/search/search-results-section/useGetActionExecutor.d.ts +0 -1
- package/dist/lib/search/search-results-section/useSearchResultsSectionConfigs.d.ts +0 -3
- package/dist/lib/section/helpers.d.ts +0 -3
- package/dist/lib/section/section.context.d.ts +0 -11
- package/dist/lib/section/section.d.ts +0 -11
- package/dist/lib/section/types.d.ts +0 -8
- package/dist/lib/spinner/index.d.ts +0 -1
- package/dist/lib/spinner/spinner.d.ts +0 -2
- package/dist/lib/system-loader/system-loader.d.ts +0 -6
- package/dist/lib/system-menu/helpers.d.ts +0 -3
- package/dist/lib/system-menu/system-menu.d.ts +0 -6
- package/dist/lib/system-menu/types.d.ts +0 -8
- package/dist/lib/workspaces-section/constants.d.ts +0 -3
- package/dist/lib/workspaces-section/helpers.d.ts +0 -6
- package/dist/lib/workspaces-section/types.d.ts +0 -4
- package/dist/lib/workspaces-section/workspaces-section.d.ts +0 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interopio/home-ui-react",
|
|
3
3
|
"description": "React components for building a Home App for io.Connect Browser.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "4.3.0",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -19,28 +19,36 @@
|
|
|
19
19
|
"audit": "echo no audit found",
|
|
20
20
|
"postversion": "npm run build"
|
|
21
21
|
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@interopio/components-react": "^4.3.0",
|
|
24
|
+
"decoder-validate": "^0.0.2",
|
|
25
|
+
"ua-parser-js": "^1.0.35"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@interopio/browser-platform": "^4.2.4",
|
|
29
|
+
"@interopio/react-hooks": "^4.3.0",
|
|
30
|
+
"@interopio/search-api": "^3.2.1",
|
|
31
|
+
"@interopio/theme": "^4.3.0",
|
|
32
|
+
"@interopio/workspaces-ui-react": "^4.3.0"
|
|
33
|
+
},
|
|
22
34
|
"peerDependencies": {
|
|
23
35
|
"@auth0/auth0-react": "^2.0.1",
|
|
36
|
+
"@interopio/browser": ">=3.0.0",
|
|
37
|
+
"@interopio/browser-platform": ">=3.0.0",
|
|
24
38
|
"@interopio/react-hooks": ">=3.0.0",
|
|
39
|
+
"@interopio/search-api": ">=3.0.0",
|
|
25
40
|
"@interopio/workspaces-api": ">=3.0.0",
|
|
26
41
|
"@interopio/workspaces-ui-react": ">=3.0.0",
|
|
27
42
|
"react": ">=16.8.0",
|
|
28
43
|
"react-dom": ">=16.8.0"
|
|
29
44
|
},
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"@interopio/browser": "^4.2.5",
|
|
32
|
-
"@interopio/components-react": "^0.9.3",
|
|
33
|
-
"@interopio/search-api": "^3.2.2",
|
|
34
|
-
"decoder-validate": "^0.0.2",
|
|
35
|
-
"ua-parser-js": "^1.0.35"
|
|
36
|
-
},
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"@interopio/browser-platform": "^4.2.5",
|
|
39
|
-
"@interopio/react-hooks": "^4.2.5",
|
|
40
|
-
"@interopio/theme": "^3.2.0",
|
|
41
|
-
"@interopio/workspaces-ui-react": "^4.2.8"
|
|
42
|
-
},
|
|
43
45
|
"peerDependenciesMeta": {
|
|
46
|
+
"@interopio/browser": {
|
|
47
|
+
"optional": true
|
|
48
|
+
},
|
|
49
|
+
"@interopio/browser-platform": {
|
|
50
|
+
"optional": true
|
|
51
|
+
},
|
|
44
52
|
"react-dom": {
|
|
45
53
|
"optional": true
|
|
46
54
|
},
|
|
@@ -57,6 +65,5 @@
|
|
|
57
65
|
"publishConfig": {
|
|
58
66
|
"@interopio:registry": "https://registry.npmjs.org",
|
|
59
67
|
"access": "public"
|
|
60
|
-
}
|
|
61
|
-
"gitHead": "efe6743dec87ecae29c638a193031e0520dac1f4"
|
|
68
|
+
}
|
|
62
69
|
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2020 Tick42
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
package/dist/common/types.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { HOME_ALERT_VARIANTS } from "../constants/alerts";
|
|
2
|
-
import { PLATFORM_PREFS_KEYS } from "../constants/platformPrefs";
|
|
3
|
-
import { SORT_ORDER } from "../constants/sortOrder";
|
|
4
|
-
import { LayoutSummary } from "../lib/layouts-panel/types";
|
|
5
|
-
import { SectionItemType } from "../lib/section/types";
|
|
6
|
-
export type Favorite = Omit<SectionItemType, "openInstances">;
|
|
7
|
-
export type SortOrder = (typeof SORT_ORDER)[keyof typeof SORT_ORDER];
|
|
8
|
-
export type SortCompareFunction<Type> = (a: Type, b: Type) => number;
|
|
9
|
-
export type DefaultSectionProps = {
|
|
10
|
-
isSectionCollapsible?: boolean;
|
|
11
|
-
sortOrder?: SortOrder;
|
|
12
|
-
};
|
|
13
|
-
export type PlatformPrefs = {
|
|
14
|
-
[PLATFORM_PREFS_KEYS.COLLAPSED_SECTIONS]?: string[];
|
|
15
|
-
[PLATFORM_PREFS_KEYS.CUSTOM_PREFS]?: any;
|
|
16
|
-
[PLATFORM_PREFS_KEYS.IS_LAUNCHPAD_COLLAPSED]?: boolean;
|
|
17
|
-
[PLATFORM_PREFS_KEYS.IS_LAUNCHPAD_PINNED]?: boolean;
|
|
18
|
-
[PLATFORM_PREFS_KEYS.IS_LAYOUTS_PANEL_OPEN]?: boolean;
|
|
19
|
-
[PLATFORM_PREFS_KEYS.FAVORITES]?: Favorite[];
|
|
20
|
-
[PLATFORM_PREFS_KEYS.LAYOUTS_SHOW_DELETE_PROMPT]?: boolean;
|
|
21
|
-
};
|
|
22
|
-
export type SetDefaultLayout = (layout: LayoutSummary) => Promise<void>;
|
|
23
|
-
export type SetActiveLayout = (layout: LayoutSummary | null) => void;
|
|
24
|
-
export type CloseLaunchpad = () => void;
|
|
25
|
-
export type HomeAlertVariant = (typeof HOME_ALERT_VARIANTS)[keyof typeof HOME_ALERT_VARIANTS];
|
package/dist/common/utils.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_SYSTEM_LAYOUT = "Welcome";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { PlatformPrefs } from "../common/types";
|
|
2
|
-
export declare const PLATFORM_PREFS_APP_NAME = "io-connect-platform";
|
|
3
|
-
export declare const PLATFORM_PREFS_CONTEXT_KEY = "___platform_prefs___";
|
|
4
|
-
export declare const PLATFORM_PREFS_KEYS: {
|
|
5
|
-
readonly CUSTOM_PREFS: "customPrefs";
|
|
6
|
-
readonly COLLAPSED_SECTIONS: "_launchpad_collapsedSections";
|
|
7
|
-
readonly FAVORITES: "_launchpad_favorites";
|
|
8
|
-
readonly IS_LAYOUTS_PANEL_OPEN: "_launchpad_isLayoutsPanelOpen";
|
|
9
|
-
readonly IS_LAUNCHPAD_COLLAPSED: "_launchpad_isCollapsed";
|
|
10
|
-
readonly IS_LAUNCHPAD_PINNED: "_launchpad_isPinned";
|
|
11
|
-
readonly LAYOUTS_SHOW_DELETE_PROMPT: "_layouts_showDeletePrompt";
|
|
12
|
-
};
|
|
13
|
-
export declare const DEFAULT_PLATFORM_PREFS: PlatformPrefs;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const NON_EMPTY_STRING_REGEX_PATTERN = "(.|\\s)*\\S(.|\\s)*";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const AUTH0_VALIDATION_ERROR_SESSION_STORAGE_KEY = "interopio_home_ui_auth0_validation_error";
|
|
2
|
-
export declare const USER_LOCAL_STORAGE_KEY = "interopio_home_ui_user";
|
|
3
|
-
export declare const PLATFORM_WINDOW_SESSION_STORAGE_KEY = "interopio_home_ui_platform_window";
|
|
4
|
-
export declare const PLATFORM_SETUP_LOCAL_STORAGE_KEY = "interopio_home_ui_platform_setup";
|
|
5
|
-
export declare const ACTIVE_LAYOUT_SESSION_STORAGE_KEY = "interopio_home_ui_active_layout";
|
package/dist/decoders/base.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Decoder } from "decoder-validate";
|
|
2
|
-
export declare const nonEmptyStringDecoder: Decoder<string>;
|
|
3
|
-
export declare const nonNegativeNumberDecoder: Decoder<number>;
|
|
4
|
-
export declare const booleanDecoder: Decoder<boolean>;
|
|
5
|
-
export declare const functionCheck: (input: any, propDescription: string) => Decoder<any>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Decoder } from "decoder-validate";
|
|
2
|
-
import { PlatformWindow } from "../lib/home-app-workspace/types";
|
|
3
|
-
import { PlatformSetupStatus } from "../lib/platform-setup/types";
|
|
4
|
-
export declare const platformWindowStorageValueDecoder: Decoder<PlatformWindow | null>;
|
|
5
|
-
export declare const platformSetupStorageValueDecoder: Decoder<PlatformSetupStatus | null>;
|
package/dist/decoders/user.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { SetStateAction } from "react";
|
|
2
|
-
import { IOConnectBrowser } from "@interopio/browser";
|
|
3
|
-
import { IOConnectDesktop } from "@interopio/desktop";
|
|
4
|
-
import { Layout } from "../lib/layouts-panel/types";
|
|
5
|
-
import { SectionItemType } from "../lib/section/types";
|
|
6
|
-
import { SetupStepReducerAction } from "../lib/platform-setup/types";
|
|
7
|
-
import { SetDefaultLayout, SetActiveLayout, CloseLaunchpad } from "../common/types";
|
|
8
|
-
type UpdateShowDeletePromptPref = (value: SetStateAction<boolean | undefined>) => Promise<void>;
|
|
9
|
-
export type LayoutActionExecutor = (config: {
|
|
10
|
-
io: IOConnectBrowser.API | IOConnectDesktop.API;
|
|
11
|
-
layout: Layout;
|
|
12
|
-
setActiveLayout: SetActiveLayout;
|
|
13
|
-
setDefaultLayout: SetDefaultLayout;
|
|
14
|
-
closeLaunchpad: CloseLaunchpad;
|
|
15
|
-
showDeletePromptPref: boolean | undefined;
|
|
16
|
-
updateShowDeletePromptPref: UpdateShowDeletePromptPref;
|
|
17
|
-
}) => Promise<void>;
|
|
18
|
-
export type ApplicationActionExecutor = (config: {
|
|
19
|
-
io: IOConnectBrowser.API | IOConnectDesktop.API;
|
|
20
|
-
item: SectionItemType;
|
|
21
|
-
frameId?: string;
|
|
22
|
-
}) => Promise<void>;
|
|
23
|
-
export type WorkspaceActionExecutor = (config: {
|
|
24
|
-
io: IOConnectBrowser.API | IOConnectDesktop.API;
|
|
25
|
-
item: SectionItemType;
|
|
26
|
-
removeFavorite: (item: SectionItemType) => Promise<void>;
|
|
27
|
-
}) => Promise<void>;
|
|
28
|
-
export type SetupStepActionExecutor = (config: {
|
|
29
|
-
handleDeferredStep: () => void;
|
|
30
|
-
handleOperationComplete: () => void;
|
|
31
|
-
dispatchAction: (action: SetupStepReducerAction) => void;
|
|
32
|
-
}) => void;
|
|
33
|
-
export {};
|
package/dist/helpers/a11y.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export type ActivationEvent<T extends HTMLElement = HTMLElement> = React.KeyboardEvent<T> | React.MouseEvent<T>;
|
|
2
|
-
export declare const isClickKeypress: (event: React.KeyboardEvent<HTMLElement>) => boolean;
|
|
3
|
-
type handler = (event: ActivationEvent) => void;
|
|
4
|
-
export declare const onClickA11y: (clickHandler?: handler, keydownHandler?: handler) => {
|
|
5
|
-
tabIndex?: undefined;
|
|
6
|
-
onClick?: undefined;
|
|
7
|
-
onKeyDown?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
tabIndex: number;
|
|
10
|
-
onClick: handler;
|
|
11
|
-
onKeyDown: (event: React.KeyboardEvent<HTMLElement>) => void;
|
|
12
|
-
};
|
|
13
|
-
type KeyboardNavigationProps = {
|
|
14
|
-
event: React.KeyboardEvent<HTMLElement>;
|
|
15
|
-
currentIndex: number;
|
|
16
|
-
moveFocus: (newNumber: number) => void;
|
|
17
|
-
min: number;
|
|
18
|
-
max: number;
|
|
19
|
-
onClose?: () => void;
|
|
20
|
-
};
|
|
21
|
-
export declare const keyboardNavigation: ({ event, currentIndex, moveFocus, min, max, onClose }: KeyboardNavigationProps) => void;
|
|
22
|
-
export {};
|
package/dist/helpers/alerts.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IOConnectBrowser } from "@interopio/browser";
|
|
2
|
-
import { IOConnectDesktop } from "@interopio/desktop";
|
|
3
|
-
import { HomeAlertVariant } from "../common/types";
|
|
4
|
-
export declare const requestAlert: (config: {
|
|
5
|
-
io: IOConnectBrowser.API | IOConnectDesktop.API;
|
|
6
|
-
variant: HomeAlertVariant;
|
|
7
|
-
text: string;
|
|
8
|
-
error?: any;
|
|
9
|
-
}) => Promise<void>;
|
package/dist/helpers/sort.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Favorite, SortCompareFunction, SortOrder } from "../common/types";
|
|
2
|
-
import { Workspace } from "../lib/workspaces-section/types";
|
|
3
|
-
export declare const collator: Intl.Collator;
|
|
4
|
-
export declare const ascendingTitleCompare: SortCompareFunction<Favorite | Workspace>;
|
|
5
|
-
export declare const descendingTitleCompare: SortCompareFunction<Favorite | Workspace>;
|
|
6
|
-
export declare const sortItems: <Type>(config: {
|
|
7
|
-
items: Type[];
|
|
8
|
-
sortOrder: SortOrder;
|
|
9
|
-
ascendingCompare: SortCompareFunction<Type>;
|
|
10
|
-
descendingCompare: SortCompareFunction<Type>;
|
|
11
|
-
}) => Type[];
|
package/dist/hooks/index.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export * from "./useApplications";
|
|
2
|
-
export * from "./useApplicationsInstances";
|
|
3
|
-
export * from "./useBeforeunload";
|
|
4
|
-
export * from "./useExecuteApplicationAction";
|
|
5
|
-
export * from "./useExecuteLayoutAction";
|
|
6
|
-
export * from "./useExecuteLayoutOperationIfNotBlocked";
|
|
7
|
-
export * from "./useExecuteWorkspaceAction";
|
|
8
|
-
export * from "./useFavorites";
|
|
9
|
-
export * from "./useFrameId";
|
|
10
|
-
export * from "./useInvokeInteropMethod";
|
|
11
|
-
export * from "./useIsHomeLoaded";
|
|
12
|
-
export * from "./useIsLaunchpadCollapsed";
|
|
13
|
-
export * from "./useIsLaunchpadPinned";
|
|
14
|
-
export * from "./useIsRunningInDesktopContainer";
|
|
15
|
-
export * from "./useLayouts";
|
|
16
|
-
export * from "./useNotifications";
|
|
17
|
-
export * from "./useNotificationsConfiguration";
|
|
18
|
-
export * from "./useOnIframeFocus";
|
|
19
|
-
export * from "./useOnOutsideClick";
|
|
20
|
-
export * from "./usePlatformWindow";
|
|
21
|
-
export * from "./usePressedKeys";
|
|
22
|
-
export * from "./useRestoreLayout";
|
|
23
|
-
export * from "./useRestoreWorkspace";
|
|
24
|
-
export * from "./useSearch";
|
|
25
|
-
export * from "./useStartApplication";
|
|
26
|
-
export * from "./useStorage";
|
|
27
|
-
export * from "./useUA";
|
|
28
|
-
export * from "./useWorkspaces";
|
|
29
|
-
export * from "./useWorkspacesInstances";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useBeforeunload: (isDisabled: boolean) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useExecuteLayoutOperationIfNotBlocked: () => (callback: () => Promise<unknown>) => Promise<void>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Favorite } from "../common/types";
|
|
2
|
-
import { SectionItemType } from "../lib/section/types";
|
|
3
|
-
export declare const useFavorites: () => {
|
|
4
|
-
favorites: Favorite[];
|
|
5
|
-
toggleFavorite: (item: SectionItemType) => Promise<void>;
|
|
6
|
-
removeFavorite: (item: SectionItemType) => Promise<void>;
|
|
7
|
-
isLoading: boolean;
|
|
8
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useFrameId: () => string | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useIsHomeLoaded: () => boolean;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { SetStateAction } from "react";
|
|
2
|
-
export declare const useIsLaunchpadCollapsed: () => {
|
|
3
|
-
error: {
|
|
4
|
-
message: string;
|
|
5
|
-
} | undefined;
|
|
6
|
-
isLaunchpadCollapsed: boolean | undefined;
|
|
7
|
-
setIsLaunchpadCollapsed: (value: SetStateAction<boolean | undefined>) => Promise<void>;
|
|
8
|
-
isLoading: boolean;
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useIsRunningInDesktopContainer: () => boolean;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { RefObject } from "react";
|
|
2
|
-
interface Config {
|
|
3
|
-
eventType: "click" | "mousedown" | "mouseup" | "touchstart" | "touchend";
|
|
4
|
-
handler: (event: MouseEvent | TouchEvent) => void;
|
|
5
|
-
ref: RefObject<HTMLElement> | RefObject<HTMLElement>[];
|
|
6
|
-
skip?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const useOnOutsideClick: (config: Config) => void;
|
|
9
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const usePressedKeys: () => string | null;
|
package/dist/hooks/useUA.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { SectionType } from "../section/types";
|
|
2
|
-
import { Application, ApplicationsSectionProps } from "./types";
|
|
3
|
-
export declare const getApplicationsSectionConfig: (applications: Application[], runningInstances: {
|
|
4
|
-
[appName: string]: string[];
|
|
5
|
-
}, settings: ApplicationsSectionProps) => SectionType;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IOConnectBrowser } from "@interopio/browser";
|
|
2
|
-
import { DefaultSectionProps } from "../../common/types";
|
|
3
|
-
export type ApplicationsSectionProps = {
|
|
4
|
-
isFolderCollapsible?: boolean;
|
|
5
|
-
} & DefaultSectionProps;
|
|
6
|
-
export type Application = Pick<IOConnectBrowser.AppManager.Application, "name" | "icon" | "caption" | "userProperties"> & {
|
|
7
|
-
id: string;
|
|
8
|
-
title: string;
|
|
9
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
interface BaseSectionHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2
|
-
title: string;
|
|
3
|
-
isOpen?: boolean;
|
|
4
|
-
showCollapseIcon?: boolean;
|
|
5
|
-
showFolderIcon?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const BaseSectionHeader: (props: BaseSectionHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default BaseSectionHeader;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from "react";
|
|
2
|
-
import { BaseSectionItemType } from "./types";
|
|
3
|
-
import { ContextMenuAction } from "../context-menu/types";
|
|
4
|
-
import { ActivationEvent } from "../../helpers/a11y";
|
|
5
|
-
interface BaseSectionItemProps extends Omit<HTMLAttributes<HTMLLIElement>, "className"> {
|
|
6
|
-
isFavoritismEnabled?: boolean;
|
|
7
|
-
item: BaseSectionItemType;
|
|
8
|
-
onClick: (event: ActivationEvent, action?: ContextMenuAction) => void;
|
|
9
|
-
onKeyDown: (event: React.KeyboardEvent<HTMLLIElement>) => void;
|
|
10
|
-
isFocused: boolean;
|
|
11
|
-
liRef?: React.Ref<HTMLLIElement>;
|
|
12
|
-
}
|
|
13
|
-
export declare const BaseSectionItem: (props: BaseSectionItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export default BaseSectionItem;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { BaseSectionItemType, BaseSectionType } from "./types";
|
|
2
|
-
import { ActivationEvent } from "../../helpers/a11y";
|
|
3
|
-
export interface BaseSectionProps<Item extends BaseSectionItemType> {
|
|
4
|
-
config: BaseSectionType<Item>;
|
|
5
|
-
level?: number;
|
|
6
|
-
path?: string;
|
|
7
|
-
onItemClick: (event: ActivationEvent, params: {
|
|
8
|
-
item: Item;
|
|
9
|
-
modifier: string | null;
|
|
10
|
-
selectedContextMenuActionName?: string;
|
|
11
|
-
}) => void;
|
|
12
|
-
}
|
|
13
|
-
export declare const BaseSection: <Item extends BaseSectionItemType>(props: BaseSectionProps<Item>) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export default BaseSection;
|