@secretstache/wordpress-gutenberg 0.3.2 → 0.3.4
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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@secretstache/wordpress-gutenberg",
|
3
|
-
"version": "0.3.
|
3
|
+
"version": "0.3.4",
|
4
4
|
"description": "",
|
5
5
|
"author": "Secret Stache",
|
6
6
|
"license": "GPL-2.0-or-later",
|
@@ -12,7 +12,7 @@
|
|
12
12
|
"node": ">=20"
|
13
13
|
},
|
14
14
|
"main": "build/index.js",
|
15
|
-
"module": "build/index.
|
15
|
+
"module": "build/index.js",
|
16
16
|
"files": [
|
17
17
|
"build",
|
18
18
|
"src"
|
@@ -12,6 +12,7 @@ export const MediaTypeControl = (props) => {
|
|
12
12
|
mediaFileName = '',
|
13
13
|
mediaOnSelect,
|
14
14
|
mediaOnRemove,
|
15
|
+
label = 'Media Type',
|
15
16
|
} = props;
|
16
17
|
|
17
18
|
const [selectedMediaType, setSelectedMediaType] = useState(mediaTypes?.[0]);
|
@@ -26,10 +27,9 @@ export const MediaTypeControl = (props) => {
|
|
26
27
|
return (
|
27
28
|
<>
|
28
29
|
{
|
29
|
-
// TODO: add custom label
|
30
30
|
mediaTypes && (
|
31
31
|
<SelectControl
|
32
|
-
label=
|
32
|
+
label={label}
|
33
33
|
value={selectedMediaType}
|
34
34
|
onChange={(mediaType) => setSelectedMediaType(mediaType)}
|
35
35
|
options={mediaTypesOptions}
|
package/src/utils/attributes.js
CHANGED
@@ -158,20 +158,9 @@ export const getBaseBackgroundAttributes = (
|
|
158
158
|
type: 'object',
|
159
159
|
default: defaultBackgroundColor,
|
160
160
|
},
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
id: null,
|
165
|
-
url: '',
|
166
|
-
},
|
167
|
-
},
|
168
|
-
backgroundVideo: {
|
169
|
-
type: 'object',
|
170
|
-
default: {
|
171
|
-
id: null,
|
172
|
-
url: '',
|
173
|
-
},
|
174
|
-
},
|
161
|
+
|
162
|
+
...mediaAttribute,
|
163
|
+
|
175
164
|
isIncludeOverlay: {
|
176
165
|
type: 'boolean',
|
177
166
|
default: false,
|