@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.
Files changed (267) hide show
  1. package/dist/esm/index.csm.js +1 -1
  2. package/dist/umd/index.umd.js +1 -1
  3. package/package.json +6 -1
  4. package/.eslintignore +0 -1
  5. package/.vscode/launch.json +0 -17
  6. package/CHANGELOG_INTERNAL.md +0 -134
  7. package/README_INTERNAL.md +0 -176
  8. package/THIRD_PARTY_LICENSES +0 -525
  9. package/generateTests.js +0 -80
  10. package/jest.config.cjs +0 -10
  11. package/src/components/AddTagButton/index.ts +0 -23
  12. package/src/components/BasicSelect/index.ts +0 -123
  13. package/src/components/BasicSelect/styles.module.scss +0 -44
  14. package/src/components/Button/index.ts +0 -97
  15. package/src/components/Button/styles.module.scss +0 -152
  16. package/src/components/CheckboxGroup/Checkbox.ts +0 -104
  17. package/src/components/CheckboxGroup/index.ts +0 -190
  18. package/src/components/CheckboxGroup/styles.module.scss +0 -63
  19. package/src/components/CollapsedMenu/index.ts +0 -104
  20. package/src/components/CollapsedMenu/styles.module.scss +0 -46
  21. package/src/components/ConfigureFieldWrapper/index.ts +0 -85
  22. package/src/components/ConfigureFieldWrapper/styles.module.scss +0 -57
  23. package/src/components/EditableText/index.ts +0 -121
  24. package/src/components/EditableText/styles.module.scss +0 -38
  25. package/src/components/EditableTextArea/index.ts +0 -143
  26. package/src/components/EditableTextArea/styles.module.scss +0 -91
  27. package/src/components/ErrorMessage/index.ts +0 -16
  28. package/src/components/ErrorMessage/styles.module.scss +0 -19
  29. package/src/components/ErrorPage/index.ts +0 -42
  30. package/src/components/ErrorPage/styles.module.scss +0 -26
  31. package/src/components/Footer/index.ts +0 -41
  32. package/src/components/Footer/styles.module.scss +0 -40
  33. package/src/components/HTMLContent/index.tsx +0 -205
  34. package/src/components/HTMLContent/styles.module.scss +0 -3
  35. package/src/components/InfoBox/index.ts +0 -48
  36. package/src/components/InfoBox/styles.module.scss +0 -21
  37. package/src/components/Input/BaseInput/index.ts +0 -170
  38. package/src/components/Input/BaseInput/styles.module.scss +0 -95
  39. package/src/components/Input/DateInput/index.ts +0 -103
  40. package/src/components/Input/DateInput/styles.module.scss +0 -50
  41. package/src/components/Input/Input/index.ts +0 -225
  42. package/src/components/Input/Input/styles.module.scss +0 -16
  43. package/src/components/Input/PasswordInput/index.ts +0 -164
  44. package/src/components/Input/PasswordInput/styles.module.scss +0 -37
  45. package/src/components/Input/index.ts +0 -7
  46. package/src/components/Label/index.ts +0 -61
  47. package/src/components/Label/styles.module.scss +0 -41
  48. package/src/components/LargeLoader/index.ts +0 -25
  49. package/src/components/LargeLoader/styles.module.scss +0 -16
  50. package/src/components/Listbox/ListBoxItem.ts +0 -57
  51. package/src/components/Listbox/index.ts +0 -488
  52. package/src/components/Listbox/styles.module.scss +0 -197
  53. package/src/components/Loader/index.ts +0 -25
  54. package/src/components/Loader/styles.module.scss +0 -16
  55. package/src/components/MediaGallery/MediaGalleryModal.ts +0 -82
  56. package/src/components/MediaGallery/MediaSlider.ts +0 -76
  57. package/src/components/MediaGallery/index.ts +0 -92
  58. package/src/components/MediaGallery/styles.module.scss +0 -156
  59. package/src/components/MediaUpload/index.ts +0 -233
  60. package/src/components/MediaUpload/styles.module.scss +0 -118
  61. package/src/components/Modal/index.ts +0 -87
  62. package/src/components/Modal/styles.module.scss +0 -441
  63. package/src/components/MultipurposeField/Dropdown/ListBoxItem.tsx +0 -59
  64. package/src/components/MultipurposeField/Dropdown/index.tsx +0 -1202
  65. package/src/components/MultipurposeField/Dropdown/styles.module.scss +0 -215
  66. package/src/components/MultipurposeField/TagMenu/index.ts +0 -536
  67. package/src/components/MultipurposeField/TagMenu/styles.module.scss +0 -175
  68. package/src/components/MultipurposeField/TagOptions/index.tsx +0 -83
  69. package/src/components/MultipurposeField/TagOptions/styles.module.scss +0 -95
  70. package/src/components/MultipurposeField/index.tsx +0 -944
  71. package/src/components/MultipurposeField/styles.module.scss +0 -77
  72. package/src/components/NewModal/index.ts +0 -69
  73. package/src/components/NewModal/styles.module.scss +0 -70
  74. package/src/components/OverflowTooltip/index.tsx +0 -59
  75. package/src/components/PopUp/ConfirmationPopUp/index.ts +0 -58
  76. package/src/components/PopUp/ConfirmationPopUp/styles.module.scss +0 -49
  77. package/src/components/PopUp/SuccessPopUp/index.ts +0 -62
  78. package/src/components/PopUp/SuccessPopUp/styles.module.scss +0 -38
  79. package/src/components/RadioGroup/Radio.ts +0 -128
  80. package/src/components/RadioGroup/index.ts +0 -169
  81. package/src/components/RadioGroup/styles.module.scss +0 -81
  82. package/src/components/Search/index.ts +0 -69
  83. package/src/components/Search/styles.module.scss +0 -149
  84. package/src/components/TabBar/Tab.ts +0 -33
  85. package/src/components/TabBar/index.ts +0 -64
  86. package/src/components/TabBar/styles.module.scss +0 -43
  87. package/src/components/Tag/index.ts +0 -29
  88. package/src/components/Tag/styles.module.scss +0 -57
  89. package/src/components/TagsMenu/index.ts +0 -1697
  90. package/src/components/TagsMenu/styles.module.scss +0 -350
  91. package/src/components/TestComponent/index.ts +0 -71
  92. package/src/components/TestComponent/styles.module.scss +0 -152
  93. package/src/components/TextArea/index.ts +0 -172
  94. package/src/components/TextArea/styles.module.scss +0 -72
  95. package/src/components/TextContent/index.tsx +0 -128
  96. package/src/components/TextContent/styles.module.scss +0 -6
  97. package/src/components/ThreeDotLoader/index.ts +0 -39
  98. package/src/components/ThreeDotLoader/styles.module.scss +0 -41
  99. package/src/components/TimeInput/index.ts +0 -129
  100. package/src/components/TimeInput/styles.module.scss +0 -16
  101. package/src/components/Toggle/index.ts +0 -34
  102. package/src/components/Toggle/styles.module.scss +0 -56
  103. package/src/components/Toggle-v2/index.ts +0 -40
  104. package/src/components/Toggle-v2/styles.module.scss +0 -86
  105. package/src/components/Tooltip/index.ts +0 -271
  106. package/src/components/Tooltip/styles.module.scss +0 -105
  107. package/src/components/form/FunctionField/index.ts +0 -816
  108. package/src/components/form/FunctionField/styles.module.scss +0 -478
  109. package/src/components/form/ObjectField/__snapshots__/index.ts.test.tsx.snap +0 -3
  110. package/src/components/form/ObjectField/index.ts +0 -593
  111. package/src/components/form/ObjectField/index.ts.test.tsx +0 -213
  112. package/src/components/form/ObjectField/styles.module.scss +0 -103
  113. package/src/components/form/index.ts +0 -4
  114. package/src/contexts/AppContext.ts +0 -12
  115. package/src/declaration.d.ts +0 -7
  116. package/src/extensions/HMAC.ts +0 -25
  117. package/src/extensions/IntegryAPIError.ts +0 -19
  118. package/src/features/common/AccountDropdown/index.ts +0 -291
  119. package/src/features/common/AccountDropdown/styles.module.scss +0 -19
  120. package/src/features/common/ActionForm/index.ts +0 -2602
  121. package/src/features/common/ActionForm/styles.module.scss +0 -35
  122. package/src/features/common/AppCard/index.ts +0 -207
  123. package/src/features/common/AppCard/styles.module.scss +0 -117
  124. package/src/features/common/AppCardCompact/index.ts +0 -189
  125. package/src/features/common/AppCardCompact/styles.module.scss +0 -141
  126. package/src/features/common/AuthSelector/index.ts +0 -537
  127. package/src/features/common/AuthSelector/styles.module.scss +0 -161
  128. package/src/features/common/AuthSelectorCompact/index.ts +0 -706
  129. package/src/features/common/AuthSelectorCompact/styles.module.scss +0 -219
  130. package/src/features/common/AuthSelectorDropdown/index.ts +0 -704
  131. package/src/features/common/AuthSelectorDropdown/styles.module.scss +0 -361
  132. package/src/features/common/AuthSelectorV2/index.ts +0 -336
  133. package/src/features/common/AuthSelectorV2/styles.module.scss +0 -235
  134. package/src/features/common/DynamicField/index.ts +0 -402
  135. package/src/features/common/DynamicField/styles.module.scss +0 -266
  136. package/src/features/common/DynamicTypedField/index.ts +0 -504
  137. package/src/features/common/DynamicTypedField/styles.module.scss +0 -135
  138. package/src/features/common/FunctionForm/index.ts +0 -1095
  139. package/src/features/common/FunctionForm/styles.module.scss +0 -225
  140. package/src/features/common/MappingUI/index.ts +0 -649
  141. package/src/features/common/MappingUI/styles.module.scss +0 -121
  142. package/src/features/common/MarketplaceAppCard/index.ts +0 -279
  143. package/src/features/common/MarketplaceAppCard/styles.module.scss +0 -231
  144. package/src/features/common/MarketplaceAppCardCompact/index.ts +0 -283
  145. package/src/features/common/MarketplaceAppCardCompact/styles.module.scss +0 -255
  146. package/src/features/common/NewMappingUI/index.ts +0 -515
  147. package/src/features/common/NewMappingUI/styles.module.scss +0 -113
  148. package/src/features/common/RequestAppWidget/RequestAppModal/index.ts +0 -67
  149. package/src/features/common/RequestAppWidget/RequestAppModal/styles.module.scss +0 -23
  150. package/src/features/common/RequestAppWidget/index.ts +0 -48
  151. package/src/features/common/RequestAppWidget/request-app-form.ts +0 -89
  152. package/src/features/common/RequestAppWidget/styles.module.scss +0 -43
  153. package/src/features/common/SectionField/index.ts +0 -272
  154. package/src/features/common/SectionField/styles.module.scss +0 -67
  155. package/src/features/common/Step/index.ts +0 -827
  156. package/src/features/common/Step/styles.module.scss +0 -12
  157. package/src/features/common/StepNavigation/CollapsedSteps.ts +0 -131
  158. package/src/features/common/StepNavigation/NavItem.ts +0 -111
  159. package/src/features/common/StepNavigation/index.ts +0 -261
  160. package/src/features/common/StepNavigation/styles.module.scss +0 -117
  161. package/src/features/common/Steps/index.ts +0 -1140
  162. package/src/features/common/Steps/styles.module.scss +0 -314
  163. package/src/features/containers/AppFlowContainer/AppFlowListing/compactStyles.module.scss +0 -404
  164. package/src/features/containers/AppFlowContainer/AppFlowListing/flow-instance.tsx +0 -367
  165. package/src/features/containers/AppFlowContainer/AppFlowListing/flowCard.test.tsx +0 -58
  166. package/src/features/containers/AppFlowContainer/AppFlowListing/flowCard.tsx +0 -208
  167. package/src/features/containers/AppFlowContainer/AppFlowListing/flowCardCompact.test.tsx +0 -49
  168. package/src/features/containers/AppFlowContainer/AppFlowListing/flowCardCompact.tsx +0 -421
  169. package/src/features/containers/AppFlowContainer/AppFlowListing/flowInstanceCompact.tsx +0 -577
  170. package/src/features/containers/AppFlowContainer/AppFlowListing/index.tsx +0 -83
  171. package/src/features/containers/AppFlowContainer/AppFlowListing/styles.module.scss +0 -233
  172. package/src/features/containers/AppFlowContainer/AppFlowWrap/app-page-loader.tsx +0 -45
  173. package/src/features/containers/AppFlowContainer/AppFlowWrap/index.tsx +0 -1085
  174. package/src/features/containers/AppFlowContainer/AppFlowWrap/styles.module.scss +0 -465
  175. package/src/features/containers/AppFlowContainer/Authentication/index.ts +0 -610
  176. package/src/features/containers/AppFlowContainer/Authentication/styles.module.scss +0 -468
  177. package/src/features/containers/AppFlowContainer/index.ts +0 -114
  178. package/src/features/containers/AppPageContainer/AppPage/index.tsx +0 -262
  179. package/src/features/containers/AppPageContainer/AppPage/styles.module.scss +0 -120
  180. package/src/features/containers/AppPageContainer/IntegrationCard/index.ts +0 -165
  181. package/src/features/containers/AppPageContainer/IntegrationCard/styles.module.scss +0 -81
  182. package/src/features/containers/AppPageContainer/index.tsx +0 -93
  183. package/src/features/containers/AppPageContainer/styles.module.scss +0 -0
  184. package/src/features/containers/AppsForFlows/index.ts +0 -161
  185. package/src/features/containers/AppsForFlows/styles.module.scss +0 -280
  186. package/src/features/containers/AppsForFlowsCompact/index.ts +0 -161
  187. package/src/features/containers/AppsForFlowsCompact/styles.module.scss +0 -279
  188. package/src/features/containers/AuthSetupContainer/AppSelection.ts +0 -73
  189. package/src/features/containers/AuthSetupContainer/AuthTypeSelection.ts +0 -67
  190. package/src/features/containers/AuthSetupContainer/Footer.ts +0 -32
  191. package/src/features/containers/AuthSetupContainer/Header.ts +0 -39
  192. package/src/features/containers/AuthSetupContainer/PostAdditionPopup.ts +0 -27
  193. package/src/features/containers/AuthSetupContainer/index.ts +0 -349
  194. package/src/features/containers/AuthSetupContainer/styles.module.scss +0 -229
  195. package/src/features/containers/FlowSetupContainer/index.ts +0 -391
  196. package/src/features/containers/FlowSetupContainer/styles.module.scss +0 -18
  197. package/src/features/containers/MarkeplaceApps/index.ts +0 -583
  198. package/src/features/containers/MarkeplaceApps/styles.module.scss +0 -558
  199. package/src/features/containers/MarketplaceAppsCompact/index.ts +0 -585
  200. package/src/features/containers/MarketplaceAppsCompact/styles.module.scss +0 -563
  201. package/src/features/containers/MarketplaceAppsContainer/index.ts +0 -91
  202. package/src/features/containers/MarketplaceContainer/AppCard/index.ts +0 -91
  203. package/src/features/containers/MarketplaceContainer/AppCard/styles.module.scss +0 -66
  204. package/src/features/containers/MarketplaceContainer/AppListing/index.ts +0 -34
  205. package/src/features/containers/MarketplaceContainer/AppListing/styles.module.scss +0 -10
  206. package/src/features/containers/MarketplaceContainer/MarketplaceContentWrap/index.ts +0 -132
  207. package/src/features/containers/MarketplaceContainer/MarketplaceContentWrap/styles.module.scss +0 -117
  208. package/src/features/containers/MarketplaceContainer/index.ts +0 -242
  209. package/src/features/containers/MarketplaceContainer/styles.module.scss +0 -84
  210. package/src/features/containers/SDKContainer/index.ts +0 -817
  211. package/src/features/containers/SDKContainer/styles.module.scss +0 -266
  212. package/src/features/containers/SDKDebugContainer/index.ts +0 -137
  213. package/src/features/containers/SDKDebugContainer/styles.module.scss +0 -37
  214. package/src/features/containers/SDKFailedContainer/index.ts +0 -117
  215. package/src/features/containers/SDKFailedContainer/styles.module.scss +0 -57
  216. package/src/features/integrations/IntegrationRow/Icons.ts +0 -77
  217. package/src/features/integrations/IntegrationRow/index.ts +0 -129
  218. package/src/features/integrations/IntegrationRow/styles.module.scss +0 -62
  219. package/src/features/integrations/IntegrationsHeader/index.ts +0 -34
  220. package/src/features/integrations/IntegrationsHeader/styles.module.scss +0 -47
  221. package/src/features/integrations/IntegrationsList/index.ts +0 -252
  222. package/src/features/integrations/IntegrationsList/styles.module.scss +0 -67
  223. package/src/features/templates/Template/index.ts +0 -295
  224. package/src/features/templates/Template/styles.module.scss +0 -226
  225. package/src/features/templates/TemplatesView/index.ts +0 -368
  226. package/src/features/templates/TemplatesView/styles.module.scss +0 -71
  227. package/src/features/templates/TemplatesViewCompact/index.ts +0 -364
  228. package/src/features/templates/TemplatesViewCompact/styles.module.scss +0 -141
  229. package/src/hooks/useAutosizeTextArea.ts +0 -22
  230. package/src/hooks/useCustomRef.ts +0 -13
  231. package/src/hooks/useDebounce.ts +0 -17
  232. package/src/hooks/useElementResize.ts +0 -40
  233. package/src/hooks/useEventListener.ts +0 -42
  234. package/src/hooks/useHover.ts +0 -40
  235. package/src/hooks/useOnClickOutside.ts +0 -32
  236. package/src/index.ts +0 -2244
  237. package/src/index.umd.ts +0 -13
  238. package/src/interfaces/index.ts +0 -938
  239. package/src/modules/api/index.ts +0 -1325
  240. package/src/modules/api/responseHandler.ts +0 -38
  241. package/src/modules/event-emitter/index.ts +0 -72
  242. package/src/modules/event-emitter/runners/abstract.ts +0 -21
  243. package/src/modules/event-emitter/runners/default.ts +0 -11
  244. package/src/modules/event-emitter/runners/ntimes.ts +0 -28
  245. package/src/modules/event-emitter/types.ts +0 -34
  246. package/src/store/actionFunctions.ts +0 -1578
  247. package/src/store/index.ts +0 -17
  248. package/src/store/initialState.ts +0 -58
  249. package/src/types/index.ts +0 -320
  250. package/src/types/preact-compat.d.ts +0 -4
  251. package/src/types/store.ts +0 -366
  252. package/src/types/utils.ts +0 -19
  253. package/src/utils/ActivityOutputUtils.ts +0 -176
  254. package/src/utils/common.ts +0 -20
  255. package/src/utils/copyToClipboard.ts +0 -24
  256. package/src/utils/datetime.ts +0 -101
  257. package/src/utils/getUrlParam.ts +0 -11
  258. package/src/utils/isAuthMessage.ts +0 -16
  259. package/src/utils/isBrowser.ts +0 -1
  260. package/src/utils/jsonEncodeDecode.ts +0 -15
  261. package/src/utils/objectUtils.ts +0 -117
  262. package/src/utils/popup.ts +0 -30
  263. package/src/utils/searchJson.ts +0 -51
  264. package/src/utils/stepUtils.ts +0 -45
  265. package/src/utils/truncate.ts +0 -6
  266. package/test/setup.ts +0 -1
  267. package/vitest.config.ts +0 -16
