blob: 36abb3fe5ae488d99647edcd2a05854c4df66e99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
import {input, templateCompositeFrom} from '#composite';
import {raiseOutputWithoutDependency} from '#composite/control-flow';
import {withPropertyFromObject} from '#composite/data';
import {withRecontextualizedContributionList} from '#composite/wiki-data';
import withPropertyFromAttachedArtwork from './withPropertyFromAttachedArtwork.js';
export default templateCompositeFrom({
annotaion: `withContribsFromAttachedArtwork`,
outputs: ['#attachedArtwork.artistContribs'],
steps: () => [
withPropertyFromAttachedArtwork({
property: input.value('artistContribs'),
}),
raiseOutputWithoutDependency({
dependency: '#attachedArtwork.artistContribs',
output: input.value({'#attachedArtwork.artistContribs': null}),
}),
withRecontextualizedContributionList({
list: '#attachedArtwork.artistContribs',
}),
],
});
|