@integry/sdk 4.6.46 → 4.6.48

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integry/sdk",
3
- "version": "4.6.46",
3
+ "version": "4.6.48",
4
4
  "description": "Integry SDK",
5
5
  "main": "dist/umd/index.umd.js",
6
6
  "module": "dist/esm/index.csm.js",
@@ -158,7 +158,7 @@
158
158
  .aiAssistToggle {
159
159
  appearance: none;
160
160
  width: 30px;
161
- height: 16px;
161
+ height: 16px !important;
162
162
  background-color: #cccccc;
163
163
  border-radius: 10px;
164
164
  position: relative;
package/src/index.ts CHANGED
@@ -29,6 +29,7 @@ import {
29
29
  Layouts,
30
30
  SetupIntegrationOptions,
31
31
  RenderFlowStepOptions,
32
+ RenderMappingMenuOptions,
32
33
  ShowFunctionOptions,
33
34
  } from '@/types';
34
35
 
@@ -44,6 +45,7 @@ import MarketplaceContainer from '@/features/containers/MarketplaceContainer';
44
45
  import AppFlowContainer from '@/features/containers/AppFlowContainer';
45
46
  import MarketplaceAppsContainer from '@/features/containers/MarketplaceAppsContainer';
46
47
  import ActionForm from '@/features/common/ActionForm';
48
+ import { TagsMenu } from '@/components/TagsMenu';
47
49
 
48
50
  import FunctionForm from '@/features/common/FunctionForm';
49
51
  import { openPopupWindow } from '@/utils/popup';
@@ -2042,6 +2044,45 @@ export class IntegryJS {
2042
2044
  }
2043
2045
  };
2044
2046
 
2047
+ public renderMappingMenu = (
2048
+ options: RenderMappingMenuOptions = {
2049
+ containerId: '',
2050
+ tagsTree: {},
2051
+ onTagSelect: () => {
2052
+ // Placeholder function for future implementation
2053
+ },
2054
+ },
2055
+ ) => {
2056
+ const target = document.getElementById(options.containerId);
2057
+
2058
+ if (target) {
2059
+ const store = createSDKStore();
2060
+ render(
2061
+ html`<div>
2062
+ <${AppContext.Provider}
2063
+ value=${{
2064
+ apiHandler: this.apiHandler,
2065
+ eventEmitter: this.eventEmitter,
2066
+ isPreviewMode: false,
2067
+ }}
2068
+ >
2069
+ <${Provider} store=${store} key=${this.getRandomFlowId(10)}>
2070
+ <${TagsMenu}
2071
+ tagsTree=${options.tagsTree}
2072
+ onSelect=${options.onTagSelect}
2073
+ />
2074
+ <//>
2075
+ <//>
2076
+ </div>`,
2077
+ target,
2078
+ );
2079
+ } else {
2080
+ console.warn(
2081
+ `Integry SDK render target with id ${options.containerId} was not found`,
2082
+ );
2083
+ }
2084
+ };
2085
+
2045
2086
  public verifyAuthConfig = () =>
2046
2087
  this.apiHandler.verifyAuthConfig({
2047
2088
  deploymentId: this.config.deploymentId,
@@ -298,6 +298,11 @@ export type RenderFlowStepOptions = {
298
298
  tagsTree: any;
299
299
  showMappingMenu?: boolean;
300
300
  };
301
+ export type RenderMappingMenuOptions = {
302
+ containerId: string;
303
+ tagsTree: any;
304
+ onTagSelect: (tag: any) => void;
305
+ };
301
306
  export type ShowFunctionOptions = {
302
307
  params?: Record<string, any>;
303
308
  payload?: Record<string, any>;