@sankei-arc-shared-components/content-source_story-feed-by-collection
v0.1.3
Published
Content Source that returns story feed from collection using an id
Downloads
101
Readme
Content Story Feed By Collection: A Sankei Shared Fusion Component
How do I use it in my Fusion Project?
import { createContentSource } from '@sankei-arc-shared-components/content-source_story-feed-by-collection'
import addResizedUrls, { storyCardSizePresets } from '../transforms/image-resizer';
import includedFields from './common/included-fields/story-card';
const { params, resolve } = createContentSource({
defaultSite: 'my-site',
includedFields,
});
export default {
params,
resolve,
schemaName: 'ans-feed',
transform(data) {
return addResizedUrls(data, storyCardSizePresets);
},
};