@@ -1,266 +0,0 @@
1
- .integry-container {
2
- width: inherit;
3
- height: auto;
4
- min-width: 342px;
5
- .inlineSetup {
6
- display: flex;
7
- flex-direction: column;
8
- align-items: flex-start;
9
- justify-content: flex-start;
10
- position: relative;
11
- justify-content: center;
12
- height: 100%;
13
- // padding: 50px;
14
- padding: 25px;
15
- .close {
16
- position: absolute;
17
- padding: 10px;
18
- cursor: pointer;
19
- top: 0;
20
- right: 0;
21
- visibility: hidden;
22
- }
23
- .flowName {
24
- padding-top: 0;
25
- }
26
- }
27
-
28
- .inlineSetupCompact {
29
- display: flex;
30
- flex-direction: column;
31
- align-items: flex-start;
32
- justify-content: flex-start;
33
- position: relative;
34
- height: 100%;
35
- .close {
36
- position: absolute;
37
- padding: 10px;
38
- cursor: pointer;
39
- top: 0;
40
- right: 0;
41
- visibility: hidden;
42
- }
43
- .flowName {
44
- padding-top: 0;
45
- }
46
- }
47
- }
48
-
49
- .modal {
50
- position: fixed;
51
- z-index: 10;
52
- overflow-y: auto;
53
- top: 0px;
54
- right: 0px;
55
- bottom: 0px;
56
- left: 0px;
57
- }
58
-
59
- .flowName {
60
- text-align: center;
61
- padding-top: 20px;
62
- padding-bottom: 28px;
63
- padding-right: 40px;
64
- padding-left: 25px;
65
- line-height: 36px;
66
- display: flex;
67
- flex-direction: row;
68
- align-items: center;
69
- justify-content: flex-start;
70
- gap: 8px;
71
- color: #333;
72
- font-size: 14px;
73
- font-weight: 400;
74
- }
75
-
76
- .flowNameCompact {
77
- display: flex;
78
- flex-direction: row;
79
- align-items: center;
80
- justify-content: flex-start;
81
- gap: 8px;
82
- width: calc(100% - 40px);
83
- padding-bottom: 12px;
84
- margin: 0 16px;
85
-
86
- .flowNameGroup {
87
- display: flex;
88
- flex-direction: row;
89
- align-items: center;
90
- justify-content: flex-start;
91
- gap: 8px;
92
- margin: 0;
93
- width: calc(100% - 40px);
94
- }
95
- .flowNameGroupCompact {
96
- display: flex;
97
- flex-direction: row;
98
- align-items: center;
99
- justify-content: center;
100
- gap: 8px;
101
- margin: 0 auto;
102
- width: calc(100% - 40px);
103
- margin-left: -30px;
104
- padding-left: 30px;
105
- }
106
-
107
- span {
108
- color: var(--black-and-grey-title-and-desc, #333);
109
- text-align: left;
110
- font-family: Inter;
111
- font-size: 14px;
112
- font-style: normal;
113
- font-weight: 500;
114
- line-height: normal;
115
- white-space: nowrap;
116
- overflow: hidden;
117
- text-overflow: ellipsis;
118
- }
119
-
120
- img {
121
- width: 20px;
122
- height: 20px;
123
- object-fit: contain;
124
- }
125
- }
126
-
127
- .compact-view {
128
- width: 342px;
129
- // height: calc(100% - 24px);
130
- padding: 24px;
131
- padding-bottom: 0;
132
- margin: 0 auto;
133
- }
134
-
135
- div[id='flows-comfortable-view'] {
136
- max-width: 730px;
137
- margin: 0 auto;
138
- border: 1px solid #eeeeee;
139
-
140
- .inlineSetup {
141
- padding: 24px 0;
142
- padding-bottom: 0px;
143
- }
144
- .flowAccountWrap {
145
- [class^='styles-module_accountField'] {
146
- margin: 8px 16px;
147
- }
148
- [class^='styles-module_accountFieldDropdown'] {
149
- height: 24px;
150
- }
151
- [class^='styles-module_authWrapDropdown'] {
152
- width: 363px;
153
- top: 58px;
154
- left: 16px;
155
- }
156
- }
157
- }
158
- div[id='flows-compact-view'] {
159
- .flowAccountWrap {
160
- [class^='styles-module_accountFieldDropdown'] {
161
- height: 24px;
162
- }
163
- [class^='styles-module_authWrapDropdown'] {
164
- width: 339px;
165
- }
166
- }
167
- }
168
- div[id='appPageContainer-COMFORTABLE--INLINE'] {
169
- max-width: 730px;
170
- margin: 0 auto;
171
- border: 1px solid #eeeeee;
172
-
173
- .inlineSetup {
174
- padding: 24px 0;
175
- }
176
- }
177
- div[id='appPageContainer-COMPACT--INLINE'] {
178
- border: 1px solid #eeeeee;
179
- .inlineSetup {
180
- padding: 24px 0;
181
- }
182
- }
183
- div[id='stepsBottomComfortable'] {
184
- display: flex;
185
- flex-direction: column;
186
- align-items: flex-start;
187
- justify-content: space-between;
188
- padding-right: 100px;
189
- border-top: 1px solid #e0e0e0;
190
- padding: 24px;
191
- // padding-bottom: 0px;
192
- align-items: end;
193
- margin-top: 24px;
194
- }
195
- div[id='appPageContainer-COMFORTABLE--MODAL'] div[id='stepsBottomComfortable'] {
196
- padding-bottom: 5px;
197
- }
198
- div[id='appPageContainer-COMFORTABLE--MODAL'] div[id='stepsWrap'] {
199
- height: 90%;
200
- }
201
- div[id='appPageContainer-COMFORTABLE--INLINE']
202
- div[id='stepsBottomComfortable'] {
203
- padding-bottom: 5px;
204
- margin-top: 0px;
205
- }
206
-
207
- .flows-comfortable-view--MODAL + div[id='sdk-modal'],
208
- .flows-comfortable-view--MODAL div[id='sdk-modal'] {
209
- div[id='sdk-modal-container'] {
210
- div[id='integry-sdk-modal-container__content'] {
211
- // height: calc(100vh - 150px);
212
- height: 100%;
213
- min-height: 557px;
214
- }
215
- }
216
- [class^='styles-module_authWrapDropdown_'] {
217
- div[id='sdk-modal-container'] {
218
- div[id='integry-sdk-modal-container__content'] {
219
- height: auto;
220
- min-height: auto;
221
- }
222
- }
223
- }
224
- div[id='stepsWrap'] {
225
- border-top: 1px solid #d7d7d7;
226
- }
227
- div[id='stepInfo'] {
228
- border-top: 0px;
229
- }
230
- }
231
- div[id='flows-compact-view'] + div[id='sdk-modal'],
232
- div[id='flows-compact-view'] div[id='sdk-modal'] {
233
- div[id='sdk-modal-container'] {
234
- div[id='integry-sdk-modal-container__content'] {
235
- [class^='styles-module_flowAccountWrap_'] {
236
- width: 344px;
237
- margin: 0 auto;
238
- }
239
- [class^='styles-module_accountFieldDropdown_'] {
240
- height: 24px;
241
- }
242
- [class^='styles-module_authWrapDropdown_'] {
243
- width: 337px;
244
- }
245
- [class^='styles-module_actionFormWrap_'] {
246
- min-height: 350px;
247
- }
248
- }
249
- }
250
- }
251
- div[id='flows-comfortable-view'] + div[id='sdk-modal'],
252
- div[id='flows-comfortable-view'] div[id='sdk-modal'] {
253
- div[id='sdk-modal-container'] {
254
- div[id='integry-sdk-modal-container__content'] {
255
- [class^='styles-module_flowAccountWrap_'] {
256
- margin-left: 20px;
257
- }
258
- [class^='styles-module_accountFieldDropdown_'] {
259
- height: 24px;
260
- }
261
- [class^='styles-module_authWrapDropdown_'] {
262
- width: 337px;
263
- }
264
- }
265
- }
266
- }
@@ -1,137 +0,0 @@
1
- /* eslint-disable no-nested-ternary */
2
- import { UserConfig } from '@/interfaces';
3
- import { StoreType } from '@/types/store';
4
- import { html } from 'htm/preact';
5
- import { useContext, useEffect, useRef, useState } from 'preact/hooks';
6
- import isBrowser from '@/utils/isBrowser';
7
-
8
- import styles from './styles.module.scss';
9
-
10
- interface ContainerProps extends StoreType {
11
- message: string;
12
- config: any;
13
- eventEmitter: any;
14
- initialEvents?: any;
15
- }
16
-
17
- const SDKDebugContainer = (props: ContainerProps) => {
18
- const [events, setEvents] = useState<any>([]);
19
- const { appKey, apiKey, userId, hash, extras } = props.config;
20
-
21
- const pushEvent = (type: string, data: any) => {
22
- const tempEvents = [...events];
23
-
24
- const isTypeExists = tempEvents.some((event) => event.type === type);
25
-
26
- if (!isTypeExists) {
27
- tempEvents.push({
28
- type,
29
- data,
30
- });
31
- setEvents(tempEvents);
32
- }
33
- };
34
-
35
- const loadCustomStyles = () => {
36
- const style = document.createElement('style');
37
- style.textContent = `
38
- div[id='embed--appsContainer'],
39
- div[id='appPageContainer-COMFORTABLE--INLINE'],
40
- div[id='flows-comfortable-view'],
41
- div[id='flows-compact-view'],
42
- div[id='appPageContainer-COMPACT--INLINE'],
43
- div[class^='styles-module_inlineContentWrap'],
44
- div[id='embed--flowCardContainer__INLINE'] {
45
- height: 70% !important;
46
- min-height: 70% !important;
47
- overflow: scroll;
48
- }
49
- div[id='embed--flowCardContainer__INLINE'] {
50
- overflow: visible;
51
- }
52
- div[class^='styles-module_appFlowSetupForm'] {
53
- min-height: 80% !important;
54
- }
55
- `;
56
- document.head.appendChild(style);
57
- };
58
-
59
- if (props.eventEmitter) {
60
- props.eventEmitter.on('ready', (data: any) => {
61
- pushEvent('ready', data);
62
- });
63
- props.eventEmitter.on('did-save-integration', (data: any) => {
64
- pushEvent('did-save-integration', data);
65
- });
66
- props.eventEmitter.on('did-add-authorization', (data: any) => {
67
- pushEvent('did-add-authorization', data);
68
- });
69
- props.eventEmitter.on('did-remove-authorization', (data: any) => {
70
- pushEvent('did-remove-authorization', data);
71
- });
72
- props.eventEmitter.on('did-delete-integration', (data: any) => {
73
- pushEvent('did-delete-integration', data);
74
- });
75
- props.eventEmitter.on('did-rename-integration', (data: any) => {
76
- pushEvent('did-rename-integration', data);
77
- });
78
- props.eventEmitter.on('did-disable-integration', (data: any) => {
79
- pushEvent('did-disable-integration', data);
80
- });
81
- props.eventEmitter.on('did-enable-integration', (data: any) => {
82
- pushEvent('did-enable-integration', data);
83
- });
84
- }
85
-
86
- useEffect(() => {
87
- if (props.config.userConfig.debug) {
88
- loadCustomStyles();
89
- }
90
- (props.initialEvents || []).forEach((event: any) =>
91
- pushEvent(event.type, event.data),
92
- );
93
- }, [events]);
94
-
95
- return html`
96
- <div className=${styles.SDKDebugContainer}>
97
- <div className=${styles.SDKDebugContainer__content}>
98
- <h3 className=${styles.SDKDebugContainer__title}>
99
- Debug mode <span>(debug = true)</span>
100
- </h3>
101
- ${props.message &&
102
- html`<p className=${styles.SDKDebugContainer__message}>
103
- ${props.message}
104
- </p>`}
105
- <div className=${styles.contentBlock}>
106
- <p>
107
- <label>Security</label>
108
- <span>appKey (required): ${appKey ? '********' : ''}</span>
109
- <span>hash (required): ${hash ? '********' : ''}</span>
110
- </p>
111
- </div>
112
- <div className=${styles.contentBlock}>
113
- <p>
114
- <label>User variables</label>
115
- <span>userId (required): ${userId}</span>
116
- <span>apiKey: ${apiKey}</span>
117
- ${Object.entries(extras || []).map(
118
- ([key, value]) => html`<span>${key}: ${value}</span>`,
119
- )}
120
- </p>
121
- </div>
122
- <div className=${styles.contentBlock}>
123
- <p>
124
- <label>Events</label>
125
- ${events.map(
126
- (item: any) =>
127
- html`<span>Event: ${item.type}</span>
128
- <pre>${JSON.stringify(item.data, null, 2)}</pre>`,
129
- )}
130
- </p>
131
- </div>
132
- </div>
133
- </div>
134
- `;
135
- };
136
-
137
- export default SDKDebugContainer;
@@ -1,37 +0,0 @@
1
- .SDKDebugContainer {
2
- width: 654px;
3
- text-align: left;
4
- margin: 0 auto;
5
- border: 2px solid #ccc;
6
- border-radius: 5px;
7
- margin-top: 10px;
8
- max-width: 730px;
9
- padding: 20px 40px;
10
- height: 30%;
11
- overflow: scroll;
12
- .SDKDebugContainer__content {
13
- .SDKDebugContainer__title {
14
- font-size: 24px;
15
- margin-bottom: 16px;
16
- display: inline;
17
- span {
18
- font-weight: normal;
19
- }
20
- }
21
- .contentBlock {
22
- margin: 30px 0;
23
- label {
24
- font-size: 16px;
25
- font-weight: bold;
26
- margin-bottom: 8px;
27
- display: block;
28
- }
29
- span {
30
- font-size: 14px;
31
- font-weight: normal;
32
- display: block;
33
- margin-bottom: 8px;
34
- }
35
- }
36
- }
37
- }
@@ -1,117 +0,0 @@
1
- /* eslint-disable no-nested-ternary */
2
- import { UserConfig } from '@/interfaces';
3
- import { StoreType } from '@/types/store';
4
- import { html } from 'htm/preact';
5
- import { useContext, useEffect, useRef } from 'preact/hooks';
6
- import SDKDebugContainer from '@/features/containers/SDKDebugContainer';
7
-
8
- import styles from './styles.module.scss';
9
-
10
- interface ContainerProps extends StoreType {
11
- message: string;
12
- debug: boolean;
13
- config: any;
14
- }
15
-
16
- const SDKFailedContainer = (props: ContainerProps) =>
17
- html`
18
- <div className=${styles.SDKFailedContainer}>
19
- <div className=${styles.SDKFailedContainer__content}>
20
- <svg
21
- data-hint="Could not authorize"
22
- width="24"
23
- height="24"
24
- viewBox="0 0 12 12"
25
- fill="none"
26
- xmlns="http://www.w3.org/2000/svg"
27
- style="margin-right: 10px; position: relative; top: 2px;"
28
- >
29
- <path
30
- d="M5.99833 0.891429C6.08866 0.891429 6.31281 0.918857 6.43659 1.16571L11.0702 10.3749C11.1839 10.6011 11.0969 10.7966 11.0535 10.8686C11.01 10.9406 10.8828 11.112 10.6319 11.112H1.36474C1.11382 11.112 0.986692 10.944 0.9432 10.8686C0.899708 10.7966 0.812723 10.6011 0.926472 10.3749L5.56006 1.16571C5.68385 0.918857 5.908 0.891429 5.99833 0.891429ZM5.99833 0C5.51991 0 5.0415 0.250286 4.78724 0.754286L0.15365 9.96343C-0.314727 10.8926 0.344346 12 1.36474 12H10.6353C11.6557 12 12.3147 10.8926 11.8464 9.96343L7.20942 0.754286C6.95515 0.250286 6.47674 0 5.99833 0Z"
31
- fill="#F05C42"
32
- />
33
- <path
34
- d="M5.99494 8.71924C5.83435 8.71924 5.70053 8.77752 5.59013 8.89067C5.47973 9.00381 5.42285 9.14095 5.42285 9.3021C5.42285 9.48724 5.47973 9.63124 5.59682 9.7341C5.71391 9.83695 5.84774 9.88838 6.00163 9.88838C6.15553 9.88838 6.286 9.83695 6.4031 9.73067C6.51685 9.62781 6.57372 9.48381 6.57372 9.3021C6.57372 9.14095 6.51685 9.00381 6.4031 8.89067C6.29269 8.7741 6.15553 8.71924 5.99494 8.71924Z"
35
- fill="#F05C42"
36
- />
37
- <path
38
- d="M5.99923 3.9668C5.68474 3.9668 5.43048 4.23423 5.44386 4.55651L5.54423 7.57708C5.55092 7.8308 5.755 8.03308 6.00257 8.03308C6.25014 8.03308 6.45422 7.8308 6.46091 7.57708L6.55793 4.55651C6.56797 4.23423 6.31371 3.9668 5.99923 3.9668Z"
39
- fill="#F05C42"
40
- />
41
- </svg>
42
- <h1 className=${styles.SDKFailedContainer__title}>Failed to load!</h1>
43
- </div>
44
- <div id="embed--footer" class=${styles.embedPreviewFooter}>
45
- <span class=${styles.embedPreviewFooterDesc}>
46
- Powered by
47
- <a
48
- class=${styles.embedPreviewFooterCTA}
49
- target="_blank"
50
- href="https://integry.ai/?utm_source=${props.genericData
51
- ?.customerAppName}&utm_medium=sdk"
52
- rel="noreferrer"
53
- ><svg
54
- style="margin-left: 4px; margin-right: 2px;"
55
- width="12"
56
- height="12"
57
- viewBox="0 0 12 12"
58
- fill="none"
59
- xmlns="http://www.w3.org/2000/svg"
60
- >
61
- <path
62
- 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"
63
- fill="#F05C42"
64
- />
65
- <path
66
- 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"
67
- fill="#FCC700"
68
- />
69
- <path
70
- 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"
71
- fill="#3BB568"
72
- />
73
- <path
74
- 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"
75
- fill="#509CF6"
76
- /></svg
77
- >Integry</a
78
- >.
79
- </span>
80
- <a
81
- class=${styles.embedPreviewFooterCTA}
82
- target="_blank"
83
- href="https://www.integry.ai/security-policy"
84
- rel="noreferrer"
85
- >
86
- Privacy Policy
87
- <!--<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>
88
- </svg>-->
89
- </a>
90
- </div>
91
- ${props.debug
92
- ? html`<${SDKDebugContainer}
93
- message="Failed to initialize the Integry Marketplace widget. Please verify the variables below."
94
- config=${props.config}
95
- initialEvents=${[
96
- {
97
- type: 'verify-sdk-credentials',
98
- data: {
99
- isVerified: false,
100
- message:
101
- 'Please verify if your SDK auth credentials are correct',
102
- },
103
- },
104
- {
105
- type: 'ready',
106
- data: {
107
- isReady: false,
108
- },
109
- },
110
- ]}
111
- >
112
- <//>`
113
- : ''}
114
- </div>
115
- `;
116
-
117
- export default SDKFailedContainer;
@@ -1,57 +0,0 @@
1
- .SDKFailedContainer {
2
- display: flex;
3
- flex-direction: column;
4
- align-items: center;
5
- justify-content: center;
6
- height: 100%;
7
- width: 100%;
8
- .SDKFailedContainer__content {
9
- .SDKFailedContainer__title {
10
- font-size: 30px;
11
- font-weight: 500;
12
- margin-bottom: 16px;
13
- display: inline;
14
- }
15
- }
16
- .embedPreviewFooter {
17
- padding-bottom: 12px;
18
- padding-top: 12px;
19
- display: flex;
20
- flex-direction: row;
21
- align-items: center;
22
- justify-content: center;
23
- gap: 4px;
24
- width: 100%;
25
- box-shadow: 0px -6px 10px 0px rgba(255, 255, 255, 0.8);
26
- margin-top: 40px;
27
-
28
- .embedPreviewFooterDesc {
29
- color: var(--black-and-grey-draft-and-tooltip-desc, #999);
30
- font-family: Inter;
31
- font-size: 12px;
32
- font-style: normal;
33
- font-weight: 400;
34
- line-height: normal;
35
- display: flex;
36
- flex-direction: row;
37
- align-items: center;
38
- justify-content: flex-start;
39
- // gap: 2px;
40
- }
41
-
42
- .embedPreviewFooterCTA {
43
- // color: var(--theme-accent-blue-1, #4250f0);
44
- color: var(--black-and-grey-draft-and-tooltip-desc, #999);
45
- font-family: Inter;
46
- font-size: 12px;
47
- font-style: normal;
48
- font-weight: 400;
49
- line-height: normal;
50
- display: flex;
51
- flex-direction: row;
52
- align-items: center;
53
- justify-content: flex-start;
54
- text-decoration: none;
55
- }
56
- }
57
- }
@@ -1,77 +0,0 @@
1
- import { html } from 'htm/preact';
2
-
3
- const Success = () => html`
4
- <svg
5
- width="22"
6
- height="22"
7
- viewBox="0 0 25 25"
8
- fill="none"
9
- xmlns="http://www.w3.org/2000/svg"
10
- >
11
- <circle cx="12.5" cy="12.5" r="12.5" fill="#2ECC71" />
12
- <path
13
- d="M17.2209 9.16699L11.3907 15.8337L8.33203 12.3361"
14
- stroke="white"
15
- stroke-width="1.2"
16
- stroke-linecap="round"
17
- />
18
- </svg>
19
- `;
20
-
21
- const Fail = () => html`
22
- <svg
23
- width="22"
24
- height="25"
25
- viewBox="0 0 25 27"
26
- fill="none"
27
- xmlns="http://www.w3.org/2000/svg"
28
- >
29
- <circle cx="12.5" cy="12.5" r="12.5" fill="#E26154" />
30
- <g filter="url(#filter0_d)">
31
- <path
32
- fill-rule="evenodd"
33
- clip-rule="evenodd"
34
- d="M11.1886 8.05792C11.1209 7.32574 11.7556 6.61621 12.4701 6.61621C13.2413 6.61621 13.8535 7.32568 13.7963 8.05792L13.3542 13.5234C13.3206 14.0117 12.8896 14.3955 12.4019 14.3605C11.9713 14.3255 11.6422 13.9535 11.6196 13.5234L11.1886 8.05792ZM11.1836 16.9743C11.1836 16.3124 11.7654 15.7737 12.4835 15.7737C13.2189 15.7737 13.8007 16.3124 13.8 16.9743V17.2052C13.8 17.8671 13.2015 18.3902 12.4835 18.3902C11.7647 18.3902 11.1836 17.8671 11.1836 17.2052V16.9743Z"
35
- fill="white"
36
- />
37
- </g>
38
- <defs>
39
- <filter
40
- id="filter0_d"
41
- x="7.18359"
42
- y="6.61621"
43
- width="10.6164"
44
- height="19.7739"
45
- filterUnits="userSpaceOnUse"
46
- color-interpolation-filters="sRGB"
47
- >
48
- <feFlood flood-opacity="0" result="BackgroundImageFix" />
49
- <feColorMatrix
50
- in="SourceAlpha"
51
- type="matrix"
52
- values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
53
- result="hardAlpha"
54
- />
55
- <feOffset dy="4" />
56
- <feGaussianBlur stdDeviation="2" />
57
- <feColorMatrix
58
- type="matrix"
59
- values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"
60
- />
61
- <feBlend
62
- mode="normal"
63
- in2="BackgroundImageFix"
64
- result="effect1_dropShadow"
65
- />
66
- <feBlend
67
- mode="normal"
68
- in="SourceGraphic"
69
- in2="effect1_dropShadow"
70
- result="shape"
71
- />
72
- </filter>
73
- </defs>
74
- </svg>
75
- `;
76
-
77
- export { Success, Fail };