automattic / jetpack-publicize-components
A library of JS components required by the Publicize editor plugin
Installs: 93
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 5
Forks: 0
Language:JavaScript
Requires (Dev)
- automattic/jetpack-changelogger: ^4.2.8
- yoast/phpunit-polyfills: ^1.1.1
- dev-trunk
- v0.72.0
- v0.71.5
- v0.71.4
- v0.71.3
- v0.71.2
- v0.71.1
- v0.71.0
- v0.70.1
- v0.70.0
- v0.69.0
- v0.68.0
- v0.67.0
- v0.66.1
- v0.66.0
- v0.65.0
- v0.64.0
- v0.63.0
- v0.62.0
- v0.61.0
- v0.60.0
- v0.59.0
- v0.58.0
- v0.57.0
- v0.56.2
- v0.56.1
- v0.56.0
- v0.55.1
- v0.55.0
- v0.54.6
- v0.54.5
- v0.54.4
- v0.54.3
- v0.54.2
- v0.54.1
- v0.54.0
- v0.53.0
- v0.52.0
- v0.51.1
- v0.51.0
- v0.50.0
- v0.49.3
- v0.49.2
- v0.49.1
- v0.49.0
- v0.48.5
- v0.48.4
- v0.48.3
- v0.48.2
- v0.48.1
- v0.48.0
- v0.47.1
- v0.47.0
- v0.46.0
- v0.45.2
- v0.45.1
- v0.45.0
- v0.44.2
- v0.44.1
- v0.44.0
- v0.43.0
- v0.42.0
- v0.41.9
- v0.41.8
- v0.41.7
- v0.41.6
- v0.41.5
- v0.41.4
- v0.41.3
- v0.41.2
- v0.41.1
- v0.41.0
- v0.40.2
- v0.40.1
- v0.40.0
- v0.39.1
- v0.39.0
- v0.38.0
- v0.37.0
- v0.36.0
- v0.35.0
- v0.34.0
- v0.33.0
- v0.32.0
- v0.31.0
- v0.30.0
- v0.29.1
- v0.29.0
- v0.28.0
- v0.27.0
- v0.26.3
- v0.26.2
- v0.26.1
- v0.26.0
- v0.25.0
- v0.24.0
- v0.23.0
- v0.22.0
- v0.21.0
- v0.20.2
- v0.20.1
- v0.19.0
- v0.18.0
- v0.17.1
- v0.17.0
- v0.16.1
- v0.16.0
- v0.15.2
- v0.15.1
- v0.15.0
- v0.14.0
- v0.13.1
- v0.13.0
- v0.12.0
- v0.11.1
- v0.11.0
- v0.10.1
- v0.10.0
- v0.9.0
- v0.8.3
- v0.8.2
- v0.8.1
- v0.8.0
- v0.7.4
- v0.7.3
- v0.7.2
- v0.7.1
- v0.7.0
- v0.6.0
- v0.5.2
- v0.5.1
- v0.5.0
- v0.4.0
- v0.3.6
- v0.3.5
- v0.3.4
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.0
- dev-prerelease
This package is auto-updated.
Last update: 2024-11-07 17:35:39 UTC
README
A library of JS components required by the Publicize editor plugin
Data approach
The Store
The Publicize module stores the connection data in the post meta. That way the data is specific to a post, which allows us to check if the post can be shared. There's also a jetpack/publicize
sub-store that adds additional connection data from other data sources, such as WPCOM. We save that additional data to the post meta, and access it from the post meta as the single source of truth.
For instance, to get all connections for the given post you'd like to use the getConnections()
selector, but in the end, the selector will pick the data from the post meta.
Probably this implementation could be changed with a different approach, for instance, extending straightforward the core store in order to deal with the publicize data from there, getting rid of this new jetpack/publicize store.
Hooks
Although it's completely possible to pick data and dispatch actions from the store, we encourage using the hooks when it's doable.
How to install Publicize Components
Installation From Git Repo
Contribute
Get Help
Security
Need to report a security vulnerability? Go to https://automattic.com/security/ or directly to our security bug bounty site https://hackerone.com/automattic.
License
publicize is licensed under GNU General Public License v2 (or later)