@integry/sdk 4.5.2 → 4.5.4
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/.vscode/launch.json +2 -2
- package/THIRD_PARTY_LICENSES +0 -37
- package/dist/esm/index.csm.d.ts +12 -2
- package/dist/esm/index.csm.js +7262 -1
- package/dist/umd/index.umd.d.ts +9 -1
- package/dist/umd/index.umd.js +7262 -1
- package/jest.config.cjs +10 -0
- package/package.json +10 -4
- package/src/components/AddTagButton/index.ts +23 -0
- package/src/components/BasicSelect/index.ts +114 -0
- package/src/components/BasicSelect/styles.module.scss +44 -0
- package/src/components/Button/index.ts +94 -0
- package/src/components/Button/styles.module.scss +152 -0
- package/src/components/CheckboxGroup/Checkbox.ts +104 -0
- package/src/components/CheckboxGroup/index.ts +190 -0
- package/src/components/CheckboxGroup/styles.module.scss +63 -0
- package/src/components/CollapsedMenu/index.ts +101 -0
- package/src/components/CollapsedMenu/styles.module.scss +46 -0
- package/src/components/ConfigureFieldWrapper/index.ts +85 -0
- package/src/components/ConfigureFieldWrapper/styles.module.scss +57 -0
- package/src/components/EditableText/index.ts +121 -0
- package/src/components/EditableText/styles.module.scss +38 -0
- package/src/components/EditableTextArea/index.ts +143 -0
- package/src/components/EditableTextArea/styles.module.scss +91 -0
- package/src/components/ErrorMessage/index.ts +16 -0
- package/src/components/ErrorMessage/styles.module.scss +19 -0
- package/src/components/ErrorPage/index.ts +42 -0
- package/src/components/ErrorPage/styles.module.scss +26 -0
- package/src/components/Footer/index.ts +41 -0
- package/src/components/Footer/styles.module.scss +40 -0
- package/src/components/HTMLContent/index.tsx +275 -0
- package/src/components/HTMLContent/styles.module.scss +3 -0
- package/src/components/InfoBox/index.ts +48 -0
- package/src/components/InfoBox/styles.module.scss +21 -0
- package/src/components/Input/BaseInput/index.ts +170 -0
- package/src/components/Input/BaseInput/styles.module.scss +94 -0
- package/src/components/Input/DateInput/index.ts +103 -0
- package/src/components/Input/DateInput/styles.module.scss +50 -0
- package/src/components/Input/Input/index.ts +206 -0
- package/src/components/Input/Input/styles.module.scss +14 -0
- package/src/components/Input/PasswordInput/index.ts +164 -0
- package/src/components/Input/PasswordInput/styles.module.scss +37 -0
- package/src/components/Input/index.ts +7 -0
- package/src/components/Label/index.ts +61 -0
- package/src/components/Label/styles.module.scss +41 -0
- package/src/components/LargeLoader/index.ts +25 -0
- package/src/components/LargeLoader/styles.module.scss +16 -0
- package/src/components/Listbox/ListBoxItem.ts +57 -0
- package/src/components/Listbox/index.ts +479 -0
- package/src/components/Listbox/styles.module.scss +197 -0
- package/src/components/Loader/index.ts +25 -0
- package/src/components/Loader/styles.module.scss +16 -0
- package/src/components/MediaGallery/MediaGalleryModal.ts +82 -0
- package/src/components/MediaGallery/MediaSlider.ts +76 -0
- package/src/components/MediaGallery/index.ts +92 -0
- package/src/components/MediaGallery/styles.module.scss +156 -0
- package/src/components/MediaUpload/index.ts +233 -0
- package/src/components/MediaUpload/styles.module.scss +118 -0
- package/src/components/Modal/index.ts +87 -0
- package/src/components/Modal/styles.module.scss +441 -0
- package/src/components/MultipurposeField/Dropdown/ListBoxItem.tsx +58 -0
- package/src/components/MultipurposeField/Dropdown/index.tsx +981 -0
- package/src/components/MultipurposeField/Dropdown/styles.module.scss +208 -0
- package/src/components/MultipurposeField/TagMenu/index.ts +384 -0
- package/src/components/MultipurposeField/TagMenu/styles.module.scss +136 -0
- package/src/components/MultipurposeField/TagOptions/index.tsx +83 -0
- package/src/components/MultipurposeField/TagOptions/styles.module.scss +95 -0
- package/src/components/MultipurposeField/index.tsx +687 -0
- package/src/components/MultipurposeField/styles.module.scss +56 -0
- package/src/components/NewModal/index.ts +69 -0
- package/src/components/NewModal/styles.module.scss +70 -0
- package/src/components/OverflowTooltip/index.tsx +59 -0
- package/src/components/PopUp/ConfirmationPopUp/index.ts +58 -0
- package/src/components/PopUp/ConfirmationPopUp/styles.module.scss +49 -0
- package/src/components/PopUp/SuccessPopUp/index.ts +62 -0
- package/src/components/PopUp/SuccessPopUp/styles.module.scss +38 -0
- package/src/components/RadioGroup/Radio.ts +129 -0
- package/src/components/RadioGroup/index.ts +169 -0
- package/src/components/RadioGroup/styles.module.scss +81 -0
- package/src/components/Search/index.ts +69 -0
- package/src/components/Search/styles.module.scss +149 -0
- package/src/components/TabBar/Tab.ts +33 -0
- package/src/components/TabBar/index.ts +64 -0
- package/src/components/TabBar/styles.module.scss +43 -0
- package/src/components/Tag/index.ts +29 -0
- package/src/components/Tag/styles.module.scss +57 -0
- package/src/components/TextArea/index.ts +172 -0
- package/src/components/TextArea/styles.module.scss +70 -0
- package/src/components/TextContent/index.tsx +128 -0
- package/src/components/TextContent/styles.module.scss +6 -0
- package/src/components/ThreeDotLoader/index.ts +39 -0
- package/src/components/ThreeDotLoader/styles.module.scss +41 -0
- package/src/components/TimeInput/index.ts +129 -0
- package/src/components/TimeInput/styles.module.scss +16 -0
- package/src/components/Toggle/index.ts +34 -0
- package/src/components/Toggle/styles.module.scss +56 -0
- package/src/components/Toggle-v2/index.ts +40 -0
- package/src/components/Toggle-v2/styles.module.scss +86 -0
- package/src/components/Tooltip/index.ts +271 -0
- package/src/components/Tooltip/styles.module.scss +105 -0
- package/src/components/form/ObjectField/index.ts +364 -0
- package/src/components/form/ObjectField/styles.module.scss +103 -0
- package/src/components/form/index.ts +3 -0
- package/src/contexts/AppContext.ts +12 -0
- package/src/declaration.d.ts +7 -0
- package/src/extensions/HMAC.ts +25 -0
- package/src/extensions/IntegryAPIError.ts +19 -0
- package/src/features/common/AccountDropdown/index.ts +291 -0
- package/src/features/common/AccountDropdown/styles.module.scss +19 -0
- package/src/features/common/ActionForm/index.ts +1818 -0
- package/src/features/common/ActionForm/styles.module.scss +23 -0
- package/src/features/common/AppCard/index.ts +207 -0
- package/src/features/common/AppCard/styles.module.scss +117 -0
- package/src/features/common/AppCardCompact/index.ts +189 -0
- package/src/features/common/AppCardCompact/styles.module.scss +141 -0
- package/src/features/common/AuthSelector/index.ts +537 -0
- package/src/features/common/AuthSelector/styles.module.scss +161 -0
- package/src/features/common/AuthSelectorCompact/index.ts +706 -0
- package/src/features/common/AuthSelectorCompact/styles.module.scss +219 -0
- package/src/features/common/AuthSelectorDropdown/index.ts +704 -0
- package/src/features/common/AuthSelectorDropdown/styles.module.scss +361 -0
- package/src/features/common/DynamicField/index.ts +229 -0
- package/src/features/common/DynamicField/styles.module.scss +67 -0
- package/src/features/common/DynamicTypedField/index.ts +217 -0
- package/src/features/common/DynamicTypedField/styles.module.scss +67 -0
- package/src/features/common/FunctionForm/index.ts +862 -0
- package/src/features/common/FunctionForm/styles.module.scss +163 -0
- package/src/features/common/MappingUI/index.ts +649 -0
- package/src/features/common/MappingUI/styles.module.scss +121 -0
- package/src/features/common/MarketplaceAppCard/index.ts +279 -0
- package/src/features/common/MarketplaceAppCard/styles.module.scss +231 -0
- package/src/features/common/MarketplaceAppCardCompact/index.ts +283 -0
- package/src/features/common/MarketplaceAppCardCompact/styles.module.scss +255 -0
- package/src/features/common/NewMappingUI/index.ts +515 -0
- package/src/features/common/NewMappingUI/styles.module.scss +113 -0
- package/src/features/common/RequestAppWidget/RequestAppModal/index.ts +67 -0
- package/src/features/common/RequestAppWidget/RequestAppModal/styles.module.scss +23 -0
- package/src/features/common/RequestAppWidget/index.ts +48 -0
- package/src/features/common/RequestAppWidget/request-app-form.ts +89 -0
- package/src/features/common/RequestAppWidget/styles.module.scss +43 -0
- package/src/features/common/SectionField/index.ts +272 -0
- package/src/features/common/SectionField/styles.module.scss +67 -0
- package/src/features/common/Step/index.ts +827 -0
- package/src/features/common/Step/styles.module.scss +12 -0
- package/src/features/common/StepNavigation/CollapsedSteps.ts +125 -0
- package/src/features/common/StepNavigation/NavItem.ts +111 -0
- package/src/features/common/StepNavigation/index.ts +257 -0
- package/src/features/common/StepNavigation/styles.module.scss +117 -0
- package/src/features/common/Steps/index.ts +1139 -0
- package/src/features/common/Steps/styles.module.scss +314 -0
- package/src/features/containers/AppFlowContainer/AppFlowListing/compactStyles.module.scss +383 -0
- package/src/features/containers/AppFlowContainer/AppFlowListing/flow-instance.tsx +367 -0
- package/src/features/containers/AppFlowContainer/AppFlowListing/flowCard.tsx +194 -0
- package/src/features/containers/AppFlowContainer/AppFlowListing/flowCardCompact.tsx +389 -0
- package/src/features/containers/AppFlowContainer/AppFlowListing/flowInstanceCompact.tsx +577 -0
- package/src/features/containers/AppFlowContainer/AppFlowListing/index.tsx +83 -0
- package/src/features/containers/AppFlowContainer/AppFlowListing/styles.module.scss +212 -0
- package/src/features/containers/AppFlowContainer/AppFlowWrap/app-page-loader.tsx +45 -0
- package/src/features/containers/AppFlowContainer/AppFlowWrap/index.tsx +1081 -0
- package/src/features/containers/AppFlowContainer/AppFlowWrap/styles.module.scss +452 -0
- package/src/features/containers/AppFlowContainer/Authentication/index.ts +610 -0
- package/src/features/containers/AppFlowContainer/Authentication/styles.module.scss +468 -0
- package/src/features/containers/AppFlowContainer/index.ts +114 -0
- package/src/features/containers/AppPageContainer/AppPage/index.tsx +262 -0
- package/src/features/containers/AppPageContainer/AppPage/styles.module.scss +120 -0
- package/src/features/containers/AppPageContainer/IntegrationCard/index.ts +165 -0
- package/src/features/containers/AppPageContainer/IntegrationCard/styles.module.scss +81 -0
- package/src/features/containers/AppPageContainer/index.tsx +93 -0
- package/src/features/containers/AppPageContainer/styles.module.scss +0 -0
- package/src/features/containers/AppsForFlows/index.ts +161 -0
- package/src/features/containers/AppsForFlows/styles.module.scss +280 -0
- package/src/features/containers/AppsForFlowsCompact/index.ts +161 -0
- package/src/features/containers/AppsForFlowsCompact/styles.module.scss +279 -0
- package/src/features/containers/AuthSetupContainer/AppSelection.ts +73 -0
- package/src/features/containers/AuthSetupContainer/AuthTypeSelection.ts +67 -0
- package/src/features/containers/AuthSetupContainer/Footer.ts +32 -0
- package/src/features/containers/AuthSetupContainer/Header.ts +39 -0
- package/src/features/containers/AuthSetupContainer/PostAdditionPopup.ts +27 -0
- package/src/features/containers/AuthSetupContainer/index.ts +349 -0
- package/src/features/containers/AuthSetupContainer/styles.module.scss +229 -0
- package/src/features/containers/FlowSetupContainer/index.ts +390 -0
- package/src/features/containers/FlowSetupContainer/styles.module.scss +18 -0
- package/src/features/containers/MarkeplaceApps/index.ts +574 -0
- package/src/features/containers/MarkeplaceApps/styles.module.scss +559 -0
- package/src/features/containers/MarketplaceAppsCompact/index.ts +576 -0
- package/src/features/containers/MarketplaceAppsCompact/styles.module.scss +546 -0
- package/src/features/containers/MarketplaceAppsContainer/index.ts +83 -0
- package/src/features/containers/MarketplaceContainer/AppCard/index.ts +91 -0
- package/src/features/containers/MarketplaceContainer/AppCard/styles.module.scss +66 -0
- package/src/features/containers/MarketplaceContainer/AppListing/index.ts +34 -0
- package/src/features/containers/MarketplaceContainer/AppListing/styles.module.scss +10 -0
- package/src/features/containers/MarketplaceContainer/MarketplaceContentWrap/index.ts +132 -0
- package/src/features/containers/MarketplaceContainer/MarketplaceContentWrap/styles.module.scss +117 -0
- package/src/features/containers/MarketplaceContainer/index.ts +242 -0
- package/src/features/containers/MarketplaceContainer/styles.module.scss +84 -0
- package/src/features/containers/SDKContainer/index.ts +817 -0
- package/src/features/containers/SDKContainer/styles.module.scss +266 -0
- package/src/features/containers/SDKDebugContainer/index.ts +137 -0
- package/src/features/containers/SDKDebugContainer/styles.module.scss +37 -0
- package/src/features/containers/SDKFailedContainer/index.ts +117 -0
- package/src/features/containers/SDKFailedContainer/styles.module.scss +57 -0
- package/src/features/integrations/IntegrationRow/Icons.ts +77 -0
- package/src/features/integrations/IntegrationRow/index.ts +129 -0
- package/src/features/integrations/IntegrationRow/styles.module.scss +62 -0
- package/src/features/integrations/IntegrationsHeader/index.ts +34 -0
- package/src/features/integrations/IntegrationsHeader/styles.module.scss +47 -0
- package/src/features/integrations/IntegrationsList/index.ts +252 -0
- package/src/features/integrations/IntegrationsList/styles.module.scss +67 -0
- package/src/features/templates/Template/index.ts +295 -0
- package/src/features/templates/Template/styles.module.scss +226 -0
- package/src/features/templates/TemplatesView/index.ts +368 -0
- package/src/features/templates/TemplatesView/styles.module.scss +71 -0
- package/src/features/templates/TemplatesViewCompact/index.ts +364 -0
- package/src/features/templates/TemplatesViewCompact/styles.module.scss +141 -0
- package/src/hooks/useAutosizeTextArea.ts +22 -0
- package/src/hooks/useCustomRef.ts +13 -0
- package/src/hooks/useDebounce.ts +17 -0
- package/src/hooks/useElementResize.ts +40 -0
- package/src/hooks/useEventListener.ts +44 -0
- package/src/hooks/useHover.ts +40 -0
- package/src/hooks/useOnClickOutside.ts +32 -0
- package/src/index.ts +2051 -0
- package/src/index.umd.ts +13 -0
- package/src/interfaces/index.ts +924 -0
- package/src/modules/api/index.ts +1315 -0
- package/src/modules/api/responseHandler.ts +38 -0
- package/src/modules/event-emitter/index.ts +72 -0
- package/src/modules/event-emitter/runners/abstract.ts +21 -0
- package/src/modules/event-emitter/runners/default.ts +11 -0
- package/src/modules/event-emitter/runners/ntimes.ts +28 -0
- package/src/modules/event-emitter/types.ts +34 -0
- package/src/store/actionFunctions.ts +1573 -0
- package/src/store/index.ts +17 -0
- package/src/store/initialState.ts +58 -0
- package/src/stories/Button.stories.tsx +83 -0
- package/src/stories/Checkbox/Checkbox.stories.tsx +41 -0
- package/src/stories/Checkbox/CheckboxGroup.stories.tsx +46 -0
- package/src/stories/EditableText.stories.tsx +35 -0
- package/src/stories/Input/BaseInput.stories.tsx +48 -0
- package/src/stories/Input/DateInput.stories.tsx +28 -0
- package/src/stories/Input/Input.stories.tsx +24 -0
- package/src/stories/Input/PasswordInput.stories.tsx +26 -0
- package/src/stories/Introduction.stories.mdx +211 -0
- package/src/stories/Label.stories.tsx +27 -0
- package/src/stories/Listbox.stories.tsx +122 -0
- package/src/stories/Radio/Radio.stories.tsx +39 -0
- package/src/stories/Radio/RadioGroup.stories.tsx +46 -0
- package/src/stories/StepNavigation/NavItem.stories.tsx +31 -0
- package/src/stories/StepNavigation/StepNavigation.stories.tsx +50 -0
- package/src/stories/TabBar.stories.tsx +31 -0
- package/src/stories/TextArea.stories.tsx +23 -0
- package/src/stories/TimeInput.stories.tsx +37 -0
- package/src/stories/Toggle.stories.tsx +33 -0
- package/src/stories/assets/code-brackets.svg +1 -0
- package/src/stories/assets/colors.svg +1 -0
- package/src/stories/assets/comments.svg +1 -0
- package/src/stories/assets/direction.svg +1 -0
- package/src/stories/assets/flow.svg +1 -0
- package/src/stories/assets/plugin.svg +1 -0
- package/src/stories/assets/repo.svg +1 -0
- package/src/stories/assets/stackalt.svg +1 -0
- package/src/types/index.ts +293 -0
- package/src/types/store.ts +366 -0
- package/src/types/utils.ts +19 -0
- package/src/utils/ActivityOutputUtils.ts +163 -0
- package/src/utils/common.ts +20 -0
- package/src/utils/copyToClipboard.ts +24 -0
- package/src/utils/datetime.ts +101 -0
- package/src/utils/getUrlParam.ts +11 -0
- package/src/utils/isAuthMessage.ts +16 -0
- package/src/utils/isBrowser.ts +1 -0
- package/src/utils/jsonEncodeDecode.ts +15 -0
- package/src/utils/objectUtils.ts +116 -0
- package/src/utils/popup.ts +30 -0
- package/src/utils/searchJson.ts +51 -0
- package/src/utils/stepUtils.ts +45 -0
- package/src/utils/truncate.ts +6 -0
- package/test/setup.ts +1 -0
- package/vitest.config.ts +10 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
.appCard {
|
|
2
|
+
background: #FFFFFF;
|
|
3
|
+
border: 1px solid #E0E0E0;
|
|
4
|
+
border-radius: 8px;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: row;
|
|
7
|
+
width: 350px;
|
|
8
|
+
height: 88px;
|
|
9
|
+
padding: 16px;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
filter: drop-shadow(0px 0px 12px rgba(0, 0, 0, 0.06));
|
|
12
|
+
.leftSection {
|
|
13
|
+
.appLogo {
|
|
14
|
+
height: 56px;
|
|
15
|
+
width: 56px;
|
|
16
|
+
object-fit: contain;
|
|
17
|
+
border-radius: 50%;
|
|
18
|
+
}
|
|
19
|
+
margin-right: 16px;
|
|
20
|
+
}
|
|
21
|
+
.rightSection {
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
.appTitleSection {
|
|
26
|
+
font-family: inherit;
|
|
27
|
+
font-style: normal;
|
|
28
|
+
font-weight: 600;
|
|
29
|
+
font-size: 16px;
|
|
30
|
+
line-height: 19px;
|
|
31
|
+
color: #333333;
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-wrap: nowrap;
|
|
34
|
+
margin-bottom: 8px;
|
|
35
|
+
align-items: center;
|
|
36
|
+
.appName {
|
|
37
|
+
margin-right: 8px;
|
|
38
|
+
max-width: 160px;
|
|
39
|
+
white-space: nowrap;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
text-overflow: ellipsis;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
.appDescription {
|
|
45
|
+
font-family: inherit;
|
|
46
|
+
font-style: normal;
|
|
47
|
+
font-weight: 400;
|
|
48
|
+
font-size: 14px;
|
|
49
|
+
line-height: 17px;
|
|
50
|
+
color: #4F4F4F;
|
|
51
|
+
max-width: 242px;
|
|
52
|
+
white-space: nowrap;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
text-overflow: ellipsis;
|
|
55
|
+
margin-left: 1px;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
&:hover {
|
|
59
|
+
border: 1px solid #4250f0;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.app-card-tag__inner-span {
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: baseline;
|
|
66
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { html } from 'htm/preact';
|
|
2
|
+
import { connect } from 'unistore/preact';
|
|
3
|
+
import { actionFunctions } from '@/store';
|
|
4
|
+
import { StoreType } from '@/types/store';
|
|
5
|
+
import { MarketplaceAppBundle } from '@/interfaces';
|
|
6
|
+
import { AppCard } from '@/features/containers/MarketplaceContainer/AppCard';
|
|
7
|
+
import styles from './styles.module.scss';
|
|
8
|
+
|
|
9
|
+
interface AppListingProps extends StoreType {
|
|
10
|
+
marketplaceApps: MarketplaceAppBundle[];
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const AppListing = (props: AppListingProps) => {
|
|
14
|
+
const {
|
|
15
|
+
marketplaceApps
|
|
16
|
+
} = props;
|
|
17
|
+
|
|
18
|
+
const handleCardClick = (marketplaceApp: MarketplaceAppBundle): void => {
|
|
19
|
+
props.setStoreState({
|
|
20
|
+
showMarketplaceAppPageId: marketplaceApp.id,
|
|
21
|
+
})
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
return html`
|
|
25
|
+
<div class="${styles.appListing} integry-container__app-listing">
|
|
26
|
+
${marketplaceApps.map((marketplaceApp) => html`<${AppCard} handleCardClick=${handleCardClick} key=${marketplaceApp.id} marketplaceApp=${marketplaceApp} />`)}
|
|
27
|
+
</div>
|
|
28
|
+
`;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default connect<AppListingProps, unknown, StoreType, unknown>(
|
|
32
|
+
[],
|
|
33
|
+
actionFunctions,
|
|
34
|
+
)(AppListing);
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/* eslint-disable no-nested-ternary */
|
|
2
|
+
import { html } from 'htm/preact';
|
|
3
|
+
import { useEffect, useRef, useState } from 'preact/hooks';
|
|
4
|
+
import { connect } from 'unistore/preact';
|
|
5
|
+
import { actionFunctions } from '@/store';
|
|
6
|
+
import { StoreType } from '@/types/store';
|
|
7
|
+
import { Search } from '@/components/Search';
|
|
8
|
+
import AppListing from '@/features/containers/MarketplaceContainer/AppListing';
|
|
9
|
+
import { MarketplaceAppBundle } from '@/interfaces';
|
|
10
|
+
|
|
11
|
+
import { LargeLoader } from '@/components/LargeLoader';
|
|
12
|
+
import { ErrorMessage } from '@/components/ErrorMessage';
|
|
13
|
+
import RequestAppWidget from '@/features/common/RequestAppWidget';
|
|
14
|
+
import styles from './styles.module.scss';
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
interface MarketplaceContentWrapProps extends StoreType {
|
|
18
|
+
marketplaceApps: MarketplaceAppBundle[];
|
|
19
|
+
loadingAppsStatus: string;
|
|
20
|
+
className?: string;
|
|
21
|
+
handleCloseMarketplaceModal?: () => void;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const MarketplaceContentWrap = (props: MarketplaceContentWrapProps) => {
|
|
25
|
+
const { marketplaceApps, loadingAppsStatus, className, handleCloseMarketplaceModal } = props;
|
|
26
|
+
const [filteredApps, setFilteredApps] = useState<MarketplaceAppBundle[]>(marketplaceApps);
|
|
27
|
+
const searchValueRef = useRef('');
|
|
28
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
29
|
+
const [resetSearch, setResetSearch] = useState(false);
|
|
30
|
+
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
if (searchValueRef.current) {
|
|
33
|
+
// eslint-disable-next-line no-use-before-define
|
|
34
|
+
searchApps(searchValueRef.current);
|
|
35
|
+
} else {
|
|
36
|
+
setFilteredApps(marketplaceApps);
|
|
37
|
+
}
|
|
38
|
+
}, [marketplaceApps]);
|
|
39
|
+
|
|
40
|
+
const connectedApps: MarketplaceAppBundle[] = [];
|
|
41
|
+
const discoverApps: MarketplaceAppBundle[] = [];
|
|
42
|
+
filteredApps.forEach((marketplaceApp: MarketplaceAppBundle) => {
|
|
43
|
+
if (marketplaceApp.app.authorization_type.authorizations.length > 0) {
|
|
44
|
+
connectedApps.push(marketplaceApp);
|
|
45
|
+
} else {
|
|
46
|
+
discoverApps.push(marketplaceApp);
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
const searchApps = (searchValue: string) => {
|
|
51
|
+
if (searchValue) {
|
|
52
|
+
searchValueRef.current = searchValue;
|
|
53
|
+
const searchedApps = marketplaceApps.filter((marketplaceApp) => {
|
|
54
|
+
if (marketplaceApp.app.name.toLowerCase().includes(searchValue.toLowerCase())) {
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
return false;
|
|
58
|
+
});
|
|
59
|
+
setFilteredApps(searchedApps);
|
|
60
|
+
} else {
|
|
61
|
+
searchValueRef.current = '';
|
|
62
|
+
setFilteredApps(marketplaceApps);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
const onClickTellButtonSearchPopUp = () => {
|
|
67
|
+
if (handleCloseMarketplaceModal) {
|
|
68
|
+
handleCloseMarketplaceModal();
|
|
69
|
+
}
|
|
70
|
+
props.setStoreState({
|
|
71
|
+
requestAppFormData: {
|
|
72
|
+
appField: searchValueRef.current,
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
// setResetSearch((prev) => !prev);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return html`
|
|
79
|
+
${loadingAppsStatus === 'LOADING' ? html`<div class="${styles.marketplaceLoader}"><${LargeLoader} /></div>` : html`
|
|
80
|
+
<div class="${styles[className || '']}">
|
|
81
|
+
<div class="${styles.searchWrap}">
|
|
82
|
+
<${Search} reset=${resetSearch} onChange=${searchApps} disabled className="search-marketplace" placeholder="Search by app name"/>
|
|
83
|
+
${searchValueRef.current && filteredApps.length === 0 && html`
|
|
84
|
+
<div class="${styles.searchAppPopUp}">
|
|
85
|
+
<p class="${styles.searchText}">No results for “${searchValueRef.current}”</p>
|
|
86
|
+
<${RequestAppWidget} buttonWidth="107px" buttonHeight="32px" className="search-pop-up" onClickTellButton=${onClickTellButtonSearchPopUp}/>
|
|
87
|
+
</div>`
|
|
88
|
+
}
|
|
89
|
+
</div>
|
|
90
|
+
<div class="${styles.appListingWrap}">
|
|
91
|
+
${connectedApps.length > 0 && html`
|
|
92
|
+
<div class="${styles.marketplaceSection} ${'integry-container__marketplace-section'}">
|
|
93
|
+
<h3 class="${styles.sectionTitle} ${'integry-container__marketplace-section__title'}">Connected apps</h3>
|
|
94
|
+
<${AppListing} marketplaceApps="${connectedApps}" />
|
|
95
|
+
</div>
|
|
96
|
+
`}
|
|
97
|
+
${discoverApps.length > 0 && html`
|
|
98
|
+
<div class="${styles.marketplaceSection} ${styles.discoverApps} ${'integry-container__marketplace-section'}">
|
|
99
|
+
<h3 class="${styles.sectionTitle} ${'integry-container__marketplace-section__title'}">Discover apps</h3>
|
|
100
|
+
<${AppListing} marketplaceApps="${discoverApps}" />
|
|
101
|
+
</div>
|
|
102
|
+
`}
|
|
103
|
+
${connectedApps.length === 0 && discoverApps.length === 0 && html`
|
|
104
|
+
<div class="${styles.marketplaceSection} ${'integry-container__marketplace-section'}">
|
|
105
|
+
<h3 class="${styles.sectionTitle} ${'integry-container__marketplace-section__title'}">
|
|
106
|
+
${marketplaceApps.length === 0 ? 'No apps added in marketplace'
|
|
107
|
+
: filteredApps.length === 0 ? `No results for “${searchValueRef.current}”` : 'Discover apps'}
|
|
108
|
+
</h3>
|
|
109
|
+
${loadingAppsStatus ? html`
|
|
110
|
+
<div class="${styles.errorMessageWrap}">
|
|
111
|
+
<${ErrorMessage}><p>${loadingAppsStatus}</p><//>
|
|
112
|
+
</div>
|
|
113
|
+
` : html`
|
|
114
|
+
<p class="${styles.infoMessage}">
|
|
115
|
+
</p>
|
|
116
|
+
`}
|
|
117
|
+
</div>
|
|
118
|
+
`}
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
<${RequestAppWidget} className="marketplace-apps" onClickTellButton=${handleCloseMarketplaceModal} />
|
|
122
|
+
`
|
|
123
|
+
}
|
|
124
|
+
`;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export default connect<MarketplaceContentWrapProps, unknown, StoreType, unknown>(
|
|
128
|
+
[
|
|
129
|
+
'genericData',
|
|
130
|
+
],
|
|
131
|
+
actionFunctions,
|
|
132
|
+
)(MarketplaceContentWrap);
|
package/src/features/containers/MarketplaceContainer/MarketplaceContentWrap/styles.module.scss
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
.marketplaceSection {
|
|
2
|
+
margin-bottom: 40px;
|
|
3
|
+
.sectionTitle {
|
|
4
|
+
font-family: inherit;
|
|
5
|
+
font-style: normal;
|
|
6
|
+
font-weight: 500;
|
|
7
|
+
font-size: 18px;
|
|
8
|
+
line-height: 22px;
|
|
9
|
+
color: #333333;
|
|
10
|
+
margin: 0px;
|
|
11
|
+
margin-bottom: 24px;
|
|
12
|
+
margin-top: 0px;
|
|
13
|
+
}
|
|
14
|
+
.errorMessageWrap {
|
|
15
|
+
margin-left: 2px;
|
|
16
|
+
}
|
|
17
|
+
.infoMessage{
|
|
18
|
+
margin-left: 2px;
|
|
19
|
+
font-family: inherit;
|
|
20
|
+
font-style: normal;
|
|
21
|
+
font-weight: normal;
|
|
22
|
+
font-size: 16px;
|
|
23
|
+
line-height: 19px;
|
|
24
|
+
color: #333333;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
.searchWrap {
|
|
28
|
+
position: relative;
|
|
29
|
+
.searchAppPopUp {
|
|
30
|
+
position: absolute;
|
|
31
|
+
top: 42px;
|
|
32
|
+
left: 0px;
|
|
33
|
+
background: #FFFFFF;
|
|
34
|
+
border: 1px solid rgba(0, 0, 0, 0.2);
|
|
35
|
+
box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.12);;
|
|
36
|
+
border-radius: 4px;
|
|
37
|
+
padding: 16px 22px;
|
|
38
|
+
width: 445px;
|
|
39
|
+
.searchText {
|
|
40
|
+
font-family: inherit;
|
|
41
|
+
font-style: normal;
|
|
42
|
+
font-weight: 500;
|
|
43
|
+
font-size: 14px;
|
|
44
|
+
line-height: 17px;
|
|
45
|
+
color: #7E7A8F;
|
|
46
|
+
margin: 0px;
|
|
47
|
+
margin-bottom: 6px;
|
|
48
|
+
}
|
|
49
|
+
@media (min-width: 320px) {
|
|
50
|
+
max-width: 353px;
|
|
51
|
+
}
|
|
52
|
+
@media (min-width: 875px) {
|
|
53
|
+
max-width: 445px;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
.marketplaceLoader {
|
|
58
|
+
position: relative;
|
|
59
|
+
left: calc(100% - 26px - 50%);
|
|
60
|
+
top: 30%;
|
|
61
|
+
width: fit-content;
|
|
62
|
+
}
|
|
63
|
+
.modal-marketplace-content {
|
|
64
|
+
min-height: calc(100vh - 100px - 186px - 30px);
|
|
65
|
+
margin-bottom: 30px;
|
|
66
|
+
.marketplaceSection {
|
|
67
|
+
.sectionTitle {
|
|
68
|
+
font-family: inherit;
|
|
69
|
+
font-style: normal;
|
|
70
|
+
font-weight: 500;
|
|
71
|
+
font-size: 18px;
|
|
72
|
+
line-height: 22px;
|
|
73
|
+
color: #000000;
|
|
74
|
+
margin: 0px;
|
|
75
|
+
margin-bottom: 24px;
|
|
76
|
+
margin-top: 0px;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
@media (min-height: 1152px) {
|
|
80
|
+
min-height: calc(1000px - 186px - 30px);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
.inline-marketplace-content {
|
|
84
|
+
height: calc(100% - 40px);
|
|
85
|
+
margin-bottom: 30px;
|
|
86
|
+
.marketplaceSection {
|
|
87
|
+
&.discoverApps {
|
|
88
|
+
margin-bottom: 0px;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
.appListingWrap {
|
|
92
|
+
overflow-y: auto;
|
|
93
|
+
max-height: calc(100% - 68px);
|
|
94
|
+
&::-webkit-scrollbar {
|
|
95
|
+
width: 7px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* Track */
|
|
99
|
+
&::-webkit-scrollbar-track {
|
|
100
|
+
// background: #f1f1f1;
|
|
101
|
+
background: transparent;
|
|
102
|
+
border-radius: 8px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* Handle */
|
|
106
|
+
&::-webkit-scrollbar-thumb {
|
|
107
|
+
background: #BDBDBD;
|
|
108
|
+
border: 1px solid #BDBDBD;
|
|
109
|
+
border-radius: 8px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* Handle on hover */
|
|
113
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
114
|
+
background: rgb(116, 116, 116);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { html } from 'htm/preact';
|
|
2
|
+
import { useEffect, useContext, useState, useRef } from 'preact/hooks';
|
|
3
|
+
import { connect } from 'unistore/preact';
|
|
4
|
+
import { Modal } from '@/components/Modal';
|
|
5
|
+
import { MarketplaceRenderModes, ViewStyles } from '@/types';
|
|
6
|
+
import { actionFunctions } from '@/store';
|
|
7
|
+
import AppContext from '@/contexts/AppContext';
|
|
8
|
+
import { StoreType } from '@/types/store';
|
|
9
|
+
import { AppConnectionStatus, MarketplaceAppAuthorizationType, MarketplaceAppBundle, UserConfig } from '@/interfaces';
|
|
10
|
+
import RequestAppModal from '@/features/common/RequestAppWidget/RequestAppModal';
|
|
11
|
+
import AppPage from '@/features/containers/AppPageContainer/AppPage';
|
|
12
|
+
import AccountDropdown from '@/features/common/AccountDropdown';
|
|
13
|
+
import MarketplaceContentWrap from './MarketplaceContentWrap';
|
|
14
|
+
import styles from './styles.module.scss';
|
|
15
|
+
|
|
16
|
+
interface ContainerProps extends StoreType {
|
|
17
|
+
marketplaceId: string;
|
|
18
|
+
userConfig?: UserConfig;
|
|
19
|
+
renderMode: MarketplaceRenderModes;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const MarketplaceContainer = (props: ContainerProps) => {
|
|
23
|
+
const {
|
|
24
|
+
renderMode,
|
|
25
|
+
marketplaceId,
|
|
26
|
+
userConfig,
|
|
27
|
+
genericData,
|
|
28
|
+
} = props;
|
|
29
|
+
const context = useContext(AppContext);
|
|
30
|
+
const [loadingAppsStatus, setLoadingAppsStatus] = useState('LOADING');
|
|
31
|
+
const [marketplaceApps, setMarketplaceApps] = useState<MarketplaceAppBundle[]>([]);
|
|
32
|
+
const appConnectionVerificationSent = useRef(false);
|
|
33
|
+
const tempMarketplaceAppsRef = useRef<MarketplaceAppBundle[]>([]);
|
|
34
|
+
|
|
35
|
+
const setConnectionStatus = (connectionStatus: AppConnectionStatus, marketplaceAppId: number) => {
|
|
36
|
+
const updatedMarketplaceApps = tempMarketplaceAppsRef.current.map((marketplaceApp) => {
|
|
37
|
+
if (marketplaceAppId === marketplaceApp.id) {
|
|
38
|
+
return {
|
|
39
|
+
...marketplaceApp,
|
|
40
|
+
connectionStatus,
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return marketplaceApp;
|
|
44
|
+
});
|
|
45
|
+
tempMarketplaceAppsRef.current = updatedMarketplaceApps;
|
|
46
|
+
setMarketplaceApps(updatedMarketplaceApps);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const setMarketplaceAppsConnectionStatus = (resData: MarketplaceAppBundle[]) => {
|
|
50
|
+
resData.forEach((marketplaceApp) => {
|
|
51
|
+
const authorizationType = marketplaceApp.app.authorization_type;
|
|
52
|
+
if (authorizationType.authorizations.length > 0 && authorizationType.default_authorization) {
|
|
53
|
+
setConnectionStatus(AppConnectionStatus.VERIFYING, marketplaceApp.id);
|
|
54
|
+
context?.apiHandler
|
|
55
|
+
.verifyOAuth(authorizationType.default_authorization)
|
|
56
|
+
.then((res) => {
|
|
57
|
+
if (res) {
|
|
58
|
+
setConnectionStatus(AppConnectionStatus.CONNECTED, marketplaceApp.id);
|
|
59
|
+
} else {
|
|
60
|
+
setConnectionStatus(AppConnectionStatus.ERROR, marketplaceApp.id);
|
|
61
|
+
}
|
|
62
|
+
})
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
useEffect(() => {
|
|
68
|
+
if (marketplaceApps.length > 0 && !appConnectionVerificationSent.current) {
|
|
69
|
+
appConnectionVerificationSent.current = true;
|
|
70
|
+
tempMarketplaceAppsRef.current = marketplaceApps;
|
|
71
|
+
setMarketplaceAppsConnectionStatus(marketplaceApps);
|
|
72
|
+
setLoadingAppsStatus('');
|
|
73
|
+
}
|
|
74
|
+
}, [marketplaceApps, appConnectionVerificationSent.current]);
|
|
75
|
+
|
|
76
|
+
useEffect(() => {
|
|
77
|
+
if (!props.showMarketplaceAppPageId) {
|
|
78
|
+
appConnectionVerificationSent.current = false;
|
|
79
|
+
}
|
|
80
|
+
if (marketplaceId) {
|
|
81
|
+
setLoadingAppsStatus('LOADING');
|
|
82
|
+
context?.apiHandler
|
|
83
|
+
.getMarketplaceDetails({ marketplaceId })
|
|
84
|
+
.then((data) => {
|
|
85
|
+
if (data) {
|
|
86
|
+
props.setGenericData({
|
|
87
|
+
marketplaceDetail: data.meta
|
|
88
|
+
})
|
|
89
|
+
} else {
|
|
90
|
+
console.error(`Failed to fetch marketplace details`);
|
|
91
|
+
}
|
|
92
|
+
})
|
|
93
|
+
context?.apiHandler
|
|
94
|
+
.getMarketplaceApps({
|
|
95
|
+
marketplaceId
|
|
96
|
+
})
|
|
97
|
+
.then((resData) => {
|
|
98
|
+
if (resData) {
|
|
99
|
+
setMarketplaceApps(resData);
|
|
100
|
+
if (resData.length < 1) {
|
|
101
|
+
setLoadingAppsStatus('');
|
|
102
|
+
}
|
|
103
|
+
} else {
|
|
104
|
+
setLoadingAppsStatus(`Error: Failed to fetch marketplace apps`);
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}, [marketplaceId, props.showMarketplaceAppPageId]);
|
|
109
|
+
|
|
110
|
+
const fetchIUAccounts = (): void => {
|
|
111
|
+
context?.apiHandler
|
|
112
|
+
.getIUTestingAccounts()
|
|
113
|
+
.then((data) => {
|
|
114
|
+
if (data) {
|
|
115
|
+
props.setGenericData({
|
|
116
|
+
IUAccountsData: data
|
|
117
|
+
})
|
|
118
|
+
} else {
|
|
119
|
+
console.error(`Failed to fetch IU Accounts data`);
|
|
120
|
+
}
|
|
121
|
+
})
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
useEffect(() => {
|
|
125
|
+
if (userConfig && userConfig.viewAsIU) {
|
|
126
|
+
fetchIUAccounts();
|
|
127
|
+
}
|
|
128
|
+
}, [])
|
|
129
|
+
|
|
130
|
+
const handleCloseMarketplaceModal = () => {
|
|
131
|
+
props.setStoreState({
|
|
132
|
+
showMarketplaceModal: false,
|
|
133
|
+
});
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
const handelAuthorizationSelected = (): void => {
|
|
137
|
+
fetchIUAccounts();
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
const getAuthorizationTypeWithAccounts = (): MarketplaceAppAuthorizationType | null => {
|
|
141
|
+
if (props.genericData.IUAccountsData) {
|
|
142
|
+
return props.genericData.IUAccountsData;
|
|
143
|
+
}
|
|
144
|
+
return null;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
const handleGoBackToApps = (): void => {
|
|
148
|
+
props.setStoreState({
|
|
149
|
+
showMarketplaceAppPageId: null,
|
|
150
|
+
})
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
return html`
|
|
154
|
+
<div class="${styles['integry-container']} ${'integry-container'}">
|
|
155
|
+
${renderMode === MarketplaceRenderModes.INLINE &&
|
|
156
|
+
html`
|
|
157
|
+
<div
|
|
158
|
+
class="${styles.inlineSetup} ${'integry-container__marketplace--inline'}"
|
|
159
|
+
>
|
|
160
|
+
${props.showMarketplaceAppPageId ?
|
|
161
|
+
html`<${AppPage} marketplaceId=${marketplaceId} marketplaceAppId=${props.showMarketplaceAppPageId} />`
|
|
162
|
+
: html`
|
|
163
|
+
<${MarketplaceContentWrap} className="inline-marketplace-content" loadingAppsStatus=${loadingAppsStatus} marketplaceApps=${marketplaceApps} />
|
|
164
|
+
`
|
|
165
|
+
}
|
|
166
|
+
</div>
|
|
167
|
+
`}
|
|
168
|
+
</div>
|
|
169
|
+
${renderMode === MarketplaceRenderModes.MODAL &&
|
|
170
|
+
html`
|
|
171
|
+
<${Modal}
|
|
172
|
+
isOpen=${props.showMarketplaceModal}
|
|
173
|
+
onClose=${handleCloseMarketplaceModal}
|
|
174
|
+
className="marketplace-modal"
|
|
175
|
+
isCompact=${genericData.viewStyle === ViewStyles.COMPACT}
|
|
176
|
+
>
|
|
177
|
+
<div class="${styles.modalSetup} ${'integry-container__marketplace--modal'}">
|
|
178
|
+
<div class=${styles.modalHeader}>
|
|
179
|
+
<div class="${styles.modalTitle}">
|
|
180
|
+
${props.showMarketplaceAppPageId ? html`
|
|
181
|
+
<div class="${styles.backLink}" onclick=${handleGoBackToApps}>
|
|
182
|
+
<svg width="33" height="33" viewBox="0 0 33 33" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
183
|
+
<circle cx="16.6758" cy="16.5684" r="15.5" fill="white" stroke="#E0E0E0"/>
|
|
184
|
+
<path d="M16.8975 11.3777L16.5547 11.7205L16.5547 11.7205L16.8975 11.3777ZM16.8975 12.0634L16.5547 11.7205L16.5547 11.7205L16.8975 12.0634ZM16.2119 11.3777L16.5547 11.7205L16.2119 11.3777ZM11.3634 16.2262L11.0205 15.8833L11.0205 15.8833L11.3634 16.2262ZM11.0205 16.569L10.6777
|
|
185
|
+
16.2262L10.3349 16.569L10.6777 16.9118L11.0205 16.569ZM11.3634 16.9118L11.0205 17.2547L11.0205 17.2547L11.3634 16.9118ZM16.2119 21.7603L16.5547 21.4175L16.5547 21.4175L16.2119 21.7603ZM16.8975 21.7603L16.5547 21.4175L16.5547 21.4175L16.8975 21.7603ZM16.8975 21.0747L16.5547 21.4175L16.5547 21.4175L16.8975 21.0747ZM12.3919 16.569L12.0491 16.2262L11.7062 16.569L12.0491 16.9118L12.3919 16.569ZM22.8574 17.0545L22.8574 17.5394L22.8574 17.0545ZM22.8574 16.0848L22.8574 16.5697L22.8574
|
|
186
|
+
16.0848ZM13.1605 16.0848L13.1605 15.6L13.1605 16.0848ZM13.1605 17.0545L13.1605 16.5697L13.1605 17.0545ZM16.5547 11.7205L16.5547 11.7205L17.2404 12.4062C17.6191 12.0275 17.6191 11.4135 17.2404 11.0348L16.5547 11.7205ZM16.5547 11.7205L17.2404 11.0348C16.8617 10.6562 16.2477 10.6562 15.869 11.0348L16.5547 11.7205ZM11.7062 16.569L16.5547 11.7205L15.869 11.0348L11.0205 15.8833L11.7062 16.569ZM11.3634 16.9118L11.7062 16.569L11.0205 15.8833L10.6777 16.2262L11.3634 16.9118ZM11.7062 16.569L11.3634 16.2262L10.6777
|
|
187
|
+
16.9118L11.0205 17.2547L11.7062 16.569ZM16.5547 21.4175L11.7062 16.569L11.0205 17.2547L15.869 22.1032L16.5547 21.4175ZM16.5547 21.4175L15.869 22.1032C16.2477 22.4819 16.8617 22.4819 17.2404 22.1032L16.5547 21.4175ZM16.5547 21.4175L16.5547
|
|
188
|
+
21.4175L17.2404 22.1032C17.6191 21.7245 17.6191 21.1105 17.2404 20.7318L16.5547 21.4175ZM12.0491 16.9118L16.5547 21.4175L17.2404 20.7318L12.7347 16.2262L12.0491 16.9118ZM16.5547 11.7205L12.0491 16.2262L12.7347 16.9118L17.2404 12.4062L16.5547 11.7205ZM22.8574 16.5697L22.8574 16.5697L22.8574 17.5394C23.393 17.5394 23.8271 17.1052 23.8271 16.5697L22.8574 16.5697ZM22.8574 16.5697L22.8574 16.5697L23.8271 16.5697C23.8271 16.0341 23.393 15.6 22.8574 15.6L22.8574
|
|
189
|
+
16.5697ZM13.1605 16.5697L22.8574 16.5697L22.8574 15.6L13.1605 15.6L13.1605 16.5697ZM13.1605 16.5697L13.1605 15.6C12.6249 15.6 12.1908 16.0341 12.1908 16.5697L13.1605 16.5697ZM13.1605 16.5697L12.1908 16.5697C12.1908 17.1052 12.6249 17.5394 13.1605 17.5394L13.1605 16.5697ZM22.8574 16.5697L13.1605 16.5697L13.1605 17.5394L22.8574 17.5394L22.8574 16.5697Z" fill="#4250F0"/>
|
|
190
|
+
</svg>
|
|
191
|
+
<p class="${styles.backLabel}">Apps</p>
|
|
192
|
+
</div>
|
|
193
|
+
`
|
|
194
|
+
: html`
|
|
195
|
+
${userConfig?.marketplaceModalTitle || 'Marketplace'}`
|
|
196
|
+
}
|
|
197
|
+
</div>
|
|
198
|
+
${userConfig?.viewAsIU && !props.showMarketplaceAppPageId && html`
|
|
199
|
+
<div class="${styles.accountsWrap}">
|
|
200
|
+
<p class="${styles.label}">Account:</p>
|
|
201
|
+
<div class="${styles.accountList}">
|
|
202
|
+
<${AccountDropdown}
|
|
203
|
+
authorizationType=${getAuthorizationTypeWithAccounts()}
|
|
204
|
+
onAuthorizationSelected=${handelAuthorizationSelected}
|
|
205
|
+
isIUAccount=${true}
|
|
206
|
+
showError=${true}
|
|
207
|
+
/>
|
|
208
|
+
</div>
|
|
209
|
+
</div>
|
|
210
|
+
`}
|
|
211
|
+
</div>
|
|
212
|
+
<div class="${styles.modalContentWrap}">
|
|
213
|
+
${props.showMarketplaceAppPageId ?
|
|
214
|
+
html`<${AppPage} marketplaceId=${marketplaceId} marketplaceAppId=${props.showMarketplaceAppPageId} />`
|
|
215
|
+
: html`
|
|
216
|
+
<${MarketplaceContentWrap} className="modal-marketplace-content"
|
|
217
|
+
loadingAppsStatus=${loadingAppsStatus}
|
|
218
|
+
marketplaceApps=${marketplaceApps}
|
|
219
|
+
handleCloseMarketplaceModal=${handleCloseMarketplaceModal}
|
|
220
|
+
/>
|
|
221
|
+
`
|
|
222
|
+
}
|
|
223
|
+
</div>
|
|
224
|
+
</div>
|
|
225
|
+
<//>
|
|
226
|
+
`}
|
|
227
|
+
${html`
|
|
228
|
+
<${RequestAppModal} />
|
|
229
|
+
`}
|
|
230
|
+
`;
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
export default connect<ContainerProps, unknown, StoreType, unknown>(
|
|
234
|
+
[
|
|
235
|
+
'userConfig',
|
|
236
|
+
'genericData',
|
|
237
|
+
'showMarketplaceModal',
|
|
238
|
+
'showMarketplaceAppPageId',
|
|
239
|
+
'IUAccountsData',
|
|
240
|
+
],
|
|
241
|
+
actionFunctions,
|
|
242
|
+
)(MarketplaceContainer);
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
.integry-container {
|
|
2
|
+
width: inherit;
|
|
3
|
+
height: inherit;
|
|
4
|
+
.inlineSetup {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-wrap: nowrap;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
position: relative;
|
|
9
|
+
justify-content: flex-start;
|
|
10
|
+
height: 100%;
|
|
11
|
+
padding: 15px;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
.modalSetup {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-wrap: wrap;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
position: relative;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
height: 100%;
|
|
21
|
+
padding: 24px;
|
|
22
|
+
padding-left: 0px;
|
|
23
|
+
padding-right: 0px;
|
|
24
|
+
padding-bottom: 0px;
|
|
25
|
+
.modalHeader {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: flex-start;
|
|
28
|
+
justify-content: space-between;
|
|
29
|
+
padding-right: 100px;
|
|
30
|
+
height: 48px;
|
|
31
|
+
border-bottom: 1px solid #E0E0E0;
|
|
32
|
+
.modalTitle {
|
|
33
|
+
font-family: inherit;
|
|
34
|
+
font-style: normal;
|
|
35
|
+
font-weight: 500;
|
|
36
|
+
font-size: 18px;
|
|
37
|
+
line-height: 22px;
|
|
38
|
+
color: #000000;
|
|
39
|
+
// margin-bottom: 24px;
|
|
40
|
+
margin-left: 32px;
|
|
41
|
+
.backLink {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: flex-start;
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
svg {
|
|
47
|
+
vertical-align: unset;
|
|
48
|
+
margin-right: 8px;
|
|
49
|
+
}
|
|
50
|
+
p {
|
|
51
|
+
margin: 0px;
|
|
52
|
+
}
|
|
53
|
+
.backLabel {
|
|
54
|
+
font-family: inherit;
|
|
55
|
+
font-style: normal;
|
|
56
|
+
font-weight: 400;
|
|
57
|
+
font-size: 14px;
|
|
58
|
+
line-height: 17px;
|
|
59
|
+
color: #000000;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
.accountsWrap {
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
justify-content: flex-start;
|
|
67
|
+
.label {
|
|
68
|
+
font-family: 'Inter';
|
|
69
|
+
font-style: normal;
|
|
70
|
+
font-weight: 500;
|
|
71
|
+
font-size: 12px;
|
|
72
|
+
line-height: 15px;
|
|
73
|
+
color: #333333;
|
|
74
|
+
margin: 0px;
|
|
75
|
+
margin-right: 10px;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
.modalContentWrap {
|
|
80
|
+
margin-top: 24px;
|
|
81
|
+
margin-left: 32px;
|
|
82
|
+
margin-right: 30px;
|
|
83
|
+
}
|
|
84
|
+
}
|