base-js-sw 1.0.0 → 1.0.1
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 +3 -3
- package/package.json +2 -8
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
<h2>Installation</h2>
|
|
10
10
|
<p>To install this package, use:</p>
|
|
11
|
-
<pre><code>npm install base-js</code></pre>
|
|
11
|
+
<pre><code>npm install base-js-sw</code></pre>
|
|
12
12
|
|
|
13
13
|
<h2>Usage</h2>
|
|
14
14
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<p>The <code>LinkPicker</code> component allows you to select a URL, internal post, or anchor link within your block editor. It stores the selected link as a link object and supports setting a post ID or external URL.</p>
|
|
17
17
|
|
|
18
18
|
<h4>Usage in a Gutenberg Block:</h4>
|
|
19
|
-
<pre><code>import { LinkPicker } from 'base-js';
|
|
19
|
+
<pre><code>import { LinkPicker } from 'base-js-sw';
|
|
20
20
|
|
|
21
21
|
registerBlockType('sw/link-block', {
|
|
22
22
|
edit: ({ attributes, setAttributes }) => {return ..
|
|
@@ -39,7 +39,7 @@ registerBlockType('sw/link-block', {
|
|
|
39
39
|
<p>The <code>ImagePicker</code> component allows you to select and manage images in your Gutenberg blocks, with options to crop, replace, and remove images.</p>
|
|
40
40
|
|
|
41
41
|
<h4>Usage in a Gutenberg Block:</h4>
|
|
42
|
-
<pre><code>import { ImagePicker } from 'base-js';
|
|
42
|
+
<pre><code>import { ImagePicker } from 'base-js-sw';
|
|
43
43
|
|
|
44
44
|
registerBlockType('sw/image-block', {
|
|
45
45
|
edit: ({ attributes, setAttributes }) => {
|
package/package.json
CHANGED
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "base-js-sw",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Reusable Gutenberg block components for WordPress projects",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Shape Works",
|
|
7
|
-
"license": "MIT"
|
|
8
|
-
"peerDependencies": {
|
|
9
|
-
"@wordpress/blockEditor": "^12.0.0",
|
|
10
|
-
"@wordpress/i18n": "^3.0.0",
|
|
11
|
-
"@wordpress/url": "^4.0.0",
|
|
12
|
-
"@wordpress/components": "^14.0.0"
|
|
13
|
-
}
|
|
7
|
+
"license": "MIT"
|
|
14
8
|
}
|
|
15
9
|
|