@integry/sdk 4.6.16 → 4.6.18

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.
@@ -31,6 +31,10 @@
31
31
  cursor: pointer;
32
32
  position: relative;
33
33
 
34
+ svg {
35
+ margin-right: 4px;
36
+ }
37
+
34
38
  &.tabWithResults {
35
39
  font-weight: 500;
36
40
  color: #4f46e5;
@@ -104,7 +108,7 @@
104
108
 
105
109
  &.searchMatch {
106
110
  > .listItemContent {
107
- background-color: rgba(79, 70, 229, 0.1);
111
+ // background-color: rgba(79, 70, 229, 0.1);
108
112
  border-radius: 4px;
109
113
  }
110
114
  }
@@ -131,14 +135,20 @@
131
135
  }
132
136
  span.tagIcon {
133
137
  margin-right: 10px;
134
- svg {
138
+ svg,
139
+ img {
135
140
  width: 1rem;
136
141
  height: 1rem;
142
+ position: relative;
143
+ top: 2px;
144
+ }
145
+ img {
146
+ margin-right: 0px;
137
147
  }
138
148
  }
139
149
  span.key {
140
150
  mark {
141
- background-color: rgba(79, 70, 229, 0.2);
151
+ // background-color: rgba(79, 70, 229, 0.2);
142
152
  color: inherit;
143
153
  font-weight: 500;
144
154
  border-radius: 2px;
@@ -157,10 +167,10 @@
157
167
  color: #3b82f6;
158
168
  }
159
169
  }
160
- span.value,
161
- span.key {
162
- color: hsl(240 3.8% 46.1%);
170
+ span.value {
171
+ color: hsl(240 3.8% 60%);
163
172
  font-size: 0.75rem;
173
+ font-weight: 400;
164
174
  line-height: 1rem;
165
175
  overflow: hidden;
166
176
  text-overflow: ellipsis;
@@ -168,7 +178,25 @@
168
178
  margin-left: 5px;
169
179
 
170
180
  mark {
171
- background-color: rgba(79, 70, 229, 0.2);
181
+ // background-color: rgba(79, 70, 229, 0.2);
182
+ color: inherit;
183
+ font-weight: 500;
184
+ border-radius: 2px;
185
+ padding: 0 2px;
186
+ }
187
+ }
188
+ span.key {
189
+ color: hsl(240 10% 3.9%);
190
+ font-weight: 500;
191
+ font-size: 0.8rem;
192
+ line-height: 1rem;
193
+ overflow: hidden;
194
+ text-overflow: ellipsis;
195
+ white-space: nowrap;
196
+ margin-left: 5px;
197
+
198
+ mark {
199
+ // background-color: rgba(79, 70, 229, 0.2);
172
200
  color: inherit;
173
201
  font-weight: 500;
174
202
  border-radius: 2px;
@@ -185,12 +213,23 @@
185
213
  }
186
214
  }
187
215
  .outputSection {
188
- margin-top: 5px;
189
- margin-bottom: 5px;
190
- padding: 5px;
191
216
  background-color: rgba(0, 0, 0, 0.02);
192
217
  border-radius: 4px;
193
218
  border-left: 2px solid #e2e8f0;
219
+
220
+ // Remove padding when the section is empty
221
+ ul {
222
+ padding: 5px;
223
+ &:empty {
224
+ padding: 0;
225
+ border-left: none;
226
+ background-color: transparent;
227
+ }
228
+ }
229
+ }
230
+ .tagsListWrapper {
231
+ max-height: 300px;
232
+ overflow-y: scroll;
194
233
  }
195
234
  }
196
235
  }
@@ -50,6 +50,7 @@ interface ActionFormPropsType extends StoreType {
50
50
  onFieldChangeCallback?: (fieldId: string, value: string) => void;
51
51
  tagsComponent?: any;
52
52
  tagsTree?: any;
53
+ showMappingMenu: boolean;
53
54
  }
54
55
 
55
56
  interface ActionFormStateType {
@@ -1633,6 +1634,11 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
1633
1634
  el.data_type === 'NUMBER[]'
1634
1635
  )}
1635
1636
  tagsComponent=${this.props.tagsComponent}
1637
+ tagsTree=${
1638
+ this.props.showMappingMenu
1639
+ ? this.props.tagsTree
1640
+ : null
1641
+ }
1636
1642
  ><//>
1637
1643
  </${ConfigureFieldWrapper}>
1638
1644
  </div>
@@ -1996,6 +2002,11 @@ class ActionForm extends Component<ActionFormPropsType, ActionFormStateType> {
1996
2002
  this.refreshRootStepData
1997
2003
  }
1998
2004
  tagsComponent=${this.props.tagsComponent}
2005
+ tagsTree=${
2006
+ this.props.showMappingMenu
2007
+ ? this.props.tagsTree
2008
+ : null
2009
+ }
1999
2010
  />
2000
2011
 
2001
2012
  </${ConfigureFieldWrapper}>
package/src/index.ts CHANGED
@@ -1995,6 +1995,7 @@ export class IntegryJS {
1995
1995
  onFieldChangeCallback: () => {
1996
1996
  // Placeholder function for future implementation
1997
1997
  },
1998
+ showMappingMenu: false,
1998
1999
  },
1999
2000
  ) => {
2000
2001
  const target = document.getElementById(options.containerId);
@@ -2023,6 +2024,7 @@ export class IntegryJS {
2023
2024
  tagsComponent=${options.tagsComponent}
2024
2025
  onFieldChangeCallback=${options.onFieldChangeCallback}
2025
2026
  tagsTree=${options.tagsTree}
2027
+ showMappingMenu=${options.showMappingMenu}
2026
2028
  />
2027
2029
  <//>
2028
2030
  <//>
@@ -296,6 +296,7 @@ export type RenderFlowStepOptions = {
296
296
  tagsComponent?: any;
297
297
  onFieldChangeCallback: (fieldId: string, value: any) => void;
298
298
  tagsTree: any;
299
+ showMappingMenu: boolean;
299
300
  };
300
301
  export type ShowFunctionOptions = {
301
302
  params?: Record<string, any>;