From 8bbd9ac0b5cf8cc64ccbae7ae16b23f05d93d880 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 11 Jan 2025 00:10:27 -0400 Subject: data: inputSoupyFind.input() occasionally we use a soupyFind.input() from #composite/wiki-data code, so this exposes a no-dependency frontend for that token --- src/data/composite/wiki-data/inputSoupyFind.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/data/composite/wiki-data/inputSoupyFind.js') diff --git a/src/data/composite/wiki-data/inputSoupyFind.js b/src/data/composite/wiki-data/inputSoupyFind.js index 4ae7bd3b..020f4990 100644 --- a/src/data/composite/wiki-data/inputSoupyFind.js +++ b/src/data/composite/wiki-data/inputSoupyFind.js @@ -1,8 +1,8 @@ import {input} from '#composite'; import {anyOf, isFunction, isString} from '#validators'; -export default () => - input({ +function inputSoupyFind() { + return input({ validate: anyOf( isFunction, @@ -16,6 +16,12 @@ export default () => return true; }), }); +} + +inputSoupyFind.input = key => + input.value('_soupyFind:' + key); + +export default inputSoupyFind; export function getSoupyFindInputKey(value) { return value.slice('_soupyFind:'.length); -- cgit 1.3.0-6-gf8a5