@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/dist/esm/index.csm.d.ts +6 -0
- package/dist/esm/index.csm.js +1 -1
- package/dist/umd/index.umd.d.ts +6 -0
- package/dist/umd/index.umd.js +1 -1
- package/package.json +1 -1
- package/src/features/common/FunctionForm/styles.module.scss +1 -1
- package/src/index.ts +41 -0
- package/src/types/index.ts +5 -0
package/package.json
CHANGED
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,
|
package/src/types/index.ts
CHANGED
|
@@ -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>;
|