@secretstache/wordpress-gutenberg 0.6.0 → 0.6.2

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.6.0",
3
+ "version": "0.6.2",
4
4
  "description": "",
5
5
  "author": "Secret Stache",
6
6
  "license": "GPL-2.0-or-later",
@@ -1,5 +1,5 @@
1
1
  .bc-selected-media-wrapper {
2
- max-width: 200px;
2
+ max-width: 100%;
3
3
  cursor: pointer;
4
4
  background: rgba(0, 0, 0, 0.3);
5
5
  }
@@ -11,6 +11,10 @@
11
11
  &--image {
12
12
  max-height: 300px;
13
13
  }
14
+
15
+ &--video {
16
+ min-height: 130px;
17
+ }
14
18
  }
15
19
 
16
20
  .bc-select-btn,
@@ -217,7 +217,7 @@ export const getSpacingClasses = (
217
217
  * @param {string} namespace - Filter namespace to search for
218
218
  * @returns {Array<{filterName: string, namespace: string}>} Array of matching filters
219
219
  */
220
- const getFiltersByNamespace = (namespace) => {
220
+ export const getFiltersByNamespace = (namespace) => {
221
221
  const list = [];
222
222
 
223
223
  Object.entries(filters).forEach(([filterName, filterData]) => {
@@ -238,7 +238,7 @@ const getFiltersByNamespace = (namespace) => {
238
238
  * @param {string} blockName - Name of the block to unregister
239
239
  * @param {string} postType - Post type to check against
240
240
  */
241
- const unsetBlockForPostType = (blockName, postType) => {
241
+ export const unsetBlockForPostType = (blockName, postType) => {
242
242
  const unsubscribe = subscribe(
243
243
  () => {
244
244
  const currentPostType = select('core/editor').getCurrentPostType();
@@ -1,91 +0,0 @@
1
- .editor-visual-editor__post-title-wrapper {
2
- margin-top: 10px !important;
3
- margin-bottom: 10px !important;
4
-
5
- h1.editor-post-title {
6
- margin: 0;
7
- border-bottom: 1px dashed #ddd;
8
- padding-bottom: 10px;
9
- font-weight: normal;
10
- font-size: 30px;
11
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
12
- text-align: center;
13
- }
14
- }
15
-
16
- .editor-visual-editor {
17
- z-index: 1;
18
-
19
- // Hide metaboxes in Pattern editor
20
- &.is-resizable {
21
- & + .edit-post-layout__metaboxes {
22
- display: none;
23
- }
24
- }
25
-
26
- // Common editor
27
- &:not(.is-resizable) {
28
- // Hide default appender clickable area
29
- .editor-styles-wrapper::after {
30
- display: none;
31
- }
32
- }
33
- }
34
-
35
- .editor-styles-wrapper .block-editor-block-list__layout.is-root-container {
36
- @import "root-block-appender";
37
- @import "empty-block-appender";
38
- @import "new-child-btn";
39
-
40
- margin-bottom: 0;
41
- padding-bottom: 0;
42
-
43
- &:has(.root-block-appender) {
44
- margin-bottom: 3rem;
45
- padding-bottom: 200px;
46
- }
47
-
48
- &.has-background {
49
- transition:
50
- background 1s,
51
- color 1s;
52
- }
53
-
54
- & > .block-list-appender.wp-block:only-child {
55
- p {
56
- margin-top: 0;
57
- margin-bottom: 0;
58
- }
59
- }
60
-
61
- & > .block-list-appender.wp-block:only-child,
62
- & > p.wp-block:only-child {
63
- margin: 2rem 0;
64
- }
65
-
66
- .components-notice {
67
- color: #000;
68
- }
69
- }
70
-
71
- .editor-sidebar {
72
- @import "link-control";
73
- @import "animation-file-renderer";
74
- @import "icon-picker";
75
- @import "media-picker";
76
- @import "sortable-select";
77
- @import "responsive-spacing";
78
- }
79
-
80
- .editor-styles-wrapper .block-editor-block-list__layout.is-root-container,
81
- .editor-sidebar {
82
- @import "image-wrapper";
83
- }
84
-
85
- .block-editor-block-types-list > [role=presentation] {
86
- justify-content: center;
87
- }
88
-
89
- .block-editor-inserter__insertable-blocks-at-selection + .block-editor-inserter__all-blocks {
90
- display: none;
91
- }