Skip to content

large-promo-block 5.17.0

Install from the command line:
Learn more about npm packages
$ npm install @wpmedia/large-promo-block@5.17.0
Install via package.json:
"@wpmedia/large-promo-block": "5.17.0"

About this version

@wpmedia/large-promo-block

Block containing a large promo component. Please provide a 1-2 sentence description of what the block is and what it does.

Acceptance Criteria

  • Add AC relevant to the block

Props

Prop Required Type Description
required prop yes
optional prop no
contentConfig example Please specify which content sources are compatible

ANS Schema

Outline any schema information requirements necessary to know for ths block

export default {
	_id: "55FCWHR6SRCQ3OIJJKWPWUGTBM",
	type: "story",
	canonical_url: "/news/2020/01/30/august-may-feel-like-washingtons-hottest-month-but-its-not/",
	headlines: {
		basic: "August may feel like Washington’s hottest month, but it’s not",
	},
	owner: {
		sponsored: false,
		id: "corecomponents",
	},
	content_restrictions: { content_code: "free" },
	address: {},
	workflow: { status_code: 1 },
	subheadlines: {
		basic: "Why does August seem hotter? Maybe it comes from weariness.",
	},
	description: {
		basic: "Why does August seem hotter? Maybe it comes from weariness.",
	},
	source: {
		name: "corecomponents",
		system: "composer",
		source_type: "staff",
	},
	promo_items: {
		basic: {
			_id: "DBUX66M3LRFMHKXZOM46RO4EXM",
			additional_properties: [Object],
			address: {},
			caption: "The sun beats down on Four Mile Run in Arlington, Va., on Aug. 17.",
			created_date: "2020-01-30T23:47:39Z",
			credits: [Object],
			height: 782,
			image_type: "photograph",
			last_updated_date: "2020-01-30T23:47:39Z",
			licensable: false,
			owner: [Object],
			source: [Object],
			status: "",
			taxonomy: [Object],
			type: "image",
			url: "https://arc-anglerfish-arc2-prod-corecomponents.s3.amazonaws.com/public/DBUX66M3LRFMHKXZOM46RO4EXM.png",
			version: "0.10.3",
			width: 1179,
			syndication: [Object],
		},
	},
	distributor: {
		name: "corecomponents",
		category: "staff",
		subcategory: "",
	},
	canonical_website: "the-sun",
	planning: {
		internal_note: "",
		story_length: {
			word_count_actual: 663,
			line_count_actual: 27,
			inch_count_actual: 4,
		},
	},
	display_date: "2020-01-30T14:47:46.926Z",
	credits: { by: [[Object]] },
	websites: {
		dagen: {
			website_section: [Object],
			website_url: "/news/2020/01/30/august-may-feel-like-washingtons-hottest-month-but-its-not/",
		},
	},
	additional_properties: {
		clipboard: {},
		has_published_copy: true,
		is_published: true,
		publish_date: "2020-01-31T00:25:46.270Z",
	},
	publish_date: "2020-01-31T00:26:08.651Z",
	publishing: {
		scheduled_operations: {
			publish_edition: [],
			unpublish_edition: [],
		},
	},
	website: "the-sun",
	website_url: "/news/2020/01/30/august-may-feel-like-washingtons-hottest-month-but-its-not/",
};

ANS Fields

  • content.headlines.basic
  • content.description.basic
  • content.websites[arcSite].website_section
  • content.promo_items

Internationalization fields

Phrase key Default (English)
key english translation

Events

Blocks can emit events. The following is a list of events that are emitted by this block.

Event Name Description
eventName Describe the event

Event Listening

Include block specific instructions for event listening.

OR

This block does not emit any events.

Additional Considerations

Configuration (including content) is handled through proptypes in the PB editor.