mapPlaceholderToSuggestion exported directly. see #553

This commit is contained in:
mic 2025-12-26 22:49:26 +01:00
parent 385241efb3
commit cc2d3b8e5a

View file

@ -339,6 +339,12 @@ export async function prepareCustomDataPHsForImport(placeholders){
return output;
}
export function mapPlaceholderToSuggestion(p) {
return {
command: '{%' + p.id + '%}',
type: p.type
};
}
export const placeholdersUtils = {
@ -575,11 +581,4 @@ export const placeholdersUtils = {
return element;
},
mapPlaceholderToSuggestion(p) {
return {
command: '{%' + p.id + '%}',
type: p.type
};
},
}
}