@wp-playground/components 1.0.26 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
## Playground components
|
|
2
|
+
|
|
3
|
+
A library of reusable, dependency-free components (well, React is a dependency) that can be reused between Playground webapp, WordPress plugins, WordPress blocks, and the Blueprints builder. For example, the PathMappingControl will make a good fit for all these places.
|
|
4
|
+
|
|
5
|
+
## Design decisions
|
|
6
|
+
|
|
7
|
+
The components in this package use `@wordpress/components` under the hood. Web components were considered for portability, but ultimately weren't used because they:
|
|
8
|
+
|
|
9
|
+
- Wouldn't have the native WordPress look and feel
|
|
10
|
+
- Couldn't easily mix with WordPress components
|
|
11
|
+
- Had some issues around focus management
|
|
12
|
+
|
|
13
|
+
## Development Instructions (or ideally a Blueprint)
|
|
14
|
+
|
|
15
|
+
1. Run `nx dev playground-components`
|
|
16
|
+
2. Go to http://localhost:5173/
|
|
17
|
+
3. Play with the widgets and confirm they work intuitively
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wp-playground/components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.28",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"import": "./index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"access": "public",
|
|
22
22
|
"directory": "../../../dist/packages/playground/components"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "ed7171a91717c70dd7162e3d93283f66d21c001d",
|
|
25
25
|
"engines": {
|
|
26
26
|
"node": ">=18.18.0",
|
|
27
27
|
"npm": ">=8.11.0"
|