Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function onCloseWormhole() {
return new Constraint('newValue', ({ emptyTarget }) => emptyTarget);
}
export function target(name) {
return new Constraint('parentElementClass', `${name}`);
}
export function onOpenWormhole() {
return new Constraint('newValue', ({ emptyTarget }) => !emptyTarget);
}
export function onCloseTether() {
return new Constraint('newValue', (value) => value === null);
}
export function onOpenTether() {
return new Constraint('newValue', (value) => value !== null);
}
export function target(name) {
return new Constraint('parentElementClass', `${name}-liquid-target`);
}