5.13.3 • Published 3 years ago

@mentor-medier/default-output-block v5.13.3

Weekly downloads
298
License
CC-BY-NC-ND-4.0
Repository
github
Last release
3 years ago

@wpmedia/default-output-block

Fusion News Theme default output type. 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

PropRequiredTypeDescription
required propyes
optional propno
contentConfig examplePlease specify which content sources are compatible

ANS Schema

Outline any schema information requirements necessary to know for ths block

ANS Fields

  • globalContent (see below) used by Metadata component in Engine Theme SDK
 description?: {
      basic?: string;
  };
  headlines?: {
      basic?: string;
  };
  taxonomy?: {
      seo_keywords?: Array<string>;
      tags?: Array<{
          slug?: string;
      }>;
  };
  authors?: Array<{
      bio?: string;
      byline?: string;
  }>;
  Payload?: Array<{
      description?: string;
      name?: string;
  }>;
  metadata?: {
      metadata_description?: string;
      metadata_title?: string;
  };
  name?: string;

Internationalization fields

  • Add all internationalization fields used in the block

Events

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

Event NameDescription
eventNameDescribe the event

Event Listening

Include block specific instructions for event listening.

OR

This block does not emit any events.

Additional Considerations

In the site properties, you can pass in dangerouslySetJS in blocks.json. The double-quote enclosed console.log is an example of how to format the injection. You need to have single-quotes enclosed here. It's ok to use minified code. Currently template literals are not supported in json. We're also not parsing this on the front-end so no need to escape characters.

siteProperties: {
    "dangerouslyInjectJS": [
      "console.log('yo');'
    ]
}
5.13.2

3 years ago

5.13.3

3 years ago

5.11.3

3 years ago

5.11.2

3 years ago

5.10.4

3 years ago

5.10.2

3 years ago

5.10.0

3 years ago

5.9.15

3 years ago