@integry/sdk 4.7.39 → 4.7.40
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/esm/index.csm.js +1 -1
- package/dist/umd/index.umd.js +1 -1
- package/package.json +6 -1
- package/.eslintignore +0 -1
- package/.vscode/launch.json +0 -17
- package/CHANGELOG_INTERNAL.md +0 -134
- package/README_INTERNAL.md +0 -176
- package/THIRD_PARTY_LICENSES +0 -525
- package/generateTests.js +0 -80
- package/jest.config.cjs +0 -10
- package/src/components/AddTagButton/index.ts +0 -23
- package/src/components/BasicSelect/index.ts +0 -123
- package/src/components/BasicSelect/styles.module.scss +0 -44
- package/src/components/Button/index.ts +0 -97
- package/src/components/Button/styles.module.scss +0 -152
- package/src/components/CheckboxGroup/Checkbox.ts +0 -104
- package/src/components/CheckboxGroup/index.ts +0 -190
- package/src/components/CheckboxGroup/styles.module.scss +0 -63
- package/src/components/CollapsedMenu/index.ts +0 -104
- package/src/components/CollapsedMenu/styles.module.scss +0 -46
- package/src/components/ConfigureFieldWrapper/index.ts +0 -85
- package/src/components/ConfigureFieldWrapper/styles.module.scss +0 -57
- package/src/components/EditableText/index.ts +0 -121
- package/src/components/EditableText/styles.module.scss +0 -38
- package/src/components/EditableTextArea/index.ts +0 -143
- package/src/components/EditableTextArea/styles.module.scss +0 -91
- package/src/components/ErrorMessage/index.ts +0 -16
- package/src/components/ErrorMessage/styles.module.scss +0 -19
- package/src/components/ErrorPage/index.ts +0 -42
- package/src/components/ErrorPage/styles.module.scss +0 -26
- package/src/components/Footer/index.ts +0 -41
- package/src/components/Footer/styles.module.scss +0 -40
- package/src/components/HTMLContent/index.tsx +0 -205
- package/src/components/HTMLContent/styles.module.scss +0 -3
- package/src/components/InfoBox/index.ts +0 -48
- package/src/components/InfoBox/styles.module.scss +0 -21
- package/src/components/Input/BaseInput/index.ts +0 -170
- package/src/components/Input/BaseInput/styles.module.scss +0 -95
- package/src/components/Input/DateInput/index.ts +0 -103
- package/src/components/Input/DateInput/styles.module.scss +0 -50
- package/src/components/Input/Input/index.ts +0 -225
- package/src/components/Input/Input/styles.module.scss +0 -16
- package/src/components/Input/PasswordInput/index.ts +0 -164
- package/src/components/Input/PasswordInput/styles.module.scss +0 -37
- package/src/components/Input/index.ts +0 -7
- package/src/components/Label/index.ts +0 -61
- package/src/components/Label/styles.module.scss +0 -41
- package/src/components/LargeLoader/index.ts +0 -25
- package/src/components/LargeLoader/styles.module.scss +0 -16
- package/src/components/Listbox/ListBoxItem.ts +0 -57
- package/src/components/Listbox/index.ts +0 -488
- package/src/components/Listbox/styles.module.scss +0 -197
- package/src/components/Loader/index.ts +0 -25
- package/src/components/Loader/styles.module.scss +0 -16
- package/src/components/MediaGallery/MediaGalleryModal.ts +0 -82
- package/src/components/MediaGallery/MediaSlider.ts +0 -76
- package/src/components/MediaGallery/index.ts +0 -92
- package/src/components/MediaGallery/styles.module.scss +0 -156
- package/src/components/MediaUpload/index.ts +0 -233
- package/src/components/MediaUpload/styles.module.scss +0 -118
- package/src/components/Modal/index.ts +0 -87
- package/src/components/Modal/styles.module.scss +0 -441
- package/src/components/MultipurposeField/Dropdown/ListBoxItem.tsx +0 -59
- package/src/components/MultipurposeField/Dropdown/index.tsx +0 -1202
- package/src/components/MultipurposeField/Dropdown/styles.module.scss +0 -215
- package/src/components/MultipurposeField/TagMenu/index.ts +0 -536
- package/src/components/MultipurposeField/TagMenu/styles.module.scss +0 -175
- package/src/components/MultipurposeField/TagOptions/index.tsx +0 -83
- package/src/components/MultipurposeField/TagOptions/styles.module.scss +0 -95
- package/src/components/MultipurposeField/index.tsx +0 -944
- package/src/components/MultipurposeField/styles.module.scss +0 -77
- package/src/components/NewModal/index.ts +0 -69
- package/src/components/NewModal/styles.module.scss +0 -70
- package/src/components/OverflowTooltip/index.tsx +0 -59
- package/src/components/PopUp/ConfirmationPopUp/index.ts +0 -58
- package/src/components/PopUp/ConfirmationPopUp/styles.module.scss +0 -49
- package/src/components/PopUp/SuccessPopUp/index.ts +0 -62
- package/src/components/PopUp/SuccessPopUp/styles.module.scss +0 -38
- package/src/components/RadioGroup/Radio.ts +0 -128
- package/src/components/RadioGroup/index.ts +0 -169
- package/src/components/RadioGroup/styles.module.scss +0 -81
- package/src/components/Search/index.ts +0 -69
- package/src/components/Search/styles.module.scss +0 -149
- package/src/components/TabBar/Tab.ts +0 -33
- package/src/components/TabBar/index.ts +0 -64
- package/src/components/TabBar/styles.module.scss +0 -43
- package/src/components/Tag/index.ts +0 -29
- package/src/components/Tag/styles.module.scss +0 -57
- package/src/components/TagsMenu/index.ts +0 -1697
- package/src/components/TagsMenu/styles.module.scss +0 -350
- package/src/components/TestComponent/index.ts +0 -71
- package/src/components/TestComponent/styles.module.scss +0 -152
- package/src/components/TextArea/index.ts +0 -172
- package/src/components/TextArea/styles.module.scss +0 -72
- package/src/components/TextContent/index.tsx +0 -128
- package/src/components/TextContent/styles.module.scss +0 -6
- package/src/components/ThreeDotLoader/index.ts +0 -39
- package/src/components/ThreeDotLoader/styles.module.scss +0 -41
- package/src/components/TimeInput/index.ts +0 -129
- package/src/components/TimeInput/styles.module.scss +0 -16
- package/src/components/Toggle/index.ts +0 -34
- package/src/components/Toggle/styles.module.scss +0 -56
- package/src/components/Toggle-v2/index.ts +0 -40
- package/src/components/Toggle-v2/styles.module.scss +0 -86
- package/src/components/Tooltip/index.ts +0 -271
- package/src/components/Tooltip/styles.module.scss +0 -105
- package/src/components/form/FunctionField/index.ts +0 -816
- package/src/components/form/FunctionField/styles.module.scss +0 -478
- package/src/components/form/ObjectField/__snapshots__/index.ts.test.tsx.snap +0 -3
- package/src/components/form/ObjectField/index.ts +0 -593
- package/src/components/form/ObjectField/index.ts.test.tsx +0 -213
- package/src/components/form/ObjectField/styles.module.scss +0 -103
- package/src/components/form/index.ts +0 -4
- package/src/contexts/AppContext.ts +0 -12
- package/src/declaration.d.ts +0 -7
- package/src/extensions/HMAC.ts +0 -25
- package/src/extensions/IntegryAPIError.ts +0 -19
- package/src/features/common/AccountDropdown/index.ts +0 -291
- package/src/features/common/AccountDropdown/styles.module.scss +0 -19
- package/src/features/common/ActionForm/index.ts +0 -2602
- package/src/features/common/ActionForm/styles.module.scss +0 -35
- package/src/features/common/AppCard/index.ts +0 -207
- package/src/features/common/AppCard/styles.module.scss +0 -117
- package/src/features/common/AppCardCompact/index.ts +0 -189
- package/src/features/common/AppCardCompact/styles.module.scss +0 -141
- package/src/features/common/AuthSelector/index.ts +0 -537
- package/src/features/common/AuthSelector/styles.module.scss +0 -161
- package/src/features/common/AuthSelectorCompact/index.ts +0 -706
- package/src/features/common/AuthSelectorCompact/styles.module.scss +0 -219
- package/src/features/common/AuthSelectorDropdown/index.ts +0 -704
- package/src/features/common/AuthSelectorDropdown/styles.module.scss +0 -361
- package/src/features/common/AuthSelectorV2/index.ts +0 -336
- package/src/features/common/AuthSelectorV2/styles.module.scss +0 -235
- package/src/features/common/DynamicField/index.ts +0 -402
- package/src/features/common/DynamicField/styles.module.scss +0 -266
- package/src/features/common/DynamicTypedField/index.ts +0 -504
- package/src/features/common/DynamicTypedField/styles.module.scss +0 -135
- package/src/features/common/FunctionForm/index.ts +0 -1095
- package/src/features/common/FunctionForm/styles.module.scss +0 -225
- package/src/features/common/MappingUI/index.ts +0 -649
- package/src/features/common/MappingUI/styles.module.scss +0 -121
- package/src/features/common/MarketplaceAppCard/index.ts +0 -279
- package/src/features/common/MarketplaceAppCard/styles.module.scss +0 -231
- package/src/features/common/MarketplaceAppCardCompact/index.ts +0 -283
- package/src/features/common/MarketplaceAppCardCompact/styles.module.scss +0 -255
- package/src/features/common/NewMappingUI/index.ts +0 -515
- package/src/features/common/NewMappingUI/styles.module.scss +0 -113
- package/src/features/common/RequestAppWidget/RequestAppModal/index.ts +0 -67
- package/src/features/common/RequestAppWidget/RequestAppModal/styles.module.scss +0 -23
- package/src/features/common/RequestAppWidget/index.ts +0 -48
- package/src/features/common/RequestAppWidget/request-app-form.ts +0 -89
- package/src/features/common/RequestAppWidget/styles.module.scss +0 -43
- package/src/features/common/SectionField/index.ts +0 -272
- package/src/features/common/SectionField/styles.module.scss +0 -67
- package/src/features/common/Step/index.ts +0 -827
- package/src/features/common/Step/styles.module.scss +0 -12
- package/src/features/common/StepNavigation/CollapsedSteps.ts +0 -131
- package/src/features/common/StepNavigation/NavItem.ts +0 -111
- package/src/features/common/StepNavigation/index.ts +0 -261
- package/src/features/common/StepNavigation/styles.module.scss +0 -117
- package/src/features/common/Steps/index.ts +0 -1140
- package/src/features/common/Steps/styles.module.scss +0 -314
- package/src/features/containers/AppFlowContainer/AppFlowListing/compactStyles.module.scss +0 -404
- package/src/features/containers/AppFlowContainer/AppFlowListing/flow-instance.tsx +0 -367
- package/src/features/containers/AppFlowContainer/AppFlowListing/flowCard.test.tsx +0 -58
- package/src/features/containers/AppFlowContainer/AppFlowListing/flowCard.tsx +0 -208
- package/src/features/containers/AppFlowContainer/AppFlowListing/flowCardCompact.test.tsx +0 -49
- package/src/features/containers/AppFlowContainer/AppFlowListing/flowCardCompact.tsx +0 -421
- package/src/features/containers/AppFlowContainer/AppFlowListing/flowInstanceCompact.tsx +0 -577
- package/src/features/containers/AppFlowContainer/AppFlowListing/index.tsx +0 -83
- package/src/features/containers/AppFlowContainer/AppFlowListing/styles.module.scss +0 -233
- package/src/features/containers/AppFlowContainer/AppFlowWrap/app-page-loader.tsx +0 -45
- package/src/features/containers/AppFlowContainer/AppFlowWrap/index.tsx +0 -1085
- package/src/features/containers/AppFlowContainer/AppFlowWrap/styles.module.scss +0 -465
- package/src/features/containers/AppFlowContainer/Authentication/index.ts +0 -610
- package/src/features/containers/AppFlowContainer/Authentication/styles.module.scss +0 -468
- package/src/features/containers/AppFlowContainer/index.ts +0 -114
- package/src/features/containers/AppPageContainer/AppPage/index.tsx +0 -262
- package/src/features/containers/AppPageContainer/AppPage/styles.module.scss +0 -120
- package/src/features/containers/AppPageContainer/IntegrationCard/index.ts +0 -165
- package/src/features/containers/AppPageContainer/IntegrationCard/styles.module.scss +0 -81
- package/src/features/containers/AppPageContainer/index.tsx +0 -93
- package/src/features/containers/AppPageContainer/styles.module.scss +0 -0
- package/src/features/containers/AppsForFlows/index.ts +0 -161
- package/src/features/containers/AppsForFlows/styles.module.scss +0 -280
- package/src/features/containers/AppsForFlowsCompact/index.ts +0 -161
- package/src/features/containers/AppsForFlowsCompact/styles.module.scss +0 -279
- package/src/features/containers/AuthSetupContainer/AppSelection.ts +0 -73
- package/src/features/containers/AuthSetupContainer/AuthTypeSelection.ts +0 -67
- package/src/features/containers/AuthSetupContainer/Footer.ts +0 -32
- package/src/features/containers/AuthSetupContainer/Header.ts +0 -39
- package/src/features/containers/AuthSetupContainer/PostAdditionPopup.ts +0 -27
- package/src/features/containers/AuthSetupContainer/index.ts +0 -349
- package/src/features/containers/AuthSetupContainer/styles.module.scss +0 -229
- package/src/features/containers/FlowSetupContainer/index.ts +0 -391
- package/src/features/containers/FlowSetupContainer/styles.module.scss +0 -18
- package/src/features/containers/MarkeplaceApps/index.ts +0 -583
- package/src/features/containers/MarkeplaceApps/styles.module.scss +0 -558
- package/src/features/containers/MarketplaceAppsCompact/index.ts +0 -585
- package/src/features/containers/MarketplaceAppsCompact/styles.module.scss +0 -563
- package/src/features/containers/MarketplaceAppsContainer/index.ts +0 -91
- package/src/features/containers/MarketplaceContainer/AppCard/index.ts +0 -91
- package/src/features/containers/MarketplaceContainer/AppCard/styles.module.scss +0 -66
- package/src/features/containers/MarketplaceContainer/AppListing/index.ts +0 -34
- package/src/features/containers/MarketplaceContainer/AppListing/styles.module.scss +0 -10
- package/src/features/containers/MarketplaceContainer/MarketplaceContentWrap/index.ts +0 -132
- package/src/features/containers/MarketplaceContainer/MarketplaceContentWrap/styles.module.scss +0 -117
- package/src/features/containers/MarketplaceContainer/index.ts +0 -242
- package/src/features/containers/MarketplaceContainer/styles.module.scss +0 -84
- package/src/features/containers/SDKContainer/index.ts +0 -817
- package/src/features/containers/SDKContainer/styles.module.scss +0 -266
- package/src/features/containers/SDKDebugContainer/index.ts +0 -137
- package/src/features/containers/SDKDebugContainer/styles.module.scss +0 -37
- package/src/features/containers/SDKFailedContainer/index.ts +0 -117
- package/src/features/containers/SDKFailedContainer/styles.module.scss +0 -57
- package/src/features/integrations/IntegrationRow/Icons.ts +0 -77
- package/src/features/integrations/IntegrationRow/index.ts +0 -129
- package/src/features/integrations/IntegrationRow/styles.module.scss +0 -62
- package/src/features/integrations/IntegrationsHeader/index.ts +0 -34
- package/src/features/integrations/IntegrationsHeader/styles.module.scss +0 -47
- package/src/features/integrations/IntegrationsList/index.ts +0 -252
- package/src/features/integrations/IntegrationsList/styles.module.scss +0 -67
- package/src/features/templates/Template/index.ts +0 -295
- package/src/features/templates/Template/styles.module.scss +0 -226
- package/src/features/templates/TemplatesView/index.ts +0 -368
- package/src/features/templates/TemplatesView/styles.module.scss +0 -71
- package/src/features/templates/TemplatesViewCompact/index.ts +0 -364
- package/src/features/templates/TemplatesViewCompact/styles.module.scss +0 -141
- package/src/hooks/useAutosizeTextArea.ts +0 -22
- package/src/hooks/useCustomRef.ts +0 -13
- package/src/hooks/useDebounce.ts +0 -17
- package/src/hooks/useElementResize.ts +0 -40
- package/src/hooks/useEventListener.ts +0 -42
- package/src/hooks/useHover.ts +0 -40
- package/src/hooks/useOnClickOutside.ts +0 -32
- package/src/index.ts +0 -2244
- package/src/index.umd.ts +0 -13
- package/src/interfaces/index.ts +0 -938
- package/src/modules/api/index.ts +0 -1325
- package/src/modules/api/responseHandler.ts +0 -38
- package/src/modules/event-emitter/index.ts +0 -72
- package/src/modules/event-emitter/runners/abstract.ts +0 -21
- package/src/modules/event-emitter/runners/default.ts +0 -11
- package/src/modules/event-emitter/runners/ntimes.ts +0 -28
- package/src/modules/event-emitter/types.ts +0 -34
- package/src/store/actionFunctions.ts +0 -1578
- package/src/store/index.ts +0 -17
- package/src/store/initialState.ts +0 -58
- package/src/types/index.ts +0 -320
- package/src/types/preact-compat.d.ts +0 -4
- package/src/types/store.ts +0 -366
- package/src/types/utils.ts +0 -19
- package/src/utils/ActivityOutputUtils.ts +0 -176
- package/src/utils/common.ts +0 -20
- package/src/utils/copyToClipboard.ts +0 -24
- package/src/utils/datetime.ts +0 -101
- package/src/utils/getUrlParam.ts +0 -11
- package/src/utils/isAuthMessage.ts +0 -16
- package/src/utils/isBrowser.ts +0 -1
- package/src/utils/jsonEncodeDecode.ts +0 -15
- package/src/utils/objectUtils.ts +0 -117
- package/src/utils/popup.ts +0 -30
- package/src/utils/searchJson.ts +0 -51
- package/src/utils/stepUtils.ts +0 -45
- package/src/utils/truncate.ts +0 -6
- package/test/setup.ts +0 -1
- package/vitest.config.ts +0 -16
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
.editableTextWrapper {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: flex-start;
|
|
4
|
-
width: 100%;
|
|
5
|
-
.input,
|
|
6
|
-
.value {
|
|
7
|
-
display: block;
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: center;
|
|
10
|
-
font-size: inherit;
|
|
11
|
-
line-height: inherit;
|
|
12
|
-
margin: 0;
|
|
13
|
-
padding: 0;
|
|
14
|
-
}
|
|
15
|
-
.input {
|
|
16
|
-
flex: 1;
|
|
17
|
-
overflow: visible;
|
|
18
|
-
font-family: inherit;
|
|
19
|
-
font-size: inherit;
|
|
20
|
-
line-height: inherit;
|
|
21
|
-
color: inherit;
|
|
22
|
-
&:focus {
|
|
23
|
-
outline-offset: 0;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
.input,
|
|
27
|
-
.editButton {
|
|
28
|
-
border: 0;
|
|
29
|
-
outline: 0;
|
|
30
|
-
background: none;
|
|
31
|
-
box-shadow: none;
|
|
32
|
-
text-shadow: none;
|
|
33
|
-
}
|
|
34
|
-
.editButton {
|
|
35
|
-
display: flex;
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
align-items: center;
|
|
38
|
-
margin-left: 4px;
|
|
39
|
-
}
|
|
40
|
-
textarea {
|
|
41
|
-
resize: none;
|
|
42
|
-
transition: border-color 150ms ease;
|
|
43
|
-
&::placeholder {
|
|
44
|
-
font-family: inherit;
|
|
45
|
-
font-style: normal;
|
|
46
|
-
font-weight: 400;
|
|
47
|
-
font-size: 16px;
|
|
48
|
-
line-height: 30px;
|
|
49
|
-
color: #E2E0DB;
|
|
50
|
-
}
|
|
51
|
-
::-webkit-scrollbar {
|
|
52
|
-
display: none;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
.editableContentWrap {
|
|
56
|
-
.editContentSpan {
|
|
57
|
-
align-items: center;
|
|
58
|
-
font-size: inherit;
|
|
59
|
-
line-height: inherit;
|
|
60
|
-
margin: 0;
|
|
61
|
-
padding: 0;
|
|
62
|
-
font-family: inherit;
|
|
63
|
-
color: inherit;
|
|
64
|
-
&:focus {
|
|
65
|
-
outline-offset: 0;
|
|
66
|
-
}
|
|
67
|
-
border: 0;
|
|
68
|
-
outline: 0;
|
|
69
|
-
background: none;
|
|
70
|
-
box-shadow: none;
|
|
71
|
-
text-shadow: none;
|
|
72
|
-
}
|
|
73
|
-
.placeholder {
|
|
74
|
-
font-family: inherit;
|
|
75
|
-
font-style: normal;
|
|
76
|
-
font-weight: 400;
|
|
77
|
-
font-size: 16px;
|
|
78
|
-
line-height: 30px;
|
|
79
|
-
color: #E2E0DB;
|
|
80
|
-
}
|
|
81
|
-
.contentEditButton {
|
|
82
|
-
border: 0;
|
|
83
|
-
outline: 0;
|
|
84
|
-
background: none;
|
|
85
|
-
box-shadow: none;
|
|
86
|
-
text-shadow: none;
|
|
87
|
-
cursor: pointer;
|
|
88
|
-
margin-left: 10px;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent } from 'preact';
|
|
2
|
-
import { html } from 'htm/preact';
|
|
3
|
-
|
|
4
|
-
import styles from './styles.module.scss';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* ErrorMessage component
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
const ErrorMessage: FunctionComponent = (props) => {
|
|
11
|
-
const { children } = props;
|
|
12
|
-
|
|
13
|
-
return html` <div class=${styles.errorMessage}>${children}</div> `;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { ErrorMessage };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
.errorMessage {
|
|
2
|
-
margin-top: 4px;
|
|
3
|
-
font-size: 12px;
|
|
4
|
-
color: #f05c42;
|
|
5
|
-
font-family: inherit;
|
|
6
|
-
font-style: normal;
|
|
7
|
-
font-weight: normal;
|
|
8
|
-
line-height: 15px;
|
|
9
|
-
padding-left: 3px;
|
|
10
|
-
padding-top: 3px;
|
|
11
|
-
p {
|
|
12
|
-
font-size: 12px;
|
|
13
|
-
color: #f05c42;
|
|
14
|
-
font-family: inherit;
|
|
15
|
-
font-style: normal;
|
|
16
|
-
font-weight: normal;
|
|
17
|
-
line-height: 15px;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { html } from 'htm/preact';
|
|
2
|
-
import { StructError } from 'superstruct';
|
|
3
|
-
import { Button } from '../Button';
|
|
4
|
-
|
|
5
|
-
import styles from './styles.module.scss';
|
|
6
|
-
|
|
7
|
-
interface ErrorPageProps {
|
|
8
|
-
title: string;
|
|
9
|
-
description: string;
|
|
10
|
-
errorPayload: Error | StructError | null;
|
|
11
|
-
onDismiss?: () => void;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* ErrorPage component
|
|
16
|
-
*
|
|
17
|
-
*/
|
|
18
|
-
const ErrorPage = (props: ErrorPageProps) => {
|
|
19
|
-
const { title, description, errorPayload, onDismiss = null } = props;
|
|
20
|
-
|
|
21
|
-
return html`
|
|
22
|
-
<div class="${styles.errorPageWrapper}">
|
|
23
|
-
<div class=${styles.errorTitle}>${title}</div>
|
|
24
|
-
<div class=${styles.errorDescription}>${description}</div>
|
|
25
|
-
${errorPayload &&
|
|
26
|
-
html`
|
|
27
|
-
<div class=${styles.errorContainer}>
|
|
28
|
-
<pre class=${styles.errorPayload}>${errorPayload.message}</pre>
|
|
29
|
-
<pre class=${styles.errorPayload}>${errorPayload.stack}</pre>
|
|
30
|
-
</div>
|
|
31
|
-
`}
|
|
32
|
-
${onDismiss &&
|
|
33
|
-
html`
|
|
34
|
-
<div>
|
|
35
|
-
<${Button} label="Dismiss" onClick=${onDismiss} />
|
|
36
|
-
</div>
|
|
37
|
-
`}
|
|
38
|
-
</div>
|
|
39
|
-
`;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export { ErrorPage, ErrorPageProps };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
.errorPageWrapper {
|
|
2
|
-
font-family: monospace;
|
|
3
|
-
border: 1px solid red;
|
|
4
|
-
padding: 30px;
|
|
5
|
-
.errorTitle {
|
|
6
|
-
color: rgb(182, 23, 23);
|
|
7
|
-
font-weight: bold;
|
|
8
|
-
font-size: 16px;
|
|
9
|
-
line-height: 20px;
|
|
10
|
-
margin-bottom: 8px;
|
|
11
|
-
}
|
|
12
|
-
.errorDescription {
|
|
13
|
-
font-size: 14px;
|
|
14
|
-
margin-bottom: 18px;
|
|
15
|
-
}
|
|
16
|
-
.errorContainer {
|
|
17
|
-
overflow: hidden;
|
|
18
|
-
background: #ffebeb;
|
|
19
|
-
padding: 4px;
|
|
20
|
-
margin-bottom: 20px;
|
|
21
|
-
}
|
|
22
|
-
.errorPayload {
|
|
23
|
-
margin: 0;
|
|
24
|
-
padding: 8px 12px;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { html } from 'htm/preact';
|
|
2
|
-
import { connect } from 'unistore/preact';
|
|
3
|
-
import { StoreType } from '@/types/store';
|
|
4
|
-
import { actionFunctions } from '@/store/actionFunctions';
|
|
5
|
-
|
|
6
|
-
import styles from './styles.module.scss';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
type SelectProps = {
|
|
10
|
-
style: string;
|
|
11
|
-
} & StoreType;
|
|
12
|
-
|
|
13
|
-
const Footer = (props: SelectProps) => {
|
|
14
|
-
const {
|
|
15
|
-
style = '',
|
|
16
|
-
} = props;
|
|
17
|
-
|
|
18
|
-
return html`
|
|
19
|
-
<div id="embed--footer" class=${styles.embedPreviewFooter} style=${style}>
|
|
20
|
-
<span class=${styles.embedPreviewFooterDesc}>
|
|
21
|
-
Powered by <a class=${styles.embedPreviewFooterCTA} target="_blank" href="https://integry.ai/?utm_source=${props.genericData?.customerAppName}&utm_medium=sdk" rel="noreferrer"><svg style="margin-left: 4px; margin-right: 2px;" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
22
|
-
<path d="M5.9833 11.961V11.961C5.39389 11.961 4.91162 11.479 4.91162 10.8899V1.07111C4.91162 0.481989 5.39389 0 5.9833 0C6.5727 0 7.05492 0.481989 7.05492 1.07111V10.8899C7.05492 11.479 6.5727 11.961 5.9833 11.961" fill="#F05C42"/>
|
|
23
|
-
<path d="M11.9668 5.98046V5.98046C11.9668 6.56958 11.4846 7.05162 10.8951 7.05162H1.07167C0.482268 7.05162 0 6.56958 0 5.98046C0 5.39134 0.482268 4.9093 1.07167 4.9093H10.8951C11.4846 4.9093 11.9668 5.39134 11.9668 5.98046" fill="#FCC700"/>
|
|
24
|
-
<path d="M10.2143 1.75164V1.75164C10.6311 2.16822 10.6311 2.84988 10.2143 3.26646L3.26807 10.2094C2.85129 10.626 2.1693 10.626 1.75252 10.2094C1.33575 9.79278 1.33575 9.11116 1.75252 8.69459L8.69876 1.75164C9.11554 1.33506 9.79753 1.33506 10.2143 1.75164" fill="#3BB568"/>
|
|
25
|
-
<path d="M1.75252 1.75164V1.75164C2.1693 1.33506 2.85129 1.33506 3.26807 1.75164L10.2143 8.69459C10.6311 9.11116 10.6311 9.79278 10.2143 10.2094C9.79753 10.626 9.11554 10.626 8.69876 10.2094L1.75252 3.26646C1.33575 2.84988 1.33575 2.16827 1.75252 1.75164" fill="#509CF6"/>
|
|
26
|
-
</svg>Integry</a>. </span>
|
|
27
|
-
<a class=${styles.embedPreviewFooterCTA} target="_blank" href="https://www.integry.ai/security-policy" rel="noreferrer">
|
|
28
|
-
Privacy Policy
|
|
29
|
-
<!--<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 13 13" fill="none"><path d="M12.0007 4.99975V11.5001C12.0007 12.6006 11.1038 13 10.5008 13H1.49993C0.399356 13 0 12.1032 0 11.5001V2.49924C0 1.39867 0.896835 0.999311 1.49993 0.999311H7.50027C7.77651 0.999311 8.00024 1.22304 8.00024 1.49929C8.00024 1.77553 7.77651 1.99926 7.50027 1.99926H1.49993C1.27494 2.00551 0.99995 2.09676 0.99995 2.49924V11.5001C1.0062 11.7251 1.09745 12 1.49993 12H10.5008C10.7257 11.9938 11.0007 11.9032 11.0007 11.5001V4.99975C11.0007 4.72351 11.2245 4.49978 11.5007 4.49978C11.777 4.49978 12.0007 4.72351 12.0007 4.99975ZM12.5 0H9.50018C9.22394 0 9.00021 0.223733 9.00021 0.499975C9.00021 0.776218 9.22394 0.999951 9.50018 0.999951H11.2263L5.15912 6.63407C4.95726 6.82219 4.94539 7.13842 5.13287 7.34092C5.23162 7.44716 5.36536 7.50029 5.49911 7.50029C5.62098 7.50029 5.74284 7.45654 5.83972 7.36654L12 1.64682V3.49985C12 3.77609 12.2238 3.99983 12.5 3.99983C12.7763 3.99983 13 3.77609 13 3.49985V0.499999C13 0.223757 12.7763 2.40314e-05 12.5 2.40314e-05L12.5 0Z" fill="#4250F0"></path>
|
|
30
|
-
</svg>-->
|
|
31
|
-
</a>
|
|
32
|
-
</div>
|
|
33
|
-
`;
|
|
34
|
-
};
|
|
35
|
-
export default connect<SelectProps, null, StoreType, unknown>(
|
|
36
|
-
[
|
|
37
|
-
'genericData',
|
|
38
|
-
],
|
|
39
|
-
actionFunctions,
|
|
40
|
-
)(Footer);
|
|
41
|
-
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
.embedPreviewFooter {
|
|
2
|
-
padding-bottom: 12px;
|
|
3
|
-
padding-top: 12px;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
gap: 4px;
|
|
9
|
-
width: 100%;
|
|
10
|
-
box-shadow: 0px -6px 10px 0px rgba(255, 255, 255, 0.8);
|
|
11
|
-
|
|
12
|
-
.embedPreviewFooterDesc {
|
|
13
|
-
color: var(--black-and-grey-draft-and-tooltip-desc, #999);
|
|
14
|
-
font-family: Inter;
|
|
15
|
-
font-size: 12px;
|
|
16
|
-
font-style: normal;
|
|
17
|
-
font-weight: 400;
|
|
18
|
-
line-height: normal;
|
|
19
|
-
display: flex;
|
|
20
|
-
flex-direction: row;
|
|
21
|
-
align-items: center;
|
|
22
|
-
justify-content: flex-start;
|
|
23
|
-
// gap: 2px;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.embedPreviewFooterCTA {
|
|
27
|
-
// color: var(--theme-accent-blue-1, #4250f0);
|
|
28
|
-
color: var(--black-and-grey-draft-and-tooltip-desc, #999);
|
|
29
|
-
font-family: Inter;
|
|
30
|
-
font-size: 12px;
|
|
31
|
-
font-style: normal;
|
|
32
|
-
font-weight: 400;
|
|
33
|
-
line-height: normal;
|
|
34
|
-
display: flex;
|
|
35
|
-
flex-direction: row;
|
|
36
|
-
align-items: center;
|
|
37
|
-
justify-content: flex-start;
|
|
38
|
-
text-decoration: none;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
import { html } from 'htm/preact';
|
|
2
|
-
import { connect } from 'unistore/preact';
|
|
3
|
-
import { useEffect, useState, useRef } from 'preact/hooks';
|
|
4
|
-
import { StoreType } from '@/types/store';
|
|
5
|
-
import { openPopupWindow } from '@/utils/popup';
|
|
6
|
-
|
|
7
|
-
import styles from './styles.module.scss';
|
|
8
|
-
|
|
9
|
-
interface HTMLFieldProps {
|
|
10
|
-
htmlContent: string;
|
|
11
|
-
xIntegryConfig?: any;
|
|
12
|
-
stepDataMapping?: any;
|
|
13
|
-
stepState?: any;
|
|
14
|
-
genericData?: any;
|
|
15
|
-
stepMapping?: any;
|
|
16
|
-
isAction?: boolean;
|
|
17
|
-
requiresAuthToken?: boolean;
|
|
18
|
-
apiHandler?: any;
|
|
19
|
-
handleChange?: (e: any) => void;
|
|
20
|
-
handleCancel?: () => void;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const HTMLContent = (props: HTMLFieldProps) => {
|
|
24
|
-
const { htmlContent, xIntegryConfig = {} } = props;
|
|
25
|
-
const [htmlContentState, setHtmlContentState] = useState(htmlContent);
|
|
26
|
-
const [hasPreprocessedHtmlContent, setHasPreprocessedHtmlContent] = useState(
|
|
27
|
-
false,
|
|
28
|
-
);
|
|
29
|
-
const containerRef = useRef<HTMLDivElement | null>(null);
|
|
30
|
-
const actionBaseUrl = 'https://embed.app.integry.io';
|
|
31
|
-
const actionUrl = `${actionBaseUrl}/render-action-btn-html/render`;
|
|
32
|
-
|
|
33
|
-
const replaceValuesWithJSON = (inputString: string, jsonData: any) => {
|
|
34
|
-
// Regular expression to match values inside double curly braces
|
|
35
|
-
const regex = /{(.*?)}/g;
|
|
36
|
-
|
|
37
|
-
// Use the replace method to replace matched values
|
|
38
|
-
const replacedString = inputString.replace(
|
|
39
|
-
regex,
|
|
40
|
-
(match: any, group: string) => {
|
|
41
|
-
// Trim the group to remove leading and trailing whitespaces
|
|
42
|
-
const key = group.trim();
|
|
43
|
-
|
|
44
|
-
// Access the nested values using a loop
|
|
45
|
-
const keys = key.split('.');
|
|
46
|
-
let value = jsonData;
|
|
47
|
-
|
|
48
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
49
|
-
for (const k of keys) {
|
|
50
|
-
// eslint-disable-next-line no-prototype-builtins
|
|
51
|
-
if (value.hasOwnProperty(k)) {
|
|
52
|
-
value = value[k];
|
|
53
|
-
} else {
|
|
54
|
-
// If a key is not found and key is not authorization.token.access_token, return an empty string
|
|
55
|
-
if (key !== 'authorization.token.access_token') return '';
|
|
56
|
-
|
|
57
|
-
return `{${key}}`;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// Return the replacement value
|
|
62
|
-
return value;
|
|
63
|
-
},
|
|
64
|
-
);
|
|
65
|
-
|
|
66
|
-
return replacedString;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
const getCurrentStep = () => {
|
|
70
|
-
const { stepState, stepMapping } = props;
|
|
71
|
-
|
|
72
|
-
return stepMapping[stepState.currentStep.stepId] || {};
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
const generateInJsonData = () => {
|
|
76
|
-
let generatedJSON = {
|
|
77
|
-
steps: {},
|
|
78
|
-
storage: {},
|
|
79
|
-
authorization: {},
|
|
80
|
-
};
|
|
81
|
-
const { stepDataMapping, stepState, stepMapping } = props;
|
|
82
|
-
const { steps = [] } = stepState;
|
|
83
|
-
const currentStep = getCurrentStep();
|
|
84
|
-
const selectedAuthFilter = currentStep.authorizations.filter(
|
|
85
|
-
(auth: any) => auth.authorizationId === currentStep.selectedAuthId,
|
|
86
|
-
);
|
|
87
|
-
const selectedAuth = selectedAuthFilter[0] || {};
|
|
88
|
-
if (steps.length > 0) {
|
|
89
|
-
let tempSteps = {};
|
|
90
|
-
steps.forEach(
|
|
91
|
-
(step: { title: string; type: string; stepId: number | string }) => {
|
|
92
|
-
const { title, type, stepId } = step;
|
|
93
|
-
if (type === 'CONFIGURATION') {
|
|
94
|
-
const objectTitle = `form_${title
|
|
95
|
-
.toLowerCase()
|
|
96
|
-
.replace(/ /g, '_')}`;
|
|
97
|
-
if (stepDataMapping[stepId]) {
|
|
98
|
-
let tempObject = {};
|
|
99
|
-
Object.keys(stepDataMapping[stepId]).forEach((fieldId) => {
|
|
100
|
-
const { value, machineName } = stepDataMapping[stepId][fieldId];
|
|
101
|
-
tempObject = {
|
|
102
|
-
...tempObject,
|
|
103
|
-
[machineName]: value,
|
|
104
|
-
};
|
|
105
|
-
});
|
|
106
|
-
tempSteps = {
|
|
107
|
-
...tempSteps,
|
|
108
|
-
[objectTitle]: {
|
|
109
|
-
in: {
|
|
110
|
-
...tempObject,
|
|
111
|
-
},
|
|
112
|
-
},
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
);
|
|
118
|
-
generatedJSON = {
|
|
119
|
-
...generatedJSON,
|
|
120
|
-
steps: {
|
|
121
|
-
...tempSteps,
|
|
122
|
-
},
|
|
123
|
-
storage: {
|
|
124
|
-
...props.genericData.storage,
|
|
125
|
-
},
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
return generatedJSON;
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
const onActionResponseReceived = (event: MessageEvent) => {
|
|
132
|
-
// Verify the message origin (for security)
|
|
133
|
-
if (event.origin !== actionBaseUrl) return;
|
|
134
|
-
|
|
135
|
-
// Check if the message contains the connectedAccountId
|
|
136
|
-
if (props.handleChange) {
|
|
137
|
-
props.handleChange(event.data);
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
// Add the message event listener
|
|
142
|
-
window.addEventListener('message', onActionResponseReceived);
|
|
143
|
-
|
|
144
|
-
// Handle cases where the user closes the auth window without completing auth
|
|
145
|
-
|
|
146
|
-
useEffect(() => {
|
|
147
|
-
const result = replaceValuesWithJSON(htmlContent, {
|
|
148
|
-
xIntegryConfig: { ...(xIntegryConfig || {}) },
|
|
149
|
-
...generateInJsonData(),
|
|
150
|
-
});
|
|
151
|
-
setHtmlContentState(result);
|
|
152
|
-
|
|
153
|
-
if (props.isAction) {
|
|
154
|
-
/**
|
|
155
|
-
* we want to open html render in a child window if its for an action of a text field
|
|
156
|
-
*/
|
|
157
|
-
const encodedHmlt = btoa(encodeURIComponent(result));
|
|
158
|
-
const currentStep = getCurrentStep();
|
|
159
|
-
const selectedAuthFilter = currentStep.authorizations.filter(
|
|
160
|
-
(auth: any) => auth.authorizationId === currentStep.selectedAuthId,
|
|
161
|
-
);
|
|
162
|
-
const selectedAuth = selectedAuthFilter[0] || {};
|
|
163
|
-
const selectedAuthId = props.requiresAuthToken
|
|
164
|
-
? selectedAuth.authorizationId
|
|
165
|
-
: '';
|
|
166
|
-
const authWindow = openPopupWindow(
|
|
167
|
-
`${actionUrl}?content=${encodedHmlt}&auth_id=${selectedAuthId}&${props.apiHandler.getAuthConfig()}`,
|
|
168
|
-
'Action Button',
|
|
169
|
-
window,
|
|
170
|
-
800,
|
|
171
|
-
600,
|
|
172
|
-
);
|
|
173
|
-
const checkWindowClosed = setInterval(() => {
|
|
174
|
-
if (authWindow && authWindow.closed) {
|
|
175
|
-
clearInterval(checkWindowClosed);
|
|
176
|
-
window.removeEventListener('message', onActionResponseReceived);
|
|
177
|
-
if (props.handleCancel) {
|
|
178
|
-
props.handleCancel();
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}, 500);
|
|
182
|
-
}
|
|
183
|
-
setHasPreprocessedHtmlContent(true);
|
|
184
|
-
}, [htmlContent]);
|
|
185
|
-
|
|
186
|
-
return html`
|
|
187
|
-
${hasPreprocessedHtmlContent && !props.isAction
|
|
188
|
-
? html`<div
|
|
189
|
-
class="${styles.htmlField}"
|
|
190
|
-
dangerouslySetInnerHTML=${{
|
|
191
|
-
__html: htmlContentState,
|
|
192
|
-
}}
|
|
193
|
-
ref="${containerRef}"
|
|
194
|
-
/>`
|
|
195
|
-
: html``}
|
|
196
|
-
`;
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
export default connect<HTMLFieldProps, unknown, StoreType, unknown>([
|
|
200
|
-
'xIntegryConfig',
|
|
201
|
-
'stepDataMapping',
|
|
202
|
-
'stepMapping',
|
|
203
|
-
'stepState',
|
|
204
|
-
'genericData',
|
|
205
|
-
])(HTMLContent);
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { html } from 'htm/preact';
|
|
2
|
-
import { FunctionComponent } from 'preact';
|
|
3
|
-
|
|
4
|
-
import styles from './styles.module.scss';
|
|
5
|
-
|
|
6
|
-
const InfoBox: FunctionComponent<{
|
|
7
|
-
style: Record<string, string | number>;
|
|
8
|
-
}> = ({ style, children }) => html`
|
|
9
|
-
<div class=${styles.smartbox} style=${style}>
|
|
10
|
-
<svg
|
|
11
|
-
width="25"
|
|
12
|
-
height="25"
|
|
13
|
-
viewBox="0 0 25 25"
|
|
14
|
-
fill="none"
|
|
15
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
16
|
-
>
|
|
17
|
-
<path
|
|
18
|
-
fill-rule="evenodd"
|
|
19
|
-
clip-rule="evenodd"
|
|
20
|
-
d="M5.3125 12.3603C5.3125 8.47114 8.46911 5.31445 12.3584 5.31445L12.3585 5.31484C16.2474 5.31484 19.4041 8.47145 19.4417 12.3215C19.4417 14.8631 18.1333 17.134 15.9767 18.4048V22.718C15.9767 23.6805 15.2067 24.4505 14.2442 24.4505H10.51C9.5475 24.4505 8.7775 23.6805 8.7775 22.718V18.4437C6.62088 17.1728 5.3125 14.8628 5.3125 12.3603ZM10.3164 20.5597H14.3982V19.7897H10.3164V20.5597ZM14.2079 22.8697H10.4738C10.3971 22.8697 10.2812 22.793 10.2812 22.6772V22.0997H14.363V22.6772C14.4006 22.793 14.3239 22.8697 14.2081 22.8697H14.2079ZM14.3977 17.5188L14.8218 17.2872H14.8218C16.7092 16.3247 17.8642 14.4387 17.8642 12.3588C17.8642 9.3163 15.3992 6.85291 12.3583 6.85291C9.31585 6.85291 6.85246 9.31791 6.85246 12.3588C6.85246 14.4764 8.00746 16.3638 9.89335 17.2872L10.3175 17.5188V18.2888H14.3977V17.5188Z"
|
|
21
|
-
fill="#556BDD"
|
|
22
|
-
/>
|
|
23
|
-
<path
|
|
24
|
-
d="M12.3559 4.19588C12.7801 4.19588 13.1259 3.84998 13.1259 3.42588V0.77C13.1259 0.345884 12.78 0 12.3559 0C11.9318 0 11.5859 0.345899 11.5859 0.77V3.42588C11.5859 3.85 11.9318 4.19588 12.3559 4.19588Z"
|
|
25
|
-
fill="#556BDD"
|
|
26
|
-
/>
|
|
27
|
-
<path
|
|
28
|
-
d="M23.9454 11.5107H21.2895C20.8654 11.5107 20.5195 11.8566 20.5195 12.2807C20.5195 12.7049 20.8654 13.0507 21.2895 13.0507H23.9454C24.3695 13.0507 24.7154 12.7048 24.7154 12.2807C24.7154 11.8581 24.368 11.5107 23.9454 11.5107Z"
|
|
29
|
-
fill="#556BDD"
|
|
30
|
-
/>
|
|
31
|
-
<path
|
|
32
|
-
d="M3.42588 11.5107H0.77C0.345884 11.5107 0 11.8566 0 12.2807C0 12.7049 0.345899 13.0507 0.77 13.0507H3.42588C3.85 13.0507 4.19588 12.7048 4.19588 12.2807C4.19588 11.8581 3.84848 11.5107 3.42588 11.5107Z"
|
|
33
|
-
fill="#556BDD"
|
|
34
|
-
/>
|
|
35
|
-
<path
|
|
36
|
-
d="M5.58214 4.77336L3.69625 2.88748C3.38795 2.57917 2.92625 2.57917 2.61795 2.88748C2.30964 3.19578 2.30965 3.65748 2.61795 3.96578L4.50383 5.85167C4.65723 6.00507 4.84973 6.08327 5.04221 6.08327C5.2347 6.08327 5.42721 6.00657 5.5806 5.85167C5.8904 5.54337 5.8904 5.08167 5.5821 4.77336H5.58214Z"
|
|
37
|
-
fill="#556BDD"
|
|
38
|
-
/>
|
|
39
|
-
<path
|
|
40
|
-
d="M22.0978 2.88748C21.7895 2.57917 21.3278 2.57917 21.0195 2.88748L19.1336 4.77336C18.8253 5.08166 18.8253 5.54336 19.1336 5.85167C19.287 6.00507 19.4795 6.08327 19.672 6.08327C19.8644 6.08327 20.057 6.00657 20.2103 5.85167L22.0962 3.96578C22.406 3.65748 22.406 3.19578 22.0977 2.88748H22.0978Z"
|
|
41
|
-
fill="#556BDD"
|
|
42
|
-
/>
|
|
43
|
-
</svg>
|
|
44
|
-
<div>${children}</div>
|
|
45
|
-
</div>
|
|
46
|
-
`;
|
|
47
|
-
|
|
48
|
-
export { InfoBox };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
.smartbox {
|
|
2
|
-
display: flex;
|
|
3
|
-
background: #f6f7fd;
|
|
4
|
-
border: 1px solid #a5b1ed;
|
|
5
|
-
box-sizing: border-box;
|
|
6
|
-
border-radius: 6px;
|
|
7
|
-
padding: 20px;
|
|
8
|
-
font-size: 13px;
|
|
9
|
-
line-height: 20px;
|
|
10
|
-
color: #333333;
|
|
11
|
-
svg {
|
|
12
|
-
margin-right: 10px;
|
|
13
|
-
}
|
|
14
|
-
a {
|
|
15
|
-
text-decoration: none;
|
|
16
|
-
color: #4250f0;
|
|
17
|
-
&:hover {
|
|
18
|
-
text-decoration: underline;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|