0.1.46 • Published 4 years ago

@blockhandbook/data v0.1.46

Weekly downloads
-
License
ISC
Repository
github
Last release
4 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

4 years ago

0.1.45

4 years ago

0.1.43

4 years ago

0.1.42

4 years ago

0.1.41

4 years ago

0.1.40

4 years ago

0.1.39

4 years ago

0.1.37

4 years ago

0.1.38

4 years ago

0.1.35

4 years ago

0.1.36

4 years ago

0.1.31

4 years ago

0.1.32

4 years ago

0.1.33

4 years ago

0.1.34

4 years ago

0.1.30

4 years ago

0.1.27

4 years ago

0.1.28

4 years ago

0.1.29

4 years ago

0.1.26

4 years ago

0.1.25

4 years ago

0.1.24

4 years ago

0.1.23

4 years ago

0.1.21

4 years ago

0.1.22

4 years ago

0.1.20

4 years ago

0.1.19

4 years ago

0.1.18

4 years ago

0.1.17

4 years ago

0.1.16

4 years ago

0.1.14

4 years ago

0.1.15

4 years ago

0.1.13

4 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago