0.1.46 • Published 5 years ago

@blockhandbook/data v0.1.46

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

Data utilities & components for building WordPress block editor plugins

A library of utilities & components that make it easier to manage state for WordPress plugins built for the block editor.

Installation

npm i @blockhandbook/data --save-dev

This package assumes that your code will run in an ES2015+ environment.
This package assumes you are using the @wordpress/scripts package.

Components

withPosts()

Grabbing post data to create dynamic blocks is kinda complicated. The withPosts() Higher Order Component (HOC) makes it a breeze to grab WordPress post type data.

withPosts() bundles the getEntityRecords, getMedia, & getAuthors data store selectors to return an array of post data ( content, title, url, etc. ) as well as post featured media and author data.

0.1.46

5 years ago

0.1.45

5 years ago

0.1.43

5 years ago

0.1.42

5 years ago

0.1.41

5 years ago

0.1.40

5 years ago

0.1.39

5 years ago

0.1.37

5 years ago

0.1.38

5 years ago

0.1.35

5 years ago

0.1.36

5 years ago

0.1.31

5 years ago

0.1.32

5 years ago

0.1.33

5 years ago

0.1.34

5 years ago

0.1.30

5 years ago

0.1.27

5 years ago

0.1.28

5 years ago

0.1.29

5 years ago

0.1.26

5 years ago

0.1.25

5 years ago

0.1.24

5 years ago

0.1.23

5 years ago

0.1.21

5 years ago

0.1.22

5 years ago

0.1.20

5 years ago

0.1.19

5 years ago

0.1.18

5 years ago

0.1.17

5 years ago

0.1.16

5 years ago

0.1.14

5 years ago

0.1.15

5 years ago

0.1.13

5 years ago

0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago