blob: e9425c95c432ce4257cde99bba79ad7740ba1581 (
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
 | import {input, templateCompositeFrom} from '#composite';
import {raiseOutputWithoutDependency} from '#composite/control-flow';
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',
    }),
  ],
});
 |