From 35137cbe060a2c2ec8fcdc09fc6b6bd9e932239f Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 16 Nov 2024 14:07:15 -0400 Subject: data: annotatedReferenceList, reference-list-helpers --- .../composite/wiki-properties/referencedArtworkList.js | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'src/data/composite/wiki-properties/referencedArtworkList.js') diff --git a/src/data/composite/wiki-properties/referencedArtworkList.js b/src/data/composite/wiki-properties/referencedArtworkList.js index db4d4637..74790443 100644 --- a/src/data/composite/wiki-properties/referencedArtworkList.js +++ b/src/data/composite/wiki-properties/referencedArtworkList.js @@ -1,18 +1,13 @@ import {input, templateCompositeFrom} from '#composite'; import find from '#find'; -import {validateAnnotatedReferenceList} from '#validators'; import {combineWikiDataArrays} from '#wiki-data'; -import {exposeDependency} from '#composite/control-flow'; -import {withResolvedAnnotatedReferenceList} from '#composite/wiki-data'; +import annotatedReferenceList from './annotatedReferenceList.js'; export default templateCompositeFrom({ annotation: `referencedArtworkList`, - update: { - validate: - validateAnnotatedReferenceList(['album', 'track']), - }, + compose: false, steps: () => [ { @@ -43,12 +38,10 @@ export default templateCompositeFrom({ }), }, - withResolvedAnnotatedReferenceList({ - list: input.updateValue(), + annotatedReferenceList({ + referenceType: input.value(['album', 'track']), data: '#data', find: '#find', }), - - exposeDependency({dependency: '#resolvedAnnotatedReferenceList'}), ], }); -- cgit 1.3.0-6-gf8a5