base-js-sw 1.0.5 → 1.0.6
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.
|
@@ -10,6 +10,8 @@ import { MediaUpload, MediaUploadCheck } from '@wordpress/blockEditor';
|
|
|
10
10
|
import { PanelBody, Button } from '@wordpress/components';
|
|
11
11
|
import { __experimentalAlignmentMatrixControl as AlignmentMatrixControl } from '@wordpress/components';
|
|
12
12
|
const { siteDomain } = themeVars; // vars passed from enqueue_backend.php
|
|
13
|
+
import './ImagePicker.scss';
|
|
14
|
+
|
|
13
15
|
export const ImagePicker = ({
|
|
14
16
|
setAttributes,
|
|
15
17
|
imageObject = {},
|
package/components/LinkPicker.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __experimentalLinkControl as LinkControl } from '@wordpress/blockEditor';
|
|
2
2
|
import { safeDecodeURI } from '@wordpress/url';
|
|
3
3
|
import { useState, useEffect } from 'react';
|
|
4
|
+
import './LinkPicker.scss';
|
|
4
5
|
|
|
5
6
|
export const LinkPicker = ({ setAttributes, at, linkRef = 'link' }) => {
|
|
6
7
|
// Get the current link object based on linkRef or fallback to an empty object
|
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
.block-editor-block-inspector {
|
|
2
|
+
.block-editor-link-control {
|
|
3
|
+
min-width: 0;
|
|
4
|
+
}
|
|
2
5
|
|
|
3
6
|
.block-editor-link-control__search-input {
|
|
4
7
|
margin: 0 !important;
|
|
8
|
+
min-width: auto !important;
|
|
5
9
|
}
|
|
6
10
|
|
|
7
11
|
.block-editor-link-control__search-results-wrapper {
|
|
8
12
|
margin-block: 10px !important;
|
|
13
|
+
|
|
14
|
+
.block-editor-url-input {
|
|
15
|
+
min-width: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.components-input-control__container {
|
|
19
|
+
max-width: 250px;
|
|
20
|
+
}
|
|
9
21
|
}
|
|
10
22
|
|
|
11
23
|
.block-editor-link-control__search-results {
|
|
@@ -38,12 +50,12 @@
|
|
|
38
50
|
.block-editor-link-control__search-item-icon {
|
|
39
51
|
display: none;
|
|
40
52
|
}
|
|
41
|
-
|
|
53
|
+
|
|
42
54
|
.is-current .block-editor-link-control__search-item-info {
|
|
43
55
|
display: none;
|
|
44
56
|
}
|
|
45
57
|
|
|
46
|
-
.block-editor-link-control__search-item-details{
|
|
58
|
+
.block-editor-link-control__search-item-details {
|
|
47
59
|
max-width: 140px;
|
|
48
60
|
}
|
|
49
|
-
}
|
|
61
|
+
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "base-js-sw",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Reusable Gutenberg block components for WordPress projects",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Shape Works",
|
|
7
|
-
"license": "MIT"
|
|
8
|
-
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"sass": "^1.89.2"
|
|
10
|
+
}
|
|
11
|
+
}
|