@crowdin/app-project-module 1.8.0 → 1.8.1
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/out/modules/manifest.js +6 -3
- package/package.json +1 -1
package/out/modules/manifest.js
CHANGED
|
@@ -17,7 +17,6 @@ function normalizeEnvironments(environments) {
|
|
|
17
17
|
return [environments];
|
|
18
18
|
}
|
|
19
19
|
function handle(config) {
|
|
20
|
-
var _a, _b;
|
|
21
20
|
const modules = {};
|
|
22
21
|
if (config.projectIntegration) {
|
|
23
22
|
// prevent possible overrides of the other modules
|
|
@@ -677,10 +676,14 @@ function handle(config) {
|
|
|
677
676
|
if (!workflowStep.key) {
|
|
678
677
|
workflowStep.key = config.identifier + '-' + (0, util_3.getWorkflowStepKey)(workflowStep);
|
|
679
678
|
}
|
|
680
|
-
const uiModule =
|
|
679
|
+
const uiModule = workflowStep === null || workflowStep === void 0 ? void 0 : workflowStep.settingsUiModule;
|
|
681
680
|
modules['workflow-step-type'].push(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ key: workflowStep.key, name: workflowStep.name || config.name }, (workflowStep.imageUrl || workflowStep.imagePath
|
|
682
681
|
? { logo: (0, util_1.getLogoUrl)(config, workflowStep, `-${workflowStep.key}`) }
|
|
683
|
-
: {})), { description: workflowStep.description || config.description, boundaries: workflowStep.boundaries }), (workflowStep.editorMode ? { editorMode: workflowStep.editorMode } : {})), { updateSettingsUrl: (0, util_3.getWorkflowStepUrl)('/workflow-step/settings', workflowStep), deleteSettingsUrl: (0, util_3.getWorkflowStepUrl)('/workflow-step/delete', workflowStep) }), (uiModule
|
|
682
|
+
: {})), { description: workflowStep.description || config.description, boundaries: workflowStep.boundaries }), (workflowStep.editorMode ? { editorMode: workflowStep.editorMode } : {})), { updateSettingsUrl: (0, util_3.getWorkflowStepUrl)('/workflow-step/settings', workflowStep), deleteSettingsUrl: (0, util_3.getWorkflowStepUrl)('/workflow-step/delete', workflowStep) }), ((uiModule === null || uiModule === void 0 ? void 0 : uiModule.formSchema)
|
|
683
|
+
? {
|
|
684
|
+
url: `${(0, util_3.getWorkflowStepUrl)('/workflow-step', workflowStep)}/${uiModule.fileName || 'index.html'}`,
|
|
685
|
+
}
|
|
686
|
+
: {})));
|
|
684
687
|
}
|
|
685
688
|
}
|
|
686
689
|
if (config.automationAction) {
|
package/package.json
CHANGED